@rizom/brain 0.2.0-alpha.80 → 0.2.0-alpha.82
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/brain.js +720 -693
- package/dist/entities.d.ts +25 -5
- package/dist/entities.js +64 -64
- package/dist/entities.js.map +11 -10
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/interfaces.js.map +1 -1
- package/dist/migrations/entity-service/0001_sleepy_mandroid.sql +1 -0
- package/dist/migrations/entity-service/meta/0001_snapshot.json +139 -0
- package/dist/migrations/entity-service/meta/_journal.json +7 -0
- package/dist/plugins.d.ts +22 -5
- package/dist/plugins.js +71 -71
- package/dist/plugins.js.map +19 -18
- package/dist/services.d.ts +19 -2
- package/dist/services.js +68 -68
- package/dist/services.js.map +10 -9
- package/dist/site.js +178 -178
- package/dist/site.js.map +34 -30
- package/dist/templates.d.ts +3 -3
- package/dist/templates.js.map +1 -1
- package/package.json +1 -1
package/dist/entities.js
CHANGED
|
@@ -1,122 +1,122 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var
|
|
2
|
+
var qX=Object.create;var{getPrototypeOf:YX,defineProperty:o5,getOwnPropertyNames:VX}=Object;var WX=Object.prototype.hasOwnProperty;function HX($){return this[$]}var UX,MX,k4=($,J,G)=>{var X=$!=null&&typeof $==="object";if(X){var q=J?UX??=new WeakMap:MX??=new WeakMap,V=q.get($);if(V)return V}G=$!=null?qX(YX($)):{};let Y=J||!$||!$.__esModule?o5(G,"default",{value:$,enumerable:!0}):G;for(let W of VX($))if(!WX.call(Y,W))o5(Y,W,{get:HX.bind($,W),enumerable:!0});if(X)q.set($,Y);return Y};var m=($,J)=>()=>(J||$((J={exports:{}}).exports,J),J.exports);var zX=($)=>$;function DX($,J){this[$]=zX.bind(null,J)}var r9=($,J)=>{for(var G in J)o5($,G,{get:J[G],enumerable:!0,configurable:!0,set:DX.bind(J,G)})};var Q0=import.meta.require;var X4=m((QR,u8)=>{var _X=Object.prototype.toString;u8.exports=function(J){if(J===void 0)return"undefined";if(J===null)return"null";var G=typeof J;if(G==="boolean")return"boolean";if(G==="string")return"string";if(G==="number")return"number";if(G==="symbol")return"symbol";if(G==="function")return EX(J)?"generatorfunction":"function";if(PX(J))return"array";if(bX(J))return"buffer";if(CX(J))return"arguments";if(TX(J))return"date";if(LX(J))return"error";if(IX(J))return"regexp";switch(f8(J)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(SX(J))return"generator";switch(G=_X.call(J),G){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return G.slice(8,-1).toLowerCase().replace(/\s/g,"")};function f8($){return typeof $.constructor==="function"?$.constructor.name:null}function PX($){if(Array.isArray)return Array.isArray($);return $ instanceof Array}function LX($){return $ instanceof Error||typeof $.message==="string"&&$.constructor&&typeof $.constructor.stackTraceLimit==="number"}function TX($){if($ instanceof Date)return!0;return typeof $.toDateString==="function"&&typeof $.getDate==="function"&&typeof $.setDate==="function"}function IX($){if($ instanceof RegExp)return!0;return typeof $.flags==="string"&&typeof $.ignoreCase==="boolean"&&typeof $.multiline==="boolean"&&typeof $.global==="boolean"}function EX($,J){return f8($)==="GeneratorFunction"}function SX($){return typeof $.throw==="function"&&typeof $.return==="function"&&typeof $.next==="function"}function CX($){try{if(typeof $.length==="number"&&typeof $.callee==="function")return!0}catch(J){if(J.message.indexOf("callee")!==-1)return!0}return!1}function bX($){if($.constructor&&typeof $.constructor.isBuffer==="function")return $.constructor.isBuffer($);return!1}});var l8=m((KR,p8)=>{/*!
|
|
3
3
|
* is-extendable <https://github.com/jonschlinkert/is-extendable>
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2015, Jon Schlinkert.
|
|
6
6
|
* Licensed under the MIT License.
|
|
7
|
-
*/
|
|
7
|
+
*/p8.exports=function(J){return typeof J<"u"&&J!==null&&(typeof J==="object"||typeof J==="function")}});var c8=m((FR,d8)=>{var r8=l8();d8.exports=function(J){if(!r8(J))J={};var G=arguments.length;for(var X=1;X<G;X++){var q=arguments[X];if(r8(q))xX(J,q)}return J};function xX($,J){for(var G in J)if(vX(J,G))$[G]=J[G]}function vX($,J){return Object.prototype.hasOwnProperty.call($,J)}});var n8=m((RR,o8)=>{var kX=X4(),gX=c8();o8.exports=function($,J){if(typeof J==="function")J={parse:J};var G=yX($),X={section_delimiter:"---",parse:fX},q=gX({},X,J),V=q.section_delimiter,Y=G.content.split(/\r?\n/),W=null,H=i8(),U=[],M=[];function Q(_){G.content=_,W=[],U=[]}function F(_){if(M.length)H.key=mX(M[0],V),H.content=_,q.parse(H,W),W.push(H),H=i8(),U=[],M=[]}for(var K=0;K<Y.length;K++){var j=Y[K],N=M.length,P=j.trim();if(hX(P,V)){if(P.length===3&&K!==0){if(N===0||N===2){U.push(j);continue}M.push(P),H.data=U.join(`
|
|
8
8
|
`),U=[];continue}if(W===null)Q(U.join(`
|
|
9
9
|
`));if(N===2)F(U.join(`
|
|
10
10
|
`));M.push(P);continue}U.push(j)}if(W===null)Q(U.join(`
|
|
11
11
|
`));else F(U.join(`
|
|
12
|
-
`));return G.sections=W,G};function
|
|
12
|
+
`));return G.sections=W,G};function hX($,J){if($.slice(0,J.length)!==J)return!1;if($.charAt(J.length+1)===J.slice(-1))return!1;return!0}function yX($){if(kX($)!=="object")$={content:$};if(typeof $.content!=="string"&&!uX($.content))throw TypeError("expected a buffer or string");return $.content=$.content.toString(),$.sections=[],$}function mX($,J){return $?$.slice(J.length).trim():""}function i8(){return{key:"",data:"",content:""}}function fX($){return $}function uX($){if($&&$.constructor&&typeof $.constructor.isBuffer==="function")return $.constructor.isBuffer($);return!1}});var l0=m((iX,p0)=>{function a8($){return typeof $>"u"||$===null}function pX($){return typeof $==="object"&&$!==null}function lX($){if(Array.isArray($))return $;else if(a8($))return[];return[$]}function rX($,J){var G,X,q,V;if(J){V=Object.keys(J);for(G=0,X=V.length;G<X;G+=1)q=V[G],$[q]=J[q]}return $}function dX($,J){var G="",X;for(X=0;X<J;X+=1)G+=$;return G}function cX($){return $===0&&Number.NEGATIVE_INFINITY===1/$}iX.isNothing=a8;iX.isObject=pX;iX.toArray=lX;iX.repeat=dX;iX.isNegativeZero=cX;iX.extend=rX});var D2=m((BR,s8)=>{function q4($,J){if(Error.call(this),this.name="YAMLException",this.reason=$,this.mark=J,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}q4.prototype=Object.create(Error.prototype);q4.prototype.constructor=q4;q4.prototype.toString=function(J){var G=this.name+": ";if(G+=this.reason||"(unknown reason)",!J&&this.mark)G+=" "+this.mark.toString();return G};s8.exports=q4});var $7=m((OR,e8)=>{var t8=l0();function V6($,J,G,X,q){this.name=$,this.buffer=J,this.position=G,this.line=X,this.column=q}V6.prototype.getSnippet=function(J,G){var X,q,V,Y,W;if(!this.buffer)return null;J=J||4,G=G||75,X="",q=this.position;while(q>0&&`\x00\r
|
|
13
13
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(q-1))===-1)if(q-=1,this.position-q>G/2-1){X=" ... ",q+=5;break}V="",Y=this.position;while(Y<this.buffer.length&&`\x00\r
|
|
14
|
-
\x85\u2028\u2029`.indexOf(this.buffer.charAt(Y))===-1)if(Y+=1,Y-this.position>G/2-1){V=" ... ",Y-=5;break}return W=this.buffer.slice(q,Y),
|
|
15
|
-
`+
|
|
16
|
-
`+G}return X};
|
|
17
|
-
\r`;function
|
|
18
|
-
`:$===118?"\v":$===102?"\f":$===114?"\r":$===101?"\x1B":$===32?" ":$===34?'"':$===47?"/":$===92?"\\":$===78?"\x85":$===95?"\xA0":$===76?"\u2028":$===80?"\u2029":""}function
|
|
19
|
-
`,J-1)}function
|
|
20
|
-
`,V?1+H:H);else if(q===
|
|
21
|
-
`}break}if(X)if(
|
|
14
|
+
\x85\u2028\u2029`.indexOf(this.buffer.charAt(Y))===-1)if(Y+=1,Y-this.position>G/2-1){V=" ... ",Y-=5;break}return W=this.buffer.slice(q,Y),t8.repeat(" ",J)+X+W+V+`
|
|
15
|
+
`+t8.repeat(" ",J+this.position-q+X.length)+"^"};V6.prototype.toString=function(J){var G,X="";if(this.name)X+='in "'+this.name+'" ';if(X+="at line "+(this.line+1)+", column "+(this.column+1),!J){if(G=this.getSnippet(),G)X+=`:
|
|
16
|
+
`+G}return X};e8.exports=V6});var F1=m((AR,G7)=>{var J7=D2(),$q=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Jq=["scalar","sequence","mapping"];function Gq($){var J={};if($!==null)Object.keys($).forEach(function(G){$[G].forEach(function(X){J[String(X)]=G})});return J}function Xq($,J){if(J=J||{},Object.keys(J).forEach(function(G){if($q.indexOf(G)===-1)throw new J7('Unknown option "'+G+'" is met in definition of "'+$+'" YAML type.')}),this.tag=$,this.kind=J.kind||null,this.resolve=J.resolve||function(){return!0},this.construct=J.construct||function(G){return G},this.instanceOf=J.instanceOf||null,this.predicate=J.predicate||null,this.represent=J.represent||null,this.defaultStyle=J.defaultStyle||null,this.styleAliases=Gq(J.styleAliases||null),Jq.indexOf(this.kind)===-1)throw new J7('Unknown kind "'+this.kind+'" is specified for "'+$+'" YAML type.')}G7.exports=Xq});var r0=m((wR,q7)=>{var X7=l0(),c4=D2(),qq=F1();function W6($,J,G){var X=[];return $.include.forEach(function(q){G=W6(q,J,G)}),$[J].forEach(function(q){G.forEach(function(V,Y){if(V.tag===q.tag&&V.kind===q.kind)X.push(Y)}),G.push(q)}),G.filter(function(q,V){return X.indexOf(V)===-1})}function Yq(){var $={scalar:{},sequence:{},mapping:{},fallback:{}},J,G;function X(q){$[q.kind][q.tag]=$.fallback[q.tag]=q}for(J=0,G=arguments.length;J<G;J+=1)arguments[J].forEach(X);return $}function Q2($){this.include=$.include||[],this.implicit=$.implicit||[],this.explicit=$.explicit||[],this.implicit.forEach(function(J){if(J.loadKind&&J.loadKind!=="scalar")throw new c4("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=W6(this,"implicit",[]),this.compiledExplicit=W6(this,"explicit",[]),this.compiledTypeMap=Yq(this.compiledImplicit,this.compiledExplicit)}Q2.DEFAULT=null;Q2.create=function(){var J,G;switch(arguments.length){case 1:J=Q2.DEFAULT,G=arguments[0];break;case 2:J=arguments[0],G=arguments[1];break;default:throw new c4("Wrong number of arguments for Schema.create function")}if(J=X7.toArray(J),G=X7.toArray(G),!J.every(function(X){return X instanceof Q2}))throw new c4("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!G.every(function(X){return X instanceof qq}))throw new c4("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Q2({include:J,explicit:G})};q7.exports=Q2});var V7=m((jR,Y7)=>{var Vq=F1();Y7.exports=new Vq("tag:yaml.org,2002:str",{kind:"scalar",construct:function($){return $!==null?$:""}})});var H7=m((NR,W7)=>{var Wq=F1();W7.exports=new Wq("tag:yaml.org,2002:seq",{kind:"sequence",construct:function($){return $!==null?$:[]}})});var M7=m((ZR,U7)=>{var Hq=F1();U7.exports=new Hq("tag:yaml.org,2002:map",{kind:"mapping",construct:function($){return $!==null?$:{}}})});var i4=m((_R,z7)=>{var Uq=r0();z7.exports=new Uq({explicit:[V7(),H7(),M7()]})});var Q7=m((PR,D7)=>{var Mq=F1();function zq($){if($===null)return!0;var J=$.length;return J===1&&$==="~"||J===4&&($==="null"||$==="Null"||$==="NULL")}function Dq(){return null}function Qq($){return $===null}D7.exports=new Mq("tag:yaml.org,2002:null",{kind:"scalar",resolve:zq,construct:Dq,predicate:Qq,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var F7=m((LR,K7)=>{var Kq=F1();function Fq($){if($===null)return!1;var J=$.length;return J===4&&($==="true"||$==="True"||$==="TRUE")||J===5&&($==="false"||$==="False"||$==="FALSE")}function Rq($){return $==="true"||$==="True"||$==="TRUE"}function Bq($){return Object.prototype.toString.call($)==="[object Boolean]"}K7.exports=new Kq("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Fq,construct:Rq,predicate:Bq,represent:{lowercase:function($){return $?"true":"false"},uppercase:function($){return $?"TRUE":"FALSE"},camelcase:function($){return $?"True":"False"}},defaultStyle:"lowercase"})});var B7=m((TR,R7)=>{var Oq=l0(),Aq=F1();function wq($){return 48<=$&&$<=57||65<=$&&$<=70||97<=$&&$<=102}function jq($){return 48<=$&&$<=55}function Nq($){return 48<=$&&$<=57}function Zq($){if($===null)return!1;var J=$.length,G=0,X=!1,q;if(!J)return!1;if(q=$[G],q==="-"||q==="+")q=$[++G];if(q==="0"){if(G+1===J)return!0;if(q=$[++G],q==="b"){G++;for(;G<J;G++){if(q=$[G],q==="_")continue;if(q!=="0"&&q!=="1")return!1;X=!0}return X&&q!=="_"}if(q==="x"){G++;for(;G<J;G++){if(q=$[G],q==="_")continue;if(!wq($.charCodeAt(G)))return!1;X=!0}return X&&q!=="_"}for(;G<J;G++){if(q=$[G],q==="_")continue;if(!jq($.charCodeAt(G)))return!1;X=!0}return X&&q!=="_"}if(q==="_")return!1;for(;G<J;G++){if(q=$[G],q==="_")continue;if(q===":")break;if(!Nq($.charCodeAt(G)))return!1;X=!0}if(!X||q==="_")return!1;if(q!==":")return!0;return/^(:[0-5]?[0-9])+$/.test($.slice(G))}function _q($){var J=$,G=1,X,q,V=[];if(J.indexOf("_")!==-1)J=J.replace(/_/g,"");if(X=J[0],X==="-"||X==="+"){if(X==="-")G=-1;J=J.slice(1),X=J[0]}if(J==="0")return 0;if(X==="0"){if(J[1]==="b")return G*parseInt(J.slice(2),2);if(J[1]==="x")return G*parseInt(J,16);return G*parseInt(J,8)}if(J.indexOf(":")!==-1)return J.split(":").forEach(function(Y){V.unshift(parseInt(Y,10))}),J=0,q=1,V.forEach(function(Y){J+=Y*q,q*=60}),G*J;return G*parseInt(J,10)}function Pq($){return Object.prototype.toString.call($)==="[object Number]"&&($%1===0&&!Oq.isNegativeZero($))}R7.exports=new Aq("tag:yaml.org,2002:int",{kind:"scalar",resolve:Zq,construct:_q,predicate:Pq,represent:{binary:function($){return $>=0?"0b"+$.toString(2):"-0b"+$.toString(2).slice(1)},octal:function($){return $>=0?"0"+$.toString(8):"-0"+$.toString(8).slice(1)},decimal:function($){return $.toString(10)},hexadecimal:function($){return $>=0?"0x"+$.toString(16).toUpperCase():"-0x"+$.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var w7=m((IR,A7)=>{var O7=l0(),Lq=F1(),Tq=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Iq($){if($===null)return!1;if(!Tq.test($)||$[$.length-1]==="_")return!1;return!0}function Eq($){var J,G,X,q;if(J=$.replace(/_/g,"").toLowerCase(),G=J[0]==="-"?-1:1,q=[],"+-".indexOf(J[0])>=0)J=J.slice(1);if(J===".inf")return G===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(J===".nan")return NaN;else if(J.indexOf(":")>=0)return J.split(":").forEach(function(V){q.unshift(parseFloat(V,10))}),J=0,X=1,q.forEach(function(V){J+=V*X,X*=60}),G*J;return G*parseFloat(J,10)}var Sq=/^[-+]?[0-9]+e/;function Cq($,J){var G;if(isNaN($))switch(J){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===$)switch(J){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===$)switch(J){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(O7.isNegativeZero($))return"-0.0";return G=$.toString(10),Sq.test(G)?G.replace("e",".e"):G}function bq($){return Object.prototype.toString.call($)==="[object Number]"&&($%1!==0||O7.isNegativeZero($))}A7.exports=new Lq("tag:yaml.org,2002:float",{kind:"scalar",resolve:Iq,construct:Eq,predicate:bq,represent:Cq,defaultStyle:"lowercase"})});var H6=m((ER,j7)=>{var xq=r0();j7.exports=new xq({include:[i4()],implicit:[Q7(),F7(),B7(),w7()]})});var U6=m((SR,N7)=>{var vq=r0();N7.exports=new vq({include:[H6()]})});var L7=m((CR,P7)=>{var kq=F1(),Z7=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),_7=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 gq($){if($===null)return!1;if(Z7.exec($)!==null)return!0;if(_7.exec($)!==null)return!0;return!1}function hq($){var J,G,X,q,V,Y,W,H=0,U=null,M,Q,F;if(J=Z7.exec($),J===null)J=_7.exec($);if(J===null)throw Error("Date resolve error");if(G=+J[1],X=+J[2]-1,q=+J[3],!J[4])return new Date(Date.UTC(G,X,q));if(V=+J[4],Y=+J[5],W=+J[6],J[7]){H=J[7].slice(0,3);while(H.length<3)H+="0";H=+H}if(J[9]){if(M=+J[10],Q=+(J[11]||0),U=(M*60+Q)*60000,J[9]==="-")U=-U}if(F=new Date(Date.UTC(G,X,q,V,Y,W,H)),U)F.setTime(F.getTime()-U);return F}function yq($){return $.toISOString()}P7.exports=new kq("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:gq,construct:hq,instanceOf:Date,represent:yq})});var I7=m((bR,T7)=>{var mq=F1();function fq($){return $==="<<"||$===null}T7.exports=new mq("tag:yaml.org,2002:merge",{kind:"scalar",resolve:fq})});var S7=m((xR,E7)=>{var d0;try{M6=Q0,d0=M6("buffer").Buffer}catch($){}var M6,uq=F1(),z6=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
17
|
+
\r`;function pq($){if($===null)return!1;var J,G,X=0,q=$.length,V=z6;for(G=0;G<q;G++){if(J=V.indexOf($.charAt(G)),J>64)continue;if(J<0)return!1;X+=6}return X%8===0}function lq($){var J,G,X=$.replace(/[\r\n=]/g,""),q=X.length,V=z6,Y=0,W=[];for(J=0;J<q;J++){if(J%4===0&&J)W.push(Y>>16&255),W.push(Y>>8&255),W.push(Y&255);Y=Y<<6|V.indexOf(X.charAt(J))}if(G=q%4*6,G===0)W.push(Y>>16&255),W.push(Y>>8&255),W.push(Y&255);else if(G===18)W.push(Y>>10&255),W.push(Y>>2&255);else if(G===12)W.push(Y>>4&255);if(d0)return d0.from?d0.from(W):new d0(W);return W}function rq($){var J="",G=0,X,q,V=$.length,Y=z6;for(X=0;X<V;X++){if(X%3===0&&X)J+=Y[G>>18&63],J+=Y[G>>12&63],J+=Y[G>>6&63],J+=Y[G&63];G=(G<<8)+$[X]}if(q=V%3,q===0)J+=Y[G>>18&63],J+=Y[G>>12&63],J+=Y[G>>6&63],J+=Y[G&63];else if(q===2)J+=Y[G>>10&63],J+=Y[G>>4&63],J+=Y[G<<2&63],J+=Y[64];else if(q===1)J+=Y[G>>2&63],J+=Y[G<<4&63],J+=Y[64],J+=Y[64];return J}function dq($){return d0&&d0.isBuffer($)}E7.exports=new uq("tag:yaml.org,2002:binary",{kind:"scalar",resolve:pq,construct:lq,predicate:dq,represent:rq})});var b7=m((kR,C7)=>{var cq=F1(),iq=Object.prototype.hasOwnProperty,oq=Object.prototype.toString;function nq($){if($===null)return!0;var J=[],G,X,q,V,Y,W=$;for(G=0,X=W.length;G<X;G+=1){if(q=W[G],Y=!1,oq.call(q)!=="[object Object]")return!1;for(V in q)if(iq.call(q,V))if(!Y)Y=!0;else return!1;if(!Y)return!1;if(J.indexOf(V)===-1)J.push(V);else return!1}return!0}function aq($){return $!==null?$:[]}C7.exports=new cq("tag:yaml.org,2002:omap",{kind:"sequence",resolve:nq,construct:aq})});var v7=m((gR,x7)=>{var sq=F1(),tq=Object.prototype.toString;function eq($){if($===null)return!0;var J,G,X,q,V,Y=$;V=Array(Y.length);for(J=0,G=Y.length;J<G;J+=1){if(X=Y[J],tq.call(X)!=="[object Object]")return!1;if(q=Object.keys(X),q.length!==1)return!1;V[J]=[q[0],X[q[0]]]}return!0}function $Y($){if($===null)return[];var J,G,X,q,V,Y=$;V=Array(Y.length);for(J=0,G=Y.length;J<G;J+=1)X=Y[J],q=Object.keys(X),V[J]=[q[0],X[q[0]]];return V}x7.exports=new sq("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:eq,construct:$Y})});var g7=m((hR,k7)=>{var JY=F1(),GY=Object.prototype.hasOwnProperty;function XY($){if($===null)return!0;var J,G=$;for(J in G)if(GY.call(G,J)){if(G[J]!==null)return!1}return!0}function qY($){return $!==null?$:{}}k7.exports=new JY("tag:yaml.org,2002:set",{kind:"mapping",resolve:XY,construct:qY})});var K2=m((yR,h7)=>{var YY=r0();h7.exports=new YY({include:[U6()],implicit:[L7(),I7()],explicit:[S7(),b7(),v7(),g7()]})});var m7=m((mR,y7)=>{var VY=F1();function WY(){return!0}function HY(){return}function UY(){return""}function MY($){return typeof $>"u"}y7.exports=new VY("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:WY,construct:HY,predicate:MY,represent:UY})});var u7=m((fR,f7)=>{var zY=F1();function DY($){if($===null)return!1;if($.length===0)return!1;var J=$,G=/\/([gim]*)$/.exec($),X="";if(J[0]==="/"){if(G)X=G[1];if(X.length>3)return!1;if(J[J.length-X.length-1]!=="/")return!1}return!0}function QY($){var J=$,G=/\/([gim]*)$/.exec($),X="";if(J[0]==="/"){if(G)X=G[1];J=J.slice(1,J.length-X.length-1)}return new RegExp(J,X)}function KY($){var J="/"+$.source+"/";if($.global)J+="g";if($.multiline)J+="m";if($.ignoreCase)J+="i";return J}function FY($){return Object.prototype.toString.call($)==="[object RegExp]"}f7.exports=new zY("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:DY,construct:QY,predicate:FY,represent:KY})});var l7=m((uR,p7)=>{var o4;try{D6=Q0,o4=D6("esprima")}catch($){if(typeof window<"u")o4=window.esprima}var D6,RY=F1();function BY($){if($===null)return!1;try{var J="("+$+")",G=o4.parse(J,{range:!0});if(G.type!=="Program"||G.body.length!==1||G.body[0].type!=="ExpressionStatement"||G.body[0].expression.type!=="ArrowFunctionExpression"&&G.body[0].expression.type!=="FunctionExpression")return!1;return!0}catch(X){return!1}}function OY($){var J="("+$+")",G=o4.parse(J,{range:!0}),X=[],q;if(G.type!=="Program"||G.body.length!==1||G.body[0].type!=="ExpressionStatement"||G.body[0].expression.type!=="ArrowFunctionExpression"&&G.body[0].expression.type!=="FunctionExpression")throw Error("Failed to resolve function");if(G.body[0].expression.params.forEach(function(V){X.push(V.name)}),q=G.body[0].expression.body.range,G.body[0].expression.body.type==="BlockStatement")return Function(X,J.slice(q[0]+1,q[1]-1));return Function(X,"return "+J.slice(q[0],q[1]))}function AY($){return $.toString()}function wY($){return Object.prototype.toString.call($)==="[object Function]"}p7.exports=new RY("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:BY,construct:OY,predicate:wY,represent:AY})});var Y4=m((lR,d7)=>{var r7=r0();d7.exports=r7.DEFAULT=new r7({include:[K2()],explicit:[m7(),u7(),l7()]})});var z$=m((rY,V4)=>{var K0=l0(),t7=D2(),jY=$7(),e7=K2(),NY=Y4(),Z0=Object.prototype.hasOwnProperty,n4=1,$$=2,J$=3,a4=4,Q6=1,ZY=2,c7=3,_Y=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,PY=/[\x85\u2028\u2029]/,LY=/[,\[\]\{\}]/,G$=/^(?:!|!!|![a-z\-]+!)$/i,X$=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function i7($){return Object.prototype.toString.call($)}function q0($){return $===10||$===13}function c0($){return $===9||$===32}function v1($){return $===9||$===32||$===10||$===13}function F2($){return $===44||$===91||$===93||$===123||$===125}function TY($){var J;if(48<=$&&$<=57)return $-48;if(J=$|32,97<=J&&J<=102)return J-97+10;return-1}function IY($){if($===120)return 2;if($===117)return 4;if($===85)return 8;return 0}function EY($){if(48<=$&&$<=57)return $-48;return-1}function o7($){return $===48?"\x00":$===97?"\x07":$===98?"\b":$===116?"\t":$===9?"\t":$===110?`
|
|
18
|
+
`:$===118?"\v":$===102?"\f":$===114?"\r":$===101?"\x1B":$===32?" ":$===34?'"':$===47?"/":$===92?"\\":$===78?"\x85":$===95?"\xA0":$===76?"\u2028":$===80?"\u2029":""}function SY($){if($<=65535)return String.fromCharCode($);return String.fromCharCode(($-65536>>10)+55296,($-65536&1023)+56320)}function q$($,J,G){if(J==="__proto__")Object.defineProperty($,J,{configurable:!0,enumerable:!0,writable:!0,value:G});else $[J]=G}var Y$=Array(256),V$=Array(256);for(j0=0;j0<256;j0++)Y$[j0]=o7(j0)?1:0,V$[j0]=o7(j0);var j0;function CY($,J){this.input=$,this.filename=J.filename||null,this.schema=J.schema||NY,this.onWarning=J.onWarning||null,this.legacy=J.legacy||!1,this.json=J.json||!1,this.listener=J.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=$.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function W$($,J){return new t7(J,new jY($.filename,$.input,$.position,$.line,$.position-$.lineStart))}function f($,J){throw W$($,J)}function s4($,J){if($.onWarning)$.onWarning.call(null,W$($,J))}var n7={YAML:function(J,G,X){var q,V,Y;if(J.version!==null)f(J,"duplication of %YAML directive");if(X.length!==1)f(J,"YAML directive accepts exactly one argument");if(q=/^([0-9]+)\.([0-9]+)$/.exec(X[0]),q===null)f(J,"ill-formed argument of the YAML directive");if(V=parseInt(q[1],10),Y=parseInt(q[2],10),V!==1)f(J,"unacceptable YAML version of the document");if(J.version=X[0],J.checkLineBreaks=Y<2,Y!==1&&Y!==2)s4(J,"unsupported YAML version of the document")},TAG:function(J,G,X){var q,V;if(X.length!==2)f(J,"TAG directive accepts exactly two arguments");if(q=X[0],V=X[1],!G$.test(q))f(J,"ill-formed tag handle (first argument) of the TAG directive");if(Z0.call(J.tagMap,q))f(J,'there is a previously declared suffix for "'+q+'" tag handle');if(!X$.test(V))f(J,"ill-formed tag prefix (second argument) of the TAG directive");J.tagMap[q]=V}};function N0($,J,G,X){var q,V,Y,W;if(J<G){if(W=$.input.slice(J,G),X){for(q=0,V=W.length;q<V;q+=1)if(Y=W.charCodeAt(q),!(Y===9||32<=Y&&Y<=1114111))f($,"expected valid JSON character")}else if(_Y.test(W))f($,"the stream contains non-printable characters");$.result+=W}}function a7($,J,G,X){var q,V,Y,W;if(!K0.isObject(G))f($,"cannot merge mappings; the provided source object is unacceptable");q=Object.keys(G);for(Y=0,W=q.length;Y<W;Y+=1)if(V=q[Y],!Z0.call(J,V))q$(J,V,G[V]),X[V]=!0}function R2($,J,G,X,q,V,Y,W){var H,U;if(Array.isArray(q)){q=Array.prototype.slice.call(q);for(H=0,U=q.length;H<U;H+=1){if(Array.isArray(q[H]))f($,"nested arrays are not supported inside keys");if(typeof q==="object"&&i7(q[H])==="[object Object]")q[H]="[object Object]"}}if(typeof q==="object"&&i7(q)==="[object Object]")q="[object Object]";if(q=String(q),J===null)J={};if(X==="tag:yaml.org,2002:merge")if(Array.isArray(V))for(H=0,U=V.length;H<U;H+=1)a7($,J,V[H],G);else a7($,J,V,G);else{if(!$.json&&!Z0.call(G,q)&&Z0.call(J,q))$.line=Y||$.line,$.position=W||$.position,f($,"duplicated mapping key");q$(J,q,V),delete G[q]}return J}function K6($){var J=$.input.charCodeAt($.position);if(J===10)$.position++;else if(J===13){if($.position++,$.input.charCodeAt($.position)===10)$.position++}else f($,"a line break is expected");$.line+=1,$.lineStart=$.position}function z1($,J,G){var X=0,q=$.input.charCodeAt($.position);while(q!==0){while(c0(q))q=$.input.charCodeAt(++$.position);if(J&&q===35)do q=$.input.charCodeAt(++$.position);while(q!==10&&q!==13&&q!==0);if(q0(q)){K6($),q=$.input.charCodeAt($.position),X++,$.lineIndent=0;while(q===32)$.lineIndent++,q=$.input.charCodeAt(++$.position)}else break}if(G!==-1&&X!==0&&$.lineIndent<G)s4($,"deficient indentation");return X}function t4($){var J=$.position,G;if(G=$.input.charCodeAt(J),(G===45||G===46)&&G===$.input.charCodeAt(J+1)&&G===$.input.charCodeAt(J+2)){if(J+=3,G=$.input.charCodeAt(J),G===0||v1(G))return!0}return!1}function F6($,J){if(J===1)$.result+=" ";else if(J>1)$.result+=K0.repeat(`
|
|
19
|
+
`,J-1)}function bY($,J,G){var X,q,V,Y,W,H,U,M,Q=$.kind,F=$.result,K;if(K=$.input.charCodeAt($.position),v1(K)||F2(K)||K===35||K===38||K===42||K===33||K===124||K===62||K===39||K===34||K===37||K===64||K===96)return!1;if(K===63||K===45){if(q=$.input.charCodeAt($.position+1),v1(q)||G&&F2(q))return!1}$.kind="scalar",$.result="",V=Y=$.position,W=!1;while(K!==0){if(K===58){if(q=$.input.charCodeAt($.position+1),v1(q)||G&&F2(q))break}else if(K===35){if(X=$.input.charCodeAt($.position-1),v1(X))break}else if($.position===$.lineStart&&t4($)||G&&F2(K))break;else if(q0(K))if(H=$.line,U=$.lineStart,M=$.lineIndent,z1($,!1,-1),$.lineIndent>=J){W=!0,K=$.input.charCodeAt($.position);continue}else{$.position=Y,$.line=H,$.lineStart=U,$.lineIndent=M;break}if(W)N0($,V,Y,!1),F6($,$.line-H),V=Y=$.position,W=!1;if(!c0(K))Y=$.position+1;K=$.input.charCodeAt(++$.position)}if(N0($,V,Y,!1),$.result)return!0;return $.kind=Q,$.result=F,!1}function xY($,J){var G,X,q;if(G=$.input.charCodeAt($.position),G!==39)return!1;$.kind="scalar",$.result="",$.position++,X=q=$.position;while((G=$.input.charCodeAt($.position))!==0)if(G===39)if(N0($,X,$.position,!0),G=$.input.charCodeAt(++$.position),G===39)X=$.position,$.position++,q=$.position;else return!0;else if(q0(G))N0($,X,q,!0),F6($,z1($,!1,J)),X=q=$.position;else if($.position===$.lineStart&&t4($))f($,"unexpected end of the document within a single quoted scalar");else $.position++,q=$.position;f($,"unexpected end of the stream within a single quoted scalar")}function vY($,J){var G,X,q,V,Y,W;if(W=$.input.charCodeAt($.position),W!==34)return!1;$.kind="scalar",$.result="",$.position++,G=X=$.position;while((W=$.input.charCodeAt($.position))!==0)if(W===34)return N0($,G,$.position,!0),$.position++,!0;else if(W===92){if(N0($,G,$.position,!0),W=$.input.charCodeAt(++$.position),q0(W))z1($,!1,J);else if(W<256&&Y$[W])$.result+=V$[W],$.position++;else if((Y=IY(W))>0){q=Y,V=0;for(;q>0;q--)if(W=$.input.charCodeAt(++$.position),(Y=TY(W))>=0)V=(V<<4)+Y;else f($,"expected hexadecimal character");$.result+=SY(V),$.position++}else f($,"unknown escape sequence");G=X=$.position}else if(q0(W))N0($,G,X,!0),F6($,z1($,!1,J)),G=X=$.position;else if($.position===$.lineStart&&t4($))f($,"unexpected end of the document within a double quoted scalar");else $.position++,X=$.position;f($,"unexpected end of the stream within a double quoted scalar")}function kY($,J){var G=!0,X,q=$.tag,V,Y=$.anchor,W,H,U,M,Q,F={},K,j,N,P;if(P=$.input.charCodeAt($.position),P===91)H=93,Q=!1,V=[];else if(P===123)H=125,Q=!0,V={};else return!1;if($.anchor!==null)$.anchorMap[$.anchor]=V;P=$.input.charCodeAt(++$.position);while(P!==0){if(z1($,!0,J),P=$.input.charCodeAt($.position),P===H)return $.position++,$.tag=q,$.anchor=Y,$.kind=Q?"mapping":"sequence",$.result=V,!0;else if(!G)f($,"missed comma between flow collection entries");if(j=K=N=null,U=M=!1,P===63){if(W=$.input.charCodeAt($.position+1),v1(W))U=M=!0,$.position++,z1($,!0,J)}if(X=$.line,B2($,J,n4,!1,!0),j=$.tag,K=$.result,z1($,!0,J),P=$.input.charCodeAt($.position),(M||$.line===X)&&P===58)U=!0,P=$.input.charCodeAt(++$.position),z1($,!0,J),B2($,J,n4,!1,!0),N=$.result;if(Q)R2($,V,F,j,K,N);else if(U)V.push(R2($,null,F,j,K,N));else V.push(K);if(z1($,!0,J),P=$.input.charCodeAt($.position),P===44)G=!0,P=$.input.charCodeAt(++$.position);else G=!1}f($,"unexpected end of the stream within a flow collection")}function gY($,J){var G,X,q=Q6,V=!1,Y=!1,W=J,H=0,U=!1,M,Q;if(Q=$.input.charCodeAt($.position),Q===124)X=!1;else if(Q===62)X=!0;else return!1;$.kind="scalar",$.result="";while(Q!==0)if(Q=$.input.charCodeAt(++$.position),Q===43||Q===45)if(Q6===q)q=Q===43?c7:ZY;else f($,"repeat of a chomping mode identifier");else if((M=EY(Q))>=0)if(M===0)f($,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!Y)W=J+M-1,Y=!0;else f($,"repeat of an indentation width identifier");else break;if(c0(Q)){do Q=$.input.charCodeAt(++$.position);while(c0(Q));if(Q===35)do Q=$.input.charCodeAt(++$.position);while(!q0(Q)&&Q!==0)}while(Q!==0){K6($),$.lineIndent=0,Q=$.input.charCodeAt($.position);while((!Y||$.lineIndent<W)&&Q===32)$.lineIndent++,Q=$.input.charCodeAt(++$.position);if(!Y&&$.lineIndent>W)W=$.lineIndent;if(q0(Q)){H++;continue}if($.lineIndent<W){if(q===c7)$.result+=K0.repeat(`
|
|
20
|
+
`,V?1+H:H);else if(q===Q6){if(V)$.result+=`
|
|
21
|
+
`}break}if(X)if(c0(Q))U=!0,$.result+=K0.repeat(`
|
|
22
22
|
`,V?1+H:H);else if(U)U=!1,$.result+=K0.repeat(`
|
|
23
23
|
`,H+1);else if(H===0){if(V)$.result+=" "}else $.result+=K0.repeat(`
|
|
24
24
|
`,H);else $.result+=K0.repeat(`
|
|
25
|
-
`,V?1+H:H);V=!0,Y=!0,H=0,G=$.position;while(!q0(Q)&&Q!==0)Q=$.input.charCodeAt(++$.position);N0($,G,$.position,!1)}return!0}function
|
|
26
|
-
`;if($.charCodeAt(0)===65279)$=$.slice(1)}var G=new
|
|
25
|
+
`,V?1+H:H);V=!0,Y=!0,H=0,G=$.position;while(!q0(Q)&&Q!==0)Q=$.input.charCodeAt(++$.position);N0($,G,$.position,!1)}return!0}function s7($,J){var G,X=$.tag,q=$.anchor,V=[],Y,W=!1,H;if($.anchor!==null)$.anchorMap[$.anchor]=V;H=$.input.charCodeAt($.position);while(H!==0){if(H!==45)break;if(Y=$.input.charCodeAt($.position+1),!v1(Y))break;if(W=!0,$.position++,z1($,!0,-1)){if($.lineIndent<=J){V.push(null),H=$.input.charCodeAt($.position);continue}}if(G=$.line,B2($,J,J$,!1,!0),V.push($.result),z1($,!0,-1),H=$.input.charCodeAt($.position),($.line===G||$.lineIndent>J)&&H!==0)f($,"bad indentation of a sequence entry");else if($.lineIndent<J)break}if(W)return $.tag=X,$.anchor=q,$.kind="sequence",$.result=V,!0;return!1}function hY($,J,G){var X,q,V,Y,W=$.tag,H=$.anchor,U={},M={},Q=null,F=null,K=null,j=!1,N=!1,P;if($.anchor!==null)$.anchorMap[$.anchor]=U;P=$.input.charCodeAt($.position);while(P!==0){if(X=$.input.charCodeAt($.position+1),V=$.line,Y=$.position,(P===63||P===58)&&v1(X)){if(P===63){if(j)R2($,U,M,Q,F,null),Q=F=K=null;N=!0,j=!0,q=!0}else if(j)j=!1,q=!0;else f($,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");$.position+=1,P=X}else if(B2($,G,$$,!1,!0))if($.line===V){P=$.input.charCodeAt($.position);while(c0(P))P=$.input.charCodeAt(++$.position);if(P===58){if(P=$.input.charCodeAt(++$.position),!v1(P))f($,"a whitespace character is expected after the key-value separator within a block mapping");if(j)R2($,U,M,Q,F,null),Q=F=K=null;N=!0,j=!1,q=!1,Q=$.tag,F=$.result}else if(N)f($,"can not read an implicit mapping pair; a colon is missed");else return $.tag=W,$.anchor=H,!0}else if(N)f($,"can not read a block mapping entry; a multiline key may not be an implicit key");else return $.tag=W,$.anchor=H,!0;else break;if($.line===V||$.lineIndent>J){if(B2($,J,a4,!0,q))if(j)F=$.result;else K=$.result;if(!j)R2($,U,M,Q,F,K,V,Y),Q=F=K=null;z1($,!0,-1),P=$.input.charCodeAt($.position)}if($.lineIndent>J&&P!==0)f($,"bad indentation of a mapping entry");else if($.lineIndent<J)break}if(j)R2($,U,M,Q,F,null);if(N)$.tag=W,$.anchor=H,$.kind="mapping",$.result=U;return N}function yY($){var J,G=!1,X=!1,q,V,Y;if(Y=$.input.charCodeAt($.position),Y!==33)return!1;if($.tag!==null)f($,"duplication of a tag property");if(Y=$.input.charCodeAt(++$.position),Y===60)G=!0,Y=$.input.charCodeAt(++$.position);else if(Y===33)X=!0,q="!!",Y=$.input.charCodeAt(++$.position);else q="!";if(J=$.position,G){do Y=$.input.charCodeAt(++$.position);while(Y!==0&&Y!==62);if($.position<$.length)V=$.input.slice(J,$.position),Y=$.input.charCodeAt(++$.position);else f($,"unexpected end of the stream within a verbatim tag")}else{while(Y!==0&&!v1(Y)){if(Y===33)if(!X){if(q=$.input.slice(J-1,$.position+1),!G$.test(q))f($,"named tag handle cannot contain such characters");X=!0,J=$.position+1}else f($,"tag suffix cannot contain exclamation marks");Y=$.input.charCodeAt(++$.position)}if(V=$.input.slice(J,$.position),LY.test(V))f($,"tag suffix cannot contain flow indicator characters")}if(V&&!X$.test(V))f($,"tag name cannot contain such characters: "+V);if(G)$.tag=V;else if(Z0.call($.tagMap,q))$.tag=$.tagMap[q]+V;else if(q==="!")$.tag="!"+V;else if(q==="!!")$.tag="tag:yaml.org,2002:"+V;else f($,'undeclared tag handle "'+q+'"');return!0}function mY($){var J,G;if(G=$.input.charCodeAt($.position),G!==38)return!1;if($.anchor!==null)f($,"duplication of an anchor property");G=$.input.charCodeAt(++$.position),J=$.position;while(G!==0&&!v1(G)&&!F2(G))G=$.input.charCodeAt(++$.position);if($.position===J)f($,"name of an anchor node must contain at least one character");return $.anchor=$.input.slice(J,$.position),!0}function fY($){var J,G,X;if(X=$.input.charCodeAt($.position),X!==42)return!1;X=$.input.charCodeAt(++$.position),J=$.position;while(X!==0&&!v1(X)&&!F2(X))X=$.input.charCodeAt(++$.position);if($.position===J)f($,"name of an alias node must contain at least one character");if(G=$.input.slice(J,$.position),!Z0.call($.anchorMap,G))f($,'unidentified alias "'+G+'"');return $.result=$.anchorMap[G],z1($,!0,-1),!0}function B2($,J,G,X,q){var V,Y,W,H=1,U=!1,M=!1,Q,F,K,j,N;if($.listener!==null)$.listener("open",$);if($.tag=null,$.anchor=null,$.kind=null,$.result=null,V=Y=W=a4===G||J$===G,X){if(z1($,!0,-1)){if(U=!0,$.lineIndent>J)H=1;else if($.lineIndent===J)H=0;else if($.lineIndent<J)H=-1}}if(H===1)while(yY($)||mY($))if(z1($,!0,-1)){if(U=!0,W=V,$.lineIndent>J)H=1;else if($.lineIndent===J)H=0;else if($.lineIndent<J)H=-1}else W=!1;if(W)W=U||q;if(H===1||a4===G){if(n4===G||$$===G)j=J;else j=J+1;if(N=$.position-$.lineStart,H===1)if(W&&(s7($,N)||hY($,N,j))||kY($,j))M=!0;else{if(Y&&gY($,j)||xY($,j)||vY($,j))M=!0;else if(fY($)){if(M=!0,$.tag!==null||$.anchor!==null)f($,"alias node should not have any properties")}else if(bY($,j,n4===G)){if(M=!0,$.tag===null)$.tag="?"}if($.anchor!==null)$.anchorMap[$.anchor]=$.result}else if(H===0)M=W&&s7($,N)}if($.tag!==null&&$.tag!=="!")if($.tag==="?"){if($.result!==null&&$.kind!=="scalar")f($,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+$.kind+'"');for(Q=0,F=$.implicitTypes.length;Q<F;Q+=1)if(K=$.implicitTypes[Q],K.resolve($.result)){if($.result=K.construct($.result),$.tag=K.tag,$.anchor!==null)$.anchorMap[$.anchor]=$.result;break}}else if(Z0.call($.typeMap[$.kind||"fallback"],$.tag)){if(K=$.typeMap[$.kind||"fallback"][$.tag],$.result!==null&&K.kind!==$.kind)f($,"unacceptable node kind for !<"+$.tag+'> tag; it should be "'+K.kind+'", not "'+$.kind+'"');if(!K.resolve($.result))f($,"cannot resolve a node with !<"+$.tag+"> explicit tag");else if($.result=K.construct($.result),$.anchor!==null)$.anchorMap[$.anchor]=$.result}else f($,"unknown tag !<"+$.tag+">");if($.listener!==null)$.listener("close",$);return $.tag!==null||$.anchor!==null||M}function uY($){var J=$.position,G,X,q,V=!1,Y;$.version=null,$.checkLineBreaks=$.legacy,$.tagMap={},$.anchorMap={};while((Y=$.input.charCodeAt($.position))!==0){if(z1($,!0,-1),Y=$.input.charCodeAt($.position),$.lineIndent>0||Y!==37)break;V=!0,Y=$.input.charCodeAt(++$.position),G=$.position;while(Y!==0&&!v1(Y))Y=$.input.charCodeAt(++$.position);if(X=$.input.slice(G,$.position),q=[],X.length<1)f($,"directive name must not be less than one character in length");while(Y!==0){while(c0(Y))Y=$.input.charCodeAt(++$.position);if(Y===35){do Y=$.input.charCodeAt(++$.position);while(Y!==0&&!q0(Y));break}if(q0(Y))break;G=$.position;while(Y!==0&&!v1(Y))Y=$.input.charCodeAt(++$.position);q.push($.input.slice(G,$.position))}if(Y!==0)K6($);if(Z0.call(n7,X))n7[X]($,X,q);else s4($,'unknown document directive "'+X+'"')}if(z1($,!0,-1),$.lineIndent===0&&$.input.charCodeAt($.position)===45&&$.input.charCodeAt($.position+1)===45&&$.input.charCodeAt($.position+2)===45)$.position+=3,z1($,!0,-1);else if(V)f($,"directives end mark is expected");if(B2($,$.lineIndent-1,a4,!1,!0),z1($,!0,-1),$.checkLineBreaks&&PY.test($.input.slice(J,$.position)))s4($,"non-ASCII line breaks are interpreted as content");if($.documents.push($.result),$.position===$.lineStart&&t4($)){if($.input.charCodeAt($.position)===46)$.position+=3,z1($,!0,-1);return}if($.position<$.length-1)f($,"end of the stream or a document separator is expected");else return}function H$($,J){if($=String($),J=J||{},$.length!==0){if($.charCodeAt($.length-1)!==10&&$.charCodeAt($.length-1)!==13)$+=`
|
|
26
|
+
`;if($.charCodeAt(0)===65279)$=$.slice(1)}var G=new CY($,J),X=$.indexOf("\x00");if(X!==-1)G.position=X,f(G,"null byte is not allowed in input");G.input+="\x00";while(G.input.charCodeAt(G.position)===32)G.lineIndent+=1,G.position+=1;while(G.position<G.length-1)uY(G);return G.documents}function U$($,J,G){if(J!==null&&typeof J==="object"&&typeof G>"u")G=J,J=null;var X=H$($,G);if(typeof J!=="function")return X;for(var q=0,V=X.length;q<V;q+=1)J(X[q])}function M$($,J){var G=H$($,J);if(G.length===0)return;else if(G.length===1)return G[0];throw new t7("expected a single document in the stream, but found more")}function pY($,J,G){if(typeof J==="object"&&J!==null&&typeof G>"u")G=J,J=null;return U$($,J,K0.extend({schema:e7},G))}function lY($,J){return M$($,K0.extend({schema:e7},J))}rY.loadAll=U$;rY.load=M$;rY.safeLoadAll=pY;rY.safeLoad=lY});var v$=m((EV,A6)=>{var H4=l0(),U4=D2(),nY=Y4(),aY=K2(),A$=Object.prototype.toString,w$=Object.prototype.hasOwnProperty,sY=9,W4=10,tY=13,eY=32,$V=33,JV=34,j$=35,GV=37,XV=38,qV=39,YV=42,N$=44,VV=45,Z$=58,WV=61,HV=62,UV=63,MV=64,_$=91,P$=93,zV=96,L$=123,DV=124,T$=125,Z1={};Z1[0]="\\0";Z1[7]="\\a";Z1[8]="\\b";Z1[9]="\\t";Z1[10]="\\n";Z1[11]="\\v";Z1[12]="\\f";Z1[13]="\\r";Z1[27]="\\e";Z1[34]="\\\"";Z1[92]="\\\\";Z1[133]="\\N";Z1[160]="\\_";Z1[8232]="\\L";Z1[8233]="\\P";var QV=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function KV($,J){var G,X,q,V,Y,W,H;if(J===null)return{};G={},X=Object.keys(J);for(q=0,V=X.length;q<V;q+=1){if(Y=X[q],W=String(J[Y]),Y.slice(0,2)==="!!")Y="tag:yaml.org,2002:"+Y.slice(2);if(H=$.compiledTypeMap.fallback[Y],H&&w$.call(H.styleAliases,W))W=H.styleAliases[W];G[Y]=W}return G}function D$($){var J,G,X;if(J=$.toString(16).toUpperCase(),$<=255)G="x",X=2;else if($<=65535)G="u",X=4;else if($<=4294967295)G="U",X=8;else throw new U4("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+G+H4.repeat("0",X-J.length)+J}function FV($){this.schema=$.schema||nY,this.indent=Math.max(1,$.indent||2),this.noArrayIndent=$.noArrayIndent||!1,this.skipInvalid=$.skipInvalid||!1,this.flowLevel=H4.isNothing($.flowLevel)?-1:$.flowLevel,this.styleMap=KV(this.schema,$.styles||null),this.sortKeys=$.sortKeys||!1,this.lineWidth=$.lineWidth||80,this.noRefs=$.noRefs||!1,this.noCompatMode=$.noCompatMode||!1,this.condenseFlow=$.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Q$($,J){var G=H4.repeat(" ",J),X=0,q=-1,V="",Y,W=$.length;while(X<W){if(q=$.indexOf(`
|
|
27
27
|
`,X),q===-1)Y=$.slice(X),X=W;else Y=$.slice(X,q+1),X=q+1;if(Y.length&&Y!==`
|
|
28
|
-
`)V+=G;V+=Y}return V}function
|
|
29
|
-
`+H4.repeat(" ",$.indent*J)}function
|
|
28
|
+
`)V+=G;V+=Y}return V}function R6($,J){return`
|
|
29
|
+
`+H4.repeat(" ",$.indent*J)}function RV($,J){var G,X,q;for(G=0,X=$.implicitTypes.length;G<X;G+=1)if(q=$.implicitTypes[G],q.resolve(J))return!0;return!1}function O6($){return $===eY||$===sY}function O2($){return 32<=$&&$<=126||161<=$&&$<=55295&&$!==8232&&$!==8233||57344<=$&&$<=65533&&$!==65279||65536<=$&&$<=1114111}function BV($){return O2($)&&!O6($)&&$!==65279&&$!==tY&&$!==W4}function K$($,J){return O2($)&&$!==65279&&$!==N$&&$!==_$&&$!==P$&&$!==L$&&$!==T$&&$!==Z$&&($!==j$||J&&BV(J))}function OV($){return O2($)&&$!==65279&&!O6($)&&$!==VV&&$!==UV&&$!==Z$&&$!==N$&&$!==_$&&$!==P$&&$!==L$&&$!==T$&&$!==j$&&$!==XV&&$!==YV&&$!==$V&&$!==DV&&$!==WV&&$!==HV&&$!==qV&&$!==JV&&$!==GV&&$!==MV&&$!==zV}function I$($){var J=/^\n* /;return J.test($)}var E$=1,S$=2,C$=3,b$=4,e4=5;function AV($,J,G,X,q){var V,Y,W,H=!1,U=!1,M=X!==-1,Q=-1,F=OV($.charCodeAt(0))&&!O6($.charCodeAt($.length-1));if(J)for(V=0;V<$.length;V++){if(Y=$.charCodeAt(V),!O2(Y))return e4;W=V>0?$.charCodeAt(V-1):null,F=F&&K$(Y,W)}else{for(V=0;V<$.length;V++){if(Y=$.charCodeAt(V),Y===W4){if(H=!0,M)U=U||V-Q-1>X&&$[Q+1]!==" ",Q=V}else if(!O2(Y))return e4;W=V>0?$.charCodeAt(V-1):null,F=F&&K$(Y,W)}U=U||M&&(V-Q-1>X&&$[Q+1]!==" ")}if(!H&&!U)return F&&!q($)?E$:S$;if(G>9&&I$($))return e4;return U?b$:C$}function wV($,J,G,X){$.dump=function(){if(J.length===0)return"''";if(!$.noCompatMode&&QV.indexOf(J)!==-1)return"'"+J+"'";var q=$.indent*Math.max(1,G),V=$.lineWidth===-1?-1:Math.max(Math.min($.lineWidth,40),$.lineWidth-q),Y=X||$.flowLevel>-1&&G>=$.flowLevel;function W(H){return RV($,H)}switch(AV(J,Y,$.indent,V,W)){case E$:return J;case S$:return"'"+J.replace(/'/g,"''")+"'";case C$:return"|"+F$(J,$.indent)+R$(Q$(J,q));case b$:return">"+F$(J,$.indent)+R$(Q$(jV(J,V),q));case e4:return'"'+NV(J,V)+'"';default:throw new U4("impossible error: invalid scalar style")}}()}function F$($,J){var G=I$($)?String(J):"",X=$[$.length-1]===`
|
|
30
30
|
`,q=X&&($[$.length-2]===`
|
|
31
31
|
`||$===`
|
|
32
32
|
`),V=q?"+":X?"":"-";return G+V+`
|
|
33
|
-
`}function
|
|
34
|
-
`?$.slice(0,-1):$}function
|
|
35
|
-
`);return U=U!==-1?U:$.length,G.lastIndex=U,
|
|
33
|
+
`}function R$($){return $[$.length-1]===`
|
|
34
|
+
`?$.slice(0,-1):$}function jV($,J){var G=/(\n+)([^\n]*)/g,X=function(){var U=$.indexOf(`
|
|
35
|
+
`);return U=U!==-1?U:$.length,G.lastIndex=U,B$($.slice(0,U),J)}(),q=$[0]===`
|
|
36
36
|
`||$[0]===" ",V,Y;while(Y=G.exec($)){var W=Y[1],H=Y[2];V=H[0]===" ",X+=W+(!q&&!V&&H!==""?`
|
|
37
|
-
`:"")+
|
|
37
|
+
`:"")+B$(H,J),q=V}return X}function B$($,J){if($===""||$[0]===" ")return $;var G=/ [^ ]/g,X,q=0,V,Y=0,W=0,H="";while(X=G.exec($)){if(W=X.index,W-q>J)V=Y>q?Y:W,H+=`
|
|
38
38
|
`+$.slice(q,V),q=V+1;Y=W}if(H+=`
|
|
39
39
|
`,$.length-q>J&&Y>q)H+=$.slice(q,Y)+`
|
|
40
|
-
`+$.slice(Y+1);else H+=$.slice(q);return H.slice(1)}function
|
|
41
|
-
`;return""}function
|
|
40
|
+
`+$.slice(Y+1);else H+=$.slice(q);return H.slice(1)}function NV($){var J="",G,X,q;for(var V=0;V<$.length;V++){if(G=$.charCodeAt(V),G>=55296&&G<=56319){if(X=$.charCodeAt(V+1),X>=56320&&X<=57343){J+=D$((G-55296)*1024+X-56320+65536),V++;continue}}q=Z1[G],J+=!q&&O2(G)?$[V]:q||D$(G)}return J}function ZV($,J,G){var X="",q=$.tag,V,Y;for(V=0,Y=G.length;V<Y;V+=1)if(i0($,J,G[V],!1,!1)){if(V!==0)X+=","+(!$.condenseFlow?" ":"");X+=$.dump}$.tag=q,$.dump="["+X+"]"}function _V($,J,G,X){var q="",V=$.tag,Y,W;for(Y=0,W=G.length;Y<W;Y+=1)if(i0($,J+1,G[Y],!0,!0)){if(!X||Y!==0)q+=R6($,J);if($.dump&&W4===$.dump.charCodeAt(0))q+="-";else q+="- ";q+=$.dump}$.tag=V,$.dump=q||"[]"}function PV($,J,G){var X="",q=$.tag,V=Object.keys(G),Y,W,H,U,M;for(Y=0,W=V.length;Y<W;Y+=1){if(M="",Y!==0)M+=", ";if($.condenseFlow)M+='"';if(H=V[Y],U=G[H],!i0($,J,H,!1,!1))continue;if($.dump.length>1024)M+="? ";if(M+=$.dump+($.condenseFlow?'"':"")+":"+($.condenseFlow?"":" "),!i0($,J,U,!1,!1))continue;M+=$.dump,X+=M}$.tag=q,$.dump="{"+X+"}"}function LV($,J,G,X){var q="",V=$.tag,Y=Object.keys(G),W,H,U,M,Q,F;if($.sortKeys===!0)Y.sort();else if(typeof $.sortKeys==="function")Y.sort($.sortKeys);else if($.sortKeys)throw new U4("sortKeys must be a boolean or a function");for(W=0,H=Y.length;W<H;W+=1){if(F="",!X||W!==0)F+=R6($,J);if(U=Y[W],M=G[U],!i0($,J+1,U,!0,!0,!0))continue;if(Q=$.tag!==null&&$.tag!=="?"||$.dump&&$.dump.length>1024,Q)if($.dump&&W4===$.dump.charCodeAt(0))F+="?";else F+="? ";if(F+=$.dump,Q)F+=R6($,J);if(!i0($,J+1,M,!0,Q))continue;if($.dump&&W4===$.dump.charCodeAt(0))F+=":";else F+=": ";F+=$.dump,q+=F}$.tag=V,$.dump=q||"{}"}function O$($,J,G){var X,q,V,Y,W,H;q=G?$.explicitTypes:$.implicitTypes;for(V=0,Y=q.length;V<Y;V+=1)if(W=q[V],(W.instanceOf||W.predicate)&&(!W.instanceOf||typeof J==="object"&&J instanceof W.instanceOf)&&(!W.predicate||W.predicate(J))){if($.tag=G?W.tag:"?",W.represent){if(H=$.styleMap[W.tag]||W.defaultStyle,A$.call(W.represent)==="[object Function]")X=W.represent(J,H);else if(w$.call(W.represent,H))X=W.represent[H](J,H);else throw new U4("!<"+W.tag+'> tag resolver accepts not "'+H+'" style');$.dump=X}return!0}return!1}function i0($,J,G,X,q,V){if($.tag=null,$.dump=G,!O$($,G,!1))O$($,G,!0);var Y=A$.call($.dump);if(X)X=$.flowLevel<0||$.flowLevel>J;var W=Y==="[object Object]"||Y==="[object Array]",H,U;if(W)H=$.duplicates.indexOf(G),U=H!==-1;if($.tag!==null&&$.tag!=="?"||U||$.indent!==2&&J>0)q=!1;if(U&&$.usedDuplicates[H])$.dump="*ref_"+H;else{if(W&&U&&!$.usedDuplicates[H])$.usedDuplicates[H]=!0;if(Y==="[object Object]"){if(X&&Object.keys($.dump).length!==0){if(LV($,J,$.dump,q),U)$.dump="&ref_"+H+$.dump}else if(PV($,J,$.dump),U)$.dump="&ref_"+H+" "+$.dump}else if(Y==="[object Array]"){var M=$.noArrayIndent&&J>0?J-1:J;if(X&&$.dump.length!==0){if(_V($,M,$.dump,q),U)$.dump="&ref_"+H+$.dump}else if(ZV($,M,$.dump),U)$.dump="&ref_"+H+" "+$.dump}else if(Y==="[object String]"){if($.tag!=="?")wV($,$.dump,J,V)}else{if($.skipInvalid)return!1;throw new U4("unacceptable kind of an object to dump "+Y)}if($.tag!==null&&$.tag!=="?")$.dump="!<"+$.tag+"> "+$.dump}return!0}function TV($,J){var G=[],X=[],q,V;B6($,G,X);for(q=0,V=X.length;q<V;q+=1)J.duplicates.push(G[X[q]]);J.usedDuplicates=Array(V)}function B6($,J,G){var X,q,V;if($!==null&&typeof $==="object")if(q=J.indexOf($),q!==-1){if(G.indexOf(q)===-1)G.push(q)}else if(J.push($),Array.isArray($))for(q=0,V=$.length;q<V;q+=1)B6($[q],J,G);else{X=Object.keys($);for(q=0,V=X.length;q<V;q+=1)B6($[X[q]],J,G)}}function x$($,J){J=J||{};var G=new FV(J);if(!G.noRefs)TV($,G);if(i0(G,0,$,!0,!0))return G.dump+`
|
|
41
|
+
`;return""}function IV($,J){return x$($,H4.extend({schema:aY},J))}EV.dump=x$;EV.safeDump=IV});var g$=m((bV,W1)=>{var $5=z$(),k$=v$();function J5($){return function(){throw Error("Function "+$+" is deprecated and cannot be used.")}}bV.Type=F1();bV.Schema=r0();bV.FAILSAFE_SCHEMA=i4();bV.JSON_SCHEMA=H6();bV.CORE_SCHEMA=U6();bV.DEFAULT_SAFE_SCHEMA=K2();bV.DEFAULT_FULL_SCHEMA=Y4();bV.load=$5.load;bV.loadAll=$5.loadAll;bV.safeLoad=$5.safeLoad;bV.safeLoadAll=$5.safeLoadAll;bV.dump=k$.dump;bV.safeDump=k$.safeDump;bV.YAMLException=D2();bV.MINIMAL_SCHEMA=i4();bV.SAFE_SCHEMA=K2();bV.DEFAULT_SCHEMA=Y4();bV.scan=J5("scan");bV.parse=J5("parse");bV.compose=J5("compose");bV.addConstructor=J5("addConstructor")});var y$=m((rR,h$)=>{var $W=g$();h$.exports=$W});var Z6=m((j6,N6)=>{var G5=y$(),w6=j6=N6.exports;w6.yaml={parse:G5.safeLoad.bind(G5),stringify:G5.safeDump.bind(G5)};w6.json={parse:JSON.parse.bind(JSON),stringify:function($,J){let G=Object.assign({replacer:null,space:2},J);return JSON.stringify($,G.replacer,G.space)}};w6.javascript={parse:function parse(str,options,wrap){try{if(wrap!==!1)str=`(function() {
|
|
42
42
|
return `+str.trim()+`;
|
|
43
|
-
}());`;return eval(str)||{}}catch($){if(wrap!==!1&&/(unexpected|identifier)/i.test($.message))return parse(str,options,!1);throw SyntaxError($)}},stringify:function(){throw Error("stringifying JavaScript is not supported")}}});var
|
|
43
|
+
}());`;return eval(str)||{}}catch($){if(wrap!==!1&&/(unexpected|identifier)/i.test($.message))return parse(str,options,!1);throw SyntaxError($)}},stringify:function(){throw Error("stringifying JavaScript is not supported")}}});var f$=m((dR,m$)=>{/*!
|
|
44
44
|
* strip-bom-string <https://github.com/jonschlinkert/strip-bom-string>
|
|
45
45
|
*
|
|
46
46
|
* Copyright (c) 2015, 2017, Jon Schlinkert.
|
|
47
47
|
* Released under the MIT License.
|
|
48
|
-
*/
|
|
48
|
+
*/m$.exports=function($){if(typeof $==="string"&&$.charAt(0)==="\uFEFF")return $.slice(1);return $}});var X5=m((JW)=>{var u$=f$(),p$=X4();JW.define=function($,J,G){Reflect.defineProperty($,J,{enumerable:!1,configurable:!0,writable:!0,value:G})};JW.isBuffer=function($){return p$($)==="buffer"};JW.isObject=function($){return p$($)==="object"};JW.toBuffer=function($){return typeof $==="string"?Buffer.from($):$};JW.toString=function($){if(JW.isBuffer($))return u$(String($));if(typeof $!=="string")throw TypeError("expected input to be a string or buffer");return u$($)};JW.arrayify=function($){return $?Array.isArray($)?$:[$]:[]};JW.startsWith=function($,J,G){if(typeof G!=="number")G=J.length;return $.slice(0,G)===J}});var M4=m((iR,r$)=>{var HW=Z6(),UW=X5();r$.exports=function($){let J=Object.assign({},$);if(J.delimiters=UW.arrayify(J.delims||J.delimiters||"---"),J.delimiters.length===1)J.delimiters.push(J.delimiters[0]);return J.language=(J.language||J.lang||"yaml").toLowerCase(),J.engines=Object.assign({},HW,J.parsers,J.engines),J}});var _6=m((oR,d$)=>{d$.exports=function($,J){let G=J.engines[$]||J.engines[MW($)];if(typeof G>"u")throw Error('gray-matter engine "'+$+'" is not registered');if(typeof G==="function")G={parse:G};return G};function MW($){switch($.toLowerCase()){case"js":case"javascript":return"javascript";case"coffee":case"coffeescript":case"cson":return"coffee";case"yaml":case"yml":return"yaml";default:return $}}});var P6=m((nR,c$)=>{var zW=X4(),DW=_6(),QW=M4();c$.exports=function($,J,G){if(J==null&&G==null)switch(zW($)){case"object":J=$.data,G={};break;case"string":return $;default:throw TypeError("expected file to be a string or object")}let X=$.content,q=QW(G);if(J==null){if(!q.data)return $;J=q.data}let V=$.language||q.language,Y=DW(V,q);if(typeof Y.stringify!=="function")throw TypeError('expected "'+V+'.stringify" to be a function');J=Object.assign({},$.data,J);let W=q.delimiters[0],H=q.delimiters[1],U=Y.stringify(J,G).trim(),M="";if(U!=="{}")M=A2(W)+A2(U)+A2(H);if(typeof $.excerpt==="string"&&$.excerpt!==""){if(X.indexOf($.excerpt.trim())===-1)M+=A2($.excerpt)+A2(H)}return M+A2(X)};function A2($){return $.slice(-1)!==`
|
|
49
49
|
`?$+`
|
|
50
|
-
`:$}});var
|
|
51
|
-
`+G.delimiters[1],V=$.content;if(G.language)$.language=G.language;let Y=X.length;if(!
|
|
52
|
-
`)$.content=$.content.slice(1)}if(
|
|
50
|
+
`:$}});var o$=m((aR,i$)=>{var KW=M4();i$.exports=function($,J){let G=KW(J);if($.data==null)$.data={};if(typeof G.excerpt==="function")return G.excerpt($,G);let X=$.data.excerpt_separator||G.excerpt_separator;if(X==null&&(G.excerpt===!1||G.excerpt==null))return $;let q=typeof G.excerpt==="string"?G.excerpt:X||G.delimiters[0],V=$.content.indexOf(q);if(V!==-1)$.excerpt=$.content.slice(0,V);return $}});var s$=m((sR,a$)=>{var n$=X4(),FW=P6(),w2=X5();a$.exports=function($){if(n$($)!=="object")$={content:$};if(n$($.data)!=="object")$.data={};if($.contents&&$.content==null)$.content=$.contents;return w2.define($,"orig",w2.toBuffer($.content)),w2.define($,"language",$.language||""),w2.define($,"matter",$.matter||""),w2.define($,"stringify",function(J,G){if(G&&G.language)$.language=G.language;return FW($,J,G)}),$.content=w2.toString($.content),$.isEmpty=!1,$.excerpt="",$}});var e$=m((tR,t$)=>{var RW=_6(),BW=M4();t$.exports=function($,J,G){let X=BW(G),q=RW($,X);if(typeof q.parse!=="function")throw TypeError('expected "'+$+'.parse" to be a function');return q.parse(J,X)}});var T6=m((eR,GJ)=>{var OW=Q0("fs"),AW=n8(),L6=M4(),wW=P6(),$J=o$(),jW=Z6(),NW=s$(),ZW=e$(),JJ=X5();function S1($,J){if($==="")return{data:{},content:$,excerpt:"",orig:$};let G=NW($),X=S1.cache[G.content];if(!J){if(X)return G=Object.assign({},X),G.orig=X.orig,G;S1.cache[G.content]=G}return _W(G,J)}function _W($,J){let G=L6(J),X=G.delimiters[0],q=`
|
|
51
|
+
`+G.delimiters[1],V=$.content;if(G.language)$.language=G.language;let Y=X.length;if(!JJ.startsWith(V,X,Y))return $J($,G),$;if(V.charAt(Y)===X.slice(-1))return $;V=V.slice(Y);let W=V.length,H=S1.language(V,G);if(H.name)$.language=H.name,V=V.slice(H.raw.length);let U=V.indexOf(q);if(U===-1)U=W;if($.matter=V.slice(0,U),$.matter.replace(/^\s*#[^\n]+/gm,"").trim()==="")$.isEmpty=!0,$.empty=$.content,$.data={};else $.data=ZW($.language,$.matter,G);if(U===W)$.content="";else{if($.content=V.slice(U+q.length),$.content[0]==="\r")$.content=$.content.slice(1);if($.content[0]===`
|
|
52
|
+
`)$.content=$.content.slice(1)}if($J($,G),G.sections===!0||typeof G.section==="function")AW($,G.section);return $}S1.engines=jW;S1.stringify=function($,J,G){if(typeof $==="string")$=S1($,G);return wW($,J,G)};S1.read=function($,J){let G=OW.readFileSync($,"utf8"),X=S1(G,J);return X.path=$,X};S1.test=function($,J){return JJ.startsWith($,L6(J).delimiters[0])};S1.language=function($,J){let X=L6(J).delimiters[0];if(S1.test($))$=$.slice(X.length);let q=$.slice(0,$.search(/\r?\n/));return{raw:q,name:q?q.trim():""}};S1.cache={};S1.clearCache=function(){S1.cache={}};GJ.exports=S1});var TJ=m((Hj,LJ)=>{var _2=1000,P2=_2*60,L2=P2*60,t0=L2*24,iH=t0*7,oH=t0*365.25;LJ.exports=function($,J){J=J||{};var G=typeof $;if(G==="string"&&$.length>0)return nH($);else if(G==="number"&&isFinite($))return J.long?sH($):aH($);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify($))};function nH($){if($=String($),$.length>100)return;var J=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec($);if(!J)return;var G=parseFloat(J[1]),X=(J[2]||"ms").toLowerCase();switch(X){case"years":case"year":case"yrs":case"yr":case"y":return G*oH;case"weeks":case"week":case"w":return G*iH;case"days":case"day":case"d":return G*t0;case"hours":case"hour":case"hrs":case"hr":case"h":return G*L2;case"minutes":case"minute":case"mins":case"min":case"m":return G*P2;case"seconds":case"second":case"secs":case"sec":case"s":return G*_2;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return G;default:return}}function aH($){var J=Math.abs($);if(J>=t0)return Math.round($/t0)+"d";if(J>=L2)return Math.round($/L2)+"h";if(J>=P2)return Math.round($/P2)+"m";if(J>=_2)return Math.round($/_2)+"s";return $+"ms"}function sH($){var J=Math.abs($);if(J>=t0)return K5($,J,t0,"day");if(J>=L2)return K5($,J,L2,"hour");if(J>=P2)return K5($,J,P2,"minute");if(J>=_2)return K5($,J,_2,"second");return $+" ms"}function K5($,J,G,X){var q=J>=G*1.5;return Math.round($/G)+" "+X+(q?"s":"")}});var p6=m((Uj,IJ)=>{function tH($){G.debug=G,G.default=G,G.coerce=H,G.disable=Y,G.enable=q,G.enabled=W,G.humanize=TJ(),G.destroy=U,Object.keys($).forEach((M)=>{G[M]=$[M]}),G.names=[],G.skips=[],G.formatters={};function J(M){let Q=0;for(let F=0;F<M.length;F++)Q=(Q<<5)-Q+M.charCodeAt(F),Q|=0;return G.colors[Math.abs(Q)%G.colors.length]}G.selectColor=J;function G(M){let Q,F=null,K,j;function N(...P){if(!N.enabled)return;let _=N,k=Number(new Date),h=k-(Q||k);if(_.diff=h,_.prev=Q,_.curr=k,Q=k,P[0]=G.coerce(P[0]),typeof P[0]!=="string")P.unshift("%O");let t=0;P[0]=P[0].replace(/%([a-zA-Z%])/g,(Z,$1)=>{if(Z==="%%")return"%";t++;let q1=G.formatters[$1];if(typeof q1==="function"){let s=P[t];Z=q1.call(_,s),P.splice(t,1),t--}return Z}),G.formatArgs.call(_,P),(_.log||G.log).apply(_,P)}if(N.namespace=M,N.useColors=G.useColors(),N.color=G.selectColor(M),N.extend=X,N.destroy=G.destroy,Object.defineProperty(N,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(F!==null)return F;if(K!==G.namespaces)K=G.namespaces,j=G.enabled(M);return j},set:(P)=>{F=P}}),typeof G.init==="function")G.init(N);return N}function X(M,Q){let F=G(this.namespace+(typeof Q>"u"?":":Q)+M);return F.log=this.log,F}function q(M){G.save(M),G.namespaces=M,G.names=[],G.skips=[];let Q=(typeof M==="string"?M:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let F of Q)if(F[0]==="-")G.skips.push(F.slice(1));else G.names.push(F)}function V(M,Q){let F=0,K=0,j=-1,N=0;while(F<M.length)if(K<Q.length&&(Q[K]===M[F]||Q[K]==="*"))if(Q[K]==="*")j=K,N=F,K++;else F++,K++;else if(j!==-1)K=j+1,N++,F=N;else return!1;while(K<Q.length&&Q[K]==="*")K++;return K===Q.length}function Y(){let M=[...G.names,...G.skips.map((Q)=>"-"+Q)].join(",");return G.enable(""),M}function W(M){for(let Q of G.skips)if(V(M,Q))return!1;for(let Q of G.names)if(V(M,Q))return!0;return!1}function H(M){if(M instanceof Error)return M.stack||M.message;return M}function U(){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 G.enable(G.load()),G}IJ.exports=tH});var SJ=m((EJ,F5)=>{EJ.formatArgs=$U;EJ.save=JU;EJ.load=GU;EJ.useColors=eH;EJ.storage=XU();EJ.destroy=(()=>{let $=!1;return()=>{if(!$)$=!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`.")}})();EJ.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 eH(){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 $;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&&($=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt($[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function $U($){if($[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+$[0]+(this.useColors?"%c ":" ")+"+"+F5.exports.humanize(this.diff),!this.useColors)return;let J="color: "+this.color;$.splice(1,0,J,"color: inherit");let G=0,X=0;$[0].replace(/%[a-zA-Z%]/g,(q)=>{if(q==="%%")return;if(G++,q==="%c")X=G}),$.splice(X,0,J)}EJ.log=console.debug||console.log||(()=>{});function JU($){try{if($)EJ.storage.setItem("debug",$);else EJ.storage.removeItem("debug")}catch(J){}}function GU(){let $;try{$=EJ.storage.getItem("debug")||EJ.storage.getItem("DEBUG")}catch(J){}if(!$&&typeof process<"u"&&"env"in process)$=process.env.DEBUG;return $}function XU(){try{return localStorage}catch($){}}F5.exports=p6()(EJ);var{formatters:qU}=F5.exports;qU.j=function($){try{return JSON.stringify($)}catch(J){return"[UnexpectedJSONParseError]: "+J.message}}});var bJ=m((zj,CJ)=>{CJ.exports=($,J=process.argv)=>{let G=$.startsWith("-")?"":$.length===1?"-":"--",X=J.indexOf(G+$),q=J.indexOf("--");return X!==-1&&(q===-1||X<q)}});var kJ=m((Dj,vJ)=>{var DU=Q0("os"),xJ=Q0("tty"),o1=bJ(),{env:A1}=process,L0;if(o1("no-color")||o1("no-colors")||o1("color=false")||o1("color=never"))L0=0;else if(o1("color")||o1("colors")||o1("color=true")||o1("color=always"))L0=1;if("FORCE_COLOR"in A1)if(A1.FORCE_COLOR==="true")L0=1;else if(A1.FORCE_COLOR==="false")L0=0;else L0=A1.FORCE_COLOR.length===0?1:Math.min(parseInt(A1.FORCE_COLOR,10),3);function l6($){if($===0)return!1;return{level:$,hasBasic:!0,has256:$>=2,has16m:$>=3}}function r6($,J){if(L0===0)return 0;if(o1("color=16m")||o1("color=full")||o1("color=truecolor"))return 3;if(o1("color=256"))return 2;if($&&!J&&L0===void 0)return 0;let G=L0||0;if(A1.TERM==="dumb")return G;if(process.platform==="win32"){let X=DU.release().split(".");if(Number(X[0])>=10&&Number(X[2])>=10586)return Number(X[2])>=14931?3:2;return 1}if("CI"in A1){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((X)=>(X in A1))||A1.CI_NAME==="codeship")return 1;return G}if("TEAMCITY_VERSION"in A1)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(A1.TEAMCITY_VERSION)?1:0;if(A1.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in A1){let X=parseInt((A1.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(A1.TERM_PROGRAM){case"iTerm.app":return X>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(A1.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(A1.TERM))return 1;if("COLORTERM"in A1)return 1;return G}function QU($){let J=r6($,$&&$.isTTY);return l6(J)}vJ.exports={supportsColor:QU,stdout:l6(r6(!0,xJ.isatty(1))),stderr:l6(r6(!0,xJ.isatty(2)))}});var mJ=m((hJ,B5)=>{var KU=Q0("tty"),R5=Q0("util");hJ.init=jU;hJ.log=OU;hJ.formatArgs=RU;hJ.save=AU;hJ.load=wU;hJ.useColors=FU;hJ.destroy=R5.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");hJ.colors=[6,2,3,4,5,1];try{let $=kJ();if($&&($.stderr||$).level>=2)hJ.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch($){}hJ.inspectOpts=Object.keys(process.env).filter(($)=>{return/^debug_/i.test($)}).reduce(($,J)=>{let G=J.substring(6).toLowerCase().replace(/_([a-z])/g,(q,V)=>{return V.toUpperCase()}),X=process.env[J];if(/^(yes|on|true|enabled)$/i.test(X))X=!0;else if(/^(no|off|false|disabled)$/i.test(X))X=!1;else if(X==="null")X=null;else X=Number(X);return $[G]=X,$},{});function FU(){return"colors"in hJ.inspectOpts?Boolean(hJ.inspectOpts.colors):KU.isatty(process.stderr.fd)}function RU($){let{namespace:J,useColors:G}=this;if(G){let X=this.color,q="\x1B[3"+(X<8?X:"8;5;"+X),V=` ${q};1m${J} \x1B[0m`;$[0]=V+$[0].split(`
|
|
53
53
|
`).join(`
|
|
54
|
-
`+V),$.push(q+"m+"+
|
|
55
|
-
`)}function
|
|
56
|
-
`).map((J)=>J.trim()).join(" ")};bJ.O=function($){return this.inspectOpts.colors=this.useColors,F5.inspect($,this.inspectOpts)}});var gJ=m((Xj,l6)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)l6.exports=LJ();else l6.exports=kJ()});var xG=m((E_,vG)=>{var L5=Object.prototype.hasOwnProperty,bG=Object.prototype.toString,LG=Object.defineProperty,TG=Object.getOwnPropertyDescriptor,SG=function(J){if(typeof Array.isArray==="function")return Array.isArray(J);return bG.call(J)==="[object Array]"},IG=function(J){if(!J||bG.call(J)!=="[object Object]")return!1;var G=L5.call(J,"constructor"),X=J.constructor&&J.constructor.prototype&&L5.call(J.constructor.prototype,"isPrototypeOf");if(J.constructor&&!G&&!X)return!1;var q;for(q in J);return typeof q>"u"||L5.call(J,q)},EG=function(J,G){if(LG&&G.name==="__proto__")LG(J,G.name,{enumerable:!0,configurable:!0,value:G.newValue,writable:!0});else J[G.name]=G.newValue},CG=function(J,G){if(G==="__proto__"){if(!L5.call(J,G))return;else if(TG)return TG(J,G).value}return J[G]};vG.exports=function $(){var J,G,X,q,V,Y,W=arguments[0],H=1,U=arguments.length,M=!1;if(typeof W==="boolean")M=W,W=arguments[1]||{},H=2;if(W==null||typeof W!=="object"&&typeof W!=="function")W={};for(;H<U;++H)if(J=arguments[H],J!=null){for(G in J)if(X=CG(W,G),q=CG(J,G),W!==q){if(M&&q&&(IG(q)||(V=SG(q)))){if(V)V=!1,Y=X&&SG(X)?X:[];else Y=X&&IG(X)?X:{};EG(W,{name:G,newValue:$(M,Y,q)})}else if(typeof q<"u")EG(W,{name:G,newValue:q})}}return W}});import{createClient as uF}from"@libsql/client";var C=Symbol.for("drizzle:entityKind");function I1($,J){if(!$||typeof $!=="object")return!1;if($ instanceof J)return!0;if(!Object.prototype.hasOwnProperty.call(J,C))throw Error(`Class "${J.name??"<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);let G=Object.getPrototypeOf($).constructor;if(G)while(G){if(C in G&&G[C]===J[C])return!0;G=Object.getPrototypeOf(G)}return!1}class w0{constructor($,J){this.table=$,this.config=J,this.name=J.name,this.keyAsName=J.keyAsName,this.notNull=J.notNull,this.default=J.default,this.defaultFn=J.defaultFn,this.onUpdateFn=J.onUpdateFn,this.hasDefault=J.hasDefault,this.primary=J.primaryKey,this.isUnique=J.isUnique,this.uniqueName=J.uniqueName,this.uniqueType=J.uniqueType,this.dataType=J.dataType,this.columnType=J.columnType,this.generated=J.generated,this.generatedIdentity=J.generatedIdentity}static[C]="Column";name;keyAsName;primary;notNull;default;defaultFn;onUpdateFn;hasDefault;isUnique;uniqueName;uniqueType;dataType;columnType;enumValues=void 0;generated=void 0;generatedIdentity=void 0;config;mapFromDriverValue($){return $}mapToDriverValue($){return $}shouldDisableInsert(){return this.config.generated!==void 0&&this.config.generated.type!=="byDefault"}}class i5{static[C]="ColumnBuilder";config;constructor($,J,G){this.config={name:$,keyAsName:$==="",notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:J,columnType:G,generated:void 0}}$type(){return this}notNull(){return this.config.notNull=!0,this}default($){return this.config.default=$,this.config.hasDefault=!0,this}$defaultFn($){return this.config.defaultFn=$,this.config.hasDefault=!0,this}$default=this.$defaultFn;$onUpdateFn($){return this.config.onUpdateFn=$,this.config.hasDefault=!0,this}$onUpdate=this.$onUpdateFn;primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}setName($){if(this.config.name!=="")return;this.config.name=$}}var n1=Symbol.for("drizzle:Name");function r9($,...J){return $(...J)}function d9($,J){return`${$[n1]}_${J.join("_")}_unique`}class e2 extends w0{constructor($,J){if(!J.uniqueName)J.uniqueName=d9($,[J.name]);super($,J);this.table=$}static[C]="PgColumn"}class HX extends e2{static[C]="ExtraConfigColumn";getSQLType(){return this.getSQLType()}indexConfig={order:this.config.order??"asc",nulls:this.config.nulls??"last",opClass:this.config.opClass};defaultConfig={order:"asc",nulls:"last",opClass:void 0};asc(){return this.indexConfig.order="asc",this}desc(){return this.indexConfig.order="desc",this}nullsFirst(){return this.indexConfig.nulls="first",this}nullsLast(){return this.indexConfig.nulls="last",this}op($){return this.indexConfig.opClass=$,this}}class UX extends e2{static[C]="PgEnumObjectColumn";enum;enumValues=this.config.enum.enumValues;constructor($,J){super($,J);this.enum=J.enum}getSQLType(){return this.enum.enumName}}var c9=Symbol.for("drizzle:isPgEnum");function i9($){return!!$&&typeof $==="function"&&c9 in $&&$[c9]===!0}class MX extends e2{static[C]="PgEnumColumn";enum=this.config.enum;enumValues=this.config.enum.enumValues;constructor($,J){super($,J);this.enum=J.enum}getSQLType(){return this.enum.enumName}}class k4{static[C]="Subquery";constructor($,J,G,X=!1,q=[]){this._={brand:"Subquery",sql:$,selectedFields:J,alias:G,isWith:X,usedTables:q}}}var o9="0.44.7";var o5,n5,n9={startActiveSpan($,J){if(!o5)return J();if(!n5)n5=o5.trace.getTracer("drizzle-orm",o9);return r9((G,X)=>X.startActiveSpan($,(q)=>{try{return J(q)}catch(V){throw q.setStatus({code:G.SpanStatusCode.ERROR,message:V instanceof Error?V.message:"Unknown error"}),V}finally{q.end()}}),o5,n5)}};var M2=Symbol.for("drizzle:ViewBaseConfig");var a5=Symbol.for("drizzle:Schema"),a9=Symbol.for("drizzle:Columns"),s9=Symbol.for("drizzle:ExtraConfigColumns"),s5=Symbol.for("drizzle:OriginalName"),t5=Symbol.for("drizzle:BaseName"),$4=Symbol.for("drizzle:IsAlias"),t9=Symbol.for("drizzle:ExtraConfigBuilder"),zX=Symbol.for("drizzle:IsDrizzleTable");class U1{static[C]="Table";static Symbol={Name:n1,Schema:a5,OriginalName:s5,Columns:a9,ExtraConfigColumns:s9,BaseName:t5,IsAlias:$4,ExtraConfigBuilder:t9};[n1];[s5];[a5];[a9];[s9];[t5];[$4]=!1;[zX]=!0;[t9]=void 0;constructor($,J,G){this[n1]=this[s5]=$,this[a5]=J,this[t5]=G}}function DX($){return $!==null&&$!==void 0&&typeof $.getSQL==="function"}function QX($){let J={sql:"",params:[]};for(let G of $)if(J.sql+=G.sql,J.params.push(...G.params),G.typings?.length){if(!J.typings)J.typings=[];J.typings.push(...G.typings)}return J}class c1{static[C]="StringChunk";value;constructor($){this.value=Array.isArray($)?$:[$]}getSQL(){return new M1([this])}}class M1{constructor($){this.queryChunks=$;for(let J of $)if(I1(J,U1)){let G=J[U1.Symbol.Schema];this.usedTables.push(G===void 0?J[U1.Symbol.Name]:G+"."+J[U1.Symbol.Name])}}static[C]="SQL";decoder=e9;shouldInlineParams=!1;usedTables=[];append($){return this.queryChunks.push(...$.queryChunks),this}toQuery($){return n9.startActiveSpan("drizzle.buildSQL",(J)=>{let G=this.buildQueryFromSourceParams(this.queryChunks,$);return J?.setAttributes({"drizzle.query.text":G.sql,"drizzle.query.params":JSON.stringify(G.params)}),G})}buildQueryFromSourceParams($,J){let G=Object.assign({},J,{inlineParams:J.inlineParams||this.shouldInlineParams,paramStartIndex:J.paramStartIndex||{value:0}}),{casing:X,escapeName:q,escapeParam:V,prepareTyping:Y,inlineParams:W,paramStartIndex:H}=G;return QX($.map((U)=>{if(I1(U,c1))return{sql:U.value.join(""),params:[]};if(I1(U,g4))return{sql:q(U.value),params:[]};if(U===void 0)return{sql:"",params:[]};if(Array.isArray(U)){let M=[new c1("(")];for(let[Q,F]of U.entries())if(M.push(F),Q<U.length-1)M.push(new c1(", "));return M.push(new c1(")")),this.buildQueryFromSourceParams(M,G)}if(I1(U,M1))return this.buildQueryFromSourceParams(U.queryChunks,{...G,inlineParams:W||U.shouldInlineParams});if(I1(U,U1)){let M=U[U1.Symbol.Schema],Q=U[U1.Symbol.Name];return{sql:M===void 0||U[$4]?q(Q):q(M)+"."+q(Q),params:[]}}if(I1(U,w0)){let M=X.getColumnCasing(U);if(J.invokeSource==="indexes")return{sql:q(M),params:[]};let Q=U.table[U1.Symbol.Schema];return{sql:U.table[$4]||Q===void 0?q(U.table[U1.Symbol.Name])+"."+q(M):q(Q)+"."+q(U.table[U1.Symbol.Name])+"."+q(M),params:[]}}if(I1(U,J8)){let M=U[M2].schema,Q=U[M2].name;return{sql:M===void 0||U[M2].isAlias?q(Q):q(M)+"."+q(Q),params:[]}}if(I1(U,e5)){if(I1(U.value,h4))return{sql:V(H.value++,U),params:[U],typings:["none"]};let M=U.value===null?null:U.encoder.mapToDriverValue(U.value);if(I1(M,M1))return this.buildQueryFromSourceParams([M],G);if(W)return{sql:this.mapInlineParam(M,G),params:[]};let Q=["none"];if(Y)Q=[Y(U.encoder)];return{sql:V(H.value++,M),params:[M],typings:Q}}if(I1(U,h4))return{sql:V(H.value++,U),params:[U],typings:["none"]};if(I1(U,M1.Aliased)&&U.fieldAlias!==void 0)return{sql:q(U.fieldAlias),params:[]};if(I1(U,k4)){if(U._.isWith)return{sql:q(U._.alias),params:[]};return this.buildQueryFromSourceParams([new c1("("),U._.sql,new c1(") "),new g4(U._.alias)],G)}if(i9(U)){if(U.schema)return{sql:q(U.schema)+"."+q(U.enumName),params:[]};return{sql:q(U.enumName),params:[]}}if(DX(U)){if(U.shouldOmitSQLParens?.())return this.buildQueryFromSourceParams([U.getSQL()],G);return this.buildQueryFromSourceParams([new c1("("),U.getSQL(),new c1(")")],G)}if(W)return{sql:this.mapInlineParam(U,G),params:[]};return{sql:V(H.value++,U),params:[U],typings:["none"]}}))}mapInlineParam($,{escapeString:J}){if($===null)return"null";if(typeof $==="number"||typeof $==="boolean")return $.toString();if(typeof $==="string")return J($);if(typeof $==="object"){let G=$.toString();if(G==="[object Object]")return J(JSON.stringify($));return J(G)}throw Error("Unexpected param value: "+$)}getSQL(){return this}as($){if($===void 0)return this;return new M1.Aliased(this,$)}mapWith($){return this.decoder=typeof $==="function"?{mapFromDriverValue:$}:$,this}inlineParams(){return this.shouldInlineParams=!0,this}if($){return $?this:void 0}}class g4{constructor($){this.value=$}static[C]="Name";brand;getSQL(){return new M1([this])}}var e9={mapFromDriverValue:($)=>$},$8={mapToDriverValue:($)=>$},mK={...e9,...$8};class e5{constructor($,J=$8){this.value=$,this.encoder=J}static[C]="Param";brand;getSQL(){return new M1([this])}}function z2($,...J){let G=[];if(J.length>0||$.length>0&&$[0]!=="")G.push(new c1($[0]));for(let[X,q]of J.entries())G.push(q,new c1($[X+1]));return new M1(G)}(($)=>{function J(){return new M1([])}$.empty=J;function G(H){return new M1(H)}$.fromList=G;function X(H){return new M1([new c1(H)])}$.raw=X;function q(H,U){let M=[];for(let[Q,F]of H.entries()){if(Q>0&&U!==void 0)M.push(U);M.push(F)}return new M1(M)}$.join=q;function V(H){return new g4(H)}$.identifier=V;function Y(H){return new h4(H)}$.placeholder=Y;function W(H,U){return new e5(H,U)}$.param=W})(z2||(z2={}));(($)=>{class J{constructor(G,X){this.sql=G,this.fieldAlias=X}static[C]="SQL.Aliased";isSelectionField=!1;getSQL(){return this.sql}clone(){return new J(this.sql,this.fieldAlias)}}$.Aliased=J})(M1||(M1={}));class h4{constructor($){this.name=$}static[C]="Placeholder";getSQL(){return new M1([this])}}var KX=Symbol.for("drizzle:IsDrizzleView");class J8{static[C]="View";[M2];[KX]=!0;constructor({name:$,schema:J,selectedFields:G,query:X}){this[M2]={name:$,originalName:$,schema:J,selectedFields:G,query:X,isExisting:!X,isAlias:!1}}getSQL(){return new M1([this])}}w0.prototype.getSQL=function(){return new M1([this])};U1.prototype.getSQL=function(){return new M1([this])};k4.prototype.getSQL=function(){return new M1([this])};function X0($,J){return{name:typeof $==="string"&&$.length>0?$:"",config:typeof $==="object"?$:J}}var $6=typeof TextDecoder>"u"?null:new TextDecoder;class J6{static[C]="SQLiteForeignKeyBuilder";reference;_onUpdate;_onDelete;constructor($,J){if(this.reference=()=>{let{name:G,columns:X,foreignColumns:q}=$();return{name:G,columns:X,foreignTable:q[0].table,foreignColumns:q}},J)this._onUpdate=J.onUpdate,this._onDelete=J.onDelete}onUpdate($){return this._onUpdate=$,this}onDelete($){return this._onDelete=$,this}build($){return new G8($,this)}}class G8{constructor($,J){this.table=$,this.reference=J.reference,this.onUpdate=J._onUpdate,this.onDelete=J._onDelete}static[C]="SQLiteForeignKey";reference;onUpdate;onDelete;getName(){let{name:$,columns:J,foreignColumns:G}=this.reference(),X=J.map((Y)=>Y.name),q=G.map((Y)=>Y.name),V=[this.table[n1],...X,G[0].table[n1],...q];return $??`${V.join("_")}_fk`}}function X8($,J){return`${$[n1]}_${J.join("_")}_unique`}class B1 extends i5{static[C]="SQLiteColumnBuilder";foreignKeyConfigs=[];references($,J={}){return this.foreignKeyConfigs.push({ref:$,actions:J}),this}unique($){return this.config.isUnique=!0,this.config.uniqueName=$,this}generatedAlwaysAs($,J){return this.config.generated={as:$,type:"always",mode:J?.mode??"virtual"},this}buildForeignKeys($,J){return this.foreignKeyConfigs.map(({ref:G,actions:X})=>{return((q,V)=>{let Y=new J6(()=>{let W=q();return{columns:[$],foreignColumns:[W]}});if(V.onUpdate)Y.onUpdate(V.onUpdate);if(V.onDelete)Y.onDelete(V.onDelete);return Y.build(J)})(G,X)})}}class O1 extends w0{constructor($,J){if(!J.uniqueName)J.uniqueName=X8($,[J.name]);super($,J);this.table=$}static[C]="SQLiteColumn"}class q8 extends B1{static[C]="SQLiteBigIntBuilder";constructor($){super($,"bigint","SQLiteBigInt")}build($){return new Y8($,this.config)}}class Y8 extends O1{static[C]="SQLiteBigInt";getSQLType(){return"blob"}mapFromDriverValue($){if(typeof Buffer<"u"&&Buffer.from){let J=Buffer.isBuffer($)?$:$ instanceof ArrayBuffer?Buffer.from($):$.buffer?Buffer.from($.buffer,$.byteOffset,$.byteLength):Buffer.from($);return BigInt(J.toString("utf8"))}return BigInt($6.decode($))}mapToDriverValue($){return Buffer.from($.toString())}}class V8 extends B1{static[C]="SQLiteBlobJsonBuilder";constructor($){super($,"json","SQLiteBlobJson")}build($){return new W8($,this.config)}}class W8 extends O1{static[C]="SQLiteBlobJson";getSQLType(){return"blob"}mapFromDriverValue($){if(typeof Buffer<"u"&&Buffer.from){let J=Buffer.isBuffer($)?$:$ instanceof ArrayBuffer?Buffer.from($):$.buffer?Buffer.from($.buffer,$.byteOffset,$.byteLength):Buffer.from($);return JSON.parse(J.toString("utf8"))}return JSON.parse($6.decode($))}mapToDriverValue($){return Buffer.from(JSON.stringify($))}}class H8 extends B1{static[C]="SQLiteBlobBufferBuilder";constructor($){super($,"buffer","SQLiteBlobBuffer")}build($){return new U8($,this.config)}}class U8 extends O1{static[C]="SQLiteBlobBuffer";mapFromDriverValue($){if(Buffer.isBuffer($))return $;return Buffer.from($)}getSQLType(){return"blob"}}function M8($,J){let{name:G,config:X}=X0($,J);if(X?.mode==="json")return new V8(G);if(X?.mode==="bigint")return new q8(G);return new H8(G)}class z8 extends B1{static[C]="SQLiteCustomColumnBuilder";constructor($,J,G){super($,"custom","SQLiteCustomColumn");this.config.fieldConfig=J,this.config.customTypeParams=G}build($){return new D8($,this.config)}}class D8 extends O1{static[C]="SQLiteCustomColumn";sqlName;mapTo;mapFrom;constructor($,J){super($,J);this.sqlName=J.customTypeParams.dataType(J.fieldConfig),this.mapTo=J.customTypeParams.toDriver,this.mapFrom=J.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue($){return typeof this.mapFrom==="function"?this.mapFrom($):$}mapToDriverValue($){return typeof this.mapTo==="function"?this.mapTo($):$}}function y4($){return(J,G)=>{let{name:X,config:q}=X0(J,G);return new z8(X,q,$)}}class m4 extends B1{static[C]="SQLiteBaseIntegerBuilder";constructor($,J,G){super($,J,G);this.config.autoIncrement=!1}primaryKey($){if($?.autoIncrement)this.config.autoIncrement=!0;return this.config.hasDefault=!0,super.primaryKey()}}class f4 extends O1{static[C]="SQLiteBaseInteger";autoIncrement=this.config.autoIncrement;getSQLType(){return"integer"}}class Q8 extends m4{static[C]="SQLiteIntegerBuilder";constructor($){super($,"number","SQLiteInteger")}build($){return new K8($,this.config)}}class K8 extends f4{static[C]="SQLiteInteger"}class F8 extends m4{static[C]="SQLiteTimestampBuilder";constructor($,J){super($,"date","SQLiteTimestamp");this.config.mode=J}defaultNow(){return this.default(z2`(cast((julianday('now') - 2440587.5)*86400000 as integer))`)}build($){return new R8($,this.config)}}class R8 extends f4{static[C]="SQLiteTimestamp";mode=this.config.mode;mapFromDriverValue($){if(this.config.mode==="timestamp")return new Date($*1000);return new Date($)}mapToDriverValue($){let J=$.getTime();if(this.config.mode==="timestamp")return Math.floor(J/1000);return J}}class B8 extends m4{static[C]="SQLiteBooleanBuilder";constructor($,J){super($,"boolean","SQLiteBoolean");this.config.mode=J}build($){return new O8($,this.config)}}class O8 extends f4{static[C]="SQLiteBoolean";mode=this.config.mode;mapFromDriverValue($){return Number($)===1}mapToDriverValue($){return $?1:0}}function J4($,J){let{name:G,config:X}=X0($,J);if(X?.mode==="timestamp"||X?.mode==="timestamp_ms")return new F8(G,X.mode);if(X?.mode==="boolean")return new B8(G,X.mode);return new Q8(G)}class A8 extends B1{static[C]="SQLiteNumericBuilder";constructor($){super($,"string","SQLiteNumeric")}build($){return new w8($,this.config)}}class w8 extends O1{static[C]="SQLiteNumeric";mapFromDriverValue($){if(typeof $==="string")return $;return String($)}getSQLType(){return"numeric"}}class j8 extends B1{static[C]="SQLiteNumericNumberBuilder";constructor($){super($,"number","SQLiteNumericNumber")}build($){return new N8($,this.config)}}class N8 extends O1{static[C]="SQLiteNumericNumber";mapFromDriverValue($){if(typeof $==="number")return $;return Number($)}mapToDriverValue=String;getSQLType(){return"numeric"}}class Z8 extends B1{static[C]="SQLiteNumericBigIntBuilder";constructor($){super($,"bigint","SQLiteNumericBigInt")}build($){return new _8($,this.config)}}class _8 extends O1{static[C]="SQLiteNumericBigInt";mapFromDriverValue=BigInt;mapToDriverValue=String;getSQLType(){return"numeric"}}function P8($,J){let{name:G,config:X}=X0($,J),q=X?.mode;return q==="number"?new j8(G):q==="bigint"?new Z8(G):new A8(G)}class L8 extends B1{static[C]="SQLiteRealBuilder";constructor($){super($,"number","SQLiteReal")}build($){return new T8($,this.config)}}class T8 extends O1{static[C]="SQLiteReal";getSQLType(){return"real"}}function S8($){return new L8($??"")}class I8 extends B1{static[C]="SQLiteTextBuilder";constructor($,J){super($,"string","SQLiteText");this.config.enumValues=J.enum,this.config.length=J.length}build($){return new E8($,this.config)}}class E8 extends O1{static[C]="SQLiteText";enumValues=this.config.enumValues;length=this.config.length;constructor($,J){super($,J)}getSQLType(){return`text${this.config.length?`(${this.config.length})`:""}`}}class C8 extends B1{static[C]="SQLiteTextJsonBuilder";constructor($){super($,"json","SQLiteTextJson")}build($){return new b8($,this.config)}}class b8 extends O1{static[C]="SQLiteTextJson";getSQLType(){return"text"}mapFromDriverValue($){return JSON.parse($)}mapToDriverValue($){return JSON.stringify($)}}function i1($,J={}){let{name:G,config:X}=X0($,J);if(X.mode==="json")return new C8(G);return new I8(G,X)}function v8(){return{blob:M8,customType:y4,integer:J4,numeric:P8,real:S8,text:i1}}var G6=Symbol.for("drizzle:SQLiteInlineForeignKeys");class G4 extends U1{static[C]="SQLiteTable";static Symbol=Object.assign({},U1.Symbol,{InlineForeignKeys:G6});[U1.Symbol.Columns];[G6]=[];[U1.Symbol.ExtraConfigBuilder]=void 0}function FX($,J,G,X,q=$){let V=new G4($,X,q),Y=typeof J==="function"?J(v8()):J,W=Object.fromEntries(Object.entries(Y).map(([U,M])=>{let Q=M;Q.setName(U);let F=Q.build(V);return V[G6].push(...Q.buildForeignKeys(F,V)),[U,F]})),H=Object.assign(V,W);if(H[U1.Symbol.Columns]=W,H[U1.Symbol.ExtraConfigColumns]=W,G)H[G4.Symbol.ExtraConfigBuilder]=G;return H}var u4=($,J,G)=>{return FX($,J,G)};function p4(...$){if($[0].columns)return new X6($[0].columns,$[0].name);return new X6($)}class X6{static[C]="SQLitePrimaryKeyBuilder";columns;name;constructor($,J){this.columns=$,this.name=J}build($){return new x8($,this.columns,this.name)}}class x8{constructor($,J,G){this.table=$,this.columns=J,this.name=G}static[C]="SQLitePrimaryKey";columns;name;getName(){return this.name??`${this.table[G4.Symbol.Name]}_${this.columns.map(($)=>$.name).join("_")}_pk`}}var l4=u4("entities",{id:i1("id").notNull(),entityType:i1("entityType").notNull(),content:i1("content").notNull(),contentHash:i1("contentHash").notNull(),metadata:i1("metadata",{mode:"json"}).$type().notNull().default(z2`'{}'`),created:J4("created").notNull().$defaultFn(()=>Date.now()),updated:J4("updated").notNull().$defaultFn(()=>Date.now())},($)=>{return{pk:p4({columns:[$.id,$.entityType]})}});import{createClient as aF}from"@libsql/client";var k8=y4({dataType(){return"F32_BLOB(1536)"},toDriver($){return Buffer.from($.buffer)},fromDriver($){return new Float32Array($.buffer,$.byteOffset,$.byteLength/4)}});var r4=u4("embeddings",{entityId:i1("entity_id").notNull(),entityType:i1("entity_type").notNull(),embedding:k8("embedding").notNull(),contentHash:i1("content_hash").notNull()},($)=>{return{pk:p4({columns:[$.entityId,$.entityType]})}});import{openSync as RX,writeSync as BX}from"fs";class m1{static instance=null;level;context;useStderr;format;logFile;fileHandle;constructor($={},J){if(this.level=$.level??3,this.context=$.context??void 0,this.useStderr=$.useStderr??!1,this.format=$.format??"text",this.logFile=$.logFile,J!==void 0)this.fileHandle=J;else if(this.logFile)try{this.fileHandle=RX(this.logFile,"a")}catch{}}static getInstance($){if(!m1.instance)m1.instance=new m1($);else if($?.useStderr!==void 0)m1.instance.useStderr=$.useStderr;return m1.instance}static resetInstance(){m1.instance=null}static createFresh($){return new m1($)}formatEntry($,J,G){let X=new Date().toISOString();if(this.format==="json"){let q={ts:X,level:$,msg:J};if(this.context)q.ctx=this.context;if(G.length>0)q.data=G;return JSON.stringify(q)}return this.context?`[${X}] [${this.context}] ${J}`:`[${X}] ${J}`}write($,J,G,X){if(this.format==="json")$(this.formatEntry(J,G,X));else if(X.length>0)$(this.formatEntry(J,G,[]),...X);else $(this.formatEntry(J,G,[]));if(this.fileHandle!==void 0){let q=this.formatJsonEntry(J,G,X);try{BX(this.fileHandle,q+`
|
|
57
|
-
`)}catch{}}}formatJsonEntry($,J,G){let X={ts:new Date().toISOString(),level:$,msg:J};if(this.context)X.ctx=this.context;if(G.length>0)X.data=G;return JSON.stringify(X)}silly($,...J){if(this.level<=0)this.write(console.debug.bind(console),"silly",$,J)}verbose($,...J){if(this.level<=1)this.write(console.debug.bind(console),"verbose",$,J)}debug($,...J){if(this.level<=2)this.write(console.debug.bind(console),"debug",$,J)}info($,...J){if(this.level<=3){let G=this.useStderr?console.error.bind(console):console.info.bind(console);this.write(G,"info",$,J)}}warn($,...J){if(this.level<=4)this.write(console.warn.bind(console),"warn",$,J)}error($,...J){if(this.level<=5)this.write(console.error.bind(console),"error",$,J)}child($){return new
|
|
58
|
-
`,Nfr:"\uD835\uDD11",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\uD835\uDCA9",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\uD835\uDD12",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\uD835\uDD46",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\uD835\uDCAA",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\uD835\uDD13",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\uD835\uDCAB",Psi:"\u03A8",QUOT:'"',Qfr:"\uD835\uDD14",Qopf:"\u211A",Qscr:"\uD835\uDCAC",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\uD835\uDD16",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\uD835\uDD4A",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\uD835\uDCAE",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:"\t",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\uD835\uDD17",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\uD835\uDD4B",TripleDot:"\u20DB",Tscr:"\uD835\uDCAF",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\uD835\uDD18",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\uD835\uDD4C",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\uD835\uDCB0",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\uD835\uDD19",Vopf:"\uD835\uDD4D",Vscr:"\uD835\uDCB1",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\uD835\uDD1A",Wopf:"\uD835\uDD4E",Wscr:"\uD835\uDCB2",Xfr:"\uD835\uDD1B",Xi:"\u039E",Xopf:"\uD835\uDD4F",Xscr:"\uD835\uDCB3",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\uD835\uDD1C",Yopf:"\uD835\uDD50",Yscr:"\uD835\uDCB4",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\uD835\uDCB5",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\uD835\uDD1E",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\uD835\uDD52",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\uD835\uDCB6",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\uD835\uDD1F",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\uD835\uDD53",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\uD835\uDCB7",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\uD835\uDD20",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\uD835\uDD54",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\uD835\uDCB8",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\uD835\uDD21",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\uD835\uDD55",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\uD835\uDCB9",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\uD835\uDD22",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\uD835\uDD56",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\uD835\uDD23",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\uD835\uDD57",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\uD835\uDCBB",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\uD835\uDD24",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\uD835\uDD58",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\uD835\uDD25",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\uD835\uDD59",horbar:"\u2015",hscr:"\uD835\uDCBD",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\uD835\uDD26",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\uD835\uDD5A",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\uD835\uDCBE",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\uD835\uDD27",jmath:"\u0237",jopf:"\uD835\uDD5B",jscr:"\uD835\uDCBF",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\uD835\uDD28",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\uD835\uDD5C",kscr:"\uD835\uDCC0",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\uD835\uDD29",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\uD835\uDD5D",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\uD835\uDCC1",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\uD835\uDD2A",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\uD835\uDD5E",mp:"\u2213",mscr:"\uD835\uDCC2",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\uD835\uDD2B",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\uD835\uDD5F",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\uD835\uDCC3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\uD835\uDD2C",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\uD835\uDD60",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\uD835\uDD2D",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\uD835\uDD61",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\uD835\uDCC5",psi:"\u03C8",puncsp:"\u2008",qfr:"\uD835\uDD2E",qint:"\u2A0C",qopf:"\uD835\uDD62",qprime:"\u2057",qscr:"\uD835\uDCC6",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\uD835\uDD2F",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\uD835\uDD63",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\uD835\uDCC7",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\uD835\uDD30",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\uD835\uDD64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\uD835\uDCC8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\uD835\uDD31",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\uD835\uDD65",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\uD835\uDCC9",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\uD835\uDD32",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\uD835\uDD66",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\uD835\uDCCA",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\uD835\uDD33",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\uD835\uDD67",vprop:"\u221D",vrtri:"\u22B3",vscr:"\uD835\uDCCB",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\uD835\uDD34",wopf:"\uD835\uDD68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\uD835\uDCCC",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\uD835\uDD35",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\uD835\uDD69",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\uD835\uDCCD",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\uD835\uDD36",yicy:"\u0457",yopf:"\uD835\uDD6A",yscr:"\uD835\uDCCE",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\uD835\uDD37",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\uD835\uDD6B",zscr:"\uD835\uDCCF",zwj:"\u200D",zwnj:"\u200C"};var ZW={}.hasOwnProperty;function j2($){return ZW.call(L6,$)?L6[$]:!1}var D={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 L={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 z={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 f1={ht:"\t",lf:`
|
|
59
|
-
`,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:"\uFFFD"};function w1($,J,G,X){let q=$.length,V=0,Y;if(J<0)J=-J>q?0:q+J;else J=J>q?q:J;if(G=G>0?G:0,X.length<L.v8MaxSafeChunkSize)Y=Array.from(X),Y.unshift(J,G),$.splice(...Y);else{if(G)$.splice(J,G);while(V<X.length)Y=X.slice(V,V+L.v8MaxSafeChunkSize),Y.unshift(J,0),$.splice(...Y),V+=L.v8MaxSafeChunkSize,J+=L.v8MaxSafeChunkSize}}function C1($,J){if($.length>0)return w1($,$.length,0,J),$;return J}var GJ={}.hasOwnProperty;function XJ($){let J={},G=-1;while(++G<$.length)_W(J,$[G]);return J}function _W($,J){let G;for(G in J){let q=(GJ.call($,G)?$[G]:void 0)||($[G]={}),V=J[G],Y;if(V)for(Y in V){if(!GJ.call(q,Y))q[Y]=[];let W=V[Y];PW(q[Y],Array.isArray(W)?W:W?[W]:[])}}}function PW($,J){let G=-1,X=[];while(++G<J.length)(J[G].add==="after"?$:X).push(J[G]);w1($,0,0,X)}function X5($,J){let G=Number.parseInt($,J);if(G<D.ht||G===D.vt||G>D.cr&&G<D.space||G>D.tilde&&G<160||G>55295&&G<57344||G>64975&&G<65008||(G&65535)===65535||(G&65535)===65534||G>1114111)return f1.replacementCharacter;return String.fromCodePoint(G)}function F0($){return $.replace(/[\t\n\r ]+/g,f1.space).replace(/^ | $/g,"").toLowerCase().toUpperCase()}var u1=_0(/[A-Za-z]/),b1=_0(/[\dA-Za-z]/),qJ=_0(/[#-'*+\--9=?A-Z^-~]/);function z4($){return $!==null&&($<D.space||$===D.del)}var D4=_0(/\d/),YJ=_0(/[\dA-Fa-f]/),VJ=_0(/[!-/:-@[-`{-~]/);function I($){return $!==null&&$<D.horizontalTab}function H1($){return $!==null&&($<D.nul||$===D.space)}function l($){return $===D.horizontalTab||$===D.virtualSpace||$===D.space}var WJ=_0(/\p{P}|\p{S}/u),HJ=_0(/\s/);function _0($){return J;function J(G){return G!==null&&G>-1&&$.test(String.fromCharCode(G))}}function d($,J,G,X){let q=X?X-1:Number.POSITIVE_INFINITY,V=0;return Y;function Y(H){if(l(H))return $.enter(G),W(H);return J(H)}function W(H){if(l(H)&&V++<q)return $.consume(H),W;return $.exit(G),J(H)}}var UJ={tokenize:LW};function LW($){let J=$.attempt(this.parser.constructs.contentInitial,X,q),G;return J;function X(W){if(R(W===D.eof||I(W),"expected eol or eof"),W===D.eof){$.consume(W);return}return $.enter(z.lineEnding),$.consume(W),$.exit(z.lineEnding),d($,J,z.linePrefix)}function q(W){return R(W!==D.eof&&!I(W),"expected anything other than a line ending or EOF"),$.enter(z.paragraph),V(W)}function V(W){let H=$.enter(z.chunkText,{contentType:L.contentTypeText,previous:G});if(G)G.next=H;return G=H,Y(W)}function Y(W){if(W===D.eof){$.exit(z.chunkText),$.exit(z.paragraph),$.consume(W);return}if(I(W))return $.consume(W),$.exit(z.chunkText),V;return $.consume(W),Y}}var zJ={tokenize:TW},MJ={tokenize:SW};function TW($){let J=this,G=[],X=0,q,V,Y;return W;function W(h){if(X<G.length){let t=G[X];return J.containerState=t[1],R(t[0].continuation,"expected `continuation` to be defined on container construct"),$.attempt(t[0].continuation,H,U)(h)}return U(h)}function H(h){if(R(J.containerState,"expected `containerState` to be defined after continuation"),X++,J.containerState._closeFlow){if(J.containerState._closeFlow=void 0,q)x();let t=J.events.length,G1=t,Z;while(G1--)if(J.events[G1][0]==="exit"&&J.events[G1][1].type===z.chunkFlow){Z=J.events[G1][1].end;break}R(Z,"could not find previous flow chunk"),_(X);let $1=t;while($1<J.events.length)J.events[$1][1].end={...Z},$1++;return w1(J.events,G1+1,0,J.events.slice(t)),J.events.length=$1,U(h)}return W(h)}function U(h){if(X===G.length){if(!q)return F(h);if(q.currentConstruct&&q.currentConstruct.concrete)return j(h);J.interrupt=Boolean(q.currentConstruct&&!q._gfmTableDynamicInterruptHack)}return J.containerState={},$.check(MJ,M,Q)(h)}function M(h){if(q)x();return _(X),F(h)}function Q(h){return J.parser.lazy[J.now().line]=X!==G.length,Y=J.now().offset,j(h)}function F(h){return J.containerState={},$.attempt(MJ,K,j)(h)}function K(h){return R(J.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),R(J.containerState,"expected `containerState` to be defined on tokenizer"),X++,G.push([J.currentConstruct,J.containerState]),F(h)}function j(h){if(h===D.eof){if(q)x();_(0),$.consume(h);return}return q=q||J.parser.flow(J.now()),$.enter(z.chunkFlow,{_tokenizer:q,contentType:L.contentTypeFlow,previous:V}),N(h)}function N(h){if(h===D.eof){P($.exit(z.chunkFlow),!0),_(0),$.consume(h);return}if(I(h))return $.consume(h),P($.exit(z.chunkFlow)),X=0,J.interrupt=void 0,W;return $.consume(h),N}function P(h,t){R(q,"expected `childFlow` to be defined when continuing");let G1=J.sliceStream(h);if(t)G1.push(null);if(h.previous=V,V)V.next=h;if(V=h,q.defineSkip(h.start),q.write(G1),J.parser.lazy[h.start.line]){let Z=q.events.length;while(Z--)if(q.events[Z][1].start.offset<Y&&(!q.events[Z][1].end||q.events[Z][1].end.offset>Y))return;let $1=J.events.length,q1=$1,s,X1;while(q1--)if(J.events[q1][0]==="exit"&&J.events[q1][1].type===z.chunkFlow){if(s){X1=J.events[q1][1].end;break}s=!0}R(X1,"could not find previous flow chunk"),_(X),Z=$1;while(Z<J.events.length)J.events[Z][1].end={...X1},Z++;w1(J.events,q1+1,0,J.events.slice($1)),J.events.length=Z}}function _(h){let t=G.length;while(t-- >h){let G1=G[t];J.containerState=G1[1],R(G1[0].exit,"expected `exit` to be defined on container construct"),G1[0].exit.call(J,$)}G.length=h}function x(){R(J.containerState,"expected `containerState` to be defined when closing flow"),R(q,"expected `childFlow` to be defined when closing it"),q.write([D.eof]),V=void 0,q=void 0,J.containerState._closeFlow=void 0}}function SW($,J,G){return R(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),d($,$.attempt(this.parser.constructs.document,J,G),z.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:L.tabSize)}function N2($){if($===D.eof||H1($)||HJ($))return L.characterGroupWhitespace;if(WJ($))return L.characterGroupPunctuation}function Z2($,J,G){let X=[],q=-1;while(++q<$.length){let V=$[q].resolveAll;if(V&&!X.includes(V))J=V(J,G),X.push(V)}return J}var Q4={name:"attention",resolveAll:IW,tokenize:EW};function IW($,J){let G=-1,X,q,V,Y,W,H,U,M;while(++G<$.length)if($[G][0]==="enter"&&$[G][1].type==="attentionSequence"&&$[G][1]._close){X=G;while(X--)if($[X][0]==="exit"&&$[X][1].type==="attentionSequence"&&$[X][1]._open&&J.sliceSerialize($[X][1]).charCodeAt(0)===J.sliceSerialize($[G][1]).charCodeAt(0)){if(($[X][1]._close||$[G][1]._open)&&($[G][1].end.offset-$[G][1].start.offset)%3&&!(($[X][1].end.offset-$[X][1].start.offset+$[G][1].end.offset-$[G][1].start.offset)%3))continue;H=$[X][1].end.offset-$[X][1].start.offset>1&&$[G][1].end.offset-$[G][1].start.offset>1?2:1;let Q={...$[X][1].end},F={...$[G][1].start};if(DJ(Q,-H),DJ(F,H),Y={type:H>1?z.strongSequence:z.emphasisSequence,start:Q,end:{...$[X][1].end}},W={type:H>1?z.strongSequence:z.emphasisSequence,start:{...$[G][1].start},end:F},V={type:H>1?z.strongText:z.emphasisText,start:{...$[X][1].end},end:{...$[G][1].start}},q={type:H>1?z.strong:z.emphasis,start:{...Y.start},end:{...W.end}},$[X][1].end={...Y.start},$[G][1].start={...W.end},U=[],$[X][1].end.offset-$[X][1].start.offset)U=C1(U,[["enter",$[X][1],J],["exit",$[X][1],J]]);if(U=C1(U,[["enter",q,J],["enter",Y,J],["exit",Y,J],["enter",V,J]]),R(J.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),U=C1(U,Z2(J.parser.constructs.insideSpan.null,$.slice(X+1,G),J)),U=C1(U,[["exit",V,J],["enter",W,J],["exit",W,J],["exit",q,J]]),$[G][1].end.offset-$[G][1].start.offset)M=2,U=C1(U,[["enter",$[G][1],J],["exit",$[G][1],J]]);else M=0;w1($,X-1,G-X+3,U),G=X+U.length-M-2;break}}G=-1;while(++G<$.length)if($[G][1].type==="attentionSequence")$[G][1].type="data";return $}function EW($,J){let G=this.parser.constructs.attentionMarkers.null,X=this.previous,q=N2(X),V;return Y;function Y(H){return R(H===D.asterisk||H===D.underscore,"expected asterisk or underscore"),V=H,$.enter("attentionSequence"),W(H)}function W(H){if(H===V)return $.consume(H),W;let U=$.exit("attentionSequence"),M=N2(H);R(G,"expected `attentionMarkers` to be populated");let Q=!M||M===L.characterGroupPunctuation&&q||G.includes(H),F=!q||q===L.characterGroupPunctuation&&M||G.includes(X);return U._open=Boolean(V===D.asterisk?Q:Q&&(q||!F)),U._close=Boolean(V===D.asterisk?F:F&&(M||!Q)),J(H)}}function DJ($,J){$.column+=J,$.offset+=J,$._bufferIndex+=J}var T6={name:"autolink",tokenize:CW};function CW($,J,G){let X=0;return q;function q(K){return R(K===D.lessThan,"expected `<`"),$.enter(z.autolink),$.enter(z.autolinkMarker),$.consume(K),$.exit(z.autolinkMarker),$.enter(z.autolinkProtocol),V}function V(K){if(u1(K))return $.consume(K),Y;if(K===D.atSign)return G(K);return U(K)}function Y(K){if(K===D.plusSign||K===D.dash||K===D.dot||b1(K))return X=1,W(K);return U(K)}function W(K){if(K===D.colon)return $.consume(K),X=0,H;if((K===D.plusSign||K===D.dash||K===D.dot||b1(K))&&X++<L.autolinkSchemeSizeMax)return $.consume(K),W;return X=0,U(K)}function H(K){if(K===D.greaterThan)return $.exit(z.autolinkProtocol),$.enter(z.autolinkMarker),$.consume(K),$.exit(z.autolinkMarker),$.exit(z.autolink),J;if(K===D.eof||K===D.space||K===D.lessThan||z4(K))return G(K);return $.consume(K),H}function U(K){if(K===D.atSign)return $.consume(K),M;if(qJ(K))return $.consume(K),U;return G(K)}function M(K){return b1(K)?Q(K):G(K)}function Q(K){if(K===D.dot)return $.consume(K),X=0,M;if(K===D.greaterThan)return $.exit(z.autolinkProtocol).type=z.autolinkEmail,$.enter(z.autolinkMarker),$.consume(K),$.exit(z.autolinkMarker),$.exit(z.autolink),J;return F(K)}function F(K){if((K===D.dash||b1(K))&&X++<L.autolinkDomainSizeMax){let j=K===D.dash?F:Q;return $.consume(K),j}return G(K)}}var P0={partial:!0,tokenize:bW};function bW($,J,G){return X;function X(V){return l(V)?d($,q,z.linePrefix)(V):q(V)}function q(V){return V===D.eof||I(V)?J(V):G(V)}}var q5={continuation:{tokenize:xW},exit:kW,name:"blockQuote",tokenize:vW};function vW($,J,G){let X=this;return q;function q(Y){if(Y===D.greaterThan){let W=X.containerState;if(R(W,"expected `containerState` to be defined in container"),!W.open)$.enter(z.blockQuote,{_container:!0}),W.open=!0;return $.enter(z.blockQuotePrefix),$.enter(z.blockQuoteMarker),$.consume(Y),$.exit(z.blockQuoteMarker),V}return G(Y)}function V(Y){if(l(Y))return $.enter(z.blockQuotePrefixWhitespace),$.consume(Y),$.exit(z.blockQuotePrefixWhitespace),$.exit(z.blockQuotePrefix),J;return $.exit(z.blockQuotePrefix),J(Y)}}function xW($,J,G){let X=this;return q;function q(Y){if(l(Y))return R(X.parser.constructs.disable.null,"expected `disable.null` to be populated"),d($,V,z.linePrefix,X.parser.constructs.disable.null.includes("codeIndented")?void 0:L.tabSize)(Y);return V(Y)}function V(Y){return $.attempt(q5,J,G)(Y)}}function kW($){$.exit(z.blockQuote)}var Y5={name:"characterEscape",tokenize:gW};function gW($,J,G){return X;function X(V){return R(V===D.backslash,"expected `\\`"),$.enter(z.characterEscape),$.enter(z.escapeMarker),$.consume(V),$.exit(z.escapeMarker),q}function q(V){if(VJ(V))return $.enter(z.characterEscapeValue),$.consume(V),$.exit(z.characterEscapeValue),$.exit(z.characterEscape),J;return G(V)}}var V5={name:"characterReference",tokenize:hW};function hW($,J,G){let X=this,q=0,V,Y;return W;function W(Q){return R(Q===D.ampersand,"expected `&`"),$.enter(z.characterReference),$.enter(z.characterReferenceMarker),$.consume(Q),$.exit(z.characterReferenceMarker),H}function H(Q){if(Q===D.numberSign)return $.enter(z.characterReferenceMarkerNumeric),$.consume(Q),$.exit(z.characterReferenceMarkerNumeric),U;return $.enter(z.characterReferenceValue),V=L.characterReferenceNamedSizeMax,Y=b1,M(Q)}function U(Q){if(Q===D.uppercaseX||Q===D.lowercaseX)return $.enter(z.characterReferenceMarkerHexadecimal),$.consume(Q),$.exit(z.characterReferenceMarkerHexadecimal),$.enter(z.characterReferenceValue),V=L.characterReferenceHexadecimalSizeMax,Y=YJ,M;return $.enter(z.characterReferenceValue),V=L.characterReferenceDecimalSizeMax,Y=D4,M(Q)}function M(Q){if(Q===D.semicolon&&q){let F=$.exit(z.characterReferenceValue);if(Y===b1&&!j2(X.sliceSerialize(F)))return G(Q);return $.enter(z.characterReferenceMarker),$.consume(Q),$.exit(z.characterReferenceMarker),$.exit(z.characterReference),J}if(Y(Q)&&q++<V)return $.consume(Q),M;return G(Q)}}var QJ={partial:!0,tokenize:mW},W5={concrete:!0,name:"codeFenced",tokenize:yW};function yW($,J,G){let X=this,q={partial:!0,tokenize:G1},V=0,Y=0,W;return H;function H(Z){return U(Z)}function U(Z){R(Z===D.graveAccent||Z===D.tilde,"expected `` ` `` or `~`");let $1=X.events[X.events.length-1];return V=$1&&$1[1].type===z.linePrefix?$1[2].sliceSerialize($1[1],!0).length:0,W=Z,$.enter(z.codeFenced),$.enter(z.codeFencedFence),$.enter(z.codeFencedFenceSequence),M(Z)}function M(Z){if(Z===W)return Y++,$.consume(Z),M;if(Y<L.codeFencedSequenceSizeMin)return G(Z);return $.exit(z.codeFencedFenceSequence),l(Z)?d($,Q,z.whitespace)(Z):Q(Z)}function Q(Z){if(Z===D.eof||I(Z))return $.exit(z.codeFencedFence),X.interrupt?J(Z):$.check(QJ,N,t)(Z);return $.enter(z.codeFencedFenceInfo),$.enter(z.chunkString,{contentType:L.contentTypeString}),F(Z)}function F(Z){if(Z===D.eof||I(Z))return $.exit(z.chunkString),$.exit(z.codeFencedFenceInfo),Q(Z);if(l(Z))return $.exit(z.chunkString),$.exit(z.codeFencedFenceInfo),d($,K,z.whitespace)(Z);if(Z===D.graveAccent&&Z===W)return G(Z);return $.consume(Z),F}function K(Z){if(Z===D.eof||I(Z))return Q(Z);return $.enter(z.codeFencedFenceMeta),$.enter(z.chunkString,{contentType:L.contentTypeString}),j(Z)}function j(Z){if(Z===D.eof||I(Z))return $.exit(z.chunkString),$.exit(z.codeFencedFenceMeta),Q(Z);if(Z===D.graveAccent&&Z===W)return G(Z);return $.consume(Z),j}function N(Z){return R(I(Z),"expected eol"),$.attempt(q,t,P)(Z)}function P(Z){return R(I(Z),"expected eol"),$.enter(z.lineEnding),$.consume(Z),$.exit(z.lineEnding),_}function _(Z){return V>0&&l(Z)?d($,x,z.linePrefix,V+1)(Z):x(Z)}function x(Z){if(Z===D.eof||I(Z))return $.check(QJ,N,t)(Z);return $.enter(z.codeFlowValue),h(Z)}function h(Z){if(Z===D.eof||I(Z))return $.exit(z.codeFlowValue),x(Z);return $.consume(Z),h}function t(Z){return $.exit(z.codeFenced),J(Z)}function G1(Z,$1,q1){let s=0;return X1;function X1(i){return R(I(i),"expected eol"),Z.enter(z.lineEnding),Z.consume(i),Z.exit(z.lineEnding),l1}function l1(i){return R(X.parser.constructs.disable.null,"expected `disable.null` to be populated"),Z.enter(z.codeFencedFence),l(i)?d(Z,J1,z.linePrefix,X.parser.constructs.disable.null.includes("codeIndented")?void 0:L.tabSize)(i):J1(i)}function J1(i){if(i===W)return Z.enter(z.codeFencedFenceSequence),b(i);return q1(i)}function b(i){if(i===W)return s++,Z.consume(i),b;if(s>=Y)return Z.exit(z.codeFencedFenceSequence),l(i)?d(Z,r,z.whitespace)(i):r(i);return q1(i)}function r(i){if(i===D.eof||I(i))return Z.exit(z.codeFencedFence),$1(i);return q1(i)}}}function mW($,J,G){let X=this;return q;function q(Y){if(Y===D.eof)return G(Y);return R(I(Y),"expected eol"),$.enter(z.lineEnding),$.consume(Y),$.exit(z.lineEnding),V}function V(Y){return X.parser.lazy[X.now().line]?G(Y):J(Y)}}var K4={name:"codeIndented",tokenize:uW},fW={partial:!0,tokenize:pW};function uW($,J,G){let X=this;return q;function q(U){return R(l(U)),$.enter(z.codeIndented),d($,V,z.linePrefix,L.tabSize+1)(U)}function V(U){let M=X.events[X.events.length-1];return M&&M[1].type===z.linePrefix&&M[2].sliceSerialize(M[1],!0).length>=L.tabSize?Y(U):G(U)}function Y(U){if(U===D.eof)return H(U);if(I(U))return $.attempt(fW,Y,H)(U);return $.enter(z.codeFlowValue),W(U)}function W(U){if(U===D.eof||I(U))return $.exit(z.codeFlowValue),Y(U);return $.consume(U),W}function H(U){return $.exit(z.codeIndented),J(U)}}function pW($,J,G){let X=this;return q;function q(Y){if(X.parser.lazy[X.now().line])return G(Y);if(I(Y))return $.enter(z.lineEnding),$.consume(Y),$.exit(z.lineEnding),q;return d($,V,z.linePrefix,L.tabSize+1)(Y)}function V(Y){let W=X.events[X.events.length-1];return W&&W[1].type===z.linePrefix&&W[2].sliceSerialize(W[1],!0).length>=L.tabSize?J(Y):I(Y)?q(Y):G(Y)}}var S6={name:"codeText",previous:KJ,resolve:lW,tokenize:rW};function lW($){let J=$.length-4,G=3,X,q;if(($[G][1].type===z.lineEnding||$[G][1].type==="space")&&($[J][1].type===z.lineEnding||$[J][1].type==="space")){X=G;while(++X<J)if($[X][1].type===z.codeTextData){$[G][1].type=z.codeTextPadding,$[J][1].type=z.codeTextPadding,G+=2,J-=2;break}}X=G-1,J++;while(++X<=J)if(q===void 0){if(X!==J&&$[X][1].type!==z.lineEnding)q=X}else if(X===J||$[X][1].type===z.lineEnding){if($[q][1].type=z.codeTextData,X!==q+2)$[q][1].end=$[X-1][1].end,$.splice(q+2,X-q-2),J-=X-q-2,X=q+2;q=void 0}return $}function KJ($){return $!==D.graveAccent||this.events[this.events.length-1][1].type===z.characterEscape}function rW($,J,G){let X=this,q=0,V,Y;return W;function W(F){return R(F===D.graveAccent,"expected `` ` ``"),R(KJ.call(X,X.previous),"expected correct previous"),$.enter(z.codeText),$.enter(z.codeTextSequence),H(F)}function H(F){if(F===D.graveAccent)return $.consume(F),q++,H;return $.exit(z.codeTextSequence),U(F)}function U(F){if(F===D.eof)return G(F);if(F===D.space)return $.enter("space"),$.consume(F),$.exit("space"),U;if(F===D.graveAccent)return Y=$.enter(z.codeTextSequence),V=0,Q(F);if(I(F))return $.enter(z.lineEnding),$.consume(F),$.exit(z.lineEnding),U;return $.enter(z.codeTextData),M(F)}function M(F){if(F===D.eof||F===D.space||F===D.graveAccent||I(F))return $.exit(z.codeTextData),U(F);return $.consume(F),M}function Q(F){if(F===D.graveAccent)return $.consume(F),V++,Q;if(V===q)return $.exit(z.codeTextSequence),$.exit(z.codeText),J(F);return Y.type=z.codeTextData,M(F)}}class I6{constructor($){this.left=$?[...$]:[],this.right=[]}get($){if($<0||$>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+$+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");if($<this.left.length)return this.left[$];return this.right[this.right.length-$+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice($,J){let G=J===null||J===void 0?Number.POSITIVE_INFINITY:J;if(G<this.left.length)return this.left.slice($,G);if($>this.left.length)return this.right.slice(this.right.length-G+this.left.length,this.right.length-$+this.left.length).reverse();return this.left.slice($).concat(this.right.slice(this.right.length-G+this.left.length).reverse())}splice($,J,G){let X=J||0;this.setCursor(Math.trunc($));let q=this.right.splice(this.right.length-X,Number.POSITIVE_INFINITY);if(G)F4(this.left,G);return q.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push($){this.setCursor(Number.POSITIVE_INFINITY),this.left.push($)}pushMany($){this.setCursor(Number.POSITIVE_INFINITY),F4(this.left,$)}unshift($){this.setCursor(0),this.right.push($)}unshiftMany($){this.setCursor(0),F4(this.right,$.reverse())}setCursor($){if($===this.left.length||$>this.left.length&&this.right.length===0||$<0&&this.left.length===0)return;if($<this.left.length){let J=this.left.splice($,Number.POSITIVE_INFINITY);F4(this.right,J.reverse())}else{let J=this.right.splice(this.left.length+this.right.length-$,Number.POSITIVE_INFINITY);F4(this.left,J.reverse())}}}function F4($,J){let G=0;if(J.length<L.v8MaxSafeChunkSize)$.push(...J);else while(G<J.length)$.push(...J.slice(G,G+L.v8MaxSafeChunkSize)),G+=L.v8MaxSafeChunkSize}function H5($){let J={},G=-1,X,q,V,Y,W,H,U,M=new I6($);while(++G<M.length){while(G in J)G=J[G];if(X=M.get(G),G&&X[1].type===z.chunkFlow&&M.get(G-1)[1].type===z.listItemPrefix){if(R(X[1]._tokenizer,"expected `_tokenizer` on subtokens"),H=X[1]._tokenizer.events,V=0,V<H.length&&H[V][1].type===z.lineEndingBlank)V+=2;if(V<H.length&&H[V][1].type===z.content)while(++V<H.length){if(H[V][1].type===z.content)break;if(H[V][1].type===z.chunkText)H[V][1]._isInFirstContentOfListItem=!0,V++}}if(X[0]==="enter"){if(X[1].contentType)Object.assign(J,dW(M,G)),G=J[G],U=!0}else if(X[1]._container){V=G,q=void 0;while(V--)if(Y=M.get(V),Y[1].type===z.lineEnding||Y[1].type===z.lineEndingBlank){if(Y[0]==="enter"){if(q)M.get(q)[1].type=z.lineEndingBlank;Y[1].type=z.lineEnding,q=V}}else if(Y[1].type===z.linePrefix||Y[1].type===z.listItemIndent);else break;if(q)X[1].end={...M.get(q)[1].start},W=M.slice(q,G),W.unshift(X),M.splice(q,G-q+1,W)}}return w1($,0,Number.POSITIVE_INFINITY,M.slice(0)),!U}function dW($,J){let G=$.get(J)[1],X=$.get(J)[2],q=J-1,V=[];R(G.contentType,"expected `contentType` on subtokens");let Y=G._tokenizer;if(!Y){if(Y=X.parser[G.contentType](G.start),G._contentTypeTextTrailing)Y._contentTypeTextTrailing=!0}let W=Y.events,H=[],U={},M,Q,F=-1,K=G,j=0,N=0,P=[N];while(K){while($.get(++q)[1]!==K);if(R(!Q||K.previous===Q,"expected previous to match"),R(!Q||Q.next===K,"expected next to match"),V.push(q),!K._tokenizer){if(M=X.sliceStream(K),!K.next)M.push(D.eof);if(Q)Y.defineSkip(K.start);if(K._isInFirstContentOfListItem)Y._gfmTasklistFirstContentOfListItem=!0;if(Y.write(M),K._isInFirstContentOfListItem)Y._gfmTasklistFirstContentOfListItem=void 0}Q=K,K=K.next}K=G;while(++F<W.length)if(W[F][0]==="exit"&&W[F-1][0]==="enter"&&W[F][1].type===W[F-1][1].type&&W[F][1].start.line!==W[F][1].end.line)R(K,"expected a current token"),N=F+1,P.push(N),K._tokenizer=void 0,K.previous=void 0,K=K.next;if(Y.events=[],K)K._tokenizer=void 0,K.previous=void 0,R(!K.next,"expected no next token");else P.pop();F=P.length;while(F--){let _=W.slice(P[F],P[F+1]),x=V.pop();R(x!==void 0,"expected a start position when splicing"),H.push([x,x+_.length-1]),$.splice(x,2,_)}H.reverse(),F=-1;while(++F<H.length)U[j+H[F][0]]=j+H[F][1],j+=H[F][1]-H[F][0]-1;return U}var E6={resolve:iW,tokenize:oW},cW={partial:!0,tokenize:nW};function iW($){return H5($),$}function oW($,J){let G;return X;function X(W){return R(W!==D.eof&&!I(W),"expected no eof or eol"),$.enter(z.content),G=$.enter(z.chunkContent,{contentType:L.contentTypeContent}),q(W)}function q(W){if(W===D.eof)return V(W);if(I(W))return $.check(cW,Y,V)(W);return $.consume(W),q}function V(W){return $.exit(z.chunkContent),$.exit(z.content),J(W)}function Y(W){return R(I(W),"expected eol"),$.consume(W),$.exit(z.chunkContent),R(G,"expected previous token"),G.next=$.enter(z.chunkContent,{contentType:L.contentTypeContent,previous:G}),G=G.next,q}}function nW($,J,G){let X=this;return q;function q(Y){return R(I(Y),"expected a line ending"),$.exit(z.chunkContent),$.enter(z.lineEnding),$.consume(Y),$.exit(z.lineEnding),d($,V,z.linePrefix)}function V(Y){if(Y===D.eof||I(Y))return G(Y);R(X.parser.constructs.disable.null,"expected `disable.null` to be populated");let W=X.events[X.events.length-1];if(!X.parser.constructs.disable.null.includes("codeIndented")&&W&&W[1].type===z.linePrefix&&W[2].sliceSerialize(W[1],!0).length>=L.tabSize)return J(Y);return $.interrupt(X.parser.constructs.flow,G,J)(Y)}}function U5($,J,G,X,q,V,Y,W,H){let U=H||Number.POSITIVE_INFINITY,M=0;return Q;function Q(_){if(_===D.lessThan)return $.enter(X),$.enter(q),$.enter(V),$.consume(_),$.exit(V),F;if(_===D.eof||_===D.space||_===D.rightParenthesis||z4(_))return G(_);return $.enter(X),$.enter(Y),$.enter(W),$.enter(z.chunkString,{contentType:L.contentTypeString}),N(_)}function F(_){if(_===D.greaterThan)return $.enter(V),$.consume(_),$.exit(V),$.exit(q),$.exit(X),J;return $.enter(W),$.enter(z.chunkString,{contentType:L.contentTypeString}),K(_)}function K(_){if(_===D.greaterThan)return $.exit(z.chunkString),$.exit(W),F(_);if(_===D.eof||_===D.lessThan||I(_))return G(_);return $.consume(_),_===D.backslash?j:K}function j(_){if(_===D.lessThan||_===D.greaterThan||_===D.backslash)return $.consume(_),K;return K(_)}function N(_){if(!M&&(_===D.eof||_===D.rightParenthesis||H1(_)))return $.exit(z.chunkString),$.exit(W),$.exit(Y),$.exit(X),J(_);if(M<U&&_===D.leftParenthesis)return $.consume(_),M++,N;if(_===D.rightParenthesis)return $.consume(_),M--,N;if(_===D.eof||_===D.space||_===D.leftParenthesis||z4(_))return G(_);return $.consume(_),_===D.backslash?P:N}function P(_){if(_===D.leftParenthesis||_===D.rightParenthesis||_===D.backslash)return $.consume(_),N;return N(_)}}function M5($,J,G,X,q,V){let Y=this,W=0,H;return U;function U(K){return R(K===D.leftSquareBracket,"expected `[`"),$.enter(X),$.enter(q),$.consume(K),$.exit(q),$.enter(V),M}function M(K){if(W>L.linkReferenceSizeMax||K===D.eof||K===D.leftSquareBracket||K===D.rightSquareBracket&&!H||K===D.caret&&!W&&"_hiddenFootnoteSupport"in Y.parser.constructs)return G(K);if(K===D.rightSquareBracket)return $.exit(V),$.enter(q),$.consume(K),$.exit(q),$.exit(X),J;if(I(K))return $.enter(z.lineEnding),$.consume(K),$.exit(z.lineEnding),M;return $.enter(z.chunkString,{contentType:L.contentTypeString}),Q(K)}function Q(K){if(K===D.eof||K===D.leftSquareBracket||K===D.rightSquareBracket||I(K)||W++>L.linkReferenceSizeMax)return $.exit(z.chunkString),M(K);if($.consume(K),!H)H=!l(K);return K===D.backslash?F:Q}function F(K){if(K===D.leftSquareBracket||K===D.backslash||K===D.rightSquareBracket)return $.consume(K),W++,Q;return Q(K)}}function z5($,J,G,X,q,V){let Y;return W;function W(F){if(F===D.quotationMark||F===D.apostrophe||F===D.leftParenthesis)return $.enter(X),$.enter(q),$.consume(F),$.exit(q),Y=F===D.leftParenthesis?D.rightParenthesis:F,H;return G(F)}function H(F){if(F===Y)return $.enter(q),$.consume(F),$.exit(q),$.exit(X),J;return $.enter(V),U(F)}function U(F){if(F===Y)return $.exit(V),H(Y);if(F===D.eof)return G(F);if(I(F))return $.enter(z.lineEnding),$.consume(F),$.exit(z.lineEnding),d($,U,z.linePrefix);return $.enter(z.chunkString,{contentType:L.contentTypeString}),M(F)}function M(F){if(F===Y||F===D.eof||I(F))return $.exit(z.chunkString),U(F);return $.consume(F),F===D.backslash?Q:M}function Q(F){if(F===Y||F===D.backslash)return $.consume(F),M;return M(F)}}function o0($,J){let G;return X;function X(q){if(I(q))return $.enter(z.lineEnding),$.consume(q),$.exit(z.lineEnding),G=!0,X;if(l(q))return d($,X,G?z.linePrefix:z.lineSuffix)(q);return J(q)}}var C6={name:"definition",tokenize:sW},aW={partial:!0,tokenize:tW};function sW($,J,G){let X=this,q;return V;function V(K){return $.enter(z.definition),Y(K)}function Y(K){return R(K===D.leftSquareBracket,"expected `[`"),M5.call(X,$,W,G,z.definitionLabel,z.definitionLabelMarker,z.definitionLabelString)(K)}function W(K){if(q=F0(X.sliceSerialize(X.events[X.events.length-1][1]).slice(1,-1)),K===D.colon)return $.enter(z.definitionMarker),$.consume(K),$.exit(z.definitionMarker),H;return G(K)}function H(K){return H1(K)?o0($,U)(K):U(K)}function U(K){return U5($,M,G,z.definitionDestination,z.definitionDestinationLiteral,z.definitionDestinationLiteralMarker,z.definitionDestinationRaw,z.definitionDestinationString)(K)}function M(K){return $.attempt(aW,Q,Q)(K)}function Q(K){return l(K)?d($,F,z.whitespace)(K):F(K)}function F(K){if(K===D.eof||I(K))return $.exit(z.definition),X.parser.defined.push(q),J(K);return G(K)}}function tW($,J,G){return X;function X(W){return H1(W)?o0($,q)(W):G(W)}function q(W){return z5($,V,G,z.definitionTitle,z.definitionTitleMarker,z.definitionTitleString)(W)}function V(W){return l(W)?d($,Y,z.whitespace)(W):Y(W)}function Y(W){return W===D.eof||I(W)?J(W):G(W)}}var b6={name:"hardBreakEscape",tokenize:eW};function eW($,J,G){return X;function X(V){return R(V===D.backslash,"expected `\\`"),$.enter(z.hardBreakEscape),$.consume(V),q}function q(V){if(I(V))return $.exit(z.hardBreakEscape),J(V);return G(V)}}var v6={name:"headingAtx",resolve:$H,tokenize:JH};function $H($,J){let G=$.length-2,X=3,q,V;if($[X][1].type===z.whitespace)X+=2;if(G-2>X&&$[G][1].type===z.whitespace)G-=2;if($[G][1].type===z.atxHeadingSequence&&(X===G-1||G-4>X&&$[G-2][1].type===z.whitespace))G-=X+1===G?2:4;if(G>X)q={type:z.atxHeadingText,start:$[X][1].start,end:$[G][1].end},V={type:z.chunkText,start:$[X][1].start,end:$[G][1].end,contentType:L.contentTypeText},w1($,X,G-X+1,[["enter",q,J],["enter",V,J],["exit",V,J],["exit",q,J]]);return $}function JH($,J,G){let X=0;return q;function q(M){return $.enter(z.atxHeading),V(M)}function V(M){return R(M===D.numberSign,"expected `#`"),$.enter(z.atxHeadingSequence),Y(M)}function Y(M){if(M===D.numberSign&&X++<L.atxHeadingOpeningFenceSizeMax)return $.consume(M),Y;if(M===D.eof||H1(M))return $.exit(z.atxHeadingSequence),W(M);return G(M)}function W(M){if(M===D.numberSign)return $.enter(z.atxHeadingSequence),H(M);if(M===D.eof||I(M))return $.exit(z.atxHeading),J(M);if(l(M))return d($,W,z.whitespace)(M);return $.enter(z.atxHeadingText),U(M)}function H(M){if(M===D.numberSign)return $.consume(M),H;return $.exit(z.atxHeadingSequence),W(M)}function U(M){if(M===D.eof||M===D.numberSign||H1(M))return $.exit(z.atxHeadingText),W(M);return $.consume(M),U}}var FJ=["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"],x6=["pre","script","style","textarea"];var k6={concrete:!0,name:"htmlFlow",resolveTo:qH,tokenize:YH},GH={partial:!0,tokenize:WH},XH={partial:!0,tokenize:VH};function qH($){let J=$.length;while(J--)if($[J][0]==="enter"&&$[J][1].type===z.htmlFlow)break;if(J>1&&$[J-2][1].type===z.linePrefix)$[J][1].start=$[J-2][1].start,$[J+1][1].start=$[J-2][1].start,$.splice(J-2,2);return $}function YH($,J,G){let X=this,q,V,Y,W,H;return U;function U(O){return M(O)}function M(O){return R(O===D.lessThan,"expected `<`"),$.enter(z.htmlFlow),$.enter(z.htmlFlowData),$.consume(O),Q}function Q(O){if(O===D.exclamationMark)return $.consume(O),F;if(O===D.slash)return $.consume(O),V=!0,N;if(O===D.questionMark)return $.consume(O),q=L.htmlInstruction,X.interrupt?J:B;if(u1(O))return R(O!==null),$.consume(O),Y=String.fromCharCode(O),P;return G(O)}function F(O){if(O===D.dash)return $.consume(O),q=L.htmlComment,K;if(O===D.leftSquareBracket)return $.consume(O),q=L.htmlCdata,W=0,j;if(u1(O))return $.consume(O),q=L.htmlDeclaration,X.interrupt?J:B;return G(O)}function K(O){if(O===D.dash)return $.consume(O),X.interrupt?J:B;return G(O)}function j(O){let h1=L.cdataOpeningString;if(O===h1.charCodeAt(W++)){if($.consume(O),W===h1.length)return X.interrupt?J:J1;return j}return G(O)}function N(O){if(u1(O))return R(O!==null),$.consume(O),Y=String.fromCharCode(O),P;return G(O)}function P(O){if(O===D.eof||O===D.slash||O===D.greaterThan||H1(O)){let h1=O===D.slash,y0=Y.toLowerCase();if(!h1&&!V&&x6.includes(y0))return q=L.htmlRaw,X.interrupt?J(O):J1(O);if(FJ.includes(Y.toLowerCase())){if(q=L.htmlBasic,h1)return $.consume(O),_;return X.interrupt?J(O):J1(O)}return q=L.htmlComplete,X.interrupt&&!X.parser.lazy[X.now().line]?G(O):V?x(O):h(O)}if(O===D.dash||b1(O))return $.consume(O),Y+=String.fromCharCode(O),P;return G(O)}function _(O){if(O===D.greaterThan)return $.consume(O),X.interrupt?J:J1;return G(O)}function x(O){if(l(O))return $.consume(O),x;return X1(O)}function h(O){if(O===D.slash)return $.consume(O),X1;if(O===D.colon||O===D.underscore||u1(O))return $.consume(O),t;if(l(O))return $.consume(O),h;return X1(O)}function t(O){if(O===D.dash||O===D.dot||O===D.colon||O===D.underscore||b1(O))return $.consume(O),t;return G1(O)}function G1(O){if(O===D.equalsTo)return $.consume(O),Z;if(l(O))return $.consume(O),G1;return h(O)}function Z(O){if(O===D.eof||O===D.lessThan||O===D.equalsTo||O===D.greaterThan||O===D.graveAccent)return G(O);if(O===D.quotationMark||O===D.apostrophe)return $.consume(O),H=O,$1;if(l(O))return $.consume(O),Z;return q1(O)}function $1(O){if(O===H)return $.consume(O),H=null,s;if(O===D.eof||I(O))return G(O);return $.consume(O),$1}function q1(O){if(O===D.eof||O===D.quotationMark||O===D.apostrophe||O===D.slash||O===D.lessThan||O===D.equalsTo||O===D.greaterThan||O===D.graveAccent||H1(O))return G1(O);return $.consume(O),q1}function s(O){if(O===D.slash||O===D.greaterThan||l(O))return h(O);return G(O)}function X1(O){if(O===D.greaterThan)return $.consume(O),l1;return G(O)}function l1(O){if(O===D.eof||I(O))return J1(O);if(l(O))return $.consume(O),l1;return G(O)}function J1(O){if(O===D.dash&&q===L.htmlComment)return $.consume(O),V1;if(O===D.lessThan&&q===L.htmlRaw)return $.consume(O),Q1;if(O===D.greaterThan&&q===L.htmlDeclaration)return $.consume(O),d1;if(O===D.questionMark&&q===L.htmlInstruction)return $.consume(O),B;if(O===D.rightSquareBracket&&q===L.htmlCdata)return $.consume(O),G0;if(I(O)&&(q===L.htmlBasic||q===L.htmlComplete))return $.exit(z.htmlFlowData),$.check(GH,U0,b)(O);if(O===D.eof||I(O))return $.exit(z.htmlFlowData),b(O);return $.consume(O),J1}function b(O){return $.check(XH,r,U0)(O)}function r(O){return R(I(O)),$.enter(z.lineEnding),$.consume(O),$.exit(z.lineEnding),i}function i(O){if(O===D.eof||I(O))return b(O);return $.enter(z.htmlFlowData),J1(O)}function V1(O){if(O===D.dash)return $.consume(O),B;return J1(O)}function Q1(O){if(O===D.slash)return $.consume(O),Y="",r1;return J1(O)}function r1(O){if(O===D.greaterThan){let h1=Y.toLowerCase();if(x6.includes(h1))return $.consume(O),d1;return J1(O)}if(u1(O)&&Y.length<L.htmlRawSizeMax)return R(O!==null),$.consume(O),Y+=String.fromCharCode(O),r1;return J1(O)}function G0(O){if(O===D.rightSquareBracket)return $.consume(O),B;return J1(O)}function B(O){if(O===D.greaterThan)return $.consume(O),d1;if(O===D.dash&&q===L.htmlComment)return $.consume(O),B;return J1(O)}function d1(O){if(O===D.eof||I(O))return $.exit(z.htmlFlowData),U0(O);return $.consume(O),d1}function U0(O){return $.exit(z.htmlFlow),J(O)}}function VH($,J,G){let X=this;return q;function q(Y){if(I(Y))return $.enter(z.lineEnding),$.consume(Y),$.exit(z.lineEnding),V;return G(Y)}function V(Y){return X.parser.lazy[X.now().line]?G(Y):J(Y)}}function WH($,J,G){return X;function X(q){return R(I(q),"expected a line ending"),$.enter(z.lineEnding),$.consume(q),$.exit(z.lineEnding),$.attempt(P0,J,G)}}var g6={name:"htmlText",tokenize:HH};function HH($,J,G){let X=this,q,V,Y;return W;function W(B){return R(B===D.lessThan,"expected `<`"),$.enter(z.htmlText),$.enter(z.htmlTextData),$.consume(B),H}function H(B){if(B===D.exclamationMark)return $.consume(B),U;if(B===D.slash)return $.consume(B),G1;if(B===D.questionMark)return $.consume(B),h;if(u1(B))return $.consume(B),q1;return G(B)}function U(B){if(B===D.dash)return $.consume(B),M;if(B===D.leftSquareBracket)return $.consume(B),V=0,j;if(u1(B))return $.consume(B),x;return G(B)}function M(B){if(B===D.dash)return $.consume(B),K;return G(B)}function Q(B){if(B===D.eof)return G(B);if(B===D.dash)return $.consume(B),F;if(I(B))return Y=Q,Q1(B);return $.consume(B),Q}function F(B){if(B===D.dash)return $.consume(B),K;return Q(B)}function K(B){return B===D.greaterThan?V1(B):B===D.dash?F(B):Q(B)}function j(B){let d1=L.cdataOpeningString;if(B===d1.charCodeAt(V++))return $.consume(B),V===d1.length?N:j;return G(B)}function N(B){if(B===D.eof)return G(B);if(B===D.rightSquareBracket)return $.consume(B),P;if(I(B))return Y=N,Q1(B);return $.consume(B),N}function P(B){if(B===D.rightSquareBracket)return $.consume(B),_;return N(B)}function _(B){if(B===D.greaterThan)return V1(B);if(B===D.rightSquareBracket)return $.consume(B),_;return N(B)}function x(B){if(B===D.eof||B===D.greaterThan)return V1(B);if(I(B))return Y=x,Q1(B);return $.consume(B),x}function h(B){if(B===D.eof)return G(B);if(B===D.questionMark)return $.consume(B),t;if(I(B))return Y=h,Q1(B);return $.consume(B),h}function t(B){return B===D.greaterThan?V1(B):h(B)}function G1(B){if(u1(B))return $.consume(B),Z;return G(B)}function Z(B){if(B===D.dash||b1(B))return $.consume(B),Z;return $1(B)}function $1(B){if(I(B))return Y=$1,Q1(B);if(l(B))return $.consume(B),$1;return V1(B)}function q1(B){if(B===D.dash||b1(B))return $.consume(B),q1;if(B===D.slash||B===D.greaterThan||H1(B))return s(B);return G(B)}function s(B){if(B===D.slash)return $.consume(B),V1;if(B===D.colon||B===D.underscore||u1(B))return $.consume(B),X1;if(I(B))return Y=s,Q1(B);if(l(B))return $.consume(B),s;return V1(B)}function X1(B){if(B===D.dash||B===D.dot||B===D.colon||B===D.underscore||b1(B))return $.consume(B),X1;return l1(B)}function l1(B){if(B===D.equalsTo)return $.consume(B),J1;if(I(B))return Y=l1,Q1(B);if(l(B))return $.consume(B),l1;return s(B)}function J1(B){if(B===D.eof||B===D.lessThan||B===D.equalsTo||B===D.greaterThan||B===D.graveAccent)return G(B);if(B===D.quotationMark||B===D.apostrophe)return $.consume(B),q=B,b;if(I(B))return Y=J1,Q1(B);if(l(B))return $.consume(B),J1;return $.consume(B),r}function b(B){if(B===q)return $.consume(B),q=void 0,i;if(B===D.eof)return G(B);if(I(B))return Y=b,Q1(B);return $.consume(B),b}function r(B){if(B===D.eof||B===D.quotationMark||B===D.apostrophe||B===D.lessThan||B===D.equalsTo||B===D.graveAccent)return G(B);if(B===D.slash||B===D.greaterThan||H1(B))return s(B);return $.consume(B),r}function i(B){if(B===D.slash||B===D.greaterThan||H1(B))return s(B);return G(B)}function V1(B){if(B===D.greaterThan)return $.consume(B),$.exit(z.htmlTextData),$.exit(z.htmlText),J;return G(B)}function Q1(B){return R(Y,"expected return state"),R(I(B),"expected eol"),$.exit(z.htmlTextData),$.enter(z.lineEnding),$.consume(B),$.exit(z.lineEnding),r1}function r1(B){return R(X.parser.constructs.disable.null,"expected `disable.null` to be populated"),l(B)?d($,G0,z.linePrefix,X.parser.constructs.disable.null.includes("codeIndented")?void 0:L.tabSize)(B):G0(B)}function G0(B){return $.enter(z.htmlTextData),Y(B)}}var n0={name:"labelEnd",resolveAll:DH,resolveTo:QH,tokenize:KH},UH={tokenize:FH},MH={tokenize:RH},zH={tokenize:BH};function DH($){let J=-1,G=[];while(++J<$.length){let X=$[J][1];if(G.push($[J]),X.type===z.labelImage||X.type===z.labelLink||X.type===z.labelEnd){let q=X.type===z.labelImage?4:2;X.type=z.data,J+=q}}if($.length!==G.length)w1($,0,$.length,G);return $}function QH($,J){let G=$.length,X=0,q,V,Y,W;while(G--)if(q=$[G][1],V){if(q.type===z.link||q.type===z.labelLink&&q._inactive)break;if($[G][0]==="enter"&&q.type===z.labelLink)q._inactive=!0}else if(Y){if($[G][0]==="enter"&&(q.type===z.labelImage||q.type===z.labelLink)&&!q._balanced){if(V=G,q.type!==z.labelLink){X=2;break}}}else if(q.type===z.labelEnd)Y=G;R(V!==void 0,"`open` is supposed to be found"),R(Y!==void 0,"`close` is supposed to be found");let H={type:$[V][1].type===z.labelLink?z.link:z.image,start:{...$[V][1].start},end:{...$[$.length-1][1].end}},U={type:z.label,start:{...$[V][1].start},end:{...$[Y][1].end}},M={type:z.labelText,start:{...$[V+X+2][1].end},end:{...$[Y-2][1].start}};return W=[["enter",H,J],["enter",U,J]],W=C1(W,$.slice(V+1,V+X+3)),W=C1(W,[["enter",M,J]]),R(J.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),W=C1(W,Z2(J.parser.constructs.insideSpan.null,$.slice(V+X+4,Y-3),J)),W=C1(W,[["exit",M,J],$[Y-2],$[Y-1],["exit",U,J]]),W=C1(W,$.slice(Y+1)),W=C1(W,[["exit",H,J]]),w1($,V,$.length,W),$}function KH($,J,G){let X=this,q=X.events.length,V,Y;while(q--)if((X.events[q][1].type===z.labelImage||X.events[q][1].type===z.labelLink)&&!X.events[q][1]._balanced){V=X.events[q][1];break}return W;function W(F){if(R(F===D.rightSquareBracket,"expected `]`"),!V)return G(F);if(V._inactive)return Q(F);return Y=X.parser.defined.includes(F0(X.sliceSerialize({start:V.end,end:X.now()}))),$.enter(z.labelEnd),$.enter(z.labelMarker),$.consume(F),$.exit(z.labelMarker),$.exit(z.labelEnd),H}function H(F){if(F===D.leftParenthesis)return $.attempt(UH,M,Y?M:Q)(F);if(F===D.leftSquareBracket)return $.attempt(MH,M,Y?U:Q)(F);return Y?M(F):Q(F)}function U(F){return $.attempt(zH,M,Q)(F)}function M(F){return J(F)}function Q(F){return V._balanced=!0,G(F)}}function FH($,J,G){return X;function X(Q){return R(Q===D.leftParenthesis,"expected left paren"),$.enter(z.resource),$.enter(z.resourceMarker),$.consume(Q),$.exit(z.resourceMarker),q}function q(Q){return H1(Q)?o0($,V)(Q):V(Q)}function V(Q){if(Q===D.rightParenthesis)return M(Q);return U5($,Y,W,z.resourceDestination,z.resourceDestinationLiteral,z.resourceDestinationLiteralMarker,z.resourceDestinationRaw,z.resourceDestinationString,L.linkResourceDestinationBalanceMax)(Q)}function Y(Q){return H1(Q)?o0($,H)(Q):M(Q)}function W(Q){return G(Q)}function H(Q){if(Q===D.quotationMark||Q===D.apostrophe||Q===D.leftParenthesis)return z5($,U,G,z.resourceTitle,z.resourceTitleMarker,z.resourceTitleString)(Q);return M(Q)}function U(Q){return H1(Q)?o0($,M)(Q):M(Q)}function M(Q){if(Q===D.rightParenthesis)return $.enter(z.resourceMarker),$.consume(Q),$.exit(z.resourceMarker),$.exit(z.resource),J;return G(Q)}}function RH($,J,G){let X=this;return q;function q(W){return R(W===D.leftSquareBracket,"expected left bracket"),M5.call(X,$,V,Y,z.reference,z.referenceMarker,z.referenceString)(W)}function V(W){return X.parser.defined.includes(F0(X.sliceSerialize(X.events[X.events.length-1][1]).slice(1,-1)))?J(W):G(W)}function Y(W){return G(W)}}function BH($,J,G){return X;function X(V){return R(V===D.leftSquareBracket,"expected left bracket"),$.enter(z.reference),$.enter(z.referenceMarker),$.consume(V),$.exit(z.referenceMarker),q}function q(V){if(V===D.rightSquareBracket)return $.enter(z.referenceMarker),$.consume(V),$.exit(z.referenceMarker),$.exit(z.reference),J;return G(V)}}var h6={name:"labelStartImage",resolveAll:n0.resolveAll,tokenize:OH};function OH($,J,G){let X=this;return q;function q(W){return R(W===D.exclamationMark,"expected `!`"),$.enter(z.labelImage),$.enter(z.labelImageMarker),$.consume(W),$.exit(z.labelImageMarker),V}function V(W){if(W===D.leftSquareBracket)return $.enter(z.labelMarker),$.consume(W),$.exit(z.labelMarker),$.exit(z.labelImage),Y;return G(W)}function Y(W){return W===D.caret&&"_hiddenFootnoteSupport"in X.parser.constructs?G(W):J(W)}}var y6={name:"labelStartLink",resolveAll:n0.resolveAll,tokenize:AH};function AH($,J,G){let X=this;return q;function q(Y){return R(Y===D.leftSquareBracket,"expected `[`"),$.enter(z.labelLink),$.enter(z.labelMarker),$.consume(Y),$.exit(z.labelMarker),$.exit(z.labelLink),V}function V(Y){return Y===D.caret&&"_hiddenFootnoteSupport"in X.parser.constructs?G(Y):J(Y)}}var R4={name:"lineEnding",tokenize:wH};function wH($,J){return G;function G(X){return R(I(X),"expected eol"),$.enter(z.lineEnding),$.consume(X),$.exit(z.lineEnding),d($,J,z.linePrefix)}}var a0={name:"thematicBreak",tokenize:jH};function jH($,J,G){let X=0,q;return V;function V(U){return $.enter(z.thematicBreak),Y(U)}function Y(U){return R(U===D.asterisk||U===D.dash||U===D.underscore,"expected `*`, `-`, or `_`"),q=U,W(U)}function W(U){if(U===q)return $.enter(z.thematicBreakSequence),H(U);if(X>=L.thematicBreakMarkerCountMin&&(U===D.eof||I(U)))return $.exit(z.thematicBreak),J(U);return G(U)}function H(U){if(U===q)return $.consume(U),X++,H;return $.exit(z.thematicBreakSequence),l(U)?d($,W,z.whitespace)(U):W(U)}}var _1={continuation:{tokenize:PH},exit:TH,name:"list",tokenize:_H},NH={partial:!0,tokenize:SH},ZH={partial:!0,tokenize:LH};function _H($,J,G){let X=this,q=X.events[X.events.length-1],V=q&&q[1].type===z.linePrefix?q[2].sliceSerialize(q[1],!0).length:0,Y=0;return W;function W(K){R(X.containerState,"expected state");let j=X.containerState.type||(K===D.asterisk||K===D.plusSign||K===D.dash?z.listUnordered:z.listOrdered);if(j===z.listUnordered?!X.containerState.marker||K===X.containerState.marker:D4(K)){if(!X.containerState.type)X.containerState.type=j,$.enter(j,{_container:!0});if(j===z.listUnordered)return $.enter(z.listItemPrefix),K===D.asterisk||K===D.dash?$.check(a0,G,U)(K):U(K);if(!X.interrupt||K===D.digit1)return $.enter(z.listItemPrefix),$.enter(z.listItemValue),H(K)}return G(K)}function H(K){if(R(X.containerState,"expected state"),D4(K)&&++Y<L.listItemValueSizeMax)return $.consume(K),H;if((!X.interrupt||Y<2)&&(X.containerState.marker?K===X.containerState.marker:K===D.rightParenthesis||K===D.dot))return $.exit(z.listItemValue),U(K);return G(K)}function U(K){return R(X.containerState,"expected state"),R(K!==D.eof,"eof (`null`) is not a marker"),$.enter(z.listItemMarker),$.consume(K),$.exit(z.listItemMarker),X.containerState.marker=X.containerState.marker||K,$.check(P0,X.interrupt?G:M,$.attempt(NH,F,Q))}function M(K){return R(X.containerState,"expected state"),X.containerState.initialBlankLine=!0,V++,F(K)}function Q(K){if(l(K))return $.enter(z.listItemPrefixWhitespace),$.consume(K),$.exit(z.listItemPrefixWhitespace),F;return G(K)}function F(K){return R(X.containerState,"expected state"),X.containerState.size=V+X.sliceSerialize($.exit(z.listItemPrefix),!0).length,J(K)}}function PH($,J,G){let X=this;return R(X.containerState,"expected state"),X.containerState._closeFlow=void 0,$.check(P0,q,V);function q(W){return R(X.containerState,"expected state"),R(typeof X.containerState.size==="number","expected size"),X.containerState.furtherBlankLines=X.containerState.furtherBlankLines||X.containerState.initialBlankLine,d($,J,z.listItemIndent,X.containerState.size+1)(W)}function V(W){if(R(X.containerState,"expected state"),X.containerState.furtherBlankLines||!l(W))return X.containerState.furtherBlankLines=void 0,X.containerState.initialBlankLine=void 0,Y(W);return X.containerState.furtherBlankLines=void 0,X.containerState.initialBlankLine=void 0,$.attempt(ZH,J,Y)(W)}function Y(W){return R(X.containerState,"expected state"),X.containerState._closeFlow=!0,X.interrupt=void 0,R(X.parser.constructs.disable.null,"expected `disable.null` to be populated"),d($,$.attempt(_1,J,G),z.linePrefix,X.parser.constructs.disable.null.includes("codeIndented")?void 0:L.tabSize)(W)}}function LH($,J,G){let X=this;return R(X.containerState,"expected state"),R(typeof X.containerState.size==="number","expected size"),d($,q,z.listItemIndent,X.containerState.size+1);function q(V){R(X.containerState,"expected state");let Y=X.events[X.events.length-1];return Y&&Y[1].type===z.listItemIndent&&Y[2].sliceSerialize(Y[1],!0).length===X.containerState.size?J(V):G(V)}}function TH($){R(this.containerState,"expected state"),R(typeof this.containerState.type==="string","expected type"),$.exit(this.containerState.type)}function SH($,J,G){let X=this;return R(X.parser.constructs.disable.null,"expected `disable.null` to be populated"),d($,q,z.listItemPrefixWhitespace,X.parser.constructs.disable.null.includes("codeIndented")?void 0:L.tabSize+1);function q(V){let Y=X.events[X.events.length-1];return!l(V)&&Y&&Y[1].type===z.listItemPrefixWhitespace?J(V):G(V)}}var D5={name:"setextUnderline",resolveTo:IH,tokenize:EH};function IH($,J){let G=$.length,X,q,V;while(G--)if($[G][0]==="enter"){if($[G][1].type===z.content){X=G;break}if($[G][1].type===z.paragraph)q=G}else{if($[G][1].type===z.content)$.splice(G,1);if(!V&&$[G][1].type===z.definition)V=G}R(q!==void 0,"expected a `text` index to be found"),R(X!==void 0,"expected a `text` index to be found"),R($[X][2]===J,"enter context should be same"),R($[$.length-1][2]===J,"enter context should be same");let Y={type:z.setextHeading,start:{...$[X][1].start},end:{...$[$.length-1][1].end}};if($[q][1].type=z.setextHeadingText,V)$.splice(q,0,["enter",Y,J]),$.splice(V+1,0,["exit",$[X][1],J]),$[X][1].end={...$[V][1].end};else $[X][1]=Y;return $.push(["exit",Y,J]),$}function EH($,J,G){let X=this,q;return V;function V(U){let M=X.events.length,Q;R(U===D.dash||U===D.equalsTo,"expected `=` or `-`");while(M--)if(X.events[M][1].type!==z.lineEnding&&X.events[M][1].type!==z.linePrefix&&X.events[M][1].type!==z.content){Q=X.events[M][1].type===z.paragraph;break}if(!X.parser.lazy[X.now().line]&&(X.interrupt||Q))return $.enter(z.setextHeadingLine),q=U,Y(U);return G(U)}function Y(U){return $.enter(z.setextHeadingLineSequence),W(U)}function W(U){if(U===q)return $.consume(U),W;return $.exit(z.setextHeadingLineSequence),l(U)?d($,H,z.lineSuffix)(U):H(U)}function H(U){if(U===D.eof||I(U))return $.exit(z.setextHeadingLine),J(U);return G(U)}}var RJ={tokenize:CH};function CH($){let J=this,G=$.attempt(P0,X,$.attempt(this.parser.constructs.flowInitial,q,d($,$.attempt(this.parser.constructs.flow,q,$.attempt(E6,q)),z.linePrefix)));return G;function X(V){if(R(V===D.eof||I(V),"expected eol or eof"),V===D.eof){$.consume(V);return}return $.enter(z.lineEndingBlank),$.consume(V),$.exit(z.lineEndingBlank),J.currentConstruct=void 0,G}function q(V){if(R(V===D.eof||I(V),"expected eol or eof"),V===D.eof){$.consume(V);return}return $.enter(z.lineEnding),$.consume(V),$.exit(z.lineEnding),J.currentConstruct=void 0,G}}var BJ={resolveAll:jJ()},OJ=wJ("string"),AJ=wJ("text");function wJ($){return{resolveAll:jJ($==="text"?bH:void 0),tokenize:J};function J(G){let X=this,q=this.parser.constructs[$],V=G.attempt(q,Y,W);return Y;function Y(M){return U(M)?V(M):W(M)}function W(M){if(M===D.eof){G.consume(M);return}return G.enter(z.data),G.consume(M),H}function H(M){if(U(M))return G.exit(z.data),V(M);return G.consume(M),H}function U(M){if(M===D.eof)return!0;let Q=q[M],F=-1;if(Q){R(Array.isArray(Q),"expected `disable.null` to be populated");while(++F<Q.length){let K=Q[F];if(!K.previous||K.previous.call(X,X.previous))return!0}}return!1}}}function jJ($){return J;function J(G,X){let q=-1,V;while(++q<=G.length)if(V===void 0){if(G[q]&&G[q][1].type===z.data)V=q,q++}else if(!G[q]||G[q][1].type!==z.data){if(q!==V+2)G[V][1].end=G[q-1][1].end,G.splice(V+2,q-V-2),q=V+2;V=void 0}return $?$(G,X):G}}function bH($,J){let G=0;while(++G<=$.length)if((G===$.length||$[G][1].type===z.lineEnding)&&$[G-1][1].type===z.data){let X=$[G-1][1],q=J.sliceStream(X),V=q.length,Y=-1,W=0,H;while(V--){let U=q[V];if(typeof U==="string"){Y=U.length;while(U.charCodeAt(Y-1)===D.space)W++,Y--;if(Y)break;Y=-1}else if(U===D.horizontalTab)H=!0,W++;else if(U===D.virtualSpace);else{V++;break}}if(J._contentTypeTextTrailing&&G===$.length)W=0;if(W){let U={type:G===$.length||H||W<L.hardBreakPrefixSizeMin?z.lineSuffix:z.hardBreakTrailing,start:{_bufferIndex:V?Y:X.start._bufferIndex+Y,_index:X.start._index+V,line:X.end.line,column:X.end.column-W,offset:X.end.offset-W},end:{...X.end}};if(X.end={...U.start},X.start.offset===X.end.offset)Object.assign(X,U);else $.splice(G,0,["enter",U,J],["exit",U,J]),G+=2}G++}return $}var m6={};l9(m6,{text:()=>yH,string:()=>hH,insideSpan:()=>mH,flowInitial:()=>kH,flow:()=>gH,document:()=>vH,disable:()=>uH,contentInitial:()=>xH,attentionMarkers:()=>fH});var vH={[D.asterisk]:_1,[D.plusSign]:_1,[D.dash]:_1,[D.digit0]:_1,[D.digit1]:_1,[D.digit2]:_1,[D.digit3]:_1,[D.digit4]:_1,[D.digit5]:_1,[D.digit6]:_1,[D.digit7]:_1,[D.digit8]:_1,[D.digit9]:_1,[D.greaterThan]:q5},xH={[D.leftSquareBracket]:C6},kH={[D.horizontalTab]:K4,[D.virtualSpace]:K4,[D.space]:K4},gH={[D.numberSign]:v6,[D.asterisk]:a0,[D.dash]:[D5,a0],[D.lessThan]:k6,[D.equalsTo]:D5,[D.underscore]:a0,[D.graveAccent]:W5,[D.tilde]:W5},hH={[D.ampersand]:V5,[D.backslash]:Y5},yH={[D.carriageReturn]:R4,[D.lineFeed]:R4,[D.carriageReturnLineFeed]:R4,[D.exclamationMark]:h6,[D.ampersand]:V5,[D.asterisk]:Q4,[D.lessThan]:[T6,g6],[D.leftSquareBracket]:y6,[D.backslash]:[b6,Y5],[D.rightSquareBracket]:n0,[D.underscore]:Q4,[D.graveAccent]:S6},mH={null:[Q4,BJ]},fH={null:[D.asterisk,D.underscore]},uH={null:[]};var hJ=x4(gJ(),1);var e0=hJ.default("micromark");function yJ($,J,G){let X={_bufferIndex:-1,_index:0,line:G&&G.line||1,column:G&&G.column||1,offset:G&&G.offset||0},q={},V=[],Y=[],W=[],H=!0,U={attempt:s($1),check:s(q1),consume:t,enter:G1,exit:Z,interrupt:s(q1,{interrupt:!0})},M={code:D.eof,containerState:{},defineSkip:_,events:[],now:P,parser:$,previous:D.eof,sliceSerialize:j,sliceStream:N,write:K},Q=J.tokenize.call(M,U),F;if(J.resolveAll)V.push(J);return M;function K(b){if(Y=C1(Y,b),x(),Y[Y.length-1]!==D.eof)return[];return X1(J,0),M.events=Z2(V,M.events,M),M.events}function j(b,r){return PU(N(b),r)}function N(b){return _U(Y,b)}function P(){let{_bufferIndex:b,_index:r,line:i,column:V1,offset:Q1}=X;return{_bufferIndex:b,_index:r,line:i,column:V1,offset:Q1}}function _(b){q[b.line]=b.column,J1(),e0("position: define skip: `%j`",X)}function x(){let b;while(X._index<Y.length){let r=Y[X._index];if(typeof r==="string"){if(b=X._index,X._bufferIndex<0)X._bufferIndex=0;while(X._index===b&&X._bufferIndex<r.length)h(r.charCodeAt(X._bufferIndex))}else h(r)}}function h(b){R(H===!0,"expected character to be consumed"),H=void 0,e0("main: passing `%s` to %s",b,Q&&Q.name),F=b,R(typeof Q==="function","expected state"),Q=Q(b)}function t(b){if(R(b===F,"expected given code to equal expected code"),e0("consume: `%s`",b),R(H===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),R(b===null?M.events.length===0||M.events[M.events.length-1][0]==="exit":M.events[M.events.length-1][0]==="enter","expected last token to be open"),I(b))X.line++,X.column=1,X.offset+=b===D.carriageReturnLineFeed?2:1,J1(),e0("position: after eol: `%j`",X);else if(b!==D.virtualSpace)X.column++,X.offset++;if(X._bufferIndex<0)X._index++;else if(X._bufferIndex++,X._bufferIndex===Y[X._index].length)X._bufferIndex=-1,X._index++;M.previous=b,H=!0}function G1(b,r){let i=r||{};return i.type=b,i.start=P(),R(typeof b==="string","expected string type"),R(b.length>0,"expected non-empty string"),e0("enter: `%s`",b),M.events.push(["enter",i,M]),W.push(i),i}function Z(b){R(typeof b==="string","expected string type"),R(b.length>0,"expected non-empty string");let r=W.pop();return R(r,"cannot close w/o open tokens"),r.end=P(),R(b===r.type,"expected exit token to match current token"),R(!(r.start._index===r.end._index&&r.start._bufferIndex===r.end._bufferIndex),"expected non-empty token (`"+b+"`)"),e0("exit: `%s`",r.type),M.events.push(["exit",r,M]),r}function $1(b,r){X1(b,r.from)}function q1(b,r){r.restore()}function s(b,r){return i;function i(V1,Q1,r1){let G0,B,d1,U0;return Array.isArray(V1)?h1(V1):("tokenize"in V1)?h1([V1]):O(V1);function O(K1){return a2;function a2(M0){let m0=M0!==null&&K1[M0],H2=M0!==null&&K1.null,d5=[...Array.isArray(m0)?m0:m0?[m0]:[],...Array.isArray(H2)?H2:H2?[H2]:[]];return h1(d5)(M0)}}function h1(K1){if(G0=K1,B=0,K1.length===0)return R(r1,"expected `bogusState` to be given"),r1;return y0(K1[B])}function y0(K1){return a2;function a2(M0){if(U0=l1(),d1=K1,!K1.partial)M.currentConstruct=K1;if(R(M.parser.constructs.disable.null,"expected `disable.null` to be populated"),K1.name&&M.parser.constructs.disable.null.includes(K1.name))return v4(M0);return K1.tokenize.call(r?Object.assign(Object.create(M),r):M,U,r5,v4)(M0)}}function r5(K1){return R(K1===F,"expected code"),H=!0,b(d1,U0),Q1}function v4(K1){if(R(K1===F,"expected code"),H=!0,U0.restore(),++B<G0.length)return y0(G0[B]);return r1}}}function X1(b,r){if(b.resolveAll&&!V.includes(b))V.push(b);if(b.resolve)w1(M.events,r,M.events.length-r,b.resolve(M.events.slice(r),M));if(b.resolveTo)M.events=b.resolveTo(M.events,M);R(b.partial||M.events.length===0||M.events[M.events.length-1][0]==="exit","expected last token to end")}function l1(){let b=P(),r=M.previous,i=M.currentConstruct,V1=M.events.length,Q1=Array.from(W);return{from:V1,restore:r1};function r1(){X=b,M.previous=r,M.currentConstruct=i,M.events.length=V1,W=Q1,J1(),e0("position: restore: `%j`",X)}}function J1(){if(X.line in q&&X.column<2)X.column=q[X.line],X.offset+=q[X.line]-1}}function _U($,J){let G=J.start._index,X=J.start._bufferIndex,q=J.end._index,V=J.end._bufferIndex,Y;if(G===q)R(V>-1,"expected non-negative end buffer index"),R(X>-1,"expected non-negative start buffer index"),Y=[$[G].slice(X,V)];else{if(Y=$.slice(G,q),X>-1){let W=Y[0];if(typeof W==="string")Y[0]=W.slice(X);else R(X===0,"expected `startBufferIndex` to be `0`"),Y.shift()}if(V>0)Y.push($[q].slice(0,V))}return Y}function PU($,J){let G=-1,X=[],q;while(++G<$.length){let V=$[G],Y;if(typeof V==="string")Y=V;else switch(V){case D.carriageReturn:{Y=f1.cr;break}case D.lineFeed:{Y=f1.lf;break}case D.carriageReturnLineFeed:{Y=f1.cr+f1.lf;break}case D.horizontalTab:{Y=J?f1.space:f1.ht;break}case D.virtualSpace:{if(!J&&q)continue;Y=f1.space;break}default:R(typeof V==="number","expected number"),Y=String.fromCharCode(V)}q=V===D.horizontalTab,X.push(Y)}return X.join("")}function r6($){let X={constructs:XJ([m6,...($||{}).extensions||[]]),content:q(UJ),defined:[],document:q(zJ),flow:q(RJ),lazy:{},string:q(OJ),text:q(AJ)};return X;function q(V){return Y;function Y(W){return yJ(X,V,W)}}}function d6($){while(!H5($));return $}var mJ=/[\0\t\n\r]/g;function c6(){let $=1,J="",G=!0,X;return q;function q(V,Y,W){let H=[],U,M,Q,F,K;if(V=J+(typeof V==="string"?V.toString():new TextDecoder(Y||void 0).decode(V)),Q=0,J="",G){if(V.charCodeAt(0)===D.byteOrderMarker)Q++;G=void 0}while(Q<V.length){if(mJ.lastIndex=Q,U=mJ.exec(V),F=U&&U.index!==void 0?U.index:V.length,K=V.charCodeAt(F),!U){J=V.slice(Q);break}if(K===D.lf&&Q===F&&X)H.push(D.carriageReturnLineFeed),X=void 0;else{if(X)H.push(D.carriageReturn),X=void 0;if(Q<F)H.push(V.slice(Q,F)),$+=F-Q;switch(K){case D.nul:{H.push(D.replacementCharacter),$++;break}case D.ht:{M=Math.ceil($/L.tabSize)*L.tabSize,H.push(D.horizontalTab);while($++<M)H.push(D.virtualSpace);break}case D.lf:{H.push(D.lineFeed),$=1;break}default:X=!0,$=1}}Q=F+1}if(W){if(X)H.push(D.carriageReturn);if(J)H.push(J);H.push(D.eof)}return H}}var LU=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function B5($){return $.replace(LU,TU)}function TU($,J,G){if(J)return J;if(G.charCodeAt(0)===D.numberSign){let q=G.charCodeAt(1),V=q===D.lowercaseX||q===D.uppercaseX;return X5(G.slice(V?2:1),V?L.numericBaseHexadecimal:L.numericBaseDecimal)}return j2(G)||$}function T0($){if(!$||typeof $!=="object")return"";if("position"in $||"type"in $)return fJ($.position);if("start"in $||"end"in $)return fJ($);if("line"in $||"column"in $)return i6($);return""}function i6($){return uJ($&&$.line)+":"+uJ($&&$.column)}function fJ($){return i6($&&$.start)+"-"+i6($&&$.end)}function uJ($){return $&&typeof $==="number"?$:1}var lJ={}.hasOwnProperty;function o6($,J,G){if(J&&typeof J==="object")G=J,J=void 0;return SU(G)(d6(r6(G).document().write(c6()($,J,!0))))}function SU($){let J={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:V(u9),autolinkProtocol:s,autolinkEmail:s,atxHeading:V(y9),blockQuote:V(M0),characterEscape:s,characterReference:s,codeFenced:V(m0),codeFencedFenceInfo:Y,codeFencedFenceMeta:Y,codeIndented:V(m0,Y),codeText:V(H2,Y),codeTextData:s,data:s,codeFlowValue:s,definition:V(d5),definitionDestinationString:Y,definitionLabelString:Y,definitionTitleString:Y,emphasis:V(c3),hardBreakEscape:V(m9),hardBreakTrailing:V(m9),htmlFlow:V(f9,Y),htmlFlowData:s,htmlText:V(f9,Y),htmlTextData:s,image:V(i3),label:Y,link:V(u9),listItem:V(o3),listItemValue:F,listOrdered:V(p9,Q),listUnordered:V(p9),paragraph:V(n3),reference:O,referenceString:Y,resourceDestinationString:Y,resourceTitleString:Y,setextHeading:V(y9),strong:V(a3),thematicBreak:V(t3)},exit:{atxHeading:H(),atxHeadingSequence:G1,autolink:H(),autolinkEmail:a2,autolinkProtocol:K1,blockQuote:H(),characterEscapeValue:X1,characterReferenceMarkerHexadecimal:y0,characterReferenceMarkerNumeric:y0,characterReferenceValue:r5,characterReference:v4,codeFenced:H(P),codeFencedFence:N,codeFencedFenceInfo:K,codeFencedFenceMeta:j,codeFlowValue:X1,codeIndented:H(_),codeText:H(i),codeTextData:X1,data:X1,definition:H(),definitionDestinationString:t,definitionLabelString:x,definitionTitleString:h,emphasis:H(),hardBreakEscape:H(J1),hardBreakTrailing:H(J1),htmlFlow:H(b),htmlFlowData:X1,htmlText:H(r),htmlTextData:X1,image:H(Q1),label:G0,labelText:r1,lineEnding:l1,link:H(V1),listItem:H(),listOrdered:H(),listUnordered:H(),paragraph:H(),referenceString:h1,resourceDestinationString:B,resourceTitleString:d1,resource:U0,setextHeading:H(q1),setextHeadingLineSequence:$1,setextHeadingText:Z,strong:H(),thematicBreak:H()}};rJ(J,($||{}).mdastExtensions||[]);let G={};return X;function X(A){let w={type:"root",children:[]},v={stack:[w],tokenStack:[],config:J,enter:W,exit:U,buffer:Y,resume:M,data:G},n=[],e=-1;while(++e<A.length)if(A[e][1].type===z.listOrdered||A[e][1].type===z.listUnordered)if(A[e][0]==="enter")n.push(e);else{let v1=n.pop();R(typeof v1==="number","expected list to be open"),e=q(A,v1,e)}e=-1;while(++e<A.length){let v1=J[A[e][0]];if(lJ.call(v1,A[e][1].type))v1[A[e][1].type].call(Object.assign({sliceSerialize:A[e][2].sliceSerialize},v),A[e][1])}if(v.tokenStack.length>0){let v1=v.tokenStack[v.tokenStack.length-1];(v1[1]||pJ).call(v,void 0,v1[0])}w.position={start:S0(A.length>0?A[0][1].start:{line:1,column:1,offset:0}),end:S0(A.length>0?A[A.length-2][1].end:{line:1,column:1,offset:0})},e=-1;while(++e<J.transforms.length)w=J.transforms[e](w)||w;return w}function q(A,w,v){let n=w-1,e=-1,v1=!1,f0,z0,s2,t2;while(++n<=v){let y1=A[n];switch(y1[1].type){case z.listUnordered:case z.listOrdered:case z.blockQuote:{if(y1[0]==="enter")e++;else e--;t2=void 0;break}case z.lineEndingBlank:{if(y1[0]==="enter"){if(f0&&!t2&&!e&&!s2)s2=n;t2=void 0}break}case z.linePrefix:case z.listItemValue:case z.listItemMarker:case z.listItemPrefix:case z.listItemPrefixWhitespace:break;default:t2=void 0}if(!e&&y1[0]==="enter"&&y1[1].type===z.listItemPrefix||e===-1&&y1[0]==="exit"&&(y1[1].type===z.listUnordered||y1[1].type===z.listOrdered)){if(f0){let U2=n;z0=void 0;while(U2--){let D0=A[U2];if(D0[1].type===z.lineEnding||D0[1].type===z.lineEndingBlank){if(D0[0]==="exit")continue;if(z0)A[z0][1].type=z.lineEndingBlank,v1=!0;D0[1].type=z.lineEnding,z0=U2}else if(D0[1].type===z.linePrefix||D0[1].type===z.blockQuotePrefix||D0[1].type===z.blockQuotePrefixWhitespace||D0[1].type===z.blockQuoteMarker||D0[1].type===z.listItemIndent);else break}if(s2&&(!z0||s2<z0))f0._spread=!0;f0.end=Object.assign({},z0?A[z0][1].start:y1[1].end),A.splice(z0||n,0,["exit",f0,y1[2]]),n++,v++}if(y1[1].type===z.listItemPrefix){let U2={type:"listItem",_spread:!1,start:Object.assign({},y1[1].start),end:void 0};f0=U2,A.splice(n,0,["enter",U2,y1[2]]),n++,v++,s2=void 0,t2=!0}}}return A[w][1]._spread=v1,v}function V(A,w){return v;function v(n){if(W.call(this,A(n),n),w)w.call(this,n)}}function Y(){this.stack.push({type:"fragment",children:[]})}function W(A,w,v){let n=this.stack[this.stack.length-1];R(n,"expected `parent`"),R("children"in n,"expected `parent`"),n.children.push(A),this.stack.push(A),this.tokenStack.push([w,v||void 0]),A.position={start:S0(w.start),end:void 0}}function H(A){return w;function w(v){if(A)A.call(this,v);U.call(this,v)}}function U(A,w){let v=this.stack.pop();R(v,"expected `node`");let n=this.tokenStack.pop();if(!n)throw Error("Cannot close `"+A.type+"` ("+T0({start:A.start,end:A.end})+"): it\u2019s not open");else if(n[0].type!==A.type)if(w)w.call(this,A,n[0]);else(n[1]||pJ).call(this,A,n[0]);R(v.type!=="fragment","unexpected fragment `exit`ed"),R(v.position,"expected `position` to be defined"),v.position.end=S0(A.end)}function M(){return i0(this.stack.pop())}function Q(){this.data.expectingFirstListItemValue=!0}function F(A){if(this.data.expectingFirstListItemValue){let w=this.stack[this.stack.length-2];R(w,"expected nodes on stack"),R(w.type==="list","expected list on stack"),w.start=Number.parseInt(this.sliceSerialize(A),L.numericBaseDecimal),this.data.expectingFirstListItemValue=void 0}}function K(){let A=this.resume(),w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="code","expected code on stack"),w.lang=A}function j(){let A=this.resume(),w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="code","expected code on stack"),w.meta=A}function N(){if(this.data.flowCodeInside)return;this.buffer(),this.data.flowCodeInside=!0}function P(){let A=this.resume(),w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="code","expected code on stack"),w.value=A.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){let A=this.resume(),w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="code","expected code on stack"),w.value=A.replace(/(\r?\n|\r)$/g,"")}function x(A){let w=this.resume(),v=this.stack[this.stack.length-1];R(v,"expected node on stack"),R(v.type==="definition","expected definition on stack"),v.label=w,v.identifier=F0(this.sliceSerialize(A)).toLowerCase()}function h(){let A=this.resume(),w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="definition","expected definition on stack"),w.title=A}function t(){let A=this.resume(),w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="definition","expected definition on stack"),w.url=A}function G1(A){let w=this.stack[this.stack.length-1];if(R(w,"expected node on stack"),R(w.type==="heading","expected heading on stack"),!w.depth){let v=this.sliceSerialize(A).length;R(v===1||v===2||v===3||v===4||v===5||v===6,"expected `depth` between `1` and `6`"),w.depth=v}}function Z(){this.data.setextHeadingSlurpLineEnding=!0}function $1(A){let w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="heading","expected heading on stack"),w.depth=this.sliceSerialize(A).codePointAt(0)===D.equalsTo?1:2}function q1(){this.data.setextHeadingSlurpLineEnding=void 0}function s(A){let w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R("children"in w,"expected parent on stack");let v=w.children,n=v[v.length-1];if(!n||n.type!=="text")n=s3(),n.position={start:S0(A.start),end:void 0},v.push(n);this.stack.push(n)}function X1(A){let w=this.stack.pop();R(w,"expected a `node` to be on the stack"),R("value"in w,"expected a `literal` to be on the stack"),R(w.position,"expected `node` to have an open position"),w.value+=this.sliceSerialize(A),w.position.end=S0(A.end)}function l1(A){let w=this.stack[this.stack.length-1];if(R(w,"expected `node`"),this.data.atHardBreak){R("children"in w,"expected `parent`");let v=w.children[w.children.length-1];R(v.position,"expected tail to have a starting position"),v.position.end=S0(A.end),this.data.atHardBreak=void 0;return}if(!this.data.setextHeadingSlurpLineEnding&&J.canContainEols.includes(w.type))s.call(this,A),X1.call(this,A)}function J1(){this.data.atHardBreak=!0}function b(){let A=this.resume(),w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="html","expected html on stack"),w.value=A}function r(){let A=this.resume(),w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="html","expected html on stack"),w.value=A}function i(){let A=this.resume(),w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="inlineCode","expected inline code on stack"),w.value=A}function V1(){let A=this.stack[this.stack.length-1];if(R(A,"expected node on stack"),R(A.type==="link","expected link on stack"),this.data.inReference){let w=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=w,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function Q1(){let A=this.stack[this.stack.length-1];if(R(A,"expected node on stack"),R(A.type==="image","expected image on stack"),this.data.inReference){let w=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=w,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function r1(A){let w=this.sliceSerialize(A),v=this.stack[this.stack.length-2];R(v,"expected ancestor on stack"),R(v.type==="image"||v.type==="link","expected image or link on stack"),v.label=B5(w),v.identifier=F0(w).toLowerCase()}function G0(){let A=this.stack[this.stack.length-1];R(A,"expected node on stack"),R(A.type==="fragment","expected fragment on stack");let w=this.resume(),v=this.stack[this.stack.length-1];if(R(v,"expected node on stack"),R(v.type==="image"||v.type==="link","expected image or link on stack"),this.data.inReference=!0,v.type==="link"){let n=A.children;v.children=n}else v.alt=w}function B(){let A=this.resume(),w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="image"||w.type==="link","expected image or link on stack"),w.url=A}function d1(){let A=this.resume(),w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="image"||w.type==="link","expected image or link on stack"),w.title=A}function U0(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function h1(A){let w=this.resume(),v=this.stack[this.stack.length-1];R(v,"expected node on stack"),R(v.type==="image"||v.type==="link","expected image reference or link reference on stack"),v.label=w,v.identifier=F0(this.sliceSerialize(A)).toLowerCase(),this.data.referenceType="full"}function y0(A){R(A.type==="characterReferenceMarkerNumeric"||A.type==="characterReferenceMarkerHexadecimal"),this.data.characterReferenceType=A.type}function r5(A){let w=this.sliceSerialize(A),v=this.data.characterReferenceType,n;if(v)n=X5(w,v===z.characterReferenceMarkerNumeric?L.numericBaseDecimal:L.numericBaseHexadecimal),this.data.characterReferenceType=void 0;else{let v1=j2(w);R(v1!==!1,"expected reference to decode"),n=v1}let e=this.stack[this.stack.length-1];R(e,"expected `node`"),R("value"in e,"expected `node.value`"),e.value+=n}function v4(A){let w=this.stack.pop();R(w,"expected `node`"),R(w.position,"expected `node.position`"),w.position.end=S0(A.end)}function K1(A){X1.call(this,A);let w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="link","expected link on stack"),w.url=this.sliceSerialize(A)}function a2(A){X1.call(this,A);let w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="link","expected link on stack"),w.url="mailto:"+this.sliceSerialize(A)}function M0(){return{type:"blockquote",children:[]}}function m0(){return{type:"code",lang:null,meta:null,value:""}}function H2(){return{type:"inlineCode",value:""}}function d5(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function c3(){return{type:"emphasis",children:[]}}function y9(){return{type:"heading",depth:0,children:[]}}function m9(){return{type:"break"}}function f9(){return{type:"html",value:""}}function i3(){return{type:"image",title:null,url:"",alt:null}}function u9(){return{type:"link",title:null,url:"",children:[]}}function p9(A){return{type:"list",ordered:A.type==="listOrdered",start:null,spread:A._spread,children:[]}}function o3(A){return{type:"listItem",spread:A._spread,checked:null,children:[]}}function n3(){return{type:"paragraph",children:[]}}function a3(){return{type:"strong",children:[]}}function s3(){return{type:"text",value:""}}function t3(){return{type:"thematicBreak"}}}function S0($){return{line:$.line,column:$.column,offset:$.offset}}function rJ($,J){let G=-1;while(++G<J.length){let X=J[G];if(Array.isArray(X))rJ($,X);else IU($,X)}}function IU($,J){let G;for(G in J)if(lJ.call(J,G))switch(G){case"canContainEols":{let X=J[G];if(X)$[G].push(...X);break}case"transforms":{let X=J[G];if(X)$[G].push(...X);break}case"enter":case"exit":{let X=J[G];if(X)Object.assign($[G],X);break}}}function pJ($,J){if($)throw Error("Cannot close `"+$.type+"` ("+T0({start:$.start,end:$.end})+"): a different token (`"+J.type+"`, "+T0({start:J.start,end:J.end})+") is open");else throw Error("Cannot close document, a token (`"+J.type+"`, "+T0({start:J.start,end:J.end})+") is still open")}function O5($){let J=this;J.parser=G;function G(X){return o6(X,{...J.data("settings"),...$,extensions:J.data("micromarkExtensions")||[],mdastExtensions:J.data("fromMarkdownExtensions")||[]})}}var dJ={}.hasOwnProperty;function cJ($,J){let G=J||{};function X(q,...V){let{invalid:Y,handlers:W}=X;if(q&&dJ.call(q,$)){let H=String(q[$]);Y=dJ.call(W,H)?W[H]:X.unknown}if(Y)return Y.call(this,q,...V)}return X.handlers=G.handlers||{},X.invalid=G.invalid,X.unknown=G.unknown,X}var EU={}.hasOwnProperty;function n6($,J){let G=-1,X;if(J.extensions)while(++G<J.extensions.length)n6($,J.extensions[G]);for(X in J)if(EU.call(J,X))switch(X){case"extensions":break;case"unsafe":{iJ($[X],J[X]);break}case"join":{iJ($[X],J[X]);break}case"handlers":{CU($[X],J[X]);break}default:$.options[X]=J[X]}return $}function iJ($,J){if(J)$.push(...J)}function CU($,J){if(J)Object.assign($,J)}function oJ($,J,G,X){let q=G.enter("blockquote"),V=G.createTracker(X);V.move("> "),V.shift(2);let Y=G.indentLines(G.containerFlow($,V.current()),bU);return q(),Y}function bU($,J,G){return">"+(G?"":" ")+$}function A5($,J){return nJ($,J.inConstruct,!0)&&!nJ($,J.notInConstruct,!1)}function nJ($,J,G){if(typeof J==="string")J=[J];if(!J||J.length===0)return G;let X=-1;while(++X<J.length)if($.includes(J[X]))return!0;return!1}function a6($,J,G,X){let q=-1;while(++q<G.unsafe.length)if(G.unsafe[q].character===`
|
|
60
|
-
`&&
|
|
54
|
+
`+V),$.push(q+"m+"+B5.exports.humanize(this.diff)+"\x1B[0m")}else $[0]=BU()+J+" "+$[0]}function BU(){if(hJ.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function OU(...$){return process.stderr.write(R5.formatWithOptions(hJ.inspectOpts,...$)+`
|
|
55
|
+
`)}function AU($){if($)process.env.DEBUG=$;else delete process.env.DEBUG}function wU(){return process.env.DEBUG}function jU($){$.inspectOpts={};let J=Object.keys(hJ.inspectOpts);for(let G=0;G<J.length;G++)$.inspectOpts[J[G]]=hJ.inspectOpts[J[G]]}B5.exports=p6()(hJ);var{formatters:gJ}=B5.exports;gJ.o=function($){return this.inspectOpts.colors=this.useColors,R5.inspect($,this.inspectOpts).split(`
|
|
56
|
+
`).map((J)=>J.trim()).join(" ")};gJ.O=function($){return this.inspectOpts.colors=this.useColors,R5.inspect($,this.inspectOpts)}});var fJ=m((Kj,d6)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)d6.exports=SJ();else d6.exports=mJ()});var yG=m((u_,hG)=>{var T5=Object.prototype.hasOwnProperty,gG=Object.prototype.toString,SG=Object.defineProperty,CG=Object.getOwnPropertyDescriptor,bG=function(J){if(typeof Array.isArray==="function")return Array.isArray(J);return gG.call(J)==="[object Array]"},xG=function(J){if(!J||gG.call(J)!=="[object Object]")return!1;var G=T5.call(J,"constructor"),X=J.constructor&&J.constructor.prototype&&T5.call(J.constructor.prototype,"isPrototypeOf");if(J.constructor&&!G&&!X)return!1;var q;for(q in J);return typeof q>"u"||T5.call(J,q)},vG=function(J,G){if(SG&&G.name==="__proto__")SG(J,G.name,{enumerable:!0,configurable:!0,value:G.newValue,writable:!0});else J[G.name]=G.newValue},kG=function(J,G){if(G==="__proto__"){if(!T5.call(J,G))return;else if(CG)return CG(J,G).value}return J[G]};hG.exports=function $(){var J,G,X,q,V,Y,W=arguments[0],H=1,U=arguments.length,M=!1;if(typeof W==="boolean")M=W,W=arguments[1]||{},H=2;if(W==null||typeof W!=="object"&&typeof W!=="function")W={};for(;H<U;++H)if(J=arguments[H],J!=null){for(G in J)if(X=kG(W,G),q=kG(J,G),W!==q){if(M&&q&&(xG(q)||(V=bG(q)))){if(V)V=!1,Y=X&&bG(X)?X:[];else Y=X&&xG(X)?X:{};vG(W,{name:G,newValue:$(M,Y,q)})}else if(typeof q<"u")vG(W,{name:G,newValue:q})}}return W}});import{createClient as eF}from"@libsql/client";var C=Symbol.for("drizzle:entityKind");function E1($,J){if(!$||typeof $!=="object")return!1;if($ instanceof J)return!0;if(!Object.prototype.hasOwnProperty.call(J,C))throw Error(`Class "${J.name??"<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);let G=Object.getPrototypeOf($).constructor;if(G)while(G){if(C in G&&G[C]===J[C])return!0;G=Object.getPrototypeOf(G)}return!1}class w0{constructor($,J){this.table=$,this.config=J,this.name=J.name,this.keyAsName=J.keyAsName,this.notNull=J.notNull,this.default=J.default,this.defaultFn=J.defaultFn,this.onUpdateFn=J.onUpdateFn,this.hasDefault=J.hasDefault,this.primary=J.primaryKey,this.isUnique=J.isUnique,this.uniqueName=J.uniqueName,this.uniqueType=J.uniqueType,this.dataType=J.dataType,this.columnType=J.columnType,this.generated=J.generated,this.generatedIdentity=J.generatedIdentity}static[C]="Column";name;keyAsName;primary;notNull;default;defaultFn;onUpdateFn;hasDefault;isUnique;uniqueName;uniqueType;dataType;columnType;enumValues=void 0;generated=void 0;generatedIdentity=void 0;config;mapFromDriverValue($){return $}mapToDriverValue($){return $}shouldDisableInsert(){return this.config.generated!==void 0&&this.config.generated.type!=="byDefault"}}class n5{static[C]="ColumnBuilder";config;constructor($,J,G){this.config={name:$,keyAsName:$==="",notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:J,columnType:G,generated:void 0}}$type(){return this}notNull(){return this.config.notNull=!0,this}default($){return this.config.default=$,this.config.hasDefault=!0,this}$defaultFn($){return this.config.defaultFn=$,this.config.hasDefault=!0,this}$default=this.$defaultFn;$onUpdateFn($){return this.config.onUpdateFn=$,this.config.hasDefault=!0,this}$onUpdate=this.$onUpdateFn;primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}setName($){if(this.config.name!=="")return;this.config.name=$}}var n1=Symbol.for("drizzle:Name");function d9($,...J){return $(...J)}function c9($,J){return`${$[n1]}_${J.join("_")}_unique`}class e2 extends w0{constructor($,J){if(!J.uniqueName)J.uniqueName=c9($,[J.name]);super($,J);this.table=$}static[C]="PgColumn"}class QX extends e2{static[C]="ExtraConfigColumn";getSQLType(){return this.getSQLType()}indexConfig={order:this.config.order??"asc",nulls:this.config.nulls??"last",opClass:this.config.opClass};defaultConfig={order:"asc",nulls:"last",opClass:void 0};asc(){return this.indexConfig.order="asc",this}desc(){return this.indexConfig.order="desc",this}nullsFirst(){return this.indexConfig.nulls="first",this}nullsLast(){return this.indexConfig.nulls="last",this}op($){return this.indexConfig.opClass=$,this}}class KX extends e2{static[C]="PgEnumObjectColumn";enum;enumValues=this.config.enum.enumValues;constructor($,J){super($,J);this.enum=J.enum}getSQLType(){return this.enum.enumName}}var i9=Symbol.for("drizzle:isPgEnum");function o9($){return!!$&&typeof $==="function"&&i9 in $&&$[i9]===!0}class FX extends e2{static[C]="PgEnumColumn";enum=this.config.enum;enumValues=this.config.enum.enumValues;constructor($,J){super($,J);this.enum=J.enum}getSQLType(){return this.enum.enumName}}class g4{static[C]="Subquery";constructor($,J,G,X=!1,q=[]){this._={brand:"Subquery",sql:$,selectedFields:J,alias:G,isWith:X,usedTables:q}}}var n9="0.44.7";var a5,s5,a9={startActiveSpan($,J){if(!a5)return J();if(!s5)s5=a5.trace.getTracer("drizzle-orm",n9);return d9((G,X)=>X.startActiveSpan($,(q)=>{try{return J(q)}catch(V){throw q.setStatus({code:G.SpanStatusCode.ERROR,message:V instanceof Error?V.message:"Unknown error"}),V}finally{q.end()}}),a5,s5)}};var z2=Symbol.for("drizzle:ViewBaseConfig");var t5=Symbol.for("drizzle:Schema"),s9=Symbol.for("drizzle:Columns"),t9=Symbol.for("drizzle:ExtraConfigColumns"),e5=Symbol.for("drizzle:OriginalName"),$6=Symbol.for("drizzle:BaseName"),$4=Symbol.for("drizzle:IsAlias"),e9=Symbol.for("drizzle:ExtraConfigBuilder"),RX=Symbol.for("drizzle:IsDrizzleTable");class U1{static[C]="Table";static Symbol={Name:n1,Schema:t5,OriginalName:e5,Columns:s9,ExtraConfigColumns:t9,BaseName:$6,IsAlias:$4,ExtraConfigBuilder:e9};[n1];[e5];[t5];[s9];[t9];[$6];[$4]=!1;[RX]=!0;[e9]=void 0;constructor($,J,G){this[n1]=this[e5]=$,this[t5]=J,this[$6]=G}}function BX($){return $!==null&&$!==void 0&&typeof $.getSQL==="function"}function OX($){let J={sql:"",params:[]};for(let G of $)if(J.sql+=G.sql,J.params.push(...G.params),G.typings?.length){if(!J.typings)J.typings=[];J.typings.push(...G.typings)}return J}class i1{static[C]="StringChunk";value;constructor($){this.value=Array.isArray($)?$:[$]}getSQL(){return new M1([this])}}class M1{constructor($){this.queryChunks=$;for(let J of $)if(E1(J,U1)){let G=J[U1.Symbol.Schema];this.usedTables.push(G===void 0?J[U1.Symbol.Name]:G+"."+J[U1.Symbol.Name])}}static[C]="SQL";decoder=$8;shouldInlineParams=!1;usedTables=[];append($){return this.queryChunks.push(...$.queryChunks),this}toQuery($){return a9.startActiveSpan("drizzle.buildSQL",(J)=>{let G=this.buildQueryFromSourceParams(this.queryChunks,$);return J?.setAttributes({"drizzle.query.text":G.sql,"drizzle.query.params":JSON.stringify(G.params)}),G})}buildQueryFromSourceParams($,J){let G=Object.assign({},J,{inlineParams:J.inlineParams||this.shouldInlineParams,paramStartIndex:J.paramStartIndex||{value:0}}),{casing:X,escapeName:q,escapeParam:V,prepareTyping:Y,inlineParams:W,paramStartIndex:H}=G;return OX($.map((U)=>{if(E1(U,i1))return{sql:U.value.join(""),params:[]};if(E1(U,h4))return{sql:q(U.value),params:[]};if(U===void 0)return{sql:"",params:[]};if(Array.isArray(U)){let M=[new i1("(")];for(let[Q,F]of U.entries())if(M.push(F),Q<U.length-1)M.push(new i1(", "));return M.push(new i1(")")),this.buildQueryFromSourceParams(M,G)}if(E1(U,M1))return this.buildQueryFromSourceParams(U.queryChunks,{...G,inlineParams:W||U.shouldInlineParams});if(E1(U,U1)){let M=U[U1.Symbol.Schema],Q=U[U1.Symbol.Name];return{sql:M===void 0||U[$4]?q(Q):q(M)+"."+q(Q),params:[]}}if(E1(U,w0)){let M=X.getColumnCasing(U);if(J.invokeSource==="indexes")return{sql:q(M),params:[]};let Q=U.table[U1.Symbol.Schema];return{sql:U.table[$4]||Q===void 0?q(U.table[U1.Symbol.Name])+"."+q(M):q(Q)+"."+q(U.table[U1.Symbol.Name])+"."+q(M),params:[]}}if(E1(U,G8)){let M=U[z2].schema,Q=U[z2].name;return{sql:M===void 0||U[z2].isAlias?q(Q):q(M)+"."+q(Q),params:[]}}if(E1(U,J6)){if(E1(U.value,y4))return{sql:V(H.value++,U),params:[U],typings:["none"]};let M=U.value===null?null:U.encoder.mapToDriverValue(U.value);if(E1(M,M1))return this.buildQueryFromSourceParams([M],G);if(W)return{sql:this.mapInlineParam(M,G),params:[]};let Q=["none"];if(Y)Q=[Y(U.encoder)];return{sql:V(H.value++,M),params:[M],typings:Q}}if(E1(U,y4))return{sql:V(H.value++,U),params:[U],typings:["none"]};if(E1(U,M1.Aliased)&&U.fieldAlias!==void 0)return{sql:q(U.fieldAlias),params:[]};if(E1(U,g4)){if(U._.isWith)return{sql:q(U._.alias),params:[]};return this.buildQueryFromSourceParams([new i1("("),U._.sql,new i1(") "),new h4(U._.alias)],G)}if(o9(U)){if(U.schema)return{sql:q(U.schema)+"."+q(U.enumName),params:[]};return{sql:q(U.enumName),params:[]}}if(BX(U)){if(U.shouldOmitSQLParens?.())return this.buildQueryFromSourceParams([U.getSQL()],G);return this.buildQueryFromSourceParams([new i1("("),U.getSQL(),new i1(")")],G)}if(W)return{sql:this.mapInlineParam(U,G),params:[]};return{sql:V(H.value++,U),params:[U],typings:["none"]}}))}mapInlineParam($,{escapeString:J}){if($===null)return"null";if(typeof $==="number"||typeof $==="boolean")return $.toString();if(typeof $==="string")return J($);if(typeof $==="object"){let G=$.toString();if(G==="[object Object]")return J(JSON.stringify($));return J(G)}throw Error("Unexpected param value: "+$)}getSQL(){return this}as($){if($===void 0)return this;return new M1.Aliased(this,$)}mapWith($){return this.decoder=typeof $==="function"?{mapFromDriverValue:$}:$,this}inlineParams(){return this.shouldInlineParams=!0,this}if($){return $?this:void 0}}class h4{constructor($){this.value=$}static[C]="Name";brand;getSQL(){return new M1([this])}}var $8={mapFromDriverValue:($)=>$},J8={mapToDriverValue:($)=>$},nK={...$8,...J8};class J6{constructor($,J=J8){this.value=$,this.encoder=J}static[C]="Param";brand;getSQL(){return new M1([this])}}function u0($,...J){let G=[];if(J.length>0||$.length>0&&$[0]!=="")G.push(new i1($[0]));for(let[X,q]of J.entries())G.push(q,new i1($[X+1]));return new M1(G)}(($)=>{function J(){return new M1([])}$.empty=J;function G(H){return new M1(H)}$.fromList=G;function X(H){return new M1([new i1(H)])}$.raw=X;function q(H,U){let M=[];for(let[Q,F]of H.entries()){if(Q>0&&U!==void 0)M.push(U);M.push(F)}return new M1(M)}$.join=q;function V(H){return new h4(H)}$.identifier=V;function Y(H){return new y4(H)}$.placeholder=Y;function W(H,U){return new J6(H,U)}$.param=W})(u0||(u0={}));(($)=>{class J{constructor(G,X){this.sql=G,this.fieldAlias=X}static[C]="SQL.Aliased";isSelectionField=!1;getSQL(){return this.sql}clone(){return new J(this.sql,this.fieldAlias)}}$.Aliased=J})(M1||(M1={}));class y4{constructor($){this.name=$}static[C]="Placeholder";getSQL(){return new M1([this])}}var AX=Symbol.for("drizzle:IsDrizzleView");class G8{static[C]="View";[z2];[AX]=!0;constructor({name:$,schema:J,selectedFields:G,query:X}){this[z2]={name:$,originalName:$,schema:J,selectedFields:G,query:X,isExisting:!X,isAlias:!1}}getSQL(){return new M1([this])}}w0.prototype.getSQL=function(){return new M1([this])};U1.prototype.getSQL=function(){return new M1([this])};g4.prototype.getSQL=function(){return new M1([this])};function X0($,J){return{name:typeof $==="string"&&$.length>0?$:"",config:typeof $==="object"?$:J}}var G6=typeof TextDecoder>"u"?null:new TextDecoder;class X6{static[C]="SQLiteForeignKeyBuilder";reference;_onUpdate;_onDelete;constructor($,J){if(this.reference=()=>{let{name:G,columns:X,foreignColumns:q}=$();return{name:G,columns:X,foreignTable:q[0].table,foreignColumns:q}},J)this._onUpdate=J.onUpdate,this._onDelete=J.onDelete}onUpdate($){return this._onUpdate=$,this}onDelete($){return this._onDelete=$,this}build($){return new X8($,this)}}class X8{constructor($,J){this.table=$,this.reference=J.reference,this.onUpdate=J._onUpdate,this.onDelete=J._onDelete}static[C]="SQLiteForeignKey";reference;onUpdate;onDelete;getName(){let{name:$,columns:J,foreignColumns:G}=this.reference(),X=J.map((Y)=>Y.name),q=G.map((Y)=>Y.name),V=[this.table[n1],...X,G[0].table[n1],...q];return $??`${V.join("_")}_fk`}}function q8($,J){return`${$[n1]}_${J.join("_")}_unique`}class B1 extends n5{static[C]="SQLiteColumnBuilder";foreignKeyConfigs=[];references($,J={}){return this.foreignKeyConfigs.push({ref:$,actions:J}),this}unique($){return this.config.isUnique=!0,this.config.uniqueName=$,this}generatedAlwaysAs($,J){return this.config.generated={as:$,type:"always",mode:J?.mode??"virtual"},this}buildForeignKeys($,J){return this.foreignKeyConfigs.map(({ref:G,actions:X})=>{return((q,V)=>{let Y=new X6(()=>{let W=q();return{columns:[$],foreignColumns:[W]}});if(V.onUpdate)Y.onUpdate(V.onUpdate);if(V.onDelete)Y.onDelete(V.onDelete);return Y.build(J)})(G,X)})}}class O1 extends w0{constructor($,J){if(!J.uniqueName)J.uniqueName=q8($,[J.name]);super($,J);this.table=$}static[C]="SQLiteColumn"}class Y8 extends B1{static[C]="SQLiteBigIntBuilder";constructor($){super($,"bigint","SQLiteBigInt")}build($){return new V8($,this.config)}}class V8 extends O1{static[C]="SQLiteBigInt";getSQLType(){return"blob"}mapFromDriverValue($){if(typeof Buffer<"u"&&Buffer.from){let J=Buffer.isBuffer($)?$:$ instanceof ArrayBuffer?Buffer.from($):$.buffer?Buffer.from($.buffer,$.byteOffset,$.byteLength):Buffer.from($);return BigInt(J.toString("utf8"))}return BigInt(G6.decode($))}mapToDriverValue($){return Buffer.from($.toString())}}class W8 extends B1{static[C]="SQLiteBlobJsonBuilder";constructor($){super($,"json","SQLiteBlobJson")}build($){return new H8($,this.config)}}class H8 extends O1{static[C]="SQLiteBlobJson";getSQLType(){return"blob"}mapFromDriverValue($){if(typeof Buffer<"u"&&Buffer.from){let J=Buffer.isBuffer($)?$:$ instanceof ArrayBuffer?Buffer.from($):$.buffer?Buffer.from($.buffer,$.byteOffset,$.byteLength):Buffer.from($);return JSON.parse(J.toString("utf8"))}return JSON.parse(G6.decode($))}mapToDriverValue($){return Buffer.from(JSON.stringify($))}}class U8 extends B1{static[C]="SQLiteBlobBufferBuilder";constructor($){super($,"buffer","SQLiteBlobBuffer")}build($){return new M8($,this.config)}}class M8 extends O1{static[C]="SQLiteBlobBuffer";mapFromDriverValue($){if(Buffer.isBuffer($))return $;return Buffer.from($)}getSQLType(){return"blob"}}function z8($,J){let{name:G,config:X}=X0($,J);if(X?.mode==="json")return new W8(G);if(X?.mode==="bigint")return new Y8(G);return new U8(G)}class D8 extends B1{static[C]="SQLiteCustomColumnBuilder";constructor($,J,G){super($,"custom","SQLiteCustomColumn");this.config.fieldConfig=J,this.config.customTypeParams=G}build($){return new Q8($,this.config)}}class Q8 extends O1{static[C]="SQLiteCustomColumn";sqlName;mapTo;mapFrom;constructor($,J){super($,J);this.sqlName=J.customTypeParams.dataType(J.fieldConfig),this.mapTo=J.customTypeParams.toDriver,this.mapFrom=J.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue($){return typeof this.mapFrom==="function"?this.mapFrom($):$}mapToDriverValue($){return typeof this.mapTo==="function"?this.mapTo($):$}}function m4($){return(J,G)=>{let{name:X,config:q}=X0(J,G);return new D8(X,q,$)}}class f4 extends B1{static[C]="SQLiteBaseIntegerBuilder";constructor($,J,G){super($,J,G);this.config.autoIncrement=!1}primaryKey($){if($?.autoIncrement)this.config.autoIncrement=!0;return this.config.hasDefault=!0,super.primaryKey()}}class u4 extends O1{static[C]="SQLiteBaseInteger";autoIncrement=this.config.autoIncrement;getSQLType(){return"integer"}}class K8 extends f4{static[C]="SQLiteIntegerBuilder";constructor($){super($,"number","SQLiteInteger")}build($){return new F8($,this.config)}}class F8 extends u4{static[C]="SQLiteInteger"}class R8 extends f4{static[C]="SQLiteTimestampBuilder";constructor($,J){super($,"date","SQLiteTimestamp");this.config.mode=J}defaultNow(){return this.default(u0`(cast((julianday('now') - 2440587.5)*86400000 as integer))`)}build($){return new B8($,this.config)}}class B8 extends u4{static[C]="SQLiteTimestamp";mode=this.config.mode;mapFromDriverValue($){if(this.config.mode==="timestamp")return new Date($*1000);return new Date($)}mapToDriverValue($){let J=$.getTime();if(this.config.mode==="timestamp")return Math.floor(J/1000);return J}}class O8 extends f4{static[C]="SQLiteBooleanBuilder";constructor($,J){super($,"boolean","SQLiteBoolean");this.config.mode=J}build($){return new A8($,this.config)}}class A8 extends u4{static[C]="SQLiteBoolean";mode=this.config.mode;mapFromDriverValue($){return Number($)===1}mapToDriverValue($){return $?1:0}}function J4($,J){let{name:G,config:X}=X0($,J);if(X?.mode==="timestamp"||X?.mode==="timestamp_ms")return new R8(G,X.mode);if(X?.mode==="boolean")return new O8(G,X.mode);return new K8(G)}class w8 extends B1{static[C]="SQLiteNumericBuilder";constructor($){super($,"string","SQLiteNumeric")}build($){return new j8($,this.config)}}class j8 extends O1{static[C]="SQLiteNumeric";mapFromDriverValue($){if(typeof $==="string")return $;return String($)}getSQLType(){return"numeric"}}class N8 extends B1{static[C]="SQLiteNumericNumberBuilder";constructor($){super($,"number","SQLiteNumericNumber")}build($){return new Z8($,this.config)}}class Z8 extends O1{static[C]="SQLiteNumericNumber";mapFromDriverValue($){if(typeof $==="number")return $;return Number($)}mapToDriverValue=String;getSQLType(){return"numeric"}}class _8 extends B1{static[C]="SQLiteNumericBigIntBuilder";constructor($){super($,"bigint","SQLiteNumericBigInt")}build($){return new P8($,this.config)}}class P8 extends O1{static[C]="SQLiteNumericBigInt";mapFromDriverValue=BigInt;mapToDriverValue=String;getSQLType(){return"numeric"}}function L8($,J){let{name:G,config:X}=X0($,J),q=X?.mode;return q==="number"?new N8(G):q==="bigint"?new _8(G):new w8(G)}class T8 extends B1{static[C]="SQLiteRealBuilder";constructor($){super($,"number","SQLiteReal")}build($){return new I8($,this.config)}}class I8 extends O1{static[C]="SQLiteReal";getSQLType(){return"real"}}function E8($){return new T8($??"")}class S8 extends B1{static[C]="SQLiteTextBuilder";constructor($,J){super($,"string","SQLiteText");this.config.enumValues=J.enum,this.config.length=J.length}build($){return new C8($,this.config)}}class C8 extends O1{static[C]="SQLiteText";enumValues=this.config.enumValues;length=this.config.length;constructor($,J){super($,J)}getSQLType(){return`text${this.config.length?`(${this.config.length})`:""}`}}class b8 extends B1{static[C]="SQLiteTextJsonBuilder";constructor($){super($,"json","SQLiteTextJson")}build($){return new x8($,this.config)}}class x8 extends O1{static[C]="SQLiteTextJson";getSQLType(){return"text"}mapFromDriverValue($){return JSON.parse($)}mapToDriverValue($){return JSON.stringify($)}}function m1($,J={}){let{name:G,config:X}=X0($,J);if(X.mode==="json")return new b8(G);return new S8(G,X)}function v8(){return{blob:z8,customType:m4,integer:J4,numeric:L8,real:E8,text:m1}}var q6=Symbol.for("drizzle:SQLiteInlineForeignKeys");class G4 extends U1{static[C]="SQLiteTable";static Symbol=Object.assign({},U1.Symbol,{InlineForeignKeys:q6});[U1.Symbol.Columns];[q6]=[];[U1.Symbol.ExtraConfigBuilder]=void 0}function wX($,J,G,X,q=$){let V=new G4($,X,q),Y=typeof J==="function"?J(v8()):J,W=Object.fromEntries(Object.entries(Y).map(([U,M])=>{let Q=M;Q.setName(U);let F=Q.build(V);return V[q6].push(...Q.buildForeignKeys(F,V)),[U,F]})),H=Object.assign(V,W);if(H[U1.Symbol.Columns]=W,H[U1.Symbol.ExtraConfigColumns]=W,G)H[G4.Symbol.ExtraConfigBuilder]=G;return H}var p4=($,J,G)=>{return wX($,J,G)};class k8{constructor($,J){this.name=$,this.value=J}static[C]="SQLiteCheckBuilder";brand;build($){return new g8($,this)}}class g8{constructor($,J){this.table=$,this.name=J.name,this.value=J.value}static[C]="SQLiteCheck";name;value}function h8($,J){return new k8($,J)}function l4(...$){if($[0].columns)return new Y6($[0].columns,$[0].name);return new Y6($)}class Y6{static[C]="SQLitePrimaryKeyBuilder";columns;name;constructor($,J){this.columns=$,this.name=J}build($){return new y8($,this.columns,this.name)}}class y8{constructor($,J,G){this.table=$,this.columns=J,this.name=G}static[C]="SQLitePrimaryKey";columns;name;getName(){return this.name??`${this.table[G4.Symbol.Name]}_${this.columns.map(($)=>$.name).join("_")}_pk`}}var r4=p4("entities",{id:m1("id").notNull(),entityType:m1("entityType").notNull(),content:m1("content").notNull(),contentHash:m1("contentHash").notNull(),visibility:m1("visibility",{enum:["public","shared","restricted"]}).notNull().default("public"),metadata:m1("metadata",{mode:"json"}).$type().notNull().default(u0`'{}'`),created:J4("created").notNull().$defaultFn(()=>Date.now()),updated:J4("updated").notNull().$defaultFn(()=>Date.now())},($)=>{return{pk:l4({columns:[$.id,$.entityType]}),visibilityCheck:h8("entities_visibility_check",u0`${$.visibility} IN ('public', 'shared', 'restricted')`)}});import{createClient as HR}from"@libsql/client";var m8=m4({dataType(){return"F32_BLOB(1536)"},toDriver($){return Buffer.from($.buffer)},fromDriver($){return new Float32Array($.buffer,$.byteOffset,$.byteLength/4)}});var d4=p4("embeddings",{entityId:m1("entity_id").notNull(),entityType:m1("entity_type").notNull(),embedding:m8("embedding").notNull(),contentHash:m1("content_hash").notNull()},($)=>{return{pk:l4({columns:[$.entityId,$.entityType]})}});import{openSync as jX,writeSync as NX}from"fs";class f1{static instance=null;level;context;useStderr;format;logFile;fileHandle;constructor($={},J){if(this.level=$.level??3,this.context=$.context??void 0,this.useStderr=$.useStderr??!1,this.format=$.format??"text",this.logFile=$.logFile,J!==void 0)this.fileHandle=J;else if(this.logFile)try{this.fileHandle=jX(this.logFile,"a")}catch{}}static getInstance($){if(!f1.instance)f1.instance=new f1($);else if($?.useStderr!==void 0)f1.instance.useStderr=$.useStderr;return f1.instance}static resetInstance(){f1.instance=null}static createFresh($){return new f1($)}formatEntry($,J,G){let X=new Date().toISOString();if(this.format==="json"){let q={ts:X,level:$,msg:J};if(this.context)q.ctx=this.context;if(G.length>0)q.data=G;return JSON.stringify(q)}return this.context?`[${X}] [${this.context}] ${J}`:`[${X}] ${J}`}write($,J,G,X){if(this.format==="json")$(this.formatEntry(J,G,X));else if(X.length>0)$(this.formatEntry(J,G,[]),...X);else $(this.formatEntry(J,G,[]));if(this.fileHandle!==void 0){let q=this.formatJsonEntry(J,G,X);try{NX(this.fileHandle,q+`
|
|
57
|
+
`)}catch{}}}formatJsonEntry($,J,G){let X={ts:new Date().toISOString(),level:$,msg:J};if(this.context)X.ctx=this.context;if(G.length>0)X.data=G;return JSON.stringify(X)}silly($,...J){if(this.level<=0)this.write(console.debug.bind(console),"silly",$,J)}verbose($,...J){if(this.level<=1)this.write(console.debug.bind(console),"verbose",$,J)}debug($,...J){if(this.level<=2)this.write(console.debug.bind(console),"debug",$,J)}info($,...J){if(this.level<=3){let G=this.useStderr?console.error.bind(console):console.info.bind(console);this.write(G,"info",$,J)}}warn($,...J){if(this.level<=4)this.write(console.warn.bind(console),"warn",$,J)}error($,...J){if(this.level<=5)this.write(console.error.bind(console),"error",$,J)}child($){return new f1({level:this.level,context:$,useStderr:this.useStderr,format:this.format},this.fileHandle)}setUseStderr($){this.useStderr=$}}var ZX=f1.getInstance();var KM=k4(T6(),1);class XJ extends Error{name="Assertion";code="ERR_ASSERTION";constructor($,J,G,X,q){super($);if(Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);this.actual=J,this.expected=G,this.generated=q,this.operator=X}}function R($,J){PW(Boolean($),!1,!0,"ok","Expected value to be truthy",J)}function PW($,J,G,X,q,V){if(!$)throw V instanceof Error?V:new XJ(V||q,J,G,X,!V)}var LW={};function o0($,J){let G=J||LW,X=typeof G.includeImageAlt==="boolean"?G.includeImageAlt:!0,q=typeof G.includeHtml==="boolean"?G.includeHtml:!0;return YJ($,X,q)}function YJ($,J,G){if(TW($)){if("value"in $)return $.type==="html"&&!G?"":$.value;if(J&&"alt"in $&&$.alt)return $.alt;if("children"in $)return qJ($.children,J,G)}if(Array.isArray($))return qJ($,J,G);return""}function qJ($,J,G){let X=[],q=-1;while(++q<$.length)X[q]=YJ($[q],J,G);return X.join("")}function TW($){return Boolean($&&typeof $==="object")}var I6={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\uD835\uDD04",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\uD835\uDD38",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\uD835\uDC9C",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\uD835\uDD05",Bopf:"\uD835\uDD39",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\uD835\uDC9E",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\uD835\uDD07",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\uD835\uDD3B",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\uD835\uDC9F",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\uD835\uDD08",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\uD835\uDD3C",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\uD835\uDD09",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\uD835\uDD3D",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\uD835\uDD0A",Gg:"\u22D9",Gopf:"\uD835\uDD3E",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\uD835\uDCA2",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\uD835\uDD40",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\uD835\uDD0D",Jopf:"\uD835\uDD41",Jscr:"\uD835\uDCA5",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\uD835\uDD0E",Kopf:"\uD835\uDD42",Kscr:"\uD835\uDCA6",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\uD835\uDD0F",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\uD835\uDD43",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\uD835\uDD10",MinusPlus:"\u2213",Mopf:"\uD835\uDD44",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
58
|
+
`,Nfr:"\uD835\uDD11",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\uD835\uDCA9",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\uD835\uDD12",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\uD835\uDD46",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\uD835\uDCAA",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\uD835\uDD13",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\uD835\uDCAB",Psi:"\u03A8",QUOT:'"',Qfr:"\uD835\uDD14",Qopf:"\u211A",Qscr:"\uD835\uDCAC",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\uD835\uDD16",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\uD835\uDD4A",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\uD835\uDCAE",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:"\t",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\uD835\uDD17",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\uD835\uDD4B",TripleDot:"\u20DB",Tscr:"\uD835\uDCAF",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\uD835\uDD18",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\uD835\uDD4C",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\uD835\uDCB0",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\uD835\uDD19",Vopf:"\uD835\uDD4D",Vscr:"\uD835\uDCB1",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\uD835\uDD1A",Wopf:"\uD835\uDD4E",Wscr:"\uD835\uDCB2",Xfr:"\uD835\uDD1B",Xi:"\u039E",Xopf:"\uD835\uDD4F",Xscr:"\uD835\uDCB3",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\uD835\uDD1C",Yopf:"\uD835\uDD50",Yscr:"\uD835\uDCB4",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\uD835\uDCB5",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\uD835\uDD1E",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\uD835\uDD52",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\uD835\uDCB6",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\uD835\uDD1F",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\uD835\uDD53",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\uD835\uDCB7",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\uD835\uDD20",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\uD835\uDD54",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\uD835\uDCB8",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\uD835\uDD21",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\uD835\uDD55",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\uD835\uDCB9",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\uD835\uDD22",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\uD835\uDD56",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\uD835\uDD23",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\uD835\uDD57",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\uD835\uDCBB",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\uD835\uDD24",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\uD835\uDD58",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\uD835\uDD25",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\uD835\uDD59",horbar:"\u2015",hscr:"\uD835\uDCBD",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\uD835\uDD26",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\uD835\uDD5A",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\uD835\uDCBE",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\uD835\uDD27",jmath:"\u0237",jopf:"\uD835\uDD5B",jscr:"\uD835\uDCBF",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\uD835\uDD28",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\uD835\uDD5C",kscr:"\uD835\uDCC0",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\uD835\uDD29",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\uD835\uDD5D",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\uD835\uDCC1",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\uD835\uDD2A",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\uD835\uDD5E",mp:"\u2213",mscr:"\uD835\uDCC2",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\uD835\uDD2B",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\uD835\uDD5F",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\uD835\uDCC3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\uD835\uDD2C",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\uD835\uDD60",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\uD835\uDD2D",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\uD835\uDD61",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\uD835\uDCC5",psi:"\u03C8",puncsp:"\u2008",qfr:"\uD835\uDD2E",qint:"\u2A0C",qopf:"\uD835\uDD62",qprime:"\u2057",qscr:"\uD835\uDCC6",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\uD835\uDD2F",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\uD835\uDD63",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\uD835\uDCC7",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\uD835\uDD30",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\uD835\uDD64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\uD835\uDCC8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\uD835\uDD31",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\uD835\uDD65",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\uD835\uDCC9",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\uD835\uDD32",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\uD835\uDD66",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\uD835\uDCCA",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\uD835\uDD33",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\uD835\uDD67",vprop:"\u221D",vrtri:"\u22B3",vscr:"\uD835\uDCCB",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\uD835\uDD34",wopf:"\uD835\uDD68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\uD835\uDCCC",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\uD835\uDD35",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\uD835\uDD69",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\uD835\uDCCD",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\uD835\uDD36",yicy:"\u0457",yopf:"\uD835\uDD6A",yscr:"\uD835\uDCCE",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\uD835\uDD37",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\uD835\uDD6B",zscr:"\uD835\uDCCF",zwj:"\u200D",zwnj:"\u200C"};var IW={}.hasOwnProperty;function j2($){return IW.call(I6,$)?I6[$]:!1}var D={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 L={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 z={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 u1={ht:"\t",lf:`
|
|
59
|
+
`,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:"\uFFFD"};function w1($,J,G,X){let q=$.length,V=0,Y;if(J<0)J=-J>q?0:q+J;else J=J>q?q:J;if(G=G>0?G:0,X.length<L.v8MaxSafeChunkSize)Y=Array.from(X),Y.unshift(J,G),$.splice(...Y);else{if(G)$.splice(J,G);while(V<X.length)Y=X.slice(V,V+L.v8MaxSafeChunkSize),Y.unshift(J,0),$.splice(...Y),V+=L.v8MaxSafeChunkSize,J+=L.v8MaxSafeChunkSize}}function C1($,J){if($.length>0)return w1($,$.length,0,J),$;return J}var VJ={}.hasOwnProperty;function WJ($){let J={},G=-1;while(++G<$.length)EW(J,$[G]);return J}function EW($,J){let G;for(G in J){let q=(VJ.call($,G)?$[G]:void 0)||($[G]={}),V=J[G],Y;if(V)for(Y in V){if(!VJ.call(q,Y))q[Y]=[];let W=V[Y];SW(q[Y],Array.isArray(W)?W:W?[W]:[])}}}function SW($,J){let G=-1,X=[];while(++G<J.length)(J[G].add==="after"?$:X).push(J[G]);w1($,0,0,X)}function q5($,J){let G=Number.parseInt($,J);if(G<D.ht||G===D.vt||G>D.cr&&G<D.space||G>D.tilde&&G<160||G>55295&&G<57344||G>64975&&G<65008||(G&65535)===65535||(G&65535)===65534||G>1114111)return u1.replacementCharacter;return String.fromCodePoint(G)}function F0($){return $.replace(/[\t\n\r ]+/g,u1.space).replace(/^ | $/g,"").toLowerCase().toUpperCase()}var p1=_0(/[A-Za-z]/),b1=_0(/[\dA-Za-z]/),HJ=_0(/[#-'*+\--9=?A-Z^-~]/);function z4($){return $!==null&&($<D.space||$===D.del)}var D4=_0(/\d/),UJ=_0(/[\dA-Fa-f]/),MJ=_0(/[!-/:-@[-`{-~]/);function E($){return $!==null&&$<D.horizontalTab}function H1($){return $!==null&&($<D.nul||$===D.space)}function l($){return $===D.horizontalTab||$===D.virtualSpace||$===D.space}var zJ=_0(/\p{P}|\p{S}/u),DJ=_0(/\s/);function _0($){return J;function J(G){return G!==null&&G>-1&&$.test(String.fromCharCode(G))}}function d($,J,G,X){let q=X?X-1:Number.POSITIVE_INFINITY,V=0;return Y;function Y(H){if(l(H))return $.enter(G),W(H);return J(H)}function W(H){if(l(H)&&V++<q)return $.consume(H),W;return $.exit(G),J(H)}}var QJ={tokenize:CW};function CW($){let J=$.attempt(this.parser.constructs.contentInitial,X,q),G;return J;function X(W){if(R(W===D.eof||E(W),"expected eol or eof"),W===D.eof){$.consume(W);return}return $.enter(z.lineEnding),$.consume(W),$.exit(z.lineEnding),d($,J,z.linePrefix)}function q(W){return R(W!==D.eof&&!E(W),"expected anything other than a line ending or EOF"),$.enter(z.paragraph),V(W)}function V(W){let H=$.enter(z.chunkText,{contentType:L.contentTypeText,previous:G});if(G)G.next=H;return G=H,Y(W)}function Y(W){if(W===D.eof){$.exit(z.chunkText),$.exit(z.paragraph),$.consume(W);return}if(E(W))return $.consume(W),$.exit(z.chunkText),V;return $.consume(W),Y}}var FJ={tokenize:bW},KJ={tokenize:xW};function bW($){let J=this,G=[],X=0,q,V,Y;return W;function W(h){if(X<G.length){let t=G[X];return J.containerState=t[1],R(t[0].continuation,"expected `continuation` to be defined on container construct"),$.attempt(t[0].continuation,H,U)(h)}return U(h)}function H(h){if(R(J.containerState,"expected `containerState` to be defined after continuation"),X++,J.containerState._closeFlow){if(J.containerState._closeFlow=void 0,q)k();let t=J.events.length,G1=t,Z;while(G1--)if(J.events[G1][0]==="exit"&&J.events[G1][1].type===z.chunkFlow){Z=J.events[G1][1].end;break}R(Z,"could not find previous flow chunk"),_(X);let $1=t;while($1<J.events.length)J.events[$1][1].end={...Z},$1++;return w1(J.events,G1+1,0,J.events.slice(t)),J.events.length=$1,U(h)}return W(h)}function U(h){if(X===G.length){if(!q)return F(h);if(q.currentConstruct&&q.currentConstruct.concrete)return j(h);J.interrupt=Boolean(q.currentConstruct&&!q._gfmTableDynamicInterruptHack)}return J.containerState={},$.check(KJ,M,Q)(h)}function M(h){if(q)k();return _(X),F(h)}function Q(h){return J.parser.lazy[J.now().line]=X!==G.length,Y=J.now().offset,j(h)}function F(h){return J.containerState={},$.attempt(KJ,K,j)(h)}function K(h){return R(J.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),R(J.containerState,"expected `containerState` to be defined on tokenizer"),X++,G.push([J.currentConstruct,J.containerState]),F(h)}function j(h){if(h===D.eof){if(q)k();_(0),$.consume(h);return}return q=q||J.parser.flow(J.now()),$.enter(z.chunkFlow,{_tokenizer:q,contentType:L.contentTypeFlow,previous:V}),N(h)}function N(h){if(h===D.eof){P($.exit(z.chunkFlow),!0),_(0),$.consume(h);return}if(E(h))return $.consume(h),P($.exit(z.chunkFlow)),X=0,J.interrupt=void 0,W;return $.consume(h),N}function P(h,t){R(q,"expected `childFlow` to be defined when continuing");let G1=J.sliceStream(h);if(t)G1.push(null);if(h.previous=V,V)V.next=h;if(V=h,q.defineSkip(h.start),q.write(G1),J.parser.lazy[h.start.line]){let Z=q.events.length;while(Z--)if(q.events[Z][1].start.offset<Y&&(!q.events[Z][1].end||q.events[Z][1].end.offset>Y))return;let $1=J.events.length,q1=$1,s,X1;while(q1--)if(J.events[q1][0]==="exit"&&J.events[q1][1].type===z.chunkFlow){if(s){X1=J.events[q1][1].end;break}s=!0}R(X1,"could not find previous flow chunk"),_(X),Z=$1;while(Z<J.events.length)J.events[Z][1].end={...X1},Z++;w1(J.events,q1+1,0,J.events.slice($1)),J.events.length=Z}}function _(h){let t=G.length;while(t-- >h){let G1=G[t];J.containerState=G1[1],R(G1[0].exit,"expected `exit` to be defined on container construct"),G1[0].exit.call(J,$)}G.length=h}function k(){R(J.containerState,"expected `containerState` to be defined when closing flow"),R(q,"expected `childFlow` to be defined when closing it"),q.write([D.eof]),V=void 0,q=void 0,J.containerState._closeFlow=void 0}}function xW($,J,G){return R(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),d($,$.attempt(this.parser.constructs.document,J,G),z.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:L.tabSize)}function N2($){if($===D.eof||H1($)||DJ($))return L.characterGroupWhitespace;if(zJ($))return L.characterGroupPunctuation}function Z2($,J,G){let X=[],q=-1;while(++q<$.length){let V=$[q].resolveAll;if(V&&!X.includes(V))J=V(J,G),X.push(V)}return J}var Q4={name:"attention",resolveAll:vW,tokenize:kW};function vW($,J){let G=-1,X,q,V,Y,W,H,U,M;while(++G<$.length)if($[G][0]==="enter"&&$[G][1].type==="attentionSequence"&&$[G][1]._close){X=G;while(X--)if($[X][0]==="exit"&&$[X][1].type==="attentionSequence"&&$[X][1]._open&&J.sliceSerialize($[X][1]).charCodeAt(0)===J.sliceSerialize($[G][1]).charCodeAt(0)){if(($[X][1]._close||$[G][1]._open)&&($[G][1].end.offset-$[G][1].start.offset)%3&&!(($[X][1].end.offset-$[X][1].start.offset+$[G][1].end.offset-$[G][1].start.offset)%3))continue;H=$[X][1].end.offset-$[X][1].start.offset>1&&$[G][1].end.offset-$[G][1].start.offset>1?2:1;let Q={...$[X][1].end},F={...$[G][1].start};if(RJ(Q,-H),RJ(F,H),Y={type:H>1?z.strongSequence:z.emphasisSequence,start:Q,end:{...$[X][1].end}},W={type:H>1?z.strongSequence:z.emphasisSequence,start:{...$[G][1].start},end:F},V={type:H>1?z.strongText:z.emphasisText,start:{...$[X][1].end},end:{...$[G][1].start}},q={type:H>1?z.strong:z.emphasis,start:{...Y.start},end:{...W.end}},$[X][1].end={...Y.start},$[G][1].start={...W.end},U=[],$[X][1].end.offset-$[X][1].start.offset)U=C1(U,[["enter",$[X][1],J],["exit",$[X][1],J]]);if(U=C1(U,[["enter",q,J],["enter",Y,J],["exit",Y,J],["enter",V,J]]),R(J.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),U=C1(U,Z2(J.parser.constructs.insideSpan.null,$.slice(X+1,G),J)),U=C1(U,[["exit",V,J],["enter",W,J],["exit",W,J],["exit",q,J]]),$[G][1].end.offset-$[G][1].start.offset)M=2,U=C1(U,[["enter",$[G][1],J],["exit",$[G][1],J]]);else M=0;w1($,X-1,G-X+3,U),G=X+U.length-M-2;break}}G=-1;while(++G<$.length)if($[G][1].type==="attentionSequence")$[G][1].type="data";return $}function kW($,J){let G=this.parser.constructs.attentionMarkers.null,X=this.previous,q=N2(X),V;return Y;function Y(H){return R(H===D.asterisk||H===D.underscore,"expected asterisk or underscore"),V=H,$.enter("attentionSequence"),W(H)}function W(H){if(H===V)return $.consume(H),W;let U=$.exit("attentionSequence"),M=N2(H);R(G,"expected `attentionMarkers` to be populated");let Q=!M||M===L.characterGroupPunctuation&&q||G.includes(H),F=!q||q===L.characterGroupPunctuation&&M||G.includes(X);return U._open=Boolean(V===D.asterisk?Q:Q&&(q||!F)),U._close=Boolean(V===D.asterisk?F:F&&(M||!Q)),J(H)}}function RJ($,J){$.column+=J,$.offset+=J,$._bufferIndex+=J}var E6={name:"autolink",tokenize:gW};function gW($,J,G){let X=0;return q;function q(K){return R(K===D.lessThan,"expected `<`"),$.enter(z.autolink),$.enter(z.autolinkMarker),$.consume(K),$.exit(z.autolinkMarker),$.enter(z.autolinkProtocol),V}function V(K){if(p1(K))return $.consume(K),Y;if(K===D.atSign)return G(K);return U(K)}function Y(K){if(K===D.plusSign||K===D.dash||K===D.dot||b1(K))return X=1,W(K);return U(K)}function W(K){if(K===D.colon)return $.consume(K),X=0,H;if((K===D.plusSign||K===D.dash||K===D.dot||b1(K))&&X++<L.autolinkSchemeSizeMax)return $.consume(K),W;return X=0,U(K)}function H(K){if(K===D.greaterThan)return $.exit(z.autolinkProtocol),$.enter(z.autolinkMarker),$.consume(K),$.exit(z.autolinkMarker),$.exit(z.autolink),J;if(K===D.eof||K===D.space||K===D.lessThan||z4(K))return G(K);return $.consume(K),H}function U(K){if(K===D.atSign)return $.consume(K),M;if(HJ(K))return $.consume(K),U;return G(K)}function M(K){return b1(K)?Q(K):G(K)}function Q(K){if(K===D.dot)return $.consume(K),X=0,M;if(K===D.greaterThan)return $.exit(z.autolinkProtocol).type=z.autolinkEmail,$.enter(z.autolinkMarker),$.consume(K),$.exit(z.autolinkMarker),$.exit(z.autolink),J;return F(K)}function F(K){if((K===D.dash||b1(K))&&X++<L.autolinkDomainSizeMax){let j=K===D.dash?F:Q;return $.consume(K),j}return G(K)}}var P0={partial:!0,tokenize:hW};function hW($,J,G){return X;function X(V){return l(V)?d($,q,z.linePrefix)(V):q(V)}function q(V){return V===D.eof||E(V)?J(V):G(V)}}var Y5={continuation:{tokenize:mW},exit:fW,name:"blockQuote",tokenize:yW};function yW($,J,G){let X=this;return q;function q(Y){if(Y===D.greaterThan){let W=X.containerState;if(R(W,"expected `containerState` to be defined in container"),!W.open)$.enter(z.blockQuote,{_container:!0}),W.open=!0;return $.enter(z.blockQuotePrefix),$.enter(z.blockQuoteMarker),$.consume(Y),$.exit(z.blockQuoteMarker),V}return G(Y)}function V(Y){if(l(Y))return $.enter(z.blockQuotePrefixWhitespace),$.consume(Y),$.exit(z.blockQuotePrefixWhitespace),$.exit(z.blockQuotePrefix),J;return $.exit(z.blockQuotePrefix),J(Y)}}function mW($,J,G){let X=this;return q;function q(Y){if(l(Y))return R(X.parser.constructs.disable.null,"expected `disable.null` to be populated"),d($,V,z.linePrefix,X.parser.constructs.disable.null.includes("codeIndented")?void 0:L.tabSize)(Y);return V(Y)}function V(Y){return $.attempt(Y5,J,G)(Y)}}function fW($){$.exit(z.blockQuote)}var V5={name:"characterEscape",tokenize:uW};function uW($,J,G){return X;function X(V){return R(V===D.backslash,"expected `\\`"),$.enter(z.characterEscape),$.enter(z.escapeMarker),$.consume(V),$.exit(z.escapeMarker),q}function q(V){if(MJ(V))return $.enter(z.characterEscapeValue),$.consume(V),$.exit(z.characterEscapeValue),$.exit(z.characterEscape),J;return G(V)}}var W5={name:"characterReference",tokenize:pW};function pW($,J,G){let X=this,q=0,V,Y;return W;function W(Q){return R(Q===D.ampersand,"expected `&`"),$.enter(z.characterReference),$.enter(z.characterReferenceMarker),$.consume(Q),$.exit(z.characterReferenceMarker),H}function H(Q){if(Q===D.numberSign)return $.enter(z.characterReferenceMarkerNumeric),$.consume(Q),$.exit(z.characterReferenceMarkerNumeric),U;return $.enter(z.characterReferenceValue),V=L.characterReferenceNamedSizeMax,Y=b1,M(Q)}function U(Q){if(Q===D.uppercaseX||Q===D.lowercaseX)return $.enter(z.characterReferenceMarkerHexadecimal),$.consume(Q),$.exit(z.characterReferenceMarkerHexadecimal),$.enter(z.characterReferenceValue),V=L.characterReferenceHexadecimalSizeMax,Y=UJ,M;return $.enter(z.characterReferenceValue),V=L.characterReferenceDecimalSizeMax,Y=D4,M(Q)}function M(Q){if(Q===D.semicolon&&q){let F=$.exit(z.characterReferenceValue);if(Y===b1&&!j2(X.sliceSerialize(F)))return G(Q);return $.enter(z.characterReferenceMarker),$.consume(Q),$.exit(z.characterReferenceMarker),$.exit(z.characterReference),J}if(Y(Q)&&q++<V)return $.consume(Q),M;return G(Q)}}var BJ={partial:!0,tokenize:rW},H5={concrete:!0,name:"codeFenced",tokenize:lW};function lW($,J,G){let X=this,q={partial:!0,tokenize:G1},V=0,Y=0,W;return H;function H(Z){return U(Z)}function U(Z){R(Z===D.graveAccent||Z===D.tilde,"expected `` ` `` or `~`");let $1=X.events[X.events.length-1];return V=$1&&$1[1].type===z.linePrefix?$1[2].sliceSerialize($1[1],!0).length:0,W=Z,$.enter(z.codeFenced),$.enter(z.codeFencedFence),$.enter(z.codeFencedFenceSequence),M(Z)}function M(Z){if(Z===W)return Y++,$.consume(Z),M;if(Y<L.codeFencedSequenceSizeMin)return G(Z);return $.exit(z.codeFencedFenceSequence),l(Z)?d($,Q,z.whitespace)(Z):Q(Z)}function Q(Z){if(Z===D.eof||E(Z))return $.exit(z.codeFencedFence),X.interrupt?J(Z):$.check(BJ,N,t)(Z);return $.enter(z.codeFencedFenceInfo),$.enter(z.chunkString,{contentType:L.contentTypeString}),F(Z)}function F(Z){if(Z===D.eof||E(Z))return $.exit(z.chunkString),$.exit(z.codeFencedFenceInfo),Q(Z);if(l(Z))return $.exit(z.chunkString),$.exit(z.codeFencedFenceInfo),d($,K,z.whitespace)(Z);if(Z===D.graveAccent&&Z===W)return G(Z);return $.consume(Z),F}function K(Z){if(Z===D.eof||E(Z))return Q(Z);return $.enter(z.codeFencedFenceMeta),$.enter(z.chunkString,{contentType:L.contentTypeString}),j(Z)}function j(Z){if(Z===D.eof||E(Z))return $.exit(z.chunkString),$.exit(z.codeFencedFenceMeta),Q(Z);if(Z===D.graveAccent&&Z===W)return G(Z);return $.consume(Z),j}function N(Z){return R(E(Z),"expected eol"),$.attempt(q,t,P)(Z)}function P(Z){return R(E(Z),"expected eol"),$.enter(z.lineEnding),$.consume(Z),$.exit(z.lineEnding),_}function _(Z){return V>0&&l(Z)?d($,k,z.linePrefix,V+1)(Z):k(Z)}function k(Z){if(Z===D.eof||E(Z))return $.check(BJ,N,t)(Z);return $.enter(z.codeFlowValue),h(Z)}function h(Z){if(Z===D.eof||E(Z))return $.exit(z.codeFlowValue),k(Z);return $.consume(Z),h}function t(Z){return $.exit(z.codeFenced),J(Z)}function G1(Z,$1,q1){let s=0;return X1;function X1(i){return R(E(i),"expected eol"),Z.enter(z.lineEnding),Z.consume(i),Z.exit(z.lineEnding),r1}function r1(i){return R(X.parser.constructs.disable.null,"expected `disable.null` to be populated"),Z.enter(z.codeFencedFence),l(i)?d(Z,J1,z.linePrefix,X.parser.constructs.disable.null.includes("codeIndented")?void 0:L.tabSize)(i):J1(i)}function J1(i){if(i===W)return Z.enter(z.codeFencedFenceSequence),x(i);return q1(i)}function x(i){if(i===W)return s++,Z.consume(i),x;if(s>=Y)return Z.exit(z.codeFencedFenceSequence),l(i)?d(Z,r,z.whitespace)(i):r(i);return q1(i)}function r(i){if(i===D.eof||E(i))return Z.exit(z.codeFencedFence),$1(i);return q1(i)}}}function rW($,J,G){let X=this;return q;function q(Y){if(Y===D.eof)return G(Y);return R(E(Y),"expected eol"),$.enter(z.lineEnding),$.consume(Y),$.exit(z.lineEnding),V}function V(Y){return X.parser.lazy[X.now().line]?G(Y):J(Y)}}var K4={name:"codeIndented",tokenize:cW},dW={partial:!0,tokenize:iW};function cW($,J,G){let X=this;return q;function q(U){return R(l(U)),$.enter(z.codeIndented),d($,V,z.linePrefix,L.tabSize+1)(U)}function V(U){let M=X.events[X.events.length-1];return M&&M[1].type===z.linePrefix&&M[2].sliceSerialize(M[1],!0).length>=L.tabSize?Y(U):G(U)}function Y(U){if(U===D.eof)return H(U);if(E(U))return $.attempt(dW,Y,H)(U);return $.enter(z.codeFlowValue),W(U)}function W(U){if(U===D.eof||E(U))return $.exit(z.codeFlowValue),Y(U);return $.consume(U),W}function H(U){return $.exit(z.codeIndented),J(U)}}function iW($,J,G){let X=this;return q;function q(Y){if(X.parser.lazy[X.now().line])return G(Y);if(E(Y))return $.enter(z.lineEnding),$.consume(Y),$.exit(z.lineEnding),q;return d($,V,z.linePrefix,L.tabSize+1)(Y)}function V(Y){let W=X.events[X.events.length-1];return W&&W[1].type===z.linePrefix&&W[2].sliceSerialize(W[1],!0).length>=L.tabSize?J(Y):E(Y)?q(Y):G(Y)}}var S6={name:"codeText",previous:OJ,resolve:oW,tokenize:nW};function oW($){let J=$.length-4,G=3,X,q;if(($[G][1].type===z.lineEnding||$[G][1].type==="space")&&($[J][1].type===z.lineEnding||$[J][1].type==="space")){X=G;while(++X<J)if($[X][1].type===z.codeTextData){$[G][1].type=z.codeTextPadding,$[J][1].type=z.codeTextPadding,G+=2,J-=2;break}}X=G-1,J++;while(++X<=J)if(q===void 0){if(X!==J&&$[X][1].type!==z.lineEnding)q=X}else if(X===J||$[X][1].type===z.lineEnding){if($[q][1].type=z.codeTextData,X!==q+2)$[q][1].end=$[X-1][1].end,$.splice(q+2,X-q-2),J-=X-q-2,X=q+2;q=void 0}return $}function OJ($){return $!==D.graveAccent||this.events[this.events.length-1][1].type===z.characterEscape}function nW($,J,G){let X=this,q=0,V,Y;return W;function W(F){return R(F===D.graveAccent,"expected `` ` ``"),R(OJ.call(X,X.previous),"expected correct previous"),$.enter(z.codeText),$.enter(z.codeTextSequence),H(F)}function H(F){if(F===D.graveAccent)return $.consume(F),q++,H;return $.exit(z.codeTextSequence),U(F)}function U(F){if(F===D.eof)return G(F);if(F===D.space)return $.enter("space"),$.consume(F),$.exit("space"),U;if(F===D.graveAccent)return Y=$.enter(z.codeTextSequence),V=0,Q(F);if(E(F))return $.enter(z.lineEnding),$.consume(F),$.exit(z.lineEnding),U;return $.enter(z.codeTextData),M(F)}function M(F){if(F===D.eof||F===D.space||F===D.graveAccent||E(F))return $.exit(z.codeTextData),U(F);return $.consume(F),M}function Q(F){if(F===D.graveAccent)return $.consume(F),V++,Q;if(V===q)return $.exit(z.codeTextSequence),$.exit(z.codeText),J(F);return Y.type=z.codeTextData,M(F)}}class C6{constructor($){this.left=$?[...$]:[],this.right=[]}get($){if($<0||$>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+$+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");if($<this.left.length)return this.left[$];return this.right[this.right.length-$+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice($,J){let G=J===null||J===void 0?Number.POSITIVE_INFINITY:J;if(G<this.left.length)return this.left.slice($,G);if($>this.left.length)return this.right.slice(this.right.length-G+this.left.length,this.right.length-$+this.left.length).reverse();return this.left.slice($).concat(this.right.slice(this.right.length-G+this.left.length).reverse())}splice($,J,G){let X=J||0;this.setCursor(Math.trunc($));let q=this.right.splice(this.right.length-X,Number.POSITIVE_INFINITY);if(G)F4(this.left,G);return q.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push($){this.setCursor(Number.POSITIVE_INFINITY),this.left.push($)}pushMany($){this.setCursor(Number.POSITIVE_INFINITY),F4(this.left,$)}unshift($){this.setCursor(0),this.right.push($)}unshiftMany($){this.setCursor(0),F4(this.right,$.reverse())}setCursor($){if($===this.left.length||$>this.left.length&&this.right.length===0||$<0&&this.left.length===0)return;if($<this.left.length){let J=this.left.splice($,Number.POSITIVE_INFINITY);F4(this.right,J.reverse())}else{let J=this.right.splice(this.left.length+this.right.length-$,Number.POSITIVE_INFINITY);F4(this.left,J.reverse())}}}function F4($,J){let G=0;if(J.length<L.v8MaxSafeChunkSize)$.push(...J);else while(G<J.length)$.push(...J.slice(G,G+L.v8MaxSafeChunkSize)),G+=L.v8MaxSafeChunkSize}function U5($){let J={},G=-1,X,q,V,Y,W,H,U,M=new C6($);while(++G<M.length){while(G in J)G=J[G];if(X=M.get(G),G&&X[1].type===z.chunkFlow&&M.get(G-1)[1].type===z.listItemPrefix){if(R(X[1]._tokenizer,"expected `_tokenizer` on subtokens"),H=X[1]._tokenizer.events,V=0,V<H.length&&H[V][1].type===z.lineEndingBlank)V+=2;if(V<H.length&&H[V][1].type===z.content)while(++V<H.length){if(H[V][1].type===z.content)break;if(H[V][1].type===z.chunkText)H[V][1]._isInFirstContentOfListItem=!0,V++}}if(X[0]==="enter"){if(X[1].contentType)Object.assign(J,aW(M,G)),G=J[G],U=!0}else if(X[1]._container){V=G,q=void 0;while(V--)if(Y=M.get(V),Y[1].type===z.lineEnding||Y[1].type===z.lineEndingBlank){if(Y[0]==="enter"){if(q)M.get(q)[1].type=z.lineEndingBlank;Y[1].type=z.lineEnding,q=V}}else if(Y[1].type===z.linePrefix||Y[1].type===z.listItemIndent);else break;if(q)X[1].end={...M.get(q)[1].start},W=M.slice(q,G),W.unshift(X),M.splice(q,G-q+1,W)}}return w1($,0,Number.POSITIVE_INFINITY,M.slice(0)),!U}function aW($,J){let G=$.get(J)[1],X=$.get(J)[2],q=J-1,V=[];R(G.contentType,"expected `contentType` on subtokens");let Y=G._tokenizer;if(!Y){if(Y=X.parser[G.contentType](G.start),G._contentTypeTextTrailing)Y._contentTypeTextTrailing=!0}let W=Y.events,H=[],U={},M,Q,F=-1,K=G,j=0,N=0,P=[N];while(K){while($.get(++q)[1]!==K);if(R(!Q||K.previous===Q,"expected previous to match"),R(!Q||Q.next===K,"expected next to match"),V.push(q),!K._tokenizer){if(M=X.sliceStream(K),!K.next)M.push(D.eof);if(Q)Y.defineSkip(K.start);if(K._isInFirstContentOfListItem)Y._gfmTasklistFirstContentOfListItem=!0;if(Y.write(M),K._isInFirstContentOfListItem)Y._gfmTasklistFirstContentOfListItem=void 0}Q=K,K=K.next}K=G;while(++F<W.length)if(W[F][0]==="exit"&&W[F-1][0]==="enter"&&W[F][1].type===W[F-1][1].type&&W[F][1].start.line!==W[F][1].end.line)R(K,"expected a current token"),N=F+1,P.push(N),K._tokenizer=void 0,K.previous=void 0,K=K.next;if(Y.events=[],K)K._tokenizer=void 0,K.previous=void 0,R(!K.next,"expected no next token");else P.pop();F=P.length;while(F--){let _=W.slice(P[F],P[F+1]),k=V.pop();R(k!==void 0,"expected a start position when splicing"),H.push([k,k+_.length-1]),$.splice(k,2,_)}H.reverse(),F=-1;while(++F<H.length)U[j+H[F][0]]=j+H[F][1],j+=H[F][1]-H[F][0]-1;return U}var b6={resolve:tW,tokenize:eW},sW={partial:!0,tokenize:$H};function tW($){return U5($),$}function eW($,J){let G;return X;function X(W){return R(W!==D.eof&&!E(W),"expected no eof or eol"),$.enter(z.content),G=$.enter(z.chunkContent,{contentType:L.contentTypeContent}),q(W)}function q(W){if(W===D.eof)return V(W);if(E(W))return $.check(sW,Y,V)(W);return $.consume(W),q}function V(W){return $.exit(z.chunkContent),$.exit(z.content),J(W)}function Y(W){return R(E(W),"expected eol"),$.consume(W),$.exit(z.chunkContent),R(G,"expected previous token"),G.next=$.enter(z.chunkContent,{contentType:L.contentTypeContent,previous:G}),G=G.next,q}}function $H($,J,G){let X=this;return q;function q(Y){return R(E(Y),"expected a line ending"),$.exit(z.chunkContent),$.enter(z.lineEnding),$.consume(Y),$.exit(z.lineEnding),d($,V,z.linePrefix)}function V(Y){if(Y===D.eof||E(Y))return G(Y);R(X.parser.constructs.disable.null,"expected `disable.null` to be populated");let W=X.events[X.events.length-1];if(!X.parser.constructs.disable.null.includes("codeIndented")&&W&&W[1].type===z.linePrefix&&W[2].sliceSerialize(W[1],!0).length>=L.tabSize)return J(Y);return $.interrupt(X.parser.constructs.flow,G,J)(Y)}}function M5($,J,G,X,q,V,Y,W,H){let U=H||Number.POSITIVE_INFINITY,M=0;return Q;function Q(_){if(_===D.lessThan)return $.enter(X),$.enter(q),$.enter(V),$.consume(_),$.exit(V),F;if(_===D.eof||_===D.space||_===D.rightParenthesis||z4(_))return G(_);return $.enter(X),$.enter(Y),$.enter(W),$.enter(z.chunkString,{contentType:L.contentTypeString}),N(_)}function F(_){if(_===D.greaterThan)return $.enter(V),$.consume(_),$.exit(V),$.exit(q),$.exit(X),J;return $.enter(W),$.enter(z.chunkString,{contentType:L.contentTypeString}),K(_)}function K(_){if(_===D.greaterThan)return $.exit(z.chunkString),$.exit(W),F(_);if(_===D.eof||_===D.lessThan||E(_))return G(_);return $.consume(_),_===D.backslash?j:K}function j(_){if(_===D.lessThan||_===D.greaterThan||_===D.backslash)return $.consume(_),K;return K(_)}function N(_){if(!M&&(_===D.eof||_===D.rightParenthesis||H1(_)))return $.exit(z.chunkString),$.exit(W),$.exit(Y),$.exit(X),J(_);if(M<U&&_===D.leftParenthesis)return $.consume(_),M++,N;if(_===D.rightParenthesis)return $.consume(_),M--,N;if(_===D.eof||_===D.space||_===D.leftParenthesis||z4(_))return G(_);return $.consume(_),_===D.backslash?P:N}function P(_){if(_===D.leftParenthesis||_===D.rightParenthesis||_===D.backslash)return $.consume(_),N;return N(_)}}function z5($,J,G,X,q,V){let Y=this,W=0,H;return U;function U(K){return R(K===D.leftSquareBracket,"expected `[`"),$.enter(X),$.enter(q),$.consume(K),$.exit(q),$.enter(V),M}function M(K){if(W>L.linkReferenceSizeMax||K===D.eof||K===D.leftSquareBracket||K===D.rightSquareBracket&&!H||K===D.caret&&!W&&"_hiddenFootnoteSupport"in Y.parser.constructs)return G(K);if(K===D.rightSquareBracket)return $.exit(V),$.enter(q),$.consume(K),$.exit(q),$.exit(X),J;if(E(K))return $.enter(z.lineEnding),$.consume(K),$.exit(z.lineEnding),M;return $.enter(z.chunkString,{contentType:L.contentTypeString}),Q(K)}function Q(K){if(K===D.eof||K===D.leftSquareBracket||K===D.rightSquareBracket||E(K)||W++>L.linkReferenceSizeMax)return $.exit(z.chunkString),M(K);if($.consume(K),!H)H=!l(K);return K===D.backslash?F:Q}function F(K){if(K===D.leftSquareBracket||K===D.backslash||K===D.rightSquareBracket)return $.consume(K),W++,Q;return Q(K)}}function D5($,J,G,X,q,V){let Y;return W;function W(F){if(F===D.quotationMark||F===D.apostrophe||F===D.leftParenthesis)return $.enter(X),$.enter(q),$.consume(F),$.exit(q),Y=F===D.leftParenthesis?D.rightParenthesis:F,H;return G(F)}function H(F){if(F===Y)return $.enter(q),$.consume(F),$.exit(q),$.exit(X),J;return $.enter(V),U(F)}function U(F){if(F===Y)return $.exit(V),H(Y);if(F===D.eof)return G(F);if(E(F))return $.enter(z.lineEnding),$.consume(F),$.exit(z.lineEnding),d($,U,z.linePrefix);return $.enter(z.chunkString,{contentType:L.contentTypeString}),M(F)}function M(F){if(F===Y||F===D.eof||E(F))return $.exit(z.chunkString),U(F);return $.consume(F),F===D.backslash?Q:M}function Q(F){if(F===Y||F===D.backslash)return $.consume(F),M;return M(F)}}function n0($,J){let G;return X;function X(q){if(E(q))return $.enter(z.lineEnding),$.consume(q),$.exit(z.lineEnding),G=!0,X;if(l(q))return d($,X,G?z.linePrefix:z.lineSuffix)(q);return J(q)}}var x6={name:"definition",tokenize:GH},JH={partial:!0,tokenize:XH};function GH($,J,G){let X=this,q;return V;function V(K){return $.enter(z.definition),Y(K)}function Y(K){return R(K===D.leftSquareBracket,"expected `[`"),z5.call(X,$,W,G,z.definitionLabel,z.definitionLabelMarker,z.definitionLabelString)(K)}function W(K){if(q=F0(X.sliceSerialize(X.events[X.events.length-1][1]).slice(1,-1)),K===D.colon)return $.enter(z.definitionMarker),$.consume(K),$.exit(z.definitionMarker),H;return G(K)}function H(K){return H1(K)?n0($,U)(K):U(K)}function U(K){return M5($,M,G,z.definitionDestination,z.definitionDestinationLiteral,z.definitionDestinationLiteralMarker,z.definitionDestinationRaw,z.definitionDestinationString)(K)}function M(K){return $.attempt(JH,Q,Q)(K)}function Q(K){return l(K)?d($,F,z.whitespace)(K):F(K)}function F(K){if(K===D.eof||E(K))return $.exit(z.definition),X.parser.defined.push(q),J(K);return G(K)}}function XH($,J,G){return X;function X(W){return H1(W)?n0($,q)(W):G(W)}function q(W){return D5($,V,G,z.definitionTitle,z.definitionTitleMarker,z.definitionTitleString)(W)}function V(W){return l(W)?d($,Y,z.whitespace)(W):Y(W)}function Y(W){return W===D.eof||E(W)?J(W):G(W)}}var v6={name:"hardBreakEscape",tokenize:qH};function qH($,J,G){return X;function X(V){return R(V===D.backslash,"expected `\\`"),$.enter(z.hardBreakEscape),$.consume(V),q}function q(V){if(E(V))return $.exit(z.hardBreakEscape),J(V);return G(V)}}var k6={name:"headingAtx",resolve:YH,tokenize:VH};function YH($,J){let G=$.length-2,X=3,q,V;if($[X][1].type===z.whitespace)X+=2;if(G-2>X&&$[G][1].type===z.whitespace)G-=2;if($[G][1].type===z.atxHeadingSequence&&(X===G-1||G-4>X&&$[G-2][1].type===z.whitespace))G-=X+1===G?2:4;if(G>X)q={type:z.atxHeadingText,start:$[X][1].start,end:$[G][1].end},V={type:z.chunkText,start:$[X][1].start,end:$[G][1].end,contentType:L.contentTypeText},w1($,X,G-X+1,[["enter",q,J],["enter",V,J],["exit",V,J],["exit",q,J]]);return $}function VH($,J,G){let X=0;return q;function q(M){return $.enter(z.atxHeading),V(M)}function V(M){return R(M===D.numberSign,"expected `#`"),$.enter(z.atxHeadingSequence),Y(M)}function Y(M){if(M===D.numberSign&&X++<L.atxHeadingOpeningFenceSizeMax)return $.consume(M),Y;if(M===D.eof||H1(M))return $.exit(z.atxHeadingSequence),W(M);return G(M)}function W(M){if(M===D.numberSign)return $.enter(z.atxHeadingSequence),H(M);if(M===D.eof||E(M))return $.exit(z.atxHeading),J(M);if(l(M))return d($,W,z.whitespace)(M);return $.enter(z.atxHeadingText),U(M)}function H(M){if(M===D.numberSign)return $.consume(M),H;return $.exit(z.atxHeadingSequence),W(M)}function U(M){if(M===D.eof||M===D.numberSign||H1(M))return $.exit(z.atxHeadingText),W(M);return $.consume(M),U}}var AJ=["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"],g6=["pre","script","style","textarea"];var h6={concrete:!0,name:"htmlFlow",resolveTo:UH,tokenize:MH},WH={partial:!0,tokenize:DH},HH={partial:!0,tokenize:zH};function UH($){let J=$.length;while(J--)if($[J][0]==="enter"&&$[J][1].type===z.htmlFlow)break;if(J>1&&$[J-2][1].type===z.linePrefix)$[J][1].start=$[J-2][1].start,$[J+1][1].start=$[J-2][1].start,$.splice(J-2,2);return $}function MH($,J,G){let X=this,q,V,Y,W,H;return U;function U(O){return M(O)}function M(O){return R(O===D.lessThan,"expected `<`"),$.enter(z.htmlFlow),$.enter(z.htmlFlowData),$.consume(O),Q}function Q(O){if(O===D.exclamationMark)return $.consume(O),F;if(O===D.slash)return $.consume(O),V=!0,N;if(O===D.questionMark)return $.consume(O),q=L.htmlInstruction,X.interrupt?J:B;if(p1(O))return R(O!==null),$.consume(O),Y=String.fromCharCode(O),P;return G(O)}function F(O){if(O===D.dash)return $.consume(O),q=L.htmlComment,K;if(O===D.leftSquareBracket)return $.consume(O),q=L.htmlCdata,W=0,j;if(p1(O))return $.consume(O),q=L.htmlDeclaration,X.interrupt?J:B;return G(O)}function K(O){if(O===D.dash)return $.consume(O),X.interrupt?J:B;return G(O)}function j(O){let h1=L.cdataOpeningString;if(O===h1.charCodeAt(W++)){if($.consume(O),W===h1.length)return X.interrupt?J:J1;return j}return G(O)}function N(O){if(p1(O))return R(O!==null),$.consume(O),Y=String.fromCharCode(O),P;return G(O)}function P(O){if(O===D.eof||O===D.slash||O===D.greaterThan||H1(O)){let h1=O===D.slash,y0=Y.toLowerCase();if(!h1&&!V&&g6.includes(y0))return q=L.htmlRaw,X.interrupt?J(O):J1(O);if(AJ.includes(Y.toLowerCase())){if(q=L.htmlBasic,h1)return $.consume(O),_;return X.interrupt?J(O):J1(O)}return q=L.htmlComplete,X.interrupt&&!X.parser.lazy[X.now().line]?G(O):V?k(O):h(O)}if(O===D.dash||b1(O))return $.consume(O),Y+=String.fromCharCode(O),P;return G(O)}function _(O){if(O===D.greaterThan)return $.consume(O),X.interrupt?J:J1;return G(O)}function k(O){if(l(O))return $.consume(O),k;return X1(O)}function h(O){if(O===D.slash)return $.consume(O),X1;if(O===D.colon||O===D.underscore||p1(O))return $.consume(O),t;if(l(O))return $.consume(O),h;return X1(O)}function t(O){if(O===D.dash||O===D.dot||O===D.colon||O===D.underscore||b1(O))return $.consume(O),t;return G1(O)}function G1(O){if(O===D.equalsTo)return $.consume(O),Z;if(l(O))return $.consume(O),G1;return h(O)}function Z(O){if(O===D.eof||O===D.lessThan||O===D.equalsTo||O===D.greaterThan||O===D.graveAccent)return G(O);if(O===D.quotationMark||O===D.apostrophe)return $.consume(O),H=O,$1;if(l(O))return $.consume(O),Z;return q1(O)}function $1(O){if(O===H)return $.consume(O),H=null,s;if(O===D.eof||E(O))return G(O);return $.consume(O),$1}function q1(O){if(O===D.eof||O===D.quotationMark||O===D.apostrophe||O===D.slash||O===D.lessThan||O===D.equalsTo||O===D.greaterThan||O===D.graveAccent||H1(O))return G1(O);return $.consume(O),q1}function s(O){if(O===D.slash||O===D.greaterThan||l(O))return h(O);return G(O)}function X1(O){if(O===D.greaterThan)return $.consume(O),r1;return G(O)}function r1(O){if(O===D.eof||E(O))return J1(O);if(l(O))return $.consume(O),r1;return G(O)}function J1(O){if(O===D.dash&&q===L.htmlComment)return $.consume(O),V1;if(O===D.lessThan&&q===L.htmlRaw)return $.consume(O),Q1;if(O===D.greaterThan&&q===L.htmlDeclaration)return $.consume(O),c1;if(O===D.questionMark&&q===L.htmlInstruction)return $.consume(O),B;if(O===D.rightSquareBracket&&q===L.htmlCdata)return $.consume(O),G0;if(E(O)&&(q===L.htmlBasic||q===L.htmlComplete))return $.exit(z.htmlFlowData),$.check(WH,U0,x)(O);if(O===D.eof||E(O))return $.exit(z.htmlFlowData),x(O);return $.consume(O),J1}function x(O){return $.check(HH,r,U0)(O)}function r(O){return R(E(O)),$.enter(z.lineEnding),$.consume(O),$.exit(z.lineEnding),i}function i(O){if(O===D.eof||E(O))return x(O);return $.enter(z.htmlFlowData),J1(O)}function V1(O){if(O===D.dash)return $.consume(O),B;return J1(O)}function Q1(O){if(O===D.slash)return $.consume(O),Y="",d1;return J1(O)}function d1(O){if(O===D.greaterThan){let h1=Y.toLowerCase();if(g6.includes(h1))return $.consume(O),c1;return J1(O)}if(p1(O)&&Y.length<L.htmlRawSizeMax)return R(O!==null),$.consume(O),Y+=String.fromCharCode(O),d1;return J1(O)}function G0(O){if(O===D.rightSquareBracket)return $.consume(O),B;return J1(O)}function B(O){if(O===D.greaterThan)return $.consume(O),c1;if(O===D.dash&&q===L.htmlComment)return $.consume(O),B;return J1(O)}function c1(O){if(O===D.eof||E(O))return $.exit(z.htmlFlowData),U0(O);return $.consume(O),c1}function U0(O){return $.exit(z.htmlFlow),J(O)}}function zH($,J,G){let X=this;return q;function q(Y){if(E(Y))return $.enter(z.lineEnding),$.consume(Y),$.exit(z.lineEnding),V;return G(Y)}function V(Y){return X.parser.lazy[X.now().line]?G(Y):J(Y)}}function DH($,J,G){return X;function X(q){return R(E(q),"expected a line ending"),$.enter(z.lineEnding),$.consume(q),$.exit(z.lineEnding),$.attempt(P0,J,G)}}var y6={name:"htmlText",tokenize:QH};function QH($,J,G){let X=this,q,V,Y;return W;function W(B){return R(B===D.lessThan,"expected `<`"),$.enter(z.htmlText),$.enter(z.htmlTextData),$.consume(B),H}function H(B){if(B===D.exclamationMark)return $.consume(B),U;if(B===D.slash)return $.consume(B),G1;if(B===D.questionMark)return $.consume(B),h;if(p1(B))return $.consume(B),q1;return G(B)}function U(B){if(B===D.dash)return $.consume(B),M;if(B===D.leftSquareBracket)return $.consume(B),V=0,j;if(p1(B))return $.consume(B),k;return G(B)}function M(B){if(B===D.dash)return $.consume(B),K;return G(B)}function Q(B){if(B===D.eof)return G(B);if(B===D.dash)return $.consume(B),F;if(E(B))return Y=Q,Q1(B);return $.consume(B),Q}function F(B){if(B===D.dash)return $.consume(B),K;return Q(B)}function K(B){return B===D.greaterThan?V1(B):B===D.dash?F(B):Q(B)}function j(B){let c1=L.cdataOpeningString;if(B===c1.charCodeAt(V++))return $.consume(B),V===c1.length?N:j;return G(B)}function N(B){if(B===D.eof)return G(B);if(B===D.rightSquareBracket)return $.consume(B),P;if(E(B))return Y=N,Q1(B);return $.consume(B),N}function P(B){if(B===D.rightSquareBracket)return $.consume(B),_;return N(B)}function _(B){if(B===D.greaterThan)return V1(B);if(B===D.rightSquareBracket)return $.consume(B),_;return N(B)}function k(B){if(B===D.eof||B===D.greaterThan)return V1(B);if(E(B))return Y=k,Q1(B);return $.consume(B),k}function h(B){if(B===D.eof)return G(B);if(B===D.questionMark)return $.consume(B),t;if(E(B))return Y=h,Q1(B);return $.consume(B),h}function t(B){return B===D.greaterThan?V1(B):h(B)}function G1(B){if(p1(B))return $.consume(B),Z;return G(B)}function Z(B){if(B===D.dash||b1(B))return $.consume(B),Z;return $1(B)}function $1(B){if(E(B))return Y=$1,Q1(B);if(l(B))return $.consume(B),$1;return V1(B)}function q1(B){if(B===D.dash||b1(B))return $.consume(B),q1;if(B===D.slash||B===D.greaterThan||H1(B))return s(B);return G(B)}function s(B){if(B===D.slash)return $.consume(B),V1;if(B===D.colon||B===D.underscore||p1(B))return $.consume(B),X1;if(E(B))return Y=s,Q1(B);if(l(B))return $.consume(B),s;return V1(B)}function X1(B){if(B===D.dash||B===D.dot||B===D.colon||B===D.underscore||b1(B))return $.consume(B),X1;return r1(B)}function r1(B){if(B===D.equalsTo)return $.consume(B),J1;if(E(B))return Y=r1,Q1(B);if(l(B))return $.consume(B),r1;return s(B)}function J1(B){if(B===D.eof||B===D.lessThan||B===D.equalsTo||B===D.greaterThan||B===D.graveAccent)return G(B);if(B===D.quotationMark||B===D.apostrophe)return $.consume(B),q=B,x;if(E(B))return Y=J1,Q1(B);if(l(B))return $.consume(B),J1;return $.consume(B),r}function x(B){if(B===q)return $.consume(B),q=void 0,i;if(B===D.eof)return G(B);if(E(B))return Y=x,Q1(B);return $.consume(B),x}function r(B){if(B===D.eof||B===D.quotationMark||B===D.apostrophe||B===D.lessThan||B===D.equalsTo||B===D.graveAccent)return G(B);if(B===D.slash||B===D.greaterThan||H1(B))return s(B);return $.consume(B),r}function i(B){if(B===D.slash||B===D.greaterThan||H1(B))return s(B);return G(B)}function V1(B){if(B===D.greaterThan)return $.consume(B),$.exit(z.htmlTextData),$.exit(z.htmlText),J;return G(B)}function Q1(B){return R(Y,"expected return state"),R(E(B),"expected eol"),$.exit(z.htmlTextData),$.enter(z.lineEnding),$.consume(B),$.exit(z.lineEnding),d1}function d1(B){return R(X.parser.constructs.disable.null,"expected `disable.null` to be populated"),l(B)?d($,G0,z.linePrefix,X.parser.constructs.disable.null.includes("codeIndented")?void 0:L.tabSize)(B):G0(B)}function G0(B){return $.enter(z.htmlTextData),Y(B)}}var a0={name:"labelEnd",resolveAll:BH,resolveTo:OH,tokenize:AH},KH={tokenize:wH},FH={tokenize:jH},RH={tokenize:NH};function BH($){let J=-1,G=[];while(++J<$.length){let X=$[J][1];if(G.push($[J]),X.type===z.labelImage||X.type===z.labelLink||X.type===z.labelEnd){let q=X.type===z.labelImage?4:2;X.type=z.data,J+=q}}if($.length!==G.length)w1($,0,$.length,G);return $}function OH($,J){let G=$.length,X=0,q,V,Y,W;while(G--)if(q=$[G][1],V){if(q.type===z.link||q.type===z.labelLink&&q._inactive)break;if($[G][0]==="enter"&&q.type===z.labelLink)q._inactive=!0}else if(Y){if($[G][0]==="enter"&&(q.type===z.labelImage||q.type===z.labelLink)&&!q._balanced){if(V=G,q.type!==z.labelLink){X=2;break}}}else if(q.type===z.labelEnd)Y=G;R(V!==void 0,"`open` is supposed to be found"),R(Y!==void 0,"`close` is supposed to be found");let H={type:$[V][1].type===z.labelLink?z.link:z.image,start:{...$[V][1].start},end:{...$[$.length-1][1].end}},U={type:z.label,start:{...$[V][1].start},end:{...$[Y][1].end}},M={type:z.labelText,start:{...$[V+X+2][1].end},end:{...$[Y-2][1].start}};return W=[["enter",H,J],["enter",U,J]],W=C1(W,$.slice(V+1,V+X+3)),W=C1(W,[["enter",M,J]]),R(J.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),W=C1(W,Z2(J.parser.constructs.insideSpan.null,$.slice(V+X+4,Y-3),J)),W=C1(W,[["exit",M,J],$[Y-2],$[Y-1],["exit",U,J]]),W=C1(W,$.slice(Y+1)),W=C1(W,[["exit",H,J]]),w1($,V,$.length,W),$}function AH($,J,G){let X=this,q=X.events.length,V,Y;while(q--)if((X.events[q][1].type===z.labelImage||X.events[q][1].type===z.labelLink)&&!X.events[q][1]._balanced){V=X.events[q][1];break}return W;function W(F){if(R(F===D.rightSquareBracket,"expected `]`"),!V)return G(F);if(V._inactive)return Q(F);return Y=X.parser.defined.includes(F0(X.sliceSerialize({start:V.end,end:X.now()}))),$.enter(z.labelEnd),$.enter(z.labelMarker),$.consume(F),$.exit(z.labelMarker),$.exit(z.labelEnd),H}function H(F){if(F===D.leftParenthesis)return $.attempt(KH,M,Y?M:Q)(F);if(F===D.leftSquareBracket)return $.attempt(FH,M,Y?U:Q)(F);return Y?M(F):Q(F)}function U(F){return $.attempt(RH,M,Q)(F)}function M(F){return J(F)}function Q(F){return V._balanced=!0,G(F)}}function wH($,J,G){return X;function X(Q){return R(Q===D.leftParenthesis,"expected left paren"),$.enter(z.resource),$.enter(z.resourceMarker),$.consume(Q),$.exit(z.resourceMarker),q}function q(Q){return H1(Q)?n0($,V)(Q):V(Q)}function V(Q){if(Q===D.rightParenthesis)return M(Q);return M5($,Y,W,z.resourceDestination,z.resourceDestinationLiteral,z.resourceDestinationLiteralMarker,z.resourceDestinationRaw,z.resourceDestinationString,L.linkResourceDestinationBalanceMax)(Q)}function Y(Q){return H1(Q)?n0($,H)(Q):M(Q)}function W(Q){return G(Q)}function H(Q){if(Q===D.quotationMark||Q===D.apostrophe||Q===D.leftParenthesis)return D5($,U,G,z.resourceTitle,z.resourceTitleMarker,z.resourceTitleString)(Q);return M(Q)}function U(Q){return H1(Q)?n0($,M)(Q):M(Q)}function M(Q){if(Q===D.rightParenthesis)return $.enter(z.resourceMarker),$.consume(Q),$.exit(z.resourceMarker),$.exit(z.resource),J;return G(Q)}}function jH($,J,G){let X=this;return q;function q(W){return R(W===D.leftSquareBracket,"expected left bracket"),z5.call(X,$,V,Y,z.reference,z.referenceMarker,z.referenceString)(W)}function V(W){return X.parser.defined.includes(F0(X.sliceSerialize(X.events[X.events.length-1][1]).slice(1,-1)))?J(W):G(W)}function Y(W){return G(W)}}function NH($,J,G){return X;function X(V){return R(V===D.leftSquareBracket,"expected left bracket"),$.enter(z.reference),$.enter(z.referenceMarker),$.consume(V),$.exit(z.referenceMarker),q}function q(V){if(V===D.rightSquareBracket)return $.enter(z.referenceMarker),$.consume(V),$.exit(z.referenceMarker),$.exit(z.reference),J;return G(V)}}var m6={name:"labelStartImage",resolveAll:a0.resolveAll,tokenize:ZH};function ZH($,J,G){let X=this;return q;function q(W){return R(W===D.exclamationMark,"expected `!`"),$.enter(z.labelImage),$.enter(z.labelImageMarker),$.consume(W),$.exit(z.labelImageMarker),V}function V(W){if(W===D.leftSquareBracket)return $.enter(z.labelMarker),$.consume(W),$.exit(z.labelMarker),$.exit(z.labelImage),Y;return G(W)}function Y(W){return W===D.caret&&"_hiddenFootnoteSupport"in X.parser.constructs?G(W):J(W)}}var f6={name:"labelStartLink",resolveAll:a0.resolveAll,tokenize:_H};function _H($,J,G){let X=this;return q;function q(Y){return R(Y===D.leftSquareBracket,"expected `[`"),$.enter(z.labelLink),$.enter(z.labelMarker),$.consume(Y),$.exit(z.labelMarker),$.exit(z.labelLink),V}function V(Y){return Y===D.caret&&"_hiddenFootnoteSupport"in X.parser.constructs?G(Y):J(Y)}}var R4={name:"lineEnding",tokenize:PH};function PH($,J){return G;function G(X){return R(E(X),"expected eol"),$.enter(z.lineEnding),$.consume(X),$.exit(z.lineEnding),d($,J,z.linePrefix)}}var s0={name:"thematicBreak",tokenize:LH};function LH($,J,G){let X=0,q;return V;function V(U){return $.enter(z.thematicBreak),Y(U)}function Y(U){return R(U===D.asterisk||U===D.dash||U===D.underscore,"expected `*`, `-`, or `_`"),q=U,W(U)}function W(U){if(U===q)return $.enter(z.thematicBreakSequence),H(U);if(X>=L.thematicBreakMarkerCountMin&&(U===D.eof||E(U)))return $.exit(z.thematicBreak),J(U);return G(U)}function H(U){if(U===q)return $.consume(U),X++,H;return $.exit(z.thematicBreakSequence),l(U)?d($,W,z.whitespace)(U):W(U)}}var _1={continuation:{tokenize:SH},exit:bH,name:"list",tokenize:EH},TH={partial:!0,tokenize:xH},IH={partial:!0,tokenize:CH};function EH($,J,G){let X=this,q=X.events[X.events.length-1],V=q&&q[1].type===z.linePrefix?q[2].sliceSerialize(q[1],!0).length:0,Y=0;return W;function W(K){R(X.containerState,"expected state");let j=X.containerState.type||(K===D.asterisk||K===D.plusSign||K===D.dash?z.listUnordered:z.listOrdered);if(j===z.listUnordered?!X.containerState.marker||K===X.containerState.marker:D4(K)){if(!X.containerState.type)X.containerState.type=j,$.enter(j,{_container:!0});if(j===z.listUnordered)return $.enter(z.listItemPrefix),K===D.asterisk||K===D.dash?$.check(s0,G,U)(K):U(K);if(!X.interrupt||K===D.digit1)return $.enter(z.listItemPrefix),$.enter(z.listItemValue),H(K)}return G(K)}function H(K){if(R(X.containerState,"expected state"),D4(K)&&++Y<L.listItemValueSizeMax)return $.consume(K),H;if((!X.interrupt||Y<2)&&(X.containerState.marker?K===X.containerState.marker:K===D.rightParenthesis||K===D.dot))return $.exit(z.listItemValue),U(K);return G(K)}function U(K){return R(X.containerState,"expected state"),R(K!==D.eof,"eof (`null`) is not a marker"),$.enter(z.listItemMarker),$.consume(K),$.exit(z.listItemMarker),X.containerState.marker=X.containerState.marker||K,$.check(P0,X.interrupt?G:M,$.attempt(TH,F,Q))}function M(K){return R(X.containerState,"expected state"),X.containerState.initialBlankLine=!0,V++,F(K)}function Q(K){if(l(K))return $.enter(z.listItemPrefixWhitespace),$.consume(K),$.exit(z.listItemPrefixWhitespace),F;return G(K)}function F(K){return R(X.containerState,"expected state"),X.containerState.size=V+X.sliceSerialize($.exit(z.listItemPrefix),!0).length,J(K)}}function SH($,J,G){let X=this;return R(X.containerState,"expected state"),X.containerState._closeFlow=void 0,$.check(P0,q,V);function q(W){return R(X.containerState,"expected state"),R(typeof X.containerState.size==="number","expected size"),X.containerState.furtherBlankLines=X.containerState.furtherBlankLines||X.containerState.initialBlankLine,d($,J,z.listItemIndent,X.containerState.size+1)(W)}function V(W){if(R(X.containerState,"expected state"),X.containerState.furtherBlankLines||!l(W))return X.containerState.furtherBlankLines=void 0,X.containerState.initialBlankLine=void 0,Y(W);return X.containerState.furtherBlankLines=void 0,X.containerState.initialBlankLine=void 0,$.attempt(IH,J,Y)(W)}function Y(W){return R(X.containerState,"expected state"),X.containerState._closeFlow=!0,X.interrupt=void 0,R(X.parser.constructs.disable.null,"expected `disable.null` to be populated"),d($,$.attempt(_1,J,G),z.linePrefix,X.parser.constructs.disable.null.includes("codeIndented")?void 0:L.tabSize)(W)}}function CH($,J,G){let X=this;return R(X.containerState,"expected state"),R(typeof X.containerState.size==="number","expected size"),d($,q,z.listItemIndent,X.containerState.size+1);function q(V){R(X.containerState,"expected state");let Y=X.events[X.events.length-1];return Y&&Y[1].type===z.listItemIndent&&Y[2].sliceSerialize(Y[1],!0).length===X.containerState.size?J(V):G(V)}}function bH($){R(this.containerState,"expected state"),R(typeof this.containerState.type==="string","expected type"),$.exit(this.containerState.type)}function xH($,J,G){let X=this;return R(X.parser.constructs.disable.null,"expected `disable.null` to be populated"),d($,q,z.listItemPrefixWhitespace,X.parser.constructs.disable.null.includes("codeIndented")?void 0:L.tabSize+1);function q(V){let Y=X.events[X.events.length-1];return!l(V)&&Y&&Y[1].type===z.listItemPrefixWhitespace?J(V):G(V)}}var Q5={name:"setextUnderline",resolveTo:vH,tokenize:kH};function vH($,J){let G=$.length,X,q,V;while(G--)if($[G][0]==="enter"){if($[G][1].type===z.content){X=G;break}if($[G][1].type===z.paragraph)q=G}else{if($[G][1].type===z.content)$.splice(G,1);if(!V&&$[G][1].type===z.definition)V=G}R(q!==void 0,"expected a `text` index to be found"),R(X!==void 0,"expected a `text` index to be found"),R($[X][2]===J,"enter context should be same"),R($[$.length-1][2]===J,"enter context should be same");let Y={type:z.setextHeading,start:{...$[X][1].start},end:{...$[$.length-1][1].end}};if($[q][1].type=z.setextHeadingText,V)$.splice(q,0,["enter",Y,J]),$.splice(V+1,0,["exit",$[X][1],J]),$[X][1].end={...$[V][1].end};else $[X][1]=Y;return $.push(["exit",Y,J]),$}function kH($,J,G){let X=this,q;return V;function V(U){let M=X.events.length,Q;R(U===D.dash||U===D.equalsTo,"expected `=` or `-`");while(M--)if(X.events[M][1].type!==z.lineEnding&&X.events[M][1].type!==z.linePrefix&&X.events[M][1].type!==z.content){Q=X.events[M][1].type===z.paragraph;break}if(!X.parser.lazy[X.now().line]&&(X.interrupt||Q))return $.enter(z.setextHeadingLine),q=U,Y(U);return G(U)}function Y(U){return $.enter(z.setextHeadingLineSequence),W(U)}function W(U){if(U===q)return $.consume(U),W;return $.exit(z.setextHeadingLineSequence),l(U)?d($,H,z.lineSuffix)(U):H(U)}function H(U){if(U===D.eof||E(U))return $.exit(z.setextHeadingLine),J(U);return G(U)}}var wJ={tokenize:gH};function gH($){let J=this,G=$.attempt(P0,X,$.attempt(this.parser.constructs.flowInitial,q,d($,$.attempt(this.parser.constructs.flow,q,$.attempt(b6,q)),z.linePrefix)));return G;function X(V){if(R(V===D.eof||E(V),"expected eol or eof"),V===D.eof){$.consume(V);return}return $.enter(z.lineEndingBlank),$.consume(V),$.exit(z.lineEndingBlank),J.currentConstruct=void 0,G}function q(V){if(R(V===D.eof||E(V),"expected eol or eof"),V===D.eof){$.consume(V);return}return $.enter(z.lineEnding),$.consume(V),$.exit(z.lineEnding),J.currentConstruct=void 0,G}}var jJ={resolveAll:PJ()},NJ=_J("string"),ZJ=_J("text");function _J($){return{resolveAll:PJ($==="text"?hH:void 0),tokenize:J};function J(G){let X=this,q=this.parser.constructs[$],V=G.attempt(q,Y,W);return Y;function Y(M){return U(M)?V(M):W(M)}function W(M){if(M===D.eof){G.consume(M);return}return G.enter(z.data),G.consume(M),H}function H(M){if(U(M))return G.exit(z.data),V(M);return G.consume(M),H}function U(M){if(M===D.eof)return!0;let Q=q[M],F=-1;if(Q){R(Array.isArray(Q),"expected `disable.null` to be populated");while(++F<Q.length){let K=Q[F];if(!K.previous||K.previous.call(X,X.previous))return!0}}return!1}}}function PJ($){return J;function J(G,X){let q=-1,V;while(++q<=G.length)if(V===void 0){if(G[q]&&G[q][1].type===z.data)V=q,q++}else if(!G[q]||G[q][1].type!==z.data){if(q!==V+2)G[V][1].end=G[q-1][1].end,G.splice(V+2,q-V-2),q=V+2;V=void 0}return $?$(G,X):G}}function hH($,J){let G=0;while(++G<=$.length)if((G===$.length||$[G][1].type===z.lineEnding)&&$[G-1][1].type===z.data){let X=$[G-1][1],q=J.sliceStream(X),V=q.length,Y=-1,W=0,H;while(V--){let U=q[V];if(typeof U==="string"){Y=U.length;while(U.charCodeAt(Y-1)===D.space)W++,Y--;if(Y)break;Y=-1}else if(U===D.horizontalTab)H=!0,W++;else if(U===D.virtualSpace);else{V++;break}}if(J._contentTypeTextTrailing&&G===$.length)W=0;if(W){let U={type:G===$.length||H||W<L.hardBreakPrefixSizeMin?z.lineSuffix:z.hardBreakTrailing,start:{_bufferIndex:V?Y:X.start._bufferIndex+Y,_index:X.start._index+V,line:X.end.line,column:X.end.column-W,offset:X.end.offset-W},end:{...X.end}};if(X.end={...U.start},X.start.offset===X.end.offset)Object.assign(X,U);else $.splice(G,0,["enter",U,J],["exit",U,J]),G+=2}G++}return $}var u6={};r9(u6,{text:()=>lH,string:()=>pH,insideSpan:()=>rH,flowInitial:()=>fH,flow:()=>uH,document:()=>yH,disable:()=>cH,contentInitial:()=>mH,attentionMarkers:()=>dH});var yH={[D.asterisk]:_1,[D.plusSign]:_1,[D.dash]:_1,[D.digit0]:_1,[D.digit1]:_1,[D.digit2]:_1,[D.digit3]:_1,[D.digit4]:_1,[D.digit5]:_1,[D.digit6]:_1,[D.digit7]:_1,[D.digit8]:_1,[D.digit9]:_1,[D.greaterThan]:Y5},mH={[D.leftSquareBracket]:x6},fH={[D.horizontalTab]:K4,[D.virtualSpace]:K4,[D.space]:K4},uH={[D.numberSign]:k6,[D.asterisk]:s0,[D.dash]:[Q5,s0],[D.lessThan]:h6,[D.equalsTo]:Q5,[D.underscore]:s0,[D.graveAccent]:H5,[D.tilde]:H5},pH={[D.ampersand]:W5,[D.backslash]:V5},lH={[D.carriageReturn]:R4,[D.lineFeed]:R4,[D.carriageReturnLineFeed]:R4,[D.exclamationMark]:m6,[D.ampersand]:W5,[D.asterisk]:Q4,[D.lessThan]:[E6,y6],[D.leftSquareBracket]:f6,[D.backslash]:[v6,V5],[D.rightSquareBracket]:a0,[D.underscore]:Q4,[D.graveAccent]:S6},rH={null:[Q4,jJ]},dH={null:[D.asterisk,D.underscore]},cH={null:[]};var uJ=k4(fJ(),1);var $2=uJ.default("micromark");function pJ($,J,G){let X={_bufferIndex:-1,_index:0,line:G&&G.line||1,column:G&&G.column||1,offset:G&&G.offset||0},q={},V=[],Y=[],W=[],H=!0,U={attempt:s($1),check:s(q1),consume:t,enter:G1,exit:Z,interrupt:s(q1,{interrupt:!0})},M={code:D.eof,containerState:{},defineSkip:_,events:[],now:P,parser:$,previous:D.eof,sliceSerialize:j,sliceStream:N,write:K},Q=J.tokenize.call(M,U),F;if(J.resolveAll)V.push(J);return M;function K(x){if(Y=C1(Y,x),k(),Y[Y.length-1]!==D.eof)return[];return X1(J,0),M.events=Z2(V,M.events,M),M.events}function j(x,r){return SU(N(x),r)}function N(x){return EU(Y,x)}function P(){let{_bufferIndex:x,_index:r,line:i,column:V1,offset:Q1}=X;return{_bufferIndex:x,_index:r,line:i,column:V1,offset:Q1}}function _(x){q[x.line]=x.column,J1(),$2("position: define skip: `%j`",X)}function k(){let x;while(X._index<Y.length){let r=Y[X._index];if(typeof r==="string"){if(x=X._index,X._bufferIndex<0)X._bufferIndex=0;while(X._index===x&&X._bufferIndex<r.length)h(r.charCodeAt(X._bufferIndex))}else h(r)}}function h(x){R(H===!0,"expected character to be consumed"),H=void 0,$2("main: passing `%s` to %s",x,Q&&Q.name),F=x,R(typeof Q==="function","expected state"),Q=Q(x)}function t(x){if(R(x===F,"expected given code to equal expected code"),$2("consume: `%s`",x),R(H===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),R(x===null?M.events.length===0||M.events[M.events.length-1][0]==="exit":M.events[M.events.length-1][0]==="enter","expected last token to be open"),E(x))X.line++,X.column=1,X.offset+=x===D.carriageReturnLineFeed?2:1,J1(),$2("position: after eol: `%j`",X);else if(x!==D.virtualSpace)X.column++,X.offset++;if(X._bufferIndex<0)X._index++;else if(X._bufferIndex++,X._bufferIndex===Y[X._index].length)X._bufferIndex=-1,X._index++;M.previous=x,H=!0}function G1(x,r){let i=r||{};return i.type=x,i.start=P(),R(typeof x==="string","expected string type"),R(x.length>0,"expected non-empty string"),$2("enter: `%s`",x),M.events.push(["enter",i,M]),W.push(i),i}function Z(x){R(typeof x==="string","expected string type"),R(x.length>0,"expected non-empty string");let r=W.pop();return R(r,"cannot close w/o open tokens"),r.end=P(),R(x===r.type,"expected exit token to match current token"),R(!(r.start._index===r.end._index&&r.start._bufferIndex===r.end._bufferIndex),"expected non-empty token (`"+x+"`)"),$2("exit: `%s`",r.type),M.events.push(["exit",r,M]),r}function $1(x,r){X1(x,r.from)}function q1(x,r){r.restore()}function s(x,r){return i;function i(V1,Q1,d1){let G0,B,c1,U0;return Array.isArray(V1)?h1(V1):("tokenize"in V1)?h1([V1]):O(V1);function O(K1){return a2;function a2(M0){let m0=M0!==null&&K1[M0],U2=M0!==null&&K1.null,i5=[...Array.isArray(m0)?m0:m0?[m0]:[],...Array.isArray(U2)?U2:U2?[U2]:[]];return h1(i5)(M0)}}function h1(K1){if(G0=K1,B=0,K1.length===0)return R(d1,"expected `bogusState` to be given"),d1;return y0(K1[B])}function y0(K1){return a2;function a2(M0){if(U0=r1(),c1=K1,!K1.partial)M.currentConstruct=K1;if(R(M.parser.constructs.disable.null,"expected `disable.null` to be populated"),K1.name&&M.parser.constructs.disable.null.includes(K1.name))return v4(M0);return K1.tokenize.call(r?Object.assign(Object.create(M),r):M,U,c5,v4)(M0)}}function c5(K1){return R(K1===F,"expected code"),H=!0,x(c1,U0),Q1}function v4(K1){if(R(K1===F,"expected code"),H=!0,U0.restore(),++B<G0.length)return y0(G0[B]);return d1}}}function X1(x,r){if(x.resolveAll&&!V.includes(x))V.push(x);if(x.resolve)w1(M.events,r,M.events.length-r,x.resolve(M.events.slice(r),M));if(x.resolveTo)M.events=x.resolveTo(M.events,M);R(x.partial||M.events.length===0||M.events[M.events.length-1][0]==="exit","expected last token to end")}function r1(){let x=P(),r=M.previous,i=M.currentConstruct,V1=M.events.length,Q1=Array.from(W);return{from:V1,restore:d1};function d1(){X=x,M.previous=r,M.currentConstruct=i,M.events.length=V1,W=Q1,J1(),$2("position: restore: `%j`",X)}}function J1(){if(X.line in q&&X.column<2)X.column=q[X.line],X.offset+=q[X.line]-1}}function EU($,J){let G=J.start._index,X=J.start._bufferIndex,q=J.end._index,V=J.end._bufferIndex,Y;if(G===q)R(V>-1,"expected non-negative end buffer index"),R(X>-1,"expected non-negative start buffer index"),Y=[$[G].slice(X,V)];else{if(Y=$.slice(G,q),X>-1){let W=Y[0];if(typeof W==="string")Y[0]=W.slice(X);else R(X===0,"expected `startBufferIndex` to be `0`"),Y.shift()}if(V>0)Y.push($[q].slice(0,V))}return Y}function SU($,J){let G=-1,X=[],q;while(++G<$.length){let V=$[G],Y;if(typeof V==="string")Y=V;else switch(V){case D.carriageReturn:{Y=u1.cr;break}case D.lineFeed:{Y=u1.lf;break}case D.carriageReturnLineFeed:{Y=u1.cr+u1.lf;break}case D.horizontalTab:{Y=J?u1.space:u1.ht;break}case D.virtualSpace:{if(!J&&q)continue;Y=u1.space;break}default:R(typeof V==="number","expected number"),Y=String.fromCharCode(V)}q=V===D.horizontalTab,X.push(Y)}return X.join("")}function c6($){let X={constructs:WJ([u6,...($||{}).extensions||[]]),content:q(QJ),defined:[],document:q(FJ),flow:q(wJ),lazy:{},string:q(NJ),text:q(ZJ)};return X;function q(V){return Y;function Y(W){return pJ(X,V,W)}}}function i6($){while(!U5($));return $}var lJ=/[\0\t\n\r]/g;function o6(){let $=1,J="",G=!0,X;return q;function q(V,Y,W){let H=[],U,M,Q,F,K;if(V=J+(typeof V==="string"?V.toString():new TextDecoder(Y||void 0).decode(V)),Q=0,J="",G){if(V.charCodeAt(0)===D.byteOrderMarker)Q++;G=void 0}while(Q<V.length){if(lJ.lastIndex=Q,U=lJ.exec(V),F=U&&U.index!==void 0?U.index:V.length,K=V.charCodeAt(F),!U){J=V.slice(Q);break}if(K===D.lf&&Q===F&&X)H.push(D.carriageReturnLineFeed),X=void 0;else{if(X)H.push(D.carriageReturn),X=void 0;if(Q<F)H.push(V.slice(Q,F)),$+=F-Q;switch(K){case D.nul:{H.push(D.replacementCharacter),$++;break}case D.ht:{M=Math.ceil($/L.tabSize)*L.tabSize,H.push(D.horizontalTab);while($++<M)H.push(D.virtualSpace);break}case D.lf:{H.push(D.lineFeed),$=1;break}default:X=!0,$=1}}Q=F+1}if(W){if(X)H.push(D.carriageReturn);if(J)H.push(J);H.push(D.eof)}return H}}var CU=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function O5($){return $.replace(CU,bU)}function bU($,J,G){if(J)return J;if(G.charCodeAt(0)===D.numberSign){let q=G.charCodeAt(1),V=q===D.lowercaseX||q===D.uppercaseX;return q5(G.slice(V?2:1),V?L.numericBaseHexadecimal:L.numericBaseDecimal)}return j2(G)||$}function T0($){if(!$||typeof $!=="object")return"";if("position"in $||"type"in $)return rJ($.position);if("start"in $||"end"in $)return rJ($);if("line"in $||"column"in $)return n6($);return""}function n6($){return dJ($&&$.line)+":"+dJ($&&$.column)}function rJ($){return n6($&&$.start)+"-"+n6($&&$.end)}function dJ($){return $&&typeof $==="number"?$:1}var iJ={}.hasOwnProperty;function a6($,J,G){if(J&&typeof J==="object")G=J,J=void 0;return xU(G)(i6(c6(G).document().write(o6()($,J,!0))))}function xU($){let J={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:V(p9),autolinkProtocol:s,autolinkEmail:s,atxHeading:V(m9),blockQuote:V(M0),characterEscape:s,characterReference:s,codeFenced:V(m0),codeFencedFenceInfo:Y,codeFencedFenceMeta:Y,codeIndented:V(m0,Y),codeText:V(U2,Y),codeTextData:s,data:s,codeFlowValue:s,definition:V(i5),definitionDestinationString:Y,definitionLabelString:Y,definitionTitleString:Y,emphasis:V(s3),hardBreakEscape:V(f9),hardBreakTrailing:V(f9),htmlFlow:V(u9,Y),htmlFlowData:s,htmlText:V(u9,Y),htmlTextData:s,image:V(t3),label:Y,link:V(p9),listItem:V(e3),listItemValue:F,listOrdered:V(l9,Q),listUnordered:V(l9),paragraph:V($X),reference:O,referenceString:Y,resourceDestinationString:Y,resourceTitleString:Y,setextHeading:V(m9),strong:V(JX),thematicBreak:V(XX)},exit:{atxHeading:H(),atxHeadingSequence:G1,autolink:H(),autolinkEmail:a2,autolinkProtocol:K1,blockQuote:H(),characterEscapeValue:X1,characterReferenceMarkerHexadecimal:y0,characterReferenceMarkerNumeric:y0,characterReferenceValue:c5,characterReference:v4,codeFenced:H(P),codeFencedFence:N,codeFencedFenceInfo:K,codeFencedFenceMeta:j,codeFlowValue:X1,codeIndented:H(_),codeText:H(i),codeTextData:X1,data:X1,definition:H(),definitionDestinationString:t,definitionLabelString:k,definitionTitleString:h,emphasis:H(),hardBreakEscape:H(J1),hardBreakTrailing:H(J1),htmlFlow:H(x),htmlFlowData:X1,htmlText:H(r),htmlTextData:X1,image:H(Q1),label:G0,labelText:d1,lineEnding:r1,link:H(V1),listItem:H(),listOrdered:H(),listUnordered:H(),paragraph:H(),referenceString:h1,resourceDestinationString:B,resourceTitleString:c1,resource:U0,setextHeading:H(q1),setextHeadingLineSequence:$1,setextHeadingText:Z,strong:H(),thematicBreak:H()}};oJ(J,($||{}).mdastExtensions||[]);let G={};return X;function X(A){let w={type:"root",children:[]},v={stack:[w],tokenStack:[],config:J,enter:W,exit:U,buffer:Y,resume:M,data:G},n=[],e=-1;while(++e<A.length)if(A[e][1].type===z.listOrdered||A[e][1].type===z.listUnordered)if(A[e][0]==="enter")n.push(e);else{let x1=n.pop();R(typeof x1==="number","expected list to be open"),e=q(A,x1,e)}e=-1;while(++e<A.length){let x1=J[A[e][0]];if(iJ.call(x1,A[e][1].type))x1[A[e][1].type].call(Object.assign({sliceSerialize:A[e][2].sliceSerialize},v),A[e][1])}if(v.tokenStack.length>0){let x1=v.tokenStack[v.tokenStack.length-1];(x1[1]||cJ).call(v,void 0,x1[0])}w.position={start:I0(A.length>0?A[0][1].start:{line:1,column:1,offset:0}),end:I0(A.length>0?A[A.length-2][1].end:{line:1,column:1,offset:0})},e=-1;while(++e<J.transforms.length)w=J.transforms[e](w)||w;return w}function q(A,w,v){let n=w-1,e=-1,x1=!1,f0,z0,s2,t2;while(++n<=v){let y1=A[n];switch(y1[1].type){case z.listUnordered:case z.listOrdered:case z.blockQuote:{if(y1[0]==="enter")e++;else e--;t2=void 0;break}case z.lineEndingBlank:{if(y1[0]==="enter"){if(f0&&!t2&&!e&&!s2)s2=n;t2=void 0}break}case z.linePrefix:case z.listItemValue:case z.listItemMarker:case z.listItemPrefix:case z.listItemPrefixWhitespace:break;default:t2=void 0}if(!e&&y1[0]==="enter"&&y1[1].type===z.listItemPrefix||e===-1&&y1[0]==="exit"&&(y1[1].type===z.listUnordered||y1[1].type===z.listOrdered)){if(f0){let M2=n;z0=void 0;while(M2--){let D0=A[M2];if(D0[1].type===z.lineEnding||D0[1].type===z.lineEndingBlank){if(D0[0]==="exit")continue;if(z0)A[z0][1].type=z.lineEndingBlank,x1=!0;D0[1].type=z.lineEnding,z0=M2}else if(D0[1].type===z.linePrefix||D0[1].type===z.blockQuotePrefix||D0[1].type===z.blockQuotePrefixWhitespace||D0[1].type===z.blockQuoteMarker||D0[1].type===z.listItemIndent);else break}if(s2&&(!z0||s2<z0))f0._spread=!0;f0.end=Object.assign({},z0?A[z0][1].start:y1[1].end),A.splice(z0||n,0,["exit",f0,y1[2]]),n++,v++}if(y1[1].type===z.listItemPrefix){let M2={type:"listItem",_spread:!1,start:Object.assign({},y1[1].start),end:void 0};f0=M2,A.splice(n,0,["enter",M2,y1[2]]),n++,v++,s2=void 0,t2=!0}}}return A[w][1]._spread=x1,v}function V(A,w){return v;function v(n){if(W.call(this,A(n),n),w)w.call(this,n)}}function Y(){this.stack.push({type:"fragment",children:[]})}function W(A,w,v){let n=this.stack[this.stack.length-1];R(n,"expected `parent`"),R("children"in n,"expected `parent`"),n.children.push(A),this.stack.push(A),this.tokenStack.push([w,v||void 0]),A.position={start:I0(w.start),end:void 0}}function H(A){return w;function w(v){if(A)A.call(this,v);U.call(this,v)}}function U(A,w){let v=this.stack.pop();R(v,"expected `node`");let n=this.tokenStack.pop();if(!n)throw Error("Cannot close `"+A.type+"` ("+T0({start:A.start,end:A.end})+"): it\u2019s not open");else if(n[0].type!==A.type)if(w)w.call(this,A,n[0]);else(n[1]||cJ).call(this,A,n[0]);R(v.type!=="fragment","unexpected fragment `exit`ed"),R(v.position,"expected `position` to be defined"),v.position.end=I0(A.end)}function M(){return o0(this.stack.pop())}function Q(){this.data.expectingFirstListItemValue=!0}function F(A){if(this.data.expectingFirstListItemValue){let w=this.stack[this.stack.length-2];R(w,"expected nodes on stack"),R(w.type==="list","expected list on stack"),w.start=Number.parseInt(this.sliceSerialize(A),L.numericBaseDecimal),this.data.expectingFirstListItemValue=void 0}}function K(){let A=this.resume(),w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="code","expected code on stack"),w.lang=A}function j(){let A=this.resume(),w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="code","expected code on stack"),w.meta=A}function N(){if(this.data.flowCodeInside)return;this.buffer(),this.data.flowCodeInside=!0}function P(){let A=this.resume(),w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="code","expected code on stack"),w.value=A.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){let A=this.resume(),w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="code","expected code on stack"),w.value=A.replace(/(\r?\n|\r)$/g,"")}function k(A){let w=this.resume(),v=this.stack[this.stack.length-1];R(v,"expected node on stack"),R(v.type==="definition","expected definition on stack"),v.label=w,v.identifier=F0(this.sliceSerialize(A)).toLowerCase()}function h(){let A=this.resume(),w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="definition","expected definition on stack"),w.title=A}function t(){let A=this.resume(),w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="definition","expected definition on stack"),w.url=A}function G1(A){let w=this.stack[this.stack.length-1];if(R(w,"expected node on stack"),R(w.type==="heading","expected heading on stack"),!w.depth){let v=this.sliceSerialize(A).length;R(v===1||v===2||v===3||v===4||v===5||v===6,"expected `depth` between `1` and `6`"),w.depth=v}}function Z(){this.data.setextHeadingSlurpLineEnding=!0}function $1(A){let w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="heading","expected heading on stack"),w.depth=this.sliceSerialize(A).codePointAt(0)===D.equalsTo?1:2}function q1(){this.data.setextHeadingSlurpLineEnding=void 0}function s(A){let w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R("children"in w,"expected parent on stack");let v=w.children,n=v[v.length-1];if(!n||n.type!=="text")n=GX(),n.position={start:I0(A.start),end:void 0},v.push(n);this.stack.push(n)}function X1(A){let w=this.stack.pop();R(w,"expected a `node` to be on the stack"),R("value"in w,"expected a `literal` to be on the stack"),R(w.position,"expected `node` to have an open position"),w.value+=this.sliceSerialize(A),w.position.end=I0(A.end)}function r1(A){let w=this.stack[this.stack.length-1];if(R(w,"expected `node`"),this.data.atHardBreak){R("children"in w,"expected `parent`");let v=w.children[w.children.length-1];R(v.position,"expected tail to have a starting position"),v.position.end=I0(A.end),this.data.atHardBreak=void 0;return}if(!this.data.setextHeadingSlurpLineEnding&&J.canContainEols.includes(w.type))s.call(this,A),X1.call(this,A)}function J1(){this.data.atHardBreak=!0}function x(){let A=this.resume(),w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="html","expected html on stack"),w.value=A}function r(){let A=this.resume(),w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="html","expected html on stack"),w.value=A}function i(){let A=this.resume(),w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="inlineCode","expected inline code on stack"),w.value=A}function V1(){let A=this.stack[this.stack.length-1];if(R(A,"expected node on stack"),R(A.type==="link","expected link on stack"),this.data.inReference){let w=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=w,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function Q1(){let A=this.stack[this.stack.length-1];if(R(A,"expected node on stack"),R(A.type==="image","expected image on stack"),this.data.inReference){let w=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=w,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function d1(A){let w=this.sliceSerialize(A),v=this.stack[this.stack.length-2];R(v,"expected ancestor on stack"),R(v.type==="image"||v.type==="link","expected image or link on stack"),v.label=O5(w),v.identifier=F0(w).toLowerCase()}function G0(){let A=this.stack[this.stack.length-1];R(A,"expected node on stack"),R(A.type==="fragment","expected fragment on stack");let w=this.resume(),v=this.stack[this.stack.length-1];if(R(v,"expected node on stack"),R(v.type==="image"||v.type==="link","expected image or link on stack"),this.data.inReference=!0,v.type==="link"){let n=A.children;v.children=n}else v.alt=w}function B(){let A=this.resume(),w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="image"||w.type==="link","expected image or link on stack"),w.url=A}function c1(){let A=this.resume(),w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="image"||w.type==="link","expected image or link on stack"),w.title=A}function U0(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function h1(A){let w=this.resume(),v=this.stack[this.stack.length-1];R(v,"expected node on stack"),R(v.type==="image"||v.type==="link","expected image reference or link reference on stack"),v.label=w,v.identifier=F0(this.sliceSerialize(A)).toLowerCase(),this.data.referenceType="full"}function y0(A){R(A.type==="characterReferenceMarkerNumeric"||A.type==="characterReferenceMarkerHexadecimal"),this.data.characterReferenceType=A.type}function c5(A){let w=this.sliceSerialize(A),v=this.data.characterReferenceType,n;if(v)n=q5(w,v===z.characterReferenceMarkerNumeric?L.numericBaseDecimal:L.numericBaseHexadecimal),this.data.characterReferenceType=void 0;else{let x1=j2(w);R(x1!==!1,"expected reference to decode"),n=x1}let e=this.stack[this.stack.length-1];R(e,"expected `node`"),R("value"in e,"expected `node.value`"),e.value+=n}function v4(A){let w=this.stack.pop();R(w,"expected `node`"),R(w.position,"expected `node.position`"),w.position.end=I0(A.end)}function K1(A){X1.call(this,A);let w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="link","expected link on stack"),w.url=this.sliceSerialize(A)}function a2(A){X1.call(this,A);let w=this.stack[this.stack.length-1];R(w,"expected node on stack"),R(w.type==="link","expected link on stack"),w.url="mailto:"+this.sliceSerialize(A)}function M0(){return{type:"blockquote",children:[]}}function m0(){return{type:"code",lang:null,meta:null,value:""}}function U2(){return{type:"inlineCode",value:""}}function i5(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function s3(){return{type:"emphasis",children:[]}}function m9(){return{type:"heading",depth:0,children:[]}}function f9(){return{type:"break"}}function u9(){return{type:"html",value:""}}function t3(){return{type:"image",title:null,url:"",alt:null}}function p9(){return{type:"link",title:null,url:"",children:[]}}function l9(A){return{type:"list",ordered:A.type==="listOrdered",start:null,spread:A._spread,children:[]}}function e3(A){return{type:"listItem",spread:A._spread,checked:null,children:[]}}function $X(){return{type:"paragraph",children:[]}}function JX(){return{type:"strong",children:[]}}function GX(){return{type:"text",value:""}}function XX(){return{type:"thematicBreak"}}}function I0($){return{line:$.line,column:$.column,offset:$.offset}}function oJ($,J){let G=-1;while(++G<J.length){let X=J[G];if(Array.isArray(X))oJ($,X);else vU($,X)}}function vU($,J){let G;for(G in J)if(iJ.call(J,G))switch(G){case"canContainEols":{let X=J[G];if(X)$[G].push(...X);break}case"transforms":{let X=J[G];if(X)$[G].push(...X);break}case"enter":case"exit":{let X=J[G];if(X)Object.assign($[G],X);break}}}function cJ($,J){if($)throw Error("Cannot close `"+$.type+"` ("+T0({start:$.start,end:$.end})+"): a different token (`"+J.type+"`, "+T0({start:J.start,end:J.end})+") is open");else throw Error("Cannot close document, a token (`"+J.type+"`, "+T0({start:J.start,end:J.end})+") is still open")}function A5($){let J=this;J.parser=G;function G(X){return a6(X,{...J.data("settings"),...$,extensions:J.data("micromarkExtensions")||[],mdastExtensions:J.data("fromMarkdownExtensions")||[]})}}var nJ={}.hasOwnProperty;function aJ($,J){let G=J||{};function X(q,...V){let{invalid:Y,handlers:W}=X;if(q&&nJ.call(q,$)){let H=String(q[$]);Y=nJ.call(W,H)?W[H]:X.unknown}if(Y)return Y.call(this,q,...V)}return X.handlers=G.handlers||{},X.invalid=G.invalid,X.unknown=G.unknown,X}var kU={}.hasOwnProperty;function s6($,J){let G=-1,X;if(J.extensions)while(++G<J.extensions.length)s6($,J.extensions[G]);for(X in J)if(kU.call(J,X))switch(X){case"extensions":break;case"unsafe":{sJ($[X],J[X]);break}case"join":{sJ($[X],J[X]);break}case"handlers":{gU($[X],J[X]);break}default:$.options[X]=J[X]}return $}function sJ($,J){if(J)$.push(...J)}function gU($,J){if(J)Object.assign($,J)}function tJ($,J,G,X){let q=G.enter("blockquote"),V=G.createTracker(X);V.move("> "),V.shift(2);let Y=G.indentLines(G.containerFlow($,V.current()),hU);return q(),Y}function hU($,J,G){return">"+(G?"":" ")+$}function w5($,J){return eJ($,J.inConstruct,!0)&&!eJ($,J.notInConstruct,!1)}function eJ($,J,G){if(typeof J==="string")J=[J];if(!J||J.length===0)return G;let X=-1;while(++X<J.length)if($.includes(J[X]))return!0;return!1}function t6($,J,G,X){let q=-1;while(++q<G.unsafe.length)if(G.unsafe[q].character===`
|
|
60
|
+
`&&w5(G.stack,G.unsafe[q]))return/[ \t]/.test(X.before)?"":" ";return"\\\n"}function $G($,J){let G=String($),X=G.indexOf(J),q=X,V=0,Y=0;if(typeof J!=="string")throw TypeError("Expected substring");while(X!==-1){if(X===q){if(++V>Y)Y=V}else V=1;q=X+J.length,X=G.indexOf(J,q)}return Y}function O4($,J){return Boolean(J.options.fences===!1&&$.value&&!$.lang&&/[^ \r\n]/.test($.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test($.value))}function JG($){let J=$.options.fence||"`";if(J!=="`"&&J!=="~")throw Error("Cannot serialize code with `"+J+"` for `options.fence`, expected `` ` `` or `~`");return J}function GG($,J,G,X){let q=JG(G),V=$.value||"",Y=q==="`"?"GraveAccent":"Tilde";if(O4($,G)){let Q=G.enter("codeIndented"),F=G.indentLines(V,yU);return Q(),F}let W=G.createTracker(X),H=q.repeat(Math.max($G(V,q)+1,3)),U=G.enter("codeFenced"),M=W.move(H);if($.lang){let Q=G.enter(`codeFencedLang${Y}`);M+=W.move(G.safe($.lang,{before:M,after:" ",encode:["`"],...W.current()})),Q()}if($.lang&&$.meta){let Q=G.enter(`codeFencedMeta${Y}`);M+=W.move(" "),M+=W.move(G.safe($.meta,{before:M,after:`
|
|
61
61
|
`,encode:["`"],...W.current()})),Q()}if(M+=W.move(`
|
|
62
62
|
`),V)M+=W.move(V+`
|
|
63
|
-
`);return M+=W.move(H),U(),M}function
|
|
64
|
-
`,...H.current()}));if(W(),$.title)W=G.enter(`title${V}`),U+=H.move(" "+q),U+=H.move(G.safe($.title,{before:U,after:q,...H.current()})),U+=H.move(q),W();return Y(),U}function
|
|
63
|
+
`);return M+=W.move(H),U(),M}function yU($,J,G){return(G?"":" ")+$}function T2($){let J=$.options.quote||'"';if(J!=='"'&&J!=="'")throw Error("Cannot serialize title with `"+J+"` for `options.quote`, expected `\"`, or `'`");return J}function XG($,J,G,X){let q=T2(G),V=q==='"'?"Quote":"Apostrophe",Y=G.enter("definition"),W=G.enter("label"),H=G.createTracker(X),U=H.move("[");if(U+=H.move(G.safe(G.associationId($),{before:U,after:"]",...H.current()})),U+=H.move("]: "),W(),!$.url||/[\0- \u007F]/.test($.url))W=G.enter("destinationLiteral"),U+=H.move("<"),U+=H.move(G.safe($.url,{before:U,after:">",...H.current()})),U+=H.move(">");else W=G.enter("destinationRaw"),U+=H.move(G.safe($.url,{before:U,after:$.title?" ":`
|
|
64
|
+
`,...H.current()}));if(W(),$.title)W=G.enter(`title${V}`),U+=H.move(" "+q),U+=H.move(G.safe($.title,{before:U,after:q,...H.current()})),U+=H.move(q),W();return Y(),U}function qG($){let J=$.options.emphasis||"*";if(J!=="*"&&J!=="_")throw Error("Cannot serialize emphasis with `"+J+"` for `options.emphasis`, expected `*`, or `_`");return J}function l1($){return"&#x"+$.toString(16).toUpperCase()+";"}function I2($,J,G){let X=N2($),q=N2(J);if(X===void 0)return q===void 0?G==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:q===1?{inside:!0,outside:!0}:{inside:!1,outside:!0};if(X===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}}e6.peek=mU;function e6($,J,G,X){let q=qG(G),V=G.enter("emphasis"),Y=G.createTracker(X),W=Y.move(q),H=Y.move(G.containerPhrasing($,{after:q,before:W,...Y.current()})),U=H.charCodeAt(0),M=I2(X.before.charCodeAt(X.before.length-1),U,q);if(M.inside)H=l1(U)+H.slice(1);let Q=H.charCodeAt(H.length-1),F=I2(X.after.charCodeAt(0),Q,q);if(F.inside)H=H.slice(0,-1)+l1(Q);let K=Y.move(q);return V(),G.attentionEncodeSurroundingInfo={after:F.outside,before:M.outside},W+H+K}function mU($,J,G){return G.options.emphasis||"*"}var E2=function($){if($===null||$===void 0)return lU;if(typeof $==="function")return j5($);if(typeof $==="object")return Array.isArray($)?fU($):uU($);if(typeof $==="string")return pU($);throw Error("Expected function, string, or object as test")};function fU($){let J=[],G=-1;while(++G<$.length)J[G]=E2($[G]);return j5(X);function X(...q){let V=-1;while(++V<J.length)if(J[V].apply(this,q))return!0;return!1}}function uU($){let J=$;return j5(G);function G(X){let q=X,V;for(V in $)if(q[V]!==J[V])return!1;return!0}}function pU($){return j5(J);function J(G){return G&&G.type===$}}function j5($){return J;function J(G,X,q){return Boolean(rU(G)&&$.call(this,G,typeof X==="number"?X:void 0,q||void 0))}}function lU(){return!0}function rU($){return $!==null&&typeof $==="object"&&"type"in $}function YG($){return"\x1B[33m"+$+"\x1B[39m"}var VG=[],N5=!0,J2=!1,Z5="skip";function $9($,J,G,X){let q;if(typeof J==="function"&&typeof G!=="function")X=G,G=J;else q=J;let V=E2(q),Y=X?-1:1;W($,void 0,[])();function W(H,U,M){let Q=H&&typeof H==="object"?H:{};if(typeof Q.type==="string"){let K=typeof Q.tagName==="string"?Q.tagName:typeof Q.name==="string"?Q.name:void 0;Object.defineProperty(F,"name",{value:"node ("+YG(H.type+(K?"<"+K+">":""))+")"})}return F;function F(){let K=VG,j,N,P;if(!J||V(H,U,M[M.length-1]||void 0)){if(K=dU(G(H,M)),K[0]===J2)return K}if("children"in H&&H.children){let _=H;if(_.children&&K[0]!==Z5){N=(X?_.children.length:-1)+Y,P=M.concat(_);while(N>-1&&N<_.children.length){let k=_.children[N];if(j=W(k,N,P)(),j[0]===J2)return j;N=typeof j[1]==="number"?j[1]:N+Y}}}return K}}}function dU($){if(Array.isArray($))return $;if(typeof $==="number")return[N5,$];return $===null||$===void 0?VG:[$]}function J9($,J,G,X){let q,V,Y;if(typeof J==="function"&&typeof G!=="function")V=void 0,Y=J,q=G;else V=J,Y=G,q=X;$9($,V,W,q);function W(H,U){let M=U[U.length-1],Q=M?M.children.indexOf(H):void 0;return Y(H,Q,M)}}function _5($,J){let G=!1;return J9($,function(X){if("value"in X&&/\r?\n|\r/.test(X.value)||X.type==="break")return G=!0,J2}),Boolean((!$.depth||$.depth<3)&&o0($)&&(J.options.setext||G))}function WG($,J,G,X){let q=Math.max(Math.min(6,$.depth||1),1),V=G.createTracker(X);if(_5($,G)){let M=G.enter("headingSetext"),Q=G.enter("phrasing"),F=G.containerPhrasing($,{...V.current(),before:`
|
|
65
65
|
`,after:`
|
|
66
66
|
`});return Q(),M(),F+`
|
|
67
67
|
`+(q===1?"=":"-").repeat(F.length-(Math.max(F.lastIndexOf("\r"),F.lastIndexOf(`
|
|
68
68
|
`))+1))}let Y="#".repeat(q),W=G.enter("headingAtx"),H=G.enter("phrasing");V.move(Y+" ");let U=G.containerPhrasing($,{before:"# ",after:`
|
|
69
|
-
`,...V.current()});if(/^[\t ]/.test(U))U=
|
|
70
|
-
`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:
|
|
71
|
-
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:
|
|
72
|
-
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:
|
|
69
|
+
`,...V.current()});if(/^[\t ]/.test(U))U=l1(U.charCodeAt(0))+U.slice(1);if(U=U?Y+" "+U:Y,G.options.closeAtx)U+=" "+Y;return H(),W(),U}G9.peek=cU;function G9($){return $.value||""}function cU(){return"<"}X9.peek=iU;function X9($,J,G,X){let q=T2(G),V=q==='"'?"Quote":"Apostrophe",Y=G.enter("image"),W=G.enter("label"),H=G.createTracker(X),U=H.move("![");if(U+=H.move(G.safe($.alt,{before:U,after:"]",...H.current()})),U+=H.move("]("),W(),!$.url&&$.title||/[\0- \u007F]/.test($.url))W=G.enter("destinationLiteral"),U+=H.move("<"),U+=H.move(G.safe($.url,{before:U,after:">",...H.current()})),U+=H.move(">");else W=G.enter("destinationRaw"),U+=H.move(G.safe($.url,{before:U,after:$.title?" ":")",...H.current()}));if(W(),$.title)W=G.enter(`title${V}`),U+=H.move(" "+q),U+=H.move(G.safe($.title,{before:U,after:q,...H.current()})),U+=H.move(q),W();return U+=H.move(")"),Y(),U}function iU(){return"!"}q9.peek=oU;function q9($,J,G,X){let q=$.referenceType,V=G.enter("imageReference"),Y=G.enter("label"),W=G.createTracker(X),H=W.move("!["),U=G.safe($.alt,{before:H,after:"]",...W.current()});H+=W.move(U+"]["),Y();let M=G.stack;G.stack=[],Y=G.enter("reference");let Q=G.safe(G.associationId($),{before:H,after:"]",...W.current()});if(Y(),G.stack=M,V(),q==="full"||!U||U!==Q)H+=W.move(Q+"]");else if(q==="shortcut")H=H.slice(0,-1);else H+=W.move("]");return H}function oU(){return"!"}Y9.peek=nU;function Y9($,J,G){let X=$.value||"",q="`",V=-1;while(new RegExp("(^|[^`])"+q+"([^`]|$)").test(X))q+="`";if(/[^ \r\n]/.test(X)&&(/^[ \r\n]/.test(X)&&/[ \r\n]$/.test(X)||/^`|`$/.test(X)))X=" "+X+" ";while(++V<G.unsafe.length){let Y=G.unsafe[V],W=G.compilePattern(Y),H;if(!Y.atBreak)continue;while(H=W.exec(X)){let U=H.index;if(X.charCodeAt(U)===10&&X.charCodeAt(U-1)===13)U--;X=X.slice(0,U)+" "+X.slice(H.index+1)}}return q+X+q}function nU(){return"`"}function V9($,J){let G=o0($);return Boolean(!J.options.resourceLink&&$.url&&!$.title&&$.children&&$.children.length===1&&$.children[0].type==="text"&&(G===$.url||"mailto:"+G===$.url)&&/^[a-z][a-z+.-]+:/i.test($.url)&&!/[\0- <>\u007F]/.test($.url))}W9.peek=aU;function W9($,J,G,X){let q=T2(G),V=q==='"'?"Quote":"Apostrophe",Y=G.createTracker(X),W,H;if(V9($,G)){let M=G.stack;G.stack=[],W=G.enter("autolink");let Q=Y.move("<");return Q+=Y.move(G.containerPhrasing($,{before:Q,after:">",...Y.current()})),Q+=Y.move(">"),W(),G.stack=M,Q}W=G.enter("link"),H=G.enter("label");let U=Y.move("[");if(U+=Y.move(G.containerPhrasing($,{before:U,after:"](",...Y.current()})),U+=Y.move("]("),H(),!$.url&&$.title||/[\0- \u007F]/.test($.url))H=G.enter("destinationLiteral"),U+=Y.move("<"),U+=Y.move(G.safe($.url,{before:U,after:">",...Y.current()})),U+=Y.move(">");else H=G.enter("destinationRaw"),U+=Y.move(G.safe($.url,{before:U,after:$.title?" ":")",...Y.current()}));if(H(),$.title)H=G.enter(`title${V}`),U+=Y.move(" "+q),U+=Y.move(G.safe($.title,{before:U,after:q,...Y.current()})),U+=Y.move(q),H();return U+=Y.move(")"),W(),U}function aU($,J,G){return V9($,G)?"<":"["}H9.peek=sU;function H9($,J,G,X){let q=$.referenceType,V=G.enter("linkReference"),Y=G.enter("label"),W=G.createTracker(X),H=W.move("["),U=G.containerPhrasing($,{before:H,after:"]",...W.current()});H+=W.move(U+"]["),Y();let M=G.stack;G.stack=[],Y=G.enter("reference");let Q=G.safe(G.associationId($),{before:H,after:"]",...W.current()});if(Y(),G.stack=M,V(),q==="full"||!U||U!==Q)H+=W.move(Q+"]");else if(q==="shortcut")H=H.slice(0,-1);else H+=W.move("]");return H}function sU(){return"["}function S2($){let J=$.options.bullet||"*";if(J!=="*"&&J!=="+"&&J!=="-")throw Error("Cannot serialize items with `"+J+"` for `options.bullet`, expected `*`, `+`, or `-`");return J}function HG($){let J=S2($),G=$.options.bulletOther;if(!G)return J==="*"?"-":"*";if(G!=="*"&&G!=="+"&&G!=="-")throw Error("Cannot serialize items with `"+G+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(G===J)throw Error("Expected `bullet` (`"+J+"`) and `bulletOther` (`"+G+"`) to be different");return G}function UG($){let J=$.options.bulletOrdered||".";if(J!=="."&&J!==")")throw Error("Cannot serialize items with `"+J+"` for `options.bulletOrdered`, expected `.` or `)`");return J}function P5($){let J=$.options.rule||"*";if(J!=="*"&&J!=="-"&&J!=="_")throw Error("Cannot serialize rules with `"+J+"` for `options.rule`, expected `*`, `-`, or `_`");return J}function MG($,J,G,X){let q=G.enter("list"),V=G.bulletCurrent,Y=$.ordered?UG(G):S2(G),W=$.ordered?Y==="."?")":".":HG(G),H=J&&G.bulletLastUsed?Y===G.bulletLastUsed:!1;if(!$.ordered){let M=$.children?$.children[0]:void 0;if((Y==="*"||Y==="-")&&M&&(!M.children||!M.children[0])&&G.stack[G.stack.length-1]==="list"&&G.stack[G.stack.length-2]==="listItem"&&G.stack[G.stack.length-3]==="list"&&G.stack[G.stack.length-4]==="listItem"&&G.indexStack[G.indexStack.length-1]===0&&G.indexStack[G.indexStack.length-2]===0&&G.indexStack[G.indexStack.length-3]===0)H=!0;if(P5(G)===Y&&M){let Q=-1;while(++Q<$.children.length){let F=$.children[Q];if(F&&F.type==="listItem"&&F.children&&F.children[0]&&F.children[0].type==="thematicBreak"){H=!0;break}}}}if(H)Y=W;G.bulletCurrent=Y;let U=G.containerFlow($,X);return G.bulletLastUsed=Y,G.bulletCurrent=V,q(),U}function zG($){let J=$.options.listItemIndent||"one";if(J!=="tab"&&J!=="one"&&J!=="mixed")throw Error("Cannot serialize items with `"+J+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return J}function DG($,J,G,X){let q=zG(G),V=G.bulletCurrent||S2(G);if(J&&J.type==="list"&&J.ordered)V=(typeof J.start==="number"&&J.start>-1?J.start:1)+(G.options.incrementListMarker===!1?0:J.children.indexOf($))+V;let Y=V.length+1;if(q==="tab"||q==="mixed"&&(J&&J.type==="list"&&J.spread||$.spread))Y=Math.ceil(Y/4)*4;let W=G.createTracker(X);W.move(V+" ".repeat(Y-V.length)),W.shift(Y);let H=G.enter("listItem"),U=G.indentLines(G.containerFlow($,W.current()),M);return H(),U;function M(Q,F,K){if(F)return(K?"":" ".repeat(Y))+Q;return(K?V:V+" ".repeat(Y-V.length))+Q}}function QG($,J,G,X){let q=G.enter("paragraph"),V=G.enter("phrasing"),Y=G.containerPhrasing($,X);return V(),q(),Y}var U9=E2(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function KG($,J,G,X){return($.children.some(function(Y){return U9(Y)})?G.containerPhrasing:G.containerFlow).call(G,$,X)}function FG($){let J=$.options.strong||"*";if(J!=="*"&&J!=="_")throw Error("Cannot serialize strong with `"+J+"` for `options.strong`, expected `*`, or `_`");return J}M9.peek=tU;function M9($,J,G,X){let q=FG(G),V=G.enter("strong"),Y=G.createTracker(X),W=Y.move(q+q),H=Y.move(G.containerPhrasing($,{after:q,before:W,...Y.current()})),U=H.charCodeAt(0),M=I2(X.before.charCodeAt(X.before.length-1),U,q);if(M.inside)H=l1(U)+H.slice(1);let Q=H.charCodeAt(H.length-1),F=I2(X.after.charCodeAt(0),Q,q);if(F.inside)H=H.slice(0,-1)+l1(Q);let K=Y.move(q+q);return V(),G.attentionEncodeSurroundingInfo={after:F.outside,before:M.outside},W+H+K}function tU($,J,G){return G.options.strong||"*"}function RG($,J,G,X){return G.safe($.value,X)}function BG($){let J=$.options.ruleRepetition||3;if(J<3)throw Error("Cannot serialize rules with repetition `"+J+"` for `options.ruleRepetition`, expected `3` or more");return J}function OG($,J,G){let X=(P5(G)+(G.options.ruleSpaces?" ":"")).repeat(BG(G));return G.options.ruleSpaces?X.slice(0,-1):X}var AG={blockquote:tJ,break:t6,code:GG,definition:XG,emphasis:e6,hardBreak:t6,heading:WG,html:G9,image:X9,imageReference:q9,inlineCode:Y9,link:W9,linkReference:H9,list:MG,listItem:DG,paragraph:QG,root:KG,strong:M9,text:RG,thematicBreak:OG};var wG=[eU];function eU($,J,G,X){if(J.type==="code"&&O4(J,X)&&($.type==="list"||$.type===J.type&&O4($,X)))return!1;if("spread"in G&&typeof G.spread==="boolean"){if($.type==="paragraph"&&($.type===J.type||J.type==="definition"||J.type==="heading"&&_5(J,X)))return;return G.spread?1:0}}var G2=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],jG=[{character:"\t",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
|
|
70
|
+
`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:G2},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
|
|
71
|
+
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:G2},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
|
|
72
|
+
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:G2},{atBreak:!0,character:"+",after:`(?:[ \r
|
|
73
73
|
])`},{atBreak:!0,character:"-",after:`(?:[ \r
|
|
74
74
|
-])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
|
|
75
|
-
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:
|
|
76
|
-
`)&&M.type==="html")V[V.length-1]=V[V.length-1].replace(/(\r?\n|\r)$/," "),W=" ",U=J.createTracker(G),U.move(V.join(""));let F=J.handle(M,$,J,{...U.current(),after:Q,before:W});if(H&&H===F.slice(0,1))F=
|
|
75
|
+
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:G2},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:G2},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:G2},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:G2},{atBreak:!0,character:"~"}];function NG($){if($.label||!$.identifier)return $.label||"";return O5($.identifier)}function ZG($){if(!$._compiled){let J=($.atBreak?"[\\r\\n][\\t ]*":"")+($.before?"(?:"+$.before+")":"");$._compiled=new RegExp((J?"("+J+")":"")+(/[|\\{}()[\]^$+*?.-]/.test($.character)?"\\":"")+$.character+($.after?"(?:"+$.after+")":""),"g")}return $._compiled}function _G($,J,G){let X=J.indexStack,q=$.children||[],V=[],Y=-1,W=G.before,H;X.push(-1);let U=J.createTracker(G);while(++Y<q.length){let M=q[Y],Q;if(X[X.length-1]=Y,Y+1<q.length){let j=J.handle.handlers[q[Y+1].type];if(j&&j.peek)j=j.peek;Q=j?j(q[Y+1],$,J,{before:"",after:"",...U.current()}).charAt(0):""}else Q=G.after;if(V.length>0&&(W==="\r"||W===`
|
|
76
|
+
`)&&M.type==="html")V[V.length-1]=V[V.length-1].replace(/(\r?\n|\r)$/," "),W=" ",U=J.createTracker(G),U.move(V.join(""));let F=J.handle(M,$,J,{...U.current(),after:Q,before:W});if(H&&H===F.slice(0,1))F=l1(H.charCodeAt(0))+F.slice(1);let K=J.attentionEncodeSurroundingInfo;if(J.attentionEncodeSurroundingInfo=void 0,H=void 0,K){if(V.length>0&&K.before&&W===V[V.length-1].slice(-1))V[V.length-1]=V[V.length-1].slice(0,-1)+l1(W.charCodeAt(0));if(K.after)H=Q}U.move(F),V.push(F),W=F.slice(-1)}return X.pop(),V.join("")}function PG($,J,G){let X=J.indexStack,q=$.children||[],V=J.createTracker(G),Y=[],W=-1;X.push(-1);while(++W<q.length){let H=q[W];if(X[X.length-1]=W,Y.push(V.move(J.handle(H,$,J,{before:`
|
|
77
77
|
`,after:`
|
|
78
|
-
`,...V.current()}))),H.type!=="list")J.bulletLastUsed=void 0;if(W<q.length-1)Y.push(V.move(
|
|
78
|
+
`,...V.current()}))),H.type!=="list")J.bulletLastUsed=void 0;if(W<q.length-1)Y.push(V.move($M(H,q[W+1],$,J)))}return X.pop(),Y.join("")}function $M($,J,G,X){let q=X.join.length;while(q--){let V=X.join[q]($,J,G,X);if(V===!0||V===1)break;if(typeof V==="number")return`
|
|
79
79
|
`.repeat(1+V);if(V===!1)return`
|
|
80
80
|
|
|
81
81
|
<!---->
|
|
82
82
|
|
|
83
83
|
`}return`
|
|
84
84
|
|
|
85
|
-
`}var
|
|
85
|
+
`}var JM=/\r?\n|\r/g;function LG($,J){let G=[],X=0,q=0,V;while(V=JM.exec($))Y($.slice(X,V.index)),G.push(V[0]),X=V.index+V[0].length,q++;return Y($.slice(X)),G.join("");function Y(W){G.push(J(W,q,!W))}}function IG($,J,G){let X=(G.before||"")+(J||"")+(G.after||""),q=[],V=[],Y={},W=-1;while(++W<$.unsafe.length){let M=$.unsafe[W];if(!w5($.stack,M))continue;let Q=$.compilePattern(M),F;while(F=Q.exec(X)){let K="before"in M||Boolean(M.atBreak),j="after"in M,N=F.index+(K?F[1].length:0);if(q.includes(N)){if(Y[N].before&&!K)Y[N].before=!1;if(Y[N].after&&!j)Y[N].after=!1}else q.push(N),Y[N]={before:K,after:j}}}q.sort(GM);let H=G.before?G.before.length:0,U=X.length-(G.after?G.after.length:0);W=-1;while(++W<q.length){let M=q[W];if(M<H||M>=U)continue;if(M+1<U&&q[W+1]===M+1&&Y[M].after&&!Y[M+1].before&&!Y[M+1].after||q[W-1]===M-1&&Y[M].before&&!Y[M-1].before&&!Y[M-1].after)continue;if(H!==M)V.push(TG(X.slice(H,M),"\\"));if(H=M,/[!-/:-@[-`{-~]/.test(X.charAt(M))&&(!G.encode||!G.encode.includes(X.charAt(M))))V.push("\\");else V.push(l1(X.charCodeAt(M))),H++}return V.push(TG(X.slice(H,U),G.after)),V.join("")}function GM($,J){return $-J}function TG($,J){let G=/\\(?=[!-/:-@[-`{-~])/g,X=[],q=[],V=$+J,Y=-1,W=0,H;while(H=G.exec(V))X.push(H.index);while(++Y<X.length){if(W!==X[Y])q.push($.slice(W,X[Y]));q.push("\\"),W=X[Y]}return q.push($.slice(W)),q.join("")}function EG($){let J=$||{},G=J.now||{},X=J.lineShift||0,q=G.line||1,V=G.column||1;return{move:H,current:Y,shift:W};function Y(){return{now:{line:q,column:V},lineShift:X}}function W(U){X+=U}function H(U){let M=U||"",Q=M.split(/\r?\n|\r/g),F=Q[Q.length-1];return q+=Q.length-1,V=Q.length===1?V+F.length:1+F.length+X,M}}function z9($,J){let G=J||{},X={associationId:NG,containerPhrasing:VM,containerFlow:WM,createTracker:EG,compilePattern:ZG,enter:V,handlers:{...AG},handle:void 0,indentLines:LG,indexStack:[],join:[...wG],options:{},safe:HM,stack:[],unsafe:[...jG]};if(s6(X,G),X.options.tightDefinitions)X.join.push(YM);X.handle=aJ("type",{invalid:XM,unknown:qM,handlers:X.handlers});let q=X.handle($,void 0,X,{before:`
|
|
86
86
|
`,after:`
|
|
87
87
|
`,now:{line:1,column:1},lineShift:0});if(q&&q.charCodeAt(q.length-1)!==10&&q.charCodeAt(q.length-1)!==13)q+=`
|
|
88
|
-
`;return q;function V(Y){return X.stack.push(Y),W;function W(){X.stack.pop()}}}function tU($){throw Error("Cannot handle value `"+$+"`, expected node")}function eU($){throw Error("Cannot handle unknown node `"+$.type+"`")}function $M($,J){if($.type==="definition"&&$.type===J.type)return 0}function JM($,J){return wG($,this,J)}function GM($,J){return jG($,this,J)}function XM($,J){return _G(this,$,J)}function P5($){let J=this;J.compiler=G;function G(X){return U9(X,{...J.data("settings"),...$,extensions:J.data("toMarkdownExtensions")||[]})}}function M9($){if($)throw $}var E5=x4(xG(),1);function A4($){if(typeof $!=="object"||$===null)return!1;let J=Object.getPrototypeOf($);return(J===null||J===Object.prototype||Object.getPrototypeOf(J)===null)&&!(Symbol.toStringTag in $)&&!(Symbol.iterator in $)}function z9(){let $=[],J={run:G,use:X};return J;function G(...q){let V=-1,Y=q.pop();if(typeof Y!=="function")throw TypeError("Expected function as last argument, not "+Y);W(null,...q);function W(H,...U){let M=$[++V],Q=-1;if(H){Y(H);return}while(++Q<q.length)if(U[Q]===null||U[Q]===void 0)U[Q]=q[Q];if(q=U,M)kG(M,W)(...U);else Y(null,...U)}}function X(q){if(typeof q!=="function")throw TypeError("Expected `middelware` to be a function, not "+q);return $.push(q),J}}function kG($,J){let G;return X;function X(...Y){let W=$.length>Y.length,H;if(W)Y.push(q);try{H=$.apply(this,Y)}catch(U){let M=U;if(W&&G)throw M;return q(M)}if(!W)if(H&&H.then&&typeof H.then==="function")H.then(V,q);else if(H instanceof Error)q(H);else V(H)}function q(Y,...W){if(!G)G=!0,J(Y,...W)}function V(Y){q(null,Y)}}class j1 extends Error{constructor($,J,G){super();if(typeof J==="string")G=J,J=void 0;let X="",q={},V=!1;if(J)if("line"in J&&"column"in J)q={place:J};else if("start"in J&&"end"in J)q={place:J};else if("type"in J)q={ancestors:[J],place:J.position};else q={...J};if(typeof $==="string")X=$;else if(!q.cause&&$)V=!0,X=$.message,q.cause=$;if(!q.ruleId&&!q.source&&typeof G==="string"){let W=G.indexOf(":");if(W===-1)q.ruleId=G;else q.source=G.slice(0,W),q.ruleId=G.slice(W+1)}if(!q.place&&q.ancestors&&q.ancestors){let W=q.ancestors[q.ancestors.length-1];if(W)q.place=W.position}let Y=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=Y?Y.column:void 0,this.fatal=void 0,this.file="",this.message=X,this.line=Y?Y.line:void 0,this.name=T0(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=V&&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}}j1.prototype.file="";j1.prototype.name="";j1.prototype.reason="";j1.prototype.message="";j1.prototype.stack="";j1.prototype.column=void 0;j1.prototype.line=void 0;j1.prototype.ancestors=void 0;j1.prototype.cause=void 0;j1.prototype.fatal=void 0;j1.prototype.place=void 0;j1.prototype.ruleId=void 0;j1.prototype.source=void 0;import{default as a1}from"path";import{default as gG}from"process";import{fileURLToPath as hG}from"url";function T5($){return Boolean($!==null&&typeof $==="object"&&"href"in $&&$.href&&"protocol"in $&&$.protocol&&$.auth===void 0)}var D9=["history","path","basename","stem","extname","dirname"];class S5{constructor($){let J;if(!$)J={};else if(T5($))J={path:$};else if(typeof $==="string"||qM($))J={value:$};else J=$;this.cwd="cwd"in J?"":gG.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let G=-1;while(++G<D9.length){let q=D9[G];if(q in J&&J[q]!==void 0&&J[q]!==null)this[q]=q==="history"?[...J[q]]:J[q]}let X;for(X in J)if(!D9.includes(X))this[X]=J[X]}get basename(){return typeof this.path==="string"?a1.basename(this.path):void 0}set basename($){K9($,"basename"),Q9($,"basename"),this.path=a1.join(this.dirname||"",$)}get dirname(){return typeof this.path==="string"?a1.dirname(this.path):void 0}set dirname($){yG(this.basename,"dirname"),this.path=a1.join($||"",this.basename)}get extname(){return typeof this.path==="string"?a1.extname(this.path):void 0}set extname($){if(Q9($,"extname"),yG(this.dirname,"extname"),$){if($.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if($.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=a1.join(this.dirname,this.stem+($||""))}get path(){return this.history[this.history.length-1]}set path($){if(T5($))$=hG($);if(K9($,"path"),this.path!==$)this.history.push($)}get stem(){return typeof this.path==="string"?a1.basename(this.path,this.extname):void 0}set stem($){K9($,"stem"),Q9($,"stem"),this.path=a1.join(this.dirname||"",$+(this.extname||""))}fail($,J,G){let X=this.message($,J,G);throw X.fatal=!0,X}info($,J,G){let X=this.message($,J,G);return X.fatal=void 0,X}message($,J,G){let X=new j1($,J,G);if(this.path)X.name=this.path+":"+X.name,X.file=this.path;return X.fatal=!1,this.messages.push(X),X}toString($){if(this.value===void 0)return"";if(typeof this.value==="string")return this.value;return new TextDecoder($||void 0).decode(this.value)}}function Q9($,J){if($&&$.includes(a1.sep))throw Error("`"+J+"` cannot be a path: did not expect `"+a1.sep+"`")}function K9($,J){if(!$)throw Error("`"+J+"` cannot be empty")}function yG($,J){if(!$)throw Error("Setting `"+J+"` requires `path` to be set too")}function qM($){return Boolean($&&typeof $==="object"&&"byteLength"in $&&"byteOffset"in $)}var mG=function($){let X=this.constructor.prototype,q=X[$],V=function(){return q.apply(V,arguments)};return Object.setPrototypeOf(V,X),V};var YM={}.hasOwnProperty;class O9 extends mG{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=z9()}copy(){let $=new O9,J=-1;while(++J<this.attachers.length){let G=this.attachers[J];$.use(...G)}return $.data(E5.default(!0,{},this.namespace)),$}data($,J){if(typeof $==="string"){if(arguments.length===2)return B9("data",this.frozen),this.namespace[$]=J,this;return YM.call(this.namespace,$)&&this.namespace[$]||void 0}if($)return B9("data",this.frozen),this.namespace=$,this;return this.namespace}freeze(){if(this.frozen)return this;let $=this;while(++this.freezeIndex<this.attachers.length){let[J,...G]=this.attachers[this.freezeIndex];if(G[0]===!1)continue;if(G[0]===!0)G[0]=void 0;let X=J.call($,...G);if(typeof X==="function")this.transformers.use(X)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse($){this.freeze();let J=I5($),G=this.parser||this.Parser;return F9("parse",G),G(String(J),J)}process($,J){let G=this;return this.freeze(),F9("process",this.parser||this.Parser),R9("process",this.compiler||this.Compiler),J?X(void 0,J):new Promise(X);function X(q,V){let Y=I5($),W=G.parse(Y);G.run(W,Y,function(U,M,Q){if(U||!M||!Q)return H(U);let F=M,K=G.stringify(F,Q);if(WM(K))Q.value=K;else Q.result=K;H(U,Q)});function H(U,M){if(U||!M)V(U);else if(q)q(M);else R(J,"`done` is defined if `resolve` is not"),J(void 0,M)}}}processSync($){let J=!1,G;return this.freeze(),F9("processSync",this.parser||this.Parser),R9("processSync",this.compiler||this.Compiler),this.process($,X),uG("processSync","process",J),R(G,"we either bailed on an error or have a tree"),G;function X(q,V){J=!0,M9(q),G=V}}run($,J,G){fG($),this.freeze();let X=this.transformers;if(!G&&typeof J==="function")G=J,J=void 0;return G?q(void 0,G):new Promise(q);function q(V,Y){R(typeof J!=="function","`file` can\u2019t be a `done` anymore, we checked");let W=I5(J);X.run($,W,H);function H(U,M,Q){let F=M||$;if(U)Y(U);else if(V)V(F);else R(G,"`done` is defined if `resolve` is not"),G(void 0,F,Q)}}}runSync($,J){let G=!1,X;return this.run($,J,q),uG("runSync","run",G),R(X,"we either bailed on an error or have a tree"),X;function q(V,Y){M9(V),X=Y,G=!0}}stringify($,J){this.freeze();let G=I5(J),X=this.compiler||this.Compiler;return R9("stringify",X),fG($),X($,G)}use($,...J){let G=this.attachers,X=this.namespace;if(B9("use",this.frozen),$===null||$===void 0);else if(typeof $==="function")W($,J);else if(typeof $==="object")if(Array.isArray($))Y($);else V($);else throw TypeError("Expected usable value, not `"+$+"`");return this;function q(H){if(typeof H==="function")W(H,[]);else if(typeof H==="object")if(Array.isArray(H)){let[U,...M]=H;W(U,M)}else V(H);else throw TypeError("Expected usable value, not `"+H+"`")}function V(H){if(!("plugins"in H)&&!("settings"in H))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(Y(H.plugins),H.settings)X.settings=E5.default(!0,X.settings,H.settings)}function Y(H){let U=-1;if(H===null||H===void 0);else if(Array.isArray(H))while(++U<H.length){let M=H[U];q(M)}else throw TypeError("Expected a list of plugins, not `"+H+"`")}function W(H,U){let M=-1,Q=-1;while(++M<G.length)if(G[M][0]===H){Q=M;break}if(Q===-1)G.push([H,...U]);else if(U.length>0){let[F,...K]=U,j=G[Q][1];if(A4(j)&&A4(F))F=E5.default(!0,j,F);G[Q]=[H,F,...K]}}}}var A9=new O9().freeze();function F9($,J){if(typeof J!=="function")throw TypeError("Cannot `"+$+"` without `parser`")}function R9($,J){if(typeof J!=="function")throw TypeError("Cannot `"+$+"` without `compiler`")}function B9($,J){if(J)throw Error("Cannot call `"+$+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function fG($){if(!A4($)||typeof $.type!=="string")throw TypeError("Expected node, got `"+$+"`")}function uG($,J,G){if(!G)throw Error("`"+$+"` finished async. Use `"+J+"` instead")}function I5($){return VM($)?$:new S5($)}function VM($){return Boolean($&&typeof $==="object"&&"message"in $&&"messages"in $)}function WM($){return typeof $==="string"||HM($)}function HM($){return Boolean($&&typeof $==="object"&&"byteLength"in $&&"byteOffset"in $)}var pG=A9().use(O5).use(P5).freeze();var FP=pG();/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function q3($){return typeof $>"u"||$===null}function MM($){return typeof $==="object"&&$!==null}function zM($){if(Array.isArray($))return $;else if(q3($))return[];return[$]}function DM($,J){var G,X,q,V;if(J){V=Object.keys(J);for(G=0,X=V.length;G<X;G+=1)q=V[G],$[q]=J[q]}return $}function QM($,J){var G="",X;for(X=0;X<J;X+=1)G+=$;return G}function KM($){return $===0&&Number.NEGATIVE_INFINITY===1/$}var FM=q3,RM=MM,BM=zM,OM=QM,AM=KM,wM=DM,R1={isNothing:FM,isObject:RM,toArray:BM,repeat:OM,isNegativeZero:AM,extend:wM};function Y3($,J){var G="",X=$.reason||"(unknown reason)";if(!$.mark)return X;if($.mark.name)G+='in "'+$.mark.name+'" ';if(G+="("+($.mark.line+1)+":"+($.mark.column+1)+")",!J&&$.mark.snippet)G+=`
|
|
88
|
+
`;return q;function V(Y){return X.stack.push(Y),W;function W(){X.stack.pop()}}}function XM($){throw Error("Cannot handle value `"+$+"`, expected node")}function qM($){throw Error("Cannot handle unknown node `"+$.type+"`")}function YM($,J){if($.type==="definition"&&$.type===J.type)return 0}function VM($,J){return _G($,this,J)}function WM($,J){return PG($,this,J)}function HM($,J){return IG(this,$,J)}function L5($){let J=this;J.compiler=G;function G(X){return z9(X,{...J.data("settings"),...$,extensions:J.data("toMarkdownExtensions")||[]})}}function D9($){if($)throw $}var C5=k4(yG(),1);function A4($){if(typeof $!=="object"||$===null)return!1;let J=Object.getPrototypeOf($);return(J===null||J===Object.prototype||Object.getPrototypeOf(J)===null)&&!(Symbol.toStringTag in $)&&!(Symbol.iterator in $)}function Q9(){let $=[],J={run:G,use:X};return J;function G(...q){let V=-1,Y=q.pop();if(typeof Y!=="function")throw TypeError("Expected function as last argument, not "+Y);W(null,...q);function W(H,...U){let M=$[++V],Q=-1;if(H){Y(H);return}while(++Q<q.length)if(U[Q]===null||U[Q]===void 0)U[Q]=q[Q];if(q=U,M)mG(M,W)(...U);else Y(null,...U)}}function X(q){if(typeof q!=="function")throw TypeError("Expected `middelware` to be a function, not "+q);return $.push(q),J}}function mG($,J){let G;return X;function X(...Y){let W=$.length>Y.length,H;if(W)Y.push(q);try{H=$.apply(this,Y)}catch(U){let M=U;if(W&&G)throw M;return q(M)}if(!W)if(H&&H.then&&typeof H.then==="function")H.then(V,q);else if(H instanceof Error)q(H);else V(H)}function q(Y,...W){if(!G)G=!0,J(Y,...W)}function V(Y){q(null,Y)}}class j1 extends Error{constructor($,J,G){super();if(typeof J==="string")G=J,J=void 0;let X="",q={},V=!1;if(J)if("line"in J&&"column"in J)q={place:J};else if("start"in J&&"end"in J)q={place:J};else if("type"in J)q={ancestors:[J],place:J.position};else q={...J};if(typeof $==="string")X=$;else if(!q.cause&&$)V=!0,X=$.message,q.cause=$;if(!q.ruleId&&!q.source&&typeof G==="string"){let W=G.indexOf(":");if(W===-1)q.ruleId=G;else q.source=G.slice(0,W),q.ruleId=G.slice(W+1)}if(!q.place&&q.ancestors&&q.ancestors){let W=q.ancestors[q.ancestors.length-1];if(W)q.place=W.position}let Y=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=Y?Y.column:void 0,this.fatal=void 0,this.file="",this.message=X,this.line=Y?Y.line:void 0,this.name=T0(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=V&&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}}j1.prototype.file="";j1.prototype.name="";j1.prototype.reason="";j1.prototype.message="";j1.prototype.stack="";j1.prototype.column=void 0;j1.prototype.line=void 0;j1.prototype.ancestors=void 0;j1.prototype.cause=void 0;j1.prototype.fatal=void 0;j1.prototype.place=void 0;j1.prototype.ruleId=void 0;j1.prototype.source=void 0;import{default as a1}from"path";import{default as fG}from"process";import{fileURLToPath as uG}from"url";function I5($){return Boolean($!==null&&typeof $==="object"&&"href"in $&&$.href&&"protocol"in $&&$.protocol&&$.auth===void 0)}var K9=["history","path","basename","stem","extname","dirname"];class E5{constructor($){let J;if(!$)J={};else if(I5($))J={path:$};else if(typeof $==="string"||UM($))J={value:$};else J=$;this.cwd="cwd"in J?"":fG.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let G=-1;while(++G<K9.length){let q=K9[G];if(q in J&&J[q]!==void 0&&J[q]!==null)this[q]=q==="history"?[...J[q]]:J[q]}let X;for(X in J)if(!K9.includes(X))this[X]=J[X]}get basename(){return typeof this.path==="string"?a1.basename(this.path):void 0}set basename($){R9($,"basename"),F9($,"basename"),this.path=a1.join(this.dirname||"",$)}get dirname(){return typeof this.path==="string"?a1.dirname(this.path):void 0}set dirname($){pG(this.basename,"dirname"),this.path=a1.join($||"",this.basename)}get extname(){return typeof this.path==="string"?a1.extname(this.path):void 0}set extname($){if(F9($,"extname"),pG(this.dirname,"extname"),$){if($.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if($.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=a1.join(this.dirname,this.stem+($||""))}get path(){return this.history[this.history.length-1]}set path($){if(I5($))$=uG($);if(R9($,"path"),this.path!==$)this.history.push($)}get stem(){return typeof this.path==="string"?a1.basename(this.path,this.extname):void 0}set stem($){R9($,"stem"),F9($,"stem"),this.path=a1.join(this.dirname||"",$+(this.extname||""))}fail($,J,G){let X=this.message($,J,G);throw X.fatal=!0,X}info($,J,G){let X=this.message($,J,G);return X.fatal=void 0,X}message($,J,G){let X=new j1($,J,G);if(this.path)X.name=this.path+":"+X.name,X.file=this.path;return X.fatal=!1,this.messages.push(X),X}toString($){if(this.value===void 0)return"";if(typeof this.value==="string")return this.value;return new TextDecoder($||void 0).decode(this.value)}}function F9($,J){if($&&$.includes(a1.sep))throw Error("`"+J+"` cannot be a path: did not expect `"+a1.sep+"`")}function R9($,J){if(!$)throw Error("`"+J+"` cannot be empty")}function pG($,J){if(!$)throw Error("Setting `"+J+"` requires `path` to be set too")}function UM($){return Boolean($&&typeof $==="object"&&"byteLength"in $&&"byteOffset"in $)}var lG=function($){let X=this.constructor.prototype,q=X[$],V=function(){return q.apply(V,arguments)};return Object.setPrototypeOf(V,X),V};var MM={}.hasOwnProperty;class w9 extends lG{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=Q9()}copy(){let $=new w9,J=-1;while(++J<this.attachers.length){let G=this.attachers[J];$.use(...G)}return $.data(C5.default(!0,{},this.namespace)),$}data($,J){if(typeof $==="string"){if(arguments.length===2)return A9("data",this.frozen),this.namespace[$]=J,this;return MM.call(this.namespace,$)&&this.namespace[$]||void 0}if($)return A9("data",this.frozen),this.namespace=$,this;return this.namespace}freeze(){if(this.frozen)return this;let $=this;while(++this.freezeIndex<this.attachers.length){let[J,...G]=this.attachers[this.freezeIndex];if(G[0]===!1)continue;if(G[0]===!0)G[0]=void 0;let X=J.call($,...G);if(typeof X==="function")this.transformers.use(X)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse($){this.freeze();let J=S5($),G=this.parser||this.Parser;return B9("parse",G),G(String(J),J)}process($,J){let G=this;return this.freeze(),B9("process",this.parser||this.Parser),O9("process",this.compiler||this.Compiler),J?X(void 0,J):new Promise(X);function X(q,V){let Y=S5($),W=G.parse(Y);G.run(W,Y,function(U,M,Q){if(U||!M||!Q)return H(U);let F=M,K=G.stringify(F,Q);if(DM(K))Q.value=K;else Q.result=K;H(U,Q)});function H(U,M){if(U||!M)V(U);else if(q)q(M);else R(J,"`done` is defined if `resolve` is not"),J(void 0,M)}}}processSync($){let J=!1,G;return this.freeze(),B9("processSync",this.parser||this.Parser),O9("processSync",this.compiler||this.Compiler),this.process($,X),dG("processSync","process",J),R(G,"we either bailed on an error or have a tree"),G;function X(q,V){J=!0,D9(q),G=V}}run($,J,G){rG($),this.freeze();let X=this.transformers;if(!G&&typeof J==="function")G=J,J=void 0;return G?q(void 0,G):new Promise(q);function q(V,Y){R(typeof J!=="function","`file` can\u2019t be a `done` anymore, we checked");let W=S5(J);X.run($,W,H);function H(U,M,Q){let F=M||$;if(U)Y(U);else if(V)V(F);else R(G,"`done` is defined if `resolve` is not"),G(void 0,F,Q)}}}runSync($,J){let G=!1,X;return this.run($,J,q),dG("runSync","run",G),R(X,"we either bailed on an error or have a tree"),X;function q(V,Y){D9(V),X=Y,G=!0}}stringify($,J){this.freeze();let G=S5(J),X=this.compiler||this.Compiler;return O9("stringify",X),rG($),X($,G)}use($,...J){let G=this.attachers,X=this.namespace;if(A9("use",this.frozen),$===null||$===void 0);else if(typeof $==="function")W($,J);else if(typeof $==="object")if(Array.isArray($))Y($);else V($);else throw TypeError("Expected usable value, not `"+$+"`");return this;function q(H){if(typeof H==="function")W(H,[]);else if(typeof H==="object")if(Array.isArray(H)){let[U,...M]=H;W(U,M)}else V(H);else throw TypeError("Expected usable value, not `"+H+"`")}function V(H){if(!("plugins"in H)&&!("settings"in H))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(Y(H.plugins),H.settings)X.settings=C5.default(!0,X.settings,H.settings)}function Y(H){let U=-1;if(H===null||H===void 0);else if(Array.isArray(H))while(++U<H.length){let M=H[U];q(M)}else throw TypeError("Expected a list of plugins, not `"+H+"`")}function W(H,U){let M=-1,Q=-1;while(++M<G.length)if(G[M][0]===H){Q=M;break}if(Q===-1)G.push([H,...U]);else if(U.length>0){let[F,...K]=U,j=G[Q][1];if(A4(j)&&A4(F))F=C5.default(!0,j,F);G[Q]=[H,F,...K]}}}}var j9=new w9().freeze();function B9($,J){if(typeof J!=="function")throw TypeError("Cannot `"+$+"` without `parser`")}function O9($,J){if(typeof J!=="function")throw TypeError("Cannot `"+$+"` without `compiler`")}function A9($,J){if(J)throw Error("Cannot call `"+$+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function rG($){if(!A4($)||typeof $.type!=="string")throw TypeError("Expected node, got `"+$+"`")}function dG($,J,G){if(!G)throw Error("`"+$+"` finished async. Use `"+J+"` instead")}function S5($){return zM($)?$:new E5($)}function zM($){return Boolean($&&typeof $==="object"&&"message"in $&&"messages"in $)}function DM($){return typeof $==="string"||QM($)}function QM($){return Boolean($&&typeof $==="object"&&"byteLength"in $&&"byteOffset"in $)}var cG=j9().use(A5).use(L5).freeze();var LP=cG();/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function H3($){return typeof $>"u"||$===null}function FM($){return typeof $==="object"&&$!==null}function RM($){if(Array.isArray($))return $;else if(H3($))return[];return[$]}function BM($,J){var G,X,q,V;if(J){V=Object.keys(J);for(G=0,X=V.length;G<X;G+=1)q=V[G],$[q]=J[q]}return $}function OM($,J){var G="",X;for(X=0;X<J;X+=1)G+=$;return G}function AM($){return $===0&&Number.NEGATIVE_INFINITY===1/$}var wM=H3,jM=FM,NM=RM,ZM=OM,_M=AM,PM=BM,R1={isNothing:wM,isObject:jM,toArray:NM,repeat:ZM,isNegativeZero:_M,extend:PM};function U3($,J){var G="",X=$.reason||"(unknown reason)";if(!$.mark)return X;if($.mark.name)G+='in "'+$.mark.name+'" ';if(G+="("+($.mark.line+1)+":"+($.mark.column+1)+")",!J&&$.mark.snippet)G+=`
|
|
89
89
|
|
|
90
|
-
`+$.mark.snippet;return X+" "+G}function j4($,J){if(Error.call(this),this.name="YAMLException",this.reason=$,this.mark=J,this.message=
|
|
91
|
-
`+W}U=
|
|
90
|
+
`+$.mark.snippet;return X+" "+G}function j4($,J){if(Error.call(this),this.name="YAMLException",this.reason=$,this.mark=J,this.message=U3(this,!1),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}j4.prototype=Object.create(Error.prototype);j4.prototype.constructor=j4;j4.prototype.toString=function(J){return this.name+": "+U3(this,J)};var k1=j4;function N9($,J,G,X,q){var V="",Y="",W=Math.floor(q/2)-1;if(X-J>W)V=" ... ",J=X-W+V.length;if(G-X>W)Y=" ...",G=X+W-Y.length;return{str:V+$.slice(J,G).replace(/\t/g,"\u2192")+Y,pos:X-J+V.length}}function Z9($,J){return R1.repeat(" ",J-$.length)+$}function LM($,J){if(J=Object.create(J||null),!$.buffer)return null;if(!J.maxLength)J.maxLength=79;if(typeof J.indent!=="number")J.indent=1;if(typeof J.linesBefore!=="number")J.linesBefore=3;if(typeof J.linesAfter!=="number")J.linesAfter=2;var G=/\r?\n|\r|\0/g,X=[0],q=[],V,Y=-1;while(V=G.exec($.buffer))if(q.push(V.index),X.push(V.index+V[0].length),$.position<=V.index&&Y<0)Y=X.length-2;if(Y<0)Y=X.length-1;var W="",H,U,M=Math.min($.line+J.linesAfter,q.length).toString().length,Q=J.maxLength-(J.indent+M+3);for(H=1;H<=J.linesBefore;H++){if(Y-H<0)break;U=N9($.buffer,X[Y-H],q[Y-H],$.position-(X[Y]-X[Y-H]),Q),W=R1.repeat(" ",J.indent)+Z9(($.line-H+1).toString(),M)+" | "+U.str+`
|
|
91
|
+
`+W}U=N9($.buffer,X[Y],q[Y],$.position,Q),W+=R1.repeat(" ",J.indent)+Z9(($.line+1).toString(),M)+" | "+U.str+`
|
|
92
92
|
`,W+=R1.repeat("-",J.indent+M+3+U.pos)+`^
|
|
93
|
-
`;for(H=1;H<=J.linesAfter;H++){if(Y+H>=q.length)break;U=
|
|
94
|
-
`}return W.replace(/\n$/,"")}var
|
|
95
|
-
\r`;function
|
|
96
|
-
`:$===118?"\v":$===102?"\f":$===114?"\r":$===101?"\x1B":$===32?" ":$===34?'"':$===47?"/":$===92?"\\":$===78?"\x85":$===95?"\xA0":$===76?"\u2028":$===80?"\u2029":""}function
|
|
97
|
-
`,J-1)}function
|
|
98
|
-
`,V?1+H:H);else if(q===
|
|
99
|
-
`}break}if(X)if(
|
|
93
|
+
`;for(H=1;H<=J.linesAfter;H++){if(Y+H>=q.length)break;U=N9($.buffer,X[Y+H],q[Y+H],$.position-(X[Y]-X[Y+H]),Q),W+=R1.repeat(" ",J.indent)+Z9(($.line+H+1).toString(),M)+" | "+U.str+`
|
|
94
|
+
`}return W.replace(/\n$/,"")}var TM=LM,IM=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],EM=["scalar","sequence","mapping"];function SM($){var J={};if($!==null)Object.keys($).forEach(function(G){$[G].forEach(function(X){J[String(X)]=G})});return J}function CM($,J){if(J=J||{},Object.keys(J).forEach(function(G){if(IM.indexOf(G)===-1)throw new k1('Unknown option "'+G+'" is met in definition of "'+$+'" YAML type.')}),this.options=J,this.tag=$,this.kind=J.kind||null,this.resolve=J.resolve||function(){return!0},this.construct=J.construct||function(G){return G},this.instanceOf=J.instanceOf||null,this.predicate=J.predicate||null,this.represent=J.represent||null,this.representName=J.representName||null,this.defaultStyle=J.defaultStyle||null,this.multi=J.multi||!1,this.styleAliases=SM(J.styleAliases||null),EM.indexOf(this.kind)===-1)throw new k1('Unknown kind "'+this.kind+'" is specified for "'+$+'" YAML type.')}var P1=CM;function iG($,J){var G=[];return $[J].forEach(function(X){var q=G.length;G.forEach(function(V,Y){if(V.tag===X.tag&&V.kind===X.kind&&V.multi===X.multi)q=Y}),G[q]=X}),G}function bM(){var $={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},J,G;function X(q){if(q.multi)$.multi[q.kind].push(q),$.multi.fallback.push(q);else $[q.kind][q.tag]=$.fallback[q.tag]=q}for(J=0,G=arguments.length;J<G;J+=1)arguments[J].forEach(X);return $}function P9($){return this.extend($)}P9.prototype.extend=function(J){var G=[],X=[];if(J instanceof P1)X.push(J);else if(Array.isArray(J))X=X.concat(J);else if(J&&(Array.isArray(J.implicit)||Array.isArray(J.explicit))){if(J.implicit)G=G.concat(J.implicit);if(J.explicit)X=X.concat(J.explicit)}else throw new k1("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");G.forEach(function(V){if(!(V instanceof P1))throw new k1("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(V.loadKind&&V.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(V.multi)throw new k1("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),X.forEach(function(V){if(!(V instanceof P1))throw new k1("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var q=Object.create(P9.prototype);return q.implicit=(this.implicit||[]).concat(G),q.explicit=(this.explicit||[]).concat(X),q.compiledImplicit=iG(q,"implicit"),q.compiledExplicit=iG(q,"explicit"),q.compiledTypeMap=bM(q.compiledImplicit,q.compiledExplicit),q};var xM=P9,vM=new P1("tag:yaml.org,2002:str",{kind:"scalar",construct:function($){return $!==null?$:""}}),kM=new P1("tag:yaml.org,2002:seq",{kind:"sequence",construct:function($){return $!==null?$:[]}}),gM=new P1("tag:yaml.org,2002:map",{kind:"mapping",construct:function($){return $!==null?$:{}}}),hM=new xM({explicit:[vM,kM,gM]});function yM($){if($===null)return!0;var J=$.length;return J===1&&$==="~"||J===4&&($==="null"||$==="Null"||$==="NULL")}function mM(){return null}function fM($){return $===null}var uM=new P1("tag:yaml.org,2002:null",{kind:"scalar",resolve:yM,construct:mM,predicate:fM,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function pM($){if($===null)return!1;var J=$.length;return J===4&&($==="true"||$==="True"||$==="TRUE")||J===5&&($==="false"||$==="False"||$==="FALSE")}function lM($){return $==="true"||$==="True"||$==="TRUE"}function rM($){return Object.prototype.toString.call($)==="[object Boolean]"}var dM=new P1("tag:yaml.org,2002:bool",{kind:"scalar",resolve:pM,construct:lM,predicate:rM,represent:{lowercase:function($){return $?"true":"false"},uppercase:function($){return $?"TRUE":"FALSE"},camelcase:function($){return $?"True":"False"}},defaultStyle:"lowercase"});function cM($){return 48<=$&&$<=57||65<=$&&$<=70||97<=$&&$<=102}function iM($){return 48<=$&&$<=55}function oM($){return 48<=$&&$<=57}function nM($){if($===null)return!1;var J=$.length,G=0,X=!1,q;if(!J)return!1;if(q=$[G],q==="-"||q==="+")q=$[++G];if(q==="0"){if(G+1===J)return!0;if(q=$[++G],q==="b"){G++;for(;G<J;G++){if(q=$[G],q==="_")continue;if(q!=="0"&&q!=="1")return!1;X=!0}return X&&q!=="_"}if(q==="x"){G++;for(;G<J;G++){if(q=$[G],q==="_")continue;if(!cM($.charCodeAt(G)))return!1;X=!0}return X&&q!=="_"}if(q==="o"){G++;for(;G<J;G++){if(q=$[G],q==="_")continue;if(!iM($.charCodeAt(G)))return!1;X=!0}return X&&q!=="_"}}if(q==="_")return!1;for(;G<J;G++){if(q=$[G],q==="_")continue;if(!oM($.charCodeAt(G)))return!1;X=!0}if(!X||q==="_")return!1;return!0}function aM($){var J=$,G=1,X;if(J.indexOf("_")!==-1)J=J.replace(/_/g,"");if(X=J[0],X==="-"||X==="+"){if(X==="-")G=-1;J=J.slice(1),X=J[0]}if(J==="0")return 0;if(X==="0"){if(J[1]==="b")return G*parseInt(J.slice(2),2);if(J[1]==="x")return G*parseInt(J.slice(2),16);if(J[1]==="o")return G*parseInt(J.slice(2),8)}return G*parseInt(J,10)}function sM($){return Object.prototype.toString.call($)==="[object Number]"&&($%1===0&&!R1.isNegativeZero($))}var tM=new P1("tag:yaml.org,2002:int",{kind:"scalar",resolve:nM,construct:aM,predicate:sM,represent:{binary:function($){return $>=0?"0b"+$.toString(2):"-0b"+$.toString(2).slice(1)},octal:function($){return $>=0?"0o"+$.toString(8):"-0o"+$.toString(8).slice(1)},decimal:function($){return $.toString(10)},hexadecimal:function($){return $>=0?"0x"+$.toString(16).toUpperCase():"-0x"+$.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),eM=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function $z($){if($===null)return!1;if(!eM.test($)||$[$.length-1]==="_")return!1;return!0}function Jz($){var J,G;if(J=$.replace(/_/g,"").toLowerCase(),G=J[0]==="-"?-1:1,"+-".indexOf(J[0])>=0)J=J.slice(1);if(J===".inf")return G===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(J===".nan")return NaN;return G*parseFloat(J,10)}var Gz=/^[-+]?[0-9]+e/;function Xz($,J){var G;if(isNaN($))switch(J){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===$)switch(J){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===$)switch(J){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(R1.isNegativeZero($))return"-0.0";return G=$.toString(10),Gz.test(G)?G.replace("e",".e"):G}function qz($){return Object.prototype.toString.call($)==="[object Number]"&&($%1!==0||R1.isNegativeZero($))}var Yz=new P1("tag:yaml.org,2002:float",{kind:"scalar",resolve:$z,construct:Jz,predicate:qz,represent:Xz,defaultStyle:"lowercase"}),Vz=hM.extend({implicit:[uM,dM,tM,Yz]}),Wz=Vz,M3=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),z3=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 Hz($){if($===null)return!1;if(M3.exec($)!==null)return!0;if(z3.exec($)!==null)return!0;return!1}function Uz($){var J,G,X,q,V,Y,W,H=0,U=null,M,Q,F;if(J=M3.exec($),J===null)J=z3.exec($);if(J===null)throw Error("Date resolve error");if(G=+J[1],X=+J[2]-1,q=+J[3],!J[4])return new Date(Date.UTC(G,X,q));if(V=+J[4],Y=+J[5],W=+J[6],J[7]){H=J[7].slice(0,3);while(H.length<3)H+="0";H=+H}if(J[9]){if(M=+J[10],Q=+(J[11]||0),U=(M*60+Q)*60000,J[9]==="-")U=-U}if(F=new Date(Date.UTC(G,X,q,V,Y,W,H)),U)F.setTime(F.getTime()-U);return F}function Mz($){return $.toISOString()}var zz=new P1("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Hz,construct:Uz,instanceOf:Date,represent:Mz});function Dz($){return $==="<<"||$===null}var Qz=new P1("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Dz}),S9=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
95
|
+
\r`;function Kz($){if($===null)return!1;var J,G,X=0,q=$.length,V=S9;for(G=0;G<q;G++){if(J=V.indexOf($.charAt(G)),J>64)continue;if(J<0)return!1;X+=6}return X%8===0}function Fz($){var J,G,X=$.replace(/[\r\n=]/g,""),q=X.length,V=S9,Y=0,W=[];for(J=0;J<q;J++){if(J%4===0&&J)W.push(Y>>16&255),W.push(Y>>8&255),W.push(Y&255);Y=Y<<6|V.indexOf(X.charAt(J))}if(G=q%4*6,G===0)W.push(Y>>16&255),W.push(Y>>8&255),W.push(Y&255);else if(G===18)W.push(Y>>10&255),W.push(Y>>2&255);else if(G===12)W.push(Y>>4&255);return new Uint8Array(W)}function Rz($){var J="",G=0,X,q,V=$.length,Y=S9;for(X=0;X<V;X++){if(X%3===0&&X)J+=Y[G>>18&63],J+=Y[G>>12&63],J+=Y[G>>6&63],J+=Y[G&63];G=(G<<8)+$[X]}if(q=V%3,q===0)J+=Y[G>>18&63],J+=Y[G>>12&63],J+=Y[G>>6&63],J+=Y[G&63];else if(q===2)J+=Y[G>>10&63],J+=Y[G>>4&63],J+=Y[G<<2&63],J+=Y[64];else if(q===1)J+=Y[G>>2&63],J+=Y[G<<4&63],J+=Y[64],J+=Y[64];return J}function Bz($){return Object.prototype.toString.call($)==="[object Uint8Array]"}var Oz=new P1("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Kz,construct:Fz,predicate:Bz,represent:Rz}),Az=Object.prototype.hasOwnProperty,wz=Object.prototype.toString;function jz($){if($===null)return!0;var J=[],G,X,q,V,Y,W=$;for(G=0,X=W.length;G<X;G+=1){if(q=W[G],Y=!1,wz.call(q)!=="[object Object]")return!1;for(V in q)if(Az.call(q,V))if(!Y)Y=!0;else return!1;if(!Y)return!1;if(J.indexOf(V)===-1)J.push(V);else return!1}return!0}function Nz($){return $!==null?$:[]}var Zz=new P1("tag:yaml.org,2002:omap",{kind:"sequence",resolve:jz,construct:Nz}),_z=Object.prototype.toString;function Pz($){if($===null)return!0;var J,G,X,q,V,Y=$;V=Array(Y.length);for(J=0,G=Y.length;J<G;J+=1){if(X=Y[J],_z.call(X)!=="[object Object]")return!1;if(q=Object.keys(X),q.length!==1)return!1;V[J]=[q[0],X[q[0]]]}return!0}function Lz($){if($===null)return[];var J,G,X,q,V,Y=$;V=Array(Y.length);for(J=0,G=Y.length;J<G;J+=1)X=Y[J],q=Object.keys(X),V[J]=[q[0],X[q[0]]];return V}var Tz=new P1("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Pz,construct:Lz}),Iz=Object.prototype.hasOwnProperty;function Ez($){if($===null)return!0;var J,G=$;for(J in G)if(Iz.call(G,J)){if(G[J]!==null)return!1}return!0}function Sz($){return $!==null?$:{}}var Cz=new P1("tag:yaml.org,2002:set",{kind:"mapping",resolve:Ez,construct:Sz}),D3=Wz.extend({implicit:[zz,Qz],explicit:[Oz,Zz,Tz,Cz]}),C0=Object.prototype.hasOwnProperty,b5=1,Q3=2,K3=3,x5=4,_9=1,bz=2,oG=3,xz=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,vz=/[\x85\u2028\u2029]/,kz=/[,\[\]\{\}]/,F3=/^(?:!|!!|![a-z\-]+!)$/i,R3=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function nG($){return Object.prototype.toString.call($)}function Y0($){return $===10||$===13}function X2($){return $===9||$===32}function g1($){return $===9||$===32||$===10||$===13}function b2($){return $===44||$===91||$===93||$===123||$===125}function gz($){var J;if(48<=$&&$<=57)return $-48;if(J=$|32,97<=J&&J<=102)return J-97+10;return-1}function hz($){if($===120)return 2;if($===117)return 4;if($===85)return 8;return 0}function yz($){if(48<=$&&$<=57)return $-48;return-1}function aG($){return $===48?"\x00":$===97?"\x07":$===98?"\b":$===116?"\t":$===9?"\t":$===110?`
|
|
96
|
+
`:$===118?"\v":$===102?"\f":$===114?"\r":$===101?"\x1B":$===32?" ":$===34?'"':$===47?"/":$===92?"\\":$===78?"\x85":$===95?"\xA0":$===76?"\u2028":$===80?"\u2029":""}function mz($){if($<=65535)return String.fromCharCode($);return String.fromCharCode(($-65536>>10)+55296,($-65536&1023)+56320)}function B3($,J,G){if(J==="__proto__")Object.defineProperty($,J,{configurable:!0,enumerable:!0,writable:!0,value:G});else $[J]=G}var O3=Array(256),A3=Array(256);for(E0=0;E0<256;E0++)O3[E0]=aG(E0)?1:0,A3[E0]=aG(E0);var E0;function fz($,J){this.input=$,this.filename=J.filename||null,this.schema=J.schema||D3,this.onWarning=J.onWarning||null,this.legacy=J.legacy||!1,this.json=J.json||!1,this.listener=J.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=$.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function w3($,J){var G={name:$.filename,buffer:$.input.slice(0,-1),position:$.position,line:$.line,column:$.position-$.lineStart};return G.snippet=TM(G),new k1(J,G)}function y($,J){throw w3($,J)}function v5($,J){if($.onWarning)$.onWarning.call(null,w3($,J))}var sG={YAML:function(J,G,X){var q,V,Y;if(J.version!==null)y(J,"duplication of %YAML directive");if(X.length!==1)y(J,"YAML directive accepts exactly one argument");if(q=/^([0-9]+)\.([0-9]+)$/.exec(X[0]),q===null)y(J,"ill-formed argument of the YAML directive");if(V=parseInt(q[1],10),Y=parseInt(q[2],10),V!==1)y(J,"unacceptable YAML version of the document");if(J.version=X[0],J.checkLineBreaks=Y<2,Y!==1&&Y!==2)v5(J,"unsupported YAML version of the document")},TAG:function(J,G,X){var q,V;if(X.length!==2)y(J,"TAG directive accepts exactly two arguments");if(q=X[0],V=X[1],!F3.test(q))y(J,"ill-formed tag handle (first argument) of the TAG directive");if(C0.call(J.tagMap,q))y(J,'there is a previously declared suffix for "'+q+'" tag handle');if(!R3.test(V))y(J,"ill-formed tag prefix (second argument) of the TAG directive");try{V=decodeURIComponent(V)}catch(Y){y(J,"tag prefix is malformed: "+V)}J.tagMap[q]=V}};function S0($,J,G,X){var q,V,Y,W;if(J<G){if(W=$.input.slice(J,G),X){for(q=0,V=W.length;q<V;q+=1)if(Y=W.charCodeAt(q),!(Y===9||32<=Y&&Y<=1114111))y($,"expected valid JSON character")}else if(xz.test(W))y($,"the stream contains non-printable characters");$.result+=W}}function tG($,J,G,X){var q,V,Y,W;if(!R1.isObject(G))y($,"cannot merge mappings; the provided source object is unacceptable");q=Object.keys(G);for(Y=0,W=q.length;Y<W;Y+=1)if(V=q[Y],!C0.call(J,V))B3(J,V,G[V]),X[V]=!0}function x2($,J,G,X,q,V,Y,W,H){var U,M;if(Array.isArray(q)){q=Array.prototype.slice.call(q);for(U=0,M=q.length;U<M;U+=1){if(Array.isArray(q[U]))y($,"nested arrays are not supported inside keys");if(typeof q==="object"&&nG(q[U])==="[object Object]")q[U]="[object Object]"}}if(typeof q==="object"&&nG(q)==="[object Object]")q="[object Object]";if(q=String(q),J===null)J={};if(X==="tag:yaml.org,2002:merge")if(Array.isArray(V))for(U=0,M=V.length;U<M;U+=1)tG($,J,V[U],G);else tG($,J,V,G);else{if(!$.json&&!C0.call(G,q)&&C0.call(J,q))$.line=Y||$.line,$.lineStart=W||$.lineStart,$.position=H||$.position,y($,"duplicated mapping key");B3(J,q,V),delete G[q]}return J}function C9($){var J=$.input.charCodeAt($.position);if(J===10)$.position++;else if(J===13){if($.position++,$.input.charCodeAt($.position)===10)$.position++}else y($,"a line break is expected");$.line+=1,$.lineStart=$.position,$.firstTabInLine=-1}function D1($,J,G){var X=0,q=$.input.charCodeAt($.position);while(q!==0){while(X2(q)){if(q===9&&$.firstTabInLine===-1)$.firstTabInLine=$.position;q=$.input.charCodeAt(++$.position)}if(J&&q===35)do q=$.input.charCodeAt(++$.position);while(q!==10&&q!==13&&q!==0);if(Y0(q)){C9($),q=$.input.charCodeAt($.position),X++,$.lineIndent=0;while(q===32)$.lineIndent++,q=$.input.charCodeAt(++$.position)}else break}if(G!==-1&&X!==0&&$.lineIndent<G)v5($,"deficient indentation");return X}function h5($){var J=$.position,G;if(G=$.input.charCodeAt(J),(G===45||G===46)&&G===$.input.charCodeAt(J+1)&&G===$.input.charCodeAt(J+2)){if(J+=3,G=$.input.charCodeAt(J),G===0||g1(G))return!0}return!1}function b9($,J){if(J===1)$.result+=" ";else if(J>1)$.result+=R1.repeat(`
|
|
97
|
+
`,J-1)}function uz($,J,G){var X,q,V,Y,W,H,U,M,Q=$.kind,F=$.result,K;if(K=$.input.charCodeAt($.position),g1(K)||b2(K)||K===35||K===38||K===42||K===33||K===124||K===62||K===39||K===34||K===37||K===64||K===96)return!1;if(K===63||K===45){if(q=$.input.charCodeAt($.position+1),g1(q)||G&&b2(q))return!1}$.kind="scalar",$.result="",V=Y=$.position,W=!1;while(K!==0){if(K===58){if(q=$.input.charCodeAt($.position+1),g1(q)||G&&b2(q))break}else if(K===35){if(X=$.input.charCodeAt($.position-1),g1(X))break}else if($.position===$.lineStart&&h5($)||G&&b2(K))break;else if(Y0(K))if(H=$.line,U=$.lineStart,M=$.lineIndent,D1($,!1,-1),$.lineIndent>=J){W=!0,K=$.input.charCodeAt($.position);continue}else{$.position=Y,$.line=H,$.lineStart=U,$.lineIndent=M;break}if(W)S0($,V,Y,!1),b9($,$.line-H),V=Y=$.position,W=!1;if(!X2(K))Y=$.position+1;K=$.input.charCodeAt(++$.position)}if(S0($,V,Y,!1),$.result)return!0;return $.kind=Q,$.result=F,!1}function pz($,J){var G,X,q;if(G=$.input.charCodeAt($.position),G!==39)return!1;$.kind="scalar",$.result="",$.position++,X=q=$.position;while((G=$.input.charCodeAt($.position))!==0)if(G===39)if(S0($,X,$.position,!0),G=$.input.charCodeAt(++$.position),G===39)X=$.position,$.position++,q=$.position;else return!0;else if(Y0(G))S0($,X,q,!0),b9($,D1($,!1,J)),X=q=$.position;else if($.position===$.lineStart&&h5($))y($,"unexpected end of the document within a single quoted scalar");else $.position++,q=$.position;y($,"unexpected end of the stream within a single quoted scalar")}function lz($,J){var G,X,q,V,Y,W;if(W=$.input.charCodeAt($.position),W!==34)return!1;$.kind="scalar",$.result="",$.position++,G=X=$.position;while((W=$.input.charCodeAt($.position))!==0)if(W===34)return S0($,G,$.position,!0),$.position++,!0;else if(W===92){if(S0($,G,$.position,!0),W=$.input.charCodeAt(++$.position),Y0(W))D1($,!1,J);else if(W<256&&O3[W])$.result+=A3[W],$.position++;else if((Y=hz(W))>0){q=Y,V=0;for(;q>0;q--)if(W=$.input.charCodeAt(++$.position),(Y=gz(W))>=0)V=(V<<4)+Y;else y($,"expected hexadecimal character");$.result+=mz(V),$.position++}else y($,"unknown escape sequence");G=X=$.position}else if(Y0(W))S0($,G,X,!0),b9($,D1($,!1,J)),G=X=$.position;else if($.position===$.lineStart&&h5($))y($,"unexpected end of the document within a double quoted scalar");else $.position++,X=$.position;y($,"unexpected end of the stream within a double quoted scalar")}function rz($,J){var G=!0,X,q,V,Y=$.tag,W,H=$.anchor,U,M,Q,F,K,j=Object.create(null),N,P,_,k;if(k=$.input.charCodeAt($.position),k===91)M=93,K=!1,W=[];else if(k===123)M=125,K=!0,W={};else return!1;if($.anchor!==null)$.anchorMap[$.anchor]=W;k=$.input.charCodeAt(++$.position);while(k!==0){if(D1($,!0,J),k=$.input.charCodeAt($.position),k===M)return $.position++,$.tag=Y,$.anchor=H,$.kind=K?"mapping":"sequence",$.result=W,!0;else if(!G)y($,"missed comma between flow collection entries");else if(k===44)y($,"expected the node content, but found ','");if(P=N=_=null,Q=F=!1,k===63){if(U=$.input.charCodeAt($.position+1),g1(U))Q=F=!0,$.position++,D1($,!0,J)}if(X=$.line,q=$.lineStart,V=$.position,v2($,J,b5,!1,!0),P=$.tag,N=$.result,D1($,!0,J),k=$.input.charCodeAt($.position),(F||$.line===X)&&k===58)Q=!0,k=$.input.charCodeAt(++$.position),D1($,!0,J),v2($,J,b5,!1,!0),_=$.result;if(K)x2($,W,j,P,N,_,X,q,V);else if(Q)W.push(x2($,null,j,P,N,_,X,q,V));else W.push(N);if(D1($,!0,J),k=$.input.charCodeAt($.position),k===44)G=!0,k=$.input.charCodeAt(++$.position);else G=!1}y($,"unexpected end of the stream within a flow collection")}function dz($,J){var G,X,q=_9,V=!1,Y=!1,W=J,H=0,U=!1,M,Q;if(Q=$.input.charCodeAt($.position),Q===124)X=!1;else if(Q===62)X=!0;else return!1;$.kind="scalar",$.result="";while(Q!==0)if(Q=$.input.charCodeAt(++$.position),Q===43||Q===45)if(_9===q)q=Q===43?oG:bz;else y($,"repeat of a chomping mode identifier");else if((M=yz(Q))>=0)if(M===0)y($,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!Y)W=J+M-1,Y=!0;else y($,"repeat of an indentation width identifier");else break;if(X2(Q)){do Q=$.input.charCodeAt(++$.position);while(X2(Q));if(Q===35)do Q=$.input.charCodeAt(++$.position);while(!Y0(Q)&&Q!==0)}while(Q!==0){C9($),$.lineIndent=0,Q=$.input.charCodeAt($.position);while((!Y||$.lineIndent<W)&&Q===32)$.lineIndent++,Q=$.input.charCodeAt(++$.position);if(!Y&&$.lineIndent>W)W=$.lineIndent;if(Y0(Q)){H++;continue}if($.lineIndent<W){if(q===oG)$.result+=R1.repeat(`
|
|
98
|
+
`,V?1+H:H);else if(q===_9){if(V)$.result+=`
|
|
99
|
+
`}break}if(X)if(X2(Q))U=!0,$.result+=R1.repeat(`
|
|
100
100
|
`,V?1+H:H);else if(U)U=!1,$.result+=R1.repeat(`
|
|
101
101
|
`,H+1);else if(H===0){if(V)$.result+=" "}else $.result+=R1.repeat(`
|
|
102
102
|
`,H);else $.result+=R1.repeat(`
|
|
103
|
-
`,V?1+H:H);V=!0,Y=!0,H=0,G=$.position;while(!Y0(Q)&&Q!==0)Q=$.input.charCodeAt(++$.position);
|
|
104
|
-
`;if($.charCodeAt(0)===65279)$=$.slice(1)}var G=new
|
|
103
|
+
`,V?1+H:H);V=!0,Y=!0,H=0,G=$.position;while(!Y0(Q)&&Q!==0)Q=$.input.charCodeAt(++$.position);S0($,G,$.position,!1)}return!0}function eG($,J){var G,X=$.tag,q=$.anchor,V=[],Y,W=!1,H;if($.firstTabInLine!==-1)return!1;if($.anchor!==null)$.anchorMap[$.anchor]=V;H=$.input.charCodeAt($.position);while(H!==0){if($.firstTabInLine!==-1)$.position=$.firstTabInLine,y($,"tab characters must not be used in indentation");if(H!==45)break;if(Y=$.input.charCodeAt($.position+1),!g1(Y))break;if(W=!0,$.position++,D1($,!0,-1)){if($.lineIndent<=J){V.push(null),H=$.input.charCodeAt($.position);continue}}if(G=$.line,v2($,J,K3,!1,!0),V.push($.result),D1($,!0,-1),H=$.input.charCodeAt($.position),($.line===G||$.lineIndent>J)&&H!==0)y($,"bad indentation of a sequence entry");else if($.lineIndent<J)break}if(W)return $.tag=X,$.anchor=q,$.kind="sequence",$.result=V,!0;return!1}function cz($,J,G){var X,q,V,Y,W,H,U=$.tag,M=$.anchor,Q={},F=Object.create(null),K=null,j=null,N=null,P=!1,_=!1,k;if($.firstTabInLine!==-1)return!1;if($.anchor!==null)$.anchorMap[$.anchor]=Q;k=$.input.charCodeAt($.position);while(k!==0){if(!P&&$.firstTabInLine!==-1)$.position=$.firstTabInLine,y($,"tab characters must not be used in indentation");if(X=$.input.charCodeAt($.position+1),V=$.line,(k===63||k===58)&&g1(X)){if(k===63){if(P)x2($,Q,F,K,j,null,Y,W,H),K=j=N=null;_=!0,P=!0,q=!0}else if(P)P=!1,q=!0;else y($,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");$.position+=1,k=X}else{if(Y=$.line,W=$.lineStart,H=$.position,!v2($,G,Q3,!1,!0))break;if($.line===V){k=$.input.charCodeAt($.position);while(X2(k))k=$.input.charCodeAt(++$.position);if(k===58){if(k=$.input.charCodeAt(++$.position),!g1(k))y($,"a whitespace character is expected after the key-value separator within a block mapping");if(P)x2($,Q,F,K,j,null,Y,W,H),K=j=N=null;_=!0,P=!1,q=!1,K=$.tag,j=$.result}else if(_)y($,"can not read an implicit mapping pair; a colon is missed");else return $.tag=U,$.anchor=M,!0}else if(_)y($,"can not read a block mapping entry; a multiline key may not be an implicit key");else return $.tag=U,$.anchor=M,!0}if($.line===V||$.lineIndent>J){if(P)Y=$.line,W=$.lineStart,H=$.position;if(v2($,J,x5,!0,q))if(P)j=$.result;else N=$.result;if(!P)x2($,Q,F,K,j,N,Y,W,H),K=j=N=null;D1($,!0,-1),k=$.input.charCodeAt($.position)}if(($.line===V||$.lineIndent>J)&&k!==0)y($,"bad indentation of a mapping entry");else if($.lineIndent<J)break}if(P)x2($,Q,F,K,j,null,Y,W,H);if(_)$.tag=U,$.anchor=M,$.kind="mapping",$.result=Q;return _}function iz($){var J,G=!1,X=!1,q,V,Y;if(Y=$.input.charCodeAt($.position),Y!==33)return!1;if($.tag!==null)y($,"duplication of a tag property");if(Y=$.input.charCodeAt(++$.position),Y===60)G=!0,Y=$.input.charCodeAt(++$.position);else if(Y===33)X=!0,q="!!",Y=$.input.charCodeAt(++$.position);else q="!";if(J=$.position,G){do Y=$.input.charCodeAt(++$.position);while(Y!==0&&Y!==62);if($.position<$.length)V=$.input.slice(J,$.position),Y=$.input.charCodeAt(++$.position);else y($,"unexpected end of the stream within a verbatim tag")}else{while(Y!==0&&!g1(Y)){if(Y===33)if(!X){if(q=$.input.slice(J-1,$.position+1),!F3.test(q))y($,"named tag handle cannot contain such characters");X=!0,J=$.position+1}else y($,"tag suffix cannot contain exclamation marks");Y=$.input.charCodeAt(++$.position)}if(V=$.input.slice(J,$.position),kz.test(V))y($,"tag suffix cannot contain flow indicator characters")}if(V&&!R3.test(V))y($,"tag name cannot contain such characters: "+V);try{V=decodeURIComponent(V)}catch(W){y($,"tag name is malformed: "+V)}if(G)$.tag=V;else if(C0.call($.tagMap,q))$.tag=$.tagMap[q]+V;else if(q==="!")$.tag="!"+V;else if(q==="!!")$.tag="tag:yaml.org,2002:"+V;else y($,'undeclared tag handle "'+q+'"');return!0}function oz($){var J,G;if(G=$.input.charCodeAt($.position),G!==38)return!1;if($.anchor!==null)y($,"duplication of an anchor property");G=$.input.charCodeAt(++$.position),J=$.position;while(G!==0&&!g1(G)&&!b2(G))G=$.input.charCodeAt(++$.position);if($.position===J)y($,"name of an anchor node must contain at least one character");return $.anchor=$.input.slice(J,$.position),!0}function nz($){var J,G,X;if(X=$.input.charCodeAt($.position),X!==42)return!1;X=$.input.charCodeAt(++$.position),J=$.position;while(X!==0&&!g1(X)&&!b2(X))X=$.input.charCodeAt(++$.position);if($.position===J)y($,"name of an alias node must contain at least one character");if(G=$.input.slice(J,$.position),!C0.call($.anchorMap,G))y($,'unidentified alias "'+G+'"');return $.result=$.anchorMap[G],D1($,!0,-1),!0}function v2($,J,G,X,q){var V,Y,W,H=1,U=!1,M=!1,Q,F,K,j,N,P;if($.listener!==null)$.listener("open",$);if($.tag=null,$.anchor=null,$.kind=null,$.result=null,V=Y=W=x5===G||K3===G,X){if(D1($,!0,-1)){if(U=!0,$.lineIndent>J)H=1;else if($.lineIndent===J)H=0;else if($.lineIndent<J)H=-1}}if(H===1)while(iz($)||oz($))if(D1($,!0,-1)){if(U=!0,W=V,$.lineIndent>J)H=1;else if($.lineIndent===J)H=0;else if($.lineIndent<J)H=-1}else W=!1;if(W)W=U||q;if(H===1||x5===G){if(b5===G||Q3===G)N=J;else N=J+1;if(P=$.position-$.lineStart,H===1)if(W&&(eG($,P)||cz($,P,N))||rz($,N))M=!0;else{if(Y&&dz($,N)||pz($,N)||lz($,N))M=!0;else if(nz($)){if(M=!0,$.tag!==null||$.anchor!==null)y($,"alias node should not have any properties")}else if(uz($,N,b5===G)){if(M=!0,$.tag===null)$.tag="?"}if($.anchor!==null)$.anchorMap[$.anchor]=$.result}else if(H===0)M=W&&eG($,P)}if($.tag===null){if($.anchor!==null)$.anchorMap[$.anchor]=$.result}else if($.tag==="?"){if($.result!==null&&$.kind!=="scalar")y($,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+$.kind+'"');for(Q=0,F=$.implicitTypes.length;Q<F;Q+=1)if(j=$.implicitTypes[Q],j.resolve($.result)){if($.result=j.construct($.result),$.tag=j.tag,$.anchor!==null)$.anchorMap[$.anchor]=$.result;break}}else if($.tag!=="!"){if(C0.call($.typeMap[$.kind||"fallback"],$.tag))j=$.typeMap[$.kind||"fallback"][$.tag];else{j=null,K=$.typeMap.multi[$.kind||"fallback"];for(Q=0,F=K.length;Q<F;Q+=1)if($.tag.slice(0,K[Q].tag.length)===K[Q].tag){j=K[Q];break}}if(!j)y($,"unknown tag !<"+$.tag+">");if($.result!==null&&j.kind!==$.kind)y($,"unacceptable node kind for !<"+$.tag+'> tag; it should be "'+j.kind+'", not "'+$.kind+'"');if(!j.resolve($.result,$.tag))y($,"cannot resolve a node with !<"+$.tag+"> explicit tag");else if($.result=j.construct($.result,$.tag),$.anchor!==null)$.anchorMap[$.anchor]=$.result}if($.listener!==null)$.listener("close",$);return $.tag!==null||$.anchor!==null||M}function az($){var J=$.position,G,X,q,V=!1,Y;$.version=null,$.checkLineBreaks=$.legacy,$.tagMap=Object.create(null),$.anchorMap=Object.create(null);while((Y=$.input.charCodeAt($.position))!==0){if(D1($,!0,-1),Y=$.input.charCodeAt($.position),$.lineIndent>0||Y!==37)break;V=!0,Y=$.input.charCodeAt(++$.position),G=$.position;while(Y!==0&&!g1(Y))Y=$.input.charCodeAt(++$.position);if(X=$.input.slice(G,$.position),q=[],X.length<1)y($,"directive name must not be less than one character in length");while(Y!==0){while(X2(Y))Y=$.input.charCodeAt(++$.position);if(Y===35){do Y=$.input.charCodeAt(++$.position);while(Y!==0&&!Y0(Y));break}if(Y0(Y))break;G=$.position;while(Y!==0&&!g1(Y))Y=$.input.charCodeAt(++$.position);q.push($.input.slice(G,$.position))}if(Y!==0)C9($);if(C0.call(sG,X))sG[X]($,X,q);else v5($,'unknown document directive "'+X+'"')}if(D1($,!0,-1),$.lineIndent===0&&$.input.charCodeAt($.position)===45&&$.input.charCodeAt($.position+1)===45&&$.input.charCodeAt($.position+2)===45)$.position+=3,D1($,!0,-1);else if(V)y($,"directives end mark is expected");if(v2($,$.lineIndent-1,x5,!1,!0),D1($,!0,-1),$.checkLineBreaks&&vz.test($.input.slice(J,$.position)))v5($,"non-ASCII line breaks are interpreted as content");if($.documents.push($.result),$.position===$.lineStart&&h5($)){if($.input.charCodeAt($.position)===46)$.position+=3,D1($,!0,-1);return}if($.position<$.length-1)y($,"end of the stream or a document separator is expected");else return}function j3($,J){if($=String($),J=J||{},$.length!==0){if($.charCodeAt($.length-1)!==10&&$.charCodeAt($.length-1)!==13)$+=`
|
|
104
|
+
`;if($.charCodeAt(0)===65279)$=$.slice(1)}var G=new fz($,J),X=$.indexOf("\x00");if(X!==-1)G.position=X,y(G,"null byte is not allowed in input");G.input+="\x00";while(G.input.charCodeAt(G.position)===32)G.lineIndent+=1,G.position+=1;while(G.position<G.length-1)az(G);return G.documents}function sz($,J,G){if(J!==null&&typeof J==="object"&&typeof G>"u")G=J,J=null;var X=j3($,G);if(typeof J!=="function")return X;for(var q=0,V=X.length;q<V;q+=1)J(X[q])}function tz($,J){var G=j3($,J);if(G.length===0)return;else if(G.length===1)return G[0];throw new k1("expected a single document in the stream, but found more")}var ez=sz,$D=tz,N3={loadAll:ez,load:$D},Z3=Object.prototype.toString,_3=Object.prototype.hasOwnProperty,x9=65279,JD=9,N4=10,GD=13,XD=32,qD=33,YD=34,L9=35,VD=37,WD=38,HD=39,UD=42,P3=44,MD=45,k5=58,zD=61,DD=62,QD=63,KD=64,L3=91,T3=93,FD=96,I3=123,RD=124,E3=125,L1={};L1[0]="\\0";L1[7]="\\a";L1[8]="\\b";L1[9]="\\t";L1[10]="\\n";L1[11]="\\v";L1[12]="\\f";L1[13]="\\r";L1[27]="\\e";L1[34]="\\\"";L1[92]="\\\\";L1[133]="\\N";L1[160]="\\_";L1[8232]="\\L";L1[8233]="\\P";var BD=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],OD=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function AD($,J){var G,X,q,V,Y,W,H;if(J===null)return{};G={},X=Object.keys(J);for(q=0,V=X.length;q<V;q+=1){if(Y=X[q],W=String(J[Y]),Y.slice(0,2)==="!!")Y="tag:yaml.org,2002:"+Y.slice(2);if(H=$.compiledTypeMap.fallback[Y],H&&_3.call(H.styleAliases,W))W=H.styleAliases[W];G[Y]=W}return G}function wD($){var J,G,X;if(J=$.toString(16).toUpperCase(),$<=255)G="x",X=2;else if($<=65535)G="u",X=4;else if($<=4294967295)G="U",X=8;else throw new k1("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+G+R1.repeat("0",X-J.length)+J}var jD=1,Z4=2;function ND($){this.schema=$.schema||D3,this.indent=Math.max(1,$.indent||2),this.noArrayIndent=$.noArrayIndent||!1,this.skipInvalid=$.skipInvalid||!1,this.flowLevel=R1.isNothing($.flowLevel)?-1:$.flowLevel,this.styleMap=AD(this.schema,$.styles||null),this.sortKeys=$.sortKeys||!1,this.lineWidth=$.lineWidth||80,this.noRefs=$.noRefs||!1,this.noCompatMode=$.noCompatMode||!1,this.condenseFlow=$.condenseFlow||!1,this.quotingType=$.quotingType==='"'?Z4:jD,this.forceQuotes=$.forceQuotes||!1,this.replacer=typeof $.replacer==="function"?$.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function $3($,J){var G=R1.repeat(" ",J),X=0,q=-1,V="",Y,W=$.length;while(X<W){if(q=$.indexOf(`
|
|
105
105
|
`,X),q===-1)Y=$.slice(X),X=W;else Y=$.slice(X,q+1),X=q+1;if(Y.length&&Y!==`
|
|
106
|
-
`)V+=G;V+=Y}return V}function
|
|
107
|
-
`+R1.repeat(" ",$.indent*J)}function
|
|
106
|
+
`)V+=G;V+=Y}return V}function T9($,J){return`
|
|
107
|
+
`+R1.repeat(" ",$.indent*J)}function ZD($,J){var G,X,q;for(G=0,X=$.implicitTypes.length;G<X;G+=1)if(q=$.implicitTypes[G],q.resolve(J))return!0;return!1}function g5($){return $===XD||$===JD}function _4($){return 32<=$&&$<=126||161<=$&&$<=55295&&$!==8232&&$!==8233||57344<=$&&$<=65533&&$!==x9||65536<=$&&$<=1114111}function J3($){return _4($)&&$!==x9&&$!==GD&&$!==N4}function G3($,J,G){var X=J3($),q=X&&!g5($);return(G?X:X&&$!==P3&&$!==L3&&$!==T3&&$!==I3&&$!==E3)&&$!==L9&&!(J===k5&&!q)||J3(J)&&!g5(J)&&$===L9||J===k5&&q}function _D($){return _4($)&&$!==x9&&!g5($)&&$!==MD&&$!==QD&&$!==k5&&$!==P3&&$!==L3&&$!==T3&&$!==I3&&$!==E3&&$!==L9&&$!==WD&&$!==UD&&$!==qD&&$!==RD&&$!==zD&&$!==DD&&$!==HD&&$!==YD&&$!==VD&&$!==KD&&$!==FD}function PD($){return!g5($)&&$!==k5}function w4($,J){var G=$.charCodeAt(J),X;if(G>=55296&&G<=56319&&J+1<$.length){if(X=$.charCodeAt(J+1),X>=56320&&X<=57343)return(G-55296)*1024+X-56320+65536}return G}function S3($){var J=/^\n* /;return J.test($)}var C3=1,I9=2,b3=3,x3=4,C2=5;function LD($,J,G,X,q,V,Y,W){var H,U=0,M=null,Q=!1,F=!1,K=X!==-1,j=-1,N=_D(w4($,0))&&PD(w4($,$.length-1));if(J||Y)for(H=0;H<$.length;U>=65536?H+=2:H++){if(U=w4($,H),!_4(U))return C2;N=N&&G3(U,M,W),M=U}else{for(H=0;H<$.length;U>=65536?H+=2:H++){if(U=w4($,H),U===N4){if(Q=!0,K)F=F||H-j-1>X&&$[j+1]!==" ",j=H}else if(!_4(U))return C2;N=N&&G3(U,M,W),M=U}F=F||K&&(H-j-1>X&&$[j+1]!==" ")}if(!Q&&!F){if(N&&!Y&&!q($))return C3;return V===Z4?C2:I9}if(G>9&&S3($))return C2;if(!Y)return F?x3:b3;return V===Z4?C2:I9}function TD($,J,G,X,q){$.dump=function(){if(J.length===0)return $.quotingType===Z4?'""':"''";if(!$.noCompatMode){if(BD.indexOf(J)!==-1||OD.test(J))return $.quotingType===Z4?'"'+J+'"':"'"+J+"'"}var V=$.indent*Math.max(1,G),Y=$.lineWidth===-1?-1:Math.max(Math.min($.lineWidth,40),$.lineWidth-V),W=X||$.flowLevel>-1&&G>=$.flowLevel;function H(U){return ZD($,U)}switch(LD(J,W,$.indent,Y,H,$.quotingType,$.forceQuotes&&!X,q)){case C3:return J;case I9:return"'"+J.replace(/'/g,"''")+"'";case b3:return"|"+X3(J,$.indent)+q3($3(J,V));case x3:return">"+X3(J,$.indent)+q3($3(ID(J,Y),V));case C2:return'"'+ED(J)+'"';default:throw new k1("impossible error: invalid scalar style")}}()}function X3($,J){var G=S3($)?String(J):"",X=$[$.length-1]===`
|
|
108
108
|
`,q=X&&($[$.length-2]===`
|
|
109
109
|
`||$===`
|
|
110
110
|
`),V=q?"+":X?"":"-";return G+V+`
|
|
111
|
-
`}function
|
|
112
|
-
`?$.slice(0,-1):$}function
|
|
113
|
-
`);return U=U!==-1?U:$.length,G.lastIndex=U,
|
|
111
|
+
`}function q3($){return $[$.length-1]===`
|
|
112
|
+
`?$.slice(0,-1):$}function ID($,J){var G=/(\n+)([^\n]*)/g,X=function(){var U=$.indexOf(`
|
|
113
|
+
`);return U=U!==-1?U:$.length,G.lastIndex=U,Y3($.slice(0,U),J)}(),q=$[0]===`
|
|
114
114
|
`||$[0]===" ",V,Y;while(Y=G.exec($)){var W=Y[1],H=Y[2];V=H[0]===" ",X+=W+(!q&&!V&&H!==""?`
|
|
115
|
-
`:"")+
|
|
115
|
+
`:"")+Y3(H,J),q=V}return X}function Y3($,J){if($===""||$[0]===" ")return $;var G=/ [^ ]/g,X,q=0,V,Y=0,W=0,H="";while(X=G.exec($)){if(W=X.index,W-q>J)V=Y>q?Y:W,H+=`
|
|
116
116
|
`+$.slice(q,V),q=V+1;Y=W}if(H+=`
|
|
117
117
|
`,$.length-q>J&&Y>q)H+=$.slice(q,Y)+`
|
|
118
|
-
`+$.slice(Y+1);else H+=$.slice(q);return H.slice(1)}function
|
|
119
|
-
`;return""}var ED=ID,CD={dump:ED};function b9($,J){return function(){throw Error("Function yaml."+$+" is removed in js-yaml 4. Use yaml."+J+" instead, which is now safe by default.")}}var{load:bD,loadAll:OP}=O3,vD=CD.dump;var AP=b9("safeLoad","load"),wP=b9("safeLoadAll","loadAll"),jP=b9("safeDump","dump");var g={};l9(g,{void:()=>OQ,util:()=>a,unknown:()=>RQ,union:()=>NQ,undefined:()=>QQ,tuple:()=>PQ,transformer:()=>kQ,symbol:()=>DQ,string:()=>y3,strictObject:()=>jQ,setErrorMap:()=>hD,set:()=>SQ,record:()=>LQ,quotelessJson:()=>kD,promise:()=>xQ,preprocess:()=>yQ,pipeline:()=>mQ,ostring:()=>fQ,optional:()=>gQ,onumber:()=>uQ,oboolean:()=>pQ,objectUtil:()=>v9,object:()=>wQ,number:()=>m3,nullable:()=>hQ,null:()=>KQ,never:()=>BQ,nativeEnum:()=>vQ,nan:()=>UQ,map:()=>TQ,makeIssue:()=>P4,literal:()=>CQ,lazy:()=>EQ,late:()=>WQ,isValid:()=>b0,isDirty:()=>y5,isAsync:()=>g2,isAborted:()=>h5,intersection:()=>_Q,instanceof:()=>HQ,getParsedType:()=>V0,getErrorMap:()=>k2,function:()=>IQ,enum:()=>bQ,effect:()=>kQ,discriminatedUnion:()=>ZQ,defaultErrorMap:()=>B0,datetimeRegex:()=>k3,date:()=>zQ,custom:()=>h3,coerce:()=>lQ,boolean:()=>f3,bigint:()=>MQ,array:()=>AQ,any:()=>FQ,addIssueToContext:()=>E,ZodVoid:()=>T4,ZodUnknown:()=>v0,ZodUnion:()=>p2,ZodUndefined:()=>f2,ZodType:()=>o,ZodTuple:()=>H0,ZodTransformer:()=>J0,ZodSymbol:()=>L4,ZodString:()=>s1,ZodSet:()=>V2,ZodSchema:()=>o,ZodRecord:()=>S4,ZodReadonly:()=>n2,ZodPromise:()=>W2,ZodPipeline:()=>C4,ZodParsedType:()=>S,ZodOptional:()=>e1,ZodObject:()=>Y1,ZodNumber:()=>x0,ZodNullable:()=>A0,ZodNull:()=>u2,ZodNever:()=>W0,ZodNativeEnum:()=>c2,ZodNaN:()=>E4,ZodMap:()=>I4,ZodLiteral:()=>d2,ZodLazy:()=>r2,ZodIssueCode:()=>T,ZodIntersection:()=>l2,ZodFunction:()=>y2,ZodFirstPartyTypeKind:()=>p,ZodError:()=>T1,ZodEnum:()=>g0,ZodEffects:()=>J0,ZodDiscriminatedUnion:()=>m5,ZodDefault:()=>i2,ZodDate:()=>q2,ZodCatch:()=>o2,ZodBranded:()=>f5,ZodBoolean:()=>m2,ZodBigInt:()=>k0,ZodArray:()=>t1,ZodAny:()=>Y2,Schema:()=>o,ParseStatus:()=>N1,OK:()=>S1,NEVER:()=>rQ,INVALID:()=>u,EMPTY_PATH:()=>yD,DIRTY:()=>X2,BRAND:()=>VQ});var a;(function($){$.assertEqual=(q)=>{};function J(q){}$.assertIs=J;function G(q){throw Error()}$.assertNever=G,$.arrayToEnum=(q)=>{let V={};for(let Y of q)V[Y]=Y;return V},$.getValidEnumValues=(q)=>{let V=$.objectKeys(q).filter((W)=>typeof q[q[W]]!=="number"),Y={};for(let W of V)Y[W]=q[W];return $.objectValues(Y)},$.objectValues=(q)=>{return $.objectKeys(q).map(function(V){return q[V]})},$.objectKeys=typeof Object.keys==="function"?(q)=>Object.keys(q):(q)=>{let V=[];for(let Y in q)if(Object.prototype.hasOwnProperty.call(q,Y))V.push(Y);return V},$.find=(q,V)=>{for(let Y of q)if(V(Y))return Y;return},$.isInteger=typeof Number.isInteger==="function"?(q)=>Number.isInteger(q):(q)=>typeof q==="number"&&Number.isFinite(q)&&Math.floor(q)===q;function X(q,V=" | "){return q.map((Y)=>typeof Y==="string"?`'${Y}'`:Y).join(V)}$.joinValues=X,$.jsonStringifyReplacer=(q,V)=>{if(typeof V==="bigint")return V.toString();return V}})(a||(a={}));var v9;(function($){$.mergeShapes=(J,G)=>{return{...J,...G}}})(v9||(v9={}));var S=a.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),V0=($)=>{switch(typeof $){case"undefined":return S.undefined;case"string":return S.string;case"number":return Number.isNaN($)?S.nan:S.number;case"boolean":return S.boolean;case"function":return S.function;case"bigint":return S.bigint;case"symbol":return S.symbol;case"object":if(Array.isArray($))return S.array;if($===null)return S.null;if($.then&&typeof $.then==="function"&&$.catch&&typeof $.catch==="function")return S.promise;if(typeof Map<"u"&&$ instanceof Map)return S.map;if(typeof Set<"u"&&$ instanceof Set)return S.set;if(typeof Date<"u"&&$ instanceof Date)return S.date;return S.object;default:return S.unknown}};var T=a.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),kD=($)=>{return JSON.stringify($,null,2).replace(/"([^"]+)":/g,"$1:")};class T1 extends Error{get errors(){return this.issues}constructor($){super();this.issues=[],this.addIssue=(G)=>{this.issues=[...this.issues,G]},this.addIssues=(G=[])=>{this.issues=[...this.issues,...G]};let J=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,J);else this.__proto__=J;this.name="ZodError",this.issues=$}format($){let J=$||function(q){return q.message},G={_errors:[]},X=(q)=>{for(let V of q.issues)if(V.code==="invalid_union")V.unionErrors.map(X);else if(V.code==="invalid_return_type")X(V.returnTypeError);else if(V.code==="invalid_arguments")X(V.argumentsError);else if(V.path.length===0)G._errors.push(J(V));else{let Y=G,W=0;while(W<V.path.length){let H=V.path[W];if(W!==V.path.length-1)Y[H]=Y[H]||{_errors:[]};else Y[H]=Y[H]||{_errors:[]},Y[H]._errors.push(J(V));Y=Y[H],W++}}};return X(this),G}static assert($){if(!($ instanceof T1))throw Error(`Not a ZodError: ${$}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,a.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten($=(J)=>J.message){let J={},G=[];for(let X of this.issues)if(X.path.length>0){let q=X.path[0];J[q]=J[q]||[],J[q].push($(X))}else G.push($(X));return{formErrors:G,fieldErrors:J}}get formErrors(){return this.flatten()}}T1.create=($)=>{return new T1($)};var gD=($,J)=>{let G;switch($.code){case T.invalid_type:if($.received===S.undefined)G="Required";else G=`Expected ${$.expected}, received ${$.received}`;break;case T.invalid_literal:G=`Invalid literal value, expected ${JSON.stringify($.expected,a.jsonStringifyReplacer)}`;break;case T.unrecognized_keys:G=`Unrecognized key(s) in object: ${a.joinValues($.keys,", ")}`;break;case T.invalid_union:G="Invalid input";break;case T.invalid_union_discriminator:G=`Invalid discriminator value. Expected ${a.joinValues($.options)}`;break;case T.invalid_enum_value:G=`Invalid enum value. Expected ${a.joinValues($.options)}, received '${$.received}'`;break;case T.invalid_arguments:G="Invalid function arguments";break;case T.invalid_return_type:G="Invalid function return type";break;case T.invalid_date:G="Invalid date";break;case T.invalid_string:if(typeof $.validation==="object")if("includes"in $.validation){if(G=`Invalid input: must include "${$.validation.includes}"`,typeof $.validation.position==="number")G=`${G} at one or more positions greater than or equal to ${$.validation.position}`}else if("startsWith"in $.validation)G=`Invalid input: must start with "${$.validation.startsWith}"`;else if("endsWith"in $.validation)G=`Invalid input: must end with "${$.validation.endsWith}"`;else a.assertNever($.validation);else if($.validation!=="regex")G=`Invalid ${$.validation}`;else G="Invalid";break;case T.too_small:if($.type==="array")G=`Array must contain ${$.exact?"exactly":$.inclusive?"at least":"more than"} ${$.minimum} element(s)`;else if($.type==="string")G=`String must contain ${$.exact?"exactly":$.inclusive?"at least":"over"} ${$.minimum} character(s)`;else if($.type==="number")G=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="bigint")G=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="date")G=`Date must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${new Date(Number($.minimum))}`;else G="Invalid input";break;case T.too_big:if($.type==="array")G=`Array must contain ${$.exact?"exactly":$.inclusive?"at most":"less than"} ${$.maximum} element(s)`;else if($.type==="string")G=`String must contain ${$.exact?"exactly":$.inclusive?"at most":"under"} ${$.maximum} character(s)`;else if($.type==="number")G=`Number must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="bigint")G=`BigInt must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="date")G=`Date must be ${$.exact?"exactly":$.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number($.maximum))}`;else G="Invalid input";break;case T.custom:G="Invalid input";break;case T.invalid_intersection_types:G="Intersection results could not be merged";break;case T.not_multiple_of:G=`Number must be a multiple of ${$.multipleOf}`;break;case T.not_finite:G="Number must be finite";break;default:G=J.defaultError,a.assertNever($)}return{message:G}},B0=gD;var E3=B0;function hD($){E3=$}function k2(){return E3}var P4=($)=>{let{data:J,path:G,errorMaps:X,issueData:q}=$,V=[...G,...q.path||[]],Y={...q,path:V};if(q.message!==void 0)return{...q,path:V,message:q.message};let W="",H=X.filter((U)=>!!U).slice().reverse();for(let U of H)W=U(Y,{data:J,defaultError:W}).message;return{...q,path:V,message:W}},yD=[];function E($,J){let G=k2(),X=P4({issueData:J,data:$.data,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,G,G===B0?void 0:B0].filter((q)=>!!q)});$.common.issues.push(X)}class N1{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray($,J){let G=[];for(let X of J){if(X.status==="aborted")return u;if(X.status==="dirty")$.dirty();G.push(X.value)}return{status:$.value,value:G}}static async mergeObjectAsync($,J){let G=[];for(let X of J){let q=await X.key,V=await X.value;G.push({key:q,value:V})}return N1.mergeObjectSync($,G)}static mergeObjectSync($,J){let G={};for(let X of J){let{key:q,value:V}=X;if(q.status==="aborted")return u;if(V.status==="aborted")return u;if(q.status==="dirty")$.dirty();if(V.status==="dirty")$.dirty();if(q.value!=="__proto__"&&(typeof V.value<"u"||X.alwaysSet))G[q.value]=V.value}return{status:$.value,value:G}}}var u=Object.freeze({status:"aborted"}),X2=($)=>({status:"dirty",value:$}),S1=($)=>({status:"valid",value:$}),h5=($)=>$.status==="aborted",y5=($)=>$.status==="dirty",b0=($)=>$.status==="valid",g2=($)=>typeof Promise<"u"&&$ instanceof Promise;var k;(function($){$.errToObj=(J)=>typeof J==="string"?{message:J}:J||{},$.toString=(J)=>typeof J==="string"?J:J?.message})(k||(k={}));class $0{constructor($,J,G,X){this._cachedPath=[],this.parent=$,this.data=J,this._path=G,this._key=X}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}var C3=($,J)=>{if(b0(J))return{success:!0,data:J.value};else{if(!$.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let G=new T1($.common.issues);return this._error=G,this._error}}}};function c($){if(!$)return{};let{errorMap:J,invalid_type_error:G,required_error:X,description:q}=$;if(J&&(G||X))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(J)return{errorMap:J,description:q};return{errorMap:(Y,W)=>{let{message:H}=$;if(Y.code==="invalid_enum_value")return{message:H??W.defaultError};if(typeof W.data>"u")return{message:H??X??W.defaultError};if(Y.code!=="invalid_type")return{message:W.defaultError};return{message:H??G??W.defaultError}},description:q}}class o{get description(){return this._def.description}_getType($){return V0($.data)}_getOrReturnCtx($,J){return J||{common:$.parent.common,data:$.data,parsedType:V0($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}_processInputParams($){return{status:new N1,ctx:{common:$.parent.common,data:$.data,parsedType:V0($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}}_parseSync($){let J=this._parse($);if(g2(J))throw Error("Synchronous parse encountered promise.");return J}_parseAsync($){let J=this._parse($);return Promise.resolve(J)}parse($,J){let G=this.safeParse($,J);if(G.success)return G.data;throw G.error}safeParse($,J){let G={common:{issues:[],async:J?.async??!1,contextualErrorMap:J?.errorMap},path:J?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:V0($)},X=this._parseSync({data:$,path:G.path,parent:G});return C3(G,X)}"~validate"($){let J={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:V0($)};if(!this["~standard"].async)try{let G=this._parseSync({data:$,path:[],parent:J});return b0(G)?{value:G.value}:{issues:J.common.issues}}catch(G){if(G?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;J.common={issues:[],async:!0}}return this._parseAsync({data:$,path:[],parent:J}).then((G)=>b0(G)?{value:G.value}:{issues:J.common.issues})}async parseAsync($,J){let G=await this.safeParseAsync($,J);if(G.success)return G.data;throw G.error}async safeParseAsync($,J){let G={common:{issues:[],contextualErrorMap:J?.errorMap,async:!0},path:J?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:V0($)},X=this._parse({data:$,path:G.path,parent:G}),q=await(g2(X)?X:Promise.resolve(X));return C3(G,q)}refine($,J){let G=(X)=>{if(typeof J==="string"||typeof J>"u")return{message:J};else if(typeof J==="function")return J(X);else return J};return this._refinement((X,q)=>{let V=$(X),Y=()=>q.addIssue({code:T.custom,...G(X)});if(typeof Promise<"u"&&V instanceof Promise)return V.then((W)=>{if(!W)return Y(),!1;else return!0});if(!V)return Y(),!1;else return!0})}refinement($,J){return this._refinement((G,X)=>{if(!$(G))return X.addIssue(typeof J==="function"?J(G,X):J),!1;else return!0})}_refinement($){return new J0({schema:this,typeName:p.ZodEffects,effect:{type:"refinement",refinement:$}})}superRefine($){return this._refinement($)}constructor($){this.spa=this.safeParseAsync,this._def=$,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:(J)=>this["~validate"](J)}}optional(){return e1.create(this,this._def)}nullable(){return A0.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return t1.create(this)}promise(){return W2.create(this,this._def)}or($){return p2.create([this,$],this._def)}and($){return l2.create(this,$,this._def)}transform($){return new J0({...c(this._def),schema:this,typeName:p.ZodEffects,effect:{type:"transform",transform:$}})}default($){let J=typeof $==="function"?$:()=>$;return new i2({...c(this._def),innerType:this,defaultValue:J,typeName:p.ZodDefault})}brand(){return new f5({typeName:p.ZodBranded,type:this,...c(this._def)})}catch($){let J=typeof $==="function"?$:()=>$;return new o2({...c(this._def),innerType:this,catchValue:J,typeName:p.ZodCatch})}describe($){return new this.constructor({...this._def,description:$})}pipe($){return C4.create(this,$)}readonly(){return n2.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}var mD=/^c[^\s-]{8,}$/i,fD=/^[0-9a-z]+$/,uD=/^[0-9A-HJKMNP-TV-Z]{26}$/i,pD=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,lD=/^[a-z0-9_-]{21}$/i,rD=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,dD=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,cD=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,iD="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",x9,oD=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,nD=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,aD=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,sD=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,tD=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,eD=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,v3="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",$Q=new RegExp(`^${v3}$`);function x3($){let J="[0-5]\\d";if($.precision)J=`${J}\\.\\d{${$.precision}}`;else if($.precision==null)J=`${J}(\\.\\d+)?`;let G=$.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${J})${G}`}function JQ($){return new RegExp(`^${x3($)}$`)}function k3($){let J=`${v3}T${x3($)}`,G=[];if(G.push($.local?"Z?":"Z"),$.offset)G.push("([+-]\\d{2}:?\\d{2})");return J=`${J}(${G.join("|")})`,new RegExp(`^${J}$`)}function GQ($,J){if((J==="v4"||!J)&&oD.test($))return!0;if((J==="v6"||!J)&&aD.test($))return!0;return!1}function XQ($,J){if(!rD.test($))return!1;try{let[G]=$.split(".");if(!G)return!1;let X=G.replace(/-/g,"+").replace(/_/g,"/").padEnd(G.length+(4-G.length%4)%4,"="),q=JSON.parse(atob(X));if(typeof q!=="object"||q===null)return!1;if("typ"in q&&q?.typ!=="JWT")return!1;if(!q.alg)return!1;if(J&&q.alg!==J)return!1;return!0}catch{return!1}}function qQ($,J){if((J==="v4"||!J)&&nD.test($))return!0;if((J==="v6"||!J)&&sD.test($))return!0;return!1}class s1 extends o{_parse($){if(this._def.coerce)$.data=String($.data);if(this._getType($)!==S.string){let q=this._getOrReturnCtx($);return E(q,{code:T.invalid_type,expected:S.string,received:q.parsedType}),u}let G=new N1,X=void 0;for(let q of this._def.checks)if(q.kind==="min"){if($.data.length<q.value)X=this._getOrReturnCtx($,X),E(X,{code:T.too_small,minimum:q.value,type:"string",inclusive:!0,exact:!1,message:q.message}),G.dirty()}else if(q.kind==="max"){if($.data.length>q.value)X=this._getOrReturnCtx($,X),E(X,{code:T.too_big,maximum:q.value,type:"string",inclusive:!0,exact:!1,message:q.message}),G.dirty()}else if(q.kind==="length"){let V=$.data.length>q.value,Y=$.data.length<q.value;if(V||Y){if(X=this._getOrReturnCtx($,X),V)E(X,{code:T.too_big,maximum:q.value,type:"string",inclusive:!0,exact:!0,message:q.message});else if(Y)E(X,{code:T.too_small,minimum:q.value,type:"string",inclusive:!0,exact:!0,message:q.message});G.dirty()}}else if(q.kind==="email"){if(!cD.test($.data))X=this._getOrReturnCtx($,X),E(X,{validation:"email",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="emoji"){if(!x9)x9=new RegExp(iD,"u");if(!x9.test($.data))X=this._getOrReturnCtx($,X),E(X,{validation:"emoji",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="uuid"){if(!pD.test($.data))X=this._getOrReturnCtx($,X),E(X,{validation:"uuid",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="nanoid"){if(!lD.test($.data))X=this._getOrReturnCtx($,X),E(X,{validation:"nanoid",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="cuid"){if(!mD.test($.data))X=this._getOrReturnCtx($,X),E(X,{validation:"cuid",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="cuid2"){if(!fD.test($.data))X=this._getOrReturnCtx($,X),E(X,{validation:"cuid2",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="ulid"){if(!uD.test($.data))X=this._getOrReturnCtx($,X),E(X,{validation:"ulid",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="url")try{new URL($.data)}catch{X=this._getOrReturnCtx($,X),E(X,{validation:"url",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="regex"){if(q.regex.lastIndex=0,!q.regex.test($.data))X=this._getOrReturnCtx($,X),E(X,{validation:"regex",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="trim")$.data=$.data.trim();else if(q.kind==="includes"){if(!$.data.includes(q.value,q.position))X=this._getOrReturnCtx($,X),E(X,{code:T.invalid_string,validation:{includes:q.value,position:q.position},message:q.message}),G.dirty()}else if(q.kind==="toLowerCase")$.data=$.data.toLowerCase();else if(q.kind==="toUpperCase")$.data=$.data.toUpperCase();else if(q.kind==="startsWith"){if(!$.data.startsWith(q.value))X=this._getOrReturnCtx($,X),E(X,{code:T.invalid_string,validation:{startsWith:q.value},message:q.message}),G.dirty()}else if(q.kind==="endsWith"){if(!$.data.endsWith(q.value))X=this._getOrReturnCtx($,X),E(X,{code:T.invalid_string,validation:{endsWith:q.value},message:q.message}),G.dirty()}else if(q.kind==="datetime"){if(!k3(q).test($.data))X=this._getOrReturnCtx($,X),E(X,{code:T.invalid_string,validation:"datetime",message:q.message}),G.dirty()}else if(q.kind==="date"){if(!$Q.test($.data))X=this._getOrReturnCtx($,X),E(X,{code:T.invalid_string,validation:"date",message:q.message}),G.dirty()}else if(q.kind==="time"){if(!JQ(q).test($.data))X=this._getOrReturnCtx($,X),E(X,{code:T.invalid_string,validation:"time",message:q.message}),G.dirty()}else if(q.kind==="duration"){if(!dD.test($.data))X=this._getOrReturnCtx($,X),E(X,{validation:"duration",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="ip"){if(!GQ($.data,q.version))X=this._getOrReturnCtx($,X),E(X,{validation:"ip",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="jwt"){if(!XQ($.data,q.alg))X=this._getOrReturnCtx($,X),E(X,{validation:"jwt",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="cidr"){if(!qQ($.data,q.version))X=this._getOrReturnCtx($,X),E(X,{validation:"cidr",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="base64"){if(!tD.test($.data))X=this._getOrReturnCtx($,X),E(X,{validation:"base64",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="base64url"){if(!eD.test($.data))X=this._getOrReturnCtx($,X),E(X,{validation:"base64url",code:T.invalid_string,message:q.message}),G.dirty()}else a.assertNever(q);return{status:G.value,value:$.data}}_regex($,J,G){return this.refinement((X)=>$.test(X),{validation:J,code:T.invalid_string,...k.errToObj(G)})}_addCheck($){return new s1({...this._def,checks:[...this._def.checks,$]})}email($){return this._addCheck({kind:"email",...k.errToObj($)})}url($){return this._addCheck({kind:"url",...k.errToObj($)})}emoji($){return this._addCheck({kind:"emoji",...k.errToObj($)})}uuid($){return this._addCheck({kind:"uuid",...k.errToObj($)})}nanoid($){return this._addCheck({kind:"nanoid",...k.errToObj($)})}cuid($){return this._addCheck({kind:"cuid",...k.errToObj($)})}cuid2($){return this._addCheck({kind:"cuid2",...k.errToObj($)})}ulid($){return this._addCheck({kind:"ulid",...k.errToObj($)})}base64($){return this._addCheck({kind:"base64",...k.errToObj($)})}base64url($){return this._addCheck({kind:"base64url",...k.errToObj($)})}jwt($){return this._addCheck({kind:"jwt",...k.errToObj($)})}ip($){return this._addCheck({kind:"ip",...k.errToObj($)})}cidr($){return this._addCheck({kind:"cidr",...k.errToObj($)})}datetime($){if(typeof $==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:$});return this._addCheck({kind:"datetime",precision:typeof $?.precision>"u"?null:$?.precision,offset:$?.offset??!1,local:$?.local??!1,...k.errToObj($?.message)})}date($){return this._addCheck({kind:"date",message:$})}time($){if(typeof $==="string")return this._addCheck({kind:"time",precision:null,message:$});return this._addCheck({kind:"time",precision:typeof $?.precision>"u"?null:$?.precision,...k.errToObj($?.message)})}duration($){return this._addCheck({kind:"duration",...k.errToObj($)})}regex($,J){return this._addCheck({kind:"regex",regex:$,...k.errToObj(J)})}includes($,J){return this._addCheck({kind:"includes",value:$,position:J?.position,...k.errToObj(J?.message)})}startsWith($,J){return this._addCheck({kind:"startsWith",value:$,...k.errToObj(J)})}endsWith($,J){return this._addCheck({kind:"endsWith",value:$,...k.errToObj(J)})}min($,J){return this._addCheck({kind:"min",value:$,...k.errToObj(J)})}max($,J){return this._addCheck({kind:"max",value:$,...k.errToObj(J)})}length($,J){return this._addCheck({kind:"length",value:$,...k.errToObj(J)})}nonempty($){return this.min(1,k.errToObj($))}trim(){return new s1({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new s1({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new s1({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(($)=>$.kind==="datetime")}get isDate(){return!!this._def.checks.find(($)=>$.kind==="date")}get isTime(){return!!this._def.checks.find(($)=>$.kind==="time")}get isDuration(){return!!this._def.checks.find(($)=>$.kind==="duration")}get isEmail(){return!!this._def.checks.find(($)=>$.kind==="email")}get isURL(){return!!this._def.checks.find(($)=>$.kind==="url")}get isEmoji(){return!!this._def.checks.find(($)=>$.kind==="emoji")}get isUUID(){return!!this._def.checks.find(($)=>$.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(($)=>$.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(($)=>$.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(($)=>$.kind==="cuid2")}get isULID(){return!!this._def.checks.find(($)=>$.kind==="ulid")}get isIP(){return!!this._def.checks.find(($)=>$.kind==="ip")}get isCIDR(){return!!this._def.checks.find(($)=>$.kind==="cidr")}get isBase64(){return!!this._def.checks.find(($)=>$.kind==="base64")}get isBase64url(){return!!this._def.checks.find(($)=>$.kind==="base64url")}get minLength(){let $=null;for(let J of this._def.checks)if(J.kind==="min"){if($===null||J.value>$)$=J.value}return $}get maxLength(){let $=null;for(let J of this._def.checks)if(J.kind==="max"){if($===null||J.value<$)$=J.value}return $}}s1.create=($)=>{return new s1({checks:[],typeName:p.ZodString,coerce:$?.coerce??!1,...c($)})};function YQ($,J){let G=($.toString().split(".")[1]||"").length,X=(J.toString().split(".")[1]||"").length,q=G>X?G:X,V=Number.parseInt($.toFixed(q).replace(".","")),Y=Number.parseInt(J.toFixed(q).replace(".",""));return V%Y/10**q}class x0 extends o{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse($){if(this._def.coerce)$.data=Number($.data);if(this._getType($)!==S.number){let q=this._getOrReturnCtx($);return E(q,{code:T.invalid_type,expected:S.number,received:q.parsedType}),u}let G=void 0,X=new N1;for(let q of this._def.checks)if(q.kind==="int"){if(!a.isInteger($.data))G=this._getOrReturnCtx($,G),E(G,{code:T.invalid_type,expected:"integer",received:"float",message:q.message}),X.dirty()}else if(q.kind==="min"){if(q.inclusive?$.data<q.value:$.data<=q.value)G=this._getOrReturnCtx($,G),E(G,{code:T.too_small,minimum:q.value,type:"number",inclusive:q.inclusive,exact:!1,message:q.message}),X.dirty()}else if(q.kind==="max"){if(q.inclusive?$.data>q.value:$.data>=q.value)G=this._getOrReturnCtx($,G),E(G,{code:T.too_big,maximum:q.value,type:"number",inclusive:q.inclusive,exact:!1,message:q.message}),X.dirty()}else if(q.kind==="multipleOf"){if(YQ($.data,q.value)!==0)G=this._getOrReturnCtx($,G),E(G,{code:T.not_multiple_of,multipleOf:q.value,message:q.message}),X.dirty()}else if(q.kind==="finite"){if(!Number.isFinite($.data))G=this._getOrReturnCtx($,G),E(G,{code:T.not_finite,message:q.message}),X.dirty()}else a.assertNever(q);return{status:X.value,value:$.data}}gte($,J){return this.setLimit("min",$,!0,k.toString(J))}gt($,J){return this.setLimit("min",$,!1,k.toString(J))}lte($,J){return this.setLimit("max",$,!0,k.toString(J))}lt($,J){return this.setLimit("max",$,!1,k.toString(J))}setLimit($,J,G,X){return new x0({...this._def,checks:[...this._def.checks,{kind:$,value:J,inclusive:G,message:k.toString(X)}]})}_addCheck($){return new x0({...this._def,checks:[...this._def.checks,$]})}int($){return this._addCheck({kind:"int",message:k.toString($)})}positive($){return this._addCheck({kind:"min",value:0,inclusive:!1,message:k.toString($)})}negative($){return this._addCheck({kind:"max",value:0,inclusive:!1,message:k.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:0,inclusive:!0,message:k.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:0,inclusive:!0,message:k.toString($)})}multipleOf($,J){return this._addCheck({kind:"multipleOf",value:$,message:k.toString(J)})}finite($){return this._addCheck({kind:"finite",message:k.toString($)})}safe($){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:k.toString($)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:k.toString($)})}get minValue(){let $=null;for(let J of this._def.checks)if(J.kind==="min"){if($===null||J.value>$)$=J.value}return $}get maxValue(){let $=null;for(let J of this._def.checks)if(J.kind==="max"){if($===null||J.value<$)$=J.value}return $}get isInt(){return!!this._def.checks.find(($)=>$.kind==="int"||$.kind==="multipleOf"&&a.isInteger($.value))}get isFinite(){let $=null,J=null;for(let G of this._def.checks)if(G.kind==="finite"||G.kind==="int"||G.kind==="multipleOf")return!0;else if(G.kind==="min"){if(J===null||G.value>J)J=G.value}else if(G.kind==="max"){if($===null||G.value<$)$=G.value}return Number.isFinite(J)&&Number.isFinite($)}}x0.create=($)=>{return new x0({checks:[],typeName:p.ZodNumber,coerce:$?.coerce||!1,...c($)})};class k0 extends o{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse($){if(this._def.coerce)try{$.data=BigInt($.data)}catch{return this._getInvalidInput($)}if(this._getType($)!==S.bigint)return this._getInvalidInput($);let G=void 0,X=new N1;for(let q of this._def.checks)if(q.kind==="min"){if(q.inclusive?$.data<q.value:$.data<=q.value)G=this._getOrReturnCtx($,G),E(G,{code:T.too_small,type:"bigint",minimum:q.value,inclusive:q.inclusive,message:q.message}),X.dirty()}else if(q.kind==="max"){if(q.inclusive?$.data>q.value:$.data>=q.value)G=this._getOrReturnCtx($,G),E(G,{code:T.too_big,type:"bigint",maximum:q.value,inclusive:q.inclusive,message:q.message}),X.dirty()}else if(q.kind==="multipleOf"){if($.data%q.value!==BigInt(0))G=this._getOrReturnCtx($,G),E(G,{code:T.not_multiple_of,multipleOf:q.value,message:q.message}),X.dirty()}else a.assertNever(q);return{status:X.value,value:$.data}}_getInvalidInput($){let J=this._getOrReturnCtx($);return E(J,{code:T.invalid_type,expected:S.bigint,received:J.parsedType}),u}gte($,J){return this.setLimit("min",$,!0,k.toString(J))}gt($,J){return this.setLimit("min",$,!1,k.toString(J))}lte($,J){return this.setLimit("max",$,!0,k.toString(J))}lt($,J){return this.setLimit("max",$,!1,k.toString(J))}setLimit($,J,G,X){return new k0({...this._def,checks:[...this._def.checks,{kind:$,value:J,inclusive:G,message:k.toString(X)}]})}_addCheck($){return new k0({...this._def,checks:[...this._def.checks,$]})}positive($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:k.toString($)})}negative($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:k.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:k.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:k.toString($)})}multipleOf($,J){return this._addCheck({kind:"multipleOf",value:$,message:k.toString(J)})}get minValue(){let $=null;for(let J of this._def.checks)if(J.kind==="min"){if($===null||J.value>$)$=J.value}return $}get maxValue(){let $=null;for(let J of this._def.checks)if(J.kind==="max"){if($===null||J.value<$)$=J.value}return $}}k0.create=($)=>{return new k0({checks:[],typeName:p.ZodBigInt,coerce:$?.coerce??!1,...c($)})};class m2 extends o{_parse($){if(this._def.coerce)$.data=Boolean($.data);if(this._getType($)!==S.boolean){let G=this._getOrReturnCtx($);return E(G,{code:T.invalid_type,expected:S.boolean,received:G.parsedType}),u}return S1($.data)}}m2.create=($)=>{return new m2({typeName:p.ZodBoolean,coerce:$?.coerce||!1,...c($)})};class q2 extends o{_parse($){if(this._def.coerce)$.data=new Date($.data);if(this._getType($)!==S.date){let q=this._getOrReturnCtx($);return E(q,{code:T.invalid_type,expected:S.date,received:q.parsedType}),u}if(Number.isNaN($.data.getTime())){let q=this._getOrReturnCtx($);return E(q,{code:T.invalid_date}),u}let G=new N1,X=void 0;for(let q of this._def.checks)if(q.kind==="min"){if($.data.getTime()<q.value)X=this._getOrReturnCtx($,X),E(X,{code:T.too_small,message:q.message,inclusive:!0,exact:!1,minimum:q.value,type:"date"}),G.dirty()}else if(q.kind==="max"){if($.data.getTime()>q.value)X=this._getOrReturnCtx($,X),E(X,{code:T.too_big,message:q.message,inclusive:!0,exact:!1,maximum:q.value,type:"date"}),G.dirty()}else a.assertNever(q);return{status:G.value,value:new Date($.data.getTime())}}_addCheck($){return new q2({...this._def,checks:[...this._def.checks,$]})}min($,J){return this._addCheck({kind:"min",value:$.getTime(),message:k.toString(J)})}max($,J){return this._addCheck({kind:"max",value:$.getTime(),message:k.toString(J)})}get minDate(){let $=null;for(let J of this._def.checks)if(J.kind==="min"){if($===null||J.value>$)$=J.value}return $!=null?new Date($):null}get maxDate(){let $=null;for(let J of this._def.checks)if(J.kind==="max"){if($===null||J.value<$)$=J.value}return $!=null?new Date($):null}}q2.create=($)=>{return new q2({checks:[],coerce:$?.coerce||!1,typeName:p.ZodDate,...c($)})};class L4 extends o{_parse($){if(this._getType($)!==S.symbol){let G=this._getOrReturnCtx($);return E(G,{code:T.invalid_type,expected:S.symbol,received:G.parsedType}),u}return S1($.data)}}L4.create=($)=>{return new L4({typeName:p.ZodSymbol,...c($)})};class f2 extends o{_parse($){if(this._getType($)!==S.undefined){let G=this._getOrReturnCtx($);return E(G,{code:T.invalid_type,expected:S.undefined,received:G.parsedType}),u}return S1($.data)}}f2.create=($)=>{return new f2({typeName:p.ZodUndefined,...c($)})};class u2 extends o{_parse($){if(this._getType($)!==S.null){let G=this._getOrReturnCtx($);return E(G,{code:T.invalid_type,expected:S.null,received:G.parsedType}),u}return S1($.data)}}u2.create=($)=>{return new u2({typeName:p.ZodNull,...c($)})};class Y2 extends o{constructor(){super(...arguments);this._any=!0}_parse($){return S1($.data)}}Y2.create=($)=>{return new Y2({typeName:p.ZodAny,...c($)})};class v0 extends o{constructor(){super(...arguments);this._unknown=!0}_parse($){return S1($.data)}}v0.create=($)=>{return new v0({typeName:p.ZodUnknown,...c($)})};class W0 extends o{_parse($){let J=this._getOrReturnCtx($);return E(J,{code:T.invalid_type,expected:S.never,received:J.parsedType}),u}}W0.create=($)=>{return new W0({typeName:p.ZodNever,...c($)})};class T4 extends o{_parse($){if(this._getType($)!==S.undefined){let G=this._getOrReturnCtx($);return E(G,{code:T.invalid_type,expected:S.void,received:G.parsedType}),u}return S1($.data)}}T4.create=($)=>{return new T4({typeName:p.ZodVoid,...c($)})};class t1 extends o{_parse($){let{ctx:J,status:G}=this._processInputParams($),X=this._def;if(J.parsedType!==S.array)return E(J,{code:T.invalid_type,expected:S.array,received:J.parsedType}),u;if(X.exactLength!==null){let V=J.data.length>X.exactLength.value,Y=J.data.length<X.exactLength.value;if(V||Y)E(J,{code:V?T.too_big:T.too_small,minimum:Y?X.exactLength.value:void 0,maximum:V?X.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:X.exactLength.message}),G.dirty()}if(X.minLength!==null){if(J.data.length<X.minLength.value)E(J,{code:T.too_small,minimum:X.minLength.value,type:"array",inclusive:!0,exact:!1,message:X.minLength.message}),G.dirty()}if(X.maxLength!==null){if(J.data.length>X.maxLength.value)E(J,{code:T.too_big,maximum:X.maxLength.value,type:"array",inclusive:!0,exact:!1,message:X.maxLength.message}),G.dirty()}if(J.common.async)return Promise.all([...J.data].map((V,Y)=>{return X.type._parseAsync(new $0(J,V,J.path,Y))})).then((V)=>{return N1.mergeArray(G,V)});let q=[...J.data].map((V,Y)=>{return X.type._parseSync(new $0(J,V,J.path,Y))});return N1.mergeArray(G,q)}get element(){return this._def.type}min($,J){return new t1({...this._def,minLength:{value:$,message:k.toString(J)}})}max($,J){return new t1({...this._def,maxLength:{value:$,message:k.toString(J)}})}length($,J){return new t1({...this._def,exactLength:{value:$,message:k.toString(J)}})}nonempty($){return this.min(1,$)}}t1.create=($,J)=>{return new t1({type:$,minLength:null,maxLength:null,exactLength:null,typeName:p.ZodArray,...c(J)})};function h2($){if($ instanceof Y1){let J={};for(let G in $.shape){let X=$.shape[G];J[G]=e1.create(h2(X))}return new Y1({...$._def,shape:()=>J})}else if($ instanceof t1)return new t1({...$._def,type:h2($.element)});else if($ instanceof e1)return e1.create(h2($.unwrap()));else if($ instanceof A0)return A0.create(h2($.unwrap()));else if($ instanceof H0)return H0.create($.items.map((J)=>h2(J)));else return $}class Y1 extends o{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let $=this._def.shape(),J=a.objectKeys($);return this._cached={shape:$,keys:J},this._cached}_parse($){if(this._getType($)!==S.object){let H=this._getOrReturnCtx($);return E(H,{code:T.invalid_type,expected:S.object,received:H.parsedType}),u}let{status:G,ctx:X}=this._processInputParams($),{shape:q,keys:V}=this._getCached(),Y=[];if(!(this._def.catchall instanceof W0&&this._def.unknownKeys==="strip")){for(let H in X.data)if(!V.includes(H))Y.push(H)}let W=[];for(let H of V){let U=q[H],M=X.data[H];W.push({key:{status:"valid",value:H},value:U._parse(new $0(X,M,X.path,H)),alwaysSet:H in X.data})}if(this._def.catchall instanceof W0){let H=this._def.unknownKeys;if(H==="passthrough")for(let U of Y)W.push({key:{status:"valid",value:U},value:{status:"valid",value:X.data[U]}});else if(H==="strict"){if(Y.length>0)E(X,{code:T.unrecognized_keys,keys:Y}),G.dirty()}else if(H==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let H=this._def.catchall;for(let U of Y){let M=X.data[U];W.push({key:{status:"valid",value:U},value:H._parse(new $0(X,M,X.path,U)),alwaysSet:U in X.data})}}if(X.common.async)return Promise.resolve().then(async()=>{let H=[];for(let U of W){let M=await U.key,Q=await U.value;H.push({key:M,value:Q,alwaysSet:U.alwaysSet})}return H}).then((H)=>{return N1.mergeObjectSync(G,H)});else return N1.mergeObjectSync(G,W)}get shape(){return this._def.shape()}strict($){return k.errToObj,new Y1({...this._def,unknownKeys:"strict",...$!==void 0?{errorMap:(J,G)=>{let X=this._def.errorMap?.(J,G).message??G.defaultError;if(J.code==="unrecognized_keys")return{message:k.errToObj($).message??X};return{message:X}}}:{}})}strip(){return new Y1({...this._def,unknownKeys:"strip"})}passthrough(){return new Y1({...this._def,unknownKeys:"passthrough"})}extend($){return new Y1({...this._def,shape:()=>({...this._def.shape(),...$})})}merge($){return new Y1({unknownKeys:$._def.unknownKeys,catchall:$._def.catchall,shape:()=>({...this._def.shape(),...$._def.shape()}),typeName:p.ZodObject})}setKey($,J){return this.augment({[$]:J})}catchall($){return new Y1({...this._def,catchall:$})}pick($){let J={};for(let G of a.objectKeys($))if($[G]&&this.shape[G])J[G]=this.shape[G];return new Y1({...this._def,shape:()=>J})}omit($){let J={};for(let G of a.objectKeys(this.shape))if(!$[G])J[G]=this.shape[G];return new Y1({...this._def,shape:()=>J})}deepPartial(){return h2(this)}partial($){let J={};for(let G of a.objectKeys(this.shape)){let X=this.shape[G];if($&&!$[G])J[G]=X;else J[G]=X.optional()}return new Y1({...this._def,shape:()=>J})}required($){let J={};for(let G of a.objectKeys(this.shape))if($&&!$[G])J[G]=this.shape[G];else{let q=this.shape[G];while(q instanceof e1)q=q._def.innerType;J[G]=q}return new Y1({...this._def,shape:()=>J})}keyof(){return g3(a.objectKeys(this.shape))}}Y1.create=($,J)=>{return new Y1({shape:()=>$,unknownKeys:"strip",catchall:W0.create(),typeName:p.ZodObject,...c(J)})};Y1.strictCreate=($,J)=>{return new Y1({shape:()=>$,unknownKeys:"strict",catchall:W0.create(),typeName:p.ZodObject,...c(J)})};Y1.lazycreate=($,J)=>{return new Y1({shape:$,unknownKeys:"strip",catchall:W0.create(),typeName:p.ZodObject,...c(J)})};class p2 extends o{_parse($){let{ctx:J}=this._processInputParams($),G=this._def.options;function X(q){for(let Y of q)if(Y.result.status==="valid")return Y.result;for(let Y of q)if(Y.result.status==="dirty")return J.common.issues.push(...Y.ctx.common.issues),Y.result;let V=q.map((Y)=>new T1(Y.ctx.common.issues));return E(J,{code:T.invalid_union,unionErrors:V}),u}if(J.common.async)return Promise.all(G.map(async(q)=>{let V={...J,common:{...J.common,issues:[]},parent:null};return{result:await q._parseAsync({data:J.data,path:J.path,parent:V}),ctx:V}})).then(X);else{let q=void 0,V=[];for(let W of G){let H={...J,common:{...J.common,issues:[]},parent:null},U=W._parseSync({data:J.data,path:J.path,parent:H});if(U.status==="valid")return U;else if(U.status==="dirty"&&!q)q={result:U,ctx:H};if(H.common.issues.length)V.push(H.common.issues)}if(q)return J.common.issues.push(...q.ctx.common.issues),q.result;let Y=V.map((W)=>new T1(W));return E(J,{code:T.invalid_union,unionErrors:Y}),u}}get options(){return this._def.options}}p2.create=($,J)=>{return new p2({options:$,typeName:p.ZodUnion,...c(J)})};var O0=($)=>{if($ instanceof r2)return O0($.schema);else if($ instanceof J0)return O0($.innerType());else if($ instanceof d2)return[$.value];else if($ instanceof g0)return $.options;else if($ instanceof c2)return a.objectValues($.enum);else if($ instanceof i2)return O0($._def.innerType);else if($ instanceof f2)return[void 0];else if($ instanceof u2)return[null];else if($ instanceof e1)return[void 0,...O0($.unwrap())];else if($ instanceof A0)return[null,...O0($.unwrap())];else if($ instanceof f5)return O0($.unwrap());else if($ instanceof n2)return O0($.unwrap());else if($ instanceof o2)return O0($._def.innerType);else return[]};class m5 extends o{_parse($){let{ctx:J}=this._processInputParams($);if(J.parsedType!==S.object)return E(J,{code:T.invalid_type,expected:S.object,received:J.parsedType}),u;let G=this.discriminator,X=J.data[G],q=this.optionsMap.get(X);if(!q)return E(J,{code:T.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[G]}),u;if(J.common.async)return q._parseAsync({data:J.data,path:J.path,parent:J});else return q._parseSync({data:J.data,path:J.path,parent:J})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create($,J,G){let X=new Map;for(let q of J){let V=O0(q.shape[$]);if(!V.length)throw Error(`A discriminator value for key \`${$}\` could not be extracted from all schema options`);for(let Y of V){if(X.has(Y))throw Error(`Discriminator property ${String($)} has duplicate value ${String(Y)}`);X.set(Y,q)}}return new m5({typeName:p.ZodDiscriminatedUnion,discriminator:$,options:J,optionsMap:X,...c(G)})}}function k9($,J){let G=V0($),X=V0(J);if($===J)return{valid:!0,data:$};else if(G===S.object&&X===S.object){let q=a.objectKeys(J),V=a.objectKeys($).filter((W)=>q.indexOf(W)!==-1),Y={...$,...J};for(let W of V){let H=k9($[W],J[W]);if(!H.valid)return{valid:!1};Y[W]=H.data}return{valid:!0,data:Y}}else if(G===S.array&&X===S.array){if($.length!==J.length)return{valid:!1};let q=[];for(let V=0;V<$.length;V++){let Y=$[V],W=J[V],H=k9(Y,W);if(!H.valid)return{valid:!1};q.push(H.data)}return{valid:!0,data:q}}else if(G===S.date&&X===S.date&&+$===+J)return{valid:!0,data:$};else return{valid:!1}}class l2 extends o{_parse($){let{status:J,ctx:G}=this._processInputParams($),X=(q,V)=>{if(h5(q)||h5(V))return u;let Y=k9(q.value,V.value);if(!Y.valid)return E(G,{code:T.invalid_intersection_types}),u;if(y5(q)||y5(V))J.dirty();return{status:J.value,value:Y.data}};if(G.common.async)return Promise.all([this._def.left._parseAsync({data:G.data,path:G.path,parent:G}),this._def.right._parseAsync({data:G.data,path:G.path,parent:G})]).then(([q,V])=>X(q,V));else return X(this._def.left._parseSync({data:G.data,path:G.path,parent:G}),this._def.right._parseSync({data:G.data,path:G.path,parent:G}))}}l2.create=($,J,G)=>{return new l2({left:$,right:J,typeName:p.ZodIntersection,...c(G)})};class H0 extends o{_parse($){let{status:J,ctx:G}=this._processInputParams($);if(G.parsedType!==S.array)return E(G,{code:T.invalid_type,expected:S.array,received:G.parsedType}),u;if(G.data.length<this._def.items.length)return E(G,{code:T.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),u;if(!this._def.rest&&G.data.length>this._def.items.length)E(G,{code:T.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),J.dirty();let q=[...G.data].map((V,Y)=>{let W=this._def.items[Y]||this._def.rest;if(!W)return null;return W._parse(new $0(G,V,G.path,Y))}).filter((V)=>!!V);if(G.common.async)return Promise.all(q).then((V)=>{return N1.mergeArray(J,V)});else return N1.mergeArray(J,q)}get items(){return this._def.items}rest($){return new H0({...this._def,rest:$})}}H0.create=($,J)=>{if(!Array.isArray($))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new H0({items:$,typeName:p.ZodTuple,rest:null,...c(J)})};class S4 extends o{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:J,ctx:G}=this._processInputParams($);if(G.parsedType!==S.object)return E(G,{code:T.invalid_type,expected:S.object,received:G.parsedType}),u;let X=[],q=this._def.keyType,V=this._def.valueType;for(let Y in G.data)X.push({key:q._parse(new $0(G,Y,G.path,Y)),value:V._parse(new $0(G,G.data[Y],G.path,Y)),alwaysSet:Y in G.data});if(G.common.async)return N1.mergeObjectAsync(J,X);else return N1.mergeObjectSync(J,X)}get element(){return this._def.valueType}static create($,J,G){if(J instanceof o)return new S4({keyType:$,valueType:J,typeName:p.ZodRecord,...c(G)});return new S4({keyType:s1.create(),valueType:$,typeName:p.ZodRecord,...c(J)})}}class I4 extends o{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:J,ctx:G}=this._processInputParams($);if(G.parsedType!==S.map)return E(G,{code:T.invalid_type,expected:S.map,received:G.parsedType}),u;let X=this._def.keyType,q=this._def.valueType,V=[...G.data.entries()].map(([Y,W],H)=>{return{key:X._parse(new $0(G,Y,G.path,[H,"key"])),value:q._parse(new $0(G,W,G.path,[H,"value"]))}});if(G.common.async){let Y=new Map;return Promise.resolve().then(async()=>{for(let W of V){let H=await W.key,U=await W.value;if(H.status==="aborted"||U.status==="aborted")return u;if(H.status==="dirty"||U.status==="dirty")J.dirty();Y.set(H.value,U.value)}return{status:J.value,value:Y}})}else{let Y=new Map;for(let W of V){let{key:H,value:U}=W;if(H.status==="aborted"||U.status==="aborted")return u;if(H.status==="dirty"||U.status==="dirty")J.dirty();Y.set(H.value,U.value)}return{status:J.value,value:Y}}}}I4.create=($,J,G)=>{return new I4({valueType:J,keyType:$,typeName:p.ZodMap,...c(G)})};class V2 extends o{_parse($){let{status:J,ctx:G}=this._processInputParams($);if(G.parsedType!==S.set)return E(G,{code:T.invalid_type,expected:S.set,received:G.parsedType}),u;let X=this._def;if(X.minSize!==null){if(G.data.size<X.minSize.value)E(G,{code:T.too_small,minimum:X.minSize.value,type:"set",inclusive:!0,exact:!1,message:X.minSize.message}),J.dirty()}if(X.maxSize!==null){if(G.data.size>X.maxSize.value)E(G,{code:T.too_big,maximum:X.maxSize.value,type:"set",inclusive:!0,exact:!1,message:X.maxSize.message}),J.dirty()}let q=this._def.valueType;function V(W){let H=new Set;for(let U of W){if(U.status==="aborted")return u;if(U.status==="dirty")J.dirty();H.add(U.value)}return{status:J.value,value:H}}let Y=[...G.data.values()].map((W,H)=>q._parse(new $0(G,W,G.path,H)));if(G.common.async)return Promise.all(Y).then((W)=>V(W));else return V(Y)}min($,J){return new V2({...this._def,minSize:{value:$,message:k.toString(J)}})}max($,J){return new V2({...this._def,maxSize:{value:$,message:k.toString(J)}})}size($,J){return this.min($,J).max($,J)}nonempty($){return this.min(1,$)}}V2.create=($,J)=>{return new V2({valueType:$,minSize:null,maxSize:null,typeName:p.ZodSet,...c(J)})};class y2 extends o{constructor(){super(...arguments);this.validate=this.implement}_parse($){let{ctx:J}=this._processInputParams($);if(J.parsedType!==S.function)return E(J,{code:T.invalid_type,expected:S.function,received:J.parsedType}),u;function G(Y,W){return P4({data:Y,path:J.path,errorMaps:[J.common.contextualErrorMap,J.schemaErrorMap,k2(),B0].filter((H)=>!!H),issueData:{code:T.invalid_arguments,argumentsError:W}})}function X(Y,W){return P4({data:Y,path:J.path,errorMaps:[J.common.contextualErrorMap,J.schemaErrorMap,k2(),B0].filter((H)=>!!H),issueData:{code:T.invalid_return_type,returnTypeError:W}})}let q={errorMap:J.common.contextualErrorMap},V=J.data;if(this._def.returns instanceof W2){let Y=this;return S1(async function(...W){let H=new T1([]),U=await Y._def.args.parseAsync(W,q).catch((F)=>{throw H.addIssue(G(W,F)),H}),M=await Reflect.apply(V,this,U);return await Y._def.returns._def.type.parseAsync(M,q).catch((F)=>{throw H.addIssue(X(M,F)),H})})}else{let Y=this;return S1(function(...W){let H=Y._def.args.safeParse(W,q);if(!H.success)throw new T1([G(W,H.error)]);let U=Reflect.apply(V,this,H.data),M=Y._def.returns.safeParse(U,q);if(!M.success)throw new T1([X(U,M.error)]);return M.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...$){return new y2({...this._def,args:H0.create($).rest(v0.create())})}returns($){return new y2({...this._def,returns:$})}implement($){return this.parse($)}strictImplement($){return this.parse($)}static create($,J,G){return new y2({args:$?$:H0.create([]).rest(v0.create()),returns:J||v0.create(),typeName:p.ZodFunction,...c(G)})}}class r2 extends o{get schema(){return this._def.getter()}_parse($){let{ctx:J}=this._processInputParams($);return this._def.getter()._parse({data:J.data,path:J.path,parent:J})}}r2.create=($,J)=>{return new r2({getter:$,typeName:p.ZodLazy,...c(J)})};class d2 extends o{_parse($){if($.data!==this._def.value){let J=this._getOrReturnCtx($);return E(J,{received:J.data,code:T.invalid_literal,expected:this._def.value}),u}return{status:"valid",value:$.data}}get value(){return this._def.value}}d2.create=($,J)=>{return new d2({value:$,typeName:p.ZodLiteral,...c(J)})};function g3($,J){return new g0({values:$,typeName:p.ZodEnum,...c(J)})}class g0 extends o{_parse($){if(typeof $.data!=="string"){let J=this._getOrReturnCtx($),G=this._def.values;return E(J,{expected:a.joinValues(G),received:J.parsedType,code:T.invalid_type}),u}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has($.data)){let J=this._getOrReturnCtx($),G=this._def.values;return E(J,{received:J.data,code:T.invalid_enum_value,options:G}),u}return S1($.data)}get options(){return this._def.values}get enum(){let $={};for(let J of this._def.values)$[J]=J;return $}get Values(){let $={};for(let J of this._def.values)$[J]=J;return $}get Enum(){let $={};for(let J of this._def.values)$[J]=J;return $}extract($,J=this._def){return g0.create($,{...this._def,...J})}exclude($,J=this._def){return g0.create(this.options.filter((G)=>!$.includes(G)),{...this._def,...J})}}g0.create=g3;class c2 extends o{_parse($){let J=a.getValidEnumValues(this._def.values),G=this._getOrReturnCtx($);if(G.parsedType!==S.string&&G.parsedType!==S.number){let X=a.objectValues(J);return E(G,{expected:a.joinValues(X),received:G.parsedType,code:T.invalid_type}),u}if(!this._cache)this._cache=new Set(a.getValidEnumValues(this._def.values));if(!this._cache.has($.data)){let X=a.objectValues(J);return E(G,{received:G.data,code:T.invalid_enum_value,options:X}),u}return S1($.data)}get enum(){return this._def.values}}c2.create=($,J)=>{return new c2({values:$,typeName:p.ZodNativeEnum,...c(J)})};class W2 extends o{unwrap(){return this._def.type}_parse($){let{ctx:J}=this._processInputParams($);if(J.parsedType!==S.promise&&J.common.async===!1)return E(J,{code:T.invalid_type,expected:S.promise,received:J.parsedType}),u;let G=J.parsedType===S.promise?J.data:Promise.resolve(J.data);return S1(G.then((X)=>{return this._def.type.parseAsync(X,{path:J.path,errorMap:J.common.contextualErrorMap})}))}}W2.create=($,J)=>{return new W2({type:$,typeName:p.ZodPromise,...c(J)})};class J0 extends o{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===p.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse($){let{status:J,ctx:G}=this._processInputParams($),X=this._def.effect||null,q={addIssue:(V)=>{if(E(G,V),V.fatal)J.abort();else J.dirty()},get path(){return G.path}};if(q.addIssue=q.addIssue.bind(q),X.type==="preprocess"){let V=X.transform(G.data,q);if(G.common.async)return Promise.resolve(V).then(async(Y)=>{if(J.value==="aborted")return u;let W=await this._def.schema._parseAsync({data:Y,path:G.path,parent:G});if(W.status==="aborted")return u;if(W.status==="dirty")return X2(W.value);if(J.value==="dirty")return X2(W.value);return W});else{if(J.value==="aborted")return u;let Y=this._def.schema._parseSync({data:V,path:G.path,parent:G});if(Y.status==="aborted")return u;if(Y.status==="dirty")return X2(Y.value);if(J.value==="dirty")return X2(Y.value);return Y}}if(X.type==="refinement"){let V=(Y)=>{let W=X.refinement(Y,q);if(G.common.async)return Promise.resolve(W);if(W instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return Y};if(G.common.async===!1){let Y=this._def.schema._parseSync({data:G.data,path:G.path,parent:G});if(Y.status==="aborted")return u;if(Y.status==="dirty")J.dirty();return V(Y.value),{status:J.value,value:Y.value}}else return this._def.schema._parseAsync({data:G.data,path:G.path,parent:G}).then((Y)=>{if(Y.status==="aborted")return u;if(Y.status==="dirty")J.dirty();return V(Y.value).then(()=>{return{status:J.value,value:Y.value}})})}if(X.type==="transform")if(G.common.async===!1){let V=this._def.schema._parseSync({data:G.data,path:G.path,parent:G});if(!b0(V))return u;let Y=X.transform(V.value,q);if(Y instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:J.value,value:Y}}else return this._def.schema._parseAsync({data:G.data,path:G.path,parent:G}).then((V)=>{if(!b0(V))return u;return Promise.resolve(X.transform(V.value,q)).then((Y)=>({status:J.value,value:Y}))});a.assertNever(X)}}J0.create=($,J,G)=>{return new J0({schema:$,typeName:p.ZodEffects,effect:J,...c(G)})};J0.createWithPreprocess=($,J,G)=>{return new J0({schema:J,effect:{type:"preprocess",transform:$},typeName:p.ZodEffects,...c(G)})};class e1 extends o{_parse($){if(this._getType($)===S.undefined)return S1(void 0);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}}e1.create=($,J)=>{return new e1({innerType:$,typeName:p.ZodOptional,...c(J)})};class A0 extends o{_parse($){if(this._getType($)===S.null)return S1(null);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}}A0.create=($,J)=>{return new A0({innerType:$,typeName:p.ZodNullable,...c(J)})};class i2 extends o{_parse($){let{ctx:J}=this._processInputParams($),G=J.data;if(J.parsedType===S.undefined)G=this._def.defaultValue();return this._def.innerType._parse({data:G,path:J.path,parent:J})}removeDefault(){return this._def.innerType}}i2.create=($,J)=>{return new i2({innerType:$,typeName:p.ZodDefault,defaultValue:typeof J.default==="function"?J.default:()=>J.default,...c(J)})};class o2 extends o{_parse($){let{ctx:J}=this._processInputParams($),G={...J,common:{...J.common,issues:[]}},X=this._def.innerType._parse({data:G.data,path:G.path,parent:{...G}});if(g2(X))return X.then((q)=>{return{status:"valid",value:q.status==="valid"?q.value:this._def.catchValue({get error(){return new T1(G.common.issues)},input:G.data})}});else return{status:"valid",value:X.status==="valid"?X.value:this._def.catchValue({get error(){return new T1(G.common.issues)},input:G.data})}}removeCatch(){return this._def.innerType}}o2.create=($,J)=>{return new o2({innerType:$,typeName:p.ZodCatch,catchValue:typeof J.catch==="function"?J.catch:()=>J.catch,...c(J)})};class E4 extends o{_parse($){if(this._getType($)!==S.nan){let G=this._getOrReturnCtx($);return E(G,{code:T.invalid_type,expected:S.nan,received:G.parsedType}),u}return{status:"valid",value:$.data}}}E4.create=($)=>{return new E4({typeName:p.ZodNaN,...c($)})};var VQ=Symbol("zod_brand");class f5 extends o{_parse($){let{ctx:J}=this._processInputParams($),G=J.data;return this._def.type._parse({data:G,path:J.path,parent:J})}unwrap(){return this._def.type}}class C4 extends o{_parse($){let{status:J,ctx:G}=this._processInputParams($);if(G.common.async)return(async()=>{let q=await this._def.in._parseAsync({data:G.data,path:G.path,parent:G});if(q.status==="aborted")return u;if(q.status==="dirty")return J.dirty(),X2(q.value);else return this._def.out._parseAsync({data:q.value,path:G.path,parent:G})})();else{let X=this._def.in._parseSync({data:G.data,path:G.path,parent:G});if(X.status==="aborted")return u;if(X.status==="dirty")return J.dirty(),{status:"dirty",value:X.value};else return this._def.out._parseSync({data:X.value,path:G.path,parent:G})}}static create($,J){return new C4({in:$,out:J,typeName:p.ZodPipeline})}}class n2 extends o{_parse($){let J=this._def.innerType._parse($),G=(X)=>{if(b0(X))X.value=Object.freeze(X.value);return X};return g2(J)?J.then((X)=>G(X)):G(J)}unwrap(){return this._def.innerType}}n2.create=($,J)=>{return new n2({innerType:$,typeName:p.ZodReadonly,...c(J)})};function b3($,J){let G=typeof $==="function"?$(J):typeof $==="string"?{message:$}:$;return typeof G==="string"?{message:G}:G}function h3($,J={},G){if($)return Y2.create().superRefine((X,q)=>{let V=$(X);if(V instanceof Promise)return V.then((Y)=>{if(!Y){let W=b3(J,X),H=W.fatal??G??!0;q.addIssue({code:"custom",...W,fatal:H})}});if(!V){let Y=b3(J,X),W=Y.fatal??G??!0;q.addIssue({code:"custom",...Y,fatal:W})}return});return Y2.create()}var WQ={object:Y1.lazycreate},p;(function($){$.ZodString="ZodString",$.ZodNumber="ZodNumber",$.ZodNaN="ZodNaN",$.ZodBigInt="ZodBigInt",$.ZodBoolean="ZodBoolean",$.ZodDate="ZodDate",$.ZodSymbol="ZodSymbol",$.ZodUndefined="ZodUndefined",$.ZodNull="ZodNull",$.ZodAny="ZodAny",$.ZodUnknown="ZodUnknown",$.ZodNever="ZodNever",$.ZodVoid="ZodVoid",$.ZodArray="ZodArray",$.ZodObject="ZodObject",$.ZodUnion="ZodUnion",$.ZodDiscriminatedUnion="ZodDiscriminatedUnion",$.ZodIntersection="ZodIntersection",$.ZodTuple="ZodTuple",$.ZodRecord="ZodRecord",$.ZodMap="ZodMap",$.ZodSet="ZodSet",$.ZodFunction="ZodFunction",$.ZodLazy="ZodLazy",$.ZodLiteral="ZodLiteral",$.ZodEnum="ZodEnum",$.ZodEffects="ZodEffects",$.ZodNativeEnum="ZodNativeEnum",$.ZodOptional="ZodOptional",$.ZodNullable="ZodNullable",$.ZodDefault="ZodDefault",$.ZodCatch="ZodCatch",$.ZodPromise="ZodPromise",$.ZodBranded="ZodBranded",$.ZodPipeline="ZodPipeline",$.ZodReadonly="ZodReadonly"})(p||(p={}));var HQ=($,J={message:`Input not instance of ${$.name}`})=>h3((G)=>G instanceof $,J),y3=s1.create,m3=x0.create,UQ=E4.create,MQ=k0.create,f3=m2.create,zQ=q2.create,DQ=L4.create,QQ=f2.create,KQ=u2.create,FQ=Y2.create,RQ=v0.create,BQ=W0.create,OQ=T4.create,AQ=t1.create,wQ=Y1.create,jQ=Y1.strictCreate,NQ=p2.create,ZQ=m5.create,_Q=l2.create,PQ=H0.create,LQ=S4.create,TQ=I4.create,SQ=V2.create,IQ=y2.create,EQ=r2.create,CQ=d2.create,bQ=g0.create,vQ=c2.create,xQ=W2.create,kQ=J0.create,gQ=e1.create,hQ=A0.create,yQ=J0.createWithPreprocess,mQ=C4.create,fQ=()=>y3().optional(),uQ=()=>m3().optional(),pQ=()=>f3().optional(),lQ={string:($)=>s1.create({...$,coerce:!0}),number:($)=>x0.create({...$,coerce:!0}),boolean:($)=>m2.create({...$,coerce:!0}),bigint:($)=>k0.create({...$,coerce:!0}),date:($)=>q2.create({...$,coerce:!0})};var rQ=u;var HT=g.object({id:g.string().min(1,"Entity ID is required"),entityType:g.string().min(1,"Entity type is required"),contentHash:g.string().min(1,"Content hash is required"),operation:g.enum(["create","update"])});var DT=g.object({limit:g.number().int().positive().optional().default(20),offset:g.number().int().min(0).optional().default(0),types:g.array(g.string()).optional().default([]),excludeTypes:g.array(g.string()).optional().default([]),weight:g.record(g.string(),g.number()).optional()});var iQ=g.object({field:g.string(),direction:g.enum(["asc","desc"]),nullsFirst:g.boolean().optional()}),NT=g.object({limit:g.number().int().positive().optional(),offset:g.number().int().min(0).optional().default(0),sortFields:g.array(iQ).optional(),filter:g.object({metadata:g.record(g.string(),g.unknown()).optional()}).optional(),publishedOnly:g.boolean().optional()});var u5=x4(P6(),1);function p5($,J){if(Object.keys(J).length===0)return $;let G=Object.fromEntries(Object.entries(J).filter(([,X])=>X!==void 0));return u5.default.stringify($,G)}function g9($){if($ instanceof Date)return $.toISOString();if(Array.isArray($))return $.map(g9);if($!==null&&typeof $==="object"){let J={};for(let[G,X]of Object.entries($))J[G]=g9(X);return J}return $}function h0($,J){let{content:G,data:X}=u5.default($),q=g9(X);return{content:G.trim(),metadata:J.parse(q)}}function l5($){if(Object.keys($).length===0)return"";let G=u5.default.stringify("",$).match(/^---\n[\s\S]*?\n---/);return G?G[0]:""}var GK={generateBodyTemplate:()=>""};class b4{entityType;schema;frontmatterSchema;isSingleton;hasBody;supportsCoverImage;fmSchema;bodyFormatter;constructor($){if(this.entityType=$.entityType,this.schema=$.schema,this.frontmatterSchema=$.frontmatterSchema,this.fmSchema=$.frontmatterSchema,this.bodyFormatter=$.bodyFormatter??GK,$.isSingleton!==void 0)this.isSingleton=$.isSingleton;if($.hasBody!==void 0)this.hasBody=$.hasBody;if($.supportsCoverImage!==void 0)this.supportsCoverImage=$.supportsCoverImage}toMarkdown($){let J=this.renderBody($),X={...this.readExistingFrontmatter($.content)},q=Object.keys(this.frontmatterSchema.shape);for(let[V,Y]of Object.entries($.metadata))if(q.includes(V))X[V]=Y;return this.buildMarkdown(J,X)}renderBody($){return this.extractBody($.content)}readExistingFrontmatter($){try{return h0($,g.record(g.unknown())).metadata}catch{return{}}}extractMetadata($){return $.metadata}parseFrontMatter($,J){return h0($,J).metadata}getBodyTemplate(){return this.bodyFormatter.generateBodyTemplate()}generateFrontMatter($){let J=$.metadata;return l5(J)}extractBody($){try{return h0($,g.record(g.unknown())).content}catch{return $}}parseFrontmatter($){return h0($,this.fmSchema).metadata}buildMarkdown($,J){return p5($,J)}}var p3="base",h9=g.object({id:g.string(),entityType:g.string(),content:g.string(),created:g.string().datetime(),updated:g.string().datetime(),metadata:g.record(g.string(),g.unknown()),contentHash:g.string()});var l3=g.object({currentPage:g.number(),totalPages:g.number(),totalItems:g.number(),pageSize:g.number(),hasNextPage:g.boolean(),hasPrevPage:g.boolean()});function r3($,J,G){let X=Math.max(1,Math.ceil($/G));return{currentPage:J,totalPages:X,totalItems:$,pageSize:G,hasNextPage:J<X,hasPrevPage:J>1}}function d3($,J){let{page:G,limit:X,pageSize:q}=J;if(G!==void 0){let V=G,Y=q??X??$.length,W=$.length,H=Math.ceil(W/Y),U=(V-1)*Y,M=U+Y;return{items:$.slice(U,M),pagination:{currentPage:V,totalPages:H,totalItems:W,pageSize:Y,hasNextPage:V<H,hasPrevPage:V>1}}}if(X!==void 0)return{items:$.slice(0,X),pagination:null};return{items:$,pagination:null}}export{h0 as parseMarkdownWithFrontmatter,l3 as paginationInfoSchema,d3 as paginateItems,p5 as generateMarkdownWithFrontmatter,l5 as generateFrontmatter,r3 as buildPaginationInfo,h9 as baseEntitySchema,b4 as BaseEntityAdapter,p3 as BASE_ENTITY_TYPE};
|
|
118
|
+
`+$.slice(Y+1);else H+=$.slice(q);return H.slice(1)}function ED($){var J="",G=0,X;for(var q=0;q<$.length;G>=65536?q+=2:q++)if(G=w4($,q),X=L1[G],!X&&_4(G)){if(J+=$[q],G>=65536)J+=$[q+1]}else J+=X||wD(G);return J}function SD($,J,G){var X="",q=$.tag,V,Y,W;for(V=0,Y=G.length;V<Y;V+=1){if(W=G[V],$.replacer)W=$.replacer.call(G,String(V),W);if(R0($,J,W,!1,!1)||typeof W>"u"&&R0($,J,null,!1,!1)){if(X!=="")X+=","+(!$.condenseFlow?" ":"");X+=$.dump}}$.tag=q,$.dump="["+X+"]"}function V3($,J,G,X){var q="",V=$.tag,Y,W,H;for(Y=0,W=G.length;Y<W;Y+=1){if(H=G[Y],$.replacer)H=$.replacer.call(G,String(Y),H);if(R0($,J+1,H,!0,!0,!1,!0)||typeof H>"u"&&R0($,J+1,null,!0,!0,!1,!0)){if(!X||q!=="")q+=T9($,J);if($.dump&&N4===$.dump.charCodeAt(0))q+="-";else q+="- ";q+=$.dump}}$.tag=V,$.dump=q||"[]"}function CD($,J,G){var X="",q=$.tag,V=Object.keys(G),Y,W,H,U,M;for(Y=0,W=V.length;Y<W;Y+=1){if(M="",X!=="")M+=", ";if($.condenseFlow)M+='"';if(H=V[Y],U=G[H],$.replacer)U=$.replacer.call(G,H,U);if(!R0($,J,H,!1,!1))continue;if($.dump.length>1024)M+="? ";if(M+=$.dump+($.condenseFlow?'"':"")+":"+($.condenseFlow?"":" "),!R0($,J,U,!1,!1))continue;M+=$.dump,X+=M}$.tag=q,$.dump="{"+X+"}"}function bD($,J,G,X){var q="",V=$.tag,Y=Object.keys(G),W,H,U,M,Q,F;if($.sortKeys===!0)Y.sort();else if(typeof $.sortKeys==="function")Y.sort($.sortKeys);else if($.sortKeys)throw new k1("sortKeys must be a boolean or a function");for(W=0,H=Y.length;W<H;W+=1){if(F="",!X||q!=="")F+=T9($,J);if(U=Y[W],M=G[U],$.replacer)M=$.replacer.call(G,U,M);if(!R0($,J+1,U,!0,!0,!0))continue;if(Q=$.tag!==null&&$.tag!=="?"||$.dump&&$.dump.length>1024,Q)if($.dump&&N4===$.dump.charCodeAt(0))F+="?";else F+="? ";if(F+=$.dump,Q)F+=T9($,J);if(!R0($,J+1,M,!0,Q))continue;if($.dump&&N4===$.dump.charCodeAt(0))F+=":";else F+=": ";F+=$.dump,q+=F}$.tag=V,$.dump=q||"{}"}function W3($,J,G){var X,q,V,Y,W,H;q=G?$.explicitTypes:$.implicitTypes;for(V=0,Y=q.length;V<Y;V+=1)if(W=q[V],(W.instanceOf||W.predicate)&&(!W.instanceOf||typeof J==="object"&&J instanceof W.instanceOf)&&(!W.predicate||W.predicate(J))){if(G)if(W.multi&&W.representName)$.tag=W.representName(J);else $.tag=W.tag;else $.tag="?";if(W.represent){if(H=$.styleMap[W.tag]||W.defaultStyle,Z3.call(W.represent)==="[object Function]")X=W.represent(J,H);else if(_3.call(W.represent,H))X=W.represent[H](J,H);else throw new k1("!<"+W.tag+'> tag resolver accepts not "'+H+'" style');$.dump=X}return!0}return!1}function R0($,J,G,X,q,V,Y){if($.tag=null,$.dump=G,!W3($,G,!1))W3($,G,!0);var W=Z3.call($.dump),H=X,U;if(X)X=$.flowLevel<0||$.flowLevel>J;var M=W==="[object Object]"||W==="[object Array]",Q,F;if(M)Q=$.duplicates.indexOf(G),F=Q!==-1;if($.tag!==null&&$.tag!=="?"||F||$.indent!==2&&J>0)q=!1;if(F&&$.usedDuplicates[Q])$.dump="*ref_"+Q;else{if(M&&F&&!$.usedDuplicates[Q])$.usedDuplicates[Q]=!0;if(W==="[object Object]"){if(X&&Object.keys($.dump).length!==0){if(bD($,J,$.dump,q),F)$.dump="&ref_"+Q+$.dump}else if(CD($,J,$.dump),F)$.dump="&ref_"+Q+" "+$.dump}else if(W==="[object Array]"){if(X&&$.dump.length!==0){if($.noArrayIndent&&!Y&&J>0)V3($,J-1,$.dump,q);else V3($,J,$.dump,q);if(F)$.dump="&ref_"+Q+$.dump}else if(SD($,J,$.dump),F)$.dump="&ref_"+Q+" "+$.dump}else if(W==="[object String]"){if($.tag!=="?")TD($,$.dump,J,V,H)}else if(W==="[object Undefined]")return!1;else{if($.skipInvalid)return!1;throw new k1("unacceptable kind of an object to dump "+W)}if($.tag!==null&&$.tag!=="?"){if(U=encodeURI($.tag[0]==="!"?$.tag.slice(1):$.tag).replace(/!/g,"%21"),$.tag[0]==="!")U="!"+U;else if(U.slice(0,18)==="tag:yaml.org,2002:")U="!!"+U.slice(18);else U="!<"+U+">";$.dump=U+" "+$.dump}}return!0}function xD($,J){var G=[],X=[],q,V;E9($,G,X);for(q=0,V=X.length;q<V;q+=1)J.duplicates.push(G[X[q]]);J.usedDuplicates=Array(V)}function E9($,J,G){var X,q,V;if($!==null&&typeof $==="object")if(q=J.indexOf($),q!==-1){if(G.indexOf(q)===-1)G.push(q)}else if(J.push($),Array.isArray($))for(q=0,V=$.length;q<V;q+=1)E9($[q],J,G);else{X=Object.keys($);for(q=0,V=X.length;q<V;q+=1)E9($[X[q]],J,G)}}function vD($,J){J=J||{};var G=new ND(J);if(!G.noRefs)xD($,G);var X=$;if(G.replacer)X=G.replacer.call({"":X},"",X);if(R0(G,0,X,!0,!0))return G.dump+`
|
|
119
|
+
`;return""}var kD=vD,gD={dump:kD};function v9($,J){return function(){throw Error("Function yaml."+$+" is removed in js-yaml 4. Use yaml."+J+" instead, which is now safe by default.")}}var{load:hD,loadAll:EP}=N3,yD=gD.dump;var SP=v9("safeLoad","load"),CP=v9("safeLoadAll","loadAll"),bP=v9("safeDump","dump");var b={};r9(b,{void:()=>ZQ,util:()=>a,unknown:()=>jQ,union:()=>TQ,undefined:()=>OQ,tuple:()=>SQ,transformer:()=>fQ,symbol:()=>BQ,string:()=>p3,strictObject:()=>LQ,setErrorMap:()=>pD,set:()=>xQ,record:()=>CQ,quotelessJson:()=>fD,promise:()=>mQ,preprocess:()=>lQ,pipeline:()=>rQ,ostring:()=>dQ,optional:()=>uQ,onumber:()=>cQ,oboolean:()=>iQ,objectUtil:()=>k9,object:()=>PQ,number:()=>l3,nullable:()=>pQ,null:()=>AQ,never:()=>NQ,nativeEnum:()=>yQ,nan:()=>KQ,map:()=>bQ,makeIssue:()=>P4,literal:()=>gQ,lazy:()=>kQ,late:()=>DQ,isValid:()=>b0,isDirty:()=>m5,isAsync:()=>g2,isAborted:()=>y5,intersection:()=>EQ,instanceof:()=>QQ,getParsedType:()=>V0,getErrorMap:()=>k2,function:()=>vQ,enum:()=>hQ,effect:()=>fQ,discriminatedUnion:()=>IQ,defaultErrorMap:()=>B0,datetimeRegex:()=>m3,date:()=>RQ,custom:()=>u3,coerce:()=>oQ,boolean:()=>r3,bigint:()=>FQ,array:()=>_Q,any:()=>wQ,addIssueToContext:()=>S,ZodVoid:()=>T4,ZodUnknown:()=>x0,ZodUnion:()=>p2,ZodUndefined:()=>f2,ZodType:()=>o,ZodTuple:()=>H0,ZodTransformer:()=>J0,ZodSymbol:()=>L4,ZodString:()=>s1,ZodSet:()=>W2,ZodSchema:()=>o,ZodRecord:()=>I4,ZodReadonly:()=>n2,ZodPromise:()=>H2,ZodPipeline:()=>C4,ZodParsedType:()=>I,ZodOptional:()=>e1,ZodObject:()=>Y1,ZodNumber:()=>v0,ZodNullable:()=>A0,ZodNull:()=>u2,ZodNever:()=>W0,ZodNativeEnum:()=>c2,ZodNaN:()=>S4,ZodMap:()=>E4,ZodLiteral:()=>d2,ZodLazy:()=>r2,ZodIssueCode:()=>T,ZodIntersection:()=>l2,ZodFunction:()=>y2,ZodFirstPartyTypeKind:()=>p,ZodError:()=>T1,ZodEnum:()=>g0,ZodEffects:()=>J0,ZodDiscriminatedUnion:()=>f5,ZodDefault:()=>i2,ZodDate:()=>Y2,ZodCatch:()=>o2,ZodBranded:()=>u5,ZodBoolean:()=>m2,ZodBigInt:()=>k0,ZodArray:()=>t1,ZodAny:()=>V2,Schema:()=>o,ParseStatus:()=>N1,OK:()=>I1,NEVER:()=>nQ,INVALID:()=>u,EMPTY_PATH:()=>lD,DIRTY:()=>q2,BRAND:()=>zQ});var a;(function($){$.assertEqual=(q)=>{};function J(q){}$.assertIs=J;function G(q){throw Error()}$.assertNever=G,$.arrayToEnum=(q)=>{let V={};for(let Y of q)V[Y]=Y;return V},$.getValidEnumValues=(q)=>{let V=$.objectKeys(q).filter((W)=>typeof q[q[W]]!=="number"),Y={};for(let W of V)Y[W]=q[W];return $.objectValues(Y)},$.objectValues=(q)=>{return $.objectKeys(q).map(function(V){return q[V]})},$.objectKeys=typeof Object.keys==="function"?(q)=>Object.keys(q):(q)=>{let V=[];for(let Y in q)if(Object.prototype.hasOwnProperty.call(q,Y))V.push(Y);return V},$.find=(q,V)=>{for(let Y of q)if(V(Y))return Y;return},$.isInteger=typeof Number.isInteger==="function"?(q)=>Number.isInteger(q):(q)=>typeof q==="number"&&Number.isFinite(q)&&Math.floor(q)===q;function X(q,V=" | "){return q.map((Y)=>typeof Y==="string"?`'${Y}'`:Y).join(V)}$.joinValues=X,$.jsonStringifyReplacer=(q,V)=>{if(typeof V==="bigint")return V.toString();return V}})(a||(a={}));var k9;(function($){$.mergeShapes=(J,G)=>{return{...J,...G}}})(k9||(k9={}));var I=a.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),V0=($)=>{switch(typeof $){case"undefined":return I.undefined;case"string":return I.string;case"number":return Number.isNaN($)?I.nan:I.number;case"boolean":return I.boolean;case"function":return I.function;case"bigint":return I.bigint;case"symbol":return I.symbol;case"object":if(Array.isArray($))return I.array;if($===null)return I.null;if($.then&&typeof $.then==="function"&&$.catch&&typeof $.catch==="function")return I.promise;if(typeof Map<"u"&&$ instanceof Map)return I.map;if(typeof Set<"u"&&$ instanceof Set)return I.set;if(typeof Date<"u"&&$ instanceof Date)return I.date;return I.object;default:return I.unknown}};var T=a.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),fD=($)=>{return JSON.stringify($,null,2).replace(/"([^"]+)":/g,"$1:")};class T1 extends Error{get errors(){return this.issues}constructor($){super();this.issues=[],this.addIssue=(G)=>{this.issues=[...this.issues,G]},this.addIssues=(G=[])=>{this.issues=[...this.issues,...G]};let J=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,J);else this.__proto__=J;this.name="ZodError",this.issues=$}format($){let J=$||function(q){return q.message},G={_errors:[]},X=(q)=>{for(let V of q.issues)if(V.code==="invalid_union")V.unionErrors.map(X);else if(V.code==="invalid_return_type")X(V.returnTypeError);else if(V.code==="invalid_arguments")X(V.argumentsError);else if(V.path.length===0)G._errors.push(J(V));else{let Y=G,W=0;while(W<V.path.length){let H=V.path[W];if(W!==V.path.length-1)Y[H]=Y[H]||{_errors:[]};else Y[H]=Y[H]||{_errors:[]},Y[H]._errors.push(J(V));Y=Y[H],W++}}};return X(this),G}static assert($){if(!($ instanceof T1))throw Error(`Not a ZodError: ${$}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,a.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten($=(J)=>J.message){let J={},G=[];for(let X of this.issues)if(X.path.length>0){let q=X.path[0];J[q]=J[q]||[],J[q].push($(X))}else G.push($(X));return{formErrors:G,fieldErrors:J}}get formErrors(){return this.flatten()}}T1.create=($)=>{return new T1($)};var uD=($,J)=>{let G;switch($.code){case T.invalid_type:if($.received===I.undefined)G="Required";else G=`Expected ${$.expected}, received ${$.received}`;break;case T.invalid_literal:G=`Invalid literal value, expected ${JSON.stringify($.expected,a.jsonStringifyReplacer)}`;break;case T.unrecognized_keys:G=`Unrecognized key(s) in object: ${a.joinValues($.keys,", ")}`;break;case T.invalid_union:G="Invalid input";break;case T.invalid_union_discriminator:G=`Invalid discriminator value. Expected ${a.joinValues($.options)}`;break;case T.invalid_enum_value:G=`Invalid enum value. Expected ${a.joinValues($.options)}, received '${$.received}'`;break;case T.invalid_arguments:G="Invalid function arguments";break;case T.invalid_return_type:G="Invalid function return type";break;case T.invalid_date:G="Invalid date";break;case T.invalid_string:if(typeof $.validation==="object")if("includes"in $.validation){if(G=`Invalid input: must include "${$.validation.includes}"`,typeof $.validation.position==="number")G=`${G} at one or more positions greater than or equal to ${$.validation.position}`}else if("startsWith"in $.validation)G=`Invalid input: must start with "${$.validation.startsWith}"`;else if("endsWith"in $.validation)G=`Invalid input: must end with "${$.validation.endsWith}"`;else a.assertNever($.validation);else if($.validation!=="regex")G=`Invalid ${$.validation}`;else G="Invalid";break;case T.too_small:if($.type==="array")G=`Array must contain ${$.exact?"exactly":$.inclusive?"at least":"more than"} ${$.minimum} element(s)`;else if($.type==="string")G=`String must contain ${$.exact?"exactly":$.inclusive?"at least":"over"} ${$.minimum} character(s)`;else if($.type==="number")G=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="bigint")G=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="date")G=`Date must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${new Date(Number($.minimum))}`;else G="Invalid input";break;case T.too_big:if($.type==="array")G=`Array must contain ${$.exact?"exactly":$.inclusive?"at most":"less than"} ${$.maximum} element(s)`;else if($.type==="string")G=`String must contain ${$.exact?"exactly":$.inclusive?"at most":"under"} ${$.maximum} character(s)`;else if($.type==="number")G=`Number must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="bigint")G=`BigInt must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="date")G=`Date must be ${$.exact?"exactly":$.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number($.maximum))}`;else G="Invalid input";break;case T.custom:G="Invalid input";break;case T.invalid_intersection_types:G="Intersection results could not be merged";break;case T.not_multiple_of:G=`Number must be a multiple of ${$.multipleOf}`;break;case T.not_finite:G="Number must be finite";break;default:G=J.defaultError,a.assertNever($)}return{message:G}},B0=uD;var v3=B0;function pD($){v3=$}function k2(){return v3}var P4=($)=>{let{data:J,path:G,errorMaps:X,issueData:q}=$,V=[...G,...q.path||[]],Y={...q,path:V};if(q.message!==void 0)return{...q,path:V,message:q.message};let W="",H=X.filter((U)=>!!U).slice().reverse();for(let U of H)W=U(Y,{data:J,defaultError:W}).message;return{...q,path:V,message:W}},lD=[];function S($,J){let G=k2(),X=P4({issueData:J,data:$.data,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,G,G===B0?void 0:B0].filter((q)=>!!q)});$.common.issues.push(X)}class N1{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray($,J){let G=[];for(let X of J){if(X.status==="aborted")return u;if(X.status==="dirty")$.dirty();G.push(X.value)}return{status:$.value,value:G}}static async mergeObjectAsync($,J){let G=[];for(let X of J){let q=await X.key,V=await X.value;G.push({key:q,value:V})}return N1.mergeObjectSync($,G)}static mergeObjectSync($,J){let G={};for(let X of J){let{key:q,value:V}=X;if(q.status==="aborted")return u;if(V.status==="aborted")return u;if(q.status==="dirty")$.dirty();if(V.status==="dirty")$.dirty();if(q.value!=="__proto__"&&(typeof V.value<"u"||X.alwaysSet))G[q.value]=V.value}return{status:$.value,value:G}}}var u=Object.freeze({status:"aborted"}),q2=($)=>({status:"dirty",value:$}),I1=($)=>({status:"valid",value:$}),y5=($)=>$.status==="aborted",m5=($)=>$.status==="dirty",b0=($)=>$.status==="valid",g2=($)=>typeof Promise<"u"&&$ instanceof Promise;var g;(function($){$.errToObj=(J)=>typeof J==="string"?{message:J}:J||{},$.toString=(J)=>typeof J==="string"?J:J?.message})(g||(g={}));class $0{constructor($,J,G,X){this._cachedPath=[],this.parent=$,this.data=J,this._path=G,this._key=X}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}var k3=($,J)=>{if(b0(J))return{success:!0,data:J.value};else{if(!$.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let G=new T1($.common.issues);return this._error=G,this._error}}}};function c($){if(!$)return{};let{errorMap:J,invalid_type_error:G,required_error:X,description:q}=$;if(J&&(G||X))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(J)return{errorMap:J,description:q};return{errorMap:(Y,W)=>{let{message:H}=$;if(Y.code==="invalid_enum_value")return{message:H??W.defaultError};if(typeof W.data>"u")return{message:H??X??W.defaultError};if(Y.code!=="invalid_type")return{message:W.defaultError};return{message:H??G??W.defaultError}},description:q}}class o{get description(){return this._def.description}_getType($){return V0($.data)}_getOrReturnCtx($,J){return J||{common:$.parent.common,data:$.data,parsedType:V0($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}_processInputParams($){return{status:new N1,ctx:{common:$.parent.common,data:$.data,parsedType:V0($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}}_parseSync($){let J=this._parse($);if(g2(J))throw Error("Synchronous parse encountered promise.");return J}_parseAsync($){let J=this._parse($);return Promise.resolve(J)}parse($,J){let G=this.safeParse($,J);if(G.success)return G.data;throw G.error}safeParse($,J){let G={common:{issues:[],async:J?.async??!1,contextualErrorMap:J?.errorMap},path:J?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:V0($)},X=this._parseSync({data:$,path:G.path,parent:G});return k3(G,X)}"~validate"($){let J={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:V0($)};if(!this["~standard"].async)try{let G=this._parseSync({data:$,path:[],parent:J});return b0(G)?{value:G.value}:{issues:J.common.issues}}catch(G){if(G?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;J.common={issues:[],async:!0}}return this._parseAsync({data:$,path:[],parent:J}).then((G)=>b0(G)?{value:G.value}:{issues:J.common.issues})}async parseAsync($,J){let G=await this.safeParseAsync($,J);if(G.success)return G.data;throw G.error}async safeParseAsync($,J){let G={common:{issues:[],contextualErrorMap:J?.errorMap,async:!0},path:J?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:V0($)},X=this._parse({data:$,path:G.path,parent:G}),q=await(g2(X)?X:Promise.resolve(X));return k3(G,q)}refine($,J){let G=(X)=>{if(typeof J==="string"||typeof J>"u")return{message:J};else if(typeof J==="function")return J(X);else return J};return this._refinement((X,q)=>{let V=$(X),Y=()=>q.addIssue({code:T.custom,...G(X)});if(typeof Promise<"u"&&V instanceof Promise)return V.then((W)=>{if(!W)return Y(),!1;else return!0});if(!V)return Y(),!1;else return!0})}refinement($,J){return this._refinement((G,X)=>{if(!$(G))return X.addIssue(typeof J==="function"?J(G,X):J),!1;else return!0})}_refinement($){return new J0({schema:this,typeName:p.ZodEffects,effect:{type:"refinement",refinement:$}})}superRefine($){return this._refinement($)}constructor($){this.spa=this.safeParseAsync,this._def=$,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:(J)=>this["~validate"](J)}}optional(){return e1.create(this,this._def)}nullable(){return A0.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return t1.create(this)}promise(){return H2.create(this,this._def)}or($){return p2.create([this,$],this._def)}and($){return l2.create(this,$,this._def)}transform($){return new J0({...c(this._def),schema:this,typeName:p.ZodEffects,effect:{type:"transform",transform:$}})}default($){let J=typeof $==="function"?$:()=>$;return new i2({...c(this._def),innerType:this,defaultValue:J,typeName:p.ZodDefault})}brand(){return new u5({typeName:p.ZodBranded,type:this,...c(this._def)})}catch($){let J=typeof $==="function"?$:()=>$;return new o2({...c(this._def),innerType:this,catchValue:J,typeName:p.ZodCatch})}describe($){return new this.constructor({...this._def,description:$})}pipe($){return C4.create(this,$)}readonly(){return n2.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}var rD=/^c[^\s-]{8,}$/i,dD=/^[0-9a-z]+$/,cD=/^[0-9A-HJKMNP-TV-Z]{26}$/i,iD=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,oD=/^[a-z0-9_-]{21}$/i,nD=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,aD=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,sD=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,tD="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",g9,eD=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,$Q=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,JQ=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,GQ=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,XQ=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,qQ=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,h3="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",YQ=new RegExp(`^${h3}$`);function y3($){let J="[0-5]\\d";if($.precision)J=`${J}\\.\\d{${$.precision}}`;else if($.precision==null)J=`${J}(\\.\\d+)?`;let G=$.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${J})${G}`}function VQ($){return new RegExp(`^${y3($)}$`)}function m3($){let J=`${h3}T${y3($)}`,G=[];if(G.push($.local?"Z?":"Z"),$.offset)G.push("([+-]\\d{2}:?\\d{2})");return J=`${J}(${G.join("|")})`,new RegExp(`^${J}$`)}function WQ($,J){if((J==="v4"||!J)&&eD.test($))return!0;if((J==="v6"||!J)&&JQ.test($))return!0;return!1}function HQ($,J){if(!nD.test($))return!1;try{let[G]=$.split(".");if(!G)return!1;let X=G.replace(/-/g,"+").replace(/_/g,"/").padEnd(G.length+(4-G.length%4)%4,"="),q=JSON.parse(atob(X));if(typeof q!=="object"||q===null)return!1;if("typ"in q&&q?.typ!=="JWT")return!1;if(!q.alg)return!1;if(J&&q.alg!==J)return!1;return!0}catch{return!1}}function UQ($,J){if((J==="v4"||!J)&&$Q.test($))return!0;if((J==="v6"||!J)&&GQ.test($))return!0;return!1}class s1 extends o{_parse($){if(this._def.coerce)$.data=String($.data);if(this._getType($)!==I.string){let q=this._getOrReturnCtx($);return S(q,{code:T.invalid_type,expected:I.string,received:q.parsedType}),u}let G=new N1,X=void 0;for(let q of this._def.checks)if(q.kind==="min"){if($.data.length<q.value)X=this._getOrReturnCtx($,X),S(X,{code:T.too_small,minimum:q.value,type:"string",inclusive:!0,exact:!1,message:q.message}),G.dirty()}else if(q.kind==="max"){if($.data.length>q.value)X=this._getOrReturnCtx($,X),S(X,{code:T.too_big,maximum:q.value,type:"string",inclusive:!0,exact:!1,message:q.message}),G.dirty()}else if(q.kind==="length"){let V=$.data.length>q.value,Y=$.data.length<q.value;if(V||Y){if(X=this._getOrReturnCtx($,X),V)S(X,{code:T.too_big,maximum:q.value,type:"string",inclusive:!0,exact:!0,message:q.message});else if(Y)S(X,{code:T.too_small,minimum:q.value,type:"string",inclusive:!0,exact:!0,message:q.message});G.dirty()}}else if(q.kind==="email"){if(!sD.test($.data))X=this._getOrReturnCtx($,X),S(X,{validation:"email",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="emoji"){if(!g9)g9=new RegExp(tD,"u");if(!g9.test($.data))X=this._getOrReturnCtx($,X),S(X,{validation:"emoji",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="uuid"){if(!iD.test($.data))X=this._getOrReturnCtx($,X),S(X,{validation:"uuid",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="nanoid"){if(!oD.test($.data))X=this._getOrReturnCtx($,X),S(X,{validation:"nanoid",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="cuid"){if(!rD.test($.data))X=this._getOrReturnCtx($,X),S(X,{validation:"cuid",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="cuid2"){if(!dD.test($.data))X=this._getOrReturnCtx($,X),S(X,{validation:"cuid2",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="ulid"){if(!cD.test($.data))X=this._getOrReturnCtx($,X),S(X,{validation:"ulid",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="url")try{new URL($.data)}catch{X=this._getOrReturnCtx($,X),S(X,{validation:"url",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="regex"){if(q.regex.lastIndex=0,!q.regex.test($.data))X=this._getOrReturnCtx($,X),S(X,{validation:"regex",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="trim")$.data=$.data.trim();else if(q.kind==="includes"){if(!$.data.includes(q.value,q.position))X=this._getOrReturnCtx($,X),S(X,{code:T.invalid_string,validation:{includes:q.value,position:q.position},message:q.message}),G.dirty()}else if(q.kind==="toLowerCase")$.data=$.data.toLowerCase();else if(q.kind==="toUpperCase")$.data=$.data.toUpperCase();else if(q.kind==="startsWith"){if(!$.data.startsWith(q.value))X=this._getOrReturnCtx($,X),S(X,{code:T.invalid_string,validation:{startsWith:q.value},message:q.message}),G.dirty()}else if(q.kind==="endsWith"){if(!$.data.endsWith(q.value))X=this._getOrReturnCtx($,X),S(X,{code:T.invalid_string,validation:{endsWith:q.value},message:q.message}),G.dirty()}else if(q.kind==="datetime"){if(!m3(q).test($.data))X=this._getOrReturnCtx($,X),S(X,{code:T.invalid_string,validation:"datetime",message:q.message}),G.dirty()}else if(q.kind==="date"){if(!YQ.test($.data))X=this._getOrReturnCtx($,X),S(X,{code:T.invalid_string,validation:"date",message:q.message}),G.dirty()}else if(q.kind==="time"){if(!VQ(q).test($.data))X=this._getOrReturnCtx($,X),S(X,{code:T.invalid_string,validation:"time",message:q.message}),G.dirty()}else if(q.kind==="duration"){if(!aD.test($.data))X=this._getOrReturnCtx($,X),S(X,{validation:"duration",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="ip"){if(!WQ($.data,q.version))X=this._getOrReturnCtx($,X),S(X,{validation:"ip",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="jwt"){if(!HQ($.data,q.alg))X=this._getOrReturnCtx($,X),S(X,{validation:"jwt",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="cidr"){if(!UQ($.data,q.version))X=this._getOrReturnCtx($,X),S(X,{validation:"cidr",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="base64"){if(!XQ.test($.data))X=this._getOrReturnCtx($,X),S(X,{validation:"base64",code:T.invalid_string,message:q.message}),G.dirty()}else if(q.kind==="base64url"){if(!qQ.test($.data))X=this._getOrReturnCtx($,X),S(X,{validation:"base64url",code:T.invalid_string,message:q.message}),G.dirty()}else a.assertNever(q);return{status:G.value,value:$.data}}_regex($,J,G){return this.refinement((X)=>$.test(X),{validation:J,code:T.invalid_string,...g.errToObj(G)})}_addCheck($){return new s1({...this._def,checks:[...this._def.checks,$]})}email($){return this._addCheck({kind:"email",...g.errToObj($)})}url($){return this._addCheck({kind:"url",...g.errToObj($)})}emoji($){return this._addCheck({kind:"emoji",...g.errToObj($)})}uuid($){return this._addCheck({kind:"uuid",...g.errToObj($)})}nanoid($){return this._addCheck({kind:"nanoid",...g.errToObj($)})}cuid($){return this._addCheck({kind:"cuid",...g.errToObj($)})}cuid2($){return this._addCheck({kind:"cuid2",...g.errToObj($)})}ulid($){return this._addCheck({kind:"ulid",...g.errToObj($)})}base64($){return this._addCheck({kind:"base64",...g.errToObj($)})}base64url($){return this._addCheck({kind:"base64url",...g.errToObj($)})}jwt($){return this._addCheck({kind:"jwt",...g.errToObj($)})}ip($){return this._addCheck({kind:"ip",...g.errToObj($)})}cidr($){return this._addCheck({kind:"cidr",...g.errToObj($)})}datetime($){if(typeof $==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:$});return this._addCheck({kind:"datetime",precision:typeof $?.precision>"u"?null:$?.precision,offset:$?.offset??!1,local:$?.local??!1,...g.errToObj($?.message)})}date($){return this._addCheck({kind:"date",message:$})}time($){if(typeof $==="string")return this._addCheck({kind:"time",precision:null,message:$});return this._addCheck({kind:"time",precision:typeof $?.precision>"u"?null:$?.precision,...g.errToObj($?.message)})}duration($){return this._addCheck({kind:"duration",...g.errToObj($)})}regex($,J){return this._addCheck({kind:"regex",regex:$,...g.errToObj(J)})}includes($,J){return this._addCheck({kind:"includes",value:$,position:J?.position,...g.errToObj(J?.message)})}startsWith($,J){return this._addCheck({kind:"startsWith",value:$,...g.errToObj(J)})}endsWith($,J){return this._addCheck({kind:"endsWith",value:$,...g.errToObj(J)})}min($,J){return this._addCheck({kind:"min",value:$,...g.errToObj(J)})}max($,J){return this._addCheck({kind:"max",value:$,...g.errToObj(J)})}length($,J){return this._addCheck({kind:"length",value:$,...g.errToObj(J)})}nonempty($){return this.min(1,g.errToObj($))}trim(){return new s1({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new s1({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new s1({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(($)=>$.kind==="datetime")}get isDate(){return!!this._def.checks.find(($)=>$.kind==="date")}get isTime(){return!!this._def.checks.find(($)=>$.kind==="time")}get isDuration(){return!!this._def.checks.find(($)=>$.kind==="duration")}get isEmail(){return!!this._def.checks.find(($)=>$.kind==="email")}get isURL(){return!!this._def.checks.find(($)=>$.kind==="url")}get isEmoji(){return!!this._def.checks.find(($)=>$.kind==="emoji")}get isUUID(){return!!this._def.checks.find(($)=>$.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(($)=>$.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(($)=>$.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(($)=>$.kind==="cuid2")}get isULID(){return!!this._def.checks.find(($)=>$.kind==="ulid")}get isIP(){return!!this._def.checks.find(($)=>$.kind==="ip")}get isCIDR(){return!!this._def.checks.find(($)=>$.kind==="cidr")}get isBase64(){return!!this._def.checks.find(($)=>$.kind==="base64")}get isBase64url(){return!!this._def.checks.find(($)=>$.kind==="base64url")}get minLength(){let $=null;for(let J of this._def.checks)if(J.kind==="min"){if($===null||J.value>$)$=J.value}return $}get maxLength(){let $=null;for(let J of this._def.checks)if(J.kind==="max"){if($===null||J.value<$)$=J.value}return $}}s1.create=($)=>{return new s1({checks:[],typeName:p.ZodString,coerce:$?.coerce??!1,...c($)})};function MQ($,J){let G=($.toString().split(".")[1]||"").length,X=(J.toString().split(".")[1]||"").length,q=G>X?G:X,V=Number.parseInt($.toFixed(q).replace(".","")),Y=Number.parseInt(J.toFixed(q).replace(".",""));return V%Y/10**q}class v0 extends o{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse($){if(this._def.coerce)$.data=Number($.data);if(this._getType($)!==I.number){let q=this._getOrReturnCtx($);return S(q,{code:T.invalid_type,expected:I.number,received:q.parsedType}),u}let G=void 0,X=new N1;for(let q of this._def.checks)if(q.kind==="int"){if(!a.isInteger($.data))G=this._getOrReturnCtx($,G),S(G,{code:T.invalid_type,expected:"integer",received:"float",message:q.message}),X.dirty()}else if(q.kind==="min"){if(q.inclusive?$.data<q.value:$.data<=q.value)G=this._getOrReturnCtx($,G),S(G,{code:T.too_small,minimum:q.value,type:"number",inclusive:q.inclusive,exact:!1,message:q.message}),X.dirty()}else if(q.kind==="max"){if(q.inclusive?$.data>q.value:$.data>=q.value)G=this._getOrReturnCtx($,G),S(G,{code:T.too_big,maximum:q.value,type:"number",inclusive:q.inclusive,exact:!1,message:q.message}),X.dirty()}else if(q.kind==="multipleOf"){if(MQ($.data,q.value)!==0)G=this._getOrReturnCtx($,G),S(G,{code:T.not_multiple_of,multipleOf:q.value,message:q.message}),X.dirty()}else if(q.kind==="finite"){if(!Number.isFinite($.data))G=this._getOrReturnCtx($,G),S(G,{code:T.not_finite,message:q.message}),X.dirty()}else a.assertNever(q);return{status:X.value,value:$.data}}gte($,J){return this.setLimit("min",$,!0,g.toString(J))}gt($,J){return this.setLimit("min",$,!1,g.toString(J))}lte($,J){return this.setLimit("max",$,!0,g.toString(J))}lt($,J){return this.setLimit("max",$,!1,g.toString(J))}setLimit($,J,G,X){return new v0({...this._def,checks:[...this._def.checks,{kind:$,value:J,inclusive:G,message:g.toString(X)}]})}_addCheck($){return new v0({...this._def,checks:[...this._def.checks,$]})}int($){return this._addCheck({kind:"int",message:g.toString($)})}positive($){return this._addCheck({kind:"min",value:0,inclusive:!1,message:g.toString($)})}negative($){return this._addCheck({kind:"max",value:0,inclusive:!1,message:g.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:0,inclusive:!0,message:g.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:0,inclusive:!0,message:g.toString($)})}multipleOf($,J){return this._addCheck({kind:"multipleOf",value:$,message:g.toString(J)})}finite($){return this._addCheck({kind:"finite",message:g.toString($)})}safe($){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:g.toString($)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:g.toString($)})}get minValue(){let $=null;for(let J of this._def.checks)if(J.kind==="min"){if($===null||J.value>$)$=J.value}return $}get maxValue(){let $=null;for(let J of this._def.checks)if(J.kind==="max"){if($===null||J.value<$)$=J.value}return $}get isInt(){return!!this._def.checks.find(($)=>$.kind==="int"||$.kind==="multipleOf"&&a.isInteger($.value))}get isFinite(){let $=null,J=null;for(let G of this._def.checks)if(G.kind==="finite"||G.kind==="int"||G.kind==="multipleOf")return!0;else if(G.kind==="min"){if(J===null||G.value>J)J=G.value}else if(G.kind==="max"){if($===null||G.value<$)$=G.value}return Number.isFinite(J)&&Number.isFinite($)}}v0.create=($)=>{return new v0({checks:[],typeName:p.ZodNumber,coerce:$?.coerce||!1,...c($)})};class k0 extends o{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse($){if(this._def.coerce)try{$.data=BigInt($.data)}catch{return this._getInvalidInput($)}if(this._getType($)!==I.bigint)return this._getInvalidInput($);let G=void 0,X=new N1;for(let q of this._def.checks)if(q.kind==="min"){if(q.inclusive?$.data<q.value:$.data<=q.value)G=this._getOrReturnCtx($,G),S(G,{code:T.too_small,type:"bigint",minimum:q.value,inclusive:q.inclusive,message:q.message}),X.dirty()}else if(q.kind==="max"){if(q.inclusive?$.data>q.value:$.data>=q.value)G=this._getOrReturnCtx($,G),S(G,{code:T.too_big,type:"bigint",maximum:q.value,inclusive:q.inclusive,message:q.message}),X.dirty()}else if(q.kind==="multipleOf"){if($.data%q.value!==BigInt(0))G=this._getOrReturnCtx($,G),S(G,{code:T.not_multiple_of,multipleOf:q.value,message:q.message}),X.dirty()}else a.assertNever(q);return{status:X.value,value:$.data}}_getInvalidInput($){let J=this._getOrReturnCtx($);return S(J,{code:T.invalid_type,expected:I.bigint,received:J.parsedType}),u}gte($,J){return this.setLimit("min",$,!0,g.toString(J))}gt($,J){return this.setLimit("min",$,!1,g.toString(J))}lte($,J){return this.setLimit("max",$,!0,g.toString(J))}lt($,J){return this.setLimit("max",$,!1,g.toString(J))}setLimit($,J,G,X){return new k0({...this._def,checks:[...this._def.checks,{kind:$,value:J,inclusive:G,message:g.toString(X)}]})}_addCheck($){return new k0({...this._def,checks:[...this._def.checks,$]})}positive($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:g.toString($)})}negative($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:g.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:g.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:g.toString($)})}multipleOf($,J){return this._addCheck({kind:"multipleOf",value:$,message:g.toString(J)})}get minValue(){let $=null;for(let J of this._def.checks)if(J.kind==="min"){if($===null||J.value>$)$=J.value}return $}get maxValue(){let $=null;for(let J of this._def.checks)if(J.kind==="max"){if($===null||J.value<$)$=J.value}return $}}k0.create=($)=>{return new k0({checks:[],typeName:p.ZodBigInt,coerce:$?.coerce??!1,...c($)})};class m2 extends o{_parse($){if(this._def.coerce)$.data=Boolean($.data);if(this._getType($)!==I.boolean){let G=this._getOrReturnCtx($);return S(G,{code:T.invalid_type,expected:I.boolean,received:G.parsedType}),u}return I1($.data)}}m2.create=($)=>{return new m2({typeName:p.ZodBoolean,coerce:$?.coerce||!1,...c($)})};class Y2 extends o{_parse($){if(this._def.coerce)$.data=new Date($.data);if(this._getType($)!==I.date){let q=this._getOrReturnCtx($);return S(q,{code:T.invalid_type,expected:I.date,received:q.parsedType}),u}if(Number.isNaN($.data.getTime())){let q=this._getOrReturnCtx($);return S(q,{code:T.invalid_date}),u}let G=new N1,X=void 0;for(let q of this._def.checks)if(q.kind==="min"){if($.data.getTime()<q.value)X=this._getOrReturnCtx($,X),S(X,{code:T.too_small,message:q.message,inclusive:!0,exact:!1,minimum:q.value,type:"date"}),G.dirty()}else if(q.kind==="max"){if($.data.getTime()>q.value)X=this._getOrReturnCtx($,X),S(X,{code:T.too_big,message:q.message,inclusive:!0,exact:!1,maximum:q.value,type:"date"}),G.dirty()}else a.assertNever(q);return{status:G.value,value:new Date($.data.getTime())}}_addCheck($){return new Y2({...this._def,checks:[...this._def.checks,$]})}min($,J){return this._addCheck({kind:"min",value:$.getTime(),message:g.toString(J)})}max($,J){return this._addCheck({kind:"max",value:$.getTime(),message:g.toString(J)})}get minDate(){let $=null;for(let J of this._def.checks)if(J.kind==="min"){if($===null||J.value>$)$=J.value}return $!=null?new Date($):null}get maxDate(){let $=null;for(let J of this._def.checks)if(J.kind==="max"){if($===null||J.value<$)$=J.value}return $!=null?new Date($):null}}Y2.create=($)=>{return new Y2({checks:[],coerce:$?.coerce||!1,typeName:p.ZodDate,...c($)})};class L4 extends o{_parse($){if(this._getType($)!==I.symbol){let G=this._getOrReturnCtx($);return S(G,{code:T.invalid_type,expected:I.symbol,received:G.parsedType}),u}return I1($.data)}}L4.create=($)=>{return new L4({typeName:p.ZodSymbol,...c($)})};class f2 extends o{_parse($){if(this._getType($)!==I.undefined){let G=this._getOrReturnCtx($);return S(G,{code:T.invalid_type,expected:I.undefined,received:G.parsedType}),u}return I1($.data)}}f2.create=($)=>{return new f2({typeName:p.ZodUndefined,...c($)})};class u2 extends o{_parse($){if(this._getType($)!==I.null){let G=this._getOrReturnCtx($);return S(G,{code:T.invalid_type,expected:I.null,received:G.parsedType}),u}return I1($.data)}}u2.create=($)=>{return new u2({typeName:p.ZodNull,...c($)})};class V2 extends o{constructor(){super(...arguments);this._any=!0}_parse($){return I1($.data)}}V2.create=($)=>{return new V2({typeName:p.ZodAny,...c($)})};class x0 extends o{constructor(){super(...arguments);this._unknown=!0}_parse($){return I1($.data)}}x0.create=($)=>{return new x0({typeName:p.ZodUnknown,...c($)})};class W0 extends o{_parse($){let J=this._getOrReturnCtx($);return S(J,{code:T.invalid_type,expected:I.never,received:J.parsedType}),u}}W0.create=($)=>{return new W0({typeName:p.ZodNever,...c($)})};class T4 extends o{_parse($){if(this._getType($)!==I.undefined){let G=this._getOrReturnCtx($);return S(G,{code:T.invalid_type,expected:I.void,received:G.parsedType}),u}return I1($.data)}}T4.create=($)=>{return new T4({typeName:p.ZodVoid,...c($)})};class t1 extends o{_parse($){let{ctx:J,status:G}=this._processInputParams($),X=this._def;if(J.parsedType!==I.array)return S(J,{code:T.invalid_type,expected:I.array,received:J.parsedType}),u;if(X.exactLength!==null){let V=J.data.length>X.exactLength.value,Y=J.data.length<X.exactLength.value;if(V||Y)S(J,{code:V?T.too_big:T.too_small,minimum:Y?X.exactLength.value:void 0,maximum:V?X.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:X.exactLength.message}),G.dirty()}if(X.minLength!==null){if(J.data.length<X.minLength.value)S(J,{code:T.too_small,minimum:X.minLength.value,type:"array",inclusive:!0,exact:!1,message:X.minLength.message}),G.dirty()}if(X.maxLength!==null){if(J.data.length>X.maxLength.value)S(J,{code:T.too_big,maximum:X.maxLength.value,type:"array",inclusive:!0,exact:!1,message:X.maxLength.message}),G.dirty()}if(J.common.async)return Promise.all([...J.data].map((V,Y)=>{return X.type._parseAsync(new $0(J,V,J.path,Y))})).then((V)=>{return N1.mergeArray(G,V)});let q=[...J.data].map((V,Y)=>{return X.type._parseSync(new $0(J,V,J.path,Y))});return N1.mergeArray(G,q)}get element(){return this._def.type}min($,J){return new t1({...this._def,minLength:{value:$,message:g.toString(J)}})}max($,J){return new t1({...this._def,maxLength:{value:$,message:g.toString(J)}})}length($,J){return new t1({...this._def,exactLength:{value:$,message:g.toString(J)}})}nonempty($){return this.min(1,$)}}t1.create=($,J)=>{return new t1({type:$,minLength:null,maxLength:null,exactLength:null,typeName:p.ZodArray,...c(J)})};function h2($){if($ instanceof Y1){let J={};for(let G in $.shape){let X=$.shape[G];J[G]=e1.create(h2(X))}return new Y1({...$._def,shape:()=>J})}else if($ instanceof t1)return new t1({...$._def,type:h2($.element)});else if($ instanceof e1)return e1.create(h2($.unwrap()));else if($ instanceof A0)return A0.create(h2($.unwrap()));else if($ instanceof H0)return H0.create($.items.map((J)=>h2(J)));else return $}class Y1 extends o{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let $=this._def.shape(),J=a.objectKeys($);return this._cached={shape:$,keys:J},this._cached}_parse($){if(this._getType($)!==I.object){let H=this._getOrReturnCtx($);return S(H,{code:T.invalid_type,expected:I.object,received:H.parsedType}),u}let{status:G,ctx:X}=this._processInputParams($),{shape:q,keys:V}=this._getCached(),Y=[];if(!(this._def.catchall instanceof W0&&this._def.unknownKeys==="strip")){for(let H in X.data)if(!V.includes(H))Y.push(H)}let W=[];for(let H of V){let U=q[H],M=X.data[H];W.push({key:{status:"valid",value:H},value:U._parse(new $0(X,M,X.path,H)),alwaysSet:H in X.data})}if(this._def.catchall instanceof W0){let H=this._def.unknownKeys;if(H==="passthrough")for(let U of Y)W.push({key:{status:"valid",value:U},value:{status:"valid",value:X.data[U]}});else if(H==="strict"){if(Y.length>0)S(X,{code:T.unrecognized_keys,keys:Y}),G.dirty()}else if(H==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let H=this._def.catchall;for(let U of Y){let M=X.data[U];W.push({key:{status:"valid",value:U},value:H._parse(new $0(X,M,X.path,U)),alwaysSet:U in X.data})}}if(X.common.async)return Promise.resolve().then(async()=>{let H=[];for(let U of W){let M=await U.key,Q=await U.value;H.push({key:M,value:Q,alwaysSet:U.alwaysSet})}return H}).then((H)=>{return N1.mergeObjectSync(G,H)});else return N1.mergeObjectSync(G,W)}get shape(){return this._def.shape()}strict($){return g.errToObj,new Y1({...this._def,unknownKeys:"strict",...$!==void 0?{errorMap:(J,G)=>{let X=this._def.errorMap?.(J,G).message??G.defaultError;if(J.code==="unrecognized_keys")return{message:g.errToObj($).message??X};return{message:X}}}:{}})}strip(){return new Y1({...this._def,unknownKeys:"strip"})}passthrough(){return new Y1({...this._def,unknownKeys:"passthrough"})}extend($){return new Y1({...this._def,shape:()=>({...this._def.shape(),...$})})}merge($){return new Y1({unknownKeys:$._def.unknownKeys,catchall:$._def.catchall,shape:()=>({...this._def.shape(),...$._def.shape()}),typeName:p.ZodObject})}setKey($,J){return this.augment({[$]:J})}catchall($){return new Y1({...this._def,catchall:$})}pick($){let J={};for(let G of a.objectKeys($))if($[G]&&this.shape[G])J[G]=this.shape[G];return new Y1({...this._def,shape:()=>J})}omit($){let J={};for(let G of a.objectKeys(this.shape))if(!$[G])J[G]=this.shape[G];return new Y1({...this._def,shape:()=>J})}deepPartial(){return h2(this)}partial($){let J={};for(let G of a.objectKeys(this.shape)){let X=this.shape[G];if($&&!$[G])J[G]=X;else J[G]=X.optional()}return new Y1({...this._def,shape:()=>J})}required($){let J={};for(let G of a.objectKeys(this.shape))if($&&!$[G])J[G]=this.shape[G];else{let q=this.shape[G];while(q instanceof e1)q=q._def.innerType;J[G]=q}return new Y1({...this._def,shape:()=>J})}keyof(){return f3(a.objectKeys(this.shape))}}Y1.create=($,J)=>{return new Y1({shape:()=>$,unknownKeys:"strip",catchall:W0.create(),typeName:p.ZodObject,...c(J)})};Y1.strictCreate=($,J)=>{return new Y1({shape:()=>$,unknownKeys:"strict",catchall:W0.create(),typeName:p.ZodObject,...c(J)})};Y1.lazycreate=($,J)=>{return new Y1({shape:$,unknownKeys:"strip",catchall:W0.create(),typeName:p.ZodObject,...c(J)})};class p2 extends o{_parse($){let{ctx:J}=this._processInputParams($),G=this._def.options;function X(q){for(let Y of q)if(Y.result.status==="valid")return Y.result;for(let Y of q)if(Y.result.status==="dirty")return J.common.issues.push(...Y.ctx.common.issues),Y.result;let V=q.map((Y)=>new T1(Y.ctx.common.issues));return S(J,{code:T.invalid_union,unionErrors:V}),u}if(J.common.async)return Promise.all(G.map(async(q)=>{let V={...J,common:{...J.common,issues:[]},parent:null};return{result:await q._parseAsync({data:J.data,path:J.path,parent:V}),ctx:V}})).then(X);else{let q=void 0,V=[];for(let W of G){let H={...J,common:{...J.common,issues:[]},parent:null},U=W._parseSync({data:J.data,path:J.path,parent:H});if(U.status==="valid")return U;else if(U.status==="dirty"&&!q)q={result:U,ctx:H};if(H.common.issues.length)V.push(H.common.issues)}if(q)return J.common.issues.push(...q.ctx.common.issues),q.result;let Y=V.map((W)=>new T1(W));return S(J,{code:T.invalid_union,unionErrors:Y}),u}}get options(){return this._def.options}}p2.create=($,J)=>{return new p2({options:$,typeName:p.ZodUnion,...c(J)})};var O0=($)=>{if($ instanceof r2)return O0($.schema);else if($ instanceof J0)return O0($.innerType());else if($ instanceof d2)return[$.value];else if($ instanceof g0)return $.options;else if($ instanceof c2)return a.objectValues($.enum);else if($ instanceof i2)return O0($._def.innerType);else if($ instanceof f2)return[void 0];else if($ instanceof u2)return[null];else if($ instanceof e1)return[void 0,...O0($.unwrap())];else if($ instanceof A0)return[null,...O0($.unwrap())];else if($ instanceof u5)return O0($.unwrap());else if($ instanceof n2)return O0($.unwrap());else if($ instanceof o2)return O0($._def.innerType);else return[]};class f5 extends o{_parse($){let{ctx:J}=this._processInputParams($);if(J.parsedType!==I.object)return S(J,{code:T.invalid_type,expected:I.object,received:J.parsedType}),u;let G=this.discriminator,X=J.data[G],q=this.optionsMap.get(X);if(!q)return S(J,{code:T.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[G]}),u;if(J.common.async)return q._parseAsync({data:J.data,path:J.path,parent:J});else return q._parseSync({data:J.data,path:J.path,parent:J})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create($,J,G){let X=new Map;for(let q of J){let V=O0(q.shape[$]);if(!V.length)throw Error(`A discriminator value for key \`${$}\` could not be extracted from all schema options`);for(let Y of V){if(X.has(Y))throw Error(`Discriminator property ${String($)} has duplicate value ${String(Y)}`);X.set(Y,q)}}return new f5({typeName:p.ZodDiscriminatedUnion,discriminator:$,options:J,optionsMap:X,...c(G)})}}function h9($,J){let G=V0($),X=V0(J);if($===J)return{valid:!0,data:$};else if(G===I.object&&X===I.object){let q=a.objectKeys(J),V=a.objectKeys($).filter((W)=>q.indexOf(W)!==-1),Y={...$,...J};for(let W of V){let H=h9($[W],J[W]);if(!H.valid)return{valid:!1};Y[W]=H.data}return{valid:!0,data:Y}}else if(G===I.array&&X===I.array){if($.length!==J.length)return{valid:!1};let q=[];for(let V=0;V<$.length;V++){let Y=$[V],W=J[V],H=h9(Y,W);if(!H.valid)return{valid:!1};q.push(H.data)}return{valid:!0,data:q}}else if(G===I.date&&X===I.date&&+$===+J)return{valid:!0,data:$};else return{valid:!1}}class l2 extends o{_parse($){let{status:J,ctx:G}=this._processInputParams($),X=(q,V)=>{if(y5(q)||y5(V))return u;let Y=h9(q.value,V.value);if(!Y.valid)return S(G,{code:T.invalid_intersection_types}),u;if(m5(q)||m5(V))J.dirty();return{status:J.value,value:Y.data}};if(G.common.async)return Promise.all([this._def.left._parseAsync({data:G.data,path:G.path,parent:G}),this._def.right._parseAsync({data:G.data,path:G.path,parent:G})]).then(([q,V])=>X(q,V));else return X(this._def.left._parseSync({data:G.data,path:G.path,parent:G}),this._def.right._parseSync({data:G.data,path:G.path,parent:G}))}}l2.create=($,J,G)=>{return new l2({left:$,right:J,typeName:p.ZodIntersection,...c(G)})};class H0 extends o{_parse($){let{status:J,ctx:G}=this._processInputParams($);if(G.parsedType!==I.array)return S(G,{code:T.invalid_type,expected:I.array,received:G.parsedType}),u;if(G.data.length<this._def.items.length)return S(G,{code:T.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),u;if(!this._def.rest&&G.data.length>this._def.items.length)S(G,{code:T.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),J.dirty();let q=[...G.data].map((V,Y)=>{let W=this._def.items[Y]||this._def.rest;if(!W)return null;return W._parse(new $0(G,V,G.path,Y))}).filter((V)=>!!V);if(G.common.async)return Promise.all(q).then((V)=>{return N1.mergeArray(J,V)});else return N1.mergeArray(J,q)}get items(){return this._def.items}rest($){return new H0({...this._def,rest:$})}}H0.create=($,J)=>{if(!Array.isArray($))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new H0({items:$,typeName:p.ZodTuple,rest:null,...c(J)})};class I4 extends o{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:J,ctx:G}=this._processInputParams($);if(G.parsedType!==I.object)return S(G,{code:T.invalid_type,expected:I.object,received:G.parsedType}),u;let X=[],q=this._def.keyType,V=this._def.valueType;for(let Y in G.data)X.push({key:q._parse(new $0(G,Y,G.path,Y)),value:V._parse(new $0(G,G.data[Y],G.path,Y)),alwaysSet:Y in G.data});if(G.common.async)return N1.mergeObjectAsync(J,X);else return N1.mergeObjectSync(J,X)}get element(){return this._def.valueType}static create($,J,G){if(J instanceof o)return new I4({keyType:$,valueType:J,typeName:p.ZodRecord,...c(G)});return new I4({keyType:s1.create(),valueType:$,typeName:p.ZodRecord,...c(J)})}}class E4 extends o{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:J,ctx:G}=this._processInputParams($);if(G.parsedType!==I.map)return S(G,{code:T.invalid_type,expected:I.map,received:G.parsedType}),u;let X=this._def.keyType,q=this._def.valueType,V=[...G.data.entries()].map(([Y,W],H)=>{return{key:X._parse(new $0(G,Y,G.path,[H,"key"])),value:q._parse(new $0(G,W,G.path,[H,"value"]))}});if(G.common.async){let Y=new Map;return Promise.resolve().then(async()=>{for(let W of V){let H=await W.key,U=await W.value;if(H.status==="aborted"||U.status==="aborted")return u;if(H.status==="dirty"||U.status==="dirty")J.dirty();Y.set(H.value,U.value)}return{status:J.value,value:Y}})}else{let Y=new Map;for(let W of V){let{key:H,value:U}=W;if(H.status==="aborted"||U.status==="aborted")return u;if(H.status==="dirty"||U.status==="dirty")J.dirty();Y.set(H.value,U.value)}return{status:J.value,value:Y}}}}E4.create=($,J,G)=>{return new E4({valueType:J,keyType:$,typeName:p.ZodMap,...c(G)})};class W2 extends o{_parse($){let{status:J,ctx:G}=this._processInputParams($);if(G.parsedType!==I.set)return S(G,{code:T.invalid_type,expected:I.set,received:G.parsedType}),u;let X=this._def;if(X.minSize!==null){if(G.data.size<X.minSize.value)S(G,{code:T.too_small,minimum:X.minSize.value,type:"set",inclusive:!0,exact:!1,message:X.minSize.message}),J.dirty()}if(X.maxSize!==null){if(G.data.size>X.maxSize.value)S(G,{code:T.too_big,maximum:X.maxSize.value,type:"set",inclusive:!0,exact:!1,message:X.maxSize.message}),J.dirty()}let q=this._def.valueType;function V(W){let H=new Set;for(let U of W){if(U.status==="aborted")return u;if(U.status==="dirty")J.dirty();H.add(U.value)}return{status:J.value,value:H}}let Y=[...G.data.values()].map((W,H)=>q._parse(new $0(G,W,G.path,H)));if(G.common.async)return Promise.all(Y).then((W)=>V(W));else return V(Y)}min($,J){return new W2({...this._def,minSize:{value:$,message:g.toString(J)}})}max($,J){return new W2({...this._def,maxSize:{value:$,message:g.toString(J)}})}size($,J){return this.min($,J).max($,J)}nonempty($){return this.min(1,$)}}W2.create=($,J)=>{return new W2({valueType:$,minSize:null,maxSize:null,typeName:p.ZodSet,...c(J)})};class y2 extends o{constructor(){super(...arguments);this.validate=this.implement}_parse($){let{ctx:J}=this._processInputParams($);if(J.parsedType!==I.function)return S(J,{code:T.invalid_type,expected:I.function,received:J.parsedType}),u;function G(Y,W){return P4({data:Y,path:J.path,errorMaps:[J.common.contextualErrorMap,J.schemaErrorMap,k2(),B0].filter((H)=>!!H),issueData:{code:T.invalid_arguments,argumentsError:W}})}function X(Y,W){return P4({data:Y,path:J.path,errorMaps:[J.common.contextualErrorMap,J.schemaErrorMap,k2(),B0].filter((H)=>!!H),issueData:{code:T.invalid_return_type,returnTypeError:W}})}let q={errorMap:J.common.contextualErrorMap},V=J.data;if(this._def.returns instanceof H2){let Y=this;return I1(async function(...W){let H=new T1([]),U=await Y._def.args.parseAsync(W,q).catch((F)=>{throw H.addIssue(G(W,F)),H}),M=await Reflect.apply(V,this,U);return await Y._def.returns._def.type.parseAsync(M,q).catch((F)=>{throw H.addIssue(X(M,F)),H})})}else{let Y=this;return I1(function(...W){let H=Y._def.args.safeParse(W,q);if(!H.success)throw new T1([G(W,H.error)]);let U=Reflect.apply(V,this,H.data),M=Y._def.returns.safeParse(U,q);if(!M.success)throw new T1([X(U,M.error)]);return M.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...$){return new y2({...this._def,args:H0.create($).rest(x0.create())})}returns($){return new y2({...this._def,returns:$})}implement($){return this.parse($)}strictImplement($){return this.parse($)}static create($,J,G){return new y2({args:$?$:H0.create([]).rest(x0.create()),returns:J||x0.create(),typeName:p.ZodFunction,...c(G)})}}class r2 extends o{get schema(){return this._def.getter()}_parse($){let{ctx:J}=this._processInputParams($);return this._def.getter()._parse({data:J.data,path:J.path,parent:J})}}r2.create=($,J)=>{return new r2({getter:$,typeName:p.ZodLazy,...c(J)})};class d2 extends o{_parse($){if($.data!==this._def.value){let J=this._getOrReturnCtx($);return S(J,{received:J.data,code:T.invalid_literal,expected:this._def.value}),u}return{status:"valid",value:$.data}}get value(){return this._def.value}}d2.create=($,J)=>{return new d2({value:$,typeName:p.ZodLiteral,...c(J)})};function f3($,J){return new g0({values:$,typeName:p.ZodEnum,...c(J)})}class g0 extends o{_parse($){if(typeof $.data!=="string"){let J=this._getOrReturnCtx($),G=this._def.values;return S(J,{expected:a.joinValues(G),received:J.parsedType,code:T.invalid_type}),u}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has($.data)){let J=this._getOrReturnCtx($),G=this._def.values;return S(J,{received:J.data,code:T.invalid_enum_value,options:G}),u}return I1($.data)}get options(){return this._def.values}get enum(){let $={};for(let J of this._def.values)$[J]=J;return $}get Values(){let $={};for(let J of this._def.values)$[J]=J;return $}get Enum(){let $={};for(let J of this._def.values)$[J]=J;return $}extract($,J=this._def){return g0.create($,{...this._def,...J})}exclude($,J=this._def){return g0.create(this.options.filter((G)=>!$.includes(G)),{...this._def,...J})}}g0.create=f3;class c2 extends o{_parse($){let J=a.getValidEnumValues(this._def.values),G=this._getOrReturnCtx($);if(G.parsedType!==I.string&&G.parsedType!==I.number){let X=a.objectValues(J);return S(G,{expected:a.joinValues(X),received:G.parsedType,code:T.invalid_type}),u}if(!this._cache)this._cache=new Set(a.getValidEnumValues(this._def.values));if(!this._cache.has($.data)){let X=a.objectValues(J);return S(G,{received:G.data,code:T.invalid_enum_value,options:X}),u}return I1($.data)}get enum(){return this._def.values}}c2.create=($,J)=>{return new c2({values:$,typeName:p.ZodNativeEnum,...c(J)})};class H2 extends o{unwrap(){return this._def.type}_parse($){let{ctx:J}=this._processInputParams($);if(J.parsedType!==I.promise&&J.common.async===!1)return S(J,{code:T.invalid_type,expected:I.promise,received:J.parsedType}),u;let G=J.parsedType===I.promise?J.data:Promise.resolve(J.data);return I1(G.then((X)=>{return this._def.type.parseAsync(X,{path:J.path,errorMap:J.common.contextualErrorMap})}))}}H2.create=($,J)=>{return new H2({type:$,typeName:p.ZodPromise,...c(J)})};class J0 extends o{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===p.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse($){let{status:J,ctx:G}=this._processInputParams($),X=this._def.effect||null,q={addIssue:(V)=>{if(S(G,V),V.fatal)J.abort();else J.dirty()},get path(){return G.path}};if(q.addIssue=q.addIssue.bind(q),X.type==="preprocess"){let V=X.transform(G.data,q);if(G.common.async)return Promise.resolve(V).then(async(Y)=>{if(J.value==="aborted")return u;let W=await this._def.schema._parseAsync({data:Y,path:G.path,parent:G});if(W.status==="aborted")return u;if(W.status==="dirty")return q2(W.value);if(J.value==="dirty")return q2(W.value);return W});else{if(J.value==="aborted")return u;let Y=this._def.schema._parseSync({data:V,path:G.path,parent:G});if(Y.status==="aborted")return u;if(Y.status==="dirty")return q2(Y.value);if(J.value==="dirty")return q2(Y.value);return Y}}if(X.type==="refinement"){let V=(Y)=>{let W=X.refinement(Y,q);if(G.common.async)return Promise.resolve(W);if(W instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return Y};if(G.common.async===!1){let Y=this._def.schema._parseSync({data:G.data,path:G.path,parent:G});if(Y.status==="aborted")return u;if(Y.status==="dirty")J.dirty();return V(Y.value),{status:J.value,value:Y.value}}else return this._def.schema._parseAsync({data:G.data,path:G.path,parent:G}).then((Y)=>{if(Y.status==="aborted")return u;if(Y.status==="dirty")J.dirty();return V(Y.value).then(()=>{return{status:J.value,value:Y.value}})})}if(X.type==="transform")if(G.common.async===!1){let V=this._def.schema._parseSync({data:G.data,path:G.path,parent:G});if(!b0(V))return u;let Y=X.transform(V.value,q);if(Y instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:J.value,value:Y}}else return this._def.schema._parseAsync({data:G.data,path:G.path,parent:G}).then((V)=>{if(!b0(V))return u;return Promise.resolve(X.transform(V.value,q)).then((Y)=>({status:J.value,value:Y}))});a.assertNever(X)}}J0.create=($,J,G)=>{return new J0({schema:$,typeName:p.ZodEffects,effect:J,...c(G)})};J0.createWithPreprocess=($,J,G)=>{return new J0({schema:J,effect:{type:"preprocess",transform:$},typeName:p.ZodEffects,...c(G)})};class e1 extends o{_parse($){if(this._getType($)===I.undefined)return I1(void 0);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}}e1.create=($,J)=>{return new e1({innerType:$,typeName:p.ZodOptional,...c(J)})};class A0 extends o{_parse($){if(this._getType($)===I.null)return I1(null);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}}A0.create=($,J)=>{return new A0({innerType:$,typeName:p.ZodNullable,...c(J)})};class i2 extends o{_parse($){let{ctx:J}=this._processInputParams($),G=J.data;if(J.parsedType===I.undefined)G=this._def.defaultValue();return this._def.innerType._parse({data:G,path:J.path,parent:J})}removeDefault(){return this._def.innerType}}i2.create=($,J)=>{return new i2({innerType:$,typeName:p.ZodDefault,defaultValue:typeof J.default==="function"?J.default:()=>J.default,...c(J)})};class o2 extends o{_parse($){let{ctx:J}=this._processInputParams($),G={...J,common:{...J.common,issues:[]}},X=this._def.innerType._parse({data:G.data,path:G.path,parent:{...G}});if(g2(X))return X.then((q)=>{return{status:"valid",value:q.status==="valid"?q.value:this._def.catchValue({get error(){return new T1(G.common.issues)},input:G.data})}});else return{status:"valid",value:X.status==="valid"?X.value:this._def.catchValue({get error(){return new T1(G.common.issues)},input:G.data})}}removeCatch(){return this._def.innerType}}o2.create=($,J)=>{return new o2({innerType:$,typeName:p.ZodCatch,catchValue:typeof J.catch==="function"?J.catch:()=>J.catch,...c(J)})};class S4 extends o{_parse($){if(this._getType($)!==I.nan){let G=this._getOrReturnCtx($);return S(G,{code:T.invalid_type,expected:I.nan,received:G.parsedType}),u}return{status:"valid",value:$.data}}}S4.create=($)=>{return new S4({typeName:p.ZodNaN,...c($)})};var zQ=Symbol("zod_brand");class u5 extends o{_parse($){let{ctx:J}=this._processInputParams($),G=J.data;return this._def.type._parse({data:G,path:J.path,parent:J})}unwrap(){return this._def.type}}class C4 extends o{_parse($){let{status:J,ctx:G}=this._processInputParams($);if(G.common.async)return(async()=>{let q=await this._def.in._parseAsync({data:G.data,path:G.path,parent:G});if(q.status==="aborted")return u;if(q.status==="dirty")return J.dirty(),q2(q.value);else return this._def.out._parseAsync({data:q.value,path:G.path,parent:G})})();else{let X=this._def.in._parseSync({data:G.data,path:G.path,parent:G});if(X.status==="aborted")return u;if(X.status==="dirty")return J.dirty(),{status:"dirty",value:X.value};else return this._def.out._parseSync({data:X.value,path:G.path,parent:G})}}static create($,J){return new C4({in:$,out:J,typeName:p.ZodPipeline})}}class n2 extends o{_parse($){let J=this._def.innerType._parse($),G=(X)=>{if(b0(X))X.value=Object.freeze(X.value);return X};return g2(J)?J.then((X)=>G(X)):G(J)}unwrap(){return this._def.innerType}}n2.create=($,J)=>{return new n2({innerType:$,typeName:p.ZodReadonly,...c(J)})};function g3($,J){let G=typeof $==="function"?$(J):typeof $==="string"?{message:$}:$;return typeof G==="string"?{message:G}:G}function u3($,J={},G){if($)return V2.create().superRefine((X,q)=>{let V=$(X);if(V instanceof Promise)return V.then((Y)=>{if(!Y){let W=g3(J,X),H=W.fatal??G??!0;q.addIssue({code:"custom",...W,fatal:H})}});if(!V){let Y=g3(J,X),W=Y.fatal??G??!0;q.addIssue({code:"custom",...Y,fatal:W})}return});return V2.create()}var DQ={object:Y1.lazycreate},p;(function($){$.ZodString="ZodString",$.ZodNumber="ZodNumber",$.ZodNaN="ZodNaN",$.ZodBigInt="ZodBigInt",$.ZodBoolean="ZodBoolean",$.ZodDate="ZodDate",$.ZodSymbol="ZodSymbol",$.ZodUndefined="ZodUndefined",$.ZodNull="ZodNull",$.ZodAny="ZodAny",$.ZodUnknown="ZodUnknown",$.ZodNever="ZodNever",$.ZodVoid="ZodVoid",$.ZodArray="ZodArray",$.ZodObject="ZodObject",$.ZodUnion="ZodUnion",$.ZodDiscriminatedUnion="ZodDiscriminatedUnion",$.ZodIntersection="ZodIntersection",$.ZodTuple="ZodTuple",$.ZodRecord="ZodRecord",$.ZodMap="ZodMap",$.ZodSet="ZodSet",$.ZodFunction="ZodFunction",$.ZodLazy="ZodLazy",$.ZodLiteral="ZodLiteral",$.ZodEnum="ZodEnum",$.ZodEffects="ZodEffects",$.ZodNativeEnum="ZodNativeEnum",$.ZodOptional="ZodOptional",$.ZodNullable="ZodNullable",$.ZodDefault="ZodDefault",$.ZodCatch="ZodCatch",$.ZodPromise="ZodPromise",$.ZodBranded="ZodBranded",$.ZodPipeline="ZodPipeline",$.ZodReadonly="ZodReadonly"})(p||(p={}));var QQ=($,J={message:`Input not instance of ${$.name}`})=>u3((G)=>G instanceof $,J),p3=s1.create,l3=v0.create,KQ=S4.create,FQ=k0.create,r3=m2.create,RQ=Y2.create,BQ=L4.create,OQ=f2.create,AQ=u2.create,wQ=V2.create,jQ=x0.create,NQ=W0.create,ZQ=T4.create,_Q=t1.create,PQ=Y1.create,LQ=Y1.strictCreate,TQ=p2.create,IQ=f5.create,EQ=l2.create,SQ=H0.create,CQ=I4.create,bQ=E4.create,xQ=W2.create,vQ=y2.create,kQ=r2.create,gQ=d2.create,hQ=g0.create,yQ=c2.create,mQ=H2.create,fQ=J0.create,uQ=e1.create,pQ=A0.create,lQ=J0.createWithPreprocess,rQ=C4.create,dQ=()=>p3().optional(),cQ=()=>l3().optional(),iQ=()=>r3().optional(),oQ={string:($)=>s1.create({...$,coerce:!0}),number:($)=>v0.create({...$,coerce:!0}),boolean:($)=>m2.create({...$,coerce:!0}),bigint:($)=>k0.create({...$,coerce:!0}),date:($)=>Y2.create({...$,coerce:!0})};var nQ=u;var c3="base",tQ=b.enum(["public","shared","restricted"]),b4=b.union([tQ,b.literal("private")]).optional().transform(($)=>{if($===void 0)return"public";if($==="private")return"restricted";return $});var p5=b.object({id:b.string(),entityType:b.string(),content:b.string(),created:b.string().datetime(),updated:b.string().datetime(),visibility:b4,metadata:b.record(b.string(),b.unknown()),contentHash:b.string()});var PT=b.object({id:b.string().min(1,"Entity ID is required"),entityType:b.string().min(1,"Entity type is required"),contentHash:b.string().min(1,"Content hash is required"),operation:b.enum(["create","update"])});var ST=b.object({limit:b.number().int().positive().optional().default(20),offset:b.number().int().min(0).optional().default(0),types:b.array(b.string()).optional().default([]),excludeTypes:b.array(b.string()).optional().default([]),weight:b.record(b.string(),b.number()).optional(),visibilityScope:b.enum(["public","shared","restricted"]).optional()});var l5=k4(T6(),1);function r5($,J){if(Object.keys(J).length===0)return $;let G=Object.fromEntries(Object.entries(J).filter(([,X])=>X!==void 0));return l5.default.stringify($,G)}function y9($){if($ instanceof Date)return $.toISOString();if(Array.isArray($))return $.map(y9);if($!==null&&typeof $==="object"){let J={};for(let[G,X]of Object.entries($))J[G]=y9(X);return J}return $}function h0($,J){let{content:G,data:X}=l5.default($),q=y9(X);return{content:G.trim(),metadata:J.parse(q)}}function d5($){if(Object.keys($).length===0)return"";let G=l5.default.stringify("",$).match(/^---\n[\s\S]*?\n---/);return G?G[0]:""}var vT=b.object({visibility:b4});var XK=b.object({field:b.string(),direction:b.enum(["asc","desc"]),nullsFirst:b.boolean().optional()}),iT=b.object({limit:b.number().int().positive().optional(),offset:b.number().int().min(0).optional().default(0),sortFields:b.array(XK).optional(),filter:b.object({metadata:b.record(b.string(),b.unknown()).optional(),visibilityScope:b.enum(["public","shared","restricted"]).optional()}).optional(),publishedOnly:b.boolean().optional()});var DK={generateBodyTemplate:()=>""};class x4{entityType;schema;frontmatterSchema;isSingleton;hasBody;supportsCoverImage;fmSchema;bodyFormatter;constructor($){if(this.entityType=$.entityType,this.schema=$.schema,this.frontmatterSchema=$.frontmatterSchema,this.fmSchema=$.frontmatterSchema,this.bodyFormatter=$.bodyFormatter??DK,$.isSingleton!==void 0)this.isSingleton=$.isSingleton;if($.hasBody!==void 0)this.hasBody=$.hasBody;if($.supportsCoverImage!==void 0)this.supportsCoverImage=$.supportsCoverImage}toMarkdown($){let J=this.renderBody($),X={...this.readExistingFrontmatter($.content)},q=Object.keys(this.frontmatterSchema.shape);for(let[V,Y]of Object.entries($.metadata))if(q.includes(V))X[V]=Y;return this.buildMarkdown(J,X)}renderBody($){return this.extractBody($.content)}readExistingFrontmatter($){try{return h0($,b.record(b.unknown())).metadata}catch{return{}}}extractMetadata($){return $.metadata}parseFrontMatter($,J){return h0($,J).metadata}getBodyTemplate(){return this.bodyFormatter.generateBodyTemplate()}generateFrontMatter($){let J=$.metadata;return d5(J)}extractBody($){try{return h0($,b.record(b.unknown())).content}catch{return $}}parseFrontmatter($){return h0($,this.fmSchema).metadata}buildMarkdown($,J){return r5($,J)}}var o3=b.object({currentPage:b.number(),totalPages:b.number(),totalItems:b.number(),pageSize:b.number(),hasNextPage:b.boolean(),hasPrevPage:b.boolean()});function n3($,J,G){let X=Math.max(1,Math.ceil($/G));return{currentPage:J,totalPages:X,totalItems:$,pageSize:G,hasNextPage:J<X,hasPrevPage:J>1}}function a3($,J){let{page:G,limit:X,pageSize:q}=J;if(G!==void 0){let V=G,Y=q??X??$.length,W=$.length,H=Math.ceil(W/Y),U=(V-1)*Y,M=U+Y;return{items:$.slice(U,M),pagination:{currentPage:V,totalPages:H,totalItems:W,pageSize:Y,hasNextPage:V<H,hasPrevPage:V>1}}}if(X!==void 0)return{items:$.slice(0,X),pagination:null};return{items:$,pagination:null}}export{h0 as parseMarkdownWithFrontmatter,o3 as paginationInfoSchema,a3 as paginateItems,r5 as generateMarkdownWithFrontmatter,d5 as generateFrontmatter,n3 as buildPaginationInfo,p5 as baseEntitySchema,x4 as BaseEntityAdapter,c3 as BASE_ENTITY_TYPE};
|
|
120
120
|
|
|
121
|
-
//# debugId=
|
|
121
|
+
//# debugId=AFBB693E8A5C594564756E2164756E21
|
|
122
122
|
//# sourceMappingURL=entities.js.map
|