@jxsuite/compiler 0.5.5 → 0.6.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.
package/dist/compiler.js CHANGED
@@ -1,10 +1,10 @@
1
- var LY=Object.create;var{getPrototypeOf:IY,defineProperty:A7,getOwnPropertyNames:dZ,getOwnPropertyDescriptor:AY}=Object,rZ=Object.prototype.hasOwnProperty;function cZ(Z){return this[Z]}var PY,wY,H5=(Z,X,J)=>{var G=Z!=null&&typeof Z==="object";if(G){var Q=X?PY??=new WeakMap:wY??=new WeakMap,U=Q.get(Z);if(U)return U}J=Z!=null?LY(IY(Z)):{};let W=X||!Z||!Z.__esModule?A7(J,"default",{value:Z,enumerable:!0}):J;for(let q of dZ(Z))if(!rZ.call(W,q))A7(W,q,{get:cZ.bind(Z,q),enumerable:!0});if(G)Q.set(Z,W);return W},TY=(Z)=>{var X=(iZ??=new WeakMap).get(Z),J;if(X)return X;if(X=A7({},"__esModule",{value:!0}),Z&&typeof Z==="object"||typeof Z==="function"){for(var G of dZ(Z))if(!rZ.call(X,G))A7(X,G,{get:cZ.bind(Z,G),enumerable:!(J=AY(Z,G))||J.enumerable})}return iZ.set(Z,X),X},iZ,h1=(Z,X)=>()=>(X||Z((X={exports:{}}).exports,X),X.exports);var CY=(Z)=>Z;function jY(Z,X){this[Z]=CY.bind(null,X)}var P7=(Z,X)=>{for(var J in X)A7(Z,J,{get:X[J],enumerable:!0,configurable:!0,set:jY.bind(X,J)})};var C=(Z,X)=>()=>(Z&&(X=Z(Z=0)),X);var B8=((Z)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(Z,{get:(X,J)=>(typeof require<"u"?require:X)[J]}):Z)(function(Z){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+Z+'" is not supported')});var k7={};P7(k7,{sep:()=>l2,resolve:()=>b5,relative:()=>y2,posix:()=>d2,parse:()=>f2,normalize:()=>c8,join:()=>k2,isAbsolute:()=>g2,format:()=>p2,extname:()=>u2,dirname:()=>h2,delimiter:()=>i2,default:()=>h$,basename:()=>m2,_makeLong:()=>v2});function V0(Z){if(typeof Z!=="string")throw TypeError("Path must be a string. Received "+JSON.stringify(Z))}function x2(Z,X){var J="",G=0,Q=-1,U=0,W;for(var q=0;q<=Z.length;++q){if(q<Z.length)W=Z.charCodeAt(q);else if(W===47)break;else W=47;if(W===47){if(Q===q-1||U===1);else if(Q!==q-1&&U===2){if(J.length<2||G!==2||J.charCodeAt(J.length-1)!==46||J.charCodeAt(J.length-2)!==46){if(J.length>2){var Y=J.lastIndexOf("/");if(Y!==J.length-1){if(Y===-1)J="",G=0;else J=J.slice(0,Y),G=J.length-1-J.lastIndexOf("/");Q=q,U=0;continue}}else if(J.length===2||J.length===1){J="",G=0,Q=q,U=0;continue}}if(X){if(J.length>0)J+="/..";else J="..";G=2}}else{if(J.length>0)J+="/"+Z.slice(Q+1,q);else J=Z.slice(Q+1,q);G=q-Q-1}Q=q,U=0}else if(W===46&&U!==-1)++U;else U=-1}return J}function v$(Z,X){var J=X.dir||X.root,G=X.base||(X.name||"")+(X.ext||"");if(!J)return G;if(J===X.root)return J+G;return J+Z+G}function b5(){var Z="",X=!1,J;for(var G=arguments.length-1;G>=-1&&!X;G--){var Q;if(G>=0)Q=arguments[G];else{if(J===void 0)J=process.cwd();Q=J}if(V0(Q),Q.length===0)continue;Z=Q+"/"+Z,X=Q.charCodeAt(0)===47}if(Z=x2(Z,!X),X)if(Z.length>0)return"/"+Z;else return"/";else if(Z.length>0)return Z;else return"."}function c8(Z){if(V0(Z),Z.length===0)return".";var X=Z.charCodeAt(0)===47,J=Z.charCodeAt(Z.length-1)===47;if(Z=x2(Z,!X),Z.length===0&&!X)Z=".";if(Z.length>0&&J)Z+="/";if(X)return"/"+Z;return Z}function g2(Z){return V0(Z),Z.length>0&&Z.charCodeAt(0)===47}function k2(){if(arguments.length===0)return".";var Z;for(var X=0;X<arguments.length;++X){var J=arguments[X];if(V0(J),J.length>0)if(Z===void 0)Z=J;else Z+="/"+J}if(Z===void 0)return".";return c8(Z)}function y2(Z,X){if(V0(Z),V0(X),Z===X)return"";if(Z=b5(Z),X=b5(X),Z===X)return"";var J=1;for(;J<Z.length;++J)if(Z.charCodeAt(J)!==47)break;var G=Z.length,Q=G-J,U=1;for(;U<X.length;++U)if(X.charCodeAt(U)!==47)break;var W=X.length,q=W-U,Y=Q<q?Q:q,H=-1,K=0;for(;K<=Y;++K){if(K===Y){if(q>Y){if(X.charCodeAt(U+K)===47)return X.slice(U+K+1);else if(K===0)return X.slice(U+K)}else if(Q>Y){if(Z.charCodeAt(J+K)===47)H=K;else if(K===0)H=0}break}var $=Z.charCodeAt(J+K),B=X.charCodeAt(U+K);if($!==B)break;else if($===47)H=K}var V="";for(K=J+H+1;K<=G;++K)if(K===G||Z.charCodeAt(K)===47)if(V.length===0)V+="..";else V+="/..";if(V.length>0)return V+X.slice(U+H);else{if(U+=H,X.charCodeAt(U)===47)++U;return X.slice(U)}}function v2(Z){return Z}function h2(Z){if(V0(Z),Z.length===0)return".";var X=Z.charCodeAt(0),J=X===47,G=-1,Q=!0;for(var U=Z.length-1;U>=1;--U)if(X=Z.charCodeAt(U),X===47){if(!Q){G=U;break}}else Q=!1;if(G===-1)return J?"/":".";if(J&&G===1)return"//";return Z.slice(0,G)}function m2(Z,X){if(X!==void 0&&typeof X!=="string")throw TypeError('"ext" argument must be a string');V0(Z);var J=0,G=-1,Q=!0,U;if(X!==void 0&&X.length>0&&X.length<=Z.length){if(X.length===Z.length&&X===Z)return"";var W=X.length-1,q=-1;for(U=Z.length-1;U>=0;--U){var Y=Z.charCodeAt(U);if(Y===47){if(!Q){J=U+1;break}}else{if(q===-1)Q=!1,q=U+1;if(W>=0)if(Y===X.charCodeAt(W)){if(--W===-1)G=U}else W=-1,G=q}}if(J===G)G=q;else if(G===-1)G=Z.length;return Z.slice(J,G)}else{for(U=Z.length-1;U>=0;--U)if(Z.charCodeAt(U)===47){if(!Q){J=U+1;break}}else if(G===-1)Q=!1,G=U+1;if(G===-1)return"";return Z.slice(J,G)}}function u2(Z){V0(Z);var X=-1,J=0,G=-1,Q=!0,U=0;for(var W=Z.length-1;W>=0;--W){var q=Z.charCodeAt(W);if(q===47){if(!Q){J=W+1;break}continue}if(G===-1)Q=!1,G=W+1;if(q===46){if(X===-1)X=W;else if(U!==1)U=1}else if(X!==-1)U=-1}if(X===-1||G===-1||U===0||U===1&&X===G-1&&X===J+1)return"";return Z.slice(X,G)}function p2(Z){if(Z===null||typeof Z!=="object")throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof Z);return v$("/",Z)}function f2(Z){V0(Z);var X={root:"",dir:"",base:"",ext:"",name:""};if(Z.length===0)return X;var J=Z.charCodeAt(0),G=J===47,Q;if(G)X.root="/",Q=1;else Q=0;var U=-1,W=0,q=-1,Y=!0,H=Z.length-1,K=0;for(;H>=Q;--H){if(J=Z.charCodeAt(H),J===47){if(!Y){W=H+1;break}continue}if(q===-1)Y=!1,q=H+1;if(J===46){if(U===-1)U=H;else if(K!==1)K=1}else if(U!==-1)K=-1}if(U===-1||q===-1||K===0||K===1&&U===q-1&&U===W+1){if(q!==-1)if(W===0&&G)X.base=X.name=Z.slice(1,q);else X.base=X.name=Z.slice(W,q)}else{if(W===0&&G)X.name=Z.slice(1,U),X.base=Z.slice(1,q);else X.name=Z.slice(W,U),X.base=Z.slice(W,q);X.ext=Z.slice(U,q)}if(W>0)X.dir=Z.slice(0,W-1);else if(G)X.dir="/";return X}var l2="/",i2=":",d2,h$;var y7=C(()=>{d2=((Z)=>(Z.posix=Z,Z))({resolve:b5,normalize:c8,isAbsolute:g2,join:k2,relative:y2,_makeLong:v2,dirname:h2,basename:m2,extname:u2,format:p2,parse:f2,sep:l2,delimiter:i2,win32:null,posix:null}),h$=d2});function n8(Z){if(Z)throw Z}var ZJ=h1((ON,e2)=>{var x5=Object.prototype.hasOwnProperty,t2=Object.prototype.toString,r2=Object.defineProperty,c2=Object.getOwnPropertyDescriptor,n2=function(X){if(typeof Array.isArray==="function")return Array.isArray(X);return t2.call(X)==="[object Array]"},a2=function(X){if(!X||t2.call(X)!=="[object Object]")return!1;var J=x5.call(X,"constructor"),G=X.constructor&&X.constructor.prototype&&x5.call(X.constructor.prototype,"isPrototypeOf");if(X.constructor&&!J&&!G)return!1;var Q;for(Q in X);return typeof Q>"u"||x5.call(X,Q)},s2=function(X,J){if(r2&&J.name==="__proto__")r2(X,J.name,{enumerable:!0,configurable:!0,value:J.newValue,writable:!0});else X[J.name]=J.newValue},o2=function(X,J){if(J==="__proto__"){if(!x5.call(X,J))return;else if(c2)return c2(X,J).value}return X[J]};e2.exports=function Z(){var X,J,G,Q,U,W,q=arguments[0],Y=1,H=arguments.length,K=!1;if(typeof q==="boolean")K=q,q=arguments[1]||{},Y=2;if(q==null||typeof q!=="object"&&typeof q!=="function")q={};for(;Y<H;++Y)if(X=arguments[Y],X!=null){for(J in X)if(G=o2(q,J),Q=o2(X,J),q!==Q){if(K&&Q&&(a2(Q)||(U=n2(Q)))){if(U)U=!1,W=G&&n2(G)?G:[];else W=G&&a2(G)?G:{};s2(q,{name:J,newValue:Z(K,W,Q)})}else if(typeof Q<"u")s2(q,{name:J,newValue:Q})}}return q}});var XJ=()=>{};function O(Z,X){m$(Boolean(Z),!1,!0,"ok","Expected value to be truthy",X)}function m$(Z,X,J,G,Q,U){if(!Z)throw U instanceof Error?U:new JJ(U||Q,X,J,G,!U)}var JJ;var o=C(()=>{XJ();JJ=class JJ extends Error{name="Assertion";code="ERR_ASSERTION";constructor(Z,X,J,G,Q){super(Z);if(Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);this.actual=X,this.expected=J,this.generated=Q,this.operator=G}}});function v7(Z){if(typeof Z!=="object"||Z===null)return!1;let X=Object.getPrototypeOf(Z);return(X===null||X===Object.prototype||Object.getPrototypeOf(X)===null)&&!(Symbol.toStringTag in Z)&&!(Symbol.iterator in Z)}function a8(){let Z=[],X={run:J,use:G};return X;function J(...Q){let U=-1,W=Q.pop();if(typeof W!=="function")throw TypeError("Expected function as last argument, not "+W);q(null,...Q);function q(Y,...H){let K=Z[++U],$=-1;if(Y){W(Y);return}while(++$<Q.length)if(H[$]===null||H[$]===void 0)H[$]=Q[$];if(Q=H,K)GJ(K,q)(...H);else W(null,...H)}}function G(Q){if(typeof Q!=="function")throw TypeError("Expected `middelware` to be a function, not "+Q);return Z.push(Q),X}}function GJ(Z,X){let J;return G;function G(...W){let q=Z.length>W.length,Y;if(q)W.push(Q);try{Y=Z.apply(this,W)}catch(H){let K=H;if(q&&J)throw K;return Q(K)}if(!q)if(Y&&Y.then&&typeof Y.then==="function")Y.then(U,Q);else if(Y instanceof Error)Q(Y);else U(Y)}function Q(W,...q){if(!J)J=!0,X(W,...q)}function U(W){Q(null,W)}}var QJ=()=>{};function f0(Z){if(!Z||typeof Z!=="object")return"";if("position"in Z||"type"in Z)return UJ(Z.position);if("start"in Z||"end"in Z)return UJ(Z);if("line"in Z||"column"in Z)return s8(Z);return""}function s8(Z){return WJ(Z&&Z.line)+":"+WJ(Z&&Z.column)}function UJ(Z){return s8(Z&&Z.start)+"-"+s8(Z&&Z.end)}function WJ(Z){return Z&&typeof Z==="number"?Z:1}var o8=()=>{};var T1;var qJ=C(()=>{o8();T1=class T1 extends Error{constructor(Z,X,J){super();if(typeof X==="string")J=X,X=void 0;let G="",Q={},U=!1;if(X)if("line"in X&&"column"in X)Q={place:X};else if("start"in X&&"end"in X)Q={place:X};else if("type"in X)Q={ancestors:[X],place:X.position};else Q={...X};if(typeof Z==="string")G=Z;else if(!Q.cause&&Z)U=!0,G=Z.message,Q.cause=Z;if(!Q.ruleId&&!Q.source&&typeof J==="string"){let q=J.indexOf(":");if(q===-1)Q.ruleId=J;else Q.source=J.slice(0,q),Q.ruleId=J.slice(q+1)}if(!Q.place&&Q.ancestors&&Q.ancestors){let q=Q.ancestors[Q.ancestors.length-1];if(q)Q.place=q.position}let W=Q.place&&"start"in Q.place?Q.place.start:Q.place;this.ancestors=Q.ancestors||void 0,this.cause=Q.cause||void 0,this.column=W?W.column:void 0,this.fatal=void 0,this.file="",this.message=G,this.line=W?W.line:void 0,this.name=f0(Q.place)||"1:1",this.place=Q.place||void 0,this.reason=this.message,this.ruleId=Q.ruleId||void 0,this.source=Q.source||void 0,this.stack=U&&Q.cause&&typeof Q.cause.stack==="string"?Q.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};T1.prototype.file="";T1.prototype.name="";T1.prototype.reason="";T1.prototype.message="";T1.prototype.stack="";T1.prototype.column=void 0;T1.prototype.line=void 0;T1.prototype.ancestors=void 0;T1.prototype.cause=void 0;T1.prototype.fatal=void 0;T1.prototype.place=void 0;T1.prototype.ruleId=void 0;T1.prototype.source=void 0});var YJ=C(()=>{qJ()});function u$(Z,X){if(X!==void 0&&typeof X!=="string")throw TypeError('"ext" argument must be a string');h7(Z);let J=0,G=-1,Q=Z.length,U;if(X===void 0||X.length===0||X.length>Z.length){while(Q--)if(Z.codePointAt(Q)===47){if(U){J=Q+1;break}}else if(G<0)U=!0,G=Q+1;return G<0?"":Z.slice(J,G)}if(X===Z)return"";let W=-1,q=X.length-1;while(Q--)if(Z.codePointAt(Q)===47){if(U){J=Q+1;break}}else{if(W<0)U=!0,W=Q+1;if(q>-1)if(Z.codePointAt(Q)===X.codePointAt(q--)){if(q<0)G=Q}else q=-1,G=W}if(J===G)G=W;else if(G<0)G=Z.length;return Z.slice(J,G)}function p$(Z){if(h7(Z),Z.length===0)return".";let X=-1,J=Z.length,G;while(--J)if(Z.codePointAt(J)===47){if(G){X=J;break}}else if(!G)G=!0;return X<0?Z.codePointAt(0)===47?"/":".":X===1&&Z.codePointAt(0)===47?"//":Z.slice(0,X)}function f$(Z){h7(Z);let X=Z.length,J=-1,G=0,Q=-1,U=0,W;while(X--){let q=Z.codePointAt(X);if(q===47){if(W){G=X+1;break}continue}if(J<0)W=!0,J=X+1;if(q===46){if(Q<0)Q=X;else if(U!==1)U=1}else if(Q>-1)U=-1}if(Q<0||J<0||U===0||U===1&&Q===J-1&&Q===G+1)return"";return Z.slice(Q,J)}function l$(...Z){let X=-1,J;while(++X<Z.length)if(h7(Z[X]),Z[X])J=J===void 0?Z[X]:J+"/"+Z[X];return J===void 0?".":i$(J)}function i$(Z){h7(Z);let X=Z.codePointAt(0)===47,J=d$(Z,!X);if(J.length===0&&!X)J=".";if(J.length>0&&Z.codePointAt(Z.length-1)===47)J+="/";return X?"/"+J:J}function d$(Z,X){let J="",G=0,Q=-1,U=0,W=-1,q,Y;while(++W<=Z.length){if(W<Z.length)q=Z.codePointAt(W);else if(q===47)break;else q=47;if(q===47){if(Q===W-1||U===1);else if(Q!==W-1&&U===2){if(J.length<2||G!==2||J.codePointAt(J.length-1)!==46||J.codePointAt(J.length-2)!==46){if(J.length>2){if(Y=J.lastIndexOf("/"),Y!==J.length-1){if(Y<0)J="",G=0;else J=J.slice(0,Y),G=J.length-1-J.lastIndexOf("/");Q=W,U=0;continue}}else if(J.length>0){J="",G=0,Q=W,U=0;continue}}if(X)J=J.length>0?J+"/..":"..",G=2}else{if(J.length>0)J+="/"+Z.slice(Q+1,W);else J=Z.slice(Q+1,W);G=W-Q-1}Q=W,U=0}else if(q===46&&U>-1)U++;else U=-1}return J}function h7(Z){if(typeof Z!=="string")throw TypeError("Path must be a string. Received "+JSON.stringify(Z))}var J0;var HJ=C(()=>{J0={basename:u$,dirname:p$,extname:f$,join:l$,sep:"/"}});function r$(){return"/"}var KJ;var $J=C(()=>{KJ={cwd:r$}});function u4(Z){return Boolean(Z!==null&&typeof Z==="object"&&"href"in Z&&Z.href&&"protocol"in Z&&Z.protocol&&Z.auth===void 0)}function zJ(Z){if(typeof Z==="string")Z=new URL(Z);else if(!u4(Z)){let X=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+Z+"`");throw X.code="ERR_INVALID_ARG_TYPE",X}if(Z.protocol!=="file:"){let X=TypeError("The URL must be of scheme file");throw X.code="ERR_INVALID_URL_SCHEME",X}return c$(Z)}function c$(Z){if(Z.hostname!==""){let G=TypeError('File URL host must be "localhost" or empty on darwin');throw G.code="ERR_INVALID_FILE_URL_HOST",G}let X=Z.pathname,J=-1;while(++J<X.length)if(X.codePointAt(J)===37&&X.codePointAt(J+1)===50){let G=X.codePointAt(J+2);if(G===70||G===102){let Q=TypeError("File URL path must not include encoded / characters");throw Q.code="ERR_INVALID_FILE_URL_PATH",Q}}return decodeURIComponent(X)}var VJ=()=>{};class g5{constructor(Z){let X;if(!Z)X={};else if(u4(Z))X={path:Z};else if(typeof Z==="string"||n$(Z))X={value:Z};else X=Z;this.cwd="cwd"in X?"":KJ.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let J=-1;while(++J<t8.length){let Q=t8[J];if(Q in X&&X[Q]!==void 0&&X[Q]!==null)this[Q]=Q==="history"?[...X[Q]]:X[Q]}let G;for(G in X)if(!t8.includes(G))this[G]=X[G]}get basename(){return typeof this.path==="string"?J0.basename(this.path):void 0}set basename(Z){Z3(Z,"basename"),e8(Z,"basename"),this.path=J0.join(this.dirname||"",Z)}get dirname(){return typeof this.path==="string"?J0.dirname(this.path):void 0}set dirname(Z){BJ(this.basename,"dirname"),this.path=J0.join(Z||"",this.basename)}get extname(){return typeof this.path==="string"?J0.extname(this.path):void 0}set extname(Z){if(e8(Z,"extname"),BJ(this.dirname,"extname"),Z){if(Z.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(Z.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=J0.join(this.dirname,this.stem+(Z||""))}get path(){return this.history[this.history.length-1]}set path(Z){if(u4(Z))Z=zJ(Z);if(Z3(Z,"path"),this.path!==Z)this.history.push(Z)}get stem(){return typeof this.path==="string"?J0.basename(this.path,this.extname):void 0}set stem(Z){Z3(Z,"stem"),e8(Z,"stem"),this.path=J0.join(this.dirname||"",Z+(this.extname||""))}fail(Z,X,J){let G=this.message(Z,X,J);throw G.fatal=!0,G}info(Z,X,J){let G=this.message(Z,X,J);return G.fatal=void 0,G}message(Z,X,J){let G=new T1(Z,X,J);if(this.path)G.name=this.path+":"+G.name,G.file=this.path;return G.fatal=!1,this.messages.push(G),G}toString(Z){if(this.value===void 0)return"";if(typeof this.value==="string")return this.value;return new TextDecoder(Z||void 0).decode(this.value)}}function e8(Z,X){if(Z&&Z.includes(J0.sep))throw Error("`"+X+"` cannot be a path: did not expect `"+J0.sep+"`")}function Z3(Z,X){if(!Z)throw Error("`"+X+"` cannot be empty")}function BJ(Z,X){if(!Z)throw Error("Setting `"+X+"` requires `path` to be set too")}function n$(Z){return Boolean(Z&&typeof Z==="object"&&"byteLength"in Z&&"byteOffset"in Z)}var t8;var FJ=C(()=>{YJ();HJ();$J();VJ();t8=["history","path","basename","stem","extname","dirname"]});var MJ=C(()=>{FJ()});var DJ=function(Z){let G=this.constructor.prototype,Q=G[Z],U=function(){return Q.apply(U,arguments)};return Object.setPrototypeOf(U,G),U};function X3(Z,X){if(typeof X!=="function")throw TypeError("Cannot `"+Z+"` without `parser`")}function J3(Z,X){if(typeof X!=="function")throw TypeError("Cannot `"+Z+"` without `compiler`")}function G3(Z,X){if(X)throw Error("Cannot call `"+Z+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function _J(Z){if(!v7(Z)||typeof Z.type!=="string")throw TypeError("Expected node, got `"+Z+"`")}function RJ(Z,X,J){if(!J)throw Error("`"+Z+"` finished async. Use `"+X+"` instead")}function k5(Z){return s$(Z)?Z:new g5(Z)}function s$(Z){return Boolean(Z&&typeof Z==="object"&&"message"in Z&&"messages"in Z)}function o$(Z){return typeof Z==="string"||t$(Z)}function t$(Z){return Boolean(Z&&typeof Z==="object"&&"byteLength"in Z&&"byteOffset"in Z)}var y5,a$,Q3,U3;var OJ=C(()=>{o();QJ();MJ();y5=H5(ZJ(),1),a$={}.hasOwnProperty;Q3=class Q3 extends DJ{constructor(){super("copy");this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=a8()}copy(){let Z=new Q3,X=-1;while(++X<this.attachers.length){let J=this.attachers[X];Z.use(...J)}return Z.data(y5.default(!0,{},this.namespace)),Z}data(Z,X){if(typeof Z==="string"){if(arguments.length===2)return G3("data",this.frozen),this.namespace[Z]=X,this;return a$.call(this.namespace,Z)&&this.namespace[Z]||void 0}if(Z)return G3("data",this.frozen),this.namespace=Z,this;return this.namespace}freeze(){if(this.frozen)return this;let Z=this;while(++this.freezeIndex<this.attachers.length){let[X,...J]=this.attachers[this.freezeIndex];if(J[0]===!1)continue;if(J[0]===!0)J[0]=void 0;let G=X.call(Z,...J);if(typeof G==="function")this.transformers.use(G)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(Z){this.freeze();let X=k5(Z),J=this.parser||this.Parser;return X3("parse",J),J(String(X),X)}process(Z,X){let J=this;return this.freeze(),X3("process",this.parser||this.Parser),J3("process",this.compiler||this.Compiler),X?G(void 0,X):new Promise(G);function G(Q,U){let W=k5(Z),q=J.parse(W);J.run(q,W,function(H,K,$){if(H||!K||!$)return Y(H);let B=K,V=J.stringify(B,$);if(o$(V))$.value=V;else $.result=V;Y(H,$)});function Y(H,K){if(H||!K)U(H);else if(Q)Q(K);else O(X,"`done` is defined if `resolve` is not"),X(void 0,K)}}}processSync(Z){let X=!1,J;return this.freeze(),X3("processSync",this.parser||this.Parser),J3("processSync",this.compiler||this.Compiler),this.process(Z,G),RJ("processSync","process",X),O(J,"we either bailed on an error or have a tree"),J;function G(Q,U){X=!0,n8(Q),J=U}}run(Z,X,J){_J(Z),this.freeze();let G=this.transformers;if(!J&&typeof X==="function")J=X,X=void 0;return J?Q(void 0,J):new Promise(Q);function Q(U,W){O(typeof X!=="function","`file` can’t be a `done` anymore, we checked");let q=k5(X);G.run(Z,q,Y);function Y(H,K,$){let B=K||Z;if(H)W(H);else if(U)U(B);else O(J,"`done` is defined if `resolve` is not"),J(void 0,B,$)}}}runSync(Z,X){let J=!1,G;return this.run(Z,X,Q),RJ("runSync","run",J),O(G,"we either bailed on an error or have a tree"),G;function Q(U,W){n8(U),G=W,J=!0}}stringify(Z,X){this.freeze();let J=k5(X),G=this.compiler||this.Compiler;return J3("stringify",G),_J(Z),G(Z,J)}use(Z,...X){let J=this.attachers,G=this.namespace;if(G3("use",this.frozen),Z===null||Z===void 0);else if(typeof Z==="function")q(Z,X);else if(typeof Z==="object")if(Array.isArray(Z))W(Z);else U(Z);else throw TypeError("Expected usable value, not `"+Z+"`");return this;function Q(Y){if(typeof Y==="function")q(Y,[]);else if(typeof Y==="object")if(Array.isArray(Y)){let[H,...K]=Y;q(H,K)}else U(Y);else throw TypeError("Expected usable value, not `"+Y+"`")}function U(Y){if(!("plugins"in Y)&&!("settings"in Y))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");if(W(Y.plugins),Y.settings)G.settings=y5.default(!0,G.settings,Y.settings)}function W(Y){let H=-1;if(Y===null||Y===void 0);else if(Array.isArray(Y))while(++H<Y.length){let K=Y[H];Q(K)}else throw TypeError("Expected a list of plugins, not `"+Y+"`")}function q(Y,H){let K=-1,$=-1;while(++K<J.length)if(J[K][0]===Y){$=K;break}if($===-1)J.push([Y,...H]);else if(H.length>0){let[B,...V]=H,M=J[$][1];if(v7(M)&&v7(B))B=y5.default(!0,M,B);J[$]=[Y,B,...V]}}}};U3=new Q3().freeze()});var NJ=C(()=>{OJ()});function q4(Z,X){let J=X||e$,G=typeof J.includeImageAlt==="boolean"?J.includeImageAlt:!0,Q=typeof J.includeHtml==="boolean"?J.includeHtml:!0;return IJ(Z,G,Q)}function IJ(Z,X,J){if(Zz(Z)){if("value"in Z)return Z.type==="html"&&!J?"":Z.value;if(X&&"alt"in Z&&Z.alt)return Z.alt;if("children"in Z)return LJ(Z.children,X,J)}if(Array.isArray(Z))return LJ(Z,X,J);return""}function LJ(Z,X,J){let G=[],Q=-1;while(++Q<Z.length)G[Q]=IJ(Z[Q],X,J);return G.join("")}function Zz(Z){return Boolean(Z&&typeof Z==="object")}var e$;var AJ=C(()=>{e$={}});var v5=C(()=>{AJ()});function T0(Z){let X="&"+Z+";";PJ.innerHTML=X;let J=PJ.textContent;if(J.charCodeAt(J.length-1)===59&&Z!=="semi")return!1;return J===X?!1:J}var PJ;var m7=C(()=>{PJ=document.createElement("i")});var z;var wJ=C(()=>{z={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533}});var g;var TJ=C(()=>{g={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:"content",contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4}});var F;var CJ=C(()=>{F={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"}});var d1;var jJ=C(()=>{d1={ht:"\t",lf:`
2
- `,cr:"\r",space:" ",exclamationMark:"!",quotationMark:'"',numberSign:"#",dollarSign:"$",percentSign:"%",ampersand:"&",apostrophe:"'",leftParenthesis:"(",rightParenthesis:")",asterisk:"*",plusSign:"+",comma:",",dash:"-",dot:".",slash:"/",digit0:"0",digit1:"1",digit2:"2",digit3:"3",digit4:"4",digit5:"5",digit6:"6",digit7:"7",digit8:"8",digit9:"9",colon:":",semicolon:";",lessThan:"<",equalsTo:"=",greaterThan:">",questionMark:"?",atSign:"@",uppercaseA:"A",uppercaseB:"B",uppercaseC:"C",uppercaseD:"D",uppercaseE:"E",uppercaseF:"F",uppercaseG:"G",uppercaseH:"H",uppercaseI:"I",uppercaseJ:"J",uppercaseK:"K",uppercaseL:"L",uppercaseM:"M",uppercaseN:"N",uppercaseO:"O",uppercaseP:"P",uppercaseQ:"Q",uppercaseR:"R",uppercaseS:"S",uppercaseT:"T",uppercaseU:"U",uppercaseV:"V",uppercaseW:"W",uppercaseX:"X",uppercaseY:"Y",uppercaseZ:"Z",leftSquareBracket:"[",backslash:"\\",rightSquareBracket:"]",caret:"^",underscore:"_",graveAccent:"`",lowercaseA:"a",lowercaseB:"b",lowercaseC:"c",lowercaseD:"d",lowercaseE:"e",lowercaseF:"f",lowercaseG:"g",lowercaseH:"h",lowercaseI:"i",lowercaseJ:"j",lowercaseK:"k",lowercaseL:"l",lowercaseM:"m",lowercaseN:"n",lowercaseO:"o",lowercaseP:"p",lowercaseQ:"q",lowercaseR:"r",lowercaseS:"s",lowercaseT:"t",lowercaseU:"u",lowercaseV:"v",lowercaseW:"w",lowercaseX:"x",lowercaseY:"y",lowercaseZ:"z",leftCurlyBrace:"{",verticalBar:"|",rightCurlyBrace:"}",tilde:"~",replacementCharacter:"�"}});var c=C(()=>{wJ();TJ();CJ();jJ()});function B1(Z,X,J,G){let Q=Z.length,U=0,W;if(X<0)X=-X>Q?0:Q+X;else X=X>Q?Q:X;if(J=J>0?J:0,G.length<g.v8MaxSafeChunkSize)W=Array.from(G),W.unshift(X,J),Z.splice(...W);else{if(J)Z.splice(X,J);while(U<G.length)W=G.slice(U,U+g.v8MaxSafeChunkSize),W.unshift(X,0),Z.splice(...W),U+=g.v8MaxSafeChunkSize,X+=g.v8MaxSafeChunkSize}}function y1(Z,X){if(Z.length>0)return B1(Z,Z.length,0,X),Z;return X}var C0=C(()=>{c()});function h5(Z){let X={},J=-1;while(++J<Z.length)Xz(X,Z[J]);return X}function Xz(Z,X){let J;for(J in X){let Q=(EJ.call(Z,J)?Z[J]:void 0)||(Z[J]={}),U=X[J],W;if(U)for(W in U){if(!EJ.call(Q,W))Q[W]=[];let q=U[W];Jz(Q[W],Array.isArray(q)?q:q?[q]:[])}}}function Jz(Z,X){let J=-1,G=[];while(++J<X.length)(X[J].add==="after"?Z:G).push(X[J]);B1(Z,0,0,G)}var EJ;var W3=C(()=>{C0();EJ={}.hasOwnProperty});function m5(Z,X){let J=Number.parseInt(Z,X);if(J<z.ht||J===z.vt||J>z.cr&&J<z.space||J>z.tilde&&J<160||J>55295&&J<57344||J>64975&&J<65008||(J&65535)===65535||(J&65535)===65534||J>1114111)return d1.replacementCharacter;return String.fromCodePoint(J)}var q3=C(()=>{c()});function S1(Z){return Z.replace(/[\t\n\r ]+/g,d1.space).replace(/^ | $/g,"").toLowerCase().toUpperCase()}var p4=C(()=>{c()});function Y4(Z){return Z!==null&&(Z<z.space||Z===z.del)}function k(Z){return Z!==null&&Z<z.horizontalTab}function t(Z){return Z!==null&&(Z<z.nul||Z===z.space)}function d(Z){return Z===z.horizontalTab||Z===z.virtualSpace||Z===z.space}function l0(Z){return X;function X(J){return J!==null&&J>-1&&Z.test(String.fromCharCode(J))}}var L1,I1,SJ,u7,bJ,xJ,r1,b1;var Z1=C(()=>{c();L1=l0(/[A-Za-z]/),I1=l0(/[\dA-Za-z]/),SJ=l0(/[#-'*+\--9=?A-Z^-~]/);u7=l0(/\d/),bJ=l0(/[\dA-Fa-f]/),xJ=l0(/[!-/:-@[-`{-~]/);r1=l0(/\p{P}|\p{S}/u),b1=l0(/\s/)});function l(Z,X,J,G){let Q=G?G-1:Number.POSITIVE_INFINITY,U=0;return W;function W(Y){if(d(Y))return Z.enter(J),q(Y);return X(Y)}function q(Y){if(d(Y)&&U++<Q)return Z.consume(Y),q;return Z.exit(J),X(Y)}}var K1=C(()=>{Z1()});function Gz(Z){let X=Z.attempt(this.parser.constructs.contentInitial,G,Q),J;return X;function G(q){if(O(q===z.eof||k(q),"expected eol or eof"),q===z.eof){Z.consume(q);return}return Z.enter(F.lineEnding),Z.consume(q),Z.exit(F.lineEnding),l(Z,X,F.linePrefix)}function Q(q){return O(q!==z.eof&&!k(q),"expected anything other than a line ending or EOF"),Z.enter(F.paragraph),U(q)}function U(q){let Y=Z.enter(F.chunkText,{contentType:g.contentTypeText,previous:J});if(J)J.next=Y;return J=Y,W(q)}function W(q){if(q===z.eof){Z.exit(F.chunkText),Z.exit(F.paragraph),Z.consume(q);return}if(k(q))return Z.consume(q),Z.exit(F.chunkText),U;return Z.consume(q),W}}var gJ;var kJ=C(()=>{o();K1();Z1();c();gJ={tokenize:Gz}});function Qz(Z){let X=this,J=[],G=0,Q,U,W;return q;function q(L){if(G<J.length){let E=J[G];return X.containerState=E[1],O(E[0].continuation,"expected `continuation` to be defined on container construct"),Z.attempt(E[0].continuation,Y,H)(L)}return H(L)}function Y(L){if(O(X.containerState,"expected `containerState` to be defined after continuation"),G++,X.containerState._closeFlow){if(X.containerState._closeFlow=void 0,Q)N();let E=X.events.length,m=E,w;while(m--)if(X.events[m][0]==="exit"&&X.events[m][1].type===F.chunkFlow){w=X.events[m][1].end;break}O(w,"could not find previous flow chunk"),R(G);let y=E;while(y<X.events.length)X.events[y][1].end={...w},y++;return B1(X.events,m+1,0,X.events.slice(E)),X.events.length=y,H(L)}return q(L)}function H(L){if(G===J.length){if(!Q)return B(L);if(Q.currentConstruct&&Q.currentConstruct.concrete)return M(L);X.interrupt=Boolean(Q.currentConstruct&&!Q._gfmTableDynamicInterruptHack)}return X.containerState={},Z.check(yJ,K,$)(L)}function K(L){if(Q)N();return R(G),B(L)}function $(L){return X.parser.lazy[X.now().line]=G!==J.length,W=X.now().offset,M(L)}function B(L){return X.containerState={},Z.attempt(yJ,V,M)(L)}function V(L){return O(X.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),O(X.containerState,"expected `containerState` to be defined on tokenizer"),G++,J.push([X.currentConstruct,X.containerState]),B(L)}function M(L){if(L===z.eof){if(Q)N();R(0),Z.consume(L);return}return Q=Q||X.parser.flow(X.now()),Z.enter(F.chunkFlow,{_tokenizer:Q,contentType:g.contentTypeFlow,previous:U}),_(L)}function _(L){if(L===z.eof){D(Z.exit(F.chunkFlow),!0),R(0),Z.consume(L);return}if(k(L))return Z.consume(L),D(Z.exit(F.chunkFlow)),G=0,X.interrupt=void 0,q;return Z.consume(L),_}function D(L,E){O(Q,"expected `childFlow` to be defined when continuing");let m=X.sliceStream(L);if(E)m.push(null);if(L.previous=U,U)U.next=L;if(U=L,Q.defineSkip(L.start),Q.write(m),X.parser.lazy[L.start.line]){let w=Q.events.length;while(w--)if(Q.events[w][1].start.offset<W&&(!Q.events[w][1].end||Q.events[w][1].end.offset>W))return;let y=X.events.length,h=y,j,P;while(h--)if(X.events[h][0]==="exit"&&X.events[h][1].type===F.chunkFlow){if(j){P=X.events[h][1].end;break}j=!0}O(P,"could not find previous flow chunk"),R(G),w=y;while(w<X.events.length)X.events[w][1].end={...P},w++;B1(X.events,h+1,0,X.events.slice(y)),X.events.length=w}}function R(L){let E=J.length;while(E-- >L){let m=J[E];X.containerState=m[1],O(m[0].exit,"expected `exit` to be defined on container construct"),m[0].exit.call(X,Z)}J.length=L}function N(){O(X.containerState,"expected `containerState` to be defined when closing flow"),O(Q,"expected `childFlow` to be defined when closing it"),Q.write([z.eof]),U=void 0,Q=void 0,X.containerState._closeFlow=void 0}}function Uz(Z,X,J){return O(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),l(Z,Z.attempt(this.parser.constructs.document,X,J),F.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:g.tabSize)}var vJ,yJ;var hJ=C(()=>{o();K1();Z1();C0();c();vJ={tokenize:Qz},yJ={tokenize:Uz}});function j0(Z){if(Z===z.eof||t(Z)||b1(Z))return g.characterGroupWhitespace;if(r1(Z))return g.characterGroupPunctuation}var u5=C(()=>{Z1();c()});function i0(Z,X,J){let G=[],Q=-1;while(++Q<Z.length){let U=Z[Q].resolveAll;if(U&&!G.includes(U))X=U(X,J),G.push(U)}return X}function Wz(Z,X){let J=-1,G,Q,U,W,q,Y,H,K;while(++J<Z.length)if(Z[J][0]==="enter"&&Z[J][1].type==="attentionSequence"&&Z[J][1]._close){G=J;while(G--)if(Z[G][0]==="exit"&&Z[G][1].type==="attentionSequence"&&Z[G][1]._open&&X.sliceSerialize(Z[G][1]).charCodeAt(0)===X.sliceSerialize(Z[J][1]).charCodeAt(0)){if((Z[G][1]._close||Z[J][1]._open)&&(Z[J][1].end.offset-Z[J][1].start.offset)%3&&!((Z[G][1].end.offset-Z[G][1].start.offset+Z[J][1].end.offset-Z[J][1].start.offset)%3))continue;Y=Z[G][1].end.offset-Z[G][1].start.offset>1&&Z[J][1].end.offset-Z[J][1].start.offset>1?2:1;let $={...Z[G][1].end},B={...Z[J][1].start};if(mJ($,-Y),mJ(B,Y),W={type:Y>1?F.strongSequence:F.emphasisSequence,start:$,end:{...Z[G][1].end}},q={type:Y>1?F.strongSequence:F.emphasisSequence,start:{...Z[J][1].start},end:B},U={type:Y>1?F.strongText:F.emphasisText,start:{...Z[G][1].end},end:{...Z[J][1].start}},Q={type:Y>1?F.strong:F.emphasis,start:{...W.start},end:{...q.end}},Z[G][1].end={...W.start},Z[J][1].start={...q.end},H=[],Z[G][1].end.offset-Z[G][1].start.offset)H=y1(H,[["enter",Z[G][1],X],["exit",Z[G][1],X]]);if(H=y1(H,[["enter",Q,X],["enter",W,X],["exit",W,X],["enter",U,X]]),O(X.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),H=y1(H,i0(X.parser.constructs.insideSpan.null,Z.slice(G+1,J),X)),H=y1(H,[["exit",U,X],["enter",q,X],["exit",q,X],["exit",Q,X]]),Z[J][1].end.offset-Z[J][1].start.offset)K=2,H=y1(H,[["enter",Z[J][1],X],["exit",Z[J][1],X]]);else K=0;B1(Z,G-1,J-G+3,H),J=G+H.length-K-2;break}}J=-1;while(++J<Z.length)if(Z[J][1].type==="attentionSequence")Z[J][1].type="data";return Z}function qz(Z,X){let J=this.parser.constructs.attentionMarkers.null,G=this.previous,Q=j0(G),U;return W;function W(Y){return O(Y===z.asterisk||Y===z.underscore,"expected asterisk or underscore"),U=Y,Z.enter("attentionSequence"),q(Y)}function q(Y){if(Y===U)return Z.consume(Y),q;let H=Z.exit("attentionSequence"),K=j0(Y);O(J,"expected `attentionMarkers` to be populated");let $=!K||K===g.characterGroupPunctuation&&Q||J.includes(Y),B=!Q||Q===g.characterGroupPunctuation&&K||J.includes(G);return H._open=Boolean(U===z.asterisk?$:$&&(Q||!B)),H._close=Boolean(U===z.asterisk?B:B&&(K||!$)),X(Y)}}function mJ(Z,X){Z.column+=X,Z.offset+=X,Z._bufferIndex+=X}var p7;var uJ=C(()=>{o();C0();u5();c();p7={name:"attention",resolveAll:Wz,tokenize:qz}});function Yz(Z,X,J){let G=0;return Q;function Q(V){return O(V===z.lessThan,"expected `<`"),Z.enter(F.autolink),Z.enter(F.autolinkMarker),Z.consume(V),Z.exit(F.autolinkMarker),Z.enter(F.autolinkProtocol),U}function U(V){if(L1(V))return Z.consume(V),W;if(V===z.atSign)return J(V);return H(V)}function W(V){if(V===z.plusSign||V===z.dash||V===z.dot||I1(V))return G=1,q(V);return H(V)}function q(V){if(V===z.colon)return Z.consume(V),G=0,Y;if((V===z.plusSign||V===z.dash||V===z.dot||I1(V))&&G++<g.autolinkSchemeSizeMax)return Z.consume(V),q;return G=0,H(V)}function Y(V){if(V===z.greaterThan)return Z.exit(F.autolinkProtocol),Z.enter(F.autolinkMarker),Z.consume(V),Z.exit(F.autolinkMarker),Z.exit(F.autolink),X;if(V===z.eof||V===z.space||V===z.lessThan||Y4(V))return J(V);return Z.consume(V),Y}function H(V){if(V===z.atSign)return Z.consume(V),K;if(SJ(V))return Z.consume(V),H;return J(V)}function K(V){return I1(V)?$(V):J(V)}function $(V){if(V===z.dot)return Z.consume(V),G=0,K;if(V===z.greaterThan)return Z.exit(F.autolinkProtocol).type=F.autolinkEmail,Z.enter(F.autolinkMarker),Z.consume(V),Z.exit(F.autolinkMarker),Z.exit(F.autolink),X;return B(V)}function B(V){if((V===z.dash||I1(V))&&G++<g.autolinkDomainSizeMax){let M=V===z.dash?B:$;return Z.consume(V),M}return J(V)}}var Y3;var pJ=C(()=>{o();Z1();c();Y3={name:"autolink",tokenize:Yz}});function Hz(Z,X,J){return G;function G(U){return d(U)?l(Z,Q,F.linePrefix)(U):Q(U)}function Q(U){return U===z.eof||k(U)?X(U):J(U)}}var B0;var p5=C(()=>{K1();Z1();c();B0={partial:!0,tokenize:Hz}});function Kz(Z,X,J){let G=this;return Q;function Q(W){if(W===z.greaterThan){let q=G.containerState;if(O(q,"expected `containerState` to be defined in container"),!q.open)Z.enter(F.blockQuote,{_container:!0}),q.open=!0;return Z.enter(F.blockQuotePrefix),Z.enter(F.blockQuoteMarker),Z.consume(W),Z.exit(F.blockQuoteMarker),U}return J(W)}function U(W){if(d(W))return Z.enter(F.blockQuotePrefixWhitespace),Z.consume(W),Z.exit(F.blockQuotePrefixWhitespace),Z.exit(F.blockQuotePrefix),X;return Z.exit(F.blockQuotePrefix),X(W)}}function $z(Z,X,J){let G=this;return Q;function Q(W){if(d(W))return O(G.parser.constructs.disable.null,"expected `disable.null` to be populated"),l(Z,U,F.linePrefix,G.parser.constructs.disable.null.includes("codeIndented")?void 0:g.tabSize)(W);return U(W)}function U(W){return Z.attempt(f5,X,J)(W)}}function zz(Z){Z.exit(F.blockQuote)}var f5;var fJ=C(()=>{o();K1();Z1();c();f5={continuation:{tokenize:$z},exit:zz,name:"blockQuote",tokenize:Kz}});function Vz(Z,X,J){return G;function G(U){return O(U===z.backslash,"expected `\\`"),Z.enter(F.characterEscape),Z.enter(F.escapeMarker),Z.consume(U),Z.exit(F.escapeMarker),Q}function Q(U){if(xJ(U))return Z.enter(F.characterEscapeValue),Z.consume(U),Z.exit(F.characterEscapeValue),Z.exit(F.characterEscape),X;return J(U)}}var l5;var lJ=C(()=>{o();Z1();c();l5={name:"characterEscape",tokenize:Vz}});function Bz(Z,X,J){let G=this,Q=0,U,W;return q;function q($){return O($===z.ampersand,"expected `&`"),Z.enter(F.characterReference),Z.enter(F.characterReferenceMarker),Z.consume($),Z.exit(F.characterReferenceMarker),Y}function Y($){if($===z.numberSign)return Z.enter(F.characterReferenceMarkerNumeric),Z.consume($),Z.exit(F.characterReferenceMarkerNumeric),H;return Z.enter(F.characterReferenceValue),U=g.characterReferenceNamedSizeMax,W=I1,K($)}function H($){if($===z.uppercaseX||$===z.lowercaseX)return Z.enter(F.characterReferenceMarkerHexadecimal),Z.consume($),Z.exit(F.characterReferenceMarkerHexadecimal),Z.enter(F.characterReferenceValue),U=g.characterReferenceHexadecimalSizeMax,W=bJ,K;return Z.enter(F.characterReferenceValue),U=g.characterReferenceDecimalSizeMax,W=u7,K($)}function K($){if($===z.semicolon&&Q){let B=Z.exit(F.characterReferenceValue);if(W===I1&&!T0(G.sliceSerialize(B)))return J($);return Z.enter(F.characterReferenceMarker),Z.consume($),Z.exit(F.characterReferenceMarker),Z.exit(F.characterReference),X}if(W($)&&Q++<U)return Z.consume($),K;return J($)}}var i5;var iJ=C(()=>{o();m7();Z1();c();i5={name:"characterReference",tokenize:Bz}});function Fz(Z,X,J){let G=this,Q={partial:!0,tokenize:m},U=0,W=0,q;return Y;function Y(w){return H(w)}function H(w){O(w===z.graveAccent||w===z.tilde,"expected `` ` `` or `~`");let y=G.events[G.events.length-1];return U=y&&y[1].type===F.linePrefix?y[2].sliceSerialize(y[1],!0).length:0,q=w,Z.enter(F.codeFenced),Z.enter(F.codeFencedFence),Z.enter(F.codeFencedFenceSequence),K(w)}function K(w){if(w===q)return W++,Z.consume(w),K;if(W<g.codeFencedSequenceSizeMin)return J(w);return Z.exit(F.codeFencedFenceSequence),d(w)?l(Z,$,F.whitespace)(w):$(w)}function $(w){if(w===z.eof||k(w))return Z.exit(F.codeFencedFence),G.interrupt?X(w):Z.check(dJ,_,E)(w);return Z.enter(F.codeFencedFenceInfo),Z.enter(F.chunkString,{contentType:g.contentTypeString}),B(w)}function B(w){if(w===z.eof||k(w))return Z.exit(F.chunkString),Z.exit(F.codeFencedFenceInfo),$(w);if(d(w))return Z.exit(F.chunkString),Z.exit(F.codeFencedFenceInfo),l(Z,V,F.whitespace)(w);if(w===z.graveAccent&&w===q)return J(w);return Z.consume(w),B}function V(w){if(w===z.eof||k(w))return $(w);return Z.enter(F.codeFencedFenceMeta),Z.enter(F.chunkString,{contentType:g.contentTypeString}),M(w)}function M(w){if(w===z.eof||k(w))return Z.exit(F.chunkString),Z.exit(F.codeFencedFenceMeta),$(w);if(w===z.graveAccent&&w===q)return J(w);return Z.consume(w),M}function _(w){return O(k(w),"expected eol"),Z.attempt(Q,E,D)(w)}function D(w){return O(k(w),"expected eol"),Z.enter(F.lineEnding),Z.consume(w),Z.exit(F.lineEnding),R}function R(w){return U>0&&d(w)?l(Z,N,F.linePrefix,U+1)(w):N(w)}function N(w){if(w===z.eof||k(w))return Z.check(dJ,_,E)(w);return Z.enter(F.codeFlowValue),L(w)}function L(w){if(w===z.eof||k(w))return Z.exit(F.codeFlowValue),N(w);return Z.consume(w),L}function E(w){return Z.exit(F.codeFenced),X(w)}function m(w,y,h){let j=0;return P;function P(T){return O(k(T),"expected eol"),w.enter(F.lineEnding),w.consume(T),w.exit(F.lineEnding),n}function n(T){return O(G.parser.constructs.disable.null,"expected `disable.null` to be populated"),w.enter(F.codeFencedFence),d(T)?l(w,a,F.linePrefix,G.parser.constructs.disable.null.includes("codeIndented")?void 0:g.tabSize)(T):a(T)}function a(T){if(T===q)return w.enter(F.codeFencedFenceSequence),v(T);return h(T)}function v(T){if(T===q)return j++,w.consume(T),v;if(j>=W)return w.exit(F.codeFencedFenceSequence),d(T)?l(w,f,F.whitespace)(T):f(T);return h(T)}function f(T){if(T===z.eof||k(T))return w.exit(F.codeFencedFence),y(T);return h(T)}}}function Mz(Z,X,J){let G=this;return Q;function Q(W){if(W===z.eof)return J(W);return O(k(W),"expected eol"),Z.enter(F.lineEnding),Z.consume(W),Z.exit(F.lineEnding),U}function U(W){return G.parser.lazy[G.now().line]?J(W):X(W)}}var dJ,d5;var rJ=C(()=>{o();K1();Z1();c();dJ={partial:!0,tokenize:Mz},d5={concrete:!0,name:"codeFenced",tokenize:Fz}});function _z(Z,X,J){let G=this;return Q;function Q(H){return O(d(H)),Z.enter(F.codeIndented),l(Z,U,F.linePrefix,g.tabSize+1)(H)}function U(H){let K=G.events[G.events.length-1];return K&&K[1].type===F.linePrefix&&K[2].sliceSerialize(K[1],!0).length>=g.tabSize?W(H):J(H)}function W(H){if(H===z.eof)return Y(H);if(k(H))return Z.attempt(Dz,W,Y)(H);return Z.enter(F.codeFlowValue),q(H)}function q(H){if(H===z.eof||k(H))return Z.exit(F.codeFlowValue),W(H);return Z.consume(H),q}function Y(H){return Z.exit(F.codeIndented),X(H)}}function Rz(Z,X,J){let G=this;return Q;function Q(W){if(G.parser.lazy[G.now().line])return J(W);if(k(W))return Z.enter(F.lineEnding),Z.consume(W),Z.exit(F.lineEnding),Q;return l(Z,U,F.linePrefix,g.tabSize+1)(W)}function U(W){let q=G.events[G.events.length-1];return q&&q[1].type===F.linePrefix&&q[2].sliceSerialize(q[1],!0).length>=g.tabSize?X(W):k(W)?Q(W):J(W)}}var f7,Dz;var cJ=C(()=>{o();K1();Z1();c();f7={name:"codeIndented",tokenize:_z},Dz={partial:!0,tokenize:Rz}});function Oz(Z){let X=Z.length-4,J=3,G,Q;if((Z[J][1].type===F.lineEnding||Z[J][1].type==="space")&&(Z[X][1].type===F.lineEnding||Z[X][1].type==="space")){G=J;while(++G<X)if(Z[G][1].type===F.codeTextData){Z[J][1].type=F.codeTextPadding,Z[X][1].type=F.codeTextPadding,J+=2,X-=2;break}}G=J-1,X++;while(++G<=X)if(Q===void 0){if(G!==X&&Z[G][1].type!==F.lineEnding)Q=G}else if(G===X||Z[G][1].type===F.lineEnding){if(Z[Q][1].type=F.codeTextData,G!==Q+2)Z[Q][1].end=Z[G-1][1].end,Z.splice(Q+2,G-Q-2),X-=G-Q-2,G=Q+2;Q=void 0}return Z}function nJ(Z){return Z!==z.graveAccent||this.events[this.events.length-1][1].type===F.characterEscape}function Nz(Z,X,J){let G=this,Q=0,U,W;return q;function q(B){return O(B===z.graveAccent,"expected `` ` ``"),O(nJ.call(G,G.previous),"expected correct previous"),Z.enter(F.codeText),Z.enter(F.codeTextSequence),Y(B)}function Y(B){if(B===z.graveAccent)return Z.consume(B),Q++,Y;return Z.exit(F.codeTextSequence),H(B)}function H(B){if(B===z.eof)return J(B);if(B===z.space)return Z.enter("space"),Z.consume(B),Z.exit("space"),H;if(B===z.graveAccent)return W=Z.enter(F.codeTextSequence),U=0,$(B);if(k(B))return Z.enter(F.lineEnding),Z.consume(B),Z.exit(F.lineEnding),H;return Z.enter(F.codeTextData),K(B)}function K(B){if(B===z.eof||B===z.space||B===z.graveAccent||k(B))return Z.exit(F.codeTextData),H(B);return Z.consume(B),K}function $(B){if(B===z.graveAccent)return Z.consume(B),U++,$;if(U===Q)return Z.exit(F.codeTextSequence),Z.exit(F.codeText),X(B);return W.type=F.codeTextData,K(B)}}var H3;var aJ=C(()=>{o();Z1();c();H3={name:"codeText",previous:nJ,resolve:Oz,tokenize:Nz}});class K3{constructor(Z){this.left=Z?[...Z]:[],this.right=[]}get(Z){if(Z<0||Z>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+Z+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");if(Z<this.left.length)return this.left[Z];return this.right[this.right.length-Z+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(Z,X){let J=X===null||X===void 0?Number.POSITIVE_INFINITY:X;if(J<this.left.length)return this.left.slice(Z,J);if(Z>this.left.length)return this.right.slice(this.right.length-J+this.left.length,this.right.length-Z+this.left.length).reverse();return this.left.slice(Z).concat(this.right.slice(this.right.length-J+this.left.length).reverse())}splice(Z,X,J){let G=X||0;this.setCursor(Math.trunc(Z));let Q=this.right.splice(this.right.length-G,Number.POSITIVE_INFINITY);if(J)l7(this.left,J);return Q.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(Z){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(Z)}pushMany(Z){this.setCursor(Number.POSITIVE_INFINITY),l7(this.left,Z)}unshift(Z){this.setCursor(0),this.right.push(Z)}unshiftMany(Z){this.setCursor(0),l7(this.right,Z.reverse())}setCursor(Z){if(Z===this.left.length||Z>this.left.length&&this.right.length===0||Z<0&&this.left.length===0)return;if(Z<this.left.length){let X=this.left.splice(Z,Number.POSITIVE_INFINITY);l7(this.right,X.reverse())}else{let X=this.right.splice(this.left.length+this.right.length-Z,Number.POSITIVE_INFINITY);l7(this.left,X.reverse())}}}function l7(Z,X){let J=0;if(X.length<g.v8MaxSafeChunkSize)Z.push(...X);else while(J<X.length)Z.push(...X.slice(J,J+g.v8MaxSafeChunkSize)),J+=g.v8MaxSafeChunkSize}var sJ=C(()=>{c()});function r5(Z){let X={},J=-1,G,Q,U,W,q,Y,H,K=new K3(Z);while(++J<K.length){while(J in X)J=X[J];if(G=K.get(J),J&&G[1].type===F.chunkFlow&&K.get(J-1)[1].type===F.listItemPrefix){if(O(G[1]._tokenizer,"expected `_tokenizer` on subtokens"),Y=G[1]._tokenizer.events,U=0,U<Y.length&&Y[U][1].type===F.lineEndingBlank)U+=2;if(U<Y.length&&Y[U][1].type===F.content)while(++U<Y.length){if(Y[U][1].type===F.content)break;if(Y[U][1].type===F.chunkText)Y[U][1]._isInFirstContentOfListItem=!0,U++}}if(G[0]==="enter"){if(G[1].contentType)Object.assign(X,Lz(K,J)),J=X[J],H=!0}else if(G[1]._container){U=J,Q=void 0;while(U--)if(W=K.get(U),W[1].type===F.lineEnding||W[1].type===F.lineEndingBlank){if(W[0]==="enter"){if(Q)K.get(Q)[1].type=F.lineEndingBlank;W[1].type=F.lineEnding,Q=U}}else if(W[1].type===F.linePrefix||W[1].type===F.listItemIndent);else break;if(Q)G[1].end={...K.get(Q)[1].start},q=K.slice(Q,J),q.unshift(G),K.splice(Q,J-Q+1,q)}}return B1(Z,0,Number.POSITIVE_INFINITY,K.slice(0)),!H}function Lz(Z,X){let J=Z.get(X)[1],G=Z.get(X)[2],Q=X-1,U=[];O(J.contentType,"expected `contentType` on subtokens");let W=J._tokenizer;if(!W){if(W=G.parser[J.contentType](J.start),J._contentTypeTextTrailing)W._contentTypeTextTrailing=!0}let q=W.events,Y=[],H={},K,$,B=-1,V=J,M=0,_=0,D=[_];while(V){while(Z.get(++Q)[1]!==V);if(O(!$||V.previous===$,"expected previous to match"),O(!$||$.next===V,"expected next to match"),U.push(Q),!V._tokenizer){if(K=G.sliceStream(V),!V.next)K.push(z.eof);if($)W.defineSkip(V.start);if(V._isInFirstContentOfListItem)W._gfmTasklistFirstContentOfListItem=!0;if(W.write(K),V._isInFirstContentOfListItem)W._gfmTasklistFirstContentOfListItem=void 0}$=V,V=V.next}V=J;while(++B<q.length)if(q[B][0]==="exit"&&q[B-1][0]==="enter"&&q[B][1].type===q[B-1][1].type&&q[B][1].start.line!==q[B][1].end.line)O(V,"expected a current token"),_=B+1,D.push(_),V._tokenizer=void 0,V.previous=void 0,V=V.next;if(W.events=[],V)V._tokenizer=void 0,V.previous=void 0,O(!V.next,"expected no next token");else D.pop();B=D.length;while(B--){let R=q.slice(D[B],D[B+1]),N=U.pop();O(N!==void 0,"expected a start position when splicing"),Y.push([N,N+R.length-1]),Z.splice(N,2,R)}Y.reverse(),B=-1;while(++B<Y.length)H[M+Y[B][0]]=M+Y[B][1],M+=Y[B][1]-Y[B][0]-1;return H}var $3=C(()=>{o();C0();c();sJ()});function Az(Z){return r5(Z),Z}function Pz(Z,X){let J;return G;function G(q){return O(q!==z.eof&&!k(q),"expected no eof or eol"),Z.enter(F.content),J=Z.enter(F.chunkContent,{contentType:g.contentTypeContent}),Q(q)}function Q(q){if(q===z.eof)return U(q);if(k(q))return Z.check(Iz,W,U)(q);return Z.consume(q),Q}function U(q){return Z.exit(F.chunkContent),Z.exit(F.content),X(q)}function W(q){return O(k(q),"expected eol"),Z.consume(q),Z.exit(F.chunkContent),O(J,"expected previous token"),J.next=Z.enter(F.chunkContent,{contentType:g.contentTypeContent,previous:J}),J=J.next,Q}}function wz(Z,X,J){let G=this;return Q;function Q(W){return O(k(W),"expected a line ending"),Z.exit(F.chunkContent),Z.enter(F.lineEnding),Z.consume(W),Z.exit(F.lineEnding),l(Z,U,F.linePrefix)}function U(W){if(W===z.eof||k(W))return J(W);O(G.parser.constructs.disable.null,"expected `disable.null` to be populated");let q=G.events[G.events.length-1];if(!G.parser.constructs.disable.null.includes("codeIndented")&&q&&q[1].type===F.linePrefix&&q[2].sliceSerialize(q[1],!0).length>=g.tabSize)return X(W);return Z.interrupt(G.parser.constructs.flow,J,X)(W)}}var z3,Iz;var oJ=C(()=>{o();K1();Z1();$3();c();z3={resolve:Az,tokenize:Pz},Iz={partial:!0,tokenize:wz}});function c5(Z,X,J,G,Q,U,W,q,Y){let H=Y||Number.POSITIVE_INFINITY,K=0;return $;function $(R){if(R===z.lessThan)return Z.enter(G),Z.enter(Q),Z.enter(U),Z.consume(R),Z.exit(U),B;if(R===z.eof||R===z.space||R===z.rightParenthesis||Y4(R))return J(R);return Z.enter(G),Z.enter(W),Z.enter(q),Z.enter(F.chunkString,{contentType:g.contentTypeString}),_(R)}function B(R){if(R===z.greaterThan)return Z.enter(U),Z.consume(R),Z.exit(U),Z.exit(Q),Z.exit(G),X;return Z.enter(q),Z.enter(F.chunkString,{contentType:g.contentTypeString}),V(R)}function V(R){if(R===z.greaterThan)return Z.exit(F.chunkString),Z.exit(q),B(R);if(R===z.eof||R===z.lessThan||k(R))return J(R);return Z.consume(R),R===z.backslash?M:V}function M(R){if(R===z.lessThan||R===z.greaterThan||R===z.backslash)return Z.consume(R),V;return V(R)}function _(R){if(!K&&(R===z.eof||R===z.rightParenthesis||t(R)))return Z.exit(F.chunkString),Z.exit(q),Z.exit(W),Z.exit(G),X(R);if(K<H&&R===z.leftParenthesis)return Z.consume(R),K++,_;if(R===z.rightParenthesis)return Z.consume(R),K--,_;if(R===z.eof||R===z.space||R===z.leftParenthesis||Y4(R))return J(R);return Z.consume(R),R===z.backslash?D:_}function D(R){if(R===z.leftParenthesis||R===z.rightParenthesis||R===z.backslash)return Z.consume(R),_;return _(R)}}var V3=C(()=>{Z1();c()});function n5(Z,X,J,G,Q,U){let W=this,q=0,Y;return H;function H(V){return O(V===z.leftSquareBracket,"expected `[`"),Z.enter(G),Z.enter(Q),Z.consume(V),Z.exit(Q),Z.enter(U),K}function K(V){if(q>g.linkReferenceSizeMax||V===z.eof||V===z.leftSquareBracket||V===z.rightSquareBracket&&!Y||V===z.caret&&!q&&"_hiddenFootnoteSupport"in W.parser.constructs)return J(V);if(V===z.rightSquareBracket)return Z.exit(U),Z.enter(Q),Z.consume(V),Z.exit(Q),Z.exit(G),X;if(k(V))return Z.enter(F.lineEnding),Z.consume(V),Z.exit(F.lineEnding),K;return Z.enter(F.chunkString,{contentType:g.contentTypeString}),$(V)}function $(V){if(V===z.eof||V===z.leftSquareBracket||V===z.rightSquareBracket||k(V)||q++>g.linkReferenceSizeMax)return Z.exit(F.chunkString),K(V);if(Z.consume(V),!Y)Y=!d(V);return V===z.backslash?B:$}function B(V){if(V===z.leftSquareBracket||V===z.backslash||V===z.rightSquareBracket)return Z.consume(V),q++,$;return $(V)}}var B3=C(()=>{o();Z1();c()});function a5(Z,X,J,G,Q,U){let W;return q;function q(B){if(B===z.quotationMark||B===z.apostrophe||B===z.leftParenthesis)return Z.enter(G),Z.enter(Q),Z.consume(B),Z.exit(Q),W=B===z.leftParenthesis?z.rightParenthesis:B,Y;return J(B)}function Y(B){if(B===W)return Z.enter(Q),Z.consume(B),Z.exit(Q),Z.exit(G),X;return Z.enter(U),H(B)}function H(B){if(B===W)return Z.exit(U),Y(W);if(B===z.eof)return J(B);if(k(B))return Z.enter(F.lineEnding),Z.consume(B),Z.exit(F.lineEnding),l(Z,H,F.linePrefix);return Z.enter(F.chunkString,{contentType:g.contentTypeString}),K(B)}function K(B){if(B===W||B===z.eof||k(B))return Z.exit(F.chunkString),H(B);return Z.consume(B),B===z.backslash?$:K}function $(B){if(B===W||B===z.backslash)return Z.consume(B),K;return K(B)}}var F3=C(()=>{K1();Z1();c()});function Z0(Z,X){let J;return G;function G(Q){if(k(Q))return Z.enter(F.lineEnding),Z.consume(Q),Z.exit(F.lineEnding),J=!0,G;if(d(Q))return l(Z,G,J?F.linePrefix:F.lineSuffix)(Q);return X(Q)}}var s5=C(()=>{K1();Z1();c()});function Cz(Z,X,J){let G=this,Q;return U;function U(V){return Z.enter(F.definition),W(V)}function W(V){return O(V===z.leftSquareBracket,"expected `[`"),n5.call(G,Z,q,J,F.definitionLabel,F.definitionLabelMarker,F.definitionLabelString)(V)}function q(V){if(Q=S1(G.sliceSerialize(G.events[G.events.length-1][1]).slice(1,-1)),V===z.colon)return Z.enter(F.definitionMarker),Z.consume(V),Z.exit(F.definitionMarker),Y;return J(V)}function Y(V){return t(V)?Z0(Z,H)(V):H(V)}function H(V){return c5(Z,K,J,F.definitionDestination,F.definitionDestinationLiteral,F.definitionDestinationLiteralMarker,F.definitionDestinationRaw,F.definitionDestinationString)(V)}function K(V){return Z.attempt(Tz,$,$)(V)}function $(V){return d(V)?l(Z,B,F.whitespace)(V):B(V)}function B(V){if(V===z.eof||k(V))return Z.exit(F.definition),G.parser.defined.push(Q),X(V);return J(V)}}function jz(Z,X,J){return G;function G(q){return t(q)?Z0(Z,Q)(q):J(q)}function Q(q){return a5(Z,U,J,F.definitionTitle,F.definitionTitleMarker,F.definitionTitleString)(q)}function U(q){return d(q)?l(Z,W,F.whitespace)(q):W(q)}function W(q){return q===z.eof||k(q)?X(q):J(q)}}var M3,Tz;var tJ=C(()=>{o();V3();B3();K1();F3();s5();Z1();p4();c();M3={name:"definition",tokenize:Cz},Tz={partial:!0,tokenize:jz}});function Ez(Z,X,J){return G;function G(U){return O(U===z.backslash,"expected `\\`"),Z.enter(F.hardBreakEscape),Z.consume(U),Q}function Q(U){if(k(U))return Z.exit(F.hardBreakEscape),X(U);return J(U)}}var D3;var eJ=C(()=>{o();Z1();c();D3={name:"hardBreakEscape",tokenize:Ez}});function Sz(Z,X){let J=Z.length-2,G=3,Q,U;if(Z[G][1].type===F.whitespace)G+=2;if(J-2>G&&Z[J][1].type===F.whitespace)J-=2;if(Z[J][1].type===F.atxHeadingSequence&&(G===J-1||J-4>G&&Z[J-2][1].type===F.whitespace))J-=G+1===J?2:4;if(J>G)Q={type:F.atxHeadingText,start:Z[G][1].start,end:Z[J][1].end},U={type:F.chunkText,start:Z[G][1].start,end:Z[J][1].end,contentType:g.contentTypeText},B1(Z,G,J-G+1,[["enter",Q,X],["enter",U,X],["exit",U,X],["exit",Q,X]]);return Z}function bz(Z,X,J){let G=0;return Q;function Q(K){return Z.enter(F.atxHeading),U(K)}function U(K){return O(K===z.numberSign,"expected `#`"),Z.enter(F.atxHeadingSequence),W(K)}function W(K){if(K===z.numberSign&&G++<g.atxHeadingOpeningFenceSizeMax)return Z.consume(K),W;if(K===z.eof||t(K))return Z.exit(F.atxHeadingSequence),q(K);return J(K)}function q(K){if(K===z.numberSign)return Z.enter(F.atxHeadingSequence),Y(K);if(K===z.eof||k(K))return Z.exit(F.atxHeading),X(K);if(d(K))return l(Z,q,F.whitespace)(K);return Z.enter(F.atxHeadingText),H(K)}function Y(K){if(K===z.numberSign)return Z.consume(K),Y;return Z.exit(F.atxHeadingSequence),q(K)}function H(K){if(K===z.eof||K===z.numberSign||t(K))return Z.exit(F.atxHeadingText),q(K);return Z.consume(K),H}}var _3;var ZG=C(()=>{o();K1();Z1();C0();c();_3={name:"headingAtx",resolve:Sz,tokenize:bz}});var XG,R3;var JG=C(()=>{XG=["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"],R3=["pre","script","style","textarea"]});function kz(Z){let X=Z.length;while(X--)if(Z[X][0]==="enter"&&Z[X][1].type===F.htmlFlow)break;if(X>1&&Z[X-2][1].type===F.linePrefix)Z[X][1].start=Z[X-2][1].start,Z[X+1][1].start=Z[X-2][1].start,Z.splice(X-2,2);return Z}function yz(Z,X,J){let G=this,Q,U,W,q,Y;return H;function H(A){return K(A)}function K(A){return O(A===z.lessThan,"expected `<`"),Z.enter(F.htmlFlow),Z.enter(F.htmlFlowData),Z.consume(A),$}function $(A){if(A===z.exclamationMark)return Z.consume(A),B;if(A===z.slash)return Z.consume(A),U=!0,_;if(A===z.questionMark)return Z.consume(A),Q=g.htmlInstruction,G.interrupt?X:I;if(L1(A))return O(A!==null),Z.consume(A),W=String.fromCharCode(A),D;return J(A)}function B(A){if(A===z.dash)return Z.consume(A),Q=g.htmlComment,V;if(A===z.leftSquareBracket)return Z.consume(A),Q=g.htmlCdata,q=0,M;if(L1(A))return Z.consume(A),Q=g.htmlDeclaration,G.interrupt?X:I;return J(A)}function V(A){if(A===z.dash)return Z.consume(A),G.interrupt?X:I;return J(A)}function M(A){let f1=g.cdataOpeningString;if(A===f1.charCodeAt(q++)){if(Z.consume(A),q===f1.length)return G.interrupt?X:a;return M}return J(A)}function _(A){if(L1(A))return O(A!==null),Z.consume(A),W=String.fromCharCode(A),D;return J(A)}function D(A){if(A===z.eof||A===z.slash||A===z.greaterThan||t(A)){let f1=A===z.slash,Z4=W.toLowerCase();if(!f1&&!U&&R3.includes(Z4))return Q=g.htmlRaw,G.interrupt?X(A):a(A);if(XG.includes(W.toLowerCase())){if(Q=g.htmlBasic,f1)return Z.consume(A),R;return G.interrupt?X(A):a(A)}return Q=g.htmlComplete,G.interrupt&&!G.parser.lazy[G.now().line]?J(A):U?N(A):L(A)}if(A===z.dash||I1(A))return Z.consume(A),W+=String.fromCharCode(A),D;return J(A)}function R(A){if(A===z.greaterThan)return Z.consume(A),G.interrupt?X:a;return J(A)}function N(A){if(d(A))return Z.consume(A),N;return P(A)}function L(A){if(A===z.slash)return Z.consume(A),P;if(A===z.colon||A===z.underscore||L1(A))return Z.consume(A),E;if(d(A))return Z.consume(A),L;return P(A)}function E(A){if(A===z.dash||A===z.dot||A===z.colon||A===z.underscore||I1(A))return Z.consume(A),E;return m(A)}function m(A){if(A===z.equalsTo)return Z.consume(A),w;if(d(A))return Z.consume(A),m;return L(A)}function w(A){if(A===z.eof||A===z.lessThan||A===z.equalsTo||A===z.greaterThan||A===z.graveAccent)return J(A);if(A===z.quotationMark||A===z.apostrophe)return Z.consume(A),Y=A,y;if(d(A))return Z.consume(A),w;return h(A)}function y(A){if(A===Y)return Z.consume(A),Y=null,j;if(A===z.eof||k(A))return J(A);return Z.consume(A),y}function h(A){if(A===z.eof||A===z.quotationMark||A===z.apostrophe||A===z.slash||A===z.lessThan||A===z.equalsTo||A===z.greaterThan||A===z.graveAccent||t(A))return m(A);return Z.consume(A),h}function j(A){if(A===z.slash||A===z.greaterThan||d(A))return L(A);return J(A)}function P(A){if(A===z.greaterThan)return Z.consume(A),n;return J(A)}function n(A){if(A===z.eof||k(A))return a(A);if(d(A))return Z.consume(A),n;return J(A)}function a(A){if(A===z.dash&&Q===g.htmlComment)return Z.consume(A),e;if(A===z.lessThan&&Q===g.htmlRaw)return Z.consume(A),_1;if(A===z.greaterThan&&Q===g.htmlDeclaration)return Z.consume(A),s1;if(A===z.questionMark&&Q===g.htmlInstruction)return Z.consume(A),I;if(A===z.rightSquareBracket&&Q===g.htmlCdata)return Z.consume(A),q0;if(k(A)&&(Q===g.htmlBasic||Q===g.htmlComplete))return Z.exit(F.htmlFlowData),Z.check(xz,O0,v)(A);if(A===z.eof||k(A))return Z.exit(F.htmlFlowData),v(A);return Z.consume(A),a}function v(A){return Z.check(gz,f,O0)(A)}function f(A){return O(k(A)),Z.enter(F.lineEnding),Z.consume(A),Z.exit(F.lineEnding),T}function T(A){if(A===z.eof||k(A))return v(A);return Z.enter(F.htmlFlowData),a(A)}function e(A){if(A===z.dash)return Z.consume(A),I;return a(A)}function _1(A){if(A===z.slash)return Z.consume(A),W="",a1;return a(A)}function a1(A){if(A===z.greaterThan){let f1=W.toLowerCase();if(R3.includes(f1))return Z.consume(A),s1;return a(A)}if(L1(A)&&W.length<g.htmlRawSizeMax)return O(A!==null),Z.consume(A),W+=String.fromCharCode(A),a1;return a(A)}function q0(A){if(A===z.rightSquareBracket)return Z.consume(A),I;return a(A)}function I(A){if(A===z.greaterThan)return Z.consume(A),s1;if(A===z.dash&&Q===g.htmlComment)return Z.consume(A),I;return a(A)}function s1(A){if(A===z.eof||k(A))return Z.exit(F.htmlFlowData),O0(A);return Z.consume(A),s1}function O0(A){return Z.exit(F.htmlFlow),X(A)}}function vz(Z,X,J){let G=this;return Q;function Q(W){if(k(W))return Z.enter(F.lineEnding),Z.consume(W),Z.exit(F.lineEnding),U;return J(W)}function U(W){return G.parser.lazy[G.now().line]?J(W):X(W)}}function hz(Z,X,J){return G;function G(Q){return O(k(Q),"expected a line ending"),Z.enter(F.lineEnding),Z.consume(Q),Z.exit(F.lineEnding),Z.attempt(B0,X,J)}}var O3,xz,gz;var GG=C(()=>{o();Z1();JG();c();p5();O3={concrete:!0,name:"htmlFlow",resolveTo:kz,tokenize:yz},xz={partial:!0,tokenize:hz},gz={partial:!0,tokenize:vz}});function mz(Z,X,J){let G=this,Q,U,W;return q;function q(I){return O(I===z.lessThan,"expected `<`"),Z.enter(F.htmlText),Z.enter(F.htmlTextData),Z.consume(I),Y}function Y(I){if(I===z.exclamationMark)return Z.consume(I),H;if(I===z.slash)return Z.consume(I),m;if(I===z.questionMark)return Z.consume(I),L;if(L1(I))return Z.consume(I),h;return J(I)}function H(I){if(I===z.dash)return Z.consume(I),K;if(I===z.leftSquareBracket)return Z.consume(I),U=0,M;if(L1(I))return Z.consume(I),N;return J(I)}function K(I){if(I===z.dash)return Z.consume(I),V;return J(I)}function $(I){if(I===z.eof)return J(I);if(I===z.dash)return Z.consume(I),B;if(k(I))return W=$,_1(I);return Z.consume(I),$}function B(I){if(I===z.dash)return Z.consume(I),V;return $(I)}function V(I){return I===z.greaterThan?e(I):I===z.dash?B(I):$(I)}function M(I){let s1=g.cdataOpeningString;if(I===s1.charCodeAt(U++))return Z.consume(I),U===s1.length?_:M;return J(I)}function _(I){if(I===z.eof)return J(I);if(I===z.rightSquareBracket)return Z.consume(I),D;if(k(I))return W=_,_1(I);return Z.consume(I),_}function D(I){if(I===z.rightSquareBracket)return Z.consume(I),R;return _(I)}function R(I){if(I===z.greaterThan)return e(I);if(I===z.rightSquareBracket)return Z.consume(I),R;return _(I)}function N(I){if(I===z.eof||I===z.greaterThan)return e(I);if(k(I))return W=N,_1(I);return Z.consume(I),N}function L(I){if(I===z.eof)return J(I);if(I===z.questionMark)return Z.consume(I),E;if(k(I))return W=L,_1(I);return Z.consume(I),L}function E(I){return I===z.greaterThan?e(I):L(I)}function m(I){if(L1(I))return Z.consume(I),w;return J(I)}function w(I){if(I===z.dash||I1(I))return Z.consume(I),w;return y(I)}function y(I){if(k(I))return W=y,_1(I);if(d(I))return Z.consume(I),y;return e(I)}function h(I){if(I===z.dash||I1(I))return Z.consume(I),h;if(I===z.slash||I===z.greaterThan||t(I))return j(I);return J(I)}function j(I){if(I===z.slash)return Z.consume(I),e;if(I===z.colon||I===z.underscore||L1(I))return Z.consume(I),P;if(k(I))return W=j,_1(I);if(d(I))return Z.consume(I),j;return e(I)}function P(I){if(I===z.dash||I===z.dot||I===z.colon||I===z.underscore||I1(I))return Z.consume(I),P;return n(I)}function n(I){if(I===z.equalsTo)return Z.consume(I),a;if(k(I))return W=n,_1(I);if(d(I))return Z.consume(I),n;return j(I)}function a(I){if(I===z.eof||I===z.lessThan||I===z.equalsTo||I===z.greaterThan||I===z.graveAccent)return J(I);if(I===z.quotationMark||I===z.apostrophe)return Z.consume(I),Q=I,v;if(k(I))return W=a,_1(I);if(d(I))return Z.consume(I),a;return Z.consume(I),f}function v(I){if(I===Q)return Z.consume(I),Q=void 0,T;if(I===z.eof)return J(I);if(k(I))return W=v,_1(I);return Z.consume(I),v}function f(I){if(I===z.eof||I===z.quotationMark||I===z.apostrophe||I===z.lessThan||I===z.equalsTo||I===z.graveAccent)return J(I);if(I===z.slash||I===z.greaterThan||t(I))return j(I);return Z.consume(I),f}function T(I){if(I===z.slash||I===z.greaterThan||t(I))return j(I);return J(I)}function e(I){if(I===z.greaterThan)return Z.consume(I),Z.exit(F.htmlTextData),Z.exit(F.htmlText),X;return J(I)}function _1(I){return O(W,"expected return state"),O(k(I),"expected eol"),Z.exit(F.htmlTextData),Z.enter(F.lineEnding),Z.consume(I),Z.exit(F.lineEnding),a1}function a1(I){return O(G.parser.constructs.disable.null,"expected `disable.null` to be populated"),d(I)?l(Z,q0,F.linePrefix,G.parser.constructs.disable.null.includes("codeIndented")?void 0:g.tabSize)(I):q0(I)}function q0(I){return Z.enter(F.htmlTextData),W(I)}}var N3;var QG=C(()=>{o();K1();Z1();c();N3={name:"htmlText",tokenize:mz}});function lz(Z){let X=-1,J=[];while(++X<Z.length){let G=Z[X][1];if(J.push(Z[X]),G.type===F.labelImage||G.type===F.labelLink||G.type===F.labelEnd){let Q=G.type===F.labelImage?4:2;G.type=F.data,X+=Q}}if(Z.length!==J.length)B1(Z,0,Z.length,J);return Z}function iz(Z,X){let J=Z.length,G=0,Q,U,W,q;while(J--)if(Q=Z[J][1],U){if(Q.type===F.link||Q.type===F.labelLink&&Q._inactive)break;if(Z[J][0]==="enter"&&Q.type===F.labelLink)Q._inactive=!0}else if(W){if(Z[J][0]==="enter"&&(Q.type===F.labelImage||Q.type===F.labelLink)&&!Q._balanced){if(U=J,Q.type!==F.labelLink){G=2;break}}}else if(Q.type===F.labelEnd)W=J;O(U!==void 0,"`open` is supposed to be found"),O(W!==void 0,"`close` is supposed to be found");let Y={type:Z[U][1].type===F.labelLink?F.link:F.image,start:{...Z[U][1].start},end:{...Z[Z.length-1][1].end}},H={type:F.label,start:{...Z[U][1].start},end:{...Z[W][1].end}},K={type:F.labelText,start:{...Z[U+G+2][1].end},end:{...Z[W-2][1].start}};return q=[["enter",Y,X],["enter",H,X]],q=y1(q,Z.slice(U+1,U+G+3)),q=y1(q,[["enter",K,X]]),O(X.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),q=y1(q,i0(X.parser.constructs.insideSpan.null,Z.slice(U+G+4,W-3),X)),q=y1(q,[["exit",K,X],Z[W-2],Z[W-1],["exit",H,X]]),q=y1(q,Z.slice(W+1)),q=y1(q,[["exit",Y,X]]),B1(Z,U,Z.length,q),Z}function dz(Z,X,J){let G=this,Q=G.events.length,U,W;while(Q--)if((G.events[Q][1].type===F.labelImage||G.events[Q][1].type===F.labelLink)&&!G.events[Q][1]._balanced){U=G.events[Q][1];break}return q;function q(B){if(O(B===z.rightSquareBracket,"expected `]`"),!U)return J(B);if(U._inactive)return $(B);return W=G.parser.defined.includes(S1(G.sliceSerialize({start:U.end,end:G.now()}))),Z.enter(F.labelEnd),Z.enter(F.labelMarker),Z.consume(B),Z.exit(F.labelMarker),Z.exit(F.labelEnd),Y}function Y(B){if(B===z.leftParenthesis)return Z.attempt(uz,K,W?K:$)(B);if(B===z.leftSquareBracket)return Z.attempt(pz,K,W?H:$)(B);return W?K(B):$(B)}function H(B){return Z.attempt(fz,K,$)(B)}function K(B){return X(B)}function $(B){return U._balanced=!0,J(B)}}function rz(Z,X,J){return G;function G($){return O($===z.leftParenthesis,"expected left paren"),Z.enter(F.resource),Z.enter(F.resourceMarker),Z.consume($),Z.exit(F.resourceMarker),Q}function Q($){return t($)?Z0(Z,U)($):U($)}function U($){if($===z.rightParenthesis)return K($);return c5(Z,W,q,F.resourceDestination,F.resourceDestinationLiteral,F.resourceDestinationLiteralMarker,F.resourceDestinationRaw,F.resourceDestinationString,g.linkResourceDestinationBalanceMax)($)}function W($){return t($)?Z0(Z,Y)($):K($)}function q($){return J($)}function Y($){if($===z.quotationMark||$===z.apostrophe||$===z.leftParenthesis)return a5(Z,H,J,F.resourceTitle,F.resourceTitleMarker,F.resourceTitleString)($);return K($)}function H($){return t($)?Z0(Z,K)($):K($)}function K($){if($===z.rightParenthesis)return Z.enter(F.resourceMarker),Z.consume($),Z.exit(F.resourceMarker),Z.exit(F.resource),X;return J($)}}function cz(Z,X,J){let G=this;return Q;function Q(q){return O(q===z.leftSquareBracket,"expected left bracket"),n5.call(G,Z,U,W,F.reference,F.referenceMarker,F.referenceString)(q)}function U(q){return G.parser.defined.includes(S1(G.sliceSerialize(G.events[G.events.length-1][1]).slice(1,-1)))?X(q):J(q)}function W(q){return J(q)}}function nz(Z,X,J){return G;function G(U){return O(U===z.leftSquareBracket,"expected left bracket"),Z.enter(F.reference),Z.enter(F.referenceMarker),Z.consume(U),Z.exit(F.referenceMarker),Q}function Q(U){if(U===z.rightSquareBracket)return Z.enter(F.referenceMarker),Z.consume(U),Z.exit(F.referenceMarker),Z.exit(F.reference),X;return J(U)}}var H4,uz,pz,fz;var o5=C(()=>{o();V3();B3();F3();s5();Z1();C0();p4();c();H4={name:"labelEnd",resolveAll:lz,resolveTo:iz,tokenize:dz},uz={tokenize:rz},pz={tokenize:cz},fz={tokenize:nz}});function az(Z,X,J){let G=this;return Q;function Q(q){return O(q===z.exclamationMark,"expected `!`"),Z.enter(F.labelImage),Z.enter(F.labelImageMarker),Z.consume(q),Z.exit(F.labelImageMarker),U}function U(q){if(q===z.leftSquareBracket)return Z.enter(F.labelMarker),Z.consume(q),Z.exit(F.labelMarker),Z.exit(F.labelImage),W;return J(q)}function W(q){return q===z.caret&&"_hiddenFootnoteSupport"in G.parser.constructs?J(q):X(q)}}var L3;var UG=C(()=>{o();c();o5();L3={name:"labelStartImage",resolveAll:H4.resolveAll,tokenize:az}});function sz(Z,X,J){let G=this;return Q;function Q(W){return O(W===z.leftSquareBracket,"expected `[`"),Z.enter(F.labelLink),Z.enter(F.labelMarker),Z.consume(W),Z.exit(F.labelMarker),Z.exit(F.labelLink),U}function U(W){return W===z.caret&&"_hiddenFootnoteSupport"in G.parser.constructs?J(W):X(W)}}var I3;var WG=C(()=>{o();c();o5();I3={name:"labelStartLink",resolveAll:H4.resolveAll,tokenize:sz}});function oz(Z,X){return J;function J(G){return O(k(G),"expected eol"),Z.enter(F.lineEnding),Z.consume(G),Z.exit(F.lineEnding),l(Z,X,F.linePrefix)}}var i7;var qG=C(()=>{o();K1();Z1();c();i7={name:"lineEnding",tokenize:oz}});function tz(Z,X,J){let G=0,Q;return U;function U(H){return Z.enter(F.thematicBreak),W(H)}function W(H){return O(H===z.asterisk||H===z.dash||H===z.underscore,"expected `*`, `-`, or `_`"),Q=H,q(H)}function q(H){if(H===Q)return Z.enter(F.thematicBreakSequence),Y(H);if(G>=g.thematicBreakMarkerCountMin&&(H===z.eof||k(H)))return Z.exit(F.thematicBreak),X(H);return J(H)}function Y(H){if(H===Q)return Z.consume(H),G++,Y;return Z.exit(F.thematicBreakSequence),d(H)?l(Z,q,F.whitespace)(H):q(H)}}var K4;var A3=C(()=>{o();K1();Z1();c();K4={name:"thematicBreak",tokenize:tz}});function XV(Z,X,J){let G=this,Q=G.events[G.events.length-1],U=Q&&Q[1].type===F.linePrefix?Q[2].sliceSerialize(Q[1],!0).length:0,W=0;return q;function q(V){O(G.containerState,"expected state");let M=G.containerState.type||(V===z.asterisk||V===z.plusSign||V===z.dash?F.listUnordered:F.listOrdered);if(M===F.listUnordered?!G.containerState.marker||V===G.containerState.marker:u7(V)){if(!G.containerState.type)G.containerState.type=M,Z.enter(M,{_container:!0});if(M===F.listUnordered)return Z.enter(F.listItemPrefix),V===z.asterisk||V===z.dash?Z.check(K4,J,H)(V):H(V);if(!G.interrupt||V===z.digit1)return Z.enter(F.listItemPrefix),Z.enter(F.listItemValue),Y(V)}return J(V)}function Y(V){if(O(G.containerState,"expected state"),u7(V)&&++W<g.listItemValueSizeMax)return Z.consume(V),Y;if((!G.interrupt||W<2)&&(G.containerState.marker?V===G.containerState.marker:V===z.rightParenthesis||V===z.dot))return Z.exit(F.listItemValue),H(V);return J(V)}function H(V){return O(G.containerState,"expected state"),O(V!==z.eof,"eof (`null`) is not a marker"),Z.enter(F.listItemMarker),Z.consume(V),Z.exit(F.listItemMarker),G.containerState.marker=G.containerState.marker||V,Z.check(B0,G.interrupt?J:K,Z.attempt(ez,B,$))}function K(V){return O(G.containerState,"expected state"),G.containerState.initialBlankLine=!0,U++,B(V)}function $(V){if(d(V))return Z.enter(F.listItemPrefixWhitespace),Z.consume(V),Z.exit(F.listItemPrefixWhitespace),B;return J(V)}function B(V){return O(G.containerState,"expected state"),G.containerState.size=U+G.sliceSerialize(Z.exit(F.listItemPrefix),!0).length,X(V)}}function JV(Z,X,J){let G=this;return O(G.containerState,"expected state"),G.containerState._closeFlow=void 0,Z.check(B0,Q,U);function Q(q){return O(G.containerState,"expected state"),O(typeof G.containerState.size==="number","expected size"),G.containerState.furtherBlankLines=G.containerState.furtherBlankLines||G.containerState.initialBlankLine,l(Z,X,F.listItemIndent,G.containerState.size+1)(q)}function U(q){if(O(G.containerState,"expected state"),G.containerState.furtherBlankLines||!d(q))return G.containerState.furtherBlankLines=void 0,G.containerState.initialBlankLine=void 0,W(q);return G.containerState.furtherBlankLines=void 0,G.containerState.initialBlankLine=void 0,Z.attempt(ZV,X,W)(q)}function W(q){return O(G.containerState,"expected state"),G.containerState._closeFlow=!0,G.interrupt=void 0,O(G.parser.constructs.disable.null,"expected `disable.null` to be populated"),l(Z,Z.attempt(x1,X,J),F.linePrefix,G.parser.constructs.disable.null.includes("codeIndented")?void 0:g.tabSize)(q)}}function GV(Z,X,J){let G=this;return O(G.containerState,"expected state"),O(typeof G.containerState.size==="number","expected size"),l(Z,Q,F.listItemIndent,G.containerState.size+1);function Q(U){O(G.containerState,"expected state");let W=G.events[G.events.length-1];return W&&W[1].type===F.listItemIndent&&W[2].sliceSerialize(W[1],!0).length===G.containerState.size?X(U):J(U)}}function QV(Z){O(this.containerState,"expected state"),O(typeof this.containerState.type==="string","expected type"),Z.exit(this.containerState.type)}function UV(Z,X,J){let G=this;return O(G.parser.constructs.disable.null,"expected `disable.null` to be populated"),l(Z,Q,F.listItemPrefixWhitespace,G.parser.constructs.disable.null.includes("codeIndented")?void 0:g.tabSize+1);function Q(U){let W=G.events[G.events.length-1];return!d(U)&&W&&W[1].type===F.listItemPrefixWhitespace?X(U):J(U)}}var x1,ez,ZV;var YG=C(()=>{o();K1();Z1();c();p5();A3();x1={continuation:{tokenize:JV},exit:QV,name:"list",tokenize:XV},ez={partial:!0,tokenize:UV},ZV={partial:!0,tokenize:GV}});function WV(Z,X){let J=Z.length,G,Q,U;while(J--)if(Z[J][0]==="enter"){if(Z[J][1].type===F.content){G=J;break}if(Z[J][1].type===F.paragraph)Q=J}else{if(Z[J][1].type===F.content)Z.splice(J,1);if(!U&&Z[J][1].type===F.definition)U=J}O(Q!==void 0,"expected a `text` index to be found"),O(G!==void 0,"expected a `text` index to be found"),O(Z[G][2]===X,"enter context should be same"),O(Z[Z.length-1][2]===X,"enter context should be same");let W={type:F.setextHeading,start:{...Z[G][1].start},end:{...Z[Z.length-1][1].end}};if(Z[Q][1].type=F.setextHeadingText,U)Z.splice(Q,0,["enter",W,X]),Z.splice(U+1,0,["exit",Z[G][1],X]),Z[G][1].end={...Z[U][1].end};else Z[G][1]=W;return Z.push(["exit",W,X]),Z}function qV(Z,X,J){let G=this,Q;return U;function U(H){let K=G.events.length,$;O(H===z.dash||H===z.equalsTo,"expected `=` or `-`");while(K--)if(G.events[K][1].type!==F.lineEnding&&G.events[K][1].type!==F.linePrefix&&G.events[K][1].type!==F.content){$=G.events[K][1].type===F.paragraph;break}if(!G.parser.lazy[G.now().line]&&(G.interrupt||$))return Z.enter(F.setextHeadingLine),Q=H,W(H);return J(H)}function W(H){return Z.enter(F.setextHeadingLineSequence),q(H)}function q(H){if(H===Q)return Z.consume(H),q;return Z.exit(F.setextHeadingLineSequence),d(H)?l(Z,Y,F.lineSuffix)(H):Y(H)}function Y(H){if(H===z.eof||k(H))return Z.exit(F.setextHeadingLine),X(H);return J(H)}}var t5;var HG=C(()=>{o();K1();Z1();c();t5={name:"setextUnderline",resolveTo:WV,tokenize:qV}});var e5=C(()=>{uJ();pJ();p5();fJ();lJ();iJ();rJ();cJ();aJ();oJ();tJ();eJ();ZG();GG();QG();o5();UG();WG();qG();YG();HG();A3()});function YV(Z){let X=this,J=Z.attempt(B0,G,Z.attempt(this.parser.constructs.flowInitial,Q,l(Z,Z.attempt(this.parser.constructs.flow,Q,Z.attempt(z3,Q)),F.linePrefix)));return J;function G(U){if(O(U===z.eof||k(U),"expected eol or eof"),U===z.eof){Z.consume(U);return}return Z.enter(F.lineEndingBlank),Z.consume(U),Z.exit(F.lineEndingBlank),X.currentConstruct=void 0,J}function Q(U){if(O(U===z.eof||k(U),"expected eol or eof"),U===z.eof){Z.consume(U);return}return Z.enter(F.lineEnding),Z.consume(U),Z.exit(F.lineEnding),X.currentConstruct=void 0,J}}var KG;var $G=C(()=>{o();e5();K1();Z1();c();KG={tokenize:YV}});function FG(Z){return{resolveAll:MG(Z==="text"?HV:void 0),tokenize:X};function X(J){let G=this,Q=this.parser.constructs[Z],U=J.attempt(Q,W,q);return W;function W(K){return H(K)?U(K):q(K)}function q(K){if(K===z.eof){J.consume(K);return}return J.enter(F.data),J.consume(K),Y}function Y(K){if(H(K))return J.exit(F.data),U(K);return J.consume(K),Y}function H(K){if(K===z.eof)return!0;let $=Q[K],B=-1;if($){O(Array.isArray($),"expected `disable.null` to be populated");while(++B<$.length){let V=$[B];if(!V.previous||V.previous.call(G,G.previous))return!0}}return!1}}}function MG(Z){return X;function X(J,G){let Q=-1,U;while(++Q<=J.length)if(U===void 0){if(J[Q]&&J[Q][1].type===F.data)U=Q,Q++}else if(!J[Q]||J[Q][1].type!==F.data){if(Q!==U+2)J[U][1].end=J[Q-1][1].end,J.splice(U+2,Q-U-2),Q=U+2;U=void 0}return Z?Z(J,G):J}}function HV(Z,X){let J=0;while(++J<=Z.length)if((J===Z.length||Z[J][1].type===F.lineEnding)&&Z[J-1][1].type===F.data){let G=Z[J-1][1],Q=X.sliceStream(G),U=Q.length,W=-1,q=0,Y;while(U--){let H=Q[U];if(typeof H==="string"){W=H.length;while(H.charCodeAt(W-1)===z.space)q++,W--;if(W)break;W=-1}else if(H===z.horizontalTab)Y=!0,q++;else if(H===z.virtualSpace);else{U++;break}}if(X._contentTypeTextTrailing&&J===Z.length)q=0;if(q){let H={type:J===Z.length||Y||q<g.hardBreakPrefixSizeMin?F.lineSuffix:F.hardBreakTrailing,start:{_bufferIndex:U?W:G.start._bufferIndex+W,_index:G.start._index+U,line:G.end.line,column:G.end.column-q,offset:G.end.offset-q},end:{...G.end}};if(G.end={...H.start},G.start.offset===G.end.offset)Object.assign(G,H);else Z.splice(J,0,["enter",H,X],["exit",H,X]),J+=2}J++}return Z}var zG,VG,BG;var P3=C(()=>{o();c();zG={resolveAll:MG()},VG=FG("string"),BG=FG("text")});var w3={};P7(w3,{text:()=>FV,string:()=>BV,insideSpan:()=>MV,flowInitial:()=>zV,flow:()=>VV,document:()=>KV,disable:()=>_V,contentInitial:()=>$V,attentionMarkers:()=>DV});var KV,$V,zV,VV,BV,FV,MV,DV,_V;var DG=C(()=>{e5();c();P3();KV={[z.asterisk]:x1,[z.plusSign]:x1,[z.dash]:x1,[z.digit0]:x1,[z.digit1]:x1,[z.digit2]:x1,[z.digit3]:x1,[z.digit4]:x1,[z.digit5]:x1,[z.digit6]:x1,[z.digit7]:x1,[z.digit8]:x1,[z.digit9]:x1,[z.greaterThan]:f5},$V={[z.leftSquareBracket]:M3},zV={[z.horizontalTab]:f7,[z.virtualSpace]:f7,[z.space]:f7},VV={[z.numberSign]:_3,[z.asterisk]:K4,[z.dash]:[t5,K4],[z.lessThan]:O3,[z.equalsTo]:t5,[z.underscore]:K4,[z.graveAccent]:d5,[z.tilde]:d5},BV={[z.ampersand]:i5,[z.backslash]:l5},FV={[z.carriageReturn]:i7,[z.lineFeed]:i7,[z.carriageReturnLineFeed]:i7,[z.exclamationMark]:L3,[z.ampersand]:i5,[z.asterisk]:p7,[z.lessThan]:[Y3,N3],[z.leftSquareBracket]:I3,[z.backslash]:[D3,l5],[z.rightSquareBracket]:H4,[z.underscore]:p7,[z.graveAccent]:H3},MV={null:[p7,zG]},DV={null:[z.asterisk,z.underscore]},_V={null:[]}});var RG=h1((qw,_G)=>{var f4=1000,l4=f4*60,i4=l4*60,$4=i4*24,RV=$4*7,OV=$4*365.25;_G.exports=function(Z,X){X=X||{};var J=typeof Z;if(J==="string"&&Z.length>0)return NV(Z);else if(J==="number"&&isFinite(Z))return X.long?IV(Z):LV(Z);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(Z))};function NV(Z){if(Z=String(Z),Z.length>100)return;var X=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(Z);if(!X)return;var J=parseFloat(X[1]),G=(X[2]||"ms").toLowerCase();switch(G){case"years":case"year":case"yrs":case"yr":case"y":return J*OV;case"weeks":case"week":case"w":return J*RV;case"days":case"day":case"d":return J*$4;case"hours":case"hour":case"hrs":case"hr":case"h":return J*i4;case"minutes":case"minute":case"mins":case"min":case"m":return J*l4;case"seconds":case"second":case"secs":case"sec":case"s":return J*f4;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return J;default:return}}function LV(Z){var X=Math.abs(Z);if(X>=$4)return Math.round(Z/$4)+"d";if(X>=i4)return Math.round(Z/i4)+"h";if(X>=l4)return Math.round(Z/l4)+"m";if(X>=f4)return Math.round(Z/f4)+"s";return Z+"ms"}function IV(Z){var X=Math.abs(Z);if(X>=$4)return Z6(Z,X,$4,"day");if(X>=i4)return Z6(Z,X,i4,"hour");if(X>=l4)return Z6(Z,X,l4,"minute");if(X>=f4)return Z6(Z,X,f4,"second");return Z+" ms"}function Z6(Z,X,J,G){var Q=X>=J*1.5;return Math.round(Z/J)+" "+G+(Q?"s":"")}});var NG=h1((Yw,OG)=>{function AV(Z){J.debug=J,J.default=J,J.coerce=Y,J.disable=W,J.enable=Q,J.enabled=q,J.humanize=RG(),J.destroy=H,Object.keys(Z).forEach((K)=>{J[K]=Z[K]}),J.names=[],J.skips=[],J.formatters={};function X(K){let $=0;for(let B=0;B<K.length;B++)$=($<<5)-$+K.charCodeAt(B),$|=0;return J.colors[Math.abs($)%J.colors.length]}J.selectColor=X;function J(K){let $,B=null,V,M;function _(...D){if(!_.enabled)return;let R=_,N=Number(new Date),L=N-($||N);if(R.diff=L,R.prev=$,R.curr=N,$=N,D[0]=J.coerce(D[0]),typeof D[0]!=="string")D.unshift("%O");let E=0;D[0]=D[0].replace(/%([a-zA-Z%])/g,(w,y)=>{if(w==="%%")return"%";E++;let h=J.formatters[y];if(typeof h==="function"){let j=D[E];w=h.call(R,j),D.splice(E,1),E--}return w}),J.formatArgs.call(R,D),(R.log||J.log).apply(R,D)}if(_.namespace=K,_.useColors=J.useColors(),_.color=J.selectColor(K),_.extend=G,_.destroy=J.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(B!==null)return B;if(V!==J.namespaces)V=J.namespaces,M=J.enabled(K);return M},set:(D)=>{B=D}}),typeof J.init==="function")J.init(_);return _}function G(K,$){let B=J(this.namespace+(typeof $>"u"?":":$)+K);return B.log=this.log,B}function Q(K){J.save(K),J.namespaces=K,J.names=[],J.skips=[];let $=(typeof K==="string"?K:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let B of $)if(B[0]==="-")J.skips.push(B.slice(1));else J.names.push(B)}function U(K,$){let B=0,V=0,M=-1,_=0;while(B<K.length)if(V<$.length&&($[V]===K[B]||$[V]==="*"))if($[V]==="*")M=V,_=B,V++;else B++,V++;else if(M!==-1)V=M+1,_++,B=_;else return!1;while(V<$.length&&$[V]==="*")V++;return V===$.length}function W(){let K=[...J.names,...J.skips.map(($)=>"-"+$)].join(",");return J.enable(""),K}function q(K){for(let $ of J.skips)if(U(K,$))return!1;for(let $ of J.names)if(U(K,$))return!0;return!1}function Y(K){if(K instanceof Error)return K.stack||K.message;return K}function H(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return J.enable(J.load()),J}OG.exports=AV});var IG=h1((LG,X6)=>{LG.formatArgs=wV;LG.save=TV;LG.load=CV;LG.useColors=PV;LG.storage=jV();LG.destroy=(()=>{let Z=!1;return()=>{if(!Z)Z=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();LG.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function PV(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let Z;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(Z=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(Z[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function wV(Z){if(Z[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+Z[0]+(this.useColors?"%c ":" ")+"+"+X6.exports.humanize(this.diff),!this.useColors)return;let X="color: "+this.color;Z.splice(1,0,X,"color: inherit");let J=0,G=0;Z[0].replace(/%[a-zA-Z%]/g,(Q)=>{if(Q==="%%")return;if(J++,Q==="%c")G=J}),Z.splice(G,0,X)}LG.log=console.debug||console.log||(()=>{});function TV(Z){try{if(Z)LG.storage.setItem("debug",Z);else LG.storage.removeItem("debug")}catch(X){}}function CV(){let Z;try{Z=LG.storage.getItem("debug")||LG.storage.getItem("DEBUG")}catch(X){}if(!Z&&typeof process<"u"&&"env"in process)Z=process.env.DEBUG;return Z}function jV(){try{return localStorage}catch(Z){}}X6.exports=NG()(LG);var{formatters:EV}=X6.exports;EV.j=function(Z){try{return JSON.stringify(Z)}catch(X){return"[UnexpectedJSONParseError]: "+X.message}}});function PG(Z,X,J){let G={_bufferIndex:-1,_index:0,line:J&&J.line||1,column:J&&J.column||1,offset:J&&J.offset||0},Q={},U=[],W=[],q=[],Y=!0,H={attempt:j(y),check:j(h),consume:E,enter:m,exit:w,interrupt:j(h,{interrupt:!0})},K={code:z.eof,containerState:{},defineSkip:R,events:[],now:D,parser:Z,previous:z.eof,sliceSerialize:M,sliceStream:_,write:V},$=X.tokenize.call(K,H),B;if(X.resolveAll)U.push(X);return K;function V(v){if(W=y1(W,v),N(),W[W.length-1]!==z.eof)return[];return P(X,0),K.events=i0(U,K.events,K),K.events}function M(v,f){return mV(_(v),f)}function _(v){return hV(W,v)}function D(){let{_bufferIndex:v,_index:f,line:T,column:e,offset:_1}=G;return{_bufferIndex:v,_index:f,line:T,column:e,offset:_1}}function R(v){Q[v.line]=v.column,a(),z4("position: define skip: `%j`",G)}function N(){let v;while(G._index<W.length){let f=W[G._index];if(typeof f==="string"){if(v=G._index,G._bufferIndex<0)G._bufferIndex=0;while(G._index===v&&G._bufferIndex<f.length)L(f.charCodeAt(G._bufferIndex))}else L(f)}}function L(v){O(Y===!0,"expected character to be consumed"),Y=void 0,z4("main: passing `%s` to %s",v,$&&$.name),B=v,O(typeof $==="function","expected state"),$=$(v)}function E(v){if(O(v===B,"expected given code to equal expected code"),z4("consume: `%s`",v),O(Y===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),O(v===null?K.events.length===0||K.events[K.events.length-1][0]==="exit":K.events[K.events.length-1][0]==="enter","expected last token to be open"),k(v))G.line++,G.column=1,G.offset+=v===z.carriageReturnLineFeed?2:1,a(),z4("position: after eol: `%j`",G);else if(v!==z.virtualSpace)G.column++,G.offset++;if(G._bufferIndex<0)G._index++;else if(G._bufferIndex++,G._bufferIndex===W[G._index].length)G._bufferIndex=-1,G._index++;K.previous=v,Y=!0}function m(v,f){let T=f||{};return T.type=v,T.start=D(),O(typeof v==="string","expected string type"),O(v.length>0,"expected non-empty string"),z4("enter: `%s`",v),K.events.push(["enter",T,K]),q.push(T),T}function w(v){O(typeof v==="string","expected string type"),O(v.length>0,"expected non-empty string");let f=q.pop();return O(f,"cannot close w/o open tokens"),f.end=D(),O(v===f.type,"expected exit token to match current token"),O(!(f.start._index===f.end._index&&f.start._bufferIndex===f.end._bufferIndex),"expected non-empty token (`"+v+"`)"),z4("exit: `%s`",f.type),K.events.push(["exit",f,K]),f}function y(v,f){P(v,f.from)}function h(v,f){f.restore()}function j(v,f){return T;function T(e,_1,a1){let q0,I,s1,O0;return Array.isArray(e)?f1(e):("tokenize"in e)?f1([e]):A(e);function A(R1){return N7;function N7(N0){let X4=N0!==null&&R1[N0],w4=N0!==null&&R1.null,V8=[...Array.isArray(X4)?X4:X4?[X4]:[],...Array.isArray(w4)?w4:w4?[w4]:[]];return f1(V8)(N0)}}function f1(R1){if(q0=R1,I=0,R1.length===0)return O(a1,"expected `bogusState` to be given"),a1;return Z4(R1[I])}function Z4(R1){return N7;function N7(N0){if(O0=n(),s1=R1,!R1.partial)K.currentConstruct=R1;if(O(K.parser.constructs.disable.null,"expected `disable.null` to be populated"),R1.name&&K.parser.constructs.disable.null.includes(R1.name))return Y5(N0);return R1.tokenize.call(f?Object.assign(Object.create(K),f):K,H,z8,Y5)(N0)}}function z8(R1){return O(R1===B,"expected code"),Y=!0,v(s1,O0),_1}function Y5(R1){if(O(R1===B,"expected code"),Y=!0,O0.restore(),++I<q0.length)return Z4(q0[I]);return a1}}}function P(v,f){if(v.resolveAll&&!U.includes(v))U.push(v);if(v.resolve)B1(K.events,f,K.events.length-f,v.resolve(K.events.slice(f),K));if(v.resolveTo)K.events=v.resolveTo(K.events,K);O(v.partial||K.events.length===0||K.events[K.events.length-1][0]==="exit","expected last token to end")}function n(){let v=D(),f=K.previous,T=K.currentConstruct,e=K.events.length,_1=Array.from(q);return{from:e,restore:a1};function a1(){G=v,K.previous=f,K.currentConstruct=T,K.events.length=e,q=_1,a(),z4("position: restore: `%j`",G)}}function a(){if(G.line in Q&&G.column<2)G.column=Q[G.line],G.offset+=Q[G.line]-1}}function hV(Z,X){let J=X.start._index,G=X.start._bufferIndex,Q=X.end._index,U=X.end._bufferIndex,W;if(J===Q)O(U>-1,"expected non-negative end buffer index"),O(G>-1,"expected non-negative start buffer index"),W=[Z[J].slice(G,U)];else{if(W=Z.slice(J,Q),G>-1){let q=W[0];if(typeof q==="string")W[0]=q.slice(G);else O(G===0,"expected `startBufferIndex` to be `0`"),W.shift()}if(U>0)W.push(Z[Q].slice(0,U))}return W}function mV(Z,X){let J=-1,G=[],Q;while(++J<Z.length){let U=Z[J],W;if(typeof U==="string")W=U;else switch(U){case z.carriageReturn:{W=d1.cr;break}case z.lineFeed:{W=d1.lf;break}case z.carriageReturnLineFeed:{W=d1.cr+d1.lf;break}case z.horizontalTab:{W=X?d1.space:d1.ht;break}case z.virtualSpace:{if(!X&&Q)continue;W=d1.space;break}default:O(typeof U==="number","expected number"),W=String.fromCharCode(U)}Q=U===z.horizontalTab,G.push(W)}return G.join("")}var AG,z4;var wG=C(()=>{o();Z1();C0();c();AG=H5(IG(),1),z4=AG.default("micromark")});function T3(Z){let G={constructs:h5([w3,...(Z||{}).extensions||[]]),content:Q(gJ),defined:[],document:Q(vJ),flow:Q(KG),lazy:{},string:Q(VG),text:Q(BG)};return G;function Q(U){return W;function W(q){return PG(G,U,q)}}}var TG=C(()=>{W3();kJ();hJ();$G();P3();DG();wG()});function C3(Z){while(!r5(Z));return Z}var CG=C(()=>{$3()});function j3(){let Z=1,X="",J=!0,G;return Q;function Q(U,W,q){let Y=[],H,K,$,B,V;if(U=X+(typeof U==="string"?U.toString():new TextDecoder(W||void 0).decode(U)),$=0,X="",J){if(U.charCodeAt(0)===z.byteOrderMarker)$++;J=void 0}while($<U.length){if(jG.lastIndex=$,H=jG.exec(U),B=H&&H.index!==void 0?H.index:U.length,V=U.charCodeAt(B),!H){X=U.slice($);break}if(V===z.lf&&$===B&&G)Y.push(z.carriageReturnLineFeed),G=void 0;else{if(G)Y.push(z.carriageReturn),G=void 0;if($<B)Y.push(U.slice($,B)),Z+=B-$;switch(V){case z.nul:{Y.push(z.replacementCharacter),Z++;break}case z.ht:{K=Math.ceil(Z/g.tabSize)*g.tabSize,Y.push(z.horizontalTab);while(Z++<K)Y.push(z.virtualSpace);break}case z.lf:{Y.push(z.lineFeed),Z=1;break}default:G=!0,Z=1}}$=B+1}if(q){if(G)Y.push(z.carriageReturn);if(X)Y.push(X);Y.push(z.eof)}return Y}}var jG;var EG=C(()=>{c();jG=/[\0\t\n\r]/g});var SG=C(()=>{TG();CG();EG()});function bG(Z){return Z.replace(uV,pV)}function pV(Z,X,J){if(X)return X;if(J.charCodeAt(0)===z.numberSign){let Q=J.charCodeAt(1),U=Q===z.lowercaseX||Q===z.uppercaseX;return m5(J.slice(U?2:1),U?g.numericBaseHexadecimal:g.numericBaseDecimal)}return T0(J)||Z}var uV;var xG=C(()=>{m7();q3();c();uV=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi});function E3(Z,X,J){if(X&&typeof X==="object")J=X,X=void 0;return fV(J)(C3(T3(J).document().write(j3()(Z,X,!0))))}function fV(Z){let X={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:U(fZ),autolinkProtocol:j,autolinkEmail:j,atxHeading:U(mZ),blockQuote:U(N0),characterEscape:j,characterReference:j,codeFenced:U(X4),codeFencedFenceInfo:W,codeFencedFenceMeta:W,codeIndented:U(X4,W),codeText:U(w4,W),codeTextData:j,data:j,codeFlowValue:j,definition:U(V8),definitionDestinationString:W,definitionLabelString:W,definitionTitleString:W,emphasis:U(FY),hardBreakEscape:U(uZ),hardBreakTrailing:U(uZ),htmlFlow:U(pZ,W),htmlFlowData:j,htmlText:U(pZ,W),htmlTextData:j,image:U(MY),label:W,link:U(fZ),listItem:U(DY),listItemValue:B,listOrdered:U(lZ,$),listUnordered:U(lZ),paragraph:U(_Y),reference:A,referenceString:W,resourceDestinationString:W,resourceTitleString:W,setextHeading:U(mZ),strong:U(RY),thematicBreak:U(NY)},exit:{atxHeading:Y(),atxHeadingSequence:m,autolink:Y(),autolinkEmail:N7,autolinkProtocol:R1,blockQuote:Y(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:Z4,characterReferenceMarkerNumeric:Z4,characterReferenceValue:z8,characterReference:Y5,codeFenced:Y(D),codeFencedFence:_,codeFencedFenceInfo:V,codeFencedFenceMeta:M,codeFlowValue:P,codeIndented:Y(R),codeText:Y(T),codeTextData:P,data:P,definition:Y(),definitionDestinationString:E,definitionLabelString:N,definitionTitleString:L,emphasis:Y(),hardBreakEscape:Y(a),hardBreakTrailing:Y(a),htmlFlow:Y(v),htmlFlowData:P,htmlText:Y(f),htmlTextData:P,image:Y(_1),label:q0,labelText:a1,lineEnding:n,link:Y(e),listItem:Y(),listOrdered:Y(),listUnordered:Y(),paragraph:Y(),referenceString:f1,resourceDestinationString:I,resourceTitleString:s1,resource:O0,setextHeading:Y(h),setextHeadingLineSequence:y,setextHeadingText:w,strong:Y(),thematicBreak:Y()}};yG(X,(Z||{}).mdastExtensions||[]);let J={};return G;function G(S){let b={type:"root",children:[]},i={stack:[b],tokenStack:[],config:X,enter:q,exit:H,buffer:W,resume:K,data:J},J1=[],Q1=-1;while(++Q1<S.length)if(S[Q1][1].type===F.listOrdered||S[Q1][1].type===F.listUnordered)if(S[Q1][0]==="enter")J1.push(Q1);else{let v1=J1.pop();O(typeof v1==="number","expected list to be open"),Q1=Q(S,v1,Q1)}Q1=-1;while(++Q1<S.length){let v1=X[S[Q1][0]];if(kG.call(v1,S[Q1][1].type))v1[S[Q1][1].type].call(Object.assign({sliceSerialize:S[Q1][2].sliceSerialize},i),S[Q1][1])}if(i.tokenStack.length>0){let v1=i.tokenStack[i.tokenStack.length-1];(v1[1]||gG).call(i,void 0,v1[0])}b.position={start:d0(S.length>0?S[0][1].start:{line:1,column:1,offset:0}),end:d0(S.length>0?S[S.length-2][1].end:{line:1,column:1,offset:0})},Q1=-1;while(++Q1<X.transforms.length)b=X.transforms[Q1](b)||b;return b}function Q(S,b,i){let J1=b-1,Q1=-1,v1=!1,J4,L0,L7,I7;while(++J1<=i){let l1=S[J1];switch(l1[1].type){case F.listUnordered:case F.listOrdered:case F.blockQuote:{if(l1[0]==="enter")Q1++;else Q1--;I7=void 0;break}case F.lineEndingBlank:{if(l1[0]==="enter"){if(J4&&!I7&&!Q1&&!L7)L7=J1;I7=void 0}break}case F.linePrefix:case F.listItemValue:case F.listItemMarker:case F.listItemPrefix:case F.listItemPrefixWhitespace:break;default:I7=void 0}if(!Q1&&l1[0]==="enter"&&l1[1].type===F.listItemPrefix||Q1===-1&&l1[0]==="exit"&&(l1[1].type===F.listUnordered||l1[1].type===F.listOrdered)){if(J4){let T4=J1;L0=void 0;while(T4--){let I0=S[T4];if(I0[1].type===F.lineEnding||I0[1].type===F.lineEndingBlank){if(I0[0]==="exit")continue;if(L0)S[L0][1].type=F.lineEndingBlank,v1=!0;I0[1].type=F.lineEnding,L0=T4}else if(I0[1].type===F.linePrefix||I0[1].type===F.blockQuotePrefix||I0[1].type===F.blockQuotePrefixWhitespace||I0[1].type===F.blockQuoteMarker||I0[1].type===F.listItemIndent);else break}if(L7&&(!L0||L7<L0))J4._spread=!0;J4.end=Object.assign({},L0?S[L0][1].start:l1[1].end),S.splice(L0||J1,0,["exit",J4,l1[2]]),J1++,i++}if(l1[1].type===F.listItemPrefix){let T4={type:"listItem",_spread:!1,start:Object.assign({},l1[1].start),end:void 0};J4=T4,S.splice(J1,0,["enter",T4,l1[2]]),J1++,i++,L7=void 0,I7=!0}}}return S[b][1]._spread=v1,i}function U(S,b){return i;function i(J1){if(q.call(this,S(J1),J1),b)b.call(this,J1)}}function W(){this.stack.push({type:"fragment",children:[]})}function q(S,b,i){let J1=this.stack[this.stack.length-1];O(J1,"expected `parent`"),O("children"in J1,"expected `parent`"),J1.children.push(S),this.stack.push(S),this.tokenStack.push([b,i||void 0]),S.position={start:d0(b.start),end:void 0}}function Y(S){return b;function b(i){if(S)S.call(this,i);H.call(this,i)}}function H(S,b){let i=this.stack.pop();O(i,"expected `node`");let J1=this.tokenStack.pop();if(!J1)throw Error("Cannot close `"+S.type+"` ("+f0({start:S.start,end:S.end})+"): it’s not open");else if(J1[0].type!==S.type)if(b)b.call(this,S,J1[0]);else(J1[1]||gG).call(this,S,J1[0]);O(i.type!=="fragment","unexpected fragment `exit`ed"),O(i.position,"expected `position` to be defined"),i.position.end=d0(S.end)}function K(){return q4(this.stack.pop())}function $(){this.data.expectingFirstListItemValue=!0}function B(S){if(this.data.expectingFirstListItemValue){let b=this.stack[this.stack.length-2];O(b,"expected nodes on stack"),O(b.type==="list","expected list on stack"),b.start=Number.parseInt(this.sliceSerialize(S),g.numericBaseDecimal),this.data.expectingFirstListItemValue=void 0}}function V(){let S=this.resume(),b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="code","expected code on stack"),b.lang=S}function M(){let S=this.resume(),b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="code","expected code on stack"),b.meta=S}function _(){if(this.data.flowCodeInside)return;this.buffer(),this.data.flowCodeInside=!0}function D(){let S=this.resume(),b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="code","expected code on stack"),b.value=S.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function R(){let S=this.resume(),b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="code","expected code on stack"),b.value=S.replace(/(\r?\n|\r)$/g,"")}function N(S){let b=this.resume(),i=this.stack[this.stack.length-1];O(i,"expected node on stack"),O(i.type==="definition","expected definition on stack"),i.label=b,i.identifier=S1(this.sliceSerialize(S)).toLowerCase()}function L(){let S=this.resume(),b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="definition","expected definition on stack"),b.title=S}function E(){let S=this.resume(),b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="definition","expected definition on stack"),b.url=S}function m(S){let b=this.stack[this.stack.length-1];if(O(b,"expected node on stack"),O(b.type==="heading","expected heading on stack"),!b.depth){let i=this.sliceSerialize(S).length;O(i===1||i===2||i===3||i===4||i===5||i===6,"expected `depth` between `1` and `6`"),b.depth=i}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function y(S){let b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="heading","expected heading on stack"),b.depth=this.sliceSerialize(S).codePointAt(0)===z.equalsTo?1:2}function h(){this.data.setextHeadingSlurpLineEnding=void 0}function j(S){let b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O("children"in b,"expected parent on stack");let i=b.children,J1=i[i.length-1];if(!J1||J1.type!=="text")J1=OY(),J1.position={start:d0(S.start),end:void 0},i.push(J1);this.stack.push(J1)}function P(S){let b=this.stack.pop();O(b,"expected a `node` to be on the stack"),O("value"in b,"expected a `literal` to be on the stack"),O(b.position,"expected `node` to have an open position"),b.value+=this.sliceSerialize(S),b.position.end=d0(S.end)}function n(S){let b=this.stack[this.stack.length-1];if(O(b,"expected `node`"),this.data.atHardBreak){O("children"in b,"expected `parent`");let i=b.children[b.children.length-1];O(i.position,"expected tail to have a starting position"),i.position.end=d0(S.end),this.data.atHardBreak=void 0;return}if(!this.data.setextHeadingSlurpLineEnding&&X.canContainEols.includes(b.type))j.call(this,S),P.call(this,S)}function a(){this.data.atHardBreak=!0}function v(){let S=this.resume(),b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="html","expected html on stack"),b.value=S}function f(){let S=this.resume(),b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="html","expected html on stack"),b.value=S}function T(){let S=this.resume(),b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="inlineCode","expected inline code on stack"),b.value=S}function e(){let S=this.stack[this.stack.length-1];if(O(S,"expected node on stack"),O(S.type==="link","expected link on stack"),this.data.inReference){let b=this.data.referenceType||"shortcut";S.type+="Reference",S.referenceType=b,delete S.url,delete S.title}else delete S.identifier,delete S.label;this.data.referenceType=void 0}function _1(){let S=this.stack[this.stack.length-1];if(O(S,"expected node on stack"),O(S.type==="image","expected image on stack"),this.data.inReference){let b=this.data.referenceType||"shortcut";S.type+="Reference",S.referenceType=b,delete S.url,delete S.title}else delete S.identifier,delete S.label;this.data.referenceType=void 0}function a1(S){let b=this.sliceSerialize(S),i=this.stack[this.stack.length-2];O(i,"expected ancestor on stack"),O(i.type==="image"||i.type==="link","expected image or link on stack"),i.label=bG(b),i.identifier=S1(b).toLowerCase()}function q0(){let S=this.stack[this.stack.length-1];O(S,"expected node on stack"),O(S.type==="fragment","expected fragment on stack");let b=this.resume(),i=this.stack[this.stack.length-1];if(O(i,"expected node on stack"),O(i.type==="image"||i.type==="link","expected image or link on stack"),this.data.inReference=!0,i.type==="link"){let J1=S.children;i.children=J1}else i.alt=b}function I(){let S=this.resume(),b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="image"||b.type==="link","expected image or link on stack"),b.url=S}function s1(){let S=this.resume(),b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="image"||b.type==="link","expected image or link on stack"),b.title=S}function O0(){this.data.inReference=void 0}function A(){this.data.referenceType="collapsed"}function f1(S){let b=this.resume(),i=this.stack[this.stack.length-1];O(i,"expected node on stack"),O(i.type==="image"||i.type==="link","expected image reference or link reference on stack"),i.label=b,i.identifier=S1(this.sliceSerialize(S)).toLowerCase(),this.data.referenceType="full"}function Z4(S){O(S.type==="characterReferenceMarkerNumeric"||S.type==="characterReferenceMarkerHexadecimal"),this.data.characterReferenceType=S.type}function z8(S){let b=this.sliceSerialize(S),i=this.data.characterReferenceType,J1;if(i)J1=m5(b,i===F.characterReferenceMarkerNumeric?g.numericBaseDecimal:g.numericBaseHexadecimal),this.data.characterReferenceType=void 0;else{let v1=T0(b);O(v1!==!1,"expected reference to decode"),J1=v1}let Q1=this.stack[this.stack.length-1];O(Q1,"expected `node`"),O("value"in Q1,"expected `node.value`"),Q1.value+=J1}function Y5(S){let b=this.stack.pop();O(b,"expected `node`"),O(b.position,"expected `node.position`"),b.position.end=d0(S.end)}function R1(S){P.call(this,S);let b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="link","expected link on stack"),b.url=this.sliceSerialize(S)}function N7(S){P.call(this,S);let b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="link","expected link on stack"),b.url="mailto:"+this.sliceSerialize(S)}function N0(){return{type:"blockquote",children:[]}}function X4(){return{type:"code",lang:null,meta:null,value:""}}function w4(){return{type:"inlineCode",value:""}}function V8(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function FY(){return{type:"emphasis",children:[]}}function mZ(){return{type:"heading",depth:0,children:[]}}function uZ(){return{type:"break"}}function pZ(){return{type:"html",value:""}}function MY(){return{type:"image",title:null,url:"",alt:null}}function fZ(){return{type:"link",title:null,url:"",children:[]}}function lZ(S){return{type:"list",ordered:S.type==="listOrdered",start:null,spread:S._spread,children:[]}}function DY(S){return{type:"listItem",spread:S._spread,checked:null,children:[]}}function _Y(){return{type:"paragraph",children:[]}}function RY(){return{type:"strong",children:[]}}function OY(){return{type:"text",value:""}}function NY(){return{type:"thematicBreak"}}}function d0(Z){return{line:Z.line,column:Z.column,offset:Z.offset}}function yG(Z,X){let J=-1;while(++J<X.length){let G=X[J];if(Array.isArray(G))yG(Z,G);else lV(Z,G)}}function lV(Z,X){let J;for(J in X)if(kG.call(X,J))switch(J){case"canContainEols":{let G=X[J];if(G)Z[J].push(...G);break}case"transforms":{let G=X[J];if(G)Z[J].push(...G);break}case"enter":case"exit":{let G=X[J];if(G)Object.assign(Z[J],G);break}}}function gG(Z,X){if(Z)throw Error("Cannot close `"+Z.type+"` ("+f0({start:Z.start,end:Z.end})+"): a different token (`"+X.type+"`, "+f0({start:X.start,end:X.end})+") is open");else throw Error("Cannot close document, a token (`"+X.type+"`, "+f0({start:X.start,end:X.end})+") is still open")}var kG;var vG=C(()=>{o();v5();SG();q3();xG();p4();c();m7();o8();kG={}.hasOwnProperty});var hG=C(()=>{vG()});function J6(Z){let X=this;X.parser=J;function J(G){return E3(G,{...X.data("settings"),...Z,extensions:X.data("micromarkExtensions")||[],mdastExtensions:X.data("fromMarkdownExtensions")||[]})}}var mG=C(()=>{hG()});var uG=C(()=>{mG()});var pG=h1((ow,S3)=>{(function(){var Z;if(typeof S3<"u")Z=S3.exports=G;else Z=function(){return this||(0,eval)("this")}();if(Z.format=G,Z.vsprintf=J,typeof console<"u"&&typeof console.log==="function")Z.printf=X;function X(){console.log(G.apply(null,arguments))}function J(Q,U){return G.apply(null,[Q].concat(U))}function G(Q){var U=1,W=[].slice.call(arguments),q=0,Y=Q.length,H="",K,$=!1,B,V,M=!1,_,D=function(){return W[U++]},R=function(){var N="";while(/\d/.test(Q[q]))N+=Q[q++],K=Q[q];return N.length>0?parseInt(N):null};for(;q<Y;++q)if(K=Q[q],$){if($=!1,K==".")M=!1,K=Q[++q];else if(K=="0"&&Q[q+1]==".")M=!0,q+=2,K=Q[q];else M=!0;switch(_=R(),K){case"b":H+=parseInt(D(),10).toString(2);break;case"c":if(B=D(),typeof B==="string"||B instanceof String)H+=B;else H+=String.fromCharCode(parseInt(B,10));break;case"d":H+=parseInt(D(),10);break;case"f":V=String(parseFloat(D()).toFixed(_||6)),H+=M?V:V.replace(/^0/,"");break;case"j":H+=JSON.stringify(D());break;case"o":H+="0"+parseInt(D(),10).toString(8);break;case"s":H+=D();break;case"x":H+="0x"+parseInt(D(),10).toString(16);break;case"X":H+="0x"+parseInt(D(),10).toString(16).toUpperCase();break;default:H+=K;break}}else if(K==="%")$=!0;else H+=K;return H}})()});function V4(Z){return X.displayName=Z.displayName||Z.name,X;function X(J,...G){let Q=J?fG.default(J,...G):J;return new Z(Q)}}var fG,r7;var lG=C(()=>{fG=H5(pG(),1),r7=Object.assign(V4(Error),{eval:V4(EvalError),range:V4(RangeError),reference:V4(ReferenceError),syntax:V4(SyntaxError),type:V4(TypeError),uri:V4(URIError)})});function d4(Z){let X=[],J=-1,G=Array.isArray(Z)?Z:Z?[Z]:["yaml"];while(++J<G.length)X[J]=iV(G[J]);return X}function iV(Z){let X=Z;if(typeof X==="string"){if(!G6.call(iG,X))throw r7("Missing matter definition for `%s`",X);X={type:X,marker:iG[X]}}else if(typeof X!=="object")throw r7("Expected matter to be an object, not `%j`",X);if(!G6.call(X,"type"))throw r7("Missing `type` in matter `%j`",X);if(!G6.call(X,"fence")&&!G6.call(X,"marker"))throw r7("Missing `marker` or `fence` in matter `%j`",X);return X}var G6,iG;var b3=C(()=>{lG();G6={}.hasOwnProperty,iG={yaml:"-",toml:"+"}});function g3(Z){let X=d4(Z),J={},G=-1;while(++G<X.length){let Q=X[G],U=x3(Q,"open").charCodeAt(0),W=dV(Q),q=J[U];if(Array.isArray(q))q.push(W);else J[U]=[W]}return{flow:J}}function dV(Z){let{anywhere:X,type:J}=Z,G=J+"Fence",Q=G+"Sequence",U=J+"Value",W={tokenize:K,partial:!0},q,Y=0;return{tokenize:H,concrete:!0};function H($,B,V){let M=this;return _;function _(y){let h=M.now();if(h.column===1&&(h.line===1||X)){if(q=x3(Z,"open"),Y=0,y===q.charCodeAt(Y))return $.enter(J),$.enter(G),$.enter(Q),D(y)}return V(y)}function D(y){if(Y===q.length){if($.exit(Q),d(y))return $.enter(F.whitespace),R(y);return N(y)}if(y===q.charCodeAt(Y++))return $.consume(y),D;return V(y)}function R(y){if(d(y))return $.consume(y),R;return $.exit(F.whitespace),N(y)}function N(y){if(k(y))return $.exit(G),$.enter(F.lineEnding),$.consume(y),$.exit(F.lineEnding),q=x3(Z,"close"),Y=0,$.attempt(W,w,L);return V(y)}function L(y){if(y===z.eof||k(y))return m(y);return $.enter(U),E(y)}function E(y){if(y===z.eof||k(y))return $.exit(U),m(y);return $.consume(y),E}function m(y){if(y===z.eof)return V(y);return $.enter(F.lineEnding),$.consume(y),$.exit(F.lineEnding),$.attempt(W,w,L)}function w(y){return $.exit(J),B(y)}}function K($,B,V){let M=0;return _;function _(L){if(L===q.charCodeAt(M))return $.enter(G),$.enter(Q),D(L);return V(L)}function D(L){if(M===q.length){if($.exit(Q),d(L))return $.enter(F.whitespace),R(L);return N(L)}if(L===q.charCodeAt(M++))return $.consume(L),D;return V(L)}function R(L){if(d(L))return $.consume(L),R;return $.exit(F.whitespace),N(L)}function N(L){if(L===z.eof||k(L))return $.exit(G),B(L);return V(L)}}}function x3(Z,X){return Z.marker?dG(Z.marker,X).repeat(3):dG(Z.fence,X)}function dG(Z,X){return typeof Z==="string"?Z:Z[X]}var rG=C(()=>{Z1();c();b3()});var k3=C(()=>{rG();b3()});function c7(Z){if(typeof Z!=="string")throw TypeError("Expected a string");return Z.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function v3(Z){let X=d4(Z),J={},G={},Q=-1;while(++Q<X.length){let U=X[Q];J[U.type]=rV(U),G[U.type]=cV,G[U.type+"Value"]=nV}return{enter:J,exit:G}}function rV(Z){return X;function X(J){this.enter({type:Z.type,value:""},J),this.buffer()}}function cV(Z){let X=this.resume(),J=this.stack[this.stack.length-1];O("value"in J),this.exit(Z),J.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function nV(Z){this.config.enter.data.call(this,Z),this.config.exit.data.call(this,Z)}function h3(Z){let X=[],J={},G=d4(Z),Q=-1;while(++Q<G.length){let U=G[Q];J[U.type]=aV(U);let W=y3(U,"open");X.push({atBreak:!0,character:W.charAt(0),after:c7(W.charAt(1))})}return{unsafe:X,handlers:J}}function aV(Z){let X=y3(Z,"open"),J=y3(Z,"close");return G;function G(Q){return X+(Q.value?`
1
+ var IY=Object.create;var{getPrototypeOf:AY,defineProperty:A7,getOwnPropertyNames:dZ,getOwnPropertyDescriptor:PY}=Object,rZ=Object.prototype.hasOwnProperty;function cZ(Z){return this[Z]}var wY,TY,H5=(Z,X,J)=>{var G=Z!=null&&typeof Z==="object";if(G){var Q=X?wY??=new WeakMap:TY??=new WeakMap,U=Q.get(Z);if(U)return U}J=Z!=null?IY(AY(Z)):{};let W=X||!Z||!Z.__esModule?A7(J,"default",{value:Z,enumerable:!0}):J;for(let q of dZ(Z))if(!rZ.call(W,q))A7(W,q,{get:cZ.bind(Z,q),enumerable:!0});if(G)Q.set(Z,W);return W},CY=(Z)=>{var X=(iZ??=new WeakMap).get(Z),J;if(X)return X;if(X=A7({},"__esModule",{value:!0}),Z&&typeof Z==="object"||typeof Z==="function"){for(var G of dZ(Z))if(!rZ.call(X,G))A7(X,G,{get:cZ.bind(Z,G),enumerable:!(J=PY(Z,G))||J.enumerable})}return iZ.set(Z,X),X},iZ,h1=(Z,X)=>()=>(X||Z((X={exports:{}}).exports,X),X.exports);var jY=(Z)=>Z;function EY(Z,X){this[Z]=jY.bind(null,X)}var P7=(Z,X)=>{for(var J in X)A7(Z,J,{get:X[J],enumerable:!0,configurable:!0,set:EY.bind(X,J)})};var C=(Z,X)=>()=>(Z&&(X=Z(Z=0)),X);var B8=((Z)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(Z,{get:(X,J)=>(typeof require<"u"?require:X)[J]}):Z)(function(Z){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+Z+'" is not supported')});var k7={};P7(k7,{sep:()=>i2,resolve:()=>b5,relative:()=>v2,posix:()=>r2,parse:()=>l2,normalize:()=>c8,join:()=>y2,isAbsolute:()=>k2,format:()=>f2,extname:()=>p2,dirname:()=>m2,delimiter:()=>d2,default:()=>u$,basename:()=>u2,_makeLong:()=>h2});function V0(Z){if(typeof Z!=="string")throw TypeError("Path must be a string. Received "+JSON.stringify(Z))}function g2(Z,X){var J="",G=0,Q=-1,U=0,W;for(var q=0;q<=Z.length;++q){if(q<Z.length)W=Z.charCodeAt(q);else if(W===47)break;else W=47;if(W===47){if(Q===q-1||U===1);else if(Q!==q-1&&U===2){if(J.length<2||G!==2||J.charCodeAt(J.length-1)!==46||J.charCodeAt(J.length-2)!==46){if(J.length>2){var Y=J.lastIndexOf("/");if(Y!==J.length-1){if(Y===-1)J="",G=0;else J=J.slice(0,Y),G=J.length-1-J.lastIndexOf("/");Q=q,U=0;continue}}else if(J.length===2||J.length===1){J="",G=0,Q=q,U=0;continue}}if(X){if(J.length>0)J+="/..";else J="..";G=2}}else{if(J.length>0)J+="/"+Z.slice(Q+1,q);else J=Z.slice(Q+1,q);G=q-Q-1}Q=q,U=0}else if(W===46&&U!==-1)++U;else U=-1}return J}function m$(Z,X){var J=X.dir||X.root,G=X.base||(X.name||"")+(X.ext||"");if(!J)return G;if(J===X.root)return J+G;return J+Z+G}function b5(){var Z="",X=!1,J;for(var G=arguments.length-1;G>=-1&&!X;G--){var Q;if(G>=0)Q=arguments[G];else{if(J===void 0)J=process.cwd();Q=J}if(V0(Q),Q.length===0)continue;Z=Q+"/"+Z,X=Q.charCodeAt(0)===47}if(Z=g2(Z,!X),X)if(Z.length>0)return"/"+Z;else return"/";else if(Z.length>0)return Z;else return"."}function c8(Z){if(V0(Z),Z.length===0)return".";var X=Z.charCodeAt(0)===47,J=Z.charCodeAt(Z.length-1)===47;if(Z=g2(Z,!X),Z.length===0&&!X)Z=".";if(Z.length>0&&J)Z+="/";if(X)return"/"+Z;return Z}function k2(Z){return V0(Z),Z.length>0&&Z.charCodeAt(0)===47}function y2(){if(arguments.length===0)return".";var Z;for(var X=0;X<arguments.length;++X){var J=arguments[X];if(V0(J),J.length>0)if(Z===void 0)Z=J;else Z+="/"+J}if(Z===void 0)return".";return c8(Z)}function v2(Z,X){if(V0(Z),V0(X),Z===X)return"";if(Z=b5(Z),X=b5(X),Z===X)return"";var J=1;for(;J<Z.length;++J)if(Z.charCodeAt(J)!==47)break;var G=Z.length,Q=G-J,U=1;for(;U<X.length;++U)if(X.charCodeAt(U)!==47)break;var W=X.length,q=W-U,Y=Q<q?Q:q,H=-1,K=0;for(;K<=Y;++K){if(K===Y){if(q>Y){if(X.charCodeAt(U+K)===47)return X.slice(U+K+1);else if(K===0)return X.slice(U+K)}else if(Q>Y){if(Z.charCodeAt(J+K)===47)H=K;else if(K===0)H=0}break}var $=Z.charCodeAt(J+K),B=X.charCodeAt(U+K);if($!==B)break;else if($===47)H=K}var V="";for(K=J+H+1;K<=G;++K)if(K===G||Z.charCodeAt(K)===47)if(V.length===0)V+="..";else V+="/..";if(V.length>0)return V+X.slice(U+H);else{if(U+=H,X.charCodeAt(U)===47)++U;return X.slice(U)}}function h2(Z){return Z}function m2(Z){if(V0(Z),Z.length===0)return".";var X=Z.charCodeAt(0),J=X===47,G=-1,Q=!0;for(var U=Z.length-1;U>=1;--U)if(X=Z.charCodeAt(U),X===47){if(!Q){G=U;break}}else Q=!1;if(G===-1)return J?"/":".";if(J&&G===1)return"//";return Z.slice(0,G)}function u2(Z,X){if(X!==void 0&&typeof X!=="string")throw TypeError('"ext" argument must be a string');V0(Z);var J=0,G=-1,Q=!0,U;if(X!==void 0&&X.length>0&&X.length<=Z.length){if(X.length===Z.length&&X===Z)return"";var W=X.length-1,q=-1;for(U=Z.length-1;U>=0;--U){var Y=Z.charCodeAt(U);if(Y===47){if(!Q){J=U+1;break}}else{if(q===-1)Q=!1,q=U+1;if(W>=0)if(Y===X.charCodeAt(W)){if(--W===-1)G=U}else W=-1,G=q}}if(J===G)G=q;else if(G===-1)G=Z.length;return Z.slice(J,G)}else{for(U=Z.length-1;U>=0;--U)if(Z.charCodeAt(U)===47){if(!Q){J=U+1;break}}else if(G===-1)Q=!1,G=U+1;if(G===-1)return"";return Z.slice(J,G)}}function p2(Z){V0(Z);var X=-1,J=0,G=-1,Q=!0,U=0;for(var W=Z.length-1;W>=0;--W){var q=Z.charCodeAt(W);if(q===47){if(!Q){J=W+1;break}continue}if(G===-1)Q=!1,G=W+1;if(q===46){if(X===-1)X=W;else if(U!==1)U=1}else if(X!==-1)U=-1}if(X===-1||G===-1||U===0||U===1&&X===G-1&&X===J+1)return"";return Z.slice(X,G)}function f2(Z){if(Z===null||typeof Z!=="object")throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof Z);return m$("/",Z)}function l2(Z){V0(Z);var X={root:"",dir:"",base:"",ext:"",name:""};if(Z.length===0)return X;var J=Z.charCodeAt(0),G=J===47,Q;if(G)X.root="/",Q=1;else Q=0;var U=-1,W=0,q=-1,Y=!0,H=Z.length-1,K=0;for(;H>=Q;--H){if(J=Z.charCodeAt(H),J===47){if(!Y){W=H+1;break}continue}if(q===-1)Y=!1,q=H+1;if(J===46){if(U===-1)U=H;else if(K!==1)K=1}else if(U!==-1)K=-1}if(U===-1||q===-1||K===0||K===1&&U===q-1&&U===W+1){if(q!==-1)if(W===0&&G)X.base=X.name=Z.slice(1,q);else X.base=X.name=Z.slice(W,q)}else{if(W===0&&G)X.name=Z.slice(1,U),X.base=Z.slice(1,q);else X.name=Z.slice(W,U),X.base=Z.slice(W,q);X.ext=Z.slice(U,q)}if(W>0)X.dir=Z.slice(0,W-1);else if(G)X.dir="/";return X}var i2="/",d2=":",r2,u$;var y7=C(()=>{r2=((Z)=>(Z.posix=Z,Z))({resolve:b5,normalize:c8,isAbsolute:k2,join:y2,relative:v2,_makeLong:h2,dirname:m2,basename:u2,extname:p2,format:f2,parse:l2,sep:i2,delimiter:d2,win32:null,posix:null}),u$=r2});function n8(Z){if(Z)throw Z}var XJ=h1((LN,ZJ)=>{var x5=Object.prototype.hasOwnProperty,e2=Object.prototype.toString,c2=Object.defineProperty,n2=Object.getOwnPropertyDescriptor,a2=function(X){if(typeof Array.isArray==="function")return Array.isArray(X);return e2.call(X)==="[object Array]"},s2=function(X){if(!X||e2.call(X)!=="[object Object]")return!1;var J=x5.call(X,"constructor"),G=X.constructor&&X.constructor.prototype&&x5.call(X.constructor.prototype,"isPrototypeOf");if(X.constructor&&!J&&!G)return!1;var Q;for(Q in X);return typeof Q>"u"||x5.call(X,Q)},o2=function(X,J){if(c2&&J.name==="__proto__")c2(X,J.name,{enumerable:!0,configurable:!0,value:J.newValue,writable:!0});else X[J.name]=J.newValue},t2=function(X,J){if(J==="__proto__"){if(!x5.call(X,J))return;else if(n2)return n2(X,J).value}return X[J]};ZJ.exports=function Z(){var X,J,G,Q,U,W,q=arguments[0],Y=1,H=arguments.length,K=!1;if(typeof q==="boolean")K=q,q=arguments[1]||{},Y=2;if(q==null||typeof q!=="object"&&typeof q!=="function")q={};for(;Y<H;++Y)if(X=arguments[Y],X!=null){for(J in X)if(G=t2(q,J),Q=t2(X,J),q!==Q){if(K&&Q&&(s2(Q)||(U=a2(Q)))){if(U)U=!1,W=G&&a2(G)?G:[];else W=G&&s2(G)?G:{};o2(q,{name:J,newValue:Z(K,W,Q)})}else if(typeof Q<"u")o2(q,{name:J,newValue:Q})}}return q}});var JJ=()=>{};function O(Z,X){p$(Boolean(Z),!1,!0,"ok","Expected value to be truthy",X)}function p$(Z,X,J,G,Q,U){if(!Z)throw U instanceof Error?U:new GJ(U||Q,X,J,G,!U)}var GJ;var o=C(()=>{JJ();GJ=class GJ extends Error{name="Assertion";code="ERR_ASSERTION";constructor(Z,X,J,G,Q){super(Z);if(Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);this.actual=X,this.expected=J,this.generated=Q,this.operator=G}}});function v7(Z){if(typeof Z!=="object"||Z===null)return!1;let X=Object.getPrototypeOf(Z);return(X===null||X===Object.prototype||Object.getPrototypeOf(X)===null)&&!(Symbol.toStringTag in Z)&&!(Symbol.iterator in Z)}function a8(){let Z=[],X={run:J,use:G};return X;function J(...Q){let U=-1,W=Q.pop();if(typeof W!=="function")throw TypeError("Expected function as last argument, not "+W);q(null,...Q);function q(Y,...H){let K=Z[++U],$=-1;if(Y){W(Y);return}while(++$<Q.length)if(H[$]===null||H[$]===void 0)H[$]=Q[$];if(Q=H,K)QJ(K,q)(...H);else W(null,...H)}}function G(Q){if(typeof Q!=="function")throw TypeError("Expected `middelware` to be a function, not "+Q);return Z.push(Q),X}}function QJ(Z,X){let J;return G;function G(...W){let q=Z.length>W.length,Y;if(q)W.push(Q);try{Y=Z.apply(this,W)}catch(H){let K=H;if(q&&J)throw K;return Q(K)}if(!q)if(Y&&Y.then&&typeof Y.then==="function")Y.then(U,Q);else if(Y instanceof Error)Q(Y);else U(Y)}function Q(W,...q){if(!J)J=!0,X(W,...q)}function U(W){Q(null,W)}}var UJ=()=>{};function f0(Z){if(!Z||typeof Z!=="object")return"";if("position"in Z||"type"in Z)return WJ(Z.position);if("start"in Z||"end"in Z)return WJ(Z);if("line"in Z||"column"in Z)return s8(Z);return""}function s8(Z){return qJ(Z&&Z.line)+":"+qJ(Z&&Z.column)}function WJ(Z){return s8(Z&&Z.start)+"-"+s8(Z&&Z.end)}function qJ(Z){return Z&&typeof Z==="number"?Z:1}var o8=()=>{};var T1;var YJ=C(()=>{o8();T1=class T1 extends Error{constructor(Z,X,J){super();if(typeof X==="string")J=X,X=void 0;let G="",Q={},U=!1;if(X)if("line"in X&&"column"in X)Q={place:X};else if("start"in X&&"end"in X)Q={place:X};else if("type"in X)Q={ancestors:[X],place:X.position};else Q={...X};if(typeof Z==="string")G=Z;else if(!Q.cause&&Z)U=!0,G=Z.message,Q.cause=Z;if(!Q.ruleId&&!Q.source&&typeof J==="string"){let q=J.indexOf(":");if(q===-1)Q.ruleId=J;else Q.source=J.slice(0,q),Q.ruleId=J.slice(q+1)}if(!Q.place&&Q.ancestors&&Q.ancestors){let q=Q.ancestors[Q.ancestors.length-1];if(q)Q.place=q.position}let W=Q.place&&"start"in Q.place?Q.place.start:Q.place;this.ancestors=Q.ancestors||void 0,this.cause=Q.cause||void 0,this.column=W?W.column:void 0,this.fatal=void 0,this.file="",this.message=G,this.line=W?W.line:void 0,this.name=f0(Q.place)||"1:1",this.place=Q.place||void 0,this.reason=this.message,this.ruleId=Q.ruleId||void 0,this.source=Q.source||void 0,this.stack=U&&Q.cause&&typeof Q.cause.stack==="string"?Q.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};T1.prototype.file="";T1.prototype.name="";T1.prototype.reason="";T1.prototype.message="";T1.prototype.stack="";T1.prototype.column=void 0;T1.prototype.line=void 0;T1.prototype.ancestors=void 0;T1.prototype.cause=void 0;T1.prototype.fatal=void 0;T1.prototype.place=void 0;T1.prototype.ruleId=void 0;T1.prototype.source=void 0});var HJ=C(()=>{YJ()});function f$(Z,X){if(X!==void 0&&typeof X!=="string")throw TypeError('"ext" argument must be a string');h7(Z);let J=0,G=-1,Q=Z.length,U;if(X===void 0||X.length===0||X.length>Z.length){while(Q--)if(Z.codePointAt(Q)===47){if(U){J=Q+1;break}}else if(G<0)U=!0,G=Q+1;return G<0?"":Z.slice(J,G)}if(X===Z)return"";let W=-1,q=X.length-1;while(Q--)if(Z.codePointAt(Q)===47){if(U){J=Q+1;break}}else{if(W<0)U=!0,W=Q+1;if(q>-1)if(Z.codePointAt(Q)===X.codePointAt(q--)){if(q<0)G=Q}else q=-1,G=W}if(J===G)G=W;else if(G<0)G=Z.length;return Z.slice(J,G)}function l$(Z){if(h7(Z),Z.length===0)return".";let X=-1,J=Z.length,G;while(--J)if(Z.codePointAt(J)===47){if(G){X=J;break}}else if(!G)G=!0;return X<0?Z.codePointAt(0)===47?"/":".":X===1&&Z.codePointAt(0)===47?"//":Z.slice(0,X)}function i$(Z){h7(Z);let X=Z.length,J=-1,G=0,Q=-1,U=0,W;while(X--){let q=Z.codePointAt(X);if(q===47){if(W){G=X+1;break}continue}if(J<0)W=!0,J=X+1;if(q===46){if(Q<0)Q=X;else if(U!==1)U=1}else if(Q>-1)U=-1}if(Q<0||J<0||U===0||U===1&&Q===J-1&&Q===G+1)return"";return Z.slice(Q,J)}function d$(...Z){let X=-1,J;while(++X<Z.length)if(h7(Z[X]),Z[X])J=J===void 0?Z[X]:J+"/"+Z[X];return J===void 0?".":r$(J)}function r$(Z){h7(Z);let X=Z.codePointAt(0)===47,J=c$(Z,!X);if(J.length===0&&!X)J=".";if(J.length>0&&Z.codePointAt(Z.length-1)===47)J+="/";return X?"/"+J:J}function c$(Z,X){let J="",G=0,Q=-1,U=0,W=-1,q,Y;while(++W<=Z.length){if(W<Z.length)q=Z.codePointAt(W);else if(q===47)break;else q=47;if(q===47){if(Q===W-1||U===1);else if(Q!==W-1&&U===2){if(J.length<2||G!==2||J.codePointAt(J.length-1)!==46||J.codePointAt(J.length-2)!==46){if(J.length>2){if(Y=J.lastIndexOf("/"),Y!==J.length-1){if(Y<0)J="",G=0;else J=J.slice(0,Y),G=J.length-1-J.lastIndexOf("/");Q=W,U=0;continue}}else if(J.length>0){J="",G=0,Q=W,U=0;continue}}if(X)J=J.length>0?J+"/..":"..",G=2}else{if(J.length>0)J+="/"+Z.slice(Q+1,W);else J=Z.slice(Q+1,W);G=W-Q-1}Q=W,U=0}else if(q===46&&U>-1)U++;else U=-1}return J}function h7(Z){if(typeof Z!=="string")throw TypeError("Path must be a string. Received "+JSON.stringify(Z))}var J0;var KJ=C(()=>{J0={basename:f$,dirname:l$,extname:i$,join:d$,sep:"/"}});function n$(){return"/"}var $J;var zJ=C(()=>{$J={cwd:n$}});function u4(Z){return Boolean(Z!==null&&typeof Z==="object"&&"href"in Z&&Z.href&&"protocol"in Z&&Z.protocol&&Z.auth===void 0)}function VJ(Z){if(typeof Z==="string")Z=new URL(Z);else if(!u4(Z)){let X=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+Z+"`");throw X.code="ERR_INVALID_ARG_TYPE",X}if(Z.protocol!=="file:"){let X=TypeError("The URL must be of scheme file");throw X.code="ERR_INVALID_URL_SCHEME",X}return a$(Z)}function a$(Z){if(Z.hostname!==""){let G=TypeError('File URL host must be "localhost" or empty on darwin');throw G.code="ERR_INVALID_FILE_URL_HOST",G}let X=Z.pathname,J=-1;while(++J<X.length)if(X.codePointAt(J)===37&&X.codePointAt(J+1)===50){let G=X.codePointAt(J+2);if(G===70||G===102){let Q=TypeError("File URL path must not include encoded / characters");throw Q.code="ERR_INVALID_FILE_URL_PATH",Q}}return decodeURIComponent(X)}var BJ=()=>{};class g5{constructor(Z){let X;if(!Z)X={};else if(u4(Z))X={path:Z};else if(typeof Z==="string"||s$(Z))X={value:Z};else X=Z;this.cwd="cwd"in X?"":$J.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let J=-1;while(++J<t8.length){let Q=t8[J];if(Q in X&&X[Q]!==void 0&&X[Q]!==null)this[Q]=Q==="history"?[...X[Q]]:X[Q]}let G;for(G in X)if(!t8.includes(G))this[G]=X[G]}get basename(){return typeof this.path==="string"?J0.basename(this.path):void 0}set basename(Z){Z3(Z,"basename"),e8(Z,"basename"),this.path=J0.join(this.dirname||"",Z)}get dirname(){return typeof this.path==="string"?J0.dirname(this.path):void 0}set dirname(Z){FJ(this.basename,"dirname"),this.path=J0.join(Z||"",this.basename)}get extname(){return typeof this.path==="string"?J0.extname(this.path):void 0}set extname(Z){if(e8(Z,"extname"),FJ(this.dirname,"extname"),Z){if(Z.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(Z.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=J0.join(this.dirname,this.stem+(Z||""))}get path(){return this.history[this.history.length-1]}set path(Z){if(u4(Z))Z=VJ(Z);if(Z3(Z,"path"),this.path!==Z)this.history.push(Z)}get stem(){return typeof this.path==="string"?J0.basename(this.path,this.extname):void 0}set stem(Z){Z3(Z,"stem"),e8(Z,"stem"),this.path=J0.join(this.dirname||"",Z+(this.extname||""))}fail(Z,X,J){let G=this.message(Z,X,J);throw G.fatal=!0,G}info(Z,X,J){let G=this.message(Z,X,J);return G.fatal=void 0,G}message(Z,X,J){let G=new T1(Z,X,J);if(this.path)G.name=this.path+":"+G.name,G.file=this.path;return G.fatal=!1,this.messages.push(G),G}toString(Z){if(this.value===void 0)return"";if(typeof this.value==="string")return this.value;return new TextDecoder(Z||void 0).decode(this.value)}}function e8(Z,X){if(Z&&Z.includes(J0.sep))throw Error("`"+X+"` cannot be a path: did not expect `"+J0.sep+"`")}function Z3(Z,X){if(!Z)throw Error("`"+X+"` cannot be empty")}function FJ(Z,X){if(!Z)throw Error("Setting `"+X+"` requires `path` to be set too")}function s$(Z){return Boolean(Z&&typeof Z==="object"&&"byteLength"in Z&&"byteOffset"in Z)}var t8;var MJ=C(()=>{HJ();KJ();zJ();BJ();t8=["history","path","basename","stem","extname","dirname"]});var DJ=C(()=>{MJ()});var _J=function(Z){let G=this.constructor.prototype,Q=G[Z],U=function(){return Q.apply(U,arguments)};return Object.setPrototypeOf(U,G),U};function X3(Z,X){if(typeof X!=="function")throw TypeError("Cannot `"+Z+"` without `parser`")}function J3(Z,X){if(typeof X!=="function")throw TypeError("Cannot `"+Z+"` without `compiler`")}function G3(Z,X){if(X)throw Error("Cannot call `"+Z+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function RJ(Z){if(!v7(Z)||typeof Z.type!=="string")throw TypeError("Expected node, got `"+Z+"`")}function OJ(Z,X,J){if(!J)throw Error("`"+Z+"` finished async. Use `"+X+"` instead")}function k5(Z){return t$(Z)?Z:new g5(Z)}function t$(Z){return Boolean(Z&&typeof Z==="object"&&"message"in Z&&"messages"in Z)}function e$(Z){return typeof Z==="string"||Zz(Z)}function Zz(Z){return Boolean(Z&&typeof Z==="object"&&"byteLength"in Z&&"byteOffset"in Z)}var y5,o$,Q3,U3;var NJ=C(()=>{o();UJ();DJ();y5=H5(XJ(),1),o$={}.hasOwnProperty;Q3=class Q3 extends _J{constructor(){super("copy");this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=a8()}copy(){let Z=new Q3,X=-1;while(++X<this.attachers.length){let J=this.attachers[X];Z.use(...J)}return Z.data(y5.default(!0,{},this.namespace)),Z}data(Z,X){if(typeof Z==="string"){if(arguments.length===2)return G3("data",this.frozen),this.namespace[Z]=X,this;return o$.call(this.namespace,Z)&&this.namespace[Z]||void 0}if(Z)return G3("data",this.frozen),this.namespace=Z,this;return this.namespace}freeze(){if(this.frozen)return this;let Z=this;while(++this.freezeIndex<this.attachers.length){let[X,...J]=this.attachers[this.freezeIndex];if(J[0]===!1)continue;if(J[0]===!0)J[0]=void 0;let G=X.call(Z,...J);if(typeof G==="function")this.transformers.use(G)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(Z){this.freeze();let X=k5(Z),J=this.parser||this.Parser;return X3("parse",J),J(String(X),X)}process(Z,X){let J=this;return this.freeze(),X3("process",this.parser||this.Parser),J3("process",this.compiler||this.Compiler),X?G(void 0,X):new Promise(G);function G(Q,U){let W=k5(Z),q=J.parse(W);J.run(q,W,function(H,K,$){if(H||!K||!$)return Y(H);let B=K,V=J.stringify(B,$);if(e$(V))$.value=V;else $.result=V;Y(H,$)});function Y(H,K){if(H||!K)U(H);else if(Q)Q(K);else O(X,"`done` is defined if `resolve` is not"),X(void 0,K)}}}processSync(Z){let X=!1,J;return this.freeze(),X3("processSync",this.parser||this.Parser),J3("processSync",this.compiler||this.Compiler),this.process(Z,G),OJ("processSync","process",X),O(J,"we either bailed on an error or have a tree"),J;function G(Q,U){X=!0,n8(Q),J=U}}run(Z,X,J){RJ(Z),this.freeze();let G=this.transformers;if(!J&&typeof X==="function")J=X,X=void 0;return J?Q(void 0,J):new Promise(Q);function Q(U,W){O(typeof X!=="function","`file` can’t be a `done` anymore, we checked");let q=k5(X);G.run(Z,q,Y);function Y(H,K,$){let B=K||Z;if(H)W(H);else if(U)U(B);else O(J,"`done` is defined if `resolve` is not"),J(void 0,B,$)}}}runSync(Z,X){let J=!1,G;return this.run(Z,X,Q),OJ("runSync","run",J),O(G,"we either bailed on an error or have a tree"),G;function Q(U,W){n8(U),G=W,J=!0}}stringify(Z,X){this.freeze();let J=k5(X),G=this.compiler||this.Compiler;return J3("stringify",G),RJ(Z),G(Z,J)}use(Z,...X){let J=this.attachers,G=this.namespace;if(G3("use",this.frozen),Z===null||Z===void 0);else if(typeof Z==="function")q(Z,X);else if(typeof Z==="object")if(Array.isArray(Z))W(Z);else U(Z);else throw TypeError("Expected usable value, not `"+Z+"`");return this;function Q(Y){if(typeof Y==="function")q(Y,[]);else if(typeof Y==="object")if(Array.isArray(Y)){let[H,...K]=Y;q(H,K)}else U(Y);else throw TypeError("Expected usable value, not `"+Y+"`")}function U(Y){if(!("plugins"in Y)&&!("settings"in Y))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");if(W(Y.plugins),Y.settings)G.settings=y5.default(!0,G.settings,Y.settings)}function W(Y){let H=-1;if(Y===null||Y===void 0);else if(Array.isArray(Y))while(++H<Y.length){let K=Y[H];Q(K)}else throw TypeError("Expected a list of plugins, not `"+Y+"`")}function q(Y,H){let K=-1,$=-1;while(++K<J.length)if(J[K][0]===Y){$=K;break}if($===-1)J.push([Y,...H]);else if(H.length>0){let[B,...V]=H,M=J[$][1];if(v7(M)&&v7(B))B=y5.default(!0,M,B);J[$]=[Y,B,...V]}}}};U3=new Q3().freeze()});var LJ=C(()=>{NJ()});function q4(Z,X){let J=X||Xz,G=typeof J.includeImageAlt==="boolean"?J.includeImageAlt:!0,Q=typeof J.includeHtml==="boolean"?J.includeHtml:!0;return AJ(Z,G,Q)}function AJ(Z,X,J){if(Jz(Z)){if("value"in Z)return Z.type==="html"&&!J?"":Z.value;if(X&&"alt"in Z&&Z.alt)return Z.alt;if("children"in Z)return IJ(Z.children,X,J)}if(Array.isArray(Z))return IJ(Z,X,J);return""}function IJ(Z,X,J){let G=[],Q=-1;while(++Q<Z.length)G[Q]=AJ(Z[Q],X,J);return G.join("")}function Jz(Z){return Boolean(Z&&typeof Z==="object")}var Xz;var PJ=C(()=>{Xz={}});var v5=C(()=>{PJ()});function T0(Z){let X="&"+Z+";";wJ.innerHTML=X;let J=wJ.textContent;if(J.charCodeAt(J.length-1)===59&&Z!=="semi")return!1;return J===X?!1:J}var wJ;var m7=C(()=>{wJ=document.createElement("i")});var z;var TJ=C(()=>{z={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533}});var g;var CJ=C(()=>{g={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:"content",contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4}});var F;var jJ=C(()=>{F={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"}});var d1;var EJ=C(()=>{d1={ht:"\t",lf:`
2
+ `,cr:"\r",space:" ",exclamationMark:"!",quotationMark:'"',numberSign:"#",dollarSign:"$",percentSign:"%",ampersand:"&",apostrophe:"'",leftParenthesis:"(",rightParenthesis:")",asterisk:"*",plusSign:"+",comma:",",dash:"-",dot:".",slash:"/",digit0:"0",digit1:"1",digit2:"2",digit3:"3",digit4:"4",digit5:"5",digit6:"6",digit7:"7",digit8:"8",digit9:"9",colon:":",semicolon:";",lessThan:"<",equalsTo:"=",greaterThan:">",questionMark:"?",atSign:"@",uppercaseA:"A",uppercaseB:"B",uppercaseC:"C",uppercaseD:"D",uppercaseE:"E",uppercaseF:"F",uppercaseG:"G",uppercaseH:"H",uppercaseI:"I",uppercaseJ:"J",uppercaseK:"K",uppercaseL:"L",uppercaseM:"M",uppercaseN:"N",uppercaseO:"O",uppercaseP:"P",uppercaseQ:"Q",uppercaseR:"R",uppercaseS:"S",uppercaseT:"T",uppercaseU:"U",uppercaseV:"V",uppercaseW:"W",uppercaseX:"X",uppercaseY:"Y",uppercaseZ:"Z",leftSquareBracket:"[",backslash:"\\",rightSquareBracket:"]",caret:"^",underscore:"_",graveAccent:"`",lowercaseA:"a",lowercaseB:"b",lowercaseC:"c",lowercaseD:"d",lowercaseE:"e",lowercaseF:"f",lowercaseG:"g",lowercaseH:"h",lowercaseI:"i",lowercaseJ:"j",lowercaseK:"k",lowercaseL:"l",lowercaseM:"m",lowercaseN:"n",lowercaseO:"o",lowercaseP:"p",lowercaseQ:"q",lowercaseR:"r",lowercaseS:"s",lowercaseT:"t",lowercaseU:"u",lowercaseV:"v",lowercaseW:"w",lowercaseX:"x",lowercaseY:"y",lowercaseZ:"z",leftCurlyBrace:"{",verticalBar:"|",rightCurlyBrace:"}",tilde:"~",replacementCharacter:"�"}});var c=C(()=>{TJ();CJ();jJ();EJ()});function B1(Z,X,J,G){let Q=Z.length,U=0,W;if(X<0)X=-X>Q?0:Q+X;else X=X>Q?Q:X;if(J=J>0?J:0,G.length<g.v8MaxSafeChunkSize)W=Array.from(G),W.unshift(X,J),Z.splice(...W);else{if(J)Z.splice(X,J);while(U<G.length)W=G.slice(U,U+g.v8MaxSafeChunkSize),W.unshift(X,0),Z.splice(...W),U+=g.v8MaxSafeChunkSize,X+=g.v8MaxSafeChunkSize}}function y1(Z,X){if(Z.length>0)return B1(Z,Z.length,0,X),Z;return X}var C0=C(()=>{c()});function h5(Z){let X={},J=-1;while(++J<Z.length)Gz(X,Z[J]);return X}function Gz(Z,X){let J;for(J in X){let Q=(SJ.call(Z,J)?Z[J]:void 0)||(Z[J]={}),U=X[J],W;if(U)for(W in U){if(!SJ.call(Q,W))Q[W]=[];let q=U[W];Qz(Q[W],Array.isArray(q)?q:q?[q]:[])}}}function Qz(Z,X){let J=-1,G=[];while(++J<X.length)(X[J].add==="after"?Z:G).push(X[J]);B1(Z,0,0,G)}var SJ;var W3=C(()=>{C0();SJ={}.hasOwnProperty});function m5(Z,X){let J=Number.parseInt(Z,X);if(J<z.ht||J===z.vt||J>z.cr&&J<z.space||J>z.tilde&&J<160||J>55295&&J<57344||J>64975&&J<65008||(J&65535)===65535||(J&65535)===65534||J>1114111)return d1.replacementCharacter;return String.fromCodePoint(J)}var q3=C(()=>{c()});function S1(Z){return Z.replace(/[\t\n\r ]+/g,d1.space).replace(/^ | $/g,"").toLowerCase().toUpperCase()}var p4=C(()=>{c()});function Y4(Z){return Z!==null&&(Z<z.space||Z===z.del)}function k(Z){return Z!==null&&Z<z.horizontalTab}function t(Z){return Z!==null&&(Z<z.nul||Z===z.space)}function d(Z){return Z===z.horizontalTab||Z===z.virtualSpace||Z===z.space}function l0(Z){return X;function X(J){return J!==null&&J>-1&&Z.test(String.fromCharCode(J))}}var L1,I1,bJ,u7,xJ,gJ,r1,b1;var Z1=C(()=>{c();L1=l0(/[A-Za-z]/),I1=l0(/[\dA-Za-z]/),bJ=l0(/[#-'*+\--9=?A-Z^-~]/);u7=l0(/\d/),xJ=l0(/[\dA-Fa-f]/),gJ=l0(/[!-/:-@[-`{-~]/);r1=l0(/\p{P}|\p{S}/u),b1=l0(/\s/)});function l(Z,X,J,G){let Q=G?G-1:Number.POSITIVE_INFINITY,U=0;return W;function W(Y){if(d(Y))return Z.enter(J),q(Y);return X(Y)}function q(Y){if(d(Y)&&U++<Q)return Z.consume(Y),q;return Z.exit(J),X(Y)}}var K1=C(()=>{Z1()});function Uz(Z){let X=Z.attempt(this.parser.constructs.contentInitial,G,Q),J;return X;function G(q){if(O(q===z.eof||k(q),"expected eol or eof"),q===z.eof){Z.consume(q);return}return Z.enter(F.lineEnding),Z.consume(q),Z.exit(F.lineEnding),l(Z,X,F.linePrefix)}function Q(q){return O(q!==z.eof&&!k(q),"expected anything other than a line ending or EOF"),Z.enter(F.paragraph),U(q)}function U(q){let Y=Z.enter(F.chunkText,{contentType:g.contentTypeText,previous:J});if(J)J.next=Y;return J=Y,W(q)}function W(q){if(q===z.eof){Z.exit(F.chunkText),Z.exit(F.paragraph),Z.consume(q);return}if(k(q))return Z.consume(q),Z.exit(F.chunkText),U;return Z.consume(q),W}}var kJ;var yJ=C(()=>{o();K1();Z1();c();kJ={tokenize:Uz}});function Wz(Z){let X=this,J=[],G=0,Q,U,W;return q;function q(L){if(G<J.length){let E=J[G];return X.containerState=E[1],O(E[0].continuation,"expected `continuation` to be defined on container construct"),Z.attempt(E[0].continuation,Y,H)(L)}return H(L)}function Y(L){if(O(X.containerState,"expected `containerState` to be defined after continuation"),G++,X.containerState._closeFlow){if(X.containerState._closeFlow=void 0,Q)N();let E=X.events.length,m=E,w;while(m--)if(X.events[m][0]==="exit"&&X.events[m][1].type===F.chunkFlow){w=X.events[m][1].end;break}O(w,"could not find previous flow chunk"),R(G);let y=E;while(y<X.events.length)X.events[y][1].end={...w},y++;return B1(X.events,m+1,0,X.events.slice(E)),X.events.length=y,H(L)}return q(L)}function H(L){if(G===J.length){if(!Q)return B(L);if(Q.currentConstruct&&Q.currentConstruct.concrete)return M(L);X.interrupt=Boolean(Q.currentConstruct&&!Q._gfmTableDynamicInterruptHack)}return X.containerState={},Z.check(vJ,K,$)(L)}function K(L){if(Q)N();return R(G),B(L)}function $(L){return X.parser.lazy[X.now().line]=G!==J.length,W=X.now().offset,M(L)}function B(L){return X.containerState={},Z.attempt(vJ,V,M)(L)}function V(L){return O(X.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),O(X.containerState,"expected `containerState` to be defined on tokenizer"),G++,J.push([X.currentConstruct,X.containerState]),B(L)}function M(L){if(L===z.eof){if(Q)N();R(0),Z.consume(L);return}return Q=Q||X.parser.flow(X.now()),Z.enter(F.chunkFlow,{_tokenizer:Q,contentType:g.contentTypeFlow,previous:U}),_(L)}function _(L){if(L===z.eof){D(Z.exit(F.chunkFlow),!0),R(0),Z.consume(L);return}if(k(L))return Z.consume(L),D(Z.exit(F.chunkFlow)),G=0,X.interrupt=void 0,q;return Z.consume(L),_}function D(L,E){O(Q,"expected `childFlow` to be defined when continuing");let m=X.sliceStream(L);if(E)m.push(null);if(L.previous=U,U)U.next=L;if(U=L,Q.defineSkip(L.start),Q.write(m),X.parser.lazy[L.start.line]){let w=Q.events.length;while(w--)if(Q.events[w][1].start.offset<W&&(!Q.events[w][1].end||Q.events[w][1].end.offset>W))return;let y=X.events.length,h=y,j,P;while(h--)if(X.events[h][0]==="exit"&&X.events[h][1].type===F.chunkFlow){if(j){P=X.events[h][1].end;break}j=!0}O(P,"could not find previous flow chunk"),R(G),w=y;while(w<X.events.length)X.events[w][1].end={...P},w++;B1(X.events,h+1,0,X.events.slice(y)),X.events.length=w}}function R(L){let E=J.length;while(E-- >L){let m=J[E];X.containerState=m[1],O(m[0].exit,"expected `exit` to be defined on container construct"),m[0].exit.call(X,Z)}J.length=L}function N(){O(X.containerState,"expected `containerState` to be defined when closing flow"),O(Q,"expected `childFlow` to be defined when closing it"),Q.write([z.eof]),U=void 0,Q=void 0,X.containerState._closeFlow=void 0}}function qz(Z,X,J){return O(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),l(Z,Z.attempt(this.parser.constructs.document,X,J),F.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:g.tabSize)}var hJ,vJ;var mJ=C(()=>{o();K1();Z1();C0();c();hJ={tokenize:Wz},vJ={tokenize:qz}});function j0(Z){if(Z===z.eof||t(Z)||b1(Z))return g.characterGroupWhitespace;if(r1(Z))return g.characterGroupPunctuation}var u5=C(()=>{Z1();c()});function i0(Z,X,J){let G=[],Q=-1;while(++Q<Z.length){let U=Z[Q].resolveAll;if(U&&!G.includes(U))X=U(X,J),G.push(U)}return X}function Yz(Z,X){let J=-1,G,Q,U,W,q,Y,H,K;while(++J<Z.length)if(Z[J][0]==="enter"&&Z[J][1].type==="attentionSequence"&&Z[J][1]._close){G=J;while(G--)if(Z[G][0]==="exit"&&Z[G][1].type==="attentionSequence"&&Z[G][1]._open&&X.sliceSerialize(Z[G][1]).charCodeAt(0)===X.sliceSerialize(Z[J][1]).charCodeAt(0)){if((Z[G][1]._close||Z[J][1]._open)&&(Z[J][1].end.offset-Z[J][1].start.offset)%3&&!((Z[G][1].end.offset-Z[G][1].start.offset+Z[J][1].end.offset-Z[J][1].start.offset)%3))continue;Y=Z[G][1].end.offset-Z[G][1].start.offset>1&&Z[J][1].end.offset-Z[J][1].start.offset>1?2:1;let $={...Z[G][1].end},B={...Z[J][1].start};if(uJ($,-Y),uJ(B,Y),W={type:Y>1?F.strongSequence:F.emphasisSequence,start:$,end:{...Z[G][1].end}},q={type:Y>1?F.strongSequence:F.emphasisSequence,start:{...Z[J][1].start},end:B},U={type:Y>1?F.strongText:F.emphasisText,start:{...Z[G][1].end},end:{...Z[J][1].start}},Q={type:Y>1?F.strong:F.emphasis,start:{...W.start},end:{...q.end}},Z[G][1].end={...W.start},Z[J][1].start={...q.end},H=[],Z[G][1].end.offset-Z[G][1].start.offset)H=y1(H,[["enter",Z[G][1],X],["exit",Z[G][1],X]]);if(H=y1(H,[["enter",Q,X],["enter",W,X],["exit",W,X],["enter",U,X]]),O(X.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),H=y1(H,i0(X.parser.constructs.insideSpan.null,Z.slice(G+1,J),X)),H=y1(H,[["exit",U,X],["enter",q,X],["exit",q,X],["exit",Q,X]]),Z[J][1].end.offset-Z[J][1].start.offset)K=2,H=y1(H,[["enter",Z[J][1],X],["exit",Z[J][1],X]]);else K=0;B1(Z,G-1,J-G+3,H),J=G+H.length-K-2;break}}J=-1;while(++J<Z.length)if(Z[J][1].type==="attentionSequence")Z[J][1].type="data";return Z}function Hz(Z,X){let J=this.parser.constructs.attentionMarkers.null,G=this.previous,Q=j0(G),U;return W;function W(Y){return O(Y===z.asterisk||Y===z.underscore,"expected asterisk or underscore"),U=Y,Z.enter("attentionSequence"),q(Y)}function q(Y){if(Y===U)return Z.consume(Y),q;let H=Z.exit("attentionSequence"),K=j0(Y);O(J,"expected `attentionMarkers` to be populated");let $=!K||K===g.characterGroupPunctuation&&Q||J.includes(Y),B=!Q||Q===g.characterGroupPunctuation&&K||J.includes(G);return H._open=Boolean(U===z.asterisk?$:$&&(Q||!B)),H._close=Boolean(U===z.asterisk?B:B&&(K||!$)),X(Y)}}function uJ(Z,X){Z.column+=X,Z.offset+=X,Z._bufferIndex+=X}var p7;var pJ=C(()=>{o();C0();u5();c();p7={name:"attention",resolveAll:Yz,tokenize:Hz}});function Kz(Z,X,J){let G=0;return Q;function Q(V){return O(V===z.lessThan,"expected `<`"),Z.enter(F.autolink),Z.enter(F.autolinkMarker),Z.consume(V),Z.exit(F.autolinkMarker),Z.enter(F.autolinkProtocol),U}function U(V){if(L1(V))return Z.consume(V),W;if(V===z.atSign)return J(V);return H(V)}function W(V){if(V===z.plusSign||V===z.dash||V===z.dot||I1(V))return G=1,q(V);return H(V)}function q(V){if(V===z.colon)return Z.consume(V),G=0,Y;if((V===z.plusSign||V===z.dash||V===z.dot||I1(V))&&G++<g.autolinkSchemeSizeMax)return Z.consume(V),q;return G=0,H(V)}function Y(V){if(V===z.greaterThan)return Z.exit(F.autolinkProtocol),Z.enter(F.autolinkMarker),Z.consume(V),Z.exit(F.autolinkMarker),Z.exit(F.autolink),X;if(V===z.eof||V===z.space||V===z.lessThan||Y4(V))return J(V);return Z.consume(V),Y}function H(V){if(V===z.atSign)return Z.consume(V),K;if(bJ(V))return Z.consume(V),H;return J(V)}function K(V){return I1(V)?$(V):J(V)}function $(V){if(V===z.dot)return Z.consume(V),G=0,K;if(V===z.greaterThan)return Z.exit(F.autolinkProtocol).type=F.autolinkEmail,Z.enter(F.autolinkMarker),Z.consume(V),Z.exit(F.autolinkMarker),Z.exit(F.autolink),X;return B(V)}function B(V){if((V===z.dash||I1(V))&&G++<g.autolinkDomainSizeMax){let M=V===z.dash?B:$;return Z.consume(V),M}return J(V)}}var Y3;var fJ=C(()=>{o();Z1();c();Y3={name:"autolink",tokenize:Kz}});function $z(Z,X,J){return G;function G(U){return d(U)?l(Z,Q,F.linePrefix)(U):Q(U)}function Q(U){return U===z.eof||k(U)?X(U):J(U)}}var B0;var p5=C(()=>{K1();Z1();c();B0={partial:!0,tokenize:$z}});function zz(Z,X,J){let G=this;return Q;function Q(W){if(W===z.greaterThan){let q=G.containerState;if(O(q,"expected `containerState` to be defined in container"),!q.open)Z.enter(F.blockQuote,{_container:!0}),q.open=!0;return Z.enter(F.blockQuotePrefix),Z.enter(F.blockQuoteMarker),Z.consume(W),Z.exit(F.blockQuoteMarker),U}return J(W)}function U(W){if(d(W))return Z.enter(F.blockQuotePrefixWhitespace),Z.consume(W),Z.exit(F.blockQuotePrefixWhitespace),Z.exit(F.blockQuotePrefix),X;return Z.exit(F.blockQuotePrefix),X(W)}}function Vz(Z,X,J){let G=this;return Q;function Q(W){if(d(W))return O(G.parser.constructs.disable.null,"expected `disable.null` to be populated"),l(Z,U,F.linePrefix,G.parser.constructs.disable.null.includes("codeIndented")?void 0:g.tabSize)(W);return U(W)}function U(W){return Z.attempt(f5,X,J)(W)}}function Bz(Z){Z.exit(F.blockQuote)}var f5;var lJ=C(()=>{o();K1();Z1();c();f5={continuation:{tokenize:Vz},exit:Bz,name:"blockQuote",tokenize:zz}});function Fz(Z,X,J){return G;function G(U){return O(U===z.backslash,"expected `\\`"),Z.enter(F.characterEscape),Z.enter(F.escapeMarker),Z.consume(U),Z.exit(F.escapeMarker),Q}function Q(U){if(gJ(U))return Z.enter(F.characterEscapeValue),Z.consume(U),Z.exit(F.characterEscapeValue),Z.exit(F.characterEscape),X;return J(U)}}var l5;var iJ=C(()=>{o();Z1();c();l5={name:"characterEscape",tokenize:Fz}});function Mz(Z,X,J){let G=this,Q=0,U,W;return q;function q($){return O($===z.ampersand,"expected `&`"),Z.enter(F.characterReference),Z.enter(F.characterReferenceMarker),Z.consume($),Z.exit(F.characterReferenceMarker),Y}function Y($){if($===z.numberSign)return Z.enter(F.characterReferenceMarkerNumeric),Z.consume($),Z.exit(F.characterReferenceMarkerNumeric),H;return Z.enter(F.characterReferenceValue),U=g.characterReferenceNamedSizeMax,W=I1,K($)}function H($){if($===z.uppercaseX||$===z.lowercaseX)return Z.enter(F.characterReferenceMarkerHexadecimal),Z.consume($),Z.exit(F.characterReferenceMarkerHexadecimal),Z.enter(F.characterReferenceValue),U=g.characterReferenceHexadecimalSizeMax,W=xJ,K;return Z.enter(F.characterReferenceValue),U=g.characterReferenceDecimalSizeMax,W=u7,K($)}function K($){if($===z.semicolon&&Q){let B=Z.exit(F.characterReferenceValue);if(W===I1&&!T0(G.sliceSerialize(B)))return J($);return Z.enter(F.characterReferenceMarker),Z.consume($),Z.exit(F.characterReferenceMarker),Z.exit(F.characterReference),X}if(W($)&&Q++<U)return Z.consume($),K;return J($)}}var i5;var dJ=C(()=>{o();m7();Z1();c();i5={name:"characterReference",tokenize:Mz}});function Dz(Z,X,J){let G=this,Q={partial:!0,tokenize:m},U=0,W=0,q;return Y;function Y(w){return H(w)}function H(w){O(w===z.graveAccent||w===z.tilde,"expected `` ` `` or `~`");let y=G.events[G.events.length-1];return U=y&&y[1].type===F.linePrefix?y[2].sliceSerialize(y[1],!0).length:0,q=w,Z.enter(F.codeFenced),Z.enter(F.codeFencedFence),Z.enter(F.codeFencedFenceSequence),K(w)}function K(w){if(w===q)return W++,Z.consume(w),K;if(W<g.codeFencedSequenceSizeMin)return J(w);return Z.exit(F.codeFencedFenceSequence),d(w)?l(Z,$,F.whitespace)(w):$(w)}function $(w){if(w===z.eof||k(w))return Z.exit(F.codeFencedFence),G.interrupt?X(w):Z.check(rJ,_,E)(w);return Z.enter(F.codeFencedFenceInfo),Z.enter(F.chunkString,{contentType:g.contentTypeString}),B(w)}function B(w){if(w===z.eof||k(w))return Z.exit(F.chunkString),Z.exit(F.codeFencedFenceInfo),$(w);if(d(w))return Z.exit(F.chunkString),Z.exit(F.codeFencedFenceInfo),l(Z,V,F.whitespace)(w);if(w===z.graveAccent&&w===q)return J(w);return Z.consume(w),B}function V(w){if(w===z.eof||k(w))return $(w);return Z.enter(F.codeFencedFenceMeta),Z.enter(F.chunkString,{contentType:g.contentTypeString}),M(w)}function M(w){if(w===z.eof||k(w))return Z.exit(F.chunkString),Z.exit(F.codeFencedFenceMeta),$(w);if(w===z.graveAccent&&w===q)return J(w);return Z.consume(w),M}function _(w){return O(k(w),"expected eol"),Z.attempt(Q,E,D)(w)}function D(w){return O(k(w),"expected eol"),Z.enter(F.lineEnding),Z.consume(w),Z.exit(F.lineEnding),R}function R(w){return U>0&&d(w)?l(Z,N,F.linePrefix,U+1)(w):N(w)}function N(w){if(w===z.eof||k(w))return Z.check(rJ,_,E)(w);return Z.enter(F.codeFlowValue),L(w)}function L(w){if(w===z.eof||k(w))return Z.exit(F.codeFlowValue),N(w);return Z.consume(w),L}function E(w){return Z.exit(F.codeFenced),X(w)}function m(w,y,h){let j=0;return P;function P(T){return O(k(T),"expected eol"),w.enter(F.lineEnding),w.consume(T),w.exit(F.lineEnding),n}function n(T){return O(G.parser.constructs.disable.null,"expected `disable.null` to be populated"),w.enter(F.codeFencedFence),d(T)?l(w,a,F.linePrefix,G.parser.constructs.disable.null.includes("codeIndented")?void 0:g.tabSize)(T):a(T)}function a(T){if(T===q)return w.enter(F.codeFencedFenceSequence),v(T);return h(T)}function v(T){if(T===q)return j++,w.consume(T),v;if(j>=W)return w.exit(F.codeFencedFenceSequence),d(T)?l(w,f,F.whitespace)(T):f(T);return h(T)}function f(T){if(T===z.eof||k(T))return w.exit(F.codeFencedFence),y(T);return h(T)}}}function _z(Z,X,J){let G=this;return Q;function Q(W){if(W===z.eof)return J(W);return O(k(W),"expected eol"),Z.enter(F.lineEnding),Z.consume(W),Z.exit(F.lineEnding),U}function U(W){return G.parser.lazy[G.now().line]?J(W):X(W)}}var rJ,d5;var cJ=C(()=>{o();K1();Z1();c();rJ={partial:!0,tokenize:_z},d5={concrete:!0,name:"codeFenced",tokenize:Dz}});function Oz(Z,X,J){let G=this;return Q;function Q(H){return O(d(H)),Z.enter(F.codeIndented),l(Z,U,F.linePrefix,g.tabSize+1)(H)}function U(H){let K=G.events[G.events.length-1];return K&&K[1].type===F.linePrefix&&K[2].sliceSerialize(K[1],!0).length>=g.tabSize?W(H):J(H)}function W(H){if(H===z.eof)return Y(H);if(k(H))return Z.attempt(Rz,W,Y)(H);return Z.enter(F.codeFlowValue),q(H)}function q(H){if(H===z.eof||k(H))return Z.exit(F.codeFlowValue),W(H);return Z.consume(H),q}function Y(H){return Z.exit(F.codeIndented),X(H)}}function Nz(Z,X,J){let G=this;return Q;function Q(W){if(G.parser.lazy[G.now().line])return J(W);if(k(W))return Z.enter(F.lineEnding),Z.consume(W),Z.exit(F.lineEnding),Q;return l(Z,U,F.linePrefix,g.tabSize+1)(W)}function U(W){let q=G.events[G.events.length-1];return q&&q[1].type===F.linePrefix&&q[2].sliceSerialize(q[1],!0).length>=g.tabSize?X(W):k(W)?Q(W):J(W)}}var f7,Rz;var nJ=C(()=>{o();K1();Z1();c();f7={name:"codeIndented",tokenize:Oz},Rz={partial:!0,tokenize:Nz}});function Lz(Z){let X=Z.length-4,J=3,G,Q;if((Z[J][1].type===F.lineEnding||Z[J][1].type==="space")&&(Z[X][1].type===F.lineEnding||Z[X][1].type==="space")){G=J;while(++G<X)if(Z[G][1].type===F.codeTextData){Z[J][1].type=F.codeTextPadding,Z[X][1].type=F.codeTextPadding,J+=2,X-=2;break}}G=J-1,X++;while(++G<=X)if(Q===void 0){if(G!==X&&Z[G][1].type!==F.lineEnding)Q=G}else if(G===X||Z[G][1].type===F.lineEnding){if(Z[Q][1].type=F.codeTextData,G!==Q+2)Z[Q][1].end=Z[G-1][1].end,Z.splice(Q+2,G-Q-2),X-=G-Q-2,G=Q+2;Q=void 0}return Z}function aJ(Z){return Z!==z.graveAccent||this.events[this.events.length-1][1].type===F.characterEscape}function Iz(Z,X,J){let G=this,Q=0,U,W;return q;function q(B){return O(B===z.graveAccent,"expected `` ` ``"),O(aJ.call(G,G.previous),"expected correct previous"),Z.enter(F.codeText),Z.enter(F.codeTextSequence),Y(B)}function Y(B){if(B===z.graveAccent)return Z.consume(B),Q++,Y;return Z.exit(F.codeTextSequence),H(B)}function H(B){if(B===z.eof)return J(B);if(B===z.space)return Z.enter("space"),Z.consume(B),Z.exit("space"),H;if(B===z.graveAccent)return W=Z.enter(F.codeTextSequence),U=0,$(B);if(k(B))return Z.enter(F.lineEnding),Z.consume(B),Z.exit(F.lineEnding),H;return Z.enter(F.codeTextData),K(B)}function K(B){if(B===z.eof||B===z.space||B===z.graveAccent||k(B))return Z.exit(F.codeTextData),H(B);return Z.consume(B),K}function $(B){if(B===z.graveAccent)return Z.consume(B),U++,$;if(U===Q)return Z.exit(F.codeTextSequence),Z.exit(F.codeText),X(B);return W.type=F.codeTextData,K(B)}}var H3;var sJ=C(()=>{o();Z1();c();H3={name:"codeText",previous:aJ,resolve:Lz,tokenize:Iz}});class K3{constructor(Z){this.left=Z?[...Z]:[],this.right=[]}get(Z){if(Z<0||Z>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+Z+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");if(Z<this.left.length)return this.left[Z];return this.right[this.right.length-Z+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(Z,X){let J=X===null||X===void 0?Number.POSITIVE_INFINITY:X;if(J<this.left.length)return this.left.slice(Z,J);if(Z>this.left.length)return this.right.slice(this.right.length-J+this.left.length,this.right.length-Z+this.left.length).reverse();return this.left.slice(Z).concat(this.right.slice(this.right.length-J+this.left.length).reverse())}splice(Z,X,J){let G=X||0;this.setCursor(Math.trunc(Z));let Q=this.right.splice(this.right.length-G,Number.POSITIVE_INFINITY);if(J)l7(this.left,J);return Q.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(Z){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(Z)}pushMany(Z){this.setCursor(Number.POSITIVE_INFINITY),l7(this.left,Z)}unshift(Z){this.setCursor(0),this.right.push(Z)}unshiftMany(Z){this.setCursor(0),l7(this.right,Z.reverse())}setCursor(Z){if(Z===this.left.length||Z>this.left.length&&this.right.length===0||Z<0&&this.left.length===0)return;if(Z<this.left.length){let X=this.left.splice(Z,Number.POSITIVE_INFINITY);l7(this.right,X.reverse())}else{let X=this.right.splice(this.left.length+this.right.length-Z,Number.POSITIVE_INFINITY);l7(this.left,X.reverse())}}}function l7(Z,X){let J=0;if(X.length<g.v8MaxSafeChunkSize)Z.push(...X);else while(J<X.length)Z.push(...X.slice(J,J+g.v8MaxSafeChunkSize)),J+=g.v8MaxSafeChunkSize}var oJ=C(()=>{c()});function r5(Z){let X={},J=-1,G,Q,U,W,q,Y,H,K=new K3(Z);while(++J<K.length){while(J in X)J=X[J];if(G=K.get(J),J&&G[1].type===F.chunkFlow&&K.get(J-1)[1].type===F.listItemPrefix){if(O(G[1]._tokenizer,"expected `_tokenizer` on subtokens"),Y=G[1]._tokenizer.events,U=0,U<Y.length&&Y[U][1].type===F.lineEndingBlank)U+=2;if(U<Y.length&&Y[U][1].type===F.content)while(++U<Y.length){if(Y[U][1].type===F.content)break;if(Y[U][1].type===F.chunkText)Y[U][1]._isInFirstContentOfListItem=!0,U++}}if(G[0]==="enter"){if(G[1].contentType)Object.assign(X,Az(K,J)),J=X[J],H=!0}else if(G[1]._container){U=J,Q=void 0;while(U--)if(W=K.get(U),W[1].type===F.lineEnding||W[1].type===F.lineEndingBlank){if(W[0]==="enter"){if(Q)K.get(Q)[1].type=F.lineEndingBlank;W[1].type=F.lineEnding,Q=U}}else if(W[1].type===F.linePrefix||W[1].type===F.listItemIndent);else break;if(Q)G[1].end={...K.get(Q)[1].start},q=K.slice(Q,J),q.unshift(G),K.splice(Q,J-Q+1,q)}}return B1(Z,0,Number.POSITIVE_INFINITY,K.slice(0)),!H}function Az(Z,X){let J=Z.get(X)[1],G=Z.get(X)[2],Q=X-1,U=[];O(J.contentType,"expected `contentType` on subtokens");let W=J._tokenizer;if(!W){if(W=G.parser[J.contentType](J.start),J._contentTypeTextTrailing)W._contentTypeTextTrailing=!0}let q=W.events,Y=[],H={},K,$,B=-1,V=J,M=0,_=0,D=[_];while(V){while(Z.get(++Q)[1]!==V);if(O(!$||V.previous===$,"expected previous to match"),O(!$||$.next===V,"expected next to match"),U.push(Q),!V._tokenizer){if(K=G.sliceStream(V),!V.next)K.push(z.eof);if($)W.defineSkip(V.start);if(V._isInFirstContentOfListItem)W._gfmTasklistFirstContentOfListItem=!0;if(W.write(K),V._isInFirstContentOfListItem)W._gfmTasklistFirstContentOfListItem=void 0}$=V,V=V.next}V=J;while(++B<q.length)if(q[B][0]==="exit"&&q[B-1][0]==="enter"&&q[B][1].type===q[B-1][1].type&&q[B][1].start.line!==q[B][1].end.line)O(V,"expected a current token"),_=B+1,D.push(_),V._tokenizer=void 0,V.previous=void 0,V=V.next;if(W.events=[],V)V._tokenizer=void 0,V.previous=void 0,O(!V.next,"expected no next token");else D.pop();B=D.length;while(B--){let R=q.slice(D[B],D[B+1]),N=U.pop();O(N!==void 0,"expected a start position when splicing"),Y.push([N,N+R.length-1]),Z.splice(N,2,R)}Y.reverse(),B=-1;while(++B<Y.length)H[M+Y[B][0]]=M+Y[B][1],M+=Y[B][1]-Y[B][0]-1;return H}var $3=C(()=>{o();C0();c();oJ()});function wz(Z){return r5(Z),Z}function Tz(Z,X){let J;return G;function G(q){return O(q!==z.eof&&!k(q),"expected no eof or eol"),Z.enter(F.content),J=Z.enter(F.chunkContent,{contentType:g.contentTypeContent}),Q(q)}function Q(q){if(q===z.eof)return U(q);if(k(q))return Z.check(Pz,W,U)(q);return Z.consume(q),Q}function U(q){return Z.exit(F.chunkContent),Z.exit(F.content),X(q)}function W(q){return O(k(q),"expected eol"),Z.consume(q),Z.exit(F.chunkContent),O(J,"expected previous token"),J.next=Z.enter(F.chunkContent,{contentType:g.contentTypeContent,previous:J}),J=J.next,Q}}function Cz(Z,X,J){let G=this;return Q;function Q(W){return O(k(W),"expected a line ending"),Z.exit(F.chunkContent),Z.enter(F.lineEnding),Z.consume(W),Z.exit(F.lineEnding),l(Z,U,F.linePrefix)}function U(W){if(W===z.eof||k(W))return J(W);O(G.parser.constructs.disable.null,"expected `disable.null` to be populated");let q=G.events[G.events.length-1];if(!G.parser.constructs.disable.null.includes("codeIndented")&&q&&q[1].type===F.linePrefix&&q[2].sliceSerialize(q[1],!0).length>=g.tabSize)return X(W);return Z.interrupt(G.parser.constructs.flow,J,X)(W)}}var z3,Pz;var tJ=C(()=>{o();K1();Z1();$3();c();z3={resolve:wz,tokenize:Tz},Pz={partial:!0,tokenize:Cz}});function c5(Z,X,J,G,Q,U,W,q,Y){let H=Y||Number.POSITIVE_INFINITY,K=0;return $;function $(R){if(R===z.lessThan)return Z.enter(G),Z.enter(Q),Z.enter(U),Z.consume(R),Z.exit(U),B;if(R===z.eof||R===z.space||R===z.rightParenthesis||Y4(R))return J(R);return Z.enter(G),Z.enter(W),Z.enter(q),Z.enter(F.chunkString,{contentType:g.contentTypeString}),_(R)}function B(R){if(R===z.greaterThan)return Z.enter(U),Z.consume(R),Z.exit(U),Z.exit(Q),Z.exit(G),X;return Z.enter(q),Z.enter(F.chunkString,{contentType:g.contentTypeString}),V(R)}function V(R){if(R===z.greaterThan)return Z.exit(F.chunkString),Z.exit(q),B(R);if(R===z.eof||R===z.lessThan||k(R))return J(R);return Z.consume(R),R===z.backslash?M:V}function M(R){if(R===z.lessThan||R===z.greaterThan||R===z.backslash)return Z.consume(R),V;return V(R)}function _(R){if(!K&&(R===z.eof||R===z.rightParenthesis||t(R)))return Z.exit(F.chunkString),Z.exit(q),Z.exit(W),Z.exit(G),X(R);if(K<H&&R===z.leftParenthesis)return Z.consume(R),K++,_;if(R===z.rightParenthesis)return Z.consume(R),K--,_;if(R===z.eof||R===z.space||R===z.leftParenthesis||Y4(R))return J(R);return Z.consume(R),R===z.backslash?D:_}function D(R){if(R===z.leftParenthesis||R===z.rightParenthesis||R===z.backslash)return Z.consume(R),_;return _(R)}}var V3=C(()=>{Z1();c()});function n5(Z,X,J,G,Q,U){let W=this,q=0,Y;return H;function H(V){return O(V===z.leftSquareBracket,"expected `[`"),Z.enter(G),Z.enter(Q),Z.consume(V),Z.exit(Q),Z.enter(U),K}function K(V){if(q>g.linkReferenceSizeMax||V===z.eof||V===z.leftSquareBracket||V===z.rightSquareBracket&&!Y||V===z.caret&&!q&&"_hiddenFootnoteSupport"in W.parser.constructs)return J(V);if(V===z.rightSquareBracket)return Z.exit(U),Z.enter(Q),Z.consume(V),Z.exit(Q),Z.exit(G),X;if(k(V))return Z.enter(F.lineEnding),Z.consume(V),Z.exit(F.lineEnding),K;return Z.enter(F.chunkString,{contentType:g.contentTypeString}),$(V)}function $(V){if(V===z.eof||V===z.leftSquareBracket||V===z.rightSquareBracket||k(V)||q++>g.linkReferenceSizeMax)return Z.exit(F.chunkString),K(V);if(Z.consume(V),!Y)Y=!d(V);return V===z.backslash?B:$}function B(V){if(V===z.leftSquareBracket||V===z.backslash||V===z.rightSquareBracket)return Z.consume(V),q++,$;return $(V)}}var B3=C(()=>{o();Z1();c()});function a5(Z,X,J,G,Q,U){let W;return q;function q(B){if(B===z.quotationMark||B===z.apostrophe||B===z.leftParenthesis)return Z.enter(G),Z.enter(Q),Z.consume(B),Z.exit(Q),W=B===z.leftParenthesis?z.rightParenthesis:B,Y;return J(B)}function Y(B){if(B===W)return Z.enter(Q),Z.consume(B),Z.exit(Q),Z.exit(G),X;return Z.enter(U),H(B)}function H(B){if(B===W)return Z.exit(U),Y(W);if(B===z.eof)return J(B);if(k(B))return Z.enter(F.lineEnding),Z.consume(B),Z.exit(F.lineEnding),l(Z,H,F.linePrefix);return Z.enter(F.chunkString,{contentType:g.contentTypeString}),K(B)}function K(B){if(B===W||B===z.eof||k(B))return Z.exit(F.chunkString),H(B);return Z.consume(B),B===z.backslash?$:K}function $(B){if(B===W||B===z.backslash)return Z.consume(B),K;return K(B)}}var F3=C(()=>{K1();Z1();c()});function Z0(Z,X){let J;return G;function G(Q){if(k(Q))return Z.enter(F.lineEnding),Z.consume(Q),Z.exit(F.lineEnding),J=!0,G;if(d(Q))return l(Z,G,J?F.linePrefix:F.lineSuffix)(Q);return X(Q)}}var s5=C(()=>{K1();Z1();c()});function Ez(Z,X,J){let G=this,Q;return U;function U(V){return Z.enter(F.definition),W(V)}function W(V){return O(V===z.leftSquareBracket,"expected `[`"),n5.call(G,Z,q,J,F.definitionLabel,F.definitionLabelMarker,F.definitionLabelString)(V)}function q(V){if(Q=S1(G.sliceSerialize(G.events[G.events.length-1][1]).slice(1,-1)),V===z.colon)return Z.enter(F.definitionMarker),Z.consume(V),Z.exit(F.definitionMarker),Y;return J(V)}function Y(V){return t(V)?Z0(Z,H)(V):H(V)}function H(V){return c5(Z,K,J,F.definitionDestination,F.definitionDestinationLiteral,F.definitionDestinationLiteralMarker,F.definitionDestinationRaw,F.definitionDestinationString)(V)}function K(V){return Z.attempt(jz,$,$)(V)}function $(V){return d(V)?l(Z,B,F.whitespace)(V):B(V)}function B(V){if(V===z.eof||k(V))return Z.exit(F.definition),G.parser.defined.push(Q),X(V);return J(V)}}function Sz(Z,X,J){return G;function G(q){return t(q)?Z0(Z,Q)(q):J(q)}function Q(q){return a5(Z,U,J,F.definitionTitle,F.definitionTitleMarker,F.definitionTitleString)(q)}function U(q){return d(q)?l(Z,W,F.whitespace)(q):W(q)}function W(q){return q===z.eof||k(q)?X(q):J(q)}}var M3,jz;var eJ=C(()=>{o();V3();B3();K1();F3();s5();Z1();p4();c();M3={name:"definition",tokenize:Ez},jz={partial:!0,tokenize:Sz}});function bz(Z,X,J){return G;function G(U){return O(U===z.backslash,"expected `\\`"),Z.enter(F.hardBreakEscape),Z.consume(U),Q}function Q(U){if(k(U))return Z.exit(F.hardBreakEscape),X(U);return J(U)}}var D3;var ZG=C(()=>{o();Z1();c();D3={name:"hardBreakEscape",tokenize:bz}});function xz(Z,X){let J=Z.length-2,G=3,Q,U;if(Z[G][1].type===F.whitespace)G+=2;if(J-2>G&&Z[J][1].type===F.whitespace)J-=2;if(Z[J][1].type===F.atxHeadingSequence&&(G===J-1||J-4>G&&Z[J-2][1].type===F.whitespace))J-=G+1===J?2:4;if(J>G)Q={type:F.atxHeadingText,start:Z[G][1].start,end:Z[J][1].end},U={type:F.chunkText,start:Z[G][1].start,end:Z[J][1].end,contentType:g.contentTypeText},B1(Z,G,J-G+1,[["enter",Q,X],["enter",U,X],["exit",U,X],["exit",Q,X]]);return Z}function gz(Z,X,J){let G=0;return Q;function Q(K){return Z.enter(F.atxHeading),U(K)}function U(K){return O(K===z.numberSign,"expected `#`"),Z.enter(F.atxHeadingSequence),W(K)}function W(K){if(K===z.numberSign&&G++<g.atxHeadingOpeningFenceSizeMax)return Z.consume(K),W;if(K===z.eof||t(K))return Z.exit(F.atxHeadingSequence),q(K);return J(K)}function q(K){if(K===z.numberSign)return Z.enter(F.atxHeadingSequence),Y(K);if(K===z.eof||k(K))return Z.exit(F.atxHeading),X(K);if(d(K))return l(Z,q,F.whitespace)(K);return Z.enter(F.atxHeadingText),H(K)}function Y(K){if(K===z.numberSign)return Z.consume(K),Y;return Z.exit(F.atxHeadingSequence),q(K)}function H(K){if(K===z.eof||K===z.numberSign||t(K))return Z.exit(F.atxHeadingText),q(K);return Z.consume(K),H}}var _3;var XG=C(()=>{o();K1();Z1();C0();c();_3={name:"headingAtx",resolve:xz,tokenize:gz}});var JG,R3;var GG=C(()=>{JG=["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"],R3=["pre","script","style","textarea"]});function vz(Z){let X=Z.length;while(X--)if(Z[X][0]==="enter"&&Z[X][1].type===F.htmlFlow)break;if(X>1&&Z[X-2][1].type===F.linePrefix)Z[X][1].start=Z[X-2][1].start,Z[X+1][1].start=Z[X-2][1].start,Z.splice(X-2,2);return Z}function hz(Z,X,J){let G=this,Q,U,W,q,Y;return H;function H(A){return K(A)}function K(A){return O(A===z.lessThan,"expected `<`"),Z.enter(F.htmlFlow),Z.enter(F.htmlFlowData),Z.consume(A),$}function $(A){if(A===z.exclamationMark)return Z.consume(A),B;if(A===z.slash)return Z.consume(A),U=!0,_;if(A===z.questionMark)return Z.consume(A),Q=g.htmlInstruction,G.interrupt?X:I;if(L1(A))return O(A!==null),Z.consume(A),W=String.fromCharCode(A),D;return J(A)}function B(A){if(A===z.dash)return Z.consume(A),Q=g.htmlComment,V;if(A===z.leftSquareBracket)return Z.consume(A),Q=g.htmlCdata,q=0,M;if(L1(A))return Z.consume(A),Q=g.htmlDeclaration,G.interrupt?X:I;return J(A)}function V(A){if(A===z.dash)return Z.consume(A),G.interrupt?X:I;return J(A)}function M(A){let f1=g.cdataOpeningString;if(A===f1.charCodeAt(q++)){if(Z.consume(A),q===f1.length)return G.interrupt?X:a;return M}return J(A)}function _(A){if(L1(A))return O(A!==null),Z.consume(A),W=String.fromCharCode(A),D;return J(A)}function D(A){if(A===z.eof||A===z.slash||A===z.greaterThan||t(A)){let f1=A===z.slash,Z4=W.toLowerCase();if(!f1&&!U&&R3.includes(Z4))return Q=g.htmlRaw,G.interrupt?X(A):a(A);if(JG.includes(W.toLowerCase())){if(Q=g.htmlBasic,f1)return Z.consume(A),R;return G.interrupt?X(A):a(A)}return Q=g.htmlComplete,G.interrupt&&!G.parser.lazy[G.now().line]?J(A):U?N(A):L(A)}if(A===z.dash||I1(A))return Z.consume(A),W+=String.fromCharCode(A),D;return J(A)}function R(A){if(A===z.greaterThan)return Z.consume(A),G.interrupt?X:a;return J(A)}function N(A){if(d(A))return Z.consume(A),N;return P(A)}function L(A){if(A===z.slash)return Z.consume(A),P;if(A===z.colon||A===z.underscore||L1(A))return Z.consume(A),E;if(d(A))return Z.consume(A),L;return P(A)}function E(A){if(A===z.dash||A===z.dot||A===z.colon||A===z.underscore||I1(A))return Z.consume(A),E;return m(A)}function m(A){if(A===z.equalsTo)return Z.consume(A),w;if(d(A))return Z.consume(A),m;return L(A)}function w(A){if(A===z.eof||A===z.lessThan||A===z.equalsTo||A===z.greaterThan||A===z.graveAccent)return J(A);if(A===z.quotationMark||A===z.apostrophe)return Z.consume(A),Y=A,y;if(d(A))return Z.consume(A),w;return h(A)}function y(A){if(A===Y)return Z.consume(A),Y=null,j;if(A===z.eof||k(A))return J(A);return Z.consume(A),y}function h(A){if(A===z.eof||A===z.quotationMark||A===z.apostrophe||A===z.slash||A===z.lessThan||A===z.equalsTo||A===z.greaterThan||A===z.graveAccent||t(A))return m(A);return Z.consume(A),h}function j(A){if(A===z.slash||A===z.greaterThan||d(A))return L(A);return J(A)}function P(A){if(A===z.greaterThan)return Z.consume(A),n;return J(A)}function n(A){if(A===z.eof||k(A))return a(A);if(d(A))return Z.consume(A),n;return J(A)}function a(A){if(A===z.dash&&Q===g.htmlComment)return Z.consume(A),e;if(A===z.lessThan&&Q===g.htmlRaw)return Z.consume(A),_1;if(A===z.greaterThan&&Q===g.htmlDeclaration)return Z.consume(A),s1;if(A===z.questionMark&&Q===g.htmlInstruction)return Z.consume(A),I;if(A===z.rightSquareBracket&&Q===g.htmlCdata)return Z.consume(A),q0;if(k(A)&&(Q===g.htmlBasic||Q===g.htmlComplete))return Z.exit(F.htmlFlowData),Z.check(kz,O0,v)(A);if(A===z.eof||k(A))return Z.exit(F.htmlFlowData),v(A);return Z.consume(A),a}function v(A){return Z.check(yz,f,O0)(A)}function f(A){return O(k(A)),Z.enter(F.lineEnding),Z.consume(A),Z.exit(F.lineEnding),T}function T(A){if(A===z.eof||k(A))return v(A);return Z.enter(F.htmlFlowData),a(A)}function e(A){if(A===z.dash)return Z.consume(A),I;return a(A)}function _1(A){if(A===z.slash)return Z.consume(A),W="",a1;return a(A)}function a1(A){if(A===z.greaterThan){let f1=W.toLowerCase();if(R3.includes(f1))return Z.consume(A),s1;return a(A)}if(L1(A)&&W.length<g.htmlRawSizeMax)return O(A!==null),Z.consume(A),W+=String.fromCharCode(A),a1;return a(A)}function q0(A){if(A===z.rightSquareBracket)return Z.consume(A),I;return a(A)}function I(A){if(A===z.greaterThan)return Z.consume(A),s1;if(A===z.dash&&Q===g.htmlComment)return Z.consume(A),I;return a(A)}function s1(A){if(A===z.eof||k(A))return Z.exit(F.htmlFlowData),O0(A);return Z.consume(A),s1}function O0(A){return Z.exit(F.htmlFlow),X(A)}}function mz(Z,X,J){let G=this;return Q;function Q(W){if(k(W))return Z.enter(F.lineEnding),Z.consume(W),Z.exit(F.lineEnding),U;return J(W)}function U(W){return G.parser.lazy[G.now().line]?J(W):X(W)}}function uz(Z,X,J){return G;function G(Q){return O(k(Q),"expected a line ending"),Z.enter(F.lineEnding),Z.consume(Q),Z.exit(F.lineEnding),Z.attempt(B0,X,J)}}var O3,kz,yz;var QG=C(()=>{o();Z1();GG();c();p5();O3={concrete:!0,name:"htmlFlow",resolveTo:vz,tokenize:hz},kz={partial:!0,tokenize:uz},yz={partial:!0,tokenize:mz}});function pz(Z,X,J){let G=this,Q,U,W;return q;function q(I){return O(I===z.lessThan,"expected `<`"),Z.enter(F.htmlText),Z.enter(F.htmlTextData),Z.consume(I),Y}function Y(I){if(I===z.exclamationMark)return Z.consume(I),H;if(I===z.slash)return Z.consume(I),m;if(I===z.questionMark)return Z.consume(I),L;if(L1(I))return Z.consume(I),h;return J(I)}function H(I){if(I===z.dash)return Z.consume(I),K;if(I===z.leftSquareBracket)return Z.consume(I),U=0,M;if(L1(I))return Z.consume(I),N;return J(I)}function K(I){if(I===z.dash)return Z.consume(I),V;return J(I)}function $(I){if(I===z.eof)return J(I);if(I===z.dash)return Z.consume(I),B;if(k(I))return W=$,_1(I);return Z.consume(I),$}function B(I){if(I===z.dash)return Z.consume(I),V;return $(I)}function V(I){return I===z.greaterThan?e(I):I===z.dash?B(I):$(I)}function M(I){let s1=g.cdataOpeningString;if(I===s1.charCodeAt(U++))return Z.consume(I),U===s1.length?_:M;return J(I)}function _(I){if(I===z.eof)return J(I);if(I===z.rightSquareBracket)return Z.consume(I),D;if(k(I))return W=_,_1(I);return Z.consume(I),_}function D(I){if(I===z.rightSquareBracket)return Z.consume(I),R;return _(I)}function R(I){if(I===z.greaterThan)return e(I);if(I===z.rightSquareBracket)return Z.consume(I),R;return _(I)}function N(I){if(I===z.eof||I===z.greaterThan)return e(I);if(k(I))return W=N,_1(I);return Z.consume(I),N}function L(I){if(I===z.eof)return J(I);if(I===z.questionMark)return Z.consume(I),E;if(k(I))return W=L,_1(I);return Z.consume(I),L}function E(I){return I===z.greaterThan?e(I):L(I)}function m(I){if(L1(I))return Z.consume(I),w;return J(I)}function w(I){if(I===z.dash||I1(I))return Z.consume(I),w;return y(I)}function y(I){if(k(I))return W=y,_1(I);if(d(I))return Z.consume(I),y;return e(I)}function h(I){if(I===z.dash||I1(I))return Z.consume(I),h;if(I===z.slash||I===z.greaterThan||t(I))return j(I);return J(I)}function j(I){if(I===z.slash)return Z.consume(I),e;if(I===z.colon||I===z.underscore||L1(I))return Z.consume(I),P;if(k(I))return W=j,_1(I);if(d(I))return Z.consume(I),j;return e(I)}function P(I){if(I===z.dash||I===z.dot||I===z.colon||I===z.underscore||I1(I))return Z.consume(I),P;return n(I)}function n(I){if(I===z.equalsTo)return Z.consume(I),a;if(k(I))return W=n,_1(I);if(d(I))return Z.consume(I),n;return j(I)}function a(I){if(I===z.eof||I===z.lessThan||I===z.equalsTo||I===z.greaterThan||I===z.graveAccent)return J(I);if(I===z.quotationMark||I===z.apostrophe)return Z.consume(I),Q=I,v;if(k(I))return W=a,_1(I);if(d(I))return Z.consume(I),a;return Z.consume(I),f}function v(I){if(I===Q)return Z.consume(I),Q=void 0,T;if(I===z.eof)return J(I);if(k(I))return W=v,_1(I);return Z.consume(I),v}function f(I){if(I===z.eof||I===z.quotationMark||I===z.apostrophe||I===z.lessThan||I===z.equalsTo||I===z.graveAccent)return J(I);if(I===z.slash||I===z.greaterThan||t(I))return j(I);return Z.consume(I),f}function T(I){if(I===z.slash||I===z.greaterThan||t(I))return j(I);return J(I)}function e(I){if(I===z.greaterThan)return Z.consume(I),Z.exit(F.htmlTextData),Z.exit(F.htmlText),X;return J(I)}function _1(I){return O(W,"expected return state"),O(k(I),"expected eol"),Z.exit(F.htmlTextData),Z.enter(F.lineEnding),Z.consume(I),Z.exit(F.lineEnding),a1}function a1(I){return O(G.parser.constructs.disable.null,"expected `disable.null` to be populated"),d(I)?l(Z,q0,F.linePrefix,G.parser.constructs.disable.null.includes("codeIndented")?void 0:g.tabSize)(I):q0(I)}function q0(I){return Z.enter(F.htmlTextData),W(I)}}var N3;var UG=C(()=>{o();K1();Z1();c();N3={name:"htmlText",tokenize:pz}});function dz(Z){let X=-1,J=[];while(++X<Z.length){let G=Z[X][1];if(J.push(Z[X]),G.type===F.labelImage||G.type===F.labelLink||G.type===F.labelEnd){let Q=G.type===F.labelImage?4:2;G.type=F.data,X+=Q}}if(Z.length!==J.length)B1(Z,0,Z.length,J);return Z}function rz(Z,X){let J=Z.length,G=0,Q,U,W,q;while(J--)if(Q=Z[J][1],U){if(Q.type===F.link||Q.type===F.labelLink&&Q._inactive)break;if(Z[J][0]==="enter"&&Q.type===F.labelLink)Q._inactive=!0}else if(W){if(Z[J][0]==="enter"&&(Q.type===F.labelImage||Q.type===F.labelLink)&&!Q._balanced){if(U=J,Q.type!==F.labelLink){G=2;break}}}else if(Q.type===F.labelEnd)W=J;O(U!==void 0,"`open` is supposed to be found"),O(W!==void 0,"`close` is supposed to be found");let Y={type:Z[U][1].type===F.labelLink?F.link:F.image,start:{...Z[U][1].start},end:{...Z[Z.length-1][1].end}},H={type:F.label,start:{...Z[U][1].start},end:{...Z[W][1].end}},K={type:F.labelText,start:{...Z[U+G+2][1].end},end:{...Z[W-2][1].start}};return q=[["enter",Y,X],["enter",H,X]],q=y1(q,Z.slice(U+1,U+G+3)),q=y1(q,[["enter",K,X]]),O(X.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),q=y1(q,i0(X.parser.constructs.insideSpan.null,Z.slice(U+G+4,W-3),X)),q=y1(q,[["exit",K,X],Z[W-2],Z[W-1],["exit",H,X]]),q=y1(q,Z.slice(W+1)),q=y1(q,[["exit",Y,X]]),B1(Z,U,Z.length,q),Z}function cz(Z,X,J){let G=this,Q=G.events.length,U,W;while(Q--)if((G.events[Q][1].type===F.labelImage||G.events[Q][1].type===F.labelLink)&&!G.events[Q][1]._balanced){U=G.events[Q][1];break}return q;function q(B){if(O(B===z.rightSquareBracket,"expected `]`"),!U)return J(B);if(U._inactive)return $(B);return W=G.parser.defined.includes(S1(G.sliceSerialize({start:U.end,end:G.now()}))),Z.enter(F.labelEnd),Z.enter(F.labelMarker),Z.consume(B),Z.exit(F.labelMarker),Z.exit(F.labelEnd),Y}function Y(B){if(B===z.leftParenthesis)return Z.attempt(fz,K,W?K:$)(B);if(B===z.leftSquareBracket)return Z.attempt(lz,K,W?H:$)(B);return W?K(B):$(B)}function H(B){return Z.attempt(iz,K,$)(B)}function K(B){return X(B)}function $(B){return U._balanced=!0,J(B)}}function nz(Z,X,J){return G;function G($){return O($===z.leftParenthesis,"expected left paren"),Z.enter(F.resource),Z.enter(F.resourceMarker),Z.consume($),Z.exit(F.resourceMarker),Q}function Q($){return t($)?Z0(Z,U)($):U($)}function U($){if($===z.rightParenthesis)return K($);return c5(Z,W,q,F.resourceDestination,F.resourceDestinationLiteral,F.resourceDestinationLiteralMarker,F.resourceDestinationRaw,F.resourceDestinationString,g.linkResourceDestinationBalanceMax)($)}function W($){return t($)?Z0(Z,Y)($):K($)}function q($){return J($)}function Y($){if($===z.quotationMark||$===z.apostrophe||$===z.leftParenthesis)return a5(Z,H,J,F.resourceTitle,F.resourceTitleMarker,F.resourceTitleString)($);return K($)}function H($){return t($)?Z0(Z,K)($):K($)}function K($){if($===z.rightParenthesis)return Z.enter(F.resourceMarker),Z.consume($),Z.exit(F.resourceMarker),Z.exit(F.resource),X;return J($)}}function az(Z,X,J){let G=this;return Q;function Q(q){return O(q===z.leftSquareBracket,"expected left bracket"),n5.call(G,Z,U,W,F.reference,F.referenceMarker,F.referenceString)(q)}function U(q){return G.parser.defined.includes(S1(G.sliceSerialize(G.events[G.events.length-1][1]).slice(1,-1)))?X(q):J(q)}function W(q){return J(q)}}function sz(Z,X,J){return G;function G(U){return O(U===z.leftSquareBracket,"expected left bracket"),Z.enter(F.reference),Z.enter(F.referenceMarker),Z.consume(U),Z.exit(F.referenceMarker),Q}function Q(U){if(U===z.rightSquareBracket)return Z.enter(F.referenceMarker),Z.consume(U),Z.exit(F.referenceMarker),Z.exit(F.reference),X;return J(U)}}var H4,fz,lz,iz;var o5=C(()=>{o();V3();B3();F3();s5();Z1();C0();p4();c();H4={name:"labelEnd",resolveAll:dz,resolveTo:rz,tokenize:cz},fz={tokenize:nz},lz={tokenize:az},iz={tokenize:sz}});function oz(Z,X,J){let G=this;return Q;function Q(q){return O(q===z.exclamationMark,"expected `!`"),Z.enter(F.labelImage),Z.enter(F.labelImageMarker),Z.consume(q),Z.exit(F.labelImageMarker),U}function U(q){if(q===z.leftSquareBracket)return Z.enter(F.labelMarker),Z.consume(q),Z.exit(F.labelMarker),Z.exit(F.labelImage),W;return J(q)}function W(q){return q===z.caret&&"_hiddenFootnoteSupport"in G.parser.constructs?J(q):X(q)}}var L3;var WG=C(()=>{o();c();o5();L3={name:"labelStartImage",resolveAll:H4.resolveAll,tokenize:oz}});function tz(Z,X,J){let G=this;return Q;function Q(W){return O(W===z.leftSquareBracket,"expected `[`"),Z.enter(F.labelLink),Z.enter(F.labelMarker),Z.consume(W),Z.exit(F.labelMarker),Z.exit(F.labelLink),U}function U(W){return W===z.caret&&"_hiddenFootnoteSupport"in G.parser.constructs?J(W):X(W)}}var I3;var qG=C(()=>{o();c();o5();I3={name:"labelStartLink",resolveAll:H4.resolveAll,tokenize:tz}});function ez(Z,X){return J;function J(G){return O(k(G),"expected eol"),Z.enter(F.lineEnding),Z.consume(G),Z.exit(F.lineEnding),l(Z,X,F.linePrefix)}}var i7;var YG=C(()=>{o();K1();Z1();c();i7={name:"lineEnding",tokenize:ez}});function ZV(Z,X,J){let G=0,Q;return U;function U(H){return Z.enter(F.thematicBreak),W(H)}function W(H){return O(H===z.asterisk||H===z.dash||H===z.underscore,"expected `*`, `-`, or `_`"),Q=H,q(H)}function q(H){if(H===Q)return Z.enter(F.thematicBreakSequence),Y(H);if(G>=g.thematicBreakMarkerCountMin&&(H===z.eof||k(H)))return Z.exit(F.thematicBreak),X(H);return J(H)}function Y(H){if(H===Q)return Z.consume(H),G++,Y;return Z.exit(F.thematicBreakSequence),d(H)?l(Z,q,F.whitespace)(H):q(H)}}var K4;var A3=C(()=>{o();K1();Z1();c();K4={name:"thematicBreak",tokenize:ZV}});function GV(Z,X,J){let G=this,Q=G.events[G.events.length-1],U=Q&&Q[1].type===F.linePrefix?Q[2].sliceSerialize(Q[1],!0).length:0,W=0;return q;function q(V){O(G.containerState,"expected state");let M=G.containerState.type||(V===z.asterisk||V===z.plusSign||V===z.dash?F.listUnordered:F.listOrdered);if(M===F.listUnordered?!G.containerState.marker||V===G.containerState.marker:u7(V)){if(!G.containerState.type)G.containerState.type=M,Z.enter(M,{_container:!0});if(M===F.listUnordered)return Z.enter(F.listItemPrefix),V===z.asterisk||V===z.dash?Z.check(K4,J,H)(V):H(V);if(!G.interrupt||V===z.digit1)return Z.enter(F.listItemPrefix),Z.enter(F.listItemValue),Y(V)}return J(V)}function Y(V){if(O(G.containerState,"expected state"),u7(V)&&++W<g.listItemValueSizeMax)return Z.consume(V),Y;if((!G.interrupt||W<2)&&(G.containerState.marker?V===G.containerState.marker:V===z.rightParenthesis||V===z.dot))return Z.exit(F.listItemValue),H(V);return J(V)}function H(V){return O(G.containerState,"expected state"),O(V!==z.eof,"eof (`null`) is not a marker"),Z.enter(F.listItemMarker),Z.consume(V),Z.exit(F.listItemMarker),G.containerState.marker=G.containerState.marker||V,Z.check(B0,G.interrupt?J:K,Z.attempt(XV,B,$))}function K(V){return O(G.containerState,"expected state"),G.containerState.initialBlankLine=!0,U++,B(V)}function $(V){if(d(V))return Z.enter(F.listItemPrefixWhitespace),Z.consume(V),Z.exit(F.listItemPrefixWhitespace),B;return J(V)}function B(V){return O(G.containerState,"expected state"),G.containerState.size=U+G.sliceSerialize(Z.exit(F.listItemPrefix),!0).length,X(V)}}function QV(Z,X,J){let G=this;return O(G.containerState,"expected state"),G.containerState._closeFlow=void 0,Z.check(B0,Q,U);function Q(q){return O(G.containerState,"expected state"),O(typeof G.containerState.size==="number","expected size"),G.containerState.furtherBlankLines=G.containerState.furtherBlankLines||G.containerState.initialBlankLine,l(Z,X,F.listItemIndent,G.containerState.size+1)(q)}function U(q){if(O(G.containerState,"expected state"),G.containerState.furtherBlankLines||!d(q))return G.containerState.furtherBlankLines=void 0,G.containerState.initialBlankLine=void 0,W(q);return G.containerState.furtherBlankLines=void 0,G.containerState.initialBlankLine=void 0,Z.attempt(JV,X,W)(q)}function W(q){return O(G.containerState,"expected state"),G.containerState._closeFlow=!0,G.interrupt=void 0,O(G.parser.constructs.disable.null,"expected `disable.null` to be populated"),l(Z,Z.attempt(x1,X,J),F.linePrefix,G.parser.constructs.disable.null.includes("codeIndented")?void 0:g.tabSize)(q)}}function UV(Z,X,J){let G=this;return O(G.containerState,"expected state"),O(typeof G.containerState.size==="number","expected size"),l(Z,Q,F.listItemIndent,G.containerState.size+1);function Q(U){O(G.containerState,"expected state");let W=G.events[G.events.length-1];return W&&W[1].type===F.listItemIndent&&W[2].sliceSerialize(W[1],!0).length===G.containerState.size?X(U):J(U)}}function WV(Z){O(this.containerState,"expected state"),O(typeof this.containerState.type==="string","expected type"),Z.exit(this.containerState.type)}function qV(Z,X,J){let G=this;return O(G.parser.constructs.disable.null,"expected `disable.null` to be populated"),l(Z,Q,F.listItemPrefixWhitespace,G.parser.constructs.disable.null.includes("codeIndented")?void 0:g.tabSize+1);function Q(U){let W=G.events[G.events.length-1];return!d(U)&&W&&W[1].type===F.listItemPrefixWhitespace?X(U):J(U)}}var x1,XV,JV;var HG=C(()=>{o();K1();Z1();c();p5();A3();x1={continuation:{tokenize:QV},exit:WV,name:"list",tokenize:GV},XV={partial:!0,tokenize:qV},JV={partial:!0,tokenize:UV}});function YV(Z,X){let J=Z.length,G,Q,U;while(J--)if(Z[J][0]==="enter"){if(Z[J][1].type===F.content){G=J;break}if(Z[J][1].type===F.paragraph)Q=J}else{if(Z[J][1].type===F.content)Z.splice(J,1);if(!U&&Z[J][1].type===F.definition)U=J}O(Q!==void 0,"expected a `text` index to be found"),O(G!==void 0,"expected a `text` index to be found"),O(Z[G][2]===X,"enter context should be same"),O(Z[Z.length-1][2]===X,"enter context should be same");let W={type:F.setextHeading,start:{...Z[G][1].start},end:{...Z[Z.length-1][1].end}};if(Z[Q][1].type=F.setextHeadingText,U)Z.splice(Q,0,["enter",W,X]),Z.splice(U+1,0,["exit",Z[G][1],X]),Z[G][1].end={...Z[U][1].end};else Z[G][1]=W;return Z.push(["exit",W,X]),Z}function HV(Z,X,J){let G=this,Q;return U;function U(H){let K=G.events.length,$;O(H===z.dash||H===z.equalsTo,"expected `=` or `-`");while(K--)if(G.events[K][1].type!==F.lineEnding&&G.events[K][1].type!==F.linePrefix&&G.events[K][1].type!==F.content){$=G.events[K][1].type===F.paragraph;break}if(!G.parser.lazy[G.now().line]&&(G.interrupt||$))return Z.enter(F.setextHeadingLine),Q=H,W(H);return J(H)}function W(H){return Z.enter(F.setextHeadingLineSequence),q(H)}function q(H){if(H===Q)return Z.consume(H),q;return Z.exit(F.setextHeadingLineSequence),d(H)?l(Z,Y,F.lineSuffix)(H):Y(H)}function Y(H){if(H===z.eof||k(H))return Z.exit(F.setextHeadingLine),X(H);return J(H)}}var t5;var KG=C(()=>{o();K1();Z1();c();t5={name:"setextUnderline",resolveTo:YV,tokenize:HV}});var e5=C(()=>{pJ();fJ();p5();lJ();iJ();dJ();cJ();nJ();sJ();tJ();eJ();ZG();XG();QG();UG();o5();WG();qG();YG();HG();KG();A3()});function KV(Z){let X=this,J=Z.attempt(B0,G,Z.attempt(this.parser.constructs.flowInitial,Q,l(Z,Z.attempt(this.parser.constructs.flow,Q,Z.attempt(z3,Q)),F.linePrefix)));return J;function G(U){if(O(U===z.eof||k(U),"expected eol or eof"),U===z.eof){Z.consume(U);return}return Z.enter(F.lineEndingBlank),Z.consume(U),Z.exit(F.lineEndingBlank),X.currentConstruct=void 0,J}function Q(U){if(O(U===z.eof||k(U),"expected eol or eof"),U===z.eof){Z.consume(U);return}return Z.enter(F.lineEnding),Z.consume(U),Z.exit(F.lineEnding),X.currentConstruct=void 0,J}}var $G;var zG=C(()=>{o();e5();K1();Z1();c();$G={tokenize:KV}});function MG(Z){return{resolveAll:DG(Z==="text"?$V:void 0),tokenize:X};function X(J){let G=this,Q=this.parser.constructs[Z],U=J.attempt(Q,W,q);return W;function W(K){return H(K)?U(K):q(K)}function q(K){if(K===z.eof){J.consume(K);return}return J.enter(F.data),J.consume(K),Y}function Y(K){if(H(K))return J.exit(F.data),U(K);return J.consume(K),Y}function H(K){if(K===z.eof)return!0;let $=Q[K],B=-1;if($){O(Array.isArray($),"expected `disable.null` to be populated");while(++B<$.length){let V=$[B];if(!V.previous||V.previous.call(G,G.previous))return!0}}return!1}}}function DG(Z){return X;function X(J,G){let Q=-1,U;while(++Q<=J.length)if(U===void 0){if(J[Q]&&J[Q][1].type===F.data)U=Q,Q++}else if(!J[Q]||J[Q][1].type!==F.data){if(Q!==U+2)J[U][1].end=J[Q-1][1].end,J.splice(U+2,Q-U-2),Q=U+2;U=void 0}return Z?Z(J,G):J}}function $V(Z,X){let J=0;while(++J<=Z.length)if((J===Z.length||Z[J][1].type===F.lineEnding)&&Z[J-1][1].type===F.data){let G=Z[J-1][1],Q=X.sliceStream(G),U=Q.length,W=-1,q=0,Y;while(U--){let H=Q[U];if(typeof H==="string"){W=H.length;while(H.charCodeAt(W-1)===z.space)q++,W--;if(W)break;W=-1}else if(H===z.horizontalTab)Y=!0,q++;else if(H===z.virtualSpace);else{U++;break}}if(X._contentTypeTextTrailing&&J===Z.length)q=0;if(q){let H={type:J===Z.length||Y||q<g.hardBreakPrefixSizeMin?F.lineSuffix:F.hardBreakTrailing,start:{_bufferIndex:U?W:G.start._bufferIndex+W,_index:G.start._index+U,line:G.end.line,column:G.end.column-q,offset:G.end.offset-q},end:{...G.end}};if(G.end={...H.start},G.start.offset===G.end.offset)Object.assign(G,H);else Z.splice(J,0,["enter",H,X],["exit",H,X]),J+=2}J++}return Z}var VG,BG,FG;var P3=C(()=>{o();c();VG={resolveAll:DG()},BG=MG("string"),FG=MG("text")});var w3={};P7(w3,{text:()=>DV,string:()=>MV,insideSpan:()=>_V,flowInitial:()=>BV,flow:()=>FV,document:()=>zV,disable:()=>OV,contentInitial:()=>VV,attentionMarkers:()=>RV});var zV,VV,BV,FV,MV,DV,_V,RV,OV;var _G=C(()=>{e5();c();P3();zV={[z.asterisk]:x1,[z.plusSign]:x1,[z.dash]:x1,[z.digit0]:x1,[z.digit1]:x1,[z.digit2]:x1,[z.digit3]:x1,[z.digit4]:x1,[z.digit5]:x1,[z.digit6]:x1,[z.digit7]:x1,[z.digit8]:x1,[z.digit9]:x1,[z.greaterThan]:f5},VV={[z.leftSquareBracket]:M3},BV={[z.horizontalTab]:f7,[z.virtualSpace]:f7,[z.space]:f7},FV={[z.numberSign]:_3,[z.asterisk]:K4,[z.dash]:[t5,K4],[z.lessThan]:O3,[z.equalsTo]:t5,[z.underscore]:K4,[z.graveAccent]:d5,[z.tilde]:d5},MV={[z.ampersand]:i5,[z.backslash]:l5},DV={[z.carriageReturn]:i7,[z.lineFeed]:i7,[z.carriageReturnLineFeed]:i7,[z.exclamationMark]:L3,[z.ampersand]:i5,[z.asterisk]:p7,[z.lessThan]:[Y3,N3],[z.leftSquareBracket]:I3,[z.backslash]:[D3,l5],[z.rightSquareBracket]:H4,[z.underscore]:p7,[z.graveAccent]:H3},_V={null:[p7,VG]},RV={null:[z.asterisk,z.underscore]},OV={null:[]}});var OG=h1((Hw,RG)=>{var f4=1000,l4=f4*60,i4=l4*60,$4=i4*24,NV=$4*7,LV=$4*365.25;RG.exports=function(Z,X){X=X||{};var J=typeof Z;if(J==="string"&&Z.length>0)return IV(Z);else if(J==="number"&&isFinite(Z))return X.long?PV(Z):AV(Z);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(Z))};function IV(Z){if(Z=String(Z),Z.length>100)return;var X=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(Z);if(!X)return;var J=parseFloat(X[1]),G=(X[2]||"ms").toLowerCase();switch(G){case"years":case"year":case"yrs":case"yr":case"y":return J*LV;case"weeks":case"week":case"w":return J*NV;case"days":case"day":case"d":return J*$4;case"hours":case"hour":case"hrs":case"hr":case"h":return J*i4;case"minutes":case"minute":case"mins":case"min":case"m":return J*l4;case"seconds":case"second":case"secs":case"sec":case"s":return J*f4;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return J;default:return}}function AV(Z){var X=Math.abs(Z);if(X>=$4)return Math.round(Z/$4)+"d";if(X>=i4)return Math.round(Z/i4)+"h";if(X>=l4)return Math.round(Z/l4)+"m";if(X>=f4)return Math.round(Z/f4)+"s";return Z+"ms"}function PV(Z){var X=Math.abs(Z);if(X>=$4)return Z6(Z,X,$4,"day");if(X>=i4)return Z6(Z,X,i4,"hour");if(X>=l4)return Z6(Z,X,l4,"minute");if(X>=f4)return Z6(Z,X,f4,"second");return Z+" ms"}function Z6(Z,X,J,G){var Q=X>=J*1.5;return Math.round(Z/J)+" "+G+(Q?"s":"")}});var LG=h1((Kw,NG)=>{function wV(Z){J.debug=J,J.default=J,J.coerce=Y,J.disable=W,J.enable=Q,J.enabled=q,J.humanize=OG(),J.destroy=H,Object.keys(Z).forEach((K)=>{J[K]=Z[K]}),J.names=[],J.skips=[],J.formatters={};function X(K){let $=0;for(let B=0;B<K.length;B++)$=($<<5)-$+K.charCodeAt(B),$|=0;return J.colors[Math.abs($)%J.colors.length]}J.selectColor=X;function J(K){let $,B=null,V,M;function _(...D){if(!_.enabled)return;let R=_,N=Number(new Date),L=N-($||N);if(R.diff=L,R.prev=$,R.curr=N,$=N,D[0]=J.coerce(D[0]),typeof D[0]!=="string")D.unshift("%O");let E=0;D[0]=D[0].replace(/%([a-zA-Z%])/g,(w,y)=>{if(w==="%%")return"%";E++;let h=J.formatters[y];if(typeof h==="function"){let j=D[E];w=h.call(R,j),D.splice(E,1),E--}return w}),J.formatArgs.call(R,D),(R.log||J.log).apply(R,D)}if(_.namespace=K,_.useColors=J.useColors(),_.color=J.selectColor(K),_.extend=G,_.destroy=J.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(B!==null)return B;if(V!==J.namespaces)V=J.namespaces,M=J.enabled(K);return M},set:(D)=>{B=D}}),typeof J.init==="function")J.init(_);return _}function G(K,$){let B=J(this.namespace+(typeof $>"u"?":":$)+K);return B.log=this.log,B}function Q(K){J.save(K),J.namespaces=K,J.names=[],J.skips=[];let $=(typeof K==="string"?K:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let B of $)if(B[0]==="-")J.skips.push(B.slice(1));else J.names.push(B)}function U(K,$){let B=0,V=0,M=-1,_=0;while(B<K.length)if(V<$.length&&($[V]===K[B]||$[V]==="*"))if($[V]==="*")M=V,_=B,V++;else B++,V++;else if(M!==-1)V=M+1,_++,B=_;else return!1;while(V<$.length&&$[V]==="*")V++;return V===$.length}function W(){let K=[...J.names,...J.skips.map(($)=>"-"+$)].join(",");return J.enable(""),K}function q(K){for(let $ of J.skips)if(U(K,$))return!1;for(let $ of J.names)if(U(K,$))return!0;return!1}function Y(K){if(K instanceof Error)return K.stack||K.message;return K}function H(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return J.enable(J.load()),J}NG.exports=wV});var AG=h1((IG,X6)=>{IG.formatArgs=CV;IG.save=jV;IG.load=EV;IG.useColors=TV;IG.storage=SV();IG.destroy=(()=>{let Z=!1;return()=>{if(!Z)Z=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();IG.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function TV(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let Z;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(Z=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(Z[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function CV(Z){if(Z[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+Z[0]+(this.useColors?"%c ":" ")+"+"+X6.exports.humanize(this.diff),!this.useColors)return;let X="color: "+this.color;Z.splice(1,0,X,"color: inherit");let J=0,G=0;Z[0].replace(/%[a-zA-Z%]/g,(Q)=>{if(Q==="%%")return;if(J++,Q==="%c")G=J}),Z.splice(G,0,X)}IG.log=console.debug||console.log||(()=>{});function jV(Z){try{if(Z)IG.storage.setItem("debug",Z);else IG.storage.removeItem("debug")}catch(X){}}function EV(){let Z;try{Z=IG.storage.getItem("debug")||IG.storage.getItem("DEBUG")}catch(X){}if(!Z&&typeof process<"u"&&"env"in process)Z=process.env.DEBUG;return Z}function SV(){try{return localStorage}catch(Z){}}X6.exports=LG()(IG);var{formatters:bV}=X6.exports;bV.j=function(Z){try{return JSON.stringify(Z)}catch(X){return"[UnexpectedJSONParseError]: "+X.message}}});function wG(Z,X,J){let G={_bufferIndex:-1,_index:0,line:J&&J.line||1,column:J&&J.column||1,offset:J&&J.offset||0},Q={},U=[],W=[],q=[],Y=!0,H={attempt:j(y),check:j(h),consume:E,enter:m,exit:w,interrupt:j(h,{interrupt:!0})},K={code:z.eof,containerState:{},defineSkip:R,events:[],now:D,parser:Z,previous:z.eof,sliceSerialize:M,sliceStream:_,write:V},$=X.tokenize.call(K,H),B;if(X.resolveAll)U.push(X);return K;function V(v){if(W=y1(W,v),N(),W[W.length-1]!==z.eof)return[];return P(X,0),K.events=i0(U,K.events,K),K.events}function M(v,f){return pV(_(v),f)}function _(v){return uV(W,v)}function D(){let{_bufferIndex:v,_index:f,line:T,column:e,offset:_1}=G;return{_bufferIndex:v,_index:f,line:T,column:e,offset:_1}}function R(v){Q[v.line]=v.column,a(),z4("position: define skip: `%j`",G)}function N(){let v;while(G._index<W.length){let f=W[G._index];if(typeof f==="string"){if(v=G._index,G._bufferIndex<0)G._bufferIndex=0;while(G._index===v&&G._bufferIndex<f.length)L(f.charCodeAt(G._bufferIndex))}else L(f)}}function L(v){O(Y===!0,"expected character to be consumed"),Y=void 0,z4("main: passing `%s` to %s",v,$&&$.name),B=v,O(typeof $==="function","expected state"),$=$(v)}function E(v){if(O(v===B,"expected given code to equal expected code"),z4("consume: `%s`",v),O(Y===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),O(v===null?K.events.length===0||K.events[K.events.length-1][0]==="exit":K.events[K.events.length-1][0]==="enter","expected last token to be open"),k(v))G.line++,G.column=1,G.offset+=v===z.carriageReturnLineFeed?2:1,a(),z4("position: after eol: `%j`",G);else if(v!==z.virtualSpace)G.column++,G.offset++;if(G._bufferIndex<0)G._index++;else if(G._bufferIndex++,G._bufferIndex===W[G._index].length)G._bufferIndex=-1,G._index++;K.previous=v,Y=!0}function m(v,f){let T=f||{};return T.type=v,T.start=D(),O(typeof v==="string","expected string type"),O(v.length>0,"expected non-empty string"),z4("enter: `%s`",v),K.events.push(["enter",T,K]),q.push(T),T}function w(v){O(typeof v==="string","expected string type"),O(v.length>0,"expected non-empty string");let f=q.pop();return O(f,"cannot close w/o open tokens"),f.end=D(),O(v===f.type,"expected exit token to match current token"),O(!(f.start._index===f.end._index&&f.start._bufferIndex===f.end._bufferIndex),"expected non-empty token (`"+v+"`)"),z4("exit: `%s`",f.type),K.events.push(["exit",f,K]),f}function y(v,f){P(v,f.from)}function h(v,f){f.restore()}function j(v,f){return T;function T(e,_1,a1){let q0,I,s1,O0;return Array.isArray(e)?f1(e):("tokenize"in e)?f1([e]):A(e);function A(R1){return N7;function N7(N0){let X4=N0!==null&&R1[N0],w4=N0!==null&&R1.null,V8=[...Array.isArray(X4)?X4:X4?[X4]:[],...Array.isArray(w4)?w4:w4?[w4]:[]];return f1(V8)(N0)}}function f1(R1){if(q0=R1,I=0,R1.length===0)return O(a1,"expected `bogusState` to be given"),a1;return Z4(R1[I])}function Z4(R1){return N7;function N7(N0){if(O0=n(),s1=R1,!R1.partial)K.currentConstruct=R1;if(O(K.parser.constructs.disable.null,"expected `disable.null` to be populated"),R1.name&&K.parser.constructs.disable.null.includes(R1.name))return Y5(N0);return R1.tokenize.call(f?Object.assign(Object.create(K),f):K,H,z8,Y5)(N0)}}function z8(R1){return O(R1===B,"expected code"),Y=!0,v(s1,O0),_1}function Y5(R1){if(O(R1===B,"expected code"),Y=!0,O0.restore(),++I<q0.length)return Z4(q0[I]);return a1}}}function P(v,f){if(v.resolveAll&&!U.includes(v))U.push(v);if(v.resolve)B1(K.events,f,K.events.length-f,v.resolve(K.events.slice(f),K));if(v.resolveTo)K.events=v.resolveTo(K.events,K);O(v.partial||K.events.length===0||K.events[K.events.length-1][0]==="exit","expected last token to end")}function n(){let v=D(),f=K.previous,T=K.currentConstruct,e=K.events.length,_1=Array.from(q);return{from:e,restore:a1};function a1(){G=v,K.previous=f,K.currentConstruct=T,K.events.length=e,q=_1,a(),z4("position: restore: `%j`",G)}}function a(){if(G.line in Q&&G.column<2)G.column=Q[G.line],G.offset+=Q[G.line]-1}}function uV(Z,X){let J=X.start._index,G=X.start._bufferIndex,Q=X.end._index,U=X.end._bufferIndex,W;if(J===Q)O(U>-1,"expected non-negative end buffer index"),O(G>-1,"expected non-negative start buffer index"),W=[Z[J].slice(G,U)];else{if(W=Z.slice(J,Q),G>-1){let q=W[0];if(typeof q==="string")W[0]=q.slice(G);else O(G===0,"expected `startBufferIndex` to be `0`"),W.shift()}if(U>0)W.push(Z[Q].slice(0,U))}return W}function pV(Z,X){let J=-1,G=[],Q;while(++J<Z.length){let U=Z[J],W;if(typeof U==="string")W=U;else switch(U){case z.carriageReturn:{W=d1.cr;break}case z.lineFeed:{W=d1.lf;break}case z.carriageReturnLineFeed:{W=d1.cr+d1.lf;break}case z.horizontalTab:{W=X?d1.space:d1.ht;break}case z.virtualSpace:{if(!X&&Q)continue;W=d1.space;break}default:O(typeof U==="number","expected number"),W=String.fromCharCode(U)}Q=U===z.horizontalTab,G.push(W)}return G.join("")}var PG,z4;var TG=C(()=>{o();Z1();C0();c();PG=H5(AG(),1),z4=PG.default("micromark")});function T3(Z){let G={constructs:h5([w3,...(Z||{}).extensions||[]]),content:Q(kJ),defined:[],document:Q(hJ),flow:Q($G),lazy:{},string:Q(BG),text:Q(FG)};return G;function Q(U){return W;function W(q){return wG(G,U,q)}}}var CG=C(()=>{W3();yJ();mJ();zG();P3();_G();TG()});function C3(Z){while(!r5(Z));return Z}var jG=C(()=>{$3()});function j3(){let Z=1,X="",J=!0,G;return Q;function Q(U,W,q){let Y=[],H,K,$,B,V;if(U=X+(typeof U==="string"?U.toString():new TextDecoder(W||void 0).decode(U)),$=0,X="",J){if(U.charCodeAt(0)===z.byteOrderMarker)$++;J=void 0}while($<U.length){if(EG.lastIndex=$,H=EG.exec(U),B=H&&H.index!==void 0?H.index:U.length,V=U.charCodeAt(B),!H){X=U.slice($);break}if(V===z.lf&&$===B&&G)Y.push(z.carriageReturnLineFeed),G=void 0;else{if(G)Y.push(z.carriageReturn),G=void 0;if($<B)Y.push(U.slice($,B)),Z+=B-$;switch(V){case z.nul:{Y.push(z.replacementCharacter),Z++;break}case z.ht:{K=Math.ceil(Z/g.tabSize)*g.tabSize,Y.push(z.horizontalTab);while(Z++<K)Y.push(z.virtualSpace);break}case z.lf:{Y.push(z.lineFeed),Z=1;break}default:G=!0,Z=1}}$=B+1}if(q){if(G)Y.push(z.carriageReturn);if(X)Y.push(X);Y.push(z.eof)}return Y}}var EG;var SG=C(()=>{c();EG=/[\0\t\n\r]/g});var bG=C(()=>{CG();jG();SG()});function xG(Z){return Z.replace(fV,lV)}function lV(Z,X,J){if(X)return X;if(J.charCodeAt(0)===z.numberSign){let Q=J.charCodeAt(1),U=Q===z.lowercaseX||Q===z.uppercaseX;return m5(J.slice(U?2:1),U?g.numericBaseHexadecimal:g.numericBaseDecimal)}return T0(J)||Z}var fV;var gG=C(()=>{m7();q3();c();fV=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi});function E3(Z,X,J){if(X&&typeof X==="object")J=X,X=void 0;return iV(J)(C3(T3(J).document().write(j3()(Z,X,!0))))}function iV(Z){let X={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:U(fZ),autolinkProtocol:j,autolinkEmail:j,atxHeading:U(mZ),blockQuote:U(N0),characterEscape:j,characterReference:j,codeFenced:U(X4),codeFencedFenceInfo:W,codeFencedFenceMeta:W,codeIndented:U(X4,W),codeText:U(w4,W),codeTextData:j,data:j,codeFlowValue:j,definition:U(V8),definitionDestinationString:W,definitionLabelString:W,definitionTitleString:W,emphasis:U(MY),hardBreakEscape:U(uZ),hardBreakTrailing:U(uZ),htmlFlow:U(pZ,W),htmlFlowData:j,htmlText:U(pZ,W),htmlTextData:j,image:U(DY),label:W,link:U(fZ),listItem:U(_Y),listItemValue:B,listOrdered:U(lZ,$),listUnordered:U(lZ),paragraph:U(RY),reference:A,referenceString:W,resourceDestinationString:W,resourceTitleString:W,setextHeading:U(mZ),strong:U(OY),thematicBreak:U(LY)},exit:{atxHeading:Y(),atxHeadingSequence:m,autolink:Y(),autolinkEmail:N7,autolinkProtocol:R1,blockQuote:Y(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:Z4,characterReferenceMarkerNumeric:Z4,characterReferenceValue:z8,characterReference:Y5,codeFenced:Y(D),codeFencedFence:_,codeFencedFenceInfo:V,codeFencedFenceMeta:M,codeFlowValue:P,codeIndented:Y(R),codeText:Y(T),codeTextData:P,data:P,definition:Y(),definitionDestinationString:E,definitionLabelString:N,definitionTitleString:L,emphasis:Y(),hardBreakEscape:Y(a),hardBreakTrailing:Y(a),htmlFlow:Y(v),htmlFlowData:P,htmlText:Y(f),htmlTextData:P,image:Y(_1),label:q0,labelText:a1,lineEnding:n,link:Y(e),listItem:Y(),listOrdered:Y(),listUnordered:Y(),paragraph:Y(),referenceString:f1,resourceDestinationString:I,resourceTitleString:s1,resource:O0,setextHeading:Y(h),setextHeadingLineSequence:y,setextHeadingText:w,strong:Y(),thematicBreak:Y()}};vG(X,(Z||{}).mdastExtensions||[]);let J={};return G;function G(S){let b={type:"root",children:[]},i={stack:[b],tokenStack:[],config:X,enter:q,exit:H,buffer:W,resume:K,data:J},J1=[],Q1=-1;while(++Q1<S.length)if(S[Q1][1].type===F.listOrdered||S[Q1][1].type===F.listUnordered)if(S[Q1][0]==="enter")J1.push(Q1);else{let v1=J1.pop();O(typeof v1==="number","expected list to be open"),Q1=Q(S,v1,Q1)}Q1=-1;while(++Q1<S.length){let v1=X[S[Q1][0]];if(yG.call(v1,S[Q1][1].type))v1[S[Q1][1].type].call(Object.assign({sliceSerialize:S[Q1][2].sliceSerialize},i),S[Q1][1])}if(i.tokenStack.length>0){let v1=i.tokenStack[i.tokenStack.length-1];(v1[1]||kG).call(i,void 0,v1[0])}b.position={start:d0(S.length>0?S[0][1].start:{line:1,column:1,offset:0}),end:d0(S.length>0?S[S.length-2][1].end:{line:1,column:1,offset:0})},Q1=-1;while(++Q1<X.transforms.length)b=X.transforms[Q1](b)||b;return b}function Q(S,b,i){let J1=b-1,Q1=-1,v1=!1,J4,L0,L7,I7;while(++J1<=i){let l1=S[J1];switch(l1[1].type){case F.listUnordered:case F.listOrdered:case F.blockQuote:{if(l1[0]==="enter")Q1++;else Q1--;I7=void 0;break}case F.lineEndingBlank:{if(l1[0]==="enter"){if(J4&&!I7&&!Q1&&!L7)L7=J1;I7=void 0}break}case F.linePrefix:case F.listItemValue:case F.listItemMarker:case F.listItemPrefix:case F.listItemPrefixWhitespace:break;default:I7=void 0}if(!Q1&&l1[0]==="enter"&&l1[1].type===F.listItemPrefix||Q1===-1&&l1[0]==="exit"&&(l1[1].type===F.listUnordered||l1[1].type===F.listOrdered)){if(J4){let T4=J1;L0=void 0;while(T4--){let I0=S[T4];if(I0[1].type===F.lineEnding||I0[1].type===F.lineEndingBlank){if(I0[0]==="exit")continue;if(L0)S[L0][1].type=F.lineEndingBlank,v1=!0;I0[1].type=F.lineEnding,L0=T4}else if(I0[1].type===F.linePrefix||I0[1].type===F.blockQuotePrefix||I0[1].type===F.blockQuotePrefixWhitespace||I0[1].type===F.blockQuoteMarker||I0[1].type===F.listItemIndent);else break}if(L7&&(!L0||L7<L0))J4._spread=!0;J4.end=Object.assign({},L0?S[L0][1].start:l1[1].end),S.splice(L0||J1,0,["exit",J4,l1[2]]),J1++,i++}if(l1[1].type===F.listItemPrefix){let T4={type:"listItem",_spread:!1,start:Object.assign({},l1[1].start),end:void 0};J4=T4,S.splice(J1,0,["enter",T4,l1[2]]),J1++,i++,L7=void 0,I7=!0}}}return S[b][1]._spread=v1,i}function U(S,b){return i;function i(J1){if(q.call(this,S(J1),J1),b)b.call(this,J1)}}function W(){this.stack.push({type:"fragment",children:[]})}function q(S,b,i){let J1=this.stack[this.stack.length-1];O(J1,"expected `parent`"),O("children"in J1,"expected `parent`"),J1.children.push(S),this.stack.push(S),this.tokenStack.push([b,i||void 0]),S.position={start:d0(b.start),end:void 0}}function Y(S){return b;function b(i){if(S)S.call(this,i);H.call(this,i)}}function H(S,b){let i=this.stack.pop();O(i,"expected `node`");let J1=this.tokenStack.pop();if(!J1)throw Error("Cannot close `"+S.type+"` ("+f0({start:S.start,end:S.end})+"): it’s not open");else if(J1[0].type!==S.type)if(b)b.call(this,S,J1[0]);else(J1[1]||kG).call(this,S,J1[0]);O(i.type!=="fragment","unexpected fragment `exit`ed"),O(i.position,"expected `position` to be defined"),i.position.end=d0(S.end)}function K(){return q4(this.stack.pop())}function $(){this.data.expectingFirstListItemValue=!0}function B(S){if(this.data.expectingFirstListItemValue){let b=this.stack[this.stack.length-2];O(b,"expected nodes on stack"),O(b.type==="list","expected list on stack"),b.start=Number.parseInt(this.sliceSerialize(S),g.numericBaseDecimal),this.data.expectingFirstListItemValue=void 0}}function V(){let S=this.resume(),b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="code","expected code on stack"),b.lang=S}function M(){let S=this.resume(),b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="code","expected code on stack"),b.meta=S}function _(){if(this.data.flowCodeInside)return;this.buffer(),this.data.flowCodeInside=!0}function D(){let S=this.resume(),b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="code","expected code on stack"),b.value=S.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function R(){let S=this.resume(),b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="code","expected code on stack"),b.value=S.replace(/(\r?\n|\r)$/g,"")}function N(S){let b=this.resume(),i=this.stack[this.stack.length-1];O(i,"expected node on stack"),O(i.type==="definition","expected definition on stack"),i.label=b,i.identifier=S1(this.sliceSerialize(S)).toLowerCase()}function L(){let S=this.resume(),b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="definition","expected definition on stack"),b.title=S}function E(){let S=this.resume(),b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="definition","expected definition on stack"),b.url=S}function m(S){let b=this.stack[this.stack.length-1];if(O(b,"expected node on stack"),O(b.type==="heading","expected heading on stack"),!b.depth){let i=this.sliceSerialize(S).length;O(i===1||i===2||i===3||i===4||i===5||i===6,"expected `depth` between `1` and `6`"),b.depth=i}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function y(S){let b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="heading","expected heading on stack"),b.depth=this.sliceSerialize(S).codePointAt(0)===z.equalsTo?1:2}function h(){this.data.setextHeadingSlurpLineEnding=void 0}function j(S){let b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O("children"in b,"expected parent on stack");let i=b.children,J1=i[i.length-1];if(!J1||J1.type!=="text")J1=NY(),J1.position={start:d0(S.start),end:void 0},i.push(J1);this.stack.push(J1)}function P(S){let b=this.stack.pop();O(b,"expected a `node` to be on the stack"),O("value"in b,"expected a `literal` to be on the stack"),O(b.position,"expected `node` to have an open position"),b.value+=this.sliceSerialize(S),b.position.end=d0(S.end)}function n(S){let b=this.stack[this.stack.length-1];if(O(b,"expected `node`"),this.data.atHardBreak){O("children"in b,"expected `parent`");let i=b.children[b.children.length-1];O(i.position,"expected tail to have a starting position"),i.position.end=d0(S.end),this.data.atHardBreak=void 0;return}if(!this.data.setextHeadingSlurpLineEnding&&X.canContainEols.includes(b.type))j.call(this,S),P.call(this,S)}function a(){this.data.atHardBreak=!0}function v(){let S=this.resume(),b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="html","expected html on stack"),b.value=S}function f(){let S=this.resume(),b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="html","expected html on stack"),b.value=S}function T(){let S=this.resume(),b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="inlineCode","expected inline code on stack"),b.value=S}function e(){let S=this.stack[this.stack.length-1];if(O(S,"expected node on stack"),O(S.type==="link","expected link on stack"),this.data.inReference){let b=this.data.referenceType||"shortcut";S.type+="Reference",S.referenceType=b,delete S.url,delete S.title}else delete S.identifier,delete S.label;this.data.referenceType=void 0}function _1(){let S=this.stack[this.stack.length-1];if(O(S,"expected node on stack"),O(S.type==="image","expected image on stack"),this.data.inReference){let b=this.data.referenceType||"shortcut";S.type+="Reference",S.referenceType=b,delete S.url,delete S.title}else delete S.identifier,delete S.label;this.data.referenceType=void 0}function a1(S){let b=this.sliceSerialize(S),i=this.stack[this.stack.length-2];O(i,"expected ancestor on stack"),O(i.type==="image"||i.type==="link","expected image or link on stack"),i.label=xG(b),i.identifier=S1(b).toLowerCase()}function q0(){let S=this.stack[this.stack.length-1];O(S,"expected node on stack"),O(S.type==="fragment","expected fragment on stack");let b=this.resume(),i=this.stack[this.stack.length-1];if(O(i,"expected node on stack"),O(i.type==="image"||i.type==="link","expected image or link on stack"),this.data.inReference=!0,i.type==="link"){let J1=S.children;i.children=J1}else i.alt=b}function I(){let S=this.resume(),b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="image"||b.type==="link","expected image or link on stack"),b.url=S}function s1(){let S=this.resume(),b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="image"||b.type==="link","expected image or link on stack"),b.title=S}function O0(){this.data.inReference=void 0}function A(){this.data.referenceType="collapsed"}function f1(S){let b=this.resume(),i=this.stack[this.stack.length-1];O(i,"expected node on stack"),O(i.type==="image"||i.type==="link","expected image reference or link reference on stack"),i.label=b,i.identifier=S1(this.sliceSerialize(S)).toLowerCase(),this.data.referenceType="full"}function Z4(S){O(S.type==="characterReferenceMarkerNumeric"||S.type==="characterReferenceMarkerHexadecimal"),this.data.characterReferenceType=S.type}function z8(S){let b=this.sliceSerialize(S),i=this.data.characterReferenceType,J1;if(i)J1=m5(b,i===F.characterReferenceMarkerNumeric?g.numericBaseDecimal:g.numericBaseHexadecimal),this.data.characterReferenceType=void 0;else{let v1=T0(b);O(v1!==!1,"expected reference to decode"),J1=v1}let Q1=this.stack[this.stack.length-1];O(Q1,"expected `node`"),O("value"in Q1,"expected `node.value`"),Q1.value+=J1}function Y5(S){let b=this.stack.pop();O(b,"expected `node`"),O(b.position,"expected `node.position`"),b.position.end=d0(S.end)}function R1(S){P.call(this,S);let b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="link","expected link on stack"),b.url=this.sliceSerialize(S)}function N7(S){P.call(this,S);let b=this.stack[this.stack.length-1];O(b,"expected node on stack"),O(b.type==="link","expected link on stack"),b.url="mailto:"+this.sliceSerialize(S)}function N0(){return{type:"blockquote",children:[]}}function X4(){return{type:"code",lang:null,meta:null,value:""}}function w4(){return{type:"inlineCode",value:""}}function V8(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function MY(){return{type:"emphasis",children:[]}}function mZ(){return{type:"heading",depth:0,children:[]}}function uZ(){return{type:"break"}}function pZ(){return{type:"html",value:""}}function DY(){return{type:"image",title:null,url:"",alt:null}}function fZ(){return{type:"link",title:null,url:"",children:[]}}function lZ(S){return{type:"list",ordered:S.type==="listOrdered",start:null,spread:S._spread,children:[]}}function _Y(S){return{type:"listItem",spread:S._spread,checked:null,children:[]}}function RY(){return{type:"paragraph",children:[]}}function OY(){return{type:"strong",children:[]}}function NY(){return{type:"text",value:""}}function LY(){return{type:"thematicBreak"}}}function d0(Z){return{line:Z.line,column:Z.column,offset:Z.offset}}function vG(Z,X){let J=-1;while(++J<X.length){let G=X[J];if(Array.isArray(G))vG(Z,G);else dV(Z,G)}}function dV(Z,X){let J;for(J in X)if(yG.call(X,J))switch(J){case"canContainEols":{let G=X[J];if(G)Z[J].push(...G);break}case"transforms":{let G=X[J];if(G)Z[J].push(...G);break}case"enter":case"exit":{let G=X[J];if(G)Object.assign(Z[J],G);break}}}function kG(Z,X){if(Z)throw Error("Cannot close `"+Z.type+"` ("+f0({start:Z.start,end:Z.end})+"): a different token (`"+X.type+"`, "+f0({start:X.start,end:X.end})+") is open");else throw Error("Cannot close document, a token (`"+X.type+"`, "+f0({start:X.start,end:X.end})+") is still open")}var yG;var hG=C(()=>{o();v5();bG();q3();gG();p4();c();m7();o8();yG={}.hasOwnProperty});var mG=C(()=>{hG()});function J6(Z){let X=this;X.parser=J;function J(G){return E3(G,{...X.data("settings"),...Z,extensions:X.data("micromarkExtensions")||[],mdastExtensions:X.data("fromMarkdownExtensions")||[]})}}var uG=C(()=>{mG()});var pG=C(()=>{uG()});var fG=h1((ew,S3)=>{(function(){var Z;if(typeof S3<"u")Z=S3.exports=G;else Z=function(){return this||(0,eval)("this")}();if(Z.format=G,Z.vsprintf=J,typeof console<"u"&&typeof console.log==="function")Z.printf=X;function X(){console.log(G.apply(null,arguments))}function J(Q,U){return G.apply(null,[Q].concat(U))}function G(Q){var U=1,W=[].slice.call(arguments),q=0,Y=Q.length,H="",K,$=!1,B,V,M=!1,_,D=function(){return W[U++]},R=function(){var N="";while(/\d/.test(Q[q]))N+=Q[q++],K=Q[q];return N.length>0?parseInt(N):null};for(;q<Y;++q)if(K=Q[q],$){if($=!1,K==".")M=!1,K=Q[++q];else if(K=="0"&&Q[q+1]==".")M=!0,q+=2,K=Q[q];else M=!0;switch(_=R(),K){case"b":H+=parseInt(D(),10).toString(2);break;case"c":if(B=D(),typeof B==="string"||B instanceof String)H+=B;else H+=String.fromCharCode(parseInt(B,10));break;case"d":H+=parseInt(D(),10);break;case"f":V=String(parseFloat(D()).toFixed(_||6)),H+=M?V:V.replace(/^0/,"");break;case"j":H+=JSON.stringify(D());break;case"o":H+="0"+parseInt(D(),10).toString(8);break;case"s":H+=D();break;case"x":H+="0x"+parseInt(D(),10).toString(16);break;case"X":H+="0x"+parseInt(D(),10).toString(16).toUpperCase();break;default:H+=K;break}}else if(K==="%")$=!0;else H+=K;return H}})()});function V4(Z){return X.displayName=Z.displayName||Z.name,X;function X(J,...G){let Q=J?lG.default(J,...G):J;return new Z(Q)}}var lG,r7;var iG=C(()=>{lG=H5(fG(),1),r7=Object.assign(V4(Error),{eval:V4(EvalError),range:V4(RangeError),reference:V4(ReferenceError),syntax:V4(SyntaxError),type:V4(TypeError),uri:V4(URIError)})});function d4(Z){let X=[],J=-1,G=Array.isArray(Z)?Z:Z?[Z]:["yaml"];while(++J<G.length)X[J]=rV(G[J]);return X}function rV(Z){let X=Z;if(typeof X==="string"){if(!G6.call(dG,X))throw r7("Missing matter definition for `%s`",X);X={type:X,marker:dG[X]}}else if(typeof X!=="object")throw r7("Expected matter to be an object, not `%j`",X);if(!G6.call(X,"type"))throw r7("Missing `type` in matter `%j`",X);if(!G6.call(X,"fence")&&!G6.call(X,"marker"))throw r7("Missing `marker` or `fence` in matter `%j`",X);return X}var G6,dG;var b3=C(()=>{iG();G6={}.hasOwnProperty,dG={yaml:"-",toml:"+"}});function g3(Z){let X=d4(Z),J={},G=-1;while(++G<X.length){let Q=X[G],U=x3(Q,"open").charCodeAt(0),W=cV(Q),q=J[U];if(Array.isArray(q))q.push(W);else J[U]=[W]}return{flow:J}}function cV(Z){let{anywhere:X,type:J}=Z,G=J+"Fence",Q=G+"Sequence",U=J+"Value",W={tokenize:K,partial:!0},q,Y=0;return{tokenize:H,concrete:!0};function H($,B,V){let M=this;return _;function _(y){let h=M.now();if(h.column===1&&(h.line===1||X)){if(q=x3(Z,"open"),Y=0,y===q.charCodeAt(Y))return $.enter(J),$.enter(G),$.enter(Q),D(y)}return V(y)}function D(y){if(Y===q.length){if($.exit(Q),d(y))return $.enter(F.whitespace),R(y);return N(y)}if(y===q.charCodeAt(Y++))return $.consume(y),D;return V(y)}function R(y){if(d(y))return $.consume(y),R;return $.exit(F.whitespace),N(y)}function N(y){if(k(y))return $.exit(G),$.enter(F.lineEnding),$.consume(y),$.exit(F.lineEnding),q=x3(Z,"close"),Y=0,$.attempt(W,w,L);return V(y)}function L(y){if(y===z.eof||k(y))return m(y);return $.enter(U),E(y)}function E(y){if(y===z.eof||k(y))return $.exit(U),m(y);return $.consume(y),E}function m(y){if(y===z.eof)return V(y);return $.enter(F.lineEnding),$.consume(y),$.exit(F.lineEnding),$.attempt(W,w,L)}function w(y){return $.exit(J),B(y)}}function K($,B,V){let M=0;return _;function _(L){if(L===q.charCodeAt(M))return $.enter(G),$.enter(Q),D(L);return V(L)}function D(L){if(M===q.length){if($.exit(Q),d(L))return $.enter(F.whitespace),R(L);return N(L)}if(L===q.charCodeAt(M++))return $.consume(L),D;return V(L)}function R(L){if(d(L))return $.consume(L),R;return $.exit(F.whitespace),N(L)}function N(L){if(L===z.eof||k(L))return $.exit(G),B(L);return V(L)}}}function x3(Z,X){return Z.marker?rG(Z.marker,X).repeat(3):rG(Z.fence,X)}function rG(Z,X){return typeof Z==="string"?Z:Z[X]}var cG=C(()=>{Z1();c();b3()});var k3=C(()=>{cG();b3()});function c7(Z){if(typeof Z!=="string")throw TypeError("Expected a string");return Z.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function v3(Z){let X=d4(Z),J={},G={},Q=-1;while(++Q<X.length){let U=X[Q];J[U.type]=nV(U),G[U.type]=aV,G[U.type+"Value"]=sV}return{enter:J,exit:G}}function nV(Z){return X;function X(J){this.enter({type:Z.type,value:""},J),this.buffer()}}function aV(Z){let X=this.resume(),J=this.stack[this.stack.length-1];O("value"in J),this.exit(Z),J.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function sV(Z){this.config.enter.data.call(this,Z),this.config.exit.data.call(this,Z)}function h3(Z){let X=[],J={},G=d4(Z),Q=-1;while(++Q<G.length){let U=G[Q];J[U.type]=oV(U);let W=y3(U,"open");X.push({atBreak:!0,character:W.charAt(0),after:c7(W.charAt(1))})}return{unsafe:X,handlers:J}}function oV(Z){let X=y3(Z,"open"),J=y3(Z,"close");return G;function G(Q){return X+(Q.value?`
3
3
  `+Q.value:"")+`
4
- `+J}}function y3(Z,X){return Z.marker?cG(Z.marker,X).repeat(3):cG(Z.fence,X)}function cG(Z,X){return typeof Z==="string"?Z:Z[X]}var nG=C(()=>{o();k3()});var aG=C(()=>{nG()});function Q6(Z){let X=this,J=Z||sV,G=X.data(),Q=G.micromarkExtensions||(G.micromarkExtensions=[]),U=G.fromMarkdownExtensions||(G.fromMarkdownExtensions=[]),W=G.toMarkdownExtensions||(G.toMarkdownExtensions=[]);Q.push(g3(J)),U.push(v3(J)),W.push(h3(J))}var sV="yaml";var sG=C(()=>{aG();k3()});var oG=C(()=>{sG()});var ZQ=h1((LT,eG)=>{eG.exports=tG;function tG(Z){if(Z==null)return ZB;if(typeof Z==="string")return eV(Z);if(typeof Z==="object")return"length"in Z?tV(Z):oV(Z);if(typeof Z==="function")return Z;throw Error("Expected function, string, or object as test")}function oV(Z){return X;function X(J){var G;for(G in Z)if(J[G]!==Z[G])return!1;return!0}}function tV(Z){var X=[],J=-1;while(++J<Z.length)X[J]=tG(Z[J]);return G;function G(){var Q=-1;while(++Q<X.length)if(X[Q].apply(this,arguments))return!0;return!1}}function eV(Z){return X;function X(J){return Boolean(J&&J.type===Z)}}function ZB(){return!0}});var JQ=h1((IT,XQ)=>{XQ.exports=XB;function XB(Z){return Z}});var WQ=h1((AT,UQ)=>{UQ.exports=U6;var JB=ZQ(),GB=JQ(),GQ=!0,QQ="skip",m3=!1;U6.CONTINUE=GQ;U6.SKIP=QQ;U6.EXIT=m3;function U6(Z,X,J,G){var Q,U;if(typeof X==="function"&&typeof J!=="function")G=J,J=X,X=null;U=JB(X),Q=G?-1:1,W(Z,null,[])();function W(q,Y,H){var K=typeof q==="object"&&q!==null?q:{},$;if(typeof K.type==="string")$=typeof K.tagName==="string"?K.tagName:typeof K.name==="string"?K.name:void 0,B.displayName="node ("+GB(K.type+($?"<"+$+">":""))+")";return B;function B(){var V=H.concat(q),M=[],_,D;if(!X||U(q,Y,H[H.length-1]||null)){if(M=QB(J(q,H)),M[0]===m3)return M}if(q.children&&M[0]!==QQ){D=(G?q.children.length:-1)+Q;while(D>-1&&D<q.children.length){if(_=W(q.children[D],D,V)(),_[0]===m3)return _;D=typeof _[1]==="number"?_[1]:D+Q}}return M}}}function QB(Z){if(Z!==null&&typeof Z==="object"&&"length"in Z)return Z;if(typeof Z==="number")return[GQ,Z];return[Z]}});var YQ=h1((PT,qQ)=>{qQ.exports=q6;var W6=WQ(),UB=W6.CONTINUE,WB=W6.SKIP,qB=W6.EXIT;q6.CONTINUE=UB;q6.SKIP=WB;q6.EXIT=qB;function q6(Z,X,J,G){if(typeof X==="function"&&typeof J!=="function")G=J,J=X,X=null;W6(Z,X,Q,G);function Q(U,W){var q=W[W.length-1],Y=q?q.children.indexOf(U):null;return J(U,Y,q)}}});var uQ=h1((Y6,r4)=>{var YB=200,HB="Expected a function",n3="__lodash_hash_undefined__",F6=1,t4=2,RQ=1/0,OQ=9007199254740991,c4="[object Arguments]",H6="[object Array]",M6="[object Boolean]",D6="[object Date]",a3="[object Error]",_6="[object Function]",NQ="[object GeneratorFunction]",n4="[object Map]",R6="[object Number]",r0="[object Object]",HQ="[object Promise]",O6="[object RegExp]",a4="[object Set]",N6="[object String]",L6="[object Symbol]",K6="[object WeakMap]",I6="[object ArrayBuffer]",s4="[object DataView]",s3="[object Float32Array]",o3="[object Float64Array]",t3="[object Int8Array]",e3="[object Int16Array]",Z9="[object Int32Array]",X9="[object Uint8Array]",J9="[object Uint8ClampedArray]",G9="[object Uint16Array]",Q9="[object Uint32Array]",KB=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$B=/^\w*$/,zB=/^\./,VB=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,BB=/[\\^$.*+?()[\]{}|]/g,FB=/\\(\\)?/g,MB=/\w*$/,DB=/^\[object .+?Constructor\]$/,_B=/^(?:0|[1-9]\d*)$/,Y1={};Y1[s3]=Y1[o3]=Y1[t3]=Y1[e3]=Y1[Z9]=Y1[X9]=Y1[J9]=Y1[G9]=Y1[Q9]=!0;Y1[c4]=Y1[H6]=Y1[I6]=Y1[M6]=Y1[s4]=Y1[D6]=Y1[a3]=Y1[_6]=Y1[n4]=Y1[R6]=Y1[r0]=Y1[O6]=Y1[a4]=Y1[N6]=Y1[K6]=!1;var q1={};q1[c4]=q1[H6]=q1[I6]=q1[s4]=q1[M6]=q1[D6]=q1[s3]=q1[o3]=q1[t3]=q1[e3]=q1[Z9]=q1[n4]=q1[R6]=q1[r0]=q1[O6]=q1[a4]=q1[N6]=q1[L6]=q1[X9]=q1[J9]=q1[G9]=q1[Q9]=!0;q1[a3]=q1[_6]=q1[K6]=!1;var LQ=typeof global=="object"&&global&&global.Object===Object&&global,RB=typeof self=="object"&&self&&self.Object===Object&&self,b0=LQ||RB||Function("return this")(),IQ=typeof Y6=="object"&&Y6&&!Y6.nodeType&&Y6,KQ=IQ&&typeof r4=="object"&&r4&&!r4.nodeType&&r4,AQ=KQ&&KQ.exports===IQ,$Q=AQ&&LQ.process,zQ=function(){try{return $Q&&$Q.binding("util")}catch(Z){}}(),VQ=zQ&&zQ.isTypedArray;function OB(Z,X){return Z.set(X[0],X[1]),Z}function NB(Z,X){return Z.add(X),Z}function LB(Z,X){var J=-1,G=Z?Z.length:0;while(++J<G)if(X(Z[J],J,Z)===!1)break;return Z}function IB(Z,X){var J=-1,G=X.length,Q=Z.length;while(++J<G)Z[Q+J]=X[J];return Z}function PQ(Z,X,J,G){var Q=-1,U=Z?Z.length:0;if(G&&U)J=Z[++Q];while(++Q<U)J=X(J,Z[Q],Q,Z);return J}function AB(Z,X){var J=-1,G=Z?Z.length:0;while(++J<G)if(X(Z[J],J,Z))return!0;return!1}function PB(Z){return function(X){return X==null?void 0:X[Z]}}function wB(Z,X){var J=-1,G=Array(Z);while(++J<Z)G[J]=X(J);return G}function TB(Z){return function(X){return Z(X)}}function CB(Z,X){return Z==null?void 0:Z[X]}function $6(Z){var X=!1;if(Z!=null&&typeof Z.toString!="function")try{X=!!(Z+"")}catch(J){}return X}function p3(Z){var X=-1,J=Array(Z.size);return Z.forEach(function(G,Q){J[++X]=[Q,G]}),J}function U9(Z,X){return function(J){return Z(X(J))}}function f3(Z){var X=-1,J=Array(Z.size);return Z.forEach(function(G){J[++X]=G}),J}var jB=Array.prototype,EB=Function.prototype,A6=Object.prototype,u3=b0["__core-js_shared__"],BQ=function(){var Z=/[^.]+$/.exec(u3&&u3.keys&&u3.keys.IE_PROTO||"");return Z?"Symbol(src)_1."+Z:""}(),wQ=EB.toString,G0=A6.hasOwnProperty,e4=A6.toString,SB=RegExp("^"+wQ.call(G0).replace(BB,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),FQ=AQ?b0.Buffer:void 0,MQ=b0.Symbol,z6=b0.Uint8Array,bB=U9(Object.getPrototypeOf,Object),xB=Object.create,gB=A6.propertyIsEnumerable,kB=jB.splice,DQ=Object.getOwnPropertySymbols,yB=FQ?FQ.isBuffer:void 0,vB=U9(Object.keys,Object),l3=Z7(b0,"DataView"),a7=Z7(b0,"Map"),i3=Z7(b0,"Promise"),d3=Z7(b0,"Set"),r3=Z7(b0,"WeakMap"),s7=Z7(Object,"create"),hB=F4(l3),mB=F4(a7),uB=F4(i3),pB=F4(d3),fB=F4(r3),V6=MQ?MQ.prototype:void 0,n7=V6?V6.valueOf:void 0,_Q=V6?V6.toString:void 0;function B4(Z){var X=-1,J=Z?Z.length:0;this.clear();while(++X<J){var G=Z[X];this.set(G[0],G[1])}}function lB(){this.__data__=s7?s7(null):{}}function iB(Z){return this.has(Z)&&delete this.__data__[Z]}function dB(Z){var X=this.__data__;if(s7){var J=X[Z];return J===n3?void 0:J}return G0.call(X,Z)?X[Z]:void 0}function rB(Z){var X=this.__data__;return s7?X[Z]!==void 0:G0.call(X,Z)}function cB(Z,X){var J=this.__data__;return J[Z]=s7&&X===void 0?n3:X,this}B4.prototype.clear=lB;B4.prototype.delete=iB;B4.prototype.get=dB;B4.prototype.has=rB;B4.prototype.set=cB;function x0(Z){var X=-1,J=Z?Z.length:0;this.clear();while(++X<J){var G=Z[X];this.set(G[0],G[1])}}function nB(){this.__data__=[]}function aB(Z){var X=this.__data__,J=P6(X,Z);if(J<0)return!1;var G=X.length-1;if(J==G)X.pop();else kB.call(X,J,1);return!0}function sB(Z){var X=this.__data__,J=P6(X,Z);return J<0?void 0:X[J][1]}function oB(Z){return P6(this.__data__,Z)>-1}function tB(Z,X){var J=this.__data__,G=P6(J,Z);if(G<0)J.push([Z,X]);else J[G][1]=X;return this}x0.prototype.clear=nB;x0.prototype.delete=aB;x0.prototype.get=sB;x0.prototype.has=oB;x0.prototype.set=tB;function g0(Z){var X=-1,J=Z?Z.length:0;this.clear();while(++X<J){var G=Z[X];this.set(G[0],G[1])}}function eB(){this.__data__={hash:new B4,map:new(a7||x0),string:new B4}}function ZF(Z){return w6(this,Z).delete(Z)}function XF(Z){return w6(this,Z).get(Z)}function JF(Z){return w6(this,Z).has(Z)}function GF(Z,X){return w6(this,Z).set(Z,X),this}g0.prototype.clear=eB;g0.prototype.delete=ZF;g0.prototype.get=XF;g0.prototype.has=JF;g0.prototype.set=GF;function B6(Z){var X=-1,J=Z?Z.length:0;this.__data__=new g0;while(++X<J)this.add(Z[X])}function QF(Z){return this.__data__.set(Z,n3),this}function UF(Z){return this.__data__.has(Z)}B6.prototype.add=B6.prototype.push=QF;B6.prototype.has=UF;function F0(Z){this.__data__=new x0(Z)}function WF(){this.__data__=new x0}function qF(Z){return this.__data__.delete(Z)}function YF(Z){return this.__data__.get(Z)}function HF(Z){return this.__data__.has(Z)}function KF(Z,X){var J=this.__data__;if(J instanceof x0){var G=J.__data__;if(!a7||G.length<YB-1)return G.push([Z,X]),this;J=this.__data__=new g0(G)}return J.set(Z,X),this}F0.prototype.clear=WF;F0.prototype.delete=qF;F0.prototype.get=YF;F0.prototype.has=HF;F0.prototype.set=KF;function $F(Z,X){var J=S0(Z)||vQ(Z)?wB(Z.length,String):[],G=J.length,Q=!!G;for(var U in Z)if((X||G0.call(Z,U))&&!(Q&&(U=="length"||xQ(U,G))))J.push(U);return J}function TQ(Z,X,J){var G=Z[X];if(!(G0.call(Z,X)&&H9(G,J))||J===void 0&&!(X in Z))Z[X]=J}function P6(Z,X){var J=Z.length;while(J--)if(H9(Z[J][0],X))return J;return-1}function zF(Z,X){return Z&&EQ(X,o4(X),Z)}function c3(Z,X,J,G,Q,U,W){var q;if(G)q=U?G(Z,Q,U,W):G(Z);if(q!==void 0)return q;if(!X7(Z))return Z;var Y=S0(Z);if(Y){if(q=pF(Z),!X)return gF(Z,q)}else{var H=E0(Z),K=H==_6||H==NQ;if(nF(Z))return TF(Z,X);if(H==r0||H==c4||K&&!U){if($6(Z))return U?Z:{};if(q=fF(K?{}:Z),!X)return kF(Z,zF(q,Z))}else{if(!q1[H])return U?Z:{};q=lF(Z,H,c3,X)}}W||(W=new F0);var $=W.get(Z);if($)return $;if(W.set(Z,q),!Y)var B=J?hF(Z):o4(Z);return LB(B||Z,function(V,M){if(B)M=V,V=Z[M];TQ(q,M,c3(V,X,J,G,M,Z,W))}),q}function VF(Z){return X7(Z)?xB(Z):{}}function CQ(Z,X){X=T6(X,Z)?[X]:jQ(X);var J=0,G=X.length;while(Z!=null&&J<G)Z=Z[C6(X[J++])];return J&&J==G?Z:void 0}function BF(Z,X,J){var G=X(Z);return S0(Z)?G:IB(G,J(Z))}function FF(Z){return e4.call(Z)}function MF(Z,X){return Z!=null&&X in Object(Z)}function W9(Z,X,J,G,Q){if(Z===X)return!0;if(Z==null||X==null||!X7(Z)&&!j6(X))return Z!==Z&&X!==X;return DF(Z,X,W9,J,G,Q)}function DF(Z,X,J,G,Q,U){var W=S0(Z),q=S0(X),Y=H6,H=H6;if(!W)Y=E0(Z),Y=Y==c4?r0:Y;if(!q)H=E0(X),H=H==c4?r0:H;var K=Y==r0&&!$6(Z),$=H==r0&&!$6(X),B=Y==H;if(B&&!K)return U||(U=new F0),W||aF(Z)?SQ(Z,X,J,G,Q,U):yF(Z,X,Y,J,G,Q,U);if(!(Q&t4)){var V=K&&G0.call(Z,"__wrapped__"),M=$&&G0.call(X,"__wrapped__");if(V||M){var _=V?Z.value():Z,D=M?X.value():X;return U||(U=new F0),J(_,D,G,Q,U)}}if(!B)return!1;return U||(U=new F0),vF(Z,X,J,G,Q,U)}function _F(Z,X,J,G){var Q=J.length,U=Q,W=!G;if(Z==null)return!U;Z=Object(Z);while(Q--){var q=J[Q];if(W&&q[2]?q[1]!==Z[q[0]]:!(q[0]in Z))return!1}while(++Q<U){q=J[Q];var Y=q[0],H=Z[Y],K=q[1];if(W&&q[2]){if(H===void 0&&!(Y in Z))return!1}else{var $=new F0;if(G)var B=G(H,K,Y,Z,X,$);if(!(B===void 0?W9(K,H,G,F6|t4,$):B))return!1}}return!0}function RF(Z){if(!X7(Z)||dF(Z))return!1;var X=mQ(Z)||$6(Z)?SB:DB;return X.test(F4(Z))}function OF(Z){return j6(Z)&&K9(Z.length)&&!!Y1[e4.call(Z)]}function NF(Z){if(typeof Z=="function")return Z;if(Z==null)return eF;if(typeof Z=="object")return S0(Z)?AF(Z[0],Z[1]):IF(Z);return XM(Z)}function LF(Z){if(!gQ(Z))return vB(Z);var X=[];for(var J in Object(Z))if(G0.call(Z,J)&&J!="constructor")X.push(J);return X}function IF(Z){var X=mF(Z);if(X.length==1&&X[0][2])return yQ(X[0][0],X[0][1]);return function(J){return J===Z||_F(J,Z,X)}}function AF(Z,X){if(T6(Z)&&kQ(X))return yQ(C6(Z),X);return function(J){var G=oF(J,Z);return G===void 0&&G===X?tF(J,Z):W9(X,G,void 0,F6|t4)}}function PF(Z){return function(X){return CQ(X,Z)}}function wF(Z){if(typeof Z=="string")return Z;if($9(Z))return _Q?_Q.call(Z):"";var X=Z+"";return X=="0"&&1/Z==-RQ?"-0":X}function jQ(Z){return S0(Z)?Z:rF(Z)}function TF(Z,X){if(X)return Z.slice();var J=new Z.constructor(Z.length);return Z.copy(J),J}function q9(Z){var X=new Z.constructor(Z.byteLength);return new z6(X).set(new z6(Z)),X}function CF(Z,X){var J=X?q9(Z.buffer):Z.buffer;return new Z.constructor(J,Z.byteOffset,Z.byteLength)}function jF(Z,X,J){var G=X?J(p3(Z),!0):p3(Z);return PQ(G,OB,new Z.constructor)}function EF(Z){var X=new Z.constructor(Z.source,MB.exec(Z));return X.lastIndex=Z.lastIndex,X}function SF(Z,X,J){var G=X?J(f3(Z),!0):f3(Z);return PQ(G,NB,new Z.constructor)}function bF(Z){return n7?Object(n7.call(Z)):{}}function xF(Z,X){var J=X?q9(Z.buffer):Z.buffer;return new Z.constructor(J,Z.byteOffset,Z.length)}function gF(Z,X){var J=-1,G=Z.length;X||(X=Array(G));while(++J<G)X[J]=Z[J];return X}function EQ(Z,X,J,G){J||(J={});var Q=-1,U=X.length;while(++Q<U){var W=X[Q],q=G?G(J[W],Z[W],W,J,Z):void 0;TQ(J,W,q===void 0?Z[W]:q)}return J}function kF(Z,X){return EQ(Z,bQ(Z),X)}function SQ(Z,X,J,G,Q,U){var W=Q&t4,q=Z.length,Y=X.length;if(q!=Y&&!(W&&Y>q))return!1;var H=U.get(Z);if(H&&U.get(X))return H==X;var K=-1,$=!0,B=Q&F6?new B6:void 0;U.set(Z,X),U.set(X,Z);while(++K<q){var V=Z[K],M=X[K];if(G)var _=W?G(M,V,K,X,Z,U):G(V,M,K,Z,X,U);if(_!==void 0){if(_)continue;$=!1;break}if(B){if(!AB(X,function(D,R){if(!B.has(R)&&(V===D||J(V,D,G,Q,U)))return B.add(R)})){$=!1;break}}else if(!(V===M||J(V,M,G,Q,U))){$=!1;break}}return U.delete(Z),U.delete(X),$}function yF(Z,X,J,G,Q,U,W){switch(J){case s4:if(Z.byteLength!=X.byteLength||Z.byteOffset!=X.byteOffset)return!1;Z=Z.buffer,X=X.buffer;case I6:if(Z.byteLength!=X.byteLength||!G(new z6(Z),new z6(X)))return!1;return!0;case M6:case D6:case R6:return H9(+Z,+X);case a3:return Z.name==X.name&&Z.message==X.message;case O6:case N6:return Z==X+"";case n4:var q=p3;case a4:var Y=U&t4;if(q||(q=f3),Z.size!=X.size&&!Y)return!1;var H=W.get(Z);if(H)return H==X;U|=F6,W.set(Z,X);var K=SQ(q(Z),q(X),G,Q,U,W);return W.delete(Z),K;case L6:if(n7)return n7.call(Z)==n7.call(X)}return!1}function vF(Z,X,J,G,Q,U){var W=Q&t4,q=o4(Z),Y=q.length,H=o4(X),K=H.length;if(Y!=K&&!W)return!1;var $=Y;while($--){var B=q[$];if(!(W?B in X:G0.call(X,B)))return!1}var V=U.get(Z);if(V&&U.get(X))return V==X;var M=!0;U.set(Z,X),U.set(X,Z);var _=W;while(++$<Y){B=q[$];var D=Z[B],R=X[B];if(G)var N=W?G(R,D,B,X,Z,U):G(D,R,B,Z,X,U);if(!(N===void 0?D===R||J(D,R,G,Q,U):N)){M=!1;break}_||(_=B=="constructor")}if(M&&!_){var L=Z.constructor,E=X.constructor;if(L!=E&&(("constructor"in Z)&&("constructor"in X))&&!(typeof L=="function"&&L instanceof L&&typeof E=="function"&&E instanceof E))M=!1}return U.delete(Z),U.delete(X),M}function hF(Z){return BF(Z,o4,bQ)}function w6(Z,X){var J=Z.__data__;return iF(X)?J[typeof X=="string"?"string":"hash"]:J.map}function mF(Z){var X=o4(Z),J=X.length;while(J--){var G=X[J],Q=Z[G];X[J]=[G,Q,kQ(Q)]}return X}function Z7(Z,X){var J=CB(Z,X);return RF(J)?J:void 0}var bQ=DQ?U9(DQ,Object):JM,E0=FF;if(l3&&E0(new l3(new ArrayBuffer(1)))!=s4||a7&&E0(new a7)!=n4||i3&&E0(i3.resolve())!=HQ||d3&&E0(new d3)!=a4||r3&&E0(new r3)!=K6)E0=function(Z){var X=e4.call(Z),J=X==r0?Z.constructor:void 0,G=J?F4(J):void 0;if(G)switch(G){case hB:return s4;case mB:return n4;case uB:return HQ;case pB:return a4;case fB:return K6}return X};function uF(Z,X,J){X=T6(X,Z)?[X]:jQ(X);var G,Q=-1,W=X.length;while(++Q<W){var U=C6(X[Q]);if(!(G=Z!=null&&J(Z,U)))break;Z=Z[U]}if(G)return G;var W=Z?Z.length:0;return!!W&&K9(W)&&xQ(U,W)&&(S0(Z)||vQ(Z))}function pF(Z){var X=Z.length,J=Z.constructor(X);if(X&&typeof Z[0]=="string"&&G0.call(Z,"index"))J.index=Z.index,J.input=Z.input;return J}function fF(Z){return typeof Z.constructor=="function"&&!gQ(Z)?VF(bB(Z)):{}}function lF(Z,X,J,G){var Q=Z.constructor;switch(X){case I6:return q9(Z);case M6:case D6:return new Q(+Z);case s4:return CF(Z,G);case s3:case o3:case t3:case e3:case Z9:case X9:case J9:case G9:case Q9:return xF(Z,G);case n4:return jF(Z,G,J);case R6:case N6:return new Q(Z);case O6:return EF(Z);case a4:return SF(Z,G,J);case L6:return bF(Z)}}function xQ(Z,X){return X=X==null?OQ:X,!!X&&(typeof Z=="number"||_B.test(Z))&&(Z>-1&&Z%1==0&&Z<X)}function T6(Z,X){if(S0(Z))return!1;var J=typeof Z;if(J=="number"||J=="symbol"||J=="boolean"||Z==null||$9(Z))return!0;return $B.test(Z)||!KB.test(Z)||X!=null&&Z in Object(X)}function iF(Z){var X=typeof Z;return X=="string"||X=="number"||X=="symbol"||X=="boolean"?Z!=="__proto__":Z===null}function dF(Z){return!!BQ&&BQ in Z}function gQ(Z){var X=Z&&Z.constructor,J=typeof X=="function"&&X.prototype||A6;return Z===J}function kQ(Z){return Z===Z&&!X7(Z)}function yQ(Z,X){return function(J){if(J==null)return!1;return J[Z]===X&&(X!==void 0||(Z in Object(J)))}}var rF=Y9(function(Z){Z=sF(Z);var X=[];if(zB.test(Z))X.push("");return Z.replace(VB,function(J,G,Q,U){X.push(Q?U.replace(FB,"$1"):G||J)}),X});function C6(Z){if(typeof Z=="string"||$9(Z))return Z;var X=Z+"";return X=="0"&&1/Z==-RQ?"-0":X}function F4(Z){if(Z!=null){try{return wQ.call(Z)}catch(X){}try{return Z+""}catch(X){}}return""}function Y9(Z,X){if(typeof Z!="function"||X&&typeof X!="function")throw TypeError(HB);var J=function(){var G=arguments,Q=X?X.apply(this,G):G[0],U=J.cache;if(U.has(Q))return U.get(Q);var W=Z.apply(this,G);return J.cache=U.set(Q,W),W};return J.cache=new(Y9.Cache||g0),J}Y9.Cache=g0;function H9(Z,X){return Z===X||Z!==Z&&X!==X}function vQ(Z){return cF(Z)&&G0.call(Z,"callee")&&(!gB.call(Z,"callee")||e4.call(Z)==c4)}var S0=Array.isArray;function hQ(Z){return Z!=null&&K9(Z.length)&&!mQ(Z)}function cF(Z){return j6(Z)&&hQ(Z)}var nF=yB||GM;function mQ(Z){var X=X7(Z)?e4.call(Z):"";return X==_6||X==NQ}function K9(Z){return typeof Z=="number"&&Z>-1&&Z%1==0&&Z<=OQ}function X7(Z){var X=typeof Z;return!!Z&&(X=="object"||X=="function")}function j6(Z){return!!Z&&typeof Z=="object"}function $9(Z){return typeof Z=="symbol"||j6(Z)&&e4.call(Z)==L6}var aF=VQ?TB(VQ):OF;function sF(Z){return Z==null?"":wF(Z)}function oF(Z,X,J){var G=Z==null?void 0:CQ(Z,X);return G===void 0?J:G}function tF(Z,X){return Z!=null&&uF(Z,X,MF)}function o4(Z){return hQ(Z)?$F(Z):LF(Z)}function eF(Z){return Z}function ZM(Z){return NF(typeof Z=="function"?Z:c3(Z,!0))}function XM(Z){return T6(Z)?PB(C6(Z)):PF(Z)}function JM(){return[]}function GM(){return!1}r4.exports=ZM});var fQ=h1((TT,pQ)=>{var QM=YQ(),UM=uQ();pQ.exports=function(X,J){if(!X)throw Error("unist-util-find requires a tree to search");if(!J)throw Error("unist-util-find requires a condition");let G=UM(J),Q;return QM(X,function(U){if(G(U))return Q=U,!1}),Q}});function lQ(Z){let X=[0],J=Z.indexOf(`
4
+ `+J}}function y3(Z,X){return Z.marker?nG(Z.marker,X).repeat(3):nG(Z.fence,X)}function nG(Z,X){return typeof Z==="string"?Z:Z[X]}var aG=C(()=>{o();k3()});var sG=C(()=>{aG()});function Q6(Z){let X=this,J=Z||tV,G=X.data(),Q=G.micromarkExtensions||(G.micromarkExtensions=[]),U=G.fromMarkdownExtensions||(G.fromMarkdownExtensions=[]),W=G.toMarkdownExtensions||(G.toMarkdownExtensions=[]);Q.push(g3(J)),U.push(v3(J)),W.push(h3(J))}var tV="yaml";var oG=C(()=>{sG();k3()});var tG=C(()=>{oG()});var XQ=h1((AT,ZQ)=>{ZQ.exports=eG;function eG(Z){if(Z==null)return JB;if(typeof Z==="string")return XB(Z);if(typeof Z==="object")return"length"in Z?ZB(Z):eV(Z);if(typeof Z==="function")return Z;throw Error("Expected function, string, or object as test")}function eV(Z){return X;function X(J){var G;for(G in Z)if(J[G]!==Z[G])return!1;return!0}}function ZB(Z){var X=[],J=-1;while(++J<Z.length)X[J]=eG(Z[J]);return G;function G(){var Q=-1;while(++Q<X.length)if(X[Q].apply(this,arguments))return!0;return!1}}function XB(Z){return X;function X(J){return Boolean(J&&J.type===Z)}}function JB(){return!0}});var GQ=h1((PT,JQ)=>{JQ.exports=GB;function GB(Z){return Z}});var qQ=h1((wT,WQ)=>{WQ.exports=U6;var QB=XQ(),UB=GQ(),QQ=!0,UQ="skip",m3=!1;U6.CONTINUE=QQ;U6.SKIP=UQ;U6.EXIT=m3;function U6(Z,X,J,G){var Q,U;if(typeof X==="function"&&typeof J!=="function")G=J,J=X,X=null;U=QB(X),Q=G?-1:1,W(Z,null,[])();function W(q,Y,H){var K=typeof q==="object"&&q!==null?q:{},$;if(typeof K.type==="string")$=typeof K.tagName==="string"?K.tagName:typeof K.name==="string"?K.name:void 0,B.displayName="node ("+UB(K.type+($?"<"+$+">":""))+")";return B;function B(){var V=H.concat(q),M=[],_,D;if(!X||U(q,Y,H[H.length-1]||null)){if(M=WB(J(q,H)),M[0]===m3)return M}if(q.children&&M[0]!==UQ){D=(G?q.children.length:-1)+Q;while(D>-1&&D<q.children.length){if(_=W(q.children[D],D,V)(),_[0]===m3)return _;D=typeof _[1]==="number"?_[1]:D+Q}}return M}}}function WB(Z){if(Z!==null&&typeof Z==="object"&&"length"in Z)return Z;if(typeof Z==="number")return[QQ,Z];return[Z]}});var HQ=h1((TT,YQ)=>{YQ.exports=q6;var W6=qQ(),qB=W6.CONTINUE,YB=W6.SKIP,HB=W6.EXIT;q6.CONTINUE=qB;q6.SKIP=YB;q6.EXIT=HB;function q6(Z,X,J,G){if(typeof X==="function"&&typeof J!=="function")G=J,J=X,X=null;W6(Z,X,Q,G);function Q(U,W){var q=W[W.length-1],Y=q?q.children.indexOf(U):null;return J(U,Y,q)}}});var pQ=h1((Y6,r4)=>{var KB=200,$B="Expected a function",n3="__lodash_hash_undefined__",F6=1,t4=2,OQ=1/0,NQ=9007199254740991,c4="[object Arguments]",H6="[object Array]",M6="[object Boolean]",D6="[object Date]",a3="[object Error]",_6="[object Function]",LQ="[object GeneratorFunction]",n4="[object Map]",R6="[object Number]",r0="[object Object]",KQ="[object Promise]",O6="[object RegExp]",a4="[object Set]",N6="[object String]",L6="[object Symbol]",K6="[object WeakMap]",I6="[object ArrayBuffer]",s4="[object DataView]",s3="[object Float32Array]",o3="[object Float64Array]",t3="[object Int8Array]",e3="[object Int16Array]",Z9="[object Int32Array]",X9="[object Uint8Array]",J9="[object Uint8ClampedArray]",G9="[object Uint16Array]",Q9="[object Uint32Array]",zB=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,VB=/^\w*$/,BB=/^\./,FB=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,MB=/[\\^$.*+?()[\]{}|]/g,DB=/\\(\\)?/g,_B=/\w*$/,RB=/^\[object .+?Constructor\]$/,OB=/^(?:0|[1-9]\d*)$/,Y1={};Y1[s3]=Y1[o3]=Y1[t3]=Y1[e3]=Y1[Z9]=Y1[X9]=Y1[J9]=Y1[G9]=Y1[Q9]=!0;Y1[c4]=Y1[H6]=Y1[I6]=Y1[M6]=Y1[s4]=Y1[D6]=Y1[a3]=Y1[_6]=Y1[n4]=Y1[R6]=Y1[r0]=Y1[O6]=Y1[a4]=Y1[N6]=Y1[K6]=!1;var q1={};q1[c4]=q1[H6]=q1[I6]=q1[s4]=q1[M6]=q1[D6]=q1[s3]=q1[o3]=q1[t3]=q1[e3]=q1[Z9]=q1[n4]=q1[R6]=q1[r0]=q1[O6]=q1[a4]=q1[N6]=q1[L6]=q1[X9]=q1[J9]=q1[G9]=q1[Q9]=!0;q1[a3]=q1[_6]=q1[K6]=!1;var IQ=typeof global=="object"&&global&&global.Object===Object&&global,NB=typeof self=="object"&&self&&self.Object===Object&&self,b0=IQ||NB||Function("return this")(),AQ=typeof Y6=="object"&&Y6&&!Y6.nodeType&&Y6,$Q=AQ&&typeof r4=="object"&&r4&&!r4.nodeType&&r4,PQ=$Q&&$Q.exports===AQ,zQ=PQ&&IQ.process,VQ=function(){try{return zQ&&zQ.binding("util")}catch(Z){}}(),BQ=VQ&&VQ.isTypedArray;function LB(Z,X){return Z.set(X[0],X[1]),Z}function IB(Z,X){return Z.add(X),Z}function AB(Z,X){var J=-1,G=Z?Z.length:0;while(++J<G)if(X(Z[J],J,Z)===!1)break;return Z}function PB(Z,X){var J=-1,G=X.length,Q=Z.length;while(++J<G)Z[Q+J]=X[J];return Z}function wQ(Z,X,J,G){var Q=-1,U=Z?Z.length:0;if(G&&U)J=Z[++Q];while(++Q<U)J=X(J,Z[Q],Q,Z);return J}function wB(Z,X){var J=-1,G=Z?Z.length:0;while(++J<G)if(X(Z[J],J,Z))return!0;return!1}function TB(Z){return function(X){return X==null?void 0:X[Z]}}function CB(Z,X){var J=-1,G=Array(Z);while(++J<Z)G[J]=X(J);return G}function jB(Z){return function(X){return Z(X)}}function EB(Z,X){return Z==null?void 0:Z[X]}function $6(Z){var X=!1;if(Z!=null&&typeof Z.toString!="function")try{X=!!(Z+"")}catch(J){}return X}function p3(Z){var X=-1,J=Array(Z.size);return Z.forEach(function(G,Q){J[++X]=[Q,G]}),J}function U9(Z,X){return function(J){return Z(X(J))}}function f3(Z){var X=-1,J=Array(Z.size);return Z.forEach(function(G){J[++X]=G}),J}var SB=Array.prototype,bB=Function.prototype,A6=Object.prototype,u3=b0["__core-js_shared__"],FQ=function(){var Z=/[^.]+$/.exec(u3&&u3.keys&&u3.keys.IE_PROTO||"");return Z?"Symbol(src)_1."+Z:""}(),TQ=bB.toString,G0=A6.hasOwnProperty,e4=A6.toString,xB=RegExp("^"+TQ.call(G0).replace(MB,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),MQ=PQ?b0.Buffer:void 0,DQ=b0.Symbol,z6=b0.Uint8Array,gB=U9(Object.getPrototypeOf,Object),kB=Object.create,yB=A6.propertyIsEnumerable,vB=SB.splice,_Q=Object.getOwnPropertySymbols,hB=MQ?MQ.isBuffer:void 0,mB=U9(Object.keys,Object),l3=Z7(b0,"DataView"),a7=Z7(b0,"Map"),i3=Z7(b0,"Promise"),d3=Z7(b0,"Set"),r3=Z7(b0,"WeakMap"),s7=Z7(Object,"create"),uB=F4(l3),pB=F4(a7),fB=F4(i3),lB=F4(d3),iB=F4(r3),V6=DQ?DQ.prototype:void 0,n7=V6?V6.valueOf:void 0,RQ=V6?V6.toString:void 0;function B4(Z){var X=-1,J=Z?Z.length:0;this.clear();while(++X<J){var G=Z[X];this.set(G[0],G[1])}}function dB(){this.__data__=s7?s7(null):{}}function rB(Z){return this.has(Z)&&delete this.__data__[Z]}function cB(Z){var X=this.__data__;if(s7){var J=X[Z];return J===n3?void 0:J}return G0.call(X,Z)?X[Z]:void 0}function nB(Z){var X=this.__data__;return s7?X[Z]!==void 0:G0.call(X,Z)}function aB(Z,X){var J=this.__data__;return J[Z]=s7&&X===void 0?n3:X,this}B4.prototype.clear=dB;B4.prototype.delete=rB;B4.prototype.get=cB;B4.prototype.has=nB;B4.prototype.set=aB;function x0(Z){var X=-1,J=Z?Z.length:0;this.clear();while(++X<J){var G=Z[X];this.set(G[0],G[1])}}function sB(){this.__data__=[]}function oB(Z){var X=this.__data__,J=P6(X,Z);if(J<0)return!1;var G=X.length-1;if(J==G)X.pop();else vB.call(X,J,1);return!0}function tB(Z){var X=this.__data__,J=P6(X,Z);return J<0?void 0:X[J][1]}function eB(Z){return P6(this.__data__,Z)>-1}function ZF(Z,X){var J=this.__data__,G=P6(J,Z);if(G<0)J.push([Z,X]);else J[G][1]=X;return this}x0.prototype.clear=sB;x0.prototype.delete=oB;x0.prototype.get=tB;x0.prototype.has=eB;x0.prototype.set=ZF;function g0(Z){var X=-1,J=Z?Z.length:0;this.clear();while(++X<J){var G=Z[X];this.set(G[0],G[1])}}function XF(){this.__data__={hash:new B4,map:new(a7||x0),string:new B4}}function JF(Z){return w6(this,Z).delete(Z)}function GF(Z){return w6(this,Z).get(Z)}function QF(Z){return w6(this,Z).has(Z)}function UF(Z,X){return w6(this,Z).set(Z,X),this}g0.prototype.clear=XF;g0.prototype.delete=JF;g0.prototype.get=GF;g0.prototype.has=QF;g0.prototype.set=UF;function B6(Z){var X=-1,J=Z?Z.length:0;this.__data__=new g0;while(++X<J)this.add(Z[X])}function WF(Z){return this.__data__.set(Z,n3),this}function qF(Z){return this.__data__.has(Z)}B6.prototype.add=B6.prototype.push=WF;B6.prototype.has=qF;function F0(Z){this.__data__=new x0(Z)}function YF(){this.__data__=new x0}function HF(Z){return this.__data__.delete(Z)}function KF(Z){return this.__data__.get(Z)}function $F(Z){return this.__data__.has(Z)}function zF(Z,X){var J=this.__data__;if(J instanceof x0){var G=J.__data__;if(!a7||G.length<KB-1)return G.push([Z,X]),this;J=this.__data__=new g0(G)}return J.set(Z,X),this}F0.prototype.clear=YF;F0.prototype.delete=HF;F0.prototype.get=KF;F0.prototype.has=$F;F0.prototype.set=zF;function VF(Z,X){var J=S0(Z)||hQ(Z)?CB(Z.length,String):[],G=J.length,Q=!!G;for(var U in Z)if((X||G0.call(Z,U))&&!(Q&&(U=="length"||gQ(U,G))))J.push(U);return J}function CQ(Z,X,J){var G=Z[X];if(!(G0.call(Z,X)&&H9(G,J))||J===void 0&&!(X in Z))Z[X]=J}function P6(Z,X){var J=Z.length;while(J--)if(H9(Z[J][0],X))return J;return-1}function BF(Z,X){return Z&&SQ(X,o4(X),Z)}function c3(Z,X,J,G,Q,U,W){var q;if(G)q=U?G(Z,Q,U,W):G(Z);if(q!==void 0)return q;if(!X7(Z))return Z;var Y=S0(Z);if(Y){if(q=lF(Z),!X)return yF(Z,q)}else{var H=E0(Z),K=H==_6||H==LQ;if(sF(Z))return jF(Z,X);if(H==r0||H==c4||K&&!U){if($6(Z))return U?Z:{};if(q=iF(K?{}:Z),!X)return vF(Z,BF(q,Z))}else{if(!q1[H])return U?Z:{};q=dF(Z,H,c3,X)}}W||(W=new F0);var $=W.get(Z);if($)return $;if(W.set(Z,q),!Y)var B=J?uF(Z):o4(Z);return AB(B||Z,function(V,M){if(B)M=V,V=Z[M];CQ(q,M,c3(V,X,J,G,M,Z,W))}),q}function FF(Z){return X7(Z)?kB(Z):{}}function jQ(Z,X){X=T6(X,Z)?[X]:EQ(X);var J=0,G=X.length;while(Z!=null&&J<G)Z=Z[C6(X[J++])];return J&&J==G?Z:void 0}function MF(Z,X,J){var G=X(Z);return S0(Z)?G:PB(G,J(Z))}function DF(Z){return e4.call(Z)}function _F(Z,X){return Z!=null&&X in Object(Z)}function W9(Z,X,J,G,Q){if(Z===X)return!0;if(Z==null||X==null||!X7(Z)&&!j6(X))return Z!==Z&&X!==X;return RF(Z,X,W9,J,G,Q)}function RF(Z,X,J,G,Q,U){var W=S0(Z),q=S0(X),Y=H6,H=H6;if(!W)Y=E0(Z),Y=Y==c4?r0:Y;if(!q)H=E0(X),H=H==c4?r0:H;var K=Y==r0&&!$6(Z),$=H==r0&&!$6(X),B=Y==H;if(B&&!K)return U||(U=new F0),W||oF(Z)?bQ(Z,X,J,G,Q,U):hF(Z,X,Y,J,G,Q,U);if(!(Q&t4)){var V=K&&G0.call(Z,"__wrapped__"),M=$&&G0.call(X,"__wrapped__");if(V||M){var _=V?Z.value():Z,D=M?X.value():X;return U||(U=new F0),J(_,D,G,Q,U)}}if(!B)return!1;return U||(U=new F0),mF(Z,X,J,G,Q,U)}function OF(Z,X,J,G){var Q=J.length,U=Q,W=!G;if(Z==null)return!U;Z=Object(Z);while(Q--){var q=J[Q];if(W&&q[2]?q[1]!==Z[q[0]]:!(q[0]in Z))return!1}while(++Q<U){q=J[Q];var Y=q[0],H=Z[Y],K=q[1];if(W&&q[2]){if(H===void 0&&!(Y in Z))return!1}else{var $=new F0;if(G)var B=G(H,K,Y,Z,X,$);if(!(B===void 0?W9(K,H,G,F6|t4,$):B))return!1}}return!0}function NF(Z){if(!X7(Z)||cF(Z))return!1;var X=uQ(Z)||$6(Z)?xB:RB;return X.test(F4(Z))}function LF(Z){return j6(Z)&&K9(Z.length)&&!!Y1[e4.call(Z)]}function IF(Z){if(typeof Z=="function")return Z;if(Z==null)return XM;if(typeof Z=="object")return S0(Z)?wF(Z[0],Z[1]):PF(Z);return GM(Z)}function AF(Z){if(!kQ(Z))return mB(Z);var X=[];for(var J in Object(Z))if(G0.call(Z,J)&&J!="constructor")X.push(J);return X}function PF(Z){var X=pF(Z);if(X.length==1&&X[0][2])return vQ(X[0][0],X[0][1]);return function(J){return J===Z||OF(J,Z,X)}}function wF(Z,X){if(T6(Z)&&yQ(X))return vQ(C6(Z),X);return function(J){var G=eF(J,Z);return G===void 0&&G===X?ZM(J,Z):W9(X,G,void 0,F6|t4)}}function TF(Z){return function(X){return jQ(X,Z)}}function CF(Z){if(typeof Z=="string")return Z;if($9(Z))return RQ?RQ.call(Z):"";var X=Z+"";return X=="0"&&1/Z==-OQ?"-0":X}function EQ(Z){return S0(Z)?Z:nF(Z)}function jF(Z,X){if(X)return Z.slice();var J=new Z.constructor(Z.length);return Z.copy(J),J}function q9(Z){var X=new Z.constructor(Z.byteLength);return new z6(X).set(new z6(Z)),X}function EF(Z,X){var J=X?q9(Z.buffer):Z.buffer;return new Z.constructor(J,Z.byteOffset,Z.byteLength)}function SF(Z,X,J){var G=X?J(p3(Z),!0):p3(Z);return wQ(G,LB,new Z.constructor)}function bF(Z){var X=new Z.constructor(Z.source,_B.exec(Z));return X.lastIndex=Z.lastIndex,X}function xF(Z,X,J){var G=X?J(f3(Z),!0):f3(Z);return wQ(G,IB,new Z.constructor)}function gF(Z){return n7?Object(n7.call(Z)):{}}function kF(Z,X){var J=X?q9(Z.buffer):Z.buffer;return new Z.constructor(J,Z.byteOffset,Z.length)}function yF(Z,X){var J=-1,G=Z.length;X||(X=Array(G));while(++J<G)X[J]=Z[J];return X}function SQ(Z,X,J,G){J||(J={});var Q=-1,U=X.length;while(++Q<U){var W=X[Q],q=G?G(J[W],Z[W],W,J,Z):void 0;CQ(J,W,q===void 0?Z[W]:q)}return J}function vF(Z,X){return SQ(Z,xQ(Z),X)}function bQ(Z,X,J,G,Q,U){var W=Q&t4,q=Z.length,Y=X.length;if(q!=Y&&!(W&&Y>q))return!1;var H=U.get(Z);if(H&&U.get(X))return H==X;var K=-1,$=!0,B=Q&F6?new B6:void 0;U.set(Z,X),U.set(X,Z);while(++K<q){var V=Z[K],M=X[K];if(G)var _=W?G(M,V,K,X,Z,U):G(V,M,K,Z,X,U);if(_!==void 0){if(_)continue;$=!1;break}if(B){if(!wB(X,function(D,R){if(!B.has(R)&&(V===D||J(V,D,G,Q,U)))return B.add(R)})){$=!1;break}}else if(!(V===M||J(V,M,G,Q,U))){$=!1;break}}return U.delete(Z),U.delete(X),$}function hF(Z,X,J,G,Q,U,W){switch(J){case s4:if(Z.byteLength!=X.byteLength||Z.byteOffset!=X.byteOffset)return!1;Z=Z.buffer,X=X.buffer;case I6:if(Z.byteLength!=X.byteLength||!G(new z6(Z),new z6(X)))return!1;return!0;case M6:case D6:case R6:return H9(+Z,+X);case a3:return Z.name==X.name&&Z.message==X.message;case O6:case N6:return Z==X+"";case n4:var q=p3;case a4:var Y=U&t4;if(q||(q=f3),Z.size!=X.size&&!Y)return!1;var H=W.get(Z);if(H)return H==X;U|=F6,W.set(Z,X);var K=bQ(q(Z),q(X),G,Q,U,W);return W.delete(Z),K;case L6:if(n7)return n7.call(Z)==n7.call(X)}return!1}function mF(Z,X,J,G,Q,U){var W=Q&t4,q=o4(Z),Y=q.length,H=o4(X),K=H.length;if(Y!=K&&!W)return!1;var $=Y;while($--){var B=q[$];if(!(W?B in X:G0.call(X,B)))return!1}var V=U.get(Z);if(V&&U.get(X))return V==X;var M=!0;U.set(Z,X),U.set(X,Z);var _=W;while(++$<Y){B=q[$];var D=Z[B],R=X[B];if(G)var N=W?G(R,D,B,X,Z,U):G(D,R,B,Z,X,U);if(!(N===void 0?D===R||J(D,R,G,Q,U):N)){M=!1;break}_||(_=B=="constructor")}if(M&&!_){var L=Z.constructor,E=X.constructor;if(L!=E&&(("constructor"in Z)&&("constructor"in X))&&!(typeof L=="function"&&L instanceof L&&typeof E=="function"&&E instanceof E))M=!1}return U.delete(Z),U.delete(X),M}function uF(Z){return MF(Z,o4,xQ)}function w6(Z,X){var J=Z.__data__;return rF(X)?J[typeof X=="string"?"string":"hash"]:J.map}function pF(Z){var X=o4(Z),J=X.length;while(J--){var G=X[J],Q=Z[G];X[J]=[G,Q,yQ(Q)]}return X}function Z7(Z,X){var J=EB(Z,X);return NF(J)?J:void 0}var xQ=_Q?U9(_Q,Object):QM,E0=DF;if(l3&&E0(new l3(new ArrayBuffer(1)))!=s4||a7&&E0(new a7)!=n4||i3&&E0(i3.resolve())!=KQ||d3&&E0(new d3)!=a4||r3&&E0(new r3)!=K6)E0=function(Z){var X=e4.call(Z),J=X==r0?Z.constructor:void 0,G=J?F4(J):void 0;if(G)switch(G){case uB:return s4;case pB:return n4;case fB:return KQ;case lB:return a4;case iB:return K6}return X};function fF(Z,X,J){X=T6(X,Z)?[X]:EQ(X);var G,Q=-1,W=X.length;while(++Q<W){var U=C6(X[Q]);if(!(G=Z!=null&&J(Z,U)))break;Z=Z[U]}if(G)return G;var W=Z?Z.length:0;return!!W&&K9(W)&&gQ(U,W)&&(S0(Z)||hQ(Z))}function lF(Z){var X=Z.length,J=Z.constructor(X);if(X&&typeof Z[0]=="string"&&G0.call(Z,"index"))J.index=Z.index,J.input=Z.input;return J}function iF(Z){return typeof Z.constructor=="function"&&!kQ(Z)?FF(gB(Z)):{}}function dF(Z,X,J,G){var Q=Z.constructor;switch(X){case I6:return q9(Z);case M6:case D6:return new Q(+Z);case s4:return EF(Z,G);case s3:case o3:case t3:case e3:case Z9:case X9:case J9:case G9:case Q9:return kF(Z,G);case n4:return SF(Z,G,J);case R6:case N6:return new Q(Z);case O6:return bF(Z);case a4:return xF(Z,G,J);case L6:return gF(Z)}}function gQ(Z,X){return X=X==null?NQ:X,!!X&&(typeof Z=="number"||OB.test(Z))&&(Z>-1&&Z%1==0&&Z<X)}function T6(Z,X){if(S0(Z))return!1;var J=typeof Z;if(J=="number"||J=="symbol"||J=="boolean"||Z==null||$9(Z))return!0;return VB.test(Z)||!zB.test(Z)||X!=null&&Z in Object(X)}function rF(Z){var X=typeof Z;return X=="string"||X=="number"||X=="symbol"||X=="boolean"?Z!=="__proto__":Z===null}function cF(Z){return!!FQ&&FQ in Z}function kQ(Z){var X=Z&&Z.constructor,J=typeof X=="function"&&X.prototype||A6;return Z===J}function yQ(Z){return Z===Z&&!X7(Z)}function vQ(Z,X){return function(J){if(J==null)return!1;return J[Z]===X&&(X!==void 0||(Z in Object(J)))}}var nF=Y9(function(Z){Z=tF(Z);var X=[];if(BB.test(Z))X.push("");return Z.replace(FB,function(J,G,Q,U){X.push(Q?U.replace(DB,"$1"):G||J)}),X});function C6(Z){if(typeof Z=="string"||$9(Z))return Z;var X=Z+"";return X=="0"&&1/Z==-OQ?"-0":X}function F4(Z){if(Z!=null){try{return TQ.call(Z)}catch(X){}try{return Z+""}catch(X){}}return""}function Y9(Z,X){if(typeof Z!="function"||X&&typeof X!="function")throw TypeError($B);var J=function(){var G=arguments,Q=X?X.apply(this,G):G[0],U=J.cache;if(U.has(Q))return U.get(Q);var W=Z.apply(this,G);return J.cache=U.set(Q,W),W};return J.cache=new(Y9.Cache||g0),J}Y9.Cache=g0;function H9(Z,X){return Z===X||Z!==Z&&X!==X}function hQ(Z){return aF(Z)&&G0.call(Z,"callee")&&(!yB.call(Z,"callee")||e4.call(Z)==c4)}var S0=Array.isArray;function mQ(Z){return Z!=null&&K9(Z.length)&&!uQ(Z)}function aF(Z){return j6(Z)&&mQ(Z)}var sF=hB||UM;function uQ(Z){var X=X7(Z)?e4.call(Z):"";return X==_6||X==LQ}function K9(Z){return typeof Z=="number"&&Z>-1&&Z%1==0&&Z<=NQ}function X7(Z){var X=typeof Z;return!!Z&&(X=="object"||X=="function")}function j6(Z){return!!Z&&typeof Z=="object"}function $9(Z){return typeof Z=="symbol"||j6(Z)&&e4.call(Z)==L6}var oF=BQ?jB(BQ):LF;function tF(Z){return Z==null?"":CF(Z)}function eF(Z,X,J){var G=Z==null?void 0:jQ(Z,X);return G===void 0?J:G}function ZM(Z,X){return Z!=null&&fF(Z,X,_F)}function o4(Z){return mQ(Z)?VF(Z):AF(Z)}function XM(Z){return Z}function JM(Z){return IF(typeof Z=="function"?Z:c3(Z,!0))}function GM(Z){return T6(Z)?TB(C6(Z)):TF(Z)}function QM(){return[]}function UM(){return!1}r4.exports=JM});var lQ=h1((jT,fQ)=>{var WM=HQ(),qM=pQ();fQ.exports=function(X,J){if(!X)throw Error("unist-util-find requires a tree to search");if(!J)throw Error("unist-util-find requires a condition");let G=qM(J),Q;return WM(X,function(U){if(G(U))return Q=U,!1}),Q}});function iQ(Z){let X=[0],J=Z.indexOf(`
5
5
  `);while(J!==-1)J+=1,X.push(J),J=Z.indexOf(`
6
- `,J);return X}function iQ(Z){let X,J;if(typeof Z==="string")X=lQ(Z),J=Z;else{if(Array.isArray(Z))Z=Z[0];if(Z&&Z.context){if(!Z.lineStarts)Z.lineStarts=lQ(Z.context.src);X=Z.lineStarts,J=Z.context.src}}return{lineStarts:X,src:J}}function z9(Z,X){if(typeof Z!=="number"||Z<0)return null;let{lineStarts:J,src:G}=iQ(X);if(!J||!G||Z>G.length)return null;for(let U=0;U<J.length;++U){let W=J[U];if(Z<W)return{line:U,col:Z-J[U-1]+1};if(Z===W)return{line:U+1,col:1}}let Q=J.length;return{line:Q,col:Z-J[Q-1]+1}}function WM(Z,X){let{lineStarts:J,src:G}=iQ(X);if(!J||!(Z>=1)||Z>J.length)return null;let Q=J[Z-1],U=J[Z];while(U&&U>Q&&G[U-1]===`
7
- `)--U;return G.slice(Q,U)}function qM({start:Z,end:X},J,G=80){let Q=WM(Z.line,J);if(!Q)return null;let{col:U}=Z;if(Q.length>G)if(U<=G-10)Q=Q.substr(0,G-1)+"…";else{let K=Math.round(G/2);if(Q.length>U+K)Q=Q.substr(0,U+K-1)+"…";U-=Q.length-G,Q="…"+Q.substr(1-G)}let W=1,q="";if(X)if(X.line===Z.line&&U+(X.col-Z.col)<=G+1)W=X.col-Z.col;else W=Math.min(Q.length+1,G)-U,q="…";let Y=U>1?" ".repeat(U-1):"",H="^".repeat(W);return`${Q}
6
+ `,J);return X}function dQ(Z){let X,J;if(typeof Z==="string")X=iQ(Z),J=Z;else{if(Array.isArray(Z))Z=Z[0];if(Z&&Z.context){if(!Z.lineStarts)Z.lineStarts=iQ(Z.context.src);X=Z.lineStarts,J=Z.context.src}}return{lineStarts:X,src:J}}function z9(Z,X){if(typeof Z!=="number"||Z<0)return null;let{lineStarts:J,src:G}=dQ(X);if(!J||!G||Z>G.length)return null;for(let U=0;U<J.length;++U){let W=J[U];if(Z<W)return{line:U,col:Z-J[U-1]+1};if(Z===W)return{line:U+1,col:1}}let Q=J.length;return{line:Q,col:Z-J[Q-1]+1}}function YM(Z,X){let{lineStarts:J,src:G}=dQ(X);if(!J||!(Z>=1)||Z>J.length)return null;let Q=J[Z-1],U=J[Z];while(U&&U>Q&&G[U-1]===`
7
+ `)--U;return G.slice(Q,U)}function HM({start:Z,end:X},J,G=80){let Q=YM(Z.line,J);if(!Q)return null;let{col:U}=Z;if(Q.length>G)if(U<=G-10)Q=Q.substr(0,G-1)+"…";else{let K=Math.round(G/2);if(Q.length>U+K)Q=Q.substr(0,U+K-1)+"…";U-=Q.length-G,Q="…"+Q.substr(1-G)}let W=1,q="";if(X)if(X.line===Z.line&&U+(X.col-Z.col)<=G+1)W=X.col-Z.col;else W=Math.min(Q.length+1,G)-U,q="…";let Y=U>1?" ".repeat(U-1):"",H="^".repeat(W);return`${Q}
8
8
  ${Y}${H}${q}`}class W1{static copy(Z){return new W1(Z.start,Z.end)}constructor(Z,X){this.start=Z,this.end=X||Z}isEmpty(){return typeof this.start!=="number"||!this.end||this.end<=this.start}setOrigRange(Z,X){let{start:J,end:G}=this;if(Z.length===0||G<=Z[0])return this.origStart=J,this.origEnd=G,X;let Q=X;while(Q<Z.length)if(Z[Q]>J)break;else++Q;this.origStart=J+Q;let U=Q;while(Q<Z.length)if(Z[Q]>=G)break;else++Q;return this.origEnd=G+Q,U}}class u{static addStringTerminator(Z,X,J){if(J[J.length-1]===`
9
9
  `)return J;let G=u.endOfWhiteSpace(Z,X);return G>=Z.length||Z[G]===`
10
10
  `?J+`
@@ -24,7 +24,7 @@ ${Y}${H}${q}`}class W1{static copy(Z){return new W1(Z.start,Z.end)}constructor(Z
24
24
  `:G=0,X+=1,U+=`
25
25
  `;break;case"\t":if(G<=J)Q=!0;X=u.endOfWhiteSpace(Z,X+2)-1;break;case" ":G+=1,X+=1;break}W=Z[X+1]}if(!U)U=" ";if(W&&G<=J)Q=!0;return{fold:U,offset:X,error:Q}}constructor(Z,X,J){Object.defineProperty(this,"context",{value:J||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=X||[],this.type=Z,this.value=null}getPropValue(Z,X,J){if(!this.context)return null;let{src:G}=this.context,Q=this.props[Z];return Q&&G[Q.start]===X?G.slice(Q.start+(J?1:0),Q.end):null}get anchor(){for(let Z=0;Z<this.props.length;++Z){let X=this.getPropValue(Z,z1.ANCHOR,!0);if(X!=null)return X}return null}get comment(){let Z=[];for(let X=0;X<this.props.length;++X){let J=this.getPropValue(X,z1.COMMENT,!0);if(J!=null)Z.push(J)}return Z.length>0?Z.join(`
26
26
  `):null}commentHasRequiredWhitespace(Z){let{src:X}=this.context;if(this.header&&Z===this.header.end)return!1;if(!this.valueRange)return!1;let{end:J}=this.valueRange;return Z!==J||u.atBlank(X,J-1)}get hasComment(){if(this.context){let{src:Z}=this.context;for(let X=0;X<this.props.length;++X)if(Z[this.props[X].start]===z1.COMMENT)return!0}return!1}get hasProps(){if(this.context){let{src:Z}=this.context;for(let X=0;X<this.props.length;++X)if(Z[this.props[X].start]!==z1.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return[x.FLOW_MAP,x.FLOW_SEQ,x.QUOTE_DOUBLE,x.QUOTE_SINGLE].indexOf(this.type)!==-1}get rangeAsLinePos(){if(!this.range||!this.context)return;let Z=z9(this.range.start,this.context.root);if(!Z)return;let X=z9(this.range.end,this.context.root);return{start:Z,end:X}}get rawValue(){if(!this.valueRange||!this.context)return null;let{start:Z,end:X}=this.valueRange;return this.context.src.slice(Z,X)}get tag(){for(let Z=0;Z<this.props.length;++Z){let X=this.getPropValue(Z,z1.TAG,!1);if(X!=null)if(X[1]==="<")return{verbatim:X.slice(2,-1)};else{let[J,G,Q]=X.match(/^(.*!)([^!]*)$/);return{handle:G,suffix:Q}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;let{start:Z,end:X}=this.valueRange,{src:J}=this.context;for(let G=Z;G<X;++G)if(J[G]===`
27
- `)return!0;return!1}parseComment(Z){let{src:X}=this.context;if(X[Z]===z1.COMMENT){let J=u.endOfLine(X,Z+1),G=new W1(Z,J);return this.props.push(G),J}return Z}setOrigRanges(Z,X){if(this.range)X=this.range.setOrigRange(Z,X);if(this.valueRange)this.valueRange.setOrigRange(Z,X);return this.props.forEach((J)=>J.setOrigRange(Z,X)),X}toString(){let{context:{src:Z},range:X,value:J}=this;if(J!=null)return J;let G=Z.slice(X.start,X.end);return u.addStringTerminator(Z,X.end,G)}}function M1(Z,X,J){return(X=HM(X))in Z?Object.defineProperty(Z,X,{value:J,enumerable:!0,configurable:!0,writable:!0}):Z[X]=J,Z}function YM(Z,X){if(typeof Z!="object"||!Z)return Z;var J=Z[Symbol.toPrimitive];if(J!==void 0){var G=J.call(Z,X||"default");if(typeof G!="object")return G;throw TypeError("@@toPrimitive must return a primitive value.")}return(X==="string"?String:Number)(Z)}function HM(Z){var X=YM(Z,"string");return typeof X=="symbol"?X:X+""}var z1,x,J7="tag:yaml.org,2002:",M0,D0,c0,s,F1,k0,M4;var G7=C(()=>{z1={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},x={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},M0={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};D0=class D0 extends Error{constructor(Z,X,J){if(!J||!(X instanceof u))throw Error(`Invalid arguments for new ${Z}`);super();this.name=Z,this.message=J,this.source=X}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let Z=this.source.context&&this.source.context.root;if(typeof this.offset==="number"){this.range=new W1(this.offset,this.offset+1);let X=Z&&z9(this.offset,Z);if(X){let J={line:X.line,col:X.col+1};this.linePos={start:X,end:J}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:X,col:J}=this.linePos.start;this.message+=` at line ${X}, column ${J}`;let G=Z&&qM(this.linePos,Z);if(G)this.message+=`:
27
+ `)return!0;return!1}parseComment(Z){let{src:X}=this.context;if(X[Z]===z1.COMMENT){let J=u.endOfLine(X,Z+1),G=new W1(Z,J);return this.props.push(G),J}return Z}setOrigRanges(Z,X){if(this.range)X=this.range.setOrigRange(Z,X);if(this.valueRange)this.valueRange.setOrigRange(Z,X);return this.props.forEach((J)=>J.setOrigRange(Z,X)),X}toString(){let{context:{src:Z},range:X,value:J}=this;if(J!=null)return J;let G=Z.slice(X.start,X.end);return u.addStringTerminator(Z,X.end,G)}}function M1(Z,X,J){return(X=$M(X))in Z?Object.defineProperty(Z,X,{value:J,enumerable:!0,configurable:!0,writable:!0}):Z[X]=J,Z}function KM(Z,X){if(typeof Z!="object"||!Z)return Z;var J=Z[Symbol.toPrimitive];if(J!==void 0){var G=J.call(Z,X||"default");if(typeof G!="object")return G;throw TypeError("@@toPrimitive must return a primitive value.")}return(X==="string"?String:Number)(Z)}function $M(Z){var X=KM(Z,"string");return typeof X=="symbol"?X:X+""}var z1,x,J7="tag:yaml.org,2002:",M0,D0,c0,s,F1,k0,M4;var G7=C(()=>{z1={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},x={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},M0={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};D0=class D0 extends Error{constructor(Z,X,J){if(!J||!(X instanceof u))throw Error(`Invalid arguments for new ${Z}`);super();this.name=Z,this.message=J,this.source=X}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let Z=this.source.context&&this.source.context.root;if(typeof this.offset==="number"){this.range=new W1(this.offset,this.offset+1);let X=Z&&z9(this.offset,Z);if(X){let J={line:X.line,col:X.col+1};this.linePos={start:X,end:J}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:X,col:J}=this.linePos.start;this.message+=` at line ${X}, column ${J}`;let G=Z&&HM(this.linePos,Z);if(G)this.message+=`:
28
28
 
29
29
  ${G}
30
30
  `}delete this.source}};c0=class c0 extends D0{constructor(Z,X){super("YAMLReferenceError",Z,X)}};s=class s extends D0{constructor(Z,X){super("YAMLSemanticError",Z,X)}};F1=class F1 extends D0{constructor(Z,X){super("YAMLSyntaxError",Z,X)}};k0=class k0 extends D0{constructor(Z,X){super("YAMLWarning",Z,X)}};M4=class M4 extends u{static endOfLine(Z,X,J){let G=Z[X],Q=X;while(G&&G!==`
@@ -35,14 +35,14 @@ ${G}
35
35
  `)Q+=W>Y?J.slice(Y,W+1):q}else Q+=q}let U=J[Z];switch(U){case"\t":return{errors:[new s(this,"Plain value cannot start with a tab character")],str:Q};case"@":case"`":{let W=`Plain value cannot start with reserved character ${U}`;return{errors:[new s(this,W)],str:Q}}default:return Q}}parseBlockValue(Z){let{indent:X,inFlow:J,src:G}=this.context,Q=Z,U=Z;for(let W=G[Q];W===`
36
36
  `;W=G[Q]){if(u.atDocumentBoundary(G,Q+1))break;let q=u.endOfBlockIndent(G,X,Q+1);if(q===null||G[q]==="#")break;if(G[q]===`
37
37
  `)Q=q;else U=M4.endOfLine(G,q,J),Q=U}if(this.valueRange.isEmpty())this.valueRange.start=Z;return this.valueRange.end=U,U}parse(Z,X){this.context=Z;let{inFlow:J,src:G}=Z,Q=X,U=G[Q];if(U&&U!=="#"&&U!==`
38
- `)Q=M4.endOfLine(G,X,J);if(this.valueRange=new W1(X,Q),Q=u.endOfWhiteSpace(G,Q),Q=this.parseComment(Q),!this.hasComment||this.valueRange.isEmpty())Q=this.parseBlockValue(Q);return Q}}});function V9(Z){let X=Z;while(X instanceof S6)X=X.node;if(!(X instanceof t7))return null;let J=X.items.length,G=-1;for(let W=J-1;W>=0;--W){let q=X.items[W];if(q.type===x.COMMENT){let{indent:Y,lineStart:H}=q.context;if(Y>0&&q.range.start>=H+Y)break;G=W}else if(q.type===x.BLANK_LINE)G=W;else break}if(G===-1)return null;let Q=X.items.splice(G,J-G),U=Q[0].range.start;while(!0){if(X.range.end=U,X.valueRange&&X.valueRange.end>U)X.valueRange.end=U;if(X===Z)break;X=X.context.parent}return Q}function KM(Z,X){switch(Z){case x.ALIAS:return new rQ(Z,X);case x.BLOCK_FOLDED:case x.BLOCK_LITERAL:return new cQ(Z,X);case x.FLOW_MAP:case x.FLOW_SEQ:return new nQ(Z,X);case x.MAP_KEY:case x.MAP_VALUE:case x.SEQ_ITEM:return new S6(Z,X);case x.COMMENT:case x.PLAIN:return new M4(Z,X);case x.QUOTE_DOUBLE:return new B9(Z,X);case x.QUOTE_SINGLE:return new F9(Z,X);default:return null}}class o7{static parseType(Z,X,J){switch(Z[X]){case"*":return x.ALIAS;case">":return x.BLOCK_FOLDED;case"|":return x.BLOCK_LITERAL;case"{":return x.FLOW_MAP;case"[":return x.FLOW_SEQ;case"?":return!J&&u.atBlank(Z,X+1,!0)?x.MAP_KEY:x.PLAIN;case":":return!J&&u.atBlank(Z,X+1,!0)?x.MAP_VALUE:x.PLAIN;case"-":return!J&&u.atBlank(Z,X+1,!0)?x.SEQ_ITEM:x.PLAIN;case'"':return x.QUOTE_DOUBLE;case"'":return x.QUOTE_SINGLE;default:return x.PLAIN}}constructor(Z={},{atLineStart:X,inCollection:J,inFlow:G,indent:Q,lineStart:U,parent:W}={}){M1(this,"parseNode",(q,Y)=>{if(u.atDocumentBoundary(this.src,Y))return null;let H=new o7(this,q),{props:K,type:$,valueStart:B}=H.parseProps(Y),V=KM($,K),M=Y;try{M=V.parse(H,B)}catch(_){let D=_ instanceof Error?_.message:String(_);if(!V.error)V.error=new F1(V,D)}if(V.range=new W1(Y,M),M<=Y){if(!V.error)V.error=Error("Node#parse consumed no characters");V.error.parseEnd=M,V.error.source=V,V.range.end=Y+1}if(H.nodeStartsCollection(V)){if(!V.error&&!H.atLineStart&&H.parent.type===x.DOCUMENT)V.error=new F1(V,"Block collection must not have preceding content here (e.g. directives-end indicator)");let _=new t7(V);return M=_.parse(new o7(H),M),_.range=new W1(Y,M),_}return V}),this.atLineStart=X!=null?X:Z.atLineStart||!1,this.inCollection=J!=null?J:Z.inCollection||!1,this.inFlow=G!=null?G:Z.inFlow||!1,this.indent=Q!=null?Q:Z.indent,this.lineStart=U!=null?U:Z.lineStart,this.parent=W!=null?W:Z.parent||{},this.root=Z.root,this.src=Z.src}nodeStartsCollection(Z){let{inCollection:X,inFlow:J,src:G}=this;if(X||J)return!1;if(Z instanceof S6)return!0;let Q=Z.range.end;if(G[Q]===`
38
+ `)Q=M4.endOfLine(G,X,J);if(this.valueRange=new W1(X,Q),Q=u.endOfWhiteSpace(G,Q),Q=this.parseComment(Q),!this.hasComment||this.valueRange.isEmpty())Q=this.parseBlockValue(Q);return Q}}});function V9(Z){let X=Z;while(X instanceof S6)X=X.node;if(!(X instanceof t7))return null;let J=X.items.length,G=-1;for(let W=J-1;W>=0;--W){let q=X.items[W];if(q.type===x.COMMENT){let{indent:Y,lineStart:H}=q.context;if(Y>0&&q.range.start>=H+Y)break;G=W}else if(q.type===x.BLANK_LINE)G=W;else break}if(G===-1)return null;let Q=X.items.splice(G,J-G),U=Q[0].range.start;while(!0){if(X.range.end=U,X.valueRange&&X.valueRange.end>U)X.valueRange.end=U;if(X===Z)break;X=X.context.parent}return Q}function zM(Z,X){switch(Z){case x.ALIAS:return new cQ(Z,X);case x.BLOCK_FOLDED:case x.BLOCK_LITERAL:return new nQ(Z,X);case x.FLOW_MAP:case x.FLOW_SEQ:return new aQ(Z,X);case x.MAP_KEY:case x.MAP_VALUE:case x.SEQ_ITEM:return new S6(Z,X);case x.COMMENT:case x.PLAIN:return new M4(Z,X);case x.QUOTE_DOUBLE:return new B9(Z,X);case x.QUOTE_SINGLE:return new F9(Z,X);default:return null}}class o7{static parseType(Z,X,J){switch(Z[X]){case"*":return x.ALIAS;case">":return x.BLOCK_FOLDED;case"|":return x.BLOCK_LITERAL;case"{":return x.FLOW_MAP;case"[":return x.FLOW_SEQ;case"?":return!J&&u.atBlank(Z,X+1,!0)?x.MAP_KEY:x.PLAIN;case":":return!J&&u.atBlank(Z,X+1,!0)?x.MAP_VALUE:x.PLAIN;case"-":return!J&&u.atBlank(Z,X+1,!0)?x.SEQ_ITEM:x.PLAIN;case'"':return x.QUOTE_DOUBLE;case"'":return x.QUOTE_SINGLE;default:return x.PLAIN}}constructor(Z={},{atLineStart:X,inCollection:J,inFlow:G,indent:Q,lineStart:U,parent:W}={}){M1(this,"parseNode",(q,Y)=>{if(u.atDocumentBoundary(this.src,Y))return null;let H=new o7(this,q),{props:K,type:$,valueStart:B}=H.parseProps(Y),V=zM($,K),M=Y;try{M=V.parse(H,B)}catch(_){let D=_ instanceof Error?_.message:String(_);if(!V.error)V.error=new F1(V,D)}if(V.range=new W1(Y,M),M<=Y){if(!V.error)V.error=Error("Node#parse consumed no characters");V.error.parseEnd=M,V.error.source=V,V.range.end=Y+1}if(H.nodeStartsCollection(V)){if(!V.error&&!H.atLineStart&&H.parent.type===x.DOCUMENT)V.error=new F1(V,"Block collection must not have preceding content here (e.g. directives-end indicator)");let _=new t7(V);return M=_.parse(new o7(H),M),_.range=new W1(Y,M),_}return V}),this.atLineStart=X!=null?X:Z.atLineStart||!1,this.inCollection=J!=null?J:Z.inCollection||!1,this.inFlow=G!=null?G:Z.inFlow||!1,this.indent=Q!=null?Q:Z.indent,this.lineStart=U!=null?U:Z.lineStart,this.parent=W!=null?W:Z.parent||{},this.root=Z.root,this.src=Z.src}nodeStartsCollection(Z){let{inCollection:X,inFlow:J,src:G}=this;if(X||J)return!1;if(Z instanceof S6)return!0;let Q=Z.range.end;if(G[Q]===`
39
39
  `||G[Q-1]===`
40
40
  `)return!1;return Q=u.endOfWhiteSpace(G,Q),G[Q]===":"}parseProps(Z){let{inFlow:X,parent:J,src:G}=this,Q=[],U=!1;Z=this.atLineStart?u.endOfIndent(G,Z):u.endOfWhiteSpace(G,Z);let W=G[Z];while(W===z1.ANCHOR||W===z1.COMMENT||W===z1.TAG||W===`
41
41
  `){if(W===`
42
42
  `){let Y=Z,H;do H=Y+1,Y=u.endOfIndent(G,H);while(G[Y]===`
43
43
  `);let K=Y-(H+this.indent),$=J.type===x.SEQ_ITEM&&J.context.atLineStart;if(G[Y]!=="#"&&!u.nextNodeIsIndented(G[Y],K,!$))break;this.atLineStart=!0,this.lineStart=H,U=!1,Z=Y}else if(W===z1.COMMENT){let Y=u.endOfLine(G,Z+1);Q.push(new W1(Z,Y)),Z=Y}else{let Y=u.endOfIdentifier(G,Z+1);if(W===z1.TAG&&G[Y]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(G.slice(Z+1,Y+13)))Y=u.endOfIdentifier(G,Y+5);Q.push(new W1(Z,Y)),U=!0,Z=u.endOfWhiteSpace(G,Y)}W=G[Z]}if(U&&W===":"&&u.atBlank(G,Z+1,!0))Z-=1;let q=o7.parseType(G,Z,X);return{props:Q,type:q,valueStart:Z}}}function b6(Z){let X=[];if(Z.indexOf("\r")!==-1)Z=Z.replace(/\r\n?/g,(Q,U)=>{if(Q.length>1)X.push(U);return`
44
44
  `});let J=[],G=0;do{let Q=new E6,U=new o7({src:Z});G=Q.parse(U,G),J.push(Q)}while(G<Z.length);return J.setOrigRanges=()=>{if(X.length===0)return!1;for(let U=1;U<X.length;++U)X[U]-=U;let Q=0;for(let U=0;U<J.length;++U)Q=J[U].setOrigRanges(X,Q);return X.splice(0,X.length),!0},J.toString=()=>J.join(`...
45
- `),J}var U7,S6,Q7,t7,dQ,E6,rQ,n0,cQ,nQ,B9,F9;var aQ=C(()=>{G7();U7=class U7 extends u{constructor(){super(x.BLANK_LINE)}get includesTrailingLines(){return!0}parse(Z,X){return this.context=Z,this.range=new W1(X,X+1),X+1}};S6=class S6 extends u{constructor(Z,X){super(Z,X);this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(Z,X){this.context=Z;let{parseNode:J,src:G}=Z,{atLineStart:Q,lineStart:U}=Z;if(!Q&&this.type===x.SEQ_ITEM)this.error=new s(this,"Sequence items must not have preceding content on the same line");let W=Q?X-U:Z.indent,q=u.endOfWhiteSpace(G,X+1),Y=G[q],H=Y==="#",K=[],$=null;while(Y===`
45
+ `),J}var U7,S6,Q7,t7,rQ,E6,cQ,n0,nQ,aQ,B9,F9;var sQ=C(()=>{G7();U7=class U7 extends u{constructor(){super(x.BLANK_LINE)}get includesTrailingLines(){return!0}parse(Z,X){return this.context=Z,this.range=new W1(X,X+1),X+1}};S6=class S6 extends u{constructor(Z,X){super(Z,X);this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(Z,X){this.context=Z;let{parseNode:J,src:G}=Z,{atLineStart:Q,lineStart:U}=Z;if(!Q&&this.type===x.SEQ_ITEM)this.error=new s(this,"Sequence items must not have preceding content on the same line");let W=Q?X-U:Z.indent,q=u.endOfWhiteSpace(G,X+1),Y=G[q],H=Y==="#",K=[],$=null;while(Y===`
46
46
  `||Y==="#"){if(Y==="#"){let V=u.endOfLine(G,q+1);K.push(new W1(q,V)),q=V}else{Q=!0,U=q+1;let V=u.endOfWhiteSpace(G,U);if(G[V]===`
47
47
  `&&K.length===0)$=new U7,U=$.parse({src:G},U);q=u.endOfIndent(G,U)}Y=G[q]}if(u.nextNodeIsIndented(Y,q-(U+W),this.type!==x.SEQ_ITEM))this.node=J({atLineStart:Q,inCollection:!1,indent:W,lineStart:U,parent:this},q);else if(Y&&U>X+1)q=U-1;if(this.node){if($){let V=Z.parent.items||Z.parent.contents;if(V)V.push($)}if(K.length)Array.prototype.push.apply(this.props,K);q=this.node.range.end}else if(H){let V=K[0];this.props.push(V),q=V.end}else q=u.endOfLine(G,X+1);let B=this.node?this.node.valueRange.end:q;return this.valueRange=new W1(X,B),q}setOrigRanges(Z,X){return X=super.setOrigRanges(Z,X),this.node?this.node.setOrigRanges(Z,X):X}toString(){let{context:{src:Z},node:X,range:J,value:G}=this;if(G!=null)return G;let Q=X?Z.slice(J.start,X.range.start)+String(X):Z.slice(J.start,J.end);return u.addStringTerminator(Z,J.end,Q)}};Q7=class Q7 extends u{constructor(){super(x.COMMENT)}parse(Z,X){this.context=Z;let J=this.parseComment(X);return this.range=new W1(X,J),J}};t7=class t7 extends u{static nextContentHasIndent(Z,X,J){let G=u.endOfLine(Z,X)+1;X=u.endOfWhiteSpace(Z,G);let Q=Z[X];if(!Q)return!1;if(X>=G+J)return!0;if(Q!=="#"&&Q!==`
48
48
  `)return!1;return t7.nextContentHasIndent(Z,X,J)}constructor(Z){super(Z.type===x.SEQ_ITEM?x.SEQ:x.MAP);for(let J=Z.props.length-1;J>=0;--J)if(Z.props[J].start<Z.context.lineStart){this.props=Z.props.slice(0,J+1),Z.props=Z.props.slice(J+1);let G=Z.props[0]||Z.valueRange;Z.range.start=G.start;break}this.items=[Z];let X=V9(Z);if(X)Array.prototype.push.apply(this.items,X)}get includesTrailingLines(){return this.items.length>0}parse(Z,X){this.context=Z;let{parseNode:J,src:G}=Z,Q=u.startOfLine(G,X),U=this.items[0];U.context.parent=this,this.valueRange=W1.copy(U.valueRange);let W=U.range.start-U.context.lineStart,q=X;q=u.normalizeOffset(G,q);let Y=G[q],H=u.endOfWhiteSpace(G,Q)===q,K=!1;while(Y){while(Y===`
@@ -50,16 +50,16 @@ ${G}
50
50
  `&&!K){let V=new U7;if(q=V.parse({src:G},q),this.valueRange.end=q,q>=G.length){Y=null;break}this.items.push(V),q-=1}else if(Y==="#"){if(q<Q+W&&!t7.nextContentHasIndent(G,q,W))return q;let V=new Q7;if(q=V.parse({indent:W,lineStart:Q,src:G},q),this.items.push(V),this.valueRange.end=q,q>=G.length){Y=null;break}}if(Q=q+1,q=u.endOfIndent(G,Q),u.atBlank(G,q)){let V=u.endOfWhiteSpace(G,q),M=G[V];if(!M||M===`
51
51
  `||M==="#")q=V}Y=G[q],H=!0}if(!Y)break;if(q!==Q+W&&(H||Y!==":")){if(q<Q+W){if(Q>X)q=Q;break}else if(!this.error)this.error=new F1(this,"All collection items must start at the same column")}if(U.type===x.SEQ_ITEM){if(Y!=="-"){if(Q>X)q=Q;break}}else if(Y==="-"&&!this.error){let V=G[q+1];if(!V||V===`
52
52
  `||V==="\t"||V===" ")this.error=new F1(this,"A collection cannot be both a mapping and a sequence")}let $=J({atLineStart:H,inCollection:!0,indent:W,lineStart:Q,parent:this},q);if(!$)return q;if(this.items.push($),this.valueRange.end=$.valueRange.end,q=u.normalizeOffset(G,$.range.end),Y=G[q],H=!1,K=$.includesTrailingLines,Y){let V=q-1,M=G[V];while(M===" "||M==="\t")M=G[--V];if(M===`
53
- `)Q=V+1,H=!0}let B=V9($);if(B)Array.prototype.push.apply(this.items,B)}return q}setOrigRanges(Z,X){return X=super.setOrigRanges(Z,X),this.items.forEach((J)=>{X=J.setOrigRanges(Z,X)}),X}toString(){let{context:{src:Z},items:X,range:J,value:G}=this;if(G!=null)return G;let Q=Z.slice(J.start,X[0].range.start)+String(X[0]);for(let U=1;U<X.length;++U){let W=X[U],{atLineStart:q,indent:Y}=W.context;if(q)for(let H=0;H<Y;++H)Q+=" ";Q+=String(W)}return u.addStringTerminator(Z,J.end,Q)}};dQ=class dQ extends u{constructor(){super(x.DIRECTIVE);this.name=null}get parameters(){let Z=this.rawValue;return Z?Z.trim().split(/[ \t]+/):[]}parseName(Z){let{src:X}=this.context,J=Z,G=X[J];while(G&&G!==`
53
+ `)Q=V+1,H=!0}let B=V9($);if(B)Array.prototype.push.apply(this.items,B)}return q}setOrigRanges(Z,X){return X=super.setOrigRanges(Z,X),this.items.forEach((J)=>{X=J.setOrigRanges(Z,X)}),X}toString(){let{context:{src:Z},items:X,range:J,value:G}=this;if(G!=null)return G;let Q=Z.slice(J.start,X[0].range.start)+String(X[0]);for(let U=1;U<X.length;++U){let W=X[U],{atLineStart:q,indent:Y}=W.context;if(q)for(let H=0;H<Y;++H)Q+=" ";Q+=String(W)}return u.addStringTerminator(Z,J.end,Q)}};rQ=class rQ extends u{constructor(){super(x.DIRECTIVE);this.name=null}get parameters(){let Z=this.rawValue;return Z?Z.trim().split(/[ \t]+/):[]}parseName(Z){let{src:X}=this.context,J=Z,G=X[J];while(G&&G!==`
54
54
  `&&G!=="\t"&&G!==" ")G=X[J+=1];return this.name=X.slice(Z,J),J}parseParameters(Z){let{src:X}=this.context,J=Z,G=X[J];while(G&&G!==`
55
55
  `&&G!=="#")G=X[J+=1];return this.valueRange=new W1(Z,J),J}parse(Z,X){this.context=Z;let J=this.parseName(X+1);return J=this.parseParameters(J),J=this.parseComment(J),this.range=new W1(X,J),J}};E6=class E6 extends u{static startCommentOrEndBlankLine(Z,X){let J=u.endOfWhiteSpace(Z,X),G=Z[J];return G==="#"||G===`
56
56
  `?J:X}constructor(){super(x.DOCUMENT);this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null}parseDirectives(Z){let{src:X}=this.context;this.directives=[];let J=!0,G=!1,Q=Z;while(!u.atDocumentBoundary(X,Q,z1.DIRECTIVES_END))switch(Q=E6.startCommentOrEndBlankLine(X,Q),X[Q]){case`
57
- `:if(J){let U=new U7;if(Q=U.parse({src:X},Q),Q<X.length)this.directives.push(U)}else Q+=1,J=!0;break;case"#":{let U=new Q7;Q=U.parse({src:X},Q),this.directives.push(U),J=!1}break;case"%":{let U=new dQ;Q=U.parse({parent:this,src:X},Q),this.directives.push(U),G=!0,J=!1}break;default:if(G)this.error=new s(this,"Missing directives-end indicator line");else if(this.directives.length>0)this.contents=this.directives,this.directives=[];return Q}if(X[Q])return this.directivesEndMarker=new W1(Q,Q+3),Q+3;if(G)this.error=new s(this,"Missing directives-end indicator line");else if(this.directives.length>0)this.contents=this.directives,this.directives=[];return Q}parseContents(Z){let{parseNode:X,src:J}=this.context;if(!this.contents)this.contents=[];let G=Z;while(J[G-1]==="-")G-=1;let Q=u.endOfWhiteSpace(J,Z),U=G===Z;this.valueRange=new W1(Q);while(!u.atDocumentBoundary(J,Q,z1.DOCUMENT_END)){switch(J[Q]){case`
57
+ `:if(J){let U=new U7;if(Q=U.parse({src:X},Q),Q<X.length)this.directives.push(U)}else Q+=1,J=!0;break;case"#":{let U=new Q7;Q=U.parse({src:X},Q),this.directives.push(U),J=!1}break;case"%":{let U=new rQ;Q=U.parse({parent:this,src:X},Q),this.directives.push(U),G=!0,J=!1}break;default:if(G)this.error=new s(this,"Missing directives-end indicator line");else if(this.directives.length>0)this.contents=this.directives,this.directives=[];return Q}if(X[Q])return this.directivesEndMarker=new W1(Q,Q+3),Q+3;if(G)this.error=new s(this,"Missing directives-end indicator line");else if(this.directives.length>0)this.contents=this.directives,this.directives=[];return Q}parseContents(Z){let{parseNode:X,src:J}=this.context;if(!this.contents)this.contents=[];let G=Z;while(J[G-1]==="-")G-=1;let Q=u.endOfWhiteSpace(J,Z),U=G===Z;this.valueRange=new W1(Q);while(!u.atDocumentBoundary(J,Q,z1.DOCUMENT_END)){switch(J[Q]){case`
58
58
  `:if(U){let W=new U7;if(Q=W.parse({src:J},Q),Q<J.length)this.contents.push(W)}else Q+=1,U=!0;G=Q;break;case"#":{let W=new Q7;Q=W.parse({src:J},Q),this.contents.push(W),U=!1}break;default:{let W=u.endOfIndent(J,Q),Y=X({atLineStart:U,indent:-1,inFlow:!1,inCollection:!1,lineStart:G,parent:this},W);if(!Y)return this.valueRange.end=W;this.contents.push(Y),Q=Y.range.end,U=!1;let H=V9(Y);if(H)Array.prototype.push.apply(this.contents,H)}}Q=E6.startCommentOrEndBlankLine(J,Q)}if(this.valueRange.end=Q,J[Q]){if(this.documentEndMarker=new W1(Q,Q+3),Q+=3,J[Q]){if(Q=u.endOfWhiteSpace(J,Q),J[Q]==="#"){let W=new Q7;Q=W.parse({src:J},Q),this.contents.push(W)}switch(J[Q]){case`
59
59
  `:Q+=1;break;case void 0:break;default:this.error=new F1(this,"Document end marker line cannot have a non-comment suffix")}}}return Q}parse(Z,X){Z.root=this,this.context=Z;let{src:J}=Z,G=J.charCodeAt(X)===65279?X+1:X;return G=this.parseDirectives(G),G=this.parseContents(G),G}setOrigRanges(Z,X){if(X=super.setOrigRanges(Z,X),this.directives.forEach((J)=>{X=J.setOrigRanges(Z,X)}),this.directivesEndMarker)X=this.directivesEndMarker.setOrigRange(Z,X);if(this.contents.forEach((J)=>{X=J.setOrigRanges(Z,X)}),this.documentEndMarker)X=this.documentEndMarker.setOrigRange(Z,X);return X}toString(){let{contents:Z,directives:X,value:J}=this;if(J!=null)return J;let G=X.join("");if(Z.length>0){if(X.length>0||Z[0].type===x.COMMENT)G+=`---
60
60
  `;G+=Z.join("")}if(G[G.length-1]!==`
61
61
  `)G+=`
62
- `;return G}};rQ=class rQ extends u{parse(Z,X){this.context=Z;let{src:J}=Z,G=u.endOfIdentifier(J,X+1);return this.valueRange=new W1(X+1,G),G=u.endOfWhiteSpace(J,G),G=this.parseComment(G),G}};n0={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};cQ=class cQ extends u{constructor(Z,X){super(Z,X);this.blockIndent=null,this.chomping=n0.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===n0.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:Z,end:X}=this.valueRange,{indent:J,src:G}=this.context;if(this.valueRange.isEmpty())return"";let Q=null,U=G[X-1];while(U===`
62
+ `;return G}};cQ=class cQ extends u{parse(Z,X){this.context=Z;let{src:J}=Z,G=u.endOfIdentifier(J,X+1);return this.valueRange=new W1(X+1,G),G=u.endOfWhiteSpace(J,G),G=this.parseComment(G),G}};n0={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};nQ=class nQ extends u{constructor(Z,X){super(Z,X);this.blockIndent=null,this.chomping=n0.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===n0.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:Z,end:X}=this.valueRange,{indent:J,src:G}=this.context;if(this.valueRange.isEmpty())return"";let Q=null,U=G[X-1];while(U===`
63
63
  `||U==="\t"||U===" "){if(X-=1,X<=Z)if(this.chomping===n0.KEEP)break;else return"";if(U===`
64
64
  `)Q=X;U=G[X-1]}let W=X+1;if(Q)if(this.chomping===n0.KEEP)W=Q,X=this.valueRange.end;else X=Q;let q=J+this.blockIndent,Y=this.type===x.BLOCK_FOLDED,H=!0,K="",$="",B=!1;for(let V=Z;V<X;++V){for(let _=0;_<q;++_){if(G[V]!==" ")break;V+=1}let M=G[V];if(M===`
65
65
  `)if($===`
@@ -75,7 +75,7 @@ ${G}
75
75
  `;q=J[Q]){if(Q+=1,u.atDocumentBoundary(J,Q))break;let Y=u.endOfBlockIndent(J,X,Q);if(Y===null)break;let H=J[Y],K=Y-(Q+X);if(!this.blockIndent){if(J[Y]!==`
76
76
  `){if(K<W)this.error=new s(this,"Block scalars with more-indented leading empty lines must use an explicit indentation indicator");this.blockIndent=K}else if(K>W)W=K}else if(H&&H!==`
77
77
  `&&K<this.blockIndent){if(J[Y]==="#")break;if(!this.error){let B=`Block scalars must not be less indented than their ${G?"explicit indentation indicator":"first line"}`;this.error=new s(this,B)}}if(J[Y]===`
78
- `)Q=Y;else Q=U=u.endOfLine(J,Y)}if(this.chomping!==n0.KEEP)Q=J[U]?U+1:U;return this.valueRange=new W1(Z+1,Q),Q}parse(Z,X){this.context=Z;let{src:J}=Z,G=this.parseBlockHeader(X);return G=u.endOfWhiteSpace(J,G),G=this.parseComment(G),G=this.parseBlockValue(G),G}setOrigRanges(Z,X){return X=super.setOrigRanges(Z,X),this.header?this.header.setOrigRange(Z,X):X}};nQ=class nQ extends u{constructor(Z,X){super(Z,X);this.items=null}prevNodeIsJsonLike(Z=this.items.length){let X=this.items[Z-1];return!!X&&(X.jsonLike||X.type===x.COMMENT&&this.prevNodeIsJsonLike(Z-1))}parse(Z,X){this.context=Z;let{parseNode:J,src:G}=Z,{indent:Q,lineStart:U}=Z,W=G[X];this.items=[{char:W,offset:X}];let q=u.endOfWhiteSpace(G,X+1);W=G[q];while(W&&W!=="]"&&W!=="}"){switch(W){case`
78
+ `)Q=Y;else Q=U=u.endOfLine(J,Y)}if(this.chomping!==n0.KEEP)Q=J[U]?U+1:U;return this.valueRange=new W1(Z+1,Q),Q}parse(Z,X){this.context=Z;let{src:J}=Z,G=this.parseBlockHeader(X);return G=u.endOfWhiteSpace(J,G),G=this.parseComment(G),G=this.parseBlockValue(G),G}setOrigRanges(Z,X){return X=super.setOrigRanges(Z,X),this.header?this.header.setOrigRange(Z,X):X}};aQ=class aQ extends u{constructor(Z,X){super(Z,X);this.items=null}prevNodeIsJsonLike(Z=this.items.length){let X=this.items[Z-1];return!!X&&(X.jsonLike||X.type===x.COMMENT&&this.prevNodeIsJsonLike(Z-1))}parse(Z,X){this.context=Z;let{parseNode:J,src:G}=Z,{indent:Q,lineStart:U}=Z,W=G[X];this.items=[{char:W,offset:X}];let q=u.endOfWhiteSpace(G,X+1);W=G[q];while(W&&W!=="]"&&W!=="}"){switch(W){case`
79
79
  `:{U=q+1;let Y=u.endOfWhiteSpace(G,U);if(G[Y]===`
80
80
  `){let H=new U7;U=H.parse({src:G},U),this.items.push(H)}if(q=u.endOfIndent(G,U),q<=U+Q){if(W=G[q],q<U+Q||W!=="]"&&W!=="}")this.error=new s(this,"Insufficient indentation in flow collection")}}break;case",":this.items.push({char:W,offset:q}),q+=1;break;case"#":{let Y=new Q7;q=Y.parse({src:G},q),this.items.push(Y)}break;case"?":case":":{let Y=G[q+1];if(Y===`
81
81
  `||Y==="\t"||Y===" "||Y===","||W===":"&&this.prevNodeIsJsonLike()){this.items.push({char:W,offset:q}),q+=1;break}}default:{let Y=J({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:U,parent:this},q);if(!Y)return this.valueRange=new W1(X,q),q;this.items.push(Y),q=u.normalizeOffset(G,Y.range.end)}}q=u.endOfWhiteSpace(G,q),W=G[q]}if(this.valueRange=new W1(X,q+1),W)this.items.push({char:W,offset:q}),q=u.endOfWhiteSpace(G,q+1),q=this.parseComment(q);return q}setOrigRanges(Z,X){return X=super.setOrigRanges(Z,X),this.items.forEach((J)=>{if(J instanceof u)X=J.setOrigRanges(Z,X);else if(Z.length===0)J.origOffset=J.offset;else{let G=X;while(G<Z.length)if(Z[G]>J.offset)break;else++G;J.origOffset=J.offset+G,X=G}}),X}toString(){let{context:{src:Z},items:X,range:J,value:G}=this;if(G!=null)return G;let Q=X.filter((q)=>q instanceof u),U="",W=J.start;return Q.forEach((q)=>{let Y=Z.slice(W,q.range.start);if(W=q.range.end,U+=Y+String(q),U[U.length-1]===`
@@ -87,133 +87,129 @@ ${G}
87
87
  `:while(Q[W+1]===" "||Q[W+1]==="\t")W+=1;break;default:Z.push(new F1(this,`Invalid escape sequence ${Q.substr(W-1,2)}`)),U+="\\"+Q[W]}else if(q===" "||q==="\t"){let Y=W,H=Q[W+1];while(H===" "||H==="\t")W+=1,H=Q[W+1];if(H!==`
88
88
  `)U+=W>Y?Q.slice(Y,W+1):q}else U+=q}return Z.length>0?{errors:Z,str:U}:U}parseCharCode(Z,X,J){let{src:G}=this.context,Q=G.substr(Z,X),W=Q.length===X&&/^[0-9a-fA-F]+$/.test(Q)?parseInt(Q,16):NaN;if(isNaN(W))return J.push(new F1(this,`Invalid escape sequence ${G.substr(Z-2,X+2)}`)),G.substr(Z-2,X+2);return String.fromCodePoint(W)}parse(Z,X){this.context=Z;let{src:J}=Z,G=B9.endOfQuote(J,X+1);return this.valueRange=new W1(X,G),G=u.endOfWhiteSpace(J,G),G=this.parseComment(G),G}};F9=class F9 extends u{static endOfQuote(Z,X){let J=Z[X];while(J)if(J==="'"){if(Z[X+1]!=="'")break;J=Z[X+=2]}else J=Z[X+=1];return X+1}get strValue(){if(!this.valueRange||!this.context)return null;let Z=[],{start:X,end:J}=this.valueRange,{indent:G,src:Q}=this.context;if(Q[J-1]!=="'")Z.push(new F1(this,"Missing closing 'quote"));let U="";for(let W=X+1;W<J-1;++W){let q=Q[W];if(q===`
89
89
  `){if(u.atDocumentBoundary(Q,W+1))Z.push(new s(this,"Document boundary indicators are not allowed within string values"));let{fold:Y,offset:H,error:K}=u.foldNewline(Q,W,G);if(U+=Y,W=H,K)Z.push(new s(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if(q==="'"){if(U+=q,W+=1,Q[W]!=="'")Z.push(new F1(this,"Unescaped single quote? This should not happen."))}else if(q===" "||q==="\t"){let Y=W,H=Q[W+1];while(H===" "||H==="\t")W+=1,H=Q[W+1];if(H!==`
90
- `)U+=W>Y?Q.slice(Y,W+1):q}else U+=q}return Z.length>0?{errors:Z,str:U}:U}parse(Z,X){this.context=Z;let{src:J}=Z,G=F9.endOfQuote(J,X+1);return this.valueRange=new W1(X,G),G=u.endOfWhiteSpace(J,G),G=this.parseComment(G),G}}});function $M(Z,X,J){if(!J)return Z;return`#${J.replace(/[\s\S]^/gm,`$&${X}#`)}
90
+ `)U+=W>Y?Q.slice(Y,W+1):q}else U+=q}return Z.length>0?{errors:Z,str:U}:U}parse(Z,X){this.context=Z;let{src:J}=Z,G=F9.endOfQuote(J,X+1);return this.valueRange=new W1(X,G),G=u.endOfWhiteSpace(J,G),G=this.parseComment(G),G}}});function VM(Z,X,J){if(!J)return Z;return`#${J.replace(/[\s\S]^/gm,`$&${X}#`)}
91
91
  ${X}${Z}`}function D4(Z,X,J){return!J?Z:J.indexOf(`
92
92
  `)===-1?`${Z} #${J}`:`${Z}
93
- `+J.replace(/^/gm,`${X||""}#`)}class C1{}function c1(Z,X,J){if(Array.isArray(Z))return Z.map((G,Q)=>c1(G,String(Q),J));if(Z&&typeof Z.toJSON==="function"){let G=J&&J.anchors&&J.anchors.get(Z);if(G)J.onCreate=(U)=>{G.res=U,delete J.onCreate};let Q=Z.toJSON(X,J);if(G&&J.onCreate)J.onCreate(Q);return Q}if((!J||!J.keep)&&typeof Z==="bigint")return Number(Z);return Z}function sQ(Z,X,J){let G=J;for(let Q=X.length-1;Q>=0;--Q){let U=X[Q];if(Number.isInteger(U)&&U>=0){let W=[];W[U]=G,G=W}else{let W={};Object.defineProperty(W,U,{value:G,writable:!0,enumerable:!0,configurable:!0}),G=W}}return Z.createNode(G,!1)}function x6(Z){let X=Z instanceof G1?Z.value:Z;if(X&&typeof X==="string")X=Number(X);return Number.isInteger(X)&&X>=0?X:null}function a0(Z,X){let J=X instanceof G1?X.value:X;for(let G of Z)if(G instanceof X1){if(G.key===X||G.key===J)return G;if(G.key&&G.key.value===J)return G}return}function D9(Z,X,J){for(let{format:G,test:Q,resolve:U}of X)if(Q){let W=Z.match(Q);if(W){let q=U.apply(null,W);if(!(q instanceof G1))q=new G1(q);if(G)q.format=G;return q}}if(J)Z=J(Z);return new G1(Z)}function h6(Z,X,J,{indentAtStart:G,lineWidth:Q=80,minContentWidth:U=20,onFold:W,onOverflow:q}){if(!Q||Q<0)return Z;let Y=Math.max(1+U,1+Q-X.length);if(Z.length<=Y)return Z;let H=[],K={},$=Q-X.length;if(typeof G==="number")if(G>Q-Math.max(2,U))H.push(0);else $=Q-G;let B=void 0,V=void 0,M=!1,_=-1,D=-1,R=-1;if(J===M9){if(_=oQ(Z,_),_!==-1)$=_+Y}for(let L;L=Z[_+=1];){if(J===k6&&L==="\\"){switch(D=_,Z[_+1]){case"x":_+=3;break;case"u":_+=5;break;case"U":_+=9;break;default:_+=1}R=_}if(L===`
94
- `){if(J===M9)_=oQ(Z,_);$=_+Y,B=void 0}else{if(L===" "&&V&&V!==" "&&V!==`
93
+ `+J.replace(/^/gm,`${X||""}#`)}class C1{}function c1(Z,X,J){if(Array.isArray(Z))return Z.map((G,Q)=>c1(G,String(Q),J));if(Z&&typeof Z.toJSON==="function"){let G=J&&J.anchors&&J.anchors.get(Z);if(G)J.onCreate=(U)=>{G.res=U,delete J.onCreate};let Q=Z.toJSON(X,J);if(G&&J.onCreate)J.onCreate(Q);return Q}if((!J||!J.keep)&&typeof Z==="bigint")return Number(Z);return Z}function oQ(Z,X,J){let G=J;for(let Q=X.length-1;Q>=0;--Q){let U=X[Q];if(Number.isInteger(U)&&U>=0){let W=[];W[U]=G,G=W}else{let W={};Object.defineProperty(W,U,{value:G,writable:!0,enumerable:!0,configurable:!0}),G=W}}return Z.createNode(G,!1)}function x6(Z){let X=Z instanceof G1?Z.value:Z;if(X&&typeof X==="string")X=Number(X);return Number.isInteger(X)&&X>=0?X:null}function a0(Z,X){let J=X instanceof G1?X.value:X;for(let G of Z)if(G instanceof X1){if(G.key===X||G.key===J)return G;if(G.key&&G.key.value===J)return G}return}function D9(Z,X,J){for(let{format:G,test:Q,resolve:U}of X)if(Q){let W=Z.match(Q);if(W){let q=U.apply(null,W);if(!(q instanceof G1))q=new G1(q);if(G)q.format=G;return q}}if(J)Z=J(Z);return new G1(Z)}function h6(Z,X,J,{indentAtStart:G,lineWidth:Q=80,minContentWidth:U=20,onFold:W,onOverflow:q}){if(!Q||Q<0)return Z;let Y=Math.max(1+U,1+Q-X.length);if(Z.length<=Y)return Z;let H=[],K={},$=Q-X.length;if(typeof G==="number")if(G>Q-Math.max(2,U))H.push(0);else $=Q-G;let B=void 0,V=void 0,M=!1,_=-1,D=-1,R=-1;if(J===M9){if(_=tQ(Z,_),_!==-1)$=_+Y}for(let L;L=Z[_+=1];){if(J===k6&&L==="\\"){switch(D=_,Z[_+1]){case"x":_+=3;break;case"u":_+=5;break;case"U":_+=9;break;default:_+=1}R=_}if(L===`
94
+ `){if(J===M9)_=tQ(Z,_);$=_+Y,B=void 0}else{if(L===" "&&V&&V!==" "&&V!==`
95
95
  `&&V!=="\t"){let E=Z[_+1];if(E&&E!==" "&&E!==`
96
96
  `&&E!=="\t")B=_}if(_>=$)if(B)H.push(B),$=B+Y,B=void 0;else if(J===k6){while(V===" "||V==="\t")V=L,L=Z[_+=1],M=!0;let E=_>R+1?_-2:D-1;if(K[E])return Z;H.push(E),K[E]=!0,$=E+Y,B=void 0}else M=!0}V=L}if(M&&q)q();if(H.length===0)return Z;if(W)W();let N=Z.slice(0,H[0]);for(let L=0;L<H.length;++L){let E=H[L],m=H[L+1]||Z.length;if(E===0)N=`
97
97
  ${X}${Z.slice(0,m)}`;else{if(J===k6&&K[E])N+=`${Z[E]}\\`;N+=`
98
- ${X}${Z.slice(E+1,m)}`}}return N}function VM(Z,X,J){if(!X||X<0)return!1;let G=X-J,Q=Z.length;if(Q<=G)return!1;for(let U=0,W=0;U<Q;++U)if(Z[U]===`
98
+ ${X}${Z.slice(E+1,m)}`}}return N}function FM(Z,X,J){if(!X||X<0)return!1;let G=X-J,Q=Z.length;if(Q<=G)return!1;for(let U=0,W=0;U<Q;++U)if(Z[U]===`
99
99
  `){if(U-W>G)return!0;if(W=U+1,Q-W<=G)return!1}return!0}function _4(Z,X){let{implicitKey:J}=X,{jsonEncoding:G,minMultiLineLength:Q}=Q0.doubleQuoted,U=JSON.stringify(Z);if(G)return U;let W=X.indent||(m6(Z)?" ":""),q="",Y=0;for(let H=0,K=U[H];K;K=U[++H]){if(K===" "&&U[H+1]==="\\"&&U[H+2]==="n")q+=U.slice(Y,H)+"\\ ",H+=1,Y=H,K="\\";if(K==="\\")switch(U[H+1]){case"u":{q+=U.slice(Y,H);let $=U.substr(H+2,4);switch($){case"0000":q+="\\0";break;case"0007":q+="\\a";break;case"000b":q+="\\v";break;case"001b":q+="\\e";break;case"0085":q+="\\N";break;case"00a0":q+="\\_";break;case"2028":q+="\\L";break;case"2029":q+="\\P";break;default:if($.substr(0,2)==="00")q+="\\x"+$.substr(2);else q+=U.substr(H,6)}H+=5,Y=H+1}break;case"n":if(J||U[H+2]==='"'||U.length<Q)H+=1;else{q+=U.slice(Y,H)+`
100
100
 
101
101
  `;while(U[H+2]==="\\"&&U[H+3]==="n"&&U[H+4]!=='"')q+=`
102
- `,H+=2;if(q+=W,U[H+2]===" ")q+="\\";H+=1,Y=H+1}break;default:H+=1}}return q=Y?q+U.slice(Y):U,J?q:h6(q,W,k6,_9(X))}function XU(Z,X){if(X.implicitKey){if(/\n/.test(Z))return _4(Z,X)}else if(/[ \t]\n|\n[ \t]/.test(Z))return _4(Z,X);let J=X.indent||(m6(Z)?" ":""),G="'"+Z.replace(/'/g,"''").replace(/\n+/g,`$&
103
- ${J}`)+"'";return X.implicitKey?G:h6(G,J,ZU,_9(X))}function y6({comment:Z,type:X,value:J},G,Q,U){if(/\n[\t ]+$/.test(J)||/^\s*$/.test(J))return _4(J,G);let W=G.indent||(G.forceBlockIndent||m6(J)?" ":""),q=W?"2":"1",Y=X===x.BLOCK_FOLDED?!1:X===x.BLOCK_LITERAL?!0:!VM(J,Q0.fold.lineWidth,W.length),H=Y?"|":">";if(!J)return H+`
102
+ `,H+=2;if(q+=W,U[H+2]===" ")q+="\\";H+=1,Y=H+1}break;default:H+=1}}return q=Y?q+U.slice(Y):U,J?q:h6(q,W,k6,_9(X))}function JU(Z,X){if(X.implicitKey){if(/\n/.test(Z))return _4(Z,X)}else if(/[ \t]\n|\n[ \t]/.test(Z))return _4(Z,X);let J=X.indent||(m6(Z)?" ":""),G="'"+Z.replace(/'/g,"''").replace(/\n+/g,`$&
103
+ ${J}`)+"'";return X.implicitKey?G:h6(G,J,XU,_9(X))}function y6({comment:Z,type:X,value:J},G,Q,U){if(/\n[\t ]+$/.test(J)||/^\s*$/.test(J))return _4(J,G);let W=G.indent||(G.forceBlockIndent||m6(J)?" ":""),q=W?"2":"1",Y=X===x.BLOCK_FOLDED?!1:X===x.BLOCK_LITERAL?!0:!FM(J,Q0.fold.lineWidth,W.length),H=Y?"|":">";if(!J)return H+`
104
104
  `;let K="",$="";if(J=J.replace(/[\n\t ]*$/,(V)=>{let M=V.indexOf(`
105
105
  `);if(M===-1)H+="-";else if(J===V||M!==V.length-1){if(H+="+",U)U()}return $=V.replace(/\n$/,""),""}).replace(/^[\n ]*/,(V)=>{if(V.indexOf(" ")!==-1)H+=q;let M=V.match(/ +$/);if(M)return K=V.slice(0,-M[0].length),M[0];else return K=V,""}),$)$=$.replace(/\n+(?!\n|$)/g,`$&${W}`);if(K)K=K.replace(/\n+/g,`$&${W}`);if(Z){if(H+=" #"+Z.replace(/ ?[\r\n]+/g," "),Q)Q()}if(!J)return`${H}${q}
106
106
  ${W}${$}`;if(Y)return J=J.replace(/\n+/g,`$&${W}`),`${H}
107
107
  ${W}${K}${J}${$}`;J=J.replace(/\n+/g,`
108
108
  $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${W}`);let B=h6(`${K}${J}${$}`,W,M9,Q0.fold);return`${H}
109
- ${W}${B}`}function BM(Z,X,J,G){let{comment:Q,type:U,value:W}=Z,{actualString:q,implicitKey:Y,indent:H,inFlow:K}=X;if(Y&&/[\n[\]{},]/.test(W)||K&&/[[\]{},]/.test(W))return _4(W,X);if(!W||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(W))return Y||K||W.indexOf(`
110
- `)===-1?W.indexOf('"')!==-1&&W.indexOf("'")===-1?XU(W,X):_4(W,X):y6(Z,X,J,G);if(!Y&&!K&&U!==x.PLAIN&&W.indexOf(`
109
+ ${W}${B}`}function MM(Z,X,J,G){let{comment:Q,type:U,value:W}=Z,{actualString:q,implicitKey:Y,indent:H,inFlow:K}=X;if(Y&&/[\n[\]{},]/.test(W)||K&&/[[\]{},]/.test(W))return _4(W,X);if(!W||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(W))return Y||K||W.indexOf(`
110
+ `)===-1?W.indexOf('"')!==-1&&W.indexOf("'")===-1?JU(W,X):_4(W,X):y6(Z,X,J,G);if(!Y&&!K&&U!==x.PLAIN&&W.indexOf(`
111
111
  `)!==-1)return y6(Z,X,J,G);if(H===""&&m6(W))return X.forceBlockIndent=!0,y6(Z,X,J,G);let $=W.replace(/\n+/g,`$&
112
- ${H}`);if(q){let{tags:V}=X.doc.schema;if(typeof D9($,V,V.scalarFallback).value!=="string")return _4(W,X)}let B=Y?$:h6($,H,ZU,_9(X));if(Q&&!K&&(B.indexOf(`
112
+ ${H}`);if(q){let{tags:V}=X.doc.schema;if(typeof D9($,V,V.scalarFallback).value!=="string")return _4(W,X)}let B=Y?$:h6($,H,XU,_9(X));if(Q&&!K&&(B.indexOf(`
113
113
  `)!==-1||Q.indexOf(`
114
- `)!==-1)){if(J)J();return $M(B,H,Q)}return B}function q7(Z,X,J,G){let{defaultType:Q}=Q0,{implicitKey:U,inFlow:W}=X,{type:q,value:Y}=Z;if(typeof Y!=="string")Y=String(Y),Z=Object.assign({},Z,{value:Y});let H=($)=>{switch($){case x.BLOCK_FOLDED:case x.BLOCK_LITERAL:return y6(Z,X,J,G);case x.QUOTE_DOUBLE:return _4(Y,X);case x.QUOTE_SINGLE:return XU(Y,X);case x.PLAIN:return BM(Z,X,J,G);default:return null}};if(q!==x.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(Y))q=x.QUOTE_DOUBLE;else if((U||W)&&(q===x.BLOCK_FOLDED||q===x.BLOCK_LITERAL))q=x.QUOTE_DOUBLE;let K=H(q);if(K===null){if(K=H(Q),K===null)throw Error(`Unsupported default string type ${Q}`)}return K}function W0({format:Z,minFractionDigits:X,tag:J,value:G}){if(typeof G==="bigint")return String(G);if(!isFinite(G))return isNaN(G)?".nan":G<0?"-.inf":".inf";let Q=JSON.stringify(G);if(!Z&&X&&(!J||J==="tag:yaml.org,2002:float")&&/^\d/.test(Q)){let U=Q.indexOf(".");if(U<0)U=Q.length,Q+=".";let W=X-(Q.length-U-1);while(W-- >0)Q+="0"}return Q}function JU(Z,X){let J,G;switch(X.type){case x.FLOW_MAP:J="}",G="flow map";break;case x.FLOW_SEQ:J="]",G="flow sequence";break;default:Z.push(new s(X,"Not a flow collection!?"));return}let Q;for(let U=X.items.length-1;U>=0;--U){let W=X.items[U];if(!W||W.type!==x.COMMENT){Q=W;break}}if(Q&&Q.char!==J){let U=`Expected ${G} to end with ${J}`,W;if(typeof Q.offset==="number")W=new s(X,U),W.offset=Q.offset+1;else if(W=new s(Q,U),Q.range&&Q.range.end)W.offset=Q.range.end-Q.range.start;Z.push(W)}}function GU(Z,X){let J=X.context.src[X.range.start-1];if(J!==`
115
- `&&J!=="\t"&&J!==" ")Z.push(new s(X,"Comments must be separated from other tokens by white space characters"))}function QU(Z,X){let J=String(X),G=J.substr(0,8)+"..."+J.substr(-8);return new s(Z,`The "${G}" key is too long`)}function UU(Z,X){for(let{afterKey:J,before:G,comment:Q}of X){let U=Z.items[G];if(!U){if(Q!==void 0)if(Z.comment)Z.comment+=`
114
+ `)!==-1)){if(J)J();return VM(B,H,Q)}return B}function q7(Z,X,J,G){let{defaultType:Q}=Q0,{implicitKey:U,inFlow:W}=X,{type:q,value:Y}=Z;if(typeof Y!=="string")Y=String(Y),Z=Object.assign({},Z,{value:Y});let H=($)=>{switch($){case x.BLOCK_FOLDED:case x.BLOCK_LITERAL:return y6(Z,X,J,G);case x.QUOTE_DOUBLE:return _4(Y,X);case x.QUOTE_SINGLE:return JU(Y,X);case x.PLAIN:return MM(Z,X,J,G);default:return null}};if(q!==x.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(Y))q=x.QUOTE_DOUBLE;else if((U||W)&&(q===x.BLOCK_FOLDED||q===x.BLOCK_LITERAL))q=x.QUOTE_DOUBLE;let K=H(q);if(K===null){if(K=H(Q),K===null)throw Error(`Unsupported default string type ${Q}`)}return K}function W0({format:Z,minFractionDigits:X,tag:J,value:G}){if(typeof G==="bigint")return String(G);if(!isFinite(G))return isNaN(G)?".nan":G<0?"-.inf":".inf";let Q=JSON.stringify(G);if(!Z&&X&&(!J||J==="tag:yaml.org,2002:float")&&/^\d/.test(Q)){let U=Q.indexOf(".");if(U<0)U=Q.length,Q+=".";let W=X-(Q.length-U-1);while(W-- >0)Q+="0"}return Q}function GU(Z,X){let J,G;switch(X.type){case x.FLOW_MAP:J="}",G="flow map";break;case x.FLOW_SEQ:J="]",G="flow sequence";break;default:Z.push(new s(X,"Not a flow collection!?"));return}let Q;for(let U=X.items.length-1;U>=0;--U){let W=X.items[U];if(!W||W.type!==x.COMMENT){Q=W;break}}if(Q&&Q.char!==J){let U=`Expected ${G} to end with ${J}`,W;if(typeof Q.offset==="number")W=new s(X,U),W.offset=Q.offset+1;else if(W=new s(Q,U),Q.range&&Q.range.end)W.offset=Q.range.end-Q.range.start;Z.push(W)}}function QU(Z,X){let J=X.context.src[X.range.start-1];if(J!==`
115
+ `&&J!=="\t"&&J!==" ")Z.push(new s(X,"Comments must be separated from other tokens by white space characters"))}function UU(Z,X){let J=String(X),G=J.substr(0,8)+"..."+J.substr(-8);return new s(Z,`The "${G}" key is too long`)}function WU(Z,X){for(let{afterKey:J,before:G,comment:Q}of X){let U=Z.items[G];if(!U){if(Q!==void 0)if(Z.comment)Z.comment+=`
116
116
  `+Q;else Z.comment=Q}else{if(J&&U.value)U=U.value;if(Q===void 0){if(J||!U.commentBefore)U.spaceBefore=!0}else if(U.commentBefore)U.commentBefore+=`
117
- `+Q;else U.commentBefore=Q}}}function O4(Z,X){let J=X.strValue;if(!J)return"";if(typeof J==="string")return J;return J.errors.forEach((G)=>{if(!G.source)G.source=X;Z.errors.push(G)}),J.str}function FM(Z,X){let{handle:J,suffix:G}=X.tag,Q=Z.tagPrefixes.find((U)=>U.handle===J);if(!Q){let U=Z.getDefaults().tagPrefixes;if(U)Q=U.find((W)=>W.handle===J);if(!Q)throw new s(X,`The ${J} tag handle is non-default and was not declared.`)}if(!G)throw new s(X,`The ${J} tag has no suffix.`);if(J==="!"&&(Z.version||Z.options.version)==="1.0"){if(G[0]==="^")return Z.warnings.push(new k0(X,"YAML 1.0 ^ tag expansion is not supported")),G;if(/[:/]/.test(G)){let U=G.match(/^([a-z0-9-]+)\/(.*)/i);return U?`tag:${U[1]}.yaml.org,2002:${U[2]}`:`tag:${G}`}}return Q.prefix+decodeURIComponent(G)}function MM(Z,X){let{tag:J,type:G}=X,Q=!1;if(J){let{handle:U,suffix:W,verbatim:q}=J;if(q){if(q!=="!"&&q!=="!!")return q;let Y=`Verbatim tags aren't resolved, so ${q} is invalid.`;Z.errors.push(new s(X,Y))}else if(U==="!"&&!W)Q=!0;else try{return FM(Z,X)}catch(Y){Z.errors.push(Y)}}switch(G){case x.BLOCK_FOLDED:case x.BLOCK_LITERAL:case x.QUOTE_DOUBLE:case x.QUOTE_SINGLE:return M0.STR;case x.FLOW_MAP:case x.MAP:return M0.MAP;case x.FLOW_SEQ:case x.SEQ:return M0.SEQ;case x.PLAIN:return Q?M0.STR:null;default:return null}}function tQ(Z,X,J){let{tags:G}=Z.schema,Q=[];for(let W of G)if(W.tag===J)if(W.test)Q.push(W);else{let q=W.resolve(Z,X);return q instanceof H1?q:new G1(q)}let U=O4(Z,X);if(typeof U==="string"&&Q.length>0)return D9(U,Q,G.scalarFallback);return null}function DM({type:Z}){switch(Z){case x.FLOW_MAP:case x.MAP:return M0.MAP;case x.FLOW_SEQ:case x.SEQ:return M0.SEQ;default:return M0.STR}}function _M(Z,X,J){try{let G=tQ(Z,X,J);if(G){if(J&&X.tag)G.tag=J;return G}}catch(G){if(G instanceof D0){if(!G.source)G.source=X;Z.errors.push(G)}else{let Q=G instanceof Error?G.message:String(G);Z.errors.push(new s(X,Q))}return null}try{let G=DM(X);if(!G)throw Error(`The tag ${J} is unavailable`);let Q=`The tag ${J} is unavailable, falling back to ${G}`;Z.warnings.push(new k0(X,Q));let U=tQ(Z,X,G);return U.tag=J,U}catch(G){let Q=new c0(X,G.message);return Q.stack=G.stack,Z.errors.push(Q),null}}function OM(Z,X){let J={before:[],after:[]},G=!1,Q=!1,U=RM(X.context.parent)?X.context.parent.props.concat(X.props):X.props;for(let{start:W,end:q}of U)switch(X.context.src[W]){case z1.COMMENT:{if(!X.commentHasRequiredWhitespace(W))Z.push(new s(X,"Comments must be separated from other tokens by white space characters"));let{header:Y,valueRange:H}=X;(H&&(W>H.start||Y&&W>Y.start)?J.after:J.before).push(X.context.src.slice(W+1,q));break}case z1.ANCHOR:if(G)Z.push(new s(X,"A node can have at most one anchor"));G=!0;break;case z1.TAG:if(Q)Z.push(new s(X,"A node can have at most one tag"));Q=!0;break}return{comments:J,hasAnchor:G,hasTag:Q}}function NM(Z,X){let{anchors:J,errors:G,schema:Q}=Z;if(X.type===x.ALIAS){let W=X.rawValue,q=J.getNode(W);if(!q){let H=`Aliased anchor not found: ${W}`;return G.push(new c0(X,H)),null}let Y=new n1(q);return J._cstAliases.push(Y),Y}let U=MM(Z,X);if(U)return _M(Z,X,U);if(X.type!==x.PLAIN){let W=`Failed to resolve ${X.type} node here`;return G.push(new F1(X,W)),null}try{let W=O4(Z,X);return D9(W,Q.tags,Q.tags.scalarFallback)}catch(W){if(!W.source)W.source=X;return G.push(W),null}}function y0(Z,X){if(!X)return null;if(X.error)Z.errors.push(X.error);let{comments:J,hasAnchor:G,hasTag:Q}=OM(Z.errors,X);if(G){let{anchors:W}=Z,q=X.anchor,Y=W.getNode(q);if(Y)W.map[W.newName(q)]=Y;W.map[q]=X}if(X.type===x.ALIAS&&(G||Q))Z.errors.push(new s(X,"An alias node must not specify any properties"));let U=NM(Z,X);if(U){if(U.range=[X.range.start,X.range.end],Z.options.keepCstNodes)U.cstNode=X;if(Z.options.keepNodeTypes)U.type=X.type;let W=J.before.join(`
117
+ `+Q;else U.commentBefore=Q}}}function O4(Z,X){let J=X.strValue;if(!J)return"";if(typeof J==="string")return J;return J.errors.forEach((G)=>{if(!G.source)G.source=X;Z.errors.push(G)}),J.str}function DM(Z,X){let{handle:J,suffix:G}=X.tag,Q=Z.tagPrefixes.find((U)=>U.handle===J);if(!Q){let U=Z.getDefaults().tagPrefixes;if(U)Q=U.find((W)=>W.handle===J);if(!Q)throw new s(X,`The ${J} tag handle is non-default and was not declared.`)}if(!G)throw new s(X,`The ${J} tag has no suffix.`);if(J==="!"&&(Z.version||Z.options.version)==="1.0"){if(G[0]==="^")return Z.warnings.push(new k0(X,"YAML 1.0 ^ tag expansion is not supported")),G;if(/[:/]/.test(G)){let U=G.match(/^([a-z0-9-]+)\/(.*)/i);return U?`tag:${U[1]}.yaml.org,2002:${U[2]}`:`tag:${G}`}}return Q.prefix+decodeURIComponent(G)}function _M(Z,X){let{tag:J,type:G}=X,Q=!1;if(J){let{handle:U,suffix:W,verbatim:q}=J;if(q){if(q!=="!"&&q!=="!!")return q;let Y=`Verbatim tags aren't resolved, so ${q} is invalid.`;Z.errors.push(new s(X,Y))}else if(U==="!"&&!W)Q=!0;else try{return DM(Z,X)}catch(Y){Z.errors.push(Y)}}switch(G){case x.BLOCK_FOLDED:case x.BLOCK_LITERAL:case x.QUOTE_DOUBLE:case x.QUOTE_SINGLE:return M0.STR;case x.FLOW_MAP:case x.MAP:return M0.MAP;case x.FLOW_SEQ:case x.SEQ:return M0.SEQ;case x.PLAIN:return Q?M0.STR:null;default:return null}}function eQ(Z,X,J){let{tags:G}=Z.schema,Q=[];for(let W of G)if(W.tag===J)if(W.test)Q.push(W);else{let q=W.resolve(Z,X);return q instanceof H1?q:new G1(q)}let U=O4(Z,X);if(typeof U==="string"&&Q.length>0)return D9(U,Q,G.scalarFallback);return null}function RM({type:Z}){switch(Z){case x.FLOW_MAP:case x.MAP:return M0.MAP;case x.FLOW_SEQ:case x.SEQ:return M0.SEQ;default:return M0.STR}}function OM(Z,X,J){try{let G=eQ(Z,X,J);if(G){if(J&&X.tag)G.tag=J;return G}}catch(G){if(G instanceof D0){if(!G.source)G.source=X;Z.errors.push(G)}else{let Q=G instanceof Error?G.message:String(G);Z.errors.push(new s(X,Q))}return null}try{let G=RM(X);if(!G)throw Error(`The tag ${J} is unavailable`);let Q=`The tag ${J} is unavailable, falling back to ${G}`;Z.warnings.push(new k0(X,Q));let U=eQ(Z,X,G);return U.tag=J,U}catch(G){let Q=new c0(X,G.message);return Q.stack=G.stack,Z.errors.push(Q),null}}function LM(Z,X){let J={before:[],after:[]},G=!1,Q=!1,U=NM(X.context.parent)?X.context.parent.props.concat(X.props):X.props;for(let{start:W,end:q}of U)switch(X.context.src[W]){case z1.COMMENT:{if(!X.commentHasRequiredWhitespace(W))Z.push(new s(X,"Comments must be separated from other tokens by white space characters"));let{header:Y,valueRange:H}=X;(H&&(W>H.start||Y&&W>Y.start)?J.after:J.before).push(X.context.src.slice(W+1,q));break}case z1.ANCHOR:if(G)Z.push(new s(X,"A node can have at most one anchor"));G=!0;break;case z1.TAG:if(Q)Z.push(new s(X,"A node can have at most one tag"));Q=!0;break}return{comments:J,hasAnchor:G,hasTag:Q}}function IM(Z,X){let{anchors:J,errors:G,schema:Q}=Z;if(X.type===x.ALIAS){let W=X.rawValue,q=J.getNode(W);if(!q){let H=`Aliased anchor not found: ${W}`;return G.push(new c0(X,H)),null}let Y=new n1(q);return J._cstAliases.push(Y),Y}let U=_M(Z,X);if(U)return OM(Z,X,U);if(X.type!==x.PLAIN){let W=`Failed to resolve ${X.type} node here`;return G.push(new F1(X,W)),null}try{let W=O4(Z,X);return D9(W,Q.tags,Q.tags.scalarFallback)}catch(W){if(!W.source)W.source=X;return G.push(W),null}}function y0(Z,X){if(!X)return null;if(X.error)Z.errors.push(X.error);let{comments:J,hasAnchor:G,hasTag:Q}=LM(Z.errors,X);if(G){let{anchors:W}=Z,q=X.anchor,Y=W.getNode(q);if(Y)W.map[W.newName(q)]=Y;W.map[q]=X}if(X.type===x.ALIAS&&(G||Q))Z.errors.push(new s(X,"An alias node must not specify any properties"));let U=IM(Z,X);if(U){if(U.range=[X.range.start,X.range.end],Z.options.keepCstNodes)U.cstNode=X;if(Z.options.keepNodeTypes)U.type=X.type;let W=J.before.join(`
118
118
  `);if(W)U.commentBefore=U.commentBefore?`${U.commentBefore}
119
119
  ${W}`:W;let q=J.after.join(`
120
120
  `);if(q)U.comment=U.comment?`${U.comment}
121
- ${q}`:q}return X.resolved=U}function u6(Z,X){if(X.type!==x.MAP&&X.type!==x.FLOW_MAP){let W=`A ${X.type} node cannot be resolved as a mapping`;return Z.errors.push(new F1(X,W)),null}let{comments:J,items:G}=X.type===x.FLOW_MAP?PM(Z,X):AM(Z,X),Q=new P1;Q.items=G,UU(Q,J);let U=!1;for(let W=0;W<G.length;++W){let{key:q}=G[W];if(q instanceof H1)U=!0;if(Z.schema.merge&&q&&q.value===eQ){G[W]=new v6(G[W]);let Y=G[W].value.items,H=null;if(Y.some((K)=>{if(K instanceof n1){let{type:$}=K.source;if($===x.MAP||$===x.FLOW_MAP)return!1;return H="Merge nodes aliases can only point to maps"}return H="Merge nodes can only have Alias nodes as values"}),H)Z.errors.push(new s(X,H))}else for(let Y=W+1;Y<G.length;++Y){let{key:H}=G[Y];if(q===H||q&&H&&Object.prototype.hasOwnProperty.call(q,"value")&&q.value===H.value){let K=`Map keys must be unique; "${q}" is repeated`;Z.errors.push(new s(X,K));break}}}if(U&&!Z.options.mapAsMap)Z.warnings.push(new k0(X,"Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this."));return X.resolved=Q,Q}function IM(Z,X){if(!LM(Z))return;let J=Z.getPropValue(0,z1.COMMENT,!0),G=!1,Q=X.value.commentBefore;if(Q&&Q.startsWith(J))X.value.commentBefore=Q.substr(J.length+1),G=!0;else{let U=X.value.comment;if(!Z.node&&U&&U.startsWith(J))X.value.comment=U.substr(J.length+1),G=!0}if(G)X.comment=J}function AM(Z,X){let J=[],G=[],Q=void 0,U=null;for(let W=0;W<X.items.length;++W){let q=X.items[W];switch(q.type){case x.BLANK_LINE:J.push({afterKey:!!Q,before:G.length});break;case x.COMMENT:J.push({afterKey:!!Q,before:G.length,comment:q.comment});break;case x.MAP_KEY:if(Q!==void 0)G.push(new X1(Q));if(q.error)Z.errors.push(q.error);Q=y0(Z,q.node),U=null;break;case x.MAP_VALUE:{if(Q===void 0)Q=null;if(q.error)Z.errors.push(q.error);if(!q.context.atLineStart&&q.node&&q.node.type===x.MAP&&!q.node.context.atLineStart)Z.errors.push(new s(q.node,"Nested mappings are not allowed in compact mappings"));let Y=q.node;if(!Y&&q.props.length>0){Y=new M4(x.PLAIN,[]),Y.context={parent:q,src:q.context.src};let K=q.range.start+1;if(Y.range={start:K,end:K},Y.valueRange={start:K,end:K},typeof q.range.origStart==="number"){let $=q.range.origStart+1;Y.range.origStart=Y.range.origEnd=$,Y.valueRange.origStart=Y.valueRange.origEnd=$}}let H=new X1(Q,y0(Z,Y));if(IM(q,H),G.push(H),Q&&typeof U==="number"){if(q.range.start>U+1024)Z.errors.push(QU(X,Q))}Q=void 0,U=null}break;default:if(Q!==void 0)G.push(new X1(Q));if(Q=y0(Z,q),U=q.range.start,q.error)Z.errors.push(q.error);Z:for(let Y=W+1;;++Y){let H=X.items[Y];switch(H&&H.type){case x.BLANK_LINE:case x.COMMENT:continue Z;case x.MAP_VALUE:break Z;default:{Z.errors.push(new s(q,"Implicit map keys need to be followed by map values"));break Z}}}if(q.valueRangeContainsNewline)Z.errors.push(new s(q,"Implicit map keys need to be on a single line"))}}if(Q!==void 0)G.push(new X1(Q));return{comments:J,items:G}}function PM(Z,X){let J=[],G=[],Q=void 0,U=!1,W="{";for(let q=0;q<X.items.length;++q){let Y=X.items[q];if(typeof Y.char==="string"){let{char:H,offset:K}=Y;if(H==="?"&&Q===void 0&&!U){U=!0,W=":";continue}if(H===":"){if(Q===void 0)Q=null;if(W===":"){W=",";continue}}else{if(U){if(Q===void 0&&H!==",")Q=null;U=!1}if(Q!==void 0){if(G.push(new X1(Q)),Q=void 0,H===","){W=":";continue}}}if(H==="}"){if(q===X.items.length-1)continue}else if(H===W){W=":";continue}let $=`Flow map contains an unexpected ${H}`,B=new F1(X,$);B.offset=K,Z.errors.push(B)}else if(Y.type===x.BLANK_LINE)J.push({afterKey:!!Q,before:G.length});else if(Y.type===x.COMMENT)GU(Z.errors,Y),J.push({afterKey:!!Q,before:G.length,comment:Y.comment});else if(Q===void 0){if(W===",")Z.errors.push(new s(Y,"Separator , missing in flow map"));Q=y0(Z,Y)}else{if(W!==",")Z.errors.push(new s(Y,"Indicator : missing in flow map entry"));G.push(new X1(Q,y0(Z,Y))),Q=void 0,U=!1}}if(JU(Z.errors,X),Q!==void 0)G.push(new X1(Q));return{comments:J,items:G}}function p6(Z,X){if(X.type!==x.SEQ&&X.type!==x.FLOW_SEQ){let U=`A ${X.type} node cannot be resolved as a sequence`;return Z.errors.push(new F1(X,U)),null}let{comments:J,items:G}=X.type===x.FLOW_SEQ?TM(Z,X):wM(Z,X),Q=new p1;if(Q.items=G,UU(Q,J),!Z.options.mapAsMap&&G.some((U)=>U instanceof X1&&U.key instanceof H1))Z.warnings.push(new k0(X,"Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this."));return X.resolved=Q,Q}function wM(Z,X){let J=[],G=[];for(let Q=0;Q<X.items.length;++Q){let U=X.items[Q];switch(U.type){case x.BLANK_LINE:J.push({before:G.length});break;case x.COMMENT:J.push({comment:U.comment,before:G.length});break;case x.SEQ_ITEM:if(U.error)Z.errors.push(U.error);if(G.push(y0(Z,U.node)),U.hasProps)Z.errors.push(new s(U,"Sequence items cannot have tags or anchors before the - indicator"));break;default:if(U.error)Z.errors.push(U.error);Z.errors.push(new F1(U,`Unexpected ${U.type} node in sequence`))}}return{comments:J,items:G}}function TM(Z,X){let J=[],G=[],Q=!1,U=void 0,W=null,q="[",Y=null;for(let H=0;H<X.items.length;++H){let K=X.items[H];if(typeof K.char==="string"){let{char:$,offset:B}=K;if($!==":"&&(Q||U!==void 0)){if(Q&&U===void 0)U=q?G.pop():null;G.push(new X1(U)),Q=!1,U=void 0,W=null}if($===q)q=null;else if(!q&&$==="?")Q=!0;else if(q!=="["&&$===":"&&U===void 0){if(q===","){if(U=G.pop(),U instanceof X1){let M=new s(X,"Chaining flow sequence pairs is invalid");M.offset=B,Z.errors.push(M)}if(!Q&&typeof W==="number"){let V=K.range?K.range.start:K.offset;if(V>W+1024)Z.errors.push(QU(X,U));let{src:M}=Y.context;for(let _=W;_<V;++_)if(M[_]===`
122
- `){Z.errors.push(new s(Y,"Implicit keys of flow sequence pairs need to be on a single line"));break}}}else U=null;W=null,Q=!1,q=null}else if(q==="["||$!=="]"||H<X.items.length-1){let V=`Flow sequence contains an unexpected ${$}`,M=new F1(X,V);M.offset=B,Z.errors.push(M)}}else if(K.type===x.BLANK_LINE)J.push({before:G.length});else if(K.type===x.COMMENT)GU(Z.errors,K),J.push({comment:K.comment,before:G.length});else{if(q){let B=`Expected a ${q} in flow sequence`;Z.errors.push(new s(K,B))}let $=y0(Z,K);if(U===void 0)G.push($),Y=K;else G.push(new X1(U,$)),U=void 0;W=K.range.start,q=","}}if(JU(Z.errors,X),U!==void 0)G.push(new X1(U));return{comments:J,items:G}}var G1,W7=(Z)=>Z==null||typeof Z==="object"&&Z[Symbol.iterator]().next().done,H1,p1,zM=(Z,X,J)=>{if(X===null)return"";if(typeof X!=="object")return String(X);if(Z instanceof C1&&J&&J.doc)return Z.toString({anchors:Object.create(null),doc:J.doc,indent:"",indentStep:J.indentStep,inFlow:!0,inStringifyKey:!0,stringify:J.stringify});return JSON.stringify(X)},X1,g6=(Z,X)=>{if(Z instanceof n1){let J=X.get(Z.source);return J.count*J.aliasCount}else if(Z instanceof H1){let J=0;for(let G of Z.items){let Q=g6(G,X);if(Q>J)J=Q}return J}else if(Z instanceof X1){let J=g6(Z.key,X),G=g6(Z.value,X);return Math.max(J,G)}return 1},n1,P1,eQ="<<",v6,R4,U0,_0,s0,Q0,ZU="flow",M9="block",k6="quoted",oQ=(Z,X)=>{let J=Z[X+1];while(J===" "||J==="\t"){do J=Z[X+=1];while(J&&J!==`
123
- `);J=Z[X+1]}return X},_9=({indentAtStart:Z})=>Z?Object.assign({indentAtStart:Z},Q0.fold):Q0.fold,m6=(Z)=>/^(%|---|\.\.\.)/m.test(Z),RM=(Z)=>{if(!Z)return!1;let{type:X}=Z;return X===x.MAP_KEY||X===x.MAP_VALUE||X===x.SEQ_ITEM},LM=({context:{lineStart:Z,node:X,src:J},props:G})=>{if(G.length===0)return!1;let{start:Q}=G[0];if(X&&Q>X.valueRange.start)return!1;if(J[Q]!==z1.COMMENT)return!1;for(let U=Z;U<Q;++U)if(J[U]===`
124
- `)return!1;return!0};var f6=C(()=>{G7();G1=class G1 extends C1{constructor(Z){super();this.value=Z}toJSON(Z,X){return X&&X.keep?this.value:c1(this.value,Z,X)}toString(){return String(this.value)}};H1=class H1 extends C1{constructor(Z){super();M1(this,"items",[]),this.schema=Z}addIn(Z,X){if(W7(Z))this.add(X);else{let[J,...G]=Z,Q=this.get(J,!0);if(Q instanceof H1)Q.addIn(G,X);else if(Q===void 0&&this.schema)this.set(J,sQ(this.schema,G,X));else throw Error(`Expected YAML collection at ${J}. Remaining path: ${G}`)}}deleteIn([Z,...X]){if(X.length===0)return this.delete(Z);let J=this.get(Z,!0);if(J instanceof H1)return J.deleteIn(X);else throw Error(`Expected YAML collection at ${Z}. Remaining path: ${X}`)}getIn([Z,...X],J){let G=this.get(Z,!0);if(X.length===0)return!J&&G instanceof G1?G.value:G;else return G instanceof H1?G.getIn(X,J):void 0}hasAllNullValues(){return this.items.every((Z)=>{if(!Z||Z.type!=="PAIR")return!1;let X=Z.value;return X==null||X instanceof G1&&X.value==null&&!X.commentBefore&&!X.comment&&!X.tag})}hasIn([Z,...X]){if(X.length===0)return this.has(Z);let J=this.get(Z,!0);return J instanceof H1?J.hasIn(X):!1}setIn([Z,...X],J){if(X.length===0)this.set(Z,J);else{let G=this.get(Z,!0);if(G instanceof H1)G.setIn(X,J);else if(G===void 0&&this.schema)this.set(Z,sQ(this.schema,X,J));else throw Error(`Expected YAML collection at ${Z}. Remaining path: ${X}`)}}toJSON(){return null}toString(Z,{blockItem:X,flowChars:J,isMap:G,itemIndent:Q},U,W){let{indent:q,indentStep:Y,stringify:H}=Z,K=this.type===x.FLOW_MAP||this.type===x.FLOW_SEQ||Z.inFlow;if(K)Q+=Y;let $=G&&this.hasAllNullValues();Z=Object.assign({},Z,{allNullValues:$,indent:Q,inFlow:K,type:null});let B=!1,V=!1,M=this.items.reduce((D,R,N)=>{let L;if(R){if(!B&&R.spaceBefore)D.push({type:"comment",str:""});if(R.commentBefore)R.commentBefore.match(/^.*$/gm).forEach((m)=>{D.push({type:"comment",str:`#${m}`})});if(R.comment)L=R.comment;if(K&&(!B&&R.spaceBefore||R.commentBefore||R.comment||R.key&&(R.key.commentBefore||R.key.comment)||R.value&&(R.value.commentBefore||R.value.comment)))V=!0}B=!1;let E=H(R,Z,()=>L=null,()=>B=!0);if(K&&!V&&E.includes(`
121
+ ${q}`:q}return X.resolved=U}function u6(Z,X){if(X.type!==x.MAP&&X.type!==x.FLOW_MAP){let W=`A ${X.type} node cannot be resolved as a mapping`;return Z.errors.push(new F1(X,W)),null}let{comments:J,items:G}=X.type===x.FLOW_MAP?TM(Z,X):wM(Z,X),Q=new P1;Q.items=G,WU(Q,J);let U=!1;for(let W=0;W<G.length;++W){let{key:q}=G[W];if(q instanceof H1)U=!0;if(Z.schema.merge&&q&&q.value===ZU){G[W]=new v6(G[W]);let Y=G[W].value.items,H=null;if(Y.some((K)=>{if(K instanceof n1){let{type:$}=K.source;if($===x.MAP||$===x.FLOW_MAP)return!1;return H="Merge nodes aliases can only point to maps"}return H="Merge nodes can only have Alias nodes as values"}),H)Z.errors.push(new s(X,H))}else for(let Y=W+1;Y<G.length;++Y){let{key:H}=G[Y];if(q===H||q&&H&&Object.prototype.hasOwnProperty.call(q,"value")&&q.value===H.value){let K=`Map keys must be unique; "${q}" is repeated`;Z.errors.push(new s(X,K));break}}}if(U&&!Z.options.mapAsMap)Z.warnings.push(new k0(X,"Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this."));return X.resolved=Q,Q}function PM(Z,X){if(!AM(Z))return;let J=Z.getPropValue(0,z1.COMMENT,!0),G=!1,Q=X.value.commentBefore;if(Q&&Q.startsWith(J))X.value.commentBefore=Q.substr(J.length+1),G=!0;else{let U=X.value.comment;if(!Z.node&&U&&U.startsWith(J))X.value.comment=U.substr(J.length+1),G=!0}if(G)X.comment=J}function wM(Z,X){let J=[],G=[],Q=void 0,U=null;for(let W=0;W<X.items.length;++W){let q=X.items[W];switch(q.type){case x.BLANK_LINE:J.push({afterKey:!!Q,before:G.length});break;case x.COMMENT:J.push({afterKey:!!Q,before:G.length,comment:q.comment});break;case x.MAP_KEY:if(Q!==void 0)G.push(new X1(Q));if(q.error)Z.errors.push(q.error);Q=y0(Z,q.node),U=null;break;case x.MAP_VALUE:{if(Q===void 0)Q=null;if(q.error)Z.errors.push(q.error);if(!q.context.atLineStart&&q.node&&q.node.type===x.MAP&&!q.node.context.atLineStart)Z.errors.push(new s(q.node,"Nested mappings are not allowed in compact mappings"));let Y=q.node;if(!Y&&q.props.length>0){Y=new M4(x.PLAIN,[]),Y.context={parent:q,src:q.context.src};let K=q.range.start+1;if(Y.range={start:K,end:K},Y.valueRange={start:K,end:K},typeof q.range.origStart==="number"){let $=q.range.origStart+1;Y.range.origStart=Y.range.origEnd=$,Y.valueRange.origStart=Y.valueRange.origEnd=$}}let H=new X1(Q,y0(Z,Y));if(PM(q,H),G.push(H),Q&&typeof U==="number"){if(q.range.start>U+1024)Z.errors.push(UU(X,Q))}Q=void 0,U=null}break;default:if(Q!==void 0)G.push(new X1(Q));if(Q=y0(Z,q),U=q.range.start,q.error)Z.errors.push(q.error);Z:for(let Y=W+1;;++Y){let H=X.items[Y];switch(H&&H.type){case x.BLANK_LINE:case x.COMMENT:continue Z;case x.MAP_VALUE:break Z;default:{Z.errors.push(new s(q,"Implicit map keys need to be followed by map values"));break Z}}}if(q.valueRangeContainsNewline)Z.errors.push(new s(q,"Implicit map keys need to be on a single line"))}}if(Q!==void 0)G.push(new X1(Q));return{comments:J,items:G}}function TM(Z,X){let J=[],G=[],Q=void 0,U=!1,W="{";for(let q=0;q<X.items.length;++q){let Y=X.items[q];if(typeof Y.char==="string"){let{char:H,offset:K}=Y;if(H==="?"&&Q===void 0&&!U){U=!0,W=":";continue}if(H===":"){if(Q===void 0)Q=null;if(W===":"){W=",";continue}}else{if(U){if(Q===void 0&&H!==",")Q=null;U=!1}if(Q!==void 0){if(G.push(new X1(Q)),Q=void 0,H===","){W=":";continue}}}if(H==="}"){if(q===X.items.length-1)continue}else if(H===W){W=":";continue}let $=`Flow map contains an unexpected ${H}`,B=new F1(X,$);B.offset=K,Z.errors.push(B)}else if(Y.type===x.BLANK_LINE)J.push({afterKey:!!Q,before:G.length});else if(Y.type===x.COMMENT)QU(Z.errors,Y),J.push({afterKey:!!Q,before:G.length,comment:Y.comment});else if(Q===void 0){if(W===",")Z.errors.push(new s(Y,"Separator , missing in flow map"));Q=y0(Z,Y)}else{if(W!==",")Z.errors.push(new s(Y,"Indicator : missing in flow map entry"));G.push(new X1(Q,y0(Z,Y))),Q=void 0,U=!1}}if(GU(Z.errors,X),Q!==void 0)G.push(new X1(Q));return{comments:J,items:G}}function p6(Z,X){if(X.type!==x.SEQ&&X.type!==x.FLOW_SEQ){let U=`A ${X.type} node cannot be resolved as a sequence`;return Z.errors.push(new F1(X,U)),null}let{comments:J,items:G}=X.type===x.FLOW_SEQ?jM(Z,X):CM(Z,X),Q=new p1;if(Q.items=G,WU(Q,J),!Z.options.mapAsMap&&G.some((U)=>U instanceof X1&&U.key instanceof H1))Z.warnings.push(new k0(X,"Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this."));return X.resolved=Q,Q}function CM(Z,X){let J=[],G=[];for(let Q=0;Q<X.items.length;++Q){let U=X.items[Q];switch(U.type){case x.BLANK_LINE:J.push({before:G.length});break;case x.COMMENT:J.push({comment:U.comment,before:G.length});break;case x.SEQ_ITEM:if(U.error)Z.errors.push(U.error);if(G.push(y0(Z,U.node)),U.hasProps)Z.errors.push(new s(U,"Sequence items cannot have tags or anchors before the - indicator"));break;default:if(U.error)Z.errors.push(U.error);Z.errors.push(new F1(U,`Unexpected ${U.type} node in sequence`))}}return{comments:J,items:G}}function jM(Z,X){let J=[],G=[],Q=!1,U=void 0,W=null,q="[",Y=null;for(let H=0;H<X.items.length;++H){let K=X.items[H];if(typeof K.char==="string"){let{char:$,offset:B}=K;if($!==":"&&(Q||U!==void 0)){if(Q&&U===void 0)U=q?G.pop():null;G.push(new X1(U)),Q=!1,U=void 0,W=null}if($===q)q=null;else if(!q&&$==="?")Q=!0;else if(q!=="["&&$===":"&&U===void 0){if(q===","){if(U=G.pop(),U instanceof X1){let M=new s(X,"Chaining flow sequence pairs is invalid");M.offset=B,Z.errors.push(M)}if(!Q&&typeof W==="number"){let V=K.range?K.range.start:K.offset;if(V>W+1024)Z.errors.push(UU(X,U));let{src:M}=Y.context;for(let _=W;_<V;++_)if(M[_]===`
122
+ `){Z.errors.push(new s(Y,"Implicit keys of flow sequence pairs need to be on a single line"));break}}}else U=null;W=null,Q=!1,q=null}else if(q==="["||$!=="]"||H<X.items.length-1){let V=`Flow sequence contains an unexpected ${$}`,M=new F1(X,V);M.offset=B,Z.errors.push(M)}}else if(K.type===x.BLANK_LINE)J.push({before:G.length});else if(K.type===x.COMMENT)QU(Z.errors,K),J.push({comment:K.comment,before:G.length});else{if(q){let B=`Expected a ${q} in flow sequence`;Z.errors.push(new s(K,B))}let $=y0(Z,K);if(U===void 0)G.push($),Y=K;else G.push(new X1(U,$)),U=void 0;W=K.range.start,q=","}}if(GU(Z.errors,X),U!==void 0)G.push(new X1(U));return{comments:J,items:G}}var G1,W7=(Z)=>Z==null||typeof Z==="object"&&Z[Symbol.iterator]().next().done,H1,p1,BM=(Z,X,J)=>{if(X===null)return"";if(typeof X!=="object")return String(X);if(Z instanceof C1&&J&&J.doc)return Z.toString({anchors:Object.create(null),doc:J.doc,indent:"",indentStep:J.indentStep,inFlow:!0,inStringifyKey:!0,stringify:J.stringify});return JSON.stringify(X)},X1,g6=(Z,X)=>{if(Z instanceof n1){let J=X.get(Z.source);return J.count*J.aliasCount}else if(Z instanceof H1){let J=0;for(let G of Z.items){let Q=g6(G,X);if(Q>J)J=Q}return J}else if(Z instanceof X1){let J=g6(Z.key,X),G=g6(Z.value,X);return Math.max(J,G)}return 1},n1,P1,ZU="<<",v6,R4,U0,_0,s0,Q0,XU="flow",M9="block",k6="quoted",tQ=(Z,X)=>{let J=Z[X+1];while(J===" "||J==="\t"){do J=Z[X+=1];while(J&&J!==`
123
+ `);J=Z[X+1]}return X},_9=({indentAtStart:Z})=>Z?Object.assign({indentAtStart:Z},Q0.fold):Q0.fold,m6=(Z)=>/^(%|---|\.\.\.)/m.test(Z),NM=(Z)=>{if(!Z)return!1;let{type:X}=Z;return X===x.MAP_KEY||X===x.MAP_VALUE||X===x.SEQ_ITEM},AM=({context:{lineStart:Z,node:X,src:J},props:G})=>{if(G.length===0)return!1;let{start:Q}=G[0];if(X&&Q>X.valueRange.start)return!1;if(J[Q]!==z1.COMMENT)return!1;for(let U=Z;U<Q;++U)if(J[U]===`
124
+ `)return!1;return!0};var f6=C(()=>{G7();G1=class G1 extends C1{constructor(Z){super();this.value=Z}toJSON(Z,X){return X&&X.keep?this.value:c1(this.value,Z,X)}toString(){return String(this.value)}};H1=class H1 extends C1{constructor(Z){super();M1(this,"items",[]),this.schema=Z}addIn(Z,X){if(W7(Z))this.add(X);else{let[J,...G]=Z,Q=this.get(J,!0);if(Q instanceof H1)Q.addIn(G,X);else if(Q===void 0&&this.schema)this.set(J,oQ(this.schema,G,X));else throw Error(`Expected YAML collection at ${J}. Remaining path: ${G}`)}}deleteIn([Z,...X]){if(X.length===0)return this.delete(Z);let J=this.get(Z,!0);if(J instanceof H1)return J.deleteIn(X);else throw Error(`Expected YAML collection at ${Z}. Remaining path: ${X}`)}getIn([Z,...X],J){let G=this.get(Z,!0);if(X.length===0)return!J&&G instanceof G1?G.value:G;else return G instanceof H1?G.getIn(X,J):void 0}hasAllNullValues(){return this.items.every((Z)=>{if(!Z||Z.type!=="PAIR")return!1;let X=Z.value;return X==null||X instanceof G1&&X.value==null&&!X.commentBefore&&!X.comment&&!X.tag})}hasIn([Z,...X]){if(X.length===0)return this.has(Z);let J=this.get(Z,!0);return J instanceof H1?J.hasIn(X):!1}setIn([Z,...X],J){if(X.length===0)this.set(Z,J);else{let G=this.get(Z,!0);if(G instanceof H1)G.setIn(X,J);else if(G===void 0&&this.schema)this.set(Z,oQ(this.schema,X,J));else throw Error(`Expected YAML collection at ${Z}. Remaining path: ${X}`)}}toJSON(){return null}toString(Z,{blockItem:X,flowChars:J,isMap:G,itemIndent:Q},U,W){let{indent:q,indentStep:Y,stringify:H}=Z,K=this.type===x.FLOW_MAP||this.type===x.FLOW_SEQ||Z.inFlow;if(K)Q+=Y;let $=G&&this.hasAllNullValues();Z=Object.assign({},Z,{allNullValues:$,indent:Q,inFlow:K,type:null});let B=!1,V=!1,M=this.items.reduce((D,R,N)=>{let L;if(R){if(!B&&R.spaceBefore)D.push({type:"comment",str:""});if(R.commentBefore)R.commentBefore.match(/^.*$/gm).forEach((m)=>{D.push({type:"comment",str:`#${m}`})});if(R.comment)L=R.comment;if(K&&(!B&&R.spaceBefore||R.commentBefore||R.comment||R.key&&(R.key.commentBefore||R.key.comment)||R.value&&(R.value.commentBefore||R.value.comment)))V=!0}B=!1;let E=H(R,Z,()=>L=null,()=>B=!0);if(K&&!V&&E.includes(`
125
125
  `))V=!0;if(K&&N<this.items.length-1)E+=",";if(E=D4(E,Q,L),B&&(L||K))B=!1;return D.push({type:"item",str:E}),D},[]),_;if(M.length===0)_=J.start+J.end;else if(K){let{start:D,end:R}=J,N=M.map((L)=>L.str);if(V||N.reduce((L,E)=>L+E.length+2,2)>H1.maxFlowStringSingleLineLength){_=D;for(let L of N)_+=L?`
126
126
  ${Y}${q}${L}`:`
127
127
  `;_+=`
128
128
  ${q}${R}`}else _=`${D} ${N.join(" ")} ${R}`}else{let D=M.map(X);_=D.shift();for(let R of D)_+=R?`
129
129
  ${q}${R}`:`
130
130
  `}if(this.comment){if(_+=`
131
- `+this.comment.replace(/^/gm,`${q}#`),U)U()}else if(B&&W)W();return _}};M1(H1,"maxFlowStringSingleLineLength",60);p1=class p1 extends H1{add(Z){this.items.push(Z)}delete(Z){let X=x6(Z);if(typeof X!=="number")return!1;return this.items.splice(X,1).length>0}get(Z,X){let J=x6(Z);if(typeof J!=="number")return;let G=this.items[J];return!X&&G instanceof G1?G.value:G}has(Z){let X=x6(Z);return typeof X==="number"&&X<this.items.length}set(Z,X){let J=x6(Z);if(typeof J!=="number")throw Error(`Expected a valid index, not ${Z}.`);this.items[J]=X}toJSON(Z,X){let J=[];if(X&&X.onCreate)X.onCreate(J);let G=0;for(let Q of this.items)J.push(c1(Q,String(G++),X));return J}toString(Z,X,J){if(!Z)return JSON.stringify(this);return super.toString(Z,{blockItem:(G)=>G.type==="comment"?G.str:`- ${G.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(Z.indent||"")+" "},X,J)}};X1=class X1 extends C1{constructor(Z,X=null){super();this.key=Z,this.value=X,this.type=X1.Type.PAIR}get commentBefore(){return this.key instanceof C1?this.key.commentBefore:void 0}set commentBefore(Z){if(this.key==null)this.key=new G1(null);if(this.key instanceof C1)this.key.commentBefore=Z;else throw Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.")}addToJSMap(Z,X){let J=c1(this.key,"",Z);if(X instanceof Map){let G=c1(this.value,J,Z);X.set(J,G)}else if(X instanceof Set)X.add(J);else{let G=zM(this.key,J,Z),Q=c1(this.value,G,Z);if(G in X)Object.defineProperty(X,G,{value:Q,writable:!0,enumerable:!0,configurable:!0});else X[G]=Q}return X}toJSON(Z,X){let J=X&&X.mapAsMap?new Map:{};return this.addToJSMap(X,J)}toString(Z,X,J){if(!Z||!Z.doc)return JSON.stringify(this);let{indent:G,indentSeq:Q,simpleKeys:U}=Z.doc.options,{key:W,value:q}=this,Y=W instanceof C1&&W.comment;if(U){if(Y)throw Error("With simple keys, key nodes cannot have comments");if(W instanceof H1)throw Error("With simple keys, collection cannot be used as a key value")}let H=!U&&(!W||Y||(W instanceof C1?W instanceof H1||W.type===x.BLOCK_FOLDED||W.type===x.BLOCK_LITERAL:typeof W==="object")),{doc:K,indent:$,indentStep:B,stringify:V}=Z;Z=Object.assign({},Z,{implicitKey:!H,indent:$+B});let M=!1,_=V(W,Z,()=>Y=null,()=>M=!0);if(_=D4(_,Z.indent,Y),!H&&_.length>1024){if(U)throw Error("With simple keys, single line scalar must not span more than 1024 characters");H=!0}if(Z.allNullValues&&!U){if(this.comment){if(_=D4(_,Z.indent,this.comment),X)X()}else if(M&&!Y&&J)J();return Z.inFlow&&!H?_:`? ${_}`}if(_=H?`? ${_}
131
+ `+this.comment.replace(/^/gm,`${q}#`),U)U()}else if(B&&W)W();return _}};M1(H1,"maxFlowStringSingleLineLength",60);p1=class p1 extends H1{add(Z){this.items.push(Z)}delete(Z){let X=x6(Z);if(typeof X!=="number")return!1;return this.items.splice(X,1).length>0}get(Z,X){let J=x6(Z);if(typeof J!=="number")return;let G=this.items[J];return!X&&G instanceof G1?G.value:G}has(Z){let X=x6(Z);return typeof X==="number"&&X<this.items.length}set(Z,X){let J=x6(Z);if(typeof J!=="number")throw Error(`Expected a valid index, not ${Z}.`);this.items[J]=X}toJSON(Z,X){let J=[];if(X&&X.onCreate)X.onCreate(J);let G=0;for(let Q of this.items)J.push(c1(Q,String(G++),X));return J}toString(Z,X,J){if(!Z)return JSON.stringify(this);return super.toString(Z,{blockItem:(G)=>G.type==="comment"?G.str:`- ${G.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(Z.indent||"")+" "},X,J)}};X1=class X1 extends C1{constructor(Z,X=null){super();this.key=Z,this.value=X,this.type=X1.Type.PAIR}get commentBefore(){return this.key instanceof C1?this.key.commentBefore:void 0}set commentBefore(Z){if(this.key==null)this.key=new G1(null);if(this.key instanceof C1)this.key.commentBefore=Z;else throw Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.")}addToJSMap(Z,X){let J=c1(this.key,"",Z);if(X instanceof Map){let G=c1(this.value,J,Z);X.set(J,G)}else if(X instanceof Set)X.add(J);else{let G=BM(this.key,J,Z),Q=c1(this.value,G,Z);if(G in X)Object.defineProperty(X,G,{value:Q,writable:!0,enumerable:!0,configurable:!0});else X[G]=Q}return X}toJSON(Z,X){let J=X&&X.mapAsMap?new Map:{};return this.addToJSMap(X,J)}toString(Z,X,J){if(!Z||!Z.doc)return JSON.stringify(this);let{indent:G,indentSeq:Q,simpleKeys:U}=Z.doc.options,{key:W,value:q}=this,Y=W instanceof C1&&W.comment;if(U){if(Y)throw Error("With simple keys, key nodes cannot have comments");if(W instanceof H1)throw Error("With simple keys, collection cannot be used as a key value")}let H=!U&&(!W||Y||(W instanceof C1?W instanceof H1||W.type===x.BLOCK_FOLDED||W.type===x.BLOCK_LITERAL:typeof W==="object")),{doc:K,indent:$,indentStep:B,stringify:V}=Z;Z=Object.assign({},Z,{implicitKey:!H,indent:$+B});let M=!1,_=V(W,Z,()=>Y=null,()=>M=!0);if(_=D4(_,Z.indent,Y),!H&&_.length>1024){if(U)throw Error("With simple keys, single line scalar must not span more than 1024 characters");H=!0}if(Z.allNullValues&&!U){if(this.comment){if(_=D4(_,Z.indent,this.comment),X)X()}else if(M&&!Y&&J)J();return Z.inFlow&&!H?_:`? ${_}`}if(_=H?`? ${_}
132
132
  ${$}:`:`${_}:`,this.comment){if(_=D4(_,Z.indent,this.comment),X)X()}let D="",R=null;if(q instanceof C1){if(q.spaceBefore)D=`
133
133
  `;if(q.commentBefore){let E=q.commentBefore.replace(/^/gm,`${Z.indent}#`);D+=`
134
134
  ${E}`}R=q.comment}else if(q&&typeof q==="object")q=K.schema.createNode(q,!0);if(Z.implicitKey=!1,!H&&!this.comment&&q instanceof G1)Z.indentAtStart=_.length+1;if(M=!1,!Q&&G>=2&&!Z.inFlow&&!H&&q instanceof p1&&q.type!==x.FLOW_SEQ&&!q.tag&&!K.anchors.getName(q))Z.indent=Z.indent.substr(2);let N=V(q,Z,()=>R=null,()=>M=!0),L=" ";if(D||this.comment)L=`${D}
135
135
  ${Z.indent}`;else if(!H&&q instanceof H1){if(!(N[0]==="["||N[0]==="{")||N.includes(`
136
136
  `))L=`
137
137
  ${Z.indent}`}else if(N[0]===`
138
- `)L="";if(M&&!R&&J)J();return D4(_+L+N,Z.indent,R)}};M1(X1,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});n1=class n1 extends C1{static stringify({range:Z,source:X},{anchors:J,doc:G,implicitKey:Q,inStringifyKey:U}){let W=Object.keys(J).find((Y)=>J[Y]===X);if(!W&&U)W=G.anchors.getName(X)||G.anchors.newName();if(W)return`*${W}${Q?" ":""}`;let q=G.anchors.getName(X)?"Alias node must be after source node":"Source node not found for alias node";throw Error(`${q} [${Z}]`)}constructor(Z){super();this.source=Z,this.type=x.ALIAS}set tag(Z){throw Error("Alias nodes cannot have tags")}toJSON(Z,X){if(!X)return c1(this.source,Z,X);let{anchors:J,maxAliasCount:G}=X,Q=J.get(this.source);if(!Q||Q.res===void 0)if(this.cstNode)throw new c0(this.cstNode,"This should not happen: Alias anchor was not resolved?");else throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(G>=0){if(Q.count+=1,Q.aliasCount===0)Q.aliasCount=g6(this.source,J);if(Q.count*Q.aliasCount>G)if(this.cstNode)throw new c0(this.cstNode,"Excessive alias count indicates a resource exhaustion attack");else throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return Q.res}toString(Z){return n1.stringify(this,Z)}};M1(n1,"default",!0);P1=class P1 extends H1{add(Z,X){if(!Z)Z=new X1(Z);else if(!(Z instanceof X1))Z=new X1(Z.key||Z,Z.value);let J=a0(this.items,Z.key),G=this.schema&&this.schema.sortMapEntries;if(J)if(X)J.value=Z.value;else throw Error(`Key ${Z.key} already set`);else if(G){let Q=this.items.findIndex((U)=>G(Z,U)<0);if(Q===-1)this.items.push(Z);else this.items.splice(Q,0,Z)}else this.items.push(Z)}delete(Z){let X=a0(this.items,Z);if(!X)return!1;return this.items.splice(this.items.indexOf(X),1).length>0}get(Z,X){let J=a0(this.items,Z),G=J&&J.value;return!X&&G instanceof G1?G.value:G}has(Z){return!!a0(this.items,Z)}set(Z,X){this.add(new X1(Z,X),!0)}toJSON(Z,X,J){let G=J?new J:X&&X.mapAsMap?new Map:{};if(X&&X.onCreate)X.onCreate(G);for(let Q of this.items)Q.addToJSMap(X,G);return G}toString(Z,X,J){if(!Z)return JSON.stringify(this);for(let G of this.items)if(!(G instanceof X1))throw Error(`Map items must all be pairs; found ${JSON.stringify(G)} instead`);return super.toString(Z,{blockItem:(G)=>G.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:Z.indent||""},X,J)}};v6=class v6 extends X1{constructor(Z){if(Z instanceof X1){let X=Z.value;if(!(X instanceof p1))X=new p1,X.items.push(Z.value),X.range=Z.value.range;super(Z.key,X);this.range=Z.range}else super(new G1(eQ),new p1);this.type=X1.Type.MERGE_PAIR}addToJSMap(Z,X){for(let{source:J}of this.value.items){if(!(J instanceof P1))throw Error("Merge sources must be maps");let G=J.toJSON(null,Z,Map);for(let[Q,U]of G)if(X instanceof Map){if(!X.has(Q))X.set(Q,U)}else if(X instanceof Set)X.add(Q);else if(!Object.prototype.hasOwnProperty.call(X,Q))Object.defineProperty(X,Q,{value:U,writable:!0,enumerable:!0,configurable:!0})}return X}toString(Z,X){let J=this.value;if(J.items.length>1)return super.toString(Z,X);this.value=J.items[0];let G=super.toString(Z,X);return this.value=J,G}};R4={defaultType:x.BLOCK_LITERAL,lineWidth:76},U0={trueStr:"true",falseStr:"false"},_0={asBigInt:!1},s0={nullStr:"null"},Q0={defaultType:x.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}}});function qU(Z,X){let J=p6(Z,X);for(let G=0;G<J.items.length;++G){let Q=J.items[G];if(Q instanceof X1)continue;else if(Q instanceof P1){if(Q.items.length>1)throw new s(X,"Each pair must have its own sequence indicator");let U=Q.items[0]||new X1;if(Q.commentBefore)U.commentBefore=U.commentBefore?`${Q.commentBefore}
138
+ `)L="";if(M&&!R&&J)J();return D4(_+L+N,Z.indent,R)}};M1(X1,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});n1=class n1 extends C1{static stringify({range:Z,source:X},{anchors:J,doc:G,implicitKey:Q,inStringifyKey:U}){let W=Object.keys(J).find((Y)=>J[Y]===X);if(!W&&U)W=G.anchors.getName(X)||G.anchors.newName();if(W)return`*${W}${Q?" ":""}`;let q=G.anchors.getName(X)?"Alias node must be after source node":"Source node not found for alias node";throw Error(`${q} [${Z}]`)}constructor(Z){super();this.source=Z,this.type=x.ALIAS}set tag(Z){throw Error("Alias nodes cannot have tags")}toJSON(Z,X){if(!X)return c1(this.source,Z,X);let{anchors:J,maxAliasCount:G}=X,Q=J.get(this.source);if(!Q||Q.res===void 0)if(this.cstNode)throw new c0(this.cstNode,"This should not happen: Alias anchor was not resolved?");else throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(G>=0){if(Q.count+=1,Q.aliasCount===0)Q.aliasCount=g6(this.source,J);if(Q.count*Q.aliasCount>G)if(this.cstNode)throw new c0(this.cstNode,"Excessive alias count indicates a resource exhaustion attack");else throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return Q.res}toString(Z){return n1.stringify(this,Z)}};M1(n1,"default",!0);P1=class P1 extends H1{add(Z,X){if(!Z)Z=new X1(Z);else if(!(Z instanceof X1))Z=new X1(Z.key||Z,Z.value);let J=a0(this.items,Z.key),G=this.schema&&this.schema.sortMapEntries;if(J)if(X)J.value=Z.value;else throw Error(`Key ${Z.key} already set`);else if(G){let Q=this.items.findIndex((U)=>G(Z,U)<0);if(Q===-1)this.items.push(Z);else this.items.splice(Q,0,Z)}else this.items.push(Z)}delete(Z){let X=a0(this.items,Z);if(!X)return!1;return this.items.splice(this.items.indexOf(X),1).length>0}get(Z,X){let J=a0(this.items,Z),G=J&&J.value;return!X&&G instanceof G1?G.value:G}has(Z){return!!a0(this.items,Z)}set(Z,X){this.add(new X1(Z,X),!0)}toJSON(Z,X,J){let G=J?new J:X&&X.mapAsMap?new Map:{};if(X&&X.onCreate)X.onCreate(G);for(let Q of this.items)Q.addToJSMap(X,G);return G}toString(Z,X,J){if(!Z)return JSON.stringify(this);for(let G of this.items)if(!(G instanceof X1))throw Error(`Map items must all be pairs; found ${JSON.stringify(G)} instead`);return super.toString(Z,{blockItem:(G)=>G.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:Z.indent||""},X,J)}};v6=class v6 extends X1{constructor(Z){if(Z instanceof X1){let X=Z.value;if(!(X instanceof p1))X=new p1,X.items.push(Z.value),X.range=Z.value.range;super(Z.key,X);this.range=Z.range}else super(new G1(ZU),new p1);this.type=X1.Type.MERGE_PAIR}addToJSMap(Z,X){for(let{source:J}of this.value.items){if(!(J instanceof P1))throw Error("Merge sources must be maps");let G=J.toJSON(null,Z,Map);for(let[Q,U]of G)if(X instanceof Map){if(!X.has(Q))X.set(Q,U)}else if(X instanceof Set)X.add(Q);else if(!Object.prototype.hasOwnProperty.call(X,Q))Object.defineProperty(X,Q,{value:U,writable:!0,enumerable:!0,configurable:!0})}return X}toString(Z,X){let J=this.value;if(J.items.length>1)return super.toString(Z,X);this.value=J.items[0];let G=super.toString(Z,X);return this.value=J,G}};R4={defaultType:x.BLOCK_LITERAL,lineWidth:76},U0={trueStr:"true",falseStr:"false"},_0={asBigInt:!1},s0={nullStr:"null"},Q0={defaultType:x.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}}});function YU(Z,X){let J=p6(Z,X);for(let G=0;G<J.items.length;++G){let Q=J.items[G];if(Q instanceof X1)continue;else if(Q instanceof P1){if(Q.items.length>1)throw new s(X,"Each pair must have its own sequence indicator");let U=Q.items[0]||new X1;if(Q.commentBefore)U.commentBefore=U.commentBefore?`${Q.commentBefore}
139
139
  ${U.commentBefore}`:Q.commentBefore;if(Q.comment)U.comment=U.comment?`${Q.comment}
140
- ${U.comment}`:Q.comment;Q=U}J.items[G]=Q instanceof X1?Q:new X1(Q)}return J}function YU(Z,X,J){let G=new p1(Z);G.tag="tag:yaml.org,2002:pairs";for(let Q of X){let U,W;if(Array.isArray(Q))if(Q.length===2)U=Q[0],W=Q[1];else throw TypeError(`Expected [key, value] tuple: ${Q}`);else if(Q&&Q instanceof Object){let Y=Object.keys(Q);if(Y.length===1)U=Y[0],W=Q[U];else throw TypeError(`Expected { key: value } tuple: ${Q}`)}else U=Q;let q=Z.createPair(U,W,J);G.items.push(q)}return G}function CM(Z,X){let J=qU(Z,X),G=[];for(let{key:Q}of J.items)if(Q instanceof G1)if(G.includes(Q.value))throw new s(X,"Ordered maps must not include duplicate keys");else G.push(Q.value);return Object.assign(new Y7,J)}function jM(Z,X,J){let G=YU(Z,X,J),Q=new Y7;return Q.items=G.items,Q}function EM(Z,X){let J=u6(Z,X);if(!J.hasAllNullValues())throw new s(X,"Set items must all have null values");return Object.assign(new H7,J)}function SM(Z,X,J){let G=new H7;for(let Q of X)G.items.push(Z.createPair(Q,null,J));return G}function KU(Z){let X=typeof process<"u"&&process.env||{};if(Z){if(typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u")return!YAML_SILENCE_DEPRECATION_WARNINGS;return!X.YAML_SILENCE_DEPRECATION_WARNINGS}if(typeof YAML_SILENCE_WARNINGS<"u")return!YAML_SILENCE_WARNINGS;return!X.YAML_SILENCE_WARNINGS}function T9(Z,X){if(KU(!1)){let J=typeof process<"u"&&process.emitWarning;if(J)J(Z,X);else console.warn(X?`${X}: ${Z}`:Z)}}function $U(Z,X){if(!WU[Z]&&KU(!0)){WU[Z]=!0;let J=`The option '${Z}' will be removed in a future release`;J+=X?`, use '${X}' instead.`:".",T9(J,"DeprecationWarning")}}var R9,O9,Y7,N9,H7,L9,I9=(Z,X)=>{let J=X.split(":").reduce((G,Q)=>G*60+Number(Q),0);return Z==="-"?-J:J},HU=({value:Z})=>{if(isNaN(Z)||!isFinite(Z))return W0(Z);let X="";if(Z<0)X="-",Z=Math.abs(Z);let J=[Z%60];if(Z<60)J.unshift(0);else if(Z=Math.round((Z-J[0])/60),J.unshift(Z%60),Z>=60)Z=Math.round((Z-J[0])/60),J.unshift(Z);return X+J.map((G)=>G<10?"0"+String(G):String(G)).join(":").replace(/000000\d*$/,"")},A9,P9,w9,WU;var C9=C(()=>{G7();f6();R9={identify:(Z)=>Z instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(Z,X)=>{let J=O4(Z,X);if(typeof Buffer==="function")return Buffer.from(J,"base64");else if(typeof atob==="function"){let G=atob(J.replace(/[\n\r]/g,"")),Q=new Uint8Array(G.length);for(let U=0;U<G.length;++U)Q[U]=G.charCodeAt(U);return Q}else return Z.errors.push(new c0(X,"This environment does not support reading binary tags; either Buffer or atob is required")),null},options:R4,stringify:({comment:Z,type:X,value:J},G,Q,U)=>{let W;if(typeof Buffer==="function")W=J instanceof Buffer?J.toString("base64"):Buffer.from(J.buffer).toString("base64");else if(typeof btoa==="function"){let q="";for(let Y=0;Y<J.length;++Y)q+=String.fromCharCode(J[Y]);W=btoa(q)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(!X)X=R4.defaultType;if(X===x.QUOTE_DOUBLE)J=W;else{let{lineWidth:q}=R4,Y=Math.ceil(W.length/q),H=Array(Y);for(let K=0,$=0;K<Y;++K,$+=q)H[K]=W.substr($,q);J=H.join(X===x.BLOCK_LITERAL?`
141
- `:" ")}return q7({comment:Z,type:X,value:J},G,Q,U)}};O9={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:qU,createNode:YU};Y7=class Y7 extends p1{constructor(){super();M1(this,"add",P1.prototype.add.bind(this)),M1(this,"delete",P1.prototype.delete.bind(this)),M1(this,"get",P1.prototype.get.bind(this)),M1(this,"has",P1.prototype.has.bind(this)),M1(this,"set",P1.prototype.set.bind(this)),this.tag=Y7.tag}toJSON(Z,X){let J=new Map;if(X&&X.onCreate)X.onCreate(J);for(let G of this.items){let Q,U;if(G instanceof X1)Q=c1(G.key,"",X),U=c1(G.value,Q,X);else Q=c1(G,"",X);if(J.has(Q))throw Error("Ordered maps must not include duplicate keys");J.set(Q,U)}return J}};M1(Y7,"tag","tag:yaml.org,2002:omap");N9={identify:(Z)=>Z instanceof Map,nodeClass:Y7,default:!1,tag:"tag:yaml.org,2002:omap",resolve:CM,createNode:jM};H7=class H7 extends P1{constructor(){super();this.tag=H7.tag}add(Z){let X=Z instanceof X1?Z:new X1(Z);if(!a0(this.items,X.key))this.items.push(X)}get(Z,X){let J=a0(this.items,Z);return!X&&J instanceof X1?J.key instanceof G1?J.key.value:J.key:J}set(Z,X){if(typeof X!=="boolean")throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof X}`);let J=a0(this.items,Z);if(J&&!X)this.items.splice(this.items.indexOf(J),1);else if(!J&&X)this.items.push(new X1(Z))}toJSON(Z,X){return super.toJSON(Z,X,Set)}toString(Z,X,J){if(!Z)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(Z,X,J);else throw Error("Set items must all have null values")}};M1(H7,"tag","tag:yaml.org,2002:set");L9={identify:(Z)=>Z instanceof Set,nodeClass:H7,default:!1,tag:"tag:yaml.org,2002:set",resolve:EM,createNode:SM},A9={identify:(Z)=>typeof Z==="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(Z,X,J)=>I9(X,J.replace(/_/g,"")),stringify:HU},P9={identify:(Z)=>typeof Z==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(Z,X,J)=>I9(X,J.replace(/_/g,"")),stringify:HU},w9={identify:(Z)=>Z 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:(Z,X,J,G,Q,U,W,q,Y)=>{if(q)q=(q+"00").substr(1,3);let H=Date.UTC(X,J-1,G,Q||0,U||0,W||0,q||0);if(Y&&Y!=="Z"){let K=I9(Y[0],Y.slice(1));if(Math.abs(K)<30)K*=60;H-=60000*K}return new Date(H)},stringify:({value:Z})=>Z.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};WU={}});function bM(Z,X,J){let G=new P1(Z);if(X instanceof Map)for(let[Q,U]of X)G.items.push(Z.createPair(Q,U,J));else if(X&&typeof X==="object")for(let Q of Object.keys(X))G.items.push(Z.createPair(Q,X[Q],J));if(typeof Z.sortMapEntries==="function")G.items.sort(Z.sortMapEntries);return G}function xM(Z,X,J){let G=new p1(Z);if(X&&X[Symbol.iterator])for(let Q of X){let U=Z.createNode(Q,J.wrapScalars,null,J);G.items.push(U)}return G}function BU(Z,X,J){let{value:G}=Z;if(r6(G)&&G>=0)return J+G.toString(X);return W0(Z)}function i6(Z,X,J){let G=X.replace(/_/g,"");if(_0.asBigInt){switch(J){case 2:G=`0b${G}`;break;case 8:G=`0o${G}`;break;case 16:G=`0x${G}`;break}let U=BigInt(G);return Z==="-"?BigInt(-1)*U:U}let Q=parseInt(G,J);return Z==="-"?-1*Q:Q}function j9(Z,X,J){let{value:G}=Z;if(e7(G)){let Q=G.toString(X);return G<0?"-"+J+Q.substr(1):J+Q}return W0(Z)}function mM(Z,X,J){if(X){let G=J.filter((U)=>U.tag===X),Q=G.find((U)=>!U.format)||G[0];if(!Q)throw Error(`Tag ${X} not found`);return Q}return J.find((G)=>(G.identify&&G.identify(Z)||G.class&&Z instanceof G.class)&&!G.format)}function uM(Z,X,J){if(Z instanceof C1)return Z;let{defaultPrefix:G,onTagObj:Q,prevObjects:U,schema:W,wrapScalars:q}=J;if(X&&X.startsWith("!!"))X=G+X.slice(2);let Y=mM(Z,X,W.tags);if(!Y){if(typeof Z.toJSON==="function")Z=Z.toJSON();if(!Z||typeof Z!=="object")return q?new G1(Z):Z;Y=Z instanceof Map?Z5:Z[Symbol.iterator]?d6:Z5}if(Q)Q(Y),delete J.onTagObj;let H={value:void 0,node:void 0};if(Z&&typeof Z==="object"&&U){let K=U.get(Z);if(K){let $=new n1(K);return J.aliasNodes.push($),$}H.value=Z,U.set(Z,H)}if(H.node=Y.createNode?Y.createNode(J.schema,Z,J):q?new G1(Z):Z,X&&H.node instanceof C1)H.node.tag=X;return H.node}function pM(Z,X,J,G){let Q=Z[G.replace(/\W/g,"")];if(!Q){let U=Object.keys(Z).map((W)=>JSON.stringify(W)).join(", ");throw Error(`Unknown schema "${G}"; use one of ${U}`)}if(Array.isArray(J))for(let U of J)Q=Q.concat(U);else if(typeof J==="function")Q=J(Q.slice());for(let U=0;U<Q.length;++U){let W=Q[U];if(typeof W==="string"){let q=X[W];if(!q){let Y=Object.keys(X).map((H)=>JSON.stringify(H)).join(", ");throw Error(`Unknown custom tag "${W}"; use one of ${Y}`)}Q[U]=q}}return Q}class o0{constructor({customTags:Z,merge:X,schema:J,sortMapEntries:G,tags:Q}){if(this.merge=!!X,this.name=J,this.sortMapEntries=G===!0?fM:G||null,!Z&&Q)$U("tags","customTags");this.tags=pM(vM,hM,Z||Q,J)}createNode(Z,X,J,G){let Q={defaultPrefix:o0.defaultPrefix,schema:this,wrapScalars:X},U=G?Object.assign(G,Q):Q;return uM(Z,J,U)}createPair(Z,X,J){if(!J)J={wrapScalars:!0};let G=this.createNode(Z,J.wrapScalars,null,J),Q=this.createNode(X,J.wrapScalars,null,J);return new X1(G,Q)}}var Z5,d6,gM,E9,r6=(Z)=>typeof Z==="bigint"||Number.isInteger(Z),S9=(Z,X,J)=>_0.asBigInt?BigInt(Z):parseInt(X,J),FU,MU,DU,_U,RU,OU,NU,LU,kM,zU=(Z)=>typeof Z==="bigint"||Number.isInteger(Z),l6=({value:Z})=>JSON.stringify(Z),IU,VU=({value:Z})=>Z?U0.trueStr:U0.falseStr,e7=(Z)=>typeof Z==="bigint"||Number.isInteger(Z),yM,vM,hM,fM=(Z,X)=>Z.key<X.key?-1:Z.key>X.key?1:0;var AU=C(()=>{G7();f6();C9();Z5={createNode:bM,default:!0,nodeClass:P1,tag:"tag:yaml.org,2002:map",resolve:u6};d6={createNode:xM,default:!0,nodeClass:p1,tag:"tag:yaml.org,2002:seq",resolve:p6},gM={identify:(Z)=>typeof Z==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:O4,stringify(Z,X,J,G){return X=Object.assign({actualString:!0},X),q7(Z,X,J,G)},options:Q0},E9=[Z5,d6,gM];FU={identify:(Z)=>Z==null,createNode:(Z,X,J)=>J.wrapScalars?new G1(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:s0,stringify:()=>s0.nullStr},MU={identify:(Z)=>typeof Z==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:(Z)=>Z[0]==="t"||Z[0]==="T",options:U0,stringify:({value:Z})=>Z?U0.trueStr:U0.falseStr},DU={identify:(Z)=>r6(Z)&&Z>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(Z,X)=>S9(Z,X,8),options:_0,stringify:(Z)=>BU(Z,8,"0o")},_U={identify:r6,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(Z)=>S9(Z,Z,10),options:_0,stringify:W0},RU={identify:(Z)=>r6(Z)&&Z>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(Z,X)=>S9(Z,X,16),options:_0,stringify:(Z)=>BU(Z,16,"0x")},OU={identify:(Z)=>typeof Z==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(Z,X)=>X?NaN:Z[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:W0},NU={identify:(Z)=>typeof Z==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:(Z)=>parseFloat(Z),stringify:({value:Z})=>Number(Z).toExponential()},LU={identify:(Z)=>typeof Z==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(Z,X,J){let G=X||J,Q=new G1(parseFloat(Z));if(G&&G[G.length-1]==="0")Q.minFractionDigits=G.length;return Q},stringify:W0},kM=E9.concat([FU,MU,DU,_U,RU,OU,NU,LU]),IU=[Z5,d6,{identify:(Z)=>typeof Z==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:O4,stringify:l6},{identify:(Z)=>Z==null,createNode:(Z,X,J)=>J.wrapScalars?new G1(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:l6},{identify:(Z)=>typeof Z==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:(Z)=>Z==="true",stringify:l6},{identify:zU,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(Z)=>_0.asBigInt?BigInt(Z):parseInt(Z,10),stringify:({value:Z})=>zU(Z)?Z.toString():JSON.stringify(Z)},{identify:(Z)=>typeof Z==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:(Z)=>parseFloat(Z),stringify:l6}];IU.scalarFallback=(Z)=>{throw SyntaxError(`Unresolved plain scalar ${JSON.stringify(Z)}`)};yM=E9.concat([{identify:(Z)=>Z==null,createNode:(Z,X,J)=>J.wrapScalars?new G1(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:s0,stringify:()=>s0.nullStr},{identify:(Z)=>typeof Z==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:U0,stringify:VU},{identify:(Z)=>typeof Z==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:U0,stringify:VU},{identify:e7,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(Z,X,J)=>i6(X,J,2),stringify:(Z)=>j9(Z,2,"0b")},{identify:e7,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(Z,X,J)=>i6(X,J,8),stringify:(Z)=>j9(Z,8,"0")},{identify:e7,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(Z,X,J)=>i6(X,J,10),stringify:W0},{identify:e7,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(Z,X,J)=>i6(X,J,16),stringify:(Z)=>j9(Z,16,"0x")},{identify:(Z)=>typeof Z==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(Z,X)=>X?NaN:Z[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:W0},{identify:(Z)=>typeof Z==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:(Z)=>parseFloat(Z.replace(/_/g,"")),stringify:({value:Z})=>Number(Z).toExponential()},{identify:(Z)=>typeof Z==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(Z,X){let J=new G1(parseFloat(Z.replace(/_/g,"")));if(X){let G=X.replace(/_/g,"");if(G[G.length-1]==="0")J.minFractionDigits=G.length}return J},stringify:W0}],R9,N9,O9,L9,A9,P9,w9),vM={core:kM,failsafe:E9,json:IU,yaml11:yM},hM={binary:R9,bool:MU,float:LU,floatExp:NU,floatNaN:OU,floatTime:P9,int:_U,intHex:RU,intOct:DU,intTime:A9,map:Z5,null:FU,omap:N9,pairs:O9,seq:d6,set:L9,timestamp:w9};M1(o0,"defaultPrefix",J7);M1(o0,"defaultTags",M0)});var CU={};P7(CU,{YAML:()=>XD});function PU(Z,X){if((Z.version||Z.options.version)==="1.0"){let Q=X.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(Q)return"!"+Q[1];let U=X.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return U?`!${U[1]}/${U[2]}`:`!${X.replace(/^tag:/,"")}`}let J=Z.tagPrefixes.find((Q)=>X.indexOf(Q.prefix)===0);if(!J){let Q=Z.getDefaults().tagPrefixes;J=Q&&Q.find((U)=>X.indexOf(U.prefix)===0)}if(!J)return X[0]==="!"?X:`!<${X}>`;let G=X.substr(J.prefix.length).replace(/[!,[\]{}]/g,(Q)=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[Q]);return J.handle+G}function iM(Z,X){if(X instanceof n1)return n1;if(X.tag){let Q=Z.filter((U)=>U.tag===X.tag);if(Q.length>0)return Q.find((U)=>U.format===X.format)||Q[0]}let J,G;if(X instanceof G1){G=X.value;let Q=Z.filter((U)=>U.identify&&U.identify(G)||U.class&&G instanceof U.class);J=Q.find((U)=>U.format===X.format)||Q.find((U)=>!U.format)}else G=X,J=Z.find((Q)=>Q.nodeClass&&G instanceof Q.nodeClass);if(!J){let Q=G&&G.constructor?G.constructor.name:typeof G;throw Error(`Tag not resolved for ${Q} value`)}return J}function dM(Z,X,{anchors:J,doc:G}){let Q=[],U=G.anchors.getName(Z);if(U)J[U]=Z,Q.push(`&${U}`);if(Z.tag)Q.push(PU(G,Z.tag));else if(!X.default)Q.push(PU(G,X.tag));return Q.join(" ")}function c6(Z,X,J,G){let{anchors:Q,schema:U}=X.doc,W;if(!(Z instanceof C1)){let H={aliasNodes:[],onTagObj:(K)=>W=K,prevObjects:new Map};Z=U.createNode(Z,!0,null,H);for(let K of H.aliasNodes){K.source=K.source.node;let $=Q.getName(K.source);if(!$)$=Q.newName(),Q.map[$]=K.source}}if(Z instanceof X1)return Z.toString(X,J,G);if(!W)W=iM(U.tags,Z);let q=dM(Z,W,X);if(q.length>0)X.indentAtStart=(X.indentAtStart||0)+q.length+1;let Y=typeof W.stringify==="function"?W.stringify(Z,X,J,G):Z instanceof G1?q7(Z,X,J,G):Z.toString(X,J,G);if(!q)return Y;return Z instanceof G1||Y[0]==="{"||Y[0]==="["?`${q} ${Y}`:`${q}
142
- ${X.indent}${Y}`}class b9{static validAnchorNode(Z){return Z instanceof G1||Z instanceof p1||Z instanceof P1}constructor(Z){M1(this,"map",Object.create(null)),this.prefix=Z}createAlias(Z,X){return this.setAnchor(Z,X),new n1(Z)}createMergePair(...Z){let X=new v6;return X.value.items=Z.map((J)=>{if(J instanceof n1){if(J.source instanceof P1)return J}else if(J instanceof P1)return this.createAlias(J);throw Error("Merge sources must be Map nodes or their Aliases")}),X}getName(Z){let{map:X}=this;return Object.keys(X).find((J)=>X[J]===Z)}getNames(){return Object.keys(this.map)}getNode(Z){return this.map[Z]}newName(Z){if(!Z)Z=this.prefix;let X=Object.keys(this.map);for(let J=1;;++J){let G=`${Z}${J}`;if(!X.includes(G))return G}}resolveNodes(){let{map:Z,_cstAliases:X}=this;Object.keys(Z).forEach((J)=>{Z[J]=Z[J].resolved}),X.forEach((J)=>{J.source=J.source.resolved}),delete this._cstAliases}setAnchor(Z,X){if(Z!=null&&!b9.validAnchorNode(Z))throw Error("Anchors may only be set for Scalar, Seq and Map nodes");if(X&&/[\x00-\x19\s,[\]{}]/.test(X))throw Error("Anchor names must not contain whitespace or control characters");let{map:J}=this,G=Z&&Object.keys(J).find((Q)=>J[Q]===Z);if(G){if(!X)return G;else if(G!==X)delete J[G],J[X]=Z}else{if(!X){if(!Z)return null;X=this.newName()}J[X]=Z}return X}}function cM(Z,X){let J={before:[],after:[]},G=void 0,Q=!1;for(let U of X)if(U.valueRange){if(G!==void 0){Z.errors.push(new F1(U,"Document contains trailing content not separated by a ... or --- line"));break}let W=y0(Z,U);if(Q)W.spaceBefore=!0,Q=!1;G=W}else if(U.comment!==null)(G===void 0?J.before:J.after).push(U.comment);else if(U.type===x.BLANK_LINE){if(Q=!0,G===void 0&&J.before.length>0&&!Z.commentBefore)Z.commentBefore=J.before.join(`
140
+ ${U.comment}`:Q.comment;Q=U}J.items[G]=Q instanceof X1?Q:new X1(Q)}return J}function HU(Z,X,J){let G=new p1(Z);G.tag="tag:yaml.org,2002:pairs";for(let Q of X){let U,W;if(Array.isArray(Q))if(Q.length===2)U=Q[0],W=Q[1];else throw TypeError(`Expected [key, value] tuple: ${Q}`);else if(Q&&Q instanceof Object){let Y=Object.keys(Q);if(Y.length===1)U=Y[0],W=Q[U];else throw TypeError(`Expected { key: value } tuple: ${Q}`)}else U=Q;let q=Z.createPair(U,W,J);G.items.push(q)}return G}function EM(Z,X){let J=YU(Z,X),G=[];for(let{key:Q}of J.items)if(Q instanceof G1)if(G.includes(Q.value))throw new s(X,"Ordered maps must not include duplicate keys");else G.push(Q.value);return Object.assign(new Y7,J)}function SM(Z,X,J){let G=HU(Z,X,J),Q=new Y7;return Q.items=G.items,Q}function bM(Z,X){let J=u6(Z,X);if(!J.hasAllNullValues())throw new s(X,"Set items must all have null values");return Object.assign(new H7,J)}function xM(Z,X,J){let G=new H7;for(let Q of X)G.items.push(Z.createPair(Q,null,J));return G}function $U(Z){let X=typeof process<"u"&&process.env||{};if(Z){if(typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u")return!YAML_SILENCE_DEPRECATION_WARNINGS;return!X.YAML_SILENCE_DEPRECATION_WARNINGS}if(typeof YAML_SILENCE_WARNINGS<"u")return!YAML_SILENCE_WARNINGS;return!X.YAML_SILENCE_WARNINGS}function T9(Z,X){if($U(!1)){let J=typeof process<"u"&&process.emitWarning;if(J)J(Z,X);else console.warn(X?`${X}: ${Z}`:Z)}}function zU(Z,X){if(!qU[Z]&&$U(!0)){qU[Z]=!0;let J=`The option '${Z}' will be removed in a future release`;J+=X?`, use '${X}' instead.`:".",T9(J,"DeprecationWarning")}}var R9,O9,Y7,N9,H7,L9,I9=(Z,X)=>{let J=X.split(":").reduce((G,Q)=>G*60+Number(Q),0);return Z==="-"?-J:J},KU=({value:Z})=>{if(isNaN(Z)||!isFinite(Z))return W0(Z);let X="";if(Z<0)X="-",Z=Math.abs(Z);let J=[Z%60];if(Z<60)J.unshift(0);else if(Z=Math.round((Z-J[0])/60),J.unshift(Z%60),Z>=60)Z=Math.round((Z-J[0])/60),J.unshift(Z);return X+J.map((G)=>G<10?"0"+String(G):String(G)).join(":").replace(/000000\d*$/,"")},A9,P9,w9,qU;var C9=C(()=>{G7();f6();R9={identify:(Z)=>Z instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(Z,X)=>{let J=O4(Z,X);if(typeof Buffer==="function")return Buffer.from(J,"base64");else if(typeof atob==="function"){let G=atob(J.replace(/[\n\r]/g,"")),Q=new Uint8Array(G.length);for(let U=0;U<G.length;++U)Q[U]=G.charCodeAt(U);return Q}else return Z.errors.push(new c0(X,"This environment does not support reading binary tags; either Buffer or atob is required")),null},options:R4,stringify:({comment:Z,type:X,value:J},G,Q,U)=>{let W;if(typeof Buffer==="function")W=J instanceof Buffer?J.toString("base64"):Buffer.from(J.buffer).toString("base64");else if(typeof btoa==="function"){let q="";for(let Y=0;Y<J.length;++Y)q+=String.fromCharCode(J[Y]);W=btoa(q)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(!X)X=R4.defaultType;if(X===x.QUOTE_DOUBLE)J=W;else{let{lineWidth:q}=R4,Y=Math.ceil(W.length/q),H=Array(Y);for(let K=0,$=0;K<Y;++K,$+=q)H[K]=W.substr($,q);J=H.join(X===x.BLOCK_LITERAL?`
141
+ `:" ")}return q7({comment:Z,type:X,value:J},G,Q,U)}};O9={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:YU,createNode:HU};Y7=class Y7 extends p1{constructor(){super();M1(this,"add",P1.prototype.add.bind(this)),M1(this,"delete",P1.prototype.delete.bind(this)),M1(this,"get",P1.prototype.get.bind(this)),M1(this,"has",P1.prototype.has.bind(this)),M1(this,"set",P1.prototype.set.bind(this)),this.tag=Y7.tag}toJSON(Z,X){let J=new Map;if(X&&X.onCreate)X.onCreate(J);for(let G of this.items){let Q,U;if(G instanceof X1)Q=c1(G.key,"",X),U=c1(G.value,Q,X);else Q=c1(G,"",X);if(J.has(Q))throw Error("Ordered maps must not include duplicate keys");J.set(Q,U)}return J}};M1(Y7,"tag","tag:yaml.org,2002:omap");N9={identify:(Z)=>Z instanceof Map,nodeClass:Y7,default:!1,tag:"tag:yaml.org,2002:omap",resolve:EM,createNode:SM};H7=class H7 extends P1{constructor(){super();this.tag=H7.tag}add(Z){let X=Z instanceof X1?Z:new X1(Z);if(!a0(this.items,X.key))this.items.push(X)}get(Z,X){let J=a0(this.items,Z);return!X&&J instanceof X1?J.key instanceof G1?J.key.value:J.key:J}set(Z,X){if(typeof X!=="boolean")throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof X}`);let J=a0(this.items,Z);if(J&&!X)this.items.splice(this.items.indexOf(J),1);else if(!J&&X)this.items.push(new X1(Z))}toJSON(Z,X){return super.toJSON(Z,X,Set)}toString(Z,X,J){if(!Z)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(Z,X,J);else throw Error("Set items must all have null values")}};M1(H7,"tag","tag:yaml.org,2002:set");L9={identify:(Z)=>Z instanceof Set,nodeClass:H7,default:!1,tag:"tag:yaml.org,2002:set",resolve:bM,createNode:xM},A9={identify:(Z)=>typeof Z==="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(Z,X,J)=>I9(X,J.replace(/_/g,"")),stringify:KU},P9={identify:(Z)=>typeof Z==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(Z,X,J)=>I9(X,J.replace(/_/g,"")),stringify:KU},w9={identify:(Z)=>Z 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:(Z,X,J,G,Q,U,W,q,Y)=>{if(q)q=(q+"00").substr(1,3);let H=Date.UTC(X,J-1,G,Q||0,U||0,W||0,q||0);if(Y&&Y!=="Z"){let K=I9(Y[0],Y.slice(1));if(Math.abs(K)<30)K*=60;H-=60000*K}return new Date(H)},stringify:({value:Z})=>Z.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};qU={}});function gM(Z,X,J){let G=new P1(Z);if(X instanceof Map)for(let[Q,U]of X)G.items.push(Z.createPair(Q,U,J));else if(X&&typeof X==="object")for(let Q of Object.keys(X))G.items.push(Z.createPair(Q,X[Q],J));if(typeof Z.sortMapEntries==="function")G.items.sort(Z.sortMapEntries);return G}function kM(Z,X,J){let G=new p1(Z);if(X&&X[Symbol.iterator])for(let Q of X){let U=Z.createNode(Q,J.wrapScalars,null,J);G.items.push(U)}return G}function FU(Z,X,J){let{value:G}=Z;if(r6(G)&&G>=0)return J+G.toString(X);return W0(Z)}function i6(Z,X,J){let G=X.replace(/_/g,"");if(_0.asBigInt){switch(J){case 2:G=`0b${G}`;break;case 8:G=`0o${G}`;break;case 16:G=`0x${G}`;break}let U=BigInt(G);return Z==="-"?BigInt(-1)*U:U}let Q=parseInt(G,J);return Z==="-"?-1*Q:Q}function j9(Z,X,J){let{value:G}=Z;if(e7(G)){let Q=G.toString(X);return G<0?"-"+J+Q.substr(1):J+Q}return W0(Z)}function pM(Z,X,J){if(X){let G=J.filter((U)=>U.tag===X),Q=G.find((U)=>!U.format)||G[0];if(!Q)throw Error(`Tag ${X} not found`);return Q}return J.find((G)=>(G.identify&&G.identify(Z)||G.class&&Z instanceof G.class)&&!G.format)}function fM(Z,X,J){if(Z instanceof C1)return Z;let{defaultPrefix:G,onTagObj:Q,prevObjects:U,schema:W,wrapScalars:q}=J;if(X&&X.startsWith("!!"))X=G+X.slice(2);let Y=pM(Z,X,W.tags);if(!Y){if(typeof Z.toJSON==="function")Z=Z.toJSON();if(!Z||typeof Z!=="object")return q?new G1(Z):Z;Y=Z instanceof Map?Z5:Z[Symbol.iterator]?d6:Z5}if(Q)Q(Y),delete J.onTagObj;let H={value:void 0,node:void 0};if(Z&&typeof Z==="object"&&U){let K=U.get(Z);if(K){let $=new n1(K);return J.aliasNodes.push($),$}H.value=Z,U.set(Z,H)}if(H.node=Y.createNode?Y.createNode(J.schema,Z,J):q?new G1(Z):Z,X&&H.node instanceof C1)H.node.tag=X;return H.node}function lM(Z,X,J,G){let Q=Z[G.replace(/\W/g,"")];if(!Q){let U=Object.keys(Z).map((W)=>JSON.stringify(W)).join(", ");throw Error(`Unknown schema "${G}"; use one of ${U}`)}if(Array.isArray(J))for(let U of J)Q=Q.concat(U);else if(typeof J==="function")Q=J(Q.slice());for(let U=0;U<Q.length;++U){let W=Q[U];if(typeof W==="string"){let q=X[W];if(!q){let Y=Object.keys(X).map((H)=>JSON.stringify(H)).join(", ");throw Error(`Unknown custom tag "${W}"; use one of ${Y}`)}Q[U]=q}}return Q}class o0{constructor({customTags:Z,merge:X,schema:J,sortMapEntries:G,tags:Q}){if(this.merge=!!X,this.name=J,this.sortMapEntries=G===!0?iM:G||null,!Z&&Q)zU("tags","customTags");this.tags=lM(mM,uM,Z||Q,J)}createNode(Z,X,J,G){let Q={defaultPrefix:o0.defaultPrefix,schema:this,wrapScalars:X},U=G?Object.assign(G,Q):Q;return fM(Z,J,U)}createPair(Z,X,J){if(!J)J={wrapScalars:!0};let G=this.createNode(Z,J.wrapScalars,null,J),Q=this.createNode(X,J.wrapScalars,null,J);return new X1(G,Q)}}var Z5,d6,yM,E9,r6=(Z)=>typeof Z==="bigint"||Number.isInteger(Z),S9=(Z,X,J)=>_0.asBigInt?BigInt(Z):parseInt(X,J),MU,DU,_U,RU,OU,NU,LU,IU,vM,VU=(Z)=>typeof Z==="bigint"||Number.isInteger(Z),l6=({value:Z})=>JSON.stringify(Z),AU,BU=({value:Z})=>Z?U0.trueStr:U0.falseStr,e7=(Z)=>typeof Z==="bigint"||Number.isInteger(Z),hM,mM,uM,iM=(Z,X)=>Z.key<X.key?-1:Z.key>X.key?1:0;var PU=C(()=>{G7();f6();C9();Z5={createNode:gM,default:!0,nodeClass:P1,tag:"tag:yaml.org,2002:map",resolve:u6};d6={createNode:kM,default:!0,nodeClass:p1,tag:"tag:yaml.org,2002:seq",resolve:p6},yM={identify:(Z)=>typeof Z==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:O4,stringify(Z,X,J,G){return X=Object.assign({actualString:!0},X),q7(Z,X,J,G)},options:Q0},E9=[Z5,d6,yM];MU={identify:(Z)=>Z==null,createNode:(Z,X,J)=>J.wrapScalars?new G1(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:s0,stringify:()=>s0.nullStr},DU={identify:(Z)=>typeof Z==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:(Z)=>Z[0]==="t"||Z[0]==="T",options:U0,stringify:({value:Z})=>Z?U0.trueStr:U0.falseStr},_U={identify:(Z)=>r6(Z)&&Z>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(Z,X)=>S9(Z,X,8),options:_0,stringify:(Z)=>FU(Z,8,"0o")},RU={identify:r6,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(Z)=>S9(Z,Z,10),options:_0,stringify:W0},OU={identify:(Z)=>r6(Z)&&Z>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(Z,X)=>S9(Z,X,16),options:_0,stringify:(Z)=>FU(Z,16,"0x")},NU={identify:(Z)=>typeof Z==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(Z,X)=>X?NaN:Z[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:W0},LU={identify:(Z)=>typeof Z==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:(Z)=>parseFloat(Z),stringify:({value:Z})=>Number(Z).toExponential()},IU={identify:(Z)=>typeof Z==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(Z,X,J){let G=X||J,Q=new G1(parseFloat(Z));if(G&&G[G.length-1]==="0")Q.minFractionDigits=G.length;return Q},stringify:W0},vM=E9.concat([MU,DU,_U,RU,OU,NU,LU,IU]),AU=[Z5,d6,{identify:(Z)=>typeof Z==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:O4,stringify:l6},{identify:(Z)=>Z==null,createNode:(Z,X,J)=>J.wrapScalars?new G1(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:l6},{identify:(Z)=>typeof Z==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:(Z)=>Z==="true",stringify:l6},{identify:VU,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(Z)=>_0.asBigInt?BigInt(Z):parseInt(Z,10),stringify:({value:Z})=>VU(Z)?Z.toString():JSON.stringify(Z)},{identify:(Z)=>typeof Z==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:(Z)=>parseFloat(Z),stringify:l6}];AU.scalarFallback=(Z)=>{throw SyntaxError(`Unresolved plain scalar ${JSON.stringify(Z)}`)};hM=E9.concat([{identify:(Z)=>Z==null,createNode:(Z,X,J)=>J.wrapScalars?new G1(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:s0,stringify:()=>s0.nullStr},{identify:(Z)=>typeof Z==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:U0,stringify:BU},{identify:(Z)=>typeof Z==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:U0,stringify:BU},{identify:e7,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(Z,X,J)=>i6(X,J,2),stringify:(Z)=>j9(Z,2,"0b")},{identify:e7,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(Z,X,J)=>i6(X,J,8),stringify:(Z)=>j9(Z,8,"0")},{identify:e7,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(Z,X,J)=>i6(X,J,10),stringify:W0},{identify:e7,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(Z,X,J)=>i6(X,J,16),stringify:(Z)=>j9(Z,16,"0x")},{identify:(Z)=>typeof Z==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(Z,X)=>X?NaN:Z[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:W0},{identify:(Z)=>typeof Z==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:(Z)=>parseFloat(Z.replace(/_/g,"")),stringify:({value:Z})=>Number(Z).toExponential()},{identify:(Z)=>typeof Z==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(Z,X){let J=new G1(parseFloat(Z.replace(/_/g,"")));if(X){let G=X.replace(/_/g,"");if(G[G.length-1]==="0")J.minFractionDigits=G.length}return J},stringify:W0}],R9,N9,O9,L9,A9,P9,w9),mM={core:vM,failsafe:E9,json:AU,yaml11:hM},uM={binary:R9,bool:DU,float:IU,floatExp:LU,floatNaN:NU,floatTime:P9,int:RU,intHex:OU,intOct:_U,intTime:A9,map:Z5,null:MU,omap:N9,pairs:O9,seq:d6,set:L9,timestamp:w9};M1(o0,"defaultPrefix",J7);M1(o0,"defaultTags",M0)});var jU={};P7(jU,{YAML:()=>GD});function wU(Z,X){if((Z.version||Z.options.version)==="1.0"){let Q=X.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(Q)return"!"+Q[1];let U=X.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return U?`!${U[1]}/${U[2]}`:`!${X.replace(/^tag:/,"")}`}let J=Z.tagPrefixes.find((Q)=>X.indexOf(Q.prefix)===0);if(!J){let Q=Z.getDefaults().tagPrefixes;J=Q&&Q.find((U)=>X.indexOf(U.prefix)===0)}if(!J)return X[0]==="!"?X:`!<${X}>`;let G=X.substr(J.prefix.length).replace(/[!,[\]{}]/g,(Q)=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[Q]);return J.handle+G}function rM(Z,X){if(X instanceof n1)return n1;if(X.tag){let Q=Z.filter((U)=>U.tag===X.tag);if(Q.length>0)return Q.find((U)=>U.format===X.format)||Q[0]}let J,G;if(X instanceof G1){G=X.value;let Q=Z.filter((U)=>U.identify&&U.identify(G)||U.class&&G instanceof U.class);J=Q.find((U)=>U.format===X.format)||Q.find((U)=>!U.format)}else G=X,J=Z.find((Q)=>Q.nodeClass&&G instanceof Q.nodeClass);if(!J){let Q=G&&G.constructor?G.constructor.name:typeof G;throw Error(`Tag not resolved for ${Q} value`)}return J}function cM(Z,X,{anchors:J,doc:G}){let Q=[],U=G.anchors.getName(Z);if(U)J[U]=Z,Q.push(`&${U}`);if(Z.tag)Q.push(wU(G,Z.tag));else if(!X.default)Q.push(wU(G,X.tag));return Q.join(" ")}function c6(Z,X,J,G){let{anchors:Q,schema:U}=X.doc,W;if(!(Z instanceof C1)){let H={aliasNodes:[],onTagObj:(K)=>W=K,prevObjects:new Map};Z=U.createNode(Z,!0,null,H);for(let K of H.aliasNodes){K.source=K.source.node;let $=Q.getName(K.source);if(!$)$=Q.newName(),Q.map[$]=K.source}}if(Z instanceof X1)return Z.toString(X,J,G);if(!W)W=rM(U.tags,Z);let q=cM(Z,W,X);if(q.length>0)X.indentAtStart=(X.indentAtStart||0)+q.length+1;let Y=typeof W.stringify==="function"?W.stringify(Z,X,J,G):Z instanceof G1?q7(Z,X,J,G):Z.toString(X,J,G);if(!q)return Y;return Z instanceof G1||Y[0]==="{"||Y[0]==="["?`${q} ${Y}`:`${q}
142
+ ${X.indent}${Y}`}class b9{static validAnchorNode(Z){return Z instanceof G1||Z instanceof p1||Z instanceof P1}constructor(Z){M1(this,"map",Object.create(null)),this.prefix=Z}createAlias(Z,X){return this.setAnchor(Z,X),new n1(Z)}createMergePair(...Z){let X=new v6;return X.value.items=Z.map((J)=>{if(J instanceof n1){if(J.source instanceof P1)return J}else if(J instanceof P1)return this.createAlias(J);throw Error("Merge sources must be Map nodes or their Aliases")}),X}getName(Z){let{map:X}=this;return Object.keys(X).find((J)=>X[J]===Z)}getNames(){return Object.keys(this.map)}getNode(Z){return this.map[Z]}newName(Z){if(!Z)Z=this.prefix;let X=Object.keys(this.map);for(let J=1;;++J){let G=`${Z}${J}`;if(!X.includes(G))return G}}resolveNodes(){let{map:Z,_cstAliases:X}=this;Object.keys(Z).forEach((J)=>{Z[J]=Z[J].resolved}),X.forEach((J)=>{J.source=J.source.resolved}),delete this._cstAliases}setAnchor(Z,X){if(Z!=null&&!b9.validAnchorNode(Z))throw Error("Anchors may only be set for Scalar, Seq and Map nodes");if(X&&/[\x00-\x19\s,[\]{}]/.test(X))throw Error("Anchor names must not contain whitespace or control characters");let{map:J}=this,G=Z&&Object.keys(J).find((Q)=>J[Q]===Z);if(G){if(!X)return G;else if(G!==X)delete J[G],J[X]=Z}else{if(!X){if(!Z)return null;X=this.newName()}J[X]=Z}return X}}function aM(Z,X){let J={before:[],after:[]},G=void 0,Q=!1;for(let U of X)if(U.valueRange){if(G!==void 0){Z.errors.push(new F1(U,"Document contains trailing content not separated by a ... or --- line"));break}let W=y0(Z,U);if(Q)W.spaceBefore=!0,Q=!1;G=W}else if(U.comment!==null)(G===void 0?J.before:J.after).push(U.comment);else if(U.type===x.BLANK_LINE){if(Q=!0,G===void 0&&J.before.length>0&&!Z.commentBefore)Z.commentBefore=J.before.join(`
143
143
  `),J.before=[]}if(Z.contents=G||null,!G)Z.comment=J.before.concat(J.after).join(`
144
144
  `)||null;else{let U=J.before.join(`
145
145
  `);if(U){let W=G instanceof H1&&G.items[0]?G.items[0]:G;W.commentBefore=W.commentBefore?`${U}
146
146
  ${W.commentBefore}`:U}Z.comment=J.after.join(`
147
- `)||null}}function nM({tagPrefixes:Z},X){let[J,G]=X.parameters;if(!J||!G)throw new s(X,"Insufficient parameters given for %TAG directive");if(Z.some((Q)=>Q.handle===J))throw new s(X,"The %TAG directive must only be given at most once per handle in the same document.");return{handle:J,prefix:G}}function aM(Z,X){let[J]=X.parameters;if(X.name==="YAML:1.0")J="1.0";if(!J)throw new s(X,"Insufficient parameters given for %YAML directive");if(!wU[J]){let Q=`Document will be parsed as YAML ${Z.version||Z.options.version} rather than YAML ${J}`;Z.warnings.push(new k0(X,Q))}return J}function sM(Z,X,J){let G=[],Q=!1;for(let U of X){let{comment:W,name:q}=U;switch(q){case"TAG":try{Z.tagPrefixes.push(nM(Z,U))}catch(Y){Z.errors.push(Y)}Q=!0;break;case"YAML":case"YAML:1.0":if(Z.version)Z.errors.push(new s(U,"The %YAML directive must only be given at most once per document."));try{Z.version=aM(Z,U)}catch(Y){Z.errors.push(Y)}Q=!0;break;default:if(q){let Y=`YAML only supports %TAG and %YAML directives, and not %${q}`;Z.warnings.push(new k0(U,Y))}}if(W)G.push(W)}if(J&&!Q&&(Z.version||J.version||Z.options.version)==="1.1"){let U=({handle:W,prefix:q})=>({handle:W,prefix:q});Z.tagPrefixes=J.tagPrefixes.map(U),Z.version=J.version}Z.commentBefore=G.join(`
148
- `)||null}function K7(Z){if(Z instanceof H1)return!0;throw Error("Expected a YAML collection as document contents")}class $7{constructor(Z){this.anchors=new b9(Z.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=Z,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(Z){return K7(this.contents),this.contents.add(Z)}addIn(Z,X){K7(this.contents),this.contents.addIn(Z,X)}delete(Z){return K7(this.contents),this.contents.delete(Z)}deleteIn(Z){if(W7(Z)){if(this.contents==null)return!1;return this.contents=null,!0}return K7(this.contents),this.contents.deleteIn(Z)}getDefaults(){return $7.defaults[this.version]||$7.defaults[this.options.version]||{}}get(Z,X){return this.contents instanceof H1?this.contents.get(Z,X):void 0}getIn(Z,X){if(W7(Z))return!X&&this.contents instanceof G1?this.contents.value:this.contents;return this.contents instanceof H1?this.contents.getIn(Z,X):void 0}has(Z){return this.contents instanceof H1?this.contents.has(Z):!1}hasIn(Z){if(W7(Z))return this.contents!==void 0;return this.contents instanceof H1?this.contents.hasIn(Z):!1}set(Z,X){K7(this.contents),this.contents.set(Z,X)}setIn(Z,X){if(W7(Z))this.contents=X;else K7(this.contents),this.contents.setIn(Z,X)}setSchema(Z,X){if(!Z&&!X&&this.schema)return;if(typeof Z==="number")Z=Z.toFixed(1);if(Z==="1.0"||Z==="1.1"||Z==="1.2"){if(this.version)this.version=Z;else this.options.version=Z;delete this.options.schema}else if(Z&&typeof Z==="string")this.options.schema=Z;if(Array.isArray(X))this.options.customTags=X;let J=Object.assign({},this.getDefaults(),this.options);this.schema=new o0(J)}parse(Z,X){if(this.options.keepCstNodes)this.cstNode=Z;if(this.options.keepNodeTypes)this.type="DOCUMENT";let{directives:J=[],contents:G=[],directivesEndMarker:Q,error:U,valueRange:W}=Z;if(U){if(!U.source)U.source=this;this.errors.push(U)}if(sM(this,J,X),Q)this.directivesEndMarker=!0;if(this.range=W?[W.start,W.end]:null,this.setSchema(),this.anchors._cstAliases=[],cM(this,G),this.anchors.resolveNodes(),this.options.prettyErrors){for(let q of this.errors)if(q instanceof D0)q.makePretty();for(let q of this.warnings)if(q instanceof D0)q.makePretty()}return this}listNonDefaultTags(){return rM(this.contents).filter((Z)=>Z.indexOf(o0.defaultPrefix)!==0)}setTagPrefix(Z,X){if(Z[0]!=="!"||Z[Z.length-1]!=="!")throw Error("Handle must start and end with !");if(X){let J=this.tagPrefixes.find((G)=>G.handle===Z);if(J)J.prefix=X;else this.tagPrefixes.push({handle:Z,prefix:X})}else this.tagPrefixes=this.tagPrefixes.filter((J)=>J.handle!==Z)}toJSON(Z,X){let{keepBlobsInJSON:J,mapAsMap:G,maxAliasCount:Q}=this.options,U=J&&(typeof Z!=="string"||!(this.contents instanceof G1)),W={doc:this,indentStep:" ",keep:U,mapAsMap:U&&!!G,maxAliasCount:Q,stringify:c6},q=Object.keys(this.anchors.map);if(q.length>0)W.anchors=new Map(q.map((H)=>[this.anchors.map[H],{alias:[],aliasCount:0,count:1}]));let Y=c1(this.contents,Z,W);if(typeof X==="function"&&W.anchors)for(let{count:H,res:K}of W.anchors.values())X(K,H);return Y}toString(){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");let Z=this.options.indent;if(!Number.isInteger(Z)||Z<=0){let q=JSON.stringify(Z);throw Error(`"indent" option must be a positive integer, not ${q}`)}this.setSchema();let X=[],J=!1;if(this.version){let q="%YAML 1.2";if(this.schema.name==="yaml-1.1"){if(this.version==="1.0")q="%YAML:1.0";else if(this.version==="1.1")q="%YAML 1.1"}X.push(q),J=!0}let G=this.listNonDefaultTags();if(this.tagPrefixes.forEach(({handle:q,prefix:Y})=>{if(G.some((H)=>H.indexOf(Y)===0))X.push(`%TAG ${q} ${Y}`),J=!0}),J||this.directivesEndMarker)X.push("---");if(this.commentBefore){if(J||!this.directivesEndMarker)X.unshift("");X.unshift(this.commentBefore.replace(/^/gm,"#"))}let Q={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(Z),stringify:c6},U=!1,W=null;if(this.contents){if(this.contents instanceof C1){if(this.contents.spaceBefore&&(J||this.directivesEndMarker))X.push("");if(this.contents.commentBefore)X.push(this.contents.commentBefore.replace(/^/gm,"#"));Q.forceBlockIndent=!!this.comment,W=this.contents.comment}let q=W?null:()=>U=!0,Y=c6(this.contents,Q,()=>W=null,q);X.push(D4(Y,"",W))}else if(this.contents!==void 0)X.push(c6(this.contents,Q));if(this.comment){if((!U||W)&&X[X.length-1]!=="")X.push("");X.push(this.comment.replace(/^/gm,"#"))}return X.join(`
147
+ `)||null}}function sM({tagPrefixes:Z},X){let[J,G]=X.parameters;if(!J||!G)throw new s(X,"Insufficient parameters given for %TAG directive");if(Z.some((Q)=>Q.handle===J))throw new s(X,"The %TAG directive must only be given at most once per handle in the same document.");return{handle:J,prefix:G}}function oM(Z,X){let[J]=X.parameters;if(X.name==="YAML:1.0")J="1.0";if(!J)throw new s(X,"Insufficient parameters given for %YAML directive");if(!TU[J]){let Q=`Document will be parsed as YAML ${Z.version||Z.options.version} rather than YAML ${J}`;Z.warnings.push(new k0(X,Q))}return J}function tM(Z,X,J){let G=[],Q=!1;for(let U of X){let{comment:W,name:q}=U;switch(q){case"TAG":try{Z.tagPrefixes.push(sM(Z,U))}catch(Y){Z.errors.push(Y)}Q=!0;break;case"YAML":case"YAML:1.0":if(Z.version)Z.errors.push(new s(U,"The %YAML directive must only be given at most once per document."));try{Z.version=oM(Z,U)}catch(Y){Z.errors.push(Y)}Q=!0;break;default:if(q){let Y=`YAML only supports %TAG and %YAML directives, and not %${q}`;Z.warnings.push(new k0(U,Y))}}if(W)G.push(W)}if(J&&!Q&&(Z.version||J.version||Z.options.version)==="1.1"){let U=({handle:W,prefix:q})=>({handle:W,prefix:q});Z.tagPrefixes=J.tagPrefixes.map(U),Z.version=J.version}Z.commentBefore=G.join(`
148
+ `)||null}function K7(Z){if(Z instanceof H1)return!0;throw Error("Expected a YAML collection as document contents")}class $7{constructor(Z){this.anchors=new b9(Z.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=Z,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(Z){return K7(this.contents),this.contents.add(Z)}addIn(Z,X){K7(this.contents),this.contents.addIn(Z,X)}delete(Z){return K7(this.contents),this.contents.delete(Z)}deleteIn(Z){if(W7(Z)){if(this.contents==null)return!1;return this.contents=null,!0}return K7(this.contents),this.contents.deleteIn(Z)}getDefaults(){return $7.defaults[this.version]||$7.defaults[this.options.version]||{}}get(Z,X){return this.contents instanceof H1?this.contents.get(Z,X):void 0}getIn(Z,X){if(W7(Z))return!X&&this.contents instanceof G1?this.contents.value:this.contents;return this.contents instanceof H1?this.contents.getIn(Z,X):void 0}has(Z){return this.contents instanceof H1?this.contents.has(Z):!1}hasIn(Z){if(W7(Z))return this.contents!==void 0;return this.contents instanceof H1?this.contents.hasIn(Z):!1}set(Z,X){K7(this.contents),this.contents.set(Z,X)}setIn(Z,X){if(W7(Z))this.contents=X;else K7(this.contents),this.contents.setIn(Z,X)}setSchema(Z,X){if(!Z&&!X&&this.schema)return;if(typeof Z==="number")Z=Z.toFixed(1);if(Z==="1.0"||Z==="1.1"||Z==="1.2"){if(this.version)this.version=Z;else this.options.version=Z;delete this.options.schema}else if(Z&&typeof Z==="string")this.options.schema=Z;if(Array.isArray(X))this.options.customTags=X;let J=Object.assign({},this.getDefaults(),this.options);this.schema=new o0(J)}parse(Z,X){if(this.options.keepCstNodes)this.cstNode=Z;if(this.options.keepNodeTypes)this.type="DOCUMENT";let{directives:J=[],contents:G=[],directivesEndMarker:Q,error:U,valueRange:W}=Z;if(U){if(!U.source)U.source=this;this.errors.push(U)}if(tM(this,J,X),Q)this.directivesEndMarker=!0;if(this.range=W?[W.start,W.end]:null,this.setSchema(),this.anchors._cstAliases=[],aM(this,G),this.anchors.resolveNodes(),this.options.prettyErrors){for(let q of this.errors)if(q instanceof D0)q.makePretty();for(let q of this.warnings)if(q instanceof D0)q.makePretty()}return this}listNonDefaultTags(){return nM(this.contents).filter((Z)=>Z.indexOf(o0.defaultPrefix)!==0)}setTagPrefix(Z,X){if(Z[0]!=="!"||Z[Z.length-1]!=="!")throw Error("Handle must start and end with !");if(X){let J=this.tagPrefixes.find((G)=>G.handle===Z);if(J)J.prefix=X;else this.tagPrefixes.push({handle:Z,prefix:X})}else this.tagPrefixes=this.tagPrefixes.filter((J)=>J.handle!==Z)}toJSON(Z,X){let{keepBlobsInJSON:J,mapAsMap:G,maxAliasCount:Q}=this.options,U=J&&(typeof Z!=="string"||!(this.contents instanceof G1)),W={doc:this,indentStep:" ",keep:U,mapAsMap:U&&!!G,maxAliasCount:Q,stringify:c6},q=Object.keys(this.anchors.map);if(q.length>0)W.anchors=new Map(q.map((H)=>[this.anchors.map[H],{alias:[],aliasCount:0,count:1}]));let Y=c1(this.contents,Z,W);if(typeof X==="function"&&W.anchors)for(let{count:H,res:K}of W.anchors.values())X(K,H);return Y}toString(){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");let Z=this.options.indent;if(!Number.isInteger(Z)||Z<=0){let q=JSON.stringify(Z);throw Error(`"indent" option must be a positive integer, not ${q}`)}this.setSchema();let X=[],J=!1;if(this.version){let q="%YAML 1.2";if(this.schema.name==="yaml-1.1"){if(this.version==="1.0")q="%YAML:1.0";else if(this.version==="1.1")q="%YAML 1.1"}X.push(q),J=!0}let G=this.listNonDefaultTags();if(this.tagPrefixes.forEach(({handle:q,prefix:Y})=>{if(G.some((H)=>H.indexOf(Y)===0))X.push(`%TAG ${q} ${Y}`),J=!0}),J||this.directivesEndMarker)X.push("---");if(this.commentBefore){if(J||!this.directivesEndMarker)X.unshift("");X.unshift(this.commentBefore.replace(/^/gm,"#"))}let Q={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(Z),stringify:c6},U=!1,W=null;if(this.contents){if(this.contents instanceof C1){if(this.contents.spaceBefore&&(J||this.directivesEndMarker))X.push("");if(this.contents.commentBefore)X.push(this.contents.commentBefore.replace(/^/gm,"#"));Q.forceBlockIndent=!!this.comment,W=this.contents.comment}let q=W?null:()=>U=!0,Y=c6(this.contents,Q,()=>W=null,q);X.push(D4(Y,"",W))}else if(this.contents!==void 0)X.push(c6(this.contents,Q));if(this.comment){if((!U||W)&&X[X.length-1]!=="")X.push("");X.push(this.comment.replace(/^/gm,"#"))}return X.join(`
149
149
  `)+`
150
- `}}function oM(Z,X=!0,J){if(J===void 0&&typeof X==="string")J=X,X=!0;let G=Object.assign({},$7.defaults[a6.version],a6);return new o0(G).createNode(Z,X,J)}function tM(Z,X){let J=[],G;for(let Q of b6(Z)){let U=new X5(X);U.parse(Q,G),J.push(U),G=U}return J}function TU(Z,X){let J=b6(Z),G=new X5(X).parse(J[0]);if(J.length>1)G.errors.unshift(new s(J[1],"Source contains multiple documents; please use YAML.parseAllDocuments()"));return G}function eM(Z,X){let J=TU(Z,X);if(J.warnings.forEach((G)=>T9(G)),J.errors.length>0)throw J.errors[0];return J.toJSON()}function ZD(Z,X){let J=new X5(X);return J.contents=Z,String(J)}var a6,lM,wU,n6=(Z,X)=>{if(Z&&typeof Z==="object"){let{tag:J}=Z;if(Z instanceof H1){if(J)X[J]=!0;Z.items.forEach((G)=>n6(G,X))}else if(Z instanceof X1)n6(Z.key,X),n6(Z.value,X);else if(Z instanceof G1){if(J)X[J]=!0}}return X},rM=(Z)=>Object.keys(n6(Z,{})),X5,XD;var jU=C(()=>{aQ();G7();f6();AU();C9();a6={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},lM={get binary(){return R4},set binary(Z){Object.assign(R4,Z)},get bool(){return U0},set bool(Z){Object.assign(U0,Z)},get int(){return _0},set int(Z){Object.assign(_0,Z)},get null(){return s0},set null(Z){Object.assign(s0,Z)},get str(){return Q0},set str(Z){Object.assign(Q0,Z)}},wU={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:J7},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:J7}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:J7}]}};M1($7,"defaults",wU);X5=class X5 extends $7{constructor(Z){super(Object.assign({},a6,Z))}};XD={createNode:oM,defaultOptions:a6,Document:X5,parse:eM,parseAllDocuments:tM,parseCST:b6,parseDocument:TU,scalarOptions:lM,stringify:ZD}});var SU=h1((dT,EU)=>{EU.exports=(jU(),TY(CU)).YAML});var bU=h1((rT,J5)=>{(function(Z){Z.validate=X,Z.mixin=J;function X(H,K,$){$=J({},X.defaults,$);var B=[];if(K.type==="array")Q(H,H,"",K,$,B);else G(H,K,$,B);return{valid:!B.length,errors:B}}X.defaults={validateFormats:!0,validateFormatsStrict:!1,validateFormatExtensions:!0,additionalProperties:!0},X.messages={required:"is required",allowEmpty:"must not be empty",minLength:"is too short (minimum is %{expected} characters)",maxLength:"is too long (maximum is %{expected} characters)",pattern:"invalid input",minimum:"must be greater than or equal to %{expected}",maximum:"must be less than or equal to %{expected}",exclusiveMinimum:"must be greater than %{expected}",exclusiveMaximum:"must be less than %{expected}",divisibleBy:"must be divisible by %{expected}",minItems:"must contain more than %{expected} items",maxItems:"must contain less than %{expected} items",uniqueItems:"must hold a unique set of values",format:"is not a valid %{expected}",conform:"must conform to given constraint",type:"must be of %{expected} type",additionalProperties:"must not exist"},X.messages.enum="must be present in given enumerator",X.formats={email:/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,"ip-address":/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/i,ipv6:/^([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}$/,"date-time":/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:.\d{1,3})?Z$/,date:/^\d{4}-\d{2}-\d{2}$/,time:/^\d{2}:\d{2}:\d{2}$/,color:/^#[a-z0-9]{6}|#[a-z0-9]{3}|(?:rgb\(\s*(?:[+-]?\d+%?)\s*,\s*(?:[+-]?\d+%?)\s*,\s*(?:[+-]?\d+%?)\s*\))aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow$/i,"host-name":/^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])/,"utc-millisec":{test:function(H){return typeof H==="number"&&H>=0}},regex:{test:function(H){try{new RegExp(H)}catch(K){return!1}return!0}}},X.formatExtensions={url:/^(https?|ftp|git):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i};function J(H){var K=Array.prototype.slice.call(arguments,1);while(K.length){var $=K.shift();if(!$)continue;if(typeof $!=="object")throw TypeError("mixin non-object");for(var B in $)if($.hasOwnProperty(B))H[B]=$[B]}return H}function G(H,K,$,B){var V,M=Object.keys(H),_=[];if(K.properties){V=K.properties;for(var D in V)if(V.hasOwnProperty(D))_.push(D),Q(H,H[D],D,V[D],$,B)}if(K.patternProperties){V=K.patternProperties;for(var D in V)if(V.hasOwnProperty(D)){var R=new RegExp(D);for(var N in H)if(H.hasOwnProperty(N)){if(R.exec(N)!==null)Q(H,H[N],N,V[D],$,B),_.push(N)}}}if(K.additionalProperties===void 0)K.additionalProperties=$.additionalProperties;if(K.additionalProperties!==void 0){var L,E,m=M.filter(function(w){return _.indexOf(w)===-1});if(K.additionalProperties===!1&&m.length>0)for(L=0,E=m.length;L<E;L++)W("additionalProperties",m[L],H[m[L]],!1,B);else if(typeof K.additionalProperties=="object"&&m.length>0)for(L=0,E=m.length;L<E;L++)Q(H,H[m[L]],m[L],K.unvisitedProperties,$,B)}}function Q(H,K,$,B,V,M){var _,D,R,N;function L(w,y,h){if(B[w]!==void 0&&!h(y,B[w]))W(w,$,y,B,M)}if(K===void 0)if(B.required&&B.type!=="any")return W("required",$,void 0,B,M);else return;if(V.cast){if((B.type==="integer"||B.type==="number")&&K==+K)K=+K,H[$]=K;if(B.type==="boolean"){if(K==="true"||K==="1"||K===1)K=!0,H[$]=K;if(K==="false"||K==="0"||K===0)K=!1,H[$]=K}}if(B.format&&V.validateFormats){if(_=B.format,V.validateFormatExtensions)R=X.formatExtensions[_];if(!R)R=X.formats[_];if(!R){if(V.validateFormatsStrict)return W("format",$,K,B,M)}else if(!R.test(K))return W("format",$,K,B,M)}if(B.enum&&B.enum.indexOf(K)===-1)W("enum",$,K,B,M);if(typeof B.dependencies==="string"&&H[B.dependencies]===void 0)W("dependencies",$,null,B,M);if(q(B.dependencies)){for(var E=0,m=B.dependencies.length;E<m;E++)if(H[B.dependencies[E]]===void 0)W("dependencies",$,null,B,M)}if(typeof B.dependencies==="object")G(H,B.dependencies,V,M);U(K,B.type,function(w,y){if(w)return W("type",$,typeof K,B,M);switch(L("conform",K,function(j,P){return P(j,H)}),y||(q(K)?"array":typeof K)){case"string":L("allowEmpty",K,function(j,P){return P?P:j!==""}),L("minLength",K.length,function(j,P){return j>=P}),L("maxLength",K.length,function(j,P){return j<=P}),L("pattern",K,function(j,P){return P=typeof P==="string"?P=new RegExp(P):P,P.test(j)});break;case"integer":case"number":L("minimum",K,function(j,P){return j>=P}),L("maximum",K,function(j,P){return j<=P}),L("exclusiveMinimum",K,function(j,P){return j>P}),L("exclusiveMaximum",K,function(j,P){return j<P}),L("divisibleBy",K,function(j,P){var n=Math.max((j-Math.floor(j)).toString().length-2,(P-Math.floor(P)).toString().length-2);return n=n>0?Math.pow(10,n):1,j*n%(P*n)===0});break;case"array":L("items",K,function(j,P){var n;for(var a=0,v=j.length;a<v;a++)n=[],Q(H,j[a],$,P,V,n),n.forEach(function(f){f.property=($?$+".":"")+a+(f.property?"."+f.property.replace($+".",""):"")}),n.unshift(0,0),Array.prototype.splice.apply(M,n);return!0}),L("minItems",K,function(j,P){return j.length>=P}),L("maxItems",K,function(j,P){return j.length<=P}),L("uniqueItems",K,function(j,P){if(!P)return!0;var n={};for(var a=0,v=j.length;a<v;a++){var f=JSON.stringify(j[a]);if(n[f])return!1;n[f]=!0}return!0});break;case"object":if(B.properties||B.patternProperties||B.additionalProperties){var h=[];G(K,B,V,h),h.forEach(function(j){j.property=$+"."+j.property}),h.unshift(0,0),Array.prototype.splice.apply(M,h)}break}})}function U(H,K,$){var B=!1,V=q(K)?K:[K];if(K===void 0)return $(null,K);for(var M=0,_=V.length;M<_;M++)if(K=V[M].toLowerCase().trim(),K==="string"?typeof H==="string":K==="array"?q(H):K==="object"?H&&typeof H==="object"&&!q(H):K==="number"?typeof H==="number":K==="integer"?typeof H==="number"&&Math.floor(H)===H:K==="null"?H===null:K==="boolean"?typeof H==="boolean":K==="date"?Y(H):K==="any"?typeof H<"u":!1)return $(null,K);$(!0)}function W(H,K,$,B,V){var M={expected:B[H],actual:$,attribute:H,property:K},_=B.messages&&B.messages[H]||B.message||X.messages[H]||"no default message";_=_.replace(/%\{([a-z]+)\}/ig,function(D,R){return M[R.toLowerCase()]||""}),V.push({attribute:H,property:K,expected:B[H],actual:$,message:_})}function q(H){var K=typeof H;if(K==="object"){if(H){if(typeof H.length==="number"&&!H.propertyIsEnumerable("length")&&typeof H.splice==="function")return!0}}return!1}function Y(H){var K=typeof H;if(K==="object"){if(H){if(typeof H.getTime==="function")return!0}}return!1}})(typeof J5==="object"&&J5&&rT?rT:window)});var kU=h1((x9,gU)=>{var xU=x9&&x9.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}},JD=xU(fQ()),GD=SU(),QD=xU(bU()),UD=(Z)=>(X,J)=>{let G=JD.default(X,{type:"yaml"});if(!G){J.message("No yaml node.");return}if(typeof G.value!=="string")J.fail("Invalid yaml node.",G);let Q;try{Q=GD.parse(G.value)}catch(W){J.fail(W,G)}if(Z){let W=QD.default.validate(Q,Z);if(!W.valid){let q=JSON.stringify(W.errors,null,2);J.fail(`Invalid frontmatter: ${q}.`,G)}}let U=J.data;U.frontmatter=Q};gU.exports=UD});function z7(Z,X){let J=String(Z);if(typeof X!=="string")throw TypeError("Expected character");let G=0,Q=J.indexOf(X);while(Q!==-1)G++,Q=J.indexOf(X,Q+X.length);return G}function WD(Z){let X=[],J=-1;while(++J<Z.length)X[J]=t0(Z[J]);return s6(G);function G(...Q){let U=-1;while(++U<X.length)if(X[U].apply(this,Q))return!0;return!1}}function qD(Z){let X=Z;return s6(J);function J(G){let Q=G,U;for(U in Z)if(Q[U]!==X[U])return!1;return!0}}function YD(Z){return s6(X);function X(J){return J&&J.type===Z}}function s6(Z){return X;function X(J,G,Q){return Boolean(KD(J)&&Z.call(this,J,typeof G==="number"?G:void 0,Q||void 0))}}function HD(){return!0}function KD(Z){return Z!==null&&typeof Z==="object"&&"type"in Z}var t0=function(Z){if(Z===null||Z===void 0)return HD;if(typeof Z==="function")return s6(Z);if(typeof Z==="object")return Array.isArray(Z)?WD(Z):qD(Z);if(typeof Z==="string")return YD(Z);throw Error("Expected function, string, or object as test")};var o6=()=>{};function yU(Z){return Z}function L4(Z,X,J,G){let Q;if(typeof X==="function"&&typeof J!=="function")G=J,J=X;else Q=X;let U=t0(Q),W=G?-1:1;q(Z,void 0,[])();function q(Y,H,K){let $=Y&&typeof Y==="object"?Y:{};if(typeof $.type==="string"){let V=typeof $.tagName==="string"?$.tagName:typeof $.name==="string"?$.name:void 0;Object.defineProperty(B,"name",{value:"node ("+yU(Y.type+(V?"<"+V+">":""))+")"})}return B;function B(){let V=vU,M,_,D;if(!X||U(Y,H,K[K.length-1]||void 0)){if(V=$D(J(Y,K)),V[0]===N4)return V}if("children"in Y&&Y.children){let R=Y;if(R.children&&V[0]!==e6){_=(G?R.children.length:-1)+W,D=K.concat(R);while(_>-1&&_<R.children.length){let N=R.children[_];if(M=q(N,_,D)(),M[0]===N4)return M;_=typeof M[1]==="number"?M[1]:_+W}}}return V}}}function $D(Z){if(Array.isArray(Z))return Z;if(typeof Z==="number")return[t6,Z];return Z===null||Z===void 0?vU:[Z]}var vU,t6=!0,N4=!1,e6="skip";var hU=C(()=>{o6();vU=[]});var G5=C(()=>{hU()});function g9(Z,X,J){let Q=t0((J||{}).ignore||[]),U=zD(X),W=-1;while(++W<U.length)L4(Z,"text",q);function q(H,K){let $=-1,B;while(++$<K.length){let V=K[$],M=B?B.children:void 0;if(Q(V,M?M.indexOf(V):void 0,B))return;B=V}if(B)return Y(H,K)}function Y(H,K){let $=K[K.length-1],B=U[W][0],V=U[W][1],M=0,D=$.children.indexOf(H),R=!1,N=[];B.lastIndex=0;let L=B.exec(H.value);while(L){let E=L.index,m={index:L.index,input:L.input,stack:[...K,H]},w=V(...L,m);if(typeof w==="string")w=w.length>0?{type:"text",value:w}:void 0;if(w===!1)B.lastIndex=E+1;else{if(M!==E)N.push({type:"text",value:H.value.slice(M,E)});if(Array.isArray(w))N.push(...w);else if(w)N.push(w);M=E+L[0].length,R=!0}if(!B.global)break;L=B.exec(H.value)}if(R){if(M<H.value.length)N.push({type:"text",value:H.value.slice(M)});$.children.splice(D,1,...N)}else N=[H];return D+N.length}}function zD(Z){let X=[];if(!Array.isArray(Z))throw TypeError("Expected find and replace tuple or list of tuples");let J=!Z[0]||Array.isArray(Z[0])?Z:[Z],G=-1;while(++G<J.length){let Q=J[G];X.push([VD(Q[0]),BD(Q[1])])}return X}function VD(Z){return typeof Z==="string"?new RegExp(c7(Z),"g"):Z}function BD(Z){return typeof Z==="function"?Z:function(){return Z}}var mU=C(()=>{G5();o6()});var uU=C(()=>{mU()});function h9(){return{transforms:[OD],enter:{literalAutolink:FD,literalAutolinkEmail:v9,literalAutolinkHttp:v9,literalAutolinkWww:v9},exit:{literalAutolink:RD,literalAutolinkEmail:_D,literalAutolinkHttp:MD,literalAutolinkWww:DD}}}function m9(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:k9,notInConstruct:y9},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:k9,notInConstruct:y9},{character:":",before:"[ps]",after:"\\/",inConstruct:k9,notInConstruct:y9}]}}function FD(Z){this.enter({type:"link",title:null,url:"",children:[]},Z)}function v9(Z){this.config.enter.autolinkProtocol.call(this,Z)}function MD(Z){this.config.exit.autolinkProtocol.call(this,Z)}function DD(Z){this.config.exit.data.call(this,Z);let X=this.stack[this.stack.length-1];O(X.type==="link"),X.url="http://"+this.sliceSerialize(Z)}function _D(Z){this.config.exit.autolinkEmail.call(this,Z)}function RD(Z){this.exit(Z)}function OD(Z){g9(Z,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ND],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,LD]],{ignore:["link","linkReference"]})}function ND(Z,X,J,G,Q){let U="";if(!pU(Q))return!1;if(/^w/i.test(X))J=X+J,X="",U="http://";if(!ID(J))return!1;let W=AD(J+G);if(!W[0])return!1;let q={type:"link",title:null,url:U+X+W[0],children:[{type:"text",value:X+W[0]}]};if(W[1])return[q,{type:"text",value:W[1]}];return q}function LD(Z,X,J,G){if(!pU(G,!0)||/[-\d_]$/.test(J))return!1;return{type:"link",title:null,url:"mailto:"+X+"@"+J,children:[{type:"text",value:X+"@"+J}]}}function ID(Z){let X=Z.split(".");if(X.length<2||X[X.length-1]&&(/_/.test(X[X.length-1])||!/[a-zA-Z\d]/.test(X[X.length-1]))||X[X.length-2]&&(/_/.test(X[X.length-2])||!/[a-zA-Z\d]/.test(X[X.length-2])))return!1;return!0}function AD(Z){let X=/[!"&'),.:;<>?\]}]+$/.exec(Z);if(!X)return[Z,void 0];Z=Z.slice(0,X.index);let J=X[0],G=J.indexOf(")"),Q=z7(Z,"("),U=z7(Z,")");while(G!==-1&&Q>U)Z+=J.slice(0,G+1),J=J.slice(G+1),G=J.indexOf(")"),U++;return[Z,J]}function pU(Z,X){let J=Z.input.charCodeAt(Z.index-1);return(Z.index===0||b1(J)||r1(J))&&(!X||J!==47)}var k9="phrasing",y9;var fU=C(()=>{o();Z1();uU();y9=["autolink","link","image","label"]});var lU=C(()=>{fU()});function PD(){this.buffer()}function wD(Z){this.enter({type:"footnoteReference",identifier:"",label:""},Z)}function TD(){this.buffer()}function CD(Z){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},Z)}function jD(Z){let X=this.resume(),J=this.stack[this.stack.length-1];O(J.type==="footnoteReference"),J.identifier=S1(this.sliceSerialize(Z)).toLowerCase(),J.label=X}function ED(Z){this.exit(Z)}function SD(Z){let X=this.resume(),J=this.stack[this.stack.length-1];O(J.type==="footnoteDefinition"),J.identifier=S1(this.sliceSerialize(Z)).toLowerCase(),J.label=X}function bD(Z){this.exit(Z)}function xD(){return"["}function iU(Z,X,J,G){let Q=J.createTracker(G),U=Q.move("[^"),W=J.enter("footnoteReference"),q=J.enter("reference");return U+=Q.move(J.safe(J.associationId(Z),{after:"]",before:U})),q(),W(),U+=Q.move("]"),U}function u9(){return{enter:{gfmFootnoteCallString:PD,gfmFootnoteCall:wD,gfmFootnoteDefinitionLabelString:TD,gfmFootnoteDefinition:CD},exit:{gfmFootnoteCallString:jD,gfmFootnoteCall:ED,gfmFootnoteDefinitionLabelString:SD,gfmFootnoteDefinition:bD}}}function p9(Z){let X=!1;if(Z&&Z.firstLineBlank)X=!0;return{handlers:{footnoteDefinition:J,footnoteReference:iU},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function J(G,Q,U,W){let q=U.createTracker(W),Y=q.move("[^"),H=U.enter("footnoteDefinition"),K=U.enter("label");if(Y+=q.move(U.safe(U.associationId(G),{before:Y,after:"]"})),K(),Y+=q.move("]:"),G.children&&G.children.length>0)q.shift(4),Y+=q.move((X?`
151
- `:" ")+U.indentLines(U.containerFlow(G,q.current()),X?dU:gD));return H(),Y}}function gD(Z,X,J){return X===0?Z:dU(Z,X,J)}function dU(Z,X,J){return(J?"":" ")+Z}var rU=C(()=>{o();p4();iU.peek=xD});var cU=C(()=>{rU()});function f9(){return{canContainEols:["delete"],enter:{strikethrough:yD},exit:{strikethrough:vD}}}function l9(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:kD}],handlers:{delete:nU}}}function yD(Z){this.enter({type:"delete",children:[]},Z)}function vD(Z){this.exit(Z)}function nU(Z,X,J,G){let Q=J.createTracker(G),U=J.enter("strikethrough"),W=Q.move("~~");return W+=J.containerPhrasing(Z,{...Q.current(),before:W,after:"~"}),W+=Q.move("~~"),U(),W}function hD(){return"~"}var kD;var aU=C(()=>{kD=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];nU.peek=hD});var sU=C(()=>{aU()});function mD(Z){return Z.length}function tU(Z,X){let J=X||{},G=(J.align||[]).concat(),Q=J.stringLength||mD,U=[],W=[],q=[],Y=[],H=0,K=-1;while(++K<Z.length){let _=[],D=[],R=-1;if(Z[K].length>H)H=Z[K].length;while(++R<Z[K].length){let N=uD(Z[K][R]);if(J.alignDelimiters!==!1){let L=Q(N);if(D[R]=L,Y[R]===void 0||L>Y[R])Y[R]=L}_.push(N)}W[K]=_,q[K]=D}let $=-1;if(typeof G==="object"&&"length"in G)while(++$<H)U[$]=oU(G[$]);else{let _=oU(G);while(++$<H)U[$]=_}$=-1;let B=[],V=[];while(++$<H){let _=U[$],D="",R="";if(_===99)D=":",R=":";else if(_===108)D=":";else if(_===114)R=":";let N=J.alignDelimiters===!1?1:Math.max(1,Y[$]-D.length-R.length),L=D+"-".repeat(N)+R;if(J.alignDelimiters!==!1){if(N=D.length+N+R.length,N>Y[$])Y[$]=N;V[$]=N}B[$]=L}W.splice(1,0,B),q.splice(1,0,V),K=-1;let M=[];while(++K<W.length){let _=W[K],D=q[K];$=-1;let R=[];while(++$<H){let N=_[$]||"",L="",E="";if(J.alignDelimiters!==!1){let m=Y[$]-(D[$]||0),w=U[$];if(w===114)L=" ".repeat(m);else if(w===99)if(m%2)L=" ".repeat(m/2+0.5),E=" ".repeat(m/2-0.5);else L=" ".repeat(m/2),E=L;else E=" ".repeat(m)}if(J.delimiterStart!==!1&&!$)R.push("|");if(J.padding!==!1&&!(J.alignDelimiters===!1&&N==="")&&(J.delimiterStart!==!1||$))R.push(" ");if(J.alignDelimiters!==!1)R.push(L);if(R.push(N),J.alignDelimiters!==!1)R.push(E);if(J.padding!==!1)R.push(" ");if(J.delimiterEnd!==!1||$!==H-1)R.push("|")}M.push(J.delimiterEnd===!1?R.join("").replace(/ +$/,""):R.join(""))}return M.join(`
152
- `)}function uD(Z){return Z===null||Z===void 0?"":String(Z)}function oU(Z){let X=typeof Z==="string"?Z.codePointAt(0):0;return X===67||X===99?99:X===76||X===108?108:X===82||X===114?114:0}function eU(Z,X,J,G){let Q=J.enter("blockquote"),U=J.createTracker(G);U.move("> "),U.shift(2);let W=J.indentLines(J.containerFlow(Z,U.current()),pD);return Q(),W}function pD(Z,X,J){return">"+(J?"":" ")+Z}function XW(Z,X){return ZW(Z,X.inConstruct,!0)&&!ZW(Z,X.notInConstruct,!1)}function ZW(Z,X,J){if(typeof X==="string")X=[X];if(!X||X.length===0)return J;let G=-1;while(++G<X.length)if(Z.includes(X[G]))return!0;return!1}function i9(Z,X,J,G){let Q=-1;while(++Q<J.unsafe.length)if(J.unsafe[Q].character===`
153
- `&&XW(J.stack,J.unsafe[Q]))return/[ \t]/.test(G.before)?"":" ";return"\\\n"}var JW=()=>{};function GW(Z,X){let J=String(Z),G=J.indexOf(X),Q=G,U=0,W=0;if(typeof X!=="string")throw TypeError("Expected substring");while(G!==-1){if(G===Q){if(++U>W)W=U}else U=1;Q=G+X.length,G=J.indexOf(X,Q)}return W}function QW(Z,X){return Boolean(X.options.fences===!1&&Z.value&&!Z.lang&&/[^ \r\n]/.test(Z.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(Z.value))}function UW(Z){let X=Z.options.fence||"`";if(X!=="`"&&X!=="~")throw Error("Cannot serialize code with `"+X+"` for `options.fence`, expected `` ` `` or `~`");return X}function WW(Z,X,J,G){let Q=UW(J),U=Z.value||"",W=Q==="`"?"GraveAccent":"Tilde";if(QW(Z,J)){let $=J.enter("codeIndented"),B=J.indentLines(U,fD);return $(),B}let q=J.createTracker(G),Y=Q.repeat(Math.max(GW(U,Q)+1,3)),H=J.enter("codeFenced"),K=q.move(Y);if(Z.lang){let $=J.enter(`codeFencedLang${W}`);K+=q.move(J.safe(Z.lang,{before:K,after:" ",encode:["`"],...q.current()})),$()}if(Z.lang&&Z.meta){let $=J.enter(`codeFencedMeta${W}`);K+=q.move(" "),K+=q.move(J.safe(Z.meta,{before:K,after:`
150
+ `}}function eM(Z,X=!0,J){if(J===void 0&&typeof X==="string")J=X,X=!0;let G=Object.assign({},$7.defaults[a6.version],a6);return new o0(G).createNode(Z,X,J)}function ZD(Z,X){let J=[],G;for(let Q of b6(Z)){let U=new X5(X);U.parse(Q,G),J.push(U),G=U}return J}function CU(Z,X){let J=b6(Z),G=new X5(X).parse(J[0]);if(J.length>1)G.errors.unshift(new s(J[1],"Source contains multiple documents; please use YAML.parseAllDocuments()"));return G}function XD(Z,X){let J=CU(Z,X);if(J.warnings.forEach((G)=>T9(G)),J.errors.length>0)throw J.errors[0];return J.toJSON()}function JD(Z,X){let J=new X5(X);return J.contents=Z,String(J)}var a6,dM,TU,n6=(Z,X)=>{if(Z&&typeof Z==="object"){let{tag:J}=Z;if(Z instanceof H1){if(J)X[J]=!0;Z.items.forEach((G)=>n6(G,X))}else if(Z instanceof X1)n6(Z.key,X),n6(Z.value,X);else if(Z instanceof G1){if(J)X[J]=!0}}return X},nM=(Z)=>Object.keys(n6(Z,{})),X5,GD;var EU=C(()=>{sQ();G7();f6();PU();C9();a6={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},dM={get binary(){return R4},set binary(Z){Object.assign(R4,Z)},get bool(){return U0},set bool(Z){Object.assign(U0,Z)},get int(){return _0},set int(Z){Object.assign(_0,Z)},get null(){return s0},set null(Z){Object.assign(s0,Z)},get str(){return Q0},set str(Z){Object.assign(Q0,Z)}},TU={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:J7},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:J7}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:J7}]}};M1($7,"defaults",TU);X5=class X5 extends $7{constructor(Z){super(Object.assign({},a6,Z))}};GD={createNode:eM,defaultOptions:a6,Document:X5,parse:XD,parseAllDocuments:ZD,parseCST:b6,parseDocument:CU,scalarOptions:dM,stringify:JD}});var bU=h1((cT,SU)=>{SU.exports=(EU(),CY(jU)).YAML});var xU=h1((nT,J5)=>{(function(Z){Z.validate=X,Z.mixin=J;function X(H,K,$){$=J({},X.defaults,$);var B=[];if(K.type==="array")Q(H,H,"",K,$,B);else G(H,K,$,B);return{valid:!B.length,errors:B}}X.defaults={validateFormats:!0,validateFormatsStrict:!1,validateFormatExtensions:!0,additionalProperties:!0},X.messages={required:"is required",allowEmpty:"must not be empty",minLength:"is too short (minimum is %{expected} characters)",maxLength:"is too long (maximum is %{expected} characters)",pattern:"invalid input",minimum:"must be greater than or equal to %{expected}",maximum:"must be less than or equal to %{expected}",exclusiveMinimum:"must be greater than %{expected}",exclusiveMaximum:"must be less than %{expected}",divisibleBy:"must be divisible by %{expected}",minItems:"must contain more than %{expected} items",maxItems:"must contain less than %{expected} items",uniqueItems:"must hold a unique set of values",format:"is not a valid %{expected}",conform:"must conform to given constraint",type:"must be of %{expected} type",additionalProperties:"must not exist"},X.messages.enum="must be present in given enumerator",X.formats={email:/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,"ip-address":/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/i,ipv6:/^([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}$/,"date-time":/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:.\d{1,3})?Z$/,date:/^\d{4}-\d{2}-\d{2}$/,time:/^\d{2}:\d{2}:\d{2}$/,color:/^#[a-z0-9]{6}|#[a-z0-9]{3}|(?:rgb\(\s*(?:[+-]?\d+%?)\s*,\s*(?:[+-]?\d+%?)\s*,\s*(?:[+-]?\d+%?)\s*\))aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow$/i,"host-name":/^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])/,"utc-millisec":{test:function(H){return typeof H==="number"&&H>=0}},regex:{test:function(H){try{new RegExp(H)}catch(K){return!1}return!0}}},X.formatExtensions={url:/^(https?|ftp|git):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i};function J(H){var K=Array.prototype.slice.call(arguments,1);while(K.length){var $=K.shift();if(!$)continue;if(typeof $!=="object")throw TypeError("mixin non-object");for(var B in $)if($.hasOwnProperty(B))H[B]=$[B]}return H}function G(H,K,$,B){var V,M=Object.keys(H),_=[];if(K.properties){V=K.properties;for(var D in V)if(V.hasOwnProperty(D))_.push(D),Q(H,H[D],D,V[D],$,B)}if(K.patternProperties){V=K.patternProperties;for(var D in V)if(V.hasOwnProperty(D)){var R=new RegExp(D);for(var N in H)if(H.hasOwnProperty(N)){if(R.exec(N)!==null)Q(H,H[N],N,V[D],$,B),_.push(N)}}}if(K.additionalProperties===void 0)K.additionalProperties=$.additionalProperties;if(K.additionalProperties!==void 0){var L,E,m=M.filter(function(w){return _.indexOf(w)===-1});if(K.additionalProperties===!1&&m.length>0)for(L=0,E=m.length;L<E;L++)W("additionalProperties",m[L],H[m[L]],!1,B);else if(typeof K.additionalProperties=="object"&&m.length>0)for(L=0,E=m.length;L<E;L++)Q(H,H[m[L]],m[L],K.unvisitedProperties,$,B)}}function Q(H,K,$,B,V,M){var _,D,R,N;function L(w,y,h){if(B[w]!==void 0&&!h(y,B[w]))W(w,$,y,B,M)}if(K===void 0)if(B.required&&B.type!=="any")return W("required",$,void 0,B,M);else return;if(V.cast){if((B.type==="integer"||B.type==="number")&&K==+K)K=+K,H[$]=K;if(B.type==="boolean"){if(K==="true"||K==="1"||K===1)K=!0,H[$]=K;if(K==="false"||K==="0"||K===0)K=!1,H[$]=K}}if(B.format&&V.validateFormats){if(_=B.format,V.validateFormatExtensions)R=X.formatExtensions[_];if(!R)R=X.formats[_];if(!R){if(V.validateFormatsStrict)return W("format",$,K,B,M)}else if(!R.test(K))return W("format",$,K,B,M)}if(B.enum&&B.enum.indexOf(K)===-1)W("enum",$,K,B,M);if(typeof B.dependencies==="string"&&H[B.dependencies]===void 0)W("dependencies",$,null,B,M);if(q(B.dependencies)){for(var E=0,m=B.dependencies.length;E<m;E++)if(H[B.dependencies[E]]===void 0)W("dependencies",$,null,B,M)}if(typeof B.dependencies==="object")G(H,B.dependencies,V,M);U(K,B.type,function(w,y){if(w)return W("type",$,typeof K,B,M);switch(L("conform",K,function(j,P){return P(j,H)}),y||(q(K)?"array":typeof K)){case"string":L("allowEmpty",K,function(j,P){return P?P:j!==""}),L("minLength",K.length,function(j,P){return j>=P}),L("maxLength",K.length,function(j,P){return j<=P}),L("pattern",K,function(j,P){return P=typeof P==="string"?P=new RegExp(P):P,P.test(j)});break;case"integer":case"number":L("minimum",K,function(j,P){return j>=P}),L("maximum",K,function(j,P){return j<=P}),L("exclusiveMinimum",K,function(j,P){return j>P}),L("exclusiveMaximum",K,function(j,P){return j<P}),L("divisibleBy",K,function(j,P){var n=Math.max((j-Math.floor(j)).toString().length-2,(P-Math.floor(P)).toString().length-2);return n=n>0?Math.pow(10,n):1,j*n%(P*n)===0});break;case"array":L("items",K,function(j,P){var n;for(var a=0,v=j.length;a<v;a++)n=[],Q(H,j[a],$,P,V,n),n.forEach(function(f){f.property=($?$+".":"")+a+(f.property?"."+f.property.replace($+".",""):"")}),n.unshift(0,0),Array.prototype.splice.apply(M,n);return!0}),L("minItems",K,function(j,P){return j.length>=P}),L("maxItems",K,function(j,P){return j.length<=P}),L("uniqueItems",K,function(j,P){if(!P)return!0;var n={};for(var a=0,v=j.length;a<v;a++){var f=JSON.stringify(j[a]);if(n[f])return!1;n[f]=!0}return!0});break;case"object":if(B.properties||B.patternProperties||B.additionalProperties){var h=[];G(K,B,V,h),h.forEach(function(j){j.property=$+"."+j.property}),h.unshift(0,0),Array.prototype.splice.apply(M,h)}break}})}function U(H,K,$){var B=!1,V=q(K)?K:[K];if(K===void 0)return $(null,K);for(var M=0,_=V.length;M<_;M++)if(K=V[M].toLowerCase().trim(),K==="string"?typeof H==="string":K==="array"?q(H):K==="object"?H&&typeof H==="object"&&!q(H):K==="number"?typeof H==="number":K==="integer"?typeof H==="number"&&Math.floor(H)===H:K==="null"?H===null:K==="boolean"?typeof H==="boolean":K==="date"?Y(H):K==="any"?typeof H<"u":!1)return $(null,K);$(!0)}function W(H,K,$,B,V){var M={expected:B[H],actual:$,attribute:H,property:K},_=B.messages&&B.messages[H]||B.message||X.messages[H]||"no default message";_=_.replace(/%\{([a-z]+)\}/ig,function(D,R){return M[R.toLowerCase()]||""}),V.push({attribute:H,property:K,expected:B[H],actual:$,message:_})}function q(H){var K=typeof H;if(K==="object"){if(H){if(typeof H.length==="number"&&!H.propertyIsEnumerable("length")&&typeof H.splice==="function")return!0}}return!1}function Y(H){var K=typeof H;if(K==="object"){if(H){if(typeof H.getTime==="function")return!0}}return!1}})(typeof J5==="object"&&J5&&nT?nT:window)});var yU=h1((x9,kU)=>{var gU=x9&&x9.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}},QD=gU(lQ()),UD=bU(),WD=gU(xU()),qD=(Z)=>(X,J)=>{let G=QD.default(X,{type:"yaml"});if(!G){J.message("No yaml node.");return}if(typeof G.value!=="string")J.fail("Invalid yaml node.",G);let Q;try{Q=UD.parse(G.value)}catch(W){J.fail(W,G)}if(Z){let W=WD.default.validate(Q,Z);if(!W.valid){let q=JSON.stringify(W.errors,null,2);J.fail(`Invalid frontmatter: ${q}.`,G)}}let U=J.data;U.frontmatter=Q};kU.exports=qD});function z7(Z,X){let J=String(Z);if(typeof X!=="string")throw TypeError("Expected character");let G=0,Q=J.indexOf(X);while(Q!==-1)G++,Q=J.indexOf(X,Q+X.length);return G}function YD(Z){let X=[],J=-1;while(++J<Z.length)X[J]=t0(Z[J]);return s6(G);function G(...Q){let U=-1;while(++U<X.length)if(X[U].apply(this,Q))return!0;return!1}}function HD(Z){let X=Z;return s6(J);function J(G){let Q=G,U;for(U in Z)if(Q[U]!==X[U])return!1;return!0}}function KD(Z){return s6(X);function X(J){return J&&J.type===Z}}function s6(Z){return X;function X(J,G,Q){return Boolean(zD(J)&&Z.call(this,J,typeof G==="number"?G:void 0,Q||void 0))}}function $D(){return!0}function zD(Z){return Z!==null&&typeof Z==="object"&&"type"in Z}var t0=function(Z){if(Z===null||Z===void 0)return $D;if(typeof Z==="function")return s6(Z);if(typeof Z==="object")return Array.isArray(Z)?YD(Z):HD(Z);if(typeof Z==="string")return KD(Z);throw Error("Expected function, string, or object as test")};var o6=()=>{};function vU(Z){return Z}function L4(Z,X,J,G){let Q;if(typeof X==="function"&&typeof J!=="function")G=J,J=X;else Q=X;let U=t0(Q),W=G?-1:1;q(Z,void 0,[])();function q(Y,H,K){let $=Y&&typeof Y==="object"?Y:{};if(typeof $.type==="string"){let V=typeof $.tagName==="string"?$.tagName:typeof $.name==="string"?$.name:void 0;Object.defineProperty(B,"name",{value:"node ("+vU(Y.type+(V?"<"+V+">":""))+")"})}return B;function B(){let V=hU,M,_,D;if(!X||U(Y,H,K[K.length-1]||void 0)){if(V=VD(J(Y,K)),V[0]===N4)return V}if("children"in Y&&Y.children){let R=Y;if(R.children&&V[0]!==e6){_=(G?R.children.length:-1)+W,D=K.concat(R);while(_>-1&&_<R.children.length){let N=R.children[_];if(M=q(N,_,D)(),M[0]===N4)return M;_=typeof M[1]==="number"?M[1]:_+W}}}return V}}}function VD(Z){if(Array.isArray(Z))return Z;if(typeof Z==="number")return[t6,Z];return Z===null||Z===void 0?hU:[Z]}var hU,t6=!0,N4=!1,e6="skip";var mU=C(()=>{o6();hU=[]});var G5=C(()=>{mU()});function g9(Z,X,J){let Q=t0((J||{}).ignore||[]),U=BD(X),W=-1;while(++W<U.length)L4(Z,"text",q);function q(H,K){let $=-1,B;while(++$<K.length){let V=K[$],M=B?B.children:void 0;if(Q(V,M?M.indexOf(V):void 0,B))return;B=V}if(B)return Y(H,K)}function Y(H,K){let $=K[K.length-1],B=U[W][0],V=U[W][1],M=0,D=$.children.indexOf(H),R=!1,N=[];B.lastIndex=0;let L=B.exec(H.value);while(L){let E=L.index,m={index:L.index,input:L.input,stack:[...K,H]},w=V(...L,m);if(typeof w==="string")w=w.length>0?{type:"text",value:w}:void 0;if(w===!1)B.lastIndex=E+1;else{if(M!==E)N.push({type:"text",value:H.value.slice(M,E)});if(Array.isArray(w))N.push(...w);else if(w)N.push(w);M=E+L[0].length,R=!0}if(!B.global)break;L=B.exec(H.value)}if(R){if(M<H.value.length)N.push({type:"text",value:H.value.slice(M)});$.children.splice(D,1,...N)}else N=[H];return D+N.length}}function BD(Z){let X=[];if(!Array.isArray(Z))throw TypeError("Expected find and replace tuple or list of tuples");let J=!Z[0]||Array.isArray(Z[0])?Z:[Z],G=-1;while(++G<J.length){let Q=J[G];X.push([FD(Q[0]),MD(Q[1])])}return X}function FD(Z){return typeof Z==="string"?new RegExp(c7(Z),"g"):Z}function MD(Z){return typeof Z==="function"?Z:function(){return Z}}var uU=C(()=>{G5();o6()});var pU=C(()=>{uU()});function h9(){return{transforms:[LD],enter:{literalAutolink:DD,literalAutolinkEmail:v9,literalAutolinkHttp:v9,literalAutolinkWww:v9},exit:{literalAutolink:ND,literalAutolinkEmail:OD,literalAutolinkHttp:_D,literalAutolinkWww:RD}}}function m9(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:k9,notInConstruct:y9},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:k9,notInConstruct:y9},{character:":",before:"[ps]",after:"\\/",inConstruct:k9,notInConstruct:y9}]}}function DD(Z){this.enter({type:"link",title:null,url:"",children:[]},Z)}function v9(Z){this.config.enter.autolinkProtocol.call(this,Z)}function _D(Z){this.config.exit.autolinkProtocol.call(this,Z)}function RD(Z){this.config.exit.data.call(this,Z);let X=this.stack[this.stack.length-1];O(X.type==="link"),X.url="http://"+this.sliceSerialize(Z)}function OD(Z){this.config.exit.autolinkEmail.call(this,Z)}function ND(Z){this.exit(Z)}function LD(Z){g9(Z,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ID],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,AD]],{ignore:["link","linkReference"]})}function ID(Z,X,J,G,Q){let U="";if(!fU(Q))return!1;if(/^w/i.test(X))J=X+J,X="",U="http://";if(!PD(J))return!1;let W=wD(J+G);if(!W[0])return!1;let q={type:"link",title:null,url:U+X+W[0],children:[{type:"text",value:X+W[0]}]};if(W[1])return[q,{type:"text",value:W[1]}];return q}function AD(Z,X,J,G){if(!fU(G,!0)||/[-\d_]$/.test(J))return!1;return{type:"link",title:null,url:"mailto:"+X+"@"+J,children:[{type:"text",value:X+"@"+J}]}}function PD(Z){let X=Z.split(".");if(X.length<2||X[X.length-1]&&(/_/.test(X[X.length-1])||!/[a-zA-Z\d]/.test(X[X.length-1]))||X[X.length-2]&&(/_/.test(X[X.length-2])||!/[a-zA-Z\d]/.test(X[X.length-2])))return!1;return!0}function wD(Z){let X=/[!"&'),.:;<>?\]}]+$/.exec(Z);if(!X)return[Z,void 0];Z=Z.slice(0,X.index);let J=X[0],G=J.indexOf(")"),Q=z7(Z,"("),U=z7(Z,")");while(G!==-1&&Q>U)Z+=J.slice(0,G+1),J=J.slice(G+1),G=J.indexOf(")"),U++;return[Z,J]}function fU(Z,X){let J=Z.input.charCodeAt(Z.index-1);return(Z.index===0||b1(J)||r1(J))&&(!X||J!==47)}var k9="phrasing",y9;var lU=C(()=>{o();Z1();pU();y9=["autolink","link","image","label"]});var iU=C(()=>{lU()});function TD(){this.buffer()}function CD(Z){this.enter({type:"footnoteReference",identifier:"",label:""},Z)}function jD(){this.buffer()}function ED(Z){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},Z)}function SD(Z){let X=this.resume(),J=this.stack[this.stack.length-1];O(J.type==="footnoteReference"),J.identifier=S1(this.sliceSerialize(Z)).toLowerCase(),J.label=X}function bD(Z){this.exit(Z)}function xD(Z){let X=this.resume(),J=this.stack[this.stack.length-1];O(J.type==="footnoteDefinition"),J.identifier=S1(this.sliceSerialize(Z)).toLowerCase(),J.label=X}function gD(Z){this.exit(Z)}function kD(){return"["}function dU(Z,X,J,G){let Q=J.createTracker(G),U=Q.move("[^"),W=J.enter("footnoteReference"),q=J.enter("reference");return U+=Q.move(J.safe(J.associationId(Z),{after:"]",before:U})),q(),W(),U+=Q.move("]"),U}function u9(){return{enter:{gfmFootnoteCallString:TD,gfmFootnoteCall:CD,gfmFootnoteDefinitionLabelString:jD,gfmFootnoteDefinition:ED},exit:{gfmFootnoteCallString:SD,gfmFootnoteCall:bD,gfmFootnoteDefinitionLabelString:xD,gfmFootnoteDefinition:gD}}}function p9(Z){let X=!1;if(Z&&Z.firstLineBlank)X=!0;return{handlers:{footnoteDefinition:J,footnoteReference:dU},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function J(G,Q,U,W){let q=U.createTracker(W),Y=q.move("[^"),H=U.enter("footnoteDefinition"),K=U.enter("label");if(Y+=q.move(U.safe(U.associationId(G),{before:Y,after:"]"})),K(),Y+=q.move("]:"),G.children&&G.children.length>0)q.shift(4),Y+=q.move((X?`
151
+ `:" ")+U.indentLines(U.containerFlow(G,q.current()),X?rU:yD));return H(),Y}}function yD(Z,X,J){return X===0?Z:rU(Z,X,J)}function rU(Z,X,J){return(J?"":" ")+Z}var cU=C(()=>{o();p4();dU.peek=kD});var nU=C(()=>{cU()});function f9(){return{canContainEols:["delete"],enter:{strikethrough:hD},exit:{strikethrough:mD}}}function l9(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:vD}],handlers:{delete:aU}}}function hD(Z){this.enter({type:"delete",children:[]},Z)}function mD(Z){this.exit(Z)}function aU(Z,X,J,G){let Q=J.createTracker(G),U=J.enter("strikethrough"),W=Q.move("~~");return W+=J.containerPhrasing(Z,{...Q.current(),before:W,after:"~"}),W+=Q.move("~~"),U(),W}function uD(){return"~"}var vD;var sU=C(()=>{vD=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];aU.peek=uD});var oU=C(()=>{sU()});function pD(Z){return Z.length}function eU(Z,X){let J=X||{},G=(J.align||[]).concat(),Q=J.stringLength||pD,U=[],W=[],q=[],Y=[],H=0,K=-1;while(++K<Z.length){let _=[],D=[],R=-1;if(Z[K].length>H)H=Z[K].length;while(++R<Z[K].length){let N=fD(Z[K][R]);if(J.alignDelimiters!==!1){let L=Q(N);if(D[R]=L,Y[R]===void 0||L>Y[R])Y[R]=L}_.push(N)}W[K]=_,q[K]=D}let $=-1;if(typeof G==="object"&&"length"in G)while(++$<H)U[$]=tU(G[$]);else{let _=tU(G);while(++$<H)U[$]=_}$=-1;let B=[],V=[];while(++$<H){let _=U[$],D="",R="";if(_===99)D=":",R=":";else if(_===108)D=":";else if(_===114)R=":";let N=J.alignDelimiters===!1?1:Math.max(1,Y[$]-D.length-R.length),L=D+"-".repeat(N)+R;if(J.alignDelimiters!==!1){if(N=D.length+N+R.length,N>Y[$])Y[$]=N;V[$]=N}B[$]=L}W.splice(1,0,B),q.splice(1,0,V),K=-1;let M=[];while(++K<W.length){let _=W[K],D=q[K];$=-1;let R=[];while(++$<H){let N=_[$]||"",L="",E="";if(J.alignDelimiters!==!1){let m=Y[$]-(D[$]||0),w=U[$];if(w===114)L=" ".repeat(m);else if(w===99)if(m%2)L=" ".repeat(m/2+0.5),E=" ".repeat(m/2-0.5);else L=" ".repeat(m/2),E=L;else E=" ".repeat(m)}if(J.delimiterStart!==!1&&!$)R.push("|");if(J.padding!==!1&&!(J.alignDelimiters===!1&&N==="")&&(J.delimiterStart!==!1||$))R.push(" ");if(J.alignDelimiters!==!1)R.push(L);if(R.push(N),J.alignDelimiters!==!1)R.push(E);if(J.padding!==!1)R.push(" ");if(J.delimiterEnd!==!1||$!==H-1)R.push("|")}M.push(J.delimiterEnd===!1?R.join("").replace(/ +$/,""):R.join(""))}return M.join(`
152
+ `)}function fD(Z){return Z===null||Z===void 0?"":String(Z)}function tU(Z){let X=typeof Z==="string"?Z.codePointAt(0):0;return X===67||X===99?99:X===76||X===108?108:X===82||X===114?114:0}function ZW(Z,X,J,G){let Q=J.enter("blockquote"),U=J.createTracker(G);U.move("> "),U.shift(2);let W=J.indentLines(J.containerFlow(Z,U.current()),lD);return Q(),W}function lD(Z,X,J){return">"+(J?"":" ")+Z}function JW(Z,X){return XW(Z,X.inConstruct,!0)&&!XW(Z,X.notInConstruct,!1)}function XW(Z,X,J){if(typeof X==="string")X=[X];if(!X||X.length===0)return J;let G=-1;while(++G<X.length)if(Z.includes(X[G]))return!0;return!1}function i9(Z,X,J,G){let Q=-1;while(++Q<J.unsafe.length)if(J.unsafe[Q].character===`
153
+ `&&JW(J.stack,J.unsafe[Q]))return/[ \t]/.test(G.before)?"":" ";return"\\\n"}var GW=()=>{};function QW(Z,X){let J=String(Z),G=J.indexOf(X),Q=G,U=0,W=0;if(typeof X!=="string")throw TypeError("Expected substring");while(G!==-1){if(G===Q){if(++U>W)W=U}else U=1;Q=G+X.length,G=J.indexOf(X,Q)}return W}function UW(Z,X){return Boolean(X.options.fences===!1&&Z.value&&!Z.lang&&/[^ \r\n]/.test(Z.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(Z.value))}function WW(Z){let X=Z.options.fence||"`";if(X!=="`"&&X!=="~")throw Error("Cannot serialize code with `"+X+"` for `options.fence`, expected `` ` `` or `~`");return X}function qW(Z,X,J,G){let Q=WW(J),U=Z.value||"",W=Q==="`"?"GraveAccent":"Tilde";if(UW(Z,J)){let $=J.enter("codeIndented"),B=J.indentLines(U,iD);return $(),B}let q=J.createTracker(G),Y=Q.repeat(Math.max(QW(U,Q)+1,3)),H=J.enter("codeFenced"),K=q.move(Y);if(Z.lang){let $=J.enter(`codeFencedLang${W}`);K+=q.move(J.safe(Z.lang,{before:K,after:" ",encode:["`"],...q.current()})),$()}if(Z.lang&&Z.meta){let $=J.enter(`codeFencedMeta${W}`);K+=q.move(" "),K+=q.move(J.safe(Z.meta,{before:K,after:`
154
154
  `,encode:["`"],...q.current()})),$()}if(K+=q.move(`
155
155
  `),U)K+=q.move(U+`
156
- `);return K+=q.move(Y),H(),K}function fD(Z,X,J){return(J?"":" ")+Z}var qW=()=>{};function V7(Z){let X=Z.options.quote||'"';if(X!=='"'&&X!=="'")throw Error("Cannot serialize title with `"+X+"` for `options.quote`, expected `\"`, or `'`");return X}function YW(Z,X,J,G){let Q=V7(J),U=Q==='"'?"Quote":"Apostrophe",W=J.enter("definition"),q=J.enter("label"),Y=J.createTracker(G),H=Y.move("[");if(H+=Y.move(J.safe(J.associationId(Z),{before:H,after:"]",...Y.current()})),H+=Y.move("]: "),q(),!Z.url||/[\0- \u007F]/.test(Z.url))q=J.enter("destinationLiteral"),H+=Y.move("<"),H+=Y.move(J.safe(Z.url,{before:H,after:">",...Y.current()})),H+=Y.move(">");else q=J.enter("destinationRaw"),H+=Y.move(J.safe(Z.url,{before:H,after:Z.title?" ":`
157
- `,...Y.current()}));if(q(),Z.title)q=J.enter(`title${U}`),H+=Y.move(" "+Q),H+=Y.move(J.safe(Z.title,{before:H,after:Q,...Y.current()})),H+=Y.move(Q),q();return W(),H}var HW=()=>{};function KW(Z){let X=Z.options.emphasis||"*";if(X!=="*"&&X!=="_")throw Error("Cannot serialize emphasis with `"+X+"` for `options.emphasis`, expected `*`, or `_`");return X}function e0(Z){return"&#x"+Z.toString(16).toUpperCase()+";"}function B7(Z,X,J){let G=j0(Z),Q=j0(X);if(G===void 0)return Q===void 0?J==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:Q===1?{inside:!0,outside:!0}:{inside:!1,outside:!0};if(G===1)return Q===void 0?{inside:!1,outside:!1}:Q===1?{inside:!0,outside:!0}:{inside:!1,outside:!1};return Q===void 0?{inside:!1,outside:!1}:Q===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}var d9=C(()=>{u5()});function r9(Z,X,J,G){let Q=KW(J),U=J.enter("emphasis"),W=J.createTracker(G),q=W.move(Q),Y=W.move(J.containerPhrasing(Z,{after:Q,before:q,...W.current()})),H=Y.charCodeAt(0),K=B7(G.before.charCodeAt(G.before.length-1),H,Q);if(K.inside)Y=e0(H)+Y.slice(1);let $=Y.charCodeAt(Y.length-1),B=B7(G.after.charCodeAt(0),$,Q);if(B.inside)Y=Y.slice(0,-1)+e0($);let V=W.move(Q);return U(),J.attentionEncodeSurroundingInfo={after:B.outside,before:K.outside},q+Y+V}function lD(Z,X,J){return J.options.emphasis||"*"}var $W=C(()=>{d9();r9.peek=lD});function c9(Z,X,J,G){let Q,U,W;if(typeof X==="function"&&typeof J!=="function")U=void 0,W=X,Q=J;else U=X,W=J,Q=G;L4(Z,U,q,Q);function q(Y,H){let K=H[H.length-1],$=K?K.children.indexOf(Y):void 0;return W(Y,$,K)}}var zW=C(()=>{G5();G5()});var VW=C(()=>{zW()});function BW(Z,X){let J=!1;return c9(Z,function(G){if("value"in G&&/\r?\n|\r/.test(G.value)||G.type==="break")return J=!0,N4}),Boolean((!Z.depth||Z.depth<3)&&q4(Z)&&(X.options.setext||J))}var FW=C(()=>{VW();v5()});function MW(Z,X,J,G){let Q=Math.max(Math.min(6,Z.depth||1),1),U=J.createTracker(G);if(BW(Z,J)){let K=J.enter("headingSetext"),$=J.enter("phrasing"),B=J.containerPhrasing(Z,{...U.current(),before:`
156
+ `);return K+=q.move(Y),H(),K}function iD(Z,X,J){return(J?"":" ")+Z}var YW=()=>{};function V7(Z){let X=Z.options.quote||'"';if(X!=='"'&&X!=="'")throw Error("Cannot serialize title with `"+X+"` for `options.quote`, expected `\"`, or `'`");return X}function HW(Z,X,J,G){let Q=V7(J),U=Q==='"'?"Quote":"Apostrophe",W=J.enter("definition"),q=J.enter("label"),Y=J.createTracker(G),H=Y.move("[");if(H+=Y.move(J.safe(J.associationId(Z),{before:H,after:"]",...Y.current()})),H+=Y.move("]: "),q(),!Z.url||/[\0- \u007F]/.test(Z.url))q=J.enter("destinationLiteral"),H+=Y.move("<"),H+=Y.move(J.safe(Z.url,{before:H,after:">",...Y.current()})),H+=Y.move(">");else q=J.enter("destinationRaw"),H+=Y.move(J.safe(Z.url,{before:H,after:Z.title?" ":`
157
+ `,...Y.current()}));if(q(),Z.title)q=J.enter(`title${U}`),H+=Y.move(" "+Q),H+=Y.move(J.safe(Z.title,{before:H,after:Q,...Y.current()})),H+=Y.move(Q),q();return W(),H}var KW=()=>{};function $W(Z){let X=Z.options.emphasis||"*";if(X!=="*"&&X!=="_")throw Error("Cannot serialize emphasis with `"+X+"` for `options.emphasis`, expected `*`, or `_`");return X}function e0(Z){return"&#x"+Z.toString(16).toUpperCase()+";"}function B7(Z,X,J){let G=j0(Z),Q=j0(X);if(G===void 0)return Q===void 0?J==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:Q===1?{inside:!0,outside:!0}:{inside:!1,outside:!0};if(G===1)return Q===void 0?{inside:!1,outside:!1}:Q===1?{inside:!0,outside:!0}:{inside:!1,outside:!1};return Q===void 0?{inside:!1,outside:!1}:Q===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}var d9=C(()=>{u5()});function r9(Z,X,J,G){let Q=$W(J),U=J.enter("emphasis"),W=J.createTracker(G),q=W.move(Q),Y=W.move(J.containerPhrasing(Z,{after:Q,before:q,...W.current()})),H=Y.charCodeAt(0),K=B7(G.before.charCodeAt(G.before.length-1),H,Q);if(K.inside)Y=e0(H)+Y.slice(1);let $=Y.charCodeAt(Y.length-1),B=B7(G.after.charCodeAt(0),$,Q);if(B.inside)Y=Y.slice(0,-1)+e0($);let V=W.move(Q);return U(),J.attentionEncodeSurroundingInfo={after:B.outside,before:K.outside},q+Y+V}function dD(Z,X,J){return J.options.emphasis||"*"}var zW=C(()=>{d9();r9.peek=dD});function c9(Z,X,J,G){let Q,U,W;if(typeof X==="function"&&typeof J!=="function")U=void 0,W=X,Q=J;else U=X,W=J,Q=G;L4(Z,U,q,Q);function q(Y,H){let K=H[H.length-1],$=K?K.children.indexOf(Y):void 0;return W(Y,$,K)}}var VW=C(()=>{G5();G5()});var BW=C(()=>{VW()});function FW(Z,X){let J=!1;return c9(Z,function(G){if("value"in G&&/\r?\n|\r/.test(G.value)||G.type==="break")return J=!0,N4}),Boolean((!Z.depth||Z.depth<3)&&q4(Z)&&(X.options.setext||J))}var MW=C(()=>{BW();v5()});function DW(Z,X,J,G){let Q=Math.max(Math.min(6,Z.depth||1),1),U=J.createTracker(G);if(FW(Z,J)){let K=J.enter("headingSetext"),$=J.enter("phrasing"),B=J.containerPhrasing(Z,{...U.current(),before:`
158
158
  `,after:`
159
159
  `});return $(),K(),B+`
160
160
  `+(Q===1?"=":"-").repeat(B.length-(Math.max(B.lastIndexOf("\r"),B.lastIndexOf(`
161
161
  `))+1))}let W="#".repeat(Q),q=J.enter("headingAtx"),Y=J.enter("phrasing");U.move(W+" ");let H=J.containerPhrasing(Z,{before:"# ",after:`
162
- `,...U.current()});if(/^[\t ]/.test(H))H=e0(H.charCodeAt(0))+H.slice(1);if(H=H?W+" "+H:W,J.options.closeAtx)H+=" "+W;return Y(),q(),H}var DW=C(()=>{FW()});function n9(Z){return Z.value||""}function iD(){return"<"}var _W=C(()=>{n9.peek=iD});function a9(Z,X,J,G){let Q=V7(J),U=Q==='"'?"Quote":"Apostrophe",W=J.enter("image"),q=J.enter("label"),Y=J.createTracker(G),H=Y.move("![");if(H+=Y.move(J.safe(Z.alt,{before:H,after:"]",...Y.current()})),H+=Y.move("]("),q(),!Z.url&&Z.title||/[\0- \u007F]/.test(Z.url))q=J.enter("destinationLiteral"),H+=Y.move("<"),H+=Y.move(J.safe(Z.url,{before:H,after:">",...Y.current()})),H+=Y.move(">");else q=J.enter("destinationRaw"),H+=Y.move(J.safe(Z.url,{before:H,after:Z.title?" ":")",...Y.current()}));if(q(),Z.title)q=J.enter(`title${U}`),H+=Y.move(" "+Q),H+=Y.move(J.safe(Z.title,{before:H,after:Q,...Y.current()})),H+=Y.move(Q),q();return H+=Y.move(")"),W(),H}function dD(){return"!"}var RW=C(()=>{a9.peek=dD});function s9(Z,X,J,G){let Q=Z.referenceType,U=J.enter("imageReference"),W=J.enter("label"),q=J.createTracker(G),Y=q.move("!["),H=J.safe(Z.alt,{before:Y,after:"]",...q.current()});Y+=q.move(H+"]["),W();let K=J.stack;J.stack=[],W=J.enter("reference");let $=J.safe(J.associationId(Z),{before:Y,after:"]",...q.current()});if(W(),J.stack=K,U(),Q==="full"||!H||H!==$)Y+=q.move($+"]");else if(Q==="shortcut")Y=Y.slice(0,-1);else Y+=q.move("]");return Y}function rD(){return"!"}var OW=C(()=>{s9.peek=rD});function o9(Z,X,J){let G=Z.value||"",Q="`",U=-1;while(new RegExp("(^|[^`])"+Q+"([^`]|$)").test(G))Q+="`";if(/[^ \r\n]/.test(G)&&(/^[ \r\n]/.test(G)&&/[ \r\n]$/.test(G)||/^`|`$/.test(G)))G=" "+G+" ";while(++U<J.unsafe.length){let W=J.unsafe[U],q=J.compilePattern(W),Y;if(!W.atBreak)continue;while(Y=q.exec(G)){let H=Y.index;if(G.charCodeAt(H)===10&&G.charCodeAt(H-1)===13)H--;G=G.slice(0,H)+" "+G.slice(Y.index+1)}}return Q+G+Q}function cD(){return"`"}var NW=C(()=>{o9.peek=cD});function t9(Z,X){let J=q4(Z);return Boolean(!X.options.resourceLink&&Z.url&&!Z.title&&Z.children&&Z.children.length===1&&Z.children[0].type==="text"&&(J===Z.url||"mailto:"+J===Z.url)&&/^[a-z][a-z+.-]+:/i.test(Z.url)&&!/[\0- <>\u007F]/.test(Z.url))}var LW=C(()=>{v5()});function e9(Z,X,J,G){let Q=V7(J),U=Q==='"'?"Quote":"Apostrophe",W=J.createTracker(G),q,Y;if(t9(Z,J)){let K=J.stack;J.stack=[],q=J.enter("autolink");let $=W.move("<");return $+=W.move(J.containerPhrasing(Z,{before:$,after:">",...W.current()})),$+=W.move(">"),q(),J.stack=K,$}q=J.enter("link"),Y=J.enter("label");let H=W.move("[");if(H+=W.move(J.containerPhrasing(Z,{before:H,after:"](",...W.current()})),H+=W.move("]("),Y(),!Z.url&&Z.title||/[\0- \u007F]/.test(Z.url))Y=J.enter("destinationLiteral"),H+=W.move("<"),H+=W.move(J.safe(Z.url,{before:H,after:">",...W.current()})),H+=W.move(">");else Y=J.enter("destinationRaw"),H+=W.move(J.safe(Z.url,{before:H,after:Z.title?" ":")",...W.current()}));if(Y(),Z.title)Y=J.enter(`title${U}`),H+=W.move(" "+Q),H+=W.move(J.safe(Z.title,{before:H,after:Q,...W.current()})),H+=W.move(Q),Y();return H+=W.move(")"),q(),H}function nD(Z,X,J){return t9(Z,J)?"<":"["}var IW=C(()=>{LW();e9.peek=nD});function ZZ(Z,X,J,G){let Q=Z.referenceType,U=J.enter("linkReference"),W=J.enter("label"),q=J.createTracker(G),Y=q.move("["),H=J.containerPhrasing(Z,{before:Y,after:"]",...q.current()});Y+=q.move(H+"]["),W();let K=J.stack;J.stack=[],W=J.enter("reference");let $=J.safe(J.associationId(Z),{before:Y,after:"]",...q.current()});if(W(),J.stack=K,U(),Q==="full"||!H||H!==$)Y+=q.move($+"]");else if(Q==="shortcut")Y=Y.slice(0,-1);else Y+=q.move("]");return Y}function aD(){return"["}var AW=C(()=>{ZZ.peek=aD});function F7(Z){let X=Z.options.bullet||"*";if(X!=="*"&&X!=="+"&&X!=="-")throw Error("Cannot serialize items with `"+X+"` for `options.bullet`, expected `*`, `+`, or `-`");return X}function PW(Z){let X=F7(Z),J=Z.options.bulletOther;if(!J)return X==="*"?"-":"*";if(J!=="*"&&J!=="+"&&J!=="-")throw Error("Cannot serialize items with `"+J+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(J===X)throw Error("Expected `bullet` (`"+X+"`) and `bulletOther` (`"+J+"`) to be different");return J}var wW=()=>{};function TW(Z){let X=Z.options.bulletOrdered||".";if(X!=="."&&X!==")")throw Error("Cannot serialize items with `"+X+"` for `options.bulletOrdered`, expected `.` or `)`");return X}function Z8(Z){let X=Z.options.rule||"*";if(X!=="*"&&X!=="-"&&X!=="_")throw Error("Cannot serialize rules with `"+X+"` for `options.rule`, expected `*`, `-`, or `_`");return X}function CW(Z,X,J,G){let Q=J.enter("list"),U=J.bulletCurrent,W=Z.ordered?TW(J):F7(J),q=Z.ordered?W==="."?")":".":PW(J),Y=X&&J.bulletLastUsed?W===J.bulletLastUsed:!1;if(!Z.ordered){let K=Z.children?Z.children[0]:void 0;if((W==="*"||W==="-")&&K&&(!K.children||!K.children[0])&&J.stack[J.stack.length-1]==="list"&&J.stack[J.stack.length-2]==="listItem"&&J.stack[J.stack.length-3]==="list"&&J.stack[J.stack.length-4]==="listItem"&&J.indexStack[J.indexStack.length-1]===0&&J.indexStack[J.indexStack.length-2]===0&&J.indexStack[J.indexStack.length-3]===0)Y=!0;if(Z8(J)===W&&K){let $=-1;while(++$<Z.children.length){let B=Z.children[$];if(B&&B.type==="listItem"&&B.children&&B.children[0]&&B.children[0].type==="thematicBreak"){Y=!0;break}}}}if(Y)W=q;J.bulletCurrent=W;let H=J.containerFlow(Z,G);return J.bulletLastUsed=W,J.bulletCurrent=U,Q(),H}var jW=C(()=>{wW()});function EW(Z){let X=Z.options.listItemIndent||"one";if(X!=="tab"&&X!=="one"&&X!=="mixed")throw Error("Cannot serialize items with `"+X+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return X}function SW(Z,X,J,G){let Q=EW(J),U=J.bulletCurrent||F7(J);if(X&&X.type==="list"&&X.ordered)U=(typeof X.start==="number"&&X.start>-1?X.start:1)+(J.options.incrementListMarker===!1?0:X.children.indexOf(Z))+U;let W=U.length+1;if(Q==="tab"||Q==="mixed"&&(X&&X.type==="list"&&X.spread||Z.spread))W=Math.ceil(W/4)*4;let q=J.createTracker(G);q.move(U+" ".repeat(W-U.length)),q.shift(W);let Y=J.enter("listItem"),H=J.indentLines(J.containerFlow(Z,q.current()),K);return Y(),H;function K($,B,V){if(B)return(V?"":" ".repeat(W))+$;return(V?U:U+" ".repeat(W-U.length))+$}}var bW=()=>{};function xW(Z,X,J,G){let Q=J.enter("paragraph"),U=J.enter("phrasing"),W=J.containerPhrasing(Z,G);return U(),Q(),W}var XZ;var gW=C(()=>{o6();XZ=t0(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"])});var kW=C(()=>{gW()});function yW(Z,X,J,G){return(Z.children.some(function(W){return XZ(W)})?J.containerPhrasing:J.containerFlow).call(J,Z,G)}var vW=C(()=>{kW()});function hW(Z){let X=Z.options.strong||"*";if(X!=="*"&&X!=="_")throw Error("Cannot serialize strong with `"+X+"` for `options.strong`, expected `*`, or `_`");return X}function JZ(Z,X,J,G){let Q=hW(J),U=J.enter("strong"),W=J.createTracker(G),q=W.move(Q+Q),Y=W.move(J.containerPhrasing(Z,{after:Q,before:q,...W.current()})),H=Y.charCodeAt(0),K=B7(G.before.charCodeAt(G.before.length-1),H,Q);if(K.inside)Y=e0(H)+Y.slice(1);let $=Y.charCodeAt(Y.length-1),B=B7(G.after.charCodeAt(0),$,Q);if(B.inside)Y=Y.slice(0,-1)+e0($);let V=W.move(Q+Q);return U(),J.attentionEncodeSurroundingInfo={after:B.outside,before:K.outside},q+Y+V}function sD(Z,X,J){return J.options.strong||"*"}var mW=C(()=>{d9();JZ.peek=sD});function uW(Z,X,J,G){return J.safe(Z.value,G)}function pW(Z){let X=Z.options.ruleRepetition||3;if(X<3)throw Error("Cannot serialize rules with repetition `"+X+"` for `options.ruleRepetition`, expected `3` or more");return X}function fW(Z,X,J){let G=(Z8(J)+(J.options.ruleSpaces?" ":"")).repeat(pW(J));return J.options.ruleSpaces?G.slice(0,-1):G}var lW=()=>{};var Q5;var iW=C(()=>{JW();qW();HW();$W();DW();_W();RW();OW();NW();IW();AW();jW();bW();vW();mW();lW();Q5={blockquote:eU,break:i9,code:WW,definition:YW,emphasis:r9,hardBreak:i9,heading:MW,html:n9,image:a9,imageReference:s9,inlineCode:o9,link:e9,linkReference:ZZ,list:CW,listItem:SW,paragraph:xW,root:yW,strong:JZ,text:uW,thematicBreak:fW}});var GZ=C(()=>{iW()});function UZ(){return{enter:{table:oD,tableData:dW,tableHeader:dW,tableRow:eD},exit:{codeText:Z_,table:tD,tableData:QZ,tableHeader:QZ,tableRow:QZ}}}function oD(Z){let X=Z._align;O(X,"expected `_align` on table"),this.enter({type:"table",align:X.map(function(J){return J==="none"?null:J}),children:[]},Z),this.data.inTable=!0}function tD(Z){this.exit(Z),this.data.inTable=void 0}function eD(Z){this.enter({type:"tableRow",children:[]},Z)}function QZ(Z){this.exit(Z)}function dW(Z){this.enter({type:"tableCell",children:[]},Z)}function Z_(Z){let X=this.resume();if(this.data.inTable)X=X.replace(/\\([\\|])/g,X_);let J=this.stack[this.stack.length-1];O(J.type==="inlineCode"),J.value=X,this.exit(Z)}function X_(Z,X){return X==="|"?X:Z}function WZ(Z){let X=Z||{},J=X.tableCellPadding,G=X.tablePipeAlign,Q=X.stringLength,U=J?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
162
+ `,...U.current()});if(/^[\t ]/.test(H))H=e0(H.charCodeAt(0))+H.slice(1);if(H=H?W+" "+H:W,J.options.closeAtx)H+=" "+W;return Y(),q(),H}var _W=C(()=>{MW()});function n9(Z){return Z.value||""}function rD(){return"<"}var RW=C(()=>{n9.peek=rD});function a9(Z,X,J,G){let Q=V7(J),U=Q==='"'?"Quote":"Apostrophe",W=J.enter("image"),q=J.enter("label"),Y=J.createTracker(G),H=Y.move("![");if(H+=Y.move(J.safe(Z.alt,{before:H,after:"]",...Y.current()})),H+=Y.move("]("),q(),!Z.url&&Z.title||/[\0- \u007F]/.test(Z.url))q=J.enter("destinationLiteral"),H+=Y.move("<"),H+=Y.move(J.safe(Z.url,{before:H,after:">",...Y.current()})),H+=Y.move(">");else q=J.enter("destinationRaw"),H+=Y.move(J.safe(Z.url,{before:H,after:Z.title?" ":")",...Y.current()}));if(q(),Z.title)q=J.enter(`title${U}`),H+=Y.move(" "+Q),H+=Y.move(J.safe(Z.title,{before:H,after:Q,...Y.current()})),H+=Y.move(Q),q();return H+=Y.move(")"),W(),H}function cD(){return"!"}var OW=C(()=>{a9.peek=cD});function s9(Z,X,J,G){let Q=Z.referenceType,U=J.enter("imageReference"),W=J.enter("label"),q=J.createTracker(G),Y=q.move("!["),H=J.safe(Z.alt,{before:Y,after:"]",...q.current()});Y+=q.move(H+"]["),W();let K=J.stack;J.stack=[],W=J.enter("reference");let $=J.safe(J.associationId(Z),{before:Y,after:"]",...q.current()});if(W(),J.stack=K,U(),Q==="full"||!H||H!==$)Y+=q.move($+"]");else if(Q==="shortcut")Y=Y.slice(0,-1);else Y+=q.move("]");return Y}function nD(){return"!"}var NW=C(()=>{s9.peek=nD});function o9(Z,X,J){let G=Z.value||"",Q="`",U=-1;while(new RegExp("(^|[^`])"+Q+"([^`]|$)").test(G))Q+="`";if(/[^ \r\n]/.test(G)&&(/^[ \r\n]/.test(G)&&/[ \r\n]$/.test(G)||/^`|`$/.test(G)))G=" "+G+" ";while(++U<J.unsafe.length){let W=J.unsafe[U],q=J.compilePattern(W),Y;if(!W.atBreak)continue;while(Y=q.exec(G)){let H=Y.index;if(G.charCodeAt(H)===10&&G.charCodeAt(H-1)===13)H--;G=G.slice(0,H)+" "+G.slice(Y.index+1)}}return Q+G+Q}function aD(){return"`"}var LW=C(()=>{o9.peek=aD});function t9(Z,X){let J=q4(Z);return Boolean(!X.options.resourceLink&&Z.url&&!Z.title&&Z.children&&Z.children.length===1&&Z.children[0].type==="text"&&(J===Z.url||"mailto:"+J===Z.url)&&/^[a-z][a-z+.-]+:/i.test(Z.url)&&!/[\0- <>\u007F]/.test(Z.url))}var IW=C(()=>{v5()});function e9(Z,X,J,G){let Q=V7(J),U=Q==='"'?"Quote":"Apostrophe",W=J.createTracker(G),q,Y;if(t9(Z,J)){let K=J.stack;J.stack=[],q=J.enter("autolink");let $=W.move("<");return $+=W.move(J.containerPhrasing(Z,{before:$,after:">",...W.current()})),$+=W.move(">"),q(),J.stack=K,$}q=J.enter("link"),Y=J.enter("label");let H=W.move("[");if(H+=W.move(J.containerPhrasing(Z,{before:H,after:"](",...W.current()})),H+=W.move("]("),Y(),!Z.url&&Z.title||/[\0- \u007F]/.test(Z.url))Y=J.enter("destinationLiteral"),H+=W.move("<"),H+=W.move(J.safe(Z.url,{before:H,after:">",...W.current()})),H+=W.move(">");else Y=J.enter("destinationRaw"),H+=W.move(J.safe(Z.url,{before:H,after:Z.title?" ":")",...W.current()}));if(Y(),Z.title)Y=J.enter(`title${U}`),H+=W.move(" "+Q),H+=W.move(J.safe(Z.title,{before:H,after:Q,...W.current()})),H+=W.move(Q),Y();return H+=W.move(")"),q(),H}function sD(Z,X,J){return t9(Z,J)?"<":"["}var AW=C(()=>{IW();e9.peek=sD});function ZZ(Z,X,J,G){let Q=Z.referenceType,U=J.enter("linkReference"),W=J.enter("label"),q=J.createTracker(G),Y=q.move("["),H=J.containerPhrasing(Z,{before:Y,after:"]",...q.current()});Y+=q.move(H+"]["),W();let K=J.stack;J.stack=[],W=J.enter("reference");let $=J.safe(J.associationId(Z),{before:Y,after:"]",...q.current()});if(W(),J.stack=K,U(),Q==="full"||!H||H!==$)Y+=q.move($+"]");else if(Q==="shortcut")Y=Y.slice(0,-1);else Y+=q.move("]");return Y}function oD(){return"["}var PW=C(()=>{ZZ.peek=oD});function F7(Z){let X=Z.options.bullet||"*";if(X!=="*"&&X!=="+"&&X!=="-")throw Error("Cannot serialize items with `"+X+"` for `options.bullet`, expected `*`, `+`, or `-`");return X}function wW(Z){let X=F7(Z),J=Z.options.bulletOther;if(!J)return X==="*"?"-":"*";if(J!=="*"&&J!=="+"&&J!=="-")throw Error("Cannot serialize items with `"+J+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(J===X)throw Error("Expected `bullet` (`"+X+"`) and `bulletOther` (`"+J+"`) to be different");return J}var TW=()=>{};function CW(Z){let X=Z.options.bulletOrdered||".";if(X!=="."&&X!==")")throw Error("Cannot serialize items with `"+X+"` for `options.bulletOrdered`, expected `.` or `)`");return X}function Z8(Z){let X=Z.options.rule||"*";if(X!=="*"&&X!=="-"&&X!=="_")throw Error("Cannot serialize rules with `"+X+"` for `options.rule`, expected `*`, `-`, or `_`");return X}function jW(Z,X,J,G){let Q=J.enter("list"),U=J.bulletCurrent,W=Z.ordered?CW(J):F7(J),q=Z.ordered?W==="."?")":".":wW(J),Y=X&&J.bulletLastUsed?W===J.bulletLastUsed:!1;if(!Z.ordered){let K=Z.children?Z.children[0]:void 0;if((W==="*"||W==="-")&&K&&(!K.children||!K.children[0])&&J.stack[J.stack.length-1]==="list"&&J.stack[J.stack.length-2]==="listItem"&&J.stack[J.stack.length-3]==="list"&&J.stack[J.stack.length-4]==="listItem"&&J.indexStack[J.indexStack.length-1]===0&&J.indexStack[J.indexStack.length-2]===0&&J.indexStack[J.indexStack.length-3]===0)Y=!0;if(Z8(J)===W&&K){let $=-1;while(++$<Z.children.length){let B=Z.children[$];if(B&&B.type==="listItem"&&B.children&&B.children[0]&&B.children[0].type==="thematicBreak"){Y=!0;break}}}}if(Y)W=q;J.bulletCurrent=W;let H=J.containerFlow(Z,G);return J.bulletLastUsed=W,J.bulletCurrent=U,Q(),H}var EW=C(()=>{TW()});function SW(Z){let X=Z.options.listItemIndent||"one";if(X!=="tab"&&X!=="one"&&X!=="mixed")throw Error("Cannot serialize items with `"+X+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return X}function bW(Z,X,J,G){let Q=SW(J),U=J.bulletCurrent||F7(J);if(X&&X.type==="list"&&X.ordered)U=(typeof X.start==="number"&&X.start>-1?X.start:1)+(J.options.incrementListMarker===!1?0:X.children.indexOf(Z))+U;let W=U.length+1;if(Q==="tab"||Q==="mixed"&&(X&&X.type==="list"&&X.spread||Z.spread))W=Math.ceil(W/4)*4;let q=J.createTracker(G);q.move(U+" ".repeat(W-U.length)),q.shift(W);let Y=J.enter("listItem"),H=J.indentLines(J.containerFlow(Z,q.current()),K);return Y(),H;function K($,B,V){if(B)return(V?"":" ".repeat(W))+$;return(V?U:U+" ".repeat(W-U.length))+$}}var xW=()=>{};function gW(Z,X,J,G){let Q=J.enter("paragraph"),U=J.enter("phrasing"),W=J.containerPhrasing(Z,G);return U(),Q(),W}var XZ;var kW=C(()=>{o6();XZ=t0(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"])});var yW=C(()=>{kW()});function vW(Z,X,J,G){return(Z.children.some(function(W){return XZ(W)})?J.containerPhrasing:J.containerFlow).call(J,Z,G)}var hW=C(()=>{yW()});function mW(Z){let X=Z.options.strong||"*";if(X!=="*"&&X!=="_")throw Error("Cannot serialize strong with `"+X+"` for `options.strong`, expected `*`, or `_`");return X}function JZ(Z,X,J,G){let Q=mW(J),U=J.enter("strong"),W=J.createTracker(G),q=W.move(Q+Q),Y=W.move(J.containerPhrasing(Z,{after:Q,before:q,...W.current()})),H=Y.charCodeAt(0),K=B7(G.before.charCodeAt(G.before.length-1),H,Q);if(K.inside)Y=e0(H)+Y.slice(1);let $=Y.charCodeAt(Y.length-1),B=B7(G.after.charCodeAt(0),$,Q);if(B.inside)Y=Y.slice(0,-1)+e0($);let V=W.move(Q+Q);return U(),J.attentionEncodeSurroundingInfo={after:B.outside,before:K.outside},q+Y+V}function tD(Z,X,J){return J.options.strong||"*"}var uW=C(()=>{d9();JZ.peek=tD});function pW(Z,X,J,G){return J.safe(Z.value,G)}function fW(Z){let X=Z.options.ruleRepetition||3;if(X<3)throw Error("Cannot serialize rules with repetition `"+X+"` for `options.ruleRepetition`, expected `3` or more");return X}function lW(Z,X,J){let G=(Z8(J)+(J.options.ruleSpaces?" ":"")).repeat(fW(J));return J.options.ruleSpaces?G.slice(0,-1):G}var iW=()=>{};var Q5;var dW=C(()=>{GW();YW();KW();zW();_W();RW();OW();NW();LW();AW();PW();EW();xW();hW();uW();iW();Q5={blockquote:ZW,break:i9,code:qW,definition:HW,emphasis:r9,hardBreak:i9,heading:DW,html:n9,image:a9,imageReference:s9,inlineCode:o9,link:e9,linkReference:ZZ,list:jW,listItem:bW,paragraph:gW,root:vW,strong:JZ,text:pW,thematicBreak:lW}});var GZ=C(()=>{dW()});function UZ(){return{enter:{table:eD,tableData:rW,tableHeader:rW,tableRow:X_},exit:{codeText:J_,table:Z_,tableData:QZ,tableHeader:QZ,tableRow:QZ}}}function eD(Z){let X=Z._align;O(X,"expected `_align` on table"),this.enter({type:"table",align:X.map(function(J){return J==="none"?null:J}),children:[]},Z),this.data.inTable=!0}function Z_(Z){this.exit(Z),this.data.inTable=void 0}function X_(Z){this.enter({type:"tableRow",children:[]},Z)}function QZ(Z){this.exit(Z)}function rW(Z){this.enter({type:"tableCell",children:[]},Z)}function J_(Z){let X=this.resume();if(this.data.inTable)X=X.replace(/\\([\\|])/g,G_);let J=this.stack[this.stack.length-1];O(J.type==="inlineCode"),J.value=X,this.exit(Z)}function G_(Z,X){return X==="|"?X:Z}function WZ(Z){let X=Z||{},J=X.tableCellPadding,G=X.tablePipeAlign,Q=X.stringLength,U=J?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
163
163
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:B,table:W,tableCell:Y,tableRow:q}};function W(V,M,_,D){return H(K(V,_,D),V.align)}function q(V,M,_,D){let R=$(V,_,D),N=H([R]);return N.slice(0,N.indexOf(`
164
- `))}function Y(V,M,_,D){let R=_.enter("tableCell"),N=_.enter("phrasing"),L=_.containerPhrasing(V,{...D,before:U,after:U});return N(),R(),L}function H(V,M){return tU(V,{align:M,alignDelimiters:G,padding:J,stringLength:Q})}function K(V,M,_){let D=V.children,R=-1,N=[],L=M.enter("table");while(++R<D.length)N[R]=$(D[R],M,_);return L(),N}function $(V,M,_){let D=V.children,R=-1,N=[],L=M.enter("tableRow");while(++R<D.length)N[R]=Y(D[R],V,M,_);return L(),N}function B(V,M,_){let D=Q5.inlineCode(V,M,_);if(_.stack.includes("tableCell"))D=D.replace(/\|/g,"\\$&");return D}}var rW=C(()=>{o();GZ()});var cW=C(()=>{rW()});function qZ(){return{exit:{taskListCheckValueChecked:nW,taskListCheckValueUnchecked:nW,paragraph:J_}}}function YZ(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:G_}}}function nW(Z){let X=this.stack[this.stack.length-2];O(X.type==="listItem"),X.checked=Z.type==="taskListCheckValueChecked"}function J_(Z){let X=this.stack[this.stack.length-2];if(X&&X.type==="listItem"&&typeof X.checked==="boolean"){let J=this.stack[this.stack.length-1];O(J.type==="paragraph");let G=J.children[0];if(G&&G.type==="text"){let Q=X.children,U=-1,W;while(++U<Q.length){let q=Q[U];if(q.type==="paragraph"){W=q;break}}if(W===J){if(G.value=G.value.slice(1),G.value.length===0)J.children.shift();else if(J.position&&G.position&&typeof G.position.start.offset==="number")G.position.start.column++,G.position.start.offset++,J.position.start=Object.assign({},G.position.start)}}}this.exit(Z)}function G_(Z,X,J,G){let Q=Z.children[0],U=typeof Z.checked==="boolean"&&Q&&Q.type==="paragraph",W="["+(Z.checked?"x":" ")+"] ",q=J.createTracker(G);if(U)q.move(W);let Y=Q5.listItem(Z,X,J,{...G,...q.current()});if(U)Y=Y.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,H);return Y;function H(K){return K+W}}var aW=C(()=>{o();GZ()});var sW=C(()=>{aW()});function HZ(){return[h9(),u9(),f9(),UZ(),qZ()]}function KZ(Z){return{extensions:[m9(),p9(Z),l9(),WZ(Z),YZ()]}}var oW=C(()=>{lU();cU();sU();cW();sW()});var tW=C(()=>{oW()});function zZ(){return{text:R0}}function W_(Z,X,J){let G=this,Q,U;return W;function W($){if(!$Z($)||!Wq.call(G,G.previous)||VZ(G.events))return J($);return Z.enter("literalAutolink"),Z.enter("literalAutolinkEmail"),q($)}function q($){if($Z($))return Z.consume($),q;if($===z.atSign)return Z.consume($),Y;return J($)}function Y($){if($===z.dot)return Z.check(U_,K,H)($);if($===z.dash||$===z.underscore||I1($))return U=!0,Z.consume($),Y;return K($)}function H($){return Z.consume($),Q=!0,Y}function K($){if(U&&Q&&L1(G.previous))return Z.exit("literalAutolinkEmail"),Z.exit("literalAutolink"),X($);return J($)}}function q_(Z,X,J){let G=this;return Q;function Q(W){if(W!==z.uppercaseW&&W!==z.lowercaseW||!Qq.call(G,G.previous)||VZ(G.events))return J(W);return Z.enter("literalAutolink"),Z.enter("literalAutolinkWww"),Z.check(Q_,Z.attempt(eW,Z.attempt(Zq,U),J),J)(W)}function U(W){return Z.exit("literalAutolinkWww"),Z.exit("literalAutolink"),X(W)}}function Y_(Z,X,J){let G=this,Q="",U=!1;return W;function W($){if(($===z.uppercaseH||$===z.lowercaseH)&&Uq.call(G,G.previous)&&!VZ(G.events))return Z.enter("literalAutolink"),Z.enter("literalAutolinkHttp"),Q+=String.fromCodePoint($),Z.consume($),q;return J($)}function q($){if(L1($)&&Q.length<5)return Q+=String.fromCodePoint($),Z.consume($),q;if($===z.colon){let B=Q.toLowerCase();if(B==="http"||B==="https")return Z.consume($),Y}return J($)}function Y($){if($===z.slash){if(Z.consume($),U)return H;return U=!0,Y}return J($)}function H($){return $===z.eof||Y4($)||t($)||b1($)||r1($)?J($):Z.attempt(eW,Z.attempt(Zq,K),J)($)}function K($){return Z.exit("literalAutolinkHttp"),Z.exit("literalAutolink"),X($)}}function H_(Z,X,J){let G=0;return Q;function Q(W){if((W===z.uppercaseW||W===z.lowercaseW)&&G<3)return G++,Z.consume(W),Q;if(W===z.dot&&G===3)return Z.consume(W),U;return J(W)}function U(W){return W===z.eof?J(W):X(W)}}function K_(Z,X,J){let G,Q,U;return W;function W(H){if(H===z.dot||H===z.underscore)return Z.check(Xq,Y,q)(H);if(H===z.eof||t(H)||b1(H)||H!==z.dash&&r1(H))return Y(H);return U=!0,Z.consume(H),W}function q(H){if(H===z.underscore)G=!0;else Q=G,G=void 0;return Z.consume(H),W}function Y(H){if(Q||G||!U)return J(H);return X(H)}}function $_(Z,X){let J=0,G=0;return Q;function Q(W){if(W===z.leftParenthesis)return J++,Z.consume(W),Q;if(W===z.rightParenthesis&&G<J)return U(W);if(W===z.exclamationMark||W===z.quotationMark||W===z.ampersand||W===z.apostrophe||W===z.rightParenthesis||W===z.asterisk||W===z.comma||W===z.dot||W===z.colon||W===z.semicolon||W===z.lessThan||W===z.questionMark||W===z.rightSquareBracket||W===z.underscore||W===z.tilde)return Z.check(Xq,X,U)(W);if(W===z.eof||t(W)||b1(W))return X(W);return Z.consume(W),Q}function U(W){if(W===z.rightParenthesis)G++;return Z.consume(W),Q}}function z_(Z,X,J){return G;function G(q){if(q===z.exclamationMark||q===z.quotationMark||q===z.apostrophe||q===z.rightParenthesis||q===z.asterisk||q===z.comma||q===z.dot||q===z.colon||q===z.semicolon||q===z.questionMark||q===z.underscore||q===z.tilde)return Z.consume(q),G;if(q===z.ampersand)return Z.consume(q),U;if(q===z.rightSquareBracket)return Z.consume(q),Q;if(q===z.lessThan||q===z.eof||t(q)||b1(q))return X(q);return J(q)}function Q(q){if(q===z.eof||q===z.leftParenthesis||q===z.leftSquareBracket||t(q)||b1(q))return X(q);return G(q)}function U(q){return L1(q)?W(q):J(q)}function W(q){if(q===z.semicolon)return Z.consume(q),G;if(L1(q))return Z.consume(q),W;return J(q)}}function V_(Z,X,J){return G;function G(U){return Z.consume(U),Q}function Q(U){return I1(U)?J(U):X(U)}}function Qq(Z){return Z===z.eof||Z===z.leftParenthesis||Z===z.asterisk||Z===z.underscore||Z===z.leftSquareBracket||Z===z.rightSquareBracket||Z===z.tilde||t(Z)}function Uq(Z){return!L1(Z)}function Wq(Z){return!(Z===z.slash||$Z(Z))}function $Z(Z){return Z===z.plusSign||Z===z.dash||Z===z.dot||Z===z.underscore||I1(Z)}function VZ(Z){let X=Z.length,J=!1;while(X--){let G=Z[X][1];if((G.type==="labelLink"||G.type==="labelImage")&&!G._balanced){J=!0;break}if(G._gfmAutolinkLiteralWalkedInto){J=!1;break}}if(Z.length>0&&!J)Z[Z.length-1][1]._gfmAutolinkLiteralWalkedInto=!0;return J}var Q_,eW,Zq,Xq,U_,Jq,Gq,v0,R0,I4;var qq=C(()=>{Z1();c();Q_={tokenize:H_,partial:!0},eW={tokenize:K_,partial:!0},Zq={tokenize:$_,partial:!0},Xq={tokenize:z_,partial:!0},U_={tokenize:V_,partial:!0},Jq={name:"wwwAutolink",tokenize:q_,previous:Qq},Gq={name:"protocolAutolink",tokenize:Y_,previous:Uq},v0={name:"emailAutolink",tokenize:W_,previous:Wq},R0={};I4=z.digit0;while(I4<z.leftCurlyBrace)if(R0[I4]=v0,I4++,I4===z.colon)I4=z.uppercaseA;else if(I4===z.leftSquareBracket)I4=z.lowercaseA;R0[z.plusSign]=v0;R0[z.dash]=v0;R0[z.dot]=v0;R0[z.underscore]=v0;R0[z.uppercaseH]=[v0,Gq];R0[z.lowercaseH]=[v0,Gq];R0[z.uppercaseW]=[v0,Jq];R0[z.lowercaseW]=[v0,Jq]});var Yq=C(()=>{qq()});function BZ(){return{document:{[z.leftSquareBracket]:{name:"gfmFootnoteDefinition",tokenize:__,continuation:{tokenize:R_},exit:O_}},text:{[z.leftSquareBracket]:{name:"gfmFootnoteCall",tokenize:D_},[z.rightSquareBracket]:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:F_,resolveTo:M_}}}}function F_(Z,X,J){let G=this,Q=G.events.length,U=G.parser.gfmFootnotes||(G.parser.gfmFootnotes=[]),W;while(Q--){let Y=G.events[Q][1];if(Y.type===F.labelImage){W=Y;break}if(Y.type==="gfmFootnoteCall"||Y.type===F.labelLink||Y.type===F.label||Y.type===F.image||Y.type===F.link)break}return q;function q(Y){if(O(Y===z.rightSquareBracket,"expected `]`"),!W||!W._balanced)return J(Y);let H=S1(G.sliceSerialize({start:W.end,end:G.now()}));if(H.codePointAt(0)!==z.caret||!U.includes(H.slice(1)))return J(Y);return Z.enter("gfmFootnoteCallLabelMarker"),Z.consume(Y),Z.exit("gfmFootnoteCallLabelMarker"),X(Y)}}function M_(Z,X){let J=Z.length,G;while(J--)if(Z[J][1].type===F.labelImage&&Z[J][0]==="enter"){G=Z[J][1];break}O(G,"expected `labelStart` to resolve"),Z[J+1][1].type=F.data,Z[J+3][1].type="gfmFootnoteCallLabelMarker";let Q={type:"gfmFootnoteCall",start:Object.assign({},Z[J+3][1].start),end:Object.assign({},Z[Z.length-1][1].end)},U={type:"gfmFootnoteCallMarker",start:Object.assign({},Z[J+3][1].end),end:Object.assign({},Z[J+3][1].end)};U.end.column++,U.end.offset++,U.end._bufferIndex++;let W={type:"gfmFootnoteCallString",start:Object.assign({},U.end),end:Object.assign({},Z[Z.length-1][1].start)},q={type:F.chunkString,contentType:"string",start:Object.assign({},W.start),end:Object.assign({},W.end)},Y=[Z[J+1],Z[J+2],["enter",Q,X],Z[J+3],Z[J+4],["enter",U,X],["exit",U,X],["enter",W,X],["enter",q,X],["exit",q,X],["exit",W,X],Z[Z.length-2],Z[Z.length-1],["exit",Q,X]];return Z.splice(J,Z.length-J+1,...Y),Z}function D_(Z,X,J){let G=this,Q=G.parser.gfmFootnotes||(G.parser.gfmFootnotes=[]),U=0,W;return q;function q($){return O($===z.leftSquareBracket,"expected `[`"),Z.enter("gfmFootnoteCall"),Z.enter("gfmFootnoteCallLabelMarker"),Z.consume($),Z.exit("gfmFootnoteCallLabelMarker"),Y}function Y($){if($!==z.caret)return J($);return Z.enter("gfmFootnoteCallMarker"),Z.consume($),Z.exit("gfmFootnoteCallMarker"),Z.enter("gfmFootnoteCallString"),Z.enter("chunkString").contentType="string",H}function H($){if(U>g.linkReferenceSizeMax||$===z.rightSquareBracket&&!W||$===z.eof||$===z.leftSquareBracket||t($))return J($);if($===z.rightSquareBracket){Z.exit("chunkString");let B=Z.exit("gfmFootnoteCallString");if(!Q.includes(S1(G.sliceSerialize(B))))return J($);return Z.enter("gfmFootnoteCallLabelMarker"),Z.consume($),Z.exit("gfmFootnoteCallLabelMarker"),Z.exit("gfmFootnoteCall"),X}if(!t($))W=!0;return U++,Z.consume($),$===z.backslash?K:H}function K($){if($===z.leftSquareBracket||$===z.backslash||$===z.rightSquareBracket)return Z.consume($),U++,H;return H($)}}function __(Z,X,J){let G=this,Q=G.parser.gfmFootnotes||(G.parser.gfmFootnotes=[]),U,W=0,q;return Y;function Y(M){return O(M===z.leftSquareBracket,"expected `[`"),Z.enter("gfmFootnoteDefinition")._container=!0,Z.enter("gfmFootnoteDefinitionLabel"),Z.enter("gfmFootnoteDefinitionLabelMarker"),Z.consume(M),Z.exit("gfmFootnoteDefinitionLabelMarker"),H}function H(M){if(M===z.caret)return Z.enter("gfmFootnoteDefinitionMarker"),Z.consume(M),Z.exit("gfmFootnoteDefinitionMarker"),Z.enter("gfmFootnoteDefinitionLabelString"),Z.enter("chunkString").contentType="string",K;return J(M)}function K(M){if(W>g.linkReferenceSizeMax||M===z.rightSquareBracket&&!q||M===z.eof||M===z.leftSquareBracket||t(M))return J(M);if(M===z.rightSquareBracket){Z.exit("chunkString");let _=Z.exit("gfmFootnoteDefinitionLabelString");return U=S1(G.sliceSerialize(_)),Z.enter("gfmFootnoteDefinitionLabelMarker"),Z.consume(M),Z.exit("gfmFootnoteDefinitionLabelMarker"),Z.exit("gfmFootnoteDefinitionLabel"),B}if(!t(M))q=!0;return W++,Z.consume(M),M===z.backslash?$:K}function $(M){if(M===z.leftSquareBracket||M===z.backslash||M===z.rightSquareBracket)return Z.consume(M),W++,K;return K(M)}function B(M){if(M===z.colon){if(Z.enter("definitionMarker"),Z.consume(M),Z.exit("definitionMarker"),!Q.includes(U))Q.push(U);return l(Z,V,"gfmFootnoteDefinitionWhitespace")}return J(M)}function V(M){return X(M)}}function R_(Z,X,J){return Z.check(B0,X,Z.attempt(B_,X,J))}function O_(Z){Z.exit("gfmFootnoteDefinition")}function N_(Z,X,J){let G=this;return l(Z,Q,"gfmFootnoteDefinitionIndent",g.tabSize+1);function Q(U){let W=G.events[G.events.length-1];return W&&W[1].type==="gfmFootnoteDefinitionIndent"&&W[2].sliceSerialize(W[1],!0).length===g.tabSize?X(U):J(U)}}var B_;var Hq=C(()=>{o();e5();K1();Z1();p4();c();B_={tokenize:N_,partial:!0}});var Kq=C(()=>{Hq()});function FZ(Z){let J=(Z||{}).singleTilde,G={name:"strikethrough",tokenize:U,resolveAll:Q};if(J===null||J===void 0)J=!0;return{text:{[z.tilde]:G},insideSpan:{null:[G]},attentionMarkers:{null:[z.tilde]}};function Q(W,q){let Y=-1;while(++Y<W.length)if(W[Y][0]==="enter"&&W[Y][1].type==="strikethroughSequenceTemporary"&&W[Y][1]._close){let H=Y;while(H--)if(W[H][0]==="exit"&&W[H][1].type==="strikethroughSequenceTemporary"&&W[H][1]._open&&W[Y][1].end.offset-W[Y][1].start.offset===W[H][1].end.offset-W[H][1].start.offset){W[Y][1].type="strikethroughSequence",W[H][1].type="strikethroughSequence";let K={type:"strikethrough",start:Object.assign({},W[H][1].start),end:Object.assign({},W[Y][1].end)},$={type:"strikethroughText",start:Object.assign({},W[H][1].end),end:Object.assign({},W[Y][1].start)},B=[["enter",K,q],["enter",W[H][1],q],["exit",W[H][1],q],["enter",$,q]],V=q.parser.constructs.insideSpan.null;if(V)B1(B,B.length,0,i0(V,W.slice(H+1,Y),q));B1(B,B.length,0,[["exit",$,q],["enter",W[Y][1],q],["exit",W[Y][1],q],["exit",K,q]]),B1(W,H-1,Y-H+3,B),Y=H+B.length-2;break}}Y=-1;while(++Y<W.length)if(W[Y][1].type==="strikethroughSequenceTemporary")W[Y][1].type=F.data;return W}function U(W,q,Y){let H=this.previous,K=this.events,$=0;return B;function B(M){if(O(M===z.tilde,"expected `~`"),H===z.tilde&&K[K.length-1][1].type!==F.characterEscape)return Y(M);return W.enter("strikethroughSequenceTemporary"),V(M)}function V(M){let _=j0(H);if(M===z.tilde){if($>1)return Y(M);return W.consume(M),$++,V}if($<2&&!J)return Y(M);let D=W.exit("strikethroughSequenceTemporary"),R=j0(M);return D._open=!R||R===g.attentionSideAfter&&Boolean(_),D._close=!_||_===g.attentionSideAfter&&Boolean(R),q(M)}}}var $q=C(()=>{o();C0();u5();c()});var zq=C(()=>{$q()});class MZ{constructor(){this.map=[]}add(Z,X,J){L_(this,Z,X,J)}consume(Z){if(this.map.sort(function(Q,U){return Q[0]-U[0]}),this.map.length===0)return;let X=this.map.length,J=[];while(X>0)X-=1,J.push(Z.slice(this.map[X][0]+this.map[X][1]),this.map[X][2]),Z.length=this.map[X][0];J.push(Z.slice()),Z.length=0;let G=J.pop();while(G){for(let Q of G)Z.push(Q);G=J.pop()}this.map.length=0}}function L_(Z,X,J,G){let Q=0;if(J===0&&G.length===0)return;while(Q<Z.map.length){if(Z.map[Q][0]===X){Z.map[Q][1]+=J,Z.map[Q][2].push(...G);return}Q+=1}Z.map.push([X,J,G])}function Vq(Z,X){O(Z[X][1].type==="table","expected table");let J=!1,G=[];while(X<Z.length){let Q=Z[X];if(J){if(Q[0]==="enter"){if(Q[1].type==="tableContent")G.push(Z[X+1][1].type==="tableDelimiterMarker"?"left":"none")}else if(Q[1].type==="tableContent"){if(Z[X-1][1].type==="tableDelimiterMarker"){let U=G.length-1;G[U]=G[U]==="left"?"center":"right"}}else if(Q[1].type==="tableDelimiterRow")break}else if(Q[0]==="enter"&&Q[1].type==="tableDelimiterRow")J=!0;X+=1}return G}var Bq=C(()=>{o()});function DZ(){return{flow:{null:{name:"table",tokenize:I_,resolveAll:A_}}}}function I_(Z,X,J){let G=this,Q=0,U=0,W;return q;function q(P){let n=G.events.length-1;while(n>-1){let f=G.events[n][1].type;if(f===F.lineEnding||f===F.linePrefix)n--;else break}let a=n>-1?G.events[n][1].type:null,v=a==="tableHead"||a==="tableRow"?w:Y;if(v===w&&G.parser.lazy[G.now().line])return J(P);return v(P)}function Y(P){return Z.enter("tableHead"),Z.enter("tableRow"),H(P)}function H(P){if(P===z.verticalBar)return K(P);return W=!0,U+=1,K(P)}function K(P){if(P===z.eof)return J(P);if(k(P)){if(U>1)return U=0,G.interrupt=!0,Z.exit("tableRow"),Z.enter(F.lineEnding),Z.consume(P),Z.exit(F.lineEnding),V;return J(P)}if(d(P))return l(Z,K,F.whitespace)(P);if(U+=1,W)W=!1,Q+=1;if(P===z.verticalBar)return Z.enter("tableCellDivider"),Z.consume(P),Z.exit("tableCellDivider"),W=!0,K;return Z.enter(F.data),$(P)}function $(P){if(P===z.eof||P===z.verticalBar||t(P))return Z.exit(F.data),K(P);return Z.consume(P),P===z.backslash?B:$}function B(P){if(P===z.backslash||P===z.verticalBar)return Z.consume(P),$;return $(P)}function V(P){if(G.interrupt=!1,G.parser.lazy[G.now().line])return J(P);if(Z.enter("tableDelimiterRow"),W=!1,d(P))return O(G.parser.constructs.disable.null,"expected `disabled.null`"),l(Z,M,F.linePrefix,G.parser.constructs.disable.null.includes("codeIndented")?void 0:g.tabSize)(P);return M(P)}function M(P){if(P===z.dash||P===z.colon)return D(P);if(P===z.verticalBar)return W=!0,Z.enter("tableCellDivider"),Z.consume(P),Z.exit("tableCellDivider"),_;return m(P)}function _(P){if(d(P))return l(Z,D,F.whitespace)(P);return D(P)}function D(P){if(P===z.colon)return U+=1,W=!0,Z.enter("tableDelimiterMarker"),Z.consume(P),Z.exit("tableDelimiterMarker"),R;if(P===z.dash)return U+=1,R(P);if(P===z.eof||k(P))return E(P);return m(P)}function R(P){if(P===z.dash)return Z.enter("tableDelimiterFiller"),N(P);return m(P)}function N(P){if(P===z.dash)return Z.consume(P),N;if(P===z.colon)return W=!0,Z.exit("tableDelimiterFiller"),Z.enter("tableDelimiterMarker"),Z.consume(P),Z.exit("tableDelimiterMarker"),L;return Z.exit("tableDelimiterFiller"),L(P)}function L(P){if(d(P))return l(Z,E,F.whitespace)(P);return E(P)}function E(P){if(P===z.verticalBar)return M(P);if(P===z.eof||k(P)){if(!W||Q!==U)return m(P);return Z.exit("tableDelimiterRow"),Z.exit("tableHead"),X(P)}return m(P)}function m(P){return J(P)}function w(P){return Z.enter("tableRow"),y(P)}function y(P){if(P===z.verticalBar)return Z.enter("tableCellDivider"),Z.consume(P),Z.exit("tableCellDivider"),y;if(P===z.eof||k(P))return Z.exit("tableRow"),X(P);if(d(P))return l(Z,y,F.whitespace)(P);return Z.enter(F.data),h(P)}function h(P){if(P===z.eof||P===z.verticalBar||t(P))return Z.exit(F.data),y(P);return Z.consume(P),P===z.backslash?j:h}function j(P){if(P===z.backslash||P===z.verticalBar)return Z.consume(P),h;return h(P)}}function A_(Z,X){let J=-1,G=!0,Q=0,U=[0,0,0,0],W=[0,0,0,0],q=!1,Y=0,H,K,$,B=new MZ;while(++J<Z.length){let V=Z[J],M=V[1];if(V[0]==="enter"){if(M.type==="tableHead"){if(q=!1,Y!==0)O(H,"there should be a table opening"),Fq(B,X,Y,H,K),K=void 0,Y=0;H={type:"table",start:Object.assign({},M.start),end:Object.assign({},M.end)},B.add(J,0,[["enter",H,X]])}else if(M.type==="tableRow"||M.type==="tableDelimiterRow"){if(G=!0,$=void 0,U=[0,0,0,0],W=[0,J+1,0,0],q)q=!1,K={type:"tableBody",start:Object.assign({},M.start),end:Object.assign({},M.end)},B.add(J,0,[["enter",K,X]]);Q=M.type==="tableDelimiterRow"?2:K?3:1}else if(Q&&(M.type===F.data||M.type==="tableDelimiterMarker"||M.type==="tableDelimiterFiller")){if(G=!1,W[2]===0){if(U[1]!==0)W[0]=W[1],$=X8(B,X,U,Q,void 0,$),U=[0,0,0,0];W[2]=J}}else if(M.type==="tableCellDivider")if(G)G=!1;else{if(U[1]!==0)W[0]=W[1],$=X8(B,X,U,Q,void 0,$);U=W,W=[U[1],J,0,0]}}else if(M.type==="tableHead")q=!0,Y=J;else if(M.type==="tableRow"||M.type==="tableDelimiterRow"){if(Y=J,U[1]!==0)W[0]=W[1],$=X8(B,X,U,Q,J,$);else if(W[1]!==0)$=X8(B,X,W,Q,J,$);Q=0}else if(Q&&(M.type===F.data||M.type==="tableDelimiterMarker"||M.type==="tableDelimiterFiller"))W[3]=J}if(Y!==0)O(H,"expected table opening"),Fq(B,X,Y,H,K);B.consume(X.events),J=-1;while(++J<X.events.length){let V=X.events[J];if(V[0]==="enter"&&V[1].type==="table")V[1]._align=Vq(X.events,J)}return Z}function X8(Z,X,J,G,Q,U){let W=G===1?"tableHeader":G===2?"tableDelimiter":"tableData",q="tableContent";if(J[0]!==0)O(U,"expected previous cell enter"),U.end=Object.assign({},M7(X.events,J[0])),Z.add(J[0],0,[["exit",U,X]]);let Y=M7(X.events,J[1]);if(U={type:W,start:Object.assign({},Y),end:Object.assign({},Y)},Z.add(J[1],0,[["enter",U,X]]),J[2]!==0){let H=M7(X.events,J[2]),K=M7(X.events,J[3]),$={type:"tableContent",start:Object.assign({},H),end:Object.assign({},K)};if(Z.add(J[2],0,[["enter",$,X]]),O(J[3]!==0),G!==2){let B=X.events[J[2]],V=X.events[J[3]];if(B[1].end=Object.assign({},V[1].end),B[1].type=F.chunkText,B[1].contentType=g.contentTypeText,J[3]>J[2]+1){let M=J[2]+1,_=J[3]-J[2]-1;Z.add(M,_,[])}}Z.add(J[3]+1,0,[["exit",$,X]])}if(Q!==void 0)U.end=Object.assign({},M7(X.events,Q)),Z.add(Q,0,[["exit",U,X]]),U=void 0;return U}function Fq(Z,X,J,G,Q){let U=[],W=M7(X.events,J);if(Q)Q.end=Object.assign({},W),U.push(["exit",Q,X]);G.end=Object.assign({},W),U.push(["exit",G,X]),Z.add(J+1,0,U)}function M7(Z,X){let J=Z[X],G=J[0]==="enter"?"start":"end";return J[1][G]}var Mq=C(()=>{o();K1();Z1();c();Bq()});var Dq=C(()=>{Mq()});function _Z(){return{text:{[z.leftSquareBracket]:P_}}}function w_(Z,X,J){let G=this;return Q;function Q(Y){if(O(Y===z.leftSquareBracket,"expected `[`"),G.previous!==z.eof||!G._gfmTasklistFirstContentOfListItem)return J(Y);return Z.enter("taskListCheck"),Z.enter("taskListCheckMarker"),Z.consume(Y),Z.exit("taskListCheckMarker"),U}function U(Y){if(t(Y))return Z.enter("taskListCheckValueUnchecked"),Z.consume(Y),Z.exit("taskListCheckValueUnchecked"),W;if(Y===z.uppercaseX||Y===z.lowercaseX)return Z.enter("taskListCheckValueChecked"),Z.consume(Y),Z.exit("taskListCheckValueChecked"),W;return J(Y)}function W(Y){if(Y===z.rightSquareBracket)return Z.enter("taskListCheckMarker"),Z.consume(Y),Z.exit("taskListCheckMarker"),Z.exit("taskListCheck"),q;return J(Y)}function q(Y){if(k(Y))return X(Y);if(d(Y))return Z.check({tokenize:T_},X,J)(Y);return J(Y)}}function T_(Z,X,J){return l(Z,G,F.whitespace);function G(Q){return Q===z.eof?J(Q):X(Q)}}var P_;var _q=C(()=>{o();K1();Z1();c();P_={name:"tasklistCheck",tokenize:w_}});var Rq=C(()=>{_q()});function Oq(Z){return h5([zZ(),BZ(),FZ(Z),DZ(),_Z()])}var Nq=C(()=>{W3();Yq();Kq();zq();Dq();Rq()});function J8(Z){let X=this,J=Z||C_,G=X.data(),Q=G.micromarkExtensions||(G.micromarkExtensions=[]),U=G.fromMarkdownExtensions||(G.fromMarkdownExtensions=[]),W=G.toMarkdownExtensions||(G.toMarkdownExtensions=[]);Q.push(Oq(J)),U.push(HZ()),W.push(KZ(J))}var C_;var Lq=C(()=>{tW();Nq();C_={}});var Iq=C(()=>{Lq()});var Aq;var Pq=C(()=>{Aq=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"]});var RZ;var wq=C(()=>{RZ={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"}});function G8(Z){let X=typeof Z==="string"?Z.charCodeAt(0):Z;return X>=48&&X<=57}function Tq(Z){let X=typeof Z==="string"?Z.charCodeAt(0):Z;return X>=97&&X<=102||X>=65&&X<=70||X>=48&&X<=57}function Cq(Z){let X=typeof Z==="string"?Z.charCodeAt(0):Z;return X>=97&&X<=122||X>=65&&X<=90}function OZ(Z){return Cq(Z)||G8(Z)}var jq=()=>{};function U5(Z,X){let J=X||{},G=typeof J.additional==="string"?J.additional.charCodeAt(0):J.additional,Q=[],U=0,W=-1,q="",Y,H;if(J.position)if("start"in J.position||"indent"in J.position)H=J.position.indent,Y=J.position.start;else Y=J.position;let K=(Y?Y.line:0)||1,$=(Y?Y.column:0)||1,B=M(),V;U--;while(++U<=Z.length){if(V===10)$=(H?H[W]:0)||1;if(V=Z.charCodeAt(U),V===38){let R=Z.charCodeAt(U+1);if(R===9||R===10||R===12||R===32||R===38||R===60||Number.isNaN(R)||G&&R===G){q+=String.fromCharCode(V),$++;continue}let N=U+1,L=N,E=N,m;if(R===35){E=++L;let v=Z.charCodeAt(E);if(v===88||v===120)m="hexadecimal",E=++L;else m="decimal"}else m="named";let w="",y="",h="",j=m==="named"?OZ:m==="decimal"?G8:Tq;E--;while(++E<=Z.length){let v=Z.charCodeAt(E);if(!j(v))break;if(h+=String.fromCharCode(v),m==="named"&&Aq.includes(h))w=h,y=T0(h)}let P=Z.charCodeAt(E)===59;if(P){E++;let v=m==="named"?T0(h):!1;if(v)w=h,y=v}let n=1+E-N,a="";if(!P&&J.nonTerminated===!1);else if(!h){if(m!=="named")_(4,n)}else if(m==="named"){if(P&&!y)_(5,1);else{if(w!==h)E=L+w.length,n=1+E-L,P=!1;if(!P){let v=w?1:3;if(J.attribute){let f=Z.charCodeAt(E);if(f===61)_(v,n),y="";else if(OZ(f))y="";else _(v,n)}else _(v,n)}}a=y}else{if(!P)_(2,n);let v=Number.parseInt(h,m==="hexadecimal"?16:10);if(E_(v))_(7,n),a=String.fromCharCode(65533);else if(v in RZ)_(6,n),a=RZ[v];else{let f="";if(S_(v))_(6,n);if(v>65535)v-=65536,f+=String.fromCharCode(v>>>10|55296),v=56320|v&1023;a=f+String.fromCharCode(v)}}if(a){D(),B=M(),U=E-1,$+=E-N+1,Q.push(a);let v=M();if(v.offset++,J.reference)J.reference.call(J.referenceContext||void 0,a,{start:B,end:v},Z.slice(N-1,E));B=v}else h=Z.slice(N-1,E),q+=h,$+=h.length,U=E-1}else{if(V===10)K++,W++,$=0;if(Number.isNaN(V))D();else q+=String.fromCharCode(V),$++}}return Q.join("");function M(){return{line:K,column:$,offset:U+((Y?Y.offset:0)||0)}}function _(R,N){let L;if(J.warning)L=M(),L.column+=N,L.offset+=N,J.warning.call(J.warningContext||void 0,j_[R],L,R)}function D(){if(q){if(Q.push(q),J.text)J.text.call(J.textContext||void 0,q,{start:B,end:M()});q=""}}}function E_(Z){return Z>=55296&&Z<=57343||Z>1114111}function S_(Z){return Z>=1&&Z<=8||Z===11||Z>=13&&Z<=31||Z>=127&&Z<=159||Z>=64976&&Z<=65007||(Z&65535)===65535||(Z&65535)===65534}var j_;var Eq=C(()=>{Pq();wq();jq();m7();j_=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"]});var Sq=C(()=>{Eq()});function xq(Z,X){if(Z=Z.replace(X.subset?y_(X.subset):b_,G),X.subset||X.escapeOnly)return Z;return Z.replace(x_,J).replace(g_,G);function J(Q,U,W){return X.format((Q.charCodeAt(0)-55296)*1024+Q.charCodeAt(1)-56320+65536,W.charCodeAt(U+2),X)}function G(Q,U,W){return X.format(Q.charCodeAt(0),W.charCodeAt(U+1),X)}}function y_(Z){let X=bq.get(Z);if(!X)X=v_(Z),bq.set(Z,X);return X}function v_(Z){let X=[],J=-1;while(++J<Z.length)X.push(Z[J].replace(k_,"\\$&"));return new RegExp("(?:"+X.join("|")+")","g")}var b_,x_,g_,k_,bq;var gq=C(()=>{b_=/["&'<>`]/g,x_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,g_=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,k_=/[|\\{}()[\]^$+*?.]/g,bq=new WeakMap});function kq(Z){return"&#x"+Z.toString(16).toUpperCase()+";"}function yq(Z,X){return xq(Z,Object.assign({format:kq},X))}var vq=C(()=>{gq()});var hq=C(()=>{vq()});function jZ(){return{canContainEols:["textDirective"],enter:{directiveContainer:p_,directiveContainerAttributes:LZ,directiveContainerLabel:i_,directiveLeaf:f_,directiveLeafAttributes:LZ,directiveText:l_,directiveTextAttributes:LZ},exit:{directiveContainer:CZ,directiveContainerAttributeClassValue:AZ,directiveContainerAttributeIdValue:IZ,directiveContainerAttributeName:wZ,directiveContainerAttributeValue:PZ,directiveContainerAttributes:TZ,directiveContainerLabel:d_,directiveContainerName:NZ,directiveLeaf:CZ,directiveLeafAttributeClassValue:AZ,directiveLeafAttributeIdValue:IZ,directiveLeafAttributeName:wZ,directiveLeafAttributeValue:PZ,directiveLeafAttributes:TZ,directiveLeafName:NZ,directiveText:CZ,directiveTextAttributeClassValue:AZ,directiveTextAttributeIdValue:IZ,directiveTextAttributeName:wZ,directiveTextAttributeValue:PZ,directiveTextAttributes:TZ,directiveTextName:NZ}}}function EZ(Z){let X=Z||m_;if(X.quote!=='"'&&X.quote!=="'"&&X.quote!==null&&X.quote!==void 0)throw Error("Invalid quote `"+X.quote+"`, expected `'` or `\"`");return J.peek=r_,{handlers:{containerDirective:J,leafDirective:J,textDirective:J},unsafe:[{character:"\r",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{character:`
165
- `,inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{before:"[^:]",character:":",after:"[A-Za-z]",inConstruct:["phrasing"]},{atBreak:!0,character:":",after:":"}]};function J(U,W,q,Y){let H=q.createTracker(Y),K=c_(U),$=q.enter(U.type),B=H.move(K+(U.name||"")),V;if(U.type==="containerDirective"){let M=(U.children||[])[0];V=uq(M)?M:void 0}else V=U;if(V&&V.children&&V.children.length>0){let M=q.enter("label"),_=`${U.type}Label`,D=q.enter(_);B+=H.move("["),B+=H.move(q.containerPhrasing(V,{...H.current(),before:B,after:"]"})),B+=H.move("]"),D(),M()}if(B+=H.move(G(U,q)),U.type==="containerDirective"){let M=(U.children||[])[0],_=U;if(uq(M))_=Object.assign({},U,{children:U.children.slice(1)});if(_&&_.children&&_.children.length>0)B+=H.move(`
164
+ `))}function Y(V,M,_,D){let R=_.enter("tableCell"),N=_.enter("phrasing"),L=_.containerPhrasing(V,{...D,before:U,after:U});return N(),R(),L}function H(V,M){return eU(V,{align:M,alignDelimiters:G,padding:J,stringLength:Q})}function K(V,M,_){let D=V.children,R=-1,N=[],L=M.enter("table");while(++R<D.length)N[R]=$(D[R],M,_);return L(),N}function $(V,M,_){let D=V.children,R=-1,N=[],L=M.enter("tableRow");while(++R<D.length)N[R]=Y(D[R],V,M,_);return L(),N}function B(V,M,_){let D=Q5.inlineCode(V,M,_);if(_.stack.includes("tableCell"))D=D.replace(/\|/g,"\\$&");return D}}var cW=C(()=>{o();GZ()});var nW=C(()=>{cW()});function qZ(){return{exit:{taskListCheckValueChecked:aW,taskListCheckValueUnchecked:aW,paragraph:Q_}}}function YZ(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:U_}}}function aW(Z){let X=this.stack[this.stack.length-2];O(X.type==="listItem"),X.checked=Z.type==="taskListCheckValueChecked"}function Q_(Z){let X=this.stack[this.stack.length-2];if(X&&X.type==="listItem"&&typeof X.checked==="boolean"){let J=this.stack[this.stack.length-1];O(J.type==="paragraph");let G=J.children[0];if(G&&G.type==="text"){let Q=X.children,U=-1,W;while(++U<Q.length){let q=Q[U];if(q.type==="paragraph"){W=q;break}}if(W===J){if(G.value=G.value.slice(1),G.value.length===0)J.children.shift();else if(J.position&&G.position&&typeof G.position.start.offset==="number")G.position.start.column++,G.position.start.offset++,J.position.start=Object.assign({},G.position.start)}}}this.exit(Z)}function U_(Z,X,J,G){let Q=Z.children[0],U=typeof Z.checked==="boolean"&&Q&&Q.type==="paragraph",W="["+(Z.checked?"x":" ")+"] ",q=J.createTracker(G);if(U)q.move(W);let Y=Q5.listItem(Z,X,J,{...G,...q.current()});if(U)Y=Y.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,H);return Y;function H(K){return K+W}}var sW=C(()=>{o();GZ()});var oW=C(()=>{sW()});function HZ(){return[h9(),u9(),f9(),UZ(),qZ()]}function KZ(Z){return{extensions:[m9(),p9(Z),l9(),WZ(Z),YZ()]}}var tW=C(()=>{iU();nU();oU();nW();oW()});var eW=C(()=>{tW()});function zZ(){return{text:R0}}function Y_(Z,X,J){let G=this,Q,U;return W;function W($){if(!$Z($)||!qq.call(G,G.previous)||VZ(G.events))return J($);return Z.enter("literalAutolink"),Z.enter("literalAutolinkEmail"),q($)}function q($){if($Z($))return Z.consume($),q;if($===z.atSign)return Z.consume($),Y;return J($)}function Y($){if($===z.dot)return Z.check(q_,K,H)($);if($===z.dash||$===z.underscore||I1($))return U=!0,Z.consume($),Y;return K($)}function H($){return Z.consume($),Q=!0,Y}function K($){if(U&&Q&&L1(G.previous))return Z.exit("literalAutolinkEmail"),Z.exit("literalAutolink"),X($);return J($)}}function H_(Z,X,J){let G=this;return Q;function Q(W){if(W!==z.uppercaseW&&W!==z.lowercaseW||!Uq.call(G,G.previous)||VZ(G.events))return J(W);return Z.enter("literalAutolink"),Z.enter("literalAutolinkWww"),Z.check(W_,Z.attempt(Zq,Z.attempt(Xq,U),J),J)(W)}function U(W){return Z.exit("literalAutolinkWww"),Z.exit("literalAutolink"),X(W)}}function K_(Z,X,J){let G=this,Q="",U=!1;return W;function W($){if(($===z.uppercaseH||$===z.lowercaseH)&&Wq.call(G,G.previous)&&!VZ(G.events))return Z.enter("literalAutolink"),Z.enter("literalAutolinkHttp"),Q+=String.fromCodePoint($),Z.consume($),q;return J($)}function q($){if(L1($)&&Q.length<5)return Q+=String.fromCodePoint($),Z.consume($),q;if($===z.colon){let B=Q.toLowerCase();if(B==="http"||B==="https")return Z.consume($),Y}return J($)}function Y($){if($===z.slash){if(Z.consume($),U)return H;return U=!0,Y}return J($)}function H($){return $===z.eof||Y4($)||t($)||b1($)||r1($)?J($):Z.attempt(Zq,Z.attempt(Xq,K),J)($)}function K($){return Z.exit("literalAutolinkHttp"),Z.exit("literalAutolink"),X($)}}function $_(Z,X,J){let G=0;return Q;function Q(W){if((W===z.uppercaseW||W===z.lowercaseW)&&G<3)return G++,Z.consume(W),Q;if(W===z.dot&&G===3)return Z.consume(W),U;return J(W)}function U(W){return W===z.eof?J(W):X(W)}}function z_(Z,X,J){let G,Q,U;return W;function W(H){if(H===z.dot||H===z.underscore)return Z.check(Jq,Y,q)(H);if(H===z.eof||t(H)||b1(H)||H!==z.dash&&r1(H))return Y(H);return U=!0,Z.consume(H),W}function q(H){if(H===z.underscore)G=!0;else Q=G,G=void 0;return Z.consume(H),W}function Y(H){if(Q||G||!U)return J(H);return X(H)}}function V_(Z,X){let J=0,G=0;return Q;function Q(W){if(W===z.leftParenthesis)return J++,Z.consume(W),Q;if(W===z.rightParenthesis&&G<J)return U(W);if(W===z.exclamationMark||W===z.quotationMark||W===z.ampersand||W===z.apostrophe||W===z.rightParenthesis||W===z.asterisk||W===z.comma||W===z.dot||W===z.colon||W===z.semicolon||W===z.lessThan||W===z.questionMark||W===z.rightSquareBracket||W===z.underscore||W===z.tilde)return Z.check(Jq,X,U)(W);if(W===z.eof||t(W)||b1(W))return X(W);return Z.consume(W),Q}function U(W){if(W===z.rightParenthesis)G++;return Z.consume(W),Q}}function B_(Z,X,J){return G;function G(q){if(q===z.exclamationMark||q===z.quotationMark||q===z.apostrophe||q===z.rightParenthesis||q===z.asterisk||q===z.comma||q===z.dot||q===z.colon||q===z.semicolon||q===z.questionMark||q===z.underscore||q===z.tilde)return Z.consume(q),G;if(q===z.ampersand)return Z.consume(q),U;if(q===z.rightSquareBracket)return Z.consume(q),Q;if(q===z.lessThan||q===z.eof||t(q)||b1(q))return X(q);return J(q)}function Q(q){if(q===z.eof||q===z.leftParenthesis||q===z.leftSquareBracket||t(q)||b1(q))return X(q);return G(q)}function U(q){return L1(q)?W(q):J(q)}function W(q){if(q===z.semicolon)return Z.consume(q),G;if(L1(q))return Z.consume(q),W;return J(q)}}function F_(Z,X,J){return G;function G(U){return Z.consume(U),Q}function Q(U){return I1(U)?J(U):X(U)}}function Uq(Z){return Z===z.eof||Z===z.leftParenthesis||Z===z.asterisk||Z===z.underscore||Z===z.leftSquareBracket||Z===z.rightSquareBracket||Z===z.tilde||t(Z)}function Wq(Z){return!L1(Z)}function qq(Z){return!(Z===z.slash||$Z(Z))}function $Z(Z){return Z===z.plusSign||Z===z.dash||Z===z.dot||Z===z.underscore||I1(Z)}function VZ(Z){let X=Z.length,J=!1;while(X--){let G=Z[X][1];if((G.type==="labelLink"||G.type==="labelImage")&&!G._balanced){J=!0;break}if(G._gfmAutolinkLiteralWalkedInto){J=!1;break}}if(Z.length>0&&!J)Z[Z.length-1][1]._gfmAutolinkLiteralWalkedInto=!0;return J}var W_,Zq,Xq,Jq,q_,Gq,Qq,v0,R0,I4;var Yq=C(()=>{Z1();c();W_={tokenize:$_,partial:!0},Zq={tokenize:z_,partial:!0},Xq={tokenize:V_,partial:!0},Jq={tokenize:B_,partial:!0},q_={tokenize:F_,partial:!0},Gq={name:"wwwAutolink",tokenize:H_,previous:Uq},Qq={name:"protocolAutolink",tokenize:K_,previous:Wq},v0={name:"emailAutolink",tokenize:Y_,previous:qq},R0={};I4=z.digit0;while(I4<z.leftCurlyBrace)if(R0[I4]=v0,I4++,I4===z.colon)I4=z.uppercaseA;else if(I4===z.leftSquareBracket)I4=z.lowercaseA;R0[z.plusSign]=v0;R0[z.dash]=v0;R0[z.dot]=v0;R0[z.underscore]=v0;R0[z.uppercaseH]=[v0,Qq];R0[z.lowercaseH]=[v0,Qq];R0[z.uppercaseW]=[v0,Gq];R0[z.lowercaseW]=[v0,Gq]});var Hq=C(()=>{Yq()});function BZ(){return{document:{[z.leftSquareBracket]:{name:"gfmFootnoteDefinition",tokenize:O_,continuation:{tokenize:N_},exit:L_}},text:{[z.leftSquareBracket]:{name:"gfmFootnoteCall",tokenize:R_},[z.rightSquareBracket]:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:D_,resolveTo:__}}}}function D_(Z,X,J){let G=this,Q=G.events.length,U=G.parser.gfmFootnotes||(G.parser.gfmFootnotes=[]),W;while(Q--){let Y=G.events[Q][1];if(Y.type===F.labelImage){W=Y;break}if(Y.type==="gfmFootnoteCall"||Y.type===F.labelLink||Y.type===F.label||Y.type===F.image||Y.type===F.link)break}return q;function q(Y){if(O(Y===z.rightSquareBracket,"expected `]`"),!W||!W._balanced)return J(Y);let H=S1(G.sliceSerialize({start:W.end,end:G.now()}));if(H.codePointAt(0)!==z.caret||!U.includes(H.slice(1)))return J(Y);return Z.enter("gfmFootnoteCallLabelMarker"),Z.consume(Y),Z.exit("gfmFootnoteCallLabelMarker"),X(Y)}}function __(Z,X){let J=Z.length,G;while(J--)if(Z[J][1].type===F.labelImage&&Z[J][0]==="enter"){G=Z[J][1];break}O(G,"expected `labelStart` to resolve"),Z[J+1][1].type=F.data,Z[J+3][1].type="gfmFootnoteCallLabelMarker";let Q={type:"gfmFootnoteCall",start:Object.assign({},Z[J+3][1].start),end:Object.assign({},Z[Z.length-1][1].end)},U={type:"gfmFootnoteCallMarker",start:Object.assign({},Z[J+3][1].end),end:Object.assign({},Z[J+3][1].end)};U.end.column++,U.end.offset++,U.end._bufferIndex++;let W={type:"gfmFootnoteCallString",start:Object.assign({},U.end),end:Object.assign({},Z[Z.length-1][1].start)},q={type:F.chunkString,contentType:"string",start:Object.assign({},W.start),end:Object.assign({},W.end)},Y=[Z[J+1],Z[J+2],["enter",Q,X],Z[J+3],Z[J+4],["enter",U,X],["exit",U,X],["enter",W,X],["enter",q,X],["exit",q,X],["exit",W,X],Z[Z.length-2],Z[Z.length-1],["exit",Q,X]];return Z.splice(J,Z.length-J+1,...Y),Z}function R_(Z,X,J){let G=this,Q=G.parser.gfmFootnotes||(G.parser.gfmFootnotes=[]),U=0,W;return q;function q($){return O($===z.leftSquareBracket,"expected `[`"),Z.enter("gfmFootnoteCall"),Z.enter("gfmFootnoteCallLabelMarker"),Z.consume($),Z.exit("gfmFootnoteCallLabelMarker"),Y}function Y($){if($!==z.caret)return J($);return Z.enter("gfmFootnoteCallMarker"),Z.consume($),Z.exit("gfmFootnoteCallMarker"),Z.enter("gfmFootnoteCallString"),Z.enter("chunkString").contentType="string",H}function H($){if(U>g.linkReferenceSizeMax||$===z.rightSquareBracket&&!W||$===z.eof||$===z.leftSquareBracket||t($))return J($);if($===z.rightSquareBracket){Z.exit("chunkString");let B=Z.exit("gfmFootnoteCallString");if(!Q.includes(S1(G.sliceSerialize(B))))return J($);return Z.enter("gfmFootnoteCallLabelMarker"),Z.consume($),Z.exit("gfmFootnoteCallLabelMarker"),Z.exit("gfmFootnoteCall"),X}if(!t($))W=!0;return U++,Z.consume($),$===z.backslash?K:H}function K($){if($===z.leftSquareBracket||$===z.backslash||$===z.rightSquareBracket)return Z.consume($),U++,H;return H($)}}function O_(Z,X,J){let G=this,Q=G.parser.gfmFootnotes||(G.parser.gfmFootnotes=[]),U,W=0,q;return Y;function Y(M){return O(M===z.leftSquareBracket,"expected `[`"),Z.enter("gfmFootnoteDefinition")._container=!0,Z.enter("gfmFootnoteDefinitionLabel"),Z.enter("gfmFootnoteDefinitionLabelMarker"),Z.consume(M),Z.exit("gfmFootnoteDefinitionLabelMarker"),H}function H(M){if(M===z.caret)return Z.enter("gfmFootnoteDefinitionMarker"),Z.consume(M),Z.exit("gfmFootnoteDefinitionMarker"),Z.enter("gfmFootnoteDefinitionLabelString"),Z.enter("chunkString").contentType="string",K;return J(M)}function K(M){if(W>g.linkReferenceSizeMax||M===z.rightSquareBracket&&!q||M===z.eof||M===z.leftSquareBracket||t(M))return J(M);if(M===z.rightSquareBracket){Z.exit("chunkString");let _=Z.exit("gfmFootnoteDefinitionLabelString");return U=S1(G.sliceSerialize(_)),Z.enter("gfmFootnoteDefinitionLabelMarker"),Z.consume(M),Z.exit("gfmFootnoteDefinitionLabelMarker"),Z.exit("gfmFootnoteDefinitionLabel"),B}if(!t(M))q=!0;return W++,Z.consume(M),M===z.backslash?$:K}function $(M){if(M===z.leftSquareBracket||M===z.backslash||M===z.rightSquareBracket)return Z.consume(M),W++,K;return K(M)}function B(M){if(M===z.colon){if(Z.enter("definitionMarker"),Z.consume(M),Z.exit("definitionMarker"),!Q.includes(U))Q.push(U);return l(Z,V,"gfmFootnoteDefinitionWhitespace")}return J(M)}function V(M){return X(M)}}function N_(Z,X,J){return Z.check(B0,X,Z.attempt(M_,X,J))}function L_(Z){Z.exit("gfmFootnoteDefinition")}function I_(Z,X,J){let G=this;return l(Z,Q,"gfmFootnoteDefinitionIndent",g.tabSize+1);function Q(U){let W=G.events[G.events.length-1];return W&&W[1].type==="gfmFootnoteDefinitionIndent"&&W[2].sliceSerialize(W[1],!0).length===g.tabSize?X(U):J(U)}}var M_;var Kq=C(()=>{o();e5();K1();Z1();p4();c();M_={tokenize:I_,partial:!0}});var $q=C(()=>{Kq()});function FZ(Z){let J=(Z||{}).singleTilde,G={name:"strikethrough",tokenize:U,resolveAll:Q};if(J===null||J===void 0)J=!0;return{text:{[z.tilde]:G},insideSpan:{null:[G]},attentionMarkers:{null:[z.tilde]}};function Q(W,q){let Y=-1;while(++Y<W.length)if(W[Y][0]==="enter"&&W[Y][1].type==="strikethroughSequenceTemporary"&&W[Y][1]._close){let H=Y;while(H--)if(W[H][0]==="exit"&&W[H][1].type==="strikethroughSequenceTemporary"&&W[H][1]._open&&W[Y][1].end.offset-W[Y][1].start.offset===W[H][1].end.offset-W[H][1].start.offset){W[Y][1].type="strikethroughSequence",W[H][1].type="strikethroughSequence";let K={type:"strikethrough",start:Object.assign({},W[H][1].start),end:Object.assign({},W[Y][1].end)},$={type:"strikethroughText",start:Object.assign({},W[H][1].end),end:Object.assign({},W[Y][1].start)},B=[["enter",K,q],["enter",W[H][1],q],["exit",W[H][1],q],["enter",$,q]],V=q.parser.constructs.insideSpan.null;if(V)B1(B,B.length,0,i0(V,W.slice(H+1,Y),q));B1(B,B.length,0,[["exit",$,q],["enter",W[Y][1],q],["exit",W[Y][1],q],["exit",K,q]]),B1(W,H-1,Y-H+3,B),Y=H+B.length-2;break}}Y=-1;while(++Y<W.length)if(W[Y][1].type==="strikethroughSequenceTemporary")W[Y][1].type=F.data;return W}function U(W,q,Y){let H=this.previous,K=this.events,$=0;return B;function B(M){if(O(M===z.tilde,"expected `~`"),H===z.tilde&&K[K.length-1][1].type!==F.characterEscape)return Y(M);return W.enter("strikethroughSequenceTemporary"),V(M)}function V(M){let _=j0(H);if(M===z.tilde){if($>1)return Y(M);return W.consume(M),$++,V}if($<2&&!J)return Y(M);let D=W.exit("strikethroughSequenceTemporary"),R=j0(M);return D._open=!R||R===g.attentionSideAfter&&Boolean(_),D._close=!_||_===g.attentionSideAfter&&Boolean(R),q(M)}}}var zq=C(()=>{o();C0();u5();c()});var Vq=C(()=>{zq()});class MZ{constructor(){this.map=[]}add(Z,X,J){A_(this,Z,X,J)}consume(Z){if(this.map.sort(function(Q,U){return Q[0]-U[0]}),this.map.length===0)return;let X=this.map.length,J=[];while(X>0)X-=1,J.push(Z.slice(this.map[X][0]+this.map[X][1]),this.map[X][2]),Z.length=this.map[X][0];J.push(Z.slice()),Z.length=0;let G=J.pop();while(G){for(let Q of G)Z.push(Q);G=J.pop()}this.map.length=0}}function A_(Z,X,J,G){let Q=0;if(J===0&&G.length===0)return;while(Q<Z.map.length){if(Z.map[Q][0]===X){Z.map[Q][1]+=J,Z.map[Q][2].push(...G);return}Q+=1}Z.map.push([X,J,G])}function Bq(Z,X){O(Z[X][1].type==="table","expected table");let J=!1,G=[];while(X<Z.length){let Q=Z[X];if(J){if(Q[0]==="enter"){if(Q[1].type==="tableContent")G.push(Z[X+1][1].type==="tableDelimiterMarker"?"left":"none")}else if(Q[1].type==="tableContent"){if(Z[X-1][1].type==="tableDelimiterMarker"){let U=G.length-1;G[U]=G[U]==="left"?"center":"right"}}else if(Q[1].type==="tableDelimiterRow")break}else if(Q[0]==="enter"&&Q[1].type==="tableDelimiterRow")J=!0;X+=1}return G}var Fq=C(()=>{o()});function DZ(){return{flow:{null:{name:"table",tokenize:P_,resolveAll:w_}}}}function P_(Z,X,J){let G=this,Q=0,U=0,W;return q;function q(P){let n=G.events.length-1;while(n>-1){let f=G.events[n][1].type;if(f===F.lineEnding||f===F.linePrefix)n--;else break}let a=n>-1?G.events[n][1].type:null,v=a==="tableHead"||a==="tableRow"?w:Y;if(v===w&&G.parser.lazy[G.now().line])return J(P);return v(P)}function Y(P){return Z.enter("tableHead"),Z.enter("tableRow"),H(P)}function H(P){if(P===z.verticalBar)return K(P);return W=!0,U+=1,K(P)}function K(P){if(P===z.eof)return J(P);if(k(P)){if(U>1)return U=0,G.interrupt=!0,Z.exit("tableRow"),Z.enter(F.lineEnding),Z.consume(P),Z.exit(F.lineEnding),V;return J(P)}if(d(P))return l(Z,K,F.whitespace)(P);if(U+=1,W)W=!1,Q+=1;if(P===z.verticalBar)return Z.enter("tableCellDivider"),Z.consume(P),Z.exit("tableCellDivider"),W=!0,K;return Z.enter(F.data),$(P)}function $(P){if(P===z.eof||P===z.verticalBar||t(P))return Z.exit(F.data),K(P);return Z.consume(P),P===z.backslash?B:$}function B(P){if(P===z.backslash||P===z.verticalBar)return Z.consume(P),$;return $(P)}function V(P){if(G.interrupt=!1,G.parser.lazy[G.now().line])return J(P);if(Z.enter("tableDelimiterRow"),W=!1,d(P))return O(G.parser.constructs.disable.null,"expected `disabled.null`"),l(Z,M,F.linePrefix,G.parser.constructs.disable.null.includes("codeIndented")?void 0:g.tabSize)(P);return M(P)}function M(P){if(P===z.dash||P===z.colon)return D(P);if(P===z.verticalBar)return W=!0,Z.enter("tableCellDivider"),Z.consume(P),Z.exit("tableCellDivider"),_;return m(P)}function _(P){if(d(P))return l(Z,D,F.whitespace)(P);return D(P)}function D(P){if(P===z.colon)return U+=1,W=!0,Z.enter("tableDelimiterMarker"),Z.consume(P),Z.exit("tableDelimiterMarker"),R;if(P===z.dash)return U+=1,R(P);if(P===z.eof||k(P))return E(P);return m(P)}function R(P){if(P===z.dash)return Z.enter("tableDelimiterFiller"),N(P);return m(P)}function N(P){if(P===z.dash)return Z.consume(P),N;if(P===z.colon)return W=!0,Z.exit("tableDelimiterFiller"),Z.enter("tableDelimiterMarker"),Z.consume(P),Z.exit("tableDelimiterMarker"),L;return Z.exit("tableDelimiterFiller"),L(P)}function L(P){if(d(P))return l(Z,E,F.whitespace)(P);return E(P)}function E(P){if(P===z.verticalBar)return M(P);if(P===z.eof||k(P)){if(!W||Q!==U)return m(P);return Z.exit("tableDelimiterRow"),Z.exit("tableHead"),X(P)}return m(P)}function m(P){return J(P)}function w(P){return Z.enter("tableRow"),y(P)}function y(P){if(P===z.verticalBar)return Z.enter("tableCellDivider"),Z.consume(P),Z.exit("tableCellDivider"),y;if(P===z.eof||k(P))return Z.exit("tableRow"),X(P);if(d(P))return l(Z,y,F.whitespace)(P);return Z.enter(F.data),h(P)}function h(P){if(P===z.eof||P===z.verticalBar||t(P))return Z.exit(F.data),y(P);return Z.consume(P),P===z.backslash?j:h}function j(P){if(P===z.backslash||P===z.verticalBar)return Z.consume(P),h;return h(P)}}function w_(Z,X){let J=-1,G=!0,Q=0,U=[0,0,0,0],W=[0,0,0,0],q=!1,Y=0,H,K,$,B=new MZ;while(++J<Z.length){let V=Z[J],M=V[1];if(V[0]==="enter"){if(M.type==="tableHead"){if(q=!1,Y!==0)O(H,"there should be a table opening"),Mq(B,X,Y,H,K),K=void 0,Y=0;H={type:"table",start:Object.assign({},M.start),end:Object.assign({},M.end)},B.add(J,0,[["enter",H,X]])}else if(M.type==="tableRow"||M.type==="tableDelimiterRow"){if(G=!0,$=void 0,U=[0,0,0,0],W=[0,J+1,0,0],q)q=!1,K={type:"tableBody",start:Object.assign({},M.start),end:Object.assign({},M.end)},B.add(J,0,[["enter",K,X]]);Q=M.type==="tableDelimiterRow"?2:K?3:1}else if(Q&&(M.type===F.data||M.type==="tableDelimiterMarker"||M.type==="tableDelimiterFiller")){if(G=!1,W[2]===0){if(U[1]!==0)W[0]=W[1],$=X8(B,X,U,Q,void 0,$),U=[0,0,0,0];W[2]=J}}else if(M.type==="tableCellDivider")if(G)G=!1;else{if(U[1]!==0)W[0]=W[1],$=X8(B,X,U,Q,void 0,$);U=W,W=[U[1],J,0,0]}}else if(M.type==="tableHead")q=!0,Y=J;else if(M.type==="tableRow"||M.type==="tableDelimiterRow"){if(Y=J,U[1]!==0)W[0]=W[1],$=X8(B,X,U,Q,J,$);else if(W[1]!==0)$=X8(B,X,W,Q,J,$);Q=0}else if(Q&&(M.type===F.data||M.type==="tableDelimiterMarker"||M.type==="tableDelimiterFiller"))W[3]=J}if(Y!==0)O(H,"expected table opening"),Mq(B,X,Y,H,K);B.consume(X.events),J=-1;while(++J<X.events.length){let V=X.events[J];if(V[0]==="enter"&&V[1].type==="table")V[1]._align=Bq(X.events,J)}return Z}function X8(Z,X,J,G,Q,U){let W=G===1?"tableHeader":G===2?"tableDelimiter":"tableData",q="tableContent";if(J[0]!==0)O(U,"expected previous cell enter"),U.end=Object.assign({},M7(X.events,J[0])),Z.add(J[0],0,[["exit",U,X]]);let Y=M7(X.events,J[1]);if(U={type:W,start:Object.assign({},Y),end:Object.assign({},Y)},Z.add(J[1],0,[["enter",U,X]]),J[2]!==0){let H=M7(X.events,J[2]),K=M7(X.events,J[3]),$={type:"tableContent",start:Object.assign({},H),end:Object.assign({},K)};if(Z.add(J[2],0,[["enter",$,X]]),O(J[3]!==0),G!==2){let B=X.events[J[2]],V=X.events[J[3]];if(B[1].end=Object.assign({},V[1].end),B[1].type=F.chunkText,B[1].contentType=g.contentTypeText,J[3]>J[2]+1){let M=J[2]+1,_=J[3]-J[2]-1;Z.add(M,_,[])}}Z.add(J[3]+1,0,[["exit",$,X]])}if(Q!==void 0)U.end=Object.assign({},M7(X.events,Q)),Z.add(Q,0,[["exit",U,X]]),U=void 0;return U}function Mq(Z,X,J,G,Q){let U=[],W=M7(X.events,J);if(Q)Q.end=Object.assign({},W),U.push(["exit",Q,X]);G.end=Object.assign({},W),U.push(["exit",G,X]),Z.add(J+1,0,U)}function M7(Z,X){let J=Z[X],G=J[0]==="enter"?"start":"end";return J[1][G]}var Dq=C(()=>{o();K1();Z1();c();Fq()});var _q=C(()=>{Dq()});function _Z(){return{text:{[z.leftSquareBracket]:T_}}}function C_(Z,X,J){let G=this;return Q;function Q(Y){if(O(Y===z.leftSquareBracket,"expected `[`"),G.previous!==z.eof||!G._gfmTasklistFirstContentOfListItem)return J(Y);return Z.enter("taskListCheck"),Z.enter("taskListCheckMarker"),Z.consume(Y),Z.exit("taskListCheckMarker"),U}function U(Y){if(t(Y))return Z.enter("taskListCheckValueUnchecked"),Z.consume(Y),Z.exit("taskListCheckValueUnchecked"),W;if(Y===z.uppercaseX||Y===z.lowercaseX)return Z.enter("taskListCheckValueChecked"),Z.consume(Y),Z.exit("taskListCheckValueChecked"),W;return J(Y)}function W(Y){if(Y===z.rightSquareBracket)return Z.enter("taskListCheckMarker"),Z.consume(Y),Z.exit("taskListCheckMarker"),Z.exit("taskListCheck"),q;return J(Y)}function q(Y){if(k(Y))return X(Y);if(d(Y))return Z.check({tokenize:j_},X,J)(Y);return J(Y)}}function j_(Z,X,J){return l(Z,G,F.whitespace);function G(Q){return Q===z.eof?J(Q):X(Q)}}var T_;var Rq=C(()=>{o();K1();Z1();c();T_={name:"tasklistCheck",tokenize:C_}});var Oq=C(()=>{Rq()});function Nq(Z){return h5([zZ(),BZ(),FZ(Z),DZ(),_Z()])}var Lq=C(()=>{W3();Hq();$q();Vq();_q();Oq()});function J8(Z){let X=this,J=Z||E_,G=X.data(),Q=G.micromarkExtensions||(G.micromarkExtensions=[]),U=G.fromMarkdownExtensions||(G.fromMarkdownExtensions=[]),W=G.toMarkdownExtensions||(G.toMarkdownExtensions=[]);Q.push(Nq(J)),U.push(HZ()),W.push(KZ(J))}var E_;var Iq=C(()=>{eW();Lq();E_={}});var Aq=C(()=>{Iq()});var Pq;var wq=C(()=>{Pq=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"]});var RZ;var Tq=C(()=>{RZ={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"}});function G8(Z){let X=typeof Z==="string"?Z.charCodeAt(0):Z;return X>=48&&X<=57}function Cq(Z){let X=typeof Z==="string"?Z.charCodeAt(0):Z;return X>=97&&X<=102||X>=65&&X<=70||X>=48&&X<=57}function jq(Z){let X=typeof Z==="string"?Z.charCodeAt(0):Z;return X>=97&&X<=122||X>=65&&X<=90}function OZ(Z){return jq(Z)||G8(Z)}var Eq=()=>{};function U5(Z,X){let J=X||{},G=typeof J.additional==="string"?J.additional.charCodeAt(0):J.additional,Q=[],U=0,W=-1,q="",Y,H;if(J.position)if("start"in J.position||"indent"in J.position)H=J.position.indent,Y=J.position.start;else Y=J.position;let K=(Y?Y.line:0)||1,$=(Y?Y.column:0)||1,B=M(),V;U--;while(++U<=Z.length){if(V===10)$=(H?H[W]:0)||1;if(V=Z.charCodeAt(U),V===38){let R=Z.charCodeAt(U+1);if(R===9||R===10||R===12||R===32||R===38||R===60||Number.isNaN(R)||G&&R===G){q+=String.fromCharCode(V),$++;continue}let N=U+1,L=N,E=N,m;if(R===35){E=++L;let v=Z.charCodeAt(E);if(v===88||v===120)m="hexadecimal",E=++L;else m="decimal"}else m="named";let w="",y="",h="",j=m==="named"?OZ:m==="decimal"?G8:Cq;E--;while(++E<=Z.length){let v=Z.charCodeAt(E);if(!j(v))break;if(h+=String.fromCharCode(v),m==="named"&&Pq.includes(h))w=h,y=T0(h)}let P=Z.charCodeAt(E)===59;if(P){E++;let v=m==="named"?T0(h):!1;if(v)w=h,y=v}let n=1+E-N,a="";if(!P&&J.nonTerminated===!1);else if(!h){if(m!=="named")_(4,n)}else if(m==="named"){if(P&&!y)_(5,1);else{if(w!==h)E=L+w.length,n=1+E-L,P=!1;if(!P){let v=w?1:3;if(J.attribute){let f=Z.charCodeAt(E);if(f===61)_(v,n),y="";else if(OZ(f))y="";else _(v,n)}else _(v,n)}}a=y}else{if(!P)_(2,n);let v=Number.parseInt(h,m==="hexadecimal"?16:10);if(b_(v))_(7,n),a=String.fromCharCode(65533);else if(v in RZ)_(6,n),a=RZ[v];else{let f="";if(x_(v))_(6,n);if(v>65535)v-=65536,f+=String.fromCharCode(v>>>10|55296),v=56320|v&1023;a=f+String.fromCharCode(v)}}if(a){D(),B=M(),U=E-1,$+=E-N+1,Q.push(a);let v=M();if(v.offset++,J.reference)J.reference.call(J.referenceContext||void 0,a,{start:B,end:v},Z.slice(N-1,E));B=v}else h=Z.slice(N-1,E),q+=h,$+=h.length,U=E-1}else{if(V===10)K++,W++,$=0;if(Number.isNaN(V))D();else q+=String.fromCharCode(V),$++}}return Q.join("");function M(){return{line:K,column:$,offset:U+((Y?Y.offset:0)||0)}}function _(R,N){let L;if(J.warning)L=M(),L.column+=N,L.offset+=N,J.warning.call(J.warningContext||void 0,S_[R],L,R)}function D(){if(q){if(Q.push(q),J.text)J.text.call(J.textContext||void 0,q,{start:B,end:M()});q=""}}}function b_(Z){return Z>=55296&&Z<=57343||Z>1114111}function x_(Z){return Z>=1&&Z<=8||Z===11||Z>=13&&Z<=31||Z>=127&&Z<=159||Z>=64976&&Z<=65007||(Z&65535)===65535||(Z&65535)===65534}var S_;var Sq=C(()=>{wq();Tq();Eq();m7();S_=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"]});var bq=C(()=>{Sq()});function gq(Z,X){if(Z=Z.replace(X.subset?h_(X.subset):g_,G),X.subset||X.escapeOnly)return Z;return Z.replace(k_,J).replace(y_,G);function J(Q,U,W){return X.format((Q.charCodeAt(0)-55296)*1024+Q.charCodeAt(1)-56320+65536,W.charCodeAt(U+2),X)}function G(Q,U,W){return X.format(Q.charCodeAt(0),W.charCodeAt(U+1),X)}}function h_(Z){let X=xq.get(Z);if(!X)X=m_(Z),xq.set(Z,X);return X}function m_(Z){let X=[],J=-1;while(++J<Z.length)X.push(Z[J].replace(v_,"\\$&"));return new RegExp("(?:"+X.join("|")+")","g")}var g_,k_,y_,v_,xq;var kq=C(()=>{g_=/["&'<>`]/g,k_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,y_=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,v_=/[|\\{}()[\]^$+*?.]/g,xq=new WeakMap});function yq(Z){return"&#x"+Z.toString(16).toUpperCase()+";"}function vq(Z,X){return gq(Z,Object.assign({format:yq},X))}var hq=C(()=>{kq()});var mq=C(()=>{hq()});function jZ(){return{canContainEols:["textDirective"],enter:{directiveContainer:l_,directiveContainerAttributes:LZ,directiveContainerLabel:r_,directiveLeaf:i_,directiveLeafAttributes:LZ,directiveText:d_,directiveTextAttributes:LZ},exit:{directiveContainer:CZ,directiveContainerAttributeClassValue:AZ,directiveContainerAttributeIdValue:IZ,directiveContainerAttributeName:wZ,directiveContainerAttributeValue:PZ,directiveContainerAttributes:TZ,directiveContainerLabel:c_,directiveContainerName:NZ,directiveLeaf:CZ,directiveLeafAttributeClassValue:AZ,directiveLeafAttributeIdValue:IZ,directiveLeafAttributeName:wZ,directiveLeafAttributeValue:PZ,directiveLeafAttributes:TZ,directiveLeafName:NZ,directiveText:CZ,directiveTextAttributeClassValue:AZ,directiveTextAttributeIdValue:IZ,directiveTextAttributeName:wZ,directiveTextAttributeValue:PZ,directiveTextAttributes:TZ,directiveTextName:NZ}}}function EZ(Z){let X=Z||p_;if(X.quote!=='"'&&X.quote!=="'"&&X.quote!==null&&X.quote!==void 0)throw Error("Invalid quote `"+X.quote+"`, expected `'` or `\"`");return J.peek=n_,{handlers:{containerDirective:J,leafDirective:J,textDirective:J},unsafe:[{character:"\r",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{character:`
165
+ `,inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{before:"[^:]",character:":",after:"[A-Za-z]",inConstruct:["phrasing"]},{atBreak:!0,character:":",after:":"}]};function J(U,W,q,Y){let H=q.createTracker(Y),K=a_(U),$=q.enter(U.type),B=H.move(K+(U.name||"")),V;if(U.type==="containerDirective"){let M=(U.children||[])[0];V=pq(M)?M:void 0}else V=U;if(V&&V.children&&V.children.length>0){let M=q.enter("label"),_=`${U.type}Label`,D=q.enter(_);B+=H.move("["),B+=H.move(q.containerPhrasing(V,{...H.current(),before:B,after:"]"})),B+=H.move("]"),D(),M()}if(B+=H.move(G(U,q)),U.type==="containerDirective"){let M=(U.children||[])[0],_=U;if(pq(M))_=Object.assign({},U,{children:U.children.slice(1)});if(_&&_.children&&_.children.length>0)B+=H.move(`
166
166
  `),B+=H.move(q.containerFlow(_,H.current()));B+=H.move(`
167
- `+K)}return $(),B}function G(U,W){let q=U.attributes||{},Y=[],H,K,$,B;for(B in q)if(h_.call(q,B)&&q[B]!==void 0&&q[B]!==null){let V=String(q[B]);if(B==="id")$=X.preferShortcut!==!1&&mq.test(V)?"#"+V:Q("id",V,U,W);else if(B==="class"){let M=V.split(/[\t\n\r ]+/g),_=[],D=[],R=-1;while(++R<M.length)(X.preferShortcut!==!1&&mq.test(M[R])?D:_).push(M[R]);H=_.length>0?Q("class",_.join(" "),U,W):"",K=D.length>0?"."+D.join("."):""}else Y.push(Q(B,V,U,W))}if(H)Y.unshift(H);if(K)Y.unshift(K);if($)Y.unshift($);return Y.length>0?"{"+Y.join(" ")+"}":""}function Q(U,W,q,Y){if(X.collapseEmptyAttributes!==!1&&!W)return U;if(X.preferUnquoted&&u_.test(W))return U+"="+W;let H=X.quote||Y.options.quote||'"',K=H==='"'?"'":'"',$=X.quoteSmart&&z7(W,H)>z7(W,K)?K:H,B=q.type==="textDirective"?[$]:[$,`
168
- `,"\r"];return U+"="+$+yq(W,{subset:B})+$}}function p_(Z){SZ.call(this,"containerDirective",Z)}function f_(Z){SZ.call(this,"leafDirective",Z)}function l_(Z){SZ.call(this,"textDirective",Z)}function SZ(Z,X){this.enter({type:Z,name:"",attributes:{},children:[]},X)}function NZ(Z){let X=this.stack[this.stack.length-1];O(X.type==="containerDirective"||X.type==="leafDirective"||X.type==="textDirective"),X.name=this.sliceSerialize(Z)}function i_(Z){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},Z)}function d_(Z){this.exit(Z)}function LZ(){this.data.directiveAttributes=[],this.buffer()}function IZ(Z){let X=this.data.directiveAttributes;O(X,"expected `directiveAttributes`"),X.push(["id",U5(this.sliceSerialize(Z),{attribute:!0})])}function AZ(Z){let X=this.data.directiveAttributes;O(X,"expected `directiveAttributes`"),X.push(["class",U5(this.sliceSerialize(Z),{attribute:!0})])}function PZ(Z){let X=this.data.directiveAttributes;O(X,"expected `directiveAttributes`"),X[X.length-1][1]=U5(this.sliceSerialize(Z),{attribute:!0})}function wZ(Z){let X=this.data.directiveAttributes;O(X,"expected `directiveAttributes`"),X.push([this.sliceSerialize(Z),""])}function TZ(){let Z=this.data.directiveAttributes;O(Z,"expected `directiveAttributes`");let X={},J=-1;while(++J<Z.length){let Q=Z[J];if(Q[0]==="class"&&X.class)X.class+=" "+Q[1];else X[Q[0]]=Q[1]}this.data.directiveAttributes=void 0,this.resume();let G=this.stack[this.stack.length-1];O(G.type==="containerDirective"||G.type==="leafDirective"||G.type==="textDirective"),G.attributes=X}function CZ(Z){this.exit(Z)}function r_(){return":"}function uq(Z){return Boolean(Z&&Z.type==="paragraph"&&Z.data&&Z.data.directiveLabel)}function c_(Z){let X=0;if(Z.type==="containerDirective")L4(Z,function(J,G){if(J.type==="containerDirective"){let Q=G.length,U=0;while(Q--)if(G[Q].type==="containerDirective")U++;if(U>X)X=U}}),X+=3;else if(Z.type==="leafDirective")X=2;else X=1;return":".repeat(X)}var h_,m_,mq,u_;var pq=C(()=>{o();Sq();hq();G5();h_={}.hasOwnProperty,m_={},mq=/^[^\t\n\r "#'.<=>`}]+$/,u_=/^[^\t\n\r "'<=>`}]+$/});var fq=C(()=>{pq()});function D7(Z,X,J,G,Q,U,W,q,Y,H,K,$,B,V,M){let _,D;return R;function R(T){return O(T===z.leftCurlyBrace,"expected `{`"),Z.enter(G),Z.enter(Q),Z.consume(T),Z.exit(Q),N}function N(T){if(T===z.numberSign)return _=W,L(T);if(T===z.dot)return _=q,L(T);if(M&&d(T))return l(Z,N,F.whitespace)(T);if(!M&&t(T))return Z0(Z,N)(T);if(T===z.eof||k(T)||b1(T)||r1(T)&&T!==z.dash&&T!==z.underscore)return f(T);return Z.enter(U),Z.enter(Y),Z.consume(T),w}function L(T){let e=_+"Marker";return Z.enter(U),Z.enter(_),Z.enter(e),Z.consume(T),Z.exit(e),E}function E(T){if(T===z.eof||T===z.quotationMark||T===z.numberSign||T===z.apostrophe||T===z.dot||T===z.lessThan||T===z.equalsTo||T===z.greaterThan||T===z.graveAccent||T===z.rightCurlyBrace||t(T))return J(T);let e=_+"Value";return Z.enter(e),Z.consume(T),m}function m(T){if(T===z.eof||T===z.quotationMark||T===z.apostrophe||T===z.lessThan||T===z.equalsTo||T===z.greaterThan||T===z.graveAccent)return J(T);if(T===z.numberSign||T===z.dot||T===z.rightCurlyBrace||t(T)){let e=_+"Value";return Z.exit(e),Z.exit(_),Z.exit(U),N(T)}return Z.consume(T),m}function w(T){if(T===z.eof||k(T)||b1(T)||r1(T)&&T!==z.dash&&T!==z.dot&&T!==z.colon&&T!==z.underscore){if(Z.exit(Y),M&&d(T))return l(Z,y,F.whitespace)(T);if(!M&&t(T))return Z0(Z,y)(T);return y(T)}return Z.consume(T),w}function y(T){if(T===z.equalsTo)return Z.enter(H),Z.consume(T),Z.exit(H),h;return Z.exit(U),N(T)}function h(T){if(T===z.eof||T===z.lessThan||T===z.equalsTo||T===z.greaterThan||T===z.graveAccent||T===z.rightCurlyBrace||M&&k(T))return J(T);if(T===z.quotationMark||T===z.apostrophe)return Z.enter(K),Z.enter(B),Z.consume(T),Z.exit(B),D=T,P;if(M&&d(T))return l(Z,h,F.whitespace)(T);if(!M&&t(T))return Z0(Z,h)(T);return Z.enter($),Z.enter(V),Z.consume(T),D=void 0,j}function j(T){if(T===z.eof||T===z.quotationMark||T===z.apostrophe||T===z.lessThan||T===z.equalsTo||T===z.greaterThan||T===z.graveAccent)return J(T);if(T===z.rightCurlyBrace||t(T))return Z.exit(V),Z.exit($),Z.exit(U),N(T);return Z.consume(T),j}function P(T){if(T===D)return Z.enter(B),Z.consume(T),Z.exit(B),Z.exit(K),Z.exit(U),v;return Z.enter($),n(T)}function n(T){if(T===D)return Z.exit($),P(T);if(T===z.eof)return J(T);if(k(T))return M?J(T):Z0(Z,n)(T);return Z.enter(V),Z.consume(T),a}function a(T){if(T===D||T===z.eof||k(T))return Z.exit(V),n(T);return Z.consume(T),a}function v(T){return T===z.rightCurlyBrace||t(T)?N(T):f(T)}function f(T){if(T===z.rightCurlyBrace)return Z.enter(Q),Z.consume(T),Z.exit(Q),Z.exit(G),X;return J(T)}}var Q8=C(()=>{o();K1();s5();Z1();c()});function _7(Z,X,J,G,Q,U,W){let q=0,Y=0,H;return K;function K(D){return O(D===z.leftSquareBracket,"expected `[`"),Z.enter(G),Z.enter(Q),Z.consume(D),Z.exit(Q),$}function $(D){if(D===z.rightSquareBracket)return Z.enter(Q),Z.consume(D),Z.exit(Q),Z.exit(G),X;return Z.enter(U),B(D)}function B(D){if(D===z.rightSquareBracket&&!Y)return _(D);let R=Z.enter(F.chunkText,{_contentTypeTextTrailing:!0,contentType:g.contentTypeText,previous:H});if(H)H.next=R;return H=R,V(D)}function V(D){if(D===z.eof||q>g.linkReferenceSizeMax)return J(D);if(D===z.leftSquareBracket&&++Y>g.linkResourceDestinationBalanceMax)return J(D);if(D===z.rightSquareBracket&&!Y--)return Z.exit(F.chunkText),_(D);if(k(D)){if(W)return J(D);return Z.consume(D),Z.exit(F.chunkText),B}return Z.consume(D),D===z.backslash?M:V}function M(D){if(D===z.leftSquareBracket||D===z.backslash||D===z.rightSquareBracket)return Z.consume(D),q++,V;return V(D)}function _(D){return Z.exit(U),Z.enter(Q),Z.consume(D),Z.exit(Q),Z.exit(G),X}}var U8=C(()=>{o();Z1();c()});function R7(Z,X,J,G){let Q=this;return U;function U(q){if(q===z.eof||k(q)||r1(q)||b1(q))return J(q);return Z.enter(G),Z.consume(q),W}function W(q){if(q===z.eof||k(q)||b1(q)||r1(q)&&q!==z.dash&&q!==z.underscore)return Z.exit(G),Q.previous===z.dash||Q.previous===z.underscore?J(q):X(q);return Z.consume(q),W}}var W8=C(()=>{Z1();c()});function s_(Z,X,J){let G=this,Q=G.events[G.events.length-1],U=Q&&Q[1].type===F.linePrefix?Q[2].sliceSerialize(Q[1],!0).length:0,W=0,q;return Y;function Y(j){return O(j===z.colon,"expected `:`"),Z.enter("directiveContainer"),Z.enter("directiveContainerFence"),Z.enter("directiveContainerSequence"),H(j)}function H(j){if(j===z.colon)return Z.consume(j),W++,H;if(W<g.codeFencedSequenceSizeMin)return J(j);return Z.exit("directiveContainerSequence"),R7.call(G,Z,K,J,"directiveContainerName")(j)}function K(j){return j===z.leftSquareBracket?Z.attempt(n_,$,$)(j):$(j)}function $(j){return j===z.leftCurlyBrace?Z.attempt(a_,B,B)(j):B(j)}function B(j){return l(Z,V,F.whitespace)(j)}function V(j){if(Z.exit("directiveContainerFence"),j===z.eof)return y(j);if(k(j)){if(G.interrupt)return X(j);return Z.attempt(q8,M,y)(j)}return J(j)}function M(j){if(j===z.eof)return y(j);if(k(j))return Z.check(q8,L,y)(j);return Z.enter("directiveContainerContent"),_(j)}function _(j){return Z.attempt({tokenize:h,partial:!0},w,U?l(Z,D,F.linePrefix,U+1):D)(j)}function D(j){if(j===z.eof)return w(j);if(k(j))return Z.check(q8,N,w)(j);return N(j)}function R(j){if(j===z.eof){let P=Z.exit(F.chunkDocument);return G.parser.lazy[P.start.line]=!1,w(j)}if(k(j))return Z.check(q8,E,m)(j);return Z.consume(j),R}function N(j){let P=Z.enter(F.chunkDocument,{contentType:g.contentTypeDocument,previous:q});if(q)q.next=P;return q=P,R(j)}function L(j){return Z.enter("directiveContainerContent"),_(j)}function E(j){Z.consume(j);let P=Z.exit(F.chunkDocument);return G.parser.lazy[P.start.line]=!1,_}function m(j){let P=Z.exit(F.chunkDocument);return G.parser.lazy[P.start.line]=!1,w(j)}function w(j){return Z.exit("directiveContainerContent"),y(j)}function y(j){return Z.exit("directiveContainer"),X(j)}function h(j,P,n){let a=0;return O(G.parser.constructs.disable.null,"expected `disable.null`"),l(j,v,F.linePrefix,G.parser.constructs.disable.null.includes("codeIndented")?void 0:g.tabSize);function v(e){return j.enter("directiveContainerFence"),j.enter("directiveContainerSequence"),f(e)}function f(e){if(e===z.colon)return j.consume(e),a++,f;if(a<W)return n(e);return j.exit("directiveContainerSequence"),l(j,T,F.whitespace)(e)}function T(e){if(e===z.eof||k(e))return j.exit("directiveContainerFence"),P(e);return n(e)}}}function o_(Z,X,J){return _7(Z,X,J,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)}function t_(Z,X,J){return D7(Z,X,J,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)}function e_(Z,X,J){let G=this;return Q;function Q(W){return O(k(W),"expected eol"),Z.enter(F.lineEnding),Z.consume(W),Z.exit(F.lineEnding),U}function U(W){return G.parser.lazy[G.now().line]?J(W):X(W)}}var lq,n_,a_,q8;var iq=C(()=>{o();K1();Z1();c();Q8();U8();W8();lq={tokenize:s_,concrete:!0},n_={tokenize:o_,partial:!0},a_={tokenize:t_,partial:!0},q8={tokenize:e_,partial:!0}});function JR(Z,X,J){let G=this;return Q;function Q(K){return O(K===z.colon,"expected `:`"),Z.enter("directiveLeaf"),Z.enter("directiveLeafSequence"),Z.consume(K),U}function U(K){if(K===z.colon)return Z.consume(K),Z.exit("directiveLeafSequence"),R7.call(G,Z,W,J,"directiveLeafName");return J(K)}function W(K){return K===z.leftSquareBracket?Z.attempt(ZR,q,q)(K):q(K)}function q(K){return K===z.leftCurlyBrace?Z.attempt(XR,Y,Y)(K):Y(K)}function Y(K){return l(Z,H,F.whitespace)(K)}function H(K){if(K===z.eof||k(K))return Z.exit("directiveLeaf"),X(K);return J(K)}}function GR(Z,X,J){return _7(Z,X,J,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)}function QR(Z,X,J){return D7(Z,X,J,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)}var dq,ZR,XR;var rq=C(()=>{o();K1();Z1();c();Q8();U8();W8();dq={tokenize:JR},ZR={tokenize:GR,partial:!0},XR={tokenize:QR,partial:!0}});function nq(Z){return Z!==z.colon||this.events[this.events.length-1][1].type===F.characterEscape}function qR(Z,X,J){let G=this;return Q;function Q(Y){return O(Y===z.colon,"expected `:`"),O(nq.call(G,G.previous),"expected correct previous"),Z.enter("directiveText"),Z.enter("directiveTextMarker"),Z.consume(Y),Z.exit("directiveTextMarker"),R7.call(G,Z,U,J,"directiveTextName")}function U(Y){return Y===z.colon?J(Y):Y===z.leftSquareBracket?Z.attempt(UR,W,W)(Y):W(Y)}function W(Y){return Y===z.leftCurlyBrace?Z.attempt(WR,q,q)(Y):q(Y)}function q(Y){return Z.exit("directiveText"),X(Y)}}function YR(Z,X,J){return _7(Z,X,J,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")}function HR(Z,X,J){return D7(Z,X,J,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")}var cq,UR,WR;var aq=C(()=>{o();c();Q8();U8();W8();cq={tokenize:qR,previous:nq},UR={tokenize:YR,partial:!0},WR={tokenize:HR,partial:!0}});function bZ(){return{text:{[z.colon]:cq},flow:{[z.colon]:[lq,dq]}}}var sq=C(()=>{c();iq();rq();aq()});var oq=C(()=>{sq()});function Y8(){let X=this.data(),J=X.micromarkExtensions||(X.micromarkExtensions=[]),G=X.fromMarkdownExtensions||(X.fromMarkdownExtensions=[]),Q=X.toMarkdownExtensions||(X.toMarkdownExtensions=[]);J.push(bZ()),G.push(jZ()),Q.push(EZ())}var tq=C(()=>{fq();oq()});var eq=C(()=>{tq()});var kZ={};P7(kZ,{transpileJxMarkdown:()=>RR,mdKey:()=>KR,jxKey:()=>H8,isJxMarkdown:()=>VR,expandStylePaths:()=>$R,expandDotPaths:()=>xZ,collapseStylePaths:()=>zR,collapseDotPaths:()=>JY,applyStyleKeyMapping:()=>gZ});function H8(Z){return XY.has(Z)?`$${Z}`:Z}function KR(Z){if(Z.startsWith("$")&&XY.has(Z.slice(1)))return Z.slice(1);return Z}function xZ(Z){let X={};for(let[J,G]of Object.entries(Z)){if(J.indexOf(".")===-1){X[H8(J)]=G;continue}let U=J.split("."),W=X;for(let q=0;q<U.length-1;q++){let Y=H8(U[q]);if(!(Y in W)||typeof W[Y]!=="object")W[Y]={};W=W[Y]}W[H8(U[U.length-1])]=G}return X}function JY(Z){let X={};function J(G,Q){for(let[U,W]of Object.entries(G)){let q=Q?`${Q}.${U}`:U;if(W&&typeof W==="object"&&!Array.isArray(W))J(W,q);else X[q]=String(W)}}return J(Z,""),X}function gZ(Z){let X={};for(let[J,G]of Object.entries(Z))if(GY.has(J))X[`:${J}`]=G;else if(J.startsWith("--"))X[`@${J}`]=G;else X[J]=G;return X}function $R(Z){return gZ(xZ(Z))}function zR(Z){let X={};for(let[J,G]of Object.entries(Z))if(J.startsWith(":")&&GY.has(J.slice(1)))X[J.slice(1)]=G;else if(J.startsWith("@--"))X[J.slice(1)]=G;else X[J]=G;return JY(X)}function VR(Z){let X=Z.match(/^---\r?\n([\s\S]*?)\r?\n---/);if(!X)return!1;return/^tagName:\s*.+-.+/m.test(X[1])}function MR(Z){let X=xZ(Z);if(X.style&&typeof X.style==="object")X.style=gZ(X.style);let J={},G={};for(let[Q,U]of Object.entries(X))if(BR.test(Q))G[Q]=U;else J[Q]=U;return{props:J,attributes:G}}function K8(Z){if(!Z||typeof Z!=="object")return null;if(Z.type==="yaml"||Z.type==="toml")return null;if(Z.type==="containerDirective"||Z.type==="leafDirective"||Z.type==="textDirective")return _R(Z);if(Z.type==="text")return Z.value;let X=DR[Z.type];if(!X)return null;let G={tagName:X(Z)};switch(Z.type){case"heading":case"paragraph":case"emphasis":case"strong":case"delete":case"blockquote":case"listItem":case"tableRow":case"tableCell":{let Q=W5(Z.children);if(Q.length===1&&typeof Q[0]==="string")G.textContent=Q[0];else if(Q.length>0)G.children=Q;break}case"inlineCode":G.textContent=Z.value;break;case"link":if(G.attributes={href:Z.url},Z.title)G.attributes.title=Z.title;{let Q=W5(Z.children);if(Q.length===1&&typeof Q[0]==="string")G.textContent=Q[0];else if(Q.length>0)G.children=Q}break;case"image":if(G.attributes={src:Z.url,alt:Z.alt??""},Z.title)G.attributes.title=Z.title;break;case"list":if(Z.children?.length>0)G.children=W5(Z.children);if(Z.start!=null&&Z.start!==1)G.attributes={start:String(Z.start)};break;case"code":G.children=[{tagName:"code",textContent:Z.value,...Z.lang?{className:`language-${Z.lang}`}:{}}];break;case"thematicBreak":case"break":break;case"table":{let Q=W5(Z.children),U=Q.length>0?{tagName:"thead",children:[Q[0]]}:null,W=Q.length>1?{tagName:"tbody",children:Q.slice(1)}:null;G.children=[U,W].filter(Boolean);break}}return G}function _R(Z){let X={tagName:Z.name};if(Z.attributes&&Object.keys(Z.attributes).length>0){let{props:J,attributes:G}=MR(Z.attributes);if(Z.name.includes("-"))for(let[U,W]of Object.entries(J))if(U==="style"||U==="children"||U==="textContent"||U==="innerHTML"||U.startsWith("$"))X[U]=W;else if(U==="props")X.$props=W;else{if(!X.attributes)X.attributes={};X.attributes[U]=W}else for(let[U,W]of Object.entries(J))if(U==="style"||U==="children"||U==="textContent"||U==="innerHTML"||U==="id"||U==="className"||U==="hidden"||U==="tabIndex"||U==="lang"||U==="dir"||U.startsWith("$")||U.startsWith("on"))X[U]=W;else{if(!X.attributes)X.attributes={};X.attributes[U]=W}if(Object.keys(G).length>0)X.attributes={...X.attributes,...G}}if(Z.type==="textDirective"){if(Z.children?.length>0){let J=W5(Z.children);if(J.length===1&&typeof J[0]==="string")X.textContent=J[0];else if(J.length>0)X.children=J}return X}if(Z.type==="leafDirective")return X;if(Z.children?.length>0){let J=[],G=FR.has(Z.name);for(let Q of Z.children)if(G&&Q.type==="paragraph")for(let U of Q.children??[]){let W=K8(U);if(W!=null)J.push(W)}else{let U=K8(Q);if(U!=null)J.push(U)}if(X.children&&typeof X.children==="object"&&!Array.isArray(X.children));else if(J.length===1&&typeof J[0]==="string")X.textContent=J[0];else if(J.length>0)X.children=J}return X}function W5(Z){if(!Z)return[];return Z.map(K8).filter((X)=>X!=null)}function RR(Z){let X=U3().use(J6).use(Q6,["yaml"]).use(ZY.default).use(J8).use(Y8),J=X.parse(Z),G={data:{}};X.runSync(J,G);let Q=G.data?.frontmatter??{},U={};for(let[Y,H]of Object.entries(Q))U[Y]=H;let W=J.children.filter((Y)=>Y.type!=="yaml"&&Y.type!=="toml"),q=[];for(let Y of W){let H=K8(Y);if(H!=null)q.push(H)}if(q.length>0)U.children=q;return U}var ZY,XY,GY,BR,FR,DR;var yZ=C(()=>{NJ();uG();oG();Iq();eq();ZY=H5(kU(),1),XY=new Set(["prototype","ref","component","props","switch","elements"]);GY=new Set(["hover","focus","active","visited","disabled","checked","valid","invalid","required","empty","first-child","last-child","focus-within","focus-visible","placeholder","selection","before","after"]);BR=/^(?:aria-|data-|slot$)/,FR=new Set(["p","h1","h2","h3","h4","h5","h6","span","a","em","strong","b","i","u","s","small","sub","sup","mark","abbr","cite","q","dfn","time","var","samp","kbd","data","code","label","button","legend","summary","dt"]);DR={heading:(Z)=>`h${Z.depth}`,paragraph:()=>"p",emphasis:()=>"em",strong:()=>"strong",delete:()=>"del",inlineCode:()=>"code",link:()=>"a",image:()=>"img",blockquote:()=>"blockquote",list:(Z)=>Z.ordered?"ol":"ul",listItem:()=>"li",code:()=>"pre",thematicBreak:()=>"hr",break:()=>"br",table:()=>"table",tableRow:()=>"tr",tableCell:(Z)=>Z.isHeader?"th":"td"}});var BY={};P7(BY,{compileClassJson:()=>SR});function SR(Z,X={}){let J=Z.title;if(!J)throw Error("compileClassJson: missing title (class name)");let G=bR(Z.extends),Q=Z.$defs?.fields??{},U=Z.$defs?.constructor,W=Z.$defs?.methods??{},q=[];if(q.push("// Generated by @jxsuite/compiler from .class.json — do not edit manually"),Z.$id)q.push(`// Source: ${Z.$id}`);q.push("");let Y=G!=="Object"?` extends ${G}`:"";q.push(`class ${J}${Y} {`);for(let[H,K]of Object.entries(Q)){let $=K;if($.scope!=="static")continue;let B=$.identifier??H,V=$.access==="private"?"#":"",M=$.initializer!==void 0?JSON.stringify($.initializer):$.default!==void 0?JSON.stringify($.default):"null";q.push(` static ${V}${B} = ${M};`)}for(let[H,K]of Object.entries(Q)){let $=K;if($.scope==="static")continue;if($.access!=="private")continue;let B=$.identifier??H;q.push(` #${B};`)}if(Object.keys(Q).length>0)q.push("");if(q.push(" constructor(config = {}) {"),U?.superCall||G!=="Object"){let H=U?.superCall?.arguments?U.superCall.arguments.join(", "):"";q.push(` super(${H});`)}for(let[H,K]of Object.entries(Q)){let $=K;if($.scope==="static")continue;let B=$.identifier??H,V=$.access==="private"?"#":"",M=$.initializer!==void 0?JSON.stringify($.initializer):$.default!==void 0?JSON.stringify($.default):"null";q.push(` this.${V}${B} = config.${B} !== undefined ? config.${B} : ${M};`)}if(U?.body){let H=Array.isArray(U.body)?U.body:[U.body];for(let K of H)q.push(` ${K}`)}q.push(" }");for(let[H,K]of Object.entries(W)){let $=K,B=$.identifier??H,V=$.scope==="static",_=$.access==="private"?"#":"",D=V?"static ":"",R=$.returnType?.$ref?.includes("Promise")||gR($)?"async ":"",N=VY($.parameters??[]),L=xR($.body);if(q.push(""),$.role==="accessor"){if($.getter)q.push(` ${D}get ${_}${B}() {`),q.push(` ${$.getter.body}`),q.push(" }");if($.setter){let E=VY($.setter.parameters??[]);q.push(` ${D}set ${_}${B}(${E}) {`),q.push(` ${$.setter.body}`),q.push(" }")}}else{q.push(` ${D}${R}${_}${B}(${N}) {`);for(let E of L)q.push(` ${E}`);q.push(" }")}}return q.push("}"),q.push(""),q.push(`export { ${J} };`),q.push(`export default ${J};`),q.push(""),q.join(`
169
- `)}function bR(Z){if(!Z)return"Object";if(typeof Z==="string")return Z;if(Z.$ref){let J=Z.$ref.match(/([A-Za-z0-9_]+)\.class\.json/);return J?J[1]:"Object"}return"Object"}function VY(Z){return Z.map((X)=>{if(X.$ref)return X.$ref.split("/").pop();return X.identifier??X.name??"arg"}).join(", ")}function xR(Z){if(!Z)return[""];if(Array.isArray(Z))return Z;return[Z]}function gR(Z){return(Array.isArray(Z.body)?Z.body.join(`
170
- `):Z.body??"").includes("await ")}var{readFileSync:kR}=(()=>({}));var G4=new Set(["$schema","$id","$defs","state","$ref","$props","$elements","$switch","$prototype","$src","$export","$media","$map","timing","default","description","body","parameters","arguments","name","tagName","children","style","attributes","items","map","filter","sort","cases","observedAttributes"]);function EY(Z){return Z.startsWith(":")||Z.startsWith(".")||Z.startsWith("&")||Z.startsWith("[")}function o1(Z){return Z.replace(/[A-Z]/g,(X)=>`-${X.toLowerCase()}`)}function h0(Z){return Object.entries(Z).filter(([X])=>!EY(X)).map(([X,J])=>`${o1(X)}: ${J}`).join("; ")}var $5="https://esm.sh/@vue/reactivity@3.5.32",z5="https://esm.sh/lit-html@3.3.0",SY=new Set(["type","enum","minimum","maximum","minLength","maxLength","pattern","format","items","properties","required","description","title","$comment"]);function j4(Z){for(let X of Object.keys(Z))if(!SY.has(X))return!1;return!0}function A1(Z){return typeof Z==="string"&&Z.includes("${")}function F8(Z){if(!Z||typeof Z!=="object")return!1;if(Z.state)for(let[X,J]of Object.entries(Z.state)){if(X==="$site"||X==="$page")continue;if(J&&typeof J==="object"&&!Array.isArray(J)&&J.timing==="compiler")continue;if(typeof J!=="object"||J===null||Array.isArray(J))return!0;if(J.$prototype)return!0;if("default"in J)return!0;if(j4(J))continue;return!0}if(Z.$switch)return!0;if(Z.children?.$prototype==="Array")return!0;if(Array.isArray(Z.children)){if(Z.children.some((X)=>F8(X)))return!0}for(let[X,J]of Object.entries(Z)){if(G4.has(X))continue;if(J!==null&&typeof J==="object"&&typeof J.$ref==="string")return!0;if(A1(J))return!0}if(Z.style&&typeof Z.style==="object"){for(let X of Object.values(Z.style))if(A1(X))return!0}if(Z.attributes&&typeof Z.attributes==="object"){for(let X of Object.values(Z.attributes))if(A1(X))return!0}return!1}function sZ(Z){if(!Z||typeof Z!=="object")return!1;if(Z.$switch)return!0;if(Z.children?.$prototype==="Array")return!0;for(let[X,J]of Object.entries(Z)){if(G4.has(X))continue;if(J!==null&&typeof J==="object"&&typeof J.$ref==="string")return!0;if(A1(J))return!0}if(Z.style&&typeof Z.style==="object"){for(let X of Object.values(Z.style))if(A1(X))return!0}if(Z.attributes&&typeof Z.attributes==="object"){for(let X of Object.values(Z.attributes))if(A1(X))return!0}return!1}function E4(Z,X=null,J={},G={}){return{scope:Z?.state?bY(Z.state,X):X??Object.create(null),scopeDefs:J,media:G}}function bY(Z={},X=null){let J=Object.create(X??null);for(let[G,Q]of Object.entries(Z)){if(typeof Q!=="object"||Q===null||Array.isArray(Q)){C4(J,G,K5(Q));continue}if("default"in Q){C4(J,G,K5(Q.default));continue}if(!Q.$prototype&&!j4(Q))C4(J,G,K5(Q))}for(let[G,Q]of Object.entries(Z)){if(typeof Q==="string"&&A1(Q)){nZ(J,G,()=>oZ(Q,J));continue}if(!Q||typeof Q!=="object")continue;if(Q.$prototype==="Function"){if(Q.body){let U=Function("state",...Q.parameters??Q.arguments??[],Q.body);if(Q.body.includes("return"))nZ(J,G,()=>U(J));else C4(J,G,U)}else if(!Q.body?.includes("return"))C4(J,G,()=>{});continue}if(Q.$prototype==="LocalStorage"||Q.$prototype==="SessionStorage")C4(J,G,K5(Q.default??null))}return J}function C4(Z,X,J){Object.defineProperty(Z,X,{value:J,enumerable:!0,configurable:!0,writable:!0})}function nZ(Z,X,J){Object.defineProperty(Z,X,{enumerable:!0,configurable:!0,get:J})}function j1(Z,X){if(A0(Z))return xY(Z.$ref,X);if(A1(Z))return oZ(Z,X);return Z}function A0(Z){return Z!==null&&typeof Z==="object"&&typeof Z.$ref==="string"}function xY(Z,X){if(typeof Z!=="string")return Z;if(Z.startsWith("$map/")){let J=Z.split("/"),G=J[1],Q=X.$map?.[G]??X["$map/"+G];return J.length>2?aZ(Q,J.slice(2).join("/")):Q}if(Z.startsWith("#/state/")){let J=Z.slice(8),G=J.indexOf("/");if(G<0)return X[J];return aZ(X[J.slice(0,G)],J.slice(G+1))}return X[Z]??null}function oZ(Z,X){try{let J=Z.match(/^\$\{(.+)\}$/s);if(J)return Function("state","$map",`return (${J[1]})`)(X,X?.$map);return Function("state","$map",`return \`${Z}\``)(X,X?.$map)}catch{return null}}function aZ(Z,X){if(!X)return Z;return X.split("/").reduce((J,G)=>J==null?void 0:J[G],Z)}function K5(Z){if(Z===null||typeof Z!=="object")return Z;return JSON.parse(JSON.stringify(Z))}function V5(Z,X){let J="",G=j1(Z.id,X),Q=j1(Z.className,X),U=j1(Z.hidden,X),W=j1(Z.tabIndex,X),q=j1(Z.title,X),Y=j1(Z.lang,X),H=j1(Z.dir,X);if(G)J+=` id="${U1(G)}"`;if(Q)J+=` class="${U1(Q)}"`;if(U)J+=" hidden";if(W!==void 0&&W!==null)J+=` tabindex="${U1(String(W))}"`;if(q)J+=` title="${U1(q)}"`;if(Y)J+=` lang="${U1(Y)}"`;if(H)J+=` dir="${U1(H)}"`;if(Z.style){let K=new Set;for(let[B,V]of Object.entries(Z.style))if(B.startsWith("@")&&V&&typeof V==="object"){for(let M of Object.keys(V))if(!M.startsWith(":")&&!M.startsWith(".")&&!M.startsWith("&")&&!M.startsWith("["))K.add(M)}let $=Object.entries(Z.style).filter(([B,V])=>!B.startsWith(":")&&!B.startsWith(".")&&!B.startsWith("&")&&!B.startsWith("[")&&!B.startsWith("@")&&!K.has(B)&&V!==null&&typeof V!=="object").map(([B,V])=>{let M=j1(V,X);return M==null?null:`${o1(B)}: ${M}`}).filter(Boolean).join("; ");if($)J+=` style="${$}"`}if(Z.attributes)for(let[K,$]of Object.entries(Z.attributes)){let B=j1($,X);if(B!==null&&B!==void 0&&(typeof B==="string"||typeof B==="number"||typeof B==="boolean"))J+=` ${K}="${U1(String(B))}"`}if(Z.$props&&typeof Z.$props==="object")J+=` data-jx-props="${U1(JSON.stringify(Z.$props))}"`;return J}function S4(Z,X={},J=null){let G=[];if(J&&typeof J==="object"){for(let[H,K]of Object.entries(J))if(H.startsWith(":")||H.startsWith(".")||H.startsWith("["))G.push(`${H} { ${h0(K)} }`);else if(H.startsWith("@")){let $=H.startsWith("@--")?X[H.slice(1)]??H.slice(1):H.slice(1);G.push(`@media ${$} { body { ${h0(K)} } }`)}let U={},W={};for(let[H,K]of Object.entries(J)){if(H.startsWith(":")||H.startsWith(".")||H.startsWith("[")||H.startsWith("@"))continue;if(K!==null&&typeof K==="object"&&!Array.isArray(K))continue;if(H.startsWith("--"))U[H]=K;else W[H]=K}let q=h0(U);if(q)G.push(`:root { ${q} }`);let Y=h0(W);if(Y)G.push(`body { ${Y} }`)}if(tZ(Z,G,X,"",{n:0}),G.length===0)return"";return`<style>
167
+ `+K)}return $(),B}function G(U,W){let q=U.attributes||{},Y=[],H,K,$,B;for(B in q)if(u_.call(q,B)&&q[B]!==void 0&&q[B]!==null){let V=String(q[B]);if(B==="id")$=X.preferShortcut!==!1&&uq.test(V)?"#"+V:Q("id",V,U,W);else if(B==="class"){let M=V.split(/[\t\n\r ]+/g),_=[],D=[],R=-1;while(++R<M.length)(X.preferShortcut!==!1&&uq.test(M[R])?D:_).push(M[R]);H=_.length>0?Q("class",_.join(" "),U,W):"",K=D.length>0?"."+D.join("."):""}else Y.push(Q(B,V,U,W))}if(H)Y.unshift(H);if(K)Y.unshift(K);if($)Y.unshift($);return Y.length>0?"{"+Y.join(" ")+"}":""}function Q(U,W,q,Y){if(X.collapseEmptyAttributes!==!1&&!W)return U;if(X.preferUnquoted&&f_.test(W))return U+"="+W;let H=X.quote||Y.options.quote||'"',K=H==='"'?"'":'"',$=X.quoteSmart&&z7(W,H)>z7(W,K)?K:H,B=q.type==="textDirective"?[$]:[$,`
168
+ `,"\r"];return U+"="+$+vq(W,{subset:B})+$}}function l_(Z){SZ.call(this,"containerDirective",Z)}function i_(Z){SZ.call(this,"leafDirective",Z)}function d_(Z){SZ.call(this,"textDirective",Z)}function SZ(Z,X){this.enter({type:Z,name:"",attributes:{},children:[]},X)}function NZ(Z){let X=this.stack[this.stack.length-1];O(X.type==="containerDirective"||X.type==="leafDirective"||X.type==="textDirective"),X.name=this.sliceSerialize(Z)}function r_(Z){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},Z)}function c_(Z){this.exit(Z)}function LZ(){this.data.directiveAttributes=[],this.buffer()}function IZ(Z){let X=this.data.directiveAttributes;O(X,"expected `directiveAttributes`"),X.push(["id",U5(this.sliceSerialize(Z),{attribute:!0})])}function AZ(Z){let X=this.data.directiveAttributes;O(X,"expected `directiveAttributes`"),X.push(["class",U5(this.sliceSerialize(Z),{attribute:!0})])}function PZ(Z){let X=this.data.directiveAttributes;O(X,"expected `directiveAttributes`"),X[X.length-1][1]=U5(this.sliceSerialize(Z),{attribute:!0})}function wZ(Z){let X=this.data.directiveAttributes;O(X,"expected `directiveAttributes`"),X.push([this.sliceSerialize(Z),""])}function TZ(){let Z=this.data.directiveAttributes;O(Z,"expected `directiveAttributes`");let X={},J=-1;while(++J<Z.length){let Q=Z[J];if(Q[0]==="class"&&X.class)X.class+=" "+Q[1];else X[Q[0]]=Q[1]}this.data.directiveAttributes=void 0,this.resume();let G=this.stack[this.stack.length-1];O(G.type==="containerDirective"||G.type==="leafDirective"||G.type==="textDirective"),G.attributes=X}function CZ(Z){this.exit(Z)}function n_(){return":"}function pq(Z){return Boolean(Z&&Z.type==="paragraph"&&Z.data&&Z.data.directiveLabel)}function a_(Z){let X=0;if(Z.type==="containerDirective")L4(Z,function(J,G){if(J.type==="containerDirective"){let Q=G.length,U=0;while(Q--)if(G[Q].type==="containerDirective")U++;if(U>X)X=U}}),X+=3;else if(Z.type==="leafDirective")X=2;else X=1;return":".repeat(X)}var u_,p_,uq,f_;var fq=C(()=>{o();bq();mq();G5();u_={}.hasOwnProperty,p_={},uq=/^[^\t\n\r "#'.<=>`}]+$/,f_=/^[^\t\n\r "'<=>`}]+$/});var lq=C(()=>{fq()});function D7(Z,X,J,G,Q,U,W,q,Y,H,K,$,B,V,M){let _,D;return R;function R(T){return O(T===z.leftCurlyBrace,"expected `{`"),Z.enter(G),Z.enter(Q),Z.consume(T),Z.exit(Q),N}function N(T){if(T===z.numberSign)return _=W,L(T);if(T===z.dot)return _=q,L(T);if(M&&d(T))return l(Z,N,F.whitespace)(T);if(!M&&t(T))return Z0(Z,N)(T);if(T===z.eof||k(T)||b1(T)||r1(T)&&T!==z.dash&&T!==z.underscore)return f(T);return Z.enter(U),Z.enter(Y),Z.consume(T),w}function L(T){let e=_+"Marker";return Z.enter(U),Z.enter(_),Z.enter(e),Z.consume(T),Z.exit(e),E}function E(T){if(T===z.eof||T===z.quotationMark||T===z.numberSign||T===z.apostrophe||T===z.dot||T===z.lessThan||T===z.equalsTo||T===z.greaterThan||T===z.graveAccent||T===z.rightCurlyBrace||t(T))return J(T);let e=_+"Value";return Z.enter(e),Z.consume(T),m}function m(T){if(T===z.eof||T===z.quotationMark||T===z.apostrophe||T===z.lessThan||T===z.equalsTo||T===z.greaterThan||T===z.graveAccent)return J(T);if(T===z.numberSign||T===z.dot||T===z.rightCurlyBrace||t(T)){let e=_+"Value";return Z.exit(e),Z.exit(_),Z.exit(U),N(T)}return Z.consume(T),m}function w(T){if(T===z.eof||k(T)||b1(T)||r1(T)&&T!==z.dash&&T!==z.dot&&T!==z.colon&&T!==z.underscore){if(Z.exit(Y),M&&d(T))return l(Z,y,F.whitespace)(T);if(!M&&t(T))return Z0(Z,y)(T);return y(T)}return Z.consume(T),w}function y(T){if(T===z.equalsTo)return Z.enter(H),Z.consume(T),Z.exit(H),h;return Z.exit(U),N(T)}function h(T){if(T===z.eof||T===z.lessThan||T===z.equalsTo||T===z.greaterThan||T===z.graveAccent||T===z.rightCurlyBrace||M&&k(T))return J(T);if(T===z.quotationMark||T===z.apostrophe)return Z.enter(K),Z.enter(B),Z.consume(T),Z.exit(B),D=T,P;if(M&&d(T))return l(Z,h,F.whitespace)(T);if(!M&&t(T))return Z0(Z,h)(T);return Z.enter($),Z.enter(V),Z.consume(T),D=void 0,j}function j(T){if(T===z.eof||T===z.quotationMark||T===z.apostrophe||T===z.lessThan||T===z.equalsTo||T===z.greaterThan||T===z.graveAccent)return J(T);if(T===z.rightCurlyBrace||t(T))return Z.exit(V),Z.exit($),Z.exit(U),N(T);return Z.consume(T),j}function P(T){if(T===D)return Z.enter(B),Z.consume(T),Z.exit(B),Z.exit(K),Z.exit(U),v;return Z.enter($),n(T)}function n(T){if(T===D)return Z.exit($),P(T);if(T===z.eof)return J(T);if(k(T))return M?J(T):Z0(Z,n)(T);return Z.enter(V),Z.consume(T),a}function a(T){if(T===D||T===z.eof||k(T))return Z.exit(V),n(T);return Z.consume(T),a}function v(T){return T===z.rightCurlyBrace||t(T)?N(T):f(T)}function f(T){if(T===z.rightCurlyBrace)return Z.enter(Q),Z.consume(T),Z.exit(Q),Z.exit(G),X;return J(T)}}var Q8=C(()=>{o();K1();s5();Z1();c()});function _7(Z,X,J,G,Q,U,W){let q=0,Y=0,H;return K;function K(D){return O(D===z.leftSquareBracket,"expected `[`"),Z.enter(G),Z.enter(Q),Z.consume(D),Z.exit(Q),$}function $(D){if(D===z.rightSquareBracket)return Z.enter(Q),Z.consume(D),Z.exit(Q),Z.exit(G),X;return Z.enter(U),B(D)}function B(D){if(D===z.rightSquareBracket&&!Y)return _(D);let R=Z.enter(F.chunkText,{_contentTypeTextTrailing:!0,contentType:g.contentTypeText,previous:H});if(H)H.next=R;return H=R,V(D)}function V(D){if(D===z.eof||q>g.linkReferenceSizeMax)return J(D);if(D===z.leftSquareBracket&&++Y>g.linkResourceDestinationBalanceMax)return J(D);if(D===z.rightSquareBracket&&!Y--)return Z.exit(F.chunkText),_(D);if(k(D)){if(W)return J(D);return Z.consume(D),Z.exit(F.chunkText),B}return Z.consume(D),D===z.backslash?M:V}function M(D){if(D===z.leftSquareBracket||D===z.backslash||D===z.rightSquareBracket)return Z.consume(D),q++,V;return V(D)}function _(D){return Z.exit(U),Z.enter(Q),Z.consume(D),Z.exit(Q),Z.exit(G),X}}var U8=C(()=>{o();Z1();c()});function R7(Z,X,J,G){let Q=this;return U;function U(q){if(q===z.eof||k(q)||r1(q)||b1(q))return J(q);return Z.enter(G),Z.consume(q),W}function W(q){if(q===z.eof||k(q)||b1(q)||r1(q)&&q!==z.dash&&q!==z.underscore)return Z.exit(G),Q.previous===z.dash||Q.previous===z.underscore?J(q):X(q);return Z.consume(q),W}}var W8=C(()=>{Z1();c()});function t_(Z,X,J){let G=this,Q=G.events[G.events.length-1],U=Q&&Q[1].type===F.linePrefix?Q[2].sliceSerialize(Q[1],!0).length:0,W=0,q;return Y;function Y(j){return O(j===z.colon,"expected `:`"),Z.enter("directiveContainer"),Z.enter("directiveContainerFence"),Z.enter("directiveContainerSequence"),H(j)}function H(j){if(j===z.colon)return Z.consume(j),W++,H;if(W<g.codeFencedSequenceSizeMin)return J(j);return Z.exit("directiveContainerSequence"),R7.call(G,Z,K,J,"directiveContainerName")(j)}function K(j){return j===z.leftSquareBracket?Z.attempt(s_,$,$)(j):$(j)}function $(j){return j===z.leftCurlyBrace?Z.attempt(o_,B,B)(j):B(j)}function B(j){return l(Z,V,F.whitespace)(j)}function V(j){if(Z.exit("directiveContainerFence"),j===z.eof)return y(j);if(k(j)){if(G.interrupt)return X(j);return Z.attempt(q8,M,y)(j)}return J(j)}function M(j){if(j===z.eof)return y(j);if(k(j))return Z.check(q8,L,y)(j);return Z.enter("directiveContainerContent"),_(j)}function _(j){return Z.attempt({tokenize:h,partial:!0},w,U?l(Z,D,F.linePrefix,U+1):D)(j)}function D(j){if(j===z.eof)return w(j);if(k(j))return Z.check(q8,N,w)(j);return N(j)}function R(j){if(j===z.eof){let P=Z.exit(F.chunkDocument);return G.parser.lazy[P.start.line]=!1,w(j)}if(k(j))return Z.check(q8,E,m)(j);return Z.consume(j),R}function N(j){let P=Z.enter(F.chunkDocument,{contentType:g.contentTypeDocument,previous:q});if(q)q.next=P;return q=P,R(j)}function L(j){return Z.enter("directiveContainerContent"),_(j)}function E(j){Z.consume(j);let P=Z.exit(F.chunkDocument);return G.parser.lazy[P.start.line]=!1,_}function m(j){let P=Z.exit(F.chunkDocument);return G.parser.lazy[P.start.line]=!1,w(j)}function w(j){return Z.exit("directiveContainerContent"),y(j)}function y(j){return Z.exit("directiveContainer"),X(j)}function h(j,P,n){let a=0;return O(G.parser.constructs.disable.null,"expected `disable.null`"),l(j,v,F.linePrefix,G.parser.constructs.disable.null.includes("codeIndented")?void 0:g.tabSize);function v(e){return j.enter("directiveContainerFence"),j.enter("directiveContainerSequence"),f(e)}function f(e){if(e===z.colon)return j.consume(e),a++,f;if(a<W)return n(e);return j.exit("directiveContainerSequence"),l(j,T,F.whitespace)(e)}function T(e){if(e===z.eof||k(e))return j.exit("directiveContainerFence"),P(e);return n(e)}}}function e_(Z,X,J){return _7(Z,X,J,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)}function ZR(Z,X,J){return D7(Z,X,J,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)}function XR(Z,X,J){let G=this;return Q;function Q(W){return O(k(W),"expected eol"),Z.enter(F.lineEnding),Z.consume(W),Z.exit(F.lineEnding),U}function U(W){return G.parser.lazy[G.now().line]?J(W):X(W)}}var iq,s_,o_,q8;var dq=C(()=>{o();K1();Z1();c();Q8();U8();W8();iq={tokenize:t_,concrete:!0},s_={tokenize:e_,partial:!0},o_={tokenize:ZR,partial:!0},q8={tokenize:XR,partial:!0}});function QR(Z,X,J){let G=this;return Q;function Q(K){return O(K===z.colon,"expected `:`"),Z.enter("directiveLeaf"),Z.enter("directiveLeafSequence"),Z.consume(K),U}function U(K){if(K===z.colon)return Z.consume(K),Z.exit("directiveLeafSequence"),R7.call(G,Z,W,J,"directiveLeafName");return J(K)}function W(K){return K===z.leftSquareBracket?Z.attempt(JR,q,q)(K):q(K)}function q(K){return K===z.leftCurlyBrace?Z.attempt(GR,Y,Y)(K):Y(K)}function Y(K){return l(Z,H,F.whitespace)(K)}function H(K){if(K===z.eof||k(K))return Z.exit("directiveLeaf"),X(K);return J(K)}}function UR(Z,X,J){return _7(Z,X,J,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)}function WR(Z,X,J){return D7(Z,X,J,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)}var rq,JR,GR;var cq=C(()=>{o();K1();Z1();c();Q8();U8();W8();rq={tokenize:QR},JR={tokenize:UR,partial:!0},GR={tokenize:WR,partial:!0}});function aq(Z){return Z!==z.colon||this.events[this.events.length-1][1].type===F.characterEscape}function HR(Z,X,J){let G=this;return Q;function Q(Y){return O(Y===z.colon,"expected `:`"),O(aq.call(G,G.previous),"expected correct previous"),Z.enter("directiveText"),Z.enter("directiveTextMarker"),Z.consume(Y),Z.exit("directiveTextMarker"),R7.call(G,Z,U,J,"directiveTextName")}function U(Y){return Y===z.colon?J(Y):Y===z.leftSquareBracket?Z.attempt(qR,W,W)(Y):W(Y)}function W(Y){return Y===z.leftCurlyBrace?Z.attempt(YR,q,q)(Y):q(Y)}function q(Y){return Z.exit("directiveText"),X(Y)}}function KR(Z,X,J){return _7(Z,X,J,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")}function $R(Z,X,J){return D7(Z,X,J,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")}var nq,qR,YR;var sq=C(()=>{o();c();Q8();U8();W8();nq={tokenize:HR,previous:aq},qR={tokenize:KR,partial:!0},YR={tokenize:$R,partial:!0}});function bZ(){return{text:{[z.colon]:nq},flow:{[z.colon]:[iq,rq]}}}var oq=C(()=>{c();dq();cq();sq()});var tq=C(()=>{oq()});function Y8(){let X=this.data(),J=X.micromarkExtensions||(X.micromarkExtensions=[]),G=X.fromMarkdownExtensions||(X.fromMarkdownExtensions=[]),Q=X.toMarkdownExtensions||(X.toMarkdownExtensions=[]);J.push(bZ()),G.push(jZ()),Q.push(EZ())}var eq=C(()=>{lq();tq()});var ZY=C(()=>{eq()});var kZ={};P7(kZ,{transpileJxMarkdown:()=>NR,mdKey:()=>zR,jxKey:()=>H8,isJxMarkdown:()=>FR,expandStylePaths:()=>VR,expandDotPaths:()=>xZ,collapseStylePaths:()=>BR,collapseDotPaths:()=>GY,applyStyleKeyMapping:()=>gZ});function H8(Z){return JY.has(Z)?`$${Z}`:Z}function zR(Z){if(Z.startsWith("$")&&JY.has(Z.slice(1)))return Z.slice(1);return Z}function xZ(Z){let X={};for(let[J,G]of Object.entries(Z)){if(J.indexOf(".")===-1){X[H8(J)]=G;continue}let U=J.split("."),W=X;for(let q=0;q<U.length-1;q++){let Y=H8(U[q]);if(!(Y in W)||typeof W[Y]!=="object")W[Y]={};W=W[Y]}W[H8(U[U.length-1])]=G}return X}function GY(Z){let X={};function J(G,Q){for(let[U,W]of Object.entries(G)){let q=Q?`${Q}.${U}`:U;if(W&&typeof W==="object"&&!Array.isArray(W))J(W,q);else X[q]=String(W)}}return J(Z,""),X}function gZ(Z){let X={};for(let[J,G]of Object.entries(Z))if(QY.has(J))X[`:${J}`]=G;else if(J.startsWith("--"))X[`@${J}`]=G;else X[J]=G;return X}function VR(Z){return gZ(xZ(Z))}function BR(Z){let X={};for(let[J,G]of Object.entries(Z))if(J.startsWith(":")&&QY.has(J.slice(1)))X[J.slice(1)]=G;else if(J.startsWith("@--"))X[J.slice(1)]=G;else X[J]=G;return GY(X)}function FR(Z){let X=Z.match(/^---\r?\n([\s\S]*?)\r?\n---/);if(!X)return!1;return/^tagName:\s*.+-.+/m.test(X[1])}function _R(Z){let X=xZ(Z);if(X.style&&typeof X.style==="object")X.style=gZ(X.style);let J={},G={};for(let[Q,U]of Object.entries(X))if(MR.test(Q))G[Q]=U;else J[Q]=U;return{props:J,attributes:G}}function K8(Z){if(!Z||typeof Z!=="object")return null;if(Z.type==="yaml"||Z.type==="toml")return null;if(Z.type==="containerDirective"||Z.type==="leafDirective"||Z.type==="textDirective")return OR(Z);if(Z.type==="text")return Z.value;let X=RR[Z.type];if(!X)return null;let G={tagName:X(Z)};switch(Z.type){case"heading":case"paragraph":case"emphasis":case"strong":case"delete":case"blockquote":case"listItem":case"tableRow":case"tableCell":{let Q=W5(Z.children);if(Q.length===1&&typeof Q[0]==="string")G.textContent=Q[0];else if(Q.length>0)G.children=Q;break}case"inlineCode":G.textContent=Z.value;break;case"link":if(G.attributes={href:Z.url},Z.title)G.attributes.title=Z.title;{let Q=W5(Z.children);if(Q.length===1&&typeof Q[0]==="string")G.textContent=Q[0];else if(Q.length>0)G.children=Q}break;case"image":if(G.attributes={src:Z.url,alt:Z.alt??""},Z.title)G.attributes.title=Z.title;break;case"list":if(Z.children?.length>0)G.children=W5(Z.children);if(Z.start!=null&&Z.start!==1)G.attributes={start:String(Z.start)};break;case"code":G.children=[{tagName:"code",textContent:Z.value,...Z.lang?{className:`language-${Z.lang}`}:{}}];break;case"thematicBreak":case"break":break;case"table":{let Q=W5(Z.children),U=Q.length>0?{tagName:"thead",children:[Q[0]]}:null,W=Q.length>1?{tagName:"tbody",children:Q.slice(1)}:null;G.children=[U,W].filter(Boolean);break}}return G}function OR(Z){let X={tagName:Z.name};if(Z.attributes&&Object.keys(Z.attributes).length>0){let{props:J,attributes:G}=_R(Z.attributes);if(Z.name.includes("-"))for(let[U,W]of Object.entries(J))if(U==="style"||U==="children"||U==="textContent"||U==="innerHTML"||U.startsWith("$"))X[U]=W;else if(U==="props")X.$props=W;else{if(!X.attributes)X.attributes={};X.attributes[U]=W}else for(let[U,W]of Object.entries(J))if(U==="style"||U==="children"||U==="textContent"||U==="innerHTML"||U==="id"||U==="className"||U==="hidden"||U==="tabIndex"||U==="lang"||U==="dir"||U.startsWith("$")||U.startsWith("on"))X[U]=W;else{if(!X.attributes)X.attributes={};X.attributes[U]=W}if(Object.keys(G).length>0)X.attributes={...X.attributes,...G}}if(Z.type==="textDirective"){if(Z.children?.length>0){let J=W5(Z.children);if(J.length===1&&typeof J[0]==="string")X.textContent=J[0];else if(J.length>0)X.children=J}return X}if(Z.type==="leafDirective")return X;if(Z.children?.length>0){let J=[],G=DR.has(Z.name);for(let Q of Z.children)if(G&&Q.type==="paragraph")for(let U of Q.children??[]){let W=K8(U);if(W!=null)J.push(W)}else{let U=K8(Q);if(U!=null)J.push(U)}if(X.children&&typeof X.children==="object"&&!Array.isArray(X.children));else if(J.length===1&&typeof J[0]==="string")X.textContent=J[0];else if(J.length>0)X.children=J}return X}function W5(Z){if(!Z)return[];return Z.map(K8).filter((X)=>X!=null)}function NR(Z){let X=U3().use(J6).use(Q6,["yaml"]).use(XY.default).use(J8).use(Y8),J=X.parse(Z),G={data:{}};X.runSync(J,G);let Q=G.data?.frontmatter??{},U={};for(let[Y,H]of Object.entries(Q))U[Y]=H;let W=J.children.filter((Y)=>Y.type!=="yaml"&&Y.type!=="toml"),q=[];for(let Y of W){let H=K8(Y);if(H!=null)q.push(H)}if(q.length>0)U.children=q;return U}var XY,JY,QY,MR,DR,RR;var yZ=C(()=>{LJ();pG();tG();Aq();ZY();XY=H5(yU(),1),JY=new Set(["prototype","ref","component","props","switch","elements"]);QY=new Set(["hover","focus","active","visited","disabled","checked","valid","invalid","required","empty","first-child","last-child","focus-within","focus-visible","placeholder","selection","before","after"]);MR=/^(?:aria-|data-|slot$)/,DR=new Set(["p","h1","h2","h3","h4","h5","h6","span","a","em","strong","b","i","u","s","small","sub","sup","mark","abbr","cite","q","dfn","time","var","samp","kbd","data","code","label","button","legend","summary","dt"]);RR={heading:(Z)=>`h${Z.depth}`,paragraph:()=>"p",emphasis:()=>"em",strong:()=>"strong",delete:()=>"del",inlineCode:()=>"code",link:()=>"a",image:()=>"img",blockquote:()=>"blockquote",list:(Z)=>Z.ordered?"ol":"ul",listItem:()=>"li",code:()=>"pre",thematicBreak:()=>"hr",break:()=>"br",table:()=>"table",tableRow:()=>"tr",tableCell:(Z)=>Z.isHeader?"th":"td"}});var FY={};P7(FY,{compileClassJson:()=>xR});function xR(Z,X={}){let J=Z.title;if(!J)throw Error("compileClassJson: missing title (class name)");let G=gR(Z.extends),Q=Z.$defs?.fields??{},U=Z.$defs?.constructor,W=Z.$defs?.methods??{},q=[];if(q.push("// Generated by @jxsuite/compiler from .class.json — do not edit manually"),Z.$id)q.push(`// Source: ${Z.$id}`);q.push("");let Y=G!=="Object"?` extends ${G}`:"";q.push(`class ${J}${Y} {`);for(let[H,K]of Object.entries(Q)){let $=K;if($.scope!=="static")continue;let B=$.identifier??H,V=$.access==="private"?"#":"",M=$.initializer!==void 0?JSON.stringify($.initializer):$.default!==void 0?JSON.stringify($.default):"null";q.push(` static ${V}${B} = ${M};`)}for(let[H,K]of Object.entries(Q)){let $=K;if($.scope==="static")continue;if($.access!=="private")continue;let B=$.identifier??H;q.push(` #${B};`)}if(Object.keys(Q).length>0)q.push("");if(q.push(" constructor(config = {}) {"),U?.superCall||G!=="Object"){let H=U?.superCall?.arguments?U.superCall.arguments.join(", "):"";q.push(` super(${H});`)}for(let[H,K]of Object.entries(Q)){let $=K;if($.scope==="static")continue;let B=$.identifier??H,V=$.access==="private"?"#":"",M=$.initializer!==void 0?JSON.stringify($.initializer):$.default!==void 0?JSON.stringify($.default):"null";q.push(` this.${V}${B} = config.${B} !== undefined ? config.${B} : ${M};`)}if(U?.body){let H=Array.isArray(U.body)?U.body:[U.body];for(let K of H)q.push(` ${K}`)}q.push(" }");for(let[H,K]of Object.entries(W)){let $=K,B=$.identifier??H,V=$.scope==="static",_=$.access==="private"?"#":"",D=V?"static ":"",R=$.returnType?.$ref?.includes("Promise")||yR($)?"async ":"",N=BY($.parameters??[]),L=kR($.body);if(q.push(""),$.role==="accessor"){if($.getter)q.push(` ${D}get ${_}${B}() {`),q.push(` ${$.getter.body}`),q.push(" }");if($.setter){let E=BY($.setter.parameters??[]);q.push(` ${D}set ${_}${B}(${E}) {`),q.push(` ${$.setter.body}`),q.push(" }")}}else{q.push(` ${D}${R}${_}${B}(${N}) {`);for(let E of L)q.push(` ${E}`);q.push(" }")}}return q.push("}"),q.push(""),q.push(`export { ${J} };`),q.push(`export default ${J};`),q.push(""),q.join(`
169
+ `)}function gR(Z){if(!Z)return"Object";if(typeof Z==="string")return Z;if(Z.$ref){let J=Z.$ref.match(/([A-Za-z0-9_]+)\.class\.json/);return J?J[1]:"Object"}return"Object"}function BY(Z){return Z.map((X)=>{if(X.$ref)return X.$ref.split("/").pop();return X.identifier??X.name??"arg"}).join(", ")}function kR(Z){if(!Z)return[""];if(Array.isArray(Z))return Z;return[Z]}function yR(Z){return(Array.isArray(Z.body)?Z.body.join(`
170
+ `):Z.body??"").includes("await ")}var{readFileSync:vR}=(()=>({}));var G4=new Set(["$schema","$id","$defs","state","$ref","$props","$elements","$switch","$prototype","$src","$export","$media","$map","timing","default","description","body","parameters","arguments","name","tagName","children","style","attributes","items","map","filter","sort","cases","observedAttributes"]);function SY(Z){return Z.startsWith(":")||Z.startsWith(".")||Z.startsWith("&")||Z.startsWith("[")}function o1(Z){return Z.replace(/[A-Z]/g,(X)=>`-${X.toLowerCase()}`)}function h0(Z){return Object.entries(Z).filter(([X])=>!SY(X)).map(([X,J])=>`${o1(X)}: ${J}`).join("; ")}var $5="https://esm.sh/@vue/reactivity@3.5.32",z5="https://esm.sh/lit-html@3.3.0",bY=new Set(["type","enum","minimum","maximum","minLength","maxLength","pattern","format","items","properties","required","description","title","$comment"]);function j4(Z){for(let X of Object.keys(Z))if(!bY.has(X))return!1;return!0}function A1(Z){return typeof Z==="string"&&Z.includes("${")}function F8(Z){if(!Z||typeof Z!=="object")return!1;if(Z.state)for(let[X,J]of Object.entries(Z.state)){if(X==="$site"||X==="$page")continue;if(J&&typeof J==="object"&&!Array.isArray(J)&&J.timing==="compiler")continue;if(typeof J!=="object"||J===null||Array.isArray(J))return!0;if(J.$prototype)return!0;if("default"in J)return!0;if(j4(J))continue;return!0}if(Z.$switch)return!0;if(Z.children?.$prototype==="Array")return!0;if(Array.isArray(Z.children)){if(Z.children.some((X)=>F8(X)))return!0}for(let[X,J]of Object.entries(Z)){if(G4.has(X))continue;if(J!==null&&typeof J==="object"&&typeof J.$ref==="string")return!0;if(A1(J))return!0}if(Z.style&&typeof Z.style==="object"){for(let X of Object.values(Z.style))if(A1(X))return!0}if(Z.attributes&&typeof Z.attributes==="object"){for(let X of Object.values(Z.attributes))if(A1(X))return!0}return!1}function sZ(Z){if(!Z||typeof Z!=="object")return!1;if(Z.$switch)return!0;if(Z.children?.$prototype==="Array")return!0;for(let[X,J]of Object.entries(Z)){if(G4.has(X))continue;if(J!==null&&typeof J==="object"&&typeof J.$ref==="string")return!0;if(A1(J))return!0}if(Z.style&&typeof Z.style==="object"){for(let X of Object.values(Z.style))if(A1(X))return!0}if(Z.attributes&&typeof Z.attributes==="object"){for(let X of Object.values(Z.attributes))if(A1(X))return!0}return!1}function E4(Z,X=null,J={},G={}){return{scope:Z?.state?xY(Z.state,X):X??Object.create(null),scopeDefs:J,media:G}}function xY(Z={},X=null){let J=Object.create(X??null);for(let[G,Q]of Object.entries(Z)){if(typeof Q!=="object"||Q===null||Array.isArray(Q)){C4(J,G,K5(Q));continue}if("default"in Q){C4(J,G,K5(Q.default));continue}if(!Q.$prototype&&!j4(Q))C4(J,G,K5(Q))}for(let[G,Q]of Object.entries(Z)){if(typeof Q==="string"&&A1(Q)){nZ(J,G,()=>oZ(Q,J));continue}if(!Q||typeof Q!=="object")continue;if(Q.$prototype==="Function"){if(Q.body){let U=Function("state",...Q.parameters??Q.arguments??[],Q.body);if(Q.body.includes("return"))nZ(J,G,()=>U(J));else C4(J,G,U)}else if(!Q.body?.includes("return"))C4(J,G,()=>{});continue}if(Q.$prototype==="LocalStorage"||Q.$prototype==="SessionStorage")C4(J,G,K5(Q.default??null))}return J}function C4(Z,X,J){Object.defineProperty(Z,X,{value:J,enumerable:!0,configurable:!0,writable:!0})}function nZ(Z,X,J){Object.defineProperty(Z,X,{enumerable:!0,configurable:!0,get:J})}function j1(Z,X){if(A0(Z))return gY(Z.$ref,X);if(A1(Z))return oZ(Z,X);return Z}function A0(Z){return Z!==null&&typeof Z==="object"&&typeof Z.$ref==="string"}function gY(Z,X){if(typeof Z!=="string")return Z;if(Z.startsWith("$map/")){let J=Z.split("/"),G=J[1],Q=X.$map?.[G]??X["$map/"+G];return J.length>2?aZ(Q,J.slice(2).join("/")):Q}if(Z.startsWith("#/state/")){let J=Z.slice(8),G=J.indexOf("/");if(G<0)return X[J];return aZ(X[J.slice(0,G)],J.slice(G+1))}return X[Z]??null}function oZ(Z,X){try{let J=Z.match(/^\$\{(.+)\}$/s);if(J)return Function("state","$map",`return (${J[1]})`)(X,X?.$map);return Function("state","$map",`return \`${Z}\``)(X,X?.$map)}catch{return null}}function aZ(Z,X){if(!X)return Z;return X.split("/").reduce((J,G)=>J==null?void 0:J[G],Z)}function K5(Z){if(Z===null||typeof Z!=="object")return Z;return JSON.parse(JSON.stringify(Z))}function V5(Z,X){let J="",G=j1(Z.id,X),Q=j1(Z.className,X),U=j1(Z.hidden,X),W=j1(Z.tabIndex,X),q=j1(Z.title,X),Y=j1(Z.lang,X),H=j1(Z.dir,X);if(G)J+=` id="${U1(G)}"`;if(Q)J+=` class="${U1(Q)}"`;if(U)J+=" hidden";if(W!==void 0&&W!==null)J+=` tabindex="${U1(String(W))}"`;if(q)J+=` title="${U1(q)}"`;if(Y)J+=` lang="${U1(Y)}"`;if(H)J+=` dir="${U1(H)}"`;if(Z.style){let K=new Set;for(let[B,V]of Object.entries(Z.style))if(B.startsWith("@")&&V&&typeof V==="object"){for(let M of Object.keys(V))if(!M.startsWith(":")&&!M.startsWith(".")&&!M.startsWith("&")&&!M.startsWith("["))K.add(M)}let $=Object.entries(Z.style).filter(([B,V])=>!B.startsWith(":")&&!B.startsWith(".")&&!B.startsWith("&")&&!B.startsWith("[")&&!B.startsWith("@")&&!K.has(B)&&V!==null&&typeof V!=="object").map(([B,V])=>{let M=j1(V,X);return M==null?null:`${o1(B)}: ${M}`}).filter(Boolean).join("; ");if($)J+=` style="${$}"`}if(Z.attributes)for(let[K,$]of Object.entries(Z.attributes)){let B=j1($,X);if(B!==null&&B!==void 0&&(typeof B==="string"||typeof B==="number"||typeof B==="boolean"))J+=` ${K}="${U1(String(B))}"`}if(Z.tagName==="img"){if(!Z.attributes?.loading)J+=' loading="lazy"';if(!Z.attributes?.decoding)J+=' decoding="async"'}if(Z.$props&&typeof Z.$props==="object")J+=` data-jx-props="${U1(JSON.stringify(Z.$props))}"`;return J}function S4(Z,X={},J=null){let G=[];if(J&&typeof J==="object"){for(let[H,K]of Object.entries(J))if(H.startsWith(":")||H.startsWith(".")||H.startsWith("["))G.push(`${H} { ${h0(K)} }`);else if(H.startsWith("@")){let $=H.startsWith("@--")?X[H.slice(1)]??H.slice(1):H.slice(1);G.push(`@media ${$} { body { ${h0(K)} } }`)}let U={},W={};for(let[H,K]of Object.entries(J)){if(H.startsWith(":")||H.startsWith(".")||H.startsWith("[")||H.startsWith("@"))continue;if(K!==null&&typeof K==="object"&&!Array.isArray(K))continue;if(H.startsWith("--"))U[H]=K;else W[H]=K}let q=h0(U);if(q)G.push(`:root { ${q} }`);let Y=h0(W);if(Y)G.push(`body { ${Y} }`)}if(tZ(Z,G,X,"",{n:0}),G.length===0)return"";return`<style>
171
171
  ${G.join(`
172
172
  `)}
173
- </style>`}function tZ(Z,X,J,G="",Q={n:0}){if(!Z||typeof Z!=="object")return;if(Z.style){if(Object.keys(Z.style).some((q)=>q.startsWith("@")||q.startsWith(":")||q.startsWith(".")||q.startsWith("&")||q.startsWith("["))&&!Z.id&&!Z.className)Z.className=`jx-${Q.n++}`}let U=Z.id?`#${Z.id}`:Z.className?`.${Z.className.split(" ")[0]}`:Z.tagName??"*";if(Z.style){let W=new Set;for(let[q,Y]of Object.entries(Z.style))if(q.startsWith("@")&&Y&&typeof Y==="object"){for(let H of Object.keys(Y))if(!H.startsWith(":")&&!H.startsWith(".")&&!H.startsWith("&")&&!H.startsWith("["))W.add(H)}if(W.size>0){let q=[];for(let Y of W){let H=Z.style[Y];if(H!==null&&H!==void 0&&typeof H!=="object")q.push(`${o1(Y)}: ${H}`)}if(q.length>0)X.push(`${U} { ${q.join("; ")} }`)}for(let[q,Y]of Object.entries(Z.style))if(q.startsWith("@")){let H=q.startsWith("@--")?J[q.slice(1)]??q.slice(1):q.slice(1);X.push(`@media ${H} { ${U} { ${h0(Y)} } }`);for(let[K,$]of Object.entries(Y)){if(!(K.startsWith(":")||K.startsWith(".")||K.startsWith("&")||K.startsWith("[")))continue;let B=K.startsWith("&")?K.replace("&",U):`${U}${K}`;X.push(`@media ${H} { ${B} { ${h0($)} } }`)}}else if(q.startsWith(":")||q.startsWith(".")||q.startsWith("&")||q.startsWith("[")){let H=q.startsWith("&")?q.replace("&",U):`${U}${q}`;X.push(`${H} { ${h0(Y)} }`)}}if(Array.isArray(Z.children))Z.children.forEach((W)=>{tZ(W,X,J,U,Q)})}function U1(Z){return String(Z).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function B5(Z){return Z.split("-").map((X)=>X.charAt(0).toUpperCase()+X.slice(1)).join("")}function eZ(Z){let X=new Map;return ZX(Z,X),[...X.values()]}function ZX(Z,X){if(!Z||typeof Z!=="object")return;if(Z.state)for(let[J,G]of Object.entries(Z.state)){let Q=G;if(Q&&typeof Q==="object"&&Q.timing==="server"&&Q.$src&&Q.$export&&!Q.$prototype)X.set(Q.$export,{key:J,exportName:Q.$export,src:Q.$src})}if(Array.isArray(Z.children))Z.children.forEach((J)=>ZX(J,X))}function P0(Z){if(Z.startsWith("\\\\?\\"))return Z;return Z.split("\\").join("/")}var gY=/^win/.test(globalThis.process?globalThis.process.platform:""),w7=()=>gY;var kY=/\//g,yY=/^(\w{2,}):\/\//i,vY=/~1/g,hY=/~0/g,mY=/^[a-zA-Z]:[\\/]/,uY=[[/\?/g,"%3F"],[/#/g,"%23"]],M8=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],b4=(Z)=>new URL(Z);function O1(Z,X){let J=new URL(P0(Z),"https://aaa.nonexistanturl.com"),G=new URL(P0(X),J),Q=X.match(/(\s*)$/)?.[1]||"";if(G.hostname==="aaa.nonexistanturl.com"){let{pathname:W,search:q,hash:Y}=G;return W+q+decodeURIComponent(Y)+Q}let U=G.toString()+Q;if(U.includes("#")){let[W,q]=U.split("#",2);return W+"#"+decodeURIComponent(q||"")}return U}function Q4(){if(typeof window<"u"&&window.location&&window.location.href){let Z=window.location.href;if(!Z||!Z.startsWith("http"))try{return new URL(Z),Z}catch{return"/"}return Z}if(typeof process<"u"&&process.cwd){let Z=process.cwd(),X=Z.slice(-1);if(X==="/"||X==="\\")return Z;else return Z+"/"}return"/"}function XX(Z){let X=yY.exec(Z||"");if(X)return X[1].toLowerCase();return}function JX(Z){let X=Z.lastIndexOf(".");if(X>=0)return pY(Z.substring(X).toLowerCase());return""}function pY(Z){let X=Z.indexOf("?");if(X>=0)Z=Z.substring(0,X);return Z}function Y0(Z){if(!Z)return"#";let X=Z.indexOf("#");if(X>=0)return Z.substring(X);return"#"}function V1(Z){if(!Z)return"";let X=Z.indexOf("#");if(X>=0)Z=Z.substring(0,X);return Z}function GX(Z){let X=XX(Z);if(X==="http"||X==="https")return!0;else if(X===void 0)return typeof window<"u";else return!1}function D8(Z){if(!Z||typeof Z!=="string")return!0;let X=Z.trim().toLowerCase();if(!X)return!0;if(X.startsWith("javascript:")||X.startsWith("vbscript:")||X.startsWith("data:"))return!0;if(X.startsWith("file:"))return!0;if(typeof window<"u"&&window.location&&window.location.href)return!1;let J=["localhost","127.0.0.1","::1","10.","172.16.","172.17.","172.18.","172.19.","172.20.","172.21.","172.22.","172.23.","172.24.","172.25.","172.26.","172.27.","172.28.","172.29.","172.30.","172.31.","192.168.","169.254.",".local",".internal",".intranet",".corp",".home",".lan"];try{let G=new URL(X.startsWith("//")?"http:"+X:X),Q=G.hostname.toLowerCase();for(let W of J)if(Q===W||Q.startsWith(W)||Q.endsWith(W))return!0;if(fY(Q))return!0;let U=G.port;if(U&&lY(parseInt(U)))return!0}catch{if(X.startsWith("/")&&!X.startsWith("//"))return!1;for(let G of J)if(X.includes(G))return!0}return!1}function fY(Z){let X=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,J=Z.match(X);if(!J)return!1;let[,G,Q,U,W]=J.map(Number);if(G>255||Q>255||U>255||W>255)return!1;return G===10||G===127||G===172&&Q>=16&&Q<=31||G===192&&Q===168||G===169&&Q===254}function lY(Z){return[22,23,25,53,135,139,445,993,995,1433,1521,3306,3389,5432,5900,6379,8080,8443,9200,27017].includes(Z)}function F5(Z){if(typeof window<"u"||typeof process<"u"&&!0)return!1;let X=XX(Z);return X===void 0||X==="file"}function QX(Z){if(w7()){let X=Q4(),J=Z.toUpperCase(),Q=P0(X).toUpperCase(),U=J.includes(Q),W=J.includes(Q),q=mY.test(Z)||Z.startsWith("http://")||Z.startsWith("https://")||Z.startsWith("file://");if(!(U||W||q)&&!X.startsWith("http"))Z=((H,K)=>{if(H.endsWith("/")||H.endsWith("\\"))return H+K;else return H+"/"+K})(X,Z);Z=P0(Z)}Z=encodeURI(Z);for(let X of uY)Z=Z.replace(X[0],X[1]);return Z}function x4(Z,X){Z=Z.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"),Z=decodeURI(Z);for(let G=0;G<M8.length;G+=2)Z=Z.replace(M8[G],M8[G+1]);let J=Z.toLowerCase().startsWith("file://");if(J){if(Z=Z.replace(/^file:\/\//,"").replace(/^\//,""),w7()&&Z[1]==="/")Z=`${Z[0]}:${Z.substring(1)}`;if(X)Z="file:///"+Z;else J=!1,Z=w7()?Z:"/"+Z}if(w7()&&!J){if(Z=Z.replace(kY,"\\"),Z.match(/^[a-z]:\\/i))Z=Z[0].toUpperCase()+Z.substring(1)}return Z}function M5(Z){if(Z.length<=1||Z[0]!=="#"||Z[1]!=="/")return[];return Z.slice(2).split("/").map((X)=>{return X.replace(vY,"/").replace(hY,"~")})}var iY=["function","symbol","undefined"],dY=["constructor","prototype","__proto__"],rY=Object.getPrototypeOf({});function UX(){let Z={},X=this;for(let J of cY(X))if(typeof J==="string"){let G=X[J],Q=typeof G;if(!iY.includes(Q))Z[J]=G}return Z}function cY(Z,X=[]){let J=[];while(Z&&Z!==rY)J=J.concat(Object.getOwnPropertyNames(Z),Object.getOwnPropertySymbols(Z)),Z=Object.getPrototypeOf(Z);let G=new Set(J);for(let Q of X.concat(dY))G.delete(Q);return G}class t1 extends Error{name;message;source;path;code;constructor(Z,X){super();this.code="EUNKNOWN",this.name="JSONParserError",this.message=Z,this.source=X,this.path=null}toJSON=UX.bind(this);get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}}class g4 extends Error{files;constructor(Z){super();this.files=Z,this.name="JSONParserErrorGroup",this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${x4(Z.$refs._root$Ref.path)}'`}toJSON=UX.bind(this);static getParserErrors(Z){let X=[];for(let J of Object.values(Z.$refs._$refs))if(J.errors)X.push(...J.errors);return X}get errors(){return g4.getParserErrors(this.files)}}class e1 extends t1{code="EPARSER";name="ParserError";constructor(Z,X){super(`Error parsing ${X}: ${Z}`,X)}}class D5 extends t1{code="EUNMATCHEDPARSER";name="UnmatchedParserError";constructor(Z){super(`Could not find parser for "${Z}"`,Z)}}class X0 extends t1{code="ERESOLVER";name="ResolverError";ioErrorCode;constructor(Z,X){super(Z.message||`Error reading file "${X}"`,X);if("code"in Z)this.ioErrorCode=String(Z.code)}}class _5 extends t1{code="EUNMATCHEDRESOLVER";name="UnmatchedResolverError";constructor(Z){super(`Could not find resolver for "${Z}"`,Z)}}class R5 extends t1{code="EMISSINGPOINTER";name="MissingPointerError";targetToken;targetRef;targetFound;parentPath;constructor(Z,X,J,G,Q){super(`Missing $ref pointer "${Y0(X)}". Token "${Z}" does not exist.`,V1(X));this.targetToken=Z,this.targetRef=J,this.targetFound=G,this.parentPath=Q}}class _8 extends t1{code="ETIMEOUT";name="TimeoutError";constructor(Z){super(`Dereferencing timeout reached: ${Z}ms`)}}class k4 extends t1{code="EUNMATCHEDRESOLVER";name="InvalidPointerError";constructor(Z,X){super(`Invalid $ref pointer "${Z}". Pointers must begin with "#/"`,V1(X))}}function K0(Z){return Z instanceof t1||Z instanceof g4}function R8(Z){if(Z.path===null)Z.path=[];return Z}function g1(Z,X){let J=nY(X);return J?O1(Z,J):Z}function O5(Z){if(!Z||typeof Z!=="object"||ArrayBuffer.isView(Z))return!1;let X=Z.$schema;if(typeof X==="string"&&(X.includes("draft/2019-09/")||X.includes("draft/2020-12/")||X.includes("oas/3.1/")))return!0;let J=Z.openapi;return typeof J==="string"&&/^3\.1(?:\.|$)/.test(J)}function N5(Z,X,J,G,Q=!1){if(!Q)return;let U=new Set,W=(q,Y)=>{if(!q||typeof q!=="object"||ArrayBuffer.isView(q)||U.has(q))return;U.add(q);let H=g1(Y,q);if(H!==Y)Z._addAlias(H,q,G,Q);for(let K of Object.keys(q))W(q[K],H)};W(J,X)}function nY(Z){if(Z&&typeof Z==="object"&&"$id"in Z&&typeof Z.$id==="string"&&Z.$id.length>0)return Z.$id;return}var I5=Symbol("null"),aY=/\//g,sY=/~/g,oY=/~1/g,tY=/~0/g;class U4{$ref;path;originalPath;scopeBase;value;circular;indirections;constructor(Z,X,J){this.$ref=Z,this.path=X,this.originalPath=J||X,this.scopeBase=Z.path||V1(X),this.value=void 0,this.circular=!1,this.indirections=0}resolve(Z,X,J){let G=U4.parse(this.path,this.originalPath),Q=[];if(this.value=qX(Z),this.$ref.dynamicIdScope&&!YX(this.$ref))this.scopeBase=g1(this.scopeBase,this.value);for(let W=0;W<G.length;W++){let q=this.circular,Y=$1.isExtended$Ref(this.value);if(L5(this,X,J))this.path=U4.join(this.path,G.slice(W));else if(!q&&this.circular&&Y)this.circular=!1;let H=G[W];if(this.value[H]===void 0||this.value[H]===null&&W===G.length-1){let K=!1;for(let _=G.length-1;_>W;_--){let D=G.slice(W,_+1).join("/");if(this.value[D]!==void 0){this.value=this.value[D],W=_,K=!0;break}}if(K)continue;if(H in this.value&&this.value[H]===null){this.value=I5;continue}this.value=null;let $=this.$ref.path||"",B=this.path.replace($,""),V=U4.join("",Q),M=J?.replace($,"");throw new R5(H,decodeURI(this.originalPath),B,V,M)}else this.value=this.value[H];if(Q.push(H),this.$ref.dynamicIdScope)this.scopeBase=g1(this.scopeBase,this.value)}let U=this.$ref.dynamicIdScope?this.scopeBase:this.path;if(!this.value||this.value.$ref&&O1(U,this.value.$ref)!==J)L5(this,X,J);return this}set(Z,X,J){let G=U4.parse(this.path),Q;if(G.length===0)return this.value=X,X;if(this.value=qX(Z),this.$ref.dynamicIdScope&&!YX(this.$ref))this.scopeBase=g1(this.scopeBase,this.value);for(let U=0;U<G.length-1;U++){if(L5(this,J),Q=G[U],this.value&&this.value[Q]!==void 0)this.value=this.value[Q];else this.value=WX(this,Q,{});if(this.$ref.dynamicIdScope)this.scopeBase=g1(this.scopeBase,this.value)}return L5(this,J),Q=G[G.length-1],WX(this,Q,X),Z}static parse(Z,X){let J=Y0(Z).substring(1);if(!J)return[];let G=J.split("/");for(let Q=0;Q<G.length;Q++)G[Q]=G[Q].replace(oY,"/").replace(tY,"~");if(G[0]!=="")throw new k4(J,X===void 0?Z:X);return G.slice(1)}static join(Z,X){if(Z.indexOf("#")===-1)Z+="#";X=Array.isArray(X)?X:[X];for(let J=0;J<X.length;J++){let G=X[J];Z+="/"+G.replace(sY,"~0").replace(aY,"~1")}return Z}}function L5(Z,X,J){if($1.isAllowed$Ref(Z.value,X)){let G=Z.$ref.dynamicIdScope?Z.scopeBase:Z.path,Q=O1(G,Z.value.$ref);if(Q===Z.path&&!eY(J))Z.circular=!0;else{let U=Z.$ref.$refs._resolve(Q,Z.path,X);if(U===null)return!1;if(Z.indirections+=U.indirections+1,$1.isExtended$Ref(Z.value))return Z.value=$1.dereference(Z.value,U.value,X),!1;else Z.$ref=U.$ref,Z.path=U.path,Z.value=U.value,Z.scopeBase=Z.$ref.path;return!0}}return}var m1=U4;function WX(Z,X,J){if(Z.value&&typeof Z.value==="object")if(X==="-"&&Array.isArray(Z.value))Z.value.push(J);else Z.value[X]=J;else throw new t1(`Error assigning $ref pointer "${Z.path}".
174
- Cannot set "${X}" of a non-object.`);return J}function qX(Z){if(K0(Z))throw Z;return Z}function eY(Z){return typeof Z=="string"&&U4.parse(Z).length==0}function YX(Z){return Boolean(Z.path&&Z.path in Z.$refs._aliases)}class T7{path;value;$refs;pathType;dynamicIdScope=!1;errors=[];constructor(Z){this.$refs=Z}addError(Z){if(this.errors===void 0)this.errors=[];let X=this.errors.map(({footprint:J})=>J);if("errors"in Z&&Array.isArray(Z.errors))this.errors.push(...Z.errors.map(R8).filter(({footprint:J})=>!X.includes(J)));else if(!("footprint"in Z)||!X.includes(Z.footprint))this.errors.push(R8(Z))}exists(Z,X){try{return this.resolve(Z,X),!0}catch{return!1}}get(Z,X){return this.resolve(Z,X)?.value}resolve(Z,X,J,G){let Q=new m1(this,Z,J);try{let U=Q.resolve(this.value,X,G);if(U.value===I5)U.value=null;return U}catch(U){if(!X||!X.continueOnError||!K0(U))throw U;if(U.path===null)U.path=M5(Y0(G));if(U instanceof k4)U.source=decodeURI(V1(G));return this.addError(U),null}}set(Z,X){let J=new m1(this,Z);if(this.value=J.set(this.value,X),this.value===I5)this.value=null}static is$Ref(Z){return Boolean(Z)&&typeof Z==="object"&&Z!==null&&"$ref"in Z&&typeof Z.$ref==="string"&&Z.$ref.length>0}static isExternal$Ref(Z){return T7.is$Ref(Z)&&Z.$ref[0]!=="#"}static isAllowed$Ref(Z,X){if(this.is$Ref(Z)){if(Z.$ref.substring(0,2)==="#/"||Z.$ref==="#")return!0;else if(Z.$ref[0]!=="#"&&(!X||X.resolve?.external))return!0}return}static isExtended$Ref(Z){return T7.is$Ref(Z)&&Object.keys(Z).length>1}static dereference(Z,X,J){if(X&&typeof X==="object"&&T7.isExtended$Ref(Z)){let G={};for(let U of Object.keys(Z))if(U!=="$ref")G[U]=Z[U];let Q=J?.dereference?.mergeKeys??!0;for(let U of Object.keys(X)){let W=U;if(!(W in G))G[W]=X[W];else if(Q&&typeof G[W]==="object"&&G[W]!==null&&typeof X[W]==="object"&&X[W]!==null)G[W]=HX(X[W],G[W])}return G}else return X}}function HX(Z,X){if(typeof Z!=="object"||Z===null)return X;if(typeof X!=="object"||X===null)return X;let J=Array.isArray(Z)?[...Z]:{...Z};for(let G of Object.keys(X))if(Array.isArray(X[G]))J[G]=[...X[G]];else if(typeof X[G]==="object"&&X[G]!==null)J[G]=HX(Z[G],X[G]);else J[G]=X[G];return J}var $1=T7;class C7{circular;paths(...Z){return KX(this._$refs,Z.flat()).map((J)=>{return P0(J.decoded)})}values(...Z){let X=this._$refs;return KX(X,Z.flat()).reduce((G,Q)=>{return G[P0(Q.decoded)]=X[Q.encoded].value,G},{})}exists(Z,X){try{return this._resolve(Z,"",X),!0}catch{return!1}}get(Z,X){return this._resolve(Z,"",X).value}set(Z,X){let J=O1(this._root$Ref.path,Z),G=this._getRef(J);if(!G)throw Error(`Error resolving $ref pointer "${Z}".
173
+ </style>`}function tZ(Z,X,J,G="",Q={n:0}){if(!Z||typeof Z!=="object")return;if(Z.style){if(Object.keys(Z.style).some((q)=>q.startsWith("@")||q.startsWith(":")||q.startsWith(".")||q.startsWith("&")||q.startsWith("["))&&!Z.id&&!Z.className)Z.className=`jx-${Q.n++}`}let U=Z.id?`#${Z.id}`:Z.className?`.${Z.className.split(" ")[0]}`:Z.tagName??"*";if(Z.style){let W=new Set;for(let[q,Y]of Object.entries(Z.style))if(q.startsWith("@")&&Y&&typeof Y==="object"){for(let H of Object.keys(Y))if(!H.startsWith(":")&&!H.startsWith(".")&&!H.startsWith("&")&&!H.startsWith("["))W.add(H)}if(W.size>0){let q=[];for(let Y of W){let H=Z.style[Y];if(H!==null&&H!==void 0&&typeof H!=="object")q.push(`${o1(Y)}: ${H}`)}if(q.length>0)X.push(`${U} { ${q.join("; ")} }`)}for(let[q,Y]of Object.entries(Z.style))if(q.startsWith("@")){let H=q.startsWith("@--")?J[q.slice(1)]??q.slice(1):q.slice(1);X.push(`@media ${H} { ${U} { ${h0(Y)} } }`);for(let[K,$]of Object.entries(Y)){if(!(K.startsWith(":")||K.startsWith(".")||K.startsWith("&")||K.startsWith("[")))continue;let B=K.startsWith("&")?K.replace("&",U):`${U}${K}`;X.push(`@media ${H} { ${B} { ${h0($)} } }`)}}else if(q.startsWith(":")||q.startsWith(".")||q.startsWith("&")||q.startsWith("[")){let H=q.startsWith("&")?q.replace("&",U):`${U}${q}`;X.push(`${H} { ${h0(Y)} }`)}}if(Array.isArray(Z.children))Z.children.forEach((W)=>{tZ(W,X,J,U,Q)})}function U1(Z){return String(Z).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function B5(Z){return Z.split("-").map((X)=>X.charAt(0).toUpperCase()+X.slice(1)).join("")}function eZ(Z){let X=new Map;return ZX(Z,X),[...X.values()]}function ZX(Z,X){if(!Z||typeof Z!=="object")return;if(Z.state)for(let[J,G]of Object.entries(Z.state)){let Q=G;if(Q&&typeof Q==="object"&&Q.timing==="server"&&Q.$src&&Q.$export&&!Q.$prototype)X.set(Q.$export,{key:J,exportName:Q.$export,src:Q.$src})}if(Array.isArray(Z.children))Z.children.forEach((J)=>ZX(J,X))}function P0(Z){if(Z.startsWith("\\\\?\\"))return Z;return Z.split("\\").join("/")}var kY=/^win/.test(globalThis.process?globalThis.process.platform:""),w7=()=>kY;var yY=/\//g,vY=/^(\w{2,}):\/\//i,hY=/~1/g,mY=/~0/g,uY=/^[a-zA-Z]:[\\/]/,pY=[[/\?/g,"%3F"],[/#/g,"%23"]],M8=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],b4=(Z)=>new URL(Z);function O1(Z,X){let J=new URL(P0(Z),"https://aaa.nonexistanturl.com"),G=new URL(P0(X),J),Q=X.match(/(\s*)$/)?.[1]||"";if(G.hostname==="aaa.nonexistanturl.com"){let{pathname:W,search:q,hash:Y}=G;return W+q+decodeURIComponent(Y)+Q}let U=G.toString()+Q;if(U.includes("#")){let[W,q]=U.split("#",2);return W+"#"+decodeURIComponent(q||"")}return U}function Q4(){if(typeof window<"u"&&window.location&&window.location.href){let Z=window.location.href;if(!Z||!Z.startsWith("http"))try{return new URL(Z),Z}catch{return"/"}return Z}if(typeof process<"u"&&process.cwd){let Z=process.cwd(),X=Z.slice(-1);if(X==="/"||X==="\\")return Z;else return Z+"/"}return"/"}function XX(Z){let X=vY.exec(Z||"");if(X)return X[1].toLowerCase();return}function JX(Z){let X=Z.lastIndexOf(".");if(X>=0)return fY(Z.substring(X).toLowerCase());return""}function fY(Z){let X=Z.indexOf("?");if(X>=0)Z=Z.substring(0,X);return Z}function Y0(Z){if(!Z)return"#";let X=Z.indexOf("#");if(X>=0)return Z.substring(X);return"#"}function V1(Z){if(!Z)return"";let X=Z.indexOf("#");if(X>=0)Z=Z.substring(0,X);return Z}function GX(Z){let X=XX(Z);if(X==="http"||X==="https")return!0;else if(X===void 0)return typeof window<"u";else return!1}function D8(Z){if(!Z||typeof Z!=="string")return!0;let X=Z.trim().toLowerCase();if(!X)return!0;if(X.startsWith("javascript:")||X.startsWith("vbscript:")||X.startsWith("data:"))return!0;if(X.startsWith("file:"))return!0;if(typeof window<"u"&&window.location&&window.location.href)return!1;let J=["localhost","127.0.0.1","::1","10.","172.16.","172.17.","172.18.","172.19.","172.20.","172.21.","172.22.","172.23.","172.24.","172.25.","172.26.","172.27.","172.28.","172.29.","172.30.","172.31.","192.168.","169.254.",".local",".internal",".intranet",".corp",".home",".lan"];try{let G=new URL(X.startsWith("//")?"http:"+X:X),Q=G.hostname.toLowerCase();for(let W of J)if(Q===W||Q.startsWith(W)||Q.endsWith(W))return!0;if(lY(Q))return!0;let U=G.port;if(U&&iY(parseInt(U)))return!0}catch{if(X.startsWith("/")&&!X.startsWith("//"))return!1;for(let G of J)if(X.includes(G))return!0}return!1}function lY(Z){let X=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,J=Z.match(X);if(!J)return!1;let[,G,Q,U,W]=J.map(Number);if(G>255||Q>255||U>255||W>255)return!1;return G===10||G===127||G===172&&Q>=16&&Q<=31||G===192&&Q===168||G===169&&Q===254}function iY(Z){return[22,23,25,53,135,139,445,993,995,1433,1521,3306,3389,5432,5900,6379,8080,8443,9200,27017].includes(Z)}function F5(Z){if(typeof window<"u"||typeof process<"u"&&!0)return!1;let X=XX(Z);return X===void 0||X==="file"}function QX(Z){if(w7()){let X=Q4(),J=Z.toUpperCase(),Q=P0(X).toUpperCase(),U=J.includes(Q),W=J.includes(Q),q=uY.test(Z)||Z.startsWith("http://")||Z.startsWith("https://")||Z.startsWith("file://");if(!(U||W||q)&&!X.startsWith("http"))Z=((H,K)=>{if(H.endsWith("/")||H.endsWith("\\"))return H+K;else return H+"/"+K})(X,Z);Z=P0(Z)}Z=encodeURI(Z);for(let X of pY)Z=Z.replace(X[0],X[1]);return Z}function x4(Z,X){Z=Z.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"),Z=decodeURI(Z);for(let G=0;G<M8.length;G+=2)Z=Z.replace(M8[G],M8[G+1]);let J=Z.toLowerCase().startsWith("file://");if(J){if(Z=Z.replace(/^file:\/\//,"").replace(/^\//,""),w7()&&Z[1]==="/")Z=`${Z[0]}:${Z.substring(1)}`;if(X)Z="file:///"+Z;else J=!1,Z=w7()?Z:"/"+Z}if(w7()&&!J){if(Z=Z.replace(yY,"\\"),Z.match(/^[a-z]:\\/i))Z=Z[0].toUpperCase()+Z.substring(1)}return Z}function M5(Z){if(Z.length<=1||Z[0]!=="#"||Z[1]!=="/")return[];return Z.slice(2).split("/").map((X)=>{return X.replace(hY,"/").replace(mY,"~")})}var dY=["function","symbol","undefined"],rY=["constructor","prototype","__proto__"],cY=Object.getPrototypeOf({});function UX(){let Z={},X=this;for(let J of nY(X))if(typeof J==="string"){let G=X[J],Q=typeof G;if(!dY.includes(Q))Z[J]=G}return Z}function nY(Z,X=[]){let J=[];while(Z&&Z!==cY)J=J.concat(Object.getOwnPropertyNames(Z),Object.getOwnPropertySymbols(Z)),Z=Object.getPrototypeOf(Z);let G=new Set(J);for(let Q of X.concat(rY))G.delete(Q);return G}class t1 extends Error{name;message;source;path;code;constructor(Z,X){super();this.code="EUNKNOWN",this.name="JSONParserError",this.message=Z,this.source=X,this.path=null}toJSON=UX.bind(this);get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}}class g4 extends Error{files;constructor(Z){super();this.files=Z,this.name="JSONParserErrorGroup",this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${x4(Z.$refs._root$Ref.path)}'`}toJSON=UX.bind(this);static getParserErrors(Z){let X=[];for(let J of Object.values(Z.$refs._$refs))if(J.errors)X.push(...J.errors);return X}get errors(){return g4.getParserErrors(this.files)}}class e1 extends t1{code="EPARSER";name="ParserError";constructor(Z,X){super(`Error parsing ${X}: ${Z}`,X)}}class D5 extends t1{code="EUNMATCHEDPARSER";name="UnmatchedParserError";constructor(Z){super(`Could not find parser for "${Z}"`,Z)}}class X0 extends t1{code="ERESOLVER";name="ResolverError";ioErrorCode;constructor(Z,X){super(Z.message||`Error reading file "${X}"`,X);if("code"in Z)this.ioErrorCode=String(Z.code)}}class _5 extends t1{code="EUNMATCHEDRESOLVER";name="UnmatchedResolverError";constructor(Z){super(`Could not find resolver for "${Z}"`,Z)}}class R5 extends t1{code="EMISSINGPOINTER";name="MissingPointerError";targetToken;targetRef;targetFound;parentPath;constructor(Z,X,J,G,Q){super(`Missing $ref pointer "${Y0(X)}". Token "${Z}" does not exist.`,V1(X));this.targetToken=Z,this.targetRef=J,this.targetFound=G,this.parentPath=Q}}class _8 extends t1{code="ETIMEOUT";name="TimeoutError";constructor(Z){super(`Dereferencing timeout reached: ${Z}ms`)}}class k4 extends t1{code="EUNMATCHEDRESOLVER";name="InvalidPointerError";constructor(Z,X){super(`Invalid $ref pointer "${Z}". Pointers must begin with "#/"`,V1(X))}}function K0(Z){return Z instanceof t1||Z instanceof g4}function R8(Z){if(Z.path===null)Z.path=[];return Z}function g1(Z,X){let J=aY(X);return J?O1(Z,J):Z}function O5(Z){if(!Z||typeof Z!=="object"||ArrayBuffer.isView(Z))return!1;let X=Z.$schema;if(typeof X==="string"&&(X.includes("draft/2019-09/")||X.includes("draft/2020-12/")||X.includes("oas/3.1/")))return!0;let J=Z.openapi;return typeof J==="string"&&/^3\.1(?:\.|$)/.test(J)}function N5(Z,X,J,G,Q=!1){if(!Q)return;let U=new Set,W=(q,Y)=>{if(!q||typeof q!=="object"||ArrayBuffer.isView(q)||U.has(q))return;U.add(q);let H=g1(Y,q);if(H!==Y)Z._addAlias(H,q,G,Q);for(let K of Object.keys(q))W(q[K],H)};W(J,X)}function aY(Z){if(Z&&typeof Z==="object"&&"$id"in Z&&typeof Z.$id==="string"&&Z.$id.length>0)return Z.$id;return}var I5=Symbol("null"),sY=/\//g,oY=/~/g,tY=/~1/g,eY=/~0/g;class U4{$ref;path;originalPath;scopeBase;value;circular;indirections;constructor(Z,X,J){this.$ref=Z,this.path=X,this.originalPath=J||X,this.scopeBase=Z.path||V1(X),this.value=void 0,this.circular=!1,this.indirections=0}resolve(Z,X,J){let G=U4.parse(this.path,this.originalPath),Q=[];if(this.value=qX(Z),this.$ref.dynamicIdScope&&!YX(this.$ref))this.scopeBase=g1(this.scopeBase,this.value);for(let W=0;W<G.length;W++){let q=this.circular,Y=$1.isExtended$Ref(this.value);if(L5(this,X,J))this.path=U4.join(this.path,G.slice(W));else if(!q&&this.circular&&Y)this.circular=!1;let H=G[W];if(this.value[H]===void 0||this.value[H]===null&&W===G.length-1){let K=!1;for(let _=G.length-1;_>W;_--){let D=G.slice(W,_+1).join("/");if(this.value[D]!==void 0){this.value=this.value[D],W=_,K=!0;break}}if(K)continue;if(H in this.value&&this.value[H]===null){this.value=I5;continue}this.value=null;let $=this.$ref.path||"",B=this.path.replace($,""),V=U4.join("",Q),M=J?.replace($,"");throw new R5(H,decodeURI(this.originalPath),B,V,M)}else this.value=this.value[H];if(Q.push(H),this.$ref.dynamicIdScope)this.scopeBase=g1(this.scopeBase,this.value)}let U=this.$ref.dynamicIdScope?this.scopeBase:this.path;if(!this.value||this.value.$ref&&O1(U,this.value.$ref)!==J)L5(this,X,J);return this}set(Z,X,J){let G=U4.parse(this.path),Q;if(G.length===0)return this.value=X,X;if(this.value=qX(Z),this.$ref.dynamicIdScope&&!YX(this.$ref))this.scopeBase=g1(this.scopeBase,this.value);for(let U=0;U<G.length-1;U++){if(L5(this,J),Q=G[U],this.value&&this.value[Q]!==void 0)this.value=this.value[Q];else this.value=WX(this,Q,{});if(this.$ref.dynamicIdScope)this.scopeBase=g1(this.scopeBase,this.value)}return L5(this,J),Q=G[G.length-1],WX(this,Q,X),Z}static parse(Z,X){let J=Y0(Z).substring(1);if(!J)return[];let G=J.split("/");for(let Q=0;Q<G.length;Q++)G[Q]=G[Q].replace(tY,"/").replace(eY,"~");if(G[0]!=="")throw new k4(J,X===void 0?Z:X);return G.slice(1)}static join(Z,X){if(Z.indexOf("#")===-1)Z+="#";X=Array.isArray(X)?X:[X];for(let J=0;J<X.length;J++){let G=X[J];Z+="/"+G.replace(oY,"~0").replace(sY,"~1")}return Z}}function L5(Z,X,J){if($1.isAllowed$Ref(Z.value,X)){let G=Z.$ref.dynamicIdScope?Z.scopeBase:Z.path,Q=O1(G,Z.value.$ref);if(Q===Z.path&&!ZH(J))Z.circular=!0;else{let U=Z.$ref.$refs._resolve(Q,Z.path,X);if(U===null)return!1;if(Z.indirections+=U.indirections+1,$1.isExtended$Ref(Z.value))return Z.value=$1.dereference(Z.value,U.value,X),!1;else Z.$ref=U.$ref,Z.path=U.path,Z.value=U.value,Z.scopeBase=Z.$ref.path;return!0}}return}var m1=U4;function WX(Z,X,J){if(Z.value&&typeof Z.value==="object")if(X==="-"&&Array.isArray(Z.value))Z.value.push(J);else Z.value[X]=J;else throw new t1(`Error assigning $ref pointer "${Z.path}".
174
+ Cannot set "${X}" of a non-object.`);return J}function qX(Z){if(K0(Z))throw Z;return Z}function ZH(Z){return typeof Z=="string"&&U4.parse(Z).length==0}function YX(Z){return Boolean(Z.path&&Z.path in Z.$refs._aliases)}class T7{path;value;$refs;pathType;dynamicIdScope=!1;errors=[];constructor(Z){this.$refs=Z}addError(Z){if(this.errors===void 0)this.errors=[];let X=this.errors.map(({footprint:J})=>J);if("errors"in Z&&Array.isArray(Z.errors))this.errors.push(...Z.errors.map(R8).filter(({footprint:J})=>!X.includes(J)));else if(!("footprint"in Z)||!X.includes(Z.footprint))this.errors.push(R8(Z))}exists(Z,X){try{return this.resolve(Z,X),!0}catch{return!1}}get(Z,X){return this.resolve(Z,X)?.value}resolve(Z,X,J,G){let Q=new m1(this,Z,J);try{let U=Q.resolve(this.value,X,G);if(U.value===I5)U.value=null;return U}catch(U){if(!X||!X.continueOnError||!K0(U))throw U;if(U.path===null)U.path=M5(Y0(G));if(U instanceof k4)U.source=decodeURI(V1(G));return this.addError(U),null}}set(Z,X){let J=new m1(this,Z);if(this.value=J.set(this.value,X),this.value===I5)this.value=null}static is$Ref(Z){return Boolean(Z)&&typeof Z==="object"&&Z!==null&&"$ref"in Z&&typeof Z.$ref==="string"&&Z.$ref.length>0}static isExternal$Ref(Z){return T7.is$Ref(Z)&&Z.$ref[0]!=="#"}static isAllowed$Ref(Z,X){if(this.is$Ref(Z)){if(Z.$ref.substring(0,2)==="#/"||Z.$ref==="#")return!0;else if(Z.$ref[0]!=="#"&&(!X||X.resolve?.external))return!0}return}static isExtended$Ref(Z){return T7.is$Ref(Z)&&Object.keys(Z).length>1}static dereference(Z,X,J){if(X&&typeof X==="object"&&T7.isExtended$Ref(Z)){let G={};for(let U of Object.keys(Z))if(U!=="$ref")G[U]=Z[U];let Q=J?.dereference?.mergeKeys??!0;for(let U of Object.keys(X)){let W=U;if(!(W in G))G[W]=X[W];else if(Q&&typeof G[W]==="object"&&G[W]!==null&&typeof X[W]==="object"&&X[W]!==null)G[W]=HX(X[W],G[W])}return G}else return X}}function HX(Z,X){if(typeof Z!=="object"||Z===null)return X;if(typeof X!=="object"||X===null)return X;let J=Array.isArray(Z)?[...Z]:{...Z};for(let G of Object.keys(X))if(Array.isArray(X[G]))J[G]=[...X[G]];else if(typeof X[G]==="object"&&X[G]!==null)J[G]=HX(Z[G],X[G]);else J[G]=X[G];return J}var $1=T7;class C7{circular;paths(...Z){return KX(this._$refs,Z.flat()).map((J)=>{return P0(J.decoded)})}values(...Z){let X=this._$refs;return KX(X,Z.flat()).reduce((G,Q)=>{return G[P0(Q.decoded)]=X[Q.encoded].value,G},{})}exists(Z,X){try{return this._resolve(Z,"",X),!0}catch{return!1}}get(Z,X){return this._resolve(Z,"",X).value}set(Z,X){let J=O1(this._root$Ref.path,Z),G=this._getRef(J);if(!G)throw Error(`Error resolving $ref pointer "${Z}".
175
175
  "${V1(J)}" not found.`);G.set(J,X)}_get$Ref(Z){return Z=O1(this._root$Ref.path,Z),this._getRef(Z)}_add(Z){let X=V1(Z),J=new $1(this);return J.path=X,this._$refs[X]=J,this._root$Ref=this._root$Ref||J,J}_addAlias(Z,X,J,G=!1){let Q=V1(Z);if(!Q||this._$refs[Q]||this._aliases[Q])return this._$refs[Q]||this._aliases[Q];let U=new $1(this);return U.path=Q,U.pathType=J,U.value=X,U.dynamicIdScope=G,this._aliases[Q]=U,U}_resolve(Z,X,J){let G=O1(this._root$Ref.path,Z),Q=this._getRef(G);if(!Q)throw Error(`Error resolving $ref pointer "${Z}".
176
- "${V1(G)}" not found.`);return Q.resolve(G,J,Z,X)}_$refs={};_aliases={};_root$Ref;constructor(){this.circular=!1,this._$refs={},this._aliases={},this._root$Ref=null}toJSON=this.values;_getRef(Z){let X=V1(Z);return this._$refs[X]||this._aliases[X]}}function KX(Z,X){let J=Object.keys(Z);if(X=Array.isArray(X[0])?X[0]:Array.prototype.slice.call(X),X.length>0&&X[0])J=J.filter((G)=>{return X.includes(Z[G].pathType)});return J.map((G)=>{return{encoded:G,decoded:Z[G].pathType==="file"?x4(G,!0):G}})}function O8(Z){return Object.keys(Z||{}).filter((X)=>{return typeof Z[X]==="object"}).map((X)=>{return Z[X].name=X,Z[X]})}function N8(Z,X,J,G,Q){return Z.filter((U)=>{return!!$X(U,X,J,G,Q)})}function L8(Z){for(let X of Z)X.order=X.order||Number.MAX_SAFE_INTEGER;return Z.sort((X,J)=>{return X.order-J.order})}async function I8(Z,X,J,G){let Q,U,W=0;return new Promise((q,Y)=>{H();function H(){if(Q=Z[W++],!Q)return Y(U);try{let V=$X(Q,X,J,K,G);if(V&&typeof V.then==="function")V.then($,B);else if(V!==void 0)$(V);else if(W===Z.length)throw Error("No promise has been returned or callback has been called.")}catch(V){B(V)}}function K(V,M){if(V)B(V);else $(M)}function $(V){q({plugin:Q,result:V})}function B(V){U={plugin:Q,error:V},H()}})}function $X(Z,X,J,G,Q){let U=Z[X];if(typeof U==="function")return U.apply(Z,[J,G,Q]);if(!G){if(U instanceof RegExp)return U.test(J.url);else if(typeof U==="string")return U===J.extension;else if(Array.isArray(U))return U.indexOf(J.extension)!==-1}return U}async function ZH(Z,X,J){let G=typeof Z==="string"?Z:Z.url,Q=typeof Z==="string"?void 0:Z.baseUrl,U=typeof Z==="string"?void 0:Z.reference,W=G.indexOf("#"),q="";if(W>=0)q=G.substring(W),G=G.substring(0,W);if(U){let K=U.indexOf("#");if(K>=0)U=U.substring(0,K)}let Y=X._add(G),H={url:G,hash:q,extension:JX(G),...U!==void 0?{reference:U}:{},...Q!==void 0?{baseUrl:Q}:{}};try{let K=await XH(H,J,X);Y.pathType=K.plugin.name,H.data=K.result;let $=await JH(H,J,X);return Y.value=$.result,Y.dynamicIdScope=O5(Y.value),N5(X,Y.path,Y.value,Y.pathType,Y.dynamicIdScope),$.result}catch(K){if(K0(K))Y.value=K;throw K}}async function XH(Z,X,J){let G=O8(X.resolve);G=N8(G,"canRead",Z,void 0,J),L8(G);try{return await I8(G,"read",Z,J)}catch(Q){if(!Q&&X.continueOnError)throw new _5(Z.url);else if(!Q||!("error"in Q))throw SyntaxError(`Unable to resolve $ref pointer "${Z.url}"`,{cause:Q});else if(Q.error instanceof X0)throw Q.error;else throw new X0(Q,Z.url)}}async function JH(Z,X,J){let G=O8(X.parse),Q=N8(G,"canParse",Z),U=Q.length>0?Q:G;L8(U);try{let W=await I8(U,"parse",Z,J);if(!W.plugin.allowEmpty&&GH(W.result))throw SyntaxError(`Error parsing "${Z.url}" as ${W.plugin.name}.
177
- Parsed value is empty`);else return W}catch(W){if(!W&&X.continueOnError)throw new D5(Z.url);else if(W&&W.message&&W.message.startsWith("Error parsing"))throw W;else if(!W||!("error"in W))throw SyntaxError(`Unable to parse ${Z.url}`,{cause:W});else if(W.error instanceof e1)throw W.error;else throw new e1(W.error.message,Z.url)}}function GH(Z){return Z===void 0||typeof Z==="object"&&Object.keys(Z).length===0||typeof Z==="string"&&Z.trim().length===0||Buffer.isBuffer(Z)&&Z.length===0}var A5=ZH;var zX={order:100,allowEmpty:!0,canParse:".json",allowBOM:!0,async parse(Z){let X=Z.data;if(Buffer.isBuffer(X))X=X.toString();if(typeof X==="string")if(X.trim().length===0)return;else try{return JSON.parse(X)}catch(J){if(this.allowBOM)try{let G=X.indexOf("{");return X=X.slice(G),JSON.parse(X)}catch(G){throw new e1(G.message,Z.url)}throw new e1(J.message,Z.url)}else return X}};/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function CX(Z){return typeof Z>"u"||Z===null}function QH(Z){return typeof Z==="object"&&Z!==null}function UH(Z){if(Array.isArray(Z))return Z;else if(CX(Z))return[];return[Z]}function WH(Z,X){var J,G,Q,U;if(X){U=Object.keys(X);for(J=0,G=U.length;J<G;J+=1)Q=U[J],Z[Q]=X[Q]}return Z}function qH(Z,X){var J="",G;for(G=0;G<X;G+=1)J+=Z;return J}function YH(Z){return Z===0&&Number.NEGATIVE_INFINITY===1/Z}var HH=CX,KH=QH,$H=UH,zH=qH,VH=YH,BH=WH,N1={isNothing:HH,isObject:KH,toArray:$H,repeat:zH,isNegativeZero:VH,extend:BH};function jX(Z,X){var J="",G=Z.reason||"(unknown reason)";if(!Z.mark)return G;if(Z.mark.name)J+='in "'+Z.mark.name+'" ';if(J+="("+(Z.mark.line+1)+":"+(Z.mark.column+1)+")",!X&&Z.mark.snippet)J+=`
176
+ "${V1(G)}" not found.`);return Q.resolve(G,J,Z,X)}_$refs={};_aliases={};_root$Ref;constructor(){this.circular=!1,this._$refs={},this._aliases={},this._root$Ref=null}toJSON=this.values;_getRef(Z){let X=V1(Z);return this._$refs[X]||this._aliases[X]}}function KX(Z,X){let J=Object.keys(Z);if(X=Array.isArray(X[0])?X[0]:Array.prototype.slice.call(X),X.length>0&&X[0])J=J.filter((G)=>{return X.includes(Z[G].pathType)});return J.map((G)=>{return{encoded:G,decoded:Z[G].pathType==="file"?x4(G,!0):G}})}function O8(Z){return Object.keys(Z||{}).filter((X)=>{return typeof Z[X]==="object"}).map((X)=>{return Z[X].name=X,Z[X]})}function N8(Z,X,J,G,Q){return Z.filter((U)=>{return!!$X(U,X,J,G,Q)})}function L8(Z){for(let X of Z)X.order=X.order||Number.MAX_SAFE_INTEGER;return Z.sort((X,J)=>{return X.order-J.order})}async function I8(Z,X,J,G){let Q,U,W=0;return new Promise((q,Y)=>{H();function H(){if(Q=Z[W++],!Q)return Y(U);try{let V=$X(Q,X,J,K,G);if(V&&typeof V.then==="function")V.then($,B);else if(V!==void 0)$(V);else if(W===Z.length)throw Error("No promise has been returned or callback has been called.")}catch(V){B(V)}}function K(V,M){if(V)B(V);else $(M)}function $(V){q({plugin:Q,result:V})}function B(V){U={plugin:Q,error:V},H()}})}function $X(Z,X,J,G,Q){let U=Z[X];if(typeof U==="function")return U.apply(Z,[J,G,Q]);if(!G){if(U instanceof RegExp)return U.test(J.url);else if(typeof U==="string")return U===J.extension;else if(Array.isArray(U))return U.indexOf(J.extension)!==-1}return U}async function XH(Z,X,J){let G=typeof Z==="string"?Z:Z.url,Q=typeof Z==="string"?void 0:Z.baseUrl,U=typeof Z==="string"?void 0:Z.reference,W=G.indexOf("#"),q="";if(W>=0)q=G.substring(W),G=G.substring(0,W);if(U){let K=U.indexOf("#");if(K>=0)U=U.substring(0,K)}let Y=X._add(G),H={url:G,hash:q,extension:JX(G),...U!==void 0?{reference:U}:{},...Q!==void 0?{baseUrl:Q}:{}};try{let K=await JH(H,J,X);Y.pathType=K.plugin.name,H.data=K.result;let $=await GH(H,J,X);return Y.value=$.result,Y.dynamicIdScope=O5(Y.value),N5(X,Y.path,Y.value,Y.pathType,Y.dynamicIdScope),$.result}catch(K){if(K0(K))Y.value=K;throw K}}async function JH(Z,X,J){let G=O8(X.resolve);G=N8(G,"canRead",Z,void 0,J),L8(G);try{return await I8(G,"read",Z,J)}catch(Q){if(!Q&&X.continueOnError)throw new _5(Z.url);else if(!Q||!("error"in Q))throw SyntaxError(`Unable to resolve $ref pointer "${Z.url}"`,{cause:Q});else if(Q.error instanceof X0)throw Q.error;else throw new X0(Q,Z.url)}}async function GH(Z,X,J){let G=O8(X.parse),Q=N8(G,"canParse",Z),U=Q.length>0?Q:G;L8(U);try{let W=await I8(U,"parse",Z,J);if(!W.plugin.allowEmpty&&QH(W.result))throw SyntaxError(`Error parsing "${Z.url}" as ${W.plugin.name}.
177
+ Parsed value is empty`);else return W}catch(W){if(!W&&X.continueOnError)throw new D5(Z.url);else if(W&&W.message&&W.message.startsWith("Error parsing"))throw W;else if(!W||!("error"in W))throw SyntaxError(`Unable to parse ${Z.url}`,{cause:W});else if(W.error instanceof e1)throw W.error;else throw new e1(W.error.message,Z.url)}}function QH(Z){return Z===void 0||typeof Z==="object"&&Object.keys(Z).length===0||typeof Z==="string"&&Z.trim().length===0||Buffer.isBuffer(Z)&&Z.length===0}var A5=XH;var zX={order:100,allowEmpty:!0,canParse:".json",allowBOM:!0,async parse(Z){let X=Z.data;if(Buffer.isBuffer(X))X=X.toString();if(typeof X==="string")if(X.trim().length===0)return;else try{return JSON.parse(X)}catch(J){if(this.allowBOM)try{let G=X.indexOf("{");return X=X.slice(G),JSON.parse(X)}catch(G){throw new e1(G.message,Z.url)}throw new e1(J.message,Z.url)}else return X}};/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function CX(Z){return typeof Z>"u"||Z===null}function UH(Z){return typeof Z==="object"&&Z!==null}function WH(Z){if(Array.isArray(Z))return Z;else if(CX(Z))return[];return[Z]}function qH(Z,X){var J,G,Q,U;if(X){U=Object.keys(X);for(J=0,G=U.length;J<G;J+=1)Q=U[J],Z[Q]=X[Q]}return Z}function YH(Z,X){var J="",G;for(G=0;G<X;G+=1)J+=Z;return J}function HH(Z){return Z===0&&Number.NEGATIVE_INFINITY===1/Z}var KH=CX,$H=UH,zH=WH,VH=YH,BH=HH,FH=qH,N1={isNothing:KH,isObject:$H,toArray:zH,repeat:VH,isNegativeZero:BH,extend:FH};function jX(Z,X){var J="",G=Z.reason||"(unknown reason)";if(!Z.mark)return G;if(Z.mark.name)J+='in "'+Z.mark.name+'" ';if(J+="("+(Z.mark.line+1)+":"+(Z.mark.column+1)+")",!X&&Z.mark.snippet)J+=`
178
178
 
179
- `+Z.mark.snippet;return G+" "+J}function E7(Z,X){if(Error.call(this),this.name="YAMLException",this.reason=Z,this.mark=X,this.message=jX(this,!1),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}E7.prototype=Object.create(Error.prototype);E7.prototype.constructor=E7;E7.prototype.toString=function(X){return this.name+": "+jX(this,X)};var k1=E7;function A8(Z,X,J,G,Q){var U="",W="",q=Math.floor(Q/2)-1;if(G-X>q)U=" ... ",X=G-q+U.length;if(J-G>q)W=" ...",J=G+q-W.length;return{str:U+Z.slice(X,J).replace(/\t/g,"→")+W,pos:G-X+U.length}}function P8(Z,X){return N1.repeat(" ",X-Z.length)+Z}function FH(Z,X){if(X=Object.create(X||null),!Z.buffer)return null;if(!X.maxLength)X.maxLength=79;if(typeof X.indent!=="number")X.indent=1;if(typeof X.linesBefore!=="number")X.linesBefore=3;if(typeof X.linesAfter!=="number")X.linesAfter=2;var J=/\r?\n|\r|\0/g,G=[0],Q=[],U,W=-1;while(U=J.exec(Z.buffer))if(Q.push(U.index),G.push(U.index+U[0].length),Z.position<=U.index&&W<0)W=G.length-2;if(W<0)W=G.length-1;var q="",Y,H,K=Math.min(Z.line+X.linesAfter,Q.length).toString().length,$=X.maxLength-(X.indent+K+3);for(Y=1;Y<=X.linesBefore;Y++){if(W-Y<0)break;H=A8(Z.buffer,G[W-Y],Q[W-Y],Z.position-(G[W]-G[W-Y]),$),q=N1.repeat(" ",X.indent)+P8((Z.line-Y+1).toString(),K)+" | "+H.str+`
179
+ `+Z.mark.snippet;return G+" "+J}function E7(Z,X){if(Error.call(this),this.name="YAMLException",this.reason=Z,this.mark=X,this.message=jX(this,!1),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}E7.prototype=Object.create(Error.prototype);E7.prototype.constructor=E7;E7.prototype.toString=function(X){return this.name+": "+jX(this,X)};var k1=E7;function A8(Z,X,J,G,Q){var U="",W="",q=Math.floor(Q/2)-1;if(G-X>q)U=" ... ",X=G-q+U.length;if(J-G>q)W=" ...",J=G+q-W.length;return{str:U+Z.slice(X,J).replace(/\t/g,"→")+W,pos:G-X+U.length}}function P8(Z,X){return N1.repeat(" ",X-Z.length)+Z}function MH(Z,X){if(X=Object.create(X||null),!Z.buffer)return null;if(!X.maxLength)X.maxLength=79;if(typeof X.indent!=="number")X.indent=1;if(typeof X.linesBefore!=="number")X.linesBefore=3;if(typeof X.linesAfter!=="number")X.linesAfter=2;var J=/\r?\n|\r|\0/g,G=[0],Q=[],U,W=-1;while(U=J.exec(Z.buffer))if(Q.push(U.index),G.push(U.index+U[0].length),Z.position<=U.index&&W<0)W=G.length-2;if(W<0)W=G.length-1;var q="",Y,H,K=Math.min(Z.line+X.linesAfter,Q.length).toString().length,$=X.maxLength-(X.indent+K+3);for(Y=1;Y<=X.linesBefore;Y++){if(W-Y<0)break;H=A8(Z.buffer,G[W-Y],Q[W-Y],Z.position-(G[W]-G[W-Y]),$),q=N1.repeat(" ",X.indent)+P8((Z.line-Y+1).toString(),K)+" | "+H.str+`
180
180
  `+q}H=A8(Z.buffer,G[W],Q[W],Z.position,$),q+=N1.repeat(" ",X.indent)+P8((Z.line+1).toString(),K)+" | "+H.str+`
181
181
  `,q+=N1.repeat("-",X.indent+K+3+H.pos)+`^
182
182
  `;for(Y=1;Y<=X.linesAfter;Y++){if(W+Y>=Q.length)break;H=A8(Z.buffer,G[W+Y],Q[W+Y],Z.position-(G[W]-G[W+Y]),$),q+=N1.repeat(" ",X.indent)+P8((Z.line+Y+1).toString(),K)+" | "+H.str+`
183
- `}return q.replace(/\n$/,"")}var MH=FH,DH=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],_H=["scalar","sequence","mapping"];function RH(Z){var X={};if(Z!==null)Object.keys(Z).forEach(function(J){Z[J].forEach(function(G){X[String(G)]=J})});return X}function OH(Z,X){if(X=X||{},Object.keys(X).forEach(function(J){if(DH.indexOf(J)===-1)throw new k1('Unknown option "'+J+'" is met in definition of "'+Z+'" YAML type.')}),this.options=X,this.tag=Z,this.kind=X.kind||null,this.resolve=X.resolve||function(){return!0},this.construct=X.construct||function(J){return J},this.instanceOf=X.instanceOf||null,this.predicate=X.predicate||null,this.represent=X.represent||null,this.representName=X.representName||null,this.defaultStyle=X.defaultStyle||null,this.multi=X.multi||!1,this.styleAliases=RH(X.styleAliases||null),_H.indexOf(this.kind)===-1)throw new k1('Unknown kind "'+this.kind+'" is specified for "'+Z+'" YAML type.')}var w1=OH;function VX(Z,X){var J=[];return Z[X].forEach(function(G){var Q=J.length;J.forEach(function(U,W){if(U.tag===G.tag&&U.kind===G.kind&&U.multi===G.multi)Q=W}),J[Q]=G}),J}function NH(){var Z={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},X,J;function G(Q){if(Q.multi)Z.multi[Q.kind].push(Q),Z.multi.fallback.push(Q);else Z[Q.kind][Q.tag]=Z.fallback[Q.tag]=Q}for(X=0,J=arguments.length;X<J;X+=1)arguments[X].forEach(G);return Z}function T8(Z){return this.extend(Z)}T8.prototype.extend=function(X){var J=[],G=[];if(X instanceof w1)G.push(X);else if(Array.isArray(X))G=G.concat(X);else if(X&&(Array.isArray(X.implicit)||Array.isArray(X.explicit))){if(X.implicit)J=J.concat(X.implicit);if(X.explicit)G=G.concat(X.explicit)}else throw new k1("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");J.forEach(function(U){if(!(U instanceof w1))throw new k1("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(U.loadKind&&U.loadKind!=="scalar")throw new k1("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(U.multi)throw new k1("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),G.forEach(function(U){if(!(U instanceof w1))throw new k1("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var Q=Object.create(T8.prototype);return Q.implicit=(this.implicit||[]).concat(J),Q.explicit=(this.explicit||[]).concat(G),Q.compiledImplicit=VX(Q,"implicit"),Q.compiledExplicit=VX(Q,"explicit"),Q.compiledTypeMap=NH(Q.compiledImplicit,Q.compiledExplicit),Q};var EX=T8,SX=new w1("tag:yaml.org,2002:str",{kind:"scalar",construct:function(Z){return Z!==null?Z:""}}),bX=new w1("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(Z){return Z!==null?Z:[]}}),xX=new w1("tag:yaml.org,2002:map",{kind:"mapping",construct:function(Z){return Z!==null?Z:{}}}),gX=new EX({explicit:[SX,bX,xX]});function LH(Z){if(Z===null)return!0;var X=Z.length;return X===1&&Z==="~"||X===4&&(Z==="null"||Z==="Null"||Z==="NULL")}function IH(){return null}function AH(Z){return Z===null}var kX=new w1("tag:yaml.org,2002:null",{kind:"scalar",resolve:LH,construct:IH,predicate:AH,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function PH(Z){if(Z===null)return!1;var X=Z.length;return X===4&&(Z==="true"||Z==="True"||Z==="TRUE")||X===5&&(Z==="false"||Z==="False"||Z==="FALSE")}function wH(Z){return Z==="true"||Z==="True"||Z==="TRUE"}function TH(Z){return Object.prototype.toString.call(Z)==="[object Boolean]"}var yX=new w1("tag:yaml.org,2002:bool",{kind:"scalar",resolve:PH,construct:wH,predicate:TH,represent:{lowercase:function(Z){return Z?"true":"false"},uppercase:function(Z){return Z?"TRUE":"FALSE"},camelcase:function(Z){return Z?"True":"False"}},defaultStyle:"lowercase"});function CH(Z){return 48<=Z&&Z<=57||65<=Z&&Z<=70||97<=Z&&Z<=102}function jH(Z){return 48<=Z&&Z<=55}function EH(Z){return 48<=Z&&Z<=57}function SH(Z){if(Z===null)return!1;var X=Z.length,J=0,G=!1,Q;if(!X)return!1;if(Q=Z[J],Q==="-"||Q==="+")Q=Z[++J];if(Q==="0"){if(J+1===X)return!0;if(Q=Z[++J],Q==="b"){J++;for(;J<X;J++){if(Q=Z[J],Q==="_")continue;if(Q!=="0"&&Q!=="1")return!1;G=!0}return G&&Q!=="_"}if(Q==="x"){J++;for(;J<X;J++){if(Q=Z[J],Q==="_")continue;if(!CH(Z.charCodeAt(J)))return!1;G=!0}return G&&Q!=="_"}if(Q==="o"){J++;for(;J<X;J++){if(Q=Z[J],Q==="_")continue;if(!jH(Z.charCodeAt(J)))return!1;G=!0}return G&&Q!=="_"}}if(Q==="_")return!1;for(;J<X;J++){if(Q=Z[J],Q==="_")continue;if(!EH(Z.charCodeAt(J)))return!1;G=!0}if(!G||Q==="_")return!1;return!0}function bH(Z){var X=Z,J=1,G;if(X.indexOf("_")!==-1)X=X.replace(/_/g,"");if(G=X[0],G==="-"||G==="+"){if(G==="-")J=-1;X=X.slice(1),G=X[0]}if(X==="0")return 0;if(G==="0"){if(X[1]==="b")return J*parseInt(X.slice(2),2);if(X[1]==="x")return J*parseInt(X.slice(2),16);if(X[1]==="o")return J*parseInt(X.slice(2),8)}return J*parseInt(X,10)}function xH(Z){return Object.prototype.toString.call(Z)==="[object Number]"&&(Z%1===0&&!N1.isNegativeZero(Z))}var vX=new w1("tag:yaml.org,2002:int",{kind:"scalar",resolve:SH,construct:bH,predicate:xH,represent:{binary:function(Z){return Z>=0?"0b"+Z.toString(2):"-0b"+Z.toString(2).slice(1)},octal:function(Z){return Z>=0?"0o"+Z.toString(8):"-0o"+Z.toString(8).slice(1)},decimal:function(Z){return Z.toString(10)},hexadecimal:function(Z){return Z>=0?"0x"+Z.toString(16).toUpperCase():"-0x"+Z.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),gH=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function kH(Z){if(Z===null)return!1;if(!gH.test(Z)||Z[Z.length-1]==="_")return!1;return!0}function yH(Z){var X,J;if(X=Z.replace(/_/g,"").toLowerCase(),J=X[0]==="-"?-1:1,"+-".indexOf(X[0])>=0)X=X.slice(1);if(X===".inf")return J===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(X===".nan")return NaN;return J*parseFloat(X,10)}var vH=/^[-+]?[0-9]+e/;function hH(Z,X){var J;if(isNaN(Z))switch(X){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===Z)switch(X){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===Z)switch(X){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(N1.isNegativeZero(Z))return"-0.0";return J=Z.toString(10),vH.test(J)?J.replace("e",".e"):J}function mH(Z){return Object.prototype.toString.call(Z)==="[object Number]"&&(Z%1!==0||N1.isNegativeZero(Z))}var hX=new w1("tag:yaml.org,2002:float",{kind:"scalar",resolve:kH,construct:yH,predicate:mH,represent:hH,defaultStyle:"lowercase"}),mX=gX.extend({implicit:[kX,yX,vX,hX]}),uX=mX,pX=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),fX=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 uH(Z){if(Z===null)return!1;if(pX.exec(Z)!==null)return!0;if(fX.exec(Z)!==null)return!0;return!1}function pH(Z){var X,J,G,Q,U,W,q,Y=0,H=null,K,$,B;if(X=pX.exec(Z),X===null)X=fX.exec(Z);if(X===null)throw Error("Date resolve error");if(J=+X[1],G=+X[2]-1,Q=+X[3],!X[4])return new Date(Date.UTC(J,G,Q));if(U=+X[4],W=+X[5],q=+X[6],X[7]){Y=X[7].slice(0,3);while(Y.length<3)Y+="0";Y=+Y}if(X[9]){if(K=+X[10],$=+(X[11]||0),H=(K*60+$)*60000,X[9]==="-")H=-H}if(B=new Date(Date.UTC(J,G,Q,U,W,q,Y)),H)B.setTime(B.getTime()-H);return B}function fH(Z){return Z.toISOString()}var lX=new w1("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:uH,construct:pH,instanceOf:Date,represent:fH});function lH(Z){return Z==="<<"||Z===null}var iX=new w1("tag:yaml.org,2002:merge",{kind:"scalar",resolve:lH}),b8=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
184
- \r`;function iH(Z){if(Z===null)return!1;var X,J,G=0,Q=Z.length,U=b8;for(J=0;J<Q;J++){if(X=U.indexOf(Z.charAt(J)),X>64)continue;if(X<0)return!1;G+=6}return G%8===0}function dH(Z){var X,J,G=Z.replace(/[\r\n=]/g,""),Q=G.length,U=b8,W=0,q=[];for(X=0;X<Q;X++){if(X%4===0&&X)q.push(W>>16&255),q.push(W>>8&255),q.push(W&255);W=W<<6|U.indexOf(G.charAt(X))}if(J=Q%4*6,J===0)q.push(W>>16&255),q.push(W>>8&255),q.push(W&255);else if(J===18)q.push(W>>10&255),q.push(W>>2&255);else if(J===12)q.push(W>>4&255);return new Uint8Array(q)}function rH(Z){var X="",J=0,G,Q,U=Z.length,W=b8;for(G=0;G<U;G++){if(G%3===0&&G)X+=W[J>>18&63],X+=W[J>>12&63],X+=W[J>>6&63],X+=W[J&63];J=(J<<8)+Z[G]}if(Q=U%3,Q===0)X+=W[J>>18&63],X+=W[J>>12&63],X+=W[J>>6&63],X+=W[J&63];else if(Q===2)X+=W[J>>10&63],X+=W[J>>4&63],X+=W[J<<2&63],X+=W[64];else if(Q===1)X+=W[J>>2&63],X+=W[J<<4&63],X+=W[64],X+=W[64];return X}function cH(Z){return Object.prototype.toString.call(Z)==="[object Uint8Array]"}var dX=new w1("tag:yaml.org,2002:binary",{kind:"scalar",resolve:iH,construct:dH,predicate:cH,represent:rH}),nH=Object.prototype.hasOwnProperty,aH=Object.prototype.toString;function sH(Z){if(Z===null)return!0;var X=[],J,G,Q,U,W,q=Z;for(J=0,G=q.length;J<G;J+=1){if(Q=q[J],W=!1,aH.call(Q)!=="[object Object]")return!1;for(U in Q)if(nH.call(Q,U))if(!W)W=!0;else return!1;if(!W)return!1;if(X.indexOf(U)===-1)X.push(U);else return!1}return!0}function oH(Z){return Z!==null?Z:[]}var rX=new w1("tag:yaml.org,2002:omap",{kind:"sequence",resolve:sH,construct:oH}),tH=Object.prototype.toString;function eH(Z){if(Z===null)return!0;var X,J,G,Q,U,W=Z;U=Array(W.length);for(X=0,J=W.length;X<J;X+=1){if(G=W[X],tH.call(G)!=="[object Object]")return!1;if(Q=Object.keys(G),Q.length!==1)return!1;U[X]=[Q[0],G[Q[0]]]}return!0}function ZK(Z){if(Z===null)return[];var X,J,G,Q,U,W=Z;U=Array(W.length);for(X=0,J=W.length;X<J;X+=1)G=W[X],Q=Object.keys(G),U[X]=[Q[0],G[Q[0]]];return U}var cX=new w1("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:eH,construct:ZK}),XK=Object.prototype.hasOwnProperty;function JK(Z){if(Z===null)return!0;var X,J=Z;for(X in J)if(XK.call(J,X)){if(J[X]!==null)return!1}return!0}function GK(Z){return Z!==null?Z:{}}var nX=new w1("tag:yaml.org,2002:set",{kind:"mapping",resolve:JK,construct:GK}),x8=uX.extend({implicit:[lX,iX],explicit:[dX,rX,cX,nX]}),p0=Object.prototype.hasOwnProperty,P5=1,aX=2,sX=3,w5=4,w8=1,QK=2,BX=3,UK=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,WK=/[\x85\u2028\u2029]/,qK=/[,\[\]\{\}]/,oX=/^(?:!|!!|![a-z\-]+!)$/i,tX=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function FX(Z){return Object.prototype.toString.call(Z)}function $0(Z){return Z===10||Z===13}function W4(Z){return Z===9||Z===32}function u1(Z){return Z===9||Z===32||Z===10||Z===13}function v4(Z){return Z===44||Z===91||Z===93||Z===123||Z===125}function YK(Z){var X;if(48<=Z&&Z<=57)return Z-48;if(X=Z|32,97<=X&&X<=102)return X-97+10;return-1}function HK(Z){if(Z===120)return 2;if(Z===117)return 4;if(Z===85)return 8;return 0}function KK(Z){if(48<=Z&&Z<=57)return Z-48;return-1}function MX(Z){return Z===48?"\x00":Z===97?"\x07":Z===98?"\b":Z===116?"\t":Z===9?"\t":Z===110?`
185
- `:Z===118?"\v":Z===102?"\f":Z===114?"\r":Z===101?"\x1B":Z===32?" ":Z===34?'"':Z===47?"/":Z===92?"\\":Z===78?"…":Z===95?" ":Z===76?"\u2028":Z===80?"\u2029":""}function $K(Z){if(Z<=65535)return String.fromCharCode(Z);return String.fromCharCode((Z-65536>>10)+55296,(Z-65536&1023)+56320)}function eX(Z,X,J){if(X==="__proto__")Object.defineProperty(Z,X,{configurable:!0,enumerable:!0,writable:!0,value:J});else Z[X]=J}var Z2=Array(256),X2=Array(256);for(m0=0;m0<256;m0++)Z2[m0]=MX(m0)?1:0,X2[m0]=MX(m0);var m0;function zK(Z,X){this.input=Z,this.filename=X.filename||null,this.schema=X.schema||x8,this.onWarning=X.onWarning||null,this.legacy=X.legacy||!1,this.json=X.json||!1,this.listener=X.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=Z.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function J2(Z,X){var J={name:Z.filename,buffer:Z.input.slice(0,-1),position:Z.position,line:Z.line,column:Z.position-Z.lineStart};return J.snippet=MH(J),new k1(X,J)}function r(Z,X){throw J2(Z,X)}function T5(Z,X){if(Z.onWarning)Z.onWarning.call(null,J2(Z,X))}var DX={YAML:function(X,J,G){var Q,U,W;if(X.version!==null)r(X,"duplication of %YAML directive");if(G.length!==1)r(X,"YAML directive accepts exactly one argument");if(Q=/^([0-9]+)\.([0-9]+)$/.exec(G[0]),Q===null)r(X,"ill-formed argument of the YAML directive");if(U=parseInt(Q[1],10),W=parseInt(Q[2],10),U!==1)r(X,"unacceptable YAML version of the document");if(X.version=G[0],X.checkLineBreaks=W<2,W!==1&&W!==2)T5(X,"unsupported YAML version of the document")},TAG:function(X,J,G){var Q,U;if(G.length!==2)r(X,"TAG directive accepts exactly two arguments");if(Q=G[0],U=G[1],!oX.test(Q))r(X,"ill-formed tag handle (first argument) of the TAG directive");if(p0.call(X.tagMap,Q))r(X,'there is a previously declared suffix for "'+Q+'" tag handle');if(!tX.test(U))r(X,"ill-formed tag prefix (second argument) of the TAG directive");try{U=decodeURIComponent(U)}catch(W){r(X,"tag prefix is malformed: "+U)}X.tagMap[Q]=U}};function u0(Z,X,J,G){var Q,U,W,q;if(X<J){if(q=Z.input.slice(X,J),G){for(Q=0,U=q.length;Q<U;Q+=1)if(W=q.charCodeAt(Q),!(W===9||32<=W&&W<=1114111))r(Z,"expected valid JSON character")}else if(UK.test(q))r(Z,"the stream contains non-printable characters");Z.result+=q}}function _X(Z,X,J,G){var Q,U,W,q;if(!N1.isObject(J))r(Z,"cannot merge mappings; the provided source object is unacceptable");Q=Object.keys(J);for(W=0,q=Q.length;W<q;W+=1)if(U=Q[W],!p0.call(X,U))eX(X,U,J[U]),G[U]=!0}function h4(Z,X,J,G,Q,U,W,q,Y){var H,K;if(Array.isArray(Q)){Q=Array.prototype.slice.call(Q);for(H=0,K=Q.length;H<K;H+=1){if(Array.isArray(Q[H]))r(Z,"nested arrays are not supported inside keys");if(typeof Q==="object"&&FX(Q[H])==="[object Object]")Q[H]="[object Object]"}}if(typeof Q==="object"&&FX(Q)==="[object Object]")Q="[object Object]";if(Q=String(Q),X===null)X={};if(G==="tag:yaml.org,2002:merge")if(Array.isArray(U))for(H=0,K=U.length;H<K;H+=1)_X(Z,X,U[H],J);else _X(Z,X,U,J);else{if(!Z.json&&!p0.call(J,Q)&&p0.call(X,Q))Z.line=W||Z.line,Z.lineStart=q||Z.lineStart,Z.position=Y||Z.position,r(Z,"duplicated mapping key");eX(X,Q,U),delete J[Q]}return X}function g8(Z){var X=Z.input.charCodeAt(Z.position);if(X===10)Z.position++;else if(X===13){if(Z.position++,Z.input.charCodeAt(Z.position)===10)Z.position++}else r(Z,"a line break is expected");Z.line+=1,Z.lineStart=Z.position,Z.firstTabInLine=-1}function D1(Z,X,J){var G=0,Q=Z.input.charCodeAt(Z.position);while(Q!==0){while(W4(Q)){if(Q===9&&Z.firstTabInLine===-1)Z.firstTabInLine=Z.position;Q=Z.input.charCodeAt(++Z.position)}if(X&&Q===35)do Q=Z.input.charCodeAt(++Z.position);while(Q!==10&&Q!==13&&Q!==0);if($0(Q)){g8(Z),Q=Z.input.charCodeAt(Z.position),G++,Z.lineIndent=0;while(Q===32)Z.lineIndent++,Q=Z.input.charCodeAt(++Z.position)}else break}if(J!==-1&&G!==0&&Z.lineIndent<J)T5(Z,"deficient indentation");return G}function E5(Z){var X=Z.position,J;if(J=Z.input.charCodeAt(X),(J===45||J===46)&&J===Z.input.charCodeAt(X+1)&&J===Z.input.charCodeAt(X+2)){if(X+=3,J=Z.input.charCodeAt(X),J===0||u1(J))return!0}return!1}function k8(Z,X){if(X===1)Z.result+=" ";else if(X>1)Z.result+=N1.repeat(`
186
- `,X-1)}function VK(Z,X,J){var G,Q,U,W,q,Y,H,K,$=Z.kind,B=Z.result,V;if(V=Z.input.charCodeAt(Z.position),u1(V)||v4(V)||V===35||V===38||V===42||V===33||V===124||V===62||V===39||V===34||V===37||V===64||V===96)return!1;if(V===63||V===45){if(Q=Z.input.charCodeAt(Z.position+1),u1(Q)||J&&v4(Q))return!1}Z.kind="scalar",Z.result="",U=W=Z.position,q=!1;while(V!==0){if(V===58){if(Q=Z.input.charCodeAt(Z.position+1),u1(Q)||J&&v4(Q))break}else if(V===35){if(G=Z.input.charCodeAt(Z.position-1),u1(G))break}else if(Z.position===Z.lineStart&&E5(Z)||J&&v4(V))break;else if($0(V))if(Y=Z.line,H=Z.lineStart,K=Z.lineIndent,D1(Z,!1,-1),Z.lineIndent>=X){q=!0,V=Z.input.charCodeAt(Z.position);continue}else{Z.position=W,Z.line=Y,Z.lineStart=H,Z.lineIndent=K;break}if(q)u0(Z,U,W,!1),k8(Z,Z.line-Y),U=W=Z.position,q=!1;if(!W4(V))W=Z.position+1;V=Z.input.charCodeAt(++Z.position)}if(u0(Z,U,W,!1),Z.result)return!0;return Z.kind=$,Z.result=B,!1}function BK(Z,X){var J,G,Q;if(J=Z.input.charCodeAt(Z.position),J!==39)return!1;Z.kind="scalar",Z.result="",Z.position++,G=Q=Z.position;while((J=Z.input.charCodeAt(Z.position))!==0)if(J===39)if(u0(Z,G,Z.position,!0),J=Z.input.charCodeAt(++Z.position),J===39)G=Z.position,Z.position++,Q=Z.position;else return!0;else if($0(J))u0(Z,G,Q,!0),k8(Z,D1(Z,!1,X)),G=Q=Z.position;else if(Z.position===Z.lineStart&&E5(Z))r(Z,"unexpected end of the document within a single quoted scalar");else Z.position++,Q=Z.position;r(Z,"unexpected end of the stream within a single quoted scalar")}function FK(Z,X){var J,G,Q,U,W,q;if(q=Z.input.charCodeAt(Z.position),q!==34)return!1;Z.kind="scalar",Z.result="",Z.position++,J=G=Z.position;while((q=Z.input.charCodeAt(Z.position))!==0)if(q===34)return u0(Z,J,Z.position,!0),Z.position++,!0;else if(q===92){if(u0(Z,J,Z.position,!0),q=Z.input.charCodeAt(++Z.position),$0(q))D1(Z,!1,X);else if(q<256&&Z2[q])Z.result+=X2[q],Z.position++;else if((W=HK(q))>0){Q=W,U=0;for(;Q>0;Q--)if(q=Z.input.charCodeAt(++Z.position),(W=YK(q))>=0)U=(U<<4)+W;else r(Z,"expected hexadecimal character");Z.result+=$K(U),Z.position++}else r(Z,"unknown escape sequence");J=G=Z.position}else if($0(q))u0(Z,J,G,!0),k8(Z,D1(Z,!1,X)),J=G=Z.position;else if(Z.position===Z.lineStart&&E5(Z))r(Z,"unexpected end of the document within a double quoted scalar");else Z.position++,G=Z.position;r(Z,"unexpected end of the stream within a double quoted scalar")}function MK(Z,X){var J=!0,G,Q,U,W=Z.tag,q,Y=Z.anchor,H,K,$,B,V,M=Object.create(null),_,D,R,N;if(N=Z.input.charCodeAt(Z.position),N===91)K=93,V=!1,q=[];else if(N===123)K=125,V=!0,q={};else return!1;if(Z.anchor!==null)Z.anchorMap[Z.anchor]=q;N=Z.input.charCodeAt(++Z.position);while(N!==0){if(D1(Z,!0,X),N=Z.input.charCodeAt(Z.position),N===K)return Z.position++,Z.tag=W,Z.anchor=Y,Z.kind=V?"mapping":"sequence",Z.result=q,!0;else if(!J)r(Z,"missed comma between flow collection entries");else if(N===44)r(Z,"expected the node content, but found ','");if(D=_=R=null,$=B=!1,N===63){if(H=Z.input.charCodeAt(Z.position+1),u1(H))$=B=!0,Z.position++,D1(Z,!0,X)}if(G=Z.line,Q=Z.lineStart,U=Z.position,m4(Z,X,P5,!1,!0),D=Z.tag,_=Z.result,D1(Z,!0,X),N=Z.input.charCodeAt(Z.position),(B||Z.line===G)&&N===58)$=!0,N=Z.input.charCodeAt(++Z.position),D1(Z,!0,X),m4(Z,X,P5,!1,!0),R=Z.result;if(V)h4(Z,q,M,D,_,R,G,Q,U);else if($)q.push(h4(Z,null,M,D,_,R,G,Q,U));else q.push(_);if(D1(Z,!0,X),N=Z.input.charCodeAt(Z.position),N===44)J=!0,N=Z.input.charCodeAt(++Z.position);else J=!1}r(Z,"unexpected end of the stream within a flow collection")}function DK(Z,X){var J,G,Q=w8,U=!1,W=!1,q=X,Y=0,H=!1,K,$;if($=Z.input.charCodeAt(Z.position),$===124)G=!1;else if($===62)G=!0;else return!1;Z.kind="scalar",Z.result="";while($!==0)if($=Z.input.charCodeAt(++Z.position),$===43||$===45)if(w8===Q)Q=$===43?BX:QK;else r(Z,"repeat of a chomping mode identifier");else if((K=KK($))>=0)if(K===0)r(Z,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!W)q=X+K-1,W=!0;else r(Z,"repeat of an indentation width identifier");else break;if(W4($)){do $=Z.input.charCodeAt(++Z.position);while(W4($));if($===35)do $=Z.input.charCodeAt(++Z.position);while(!$0($)&&$!==0)}while($!==0){g8(Z),Z.lineIndent=0,$=Z.input.charCodeAt(Z.position);while((!W||Z.lineIndent<q)&&$===32)Z.lineIndent++,$=Z.input.charCodeAt(++Z.position);if(!W&&Z.lineIndent>q)q=Z.lineIndent;if($0($)){Y++;continue}if(Z.lineIndent<q){if(Q===BX)Z.result+=N1.repeat(`
183
+ `}return q.replace(/\n$/,"")}var DH=MH,_H=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],RH=["scalar","sequence","mapping"];function OH(Z){var X={};if(Z!==null)Object.keys(Z).forEach(function(J){Z[J].forEach(function(G){X[String(G)]=J})});return X}function NH(Z,X){if(X=X||{},Object.keys(X).forEach(function(J){if(_H.indexOf(J)===-1)throw new k1('Unknown option "'+J+'" is met in definition of "'+Z+'" YAML type.')}),this.options=X,this.tag=Z,this.kind=X.kind||null,this.resolve=X.resolve||function(){return!0},this.construct=X.construct||function(J){return J},this.instanceOf=X.instanceOf||null,this.predicate=X.predicate||null,this.represent=X.represent||null,this.representName=X.representName||null,this.defaultStyle=X.defaultStyle||null,this.multi=X.multi||!1,this.styleAliases=OH(X.styleAliases||null),RH.indexOf(this.kind)===-1)throw new k1('Unknown kind "'+this.kind+'" is specified for "'+Z+'" YAML type.')}var w1=NH;function VX(Z,X){var J=[];return Z[X].forEach(function(G){var Q=J.length;J.forEach(function(U,W){if(U.tag===G.tag&&U.kind===G.kind&&U.multi===G.multi)Q=W}),J[Q]=G}),J}function LH(){var Z={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},X,J;function G(Q){if(Q.multi)Z.multi[Q.kind].push(Q),Z.multi.fallback.push(Q);else Z[Q.kind][Q.tag]=Z.fallback[Q.tag]=Q}for(X=0,J=arguments.length;X<J;X+=1)arguments[X].forEach(G);return Z}function T8(Z){return this.extend(Z)}T8.prototype.extend=function(X){var J=[],G=[];if(X instanceof w1)G.push(X);else if(Array.isArray(X))G=G.concat(X);else if(X&&(Array.isArray(X.implicit)||Array.isArray(X.explicit))){if(X.implicit)J=J.concat(X.implicit);if(X.explicit)G=G.concat(X.explicit)}else throw new k1("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");J.forEach(function(U){if(!(U instanceof w1))throw new k1("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(U.loadKind&&U.loadKind!=="scalar")throw new k1("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(U.multi)throw new k1("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),G.forEach(function(U){if(!(U instanceof w1))throw new k1("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var Q=Object.create(T8.prototype);return Q.implicit=(this.implicit||[]).concat(J),Q.explicit=(this.explicit||[]).concat(G),Q.compiledImplicit=VX(Q,"implicit"),Q.compiledExplicit=VX(Q,"explicit"),Q.compiledTypeMap=LH(Q.compiledImplicit,Q.compiledExplicit),Q};var EX=T8,SX=new w1("tag:yaml.org,2002:str",{kind:"scalar",construct:function(Z){return Z!==null?Z:""}}),bX=new w1("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(Z){return Z!==null?Z:[]}}),xX=new w1("tag:yaml.org,2002:map",{kind:"mapping",construct:function(Z){return Z!==null?Z:{}}}),gX=new EX({explicit:[SX,bX,xX]});function IH(Z){if(Z===null)return!0;var X=Z.length;return X===1&&Z==="~"||X===4&&(Z==="null"||Z==="Null"||Z==="NULL")}function AH(){return null}function PH(Z){return Z===null}var kX=new w1("tag:yaml.org,2002:null",{kind:"scalar",resolve:IH,construct:AH,predicate:PH,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function wH(Z){if(Z===null)return!1;var X=Z.length;return X===4&&(Z==="true"||Z==="True"||Z==="TRUE")||X===5&&(Z==="false"||Z==="False"||Z==="FALSE")}function TH(Z){return Z==="true"||Z==="True"||Z==="TRUE"}function CH(Z){return Object.prototype.toString.call(Z)==="[object Boolean]"}var yX=new w1("tag:yaml.org,2002:bool",{kind:"scalar",resolve:wH,construct:TH,predicate:CH,represent:{lowercase:function(Z){return Z?"true":"false"},uppercase:function(Z){return Z?"TRUE":"FALSE"},camelcase:function(Z){return Z?"True":"False"}},defaultStyle:"lowercase"});function jH(Z){return 48<=Z&&Z<=57||65<=Z&&Z<=70||97<=Z&&Z<=102}function EH(Z){return 48<=Z&&Z<=55}function SH(Z){return 48<=Z&&Z<=57}function bH(Z){if(Z===null)return!1;var X=Z.length,J=0,G=!1,Q;if(!X)return!1;if(Q=Z[J],Q==="-"||Q==="+")Q=Z[++J];if(Q==="0"){if(J+1===X)return!0;if(Q=Z[++J],Q==="b"){J++;for(;J<X;J++){if(Q=Z[J],Q==="_")continue;if(Q!=="0"&&Q!=="1")return!1;G=!0}return G&&Q!=="_"}if(Q==="x"){J++;for(;J<X;J++){if(Q=Z[J],Q==="_")continue;if(!jH(Z.charCodeAt(J)))return!1;G=!0}return G&&Q!=="_"}if(Q==="o"){J++;for(;J<X;J++){if(Q=Z[J],Q==="_")continue;if(!EH(Z.charCodeAt(J)))return!1;G=!0}return G&&Q!=="_"}}if(Q==="_")return!1;for(;J<X;J++){if(Q=Z[J],Q==="_")continue;if(!SH(Z.charCodeAt(J)))return!1;G=!0}if(!G||Q==="_")return!1;return!0}function xH(Z){var X=Z,J=1,G;if(X.indexOf("_")!==-1)X=X.replace(/_/g,"");if(G=X[0],G==="-"||G==="+"){if(G==="-")J=-1;X=X.slice(1),G=X[0]}if(X==="0")return 0;if(G==="0"){if(X[1]==="b")return J*parseInt(X.slice(2),2);if(X[1]==="x")return J*parseInt(X.slice(2),16);if(X[1]==="o")return J*parseInt(X.slice(2),8)}return J*parseInt(X,10)}function gH(Z){return Object.prototype.toString.call(Z)==="[object Number]"&&(Z%1===0&&!N1.isNegativeZero(Z))}var vX=new w1("tag:yaml.org,2002:int",{kind:"scalar",resolve:bH,construct:xH,predicate:gH,represent:{binary:function(Z){return Z>=0?"0b"+Z.toString(2):"-0b"+Z.toString(2).slice(1)},octal:function(Z){return Z>=0?"0o"+Z.toString(8):"-0o"+Z.toString(8).slice(1)},decimal:function(Z){return Z.toString(10)},hexadecimal:function(Z){return Z>=0?"0x"+Z.toString(16).toUpperCase():"-0x"+Z.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),kH=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function yH(Z){if(Z===null)return!1;if(!kH.test(Z)||Z[Z.length-1]==="_")return!1;return!0}function vH(Z){var X,J;if(X=Z.replace(/_/g,"").toLowerCase(),J=X[0]==="-"?-1:1,"+-".indexOf(X[0])>=0)X=X.slice(1);if(X===".inf")return J===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(X===".nan")return NaN;return J*parseFloat(X,10)}var hH=/^[-+]?[0-9]+e/;function mH(Z,X){var J;if(isNaN(Z))switch(X){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===Z)switch(X){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===Z)switch(X){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(N1.isNegativeZero(Z))return"-0.0";return J=Z.toString(10),hH.test(J)?J.replace("e",".e"):J}function uH(Z){return Object.prototype.toString.call(Z)==="[object Number]"&&(Z%1!==0||N1.isNegativeZero(Z))}var hX=new w1("tag:yaml.org,2002:float",{kind:"scalar",resolve:yH,construct:vH,predicate:uH,represent:mH,defaultStyle:"lowercase"}),mX=gX.extend({implicit:[kX,yX,vX,hX]}),uX=mX,pX=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),fX=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 pH(Z){if(Z===null)return!1;if(pX.exec(Z)!==null)return!0;if(fX.exec(Z)!==null)return!0;return!1}function fH(Z){var X,J,G,Q,U,W,q,Y=0,H=null,K,$,B;if(X=pX.exec(Z),X===null)X=fX.exec(Z);if(X===null)throw Error("Date resolve error");if(J=+X[1],G=+X[2]-1,Q=+X[3],!X[4])return new Date(Date.UTC(J,G,Q));if(U=+X[4],W=+X[5],q=+X[6],X[7]){Y=X[7].slice(0,3);while(Y.length<3)Y+="0";Y=+Y}if(X[9]){if(K=+X[10],$=+(X[11]||0),H=(K*60+$)*60000,X[9]==="-")H=-H}if(B=new Date(Date.UTC(J,G,Q,U,W,q,Y)),H)B.setTime(B.getTime()-H);return B}function lH(Z){return Z.toISOString()}var lX=new w1("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:pH,construct:fH,instanceOf:Date,represent:lH});function iH(Z){return Z==="<<"||Z===null}var iX=new w1("tag:yaml.org,2002:merge",{kind:"scalar",resolve:iH}),b8=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
184
+ \r`;function dH(Z){if(Z===null)return!1;var X,J,G=0,Q=Z.length,U=b8;for(J=0;J<Q;J++){if(X=U.indexOf(Z.charAt(J)),X>64)continue;if(X<0)return!1;G+=6}return G%8===0}function rH(Z){var X,J,G=Z.replace(/[\r\n=]/g,""),Q=G.length,U=b8,W=0,q=[];for(X=0;X<Q;X++){if(X%4===0&&X)q.push(W>>16&255),q.push(W>>8&255),q.push(W&255);W=W<<6|U.indexOf(G.charAt(X))}if(J=Q%4*6,J===0)q.push(W>>16&255),q.push(W>>8&255),q.push(W&255);else if(J===18)q.push(W>>10&255),q.push(W>>2&255);else if(J===12)q.push(W>>4&255);return new Uint8Array(q)}function cH(Z){var X="",J=0,G,Q,U=Z.length,W=b8;for(G=0;G<U;G++){if(G%3===0&&G)X+=W[J>>18&63],X+=W[J>>12&63],X+=W[J>>6&63],X+=W[J&63];J=(J<<8)+Z[G]}if(Q=U%3,Q===0)X+=W[J>>18&63],X+=W[J>>12&63],X+=W[J>>6&63],X+=W[J&63];else if(Q===2)X+=W[J>>10&63],X+=W[J>>4&63],X+=W[J<<2&63],X+=W[64];else if(Q===1)X+=W[J>>2&63],X+=W[J<<4&63],X+=W[64],X+=W[64];return X}function nH(Z){return Object.prototype.toString.call(Z)==="[object Uint8Array]"}var dX=new w1("tag:yaml.org,2002:binary",{kind:"scalar",resolve:dH,construct:rH,predicate:nH,represent:cH}),aH=Object.prototype.hasOwnProperty,sH=Object.prototype.toString;function oH(Z){if(Z===null)return!0;var X=[],J,G,Q,U,W,q=Z;for(J=0,G=q.length;J<G;J+=1){if(Q=q[J],W=!1,sH.call(Q)!=="[object Object]")return!1;for(U in Q)if(aH.call(Q,U))if(!W)W=!0;else return!1;if(!W)return!1;if(X.indexOf(U)===-1)X.push(U);else return!1}return!0}function tH(Z){return Z!==null?Z:[]}var rX=new w1("tag:yaml.org,2002:omap",{kind:"sequence",resolve:oH,construct:tH}),eH=Object.prototype.toString;function ZK(Z){if(Z===null)return!0;var X,J,G,Q,U,W=Z;U=Array(W.length);for(X=0,J=W.length;X<J;X+=1){if(G=W[X],eH.call(G)!=="[object Object]")return!1;if(Q=Object.keys(G),Q.length!==1)return!1;U[X]=[Q[0],G[Q[0]]]}return!0}function XK(Z){if(Z===null)return[];var X,J,G,Q,U,W=Z;U=Array(W.length);for(X=0,J=W.length;X<J;X+=1)G=W[X],Q=Object.keys(G),U[X]=[Q[0],G[Q[0]]];return U}var cX=new w1("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ZK,construct:XK}),JK=Object.prototype.hasOwnProperty;function GK(Z){if(Z===null)return!0;var X,J=Z;for(X in J)if(JK.call(J,X)){if(J[X]!==null)return!1}return!0}function QK(Z){return Z!==null?Z:{}}var nX=new w1("tag:yaml.org,2002:set",{kind:"mapping",resolve:GK,construct:QK}),x8=uX.extend({implicit:[lX,iX],explicit:[dX,rX,cX,nX]}),p0=Object.prototype.hasOwnProperty,P5=1,aX=2,sX=3,w5=4,w8=1,UK=2,BX=3,WK=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,qK=/[\x85\u2028\u2029]/,YK=/[,\[\]\{\}]/,oX=/^(?:!|!!|![a-z\-]+!)$/i,tX=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function FX(Z){return Object.prototype.toString.call(Z)}function $0(Z){return Z===10||Z===13}function W4(Z){return Z===9||Z===32}function u1(Z){return Z===9||Z===32||Z===10||Z===13}function v4(Z){return Z===44||Z===91||Z===93||Z===123||Z===125}function HK(Z){var X;if(48<=Z&&Z<=57)return Z-48;if(X=Z|32,97<=X&&X<=102)return X-97+10;return-1}function KK(Z){if(Z===120)return 2;if(Z===117)return 4;if(Z===85)return 8;return 0}function $K(Z){if(48<=Z&&Z<=57)return Z-48;return-1}function MX(Z){return Z===48?"\x00":Z===97?"\x07":Z===98?"\b":Z===116?"\t":Z===9?"\t":Z===110?`
185
+ `:Z===118?"\v":Z===102?"\f":Z===114?"\r":Z===101?"\x1B":Z===32?" ":Z===34?'"':Z===47?"/":Z===92?"\\":Z===78?"…":Z===95?" ":Z===76?"\u2028":Z===80?"\u2029":""}function zK(Z){if(Z<=65535)return String.fromCharCode(Z);return String.fromCharCode((Z-65536>>10)+55296,(Z-65536&1023)+56320)}function eX(Z,X,J){if(X==="__proto__")Object.defineProperty(Z,X,{configurable:!0,enumerable:!0,writable:!0,value:J});else Z[X]=J}var Z2=Array(256),X2=Array(256);for(m0=0;m0<256;m0++)Z2[m0]=MX(m0)?1:0,X2[m0]=MX(m0);var m0;function VK(Z,X){this.input=Z,this.filename=X.filename||null,this.schema=X.schema||x8,this.onWarning=X.onWarning||null,this.legacy=X.legacy||!1,this.json=X.json||!1,this.listener=X.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=Z.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function J2(Z,X){var J={name:Z.filename,buffer:Z.input.slice(0,-1),position:Z.position,line:Z.line,column:Z.position-Z.lineStart};return J.snippet=DH(J),new k1(X,J)}function r(Z,X){throw J2(Z,X)}function T5(Z,X){if(Z.onWarning)Z.onWarning.call(null,J2(Z,X))}var DX={YAML:function(X,J,G){var Q,U,W;if(X.version!==null)r(X,"duplication of %YAML directive");if(G.length!==1)r(X,"YAML directive accepts exactly one argument");if(Q=/^([0-9]+)\.([0-9]+)$/.exec(G[0]),Q===null)r(X,"ill-formed argument of the YAML directive");if(U=parseInt(Q[1],10),W=parseInt(Q[2],10),U!==1)r(X,"unacceptable YAML version of the document");if(X.version=G[0],X.checkLineBreaks=W<2,W!==1&&W!==2)T5(X,"unsupported YAML version of the document")},TAG:function(X,J,G){var Q,U;if(G.length!==2)r(X,"TAG directive accepts exactly two arguments");if(Q=G[0],U=G[1],!oX.test(Q))r(X,"ill-formed tag handle (first argument) of the TAG directive");if(p0.call(X.tagMap,Q))r(X,'there is a previously declared suffix for "'+Q+'" tag handle');if(!tX.test(U))r(X,"ill-formed tag prefix (second argument) of the TAG directive");try{U=decodeURIComponent(U)}catch(W){r(X,"tag prefix is malformed: "+U)}X.tagMap[Q]=U}};function u0(Z,X,J,G){var Q,U,W,q;if(X<J){if(q=Z.input.slice(X,J),G){for(Q=0,U=q.length;Q<U;Q+=1)if(W=q.charCodeAt(Q),!(W===9||32<=W&&W<=1114111))r(Z,"expected valid JSON character")}else if(WK.test(q))r(Z,"the stream contains non-printable characters");Z.result+=q}}function _X(Z,X,J,G){var Q,U,W,q;if(!N1.isObject(J))r(Z,"cannot merge mappings; the provided source object is unacceptable");Q=Object.keys(J);for(W=0,q=Q.length;W<q;W+=1)if(U=Q[W],!p0.call(X,U))eX(X,U,J[U]),G[U]=!0}function h4(Z,X,J,G,Q,U,W,q,Y){var H,K;if(Array.isArray(Q)){Q=Array.prototype.slice.call(Q);for(H=0,K=Q.length;H<K;H+=1){if(Array.isArray(Q[H]))r(Z,"nested arrays are not supported inside keys");if(typeof Q==="object"&&FX(Q[H])==="[object Object]")Q[H]="[object Object]"}}if(typeof Q==="object"&&FX(Q)==="[object Object]")Q="[object Object]";if(Q=String(Q),X===null)X={};if(G==="tag:yaml.org,2002:merge")if(Array.isArray(U))for(H=0,K=U.length;H<K;H+=1)_X(Z,X,U[H],J);else _X(Z,X,U,J);else{if(!Z.json&&!p0.call(J,Q)&&p0.call(X,Q))Z.line=W||Z.line,Z.lineStart=q||Z.lineStart,Z.position=Y||Z.position,r(Z,"duplicated mapping key");eX(X,Q,U),delete J[Q]}return X}function g8(Z){var X=Z.input.charCodeAt(Z.position);if(X===10)Z.position++;else if(X===13){if(Z.position++,Z.input.charCodeAt(Z.position)===10)Z.position++}else r(Z,"a line break is expected");Z.line+=1,Z.lineStart=Z.position,Z.firstTabInLine=-1}function D1(Z,X,J){var G=0,Q=Z.input.charCodeAt(Z.position);while(Q!==0){while(W4(Q)){if(Q===9&&Z.firstTabInLine===-1)Z.firstTabInLine=Z.position;Q=Z.input.charCodeAt(++Z.position)}if(X&&Q===35)do Q=Z.input.charCodeAt(++Z.position);while(Q!==10&&Q!==13&&Q!==0);if($0(Q)){g8(Z),Q=Z.input.charCodeAt(Z.position),G++,Z.lineIndent=0;while(Q===32)Z.lineIndent++,Q=Z.input.charCodeAt(++Z.position)}else break}if(J!==-1&&G!==0&&Z.lineIndent<J)T5(Z,"deficient indentation");return G}function E5(Z){var X=Z.position,J;if(J=Z.input.charCodeAt(X),(J===45||J===46)&&J===Z.input.charCodeAt(X+1)&&J===Z.input.charCodeAt(X+2)){if(X+=3,J=Z.input.charCodeAt(X),J===0||u1(J))return!0}return!1}function k8(Z,X){if(X===1)Z.result+=" ";else if(X>1)Z.result+=N1.repeat(`
186
+ `,X-1)}function BK(Z,X,J){var G,Q,U,W,q,Y,H,K,$=Z.kind,B=Z.result,V;if(V=Z.input.charCodeAt(Z.position),u1(V)||v4(V)||V===35||V===38||V===42||V===33||V===124||V===62||V===39||V===34||V===37||V===64||V===96)return!1;if(V===63||V===45){if(Q=Z.input.charCodeAt(Z.position+1),u1(Q)||J&&v4(Q))return!1}Z.kind="scalar",Z.result="",U=W=Z.position,q=!1;while(V!==0){if(V===58){if(Q=Z.input.charCodeAt(Z.position+1),u1(Q)||J&&v4(Q))break}else if(V===35){if(G=Z.input.charCodeAt(Z.position-1),u1(G))break}else if(Z.position===Z.lineStart&&E5(Z)||J&&v4(V))break;else if($0(V))if(Y=Z.line,H=Z.lineStart,K=Z.lineIndent,D1(Z,!1,-1),Z.lineIndent>=X){q=!0,V=Z.input.charCodeAt(Z.position);continue}else{Z.position=W,Z.line=Y,Z.lineStart=H,Z.lineIndent=K;break}if(q)u0(Z,U,W,!1),k8(Z,Z.line-Y),U=W=Z.position,q=!1;if(!W4(V))W=Z.position+1;V=Z.input.charCodeAt(++Z.position)}if(u0(Z,U,W,!1),Z.result)return!0;return Z.kind=$,Z.result=B,!1}function FK(Z,X){var J,G,Q;if(J=Z.input.charCodeAt(Z.position),J!==39)return!1;Z.kind="scalar",Z.result="",Z.position++,G=Q=Z.position;while((J=Z.input.charCodeAt(Z.position))!==0)if(J===39)if(u0(Z,G,Z.position,!0),J=Z.input.charCodeAt(++Z.position),J===39)G=Z.position,Z.position++,Q=Z.position;else return!0;else if($0(J))u0(Z,G,Q,!0),k8(Z,D1(Z,!1,X)),G=Q=Z.position;else if(Z.position===Z.lineStart&&E5(Z))r(Z,"unexpected end of the document within a single quoted scalar");else Z.position++,Q=Z.position;r(Z,"unexpected end of the stream within a single quoted scalar")}function MK(Z,X){var J,G,Q,U,W,q;if(q=Z.input.charCodeAt(Z.position),q!==34)return!1;Z.kind="scalar",Z.result="",Z.position++,J=G=Z.position;while((q=Z.input.charCodeAt(Z.position))!==0)if(q===34)return u0(Z,J,Z.position,!0),Z.position++,!0;else if(q===92){if(u0(Z,J,Z.position,!0),q=Z.input.charCodeAt(++Z.position),$0(q))D1(Z,!1,X);else if(q<256&&Z2[q])Z.result+=X2[q],Z.position++;else if((W=KK(q))>0){Q=W,U=0;for(;Q>0;Q--)if(q=Z.input.charCodeAt(++Z.position),(W=HK(q))>=0)U=(U<<4)+W;else r(Z,"expected hexadecimal character");Z.result+=zK(U),Z.position++}else r(Z,"unknown escape sequence");J=G=Z.position}else if($0(q))u0(Z,J,G,!0),k8(Z,D1(Z,!1,X)),J=G=Z.position;else if(Z.position===Z.lineStart&&E5(Z))r(Z,"unexpected end of the document within a double quoted scalar");else Z.position++,G=Z.position;r(Z,"unexpected end of the stream within a double quoted scalar")}function DK(Z,X){var J=!0,G,Q,U,W=Z.tag,q,Y=Z.anchor,H,K,$,B,V,M=Object.create(null),_,D,R,N;if(N=Z.input.charCodeAt(Z.position),N===91)K=93,V=!1,q=[];else if(N===123)K=125,V=!0,q={};else return!1;if(Z.anchor!==null)Z.anchorMap[Z.anchor]=q;N=Z.input.charCodeAt(++Z.position);while(N!==0){if(D1(Z,!0,X),N=Z.input.charCodeAt(Z.position),N===K)return Z.position++,Z.tag=W,Z.anchor=Y,Z.kind=V?"mapping":"sequence",Z.result=q,!0;else if(!J)r(Z,"missed comma between flow collection entries");else if(N===44)r(Z,"expected the node content, but found ','");if(D=_=R=null,$=B=!1,N===63){if(H=Z.input.charCodeAt(Z.position+1),u1(H))$=B=!0,Z.position++,D1(Z,!0,X)}if(G=Z.line,Q=Z.lineStart,U=Z.position,m4(Z,X,P5,!1,!0),D=Z.tag,_=Z.result,D1(Z,!0,X),N=Z.input.charCodeAt(Z.position),(B||Z.line===G)&&N===58)$=!0,N=Z.input.charCodeAt(++Z.position),D1(Z,!0,X),m4(Z,X,P5,!1,!0),R=Z.result;if(V)h4(Z,q,M,D,_,R,G,Q,U);else if($)q.push(h4(Z,null,M,D,_,R,G,Q,U));else q.push(_);if(D1(Z,!0,X),N=Z.input.charCodeAt(Z.position),N===44)J=!0,N=Z.input.charCodeAt(++Z.position);else J=!1}r(Z,"unexpected end of the stream within a flow collection")}function _K(Z,X){var J,G,Q=w8,U=!1,W=!1,q=X,Y=0,H=!1,K,$;if($=Z.input.charCodeAt(Z.position),$===124)G=!1;else if($===62)G=!0;else return!1;Z.kind="scalar",Z.result="";while($!==0)if($=Z.input.charCodeAt(++Z.position),$===43||$===45)if(w8===Q)Q=$===43?BX:UK;else r(Z,"repeat of a chomping mode identifier");else if((K=$K($))>=0)if(K===0)r(Z,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!W)q=X+K-1,W=!0;else r(Z,"repeat of an indentation width identifier");else break;if(W4($)){do $=Z.input.charCodeAt(++Z.position);while(W4($));if($===35)do $=Z.input.charCodeAt(++Z.position);while(!$0($)&&$!==0)}while($!==0){g8(Z),Z.lineIndent=0,$=Z.input.charCodeAt(Z.position);while((!W||Z.lineIndent<q)&&$===32)Z.lineIndent++,$=Z.input.charCodeAt(++Z.position);if(!W&&Z.lineIndent>q)q=Z.lineIndent;if($0($)){Y++;continue}if(Z.lineIndent<q){if(Q===BX)Z.result+=N1.repeat(`
187
187
  `,U?1+Y:Y);else if(Q===w8){if(U)Z.result+=`
188
188
  `}break}if(G)if(W4($))H=!0,Z.result+=N1.repeat(`
189
189
  `,U?1+Y:Y);else if(H)H=!1,Z.result+=N1.repeat(`
190
190
  `,Y+1);else if(Y===0){if(U)Z.result+=" "}else Z.result+=N1.repeat(`
191
191
  `,Y);else Z.result+=N1.repeat(`
192
- `,U?1+Y:Y);U=!0,W=!0,Y=0,J=Z.position;while(!$0($)&&$!==0)$=Z.input.charCodeAt(++Z.position);u0(Z,J,Z.position,!1)}return!0}function RX(Z,X){var J,G=Z.tag,Q=Z.anchor,U=[],W,q=!1,Y;if(Z.firstTabInLine!==-1)return!1;if(Z.anchor!==null)Z.anchorMap[Z.anchor]=U;Y=Z.input.charCodeAt(Z.position);while(Y!==0){if(Z.firstTabInLine!==-1)Z.position=Z.firstTabInLine,r(Z,"tab characters must not be used in indentation");if(Y!==45)break;if(W=Z.input.charCodeAt(Z.position+1),!u1(W))break;if(q=!0,Z.position++,D1(Z,!0,-1)){if(Z.lineIndent<=X){U.push(null),Y=Z.input.charCodeAt(Z.position);continue}}if(J=Z.line,m4(Z,X,sX,!1,!0),U.push(Z.result),D1(Z,!0,-1),Y=Z.input.charCodeAt(Z.position),(Z.line===J||Z.lineIndent>X)&&Y!==0)r(Z,"bad indentation of a sequence entry");else if(Z.lineIndent<X)break}if(q)return Z.tag=G,Z.anchor=Q,Z.kind="sequence",Z.result=U,!0;return!1}function _K(Z,X,J){var G,Q,U,W,q,Y,H=Z.tag,K=Z.anchor,$={},B=Object.create(null),V=null,M=null,_=null,D=!1,R=!1,N;if(Z.firstTabInLine!==-1)return!1;if(Z.anchor!==null)Z.anchorMap[Z.anchor]=$;N=Z.input.charCodeAt(Z.position);while(N!==0){if(!D&&Z.firstTabInLine!==-1)Z.position=Z.firstTabInLine,r(Z,"tab characters must not be used in indentation");if(G=Z.input.charCodeAt(Z.position+1),U=Z.line,(N===63||N===58)&&u1(G)){if(N===63){if(D)h4(Z,$,B,V,M,null,W,q,Y),V=M=_=null;R=!0,D=!0,Q=!0}else if(D)D=!1,Q=!0;else r(Z,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");Z.position+=1,N=G}else{if(W=Z.line,q=Z.lineStart,Y=Z.position,!m4(Z,J,aX,!1,!0))break;if(Z.line===U){N=Z.input.charCodeAt(Z.position);while(W4(N))N=Z.input.charCodeAt(++Z.position);if(N===58){if(N=Z.input.charCodeAt(++Z.position),!u1(N))r(Z,"a whitespace character is expected after the key-value separator within a block mapping");if(D)h4(Z,$,B,V,M,null,W,q,Y),V=M=_=null;R=!0,D=!1,Q=!1,V=Z.tag,M=Z.result}else if(R)r(Z,"can not read an implicit mapping pair; a colon is missed");else return Z.tag=H,Z.anchor=K,!0}else if(R)r(Z,"can not read a block mapping entry; a multiline key may not be an implicit key");else return Z.tag=H,Z.anchor=K,!0}if(Z.line===U||Z.lineIndent>X){if(D)W=Z.line,q=Z.lineStart,Y=Z.position;if(m4(Z,X,w5,!0,Q))if(D)M=Z.result;else _=Z.result;if(!D)h4(Z,$,B,V,M,_,W,q,Y),V=M=_=null;D1(Z,!0,-1),N=Z.input.charCodeAt(Z.position)}if((Z.line===U||Z.lineIndent>X)&&N!==0)r(Z,"bad indentation of a mapping entry");else if(Z.lineIndent<X)break}if(D)h4(Z,$,B,V,M,null,W,q,Y);if(R)Z.tag=H,Z.anchor=K,Z.kind="mapping",Z.result=$;return R}function RK(Z){var X,J=!1,G=!1,Q,U,W;if(W=Z.input.charCodeAt(Z.position),W!==33)return!1;if(Z.tag!==null)r(Z,"duplication of a tag property");if(W=Z.input.charCodeAt(++Z.position),W===60)J=!0,W=Z.input.charCodeAt(++Z.position);else if(W===33)G=!0,Q="!!",W=Z.input.charCodeAt(++Z.position);else Q="!";if(X=Z.position,J){do W=Z.input.charCodeAt(++Z.position);while(W!==0&&W!==62);if(Z.position<Z.length)U=Z.input.slice(X,Z.position),W=Z.input.charCodeAt(++Z.position);else r(Z,"unexpected end of the stream within a verbatim tag")}else{while(W!==0&&!u1(W)){if(W===33)if(!G){if(Q=Z.input.slice(X-1,Z.position+1),!oX.test(Q))r(Z,"named tag handle cannot contain such characters");G=!0,X=Z.position+1}else r(Z,"tag suffix cannot contain exclamation marks");W=Z.input.charCodeAt(++Z.position)}if(U=Z.input.slice(X,Z.position),qK.test(U))r(Z,"tag suffix cannot contain flow indicator characters")}if(U&&!tX.test(U))r(Z,"tag name cannot contain such characters: "+U);try{U=decodeURIComponent(U)}catch(q){r(Z,"tag name is malformed: "+U)}if(J)Z.tag=U;else if(p0.call(Z.tagMap,Q))Z.tag=Z.tagMap[Q]+U;else if(Q==="!")Z.tag="!"+U;else if(Q==="!!")Z.tag="tag:yaml.org,2002:"+U;else r(Z,'undeclared tag handle "'+Q+'"');return!0}function OK(Z){var X,J;if(J=Z.input.charCodeAt(Z.position),J!==38)return!1;if(Z.anchor!==null)r(Z,"duplication of an anchor property");J=Z.input.charCodeAt(++Z.position),X=Z.position;while(J!==0&&!u1(J)&&!v4(J))J=Z.input.charCodeAt(++Z.position);if(Z.position===X)r(Z,"name of an anchor node must contain at least one character");return Z.anchor=Z.input.slice(X,Z.position),!0}function NK(Z){var X,J,G;if(G=Z.input.charCodeAt(Z.position),G!==42)return!1;G=Z.input.charCodeAt(++Z.position),X=Z.position;while(G!==0&&!u1(G)&&!v4(G))G=Z.input.charCodeAt(++Z.position);if(Z.position===X)r(Z,"name of an alias node must contain at least one character");if(J=Z.input.slice(X,Z.position),!p0.call(Z.anchorMap,J))r(Z,'unidentified alias "'+J+'"');return Z.result=Z.anchorMap[J],D1(Z,!0,-1),!0}function m4(Z,X,J,G,Q){var U,W,q,Y=1,H=!1,K=!1,$,B,V,M,_,D;if(Z.listener!==null)Z.listener("open",Z);if(Z.tag=null,Z.anchor=null,Z.kind=null,Z.result=null,U=W=q=w5===J||sX===J,G){if(D1(Z,!0,-1)){if(H=!0,Z.lineIndent>X)Y=1;else if(Z.lineIndent===X)Y=0;else if(Z.lineIndent<X)Y=-1}}if(Y===1)while(RK(Z)||OK(Z))if(D1(Z,!0,-1)){if(H=!0,q=U,Z.lineIndent>X)Y=1;else if(Z.lineIndent===X)Y=0;else if(Z.lineIndent<X)Y=-1}else q=!1;if(q)q=H||Q;if(Y===1||w5===J){if(P5===J||aX===J)_=X;else _=X+1;if(D=Z.position-Z.lineStart,Y===1)if(q&&(RX(Z,D)||_K(Z,D,_))||MK(Z,_))K=!0;else{if(W&&DK(Z,_)||BK(Z,_)||FK(Z,_))K=!0;else if(NK(Z)){if(K=!0,Z.tag!==null||Z.anchor!==null)r(Z,"alias node should not have any properties")}else if(VK(Z,_,P5===J)){if(K=!0,Z.tag===null)Z.tag="?"}if(Z.anchor!==null)Z.anchorMap[Z.anchor]=Z.result}else if(Y===0)K=q&&RX(Z,D)}if(Z.tag===null){if(Z.anchor!==null)Z.anchorMap[Z.anchor]=Z.result}else if(Z.tag==="?"){if(Z.result!==null&&Z.kind!=="scalar")r(Z,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+Z.kind+'"');for($=0,B=Z.implicitTypes.length;$<B;$+=1)if(M=Z.implicitTypes[$],M.resolve(Z.result)){if(Z.result=M.construct(Z.result),Z.tag=M.tag,Z.anchor!==null)Z.anchorMap[Z.anchor]=Z.result;break}}else if(Z.tag!=="!"){if(p0.call(Z.typeMap[Z.kind||"fallback"],Z.tag))M=Z.typeMap[Z.kind||"fallback"][Z.tag];else{M=null,V=Z.typeMap.multi[Z.kind||"fallback"];for($=0,B=V.length;$<B;$+=1)if(Z.tag.slice(0,V[$].tag.length)===V[$].tag){M=V[$];break}}if(!M)r(Z,"unknown tag !<"+Z.tag+">");if(Z.result!==null&&M.kind!==Z.kind)r(Z,"unacceptable node kind for !<"+Z.tag+'> tag; it should be "'+M.kind+'", not "'+Z.kind+'"');if(!M.resolve(Z.result,Z.tag))r(Z,"cannot resolve a node with !<"+Z.tag+"> explicit tag");else if(Z.result=M.construct(Z.result,Z.tag),Z.anchor!==null)Z.anchorMap[Z.anchor]=Z.result}if(Z.listener!==null)Z.listener("close",Z);return Z.tag!==null||Z.anchor!==null||K}function LK(Z){var X=Z.position,J,G,Q,U=!1,W;Z.version=null,Z.checkLineBreaks=Z.legacy,Z.tagMap=Object.create(null),Z.anchorMap=Object.create(null);while((W=Z.input.charCodeAt(Z.position))!==0){if(D1(Z,!0,-1),W=Z.input.charCodeAt(Z.position),Z.lineIndent>0||W!==37)break;U=!0,W=Z.input.charCodeAt(++Z.position),J=Z.position;while(W!==0&&!u1(W))W=Z.input.charCodeAt(++Z.position);if(G=Z.input.slice(J,Z.position),Q=[],G.length<1)r(Z,"directive name must not be less than one character in length");while(W!==0){while(W4(W))W=Z.input.charCodeAt(++Z.position);if(W===35){do W=Z.input.charCodeAt(++Z.position);while(W!==0&&!$0(W));break}if($0(W))break;J=Z.position;while(W!==0&&!u1(W))W=Z.input.charCodeAt(++Z.position);Q.push(Z.input.slice(J,Z.position))}if(W!==0)g8(Z);if(p0.call(DX,G))DX[G](Z,G,Q);else T5(Z,'unknown document directive "'+G+'"')}if(D1(Z,!0,-1),Z.lineIndent===0&&Z.input.charCodeAt(Z.position)===45&&Z.input.charCodeAt(Z.position+1)===45&&Z.input.charCodeAt(Z.position+2)===45)Z.position+=3,D1(Z,!0,-1);else if(U)r(Z,"directives end mark is expected");if(m4(Z,Z.lineIndent-1,w5,!1,!0),D1(Z,!0,-1),Z.checkLineBreaks&&WK.test(Z.input.slice(X,Z.position)))T5(Z,"non-ASCII line breaks are interpreted as content");if(Z.documents.push(Z.result),Z.position===Z.lineStart&&E5(Z)){if(Z.input.charCodeAt(Z.position)===46)Z.position+=3,D1(Z,!0,-1);return}if(Z.position<Z.length-1)r(Z,"end of the stream or a document separator is expected");else return}function G2(Z,X){if(Z=String(Z),X=X||{},Z.length!==0){if(Z.charCodeAt(Z.length-1)!==10&&Z.charCodeAt(Z.length-1)!==13)Z+=`
193
- `;if(Z.charCodeAt(0)===65279)Z=Z.slice(1)}var J=new zK(Z,X),G=Z.indexOf("\x00");if(G!==-1)J.position=G,r(J,"null byte is not allowed in input");J.input+="\x00";while(J.input.charCodeAt(J.position)===32)J.lineIndent+=1,J.position+=1;while(J.position<J.length-1)LK(J);return J.documents}function IK(Z,X,J){if(X!==null&&typeof X==="object"&&typeof J>"u")J=X,X=null;var G=G2(Z,J);if(typeof X!=="function")return G;for(var Q=0,U=G.length;Q<U;Q+=1)X(G[Q])}function AK(Z,X){var J=G2(Z,X);if(J.length===0)return;else if(J.length===1)return J[0];throw new k1("expected a single document in the stream, but found more")}var PK=IK,wK=AK,Q2={loadAll:PK,load:wK},U2=Object.prototype.toString,W2=Object.prototype.hasOwnProperty,y8=65279,TK=9,S7=10,CK=13,jK=32,EK=33,SK=34,C8=35,bK=37,xK=38,gK=39,kK=42,q2=44,yK=45,C5=58,vK=61,hK=62,mK=63,uK=64,Y2=91,H2=93,pK=96,K2=123,fK=124,$2=125,E1={};E1[0]="\\0";E1[7]="\\a";E1[8]="\\b";E1[9]="\\t";E1[10]="\\n";E1[11]="\\v";E1[12]="\\f";E1[13]="\\r";E1[27]="\\e";E1[34]="\\\"";E1[92]="\\\\";E1[133]="\\N";E1[160]="\\_";E1[8232]="\\L";E1[8233]="\\P";var lK=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],iK=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function dK(Z,X){var J,G,Q,U,W,q,Y;if(X===null)return{};J={},G=Object.keys(X);for(Q=0,U=G.length;Q<U;Q+=1){if(W=G[Q],q=String(X[W]),W.slice(0,2)==="!!")W="tag:yaml.org,2002:"+W.slice(2);if(Y=Z.compiledTypeMap.fallback[W],Y&&W2.call(Y.styleAliases,q))q=Y.styleAliases[q];J[W]=q}return J}function rK(Z){var X,J,G;if(X=Z.toString(16).toUpperCase(),Z<=255)J="x",G=2;else if(Z<=65535)J="u",G=4;else if(Z<=4294967295)J="U",G=8;else throw new k1("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+J+N1.repeat("0",G-X.length)+X}var cK=1,b7=2;function nK(Z){this.schema=Z.schema||x8,this.indent=Math.max(1,Z.indent||2),this.noArrayIndent=Z.noArrayIndent||!1,this.skipInvalid=Z.skipInvalid||!1,this.flowLevel=N1.isNothing(Z.flowLevel)?-1:Z.flowLevel,this.styleMap=dK(this.schema,Z.styles||null),this.sortKeys=Z.sortKeys||!1,this.lineWidth=Z.lineWidth||80,this.noRefs=Z.noRefs||!1,this.noCompatMode=Z.noCompatMode||!1,this.condenseFlow=Z.condenseFlow||!1,this.quotingType=Z.quotingType==='"'?b7:cK,this.forceQuotes=Z.forceQuotes||!1,this.replacer=typeof Z.replacer==="function"?Z.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function OX(Z,X){var J=N1.repeat(" ",X),G=0,Q=-1,U="",W,q=Z.length;while(G<q){if(Q=Z.indexOf(`
192
+ `,U?1+Y:Y);U=!0,W=!0,Y=0,J=Z.position;while(!$0($)&&$!==0)$=Z.input.charCodeAt(++Z.position);u0(Z,J,Z.position,!1)}return!0}function RX(Z,X){var J,G=Z.tag,Q=Z.anchor,U=[],W,q=!1,Y;if(Z.firstTabInLine!==-1)return!1;if(Z.anchor!==null)Z.anchorMap[Z.anchor]=U;Y=Z.input.charCodeAt(Z.position);while(Y!==0){if(Z.firstTabInLine!==-1)Z.position=Z.firstTabInLine,r(Z,"tab characters must not be used in indentation");if(Y!==45)break;if(W=Z.input.charCodeAt(Z.position+1),!u1(W))break;if(q=!0,Z.position++,D1(Z,!0,-1)){if(Z.lineIndent<=X){U.push(null),Y=Z.input.charCodeAt(Z.position);continue}}if(J=Z.line,m4(Z,X,sX,!1,!0),U.push(Z.result),D1(Z,!0,-1),Y=Z.input.charCodeAt(Z.position),(Z.line===J||Z.lineIndent>X)&&Y!==0)r(Z,"bad indentation of a sequence entry");else if(Z.lineIndent<X)break}if(q)return Z.tag=G,Z.anchor=Q,Z.kind="sequence",Z.result=U,!0;return!1}function RK(Z,X,J){var G,Q,U,W,q,Y,H=Z.tag,K=Z.anchor,$={},B=Object.create(null),V=null,M=null,_=null,D=!1,R=!1,N;if(Z.firstTabInLine!==-1)return!1;if(Z.anchor!==null)Z.anchorMap[Z.anchor]=$;N=Z.input.charCodeAt(Z.position);while(N!==0){if(!D&&Z.firstTabInLine!==-1)Z.position=Z.firstTabInLine,r(Z,"tab characters must not be used in indentation");if(G=Z.input.charCodeAt(Z.position+1),U=Z.line,(N===63||N===58)&&u1(G)){if(N===63){if(D)h4(Z,$,B,V,M,null,W,q,Y),V=M=_=null;R=!0,D=!0,Q=!0}else if(D)D=!1,Q=!0;else r(Z,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");Z.position+=1,N=G}else{if(W=Z.line,q=Z.lineStart,Y=Z.position,!m4(Z,J,aX,!1,!0))break;if(Z.line===U){N=Z.input.charCodeAt(Z.position);while(W4(N))N=Z.input.charCodeAt(++Z.position);if(N===58){if(N=Z.input.charCodeAt(++Z.position),!u1(N))r(Z,"a whitespace character is expected after the key-value separator within a block mapping");if(D)h4(Z,$,B,V,M,null,W,q,Y),V=M=_=null;R=!0,D=!1,Q=!1,V=Z.tag,M=Z.result}else if(R)r(Z,"can not read an implicit mapping pair; a colon is missed");else return Z.tag=H,Z.anchor=K,!0}else if(R)r(Z,"can not read a block mapping entry; a multiline key may not be an implicit key");else return Z.tag=H,Z.anchor=K,!0}if(Z.line===U||Z.lineIndent>X){if(D)W=Z.line,q=Z.lineStart,Y=Z.position;if(m4(Z,X,w5,!0,Q))if(D)M=Z.result;else _=Z.result;if(!D)h4(Z,$,B,V,M,_,W,q,Y),V=M=_=null;D1(Z,!0,-1),N=Z.input.charCodeAt(Z.position)}if((Z.line===U||Z.lineIndent>X)&&N!==0)r(Z,"bad indentation of a mapping entry");else if(Z.lineIndent<X)break}if(D)h4(Z,$,B,V,M,null,W,q,Y);if(R)Z.tag=H,Z.anchor=K,Z.kind="mapping",Z.result=$;return R}function OK(Z){var X,J=!1,G=!1,Q,U,W;if(W=Z.input.charCodeAt(Z.position),W!==33)return!1;if(Z.tag!==null)r(Z,"duplication of a tag property");if(W=Z.input.charCodeAt(++Z.position),W===60)J=!0,W=Z.input.charCodeAt(++Z.position);else if(W===33)G=!0,Q="!!",W=Z.input.charCodeAt(++Z.position);else Q="!";if(X=Z.position,J){do W=Z.input.charCodeAt(++Z.position);while(W!==0&&W!==62);if(Z.position<Z.length)U=Z.input.slice(X,Z.position),W=Z.input.charCodeAt(++Z.position);else r(Z,"unexpected end of the stream within a verbatim tag")}else{while(W!==0&&!u1(W)){if(W===33)if(!G){if(Q=Z.input.slice(X-1,Z.position+1),!oX.test(Q))r(Z,"named tag handle cannot contain such characters");G=!0,X=Z.position+1}else r(Z,"tag suffix cannot contain exclamation marks");W=Z.input.charCodeAt(++Z.position)}if(U=Z.input.slice(X,Z.position),YK.test(U))r(Z,"tag suffix cannot contain flow indicator characters")}if(U&&!tX.test(U))r(Z,"tag name cannot contain such characters: "+U);try{U=decodeURIComponent(U)}catch(q){r(Z,"tag name is malformed: "+U)}if(J)Z.tag=U;else if(p0.call(Z.tagMap,Q))Z.tag=Z.tagMap[Q]+U;else if(Q==="!")Z.tag="!"+U;else if(Q==="!!")Z.tag="tag:yaml.org,2002:"+U;else r(Z,'undeclared tag handle "'+Q+'"');return!0}function NK(Z){var X,J;if(J=Z.input.charCodeAt(Z.position),J!==38)return!1;if(Z.anchor!==null)r(Z,"duplication of an anchor property");J=Z.input.charCodeAt(++Z.position),X=Z.position;while(J!==0&&!u1(J)&&!v4(J))J=Z.input.charCodeAt(++Z.position);if(Z.position===X)r(Z,"name of an anchor node must contain at least one character");return Z.anchor=Z.input.slice(X,Z.position),!0}function LK(Z){var X,J,G;if(G=Z.input.charCodeAt(Z.position),G!==42)return!1;G=Z.input.charCodeAt(++Z.position),X=Z.position;while(G!==0&&!u1(G)&&!v4(G))G=Z.input.charCodeAt(++Z.position);if(Z.position===X)r(Z,"name of an alias node must contain at least one character");if(J=Z.input.slice(X,Z.position),!p0.call(Z.anchorMap,J))r(Z,'unidentified alias "'+J+'"');return Z.result=Z.anchorMap[J],D1(Z,!0,-1),!0}function m4(Z,X,J,G,Q){var U,W,q,Y=1,H=!1,K=!1,$,B,V,M,_,D;if(Z.listener!==null)Z.listener("open",Z);if(Z.tag=null,Z.anchor=null,Z.kind=null,Z.result=null,U=W=q=w5===J||sX===J,G){if(D1(Z,!0,-1)){if(H=!0,Z.lineIndent>X)Y=1;else if(Z.lineIndent===X)Y=0;else if(Z.lineIndent<X)Y=-1}}if(Y===1)while(OK(Z)||NK(Z))if(D1(Z,!0,-1)){if(H=!0,q=U,Z.lineIndent>X)Y=1;else if(Z.lineIndent===X)Y=0;else if(Z.lineIndent<X)Y=-1}else q=!1;if(q)q=H||Q;if(Y===1||w5===J){if(P5===J||aX===J)_=X;else _=X+1;if(D=Z.position-Z.lineStart,Y===1)if(q&&(RX(Z,D)||RK(Z,D,_))||DK(Z,_))K=!0;else{if(W&&_K(Z,_)||FK(Z,_)||MK(Z,_))K=!0;else if(LK(Z)){if(K=!0,Z.tag!==null||Z.anchor!==null)r(Z,"alias node should not have any properties")}else if(BK(Z,_,P5===J)){if(K=!0,Z.tag===null)Z.tag="?"}if(Z.anchor!==null)Z.anchorMap[Z.anchor]=Z.result}else if(Y===0)K=q&&RX(Z,D)}if(Z.tag===null){if(Z.anchor!==null)Z.anchorMap[Z.anchor]=Z.result}else if(Z.tag==="?"){if(Z.result!==null&&Z.kind!=="scalar")r(Z,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+Z.kind+'"');for($=0,B=Z.implicitTypes.length;$<B;$+=1)if(M=Z.implicitTypes[$],M.resolve(Z.result)){if(Z.result=M.construct(Z.result),Z.tag=M.tag,Z.anchor!==null)Z.anchorMap[Z.anchor]=Z.result;break}}else if(Z.tag!=="!"){if(p0.call(Z.typeMap[Z.kind||"fallback"],Z.tag))M=Z.typeMap[Z.kind||"fallback"][Z.tag];else{M=null,V=Z.typeMap.multi[Z.kind||"fallback"];for($=0,B=V.length;$<B;$+=1)if(Z.tag.slice(0,V[$].tag.length)===V[$].tag){M=V[$];break}}if(!M)r(Z,"unknown tag !<"+Z.tag+">");if(Z.result!==null&&M.kind!==Z.kind)r(Z,"unacceptable node kind for !<"+Z.tag+'> tag; it should be "'+M.kind+'", not "'+Z.kind+'"');if(!M.resolve(Z.result,Z.tag))r(Z,"cannot resolve a node with !<"+Z.tag+"> explicit tag");else if(Z.result=M.construct(Z.result,Z.tag),Z.anchor!==null)Z.anchorMap[Z.anchor]=Z.result}if(Z.listener!==null)Z.listener("close",Z);return Z.tag!==null||Z.anchor!==null||K}function IK(Z){var X=Z.position,J,G,Q,U=!1,W;Z.version=null,Z.checkLineBreaks=Z.legacy,Z.tagMap=Object.create(null),Z.anchorMap=Object.create(null);while((W=Z.input.charCodeAt(Z.position))!==0){if(D1(Z,!0,-1),W=Z.input.charCodeAt(Z.position),Z.lineIndent>0||W!==37)break;U=!0,W=Z.input.charCodeAt(++Z.position),J=Z.position;while(W!==0&&!u1(W))W=Z.input.charCodeAt(++Z.position);if(G=Z.input.slice(J,Z.position),Q=[],G.length<1)r(Z,"directive name must not be less than one character in length");while(W!==0){while(W4(W))W=Z.input.charCodeAt(++Z.position);if(W===35){do W=Z.input.charCodeAt(++Z.position);while(W!==0&&!$0(W));break}if($0(W))break;J=Z.position;while(W!==0&&!u1(W))W=Z.input.charCodeAt(++Z.position);Q.push(Z.input.slice(J,Z.position))}if(W!==0)g8(Z);if(p0.call(DX,G))DX[G](Z,G,Q);else T5(Z,'unknown document directive "'+G+'"')}if(D1(Z,!0,-1),Z.lineIndent===0&&Z.input.charCodeAt(Z.position)===45&&Z.input.charCodeAt(Z.position+1)===45&&Z.input.charCodeAt(Z.position+2)===45)Z.position+=3,D1(Z,!0,-1);else if(U)r(Z,"directives end mark is expected");if(m4(Z,Z.lineIndent-1,w5,!1,!0),D1(Z,!0,-1),Z.checkLineBreaks&&qK.test(Z.input.slice(X,Z.position)))T5(Z,"non-ASCII line breaks are interpreted as content");if(Z.documents.push(Z.result),Z.position===Z.lineStart&&E5(Z)){if(Z.input.charCodeAt(Z.position)===46)Z.position+=3,D1(Z,!0,-1);return}if(Z.position<Z.length-1)r(Z,"end of the stream or a document separator is expected");else return}function G2(Z,X){if(Z=String(Z),X=X||{},Z.length!==0){if(Z.charCodeAt(Z.length-1)!==10&&Z.charCodeAt(Z.length-1)!==13)Z+=`
193
+ `;if(Z.charCodeAt(0)===65279)Z=Z.slice(1)}var J=new VK(Z,X),G=Z.indexOf("\x00");if(G!==-1)J.position=G,r(J,"null byte is not allowed in input");J.input+="\x00";while(J.input.charCodeAt(J.position)===32)J.lineIndent+=1,J.position+=1;while(J.position<J.length-1)IK(J);return J.documents}function AK(Z,X,J){if(X!==null&&typeof X==="object"&&typeof J>"u")J=X,X=null;var G=G2(Z,J);if(typeof X!=="function")return G;for(var Q=0,U=G.length;Q<U;Q+=1)X(G[Q])}function PK(Z,X){var J=G2(Z,X);if(J.length===0)return;else if(J.length===1)return J[0];throw new k1("expected a single document in the stream, but found more")}var wK=AK,TK=PK,Q2={loadAll:wK,load:TK},U2=Object.prototype.toString,W2=Object.prototype.hasOwnProperty,y8=65279,CK=9,S7=10,jK=13,EK=32,SK=33,bK=34,C8=35,xK=37,gK=38,kK=39,yK=42,q2=44,vK=45,C5=58,hK=61,mK=62,uK=63,pK=64,Y2=91,H2=93,fK=96,K2=123,lK=124,$2=125,E1={};E1[0]="\\0";E1[7]="\\a";E1[8]="\\b";E1[9]="\\t";E1[10]="\\n";E1[11]="\\v";E1[12]="\\f";E1[13]="\\r";E1[27]="\\e";E1[34]="\\\"";E1[92]="\\\\";E1[133]="\\N";E1[160]="\\_";E1[8232]="\\L";E1[8233]="\\P";var iK=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],dK=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function rK(Z,X){var J,G,Q,U,W,q,Y;if(X===null)return{};J={},G=Object.keys(X);for(Q=0,U=G.length;Q<U;Q+=1){if(W=G[Q],q=String(X[W]),W.slice(0,2)==="!!")W="tag:yaml.org,2002:"+W.slice(2);if(Y=Z.compiledTypeMap.fallback[W],Y&&W2.call(Y.styleAliases,q))q=Y.styleAliases[q];J[W]=q}return J}function cK(Z){var X,J,G;if(X=Z.toString(16).toUpperCase(),Z<=255)J="x",G=2;else if(Z<=65535)J="u",G=4;else if(Z<=4294967295)J="U",G=8;else throw new k1("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+J+N1.repeat("0",G-X.length)+X}var nK=1,b7=2;function aK(Z){this.schema=Z.schema||x8,this.indent=Math.max(1,Z.indent||2),this.noArrayIndent=Z.noArrayIndent||!1,this.skipInvalid=Z.skipInvalid||!1,this.flowLevel=N1.isNothing(Z.flowLevel)?-1:Z.flowLevel,this.styleMap=rK(this.schema,Z.styles||null),this.sortKeys=Z.sortKeys||!1,this.lineWidth=Z.lineWidth||80,this.noRefs=Z.noRefs||!1,this.noCompatMode=Z.noCompatMode||!1,this.condenseFlow=Z.condenseFlow||!1,this.quotingType=Z.quotingType==='"'?b7:nK,this.forceQuotes=Z.forceQuotes||!1,this.replacer=typeof Z.replacer==="function"?Z.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function OX(Z,X){var J=N1.repeat(" ",X),G=0,Q=-1,U="",W,q=Z.length;while(G<q){if(Q=Z.indexOf(`
194
194
  `,G),Q===-1)W=Z.slice(G),G=q;else W=Z.slice(G,Q+1),G=Q+1;if(W.length&&W!==`
195
195
  `)U+=J;U+=W}return U}function j8(Z,X){return`
196
- `+N1.repeat(" ",Z.indent*X)}function aK(Z,X){var J,G,Q;for(J=0,G=Z.implicitTypes.length;J<G;J+=1)if(Q=Z.implicitTypes[J],Q.resolve(X))return!0;return!1}function j5(Z){return Z===jK||Z===TK}function x7(Z){return 32<=Z&&Z<=126||161<=Z&&Z<=55295&&Z!==8232&&Z!==8233||57344<=Z&&Z<=65533&&Z!==y8||65536<=Z&&Z<=1114111}function NX(Z){return x7(Z)&&Z!==y8&&Z!==CK&&Z!==S7}function LX(Z,X,J){var G=NX(Z),Q=G&&!j5(Z);return(J?G:G&&Z!==q2&&Z!==Y2&&Z!==H2&&Z!==K2&&Z!==$2)&&Z!==C8&&!(X===C5&&!Q)||NX(X)&&!j5(X)&&Z===C8||X===C5&&Q}function sK(Z){return x7(Z)&&Z!==y8&&!j5(Z)&&Z!==yK&&Z!==mK&&Z!==C5&&Z!==q2&&Z!==Y2&&Z!==H2&&Z!==K2&&Z!==$2&&Z!==C8&&Z!==xK&&Z!==kK&&Z!==EK&&Z!==fK&&Z!==vK&&Z!==hK&&Z!==gK&&Z!==SK&&Z!==bK&&Z!==uK&&Z!==pK}function oK(Z){return!j5(Z)&&Z!==C5}function j7(Z,X){var J=Z.charCodeAt(X),G;if(J>=55296&&J<=56319&&X+1<Z.length){if(G=Z.charCodeAt(X+1),G>=56320&&G<=57343)return(J-55296)*1024+G-56320+65536}return J}function z2(Z){var X=/^\n* /;return X.test(Z)}var V2=1,E8=2,B2=3,F2=4,y4=5;function tK(Z,X,J,G,Q,U,W,q){var Y,H=0,K=null,$=!1,B=!1,V=G!==-1,M=-1,_=sK(j7(Z,0))&&oK(j7(Z,Z.length-1));if(X||W)for(Y=0;Y<Z.length;H>=65536?Y+=2:Y++){if(H=j7(Z,Y),!x7(H))return y4;_=_&&LX(H,K,q),K=H}else{for(Y=0;Y<Z.length;H>=65536?Y+=2:Y++){if(H=j7(Z,Y),H===S7){if($=!0,V)B=B||Y-M-1>G&&Z[M+1]!==" ",M=Y}else if(!x7(H))return y4;_=_&&LX(H,K,q),K=H}B=B||V&&(Y-M-1>G&&Z[M+1]!==" ")}if(!$&&!B){if(_&&!W&&!Q(Z))return V2;return U===b7?y4:E8}if(J>9&&z2(Z))return y4;if(!W)return B?F2:B2;return U===b7?y4:E8}function eK(Z,X,J,G,Q){Z.dump=function(){if(X.length===0)return Z.quotingType===b7?'""':"''";if(!Z.noCompatMode){if(lK.indexOf(X)!==-1||iK.test(X))return Z.quotingType===b7?'"'+X+'"':"'"+X+"'"}var U=Z.indent*Math.max(1,J),W=Z.lineWidth===-1?-1:Math.max(Math.min(Z.lineWidth,40),Z.lineWidth-U),q=G||Z.flowLevel>-1&&J>=Z.flowLevel;function Y(H){return aK(Z,H)}switch(tK(X,q,Z.indent,W,Y,Z.quotingType,Z.forceQuotes&&!G,Q)){case V2:return X;case E8:return"'"+X.replace(/'/g,"''")+"'";case B2:return"|"+IX(X,Z.indent)+AX(OX(X,U));case F2:return">"+IX(X,Z.indent)+AX(OX(Z$(X,W),U));case y4:return'"'+X$(X)+'"';default:throw new k1("impossible error: invalid scalar style")}}()}function IX(Z,X){var J=z2(Z)?String(X):"",G=Z[Z.length-1]===`
196
+ `+N1.repeat(" ",Z.indent*X)}function sK(Z,X){var J,G,Q;for(J=0,G=Z.implicitTypes.length;J<G;J+=1)if(Q=Z.implicitTypes[J],Q.resolve(X))return!0;return!1}function j5(Z){return Z===EK||Z===CK}function x7(Z){return 32<=Z&&Z<=126||161<=Z&&Z<=55295&&Z!==8232&&Z!==8233||57344<=Z&&Z<=65533&&Z!==y8||65536<=Z&&Z<=1114111}function NX(Z){return x7(Z)&&Z!==y8&&Z!==jK&&Z!==S7}function LX(Z,X,J){var G=NX(Z),Q=G&&!j5(Z);return(J?G:G&&Z!==q2&&Z!==Y2&&Z!==H2&&Z!==K2&&Z!==$2)&&Z!==C8&&!(X===C5&&!Q)||NX(X)&&!j5(X)&&Z===C8||X===C5&&Q}function oK(Z){return x7(Z)&&Z!==y8&&!j5(Z)&&Z!==vK&&Z!==uK&&Z!==C5&&Z!==q2&&Z!==Y2&&Z!==H2&&Z!==K2&&Z!==$2&&Z!==C8&&Z!==gK&&Z!==yK&&Z!==SK&&Z!==lK&&Z!==hK&&Z!==mK&&Z!==kK&&Z!==bK&&Z!==xK&&Z!==pK&&Z!==fK}function tK(Z){return!j5(Z)&&Z!==C5}function j7(Z,X){var J=Z.charCodeAt(X),G;if(J>=55296&&J<=56319&&X+1<Z.length){if(G=Z.charCodeAt(X+1),G>=56320&&G<=57343)return(J-55296)*1024+G-56320+65536}return J}function z2(Z){var X=/^\n* /;return X.test(Z)}var V2=1,E8=2,B2=3,F2=4,y4=5;function eK(Z,X,J,G,Q,U,W,q){var Y,H=0,K=null,$=!1,B=!1,V=G!==-1,M=-1,_=oK(j7(Z,0))&&tK(j7(Z,Z.length-1));if(X||W)for(Y=0;Y<Z.length;H>=65536?Y+=2:Y++){if(H=j7(Z,Y),!x7(H))return y4;_=_&&LX(H,K,q),K=H}else{for(Y=0;Y<Z.length;H>=65536?Y+=2:Y++){if(H=j7(Z,Y),H===S7){if($=!0,V)B=B||Y-M-1>G&&Z[M+1]!==" ",M=Y}else if(!x7(H))return y4;_=_&&LX(H,K,q),K=H}B=B||V&&(Y-M-1>G&&Z[M+1]!==" ")}if(!$&&!B){if(_&&!W&&!Q(Z))return V2;return U===b7?y4:E8}if(J>9&&z2(Z))return y4;if(!W)return B?F2:B2;return U===b7?y4:E8}function Z$(Z,X,J,G,Q){Z.dump=function(){if(X.length===0)return Z.quotingType===b7?'""':"''";if(!Z.noCompatMode){if(iK.indexOf(X)!==-1||dK.test(X))return Z.quotingType===b7?'"'+X+'"':"'"+X+"'"}var U=Z.indent*Math.max(1,J),W=Z.lineWidth===-1?-1:Math.max(Math.min(Z.lineWidth,40),Z.lineWidth-U),q=G||Z.flowLevel>-1&&J>=Z.flowLevel;function Y(H){return sK(Z,H)}switch(eK(X,q,Z.indent,W,Y,Z.quotingType,Z.forceQuotes&&!G,Q)){case V2:return X;case E8:return"'"+X.replace(/'/g,"''")+"'";case B2:return"|"+IX(X,Z.indent)+AX(OX(X,U));case F2:return">"+IX(X,Z.indent)+AX(OX(X$(X,W),U));case y4:return'"'+J$(X)+'"';default:throw new k1("impossible error: invalid scalar style")}}()}function IX(Z,X){var J=z2(Z)?String(X):"",G=Z[Z.length-1]===`
197
197
  `,Q=G&&(Z[Z.length-2]===`
198
198
  `||Z===`
199
199
  `),U=Q?"+":G?"":"-";return J+U+`
200
200
  `}function AX(Z){return Z[Z.length-1]===`
201
- `?Z.slice(0,-1):Z}function Z$(Z,X){var J=/(\n+)([^\n]*)/g,G=function(){var H=Z.indexOf(`
201
+ `?Z.slice(0,-1):Z}function X$(Z,X){var J=/(\n+)([^\n]*)/g,G=function(){var H=Z.indexOf(`
202
202
  `);return H=H!==-1?H:Z.length,J.lastIndex=H,PX(Z.slice(0,H),X)}(),Q=Z[0]===`
203
203
  `||Z[0]===" ",U,W;while(W=J.exec(Z)){var q=W[1],Y=W[2];U=Y[0]===" ",G+=q+(!Q&&!U&&Y!==""?`
204
204
  `:"")+PX(Y,X),Q=U}return G}function PX(Z,X){if(Z===""||Z[0]===" ")return Z;var J=/ [^ ]/g,G,Q=0,U,W=0,q=0,Y="";while(G=J.exec(Z)){if(q=G.index,q-Q>X)U=W>Q?W:q,Y+=`
205
205
  `+Z.slice(Q,U),Q=U+1;W=q}if(Y+=`
206
206
  `,Z.length-Q>X&&W>Q)Y+=Z.slice(Q,W)+`
207
- `+Z.slice(W+1);else Y+=Z.slice(Q);return Y.slice(1)}function X$(Z){var X="",J=0,G;for(var Q=0;Q<Z.length;J>=65536?Q+=2:Q++)if(J=j7(Z,Q),G=E1[J],!G&&x7(J)){if(X+=Z[Q],J>=65536)X+=Z[Q+1]}else X+=G||rK(J);return X}function J$(Z,X,J){var G="",Q=Z.tag,U,W,q;for(U=0,W=J.length;U<W;U+=1){if(q=J[U],Z.replacer)q=Z.replacer.call(J,String(U),q);if(w0(Z,X,q,!1,!1)||typeof q>"u"&&w0(Z,X,null,!1,!1)){if(G!=="")G+=","+(!Z.condenseFlow?" ":"");G+=Z.dump}}Z.tag=Q,Z.dump="["+G+"]"}function wX(Z,X,J,G){var Q="",U=Z.tag,W,q,Y;for(W=0,q=J.length;W<q;W+=1){if(Y=J[W],Z.replacer)Y=Z.replacer.call(J,String(W),Y);if(w0(Z,X+1,Y,!0,!0,!1,!0)||typeof Y>"u"&&w0(Z,X+1,null,!0,!0,!1,!0)){if(!G||Q!=="")Q+=j8(Z,X);if(Z.dump&&S7===Z.dump.charCodeAt(0))Q+="-";else Q+="- ";Q+=Z.dump}}Z.tag=U,Z.dump=Q||"[]"}function G$(Z,X,J){var G="",Q=Z.tag,U=Object.keys(J),W,q,Y,H,K;for(W=0,q=U.length;W<q;W+=1){if(K="",G!=="")K+=", ";if(Z.condenseFlow)K+='"';if(Y=U[W],H=J[Y],Z.replacer)H=Z.replacer.call(J,Y,H);if(!w0(Z,X,Y,!1,!1))continue;if(Z.dump.length>1024)K+="? ";if(K+=Z.dump+(Z.condenseFlow?'"':"")+":"+(Z.condenseFlow?"":" "),!w0(Z,X,H,!1,!1))continue;K+=Z.dump,G+=K}Z.tag=Q,Z.dump="{"+G+"}"}function Q$(Z,X,J,G){var Q="",U=Z.tag,W=Object.keys(J),q,Y,H,K,$,B;if(Z.sortKeys===!0)W.sort();else if(typeof Z.sortKeys==="function")W.sort(Z.sortKeys);else if(Z.sortKeys)throw new k1("sortKeys must be a boolean or a function");for(q=0,Y=W.length;q<Y;q+=1){if(B="",!G||Q!=="")B+=j8(Z,X);if(H=W[q],K=J[H],Z.replacer)K=Z.replacer.call(J,H,K);if(!w0(Z,X+1,H,!0,!0,!0))continue;if($=Z.tag!==null&&Z.tag!=="?"||Z.dump&&Z.dump.length>1024,$)if(Z.dump&&S7===Z.dump.charCodeAt(0))B+="?";else B+="? ";if(B+=Z.dump,$)B+=j8(Z,X);if(!w0(Z,X+1,K,!0,$))continue;if(Z.dump&&S7===Z.dump.charCodeAt(0))B+=":";else B+=": ";B+=Z.dump,Q+=B}Z.tag=U,Z.dump=Q||"{}"}function TX(Z,X,J){var G,Q,U,W,q,Y;Q=J?Z.explicitTypes:Z.implicitTypes;for(U=0,W=Q.length;U<W;U+=1)if(q=Q[U],(q.instanceOf||q.predicate)&&(!q.instanceOf||typeof X==="object"&&X instanceof q.instanceOf)&&(!q.predicate||q.predicate(X))){if(J)if(q.multi&&q.representName)Z.tag=q.representName(X);else Z.tag=q.tag;else Z.tag="?";if(q.represent){if(Y=Z.styleMap[q.tag]||q.defaultStyle,U2.call(q.represent)==="[object Function]")G=q.represent(X,Y);else if(W2.call(q.represent,Y))G=q.represent[Y](X,Y);else throw new k1("!<"+q.tag+'> tag resolver accepts not "'+Y+'" style');Z.dump=G}return!0}return!1}function w0(Z,X,J,G,Q,U,W){if(Z.tag=null,Z.dump=J,!TX(Z,J,!1))TX(Z,J,!0);var q=U2.call(Z.dump),Y=G,H;if(G)G=Z.flowLevel<0||Z.flowLevel>X;var K=q==="[object Object]"||q==="[object Array]",$,B;if(K)$=Z.duplicates.indexOf(J),B=$!==-1;if(Z.tag!==null&&Z.tag!=="?"||B||Z.indent!==2&&X>0)Q=!1;if(B&&Z.usedDuplicates[$])Z.dump="*ref_"+$;else{if(K&&B&&!Z.usedDuplicates[$])Z.usedDuplicates[$]=!0;if(q==="[object Object]"){if(G&&Object.keys(Z.dump).length!==0){if(Q$(Z,X,Z.dump,Q),B)Z.dump="&ref_"+$+Z.dump}else if(G$(Z,X,Z.dump),B)Z.dump="&ref_"+$+" "+Z.dump}else if(q==="[object Array]"){if(G&&Z.dump.length!==0){if(Z.noArrayIndent&&!W&&X>0)wX(Z,X-1,Z.dump,Q);else wX(Z,X,Z.dump,Q);if(B)Z.dump="&ref_"+$+Z.dump}else if(J$(Z,X,Z.dump),B)Z.dump="&ref_"+$+" "+Z.dump}else if(q==="[object String]"){if(Z.tag!=="?")eK(Z,Z.dump,X,U,Y)}else if(q==="[object Undefined]")return!1;else{if(Z.skipInvalid)return!1;throw new k1("unacceptable kind of an object to dump "+q)}if(Z.tag!==null&&Z.tag!=="?"){if(H=encodeURI(Z.tag[0]==="!"?Z.tag.slice(1):Z.tag).replace(/!/g,"%21"),Z.tag[0]==="!")H="!"+H;else if(H.slice(0,18)==="tag:yaml.org,2002:")H="!!"+H.slice(18);else H="!<"+H+">";Z.dump=H+" "+Z.dump}}return!0}function U$(Z,X){var J=[],G=[],Q,U;S8(Z,J,G);for(Q=0,U=G.length;Q<U;Q+=1)X.duplicates.push(J[G[Q]]);X.usedDuplicates=Array(U)}function S8(Z,X,J){var G,Q,U;if(Z!==null&&typeof Z==="object")if(Q=X.indexOf(Z),Q!==-1){if(J.indexOf(Q)===-1)J.push(Q)}else if(X.push(Z),Array.isArray(Z))for(Q=0,U=Z.length;Q<U;Q+=1)S8(Z[Q],X,J);else{G=Object.keys(Z);for(Q=0,U=G.length;Q<U;Q+=1)S8(Z[G[Q]],X,J)}}function W$(Z,X){X=X||{};var J=new nK(X);if(!J.noRefs)U$(Z,J);var G=Z;if(J.replacer)G=J.replacer.call({"":G},"",G);if(w0(J,0,G,!0,!0))return J.dump+`
208
- `;return""}var q$=W$,Y$={dump:q$};function v8(Z,X){return function(){throw Error("Function yaml."+Z+" is removed in js-yaml 4. Use yaml."+X+" instead, which is now safe by default.")}}var H$=w1,K$=EX,$$=gX,h8=mX,z$=uX,V$=x8,B$=Q2.load,F$=Q2.loadAll,M$=Y$.dump,D$=k1,_$={binary:dX,float:hX,map:xX,null:kX,pairs:cX,set:nX,timestamp:lX,bool:yX,int:vX,merge:iX,omap:rX,seq:bX,str:SX},R$=v8("safeLoad","load"),O$=v8("safeLoadAll","loadAll"),N$=v8("safeDump","dump"),m8={Type:H$,Schema:K$,FAILSAFE_SCHEMA:$$,JSON_SCHEMA:h8,CORE_SCHEMA:z$,DEFAULT_SCHEMA:V$,load:B$,loadAll:F$,dump:M$,YAMLException:D$,types:_$,safeLoad:R$,safeLoadAll:O$,safeDump:N$};var M2={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(Z){let X=Z.data;if(Buffer.isBuffer(X))X=X.toString();if(typeof X==="string")try{return m8.load(X,{schema:h8})}catch{try{return m8.load(X)}catch(J){throw new e1(J?.message||"Parser Error",Z.url)}}else return X}};var L$=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i,D2={order:300,allowEmpty:!0,encoding:"utf8",canParse(Z){return(typeof Z.data==="string"||Buffer.isBuffer(Z.data))&&L$.test(Z.url)},parse(Z){if(typeof Z.data==="string")return Z.data;else if(Buffer.isBuffer(Z.data))return Z.data.toString(this.encoding);else throw new e1("data is not text",Z.url)}};var I$=/\.(jpeg|jpg|gif|png|bmp|ico)$/i,_2={order:400,allowEmpty:!0,canParse(Z){return Buffer.isBuffer(Z.data)&&I$.test(Z.url)},parse(Z){if(Buffer.isBuffer(Z.data))return Z.data;else return Buffer.from(Z.data)}};var u8={order:100,canRead(Z){return F5(Z.url)},async read(Z){let X,J=await import("fs");try{X=x4(Z.url)}catch(G){let Q=G;throw Q.message=`Malformed URI: ${Z.url}: ${Q.message}`,new X0(Q,Z.url)}if(X.endsWith("/")||X.endsWith("\\"))X=X.slice(0,-1);try{return await J.promises.readFile(X)}catch(G){let Q=G;throw Q.message=`Error opening file ${X}: ${Q.message}`,new X0(Q,X)}}};var p8={order:200,headers:null,timeout:60000,redirects:5,withCredentials:!1,safeUrlResolver:!0,canRead(Z){return GX(Z.url)&&(!this.safeUrlResolver||!D8(Z.url))},read(Z){let X=b4(Z.url);if(typeof window<"u"&&!X.protocol)X.protocol=b4(location.href).protocol;return R2(X,this)}};async function R2(Z,X,J){Z=b4(Z);let G=J||[];G.push(Z.href);try{let Q=await A$(Z,X);if(Q.status>=400){let U=Error(`HTTP ERROR ${Q.status}`);throw U.status=Q.status,U}else if(Q.status>=300)if(!Number.isNaN(X.redirects)&&G.length>X.redirects){let U=Error(`Error downloading ${G[0]}.
207
+ `+Z.slice(W+1);else Y+=Z.slice(Q);return Y.slice(1)}function J$(Z){var X="",J=0,G;for(var Q=0;Q<Z.length;J>=65536?Q+=2:Q++)if(J=j7(Z,Q),G=E1[J],!G&&x7(J)){if(X+=Z[Q],J>=65536)X+=Z[Q+1]}else X+=G||cK(J);return X}function G$(Z,X,J){var G="",Q=Z.tag,U,W,q;for(U=0,W=J.length;U<W;U+=1){if(q=J[U],Z.replacer)q=Z.replacer.call(J,String(U),q);if(w0(Z,X,q,!1,!1)||typeof q>"u"&&w0(Z,X,null,!1,!1)){if(G!=="")G+=","+(!Z.condenseFlow?" ":"");G+=Z.dump}}Z.tag=Q,Z.dump="["+G+"]"}function wX(Z,X,J,G){var Q="",U=Z.tag,W,q,Y;for(W=0,q=J.length;W<q;W+=1){if(Y=J[W],Z.replacer)Y=Z.replacer.call(J,String(W),Y);if(w0(Z,X+1,Y,!0,!0,!1,!0)||typeof Y>"u"&&w0(Z,X+1,null,!0,!0,!1,!0)){if(!G||Q!=="")Q+=j8(Z,X);if(Z.dump&&S7===Z.dump.charCodeAt(0))Q+="-";else Q+="- ";Q+=Z.dump}}Z.tag=U,Z.dump=Q||"[]"}function Q$(Z,X,J){var G="",Q=Z.tag,U=Object.keys(J),W,q,Y,H,K;for(W=0,q=U.length;W<q;W+=1){if(K="",G!=="")K+=", ";if(Z.condenseFlow)K+='"';if(Y=U[W],H=J[Y],Z.replacer)H=Z.replacer.call(J,Y,H);if(!w0(Z,X,Y,!1,!1))continue;if(Z.dump.length>1024)K+="? ";if(K+=Z.dump+(Z.condenseFlow?'"':"")+":"+(Z.condenseFlow?"":" "),!w0(Z,X,H,!1,!1))continue;K+=Z.dump,G+=K}Z.tag=Q,Z.dump="{"+G+"}"}function U$(Z,X,J,G){var Q="",U=Z.tag,W=Object.keys(J),q,Y,H,K,$,B;if(Z.sortKeys===!0)W.sort();else if(typeof Z.sortKeys==="function")W.sort(Z.sortKeys);else if(Z.sortKeys)throw new k1("sortKeys must be a boolean or a function");for(q=0,Y=W.length;q<Y;q+=1){if(B="",!G||Q!=="")B+=j8(Z,X);if(H=W[q],K=J[H],Z.replacer)K=Z.replacer.call(J,H,K);if(!w0(Z,X+1,H,!0,!0,!0))continue;if($=Z.tag!==null&&Z.tag!=="?"||Z.dump&&Z.dump.length>1024,$)if(Z.dump&&S7===Z.dump.charCodeAt(0))B+="?";else B+="? ";if(B+=Z.dump,$)B+=j8(Z,X);if(!w0(Z,X+1,K,!0,$))continue;if(Z.dump&&S7===Z.dump.charCodeAt(0))B+=":";else B+=": ";B+=Z.dump,Q+=B}Z.tag=U,Z.dump=Q||"{}"}function TX(Z,X,J){var G,Q,U,W,q,Y;Q=J?Z.explicitTypes:Z.implicitTypes;for(U=0,W=Q.length;U<W;U+=1)if(q=Q[U],(q.instanceOf||q.predicate)&&(!q.instanceOf||typeof X==="object"&&X instanceof q.instanceOf)&&(!q.predicate||q.predicate(X))){if(J)if(q.multi&&q.representName)Z.tag=q.representName(X);else Z.tag=q.tag;else Z.tag="?";if(q.represent){if(Y=Z.styleMap[q.tag]||q.defaultStyle,U2.call(q.represent)==="[object Function]")G=q.represent(X,Y);else if(W2.call(q.represent,Y))G=q.represent[Y](X,Y);else throw new k1("!<"+q.tag+'> tag resolver accepts not "'+Y+'" style');Z.dump=G}return!0}return!1}function w0(Z,X,J,G,Q,U,W){if(Z.tag=null,Z.dump=J,!TX(Z,J,!1))TX(Z,J,!0);var q=U2.call(Z.dump),Y=G,H;if(G)G=Z.flowLevel<0||Z.flowLevel>X;var K=q==="[object Object]"||q==="[object Array]",$,B;if(K)$=Z.duplicates.indexOf(J),B=$!==-1;if(Z.tag!==null&&Z.tag!=="?"||B||Z.indent!==2&&X>0)Q=!1;if(B&&Z.usedDuplicates[$])Z.dump="*ref_"+$;else{if(K&&B&&!Z.usedDuplicates[$])Z.usedDuplicates[$]=!0;if(q==="[object Object]"){if(G&&Object.keys(Z.dump).length!==0){if(U$(Z,X,Z.dump,Q),B)Z.dump="&ref_"+$+Z.dump}else if(Q$(Z,X,Z.dump),B)Z.dump="&ref_"+$+" "+Z.dump}else if(q==="[object Array]"){if(G&&Z.dump.length!==0){if(Z.noArrayIndent&&!W&&X>0)wX(Z,X-1,Z.dump,Q);else wX(Z,X,Z.dump,Q);if(B)Z.dump="&ref_"+$+Z.dump}else if(G$(Z,X,Z.dump),B)Z.dump="&ref_"+$+" "+Z.dump}else if(q==="[object String]"){if(Z.tag!=="?")Z$(Z,Z.dump,X,U,Y)}else if(q==="[object Undefined]")return!1;else{if(Z.skipInvalid)return!1;throw new k1("unacceptable kind of an object to dump "+q)}if(Z.tag!==null&&Z.tag!=="?"){if(H=encodeURI(Z.tag[0]==="!"?Z.tag.slice(1):Z.tag).replace(/!/g,"%21"),Z.tag[0]==="!")H="!"+H;else if(H.slice(0,18)==="tag:yaml.org,2002:")H="!!"+H.slice(18);else H="!<"+H+">";Z.dump=H+" "+Z.dump}}return!0}function W$(Z,X){var J=[],G=[],Q,U;S8(Z,J,G);for(Q=0,U=G.length;Q<U;Q+=1)X.duplicates.push(J[G[Q]]);X.usedDuplicates=Array(U)}function S8(Z,X,J){var G,Q,U;if(Z!==null&&typeof Z==="object")if(Q=X.indexOf(Z),Q!==-1){if(J.indexOf(Q)===-1)J.push(Q)}else if(X.push(Z),Array.isArray(Z))for(Q=0,U=Z.length;Q<U;Q+=1)S8(Z[Q],X,J);else{G=Object.keys(Z);for(Q=0,U=G.length;Q<U;Q+=1)S8(Z[G[Q]],X,J)}}function q$(Z,X){X=X||{};var J=new aK(X);if(!J.noRefs)W$(Z,J);var G=Z;if(J.replacer)G=J.replacer.call({"":G},"",G);if(w0(J,0,G,!0,!0))return J.dump+`
208
+ `;return""}var Y$=q$,H$={dump:Y$};function v8(Z,X){return function(){throw Error("Function yaml."+Z+" is removed in js-yaml 4. Use yaml."+X+" instead, which is now safe by default.")}}var K$=w1,$$=EX,z$=gX,h8=mX,V$=uX,B$=x8,F$=Q2.load,M$=Q2.loadAll,D$=H$.dump,_$=k1,R$={binary:dX,float:hX,map:xX,null:kX,pairs:cX,set:nX,timestamp:lX,bool:yX,int:vX,merge:iX,omap:rX,seq:bX,str:SX},O$=v8("safeLoad","load"),N$=v8("safeLoadAll","loadAll"),L$=v8("safeDump","dump"),m8={Type:K$,Schema:$$,FAILSAFE_SCHEMA:z$,JSON_SCHEMA:h8,CORE_SCHEMA:V$,DEFAULT_SCHEMA:B$,load:F$,loadAll:M$,dump:D$,YAMLException:_$,types:R$,safeLoad:O$,safeLoadAll:N$,safeDump:L$};var M2={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(Z){let X=Z.data;if(Buffer.isBuffer(X))X=X.toString();if(typeof X==="string")try{return m8.load(X,{schema:h8})}catch{try{return m8.load(X)}catch(J){throw new e1(J?.message||"Parser Error",Z.url)}}else return X}};var I$=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i,D2={order:300,allowEmpty:!0,encoding:"utf8",canParse(Z){return(typeof Z.data==="string"||Buffer.isBuffer(Z.data))&&I$.test(Z.url)},parse(Z){if(typeof Z.data==="string")return Z.data;else if(Buffer.isBuffer(Z.data))return Z.data.toString(this.encoding);else throw new e1("data is not text",Z.url)}};var A$=/\.(jpeg|jpg|gif|png|bmp|ico)$/i,_2={order:400,allowEmpty:!0,canParse(Z){return Buffer.isBuffer(Z.data)&&A$.test(Z.url)},parse(Z){if(Buffer.isBuffer(Z.data))return Z.data;else return Buffer.from(Z.data)}};var u8={order:100,canRead(Z){return F5(Z.url)},async read(Z){let X,J=await import("fs");try{X=x4(Z.url)}catch(G){let Q=G;throw Q.message=`Malformed URI: ${Z.url}: ${Q.message}`,new X0(Q,Z.url)}if(X.endsWith("/")||X.endsWith("\\"))X=X.slice(0,-1);try{return await J.promises.readFile(X)}catch(G){let Q=G;throw Q.message=`Error opening file ${X}: ${Q.message}`,new X0(Q,X)}}};var p8={order:200,headers:null,timeout:60000,redirects:5,withCredentials:!1,safeUrlResolver:!0,canRead(Z){return GX(Z.url)&&(!this.safeUrlResolver||!D8(Z.url))},read(Z){let X=b4(Z.url);if(typeof window<"u"&&!X.protocol)X.protocol=b4(location.href).protocol;return R2(X,this)}};async function R2(Z,X,J){Z=b4(Z);let G=J||[];G.push(Z.href);try{let Q=await P$(Z,X);if(Q.status>=400){let U=Error(`HTTP ERROR ${Q.status}`);throw U.status=Q.status,U}else if(Q.status>=300)if(!Number.isNaN(X.redirects)&&G.length>X.redirects){let U=Error(`Error downloading ${G[0]}.
209
209
  Too many redirects:
210
210
  ${G.join(`
211
- `)}`);throw U.status=Q.status,new X0(U)}else if(!("location"in Q.headers)||!Q.headers.location){let U=Error(`HTTP ${Q.status} redirect with no location header`);throw U.status=Q.status,U}else{let U=O1(Z.href,Q.headers.location);return R2(U,X,G)}else{if(Q.body){let U=await Q.arrayBuffer();return Buffer.from(U)}return Buffer.alloc(0)}}catch(Q){let U=Q;throw U.message=`Error downloading ${Z.href}: ${U.message}`,new X0(U,Z.href)}}async function A$(Z,X){let J,G;if(X.timeout&&typeof AbortController<"u")J=new AbortController,G=setTimeout(()=>J.abort(),X.timeout);let Q=await fetch(Z,{method:"GET",headers:X.headers||{},credentials:X.withCredentials?"include":"same-origin",signal:J?J.signal:null});if(G)clearTimeout(G);return Q}var N2=()=>{return{parse:{json:{...zX},yaml:{...M2},text:{...D2},binary:{..._2}},resolve:{file:{...u8},http:{...p8},external:!0},continueOnError:!1,bundle:{excludedPathMatcher:()=>!1},dereference:{circular:!0,excludedPathMatcher:()=>!1,referenceResolution:"relative",mergeKeys:!0},mutateInputSchema:!0}},L2=(Z)=>{let X=N2();if(Z)I2(X,Z);return X};function I2(Z,X){if(O2(X)){let J=Object.keys(X).filter((G)=>!["__proto__","constructor","prototype"].includes(G));for(let G=0;G<J.length;G++){let Q=J[G],U=X[Q],W=Z[Q];if(O2(U))Z[Q]=I2(W||{},U);else if(U!==void 0)Z[Q]=U}}return Z}function O2(Z){return Z&&typeof Z==="object"&&!Array.isArray(Z)&&!(Z instanceof RegExp)&&!(Z instanceof Date)}function P$(Z){let X,J,G,Q,U=Array.prototype.slice.call(Z);if(typeof U[U.length-1]==="function")Q=U.pop();if(typeof U[0]==="string")if(X=U[0],typeof U[2]==="object")J=U[1],G=U[2];else J=void 0,G=U[1];else X="",J=U[0],G=U[1];try{G=L2(G)}catch(W){console.error(`JSON Schema Ref Parser: Error normalizing options: ${W}`)}if(!G.mutateInputSchema&&typeof J==="object")J=JSON.parse(JSON.stringify(J));return{path:X,schema:J,options:G,callback:Q}}var g7=P$;function w$(Z,X){if(!X.resolve?.external)return Promise.resolve();try{let J=Z.$refs._root$Ref.dynamicIdScope?g1(Z.$refs._root$Ref.path,Z.schema):Z.$refs._root$Ref.path,G=f8(Z.schema,Z.$refs._root$Ref.path+"#",J,Z.$refs._root$Ref.dynamicIdScope,Z.$refs,X);return Promise.all(G)}catch(J){return Promise.reject(J)}}function f8(Z,X,J,G,Q,U,W,q){W||=new Set;let Y=[];if(Z&&typeof Z==="object"&&!ArrayBuffer.isView(Z)&&!W.has(Z)){W.add(Z);let H=J;if($1.isExternal$Ref(Z))Y.push(T$(Z,X,H,G,Q,U));let K=Object.keys(Z);for(let $ of K){let B=m1.join(X,$),V=Z[$],M=G&&V&&typeof V==="object"&&!ArrayBuffer.isView(V)?g1(H,V):H;Y=Y.concat(f8(V,B,M,G,Q,U,W,q))}}return Y}async function T$(Z,X,J,G,Q,U){let q=U.dereference?.externalReferenceResolution==="root"?Q4():G?J:X,Y=O1(q,Z.$ref),H=V1(Y),K=Q._get$Ref(H);if(K)return Promise.resolve(K.value);try{let $=Z.$ref,B={url:Y,baseUrl:q};if(typeof $==="string")B.reference=$;let V=await A5(B,Q,U),M=Q._get$Ref(H),_=f8(V,H+"#",H,M?.dynamicIdScope??!1,Q,U,new Set,!0);return Promise.all(_)}catch($){if(!U?.continueOnError||!K0($))throw $;if(Q._$refs[H])$.source=decodeURI(V1(X)),$.path=M5(Y0(X));return[]}}var A2=w$;function C$(Z,X){let J=Z.$refs._root$Ref.dynamicIdScope?g1(Z.$refs._root$Ref.path,Z.schema):Z.$refs._root$Ref.path,G=[];l8(Z,"schema",Z.$refs._root$Ref.path+"#",J,Z.$refs._root$Ref.dynamicIdScope,"#",0,G,Z.$refs,X);let Q=Z.schema&&typeof Z.schema==="object"&&"$id"in Z.schema?Z.schema.$id:void 0;if(j$(G,X,Q),(X.bundle||{}).optimizeInternalRefs!==!1)b$(G,Z.schema)}function l8(Z,X,J,G,Q,U,W,q,Y,H){let K=X===null?Z:Z[X],$=H.bundle||{},B=$.excludedPathMatcher||(()=>!1);if(K&&typeof K==="object"&&!ArrayBuffer.isView(K)&&!B(U)){let V=G;if($1.isAllowed$Ref(K))P2(Z,X,J,V,Q,U,W,q,Y,H);else{let M=Object.keys(K).sort((_,D)=>{if(_==="definitions"||_==="$defs")return-1;else if(D==="definitions"||D==="$defs")return 1;else return _.length-D.length});for(let _ of M){let D=m1.join(J,_),R=m1.join(U,_),N=K[_],L=Q&&N&&typeof N==="object"&&!ArrayBuffer.isView(N)?g1(V,N):V;if($1.isAllowed$Ref(N))P2(K,_,D,L,Q,R,W,q,Y,H);else l8(K,_,D,L,Q,R,W,q,Y,H);if(N&&typeof N==="object"&&!Array.isArray(N)){if("$ref"in N)$?.onBundle?.(N.$ref,K[_],K,_)}}}}}function P2(Z,X,J,G,Q,U,W,q,Y,H){let K=X===null?Z:Z[X],$=O1(Q?G:J,K.$ref),B=Y._resolve($,U,H);if(B===null)return;let M=m1.parse(U).length,_=V1(B.path),D=Y0(B.path),R=_!==Y._root$Ref.path&&!Y._aliases[_],N=$1.isExtended$Ref(K);W+=B.indirections;let L=E$(q,Z,X);if(L)if(M<L.depth||W<L.indirections)S$(q,L);else return;if(q.push({$ref:K,parent:Z,key:X,pathFromRoot:U,depth:M,file:_,hash:D,value:B.value,circular:B.circular,extended:N,external:R,indirections:W}),!L||R)l8(B.value,null,B.path,B.$ref.path,B.$ref.dynamicIdScope,U,W+1,q,Y,H)}function j$(Z,X,J){Z.sort((W,q)=>{if(W.file!==q.file)return W.file<q.file?-1:1;else if(W.hash!==q.hash)return W.hash<q.hash?-1:1;else if(W.circular!==q.circular)return W.circular?-1:1;else if(W.extended!==q.extended)return W.extended?1:-1;else if(W.indirections!==q.indirections)return W.indirections-q.indirections;else if(W.depth!==q.depth)return W.depth-q.depth;else{let Y=Math.max(W.pathFromRoot.lastIndexOf("/definitions"),W.pathFromRoot.lastIndexOf("/$defs")),H=Math.max(q.pathFromRoot.lastIndexOf("/definitions"),q.pathFromRoot.lastIndexOf("/$defs"));if(Y!==H)return H-Y;else return W.pathFromRoot.length-q.pathFromRoot.length}});let G,Q,U;for(let W of Z){let q=X.bundle||{};if(!W.external){if(q.optimizeInternalRefs!==!1)W.$ref.$ref=W.hash}else if(W.file===G&&W.hash===Q)if(J&&w2(Z,W))W.$ref.$ref=J+U;else W.$ref.$ref=U;else if(W.file===G&&W.hash.indexOf(Q+"/")===0){let Y=m1.join(U,m1.parse(W.hash.replace(Q,"#")));if(J&&w2(Z,W))W.$ref.$ref=J+Y;else W.$ref.$ref=Y}else if(G=W.file,Q=W.hash,U=W.pathFromRoot,W.$ref=W.parent[W.key]=$1.dereference(W.$ref,W.value,X),W.circular)W.$ref.$ref=W.pathFromRoot}}function E$(Z,X,J){for(let G of Z)if(G&&G.parent===X&&G.key===J)return G;return}function S$(Z,X){let J=Z.indexOf(X);Z.splice(J,1)}function b$(Z,X){for(let J of Z){if(!J.$ref||typeof J.$ref!=="object"||!("$ref"in J.$ref))continue;let G=J.$ref.$ref;if(typeof G!=="string"||!G.startsWith("#/"))continue;let Q=x$(X,G);if(Q!==G)J.$ref.$ref=Q}}function x$(Z,X){if(!X.startsWith("#/"))return X;let J=X.slice(2).split("/"),G=Z,Q=[];for(let W of J){if(G===null||G===void 0||typeof G!=="object")return X;if("$ref"in G&&typeof G.$ref==="string"&&G.$ref.startsWith("#/")){let H=G.$ref.slice(2).split("/");if(Q.length=0,Q.push(...H),G=g$(Z,G.$ref),G===null||G===void 0||typeof G!=="object")return X}let q=W.replace(/~1/g,"/").replace(/~0/g,"~"),Y=Array.isArray(G)?parseInt(q):q;G=G[Y],Q.push(W)}return"#/"+Q.join("/")}function g$(Z,X){if(!X.startsWith("#/"))return;let J=X.slice(2).split("/"),G=Z;for(let Q of J){if(G===null||G===void 0||typeof G!=="object")return;let U=Q.replace(/~1/g,"/").replace(/~0/g,"~"),W=Array.isArray(G)?parseInt(U):U;G=G[W]}return G}function w2(Z,X){for(let J of Z){if(J.pathFromRoot==="#"||J.pathFromRoot==="#/")continue;if(X.pathFromRoot.startsWith(J.pathFromRoot+"/")){if(J.value&&typeof J.value==="object"&&"$id"in J.value)return!0}}return!1}var T2=C$;var E2=k$;function k$(Z,X){let J=Date.now(),G=Z.$refs._root$Ref.dynamicIdScope?g1(Z.$refs._root$Ref.path,Z.schema):Z.$refs._root$Ref.path,Q=i8(Z.schema,Z.$refs._root$Ref.path,G,Z.$refs._root$Ref.dynamicIdScope,"#",new Set,new Set,new Map,Z.$refs,X,J,0);Z.$refs.circular=Q.circular,Z.schema=Q.value}function i8(Z,X,J,G,Q,U,W,q,Y,H,K,$){let B,V={value:Z,circular:!1};j2(K,H);let M=H.dereference||{},_=M.maxDepth??500;if($>_)throw RangeError(`Maximum dereference depth (${_}) exceeded at ${Q}. This likely indicates an extremely deep or recursive schema. You can increase this limit with the dereference.maxDepth option.`);let D=M.excludedPathMatcher||(()=>!1);if(M?.circular==="ignore"||!W.has(Z)){if(Z&&typeof Z==="object"&&!ArrayBuffer.isView(Z)&&!D(Q)){U.add(Z),W.add(Z);let R=J;if($1.isAllowed$Ref(Z,H))B=C2(Z,X,R,G,Q,U,W,q,Y,H,K,$),V.circular=B.circular,V.value=B.value;else for(let N of Object.keys(Z)){j2(K,H);let L=m1.join(X,N),E=m1.join(Q,N);if(D(E))continue;let m=Z[N],w=G&&m&&typeof m==="object"&&!ArrayBuffer.isView(m)?g1(R,m):R,y;if($1.isAllowed$Ref(m,H)){if(B=C2(m,L,w,G,E,U,W,q,Y,H,K,$),y=B.circular,Z[N]!==B.value){let h=new Map;if(M?.preservedProperties){if(typeof Z[N]==="object"&&!Array.isArray(Z[N]))M?.preservedProperties.forEach((P)=>{if(P in Z[N])h.set(P,Z[N][P])})}let j=B.value;if(M?.cloneReferences&&!y&&j&&typeof j==="object")j=structuredClone(j);if(Z[N]=j,M?.preservedProperties){if(h.size&&typeof Z[N]==="object"&&!Array.isArray(Z[N]))h.forEach((P,n)=>{Z[N][n]=P})}M?.onDereference?.(m.$ref,Z[N],Z,N)}}else if(!U.has(m)){if(B=i8(m,L,w,G,E,U,W,q,Y,H,K,$+1),y=B.circular,Z[N]!==B.value)Z[N]=B.value}else y=S5(L,Y,H);V.circular=V.circular||y}U.delete(Z)}}return V}function C2(Z,X,J,G,Q,U,W,q,Y,H,K,$){let M=$1.isExternal$Ref(Z)&&H?.dereference?.externalReferenceResolution==="root"?Q4():G?J:X,_=O1(M,Z.$ref),D=q.get(_);if(D){if(!D.circular){let w=Object.keys(Z);if(w.length>1){let y={};for(let h of w)if(h!=="$ref"&&!(h in D.value))y[h]=Z[h];return{circular:D.circular,value:Object.assign({},D.value,y)}}return D}if(typeof D.value==="object"&&"$ref"in D.value&&"$ref"in Z){if(D.value.$ref===Z.$ref)return S5(X,Y,H),D}else return S5(X,Y,H),D}let R=Y._resolve(_,X,H);if(R===null)return{circular:!1,value:null};let N=R.circular,L=N||U.has(R.value);if(L)S5(X,Y,H);let E=$1.dereference(Z,R.value,H);if(!L){let w=i8(E,R.path,R.$ref.path,R.$ref.dynamicIdScope,Q,U,W,q,Y,H,K,$+1);L=w.circular,E=w.value}if(L&&!N&&H.dereference?.circular==="ignore")E=Z;if(N)E.$ref=Q;let m={circular:L,value:E};if(Object.keys(Z).length===1)q.set(_,m);return m}function j2(Z,X){if(X&&X.timeoutMs){if(Date.now()-Z>X.timeoutMs)throw new _8(X.timeoutMs)}}function S5(Z,X,J){if(X.circular=!0,J?.dereference?.onCircular?.(Z),!J.dereference.circular)throw ReferenceError(`Circular $ref pointer found at ${Z}`);return!0}function y$(){if(typeof process==="object"&&typeof process.nextTick==="function")return process.nextTick;else if(typeof setImmediate==="function")return setImmediate;else return function(X){setTimeout(X,0)}}var d8=y$();function i1(Z,X){if(Z){X.then(function(J){d8(function(){Z(null,J)})},function(J){d8(function(){Z(J)})});return}else return X}class z0{schema=null;$refs=new C7;async parse(){let Z=g7(arguments),X;if(!Z.path&&!Z.schema){let G=Error(`Expected a file path, URL, or object. Got ${Z.path||Z.schema}`);return i1(Z.callback,Promise.reject(G))}this.schema=null,this.$refs=new C7;let J="http";if(F5(Z.path))Z.path=QX(Z.path),J="file";else if(!Z.path&&Z.schema&&"$id"in Z.schema&&Z.schema.$id){let G=b4(Z.schema.$id),Q=G.port??(G.protocol==="https:"?443:80);Z.path=`${G.protocol}//${G.hostname}:${Q}`}if(Z.path=O1(Q4(),Z.path),Z.schema&&typeof Z.schema==="object"){let G=this.$refs._add(Z.path);G.value=Z.schema,G.pathType=J,G.dynamicIdScope=O5(G.value),N5(this.$refs,G.path,G.value,G.pathType,G.dynamicIdScope),X=Promise.resolve(Z.schema)}else X=A5(Z.path,this.$refs,Z.options);try{let G=await X;if(G!==null&&typeof G==="object"&&!Buffer.isBuffer(G))return this.schema=G,i1(Z.callback,Promise.resolve(this.schema));else if(Z.options.continueOnError)return this.schema=null,i1(Z.callback,Promise.resolve(this.schema));else throw SyntaxError(`"${this.$refs._root$Ref.path||G}" is not a valid JSON Schema`)}catch(G){if(!Z.options.continueOnError||!K0(G))return i1(Z.callback,Promise.reject(G));if(this.$refs._$refs[V1(Z.path)])this.$refs._$refs[V1(Z.path)].addError(G);return i1(Z.callback,Promise.resolve(null))}}static parse(){let Z=new z0;return Z.parse.apply(Z,arguments)}async resolve(){let Z=g7(arguments);try{return await this.parse(Z.path,Z.schema,Z.options),await A2(this,Z.options),r8(this),i1(Z.callback,Promise.resolve(this.$refs))}catch(X){return i1(Z.callback,Promise.reject(X))}}static resolve(){let Z=new z0;return Z.resolve.apply(Z,arguments)}static bundle(){let Z=new z0;return Z.bundle.apply(Z,arguments)}async bundle(){let Z=g7(arguments);try{return await this.resolve(Z.path,Z.schema,Z.options),T2(this,Z.options),r8(this),i1(Z.callback,Promise.resolve(this.schema))}catch(X){return i1(Z.callback,Promise.reject(X))}}static dereference(){let Z=new z0;return Z.dereference.apply(Z,arguments)}async dereference(){let Z=g7(arguments);try{return await this.resolve(Z.path,Z.schema,Z.options),E2(this,Z.options),r8(this),i1(Z.callback,Promise.resolve(this.schema))}catch(X){return i1(Z.callback,Promise.reject(X))}}}var S2=z0;function r8(Z){if(g4.getParserErrors(Z).length>0)throw new g4(Z)}var{parse:$N,resolve:zN,bundle:VN,dereference:BN}=z0;async function b2(Z,X={}){let{baseUrl:J="/_jx/server"}=X,G=await S2.dereference(Z),Q=eZ(G);if(Q.length===0)return null;let U=Q.map(({exportName:q,src:Y})=>`import { ${q} } from '${Y}'`).join(`
212
- `),W=Q.map(({exportName:q})=>`
213
- app.post('${J}/${q}', async (c) => {
214
- const args = await c.req.json().catch(() => ({}))
215
- return c.json(await ${q}(args))
216
- })`).join(`
211
+ `)}`);throw U.status=Q.status,new X0(U)}else if(!("location"in Q.headers)||!Q.headers.location){let U=Error(`HTTP ${Q.status} redirect with no location header`);throw U.status=Q.status,U}else{let U=O1(Z.href,Q.headers.location);return R2(U,X,G)}else{if(Q.body){let U=await Q.arrayBuffer();return Buffer.from(U)}return Buffer.alloc(0)}}catch(Q){let U=Q;throw U.message=`Error downloading ${Z.href}: ${U.message}`,new X0(U,Z.href)}}async function P$(Z,X){let J,G;if(X.timeout&&typeof AbortController<"u")J=new AbortController,G=setTimeout(()=>J.abort(),X.timeout);let Q=await fetch(Z,{method:"GET",headers:X.headers||{},credentials:X.withCredentials?"include":"same-origin",signal:J?J.signal:null});if(G)clearTimeout(G);return Q}var N2=()=>{return{parse:{json:{...zX},yaml:{...M2},text:{...D2},binary:{..._2}},resolve:{file:{...u8},http:{...p8},external:!0},continueOnError:!1,bundle:{excludedPathMatcher:()=>!1},dereference:{circular:!0,excludedPathMatcher:()=>!1,referenceResolution:"relative",mergeKeys:!0},mutateInputSchema:!0}},L2=(Z)=>{let X=N2();if(Z)I2(X,Z);return X};function I2(Z,X){if(O2(X)){let J=Object.keys(X).filter((G)=>!["__proto__","constructor","prototype"].includes(G));for(let G=0;G<J.length;G++){let Q=J[G],U=X[Q],W=Z[Q];if(O2(U))Z[Q]=I2(W||{},U);else if(U!==void 0)Z[Q]=U}}return Z}function O2(Z){return Z&&typeof Z==="object"&&!Array.isArray(Z)&&!(Z instanceof RegExp)&&!(Z instanceof Date)}function w$(Z){let X,J,G,Q,U=Array.prototype.slice.call(Z);if(typeof U[U.length-1]==="function")Q=U.pop();if(typeof U[0]==="string")if(X=U[0],typeof U[2]==="object")J=U[1],G=U[2];else J=void 0,G=U[1];else X="",J=U[0],G=U[1];try{G=L2(G)}catch(W){console.error(`JSON Schema Ref Parser: Error normalizing options: ${W}`)}if(!G.mutateInputSchema&&typeof J==="object")J=JSON.parse(JSON.stringify(J));return{path:X,schema:J,options:G,callback:Q}}var g7=w$;function T$(Z,X){if(!X.resolve?.external)return Promise.resolve();try{let J=Z.$refs._root$Ref.dynamicIdScope?g1(Z.$refs._root$Ref.path,Z.schema):Z.$refs._root$Ref.path,G=f8(Z.schema,Z.$refs._root$Ref.path+"#",J,Z.$refs._root$Ref.dynamicIdScope,Z.$refs,X);return Promise.all(G)}catch(J){return Promise.reject(J)}}function f8(Z,X,J,G,Q,U,W,q){W||=new Set;let Y=[];if(Z&&typeof Z==="object"&&!ArrayBuffer.isView(Z)&&!W.has(Z)){W.add(Z);let H=J;if($1.isExternal$Ref(Z))Y.push(C$(Z,X,H,G,Q,U));let K=Object.keys(Z);for(let $ of K){let B=m1.join(X,$),V=Z[$],M=G&&V&&typeof V==="object"&&!ArrayBuffer.isView(V)?g1(H,V):H;Y=Y.concat(f8(V,B,M,G,Q,U,W,q))}}return Y}async function C$(Z,X,J,G,Q,U){let q=U.dereference?.externalReferenceResolution==="root"?Q4():G?J:X,Y=O1(q,Z.$ref),H=V1(Y),K=Q._get$Ref(H);if(K)return Promise.resolve(K.value);try{let $=Z.$ref,B={url:Y,baseUrl:q};if(typeof $==="string")B.reference=$;let V=await A5(B,Q,U),M=Q._get$Ref(H),_=f8(V,H+"#",H,M?.dynamicIdScope??!1,Q,U,new Set,!0);return Promise.all(_)}catch($){if(!U?.continueOnError||!K0($))throw $;if(Q._$refs[H])$.source=decodeURI(V1(X)),$.path=M5(Y0(X));return[]}}var A2=T$;function j$(Z,X){let J=Z.$refs._root$Ref.dynamicIdScope?g1(Z.$refs._root$Ref.path,Z.schema):Z.$refs._root$Ref.path,G=[];l8(Z,"schema",Z.$refs._root$Ref.path+"#",J,Z.$refs._root$Ref.dynamicIdScope,"#",0,G,Z.$refs,X);let Q=Z.schema&&typeof Z.schema==="object"&&"$id"in Z.schema?Z.schema.$id:void 0;if(E$(G,X,Q),(X.bundle||{}).optimizeInternalRefs!==!1)x$(G,Z.schema)}function l8(Z,X,J,G,Q,U,W,q,Y,H){let K=X===null?Z:Z[X],$=H.bundle||{},B=$.excludedPathMatcher||(()=>!1);if(K&&typeof K==="object"&&!ArrayBuffer.isView(K)&&!B(U)){let V=G;if($1.isAllowed$Ref(K))P2(Z,X,J,V,Q,U,W,q,Y,H);else{let M=Object.keys(K).sort((_,D)=>{if(_==="definitions"||_==="$defs")return-1;else if(D==="definitions"||D==="$defs")return 1;else return _.length-D.length});for(let _ of M){let D=m1.join(J,_),R=m1.join(U,_),N=K[_],L=Q&&N&&typeof N==="object"&&!ArrayBuffer.isView(N)?g1(V,N):V;if($1.isAllowed$Ref(N))P2(K,_,D,L,Q,R,W,q,Y,H);else l8(K,_,D,L,Q,R,W,q,Y,H);if(N&&typeof N==="object"&&!Array.isArray(N)){if("$ref"in N)$?.onBundle?.(N.$ref,K[_],K,_)}}}}}function P2(Z,X,J,G,Q,U,W,q,Y,H){let K=X===null?Z:Z[X],$=O1(Q?G:J,K.$ref),B=Y._resolve($,U,H);if(B===null)return;let M=m1.parse(U).length,_=V1(B.path),D=Y0(B.path),R=_!==Y._root$Ref.path&&!Y._aliases[_],N=$1.isExtended$Ref(K);W+=B.indirections;let L=S$(q,Z,X);if(L)if(M<L.depth||W<L.indirections)b$(q,L);else return;if(q.push({$ref:K,parent:Z,key:X,pathFromRoot:U,depth:M,file:_,hash:D,value:B.value,circular:B.circular,extended:N,external:R,indirections:W}),!L||R)l8(B.value,null,B.path,B.$ref.path,B.$ref.dynamicIdScope,U,W+1,q,Y,H)}function E$(Z,X,J){Z.sort((W,q)=>{if(W.file!==q.file)return W.file<q.file?-1:1;else if(W.hash!==q.hash)return W.hash<q.hash?-1:1;else if(W.circular!==q.circular)return W.circular?-1:1;else if(W.extended!==q.extended)return W.extended?1:-1;else if(W.indirections!==q.indirections)return W.indirections-q.indirections;else if(W.depth!==q.depth)return W.depth-q.depth;else{let Y=Math.max(W.pathFromRoot.lastIndexOf("/definitions"),W.pathFromRoot.lastIndexOf("/$defs")),H=Math.max(q.pathFromRoot.lastIndexOf("/definitions"),q.pathFromRoot.lastIndexOf("/$defs"));if(Y!==H)return H-Y;else return W.pathFromRoot.length-q.pathFromRoot.length}});let G,Q,U;for(let W of Z){let q=X.bundle||{};if(!W.external){if(q.optimizeInternalRefs!==!1)W.$ref.$ref=W.hash}else if(W.file===G&&W.hash===Q)if(J&&w2(Z,W))W.$ref.$ref=J+U;else W.$ref.$ref=U;else if(W.file===G&&W.hash.indexOf(Q+"/")===0){let Y=m1.join(U,m1.parse(W.hash.replace(Q,"#")));if(J&&w2(Z,W))W.$ref.$ref=J+Y;else W.$ref.$ref=Y}else if(G=W.file,Q=W.hash,U=W.pathFromRoot,W.$ref=W.parent[W.key]=$1.dereference(W.$ref,W.value,X),W.circular)W.$ref.$ref=W.pathFromRoot}}function S$(Z,X,J){for(let G of Z)if(G&&G.parent===X&&G.key===J)return G;return}function b$(Z,X){let J=Z.indexOf(X);Z.splice(J,1)}function x$(Z,X){for(let J of Z){if(!J.$ref||typeof J.$ref!=="object"||!("$ref"in J.$ref))continue;let G=J.$ref.$ref;if(typeof G!=="string"||!G.startsWith("#/"))continue;let Q=g$(X,G);if(Q!==G)J.$ref.$ref=Q}}function g$(Z,X){if(!X.startsWith("#/"))return X;let J=X.slice(2).split("/"),G=Z,Q=[];for(let W of J){if(G===null||G===void 0||typeof G!=="object")return X;if("$ref"in G&&typeof G.$ref==="string"&&G.$ref.startsWith("#/")){let H=G.$ref.slice(2).split("/");if(Q.length=0,Q.push(...H),G=k$(Z,G.$ref),G===null||G===void 0||typeof G!=="object")return X}let q=W.replace(/~1/g,"/").replace(/~0/g,"~"),Y=Array.isArray(G)?parseInt(q):q;G=G[Y],Q.push(W)}return"#/"+Q.join("/")}function k$(Z,X){if(!X.startsWith("#/"))return;let J=X.slice(2).split("/"),G=Z;for(let Q of J){if(G===null||G===void 0||typeof G!=="object")return;let U=Q.replace(/~1/g,"/").replace(/~0/g,"~"),W=Array.isArray(G)?parseInt(U):U;G=G[W]}return G}function w2(Z,X){for(let J of Z){if(J.pathFromRoot==="#"||J.pathFromRoot==="#/")continue;if(X.pathFromRoot.startsWith(J.pathFromRoot+"/")){if(J.value&&typeof J.value==="object"&&"$id"in J.value)return!0}}return!1}var T2=j$;var E2=y$;function y$(Z,X){let J=Date.now(),G=Z.$refs._root$Ref.dynamicIdScope?g1(Z.$refs._root$Ref.path,Z.schema):Z.$refs._root$Ref.path,Q=i8(Z.schema,Z.$refs._root$Ref.path,G,Z.$refs._root$Ref.dynamicIdScope,"#",new Set,new Set,new Map,Z.$refs,X,J,0);Z.$refs.circular=Q.circular,Z.schema=Q.value}function i8(Z,X,J,G,Q,U,W,q,Y,H,K,$){let B,V={value:Z,circular:!1};j2(K,H);let M=H.dereference||{},_=M.maxDepth??500;if($>_)throw RangeError(`Maximum dereference depth (${_}) exceeded at ${Q}. This likely indicates an extremely deep or recursive schema. You can increase this limit with the dereference.maxDepth option.`);let D=M.excludedPathMatcher||(()=>!1);if(M?.circular==="ignore"||!W.has(Z)){if(Z&&typeof Z==="object"&&!ArrayBuffer.isView(Z)&&!D(Q)){U.add(Z),W.add(Z);let R=J;if($1.isAllowed$Ref(Z,H))B=C2(Z,X,R,G,Q,U,W,q,Y,H,K,$),V.circular=B.circular,V.value=B.value;else for(let N of Object.keys(Z)){j2(K,H);let L=m1.join(X,N),E=m1.join(Q,N);if(D(E))continue;let m=Z[N],w=G&&m&&typeof m==="object"&&!ArrayBuffer.isView(m)?g1(R,m):R,y;if($1.isAllowed$Ref(m,H)){if(B=C2(m,L,w,G,E,U,W,q,Y,H,K,$),y=B.circular,Z[N]!==B.value){let h=new Map;if(M?.preservedProperties){if(typeof Z[N]==="object"&&!Array.isArray(Z[N]))M?.preservedProperties.forEach((P)=>{if(P in Z[N])h.set(P,Z[N][P])})}let j=B.value;if(M?.cloneReferences&&!y&&j&&typeof j==="object")j=structuredClone(j);if(Z[N]=j,M?.preservedProperties){if(h.size&&typeof Z[N]==="object"&&!Array.isArray(Z[N]))h.forEach((P,n)=>{Z[N][n]=P})}M?.onDereference?.(m.$ref,Z[N],Z,N)}}else if(!U.has(m)){if(B=i8(m,L,w,G,E,U,W,q,Y,H,K,$+1),y=B.circular,Z[N]!==B.value)Z[N]=B.value}else y=S5(L,Y,H);V.circular=V.circular||y}U.delete(Z)}}return V}function C2(Z,X,J,G,Q,U,W,q,Y,H,K,$){let M=$1.isExternal$Ref(Z)&&H?.dereference?.externalReferenceResolution==="root"?Q4():G?J:X,_=O1(M,Z.$ref),D=q.get(_);if(D){if(!D.circular){let w=Object.keys(Z);if(w.length>1){let y={};for(let h of w)if(h!=="$ref"&&!(h in D.value))y[h]=Z[h];return{circular:D.circular,value:Object.assign({},D.value,y)}}return D}if(typeof D.value==="object"&&"$ref"in D.value&&"$ref"in Z){if(D.value.$ref===Z.$ref)return S5(X,Y,H),D}else return S5(X,Y,H),D}let R=Y._resolve(_,X,H);if(R===null)return{circular:!1,value:null};let N=R.circular,L=N||U.has(R.value);if(L)S5(X,Y,H);let E=$1.dereference(Z,R.value,H);if(!L){let w=i8(E,R.path,R.$ref.path,R.$ref.dynamicIdScope,Q,U,W,q,Y,H,K,$+1);L=w.circular,E=w.value}if(L&&!N&&H.dereference?.circular==="ignore")E=Z;if(N)E.$ref=Q;let m={circular:L,value:E};if(Object.keys(Z).length===1)q.set(_,m);return m}function j2(Z,X){if(X&&X.timeoutMs){if(Date.now()-Z>X.timeoutMs)throw new _8(X.timeoutMs)}}function S5(Z,X,J){if(X.circular=!0,J?.dereference?.onCircular?.(Z),!J.dereference.circular)throw ReferenceError(`Circular $ref pointer found at ${Z}`);return!0}function v$(){if(typeof process==="object"&&typeof process.nextTick==="function")return process.nextTick;else if(typeof setImmediate==="function")return setImmediate;else return function(X){setTimeout(X,0)}}var d8=v$();function i1(Z,X){if(Z){X.then(function(J){d8(function(){Z(null,J)})},function(J){d8(function(){Z(J)})});return}else return X}class z0{schema=null;$refs=new C7;async parse(){let Z=g7(arguments),X;if(!Z.path&&!Z.schema){let G=Error(`Expected a file path, URL, or object. Got ${Z.path||Z.schema}`);return i1(Z.callback,Promise.reject(G))}this.schema=null,this.$refs=new C7;let J="http";if(F5(Z.path))Z.path=QX(Z.path),J="file";else if(!Z.path&&Z.schema&&"$id"in Z.schema&&Z.schema.$id){let G=b4(Z.schema.$id),Q=G.port??(G.protocol==="https:"?443:80);Z.path=`${G.protocol}//${G.hostname}:${Q}`}if(Z.path=O1(Q4(),Z.path),Z.schema&&typeof Z.schema==="object"){let G=this.$refs._add(Z.path);G.value=Z.schema,G.pathType=J,G.dynamicIdScope=O5(G.value),N5(this.$refs,G.path,G.value,G.pathType,G.dynamicIdScope),X=Promise.resolve(Z.schema)}else X=A5(Z.path,this.$refs,Z.options);try{let G=await X;if(G!==null&&typeof G==="object"&&!Buffer.isBuffer(G))return this.schema=G,i1(Z.callback,Promise.resolve(this.schema));else if(Z.options.continueOnError)return this.schema=null,i1(Z.callback,Promise.resolve(this.schema));else throw SyntaxError(`"${this.$refs._root$Ref.path||G}" is not a valid JSON Schema`)}catch(G){if(!Z.options.continueOnError||!K0(G))return i1(Z.callback,Promise.reject(G));if(this.$refs._$refs[V1(Z.path)])this.$refs._$refs[V1(Z.path)].addError(G);return i1(Z.callback,Promise.resolve(null))}}static parse(){let Z=new z0;return Z.parse.apply(Z,arguments)}async resolve(){let Z=g7(arguments);try{return await this.parse(Z.path,Z.schema,Z.options),await A2(this,Z.options),r8(this),i1(Z.callback,Promise.resolve(this.$refs))}catch(X){return i1(Z.callback,Promise.reject(X))}}static resolve(){let Z=new z0;return Z.resolve.apply(Z,arguments)}static bundle(){let Z=new z0;return Z.bundle.apply(Z,arguments)}async bundle(){let Z=g7(arguments);try{return await this.resolve(Z.path,Z.schema,Z.options),T2(this,Z.options),r8(this),i1(Z.callback,Promise.resolve(this.schema))}catch(X){return i1(Z.callback,Promise.reject(X))}}static dereference(){let Z=new z0;return Z.dereference.apply(Z,arguments)}async dereference(){let Z=g7(arguments);try{return await this.resolve(Z.path,Z.schema,Z.options),E2(this,Z.options),r8(this),i1(Z.callback,Promise.resolve(this.schema))}catch(X){return i1(Z.callback,Promise.reject(X))}}}var S2=z0;function r8(Z){if(g4.getParserErrors(Z).length>0)throw new g4(Z)}var{parse:VN,resolve:BN,bundle:FN,dereference:MN}=z0;async function b2(Z,X={}){let{baseUrl:J="/_jx/server"}=X,G=await S2.dereference(Z),Q=eZ(G);if(Q.length===0)return null;let U=Q.map(({exportName:q,src:Y})=>`import { ${q} } from '${Y}'`).join(`
212
+ `),W=Q.map(({exportName:q})=>x2(q,J)).join(`
217
213
  `);return`// Generated by @jxsuite/compiler — do not edit manually
218
214
  // Deploy as a Cloudflare Worker, Node server, or Bun process.
219
215
  // Requires: npm install hono
@@ -225,7 +221,28 @@ const app = new Hono()
225
221
  ${W}
226
222
 
227
223
  export default app
228
- `}async function QY(Z,X={}){let{resolveElementPath:J}=X,G=[],Q=new Set;async function U(W,q){let Y,H;if(typeof W==="string"){let{readFileSync:R}=await import("node:fs"),{resolve:N}=await Promise.resolve().then(() => (y7(),k7));if(H=q?N(q,W):N(W),Q.has(H))return;if(Q.add(H),H.endsWith(".md")){let{transpileJxMarkdown:L}=await Promise.resolve().then(() => (yZ(),kZ));Y=L(R(H,"utf8"))}else Y=JSON.parse(R(H,"utf8"))}else{if(Y=W,H=null,Q.has(Y.tagName))return;Q.add(Y.tagName)}let K=Y.tagName;if(!K||!K.includes("-"))throw Error(`compileElement: tagName "${K}" must contain a hyphen`);let{dirname:$}=await Promise.resolve().then(() => (y7(),k7)),B=H?$(H):null,V=[];if(Array.isArray(Y.$elements))for(let R of Y.$elements){let N=R.$ref??R;if(typeof N!=="string")continue;if(B)await U(N,B);let L;if(J)L=J(N,B);else L=N.replace(/\.json$/,".js");V.push(L)}let M=B5(K),_=q5(Y,M,V),D=H?H.replace(/\.json$/,".js"):`${K}.js`;G.push({path:D,content:_,tagName:K})}return await U(Z,X.basePath??null),{files:G}}async function OR(Z,X={}){let{title:J="Jx App",reactivitySrc:G="https://esm.sh/@vue/reactivity@3.5.13",litHtmlSrc:Q="https://esm.sh/lit-html@3.3.0"}=X,U=await QY(Z,X),W=U.files[U.files.length-1],{basename:q}=await Promise.resolve().then(() => (y7(),k7)),Y=q(W.path);return{html:`<!DOCTYPE html>
224
+ `}function h$(Z,X={}){let{baseUrl:J="/_jx/server",provider:G=null}=X;if(Z.length===0)return null;let Q=Z.map(({exportName:q,src:Y})=>`import { ${q} } from '${Y}'`).join(`
225
+ `),U=Z.map(({exportName:q})=>x2(q,J)).join(`
226
+ `);return`// Generated by @jxsuite/compiler — do not edit manually
227
+ import { Hono } from 'hono'
228
+ ${Q}
229
+
230
+ const app = new Hono()
231
+ ${U}
232
+ ${G==="cloudflare"?`
233
+ app.all('*', (c) => c.env.ASSETS.fetch(c.req.raw))
234
+ `:`
235
+ `}
236
+ export default app
237
+ `}function x2(Z,X){return`
238
+ app.post('${X}/${Z}', async (c) => {
239
+ const args = await c.req.json().catch(() => ({}))
240
+ try {
241
+ return c.json(await ${Z}(args, c.env))
242
+ } catch (e) {
243
+ return c.json({ ok: false, error: e?.message ?? 'Server error' }, 500)
244
+ }
245
+ })`}async function UY(Z,X={}){let{resolveElementPath:J}=X,G=[],Q=new Set;async function U(W,q){let Y,H;if(typeof W==="string"){let{readFileSync:R}=await import("node:fs"),{resolve:N}=await Promise.resolve().then(() => (y7(),k7));if(H=q?N(q,W):N(W),Q.has(H))return;if(Q.add(H),H.endsWith(".md")){let{transpileJxMarkdown:L}=await Promise.resolve().then(() => (yZ(),kZ));Y=L(R(H,"utf8"))}else Y=JSON.parse(R(H,"utf8"))}else{if(Y=W,H=null,Q.has(Y.tagName))return;Q.add(Y.tagName)}let K=Y.tagName;if(!K||!K.includes("-"))throw Error(`compileElement: tagName "${K}" must contain a hyphen`);let{dirname:$}=await Promise.resolve().then(() => (y7(),k7)),B=H?$(H):null,V=[];if(Array.isArray(Y.$elements))for(let R of Y.$elements){let N=R.$ref??R;if(typeof N!=="string")continue;if(B)await U(N,B);let L;if(J)L=J(N,B);else L=N.replace(/\.json$/,".js");V.push(L)}let M=B5(K),_=q5(Y,M,V),D=H?H.replace(/\.json$/,".js"):`${K}.js`;G.push({path:D,content:_,tagName:K})}return await U(Z,X.basePath??null),{files:G}}async function LR(Z,X={}){let{title:J="Jx App",reactivitySrc:G="https://esm.sh/@vue/reactivity@3.5.13",litHtmlSrc:Q="https://esm.sh/lit-html@3.3.0"}=X,U=await UY(Z,X),W=U.files[U.files.length-1],{basename:q}=await Promise.resolve().then(() => (y7(),k7)),Y=q(W.path);return{html:`<!DOCTYPE html>
229
246
  <html lang="en">
230
247
  <head>
231
248
  <meta charset="utf-8">
@@ -244,22 +261,22 @@ export default app
244
261
  <${W.tagName}></${W.tagName}>
245
262
  <script type="module" src="./${Y}"></script>
246
263
  </body>
247
- </html>`,files:U.files}}function NR(Z){if(Z===null||typeof Z!=="object"||Array.isArray(Z))return JSON.stringify(Z);if("default"in Z)return JSON.stringify(Z.default);if(j4(Z))return;if(Z.$prototype==="LocalStorage"||Z.$prototype==="SessionStorage")return JSON.stringify(Z.default??null);if(Z.$prototype==="Request")return"null";return JSON.stringify(Z)}function q5(Z,X,J){let G=[];if(G.push("// Generated by @jxsuite/compiler — do not edit manually"),Z.$id)G.push(`// Source: ${Z.$id}`);for(let K of J)G.push(`import '${K}';`);let Q=new Map,U=Z.state??{};for(let[K,$]of Object.entries(U)){let B=$;if(B&&typeof B==="object"&&!Array.isArray(B)&&B.$prototype==="Function"&&B.$src){let V=B.$src;if(!Q.has(V))Q.set(V,[]);Q.get(V).push(K)}}for(let[K,$]of Q)G.push(`import { ${$.join(", ")} } from '${K}';`);G.push("import { reactive, computed, effect } from '@vue/reactivity';"),G.push("import { render, html } from 'lit-html';"),G.push(""),G.push(`class ${X} extends HTMLElement {`),G.push(" #dispose = null;"),G.push(""),G.push(" constructor() {"),G.push(" super();");let W=[],q=[],Y=[];for(let[K,$]of Object.entries(U)){let B=$;if(B&&typeof B==="object"&&!Array.isArray(B)&&B.$prototype==="Function")if(typeof B.body==="string"&&B.body.includes("return"))q.push([K,B]);else Y.push([K,B]);else{let V=NR(B);if(V!==void 0)W.push([K,V])}}G.push(" this.state = reactive({");for(let[K,$]of W)G.push(` ${K}: ${$},`);G.push(" });");for(let[K,$]of Y)if(G.push(""),$.$src){let V=($.parameters??$.arguments??["state"]).join(", ");G.push(` this.state.${K} = (${V}) => ${K}(${V});`)}else{let V=($.parameters??$.arguments??["state"]).join(", ");G.push(` this.state.${K} = (${V}) => {`),G.push(` ${$.body}`),G.push(" };")}for(let[K,$]of q)if(G.push(""),$.$src)G.push(` this.state.${K} = computed(() => ${K}(this.state));`);else{G.push(` this.state.${K} = computed(() => {`);let B=$.body.replace(/state\./g,"this.state.");G.push(` ${B}`),G.push(" });")}if(G.push(" }"),G.push(""),G.push(" template() {"),G.push(" const s = this.state;"),G.push(" return html`"),G.push(vZ(Z.children,Z.style," ")),G.push(" `;"),G.push(" }"),G.push(""),G.push(" connectedCallback() {"),G.push(" const _pa = this.getAttribute('data-jx-props');"),G.push(" if (_pa) {"),G.push(" try {"),G.push(" const _p = JSON.parse(_pa);"),G.push(" for (const [k, v] of Object.entries(_p)) {"),G.push(" if (k in this.state) this.state[k] = v;"),G.push(" }"),G.push(" } catch {}"),G.push(" this.removeAttribute('data-jx-props');"),G.push(" }"),G.push(" for (const key of Object.keys(this.state)) {"),G.push(" if (this.hasOwnProperty(key) && this[key] !== undefined) {"),G.push(" this.state[key] = this[key];"),G.push(" }"),G.push(" }"),Z.style&&typeof Z.style==="object"){let K=[],$=[];for(let[B,V]of Object.entries(Z.style)){if(B.startsWith(":")||B.startsWith(".")||B.startsWith("&")||B.startsWith("[")||B.startsWith("@"))continue;if(V===null||typeof V==="object")continue;let M=o1(B);if(typeof V==="string"&&V.includes("${"))$.push([M,V]);else K.push([M,V])}if(K.length>0)for(let[B,V]of K)G.push(` this.style['${B}'] = ${JSON.stringify(V)};`);if($.length>0){G.push(" effect(() => {");for(let[B,V]of $){let M=V.replace(/\$\{([^}]+)\}/g,(_,D)=>"${"+D.replace(/state\./g,"this.state.")+"}");G.push(` this.style['${B}'] = \`${M}\`;`)}G.push(" });")}}let H=qY(Z.children);if(H)G.push(" const _slotted = Array.from(this.childNodes).filter(n => n.nodeType === 1 || (n.nodeType === 3 && n.textContent.trim()));");if(G.push(" if (this.hasAttribute('data-jx-prerendered')) {"),G.push(" this.removeAttribute('data-jx-prerendered');"),G.push(" } else {"),G.push(" this.innerHTML = '';"),G.push(" }"),G.push(" this.#dispose = effect(() => render(this.template(), this));"),H)G.push(" const _slot = this.querySelector('slot');"),G.push(" if (_slot && _slotted.length > 0) {"),G.push(" for (const n of _slotted) _slot.before(n);"),G.push(" _slot.remove();"),G.push(" }");return G.push(" }"),G.push(""),G.push(" disconnectedCallback() {"),G.push(" if (this.#dispose) { this.#dispose(); this.#dispose = null; }"),G.push(" }"),G.push("}"),G.push(""),G.push(`customElements.define('${Z.tagName}', ${X});`),G.push(""),G.join(`
248
- `)}function vZ(Z,X,J){if(!Z)return"";if(Z.$prototype==="Array")return IR(Z,J);if(!Array.isArray(Z))return"";return Z.map((G)=>LR(G,J)).join(`
249
- `)}function LR(Z,X){if(typeof Z==="string")return`${X}${U1(Z)}`;if(typeof Z==="number"||typeof Z==="boolean")return`${X}${U1(String(Z))}`;if(!Z||typeof Z!=="object")return"";let J=Z.tagName??"div",G=[];if(Z.attributes)for(let[Y,H]of Object.entries(Z.attributes))if(typeof H==="string"&&H.includes("${"))G.push(`${Y}="${$8(H)}"`);else G.push(`${Y}="${H}"`);if(Z.id)G.push(`id="${Z.id}"`);if(Z.className)G.push(`class="${Z.className}"`);for(let[Y,H]of Object.entries(Z)){if(G4.has(Y)||Y.startsWith("$")||Y.startsWith("on")||Y==="tagName"||Y==="id"||Y==="className"||Y==="style"||Y==="children"||Y==="textContent"||Y==="innerHTML"||Y==="attributes")continue;if(H&&typeof H==="object"&&H.$ref)G.push(`.${Y}="\${${A4(H.$ref)}}"`);else if(typeof H==="string"&&H.includes("${"))G.push(`.${Y}="${$8(H)}"`)}if(Z.$props)for(let[Y,H]of Object.entries(Z.$props))if(H&&typeof H==="object"&&H.$ref)G.push(`.${Y}="\${${A4(H.$ref)}}"`);else G.push(`.${Y}="\${${JSON.stringify(H)}}"`);for(let[Y,H]of Object.entries(Z)){if(!Y.startsWith("on")||Y==="observedAttributes")continue;let K=Y.slice(2).toLowerCase();if(H&&typeof H==="object"&&H.$ref)G.push(`@${K}="\${(e) => ${A4(H.$ref)}(s, e)}"`);else if(H&&typeof H==="object"&&H.$prototype==="Function")G.push(`@${K}="\${(e) => { ${PR(H)} }}"`)}let Q=WY(Z.style);if(Q)G.push(`style="${Q}"`);let U=G.length>0?`
264
+ </html>`,files:U.files}}function IR(Z){if(Z===null||typeof Z!=="object"||Array.isArray(Z))return JSON.stringify(Z);if("default"in Z)return JSON.stringify(Z.default);if(j4(Z))return;if(Z.$prototype==="LocalStorage"||Z.$prototype==="SessionStorage")return JSON.stringify(Z.default??null);if(Z.$prototype==="Request")return"null";return JSON.stringify(Z)}function q5(Z,X,J){let G=[];if(G.push("// Generated by @jxsuite/compiler — do not edit manually"),Z.$id)G.push(`// Source: ${Z.$id}`);for(let K of J)G.push(`import '${K}';`);let Q=new Map,U=Z.state??{};for(let[K,$]of Object.entries(U)){let B=$;if(B&&typeof B==="object"&&!Array.isArray(B)&&B.$prototype==="Function"&&B.$src){let V=B.$src;if(!Q.has(V))Q.set(V,[]);Q.get(V).push(K)}}for(let[K,$]of Q)G.push(`import { ${$.join(", ")} } from '${K}';`);G.push("import { reactive, computed, effect } from '@vue/reactivity';"),G.push("import { render, html } from 'lit-html';"),G.push(""),G.push(`class ${X} extends HTMLElement {`),G.push(" #dispose = null;"),G.push(""),G.push(" constructor() {"),G.push(" super();");let W=[],q=[],Y=[];for(let[K,$]of Object.entries(U)){let B=$;if(B&&typeof B==="object"&&!Array.isArray(B)&&B.$prototype==="Function")if(typeof B.body==="string"&&B.body.includes("return"))q.push([K,B]);else Y.push([K,B]);else{let V=IR(B);if(V!==void 0)W.push([K,V])}}G.push(" this.state = reactive({");for(let[K,$]of W)G.push(` ${K}: ${$},`);G.push(" });");for(let[K,$]of Y)if(G.push(""),$.$src){let V=($.parameters??$.arguments??["state"]).join(", ");G.push(` this.state.${K} = (${V}) => ${K}(${V});`)}else{let V=($.parameters??$.arguments??["state"]).join(", ");G.push(` this.state.${K} = (${V}) => {`),G.push(` ${$.body}`),G.push(" };")}for(let[K,$]of q)if(G.push(""),$.$src)G.push(` this.state.${K} = computed(() => ${K}(this.state));`);else{G.push(` this.state.${K} = computed(() => {`);let B=$.body.replace(/state\./g,"this.state.");G.push(` ${B}`),G.push(" });")}if(G.push(" }"),G.push(""),G.push(" template() {"),G.push(" const s = this.state;"),G.push(" return html`"),G.push(vZ(Z.children,Z.style," ")),G.push(" `;"),G.push(" }"),G.push(""),G.push(" connectedCallback() {"),G.push(" const _pa = this.getAttribute('data-jx-props');"),G.push(" if (_pa) {"),G.push(" try {"),G.push(" const _p = JSON.parse(_pa);"),G.push(" for (const [k, v] of Object.entries(_p)) {"),G.push(" if (k in this.state) this.state[k] = v;"),G.push(" }"),G.push(" } catch {}"),G.push(" this.removeAttribute('data-jx-props');"),G.push(" }"),G.push(" for (const key of Object.keys(this.state)) {"),G.push(" if (this.hasOwnProperty(key) && this[key] !== undefined) {"),G.push(" this.state[key] = this[key];"),G.push(" }"),G.push(" }"),Z.style&&typeof Z.style==="object"){let K=[],$=[];for(let[B,V]of Object.entries(Z.style)){if(B.startsWith(":")||B.startsWith(".")||B.startsWith("&")||B.startsWith("[")||B.startsWith("@"))continue;if(V===null||typeof V==="object")continue;let M=o1(B);if(typeof V==="string"&&V.includes("${"))$.push([M,V]);else K.push([M,V])}if(K.length>0)for(let[B,V]of K)G.push(` this.style['${B}'] = ${JSON.stringify(V)};`);if($.length>0){G.push(" effect(() => {");for(let[B,V]of $){let M=V.replace(/\$\{([^}]+)\}/g,(_,D)=>"${"+D.replace(/state\./g,"this.state.")+"}");G.push(` this.style['${B}'] = \`${M}\`;`)}G.push(" });")}}let H=YY(Z.children);if(H)G.push(" const _slotted = Array.from(this.childNodes).filter(n => n.nodeType === 1 || (n.nodeType === 3 && n.textContent.trim()));");if(G.push(" if (this.hasAttribute('data-jx-prerendered')) {"),G.push(" this.removeAttribute('data-jx-prerendered');"),G.push(" } else {"),G.push(" this.innerHTML = '';"),G.push(" }"),G.push(" this.#dispose = effect(() => render(this.template(), this));"),H)G.push(" const _slot = this.querySelector('slot');"),G.push(" if (_slot && _slotted.length > 0) {"),G.push(" for (const n of _slotted) _slot.before(n);"),G.push(" _slot.remove();"),G.push(" }");return G.push(" }"),G.push(""),G.push(" disconnectedCallback() {"),G.push(" if (this.#dispose) { this.#dispose(); this.#dispose = null; }"),G.push(" }"),G.push("}"),G.push(""),G.push(`customElements.define('${Z.tagName}', ${X});`),G.push(""),G.join(`
265
+ `)}function vZ(Z,X,J){if(!Z)return"";if(Z.$prototype==="Array")return PR(Z,J);if(!Array.isArray(Z))return"";return Z.map((G)=>AR(G,J)).join(`
266
+ `)}function AR(Z,X){if(typeof Z==="string")return`${X}${U1(Z)}`;if(typeof Z==="number"||typeof Z==="boolean")return`${X}${U1(String(Z))}`;if(!Z||typeof Z!=="object")return"";let J=Z.tagName??"div",G=[];if(Z.attributes)for(let[Y,H]of Object.entries(Z.attributes))if(typeof H==="string"&&H.includes("${"))G.push(`${Y}="${$8(H)}"`);else G.push(`${Y}="${H}"`);if(Z.id)G.push(`id="${Z.id}"`);if(Z.className)G.push(`class="${Z.className}"`);for(let[Y,H]of Object.entries(Z)){if(G4.has(Y)||Y.startsWith("$")||Y.startsWith("on")||Y==="tagName"||Y==="id"||Y==="className"||Y==="style"||Y==="children"||Y==="textContent"||Y==="innerHTML"||Y==="attributes")continue;if(H&&typeof H==="object"&&H.$ref)G.push(`.${Y}="\${${A4(H.$ref)}}"`);else if(typeof H==="string"&&H.includes("${"))G.push(`.${Y}="${$8(H)}"`)}if(Z.$props)for(let[Y,H]of Object.entries(Z.$props))if(H&&typeof H==="object"&&H.$ref)G.push(`.${Y}="\${${A4(H.$ref)}}"`);else G.push(`.${Y}="\${${JSON.stringify(H)}}"`);for(let[Y,H]of Object.entries(Z)){if(!Y.startsWith("on")||Y==="observedAttributes")continue;let K=Y.slice(2).toLowerCase();if(H&&typeof H==="object"&&H.$ref)G.push(`@${K}="\${(e) => ${A4(H.$ref)}(s, e)}"`);else if(H&&typeof H==="object"&&H.$prototype==="Function")G.push(`@${K}="\${(e) => { ${TR(H)} }}"`)}let Q=qY(Z.style);if(Q)G.push(`style="${Q}"`);let U=G.length>0?`
250
267
  `+X+" "+G.join(`
251
268
  `+X+" "):"";if(new Set(["input","br","hr","img","meta","link"]).has(J))return`${X}<${J}${U}
252
- ${X}>`;let q="";if(Z.textContent!==void 0)q=UY(Z.textContent);else if(Z.innerHTML!==void 0)q=Z.innerHTML;else if(Z.children)q=`
269
+ ${X}>`;let q="";if(Z.textContent!==void 0)q=WY(Z.textContent);else if(Z.innerHTML!==void 0)q=Z.innerHTML;else if(Z.children)q=`
253
270
  `+vZ(Z.children,Z.style,X+" ")+`
254
271
  `+X;return`${X}<${J}${U}
255
- ${X}>${q}</${J}>`}function IR(Z,X){let J=Z.items?.$ref?A4(Z.items.$ref):"ITEMS",G=Z.map;if(!G)return"";let Q=G.tagName??"div",U=[];if(G.$props)for(let[H,K]of Object.entries(G.$props))if(K&&typeof K==="object"&&K.$ref)U.push(`.${H}="\${${AR(K.$ref)}}"`);else U.push(`.${H}="\${${JSON.stringify(K)}}"`);let W=WY(G.style);if(W)U.push(`style="${W}"`);for(let[H,K]of Object.entries(G)){if(!H.startsWith("on"))continue;let $=H.slice(2).toLowerCase();if(K&&typeof K==="object"&&K.$ref)U.push(`@${$}="\${(e) => ${A4(K.$ref)}(s, e)}"`)}let q=U.length>0?`
272
+ ${X}>${q}</${J}>`}function PR(Z,X){let J=Z.items?.$ref?A4(Z.items.$ref):"ITEMS",G=Z.map;if(!G)return"";let Q=G.tagName??"div",U=[];if(G.$props)for(let[H,K]of Object.entries(G.$props))if(K&&typeof K==="object"&&K.$ref)U.push(`.${H}="\${${wR(K.$ref)}}"`);else U.push(`.${H}="\${${JSON.stringify(K)}}"`);let W=qY(G.style);if(W)U.push(`style="${W}"`);for(let[H,K]of Object.entries(G)){if(!H.startsWith("on"))continue;let $=H.slice(2).toLowerCase();if(K&&typeof K==="object"&&K.$ref)U.push(`@${$}="\${(e) => ${A4(K.$ref)}(s, e)}"`)}let q=U.length>0?`
256
273
  `+X+" "+U.join(`
257
- `+X+" "):"",Y="";if(G.textContent!==void 0)Y=UY(G.textContent);else if(G.children)Y=`
274
+ `+X+" "):"",Y="";if(G.textContent!==void 0)Y=WY(G.textContent);else if(G.children)Y=`
258
275
  `+vZ(G.children,null,X+" ")+`
259
276
  `+X+" ";return`${X}\${${J}.map((item, index) => html\`
260
277
  ${X} <${Q}${q}
261
278
  ${X} >${Y}</${Q}>
262
- ${X}\`)}`}function A4(Z){if(Z.startsWith("#/state/"))return"s."+Z.slice(8).replace(/\//g,".");if(Z.startsWith("$map/"))return Z.slice(5).replace(/\//g,".");return"s."+Z}function AR(Z){if(Z.startsWith("$map/"))return Z.slice(5).replace(/\//g,".");return A4(Z)}function $8(Z){return Z.replace(/state\./g,"s.")}function UY(Z){if(Z!==null&&typeof Z==="object"&&typeof Z.$ref==="string")return`\${${A4(Z.$ref)}}`;if(typeof Z==="string"&&Z.includes("${"))return $8(Z);return String(Z)}function PR(Z){return(Z.body??"").replace(/(?<!this\.)state\./g,"s.").replace(/(?<!this\.)state(?!\.)/g,"s")}function WY(Z){if(!Z||typeof Z!=="object")return"";let X=[];for(let[J,G]of Object.entries(Z)){if(J.startsWith(":")||J.startsWith(".")||J.startsWith("&")||J.startsWith("[")||J.startsWith("@"))continue;if(G===null||typeof G==="object")continue;let Q=o1(J);if(typeof G==="string"&&G.includes("${"))X.push(`${Q}: ${$8(G)}`);else X.push(`${Q}: ${G}`)}return X.join("; ")}function qY(Z){if(!Array.isArray(Z))return!1;for(let X of Z){if(!X||typeof X!=="object")continue;if(X.tagName==="slot")return!0;if(qY(X.children))return!0}return!1}function YY(Z,X){let{title:J,reactivitySrc:G,litHtmlSrc:Q}=X,U=E4(Z,null,Z.state??{},Z.$media??{}),W=S4(Z,Z.$media??{},X.projectStyle??null),q=[],Y=HY(Z,!1,Z,U,q),H=[],K="",$="";if(q.length>0){for(let V of q){let M=q5(V.def,V.className,[]);H.push({path:`_islands/${V.tagName}.js`,content:M,tagName:V.tagName})}K=`<script type="importmap">
279
+ ${X}\`)}`}function A4(Z){if(Z.startsWith("#/state/"))return"s."+Z.slice(8).replace(/\//g,".");if(Z.startsWith("$map/"))return Z.slice(5).replace(/\//g,".");return"s."+Z}function wR(Z){if(Z.startsWith("$map/"))return Z.slice(5).replace(/\//g,".");return A4(Z)}function $8(Z){return Z.replace(/state\./g,"s.")}function WY(Z){if(Z!==null&&typeof Z==="object"&&typeof Z.$ref==="string")return`\${${A4(Z.$ref)}}`;if(typeof Z==="string"&&Z.includes("${"))return $8(Z);return String(Z)}function TR(Z){return(Z.body??"").replace(/(?<!this\.)state\./g,"s.").replace(/(?<!this\.)state(?!\.)/g,"s")}function qY(Z){if(!Z||typeof Z!=="object")return"";let X=[];for(let[J,G]of Object.entries(Z)){if(J.startsWith(":")||J.startsWith(".")||J.startsWith("&")||J.startsWith("[")||J.startsWith("@"))continue;if(G===null||typeof G==="object")continue;let Q=o1(J);if(typeof G==="string"&&G.includes("${"))X.push(`${Q}: ${$8(G)}`);else X.push(`${Q}: ${G}`)}return X.join("; ")}function YY(Z){if(!Array.isArray(Z))return!1;for(let X of Z){if(!X||typeof X!=="object")continue;if(X.tagName==="slot")return!0;if(YY(X.children))return!0}return!1}function HY(Z,X){let{title:J,reactivitySrc:G,litHtmlSrc:Q}=X,U=E4(Z,null,Z.state??{},Z.$media??{}),W=S4(Z,Z.$media??{},X.projectStyle??null),q=[],Y=KY(Z,!1,Z,U,q),H=[],K="",$="";if(q.length>0){for(let V of q){let M=q5(V.def,V.className,[]);H.push({path:`_islands/${V.tagName}.js`,content:M,tagName:V.tagName})}K=`<script type="importmap">
263
280
  {
264
281
  "imports": {
265
282
  "@vue/reactivity": "${G}",
@@ -280,8 +297,8 @@ ${X}\`)}`}function A4(Z){if(Z.startsWith("#/state/"))return"s."+Z.slice(8).repla
280
297
  ${Y}
281
298
  ${$}
282
299
  </body>
283
- </html>`,files:H}}function HY(Z,X,J,G,Q){if(typeof Z==="string")return U1(Z);if(typeof Z==="number"||typeof Z==="boolean")return U1(String(Z));if(!Z||typeof Z!=="object")return"";let U=E4(J,G.scope,J?.state??G.scopeDefs,J?.$media??G.media);if(X){let H=Q.length,K=`jx-island-${H}`,$=`JxIsland${H}`,B={...J??Z,tagName:K};return Q.push({def:B,tagName:K,className:$}),`<${K}></${K}>`}let W=Z.tagName??"div",q=V5(Z,U.scope),Y=wR(Z,J,U,Q);return`<${W}${q}>${Y}</${W}>`}function wR(Z,X,J,G){let Q=X??Z;if(Q.textContent!==void 0){let U=j1(Q.textContent,J.scope);return U==null?"":U1(String(U))}if(Q.innerHTML)return j1(Q.innerHTML,J.scope)??Q.innerHTML;if(Array.isArray(Q.children)){let U=X?.children;return Q.children.map((W,q)=>{let Y=sZ(W),H=U?.[q]??W;return HY(W,Y,H,J,G)}).join(`
284
- `)}return""}function KY(Z,X){let{title:J,reactivitySrc:G=$5,litHtmlSrc:Q=z5,modulePath:U="app.js"}=X,W=E4(Z,null,Z.state??{},Z.$media??{}),q=S4(Z,Z.$media??{},X.projectStyle??null),Y={t:0,s:0,h:0,m:0,sw:0,l:0,needsLit:!1},H=new Map,K=new Map,$=[],B=[],V=[],M=[],_=[],D=new Map,R=Z.state??{};for(let[w,y]of Object.entries(R)){if(y===null||typeof y!=="object"||Array.isArray(y)){if(typeof y==="string"&&A1(y))B.push([w,"() => `"+y+"`"]);else $.push([w,y]);continue}let h=y;if(h.$prototype==="Function"){let j=h.parameters??h.arguments;if(h.$src){if(!D.has(h.$src))D.set(h.$src,new Set);D.get(h.$src).add(w),B.push([w,"() => { return "+w+"(state); }"])}else if(h.body&&h.body.includes("return"))B.push([w,"() => { "+h.body+" }"]);else M.push([w,{args:j??["state"],body:h.body}]);continue}if(j4(h))continue;if("default"in h&&!h.$prototype){$.push([w,h.default]);continue}if(h.$prototype==="LocalStorage"||h.$prototype==="SessionStorage"){let j=h.$prototype==="LocalStorage"?"localStorage":"sessionStorage",P=h.key??w,n=h.default??null;$.push([w,null]),_.push(jR(w,j,P,n));continue}if(h.$prototype==="Request"){$.push([w,null]),_.push(CR(w,h));continue}if(h.$prototype==="Cookie"){$.push([w,null]),_.push(ER(w,h.name??w,h.default??null));continue}$.push([w,h])}let N=$Y(Z,Z,W,H,K,Y);for(let[w,y]of H)if(!V.some(([h])=>h===w))V.push([w,y]);for(let[w,y]of K)if(!M.some(([h])=>h===w))M.push([w,y]);let L=TR($,B,V,M,_,D,Y,G),E=[` "@vue/reactivity": "${G}"`,` "lit-html": "${Q}"`];return{html:`<!DOCTYPE html>
300
+ </html>`,files:H}}function KY(Z,X,J,G,Q){if(typeof Z==="string")return U1(Z);if(typeof Z==="number"||typeof Z==="boolean")return U1(String(Z));if(!Z||typeof Z!=="object")return"";let U=E4(J,G.scope,J?.state??G.scopeDefs,J?.$media??G.media);if(X){let H=Q.length,K=`jx-island-${H}`,$=`JxIsland${H}`,B={...J??Z,tagName:K};return Q.push({def:B,tagName:K,className:$}),`<${K}></${K}>`}let W=Z.tagName??"div",q=V5(Z,U.scope),Y=CR(Z,J,U,Q);return`<${W}${q}>${Y}</${W}>`}function CR(Z,X,J,G){let Q=X??Z;if(Q.textContent!==void 0){let U=j1(Q.textContent,J.scope);return U==null?"":U1(String(U))}if(Q.innerHTML)return j1(Q.innerHTML,J.scope)??Q.innerHTML;if(Array.isArray(Q.children)){let U=X?.children;return Q.children.map((W,q)=>{let Y=sZ(W),H=U?.[q]??W;return KY(W,Y,H,J,G)}).join(`
301
+ `)}return""}function $Y(Z,X){let{title:J,reactivitySrc:G=$5,litHtmlSrc:Q=z5,modulePath:U="app.js"}=X,W=E4(Z,null,Z.state??{},Z.$media??{}),q=S4(Z,Z.$media??{},X.projectStyle??null),Y={t:0,s:0,h:0,m:0,sw:0,l:0,needsLit:!1},H=new Map,K=new Map,$=[],B=[],V=[],M=[],_=[],D=new Map,R=Z.state??{};for(let[w,y]of Object.entries(R)){if(y===null||typeof y!=="object"||Array.isArray(y)){if(typeof y==="string"&&A1(y))B.push([w,"() => `"+y+"`"]);else $.push([w,y]);continue}let h=y;if(h.$prototype==="Function"){let j=h.parameters??h.arguments;if(h.$src){if(!D.has(h.$src))D.set(h.$src,new Set);D.get(h.$src).add(w),B.push([w,"() => { return "+w+"(state); }"])}else if(h.body&&h.body.includes("return"))B.push([w,"() => { "+h.body+" }"]);else M.push([w,{args:j??["state"],body:h.body}]);continue}if(j4(h))continue;if("default"in h&&!h.$prototype){$.push([w,h.default]);continue}if(h.$prototype==="LocalStorage"||h.$prototype==="SessionStorage"){let j=h.$prototype==="LocalStorage"?"localStorage":"sessionStorage",P=h.key??w,n=h.default??null;$.push([w,null]),_.push(SR(w,j,P,n));continue}if(h.$prototype==="Request"){$.push([w,null]),_.push(ER(w,h));continue}if(h.$prototype==="Cookie"){$.push([w,null]),_.push(bR(w,h.name??w,h.default??null));continue}$.push([w,h])}let N=zY(Z,Z,W,H,K,Y);for(let[w,y]of H)if(!V.some(([h])=>h===w))V.push([w,y]);for(let[w,y]of K)if(!M.some(([h])=>h===w))M.push([w,y]);let L=jR($,B,V,M,_,D,Y,G),E=[` "@vue/reactivity": "${G}"`,` "lit-html": "${Q}"`];return{html:`<!DOCTYPE html>
285
302
  <html lang="en">
286
303
  <head>
287
304
  <meta charset="utf-8">
@@ -301,15 +318,15 @@ ${E.join(`,
301
318
  <body>
302
319
  ${N}
303
320
  </body>
304
- </html>`,files:[{path:U,content:L}]}}function $Y(Z,X,J,G,Q,U){if(typeof Z==="string")return U1(Z);if(typeof Z==="number"||typeof Z==="boolean")return U1(String(Z));if(!Z||typeof Z!=="object")return"";let W=E4(X,J.scope,X?.state??J.scopeDefs,X?.$media??J.media),q=Z.tagName??"div",Y=[],H=!1;if(Z.textContent!==void 0){let D=X?.textContent??Z.textContent;if(A0(D)){let R=P4(D.$ref);Y.push(`:text-content="${R}"`),hZ(G,R,D.$ref),H=!0}else if(A1(D)){let R=`_t${U.t++}`;Y.push(`:text-content="${R}"`),G.set(R,"() => `"+D+"`"),H=!0}}for(let[D,R]of Object.entries(Z)){if(!D.startsWith("on")||D==="observedAttributes")continue;let N=D.slice(2).toLowerCase();if(A0(R)){let L=P4(R.$ref);Y.push(`@${N}="${L}"`),H=!0}else if(R&&typeof R==="object"&&R.$prototype==="Function"){let L=R,E=`_h${U.h++}`;Y.push(`@${N}="${E}"`),Q.set(E,{args:L.parameters??L.arguments??["state","event"],body:L.body}),H=!0}}if(Z.style&&typeof Z.style==="object")for(let[D,R]of Object.entries(Z.style)){if(D.startsWith(":")||D.startsWith(".")||D.startsWith("&")||D.startsWith("[")||D.startsWith("@"))continue;if(R===null||typeof R==="object")continue;if(A1(R)){let N=`_s${U.s++}`;Y.push(`:style.${o1(D)}="${N}"`),G.set(N,"() => `"+R+"`"),H=!0}}if(Z.attributes&&typeof Z.attributes==="object"){for(let[D,R]of Object.entries(Z.attributes))if(A0(R)){let N=P4(R.$ref);Y.push(`:attr.${D}="${N}"`),hZ(G,N,R.$ref),H=!0}else if(A1(R)){let N=`_t${U.t++}`;Y.push(`:attr.${D}="${N}"`),G.set(N,"() => `"+R+"`"),H=!0}}for(let[D,R]of Object.entries(Z)){if(G4.has(D)||D.startsWith("on")||D.startsWith("$")||D==="tagName"||D==="id"||D==="className"||D==="style"||D==="children"||D==="textContent"||D==="innerHTML"||D==="attributes")continue;if(A0(R)){let N=P4(R.$ref);Y.push(`:${o1(D)}="${N}"`),hZ(G,N,R.$ref),H=!0}else if(A1(R)){let N=`_t${U.t++}`;Y.push(`:${o1(D)}="${N}"`),G.set(N,"() => `"+R+"`"),H=!0}}let K=V5(Z,W.scope),$=H?" data-bind":"",B=Y.length>0?" "+Y.join(" "):"",V="",M=X??Z;if(M.textContent!==void 0&&!H){let D=j1(M.textContent,W.scope);V=D==null?"":U1(String(D))}else if(M.textContent!==void 0&&H)try{let D=j1(M.textContent,W.scope);V=D==null?"":U1(String(D))}catch{V=""}else if(M.innerHTML)V=j1(M.innerHTML,W.scope)??M.innerHTML;else if(M.children&&typeof M.children==="object"&&!Array.isArray(M.children)&&M.children.$prototype==="Array"){U.needsLit=!0;let D=`_list${U.l++}`,R=M.children,N;if(A0(R.items))N="state."+P4(R.items.$ref);else N=JSON.stringify(R.items);let L=zY(R.map);G.set(D,"() => ("+N+" ?? []).map((item, index) => html`"+L+"`)"),Y.push(`:render="${D}"`),H=!0;let E=" data-bind",m=" "+Y.join(" ");if(new Set(["input","br","hr","img","meta","link"]).has(q))return`<${q}${K}${E}${m}>`;return`<${q}${K}${E}${m}></${q}>`}else if(Array.isArray(M.children)){let D=X?.children;V=M.children.map((R,N)=>{let L=D?.[N]??R;return $Y(R,L,W,G,Q,U)}).join(`
305
- `)}if(new Set(["input","br","hr","img","meta","link"]).has(q))return`<${q}${K}${$}${B}>`;return`<${q}${K}${$}${B}>${V}</${q}>`}function zY(Z){if(!Z)return"";let X=Z.tagName??"div",J="";if(Z.id)J+=' id="'+Z.id+'"';if(Z.className)J+=' class="'+O7(Z.className)+'"';if(Z.attributes&&typeof Z.attributes==="object")for(let[U,W]of Object.entries(Z.attributes))if(typeof W==="string"&&A1(W))J+=" "+U+'="'+O7(W)+'"';else J+=" "+U+'="'+U1(String(W))+'"';if(Z.style&&typeof Z.style==="object"){let U=[];for(let[W,q]of Object.entries(Z.style)){if(W.startsWith(":")||W.startsWith(".")||W.startsWith("&")||W.startsWith("[")||W.startsWith("@"))continue;if(q===null||typeof q==="object")continue;let Y=o1(W);if(A1(String(q)))U.push(Y+": "+O7(String(q)));else U.push(Y+": "+q)}if(U.length>0)J+=' style="'+U.join("; ")+'"'}for(let[U,W]of Object.entries(Z)){if(!U.startsWith("on")||U==="observedAttributes")continue;let q=U.slice(2).toLowerCase();if(A0(W)){let Y=P4(W.$ref);J+=" @"+q+"=${(e) => { state.$map = { item, index }; on."+Y+"(e); }}"}else if(W&&typeof W==="object"&&W.$prototype==="Function"){let Y=O7(W.body);J+=" @"+q+"=${(e) => { "+Y+" }}"}}if(Z.contentEditable)J+=' contenteditable="'+Z.contentEditable+'"';let G="";if(Z.textContent!==void 0){let U=String(Z.textContent);if(A1(U))G=O7(U);else if(A0(Z.textContent))G="${state."+P4(Z.textContent.$ref)+"}";else G=U1(U)}else if(Z.innerHTML)G=O7(String(Z.innerHTML));else if(Array.isArray(Z.children))G=`
306
- `+Z.children.map((U)=>zY(U)).join(`
321
+ </html>`,files:[{path:U,content:L}]}}function zY(Z,X,J,G,Q,U){if(typeof Z==="string")return U1(Z);if(typeof Z==="number"||typeof Z==="boolean")return U1(String(Z));if(!Z||typeof Z!=="object")return"";let W=E4(X,J.scope,X?.state??J.scopeDefs,X?.$media??J.media),q=Z.tagName??"div",Y=[],H=!1;if(Z.textContent!==void 0){let D=X?.textContent??Z.textContent;if(A0(D)){let R=P4(D.$ref);Y.push(`:text-content="${R}"`),hZ(G,R,D.$ref),H=!0}else if(A1(D)){let R=`_t${U.t++}`;Y.push(`:text-content="${R}"`),G.set(R,"() => `"+D+"`"),H=!0}}for(let[D,R]of Object.entries(Z)){if(!D.startsWith("on")||D==="observedAttributes")continue;let N=D.slice(2).toLowerCase();if(A0(R)){let L=P4(R.$ref);Y.push(`@${N}="${L}"`),H=!0}else if(R&&typeof R==="object"&&R.$prototype==="Function"){let L=R,E=`_h${U.h++}`;Y.push(`@${N}="${E}"`),Q.set(E,{args:L.parameters??L.arguments??["state","event"],body:L.body}),H=!0}}if(Z.style&&typeof Z.style==="object")for(let[D,R]of Object.entries(Z.style)){if(D.startsWith(":")||D.startsWith(".")||D.startsWith("&")||D.startsWith("[")||D.startsWith("@"))continue;if(R===null||typeof R==="object")continue;if(A1(R)){let N=`_s${U.s++}`;Y.push(`:style.${o1(D)}="${N}"`),G.set(N,"() => `"+R+"`"),H=!0}}if(Z.attributes&&typeof Z.attributes==="object"){for(let[D,R]of Object.entries(Z.attributes))if(A0(R)){let N=P4(R.$ref);Y.push(`:attr.${D}="${N}"`),hZ(G,N,R.$ref),H=!0}else if(A1(R)){let N=`_t${U.t++}`;Y.push(`:attr.${D}="${N}"`),G.set(N,"() => `"+R+"`"),H=!0}}for(let[D,R]of Object.entries(Z)){if(G4.has(D)||D.startsWith("on")||D.startsWith("$")||D==="tagName"||D==="id"||D==="className"||D==="style"||D==="children"||D==="textContent"||D==="innerHTML"||D==="attributes")continue;if(A0(R)){let N=P4(R.$ref);Y.push(`:${o1(D)}="${N}"`),hZ(G,N,R.$ref),H=!0}else if(A1(R)){let N=`_t${U.t++}`;Y.push(`:${o1(D)}="${N}"`),G.set(N,"() => `"+R+"`"),H=!0}}let K=V5(Z,W.scope),$=H?" data-bind":"",B=Y.length>0?" "+Y.join(" "):"",V="",M=X??Z;if(M.textContent!==void 0&&!H){let D=j1(M.textContent,W.scope);V=D==null?"":U1(String(D))}else if(M.textContent!==void 0&&H)try{let D=j1(M.textContent,W.scope);V=D==null?"":U1(String(D))}catch{V=""}else if(M.innerHTML)V=j1(M.innerHTML,W.scope)??M.innerHTML;else if(M.children&&typeof M.children==="object"&&!Array.isArray(M.children)&&M.children.$prototype==="Array"){U.needsLit=!0;let D=`_list${U.l++}`,R=M.children,N;if(A0(R.items))N="state."+P4(R.items.$ref);else N=JSON.stringify(R.items);let L=VY(R.map);G.set(D,"() => ("+N+" ?? []).map((item, index) => html`"+L+"`)"),Y.push(`:render="${D}"`),H=!0;let E=" data-bind",m=" "+Y.join(" ");if(new Set(["input","br","hr","img","meta","link"]).has(q))return`<${q}${K}${E}${m}>`;return`<${q}${K}${E}${m}></${q}>`}else if(Array.isArray(M.children)){let D=X?.children;V=M.children.map((R,N)=>{let L=D?.[N]??R;return zY(R,L,W,G,Q,U)}).join(`
322
+ `)}if(new Set(["input","br","hr","img","meta","link"]).has(q))return`<${q}${K}${$}${B}>`;return`<${q}${K}${$}${B}>${V}</${q}>`}function VY(Z){if(!Z)return"";let X=Z.tagName??"div",J="";if(Z.id)J+=' id="'+Z.id+'"';if(Z.className)J+=' class="'+O7(Z.className)+'"';if(Z.attributes&&typeof Z.attributes==="object")for(let[U,W]of Object.entries(Z.attributes))if(typeof W==="string"&&A1(W))J+=" "+U+'="'+O7(W)+'"';else J+=" "+U+'="'+U1(String(W))+'"';if(Z.style&&typeof Z.style==="object"){let U=[];for(let[W,q]of Object.entries(Z.style)){if(W.startsWith(":")||W.startsWith(".")||W.startsWith("&")||W.startsWith("[")||W.startsWith("@"))continue;if(q===null||typeof q==="object")continue;let Y=o1(W);if(A1(String(q)))U.push(Y+": "+O7(String(q)));else U.push(Y+": "+q)}if(U.length>0)J+=' style="'+U.join("; ")+'"'}for(let[U,W]of Object.entries(Z)){if(!U.startsWith("on")||U==="observedAttributes")continue;let q=U.slice(2).toLowerCase();if(A0(W)){let Y=P4(W.$ref);J+=" @"+q+"=${(e) => { state.$map = { item, index }; on."+Y+"(e); }}"}else if(W&&typeof W==="object"&&W.$prototype==="Function"){let Y=O7(W.body);J+=" @"+q+"=${(e) => { "+Y+" }}"}}if(Z.contentEditable)J+=' contenteditable="'+Z.contentEditable+'"';let G="";if(Z.textContent!==void 0){let U=String(Z.textContent);if(A1(U))G=O7(U);else if(A0(Z.textContent))G="${state."+P4(Z.textContent.$ref)+"}";else G=U1(U)}else if(Z.innerHTML)G=O7(String(Z.innerHTML));else if(Array.isArray(Z.children))G=`
323
+ `+Z.children.map((U)=>VY(U)).join(`
307
324
  `)+`
308
- `;if(new Set(["input","br","hr","img","meta","link"]).has(X))return"<"+X+J+">";return"<"+X+J+">"+G+"</"+X+">"}function O7(Z){return Z.replace(/\$map\./g,"")}function TR(Z,X,J,G,Q,U,W,q){let Y=[],H=W.needsLit,K=X.length>0;Y.push("// Generated by @jxsuite/compiler — do not edit manually");let $=["reactive","effect"];if(K)$.push("computed");if(Y.push("import { "+$.join(", ")+" } from '@vue/reactivity';"),H)Y.push("import { html, render } from 'lit-html';");for(let[B,V]of U)Y.push("import { "+[...V].join(", ")+" } from '"+B+"';");Y.push(""),Y.push("const state = reactive({");for(let[B,V]of Z)Y.push(" "+B+": "+JSON.stringify(V)+",");if(Y.push("});"),Y.push(""),Q.length>0){for(let B of Q)Y.push(B);Y.push("")}if(X.length>0){for(let[B,V]of X)Y.push("state."+B+" = computed("+V+");");Y.push("")}if(J.length>0){Y.push("const bind = {");for(let[B,V]of J)Y.push(" "+B+": "+V+",");Y.push("};")}else Y.push("const bind = {};");if(Y.push(""),G.length>0){Y.push("const on = {");for(let[B,V]of G)if(V.imported){let _=(V.args??["state"]).map((D)=>D==="state"?"state":"e").join(", ");Y.push(" "+B+": (e) => { "+B+"("+_+"); },")}else{let M=V.args??["state"],_=M.map((D)=>D==="state"?"state":"e").join(", ");Y.push(" "+B+": (e) => { const fn = ("+M.join(", ")+") => { "+V.body+" }; fn("+_+"); },")}Y.push("};")}else Y.push("const on = {};");if(Y.push(""),Y.push("function hydrate(root) {"),Y.push(" root.querySelectorAll('[data-bind]').forEach(el => {"),Y.push(" [...el.attributes].forEach(a => {"),Y.push(" if (a.name.startsWith(':')) {"),Y.push(" const parts = a.name.slice(1).split('.');"),Y.push(" const key = a.value;"),H)Y.push(" if (parts[0] === 'render') {"),Y.push(" effect(() => { render(bind[key](), el); });"),Y.push(" } else if (parts[0] === 'style' && parts.length > 1) {");else Y.push(" if (parts[0] === 'style' && parts.length > 1) {");return Y.push(" effect(() => { el.style[parts[1]] = bind[key](); });"),Y.push(" } else if (parts[0] === 'attr' && parts.length > 1) {"),Y.push(" effect(() => { el.setAttribute(parts[1], bind[key]()); });"),Y.push(" } else {"),Y.push(" const prop = parts[0].replace(/-([a-z])/g, (_, c) => c.toUpperCase());"),Y.push(" effect(() => { el[prop] = bind[key](); });"),Y.push(" }"),Y.push(" } else if (a.name.startsWith('@')) {"),Y.push(" el.addEventListener(a.name.slice(1), on[a.value]);"),Y.push(" }"),Y.push(" });"),Y.push(" });"),Y.push("}"),Y.push(""),Y.push("hydrate(document);"),Y.push(""),Y.join(`
309
- `)}function CR(Z,X){let J=X.url,G=X.method??"GET",Q=A1(J);if(X.manual)return"// "+Z+": manual Request — fetch triggered by user action";let U=[];if(U.push("// "+Z+": auto-fetch from "+(Q?"(dynamic URL)":J)),U.push("effect(() => {"),Q)U.push(" const url = `"+J+"`;"),U.push(' if (!url || url === "undefined" || url.includes("undefined")) return;');else U.push(" const url = "+JSON.stringify(J)+";");let W=[];if(G!=="GET")W.push("method: "+JSON.stringify(G));if(X.headers)W.push("headers: "+JSON.stringify(X.headers));if(X.body){let Y=typeof X.body==="object"?JSON.stringify(JSON.stringify(X.body)):JSON.stringify(X.body);W.push("body: "+Y)}let q=W.length>0?", { "+W.join(", ")+" }":"";return U.push(" fetch(url"+q+")"),U.push(" .then(r => r.ok ? r.json() : Promise.reject(r.statusText))"),U.push(" .then(d => { state."+Z+" = d; })"),U.push(" .catch(e => { state."+Z+" = { error: String(e) }; });"),U.push("});"),U.join(`
310
- `)}function jR(Z,X,J,G){let Q=[];return Q.push("// "+Z+": "+X+' (key: "'+J+'")'),Q.push("try {"),Q.push(" const _s = "+X+".getItem("+JSON.stringify(J)+");"),Q.push(" state."+Z+" = _s !== null ? JSON.parse(_s) : "+JSON.stringify(G)+";"),Q.push("} catch { state."+Z+" = "+JSON.stringify(G)+"; }"),Q.push("effect(() => {"),Q.push(" const v = state."+Z+";"),Q.push(" try {"),Q.push(" if (v === null) "+X+".removeItem("+JSON.stringify(J)+");"),Q.push(" else "+X+".setItem("+JSON.stringify(J)+", JSON.stringify(v));"),Q.push(" } catch {}"),Q.push("});"),Q.join(`
311
- `)}function ER(Z,X,J){let G=[];return G.push("// "+Z+': Cookie (name: "'+X+'")'),G.push("{"),G.push(' const _m = document.cookie.match(new RegExp("(?:^|; )'+X+'=([^;]*)"));'),G.push(" try { state."+Z+" = _m ? JSON.parse(decodeURIComponent(_m[1])) : "+JSON.stringify(J)+"; }"),G.push(" catch { state."+Z+" = _m ? _m[1] : "+JSON.stringify(J)+"; }"),G.push("}"),G.join(`
312
- `)}function P4(Z){if(Z.startsWith("#/state/"))return Z.slice(8).replace(/\//g,"_");return Z.replace(/\//g,"_")}function hZ(Z,X,J){if(Z.has(X))return;if(J.startsWith("#/state/")){let Q=J.slice(8).split("/");Z.set(X,"() => state."+Q.join("."))}else Z.set(X,"() => state."+J)}async function yR(Z,X={}){let{title:J="Jx App",reactivitySrc:G=$5,litHtmlSrc:Q=z5,projectStyle:U=null}=X,W;if(typeof Z==="string"){let q=kR(Z,"utf8");if(Z.endsWith(".md")){let{transpileJxMarkdown:Y}=await Promise.resolve().then(() => (yZ(),kZ));W=Y(q)}else W=JSON.parse(q)}else W=Z;if(W.$prototype==="Class"){let{compileClassJson:q}=await Promise.resolve().then(() => BY),Y=q(W,X);return{html:"",files:[{path:typeof Z==="string"?Z.replace(/\.class\.json$/,".js"):`${W.title}.js`,content:Y}]}}if(!F8(W))return YY(W,{title:J,reactivitySrc:G,litHtmlSrc:Q,projectStyle:U});if(W.tagName&&W.tagName.includes("-")){let q=W.tagName,Y=B5(q),H=q5(W,Y,[]),K={path:`${q}.js`,content:H,tagName:q},$=S4(W,W.$media??{});return{html:`<!DOCTYPE html>
325
+ `;if(new Set(["input","br","hr","img","meta","link"]).has(X))return"<"+X+J+">";return"<"+X+J+">"+G+"</"+X+">"}function O7(Z){return Z.replace(/\$map\./g,"")}function jR(Z,X,J,G,Q,U,W,q){let Y=[],H=W.needsLit,K=X.length>0;Y.push("// Generated by @jxsuite/compiler — do not edit manually");let $=["reactive","effect"];if(K)$.push("computed");if(Y.push("import { "+$.join(", ")+" } from '@vue/reactivity';"),H)Y.push("import { html, render } from 'lit-html';");for(let[B,V]of U)Y.push("import { "+[...V].join(", ")+" } from '"+B+"';");Y.push(""),Y.push("const state = reactive({");for(let[B,V]of Z)Y.push(" "+B+": "+JSON.stringify(V)+",");if(Y.push("});"),Y.push(""),Q.length>0){for(let B of Q)Y.push(B);Y.push("")}if(X.length>0){for(let[B,V]of X)Y.push("state."+B+" = computed("+V+");");Y.push("")}if(J.length>0){Y.push("const bind = {");for(let[B,V]of J)Y.push(" "+B+": "+V+",");Y.push("};")}else Y.push("const bind = {};");if(Y.push(""),G.length>0){Y.push("const on = {");for(let[B,V]of G)if(V.imported){let _=(V.args??["state"]).map((D)=>D==="state"?"state":"e").join(", ");Y.push(" "+B+": (e) => { "+B+"("+_+"); },")}else{let M=V.args??["state"],_=M.map((D)=>D==="state"?"state":"e").join(", ");Y.push(" "+B+": (e) => { const fn = ("+M.join(", ")+") => { "+V.body+" }; fn("+_+"); },")}Y.push("};")}else Y.push("const on = {};");if(Y.push(""),Y.push("function hydrate(root) {"),Y.push(" root.querySelectorAll('[data-bind]').forEach(el => {"),Y.push(" [...el.attributes].forEach(a => {"),Y.push(" if (a.name.startsWith(':')) {"),Y.push(" const parts = a.name.slice(1).split('.');"),Y.push(" const key = a.value;"),H)Y.push(" if (parts[0] === 'render') {"),Y.push(" effect(() => { render(bind[key](), el); });"),Y.push(" } else if (parts[0] === 'style' && parts.length > 1) {");else Y.push(" if (parts[0] === 'style' && parts.length > 1) {");return Y.push(" effect(() => { el.style[parts[1]] = bind[key](); });"),Y.push(" } else if (parts[0] === 'attr' && parts.length > 1) {"),Y.push(" effect(() => { el.setAttribute(parts[1], bind[key]()); });"),Y.push(" } else {"),Y.push(" const prop = parts[0].replace(/-([a-z])/g, (_, c) => c.toUpperCase());"),Y.push(" effect(() => { el[prop] = bind[key](); });"),Y.push(" }"),Y.push(" } else if (a.name.startsWith('@')) {"),Y.push(" el.addEventListener(a.name.slice(1), on[a.value]);"),Y.push(" }"),Y.push(" });"),Y.push(" });"),Y.push("}"),Y.push(""),Y.push("hydrate(document);"),Y.push(""),Y.join(`
326
+ `)}function ER(Z,X){let J=X.url,G=X.method??"GET",Q=A1(J);if(X.manual)return"// "+Z+": manual Request — fetch triggered by user action";let U=[];if(U.push("// "+Z+": auto-fetch from "+(Q?"(dynamic URL)":J)),U.push("effect(() => {"),Q)U.push(" const url = `"+J+"`;"),U.push(' if (!url || url === "undefined" || url.includes("undefined")) return;');else U.push(" const url = "+JSON.stringify(J)+";");let W=[];if(G!=="GET")W.push("method: "+JSON.stringify(G));if(X.headers)W.push("headers: "+JSON.stringify(X.headers));if(X.body){let Y=typeof X.body==="object"?JSON.stringify(JSON.stringify(X.body)):JSON.stringify(X.body);W.push("body: "+Y)}let q=W.length>0?", { "+W.join(", ")+" }":"";return U.push(" fetch(url"+q+")"),U.push(" .then(r => r.ok ? r.json() : Promise.reject(r.statusText))"),U.push(" .then(d => { state."+Z+" = d; })"),U.push(" .catch(e => { state."+Z+" = { error: String(e) }; });"),U.push("});"),U.join(`
327
+ `)}function SR(Z,X,J,G){let Q=[];return Q.push("// "+Z+": "+X+' (key: "'+J+'")'),Q.push("try {"),Q.push(" const _s = "+X+".getItem("+JSON.stringify(J)+");"),Q.push(" state."+Z+" = _s !== null ? JSON.parse(_s) : "+JSON.stringify(G)+";"),Q.push("} catch { state."+Z+" = "+JSON.stringify(G)+"; }"),Q.push("effect(() => {"),Q.push(" const v = state."+Z+";"),Q.push(" try {"),Q.push(" if (v === null) "+X+".removeItem("+JSON.stringify(J)+");"),Q.push(" else "+X+".setItem("+JSON.stringify(J)+", JSON.stringify(v));"),Q.push(" } catch {}"),Q.push("});"),Q.join(`
328
+ `)}function bR(Z,X,J){let G=[];return G.push("// "+Z+': Cookie (name: "'+X+'")'),G.push("{"),G.push(' const _m = document.cookie.match(new RegExp("(?:^|; )'+X+'=([^;]*)"));'),G.push(" try { state."+Z+" = _m ? JSON.parse(decodeURIComponent(_m[1])) : "+JSON.stringify(J)+"; }"),G.push(" catch { state."+Z+" = _m ? _m[1] : "+JSON.stringify(J)+"; }"),G.push("}"),G.join(`
329
+ `)}function P4(Z){if(Z.startsWith("#/state/"))return Z.slice(8).replace(/\//g,"_");return Z.replace(/\//g,"_")}function hZ(Z,X,J){if(Z.has(X))return;if(J.startsWith("#/state/")){let Q=J.slice(8).split("/");Z.set(X,"() => state."+Q.join("."))}else Z.set(X,"() => state."+J)}async function hR(Z,X={}){let{title:J="Jx App",reactivitySrc:G=$5,litHtmlSrc:Q=z5,projectStyle:U=null}=X,W;if(typeof Z==="string"){let q=vR(Z,"utf8");if(Z.endsWith(".md")){let{transpileJxMarkdown:Y}=await Promise.resolve().then(() => (yZ(),kZ));W=Y(q)}else W=JSON.parse(q)}else W=Z;if(W.$prototype==="Class"){let{compileClassJson:q}=await Promise.resolve().then(() => FY),Y=q(W,X);return{html:"",files:[{path:typeof Z==="string"?Z.replace(/\.class\.json$/,".js"):`${W.title}.js`,content:Y}]}}if(!F8(W))return HY(W,{title:J,reactivitySrc:G,litHtmlSrc:Q,projectStyle:U});if(W.tagName&&W.tagName.includes("-")){let q=W.tagName,Y=B5(q),H=q5(W,Y,[]),K={path:`${q}.js`,content:H,tagName:q},$=S4(W,W.$media??{});return{html:`<!DOCTYPE html>
313
330
  <html lang="en">
314
331
  <head>
315
332
  <meta charset="utf-8">
@@ -329,4 +346,4 @@ ${E.join(`,
329
346
  <${q}></${q}>
330
347
  <script type="module" src="./${q}.js"></script>
331
348
  </body>
332
- </html>`,files:[K]}}return KY(W,{title:J,reactivitySrc:G,litHtmlSrc:Q,projectStyle:U})}var vR=process.argv[1]?.endsWith("compiler.js");if(vR&&process.argv[2]){let[,,Z,X]=process.argv;Promise.all([yR(Z),b2(Z)]).then(async([J,G])=>{let{writeFileSync:Q,mkdirSync:U}=await import("node:fs"),{dirname:W,join:q}=await Promise.resolve().then(() => (y7(),k7));if(X){Q(X,J.html,"utf8"),console.error(`Written to ${X}`);let Y=W(X);for(let H of J.files){let K=q(Y,H.path);U(W(K),{recursive:!0}),Q(K,H.content,"utf8"),console.error(`Written to ${K}`)}}else process.stdout.write(J.html);if(G&&X){let Y=X.replace(/(\.[^.]+)?$/,"-server.js");Q(Y,G,"utf8"),console.error(`Server handler written to ${Y}`)}}).catch((J)=>{console.error(J),process.exit(1)})}export{F8 as isDynamic,b2 as compileServer,OR as compileElementPage,QY as compileElement,KY as compileClient,yR as compile};
349
+ </html>`,files:[K]}}return $Y(W,{title:J,reactivitySrc:G,litHtmlSrc:Q,projectStyle:U})}var mR=process.argv[1]?.endsWith("compiler.js");if(mR&&process.argv[2]){let[,,Z,X]=process.argv;Promise.all([hR(Z),b2(Z)]).then(async([J,G])=>{let{writeFileSync:Q,mkdirSync:U}=await import("node:fs"),{dirname:W,join:q}=await Promise.resolve().then(() => (y7(),k7));if(X){Q(X,J.html,"utf8"),console.error(`Written to ${X}`);let Y=W(X);for(let H of J.files){let K=q(Y,H.path);U(W(K),{recursive:!0}),Q(K,H.content,"utf8"),console.error(`Written to ${K}`)}}else process.stdout.write(J.html);if(G&&X){let Y=X.replace(/(\.[^.]+)?$/,"-server.js");Q(Y,G,"utf8"),console.error(`Server handler written to ${Y}`)}}).catch((J)=>{console.error(J),process.exit(1)})}export{F8 as isDynamic,h$ as compileSiteServer,b2 as compileServer,LR as compileElementPage,UY as compileElement,$Y as compileClient,hR as compile};