@rizom/brain 0.2.0-alpha.50 → 0.2.0-alpha.51

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/site.js CHANGED
@@ -1,70 +1,70 @@
1
1
  // @bun
2
- var HA=Object.create;var{getPrototypeOf:UA,defineProperty:i$,getOwnPropertyNames:KA}=Object;var FA=Object.prototype.hasOwnProperty;function MA($){return this[$]}var QA,qA,j8=($,X,G)=>{var Y=$!=null&&typeof $==="object";if(Y){var J=X?QA??=new WeakMap:qA??=new WeakMap,W=J.get($);if(W)return W}G=$!=null?HA(UA($)):{};let H=X||!$||!$.__esModule?i$(G,"default",{value:$,enumerable:!0}):G;for(let U of KA($))if(!FA.call(H,U))i$(H,U,{get:MA.bind($,U),enumerable:!0});if(Y)J.set($,H);return H};var d=($,X)=>()=>(X||$((X={exports:{}}).exports,X),X.exports);var OA=($)=>$;function RA($,X){this[$]=OA.bind(null,X)}var S8=($,X)=>{for(var G in X)i$($,G,{get:X[G],enumerable:!0,configurable:!0,set:RA.bind(X,G)})};var V=($,X)=>()=>($&&(X=$($=0)),X);var N5=import.meta.require;var F0,n$,v,e1=($)=>{switch(typeof $){case"undefined":return v.undefined;case"string":return v.string;case"number":return Number.isNaN($)?v.nan:v.number;case"boolean":return v.boolean;case"function":return v.function;case"bigint":return v.bigint;case"symbol":return v.symbol;case"object":if(Array.isArray($))return v.array;if($===null)return v.null;if($.then&&typeof $.then==="function"&&$.catch&&typeof $.catch==="function")return v.promise;if(typeof Map<"u"&&$ instanceof Map)return v.map;if(typeof Set<"u"&&$ instanceof Set)return v.set;if(typeof Date<"u"&&$ instanceof Date)return v.date;return v.object;default:return v.unknown}};var U4=V(()=>{(function($){$.assertEqual=(J)=>{};function X(J){}$.assertIs=X;function G(J){throw Error()}$.assertNever=G,$.arrayToEnum=(J)=>{let W={};for(let H of J)W[H]=H;return W},$.getValidEnumValues=(J)=>{let W=$.objectKeys(J).filter((U)=>typeof J[J[U]]!=="number"),H={};for(let U of W)H[U]=J[U];return $.objectValues(H)},$.objectValues=(J)=>{return $.objectKeys(J).map(function(W){return J[W]})},$.objectKeys=typeof Object.keys==="function"?(J)=>Object.keys(J):(J)=>{let W=[];for(let H in J)if(Object.prototype.hasOwnProperty.call(J,H))W.push(H);return W},$.find=(J,W)=>{for(let H of J)if(W(H))return H;return},$.isInteger=typeof Number.isInteger==="function"?(J)=>Number.isInteger(J):(J)=>typeof J==="number"&&Number.isFinite(J)&&Math.floor(J)===J;function Y(J,W=" | "){return J.map((H)=>typeof H==="string"?`'${H}'`:H).join(W)}$.joinValues=Y,$.jsonStringifyReplacer=(J,W)=>{if(typeof W==="bigint")return W.toString();return W}})(F0||(F0={}));(function($){$.mergeShapes=(X,G)=>{return{...X,...G}}})(n$||(n$={}));v=F0.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"])});var j,ZA=($)=>{return JSON.stringify($,null,2).replace(/"([^"]+)":/g,"$1:")},J1;var k8=V(()=>{U4();j=F0.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"]);J1=class J1 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 X=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,X);else this.__proto__=X;this.name="ZodError",this.issues=$}format($){let X=$||function(J){return J.message},G={_errors:[]},Y=(J)=>{for(let W of J.issues)if(W.code==="invalid_union")W.unionErrors.map(Y);else if(W.code==="invalid_return_type")Y(W.returnTypeError);else if(W.code==="invalid_arguments")Y(W.argumentsError);else if(W.path.length===0)G._errors.push(X(W));else{let H=G,U=0;while(U<W.path.length){let F=W.path[U];if(U!==W.path.length-1)H[F]=H[F]||{_errors:[]};else H[F]=H[F]||{_errors:[]},H[F]._errors.push(X(W));H=H[F],U++}}};return Y(this),G}static assert($){if(!($ instanceof J1))throw Error(`Not a ZodError: ${$}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,F0.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten($=(X)=>X.message){let X={},G=[];for(let Y of this.issues)if(Y.path.length>0){let J=Y.path[0];X[J]=X[J]||[],X[J].push($(Y))}else G.push($(Y));return{formErrors:G,fieldErrors:X}}get formErrors(){return this.flatten()}};J1.create=($)=>{return new J1($)}});var AA=($,X)=>{let G;switch($.code){case j.invalid_type:if($.received===v.undefined)G="Required";else G=`Expected ${$.expected}, received ${$.received}`;break;case j.invalid_literal:G=`Invalid literal value, expected ${JSON.stringify($.expected,F0.jsonStringifyReplacer)}`;break;case j.unrecognized_keys:G=`Unrecognized key(s) in object: ${F0.joinValues($.keys,", ")}`;break;case j.invalid_union:G="Invalid input";break;case j.invalid_union_discriminator:G=`Invalid discriminator value. Expected ${F0.joinValues($.options)}`;break;case j.invalid_enum_value:G=`Invalid enum value. Expected ${F0.joinValues($.options)}, received '${$.received}'`;break;case j.invalid_arguments:G="Invalid function arguments";break;case j.invalid_return_type:G="Invalid function return type";break;case j.invalid_date:G="Invalid date";break;case j.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 F0.assertNever($.validation);else if($.validation!=="regex")G=`Invalid ${$.validation}`;else G="Invalid";break;case j.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 j.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 j.custom:G="Invalid input";break;case j.invalid_intersection_types:G="Intersection results could not be merged";break;case j.not_multiple_of:G=`Number must be a multiple of ${$.multipleOf}`;break;case j.not_finite:G="Number must be finite";break;default:G=X.defaultError,F0.assertNever($)}return{message:G}},w5;var o$=V(()=>{k8();U4();w5=AA});function VA($){lY=$}function a2(){return lY}var lY;var v8=V(()=>{o$();lY=w5});function h($,X){let G=a2(),Y=K4({issueData:X,data:$.data,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,G,G===w5?void 0:w5].filter((J)=>!!J)});$.common.issues.push(Y)}class s0{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray($,X){let G=[];for(let Y of X){if(Y.status==="aborted")return l;if(Y.status==="dirty")$.dirty();G.push(Y.value)}return{status:$.value,value:G}}static async mergeObjectAsync($,X){let G=[];for(let Y of X){let J=await Y.key,W=await Y.value;G.push({key:J,value:W})}return s0.mergeObjectSync($,G)}static mergeObjectSync($,X){let G={};for(let Y of X){let{key:J,value:W}=Y;if(J.status==="aborted")return l;if(W.status==="aborted")return l;if(J.status==="dirty")$.dirty();if(W.status==="dirty")$.dirty();if(J.value!=="__proto__"&&(typeof W.value<"u"||Y.alwaysSet))G[J.value]=W.value}return{status:$.value,value:G}}}var K4=($)=>{let{data:X,path:G,errorMaps:Y,issueData:J}=$,W=[...G,...J.path||[]],H={...J,path:W};if(J.message!==void 0)return{...J,path:W,message:J.message};let U="",F=Y.filter((M)=>!!M).slice().reverse();for(let M of F)U=M(H,{data:X,defaultError:U}).message;return{...J,path:W,message:U}},BA,l,N2=($)=>({status:"dirty",value:$}),W1=($)=>({status:"valid",value:$}),x8=($)=>$.status==="aborted",b8=($)=>$.status==="dirty",h5=($)=>$.status==="valid",t2=($)=>typeof Promise<"u"&&$ instanceof Promise;var s$=V(()=>{v8();o$();BA=[];l=Object.freeze({status:"aborted"})});var cY=()=>{};var m;var rY=V(()=>{(function($){$.errToObj=(X)=>typeof X==="string"?{message:X}:X||{},$.toString=(X)=>typeof X==="string"?X:X?.message})(m||(m={}))});class r1{constructor($,X,G,Y){this._cachedPath=[],this.parent=$,this.data=X,this._path=G,this._key=Y}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}}function G0($){if(!$)return{};let{errorMap:X,invalid_type_error:G,required_error:Y,description:J}=$;if(X&&(G||Y))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(X)return{errorMap:X,description:J};return{errorMap:(H,U)=>{let{message:F}=$;if(H.code==="invalid_enum_value")return{message:F??U.defaultError};if(typeof U.data>"u")return{message:F??Y??U.defaultError};if(H.code!=="invalid_type")return{message:U.defaultError};return{message:F??G??U.defaultError}},description:J}}class H0{get description(){return this._def.description}_getType($){return e1($.data)}_getOrReturnCtx($,X){return X||{common:$.parent.common,data:$.data,parsedType:e1($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}_processInputParams($){return{status:new s0,ctx:{common:$.parent.common,data:$.data,parsedType:e1($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}}_parseSync($){let X=this._parse($);if(t2(X))throw Error("Synchronous parse encountered promise.");return X}_parseAsync($){let X=this._parse($);return Promise.resolve(X)}parse($,X){let G=this.safeParse($,X);if(G.success)return G.data;throw G.error}safeParse($,X){let G={common:{issues:[],async:X?.async??!1,contextualErrorMap:X?.errorMap},path:X?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:e1($)},Y=this._parseSync({data:$,path:G.path,parent:G});return iY(G,Y)}"~validate"($){let X={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:e1($)};if(!this["~standard"].async)try{let G=this._parseSync({data:$,path:[],parent:X});return h5(G)?{value:G.value}:{issues:X.common.issues}}catch(G){if(G?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;X.common={issues:[],async:!0}}return this._parseAsync({data:$,path:[],parent:X}).then((G)=>h5(G)?{value:G.value}:{issues:X.common.issues})}async parseAsync($,X){let G=await this.safeParseAsync($,X);if(G.success)return G.data;throw G.error}async safeParseAsync($,X){let G={common:{issues:[],contextualErrorMap:X?.errorMap,async:!0},path:X?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:e1($)},Y=this._parse({data:$,path:G.path,parent:G}),J=await(t2(Y)?Y:Promise.resolve(Y));return iY(G,J)}refine($,X){let G=(Y)=>{if(typeof X==="string"||typeof X>"u")return{message:X};else if(typeof X==="function")return X(Y);else return X};return this._refinement((Y,J)=>{let W=$(Y),H=()=>J.addIssue({code:j.custom,...G(Y)});if(typeof Promise<"u"&&W instanceof Promise)return W.then((U)=>{if(!U)return H(),!1;else return!0});if(!W)return H(),!1;else return!0})}refinement($,X){return this._refinement((G,Y)=>{if(!$(G))return Y.addIssue(typeof X==="function"?X(G,Y):X),!1;else return!0})}_refinement($){return new i1({schema:this,typeName:i.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:(X)=>this["~validate"](X)}}optional(){return c1.create(this,this._def)}nullable(){return z5.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return l1.create(this)}promise(){return D2.create(this,this._def)}or($){return J6.create([this,$],this._def)}and($){return W6.create(this,$,this._def)}transform($){return new i1({...G0(this._def),schema:this,typeName:i.ZodEffects,effect:{type:"transform",transform:$}})}default($){let X=typeof $==="function"?$:()=>$;return new F6({...G0(this._def),innerType:this,defaultValue:X,typeName:i.ZodDefault})}brand(){return new y8({typeName:i.ZodBranded,type:this,...G0(this._def)})}catch($){let X=typeof $==="function"?$:()=>$;return new M6({...G0(this._def),innerType:this,catchValue:X,typeName:i.ZodCatch})}describe($){return new this.constructor({...this._def,description:$})}pipe($){return R4.create(this,$)}readonly(){return Q6.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}function sY($){let X="[0-5]\\d";if($.precision)X=`${X}\\.\\d{${$.precision}}`;else if($.precision==null)X=`${X}(\\.\\d+)?`;let G=$.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${X})${G}`}function bA($){return new RegExp(`^${sY($)}$`)}function aY($){let X=`${oY}T${sY($)}`,G=[];if(G.push($.local?"Z?":"Z"),$.offset)G.push("([+-]\\d{2}:?\\d{2})");return X=`${X}(${G.join("|")})`,new RegExp(`^${X}$`)}function hA($,X){if((X==="v4"||!X)&&EA.test($))return!0;if((X==="v6"||!X)&&jA.test($))return!0;return!1}function yA($,X){if(!PA.test($))return!1;try{let[G]=$.split(".");if(!G)return!1;let Y=G.replace(/-/g,"+").replace(/_/g,"/").padEnd(G.length+(4-G.length%4)%4,"="),J=JSON.parse(atob(Y));if(typeof J!=="object"||J===null)return!1;if("typ"in J&&J?.typ!=="JWT")return!1;if(!J.alg)return!1;if(X&&J.alg!==X)return!1;return!0}catch{return!1}}function fA($,X){if((X==="v4"||!X)&&IA.test($))return!0;if((X==="v6"||!X)&&SA.test($))return!0;return!1}function gA($,X){let G=($.toString().split(".")[1]||"").length,Y=(X.toString().split(".")[1]||"").length,J=G>Y?G:Y,W=Number.parseInt($.toFixed(J).replace(".","")),H=Number.parseInt(X.toFixed(J).replace(".",""));return W%H/10**J}function e2($){if($ instanceof I0){let X={};for(let G in $.shape){let Y=$.shape[G];X[G]=c1.create(e2(Y))}return new I0({...$._def,shape:()=>X})}else if($ instanceof l1)return new l1({...$._def,type:e2($.element)});else if($ instanceof c1)return c1.create(e2($.unwrap()));else if($ instanceof z5)return z5.create(e2($.unwrap()));else if($ instanceof X5)return X5.create($.items.map((X)=>e2(X)));else return $}function t$($,X){let G=e1($),Y=e1(X);if($===X)return{valid:!0,data:$};else if(G===v.object&&Y===v.object){let J=F0.objectKeys(X),W=F0.objectKeys($).filter((U)=>J.indexOf(U)!==-1),H={...$,...X};for(let U of W){let F=t$($[U],X[U]);if(!F.valid)return{valid:!1};H[U]=F.data}return{valid:!0,data:H}}else if(G===v.array&&Y===v.array){if($.length!==X.length)return{valid:!1};let J=[];for(let W=0;W<$.length;W++){let H=$[W],U=X[W],F=t$(H,U);if(!F.valid)return{valid:!1};J.push(F.data)}return{valid:!0,data:J}}else if(G===v.date&&Y===v.date&&+$===+X)return{valid:!0,data:$};else return{valid:!1}}function tY($,X){return new m5({values:$,typeName:i.ZodEnum,...G0(X)})}function nY($,X){let G=typeof $==="function"?$(X):typeof $==="string"?{message:$}:$;return typeof G==="string"?{message:G}:G}function eY($,X={},G){if($)return _2.create().superRefine((Y,J)=>{let W=$(Y);if(W instanceof Promise)return W.then((H)=>{if(!H){let U=nY(X,Y),F=U.fatal??G??!0;J.addIssue({code:"custom",...U,fatal:F})}});if(!W){let H=nY(X,Y),U=H.fatal??G??!0;J.addIssue({code:"custom",...H,fatal:U})}return});return _2.create()}var iY=($,X)=>{if(h5(X))return{success:!0,data:X.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 J1($.common.issues);return this._error=G,this._error}}}},NA,wA,_A,zA,DA,PA,LA,CA,TA="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",a$,EA,IA,jA,SA,kA,vA,oY="((\\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])))",xA,d1,f5,g5,X6,w2,F4,G6,Y6,_2,y5,$5,M4,l1,I0,J6,_5=($)=>{if($ instanceof H6)return _5($.schema);else if($ instanceof i1)return _5($.innerType());else if($ instanceof U6)return[$.value];else if($ instanceof m5)return $.options;else if($ instanceof K6)return F0.objectValues($.enum);else if($ instanceof F6)return _5($._def.innerType);else if($ instanceof G6)return[void 0];else if($ instanceof Y6)return[null];else if($ instanceof c1)return[void 0,..._5($.unwrap())];else if($ instanceof z5)return[null,..._5($.unwrap())];else if($ instanceof y8)return _5($.unwrap());else if($ instanceof Q6)return _5($.unwrap());else if($ instanceof M6)return _5($._def.innerType);else return[]},h8,W6,X5,Q4,q4,z2,$6,H6,U6,m5,K6,D2,i1,c1,z5,F6,M6,O4,mA,y8,R4,Q6,pA,i,uA=($,X={message:`Input not instance of ${$.name}`})=>eY((G)=>G instanceof $,X),$J,XJ,dA,lA,GJ,cA,rA,iA,nA,oA,sA,aA,tA,eA,$V,XV,GV,YV,JV,WV,HV,UV,KV,FV,MV,QV,qV,OV,RV,ZV,AV,VV,BV,NV,wV=()=>$J().optional(),_V=()=>XJ().optional(),zV=()=>GJ().optional(),DV,PV;var YJ=V(()=>{k8();v8();rY();s$();U4();NA=/^c[^\s-]{8,}$/i,wA=/^[0-9a-z]+$/,_A=/^[0-9A-HJKMNP-TV-Z]{26}$/i,zA=/^[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,DA=/^[a-z0-9_-]{21}$/i,PA=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,LA=/^[-+]?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)?)??$/,CA=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,EA=/^(?:(?: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])$/,IA=/^(?:(?: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])$/,jA=/^(([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]))$/,SA=/^(([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])$/,kA=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,vA=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,xA=new RegExp(`^${oY}$`);d1=class d1 extends H0{_parse($){if(this._def.coerce)$.data=String($.data);if(this._getType($)!==v.string){let J=this._getOrReturnCtx($);return h(J,{code:j.invalid_type,expected:v.string,received:J.parsedType}),l}let G=new s0,Y=void 0;for(let J of this._def.checks)if(J.kind==="min"){if($.data.length<J.value)Y=this._getOrReturnCtx($,Y),h(Y,{code:j.too_small,minimum:J.value,type:"string",inclusive:!0,exact:!1,message:J.message}),G.dirty()}else if(J.kind==="max"){if($.data.length>J.value)Y=this._getOrReturnCtx($,Y),h(Y,{code:j.too_big,maximum:J.value,type:"string",inclusive:!0,exact:!1,message:J.message}),G.dirty()}else if(J.kind==="length"){let W=$.data.length>J.value,H=$.data.length<J.value;if(W||H){if(Y=this._getOrReturnCtx($,Y),W)h(Y,{code:j.too_big,maximum:J.value,type:"string",inclusive:!0,exact:!0,message:J.message});else if(H)h(Y,{code:j.too_small,minimum:J.value,type:"string",inclusive:!0,exact:!0,message:J.message});G.dirty()}}else if(J.kind==="email"){if(!CA.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"email",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="emoji"){if(!a$)a$=new RegExp(TA,"u");if(!a$.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"emoji",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="uuid"){if(!zA.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"uuid",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="nanoid"){if(!DA.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"nanoid",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="cuid"){if(!NA.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"cuid",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="cuid2"){if(!wA.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"cuid2",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="ulid"){if(!_A.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"ulid",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="url")try{new URL($.data)}catch{Y=this._getOrReturnCtx($,Y),h(Y,{validation:"url",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="regex"){if(J.regex.lastIndex=0,!J.regex.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"regex",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="trim")$.data=$.data.trim();else if(J.kind==="includes"){if(!$.data.includes(J.value,J.position))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:{includes:J.value,position:J.position},message:J.message}),G.dirty()}else if(J.kind==="toLowerCase")$.data=$.data.toLowerCase();else if(J.kind==="toUpperCase")$.data=$.data.toUpperCase();else if(J.kind==="startsWith"){if(!$.data.startsWith(J.value))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:{startsWith:J.value},message:J.message}),G.dirty()}else if(J.kind==="endsWith"){if(!$.data.endsWith(J.value))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:{endsWith:J.value},message:J.message}),G.dirty()}else if(J.kind==="datetime"){if(!aY(J).test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:"datetime",message:J.message}),G.dirty()}else if(J.kind==="date"){if(!xA.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:"date",message:J.message}),G.dirty()}else if(J.kind==="time"){if(!bA(J).test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:"time",message:J.message}),G.dirty()}else if(J.kind==="duration"){if(!LA.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"duration",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="ip"){if(!hA($.data,J.version))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"ip",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="jwt"){if(!yA($.data,J.alg))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"jwt",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="cidr"){if(!fA($.data,J.version))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"cidr",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="base64"){if(!kA.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"base64",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="base64url"){if(!vA.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"base64url",code:j.invalid_string,message:J.message}),G.dirty()}else F0.assertNever(J);return{status:G.value,value:$.data}}_regex($,X,G){return this.refinement((Y)=>$.test(Y),{validation:X,code:j.invalid_string,...m.errToObj(G)})}_addCheck($){return new d1({...this._def,checks:[...this._def.checks,$]})}email($){return this._addCheck({kind:"email",...m.errToObj($)})}url($){return this._addCheck({kind:"url",...m.errToObj($)})}emoji($){return this._addCheck({kind:"emoji",...m.errToObj($)})}uuid($){return this._addCheck({kind:"uuid",...m.errToObj($)})}nanoid($){return this._addCheck({kind:"nanoid",...m.errToObj($)})}cuid($){return this._addCheck({kind:"cuid",...m.errToObj($)})}cuid2($){return this._addCheck({kind:"cuid2",...m.errToObj($)})}ulid($){return this._addCheck({kind:"ulid",...m.errToObj($)})}base64($){return this._addCheck({kind:"base64",...m.errToObj($)})}base64url($){return this._addCheck({kind:"base64url",...m.errToObj($)})}jwt($){return this._addCheck({kind:"jwt",...m.errToObj($)})}ip($){return this._addCheck({kind:"ip",...m.errToObj($)})}cidr($){return this._addCheck({kind:"cidr",...m.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,...m.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,...m.errToObj($?.message)})}duration($){return this._addCheck({kind:"duration",...m.errToObj($)})}regex($,X){return this._addCheck({kind:"regex",regex:$,...m.errToObj(X)})}includes($,X){return this._addCheck({kind:"includes",value:$,position:X?.position,...m.errToObj(X?.message)})}startsWith($,X){return this._addCheck({kind:"startsWith",value:$,...m.errToObj(X)})}endsWith($,X){return this._addCheck({kind:"endsWith",value:$,...m.errToObj(X)})}min($,X){return this._addCheck({kind:"min",value:$,...m.errToObj(X)})}max($,X){return this._addCheck({kind:"max",value:$,...m.errToObj(X)})}length($,X){return this._addCheck({kind:"length",value:$,...m.errToObj(X)})}nonempty($){return this.min(1,m.errToObj($))}trim(){return new d1({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new d1({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new d1({...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 X of this._def.checks)if(X.kind==="min"){if($===null||X.value>$)$=X.value}return $}get maxLength(){let $=null;for(let X of this._def.checks)if(X.kind==="max"){if($===null||X.value<$)$=X.value}return $}};d1.create=($)=>{return new d1({checks:[],typeName:i.ZodString,coerce:$?.coerce??!1,...G0($)})};f5=class f5 extends H0{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($)!==v.number){let J=this._getOrReturnCtx($);return h(J,{code:j.invalid_type,expected:v.number,received:J.parsedType}),l}let G=void 0,Y=new s0;for(let J of this._def.checks)if(J.kind==="int"){if(!F0.isInteger($.data))G=this._getOrReturnCtx($,G),h(G,{code:j.invalid_type,expected:"integer",received:"float",message:J.message}),Y.dirty()}else if(J.kind==="min"){if(J.inclusive?$.data<J.value:$.data<=J.value)G=this._getOrReturnCtx($,G),h(G,{code:j.too_small,minimum:J.value,type:"number",inclusive:J.inclusive,exact:!1,message:J.message}),Y.dirty()}else if(J.kind==="max"){if(J.inclusive?$.data>J.value:$.data>=J.value)G=this._getOrReturnCtx($,G),h(G,{code:j.too_big,maximum:J.value,type:"number",inclusive:J.inclusive,exact:!1,message:J.message}),Y.dirty()}else if(J.kind==="multipleOf"){if(gA($.data,J.value)!==0)G=this._getOrReturnCtx($,G),h(G,{code:j.not_multiple_of,multipleOf:J.value,message:J.message}),Y.dirty()}else if(J.kind==="finite"){if(!Number.isFinite($.data))G=this._getOrReturnCtx($,G),h(G,{code:j.not_finite,message:J.message}),Y.dirty()}else F0.assertNever(J);return{status:Y.value,value:$.data}}gte($,X){return this.setLimit("min",$,!0,m.toString(X))}gt($,X){return this.setLimit("min",$,!1,m.toString(X))}lte($,X){return this.setLimit("max",$,!0,m.toString(X))}lt($,X){return this.setLimit("max",$,!1,m.toString(X))}setLimit($,X,G,Y){return new f5({...this._def,checks:[...this._def.checks,{kind:$,value:X,inclusive:G,message:m.toString(Y)}]})}_addCheck($){return new f5({...this._def,checks:[...this._def.checks,$]})}int($){return this._addCheck({kind:"int",message:m.toString($)})}positive($){return this._addCheck({kind:"min",value:0,inclusive:!1,message:m.toString($)})}negative($){return this._addCheck({kind:"max",value:0,inclusive:!1,message:m.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:0,inclusive:!0,message:m.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:0,inclusive:!0,message:m.toString($)})}multipleOf($,X){return this._addCheck({kind:"multipleOf",value:$,message:m.toString(X)})}finite($){return this._addCheck({kind:"finite",message:m.toString($)})}safe($){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:m.toString($)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:m.toString($)})}get minValue(){let $=null;for(let X of this._def.checks)if(X.kind==="min"){if($===null||X.value>$)$=X.value}return $}get maxValue(){let $=null;for(let X of this._def.checks)if(X.kind==="max"){if($===null||X.value<$)$=X.value}return $}get isInt(){return!!this._def.checks.find(($)=>$.kind==="int"||$.kind==="multipleOf"&&F0.isInteger($.value))}get isFinite(){let $=null,X=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(X===null||G.value>X)X=G.value}else if(G.kind==="max"){if($===null||G.value<$)$=G.value}return Number.isFinite(X)&&Number.isFinite($)}};f5.create=($)=>{return new f5({checks:[],typeName:i.ZodNumber,coerce:$?.coerce||!1,...G0($)})};g5=class g5 extends H0{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($)!==v.bigint)return this._getInvalidInput($);let G=void 0,Y=new s0;for(let J of this._def.checks)if(J.kind==="min"){if(J.inclusive?$.data<J.value:$.data<=J.value)G=this._getOrReturnCtx($,G),h(G,{code:j.too_small,type:"bigint",minimum:J.value,inclusive:J.inclusive,message:J.message}),Y.dirty()}else if(J.kind==="max"){if(J.inclusive?$.data>J.value:$.data>=J.value)G=this._getOrReturnCtx($,G),h(G,{code:j.too_big,type:"bigint",maximum:J.value,inclusive:J.inclusive,message:J.message}),Y.dirty()}else if(J.kind==="multipleOf"){if($.data%J.value!==BigInt(0))G=this._getOrReturnCtx($,G),h(G,{code:j.not_multiple_of,multipleOf:J.value,message:J.message}),Y.dirty()}else F0.assertNever(J);return{status:Y.value,value:$.data}}_getInvalidInput($){let X=this._getOrReturnCtx($);return h(X,{code:j.invalid_type,expected:v.bigint,received:X.parsedType}),l}gte($,X){return this.setLimit("min",$,!0,m.toString(X))}gt($,X){return this.setLimit("min",$,!1,m.toString(X))}lte($,X){return this.setLimit("max",$,!0,m.toString(X))}lt($,X){return this.setLimit("max",$,!1,m.toString(X))}setLimit($,X,G,Y){return new g5({...this._def,checks:[...this._def.checks,{kind:$,value:X,inclusive:G,message:m.toString(Y)}]})}_addCheck($){return new g5({...this._def,checks:[...this._def.checks,$]})}positive($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:m.toString($)})}negative($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:m.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:m.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:m.toString($)})}multipleOf($,X){return this._addCheck({kind:"multipleOf",value:$,message:m.toString(X)})}get minValue(){let $=null;for(let X of this._def.checks)if(X.kind==="min"){if($===null||X.value>$)$=X.value}return $}get maxValue(){let $=null;for(let X of this._def.checks)if(X.kind==="max"){if($===null||X.value<$)$=X.value}return $}};g5.create=($)=>{return new g5({checks:[],typeName:i.ZodBigInt,coerce:$?.coerce??!1,...G0($)})};X6=class X6 extends H0{_parse($){if(this._def.coerce)$.data=Boolean($.data);if(this._getType($)!==v.boolean){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.boolean,received:G.parsedType}),l}return W1($.data)}};X6.create=($)=>{return new X6({typeName:i.ZodBoolean,coerce:$?.coerce||!1,...G0($)})};w2=class w2 extends H0{_parse($){if(this._def.coerce)$.data=new Date($.data);if(this._getType($)!==v.date){let J=this._getOrReturnCtx($);return h(J,{code:j.invalid_type,expected:v.date,received:J.parsedType}),l}if(Number.isNaN($.data.getTime())){let J=this._getOrReturnCtx($);return h(J,{code:j.invalid_date}),l}let G=new s0,Y=void 0;for(let J of this._def.checks)if(J.kind==="min"){if($.data.getTime()<J.value)Y=this._getOrReturnCtx($,Y),h(Y,{code:j.too_small,message:J.message,inclusive:!0,exact:!1,minimum:J.value,type:"date"}),G.dirty()}else if(J.kind==="max"){if($.data.getTime()>J.value)Y=this._getOrReturnCtx($,Y),h(Y,{code:j.too_big,message:J.message,inclusive:!0,exact:!1,maximum:J.value,type:"date"}),G.dirty()}else F0.assertNever(J);return{status:G.value,value:new Date($.data.getTime())}}_addCheck($){return new w2({...this._def,checks:[...this._def.checks,$]})}min($,X){return this._addCheck({kind:"min",value:$.getTime(),message:m.toString(X)})}max($,X){return this._addCheck({kind:"max",value:$.getTime(),message:m.toString(X)})}get minDate(){let $=null;for(let X of this._def.checks)if(X.kind==="min"){if($===null||X.value>$)$=X.value}return $!=null?new Date($):null}get maxDate(){let $=null;for(let X of this._def.checks)if(X.kind==="max"){if($===null||X.value<$)$=X.value}return $!=null?new Date($):null}};w2.create=($)=>{return new w2({checks:[],coerce:$?.coerce||!1,typeName:i.ZodDate,...G0($)})};F4=class F4 extends H0{_parse($){if(this._getType($)!==v.symbol){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.symbol,received:G.parsedType}),l}return W1($.data)}};F4.create=($)=>{return new F4({typeName:i.ZodSymbol,...G0($)})};G6=class G6 extends H0{_parse($){if(this._getType($)!==v.undefined){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.undefined,received:G.parsedType}),l}return W1($.data)}};G6.create=($)=>{return new G6({typeName:i.ZodUndefined,...G0($)})};Y6=class Y6 extends H0{_parse($){if(this._getType($)!==v.null){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.null,received:G.parsedType}),l}return W1($.data)}};Y6.create=($)=>{return new Y6({typeName:i.ZodNull,...G0($)})};_2=class _2 extends H0{constructor(){super(...arguments);this._any=!0}_parse($){return W1($.data)}};_2.create=($)=>{return new _2({typeName:i.ZodAny,...G0($)})};y5=class y5 extends H0{constructor(){super(...arguments);this._unknown=!0}_parse($){return W1($.data)}};y5.create=($)=>{return new y5({typeName:i.ZodUnknown,...G0($)})};$5=class $5 extends H0{_parse($){let X=this._getOrReturnCtx($);return h(X,{code:j.invalid_type,expected:v.never,received:X.parsedType}),l}};$5.create=($)=>{return new $5({typeName:i.ZodNever,...G0($)})};M4=class M4 extends H0{_parse($){if(this._getType($)!==v.undefined){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.void,received:G.parsedType}),l}return W1($.data)}};M4.create=($)=>{return new M4({typeName:i.ZodVoid,...G0($)})};l1=class l1 extends H0{_parse($){let{ctx:X,status:G}=this._processInputParams($),Y=this._def;if(X.parsedType!==v.array)return h(X,{code:j.invalid_type,expected:v.array,received:X.parsedType}),l;if(Y.exactLength!==null){let W=X.data.length>Y.exactLength.value,H=X.data.length<Y.exactLength.value;if(W||H)h(X,{code:W?j.too_big:j.too_small,minimum:H?Y.exactLength.value:void 0,maximum:W?Y.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:Y.exactLength.message}),G.dirty()}if(Y.minLength!==null){if(X.data.length<Y.minLength.value)h(X,{code:j.too_small,minimum:Y.minLength.value,type:"array",inclusive:!0,exact:!1,message:Y.minLength.message}),G.dirty()}if(Y.maxLength!==null){if(X.data.length>Y.maxLength.value)h(X,{code:j.too_big,maximum:Y.maxLength.value,type:"array",inclusive:!0,exact:!1,message:Y.maxLength.message}),G.dirty()}if(X.common.async)return Promise.all([...X.data].map((W,H)=>{return Y.type._parseAsync(new r1(X,W,X.path,H))})).then((W)=>{return s0.mergeArray(G,W)});let J=[...X.data].map((W,H)=>{return Y.type._parseSync(new r1(X,W,X.path,H))});return s0.mergeArray(G,J)}get element(){return this._def.type}min($,X){return new l1({...this._def,minLength:{value:$,message:m.toString(X)}})}max($,X){return new l1({...this._def,maxLength:{value:$,message:m.toString(X)}})}length($,X){return new l1({...this._def,exactLength:{value:$,message:m.toString(X)}})}nonempty($){return this.min(1,$)}};l1.create=($,X)=>{return new l1({type:$,minLength:null,maxLength:null,exactLength:null,typeName:i.ZodArray,...G0(X)})};I0=class I0 extends H0{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(),X=F0.objectKeys($);return this._cached={shape:$,keys:X},this._cached}_parse($){if(this._getType($)!==v.object){let F=this._getOrReturnCtx($);return h(F,{code:j.invalid_type,expected:v.object,received:F.parsedType}),l}let{status:G,ctx:Y}=this._processInputParams($),{shape:J,keys:W}=this._getCached(),H=[];if(!(this._def.catchall instanceof $5&&this._def.unknownKeys==="strip")){for(let F in Y.data)if(!W.includes(F))H.push(F)}let U=[];for(let F of W){let M=J[F],Q=Y.data[F];U.push({key:{status:"valid",value:F},value:M._parse(new r1(Y,Q,Y.path,F)),alwaysSet:F in Y.data})}if(this._def.catchall instanceof $5){let F=this._def.unknownKeys;if(F==="passthrough")for(let M of H)U.push({key:{status:"valid",value:M},value:{status:"valid",value:Y.data[M]}});else if(F==="strict"){if(H.length>0)h(Y,{code:j.unrecognized_keys,keys:H}),G.dirty()}else if(F==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let F=this._def.catchall;for(let M of H){let Q=Y.data[M];U.push({key:{status:"valid",value:M},value:F._parse(new r1(Y,Q,Y.path,M)),alwaysSet:M in Y.data})}}if(Y.common.async)return Promise.resolve().then(async()=>{let F=[];for(let M of U){let Q=await M.key,q=await M.value;F.push({key:Q,value:q,alwaysSet:M.alwaysSet})}return F}).then((F)=>{return s0.mergeObjectSync(G,F)});else return s0.mergeObjectSync(G,U)}get shape(){return this._def.shape()}strict($){return m.errToObj,new I0({...this._def,unknownKeys:"strict",...$!==void 0?{errorMap:(X,G)=>{let Y=this._def.errorMap?.(X,G).message??G.defaultError;if(X.code==="unrecognized_keys")return{message:m.errToObj($).message??Y};return{message:Y}}}:{}})}strip(){return new I0({...this._def,unknownKeys:"strip"})}passthrough(){return new I0({...this._def,unknownKeys:"passthrough"})}extend($){return new I0({...this._def,shape:()=>({...this._def.shape(),...$})})}merge($){return new I0({unknownKeys:$._def.unknownKeys,catchall:$._def.catchall,shape:()=>({...this._def.shape(),...$._def.shape()}),typeName:i.ZodObject})}setKey($,X){return this.augment({[$]:X})}catchall($){return new I0({...this._def,catchall:$})}pick($){let X={};for(let G of F0.objectKeys($))if($[G]&&this.shape[G])X[G]=this.shape[G];return new I0({...this._def,shape:()=>X})}omit($){let X={};for(let G of F0.objectKeys(this.shape))if(!$[G])X[G]=this.shape[G];return new I0({...this._def,shape:()=>X})}deepPartial(){return e2(this)}partial($){let X={};for(let G of F0.objectKeys(this.shape)){let Y=this.shape[G];if($&&!$[G])X[G]=Y;else X[G]=Y.optional()}return new I0({...this._def,shape:()=>X})}required($){let X={};for(let G of F0.objectKeys(this.shape))if($&&!$[G])X[G]=this.shape[G];else{let J=this.shape[G];while(J instanceof c1)J=J._def.innerType;X[G]=J}return new I0({...this._def,shape:()=>X})}keyof(){return tY(F0.objectKeys(this.shape))}};I0.create=($,X)=>{return new I0({shape:()=>$,unknownKeys:"strip",catchall:$5.create(),typeName:i.ZodObject,...G0(X)})};I0.strictCreate=($,X)=>{return new I0({shape:()=>$,unknownKeys:"strict",catchall:$5.create(),typeName:i.ZodObject,...G0(X)})};I0.lazycreate=($,X)=>{return new I0({shape:$,unknownKeys:"strip",catchall:$5.create(),typeName:i.ZodObject,...G0(X)})};J6=class J6 extends H0{_parse($){let{ctx:X}=this._processInputParams($),G=this._def.options;function Y(J){for(let H of J)if(H.result.status==="valid")return H.result;for(let H of J)if(H.result.status==="dirty")return X.common.issues.push(...H.ctx.common.issues),H.result;let W=J.map((H)=>new J1(H.ctx.common.issues));return h(X,{code:j.invalid_union,unionErrors:W}),l}if(X.common.async)return Promise.all(G.map(async(J)=>{let W={...X,common:{...X.common,issues:[]},parent:null};return{result:await J._parseAsync({data:X.data,path:X.path,parent:W}),ctx:W}})).then(Y);else{let J=void 0,W=[];for(let U of G){let F={...X,common:{...X.common,issues:[]},parent:null},M=U._parseSync({data:X.data,path:X.path,parent:F});if(M.status==="valid")return M;else if(M.status==="dirty"&&!J)J={result:M,ctx:F};if(F.common.issues.length)W.push(F.common.issues)}if(J)return X.common.issues.push(...J.ctx.common.issues),J.result;let H=W.map((U)=>new J1(U));return h(X,{code:j.invalid_union,unionErrors:H}),l}}get options(){return this._def.options}};J6.create=($,X)=>{return new J6({options:$,typeName:i.ZodUnion,...G0(X)})};h8=class h8 extends H0{_parse($){let{ctx:X}=this._processInputParams($);if(X.parsedType!==v.object)return h(X,{code:j.invalid_type,expected:v.object,received:X.parsedType}),l;let G=this.discriminator,Y=X.data[G],J=this.optionsMap.get(Y);if(!J)return h(X,{code:j.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[G]}),l;if(X.common.async)return J._parseAsync({data:X.data,path:X.path,parent:X});else return J._parseSync({data:X.data,path:X.path,parent:X})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create($,X,G){let Y=new Map;for(let J of X){let W=_5(J.shape[$]);if(!W.length)throw Error(`A discriminator value for key \`${$}\` could not be extracted from all schema options`);for(let H of W){if(Y.has(H))throw Error(`Discriminator property ${String($)} has duplicate value ${String(H)}`);Y.set(H,J)}}return new h8({typeName:i.ZodDiscriminatedUnion,discriminator:$,options:X,optionsMap:Y,...G0(G)})}};W6=class W6 extends H0{_parse($){let{status:X,ctx:G}=this._processInputParams($),Y=(J,W)=>{if(x8(J)||x8(W))return l;let H=t$(J.value,W.value);if(!H.valid)return h(G,{code:j.invalid_intersection_types}),l;if(b8(J)||b8(W))X.dirty();return{status:X.value,value:H.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(([J,W])=>Y(J,W));else return Y(this._def.left._parseSync({data:G.data,path:G.path,parent:G}),this._def.right._parseSync({data:G.data,path:G.path,parent:G}))}};W6.create=($,X,G)=>{return new W6({left:$,right:X,typeName:i.ZodIntersection,...G0(G)})};X5=class X5 extends H0{_parse($){let{status:X,ctx:G}=this._processInputParams($);if(G.parsedType!==v.array)return h(G,{code:j.invalid_type,expected:v.array,received:G.parsedType}),l;if(G.data.length<this._def.items.length)return h(G,{code:j.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),l;if(!this._def.rest&&G.data.length>this._def.items.length)h(G,{code:j.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),X.dirty();let J=[...G.data].map((W,H)=>{let U=this._def.items[H]||this._def.rest;if(!U)return null;return U._parse(new r1(G,W,G.path,H))}).filter((W)=>!!W);if(G.common.async)return Promise.all(J).then((W)=>{return s0.mergeArray(X,W)});else return s0.mergeArray(X,J)}get items(){return this._def.items}rest($){return new X5({...this._def,rest:$})}};X5.create=($,X)=>{if(!Array.isArray($))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new X5({items:$,typeName:i.ZodTuple,rest:null,...G0(X)})};Q4=class Q4 extends H0{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:X,ctx:G}=this._processInputParams($);if(G.parsedType!==v.object)return h(G,{code:j.invalid_type,expected:v.object,received:G.parsedType}),l;let Y=[],J=this._def.keyType,W=this._def.valueType;for(let H in G.data)Y.push({key:J._parse(new r1(G,H,G.path,H)),value:W._parse(new r1(G,G.data[H],G.path,H)),alwaysSet:H in G.data});if(G.common.async)return s0.mergeObjectAsync(X,Y);else return s0.mergeObjectSync(X,Y)}get element(){return this._def.valueType}static create($,X,G){if(X instanceof H0)return new Q4({keyType:$,valueType:X,typeName:i.ZodRecord,...G0(G)});return new Q4({keyType:d1.create(),valueType:$,typeName:i.ZodRecord,...G0(X)})}};q4=class q4 extends H0{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:X,ctx:G}=this._processInputParams($);if(G.parsedType!==v.map)return h(G,{code:j.invalid_type,expected:v.map,received:G.parsedType}),l;let Y=this._def.keyType,J=this._def.valueType,W=[...G.data.entries()].map(([H,U],F)=>{return{key:Y._parse(new r1(G,H,G.path,[F,"key"])),value:J._parse(new r1(G,U,G.path,[F,"value"]))}});if(G.common.async){let H=new Map;return Promise.resolve().then(async()=>{for(let U of W){let F=await U.key,M=await U.value;if(F.status==="aborted"||M.status==="aborted")return l;if(F.status==="dirty"||M.status==="dirty")X.dirty();H.set(F.value,M.value)}return{status:X.value,value:H}})}else{let H=new Map;for(let U of W){let{key:F,value:M}=U;if(F.status==="aborted"||M.status==="aborted")return l;if(F.status==="dirty"||M.status==="dirty")X.dirty();H.set(F.value,M.value)}return{status:X.value,value:H}}}};q4.create=($,X,G)=>{return new q4({valueType:X,keyType:$,typeName:i.ZodMap,...G0(G)})};z2=class z2 extends H0{_parse($){let{status:X,ctx:G}=this._processInputParams($);if(G.parsedType!==v.set)return h(G,{code:j.invalid_type,expected:v.set,received:G.parsedType}),l;let Y=this._def;if(Y.minSize!==null){if(G.data.size<Y.minSize.value)h(G,{code:j.too_small,minimum:Y.minSize.value,type:"set",inclusive:!0,exact:!1,message:Y.minSize.message}),X.dirty()}if(Y.maxSize!==null){if(G.data.size>Y.maxSize.value)h(G,{code:j.too_big,maximum:Y.maxSize.value,type:"set",inclusive:!0,exact:!1,message:Y.maxSize.message}),X.dirty()}let J=this._def.valueType;function W(U){let F=new Set;for(let M of U){if(M.status==="aborted")return l;if(M.status==="dirty")X.dirty();F.add(M.value)}return{status:X.value,value:F}}let H=[...G.data.values()].map((U,F)=>J._parse(new r1(G,U,G.path,F)));if(G.common.async)return Promise.all(H).then((U)=>W(U));else return W(H)}min($,X){return new z2({...this._def,minSize:{value:$,message:m.toString(X)}})}max($,X){return new z2({...this._def,maxSize:{value:$,message:m.toString(X)}})}size($,X){return this.min($,X).max($,X)}nonempty($){return this.min(1,$)}};z2.create=($,X)=>{return new z2({valueType:$,minSize:null,maxSize:null,typeName:i.ZodSet,...G0(X)})};$6=class $6 extends H0{constructor(){super(...arguments);this.validate=this.implement}_parse($){let{ctx:X}=this._processInputParams($);if(X.parsedType!==v.function)return h(X,{code:j.invalid_type,expected:v.function,received:X.parsedType}),l;function G(H,U){return K4({data:H,path:X.path,errorMaps:[X.common.contextualErrorMap,X.schemaErrorMap,a2(),w5].filter((F)=>!!F),issueData:{code:j.invalid_arguments,argumentsError:U}})}function Y(H,U){return K4({data:H,path:X.path,errorMaps:[X.common.contextualErrorMap,X.schemaErrorMap,a2(),w5].filter((F)=>!!F),issueData:{code:j.invalid_return_type,returnTypeError:U}})}let J={errorMap:X.common.contextualErrorMap},W=X.data;if(this._def.returns instanceof D2){let H=this;return W1(async function(...U){let F=new J1([]),M=await H._def.args.parseAsync(U,J).catch((Z)=>{throw F.addIssue(G(U,Z)),F}),Q=await Reflect.apply(W,this,M);return await H._def.returns._def.type.parseAsync(Q,J).catch((Z)=>{throw F.addIssue(Y(Q,Z)),F})})}else{let H=this;return W1(function(...U){let F=H._def.args.safeParse(U,J);if(!F.success)throw new J1([G(U,F.error)]);let M=Reflect.apply(W,this,F.data),Q=H._def.returns.safeParse(M,J);if(!Q.success)throw new J1([Y(M,Q.error)]);return Q.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...$){return new $6({...this._def,args:X5.create($).rest(y5.create())})}returns($){return new $6({...this._def,returns:$})}implement($){return this.parse($)}strictImplement($){return this.parse($)}static create($,X,G){return new $6({args:$?$:X5.create([]).rest(y5.create()),returns:X||y5.create(),typeName:i.ZodFunction,...G0(G)})}};H6=class H6 extends H0{get schema(){return this._def.getter()}_parse($){let{ctx:X}=this._processInputParams($);return this._def.getter()._parse({data:X.data,path:X.path,parent:X})}};H6.create=($,X)=>{return new H6({getter:$,typeName:i.ZodLazy,...G0(X)})};U6=class U6 extends H0{_parse($){if($.data!==this._def.value){let X=this._getOrReturnCtx($);return h(X,{received:X.data,code:j.invalid_literal,expected:this._def.value}),l}return{status:"valid",value:$.data}}get value(){return this._def.value}};U6.create=($,X)=>{return new U6({value:$,typeName:i.ZodLiteral,...G0(X)})};m5=class m5 extends H0{_parse($){if(typeof $.data!=="string"){let X=this._getOrReturnCtx($),G=this._def.values;return h(X,{expected:F0.joinValues(G),received:X.parsedType,code:j.invalid_type}),l}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has($.data)){let X=this._getOrReturnCtx($),G=this._def.values;return h(X,{received:X.data,code:j.invalid_enum_value,options:G}),l}return W1($.data)}get options(){return this._def.values}get enum(){let $={};for(let X of this._def.values)$[X]=X;return $}get Values(){let $={};for(let X of this._def.values)$[X]=X;return $}get Enum(){let $={};for(let X of this._def.values)$[X]=X;return $}extract($,X=this._def){return m5.create($,{...this._def,...X})}exclude($,X=this._def){return m5.create(this.options.filter((G)=>!$.includes(G)),{...this._def,...X})}};m5.create=tY;K6=class K6 extends H0{_parse($){let X=F0.getValidEnumValues(this._def.values),G=this._getOrReturnCtx($);if(G.parsedType!==v.string&&G.parsedType!==v.number){let Y=F0.objectValues(X);return h(G,{expected:F0.joinValues(Y),received:G.parsedType,code:j.invalid_type}),l}if(!this._cache)this._cache=new Set(F0.getValidEnumValues(this._def.values));if(!this._cache.has($.data)){let Y=F0.objectValues(X);return h(G,{received:G.data,code:j.invalid_enum_value,options:Y}),l}return W1($.data)}get enum(){return this._def.values}};K6.create=($,X)=>{return new K6({values:$,typeName:i.ZodNativeEnum,...G0(X)})};D2=class D2 extends H0{unwrap(){return this._def.type}_parse($){let{ctx:X}=this._processInputParams($);if(X.parsedType!==v.promise&&X.common.async===!1)return h(X,{code:j.invalid_type,expected:v.promise,received:X.parsedType}),l;let G=X.parsedType===v.promise?X.data:Promise.resolve(X.data);return W1(G.then((Y)=>{return this._def.type.parseAsync(Y,{path:X.path,errorMap:X.common.contextualErrorMap})}))}};D2.create=($,X)=>{return new D2({type:$,typeName:i.ZodPromise,...G0(X)})};i1=class i1 extends H0{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===i.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse($){let{status:X,ctx:G}=this._processInputParams($),Y=this._def.effect||null,J={addIssue:(W)=>{if(h(G,W),W.fatal)X.abort();else X.dirty()},get path(){return G.path}};if(J.addIssue=J.addIssue.bind(J),Y.type==="preprocess"){let W=Y.transform(G.data,J);if(G.common.async)return Promise.resolve(W).then(async(H)=>{if(X.value==="aborted")return l;let U=await this._def.schema._parseAsync({data:H,path:G.path,parent:G});if(U.status==="aborted")return l;if(U.status==="dirty")return N2(U.value);if(X.value==="dirty")return N2(U.value);return U});else{if(X.value==="aborted")return l;let H=this._def.schema._parseSync({data:W,path:G.path,parent:G});if(H.status==="aborted")return l;if(H.status==="dirty")return N2(H.value);if(X.value==="dirty")return N2(H.value);return H}}if(Y.type==="refinement"){let W=(H)=>{let U=Y.refinement(H,J);if(G.common.async)return Promise.resolve(U);if(U instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return H};if(G.common.async===!1){let H=this._def.schema._parseSync({data:G.data,path:G.path,parent:G});if(H.status==="aborted")return l;if(H.status==="dirty")X.dirty();return W(H.value),{status:X.value,value:H.value}}else return this._def.schema._parseAsync({data:G.data,path:G.path,parent:G}).then((H)=>{if(H.status==="aborted")return l;if(H.status==="dirty")X.dirty();return W(H.value).then(()=>{return{status:X.value,value:H.value}})})}if(Y.type==="transform")if(G.common.async===!1){let W=this._def.schema._parseSync({data:G.data,path:G.path,parent:G});if(!h5(W))return l;let H=Y.transform(W.value,J);if(H instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:X.value,value:H}}else return this._def.schema._parseAsync({data:G.data,path:G.path,parent:G}).then((W)=>{if(!h5(W))return l;return Promise.resolve(Y.transform(W.value,J)).then((H)=>({status:X.value,value:H}))});F0.assertNever(Y)}};i1.create=($,X,G)=>{return new i1({schema:$,typeName:i.ZodEffects,effect:X,...G0(G)})};i1.createWithPreprocess=($,X,G)=>{return new i1({schema:X,effect:{type:"preprocess",transform:$},typeName:i.ZodEffects,...G0(G)})};c1=class c1 extends H0{_parse($){if(this._getType($)===v.undefined)return W1(void 0);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}};c1.create=($,X)=>{return new c1({innerType:$,typeName:i.ZodOptional,...G0(X)})};z5=class z5 extends H0{_parse($){if(this._getType($)===v.null)return W1(null);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}};z5.create=($,X)=>{return new z5({innerType:$,typeName:i.ZodNullable,...G0(X)})};F6=class F6 extends H0{_parse($){let{ctx:X}=this._processInputParams($),G=X.data;if(X.parsedType===v.undefined)G=this._def.defaultValue();return this._def.innerType._parse({data:G,path:X.path,parent:X})}removeDefault(){return this._def.innerType}};F6.create=($,X)=>{return new F6({innerType:$,typeName:i.ZodDefault,defaultValue:typeof X.default==="function"?X.default:()=>X.default,...G0(X)})};M6=class M6 extends H0{_parse($){let{ctx:X}=this._processInputParams($),G={...X,common:{...X.common,issues:[]}},Y=this._def.innerType._parse({data:G.data,path:G.path,parent:{...G}});if(t2(Y))return Y.then((J)=>{return{status:"valid",value:J.status==="valid"?J.value:this._def.catchValue({get error(){return new J1(G.common.issues)},input:G.data})}});else return{status:"valid",value:Y.status==="valid"?Y.value:this._def.catchValue({get error(){return new J1(G.common.issues)},input:G.data})}}removeCatch(){return this._def.innerType}};M6.create=($,X)=>{return new M6({innerType:$,typeName:i.ZodCatch,catchValue:typeof X.catch==="function"?X.catch:()=>X.catch,...G0(X)})};O4=class O4 extends H0{_parse($){if(this._getType($)!==v.nan){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.nan,received:G.parsedType}),l}return{status:"valid",value:$.data}}};O4.create=($)=>{return new O4({typeName:i.ZodNaN,...G0($)})};mA=Symbol("zod_brand");y8=class y8 extends H0{_parse($){let{ctx:X}=this._processInputParams($),G=X.data;return this._def.type._parse({data:G,path:X.path,parent:X})}unwrap(){return this._def.type}};R4=class R4 extends H0{_parse($){let{status:X,ctx:G}=this._processInputParams($);if(G.common.async)return(async()=>{let J=await this._def.in._parseAsync({data:G.data,path:G.path,parent:G});if(J.status==="aborted")return l;if(J.status==="dirty")return X.dirty(),N2(J.value);else return this._def.out._parseAsync({data:J.value,path:G.path,parent:G})})();else{let Y=this._def.in._parseSync({data:G.data,path:G.path,parent:G});if(Y.status==="aborted")return l;if(Y.status==="dirty")return X.dirty(),{status:"dirty",value:Y.value};else return this._def.out._parseSync({data:Y.value,path:G.path,parent:G})}}static create($,X){return new R4({in:$,out:X,typeName:i.ZodPipeline})}};Q6=class Q6 extends H0{_parse($){let X=this._def.innerType._parse($),G=(Y)=>{if(h5(Y))Y.value=Object.freeze(Y.value);return Y};return t2(X)?X.then((Y)=>G(Y)):G(X)}unwrap(){return this._def.innerType}};Q6.create=($,X)=>{return new Q6({innerType:$,typeName:i.ZodReadonly,...G0(X)})};pA={object:I0.lazycreate};(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"})(i||(i={}));$J=d1.create,XJ=f5.create,dA=O4.create,lA=g5.create,GJ=X6.create,cA=w2.create,rA=F4.create,iA=G6.create,nA=Y6.create,oA=_2.create,sA=y5.create,aA=$5.create,tA=M4.create,eA=l1.create,$V=I0.create,XV=I0.strictCreate,GV=J6.create,YV=h8.create,JV=W6.create,WV=X5.create,HV=Q4.create,UV=q4.create,KV=z2.create,FV=$6.create,MV=H6.create,QV=U6.create,qV=m5.create,OV=K6.create,RV=D2.create,ZV=i1.create,AV=c1.create,VV=z5.create,BV=i1.createWithPreprocess,NV=R4.create,DV={string:($)=>d1.create({...$,coerce:!0}),number:($)=>f5.create({...$,coerce:!0}),boolean:($)=>X6.create({...$,coerce:!0}),bigint:($)=>g5.create({...$,coerce:!0}),date:($)=>w2.create({...$,coerce:!0})},PV=l});var K={};S8(K,{void:()=>tA,util:()=>F0,unknown:()=>sA,union:()=>GV,undefined:()=>iA,tuple:()=>WV,transformer:()=>ZV,symbol:()=>rA,string:()=>$J,strictObject:()=>XV,setErrorMap:()=>VA,set:()=>KV,record:()=>HV,quotelessJson:()=>ZA,promise:()=>RV,preprocess:()=>BV,pipeline:()=>NV,ostring:()=>wV,optional:()=>AV,onumber:()=>_V,oboolean:()=>zV,objectUtil:()=>n$,object:()=>$V,number:()=>XJ,nullable:()=>VV,null:()=>nA,never:()=>aA,nativeEnum:()=>OV,nan:()=>dA,map:()=>UV,makeIssue:()=>K4,literal:()=>QV,lazy:()=>MV,late:()=>pA,isValid:()=>h5,isDirty:()=>b8,isAsync:()=>t2,isAborted:()=>x8,intersection:()=>JV,instanceof:()=>uA,getParsedType:()=>e1,getErrorMap:()=>a2,function:()=>FV,enum:()=>qV,effect:()=>ZV,discriminatedUnion:()=>YV,defaultErrorMap:()=>w5,datetimeRegex:()=>aY,date:()=>cA,custom:()=>eY,coerce:()=>DV,boolean:()=>GJ,bigint:()=>lA,array:()=>eA,any:()=>oA,addIssueToContext:()=>h,ZodVoid:()=>M4,ZodUnknown:()=>y5,ZodUnion:()=>J6,ZodUndefined:()=>G6,ZodType:()=>H0,ZodTuple:()=>X5,ZodTransformer:()=>i1,ZodSymbol:()=>F4,ZodString:()=>d1,ZodSet:()=>z2,ZodSchema:()=>H0,ZodRecord:()=>Q4,ZodReadonly:()=>Q6,ZodPromise:()=>D2,ZodPipeline:()=>R4,ZodParsedType:()=>v,ZodOptional:()=>c1,ZodObject:()=>I0,ZodNumber:()=>f5,ZodNullable:()=>z5,ZodNull:()=>Y6,ZodNever:()=>$5,ZodNativeEnum:()=>K6,ZodNaN:()=>O4,ZodMap:()=>q4,ZodLiteral:()=>U6,ZodLazy:()=>H6,ZodIssueCode:()=>j,ZodIntersection:()=>W6,ZodFunction:()=>$6,ZodFirstPartyTypeKind:()=>i,ZodError:()=>J1,ZodEnum:()=>m5,ZodEffects:()=>i1,ZodDiscriminatedUnion:()=>h8,ZodDefault:()=>F6,ZodDate:()=>w2,ZodCatch:()=>M6,ZodBranded:()=>y8,ZodBoolean:()=>X6,ZodBigInt:()=>g5,ZodArray:()=>l1,ZodAny:()=>_2,Schema:()=>H0,ParseStatus:()=>s0,OK:()=>W1,NEVER:()=>PV,INVALID:()=>l,EMPTY_PATH:()=>BA,DIRTY:()=>N2,BRAND:()=>mA});var e$=V(()=>{v8();s$();cY();U4();YJ();k8()});var G5=V(()=>{e$();e$()});var LV;var JJ=V(()=>{G5();LV=K.object({url:K.string(),authToken:K.string().optional()})});import{openSync as CV,writeSync as TV}from"fs";class a0{static instance=null;level;context;useStderr;format;logFile;fileHandle;constructor($={},X){if(this.level=$.level??3,this.context=$.context??void 0,this.useStderr=$.useStderr??!1,this.format=$.format??"text",this.logFile=$.logFile,X!==void 0)this.fileHandle=X;else if(this.logFile)try{this.fileHandle=CV(this.logFile,"a")}catch{}}static getInstance($){if(!a0.instance)a0.instance=new a0($);else if($?.useStderr!==void 0)a0.instance.useStderr=$.useStderr;return a0.instance}static resetInstance(){a0.instance=null}static createFresh($){return new a0($)}formatEntry($,X,G){let Y=new Date().toISOString();if(this.format==="json"){let J={ts:Y,level:$,msg:X};if(this.context)J.ctx=this.context;if(G.length>0)J.data=G;return JSON.stringify(J)}return this.context?`[${Y}] [${this.context}] ${X}`:`[${Y}] ${X}`}write($,X,G,Y){if(this.format==="json")$(this.formatEntry(X,G,Y));else if(Y.length>0)$(this.formatEntry(X,G,[]),...Y);else $(this.formatEntry(X,G,[]));if(this.fileHandle!==void 0){let J=this.formatJsonEntry(X,G,Y);try{TV(this.fileHandle,J+`
3
- `)}catch{}}}formatJsonEntry($,X,G){let Y={ts:new Date().toISOString(),level:$,msg:X};if(this.context)Y.ctx=this.context;if(G.length>0)Y.data=G;return JSON.stringify(Y)}silly($,...X){if(this.level<=0)this.write(console.debug.bind(console),"silly",$,X)}verbose($,...X){if(this.level<=1)this.write(console.debug.bind(console),"verbose",$,X)}debug($,...X){if(this.level<=2)this.write(console.debug.bind(console),"debug",$,X)}info($,...X){if(this.level<=3){let G=this.useStderr?console.error.bind(console):console.info.bind(console);this.write(G,"info",$,X)}}warn($,...X){if(this.level<=4)this.write(console.warn.bind(console),"warn",$,X)}error($,...X){if(this.level<=5)this.write(console.error.bind(console),"error",$,X)}child($){return new a0({level:this.level,context:$,useStderr:this.useStderr,format:this.format},this.fileHandle)}setUseStderr($){this.useStderr=$}}var EV;var $7=V(()=>{EV=a0.getInstance()});var Z4=d((uS,HJ)=>{var IV=Object.prototype.toString;HJ.exports=function(X){if(X===void 0)return"undefined";if(X===null)return"null";var G=typeof X;if(G==="boolean")return"boolean";if(G==="string")return"string";if(G==="number")return"number";if(G==="symbol")return"symbol";if(G==="function")return xV(X)?"generatorfunction":"function";if(jV(X))return"array";if(yV(X))return"buffer";if(hV(X))return"arguments";if(kV(X))return"date";if(SV(X))return"error";if(vV(X))return"regexp";switch(WJ(X)){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(bV(X))return"generator";switch(G=IV.call(X),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 WJ($){return typeof $.constructor==="function"?$.constructor.name:null}function jV($){if(Array.isArray)return Array.isArray($);return $ instanceof Array}function SV($){return $ instanceof Error||typeof $.message==="string"&&$.constructor&&typeof $.constructor.stackTraceLimit==="number"}function kV($){if($ instanceof Date)return!0;return typeof $.toDateString==="function"&&typeof $.getDate==="function"&&typeof $.setDate==="function"}function vV($){if($ instanceof RegExp)return!0;return typeof $.flags==="string"&&typeof $.ignoreCase==="boolean"&&typeof $.multiline==="boolean"&&typeof $.global==="boolean"}function xV($,X){return WJ($)==="GeneratorFunction"}function bV($){return typeof $.throw==="function"&&typeof $.return==="function"&&typeof $.next==="function"}function hV($){try{if(typeof $.length==="number"&&typeof $.callee==="function")return!0}catch(X){if(X.message.indexOf("callee")!==-1)return!0}return!1}function yV($){if($.constructor&&typeof $.constructor.isBuffer==="function")return $.constructor.isBuffer($);return!1}});var KJ=d((dS,UJ)=>{/*!
2
+ var KA=Object.create;var{getPrototypeOf:FA,defineProperty:a$,getOwnPropertyNames:MA}=Object;var QA=Object.prototype.hasOwnProperty;function qA($){return this[$]}var OA,ZA,x8=($,X,G)=>{var Y=$!=null&&typeof $==="object";if(Y){var J=X?OA??=new WeakMap:ZA??=new WeakMap,W=J.get($);if(W)return W}G=$!=null?KA(FA($)):{};let H=X||!$||!$.__esModule?a$(G,"default",{value:$,enumerable:!0}):G;for(let U of MA($))if(!QA.call(H,U))a$(H,U,{get:qA.bind($,U),enumerable:!0});if(Y)J.set($,H);return H};var d=($,X)=>()=>(X||$((X={exports:{}}).exports,X),X.exports);var RA=($)=>$;function AA($,X){this[$]=RA.bind(null,X)}var b8=($,X)=>{for(var G in X)a$($,G,{get:X[G],enumerable:!0,configurable:!0,set:AA.bind(X,G)})};var B=($,X)=>()=>($&&(X=$($=0)),X);var N5=import.meta.require;var F0,t$,v,e1=($)=>{switch(typeof $){case"undefined":return v.undefined;case"string":return v.string;case"number":return Number.isNaN($)?v.nan:v.number;case"boolean":return v.boolean;case"function":return v.function;case"bigint":return v.bigint;case"symbol":return v.symbol;case"object":if(Array.isArray($))return v.array;if($===null)return v.null;if($.then&&typeof $.then==="function"&&$.catch&&typeof $.catch==="function")return v.promise;if(typeof Map<"u"&&$ instanceof Map)return v.map;if(typeof Set<"u"&&$ instanceof Set)return v.set;if(typeof Date<"u"&&$ instanceof Date)return v.date;return v.object;default:return v.unknown}};var K4=B(()=>{(function($){$.assertEqual=(J)=>{};function X(J){}$.assertIs=X;function G(J){throw Error()}$.assertNever=G,$.arrayToEnum=(J)=>{let W={};for(let H of J)W[H]=H;return W},$.getValidEnumValues=(J)=>{let W=$.objectKeys(J).filter((U)=>typeof J[J[U]]!=="number"),H={};for(let U of W)H[U]=J[U];return $.objectValues(H)},$.objectValues=(J)=>{return $.objectKeys(J).map(function(W){return J[W]})},$.objectKeys=typeof Object.keys==="function"?(J)=>Object.keys(J):(J)=>{let W=[];for(let H in J)if(Object.prototype.hasOwnProperty.call(J,H))W.push(H);return W},$.find=(J,W)=>{for(let H of J)if(W(H))return H;return},$.isInteger=typeof Number.isInteger==="function"?(J)=>Number.isInteger(J):(J)=>typeof J==="number"&&Number.isFinite(J)&&Math.floor(J)===J;function Y(J,W=" | "){return J.map((H)=>typeof H==="string"?`'${H}'`:H).join(W)}$.joinValues=Y,$.jsonStringifyReplacer=(J,W)=>{if(typeof W==="bigint")return W.toString();return W}})(F0||(F0={}));(function($){$.mergeShapes=(X,G)=>{return{...X,...G}}})(t$||(t$={}));v=F0.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"])});var j,BA=($)=>{return JSON.stringify($,null,2).replace(/"([^"]+)":/g,"$1:")},W1;var h8=B(()=>{K4();j=F0.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"]);W1=class W1 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 X=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,X);else this.__proto__=X;this.name="ZodError",this.issues=$}format($){let X=$||function(J){return J.message},G={_errors:[]},Y=(J)=>{for(let W of J.issues)if(W.code==="invalid_union")W.unionErrors.map(Y);else if(W.code==="invalid_return_type")Y(W.returnTypeError);else if(W.code==="invalid_arguments")Y(W.argumentsError);else if(W.path.length===0)G._errors.push(X(W));else{let H=G,U=0;while(U<W.path.length){let F=W.path[U];if(U!==W.path.length-1)H[F]=H[F]||{_errors:[]};else H[F]=H[F]||{_errors:[]},H[F]._errors.push(X(W));H=H[F],U++}}};return Y(this),G}static assert($){if(!($ instanceof W1))throw Error(`Not a ZodError: ${$}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,F0.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten($=(X)=>X.message){let X={},G=[];for(let Y of this.issues)if(Y.path.length>0){let J=Y.path[0];X[J]=X[J]||[],X[J].push($(Y))}else G.push($(Y));return{formErrors:G,fieldErrors:X}}get formErrors(){return this.flatten()}};W1.create=($)=>{return new W1($)}});var VA=($,X)=>{let G;switch($.code){case j.invalid_type:if($.received===v.undefined)G="Required";else G=`Expected ${$.expected}, received ${$.received}`;break;case j.invalid_literal:G=`Invalid literal value, expected ${JSON.stringify($.expected,F0.jsonStringifyReplacer)}`;break;case j.unrecognized_keys:G=`Unrecognized key(s) in object: ${F0.joinValues($.keys,", ")}`;break;case j.invalid_union:G="Invalid input";break;case j.invalid_union_discriminator:G=`Invalid discriminator value. Expected ${F0.joinValues($.options)}`;break;case j.invalid_enum_value:G=`Invalid enum value. Expected ${F0.joinValues($.options)}, received '${$.received}'`;break;case j.invalid_arguments:G="Invalid function arguments";break;case j.invalid_return_type:G="Invalid function return type";break;case j.invalid_date:G="Invalid date";break;case j.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 F0.assertNever($.validation);else if($.validation!=="regex")G=`Invalid ${$.validation}`;else G="Invalid";break;case j.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 j.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 j.custom:G="Invalid input";break;case j.invalid_intersection_types:G="Intersection results could not be merged";break;case j.not_multiple_of:G=`Number must be a multiple of ${$.multipleOf}`;break;case j.not_finite:G="Number must be finite";break;default:G=X.defaultError,F0.assertNever($)}return{message:G}},w5;var e$=B(()=>{h8();K4();w5=VA});function NA($){dY=$}function s2(){return dY}var dY;var y8=B(()=>{e$();dY=w5});function h($,X){let G=s2(),Y=F4({issueData:X,data:$.data,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,G,G===w5?void 0:w5].filter((J)=>!!J)});$.common.issues.push(Y)}class a0{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray($,X){let G=[];for(let Y of X){if(Y.status==="aborted")return l;if(Y.status==="dirty")$.dirty();G.push(Y.value)}return{status:$.value,value:G}}static async mergeObjectAsync($,X){let G=[];for(let Y of X){let J=await Y.key,W=await Y.value;G.push({key:J,value:W})}return a0.mergeObjectSync($,G)}static mergeObjectSync($,X){let G={};for(let Y of X){let{key:J,value:W}=Y;if(J.status==="aborted")return l;if(W.status==="aborted")return l;if(J.status==="dirty")$.dirty();if(W.status==="dirty")$.dirty();if(J.value!=="__proto__"&&(typeof W.value<"u"||Y.alwaysSet))G[J.value]=W.value}return{status:$.value,value:G}}}var F4=($)=>{let{data:X,path:G,errorMaps:Y,issueData:J}=$,W=[...G,...J.path||[]],H={...J,path:W};if(J.message!==void 0)return{...J,path:W,message:J.message};let U="",F=Y.filter((M)=>!!M).slice().reverse();for(let M of F)U=M(H,{data:X,defaultError:U}).message;return{...J,path:W,message:U}},wA,l,V2=($)=>({status:"dirty",value:$}),H1=($)=>({status:"valid",value:$}),f8=($)=>$.status==="aborted",g8=($)=>$.status==="dirty",b5=($)=>$.status==="valid",a2=($)=>typeof Promise<"u"&&$ instanceof Promise;var $7=B(()=>{y8();e$();wA=[];l=Object.freeze({status:"aborted"})});var lY=()=>{};var m;var cY=B(()=>{(function($){$.errToObj=(X)=>typeof X==="string"?{message:X}:X||{},$.toString=(X)=>typeof X==="string"?X:X?.message})(m||(m={}))});class c1{constructor($,X,G,Y){this._cachedPath=[],this.parent=$,this.data=X,this._path=G,this._key=Y}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}}function X0($){if(!$)return{};let{errorMap:X,invalid_type_error:G,required_error:Y,description:J}=$;if(X&&(G||Y))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(X)return{errorMap:X,description:J};return{errorMap:(H,U)=>{let{message:F}=$;if(H.code==="invalid_enum_value")return{message:F??U.defaultError};if(typeof U.data>"u")return{message:F??Y??U.defaultError};if(H.code!=="invalid_type")return{message:U.defaultError};return{message:F??G??U.defaultError}},description:J}}class H0{get description(){return this._def.description}_getType($){return e1($.data)}_getOrReturnCtx($,X){return X||{common:$.parent.common,data:$.data,parsedType:e1($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}_processInputParams($){return{status:new a0,ctx:{common:$.parent.common,data:$.data,parsedType:e1($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}}_parseSync($){let X=this._parse($);if(a2(X))throw Error("Synchronous parse encountered promise.");return X}_parseAsync($){let X=this._parse($);return Promise.resolve(X)}parse($,X){let G=this.safeParse($,X);if(G.success)return G.data;throw G.error}safeParse($,X){let G={common:{issues:[],async:X?.async??!1,contextualErrorMap:X?.errorMap},path:X?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:e1($)},Y=this._parseSync({data:$,path:G.path,parent:G});return rY(G,Y)}"~validate"($){let X={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:e1($)};if(!this["~standard"].async)try{let G=this._parseSync({data:$,path:[],parent:X});return b5(G)?{value:G.value}:{issues:X.common.issues}}catch(G){if(G?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;X.common={issues:[],async:!0}}return this._parseAsync({data:$,path:[],parent:X}).then((G)=>b5(G)?{value:G.value}:{issues:X.common.issues})}async parseAsync($,X){let G=await this.safeParseAsync($,X);if(G.success)return G.data;throw G.error}async safeParseAsync($,X){let G={common:{issues:[],contextualErrorMap:X?.errorMap,async:!0},path:X?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:e1($)},Y=this._parse({data:$,path:G.path,parent:G}),J=await(a2(Y)?Y:Promise.resolve(Y));return rY(G,J)}refine($,X){let G=(Y)=>{if(typeof X==="string"||typeof X>"u")return{message:X};else if(typeof X==="function")return X(Y);else return X};return this._refinement((Y,J)=>{let W=$(Y),H=()=>J.addIssue({code:j.custom,...G(Y)});if(typeof Promise<"u"&&W instanceof Promise)return W.then((U)=>{if(!U)return H(),!1;else return!0});if(!W)return H(),!1;else return!0})}refinement($,X){return this._refinement((G,Y)=>{if(!$(G))return Y.addIssue(typeof X==="function"?X(G,Y):X),!1;else return!0})}_refinement($){return new r1({schema:this,typeName:i.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:(X)=>this["~validate"](X)}}optional(){return l1.create(this,this._def)}nullable(){return z5.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return d1.create(this)}promise(){return z2.create(this,this._def)}or($){return Y6.create([this,$],this._def)}and($){return J6.create(this,$,this._def)}transform($){return new r1({...X0(this._def),schema:this,typeName:i.ZodEffects,effect:{type:"transform",transform:$}})}default($){let X=typeof $==="function"?$:()=>$;return new K6({...X0(this._def),innerType:this,defaultValue:X,typeName:i.ZodDefault})}brand(){return new p8({typeName:i.ZodBranded,type:this,...X0(this._def)})}catch($){let X=typeof $==="function"?$:()=>$;return new F6({...X0(this._def),innerType:this,catchValue:X,typeName:i.ZodCatch})}describe($){return new this.constructor({...this._def,description:$})}pipe($){return R4.create(this,$)}readonly(){return M6.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}function oY($){let X="[0-5]\\d";if($.precision)X=`${X}\\.\\d{${$.precision}}`;else if($.precision==null)X=`${X}(\\.\\d+)?`;let G=$.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${X})${G}`}function yA($){return new RegExp(`^${oY($)}$`)}function sY($){let X=`${nY}T${oY($)}`,G=[];if(G.push($.local?"Z?":"Z"),$.offset)G.push("([+-]\\d{2}:?\\d{2})");return X=`${X}(${G.join("|")})`,new RegExp(`^${X}$`)}function fA($,X){if((X==="v4"||!X)&&jA.test($))return!0;if((X==="v6"||!X)&&kA.test($))return!0;return!1}function gA($,X){if(!CA.test($))return!1;try{let[G]=$.split(".");if(!G)return!1;let Y=G.replace(/-/g,"+").replace(/_/g,"/").padEnd(G.length+(4-G.length%4)%4,"="),J=JSON.parse(atob(Y));if(typeof J!=="object"||J===null)return!1;if("typ"in J&&J?.typ!=="JWT")return!1;if(!J.alg)return!1;if(X&&J.alg!==X)return!1;return!0}catch{return!1}}function mA($,X){if((X==="v4"||!X)&&SA.test($))return!0;if((X==="v6"||!X)&&vA.test($))return!0;return!1}function pA($,X){let G=($.toString().split(".")[1]||"").length,Y=(X.toString().split(".")[1]||"").length,J=G>Y?G:Y,W=Number.parseInt($.toFixed(J).replace(".","")),H=Number.parseInt(X.toFixed(J).replace(".",""));return W%H/10**J}function t2($){if($ instanceof j0){let X={};for(let G in $.shape){let Y=$.shape[G];X[G]=l1.create(t2(Y))}return new j0({...$._def,shape:()=>X})}else if($ instanceof d1)return new d1({...$._def,type:t2($.element)});else if($ instanceof l1)return l1.create(t2($.unwrap()));else if($ instanceof z5)return z5.create(t2($.unwrap()));else if($ instanceof X5)return X5.create($.items.map((X)=>t2(X)));else return $}function G7($,X){let G=e1($),Y=e1(X);if($===X)return{valid:!0,data:$};else if(G===v.object&&Y===v.object){let J=F0.objectKeys(X),W=F0.objectKeys($).filter((U)=>J.indexOf(U)!==-1),H={...$,...X};for(let U of W){let F=G7($[U],X[U]);if(!F.valid)return{valid:!1};H[U]=F.data}return{valid:!0,data:H}}else if(G===v.array&&Y===v.array){if($.length!==X.length)return{valid:!1};let J=[];for(let W=0;W<$.length;W++){let H=$[W],U=X[W],F=G7(H,U);if(!F.valid)return{valid:!1};J.push(F.data)}return{valid:!0,data:J}}else if(G===v.date&&Y===v.date&&+$===+X)return{valid:!0,data:$};else return{valid:!1}}function aY($,X){return new g5({values:$,typeName:i.ZodEnum,...X0(X)})}function iY($,X){let G=typeof $==="function"?$(X):typeof $==="string"?{message:$}:$;return typeof G==="string"?{message:G}:G}function tY($,X={},G){if($)return w2.create().superRefine((Y,J)=>{let W=$(Y);if(W instanceof Promise)return W.then((H)=>{if(!H){let U=iY(X,Y),F=U.fatal??G??!0;J.addIssue({code:"custom",...U,fatal:F})}});if(!W){let H=iY(X,Y),U=H.fatal??G??!0;J.addIssue({code:"custom",...H,fatal:U})}return});return w2.create()}var rY=($,X)=>{if(b5(X))return{success:!0,data:X.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 W1($.common.issues);return this._error=G,this._error}}}},_A,zA,DA,PA,LA,CA,TA,EA,IA="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",X7,jA,SA,kA,vA,xA,bA,nY="((\\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])))",hA,u1,y5,f5,$6,N2,M4,X6,G6,w2,h5,$5,Q4,d1,j0,Y6,_5=($)=>{if($ instanceof W6)return _5($.schema);else if($ instanceof r1)return _5($.innerType());else if($ instanceof H6)return[$.value];else if($ instanceof g5)return $.options;else if($ instanceof U6)return F0.objectValues($.enum);else if($ instanceof K6)return _5($._def.innerType);else if($ instanceof X6)return[void 0];else if($ instanceof G6)return[null];else if($ instanceof l1)return[void 0,..._5($.unwrap())];else if($ instanceof z5)return[null,..._5($.unwrap())];else if($ instanceof p8)return _5($.unwrap());else if($ instanceof M6)return _5($.unwrap());else if($ instanceof F6)return _5($._def.innerType);else return[]},m8,J6,X5,q4,O4,_2,e2,W6,H6,g5,U6,z2,r1,l1,z5,K6,F6,Z4,uA,p8,R4,M6,dA,i,lA=($,X={message:`Input not instance of ${$.name}`})=>tY((G)=>G instanceof $,X),eY,$J,cA,rA,XJ,iA,nA,oA,sA,aA,tA,eA,$B,XB,GB,YB,JB,WB,HB,UB,KB,FB,MB,QB,qB,OB,ZB,RB,AB,BB,VB,NB,wB,_B,zB=()=>eY().optional(),DB=()=>$J().optional(),PB=()=>XJ().optional(),LB,CB;var GJ=B(()=>{h8();y8();cY();$7();K4();_A=/^c[^\s-]{8,}$/i,zA=/^[0-9a-z]+$/,DA=/^[0-9A-HJKMNP-TV-Z]{26}$/i,PA=/^[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,LA=/^[a-z0-9_-]{21}$/i,CA=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,TA=/^[-+]?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)?)??$/,EA=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,jA=/^(?:(?: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])$/,SA=/^(?:(?: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])$/,kA=/^(([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]))$/,vA=/^(([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])$/,xA=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,bA=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,hA=new RegExp(`^${nY}$`);u1=class u1 extends H0{_parse($){if(this._def.coerce)$.data=String($.data);if(this._getType($)!==v.string){let J=this._getOrReturnCtx($);return h(J,{code:j.invalid_type,expected:v.string,received:J.parsedType}),l}let G=new a0,Y=void 0;for(let J of this._def.checks)if(J.kind==="min"){if($.data.length<J.value)Y=this._getOrReturnCtx($,Y),h(Y,{code:j.too_small,minimum:J.value,type:"string",inclusive:!0,exact:!1,message:J.message}),G.dirty()}else if(J.kind==="max"){if($.data.length>J.value)Y=this._getOrReturnCtx($,Y),h(Y,{code:j.too_big,maximum:J.value,type:"string",inclusive:!0,exact:!1,message:J.message}),G.dirty()}else if(J.kind==="length"){let W=$.data.length>J.value,H=$.data.length<J.value;if(W||H){if(Y=this._getOrReturnCtx($,Y),W)h(Y,{code:j.too_big,maximum:J.value,type:"string",inclusive:!0,exact:!0,message:J.message});else if(H)h(Y,{code:j.too_small,minimum:J.value,type:"string",inclusive:!0,exact:!0,message:J.message});G.dirty()}}else if(J.kind==="email"){if(!EA.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"email",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="emoji"){if(!X7)X7=new RegExp(IA,"u");if(!X7.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"emoji",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="uuid"){if(!PA.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"uuid",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="nanoid"){if(!LA.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"nanoid",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="cuid"){if(!_A.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"cuid",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="cuid2"){if(!zA.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"cuid2",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="ulid"){if(!DA.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"ulid",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="url")try{new URL($.data)}catch{Y=this._getOrReturnCtx($,Y),h(Y,{validation:"url",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="regex"){if(J.regex.lastIndex=0,!J.regex.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"regex",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="trim")$.data=$.data.trim();else if(J.kind==="includes"){if(!$.data.includes(J.value,J.position))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:{includes:J.value,position:J.position},message:J.message}),G.dirty()}else if(J.kind==="toLowerCase")$.data=$.data.toLowerCase();else if(J.kind==="toUpperCase")$.data=$.data.toUpperCase();else if(J.kind==="startsWith"){if(!$.data.startsWith(J.value))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:{startsWith:J.value},message:J.message}),G.dirty()}else if(J.kind==="endsWith"){if(!$.data.endsWith(J.value))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:{endsWith:J.value},message:J.message}),G.dirty()}else if(J.kind==="datetime"){if(!sY(J).test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:"datetime",message:J.message}),G.dirty()}else if(J.kind==="date"){if(!hA.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:"date",message:J.message}),G.dirty()}else if(J.kind==="time"){if(!yA(J).test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:"time",message:J.message}),G.dirty()}else if(J.kind==="duration"){if(!TA.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"duration",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="ip"){if(!fA($.data,J.version))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"ip",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="jwt"){if(!gA($.data,J.alg))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"jwt",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="cidr"){if(!mA($.data,J.version))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"cidr",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="base64"){if(!xA.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"base64",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="base64url"){if(!bA.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"base64url",code:j.invalid_string,message:J.message}),G.dirty()}else F0.assertNever(J);return{status:G.value,value:$.data}}_regex($,X,G){return this.refinement((Y)=>$.test(Y),{validation:X,code:j.invalid_string,...m.errToObj(G)})}_addCheck($){return new u1({...this._def,checks:[...this._def.checks,$]})}email($){return this._addCheck({kind:"email",...m.errToObj($)})}url($){return this._addCheck({kind:"url",...m.errToObj($)})}emoji($){return this._addCheck({kind:"emoji",...m.errToObj($)})}uuid($){return this._addCheck({kind:"uuid",...m.errToObj($)})}nanoid($){return this._addCheck({kind:"nanoid",...m.errToObj($)})}cuid($){return this._addCheck({kind:"cuid",...m.errToObj($)})}cuid2($){return this._addCheck({kind:"cuid2",...m.errToObj($)})}ulid($){return this._addCheck({kind:"ulid",...m.errToObj($)})}base64($){return this._addCheck({kind:"base64",...m.errToObj($)})}base64url($){return this._addCheck({kind:"base64url",...m.errToObj($)})}jwt($){return this._addCheck({kind:"jwt",...m.errToObj($)})}ip($){return this._addCheck({kind:"ip",...m.errToObj($)})}cidr($){return this._addCheck({kind:"cidr",...m.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,...m.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,...m.errToObj($?.message)})}duration($){return this._addCheck({kind:"duration",...m.errToObj($)})}regex($,X){return this._addCheck({kind:"regex",regex:$,...m.errToObj(X)})}includes($,X){return this._addCheck({kind:"includes",value:$,position:X?.position,...m.errToObj(X?.message)})}startsWith($,X){return this._addCheck({kind:"startsWith",value:$,...m.errToObj(X)})}endsWith($,X){return this._addCheck({kind:"endsWith",value:$,...m.errToObj(X)})}min($,X){return this._addCheck({kind:"min",value:$,...m.errToObj(X)})}max($,X){return this._addCheck({kind:"max",value:$,...m.errToObj(X)})}length($,X){return this._addCheck({kind:"length",value:$,...m.errToObj(X)})}nonempty($){return this.min(1,m.errToObj($))}trim(){return new u1({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new u1({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new u1({...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 X of this._def.checks)if(X.kind==="min"){if($===null||X.value>$)$=X.value}return $}get maxLength(){let $=null;for(let X of this._def.checks)if(X.kind==="max"){if($===null||X.value<$)$=X.value}return $}};u1.create=($)=>{return new u1({checks:[],typeName:i.ZodString,coerce:$?.coerce??!1,...X0($)})};y5=class y5 extends H0{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($)!==v.number){let J=this._getOrReturnCtx($);return h(J,{code:j.invalid_type,expected:v.number,received:J.parsedType}),l}let G=void 0,Y=new a0;for(let J of this._def.checks)if(J.kind==="int"){if(!F0.isInteger($.data))G=this._getOrReturnCtx($,G),h(G,{code:j.invalid_type,expected:"integer",received:"float",message:J.message}),Y.dirty()}else if(J.kind==="min"){if(J.inclusive?$.data<J.value:$.data<=J.value)G=this._getOrReturnCtx($,G),h(G,{code:j.too_small,minimum:J.value,type:"number",inclusive:J.inclusive,exact:!1,message:J.message}),Y.dirty()}else if(J.kind==="max"){if(J.inclusive?$.data>J.value:$.data>=J.value)G=this._getOrReturnCtx($,G),h(G,{code:j.too_big,maximum:J.value,type:"number",inclusive:J.inclusive,exact:!1,message:J.message}),Y.dirty()}else if(J.kind==="multipleOf"){if(pA($.data,J.value)!==0)G=this._getOrReturnCtx($,G),h(G,{code:j.not_multiple_of,multipleOf:J.value,message:J.message}),Y.dirty()}else if(J.kind==="finite"){if(!Number.isFinite($.data))G=this._getOrReturnCtx($,G),h(G,{code:j.not_finite,message:J.message}),Y.dirty()}else F0.assertNever(J);return{status:Y.value,value:$.data}}gte($,X){return this.setLimit("min",$,!0,m.toString(X))}gt($,X){return this.setLimit("min",$,!1,m.toString(X))}lte($,X){return this.setLimit("max",$,!0,m.toString(X))}lt($,X){return this.setLimit("max",$,!1,m.toString(X))}setLimit($,X,G,Y){return new y5({...this._def,checks:[...this._def.checks,{kind:$,value:X,inclusive:G,message:m.toString(Y)}]})}_addCheck($){return new y5({...this._def,checks:[...this._def.checks,$]})}int($){return this._addCheck({kind:"int",message:m.toString($)})}positive($){return this._addCheck({kind:"min",value:0,inclusive:!1,message:m.toString($)})}negative($){return this._addCheck({kind:"max",value:0,inclusive:!1,message:m.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:0,inclusive:!0,message:m.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:0,inclusive:!0,message:m.toString($)})}multipleOf($,X){return this._addCheck({kind:"multipleOf",value:$,message:m.toString(X)})}finite($){return this._addCheck({kind:"finite",message:m.toString($)})}safe($){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:m.toString($)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:m.toString($)})}get minValue(){let $=null;for(let X of this._def.checks)if(X.kind==="min"){if($===null||X.value>$)$=X.value}return $}get maxValue(){let $=null;for(let X of this._def.checks)if(X.kind==="max"){if($===null||X.value<$)$=X.value}return $}get isInt(){return!!this._def.checks.find(($)=>$.kind==="int"||$.kind==="multipleOf"&&F0.isInteger($.value))}get isFinite(){let $=null,X=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(X===null||G.value>X)X=G.value}else if(G.kind==="max"){if($===null||G.value<$)$=G.value}return Number.isFinite(X)&&Number.isFinite($)}};y5.create=($)=>{return new y5({checks:[],typeName:i.ZodNumber,coerce:$?.coerce||!1,...X0($)})};f5=class f5 extends H0{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($)!==v.bigint)return this._getInvalidInput($);let G=void 0,Y=new a0;for(let J of this._def.checks)if(J.kind==="min"){if(J.inclusive?$.data<J.value:$.data<=J.value)G=this._getOrReturnCtx($,G),h(G,{code:j.too_small,type:"bigint",minimum:J.value,inclusive:J.inclusive,message:J.message}),Y.dirty()}else if(J.kind==="max"){if(J.inclusive?$.data>J.value:$.data>=J.value)G=this._getOrReturnCtx($,G),h(G,{code:j.too_big,type:"bigint",maximum:J.value,inclusive:J.inclusive,message:J.message}),Y.dirty()}else if(J.kind==="multipleOf"){if($.data%J.value!==BigInt(0))G=this._getOrReturnCtx($,G),h(G,{code:j.not_multiple_of,multipleOf:J.value,message:J.message}),Y.dirty()}else F0.assertNever(J);return{status:Y.value,value:$.data}}_getInvalidInput($){let X=this._getOrReturnCtx($);return h(X,{code:j.invalid_type,expected:v.bigint,received:X.parsedType}),l}gte($,X){return this.setLimit("min",$,!0,m.toString(X))}gt($,X){return this.setLimit("min",$,!1,m.toString(X))}lte($,X){return this.setLimit("max",$,!0,m.toString(X))}lt($,X){return this.setLimit("max",$,!1,m.toString(X))}setLimit($,X,G,Y){return new f5({...this._def,checks:[...this._def.checks,{kind:$,value:X,inclusive:G,message:m.toString(Y)}]})}_addCheck($){return new f5({...this._def,checks:[...this._def.checks,$]})}positive($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:m.toString($)})}negative($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:m.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:m.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:m.toString($)})}multipleOf($,X){return this._addCheck({kind:"multipleOf",value:$,message:m.toString(X)})}get minValue(){let $=null;for(let X of this._def.checks)if(X.kind==="min"){if($===null||X.value>$)$=X.value}return $}get maxValue(){let $=null;for(let X of this._def.checks)if(X.kind==="max"){if($===null||X.value<$)$=X.value}return $}};f5.create=($)=>{return new f5({checks:[],typeName:i.ZodBigInt,coerce:$?.coerce??!1,...X0($)})};$6=class $6 extends H0{_parse($){if(this._def.coerce)$.data=Boolean($.data);if(this._getType($)!==v.boolean){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.boolean,received:G.parsedType}),l}return H1($.data)}};$6.create=($)=>{return new $6({typeName:i.ZodBoolean,coerce:$?.coerce||!1,...X0($)})};N2=class N2 extends H0{_parse($){if(this._def.coerce)$.data=new Date($.data);if(this._getType($)!==v.date){let J=this._getOrReturnCtx($);return h(J,{code:j.invalid_type,expected:v.date,received:J.parsedType}),l}if(Number.isNaN($.data.getTime())){let J=this._getOrReturnCtx($);return h(J,{code:j.invalid_date}),l}let G=new a0,Y=void 0;for(let J of this._def.checks)if(J.kind==="min"){if($.data.getTime()<J.value)Y=this._getOrReturnCtx($,Y),h(Y,{code:j.too_small,message:J.message,inclusive:!0,exact:!1,minimum:J.value,type:"date"}),G.dirty()}else if(J.kind==="max"){if($.data.getTime()>J.value)Y=this._getOrReturnCtx($,Y),h(Y,{code:j.too_big,message:J.message,inclusive:!0,exact:!1,maximum:J.value,type:"date"}),G.dirty()}else F0.assertNever(J);return{status:G.value,value:new Date($.data.getTime())}}_addCheck($){return new N2({...this._def,checks:[...this._def.checks,$]})}min($,X){return this._addCheck({kind:"min",value:$.getTime(),message:m.toString(X)})}max($,X){return this._addCheck({kind:"max",value:$.getTime(),message:m.toString(X)})}get minDate(){let $=null;for(let X of this._def.checks)if(X.kind==="min"){if($===null||X.value>$)$=X.value}return $!=null?new Date($):null}get maxDate(){let $=null;for(let X of this._def.checks)if(X.kind==="max"){if($===null||X.value<$)$=X.value}return $!=null?new Date($):null}};N2.create=($)=>{return new N2({checks:[],coerce:$?.coerce||!1,typeName:i.ZodDate,...X0($)})};M4=class M4 extends H0{_parse($){if(this._getType($)!==v.symbol){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.symbol,received:G.parsedType}),l}return H1($.data)}};M4.create=($)=>{return new M4({typeName:i.ZodSymbol,...X0($)})};X6=class X6 extends H0{_parse($){if(this._getType($)!==v.undefined){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.undefined,received:G.parsedType}),l}return H1($.data)}};X6.create=($)=>{return new X6({typeName:i.ZodUndefined,...X0($)})};G6=class G6 extends H0{_parse($){if(this._getType($)!==v.null){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.null,received:G.parsedType}),l}return H1($.data)}};G6.create=($)=>{return new G6({typeName:i.ZodNull,...X0($)})};w2=class w2 extends H0{constructor(){super(...arguments);this._any=!0}_parse($){return H1($.data)}};w2.create=($)=>{return new w2({typeName:i.ZodAny,...X0($)})};h5=class h5 extends H0{constructor(){super(...arguments);this._unknown=!0}_parse($){return H1($.data)}};h5.create=($)=>{return new h5({typeName:i.ZodUnknown,...X0($)})};$5=class $5 extends H0{_parse($){let X=this._getOrReturnCtx($);return h(X,{code:j.invalid_type,expected:v.never,received:X.parsedType}),l}};$5.create=($)=>{return new $5({typeName:i.ZodNever,...X0($)})};Q4=class Q4 extends H0{_parse($){if(this._getType($)!==v.undefined){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.void,received:G.parsedType}),l}return H1($.data)}};Q4.create=($)=>{return new Q4({typeName:i.ZodVoid,...X0($)})};d1=class d1 extends H0{_parse($){let{ctx:X,status:G}=this._processInputParams($),Y=this._def;if(X.parsedType!==v.array)return h(X,{code:j.invalid_type,expected:v.array,received:X.parsedType}),l;if(Y.exactLength!==null){let W=X.data.length>Y.exactLength.value,H=X.data.length<Y.exactLength.value;if(W||H)h(X,{code:W?j.too_big:j.too_small,minimum:H?Y.exactLength.value:void 0,maximum:W?Y.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:Y.exactLength.message}),G.dirty()}if(Y.minLength!==null){if(X.data.length<Y.minLength.value)h(X,{code:j.too_small,minimum:Y.minLength.value,type:"array",inclusive:!0,exact:!1,message:Y.minLength.message}),G.dirty()}if(Y.maxLength!==null){if(X.data.length>Y.maxLength.value)h(X,{code:j.too_big,maximum:Y.maxLength.value,type:"array",inclusive:!0,exact:!1,message:Y.maxLength.message}),G.dirty()}if(X.common.async)return Promise.all([...X.data].map((W,H)=>{return Y.type._parseAsync(new c1(X,W,X.path,H))})).then((W)=>{return a0.mergeArray(G,W)});let J=[...X.data].map((W,H)=>{return Y.type._parseSync(new c1(X,W,X.path,H))});return a0.mergeArray(G,J)}get element(){return this._def.type}min($,X){return new d1({...this._def,minLength:{value:$,message:m.toString(X)}})}max($,X){return new d1({...this._def,maxLength:{value:$,message:m.toString(X)}})}length($,X){return new d1({...this._def,exactLength:{value:$,message:m.toString(X)}})}nonempty($){return this.min(1,$)}};d1.create=($,X)=>{return new d1({type:$,minLength:null,maxLength:null,exactLength:null,typeName:i.ZodArray,...X0(X)})};j0=class j0 extends H0{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(),X=F0.objectKeys($);return this._cached={shape:$,keys:X},this._cached}_parse($){if(this._getType($)!==v.object){let F=this._getOrReturnCtx($);return h(F,{code:j.invalid_type,expected:v.object,received:F.parsedType}),l}let{status:G,ctx:Y}=this._processInputParams($),{shape:J,keys:W}=this._getCached(),H=[];if(!(this._def.catchall instanceof $5&&this._def.unknownKeys==="strip")){for(let F in Y.data)if(!W.includes(F))H.push(F)}let U=[];for(let F of W){let M=J[F],Q=Y.data[F];U.push({key:{status:"valid",value:F},value:M._parse(new c1(Y,Q,Y.path,F)),alwaysSet:F in Y.data})}if(this._def.catchall instanceof $5){let F=this._def.unknownKeys;if(F==="passthrough")for(let M of H)U.push({key:{status:"valid",value:M},value:{status:"valid",value:Y.data[M]}});else if(F==="strict"){if(H.length>0)h(Y,{code:j.unrecognized_keys,keys:H}),G.dirty()}else if(F==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let F=this._def.catchall;for(let M of H){let Q=Y.data[M];U.push({key:{status:"valid",value:M},value:F._parse(new c1(Y,Q,Y.path,M)),alwaysSet:M in Y.data})}}if(Y.common.async)return Promise.resolve().then(async()=>{let F=[];for(let M of U){let Q=await M.key,q=await M.value;F.push({key:Q,value:q,alwaysSet:M.alwaysSet})}return F}).then((F)=>{return a0.mergeObjectSync(G,F)});else return a0.mergeObjectSync(G,U)}get shape(){return this._def.shape()}strict($){return m.errToObj,new j0({...this._def,unknownKeys:"strict",...$!==void 0?{errorMap:(X,G)=>{let Y=this._def.errorMap?.(X,G).message??G.defaultError;if(X.code==="unrecognized_keys")return{message:m.errToObj($).message??Y};return{message:Y}}}:{}})}strip(){return new j0({...this._def,unknownKeys:"strip"})}passthrough(){return new j0({...this._def,unknownKeys:"passthrough"})}extend($){return new j0({...this._def,shape:()=>({...this._def.shape(),...$})})}merge($){return new j0({unknownKeys:$._def.unknownKeys,catchall:$._def.catchall,shape:()=>({...this._def.shape(),...$._def.shape()}),typeName:i.ZodObject})}setKey($,X){return this.augment({[$]:X})}catchall($){return new j0({...this._def,catchall:$})}pick($){let X={};for(let G of F0.objectKeys($))if($[G]&&this.shape[G])X[G]=this.shape[G];return new j0({...this._def,shape:()=>X})}omit($){let X={};for(let G of F0.objectKeys(this.shape))if(!$[G])X[G]=this.shape[G];return new j0({...this._def,shape:()=>X})}deepPartial(){return t2(this)}partial($){let X={};for(let G of F0.objectKeys(this.shape)){let Y=this.shape[G];if($&&!$[G])X[G]=Y;else X[G]=Y.optional()}return new j0({...this._def,shape:()=>X})}required($){let X={};for(let G of F0.objectKeys(this.shape))if($&&!$[G])X[G]=this.shape[G];else{let J=this.shape[G];while(J instanceof l1)J=J._def.innerType;X[G]=J}return new j0({...this._def,shape:()=>X})}keyof(){return aY(F0.objectKeys(this.shape))}};j0.create=($,X)=>{return new j0({shape:()=>$,unknownKeys:"strip",catchall:$5.create(),typeName:i.ZodObject,...X0(X)})};j0.strictCreate=($,X)=>{return new j0({shape:()=>$,unknownKeys:"strict",catchall:$5.create(),typeName:i.ZodObject,...X0(X)})};j0.lazycreate=($,X)=>{return new j0({shape:$,unknownKeys:"strip",catchall:$5.create(),typeName:i.ZodObject,...X0(X)})};Y6=class Y6 extends H0{_parse($){let{ctx:X}=this._processInputParams($),G=this._def.options;function Y(J){for(let H of J)if(H.result.status==="valid")return H.result;for(let H of J)if(H.result.status==="dirty")return X.common.issues.push(...H.ctx.common.issues),H.result;let W=J.map((H)=>new W1(H.ctx.common.issues));return h(X,{code:j.invalid_union,unionErrors:W}),l}if(X.common.async)return Promise.all(G.map(async(J)=>{let W={...X,common:{...X.common,issues:[]},parent:null};return{result:await J._parseAsync({data:X.data,path:X.path,parent:W}),ctx:W}})).then(Y);else{let J=void 0,W=[];for(let U of G){let F={...X,common:{...X.common,issues:[]},parent:null},M=U._parseSync({data:X.data,path:X.path,parent:F});if(M.status==="valid")return M;else if(M.status==="dirty"&&!J)J={result:M,ctx:F};if(F.common.issues.length)W.push(F.common.issues)}if(J)return X.common.issues.push(...J.ctx.common.issues),J.result;let H=W.map((U)=>new W1(U));return h(X,{code:j.invalid_union,unionErrors:H}),l}}get options(){return this._def.options}};Y6.create=($,X)=>{return new Y6({options:$,typeName:i.ZodUnion,...X0(X)})};m8=class m8 extends H0{_parse($){let{ctx:X}=this._processInputParams($);if(X.parsedType!==v.object)return h(X,{code:j.invalid_type,expected:v.object,received:X.parsedType}),l;let G=this.discriminator,Y=X.data[G],J=this.optionsMap.get(Y);if(!J)return h(X,{code:j.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[G]}),l;if(X.common.async)return J._parseAsync({data:X.data,path:X.path,parent:X});else return J._parseSync({data:X.data,path:X.path,parent:X})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create($,X,G){let Y=new Map;for(let J of X){let W=_5(J.shape[$]);if(!W.length)throw Error(`A discriminator value for key \`${$}\` could not be extracted from all schema options`);for(let H of W){if(Y.has(H))throw Error(`Discriminator property ${String($)} has duplicate value ${String(H)}`);Y.set(H,J)}}return new m8({typeName:i.ZodDiscriminatedUnion,discriminator:$,options:X,optionsMap:Y,...X0(G)})}};J6=class J6 extends H0{_parse($){let{status:X,ctx:G}=this._processInputParams($),Y=(J,W)=>{if(f8(J)||f8(W))return l;let H=G7(J.value,W.value);if(!H.valid)return h(G,{code:j.invalid_intersection_types}),l;if(g8(J)||g8(W))X.dirty();return{status:X.value,value:H.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(([J,W])=>Y(J,W));else return Y(this._def.left._parseSync({data:G.data,path:G.path,parent:G}),this._def.right._parseSync({data:G.data,path:G.path,parent:G}))}};J6.create=($,X,G)=>{return new J6({left:$,right:X,typeName:i.ZodIntersection,...X0(G)})};X5=class X5 extends H0{_parse($){let{status:X,ctx:G}=this._processInputParams($);if(G.parsedType!==v.array)return h(G,{code:j.invalid_type,expected:v.array,received:G.parsedType}),l;if(G.data.length<this._def.items.length)return h(G,{code:j.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),l;if(!this._def.rest&&G.data.length>this._def.items.length)h(G,{code:j.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),X.dirty();let J=[...G.data].map((W,H)=>{let U=this._def.items[H]||this._def.rest;if(!U)return null;return U._parse(new c1(G,W,G.path,H))}).filter((W)=>!!W);if(G.common.async)return Promise.all(J).then((W)=>{return a0.mergeArray(X,W)});else return a0.mergeArray(X,J)}get items(){return this._def.items}rest($){return new X5({...this._def,rest:$})}};X5.create=($,X)=>{if(!Array.isArray($))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new X5({items:$,typeName:i.ZodTuple,rest:null,...X0(X)})};q4=class q4 extends H0{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:X,ctx:G}=this._processInputParams($);if(G.parsedType!==v.object)return h(G,{code:j.invalid_type,expected:v.object,received:G.parsedType}),l;let Y=[],J=this._def.keyType,W=this._def.valueType;for(let H in G.data)Y.push({key:J._parse(new c1(G,H,G.path,H)),value:W._parse(new c1(G,G.data[H],G.path,H)),alwaysSet:H in G.data});if(G.common.async)return a0.mergeObjectAsync(X,Y);else return a0.mergeObjectSync(X,Y)}get element(){return this._def.valueType}static create($,X,G){if(X instanceof H0)return new q4({keyType:$,valueType:X,typeName:i.ZodRecord,...X0(G)});return new q4({keyType:u1.create(),valueType:$,typeName:i.ZodRecord,...X0(X)})}};O4=class O4 extends H0{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:X,ctx:G}=this._processInputParams($);if(G.parsedType!==v.map)return h(G,{code:j.invalid_type,expected:v.map,received:G.parsedType}),l;let Y=this._def.keyType,J=this._def.valueType,W=[...G.data.entries()].map(([H,U],F)=>{return{key:Y._parse(new c1(G,H,G.path,[F,"key"])),value:J._parse(new c1(G,U,G.path,[F,"value"]))}});if(G.common.async){let H=new Map;return Promise.resolve().then(async()=>{for(let U of W){let F=await U.key,M=await U.value;if(F.status==="aborted"||M.status==="aborted")return l;if(F.status==="dirty"||M.status==="dirty")X.dirty();H.set(F.value,M.value)}return{status:X.value,value:H}})}else{let H=new Map;for(let U of W){let{key:F,value:M}=U;if(F.status==="aborted"||M.status==="aborted")return l;if(F.status==="dirty"||M.status==="dirty")X.dirty();H.set(F.value,M.value)}return{status:X.value,value:H}}}};O4.create=($,X,G)=>{return new O4({valueType:X,keyType:$,typeName:i.ZodMap,...X0(G)})};_2=class _2 extends H0{_parse($){let{status:X,ctx:G}=this._processInputParams($);if(G.parsedType!==v.set)return h(G,{code:j.invalid_type,expected:v.set,received:G.parsedType}),l;let Y=this._def;if(Y.minSize!==null){if(G.data.size<Y.minSize.value)h(G,{code:j.too_small,minimum:Y.minSize.value,type:"set",inclusive:!0,exact:!1,message:Y.minSize.message}),X.dirty()}if(Y.maxSize!==null){if(G.data.size>Y.maxSize.value)h(G,{code:j.too_big,maximum:Y.maxSize.value,type:"set",inclusive:!0,exact:!1,message:Y.maxSize.message}),X.dirty()}let J=this._def.valueType;function W(U){let F=new Set;for(let M of U){if(M.status==="aborted")return l;if(M.status==="dirty")X.dirty();F.add(M.value)}return{status:X.value,value:F}}let H=[...G.data.values()].map((U,F)=>J._parse(new c1(G,U,G.path,F)));if(G.common.async)return Promise.all(H).then((U)=>W(U));else return W(H)}min($,X){return new _2({...this._def,minSize:{value:$,message:m.toString(X)}})}max($,X){return new _2({...this._def,maxSize:{value:$,message:m.toString(X)}})}size($,X){return this.min($,X).max($,X)}nonempty($){return this.min(1,$)}};_2.create=($,X)=>{return new _2({valueType:$,minSize:null,maxSize:null,typeName:i.ZodSet,...X0(X)})};e2=class e2 extends H0{constructor(){super(...arguments);this.validate=this.implement}_parse($){let{ctx:X}=this._processInputParams($);if(X.parsedType!==v.function)return h(X,{code:j.invalid_type,expected:v.function,received:X.parsedType}),l;function G(H,U){return F4({data:H,path:X.path,errorMaps:[X.common.contextualErrorMap,X.schemaErrorMap,s2(),w5].filter((F)=>!!F),issueData:{code:j.invalid_arguments,argumentsError:U}})}function Y(H,U){return F4({data:H,path:X.path,errorMaps:[X.common.contextualErrorMap,X.schemaErrorMap,s2(),w5].filter((F)=>!!F),issueData:{code:j.invalid_return_type,returnTypeError:U}})}let J={errorMap:X.common.contextualErrorMap},W=X.data;if(this._def.returns instanceof z2){let H=this;return H1(async function(...U){let F=new W1([]),M=await H._def.args.parseAsync(U,J).catch((A)=>{throw F.addIssue(G(U,A)),F}),Q=await Reflect.apply(W,this,M);return await H._def.returns._def.type.parseAsync(Q,J).catch((A)=>{throw F.addIssue(Y(Q,A)),F})})}else{let H=this;return H1(function(...U){let F=H._def.args.safeParse(U,J);if(!F.success)throw new W1([G(U,F.error)]);let M=Reflect.apply(W,this,F.data),Q=H._def.returns.safeParse(M,J);if(!Q.success)throw new W1([Y(M,Q.error)]);return Q.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...$){return new e2({...this._def,args:X5.create($).rest(h5.create())})}returns($){return new e2({...this._def,returns:$})}implement($){return this.parse($)}strictImplement($){return this.parse($)}static create($,X,G){return new e2({args:$?$:X5.create([]).rest(h5.create()),returns:X||h5.create(),typeName:i.ZodFunction,...X0(G)})}};W6=class W6 extends H0{get schema(){return this._def.getter()}_parse($){let{ctx:X}=this._processInputParams($);return this._def.getter()._parse({data:X.data,path:X.path,parent:X})}};W6.create=($,X)=>{return new W6({getter:$,typeName:i.ZodLazy,...X0(X)})};H6=class H6 extends H0{_parse($){if($.data!==this._def.value){let X=this._getOrReturnCtx($);return h(X,{received:X.data,code:j.invalid_literal,expected:this._def.value}),l}return{status:"valid",value:$.data}}get value(){return this._def.value}};H6.create=($,X)=>{return new H6({value:$,typeName:i.ZodLiteral,...X0(X)})};g5=class g5 extends H0{_parse($){if(typeof $.data!=="string"){let X=this._getOrReturnCtx($),G=this._def.values;return h(X,{expected:F0.joinValues(G),received:X.parsedType,code:j.invalid_type}),l}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has($.data)){let X=this._getOrReturnCtx($),G=this._def.values;return h(X,{received:X.data,code:j.invalid_enum_value,options:G}),l}return H1($.data)}get options(){return this._def.values}get enum(){let $={};for(let X of this._def.values)$[X]=X;return $}get Values(){let $={};for(let X of this._def.values)$[X]=X;return $}get Enum(){let $={};for(let X of this._def.values)$[X]=X;return $}extract($,X=this._def){return g5.create($,{...this._def,...X})}exclude($,X=this._def){return g5.create(this.options.filter((G)=>!$.includes(G)),{...this._def,...X})}};g5.create=aY;U6=class U6 extends H0{_parse($){let X=F0.getValidEnumValues(this._def.values),G=this._getOrReturnCtx($);if(G.parsedType!==v.string&&G.parsedType!==v.number){let Y=F0.objectValues(X);return h(G,{expected:F0.joinValues(Y),received:G.parsedType,code:j.invalid_type}),l}if(!this._cache)this._cache=new Set(F0.getValidEnumValues(this._def.values));if(!this._cache.has($.data)){let Y=F0.objectValues(X);return h(G,{received:G.data,code:j.invalid_enum_value,options:Y}),l}return H1($.data)}get enum(){return this._def.values}};U6.create=($,X)=>{return new U6({values:$,typeName:i.ZodNativeEnum,...X0(X)})};z2=class z2 extends H0{unwrap(){return this._def.type}_parse($){let{ctx:X}=this._processInputParams($);if(X.parsedType!==v.promise&&X.common.async===!1)return h(X,{code:j.invalid_type,expected:v.promise,received:X.parsedType}),l;let G=X.parsedType===v.promise?X.data:Promise.resolve(X.data);return H1(G.then((Y)=>{return this._def.type.parseAsync(Y,{path:X.path,errorMap:X.common.contextualErrorMap})}))}};z2.create=($,X)=>{return new z2({type:$,typeName:i.ZodPromise,...X0(X)})};r1=class r1 extends H0{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===i.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse($){let{status:X,ctx:G}=this._processInputParams($),Y=this._def.effect||null,J={addIssue:(W)=>{if(h(G,W),W.fatal)X.abort();else X.dirty()},get path(){return G.path}};if(J.addIssue=J.addIssue.bind(J),Y.type==="preprocess"){let W=Y.transform(G.data,J);if(G.common.async)return Promise.resolve(W).then(async(H)=>{if(X.value==="aborted")return l;let U=await this._def.schema._parseAsync({data:H,path:G.path,parent:G});if(U.status==="aborted")return l;if(U.status==="dirty")return V2(U.value);if(X.value==="dirty")return V2(U.value);return U});else{if(X.value==="aborted")return l;let H=this._def.schema._parseSync({data:W,path:G.path,parent:G});if(H.status==="aborted")return l;if(H.status==="dirty")return V2(H.value);if(X.value==="dirty")return V2(H.value);return H}}if(Y.type==="refinement"){let W=(H)=>{let U=Y.refinement(H,J);if(G.common.async)return Promise.resolve(U);if(U instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return H};if(G.common.async===!1){let H=this._def.schema._parseSync({data:G.data,path:G.path,parent:G});if(H.status==="aborted")return l;if(H.status==="dirty")X.dirty();return W(H.value),{status:X.value,value:H.value}}else return this._def.schema._parseAsync({data:G.data,path:G.path,parent:G}).then((H)=>{if(H.status==="aborted")return l;if(H.status==="dirty")X.dirty();return W(H.value).then(()=>{return{status:X.value,value:H.value}})})}if(Y.type==="transform")if(G.common.async===!1){let W=this._def.schema._parseSync({data:G.data,path:G.path,parent:G});if(!b5(W))return l;let H=Y.transform(W.value,J);if(H instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:X.value,value:H}}else return this._def.schema._parseAsync({data:G.data,path:G.path,parent:G}).then((W)=>{if(!b5(W))return l;return Promise.resolve(Y.transform(W.value,J)).then((H)=>({status:X.value,value:H}))});F0.assertNever(Y)}};r1.create=($,X,G)=>{return new r1({schema:$,typeName:i.ZodEffects,effect:X,...X0(G)})};r1.createWithPreprocess=($,X,G)=>{return new r1({schema:X,effect:{type:"preprocess",transform:$},typeName:i.ZodEffects,...X0(G)})};l1=class l1 extends H0{_parse($){if(this._getType($)===v.undefined)return H1(void 0);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}};l1.create=($,X)=>{return new l1({innerType:$,typeName:i.ZodOptional,...X0(X)})};z5=class z5 extends H0{_parse($){if(this._getType($)===v.null)return H1(null);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}};z5.create=($,X)=>{return new z5({innerType:$,typeName:i.ZodNullable,...X0(X)})};K6=class K6 extends H0{_parse($){let{ctx:X}=this._processInputParams($),G=X.data;if(X.parsedType===v.undefined)G=this._def.defaultValue();return this._def.innerType._parse({data:G,path:X.path,parent:X})}removeDefault(){return this._def.innerType}};K6.create=($,X)=>{return new K6({innerType:$,typeName:i.ZodDefault,defaultValue:typeof X.default==="function"?X.default:()=>X.default,...X0(X)})};F6=class F6 extends H0{_parse($){let{ctx:X}=this._processInputParams($),G={...X,common:{...X.common,issues:[]}},Y=this._def.innerType._parse({data:G.data,path:G.path,parent:{...G}});if(a2(Y))return Y.then((J)=>{return{status:"valid",value:J.status==="valid"?J.value:this._def.catchValue({get error(){return new W1(G.common.issues)},input:G.data})}});else return{status:"valid",value:Y.status==="valid"?Y.value:this._def.catchValue({get error(){return new W1(G.common.issues)},input:G.data})}}removeCatch(){return this._def.innerType}};F6.create=($,X)=>{return new F6({innerType:$,typeName:i.ZodCatch,catchValue:typeof X.catch==="function"?X.catch:()=>X.catch,...X0(X)})};Z4=class Z4 extends H0{_parse($){if(this._getType($)!==v.nan){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.nan,received:G.parsedType}),l}return{status:"valid",value:$.data}}};Z4.create=($)=>{return new Z4({typeName:i.ZodNaN,...X0($)})};uA=Symbol("zod_brand");p8=class p8 extends H0{_parse($){let{ctx:X}=this._processInputParams($),G=X.data;return this._def.type._parse({data:G,path:X.path,parent:X})}unwrap(){return this._def.type}};R4=class R4 extends H0{_parse($){let{status:X,ctx:G}=this._processInputParams($);if(G.common.async)return(async()=>{let J=await this._def.in._parseAsync({data:G.data,path:G.path,parent:G});if(J.status==="aborted")return l;if(J.status==="dirty")return X.dirty(),V2(J.value);else return this._def.out._parseAsync({data:J.value,path:G.path,parent:G})})();else{let Y=this._def.in._parseSync({data:G.data,path:G.path,parent:G});if(Y.status==="aborted")return l;if(Y.status==="dirty")return X.dirty(),{status:"dirty",value:Y.value};else return this._def.out._parseSync({data:Y.value,path:G.path,parent:G})}}static create($,X){return new R4({in:$,out:X,typeName:i.ZodPipeline})}};M6=class M6 extends H0{_parse($){let X=this._def.innerType._parse($),G=(Y)=>{if(b5(Y))Y.value=Object.freeze(Y.value);return Y};return a2(X)?X.then((Y)=>G(Y)):G(X)}unwrap(){return this._def.innerType}};M6.create=($,X)=>{return new M6({innerType:$,typeName:i.ZodReadonly,...X0(X)})};dA={object:j0.lazycreate};(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"})(i||(i={}));eY=u1.create,$J=y5.create,cA=Z4.create,rA=f5.create,XJ=$6.create,iA=N2.create,nA=M4.create,oA=X6.create,sA=G6.create,aA=w2.create,tA=h5.create,eA=$5.create,$B=Q4.create,XB=d1.create,GB=j0.create,YB=j0.strictCreate,JB=Y6.create,WB=m8.create,HB=J6.create,UB=X5.create,KB=q4.create,FB=O4.create,MB=_2.create,QB=e2.create,qB=W6.create,OB=H6.create,ZB=g5.create,RB=U6.create,AB=z2.create,BB=r1.create,VB=l1.create,NB=z5.create,wB=r1.createWithPreprocess,_B=R4.create,LB={string:($)=>u1.create({...$,coerce:!0}),number:($)=>y5.create({...$,coerce:!0}),boolean:($)=>$6.create({...$,coerce:!0}),bigint:($)=>f5.create({...$,coerce:!0}),date:($)=>N2.create({...$,coerce:!0})},CB=l});var K={};b8(K,{void:()=>$B,util:()=>F0,unknown:()=>tA,union:()=>JB,undefined:()=>oA,tuple:()=>UB,transformer:()=>BB,symbol:()=>nA,string:()=>eY,strictObject:()=>YB,setErrorMap:()=>NA,set:()=>MB,record:()=>KB,quotelessJson:()=>BA,promise:()=>AB,preprocess:()=>wB,pipeline:()=>_B,ostring:()=>zB,optional:()=>VB,onumber:()=>DB,oboolean:()=>PB,objectUtil:()=>t$,object:()=>GB,number:()=>$J,nullable:()=>NB,null:()=>sA,never:()=>eA,nativeEnum:()=>RB,nan:()=>cA,map:()=>FB,makeIssue:()=>F4,literal:()=>OB,lazy:()=>qB,late:()=>dA,isValid:()=>b5,isDirty:()=>g8,isAsync:()=>a2,isAborted:()=>f8,intersection:()=>HB,instanceof:()=>lA,getParsedType:()=>e1,getErrorMap:()=>s2,function:()=>QB,enum:()=>ZB,effect:()=>BB,discriminatedUnion:()=>WB,defaultErrorMap:()=>w5,datetimeRegex:()=>sY,date:()=>iA,custom:()=>tY,coerce:()=>LB,boolean:()=>XJ,bigint:()=>rA,array:()=>XB,any:()=>aA,addIssueToContext:()=>h,ZodVoid:()=>Q4,ZodUnknown:()=>h5,ZodUnion:()=>Y6,ZodUndefined:()=>X6,ZodType:()=>H0,ZodTuple:()=>X5,ZodTransformer:()=>r1,ZodSymbol:()=>M4,ZodString:()=>u1,ZodSet:()=>_2,ZodSchema:()=>H0,ZodRecord:()=>q4,ZodReadonly:()=>M6,ZodPromise:()=>z2,ZodPipeline:()=>R4,ZodParsedType:()=>v,ZodOptional:()=>l1,ZodObject:()=>j0,ZodNumber:()=>y5,ZodNullable:()=>z5,ZodNull:()=>G6,ZodNever:()=>$5,ZodNativeEnum:()=>U6,ZodNaN:()=>Z4,ZodMap:()=>O4,ZodLiteral:()=>H6,ZodLazy:()=>W6,ZodIssueCode:()=>j,ZodIntersection:()=>J6,ZodFunction:()=>e2,ZodFirstPartyTypeKind:()=>i,ZodError:()=>W1,ZodEnum:()=>g5,ZodEffects:()=>r1,ZodDiscriminatedUnion:()=>m8,ZodDefault:()=>K6,ZodDate:()=>N2,ZodCatch:()=>F6,ZodBranded:()=>p8,ZodBoolean:()=>$6,ZodBigInt:()=>f5,ZodArray:()=>d1,ZodAny:()=>w2,Schema:()=>H0,ParseStatus:()=>a0,OK:()=>H1,NEVER:()=>CB,INVALID:()=>l,EMPTY_PATH:()=>wA,DIRTY:()=>V2,BRAND:()=>uA});var Y7=B(()=>{y8();$7();lY();K4();GJ();h8()});var G5=B(()=>{Y7();Y7()});var TB;var YJ=B(()=>{G5();TB=K.object({url:K.string(),authToken:K.string().optional()})});import{openSync as EB,writeSync as IB}from"fs";class t0{static instance=null;level;context;useStderr;format;logFile;fileHandle;constructor($={},X){if(this.level=$.level??3,this.context=$.context??void 0,this.useStderr=$.useStderr??!1,this.format=$.format??"text",this.logFile=$.logFile,X!==void 0)this.fileHandle=X;else if(this.logFile)try{this.fileHandle=EB(this.logFile,"a")}catch{}}static getInstance($){if(!t0.instance)t0.instance=new t0($);else if($?.useStderr!==void 0)t0.instance.useStderr=$.useStderr;return t0.instance}static resetInstance(){t0.instance=null}static createFresh($){return new t0($)}formatEntry($,X,G){let Y=new Date().toISOString();if(this.format==="json"){let J={ts:Y,level:$,msg:X};if(this.context)J.ctx=this.context;if(G.length>0)J.data=G;return JSON.stringify(J)}return this.context?`[${Y}] [${this.context}] ${X}`:`[${Y}] ${X}`}write($,X,G,Y){if(this.format==="json")$(this.formatEntry(X,G,Y));else if(Y.length>0)$(this.formatEntry(X,G,[]),...Y);else $(this.formatEntry(X,G,[]));if(this.fileHandle!==void 0){let J=this.formatJsonEntry(X,G,Y);try{IB(this.fileHandle,J+`
3
+ `)}catch{}}}formatJsonEntry($,X,G){let Y={ts:new Date().toISOString(),level:$,msg:X};if(this.context)Y.ctx=this.context;if(G.length>0)Y.data=G;return JSON.stringify(Y)}silly($,...X){if(this.level<=0)this.write(console.debug.bind(console),"silly",$,X)}verbose($,...X){if(this.level<=1)this.write(console.debug.bind(console),"verbose",$,X)}debug($,...X){if(this.level<=2)this.write(console.debug.bind(console),"debug",$,X)}info($,...X){if(this.level<=3){let G=this.useStderr?console.error.bind(console):console.info.bind(console);this.write(G,"info",$,X)}}warn($,...X){if(this.level<=4)this.write(console.warn.bind(console),"warn",$,X)}error($,...X){if(this.level<=5)this.write(console.error.bind(console),"error",$,X)}child($){return new t0({level:this.level,context:$,useStderr:this.useStderr,format:this.format},this.fileHandle)}setUseStderr($){this.useStderr=$}}var jB;var J7=B(()=>{jB=t0.getInstance()});var A4=d((Hk,WJ)=>{var SB=Object.prototype.toString;WJ.exports=function(X){if(X===void 0)return"undefined";if(X===null)return"null";var G=typeof X;if(G==="boolean")return"boolean";if(G==="string")return"string";if(G==="number")return"number";if(G==="symbol")return"symbol";if(G==="function")return hB(X)?"generatorfunction":"function";if(kB(X))return"array";if(gB(X))return"buffer";if(fB(X))return"arguments";if(xB(X))return"date";if(vB(X))return"error";if(bB(X))return"regexp";switch(JJ(X)){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(yB(X))return"generator";switch(G=SB.call(X),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 JJ($){return typeof $.constructor==="function"?$.constructor.name:null}function kB($){if(Array.isArray)return Array.isArray($);return $ instanceof Array}function vB($){return $ instanceof Error||typeof $.message==="string"&&$.constructor&&typeof $.constructor.stackTraceLimit==="number"}function xB($){if($ instanceof Date)return!0;return typeof $.toDateString==="function"&&typeof $.getDate==="function"&&typeof $.setDate==="function"}function bB($){if($ instanceof RegExp)return!0;return typeof $.flags==="string"&&typeof $.ignoreCase==="boolean"&&typeof $.multiline==="boolean"&&typeof $.global==="boolean"}function hB($,X){return JJ($)==="GeneratorFunction"}function yB($){return typeof $.throw==="function"&&typeof $.return==="function"&&typeof $.next==="function"}function fB($){try{if(typeof $.length==="number"&&typeof $.callee==="function")return!0}catch(X){if(X.message.indexOf("callee")!==-1)return!0}return!1}function gB($){if($.constructor&&typeof $.constructor.isBuffer==="function")return $.constructor.isBuffer($);return!1}});var UJ=d((Uk,HJ)=>{/*!
4
4
  * is-extendable <https://github.com/jonschlinkert/is-extendable>
5
5
  *
6
6
  * Copyright (c) 2015, Jon Schlinkert.
7
7
  * Licensed under the MIT License.
8
- */UJ.exports=function(X){return typeof X<"u"&&X!==null&&(typeof X==="object"||typeof X==="function")}});var QJ=d((lS,MJ)=>{var FJ=KJ();MJ.exports=function(X){if(!FJ(X))X={};var G=arguments.length;for(var Y=1;Y<G;Y++){var J=arguments[Y];if(FJ(J))fV(X,J)}return X};function fV($,X){for(var G in X)if(gV(X,G))$[G]=X[G]}function gV($,X){return Object.prototype.hasOwnProperty.call($,X)}});var RJ=d((cS,OJ)=>{var mV=Z4(),pV=QJ();OJ.exports=function($,X){if(typeof X==="function")X={parse:X};var G=dV($),Y={section_delimiter:"---",parse:cV},J=pV({},Y,X),W=J.section_delimiter,H=G.content.split(/\r?\n/),U=null,F=qJ(),M=[],Q=[];function q(P){G.content=P,U=[],M=[]}function Z(P){if(Q.length)F.key=lV(Q[0],W),F.content=P,J.parse(F,U),U.push(F),F=qJ(),M=[],Q=[]}for(var A=0;A<H.length;A++){var _=H[A],z=Q.length,D=_.trim();if(uV(D,W)){if(D.length===3&&A!==0){if(z===0||z===2){M.push(_);continue}Q.push(D),F.data=M.join(`
8
+ */HJ.exports=function(X){return typeof X<"u"&&X!==null&&(typeof X==="object"||typeof X==="function")}});var MJ=d((Kk,FJ)=>{var KJ=UJ();FJ.exports=function(X){if(!KJ(X))X={};var G=arguments.length;for(var Y=1;Y<G;Y++){var J=arguments[Y];if(KJ(J))mB(X,J)}return X};function mB($,X){for(var G in X)if(pB(X,G))$[G]=X[G]}function pB($,X){return Object.prototype.hasOwnProperty.call($,X)}});var OJ=d((Fk,qJ)=>{var uB=A4(),dB=MJ();qJ.exports=function($,X){if(typeof X==="function")X={parse:X};var G=cB($),Y={section_delimiter:"---",parse:iB},J=dB({},Y,X),W=J.section_delimiter,H=G.content.split(/\r?\n/),U=null,F=QJ(),M=[],Q=[];function q(P){G.content=P,U=[],M=[]}function A(P){if(Q.length)F.key=rB(Q[0],W),F.content=P,J.parse(F,U),U.push(F),F=QJ(),M=[],Q=[]}for(var Z=0;Z<H.length;Z++){var _=H[Z],z=Q.length,D=_.trim();if(lB(D,W)){if(D.length===3&&Z!==0){if(z===0||z===2){M.push(_);continue}Q.push(D),F.data=M.join(`
9
9
  `),M=[];continue}if(U===null)q(M.join(`
10
- `));if(z===2)Z(M.join(`
10
+ `));if(z===2)A(M.join(`
11
11
  `));Q.push(D);continue}M.push(_)}if(U===null)q(M.join(`
12
- `));else Z(M.join(`
13
- `));return G.sections=U,G};function uV($,X){if($.slice(0,X.length)!==X)return!1;if($.charAt(X.length+1)===X.slice(-1))return!1;return!0}function dV($){if(mV($)!=="object")$={content:$};if(typeof $.content!=="string"&&!rV($.content))throw TypeError("expected a buffer or string");return $.content=$.content.toString(),$.sections=[],$}function lV($,X){return $?$.slice(X.length).trim():""}function qJ(){return{key:"",data:"",content:""}}function cV($){return $}function rV($){if($&&$.constructor&&typeof $.constructor.isBuffer==="function")return $.constructor.isBuffer($);return!1}});var L2=d((tV,P2)=>{function ZJ($){return typeof $>"u"||$===null}function iV($){return typeof $==="object"&&$!==null}function nV($){if(Array.isArray($))return $;else if(ZJ($))return[];return[$]}function oV($,X){var G,Y,J,W;if(X){W=Object.keys(X);for(G=0,Y=W.length;G<Y;G+=1)J=W[G],$[J]=X[J]}return $}function sV($,X){var G="",Y;for(Y=0;Y<X;Y+=1)G+=$;return G}function aV($){return $===0&&Number.NEGATIVE_INFINITY===1/$}tV.isNothing=ZJ;tV.isObject=iV;tV.toArray=nV;tV.repeat=sV;tV.isNegativeZero=aV;tV.extend=oV});var q6=d((rS,AJ)=>{function A4($,X){if(Error.call(this),this.name="YAMLException",this.reason=$,this.mark=X,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}A4.prototype=Object.create(Error.prototype);A4.prototype.constructor=A4;A4.prototype.toString=function(X){var G=this.name+": ";if(G+=this.reason||"(unknown reason)",!X&&this.mark)G+=" "+this.mark.toString();return G};AJ.exports=A4});var NJ=d((iS,BJ)=>{var VJ=L2();function X7($,X,G,Y,J){this.name=$,this.buffer=X,this.position=G,this.line=Y,this.column=J}X7.prototype.getSnippet=function(X,G){var Y,J,W,H,U;if(!this.buffer)return null;X=X||4,G=G||75,Y="",J=this.position;while(J>0&&`\x00\r
12
+ `));else A(M.join(`
13
+ `));return G.sections=U,G};function lB($,X){if($.slice(0,X.length)!==X)return!1;if($.charAt(X.length+1)===X.slice(-1))return!1;return!0}function cB($){if(uB($)!=="object")$={content:$};if(typeof $.content!=="string"&&!nB($.content))throw TypeError("expected a buffer or string");return $.content=$.content.toString(),$.sections=[],$}function rB($,X){return $?$.slice(X.length).trim():""}function QJ(){return{key:"",data:"",content:""}}function iB($){return $}function nB($){if($&&$.constructor&&typeof $.constructor.isBuffer==="function")return $.constructor.isBuffer($);return!1}});var P2=d(($V,D2)=>{function ZJ($){return typeof $>"u"||$===null}function oB($){return typeof $==="object"&&$!==null}function sB($){if(Array.isArray($))return $;else if(ZJ($))return[];return[$]}function aB($,X){var G,Y,J,W;if(X){W=Object.keys(X);for(G=0,Y=W.length;G<Y;G+=1)J=W[G],$[J]=X[J]}return $}function tB($,X){var G="",Y;for(Y=0;Y<X;Y+=1)G+=$;return G}function eB($){return $===0&&Number.NEGATIVE_INFINITY===1/$}$V.isNothing=ZJ;$V.isObject=oB;$V.toArray=sB;$V.repeat=tB;$V.isNegativeZero=eB;$V.extend=aB});var Q6=d((Mk,RJ)=>{function B4($,X){if(Error.call(this),this.name="YAMLException",this.reason=$,this.mark=X,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}B4.prototype=Object.create(Error.prototype);B4.prototype.constructor=B4;B4.prototype.toString=function(X){var G=this.name+": ";if(G+=this.reason||"(unknown reason)",!X&&this.mark)G+=" "+this.mark.toString();return G};RJ.exports=B4});var VJ=d((Qk,BJ)=>{var AJ=P2();function W7($,X,G,Y,J){this.name=$,this.buffer=X,this.position=G,this.line=Y,this.column=J}W7.prototype.getSnippet=function(X,G){var Y,J,W,H,U;if(!this.buffer)return null;X=X||4,G=G||75,Y="",J=this.position;while(J>0&&`\x00\r
14
14
  \x85\u2028\u2029`.indexOf(this.buffer.charAt(J-1))===-1)if(J-=1,this.position-J>G/2-1){Y=" ... ",J+=5;break}W="",H=this.position;while(H<this.buffer.length&&`\x00\r
15
- \x85\u2028\u2029`.indexOf(this.buffer.charAt(H))===-1)if(H+=1,H-this.position>G/2-1){W=" ... ",H-=5;break}return U=this.buffer.slice(J,H),VJ.repeat(" ",X)+Y+U+W+`
16
- `+VJ.repeat(" ",X+this.position-J+Y.length)+"^"};X7.prototype.toString=function(X){var G,Y="";if(this.name)Y+='in "'+this.name+'" ';if(Y+="at line "+(this.line+1)+", column "+(this.column+1),!X){if(G=this.getSnippet(),G)Y+=`:
17
- `+G}return Y};BJ.exports=X7});var u0=d((nS,_J)=>{var wJ=q6(),WB=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],HB=["scalar","sequence","mapping"];function UB($){var X={};if($!==null)Object.keys($).forEach(function(G){$[G].forEach(function(Y){X[String(Y)]=G})});return X}function KB($,X){if(X=X||{},Object.keys(X).forEach(function(G){if(WB.indexOf(G)===-1)throw new wJ('Unknown option "'+G+'" is met in definition of "'+$+'" YAML type.')}),this.tag=$,this.kind=X.kind||null,this.resolve=X.resolve||function(){return!0},this.construct=X.construct||function(G){return G},this.instanceOf=X.instanceOf||null,this.predicate=X.predicate||null,this.represent=X.represent||null,this.defaultStyle=X.defaultStyle||null,this.styleAliases=UB(X.styleAliases||null),HB.indexOf(this.kind)===-1)throw new wJ('Unknown kind "'+this.kind+'" is specified for "'+$+'" YAML type.')}_J.exports=KB});var C2=d((oS,DJ)=>{var zJ=L2(),f8=q6(),FB=u0();function G7($,X,G){var Y=[];return $.include.forEach(function(J){G=G7(J,X,G)}),$[X].forEach(function(J){G.forEach(function(W,H){if(W.tag===J.tag&&W.kind===J.kind)Y.push(H)}),G.push(J)}),G.filter(function(J,W){return Y.indexOf(W)===-1})}function MB(){var $={scalar:{},sequence:{},mapping:{},fallback:{}},X,G;function Y(J){$[J.kind][J.tag]=$.fallback[J.tag]=J}for(X=0,G=arguments.length;X<G;X+=1)arguments[X].forEach(Y);return $}function O6($){this.include=$.include||[],this.implicit=$.implicit||[],this.explicit=$.explicit||[],this.implicit.forEach(function(X){if(X.loadKind&&X.loadKind!=="scalar")throw new f8("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=G7(this,"implicit",[]),this.compiledExplicit=G7(this,"explicit",[]),this.compiledTypeMap=MB(this.compiledImplicit,this.compiledExplicit)}O6.DEFAULT=null;O6.create=function(){var X,G;switch(arguments.length){case 1:X=O6.DEFAULT,G=arguments[0];break;case 2:X=arguments[0],G=arguments[1];break;default:throw new f8("Wrong number of arguments for Schema.create function")}if(X=zJ.toArray(X),G=zJ.toArray(G),!X.every(function(Y){return Y instanceof O6}))throw new f8("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!G.every(function(Y){return Y instanceof FB}))throw new f8("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new O6({include:X,explicit:G})};DJ.exports=O6});var LJ=d((sS,PJ)=>{var QB=u0();PJ.exports=new QB("tag:yaml.org,2002:str",{kind:"scalar",construct:function($){return $!==null?$:""}})});var TJ=d((aS,CJ)=>{var qB=u0();CJ.exports=new qB("tag:yaml.org,2002:seq",{kind:"sequence",construct:function($){return $!==null?$:[]}})});var IJ=d((tS,EJ)=>{var OB=u0();EJ.exports=new OB("tag:yaml.org,2002:map",{kind:"mapping",construct:function($){return $!==null?$:{}}})});var g8=d((eS,jJ)=>{var RB=C2();jJ.exports=new RB({explicit:[LJ(),TJ(),IJ()]})});var kJ=d(($k,SJ)=>{var ZB=u0();function AB($){if($===null)return!0;var X=$.length;return X===1&&$==="~"||X===4&&($==="null"||$==="Null"||$==="NULL")}function VB(){return null}function BB($){return $===null}SJ.exports=new ZB("tag:yaml.org,2002:null",{kind:"scalar",resolve:AB,construct:VB,predicate:BB,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var xJ=d((Xk,vJ)=>{var NB=u0();function wB($){if($===null)return!1;var X=$.length;return X===4&&($==="true"||$==="True"||$==="TRUE")||X===5&&($==="false"||$==="False"||$==="FALSE")}function _B($){return $==="true"||$==="True"||$==="TRUE"}function zB($){return Object.prototype.toString.call($)==="[object Boolean]"}vJ.exports=new NB("tag:yaml.org,2002:bool",{kind:"scalar",resolve:wB,construct:_B,predicate:zB,represent:{lowercase:function($){return $?"true":"false"},uppercase:function($){return $?"TRUE":"FALSE"},camelcase:function($){return $?"True":"False"}},defaultStyle:"lowercase"})});var hJ=d((Gk,bJ)=>{var DB=L2(),PB=u0();function LB($){return 48<=$&&$<=57||65<=$&&$<=70||97<=$&&$<=102}function CB($){return 48<=$&&$<=55}function TB($){return 48<=$&&$<=57}function EB($){if($===null)return!1;var X=$.length,G=0,Y=!1,J;if(!X)return!1;if(J=$[G],J==="-"||J==="+")J=$[++G];if(J==="0"){if(G+1===X)return!0;if(J=$[++G],J==="b"){G++;for(;G<X;G++){if(J=$[G],J==="_")continue;if(J!=="0"&&J!=="1")return!1;Y=!0}return Y&&J!=="_"}if(J==="x"){G++;for(;G<X;G++){if(J=$[G],J==="_")continue;if(!LB($.charCodeAt(G)))return!1;Y=!0}return Y&&J!=="_"}for(;G<X;G++){if(J=$[G],J==="_")continue;if(!CB($.charCodeAt(G)))return!1;Y=!0}return Y&&J!=="_"}if(J==="_")return!1;for(;G<X;G++){if(J=$[G],J==="_")continue;if(J===":")break;if(!TB($.charCodeAt(G)))return!1;Y=!0}if(!Y||J==="_")return!1;if(J!==":")return!0;return/^(:[0-5]?[0-9])+$/.test($.slice(G))}function IB($){var X=$,G=1,Y,J,W=[];if(X.indexOf("_")!==-1)X=X.replace(/_/g,"");if(Y=X[0],Y==="-"||Y==="+"){if(Y==="-")G=-1;X=X.slice(1),Y=X[0]}if(X==="0")return 0;if(Y==="0"){if(X[1]==="b")return G*parseInt(X.slice(2),2);if(X[1]==="x")return G*parseInt(X,16);return G*parseInt(X,8)}if(X.indexOf(":")!==-1)return X.split(":").forEach(function(H){W.unshift(parseInt(H,10))}),X=0,J=1,W.forEach(function(H){X+=H*J,J*=60}),G*X;return G*parseInt(X,10)}function jB($){return Object.prototype.toString.call($)==="[object Number]"&&($%1===0&&!DB.isNegativeZero($))}bJ.exports=new PB("tag:yaml.org,2002:int",{kind:"scalar",resolve:EB,construct:IB,predicate:jB,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 gJ=d((Yk,fJ)=>{var yJ=L2(),SB=u0(),kB=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 vB($){if($===null)return!1;if(!kB.test($)||$[$.length-1]==="_")return!1;return!0}function xB($){var X,G,Y,J;if(X=$.replace(/_/g,"").toLowerCase(),G=X[0]==="-"?-1:1,J=[],"+-".indexOf(X[0])>=0)X=X.slice(1);if(X===".inf")return G===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(X===".nan")return NaN;else if(X.indexOf(":")>=0)return X.split(":").forEach(function(W){J.unshift(parseFloat(W,10))}),X=0,Y=1,J.forEach(function(W){X+=W*Y,Y*=60}),G*X;return G*parseFloat(X,10)}var bB=/^[-+]?[0-9]+e/;function hB($,X){var G;if(isNaN($))switch(X){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===$)switch(X){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===$)switch(X){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(yJ.isNegativeZero($))return"-0.0";return G=$.toString(10),bB.test(G)?G.replace("e",".e"):G}function yB($){return Object.prototype.toString.call($)==="[object Number]"&&($%1!==0||yJ.isNegativeZero($))}fJ.exports=new SB("tag:yaml.org,2002:float",{kind:"scalar",resolve:vB,construct:xB,predicate:yB,represent:hB,defaultStyle:"lowercase"})});var Y7=d((Jk,mJ)=>{var fB=C2();mJ.exports=new fB({include:[g8()],implicit:[kJ(),xJ(),hJ(),gJ()]})});var J7=d((Wk,pJ)=>{var gB=C2();pJ.exports=new gB({include:[Y7()]})});var cJ=d((Hk,lJ)=>{var mB=u0(),uJ=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),dJ=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 pB($){if($===null)return!1;if(uJ.exec($)!==null)return!0;if(dJ.exec($)!==null)return!0;return!1}function uB($){var X,G,Y,J,W,H,U,F=0,M=null,Q,q,Z;if(X=uJ.exec($),X===null)X=dJ.exec($);if(X===null)throw Error("Date resolve error");if(G=+X[1],Y=+X[2]-1,J=+X[3],!X[4])return new Date(Date.UTC(G,Y,J));if(W=+X[4],H=+X[5],U=+X[6],X[7]){F=X[7].slice(0,3);while(F.length<3)F+="0";F=+F}if(X[9]){if(Q=+X[10],q=+(X[11]||0),M=(Q*60+q)*60000,X[9]==="-")M=-M}if(Z=new Date(Date.UTC(G,Y,J,W,H,U,F)),M)Z.setTime(Z.getTime()-M);return Z}function dB($){return $.toISOString()}lJ.exports=new mB("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:pB,construct:uB,instanceOf:Date,represent:dB})});var iJ=d((Uk,rJ)=>{var lB=u0();function cB($){return $==="<<"||$===null}rJ.exports=new lB("tag:yaml.org,2002:merge",{kind:"scalar",resolve:cB})});var oJ=d((Kk,nJ)=>{var T2;try{W7=N5,T2=W7("buffer").Buffer}catch($){}var W7,rB=u0(),H7=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
18
- \r`;function iB($){if($===null)return!1;var X,G,Y=0,J=$.length,W=H7;for(G=0;G<J;G++){if(X=W.indexOf($.charAt(G)),X>64)continue;if(X<0)return!1;Y+=6}return Y%8===0}function nB($){var X,G,Y=$.replace(/[\r\n=]/g,""),J=Y.length,W=H7,H=0,U=[];for(X=0;X<J;X++){if(X%4===0&&X)U.push(H>>16&255),U.push(H>>8&255),U.push(H&255);H=H<<6|W.indexOf(Y.charAt(X))}if(G=J%4*6,G===0)U.push(H>>16&255),U.push(H>>8&255),U.push(H&255);else if(G===18)U.push(H>>10&255),U.push(H>>2&255);else if(G===12)U.push(H>>4&255);if(T2)return T2.from?T2.from(U):new T2(U);return U}function oB($){var X="",G=0,Y,J,W=$.length,H=H7;for(Y=0;Y<W;Y++){if(Y%3===0&&Y)X+=H[G>>18&63],X+=H[G>>12&63],X+=H[G>>6&63],X+=H[G&63];G=(G<<8)+$[Y]}if(J=W%3,J===0)X+=H[G>>18&63],X+=H[G>>12&63],X+=H[G>>6&63],X+=H[G&63];else if(J===2)X+=H[G>>10&63],X+=H[G>>4&63],X+=H[G<<2&63],X+=H[64];else if(J===1)X+=H[G>>2&63],X+=H[G<<4&63],X+=H[64],X+=H[64];return X}function sB($){return T2&&T2.isBuffer($)}nJ.exports=new rB("tag:yaml.org,2002:binary",{kind:"scalar",resolve:iB,construct:nB,predicate:sB,represent:oB})});var aJ=d((Mk,sJ)=>{var aB=u0(),tB=Object.prototype.hasOwnProperty,eB=Object.prototype.toString;function $N($){if($===null)return!0;var X=[],G,Y,J,W,H,U=$;for(G=0,Y=U.length;G<Y;G+=1){if(J=U[G],H=!1,eB.call(J)!=="[object Object]")return!1;for(W in J)if(tB.call(J,W))if(!H)H=!0;else return!1;if(!H)return!1;if(X.indexOf(W)===-1)X.push(W);else return!1}return!0}function XN($){return $!==null?$:[]}sJ.exports=new aB("tag:yaml.org,2002:omap",{kind:"sequence",resolve:$N,construct:XN})});var eJ=d((Qk,tJ)=>{var GN=u0(),YN=Object.prototype.toString;function JN($){if($===null)return!0;var X,G,Y,J,W,H=$;W=Array(H.length);for(X=0,G=H.length;X<G;X+=1){if(Y=H[X],YN.call(Y)!=="[object Object]")return!1;if(J=Object.keys(Y),J.length!==1)return!1;W[X]=[J[0],Y[J[0]]]}return!0}function WN($){if($===null)return[];var X,G,Y,J,W,H=$;W=Array(H.length);for(X=0,G=H.length;X<G;X+=1)Y=H[X],J=Object.keys(Y),W[X]=[J[0],Y[J[0]]];return W}tJ.exports=new GN("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:JN,construct:WN})});var XW=d((qk,$W)=>{var HN=u0(),UN=Object.prototype.hasOwnProperty;function KN($){if($===null)return!0;var X,G=$;for(X in G)if(UN.call(G,X)){if(G[X]!==null)return!1}return!0}function FN($){return $!==null?$:{}}$W.exports=new HN("tag:yaml.org,2002:set",{kind:"mapping",resolve:KN,construct:FN})});var R6=d((Ok,GW)=>{var MN=C2();GW.exports=new MN({include:[J7()],implicit:[cJ(),iJ()],explicit:[oJ(),aJ(),eJ(),XW()]})});var JW=d((Rk,YW)=>{var QN=u0();function qN(){return!0}function ON(){return}function RN(){return""}function ZN($){return typeof $>"u"}YW.exports=new QN("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:qN,construct:ON,predicate:ZN,represent:RN})});var HW=d((Zk,WW)=>{var AN=u0();function VN($){if($===null)return!1;if($.length===0)return!1;var X=$,G=/\/([gim]*)$/.exec($),Y="";if(X[0]==="/"){if(G)Y=G[1];if(Y.length>3)return!1;if(X[X.length-Y.length-1]!=="/")return!1}return!0}function BN($){var X=$,G=/\/([gim]*)$/.exec($),Y="";if(X[0]==="/"){if(G)Y=G[1];X=X.slice(1,X.length-Y.length-1)}return new RegExp(X,Y)}function NN($){var X="/"+$.source+"/";if($.global)X+="g";if($.multiline)X+="m";if($.ignoreCase)X+="i";return X}function wN($){return Object.prototype.toString.call($)==="[object RegExp]"}WW.exports=new AN("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:VN,construct:BN,predicate:wN,represent:NN})});var KW=d((Ak,UW)=>{var m8;try{U7=N5,m8=U7("esprima")}catch($){if(typeof window<"u")m8=window.esprima}var U7,_N=u0();function zN($){if($===null)return!1;try{var X="("+$+")",G=m8.parse(X,{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(Y){return!1}}function DN($){var X="("+$+")",G=m8.parse(X,{range:!0}),Y=[],J;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(W){Y.push(W.name)}),J=G.body[0].expression.body.range,G.body[0].expression.body.type==="BlockStatement")return Function(Y,X.slice(J[0]+1,J[1]-1));return Function(Y,"return "+X.slice(J[0],J[1]))}function PN($){return $.toString()}function LN($){return Object.prototype.toString.call($)==="[object Function]"}UW.exports=new _N("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:zN,construct:DN,predicate:LN,represent:PN})});var V4=d((Bk,MW)=>{var FW=C2();MW.exports=FW.DEFAULT=new FW({include:[R6()],explicit:[JW(),HW(),KW()]})});var jW=d((oN,B4)=>{var D5=L2(),VW=q6(),CN=NJ(),BW=R6(),TN=V4(),d5=Object.prototype.hasOwnProperty,p8=1,NW=2,wW=3,u8=4,K7=1,EN=2,QW=3,IN=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,jN=/[\x85\u2028\u2029]/,SN=/[,\[\]\{\}]/,_W=/^(?:!|!!|![a-z\-]+!)$/i,zW=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function qW($){return Object.prototype.toString.call($)}function Y5($){return $===10||$===13}function E2($){return $===9||$===32}function _1($){return $===9||$===32||$===10||$===13}function Z6($){return $===44||$===91||$===93||$===123||$===125}function kN($){var X;if(48<=$&&$<=57)return $-48;if(X=$|32,97<=X&&X<=102)return X-97+10;return-1}function vN($){if($===120)return 2;if($===117)return 4;if($===85)return 8;return 0}function xN($){if(48<=$&&$<=57)return $-48;return-1}function OW($){return $===48?"\x00":$===97?"\x07":$===98?"\b":$===116?"\t":$===9?"\t":$===110?`
19
- `:$===118?"\v":$===102?"\f":$===114?"\r":$===101?"\x1B":$===32?" ":$===34?'"':$===47?"/":$===92?"\\":$===78?"\x85":$===95?"\xA0":$===76?"\u2028":$===80?"\u2029":""}function bN($){if($<=65535)return String.fromCharCode($);return String.fromCharCode(($-65536>>10)+55296,($-65536&1023)+56320)}function DW($,X,G){if(X==="__proto__")Object.defineProperty($,X,{configurable:!0,enumerable:!0,writable:!0,value:G});else $[X]=G}var PW=Array(256),LW=Array(256);for(p5=0;p5<256;p5++)PW[p5]=OW(p5)?1:0,LW[p5]=OW(p5);var p5;function hN($,X){this.input=$,this.filename=X.filename||null,this.schema=X.schema||TN,this.onWarning=X.onWarning||null,this.legacy=X.legacy||!1,this.json=X.json||!1,this.listener=X.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=$.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function CW($,X){return new VW(X,new CN($.filename,$.input,$.position,$.line,$.position-$.lineStart))}function c($,X){throw CW($,X)}function d8($,X){if($.onWarning)$.onWarning.call(null,CW($,X))}var RW={YAML:function(X,G,Y){var J,W,H;if(X.version!==null)c(X,"duplication of %YAML directive");if(Y.length!==1)c(X,"YAML directive accepts exactly one argument");if(J=/^([0-9]+)\.([0-9]+)$/.exec(Y[0]),J===null)c(X,"ill-formed argument of the YAML directive");if(W=parseInt(J[1],10),H=parseInt(J[2],10),W!==1)c(X,"unacceptable YAML version of the document");if(X.version=Y[0],X.checkLineBreaks=H<2,H!==1&&H!==2)d8(X,"unsupported YAML version of the document")},TAG:function(X,G,Y){var J,W;if(Y.length!==2)c(X,"TAG directive accepts exactly two arguments");if(J=Y[0],W=Y[1],!_W.test(J))c(X,"ill-formed tag handle (first argument) of the TAG directive");if(d5.call(X.tagMap,J))c(X,'there is a previously declared suffix for "'+J+'" tag handle');if(!zW.test(W))c(X,"ill-formed tag prefix (second argument) of the TAG directive");X.tagMap[J]=W}};function u5($,X,G,Y){var J,W,H,U;if(X<G){if(U=$.input.slice(X,G),Y){for(J=0,W=U.length;J<W;J+=1)if(H=U.charCodeAt(J),!(H===9||32<=H&&H<=1114111))c($,"expected valid JSON character")}else if(IN.test(U))c($,"the stream contains non-printable characters");$.result+=U}}function ZW($,X,G,Y){var J,W,H,U;if(!D5.isObject(G))c($,"cannot merge mappings; the provided source object is unacceptable");J=Object.keys(G);for(H=0,U=J.length;H<U;H+=1)if(W=J[H],!d5.call(X,W))DW(X,W,G[W]),Y[W]=!0}function A6($,X,G,Y,J,W,H,U){var F,M;if(Array.isArray(J)){J=Array.prototype.slice.call(J);for(F=0,M=J.length;F<M;F+=1){if(Array.isArray(J[F]))c($,"nested arrays are not supported inside keys");if(typeof J==="object"&&qW(J[F])==="[object Object]")J[F]="[object Object]"}}if(typeof J==="object"&&qW(J)==="[object Object]")J="[object Object]";if(J=String(J),X===null)X={};if(Y==="tag:yaml.org,2002:merge")if(Array.isArray(W))for(F=0,M=W.length;F<M;F+=1)ZW($,X,W[F],G);else ZW($,X,W,G);else{if(!$.json&&!d5.call(G,J)&&d5.call(X,J))$.line=H||$.line,$.position=U||$.position,c($,"duplicated mapping key");DW(X,J,W),delete G[J]}return X}function F7($){var X=$.input.charCodeAt($.position);if(X===10)$.position++;else if(X===13){if($.position++,$.input.charCodeAt($.position)===10)$.position++}else c($,"a line break is expected");$.line+=1,$.lineStart=$.position}function f0($,X,G){var Y=0,J=$.input.charCodeAt($.position);while(J!==0){while(E2(J))J=$.input.charCodeAt(++$.position);if(X&&J===35)do J=$.input.charCodeAt(++$.position);while(J!==10&&J!==13&&J!==0);if(Y5(J)){F7($),J=$.input.charCodeAt($.position),Y++,$.lineIndent=0;while(J===32)$.lineIndent++,J=$.input.charCodeAt(++$.position)}else break}if(G!==-1&&Y!==0&&$.lineIndent<G)d8($,"deficient indentation");return Y}function l8($){var X=$.position,G;if(G=$.input.charCodeAt(X),(G===45||G===46)&&G===$.input.charCodeAt(X+1)&&G===$.input.charCodeAt(X+2)){if(X+=3,G=$.input.charCodeAt(X),G===0||_1(G))return!0}return!1}function M7($,X){if(X===1)$.result+=" ";else if(X>1)$.result+=D5.repeat(`
20
- `,X-1)}function yN($,X,G){var Y,J,W,H,U,F,M,Q,q=$.kind,Z=$.result,A;if(A=$.input.charCodeAt($.position),_1(A)||Z6(A)||A===35||A===38||A===42||A===33||A===124||A===62||A===39||A===34||A===37||A===64||A===96)return!1;if(A===63||A===45){if(J=$.input.charCodeAt($.position+1),_1(J)||G&&Z6(J))return!1}$.kind="scalar",$.result="",W=H=$.position,U=!1;while(A!==0){if(A===58){if(J=$.input.charCodeAt($.position+1),_1(J)||G&&Z6(J))break}else if(A===35){if(Y=$.input.charCodeAt($.position-1),_1(Y))break}else if($.position===$.lineStart&&l8($)||G&&Z6(A))break;else if(Y5(A))if(F=$.line,M=$.lineStart,Q=$.lineIndent,f0($,!1,-1),$.lineIndent>=X){U=!0,A=$.input.charCodeAt($.position);continue}else{$.position=H,$.line=F,$.lineStart=M,$.lineIndent=Q;break}if(U)u5($,W,H,!1),M7($,$.line-F),W=H=$.position,U=!1;if(!E2(A))H=$.position+1;A=$.input.charCodeAt(++$.position)}if(u5($,W,H,!1),$.result)return!0;return $.kind=q,$.result=Z,!1}function fN($,X){var G,Y,J;if(G=$.input.charCodeAt($.position),G!==39)return!1;$.kind="scalar",$.result="",$.position++,Y=J=$.position;while((G=$.input.charCodeAt($.position))!==0)if(G===39)if(u5($,Y,$.position,!0),G=$.input.charCodeAt(++$.position),G===39)Y=$.position,$.position++,J=$.position;else return!0;else if(Y5(G))u5($,Y,J,!0),M7($,f0($,!1,X)),Y=J=$.position;else if($.position===$.lineStart&&l8($))c($,"unexpected end of the document within a single quoted scalar");else $.position++,J=$.position;c($,"unexpected end of the stream within a single quoted scalar")}function gN($,X){var G,Y,J,W,H,U;if(U=$.input.charCodeAt($.position),U!==34)return!1;$.kind="scalar",$.result="",$.position++,G=Y=$.position;while((U=$.input.charCodeAt($.position))!==0)if(U===34)return u5($,G,$.position,!0),$.position++,!0;else if(U===92){if(u5($,G,$.position,!0),U=$.input.charCodeAt(++$.position),Y5(U))f0($,!1,X);else if(U<256&&PW[U])$.result+=LW[U],$.position++;else if((H=vN(U))>0){J=H,W=0;for(;J>0;J--)if(U=$.input.charCodeAt(++$.position),(H=kN(U))>=0)W=(W<<4)+H;else c($,"expected hexadecimal character");$.result+=bN(W),$.position++}else c($,"unknown escape sequence");G=Y=$.position}else if(Y5(U))u5($,G,Y,!0),M7($,f0($,!1,X)),G=Y=$.position;else if($.position===$.lineStart&&l8($))c($,"unexpected end of the document within a double quoted scalar");else $.position++,Y=$.position;c($,"unexpected end of the stream within a double quoted scalar")}function mN($,X){var G=!0,Y,J=$.tag,W,H=$.anchor,U,F,M,Q,q,Z={},A,_,z,D;if(D=$.input.charCodeAt($.position),D===91)F=93,q=!1,W=[];else if(D===123)F=125,q=!0,W={};else return!1;if($.anchor!==null)$.anchorMap[$.anchor]=W;D=$.input.charCodeAt(++$.position);while(D!==0){if(f0($,!0,X),D=$.input.charCodeAt($.position),D===F)return $.position++,$.tag=J,$.anchor=H,$.kind=q?"mapping":"sequence",$.result=W,!0;else if(!G)c($,"missed comma between flow collection entries");if(_=A=z=null,M=Q=!1,D===63){if(U=$.input.charCodeAt($.position+1),_1(U))M=Q=!0,$.position++,f0($,!0,X)}if(Y=$.line,V6($,X,p8,!1,!0),_=$.tag,A=$.result,f0($,!0,X),D=$.input.charCodeAt($.position),(Q||$.line===Y)&&D===58)M=!0,D=$.input.charCodeAt(++$.position),f0($,!0,X),V6($,X,p8,!1,!0),z=$.result;if(q)A6($,W,Z,_,A,z);else if(M)W.push(A6($,null,Z,_,A,z));else W.push(A);if(f0($,!0,X),D=$.input.charCodeAt($.position),D===44)G=!0,D=$.input.charCodeAt(++$.position);else G=!1}c($,"unexpected end of the stream within a flow collection")}function pN($,X){var G,Y,J=K7,W=!1,H=!1,U=X,F=0,M=!1,Q,q;if(q=$.input.charCodeAt($.position),q===124)Y=!1;else if(q===62)Y=!0;else return!1;$.kind="scalar",$.result="";while(q!==0)if(q=$.input.charCodeAt(++$.position),q===43||q===45)if(K7===J)J=q===43?QW:EN;else c($,"repeat of a chomping mode identifier");else if((Q=xN(q))>=0)if(Q===0)c($,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!H)U=X+Q-1,H=!0;else c($,"repeat of an indentation width identifier");else break;if(E2(q)){do q=$.input.charCodeAt(++$.position);while(E2(q));if(q===35)do q=$.input.charCodeAt(++$.position);while(!Y5(q)&&q!==0)}while(q!==0){F7($),$.lineIndent=0,q=$.input.charCodeAt($.position);while((!H||$.lineIndent<U)&&q===32)$.lineIndent++,q=$.input.charCodeAt(++$.position);if(!H&&$.lineIndent>U)U=$.lineIndent;if(Y5(q)){F++;continue}if($.lineIndent<U){if(J===QW)$.result+=D5.repeat(`
21
- `,W?1+F:F);else if(J===K7){if(W)$.result+=`
22
- `}break}if(Y)if(E2(q))M=!0,$.result+=D5.repeat(`
15
+ \x85\u2028\u2029`.indexOf(this.buffer.charAt(H))===-1)if(H+=1,H-this.position>G/2-1){W=" ... ",H-=5;break}return U=this.buffer.slice(J,H),AJ.repeat(" ",X)+Y+U+W+`
16
+ `+AJ.repeat(" ",X+this.position-J+Y.length)+"^"};W7.prototype.toString=function(X){var G,Y="";if(this.name)Y+='in "'+this.name+'" ';if(Y+="at line "+(this.line+1)+", column "+(this.column+1),!X){if(G=this.getSnippet(),G)Y+=`:
17
+ `+G}return Y};BJ.exports=W7});var d0=d((qk,wJ)=>{var NJ=Q6(),UV=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],KV=["scalar","sequence","mapping"];function FV($){var X={};if($!==null)Object.keys($).forEach(function(G){$[G].forEach(function(Y){X[String(Y)]=G})});return X}function MV($,X){if(X=X||{},Object.keys(X).forEach(function(G){if(UV.indexOf(G)===-1)throw new NJ('Unknown option "'+G+'" is met in definition of "'+$+'" YAML type.')}),this.tag=$,this.kind=X.kind||null,this.resolve=X.resolve||function(){return!0},this.construct=X.construct||function(G){return G},this.instanceOf=X.instanceOf||null,this.predicate=X.predicate||null,this.represent=X.represent||null,this.defaultStyle=X.defaultStyle||null,this.styleAliases=FV(X.styleAliases||null),KV.indexOf(this.kind)===-1)throw new NJ('Unknown kind "'+this.kind+'" is specified for "'+$+'" YAML type.')}wJ.exports=MV});var L2=d((Ok,zJ)=>{var _J=P2(),u8=Q6(),QV=d0();function H7($,X,G){var Y=[];return $.include.forEach(function(J){G=H7(J,X,G)}),$[X].forEach(function(J){G.forEach(function(W,H){if(W.tag===J.tag&&W.kind===J.kind)Y.push(H)}),G.push(J)}),G.filter(function(J,W){return Y.indexOf(W)===-1})}function qV(){var $={scalar:{},sequence:{},mapping:{},fallback:{}},X,G;function Y(J){$[J.kind][J.tag]=$.fallback[J.tag]=J}for(X=0,G=arguments.length;X<G;X+=1)arguments[X].forEach(Y);return $}function q6($){this.include=$.include||[],this.implicit=$.implicit||[],this.explicit=$.explicit||[],this.implicit.forEach(function(X){if(X.loadKind&&X.loadKind!=="scalar")throw new u8("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=H7(this,"implicit",[]),this.compiledExplicit=H7(this,"explicit",[]),this.compiledTypeMap=qV(this.compiledImplicit,this.compiledExplicit)}q6.DEFAULT=null;q6.create=function(){var X,G;switch(arguments.length){case 1:X=q6.DEFAULT,G=arguments[0];break;case 2:X=arguments[0],G=arguments[1];break;default:throw new u8("Wrong number of arguments for Schema.create function")}if(X=_J.toArray(X),G=_J.toArray(G),!X.every(function(Y){return Y instanceof q6}))throw new u8("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!G.every(function(Y){return Y instanceof QV}))throw new u8("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new q6({include:X,explicit:G})};zJ.exports=q6});var PJ=d((Zk,DJ)=>{var OV=d0();DJ.exports=new OV("tag:yaml.org,2002:str",{kind:"scalar",construct:function($){return $!==null?$:""}})});var CJ=d((Rk,LJ)=>{var ZV=d0();LJ.exports=new ZV("tag:yaml.org,2002:seq",{kind:"sequence",construct:function($){return $!==null?$:[]}})});var EJ=d((Ak,TJ)=>{var RV=d0();TJ.exports=new RV("tag:yaml.org,2002:map",{kind:"mapping",construct:function($){return $!==null?$:{}}})});var d8=d((Bk,IJ)=>{var AV=L2();IJ.exports=new AV({explicit:[PJ(),CJ(),EJ()]})});var SJ=d((Vk,jJ)=>{var BV=d0();function VV($){if($===null)return!0;var X=$.length;return X===1&&$==="~"||X===4&&($==="null"||$==="Null"||$==="NULL")}function NV(){return null}function wV($){return $===null}jJ.exports=new BV("tag:yaml.org,2002:null",{kind:"scalar",resolve:VV,construct:NV,predicate:wV,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var vJ=d((Nk,kJ)=>{var _V=d0();function zV($){if($===null)return!1;var X=$.length;return X===4&&($==="true"||$==="True"||$==="TRUE")||X===5&&($==="false"||$==="False"||$==="FALSE")}function DV($){return $==="true"||$==="True"||$==="TRUE"}function PV($){return Object.prototype.toString.call($)==="[object Boolean]"}kJ.exports=new _V("tag:yaml.org,2002:bool",{kind:"scalar",resolve:zV,construct:DV,predicate:PV,represent:{lowercase:function($){return $?"true":"false"},uppercase:function($){return $?"TRUE":"FALSE"},camelcase:function($){return $?"True":"False"}},defaultStyle:"lowercase"})});var bJ=d((wk,xJ)=>{var LV=P2(),CV=d0();function TV($){return 48<=$&&$<=57||65<=$&&$<=70||97<=$&&$<=102}function EV($){return 48<=$&&$<=55}function IV($){return 48<=$&&$<=57}function jV($){if($===null)return!1;var X=$.length,G=0,Y=!1,J;if(!X)return!1;if(J=$[G],J==="-"||J==="+")J=$[++G];if(J==="0"){if(G+1===X)return!0;if(J=$[++G],J==="b"){G++;for(;G<X;G++){if(J=$[G],J==="_")continue;if(J!=="0"&&J!=="1")return!1;Y=!0}return Y&&J!=="_"}if(J==="x"){G++;for(;G<X;G++){if(J=$[G],J==="_")continue;if(!TV($.charCodeAt(G)))return!1;Y=!0}return Y&&J!=="_"}for(;G<X;G++){if(J=$[G],J==="_")continue;if(!EV($.charCodeAt(G)))return!1;Y=!0}return Y&&J!=="_"}if(J==="_")return!1;for(;G<X;G++){if(J=$[G],J==="_")continue;if(J===":")break;if(!IV($.charCodeAt(G)))return!1;Y=!0}if(!Y||J==="_")return!1;if(J!==":")return!0;return/^(:[0-5]?[0-9])+$/.test($.slice(G))}function SV($){var X=$,G=1,Y,J,W=[];if(X.indexOf("_")!==-1)X=X.replace(/_/g,"");if(Y=X[0],Y==="-"||Y==="+"){if(Y==="-")G=-1;X=X.slice(1),Y=X[0]}if(X==="0")return 0;if(Y==="0"){if(X[1]==="b")return G*parseInt(X.slice(2),2);if(X[1]==="x")return G*parseInt(X,16);return G*parseInt(X,8)}if(X.indexOf(":")!==-1)return X.split(":").forEach(function(H){W.unshift(parseInt(H,10))}),X=0,J=1,W.forEach(function(H){X+=H*J,J*=60}),G*X;return G*parseInt(X,10)}function kV($){return Object.prototype.toString.call($)==="[object Number]"&&($%1===0&&!LV.isNegativeZero($))}xJ.exports=new CV("tag:yaml.org,2002:int",{kind:"scalar",resolve:jV,construct:SV,predicate:kV,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 fJ=d((_k,yJ)=>{var hJ=P2(),vV=d0(),xV=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 bV($){if($===null)return!1;if(!xV.test($)||$[$.length-1]==="_")return!1;return!0}function hV($){var X,G,Y,J;if(X=$.replace(/_/g,"").toLowerCase(),G=X[0]==="-"?-1:1,J=[],"+-".indexOf(X[0])>=0)X=X.slice(1);if(X===".inf")return G===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(X===".nan")return NaN;else if(X.indexOf(":")>=0)return X.split(":").forEach(function(W){J.unshift(parseFloat(W,10))}),X=0,Y=1,J.forEach(function(W){X+=W*Y,Y*=60}),G*X;return G*parseFloat(X,10)}var yV=/^[-+]?[0-9]+e/;function fV($,X){var G;if(isNaN($))switch(X){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===$)switch(X){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===$)switch(X){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(hJ.isNegativeZero($))return"-0.0";return G=$.toString(10),yV.test(G)?G.replace("e",".e"):G}function gV($){return Object.prototype.toString.call($)==="[object Number]"&&($%1!==0||hJ.isNegativeZero($))}yJ.exports=new vV("tag:yaml.org,2002:float",{kind:"scalar",resolve:bV,construct:hV,predicate:gV,represent:fV,defaultStyle:"lowercase"})});var U7=d((zk,gJ)=>{var mV=L2();gJ.exports=new mV({include:[d8()],implicit:[SJ(),vJ(),bJ(),fJ()]})});var K7=d((Dk,mJ)=>{var pV=L2();mJ.exports=new pV({include:[U7()]})});var lJ=d((Pk,dJ)=>{var uV=d0(),pJ=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),uJ=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 dV($){if($===null)return!1;if(pJ.exec($)!==null)return!0;if(uJ.exec($)!==null)return!0;return!1}function lV($){var X,G,Y,J,W,H,U,F=0,M=null,Q,q,A;if(X=pJ.exec($),X===null)X=uJ.exec($);if(X===null)throw Error("Date resolve error");if(G=+X[1],Y=+X[2]-1,J=+X[3],!X[4])return new Date(Date.UTC(G,Y,J));if(W=+X[4],H=+X[5],U=+X[6],X[7]){F=X[7].slice(0,3);while(F.length<3)F+="0";F=+F}if(X[9]){if(Q=+X[10],q=+(X[11]||0),M=(Q*60+q)*60000,X[9]==="-")M=-M}if(A=new Date(Date.UTC(G,Y,J,W,H,U,F)),M)A.setTime(A.getTime()-M);return A}function cV($){return $.toISOString()}dJ.exports=new uV("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:dV,construct:lV,instanceOf:Date,represent:cV})});var rJ=d((Lk,cJ)=>{var rV=d0();function iV($){return $==="<<"||$===null}cJ.exports=new rV("tag:yaml.org,2002:merge",{kind:"scalar",resolve:iV})});var nJ=d((Ck,iJ)=>{var C2;try{F7=N5,C2=F7("buffer").Buffer}catch($){}var F7,nV=d0(),M7=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
18
+ \r`;function oV($){if($===null)return!1;var X,G,Y=0,J=$.length,W=M7;for(G=0;G<J;G++){if(X=W.indexOf($.charAt(G)),X>64)continue;if(X<0)return!1;Y+=6}return Y%8===0}function sV($){var X,G,Y=$.replace(/[\r\n=]/g,""),J=Y.length,W=M7,H=0,U=[];for(X=0;X<J;X++){if(X%4===0&&X)U.push(H>>16&255),U.push(H>>8&255),U.push(H&255);H=H<<6|W.indexOf(Y.charAt(X))}if(G=J%4*6,G===0)U.push(H>>16&255),U.push(H>>8&255),U.push(H&255);else if(G===18)U.push(H>>10&255),U.push(H>>2&255);else if(G===12)U.push(H>>4&255);if(C2)return C2.from?C2.from(U):new C2(U);return U}function aV($){var X="",G=0,Y,J,W=$.length,H=M7;for(Y=0;Y<W;Y++){if(Y%3===0&&Y)X+=H[G>>18&63],X+=H[G>>12&63],X+=H[G>>6&63],X+=H[G&63];G=(G<<8)+$[Y]}if(J=W%3,J===0)X+=H[G>>18&63],X+=H[G>>12&63],X+=H[G>>6&63],X+=H[G&63];else if(J===2)X+=H[G>>10&63],X+=H[G>>4&63],X+=H[G<<2&63],X+=H[64];else if(J===1)X+=H[G>>2&63],X+=H[G<<4&63],X+=H[64],X+=H[64];return X}function tV($){return C2&&C2.isBuffer($)}iJ.exports=new nV("tag:yaml.org,2002:binary",{kind:"scalar",resolve:oV,construct:sV,predicate:tV,represent:aV})});var sJ=d((Ek,oJ)=>{var eV=d0(),$N=Object.prototype.hasOwnProperty,XN=Object.prototype.toString;function GN($){if($===null)return!0;var X=[],G,Y,J,W,H,U=$;for(G=0,Y=U.length;G<Y;G+=1){if(J=U[G],H=!1,XN.call(J)!=="[object Object]")return!1;for(W in J)if($N.call(J,W))if(!H)H=!0;else return!1;if(!H)return!1;if(X.indexOf(W)===-1)X.push(W);else return!1}return!0}function YN($){return $!==null?$:[]}oJ.exports=new eV("tag:yaml.org,2002:omap",{kind:"sequence",resolve:GN,construct:YN})});var tJ=d((Ik,aJ)=>{var JN=d0(),WN=Object.prototype.toString;function HN($){if($===null)return!0;var X,G,Y,J,W,H=$;W=Array(H.length);for(X=0,G=H.length;X<G;X+=1){if(Y=H[X],WN.call(Y)!=="[object Object]")return!1;if(J=Object.keys(Y),J.length!==1)return!1;W[X]=[J[0],Y[J[0]]]}return!0}function UN($){if($===null)return[];var X,G,Y,J,W,H=$;W=Array(H.length);for(X=0,G=H.length;X<G;X+=1)Y=H[X],J=Object.keys(Y),W[X]=[J[0],Y[J[0]]];return W}aJ.exports=new JN("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:HN,construct:UN})});var $W=d((jk,eJ)=>{var KN=d0(),FN=Object.prototype.hasOwnProperty;function MN($){if($===null)return!0;var X,G=$;for(X in G)if(FN.call(G,X)){if(G[X]!==null)return!1}return!0}function QN($){return $!==null?$:{}}eJ.exports=new KN("tag:yaml.org,2002:set",{kind:"mapping",resolve:MN,construct:QN})});var O6=d((Sk,XW)=>{var qN=L2();XW.exports=new qN({include:[K7()],implicit:[lJ(),rJ()],explicit:[nJ(),sJ(),tJ(),$W()]})});var YW=d((kk,GW)=>{var ON=d0();function ZN(){return!0}function RN(){return}function AN(){return""}function BN($){return typeof $>"u"}GW.exports=new ON("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:ZN,construct:RN,predicate:BN,represent:AN})});var WW=d((vk,JW)=>{var VN=d0();function NN($){if($===null)return!1;if($.length===0)return!1;var X=$,G=/\/([gim]*)$/.exec($),Y="";if(X[0]==="/"){if(G)Y=G[1];if(Y.length>3)return!1;if(X[X.length-Y.length-1]!=="/")return!1}return!0}function wN($){var X=$,G=/\/([gim]*)$/.exec($),Y="";if(X[0]==="/"){if(G)Y=G[1];X=X.slice(1,X.length-Y.length-1)}return new RegExp(X,Y)}function _N($){var X="/"+$.source+"/";if($.global)X+="g";if($.multiline)X+="m";if($.ignoreCase)X+="i";return X}function zN($){return Object.prototype.toString.call($)==="[object RegExp]"}JW.exports=new VN("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:NN,construct:wN,predicate:zN,represent:_N})});var UW=d((xk,HW)=>{var l8;try{Q7=N5,l8=Q7("esprima")}catch($){if(typeof window<"u")l8=window.esprima}var Q7,DN=d0();function PN($){if($===null)return!1;try{var X="("+$+")",G=l8.parse(X,{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(Y){return!1}}function LN($){var X="("+$+")",G=l8.parse(X,{range:!0}),Y=[],J;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(W){Y.push(W.name)}),J=G.body[0].expression.body.range,G.body[0].expression.body.type==="BlockStatement")return Function(Y,X.slice(J[0]+1,J[1]-1));return Function(Y,"return "+X.slice(J[0],J[1]))}function CN($){return $.toString()}function TN($){return Object.prototype.toString.call($)==="[object Function]"}HW.exports=new DN("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:PN,construct:LN,predicate:TN,represent:CN})});var V4=d((hk,FW)=>{var KW=L2();FW.exports=KW.DEFAULT=new KW({include:[O6()],explicit:[YW(),WW(),UW()]})});var IW=d((aN,N4)=>{var D5=P2(),AW=Q6(),EN=VJ(),BW=O6(),IN=V4(),u5=Object.prototype.hasOwnProperty,c8=1,VW=2,NW=3,r8=4,q7=1,jN=2,MW=3,SN=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,kN=/[\x85\u2028\u2029]/,vN=/[,\[\]\{\}]/,wW=/^(?:!|!!|![a-z\-]+!)$/i,_W=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function QW($){return Object.prototype.toString.call($)}function Y5($){return $===10||$===13}function T2($){return $===9||$===32}function _1($){return $===9||$===32||$===10||$===13}function Z6($){return $===44||$===91||$===93||$===123||$===125}function xN($){var X;if(48<=$&&$<=57)return $-48;if(X=$|32,97<=X&&X<=102)return X-97+10;return-1}function bN($){if($===120)return 2;if($===117)return 4;if($===85)return 8;return 0}function hN($){if(48<=$&&$<=57)return $-48;return-1}function qW($){return $===48?"\x00":$===97?"\x07":$===98?"\b":$===116?"\t":$===9?"\t":$===110?`
19
+ `:$===118?"\v":$===102?"\f":$===114?"\r":$===101?"\x1B":$===32?" ":$===34?'"':$===47?"/":$===92?"\\":$===78?"\x85":$===95?"\xA0":$===76?"\u2028":$===80?"\u2029":""}function yN($){if($<=65535)return String.fromCharCode($);return String.fromCharCode(($-65536>>10)+55296,($-65536&1023)+56320)}function zW($,X,G){if(X==="__proto__")Object.defineProperty($,X,{configurable:!0,enumerable:!0,writable:!0,value:G});else $[X]=G}var DW=Array(256),PW=Array(256);for(m5=0;m5<256;m5++)DW[m5]=qW(m5)?1:0,PW[m5]=qW(m5);var m5;function fN($,X){this.input=$,this.filename=X.filename||null,this.schema=X.schema||IN,this.onWarning=X.onWarning||null,this.legacy=X.legacy||!1,this.json=X.json||!1,this.listener=X.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=$.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function LW($,X){return new AW(X,new EN($.filename,$.input,$.position,$.line,$.position-$.lineStart))}function c($,X){throw LW($,X)}function i8($,X){if($.onWarning)$.onWarning.call(null,LW($,X))}var OW={YAML:function(X,G,Y){var J,W,H;if(X.version!==null)c(X,"duplication of %YAML directive");if(Y.length!==1)c(X,"YAML directive accepts exactly one argument");if(J=/^([0-9]+)\.([0-9]+)$/.exec(Y[0]),J===null)c(X,"ill-formed argument of the YAML directive");if(W=parseInt(J[1],10),H=parseInt(J[2],10),W!==1)c(X,"unacceptable YAML version of the document");if(X.version=Y[0],X.checkLineBreaks=H<2,H!==1&&H!==2)i8(X,"unsupported YAML version of the document")},TAG:function(X,G,Y){var J,W;if(Y.length!==2)c(X,"TAG directive accepts exactly two arguments");if(J=Y[0],W=Y[1],!wW.test(J))c(X,"ill-formed tag handle (first argument) of the TAG directive");if(u5.call(X.tagMap,J))c(X,'there is a previously declared suffix for "'+J+'" tag handle');if(!_W.test(W))c(X,"ill-formed tag prefix (second argument) of the TAG directive");X.tagMap[J]=W}};function p5($,X,G,Y){var J,W,H,U;if(X<G){if(U=$.input.slice(X,G),Y){for(J=0,W=U.length;J<W;J+=1)if(H=U.charCodeAt(J),!(H===9||32<=H&&H<=1114111))c($,"expected valid JSON character")}else if(SN.test(U))c($,"the stream contains non-printable characters");$.result+=U}}function ZW($,X,G,Y){var J,W,H,U;if(!D5.isObject(G))c($,"cannot merge mappings; the provided source object is unacceptable");J=Object.keys(G);for(H=0,U=J.length;H<U;H+=1)if(W=J[H],!u5.call(X,W))zW(X,W,G[W]),Y[W]=!0}function R6($,X,G,Y,J,W,H,U){var F,M;if(Array.isArray(J)){J=Array.prototype.slice.call(J);for(F=0,M=J.length;F<M;F+=1){if(Array.isArray(J[F]))c($,"nested arrays are not supported inside keys");if(typeof J==="object"&&QW(J[F])==="[object Object]")J[F]="[object Object]"}}if(typeof J==="object"&&QW(J)==="[object Object]")J="[object Object]";if(J=String(J),X===null)X={};if(Y==="tag:yaml.org,2002:merge")if(Array.isArray(W))for(F=0,M=W.length;F<M;F+=1)ZW($,X,W[F],G);else ZW($,X,W,G);else{if(!$.json&&!u5.call(G,J)&&u5.call(X,J))$.line=H||$.line,$.position=U||$.position,c($,"duplicated mapping key");zW(X,J,W),delete G[J]}return X}function O7($){var X=$.input.charCodeAt($.position);if(X===10)$.position++;else if(X===13){if($.position++,$.input.charCodeAt($.position)===10)$.position++}else c($,"a line break is expected");$.line+=1,$.lineStart=$.position}function f0($,X,G){var Y=0,J=$.input.charCodeAt($.position);while(J!==0){while(T2(J))J=$.input.charCodeAt(++$.position);if(X&&J===35)do J=$.input.charCodeAt(++$.position);while(J!==10&&J!==13&&J!==0);if(Y5(J)){O7($),J=$.input.charCodeAt($.position),Y++,$.lineIndent=0;while(J===32)$.lineIndent++,J=$.input.charCodeAt(++$.position)}else break}if(G!==-1&&Y!==0&&$.lineIndent<G)i8($,"deficient indentation");return Y}function n8($){var X=$.position,G;if(G=$.input.charCodeAt(X),(G===45||G===46)&&G===$.input.charCodeAt(X+1)&&G===$.input.charCodeAt(X+2)){if(X+=3,G=$.input.charCodeAt(X),G===0||_1(G))return!0}return!1}function Z7($,X){if(X===1)$.result+=" ";else if(X>1)$.result+=D5.repeat(`
20
+ `,X-1)}function gN($,X,G){var Y,J,W,H,U,F,M,Q,q=$.kind,A=$.result,Z;if(Z=$.input.charCodeAt($.position),_1(Z)||Z6(Z)||Z===35||Z===38||Z===42||Z===33||Z===124||Z===62||Z===39||Z===34||Z===37||Z===64||Z===96)return!1;if(Z===63||Z===45){if(J=$.input.charCodeAt($.position+1),_1(J)||G&&Z6(J))return!1}$.kind="scalar",$.result="",W=H=$.position,U=!1;while(Z!==0){if(Z===58){if(J=$.input.charCodeAt($.position+1),_1(J)||G&&Z6(J))break}else if(Z===35){if(Y=$.input.charCodeAt($.position-1),_1(Y))break}else if($.position===$.lineStart&&n8($)||G&&Z6(Z))break;else if(Y5(Z))if(F=$.line,M=$.lineStart,Q=$.lineIndent,f0($,!1,-1),$.lineIndent>=X){U=!0,Z=$.input.charCodeAt($.position);continue}else{$.position=H,$.line=F,$.lineStart=M,$.lineIndent=Q;break}if(U)p5($,W,H,!1),Z7($,$.line-F),W=H=$.position,U=!1;if(!T2(Z))H=$.position+1;Z=$.input.charCodeAt(++$.position)}if(p5($,W,H,!1),$.result)return!0;return $.kind=q,$.result=A,!1}function mN($,X){var G,Y,J;if(G=$.input.charCodeAt($.position),G!==39)return!1;$.kind="scalar",$.result="",$.position++,Y=J=$.position;while((G=$.input.charCodeAt($.position))!==0)if(G===39)if(p5($,Y,$.position,!0),G=$.input.charCodeAt(++$.position),G===39)Y=$.position,$.position++,J=$.position;else return!0;else if(Y5(G))p5($,Y,J,!0),Z7($,f0($,!1,X)),Y=J=$.position;else if($.position===$.lineStart&&n8($))c($,"unexpected end of the document within a single quoted scalar");else $.position++,J=$.position;c($,"unexpected end of the stream within a single quoted scalar")}function pN($,X){var G,Y,J,W,H,U;if(U=$.input.charCodeAt($.position),U!==34)return!1;$.kind="scalar",$.result="",$.position++,G=Y=$.position;while((U=$.input.charCodeAt($.position))!==0)if(U===34)return p5($,G,$.position,!0),$.position++,!0;else if(U===92){if(p5($,G,$.position,!0),U=$.input.charCodeAt(++$.position),Y5(U))f0($,!1,X);else if(U<256&&DW[U])$.result+=PW[U],$.position++;else if((H=bN(U))>0){J=H,W=0;for(;J>0;J--)if(U=$.input.charCodeAt(++$.position),(H=xN(U))>=0)W=(W<<4)+H;else c($,"expected hexadecimal character");$.result+=yN(W),$.position++}else c($,"unknown escape sequence");G=Y=$.position}else if(Y5(U))p5($,G,Y,!0),Z7($,f0($,!1,X)),G=Y=$.position;else if($.position===$.lineStart&&n8($))c($,"unexpected end of the document within a double quoted scalar");else $.position++,Y=$.position;c($,"unexpected end of the stream within a double quoted scalar")}function uN($,X){var G=!0,Y,J=$.tag,W,H=$.anchor,U,F,M,Q,q,A={},Z,_,z,D;if(D=$.input.charCodeAt($.position),D===91)F=93,q=!1,W=[];else if(D===123)F=125,q=!0,W={};else return!1;if($.anchor!==null)$.anchorMap[$.anchor]=W;D=$.input.charCodeAt(++$.position);while(D!==0){if(f0($,!0,X),D=$.input.charCodeAt($.position),D===F)return $.position++,$.tag=J,$.anchor=H,$.kind=q?"mapping":"sequence",$.result=W,!0;else if(!G)c($,"missed comma between flow collection entries");if(_=Z=z=null,M=Q=!1,D===63){if(U=$.input.charCodeAt($.position+1),_1(U))M=Q=!0,$.position++,f0($,!0,X)}if(Y=$.line,A6($,X,c8,!1,!0),_=$.tag,Z=$.result,f0($,!0,X),D=$.input.charCodeAt($.position),(Q||$.line===Y)&&D===58)M=!0,D=$.input.charCodeAt(++$.position),f0($,!0,X),A6($,X,c8,!1,!0),z=$.result;if(q)R6($,W,A,_,Z,z);else if(M)W.push(R6($,null,A,_,Z,z));else W.push(Z);if(f0($,!0,X),D=$.input.charCodeAt($.position),D===44)G=!0,D=$.input.charCodeAt(++$.position);else G=!1}c($,"unexpected end of the stream within a flow collection")}function dN($,X){var G,Y,J=q7,W=!1,H=!1,U=X,F=0,M=!1,Q,q;if(q=$.input.charCodeAt($.position),q===124)Y=!1;else if(q===62)Y=!0;else return!1;$.kind="scalar",$.result="";while(q!==0)if(q=$.input.charCodeAt(++$.position),q===43||q===45)if(q7===J)J=q===43?MW:jN;else c($,"repeat of a chomping mode identifier");else if((Q=hN(q))>=0)if(Q===0)c($,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!H)U=X+Q-1,H=!0;else c($,"repeat of an indentation width identifier");else break;if(T2(q)){do q=$.input.charCodeAt(++$.position);while(T2(q));if(q===35)do q=$.input.charCodeAt(++$.position);while(!Y5(q)&&q!==0)}while(q!==0){O7($),$.lineIndent=0,q=$.input.charCodeAt($.position);while((!H||$.lineIndent<U)&&q===32)$.lineIndent++,q=$.input.charCodeAt(++$.position);if(!H&&$.lineIndent>U)U=$.lineIndent;if(Y5(q)){F++;continue}if($.lineIndent<U){if(J===MW)$.result+=D5.repeat(`
21
+ `,W?1+F:F);else if(J===q7){if(W)$.result+=`
22
+ `}break}if(Y)if(T2(q))M=!0,$.result+=D5.repeat(`
23
23
  `,W?1+F:F);else if(M)M=!1,$.result+=D5.repeat(`
24
24
  `,F+1);else if(F===0){if(W)$.result+=" "}else $.result+=D5.repeat(`
25
25
  `,F);else $.result+=D5.repeat(`
26
- `,W?1+F:F);W=!0,H=!0,F=0,G=$.position;while(!Y5(q)&&q!==0)q=$.input.charCodeAt(++$.position);u5($,G,$.position,!1)}return!0}function AW($,X){var G,Y=$.tag,J=$.anchor,W=[],H,U=!1,F;if($.anchor!==null)$.anchorMap[$.anchor]=W;F=$.input.charCodeAt($.position);while(F!==0){if(F!==45)break;if(H=$.input.charCodeAt($.position+1),!_1(H))break;if(U=!0,$.position++,f0($,!0,-1)){if($.lineIndent<=X){W.push(null),F=$.input.charCodeAt($.position);continue}}if(G=$.line,V6($,X,wW,!1,!0),W.push($.result),f0($,!0,-1),F=$.input.charCodeAt($.position),($.line===G||$.lineIndent>X)&&F!==0)c($,"bad indentation of a sequence entry");else if($.lineIndent<X)break}if(U)return $.tag=Y,$.anchor=J,$.kind="sequence",$.result=W,!0;return!1}function uN($,X,G){var Y,J,W,H,U=$.tag,F=$.anchor,M={},Q={},q=null,Z=null,A=null,_=!1,z=!1,D;if($.anchor!==null)$.anchorMap[$.anchor]=M;D=$.input.charCodeAt($.position);while(D!==0){if(Y=$.input.charCodeAt($.position+1),W=$.line,H=$.position,(D===63||D===58)&&_1(Y)){if(D===63){if(_)A6($,M,Q,q,Z,null),q=Z=A=null;z=!0,_=!0,J=!0}else if(_)_=!1,J=!0;else c($,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");$.position+=1,D=Y}else if(V6($,G,NW,!1,!0))if($.line===W){D=$.input.charCodeAt($.position);while(E2(D))D=$.input.charCodeAt(++$.position);if(D===58){if(D=$.input.charCodeAt(++$.position),!_1(D))c($,"a whitespace character is expected after the key-value separator within a block mapping");if(_)A6($,M,Q,q,Z,null),q=Z=A=null;z=!0,_=!1,J=!1,q=$.tag,Z=$.result}else if(z)c($,"can not read an implicit mapping pair; a colon is missed");else return $.tag=U,$.anchor=F,!0}else if(z)c($,"can not read a block mapping entry; a multiline key may not be an implicit key");else return $.tag=U,$.anchor=F,!0;else break;if($.line===W||$.lineIndent>X){if(V6($,X,u8,!0,J))if(_)Z=$.result;else A=$.result;if(!_)A6($,M,Q,q,Z,A,W,H),q=Z=A=null;f0($,!0,-1),D=$.input.charCodeAt($.position)}if($.lineIndent>X&&D!==0)c($,"bad indentation of a mapping entry");else if($.lineIndent<X)break}if(_)A6($,M,Q,q,Z,null);if(z)$.tag=U,$.anchor=F,$.kind="mapping",$.result=M;return z}function dN($){var X,G=!1,Y=!1,J,W,H;if(H=$.input.charCodeAt($.position),H!==33)return!1;if($.tag!==null)c($,"duplication of a tag property");if(H=$.input.charCodeAt(++$.position),H===60)G=!0,H=$.input.charCodeAt(++$.position);else if(H===33)Y=!0,J="!!",H=$.input.charCodeAt(++$.position);else J="!";if(X=$.position,G){do H=$.input.charCodeAt(++$.position);while(H!==0&&H!==62);if($.position<$.length)W=$.input.slice(X,$.position),H=$.input.charCodeAt(++$.position);else c($,"unexpected end of the stream within a verbatim tag")}else{while(H!==0&&!_1(H)){if(H===33)if(!Y){if(J=$.input.slice(X-1,$.position+1),!_W.test(J))c($,"named tag handle cannot contain such characters");Y=!0,X=$.position+1}else c($,"tag suffix cannot contain exclamation marks");H=$.input.charCodeAt(++$.position)}if(W=$.input.slice(X,$.position),SN.test(W))c($,"tag suffix cannot contain flow indicator characters")}if(W&&!zW.test(W))c($,"tag name cannot contain such characters: "+W);if(G)$.tag=W;else if(d5.call($.tagMap,J))$.tag=$.tagMap[J]+W;else if(J==="!")$.tag="!"+W;else if(J==="!!")$.tag="tag:yaml.org,2002:"+W;else c($,'undeclared tag handle "'+J+'"');return!0}function lN($){var X,G;if(G=$.input.charCodeAt($.position),G!==38)return!1;if($.anchor!==null)c($,"duplication of an anchor property");G=$.input.charCodeAt(++$.position),X=$.position;while(G!==0&&!_1(G)&&!Z6(G))G=$.input.charCodeAt(++$.position);if($.position===X)c($,"name of an anchor node must contain at least one character");return $.anchor=$.input.slice(X,$.position),!0}function cN($){var X,G,Y;if(Y=$.input.charCodeAt($.position),Y!==42)return!1;Y=$.input.charCodeAt(++$.position),X=$.position;while(Y!==0&&!_1(Y)&&!Z6(Y))Y=$.input.charCodeAt(++$.position);if($.position===X)c($,"name of an alias node must contain at least one character");if(G=$.input.slice(X,$.position),!d5.call($.anchorMap,G))c($,'unidentified alias "'+G+'"');return $.result=$.anchorMap[G],f0($,!0,-1),!0}function V6($,X,G,Y,J){var W,H,U,F=1,M=!1,Q=!1,q,Z,A,_,z;if($.listener!==null)$.listener("open",$);if($.tag=null,$.anchor=null,$.kind=null,$.result=null,W=H=U=u8===G||wW===G,Y){if(f0($,!0,-1)){if(M=!0,$.lineIndent>X)F=1;else if($.lineIndent===X)F=0;else if($.lineIndent<X)F=-1}}if(F===1)while(dN($)||lN($))if(f0($,!0,-1)){if(M=!0,U=W,$.lineIndent>X)F=1;else if($.lineIndent===X)F=0;else if($.lineIndent<X)F=-1}else U=!1;if(U)U=M||J;if(F===1||u8===G){if(p8===G||NW===G)_=X;else _=X+1;if(z=$.position-$.lineStart,F===1)if(U&&(AW($,z)||uN($,z,_))||mN($,_))Q=!0;else{if(H&&pN($,_)||fN($,_)||gN($,_))Q=!0;else if(cN($)){if(Q=!0,$.tag!==null||$.anchor!==null)c($,"alias node should not have any properties")}else if(yN($,_,p8===G)){if(Q=!0,$.tag===null)$.tag="?"}if($.anchor!==null)$.anchorMap[$.anchor]=$.result}else if(F===0)Q=U&&AW($,z)}if($.tag!==null&&$.tag!=="!")if($.tag==="?"){if($.result!==null&&$.kind!=="scalar")c($,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+$.kind+'"');for(q=0,Z=$.implicitTypes.length;q<Z;q+=1)if(A=$.implicitTypes[q],A.resolve($.result)){if($.result=A.construct($.result),$.tag=A.tag,$.anchor!==null)$.anchorMap[$.anchor]=$.result;break}}else if(d5.call($.typeMap[$.kind||"fallback"],$.tag)){if(A=$.typeMap[$.kind||"fallback"][$.tag],$.result!==null&&A.kind!==$.kind)c($,"unacceptable node kind for !<"+$.tag+'> tag; it should be "'+A.kind+'", not "'+$.kind+'"');if(!A.resolve($.result))c($,"cannot resolve a node with !<"+$.tag+"> explicit tag");else if($.result=A.construct($.result),$.anchor!==null)$.anchorMap[$.anchor]=$.result}else c($,"unknown tag !<"+$.tag+">");if($.listener!==null)$.listener("close",$);return $.tag!==null||$.anchor!==null||Q}function rN($){var X=$.position,G,Y,J,W=!1,H;$.version=null,$.checkLineBreaks=$.legacy,$.tagMap={},$.anchorMap={};while((H=$.input.charCodeAt($.position))!==0){if(f0($,!0,-1),H=$.input.charCodeAt($.position),$.lineIndent>0||H!==37)break;W=!0,H=$.input.charCodeAt(++$.position),G=$.position;while(H!==0&&!_1(H))H=$.input.charCodeAt(++$.position);if(Y=$.input.slice(G,$.position),J=[],Y.length<1)c($,"directive name must not be less than one character in length");while(H!==0){while(E2(H))H=$.input.charCodeAt(++$.position);if(H===35){do H=$.input.charCodeAt(++$.position);while(H!==0&&!Y5(H));break}if(Y5(H))break;G=$.position;while(H!==0&&!_1(H))H=$.input.charCodeAt(++$.position);J.push($.input.slice(G,$.position))}if(H!==0)F7($);if(d5.call(RW,Y))RW[Y]($,Y,J);else d8($,'unknown document directive "'+Y+'"')}if(f0($,!0,-1),$.lineIndent===0&&$.input.charCodeAt($.position)===45&&$.input.charCodeAt($.position+1)===45&&$.input.charCodeAt($.position+2)===45)$.position+=3,f0($,!0,-1);else if(W)c($,"directives end mark is expected");if(V6($,$.lineIndent-1,u8,!1,!0),f0($,!0,-1),$.checkLineBreaks&&jN.test($.input.slice(X,$.position)))d8($,"non-ASCII line breaks are interpreted as content");if($.documents.push($.result),$.position===$.lineStart&&l8($)){if($.input.charCodeAt($.position)===46)$.position+=3,f0($,!0,-1);return}if($.position<$.length-1)c($,"end of the stream or a document separator is expected");else return}function TW($,X){if($=String($),X=X||{},$.length!==0){if($.charCodeAt($.length-1)!==10&&$.charCodeAt($.length-1)!==13)$+=`
27
- `;if($.charCodeAt(0)===65279)$=$.slice(1)}var G=new hN($,X),Y=$.indexOf("\x00");if(Y!==-1)G.position=Y,c(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)rN(G);return G.documents}function EW($,X,G){if(X!==null&&typeof X==="object"&&typeof G>"u")G=X,X=null;var Y=TW($,G);if(typeof X!=="function")return Y;for(var J=0,W=Y.length;J<W;J+=1)X(Y[J])}function IW($,X){var G=TW($,X);if(G.length===0)return;else if(G.length===1)return G[0];throw new VW("expected a single document in the stream, but found more")}function iN($,X,G){if(typeof X==="object"&&X!==null&&typeof G>"u")G=X,X=null;return EW($,X,D5.extend({schema:BW},G))}function nN($,X){return IW($,D5.extend({schema:BW},X))}oN.loadAll=EW;oN.load=IW;oN.safeLoadAll=iN;oN.safeLoad=nN});var eW=d((xw,R7)=>{var w4=L2(),_4=q6(),$w=V4(),Xw=R6(),fW=Object.prototype.toString,gW=Object.prototype.hasOwnProperty,Gw=9,N4=10,Yw=13,Jw=32,Ww=33,Hw=34,mW=35,Uw=37,Kw=38,Fw=39,Mw=42,pW=44,Qw=45,uW=58,qw=61,Ow=62,Rw=63,Zw=64,dW=91,lW=93,Aw=96,cW=123,Vw=124,rW=125,H1={};H1[0]="\\0";H1[7]="\\a";H1[8]="\\b";H1[9]="\\t";H1[10]="\\n";H1[11]="\\v";H1[12]="\\f";H1[13]="\\r";H1[27]="\\e";H1[34]="\\\"";H1[92]="\\\\";H1[133]="\\N";H1[160]="\\_";H1[8232]="\\L";H1[8233]="\\P";var Bw=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Nw($,X){var G,Y,J,W,H,U,F;if(X===null)return{};G={},Y=Object.keys(X);for(J=0,W=Y.length;J<W;J+=1){if(H=Y[J],U=String(X[H]),H.slice(0,2)==="!!")H="tag:yaml.org,2002:"+H.slice(2);if(F=$.compiledTypeMap.fallback[H],F&&gW.call(F.styleAliases,U))U=F.styleAliases[U];G[H]=U}return G}function SW($){var X,G,Y;if(X=$.toString(16).toUpperCase(),$<=255)G="x",Y=2;else if($<=65535)G="u",Y=4;else if($<=4294967295)G="U",Y=8;else throw new _4("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+G+w4.repeat("0",Y-X.length)+X}function ww($){this.schema=$.schema||$w,this.indent=Math.max(1,$.indent||2),this.noArrayIndent=$.noArrayIndent||!1,this.skipInvalid=$.skipInvalid||!1,this.flowLevel=w4.isNothing($.flowLevel)?-1:$.flowLevel,this.styleMap=Nw(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 kW($,X){var G=w4.repeat(" ",X),Y=0,J=-1,W="",H,U=$.length;while(Y<U){if(J=$.indexOf(`
26
+ `,W?1+F:F);W=!0,H=!0,F=0,G=$.position;while(!Y5(q)&&q!==0)q=$.input.charCodeAt(++$.position);p5($,G,$.position,!1)}return!0}function RW($,X){var G,Y=$.tag,J=$.anchor,W=[],H,U=!1,F;if($.anchor!==null)$.anchorMap[$.anchor]=W;F=$.input.charCodeAt($.position);while(F!==0){if(F!==45)break;if(H=$.input.charCodeAt($.position+1),!_1(H))break;if(U=!0,$.position++,f0($,!0,-1)){if($.lineIndent<=X){W.push(null),F=$.input.charCodeAt($.position);continue}}if(G=$.line,A6($,X,NW,!1,!0),W.push($.result),f0($,!0,-1),F=$.input.charCodeAt($.position),($.line===G||$.lineIndent>X)&&F!==0)c($,"bad indentation of a sequence entry");else if($.lineIndent<X)break}if(U)return $.tag=Y,$.anchor=J,$.kind="sequence",$.result=W,!0;return!1}function lN($,X,G){var Y,J,W,H,U=$.tag,F=$.anchor,M={},Q={},q=null,A=null,Z=null,_=!1,z=!1,D;if($.anchor!==null)$.anchorMap[$.anchor]=M;D=$.input.charCodeAt($.position);while(D!==0){if(Y=$.input.charCodeAt($.position+1),W=$.line,H=$.position,(D===63||D===58)&&_1(Y)){if(D===63){if(_)R6($,M,Q,q,A,null),q=A=Z=null;z=!0,_=!0,J=!0}else if(_)_=!1,J=!0;else c($,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");$.position+=1,D=Y}else if(A6($,G,VW,!1,!0))if($.line===W){D=$.input.charCodeAt($.position);while(T2(D))D=$.input.charCodeAt(++$.position);if(D===58){if(D=$.input.charCodeAt(++$.position),!_1(D))c($,"a whitespace character is expected after the key-value separator within a block mapping");if(_)R6($,M,Q,q,A,null),q=A=Z=null;z=!0,_=!1,J=!1,q=$.tag,A=$.result}else if(z)c($,"can not read an implicit mapping pair; a colon is missed");else return $.tag=U,$.anchor=F,!0}else if(z)c($,"can not read a block mapping entry; a multiline key may not be an implicit key");else return $.tag=U,$.anchor=F,!0;else break;if($.line===W||$.lineIndent>X){if(A6($,X,r8,!0,J))if(_)A=$.result;else Z=$.result;if(!_)R6($,M,Q,q,A,Z,W,H),q=A=Z=null;f0($,!0,-1),D=$.input.charCodeAt($.position)}if($.lineIndent>X&&D!==0)c($,"bad indentation of a mapping entry");else if($.lineIndent<X)break}if(_)R6($,M,Q,q,A,null);if(z)$.tag=U,$.anchor=F,$.kind="mapping",$.result=M;return z}function cN($){var X,G=!1,Y=!1,J,W,H;if(H=$.input.charCodeAt($.position),H!==33)return!1;if($.tag!==null)c($,"duplication of a tag property");if(H=$.input.charCodeAt(++$.position),H===60)G=!0,H=$.input.charCodeAt(++$.position);else if(H===33)Y=!0,J="!!",H=$.input.charCodeAt(++$.position);else J="!";if(X=$.position,G){do H=$.input.charCodeAt(++$.position);while(H!==0&&H!==62);if($.position<$.length)W=$.input.slice(X,$.position),H=$.input.charCodeAt(++$.position);else c($,"unexpected end of the stream within a verbatim tag")}else{while(H!==0&&!_1(H)){if(H===33)if(!Y){if(J=$.input.slice(X-1,$.position+1),!wW.test(J))c($,"named tag handle cannot contain such characters");Y=!0,X=$.position+1}else c($,"tag suffix cannot contain exclamation marks");H=$.input.charCodeAt(++$.position)}if(W=$.input.slice(X,$.position),vN.test(W))c($,"tag suffix cannot contain flow indicator characters")}if(W&&!_W.test(W))c($,"tag name cannot contain such characters: "+W);if(G)$.tag=W;else if(u5.call($.tagMap,J))$.tag=$.tagMap[J]+W;else if(J==="!")$.tag="!"+W;else if(J==="!!")$.tag="tag:yaml.org,2002:"+W;else c($,'undeclared tag handle "'+J+'"');return!0}function rN($){var X,G;if(G=$.input.charCodeAt($.position),G!==38)return!1;if($.anchor!==null)c($,"duplication of an anchor property");G=$.input.charCodeAt(++$.position),X=$.position;while(G!==0&&!_1(G)&&!Z6(G))G=$.input.charCodeAt(++$.position);if($.position===X)c($,"name of an anchor node must contain at least one character");return $.anchor=$.input.slice(X,$.position),!0}function iN($){var X,G,Y;if(Y=$.input.charCodeAt($.position),Y!==42)return!1;Y=$.input.charCodeAt(++$.position),X=$.position;while(Y!==0&&!_1(Y)&&!Z6(Y))Y=$.input.charCodeAt(++$.position);if($.position===X)c($,"name of an alias node must contain at least one character");if(G=$.input.slice(X,$.position),!u5.call($.anchorMap,G))c($,'unidentified alias "'+G+'"');return $.result=$.anchorMap[G],f0($,!0,-1),!0}function A6($,X,G,Y,J){var W,H,U,F=1,M=!1,Q=!1,q,A,Z,_,z;if($.listener!==null)$.listener("open",$);if($.tag=null,$.anchor=null,$.kind=null,$.result=null,W=H=U=r8===G||NW===G,Y){if(f0($,!0,-1)){if(M=!0,$.lineIndent>X)F=1;else if($.lineIndent===X)F=0;else if($.lineIndent<X)F=-1}}if(F===1)while(cN($)||rN($))if(f0($,!0,-1)){if(M=!0,U=W,$.lineIndent>X)F=1;else if($.lineIndent===X)F=0;else if($.lineIndent<X)F=-1}else U=!1;if(U)U=M||J;if(F===1||r8===G){if(c8===G||VW===G)_=X;else _=X+1;if(z=$.position-$.lineStart,F===1)if(U&&(RW($,z)||lN($,z,_))||uN($,_))Q=!0;else{if(H&&dN($,_)||mN($,_)||pN($,_))Q=!0;else if(iN($)){if(Q=!0,$.tag!==null||$.anchor!==null)c($,"alias node should not have any properties")}else if(gN($,_,c8===G)){if(Q=!0,$.tag===null)$.tag="?"}if($.anchor!==null)$.anchorMap[$.anchor]=$.result}else if(F===0)Q=U&&RW($,z)}if($.tag!==null&&$.tag!=="!")if($.tag==="?"){if($.result!==null&&$.kind!=="scalar")c($,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+$.kind+'"');for(q=0,A=$.implicitTypes.length;q<A;q+=1)if(Z=$.implicitTypes[q],Z.resolve($.result)){if($.result=Z.construct($.result),$.tag=Z.tag,$.anchor!==null)$.anchorMap[$.anchor]=$.result;break}}else if(u5.call($.typeMap[$.kind||"fallback"],$.tag)){if(Z=$.typeMap[$.kind||"fallback"][$.tag],$.result!==null&&Z.kind!==$.kind)c($,"unacceptable node kind for !<"+$.tag+'> tag; it should be "'+Z.kind+'", not "'+$.kind+'"');if(!Z.resolve($.result))c($,"cannot resolve a node with !<"+$.tag+"> explicit tag");else if($.result=Z.construct($.result),$.anchor!==null)$.anchorMap[$.anchor]=$.result}else c($,"unknown tag !<"+$.tag+">");if($.listener!==null)$.listener("close",$);return $.tag!==null||$.anchor!==null||Q}function nN($){var X=$.position,G,Y,J,W=!1,H;$.version=null,$.checkLineBreaks=$.legacy,$.tagMap={},$.anchorMap={};while((H=$.input.charCodeAt($.position))!==0){if(f0($,!0,-1),H=$.input.charCodeAt($.position),$.lineIndent>0||H!==37)break;W=!0,H=$.input.charCodeAt(++$.position),G=$.position;while(H!==0&&!_1(H))H=$.input.charCodeAt(++$.position);if(Y=$.input.slice(G,$.position),J=[],Y.length<1)c($,"directive name must not be less than one character in length");while(H!==0){while(T2(H))H=$.input.charCodeAt(++$.position);if(H===35){do H=$.input.charCodeAt(++$.position);while(H!==0&&!Y5(H));break}if(Y5(H))break;G=$.position;while(H!==0&&!_1(H))H=$.input.charCodeAt(++$.position);J.push($.input.slice(G,$.position))}if(H!==0)O7($);if(u5.call(OW,Y))OW[Y]($,Y,J);else i8($,'unknown document directive "'+Y+'"')}if(f0($,!0,-1),$.lineIndent===0&&$.input.charCodeAt($.position)===45&&$.input.charCodeAt($.position+1)===45&&$.input.charCodeAt($.position+2)===45)$.position+=3,f0($,!0,-1);else if(W)c($,"directives end mark is expected");if(A6($,$.lineIndent-1,r8,!1,!0),f0($,!0,-1),$.checkLineBreaks&&kN.test($.input.slice(X,$.position)))i8($,"non-ASCII line breaks are interpreted as content");if($.documents.push($.result),$.position===$.lineStart&&n8($)){if($.input.charCodeAt($.position)===46)$.position+=3,f0($,!0,-1);return}if($.position<$.length-1)c($,"end of the stream or a document separator is expected");else return}function CW($,X){if($=String($),X=X||{},$.length!==0){if($.charCodeAt($.length-1)!==10&&$.charCodeAt($.length-1)!==13)$+=`
27
+ `;if($.charCodeAt(0)===65279)$=$.slice(1)}var G=new fN($,X),Y=$.indexOf("\x00");if(Y!==-1)G.position=Y,c(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)nN(G);return G.documents}function TW($,X,G){if(X!==null&&typeof X==="object"&&typeof G>"u")G=X,X=null;var Y=CW($,G);if(typeof X!=="function")return Y;for(var J=0,W=Y.length;J<W;J+=1)X(Y[J])}function EW($,X){var G=CW($,X);if(G.length===0)return;else if(G.length===1)return G[0];throw new AW("expected a single document in the stream, but found more")}function oN($,X,G){if(typeof X==="object"&&X!==null&&typeof G>"u")G=X,X=null;return TW($,X,D5.extend({schema:BW},G))}function sN($,X){return EW($,D5.extend({schema:BW},X))}aN.loadAll=TW;aN.load=EW;aN.safeLoadAll=oN;aN.safeLoad=sN});var tW=d((hw,V7)=>{var _4=P2(),z4=Q6(),Gw=V4(),Yw=O6(),yW=Object.prototype.toString,fW=Object.prototype.hasOwnProperty,Jw=9,w4=10,Ww=13,Hw=32,Uw=33,Kw=34,gW=35,Fw=37,Mw=38,Qw=39,qw=42,mW=44,Ow=45,pW=58,Zw=61,Rw=62,Aw=63,Bw=64,uW=91,dW=93,Vw=96,lW=123,Nw=124,cW=125,U1={};U1[0]="\\0";U1[7]="\\a";U1[8]="\\b";U1[9]="\\t";U1[10]="\\n";U1[11]="\\v";U1[12]="\\f";U1[13]="\\r";U1[27]="\\e";U1[34]="\\\"";U1[92]="\\\\";U1[133]="\\N";U1[160]="\\_";U1[8232]="\\L";U1[8233]="\\P";var ww=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function _w($,X){var G,Y,J,W,H,U,F;if(X===null)return{};G={},Y=Object.keys(X);for(J=0,W=Y.length;J<W;J+=1){if(H=Y[J],U=String(X[H]),H.slice(0,2)==="!!")H="tag:yaml.org,2002:"+H.slice(2);if(F=$.compiledTypeMap.fallback[H],F&&fW.call(F.styleAliases,U))U=F.styleAliases[U];G[H]=U}return G}function jW($){var X,G,Y;if(X=$.toString(16).toUpperCase(),$<=255)G="x",Y=2;else if($<=65535)G="u",Y=4;else if($<=4294967295)G="U",Y=8;else throw new z4("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+G+_4.repeat("0",Y-X.length)+X}function zw($){this.schema=$.schema||Gw,this.indent=Math.max(1,$.indent||2),this.noArrayIndent=$.noArrayIndent||!1,this.skipInvalid=$.skipInvalid||!1,this.flowLevel=_4.isNothing($.flowLevel)?-1:$.flowLevel,this.styleMap=_w(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 SW($,X){var G=_4.repeat(" ",X),Y=0,J=-1,W="",H,U=$.length;while(Y<U){if(J=$.indexOf(`
28
28
  `,Y),J===-1)H=$.slice(Y),Y=U;else H=$.slice(Y,J+1),Y=J+1;if(H.length&&H!==`
29
- `)W+=G;W+=H}return W}function Q7($,X){return`
30
- `+w4.repeat(" ",$.indent*X)}function _w($,X){var G,Y,J;for(G=0,Y=$.implicitTypes.length;G<Y;G+=1)if(J=$.implicitTypes[G],J.resolve(X))return!0;return!1}function O7($){return $===Jw||$===Gw}function B6($){return 32<=$&&$<=126||161<=$&&$<=55295&&$!==8232&&$!==8233||57344<=$&&$<=65533&&$!==65279||65536<=$&&$<=1114111}function zw($){return B6($)&&!O7($)&&$!==65279&&$!==Yw&&$!==N4}function vW($,X){return B6($)&&$!==65279&&$!==pW&&$!==dW&&$!==lW&&$!==cW&&$!==rW&&$!==uW&&($!==mW||X&&zw(X))}function Dw($){return B6($)&&$!==65279&&!O7($)&&$!==Qw&&$!==Rw&&$!==uW&&$!==pW&&$!==dW&&$!==lW&&$!==cW&&$!==rW&&$!==mW&&$!==Kw&&$!==Mw&&$!==Ww&&$!==Vw&&$!==qw&&$!==Ow&&$!==Fw&&$!==Hw&&$!==Uw&&$!==Zw&&$!==Aw}function iW($){var X=/^\n* /;return X.test($)}var nW=1,oW=2,sW=3,aW=4,c8=5;function Pw($,X,G,Y,J){var W,H,U,F=!1,M=!1,Q=Y!==-1,q=-1,Z=Dw($.charCodeAt(0))&&!O7($.charCodeAt($.length-1));if(X)for(W=0;W<$.length;W++){if(H=$.charCodeAt(W),!B6(H))return c8;U=W>0?$.charCodeAt(W-1):null,Z=Z&&vW(H,U)}else{for(W=0;W<$.length;W++){if(H=$.charCodeAt(W),H===N4){if(F=!0,Q)M=M||W-q-1>Y&&$[q+1]!==" ",q=W}else if(!B6(H))return c8;U=W>0?$.charCodeAt(W-1):null,Z=Z&&vW(H,U)}M=M||Q&&(W-q-1>Y&&$[q+1]!==" ")}if(!F&&!M)return Z&&!J($)?nW:oW;if(G>9&&iW($))return c8;return M?aW:sW}function Lw($,X,G,Y){$.dump=function(){if(X.length===0)return"''";if(!$.noCompatMode&&Bw.indexOf(X)!==-1)return"'"+X+"'";var J=$.indent*Math.max(1,G),W=$.lineWidth===-1?-1:Math.max(Math.min($.lineWidth,40),$.lineWidth-J),H=Y||$.flowLevel>-1&&G>=$.flowLevel;function U(F){return _w($,F)}switch(Pw(X,H,$.indent,W,U)){case nW:return X;case oW:return"'"+X.replace(/'/g,"''")+"'";case sW:return"|"+xW(X,$.indent)+bW(kW(X,J));case aW:return">"+xW(X,$.indent)+bW(kW(Cw(X,W),J));case c8:return'"'+Tw(X,W)+'"';default:throw new _4("impossible error: invalid scalar style")}}()}function xW($,X){var G=iW($)?String(X):"",Y=$[$.length-1]===`
29
+ `)W+=G;W+=H}return W}function R7($,X){return`
30
+ `+_4.repeat(" ",$.indent*X)}function Dw($,X){var G,Y,J;for(G=0,Y=$.implicitTypes.length;G<Y;G+=1)if(J=$.implicitTypes[G],J.resolve(X))return!0;return!1}function B7($){return $===Hw||$===Jw}function B6($){return 32<=$&&$<=126||161<=$&&$<=55295&&$!==8232&&$!==8233||57344<=$&&$<=65533&&$!==65279||65536<=$&&$<=1114111}function Pw($){return B6($)&&!B7($)&&$!==65279&&$!==Ww&&$!==w4}function kW($,X){return B6($)&&$!==65279&&$!==mW&&$!==uW&&$!==dW&&$!==lW&&$!==cW&&$!==pW&&($!==gW||X&&Pw(X))}function Lw($){return B6($)&&$!==65279&&!B7($)&&$!==Ow&&$!==Aw&&$!==pW&&$!==mW&&$!==uW&&$!==dW&&$!==lW&&$!==cW&&$!==gW&&$!==Mw&&$!==qw&&$!==Uw&&$!==Nw&&$!==Zw&&$!==Rw&&$!==Qw&&$!==Kw&&$!==Fw&&$!==Bw&&$!==Vw}function rW($){var X=/^\n* /;return X.test($)}var iW=1,nW=2,oW=3,sW=4,o8=5;function Cw($,X,G,Y,J){var W,H,U,F=!1,M=!1,Q=Y!==-1,q=-1,A=Lw($.charCodeAt(0))&&!B7($.charCodeAt($.length-1));if(X)for(W=0;W<$.length;W++){if(H=$.charCodeAt(W),!B6(H))return o8;U=W>0?$.charCodeAt(W-1):null,A=A&&kW(H,U)}else{for(W=0;W<$.length;W++){if(H=$.charCodeAt(W),H===w4){if(F=!0,Q)M=M||W-q-1>Y&&$[q+1]!==" ",q=W}else if(!B6(H))return o8;U=W>0?$.charCodeAt(W-1):null,A=A&&kW(H,U)}M=M||Q&&(W-q-1>Y&&$[q+1]!==" ")}if(!F&&!M)return A&&!J($)?iW:nW;if(G>9&&rW($))return o8;return M?sW:oW}function Tw($,X,G,Y){$.dump=function(){if(X.length===0)return"''";if(!$.noCompatMode&&ww.indexOf(X)!==-1)return"'"+X+"'";var J=$.indent*Math.max(1,G),W=$.lineWidth===-1?-1:Math.max(Math.min($.lineWidth,40),$.lineWidth-J),H=Y||$.flowLevel>-1&&G>=$.flowLevel;function U(F){return Dw($,F)}switch(Cw(X,H,$.indent,W,U)){case iW:return X;case nW:return"'"+X.replace(/'/g,"''")+"'";case oW:return"|"+vW(X,$.indent)+xW(SW(X,J));case sW:return">"+vW(X,$.indent)+xW(SW(Ew(X,W),J));case o8:return'"'+Iw(X,W)+'"';default:throw new z4("impossible error: invalid scalar style")}}()}function vW($,X){var G=rW($)?String(X):"",Y=$[$.length-1]===`
31
31
  `,J=Y&&($[$.length-2]===`
32
32
  `||$===`
33
33
  `),W=J?"+":Y?"":"-";return G+W+`
34
- `}function bW($){return $[$.length-1]===`
35
- `?$.slice(0,-1):$}function Cw($,X){var G=/(\n+)([^\n]*)/g,Y=function(){var M=$.indexOf(`
36
- `);return M=M!==-1?M:$.length,G.lastIndex=M,hW($.slice(0,M),X)}(),J=$[0]===`
34
+ `}function xW($){return $[$.length-1]===`
35
+ `?$.slice(0,-1):$}function Ew($,X){var G=/(\n+)([^\n]*)/g,Y=function(){var M=$.indexOf(`
36
+ `);return M=M!==-1?M:$.length,G.lastIndex=M,bW($.slice(0,M),X)}(),J=$[0]===`
37
37
  `||$[0]===" ",W,H;while(H=G.exec($)){var U=H[1],F=H[2];W=F[0]===" ",Y+=U+(!J&&!W&&F!==""?`
38
- `:"")+hW(F,X),J=W}return Y}function hW($,X){if($===""||$[0]===" ")return $;var G=/ [^ ]/g,Y,J=0,W,H=0,U=0,F="";while(Y=G.exec($)){if(U=Y.index,U-J>X)W=H>J?H:U,F+=`
38
+ `:"")+bW(F,X),J=W}return Y}function bW($,X){if($===""||$[0]===" ")return $;var G=/ [^ ]/g,Y,J=0,W,H=0,U=0,F="";while(Y=G.exec($)){if(U=Y.index,U-J>X)W=H>J?H:U,F+=`
39
39
  `+$.slice(J,W),J=W+1;H=U}if(F+=`
40
40
  `,$.length-J>X&&H>J)F+=$.slice(J,H)+`
41
- `+$.slice(H+1);else F+=$.slice(J);return F.slice(1)}function Tw($){var X="",G,Y,J;for(var W=0;W<$.length;W++){if(G=$.charCodeAt(W),G>=55296&&G<=56319){if(Y=$.charCodeAt(W+1),Y>=56320&&Y<=57343){X+=SW((G-55296)*1024+Y-56320+65536),W++;continue}}J=H1[G],X+=!J&&B6(G)?$[W]:J||SW(G)}return X}function Ew($,X,G){var Y="",J=$.tag,W,H;for(W=0,H=G.length;W<H;W+=1)if(I2($,X,G[W],!1,!1)){if(W!==0)Y+=","+(!$.condenseFlow?" ":"");Y+=$.dump}$.tag=J,$.dump="["+Y+"]"}function Iw($,X,G,Y){var J="",W=$.tag,H,U;for(H=0,U=G.length;H<U;H+=1)if(I2($,X+1,G[H],!0,!0)){if(!Y||H!==0)J+=Q7($,X);if($.dump&&N4===$.dump.charCodeAt(0))J+="-";else J+="- ";J+=$.dump}$.tag=W,$.dump=J||"[]"}function jw($,X,G){var Y="",J=$.tag,W=Object.keys(G),H,U,F,M,Q;for(H=0,U=W.length;H<U;H+=1){if(Q="",H!==0)Q+=", ";if($.condenseFlow)Q+='"';if(F=W[H],M=G[F],!I2($,X,F,!1,!1))continue;if($.dump.length>1024)Q+="? ";if(Q+=$.dump+($.condenseFlow?'"':"")+":"+($.condenseFlow?"":" "),!I2($,X,M,!1,!1))continue;Q+=$.dump,Y+=Q}$.tag=J,$.dump="{"+Y+"}"}function Sw($,X,G,Y){var J="",W=$.tag,H=Object.keys(G),U,F,M,Q,q,Z;if($.sortKeys===!0)H.sort();else if(typeof $.sortKeys==="function")H.sort($.sortKeys);else if($.sortKeys)throw new _4("sortKeys must be a boolean or a function");for(U=0,F=H.length;U<F;U+=1){if(Z="",!Y||U!==0)Z+=Q7($,X);if(M=H[U],Q=G[M],!I2($,X+1,M,!0,!0,!0))continue;if(q=$.tag!==null&&$.tag!=="?"||$.dump&&$.dump.length>1024,q)if($.dump&&N4===$.dump.charCodeAt(0))Z+="?";else Z+="? ";if(Z+=$.dump,q)Z+=Q7($,X);if(!I2($,X+1,Q,!0,q))continue;if($.dump&&N4===$.dump.charCodeAt(0))Z+=":";else Z+=": ";Z+=$.dump,J+=Z}$.tag=W,$.dump=J||"{}"}function yW($,X,G){var Y,J,W,H,U,F;J=G?$.explicitTypes:$.implicitTypes;for(W=0,H=J.length;W<H;W+=1)if(U=J[W],(U.instanceOf||U.predicate)&&(!U.instanceOf||typeof X==="object"&&X instanceof U.instanceOf)&&(!U.predicate||U.predicate(X))){if($.tag=G?U.tag:"?",U.represent){if(F=$.styleMap[U.tag]||U.defaultStyle,fW.call(U.represent)==="[object Function]")Y=U.represent(X,F);else if(gW.call(U.represent,F))Y=U.represent[F](X,F);else throw new _4("!<"+U.tag+'> tag resolver accepts not "'+F+'" style');$.dump=Y}return!0}return!1}function I2($,X,G,Y,J,W){if($.tag=null,$.dump=G,!yW($,G,!1))yW($,G,!0);var H=fW.call($.dump);if(Y)Y=$.flowLevel<0||$.flowLevel>X;var U=H==="[object Object]"||H==="[object Array]",F,M;if(U)F=$.duplicates.indexOf(G),M=F!==-1;if($.tag!==null&&$.tag!=="?"||M||$.indent!==2&&X>0)J=!1;if(M&&$.usedDuplicates[F])$.dump="*ref_"+F;else{if(U&&M&&!$.usedDuplicates[F])$.usedDuplicates[F]=!0;if(H==="[object Object]"){if(Y&&Object.keys($.dump).length!==0){if(Sw($,X,$.dump,J),M)$.dump="&ref_"+F+$.dump}else if(jw($,X,$.dump),M)$.dump="&ref_"+F+" "+$.dump}else if(H==="[object Array]"){var Q=$.noArrayIndent&&X>0?X-1:X;if(Y&&$.dump.length!==0){if(Iw($,Q,$.dump,J),M)$.dump="&ref_"+F+$.dump}else if(Ew($,Q,$.dump),M)$.dump="&ref_"+F+" "+$.dump}else if(H==="[object String]"){if($.tag!=="?")Lw($,$.dump,X,W)}else{if($.skipInvalid)return!1;throw new _4("unacceptable kind of an object to dump "+H)}if($.tag!==null&&$.tag!=="?")$.dump="!<"+$.tag+"> "+$.dump}return!0}function kw($,X){var G=[],Y=[],J,W;q7($,G,Y);for(J=0,W=Y.length;J<W;J+=1)X.duplicates.push(G[Y[J]]);X.usedDuplicates=Array(W)}function q7($,X,G){var Y,J,W;if($!==null&&typeof $==="object")if(J=X.indexOf($),J!==-1){if(G.indexOf(J)===-1)G.push(J)}else if(X.push($),Array.isArray($))for(J=0,W=$.length;J<W;J+=1)q7($[J],X,G);else{Y=Object.keys($);for(J=0,W=Y.length;J<W;J+=1)q7($[Y[J]],X,G)}}function tW($,X){X=X||{};var G=new ww(X);if(!G.noRefs)kw($,G);if(I2(G,0,$,!0,!0))return G.dump+`
42
- `;return""}function vw($,X){return tW($,w4.extend({schema:Xw},X))}xw.dump=tW;xw.safeDump=vw});var XH=d((yw,x0)=>{var r8=jW(),$H=eW();function i8($){return function(){throw Error("Function "+$+" is deprecated and cannot be used.")}}yw.Type=u0();yw.Schema=C2();yw.FAILSAFE_SCHEMA=g8();yw.JSON_SCHEMA=Y7();yw.CORE_SCHEMA=J7();yw.DEFAULT_SAFE_SCHEMA=R6();yw.DEFAULT_FULL_SCHEMA=V4();yw.load=r8.load;yw.loadAll=r8.loadAll;yw.safeLoad=r8.safeLoad;yw.safeLoadAll=r8.safeLoadAll;yw.dump=$H.dump;yw.safeDump=$H.safeDump;yw.YAMLException=q6();yw.MINIMAL_SCHEMA=g8();yw.SAFE_SCHEMA=R6();yw.DEFAULT_SCHEMA=V4();yw.scan=i8("scan");yw.parse=i8("parse");yw.compose=i8("compose");yw.addConstructor=i8("addConstructor")});var YH=d((Nk,GH)=>{var W_=XH();GH.exports=W_});var B7=d((A7,V7)=>{var n8=YH(),Z7=A7=V7.exports;Z7.yaml={parse:n8.safeLoad.bind(n8),stringify:n8.safeDump.bind(n8)};Z7.json={parse:JSON.parse.bind(JSON),stringify:function($,X){let G=Object.assign({replacer:null,space:2},X);return JSON.stringify($,G.replacer,G.space)}};Z7.javascript={parse:function parse(str,options,wrap){try{if(wrap!==!1)str=`(function() {
41
+ `+$.slice(H+1);else F+=$.slice(J);return F.slice(1)}function Iw($){var X="",G,Y,J;for(var W=0;W<$.length;W++){if(G=$.charCodeAt(W),G>=55296&&G<=56319){if(Y=$.charCodeAt(W+1),Y>=56320&&Y<=57343){X+=jW((G-55296)*1024+Y-56320+65536),W++;continue}}J=U1[G],X+=!J&&B6(G)?$[W]:J||jW(G)}return X}function jw($,X,G){var Y="",J=$.tag,W,H;for(W=0,H=G.length;W<H;W+=1)if(E2($,X,G[W],!1,!1)){if(W!==0)Y+=","+(!$.condenseFlow?" ":"");Y+=$.dump}$.tag=J,$.dump="["+Y+"]"}function Sw($,X,G,Y){var J="",W=$.tag,H,U;for(H=0,U=G.length;H<U;H+=1)if(E2($,X+1,G[H],!0,!0)){if(!Y||H!==0)J+=R7($,X);if($.dump&&w4===$.dump.charCodeAt(0))J+="-";else J+="- ";J+=$.dump}$.tag=W,$.dump=J||"[]"}function kw($,X,G){var Y="",J=$.tag,W=Object.keys(G),H,U,F,M,Q;for(H=0,U=W.length;H<U;H+=1){if(Q="",H!==0)Q+=", ";if($.condenseFlow)Q+='"';if(F=W[H],M=G[F],!E2($,X,F,!1,!1))continue;if($.dump.length>1024)Q+="? ";if(Q+=$.dump+($.condenseFlow?'"':"")+":"+($.condenseFlow?"":" "),!E2($,X,M,!1,!1))continue;Q+=$.dump,Y+=Q}$.tag=J,$.dump="{"+Y+"}"}function vw($,X,G,Y){var J="",W=$.tag,H=Object.keys(G),U,F,M,Q,q,A;if($.sortKeys===!0)H.sort();else if(typeof $.sortKeys==="function")H.sort($.sortKeys);else if($.sortKeys)throw new z4("sortKeys must be a boolean or a function");for(U=0,F=H.length;U<F;U+=1){if(A="",!Y||U!==0)A+=R7($,X);if(M=H[U],Q=G[M],!E2($,X+1,M,!0,!0,!0))continue;if(q=$.tag!==null&&$.tag!=="?"||$.dump&&$.dump.length>1024,q)if($.dump&&w4===$.dump.charCodeAt(0))A+="?";else A+="? ";if(A+=$.dump,q)A+=R7($,X);if(!E2($,X+1,Q,!0,q))continue;if($.dump&&w4===$.dump.charCodeAt(0))A+=":";else A+=": ";A+=$.dump,J+=A}$.tag=W,$.dump=J||"{}"}function hW($,X,G){var Y,J,W,H,U,F;J=G?$.explicitTypes:$.implicitTypes;for(W=0,H=J.length;W<H;W+=1)if(U=J[W],(U.instanceOf||U.predicate)&&(!U.instanceOf||typeof X==="object"&&X instanceof U.instanceOf)&&(!U.predicate||U.predicate(X))){if($.tag=G?U.tag:"?",U.represent){if(F=$.styleMap[U.tag]||U.defaultStyle,yW.call(U.represent)==="[object Function]")Y=U.represent(X,F);else if(fW.call(U.represent,F))Y=U.represent[F](X,F);else throw new z4("!<"+U.tag+'> tag resolver accepts not "'+F+'" style');$.dump=Y}return!0}return!1}function E2($,X,G,Y,J,W){if($.tag=null,$.dump=G,!hW($,G,!1))hW($,G,!0);var H=yW.call($.dump);if(Y)Y=$.flowLevel<0||$.flowLevel>X;var U=H==="[object Object]"||H==="[object Array]",F,M;if(U)F=$.duplicates.indexOf(G),M=F!==-1;if($.tag!==null&&$.tag!=="?"||M||$.indent!==2&&X>0)J=!1;if(M&&$.usedDuplicates[F])$.dump="*ref_"+F;else{if(U&&M&&!$.usedDuplicates[F])$.usedDuplicates[F]=!0;if(H==="[object Object]"){if(Y&&Object.keys($.dump).length!==0){if(vw($,X,$.dump,J),M)$.dump="&ref_"+F+$.dump}else if(kw($,X,$.dump),M)$.dump="&ref_"+F+" "+$.dump}else if(H==="[object Array]"){var Q=$.noArrayIndent&&X>0?X-1:X;if(Y&&$.dump.length!==0){if(Sw($,Q,$.dump,J),M)$.dump="&ref_"+F+$.dump}else if(jw($,Q,$.dump),M)$.dump="&ref_"+F+" "+$.dump}else if(H==="[object String]"){if($.tag!=="?")Tw($,$.dump,X,W)}else{if($.skipInvalid)return!1;throw new z4("unacceptable kind of an object to dump "+H)}if($.tag!==null&&$.tag!=="?")$.dump="!<"+$.tag+"> "+$.dump}return!0}function xw($,X){var G=[],Y=[],J,W;A7($,G,Y);for(J=0,W=Y.length;J<W;J+=1)X.duplicates.push(G[Y[J]]);X.usedDuplicates=Array(W)}function A7($,X,G){var Y,J,W;if($!==null&&typeof $==="object")if(J=X.indexOf($),J!==-1){if(G.indexOf(J)===-1)G.push(J)}else if(X.push($),Array.isArray($))for(J=0,W=$.length;J<W;J+=1)A7($[J],X,G);else{Y=Object.keys($);for(J=0,W=Y.length;J<W;J+=1)A7($[Y[J]],X,G)}}function aW($,X){X=X||{};var G=new zw(X);if(!G.noRefs)xw($,G);if(E2(G,0,$,!0,!0))return G.dump+`
42
+ `;return""}function bw($,X){return aW($,_4.extend({schema:Yw},X))}hw.dump=aW;hw.safeDump=bw});var $H=d((gw,b0)=>{var s8=IW(),eW=tW();function a8($){return function(){throw Error("Function "+$+" is deprecated and cannot be used.")}}gw.Type=d0();gw.Schema=L2();gw.FAILSAFE_SCHEMA=d8();gw.JSON_SCHEMA=U7();gw.CORE_SCHEMA=K7();gw.DEFAULT_SAFE_SCHEMA=O6();gw.DEFAULT_FULL_SCHEMA=V4();gw.load=s8.load;gw.loadAll=s8.loadAll;gw.safeLoad=s8.safeLoad;gw.safeLoadAll=s8.safeLoadAll;gw.dump=eW.dump;gw.safeDump=eW.safeDump;gw.YAMLException=Q6();gw.MINIMAL_SCHEMA=d8();gw.SAFE_SCHEMA=O6();gw.DEFAULT_SCHEMA=V4();gw.scan=a8("scan");gw.parse=a8("parse");gw.compose=a8("compose");gw.addConstructor=a8("addConstructor")});var GH=d((yk,XH)=>{var U_=$H();XH.exports=U_});var z7=d((w7,_7)=>{var t8=GH(),N7=w7=_7.exports;N7.yaml={parse:t8.safeLoad.bind(t8),stringify:t8.safeDump.bind(t8)};N7.json={parse:JSON.parse.bind(JSON),stringify:function($,X){let G=Object.assign({replacer:null,space:2},X);return JSON.stringify($,G.replacer,G.space)}};N7.javascript={parse:function parse(str,options,wrap){try{if(wrap!==!1)str=`(function() {
43
43
  return `+str.trim()+`;
44
- }());`;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 WH=d((wk,JH)=>{/*!
44
+ }());`;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 JH=d((fk,YH)=>{/*!
45
45
  * strip-bom-string <https://github.com/jonschlinkert/strip-bom-string>
46
46
  *
47
47
  * Copyright (c) 2015, 2017, Jon Schlinkert.
48
48
  * Released under the MIT License.
49
- */JH.exports=function($){if(typeof $==="string"&&$.charAt(0)==="\uFEFF")return $.slice(1);return $}});var o8=d((H_)=>{var HH=WH(),UH=Z4();H_.define=function($,X,G){Reflect.defineProperty($,X,{enumerable:!1,configurable:!0,writable:!0,value:G})};H_.isBuffer=function($){return UH($)==="buffer"};H_.isObject=function($){return UH($)==="object"};H_.toBuffer=function($){return typeof $==="string"?Buffer.from($):$};H_.toString=function($){if(H_.isBuffer($))return HH(String($));if(typeof $!=="string")throw TypeError("expected input to be a string or buffer");return HH($)};H_.arrayify=function($){return $?Array.isArray($)?$:[$]:[]};H_.startsWith=function($,X,G){if(typeof G!=="number")G=X.length;return $.slice(0,G)===X}});var z4=d((zk,FH)=>{var O_=B7(),R_=o8();FH.exports=function($){let X=Object.assign({},$);if(X.delimiters=R_.arrayify(X.delims||X.delimiters||"---"),X.delimiters.length===1)X.delimiters.push(X.delimiters[0]);return X.language=(X.language||X.lang||"yaml").toLowerCase(),X.engines=Object.assign({},O_,X.parsers,X.engines),X}});var N7=d((Dk,MH)=>{MH.exports=function($,X){let G=X.engines[$]||X.engines[Z_($)];if(typeof G>"u")throw Error('gray-matter engine "'+$+'" is not registered');if(typeof G==="function")G={parse:G};return G};function Z_($){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 w7=d((Pk,QH)=>{var A_=Z4(),V_=N7(),B_=z4();QH.exports=function($,X,G){if(X==null&&G==null)switch(A_($)){case"object":X=$.data,G={};break;case"string":return $;default:throw TypeError("expected file to be a string or object")}let Y=$.content,J=B_(G);if(X==null){if(!J.data)return $;X=J.data}let W=$.language||J.language,H=V_(W,J);if(typeof H.stringify!=="function")throw TypeError('expected "'+W+'.stringify" to be a function');X=Object.assign({},$.data,X);let U=J.delimiters[0],F=J.delimiters[1],M=H.stringify(X,G).trim(),Q="";if(M!=="{}")Q=N6(U)+N6(M)+N6(F);if(typeof $.excerpt==="string"&&$.excerpt!==""){if(Y.indexOf($.excerpt.trim())===-1)Q+=N6($.excerpt)+N6(F)}return Q+N6(Y)};function N6($){return $.slice(-1)!==`
49
+ */YH.exports=function($){if(typeof $==="string"&&$.charAt(0)==="\uFEFF")return $.slice(1);return $}});var e8=d((K_)=>{var WH=JH(),HH=A4();K_.define=function($,X,G){Reflect.defineProperty($,X,{enumerable:!1,configurable:!0,writable:!0,value:G})};K_.isBuffer=function($){return HH($)==="buffer"};K_.isObject=function($){return HH($)==="object"};K_.toBuffer=function($){return typeof $==="string"?Buffer.from($):$};K_.toString=function($){if(K_.isBuffer($))return WH(String($));if(typeof $!=="string")throw TypeError("expected input to be a string or buffer");return WH($)};K_.arrayify=function($){return $?Array.isArray($)?$:[$]:[]};K_.startsWith=function($,X,G){if(typeof G!=="number")G=X.length;return $.slice(0,G)===X}});var D4=d((mk,KH)=>{var R_=z7(),A_=e8();KH.exports=function($){let X=Object.assign({},$);if(X.delimiters=A_.arrayify(X.delims||X.delimiters||"---"),X.delimiters.length===1)X.delimiters.push(X.delimiters[0]);return X.language=(X.language||X.lang||"yaml").toLowerCase(),X.engines=Object.assign({},R_,X.parsers,X.engines),X}});var D7=d((pk,FH)=>{FH.exports=function($,X){let G=X.engines[$]||X.engines[B_($)];if(typeof G>"u")throw Error('gray-matter engine "'+$+'" is not registered');if(typeof G==="function")G={parse:G};return G};function B_($){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 P7=d((uk,MH)=>{var V_=A4(),N_=D7(),w_=D4();MH.exports=function($,X,G){if(X==null&&G==null)switch(V_($)){case"object":X=$.data,G={};break;case"string":return $;default:throw TypeError("expected file to be a string or object")}let Y=$.content,J=w_(G);if(X==null){if(!J.data)return $;X=J.data}let W=$.language||J.language,H=N_(W,J);if(typeof H.stringify!=="function")throw TypeError('expected "'+W+'.stringify" to be a function');X=Object.assign({},$.data,X);let U=J.delimiters[0],F=J.delimiters[1],M=H.stringify(X,G).trim(),Q="";if(M!=="{}")Q=V6(U)+V6(M)+V6(F);if(typeof $.excerpt==="string"&&$.excerpt!==""){if(Y.indexOf($.excerpt.trim())===-1)Q+=V6($.excerpt)+V6(F)}return Q+V6(Y)};function V6($){return $.slice(-1)!==`
50
50
  `?$+`
51
- `:$}});var OH=d((Lk,qH)=>{var N_=z4();qH.exports=function($,X){let G=N_(X);if($.data==null)$.data={};if(typeof G.excerpt==="function")return G.excerpt($,G);let Y=$.data.excerpt_separator||G.excerpt_separator;if(Y==null&&(G.excerpt===!1||G.excerpt==null))return $;let J=typeof G.excerpt==="string"?G.excerpt:Y||G.delimiters[0],W=$.content.indexOf(J);if(W!==-1)$.excerpt=$.content.slice(0,W);return $}});var AH=d((Ck,ZH)=>{var RH=Z4(),w_=w7(),w6=o8();ZH.exports=function($){if(RH($)!=="object")$={content:$};if(RH($.data)!=="object")$.data={};if($.contents&&$.content==null)$.content=$.contents;return w6.define($,"orig",w6.toBuffer($.content)),w6.define($,"language",$.language||""),w6.define($,"matter",$.matter||""),w6.define($,"stringify",function(X,G){if(G&&G.language)$.language=G.language;return w_($,X,G)}),$.content=w6.toString($.content),$.isEmpty=!1,$.excerpt="",$}});var BH=d((Tk,VH)=>{var __=N7(),z_=z4();VH.exports=function($,X,G){let Y=z_(G),J=__($,Y);if(typeof J.parse!=="function")throw TypeError('expected "'+$+'.parse" to be a function');return J.parse(X,Y)}});var z7=d((Ek,_H)=>{var D_=N5("fs"),P_=RJ(),_7=z4(),L_=w7(),NH=OH(),C_=B7(),T_=AH(),E_=BH(),wH=o8();function O1($,X){if($==="")return{data:{},content:$,excerpt:"",orig:$};let G=T_($),Y=O1.cache[G.content];if(!X){if(Y)return G=Object.assign({},Y),G.orig=Y.orig,G;O1.cache[G.content]=G}return I_(G,X)}function I_($,X){let G=_7(X),Y=G.delimiters[0],J=`
52
- `+G.delimiters[1],W=$.content;if(G.language)$.language=G.language;let H=Y.length;if(!wH.startsWith(W,Y,H))return NH($,G),$;if(W.charAt(H)===Y.slice(-1))return $;W=W.slice(H);let U=W.length,F=O1.language(W,G);if(F.name)$.language=F.name,W=W.slice(F.raw.length);let M=W.indexOf(J);if(M===-1)M=U;if($.matter=W.slice(0,M),$.matter.replace(/^\s*#[^\n]+/gm,"").trim()==="")$.isEmpty=!0,$.empty=$.content,$.data={};else $.data=E_($.language,$.matter,G);if(M===U)$.content="";else{if($.content=W.slice(M+J.length),$.content[0]==="\r")$.content=$.content.slice(1);if($.content[0]===`
53
- `)$.content=$.content.slice(1)}if(NH($,G),G.sections===!0||typeof G.section==="function")P_($,G.section);return $}O1.engines=C_;O1.stringify=function($,X,G){if(typeof $==="string")$=O1($,G);return L_($,X,G)};O1.read=function($,X){let G=D_.readFileSync($,"utf8"),Y=O1(G,X);return Y.path=$,Y};O1.test=function($,X){return wH.startsWith($,_7(X).delimiters[0])};O1.language=function($,X){let Y=_7(X).delimiters[0];if(O1.test($))$=$.slice(Y.length);let J=$.slice(0,$.search(/\r?\n/));return{raw:J,name:J?J.trim():""}};O1.cache={};O1.clearCache=function(){O1.cache={}};_H.exports=O1});function P7(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function TH($){S2=$}function I1($,X){if(X){if(EH.test($))return $.replace(j_,zH)}else if(IH.test($))return $.replace(S_,zH);return $}function x_($){return $.replace(v_,(X,G)=>{if(G=G.toLowerCase(),G==="colon")return":";if(G.charAt(0)==="#")return G.charAt(1)==="x"?String.fromCharCode(parseInt(G.substring(2),16)):String.fromCharCode(+G.substring(1));return""})}function z0($,X){let G=typeof $==="string"?$:$.source;X=X||"";let Y={replace:(J,W)=>{let H=typeof W==="string"?W:W.source;return H=H.replace(b_,"$1"),G=G.replace(J,H),Y},getRegex:()=>{return new RegExp(G,X)}};return Y}function DH($){try{$=encodeURI($).replace(/%25/g,"%")}catch(X){return null}return $}function PH($,X){let G=$.replace(/\|/g,(W,H,U)=>{let F=!1,M=H;while(--M>=0&&U[M]==="\\")F=!F;if(F)return"|";else return" |"}),Y=G.split(/ \|/),J=0;if(!Y[0].trim())Y.shift();if(Y.length>0&&!Y[Y.length-1].trim())Y.pop();if(X)if(Y.length>X)Y.splice(X);else while(Y.length<X)Y.push("");for(;J<Y.length;J++)Y[J]=Y[J].trim().replace(/\\\|/g,"|");return Y}function s8($,X,G){let Y=$.length;if(Y===0)return"";let J=0;while(J<Y){let W=$.charAt(Y-J-1);if(W===X&&!G)J++;else if(W!==X&&G)J++;else break}return $.slice(0,Y-J)}function h_($,X){if($.indexOf(X[1])===-1)return-1;let G=0;for(let Y=0;Y<$.length;Y++)if($[Y]==="\\")Y++;else if($[Y]===X[0])G++;else if($[Y]===X[1]){if(G--,G<0)return Y}return-1}function LH($,X,G,Y){let J=X.href,W=X.title?I1(X.title):null,H=$[1].replace(/\\([\[\]])/g,"$1");if($[0].charAt(0)!=="!"){Y.state.inLink=!0;let U={type:"link",raw:G,href:J,title:W,text:H,tokens:Y.inlineTokens(H)};return Y.state.inLink=!1,U}return{type:"image",raw:G,href:J,title:W,text:I1(H)}}function y_($,X){let G=$.match(/^(\s+)(?:```)/);if(G===null)return X;let Y=G[1];return X.split(`
51
+ `:$}});var qH=d((dk,QH)=>{var __=D4();QH.exports=function($,X){let G=__(X);if($.data==null)$.data={};if(typeof G.excerpt==="function")return G.excerpt($,G);let Y=$.data.excerpt_separator||G.excerpt_separator;if(Y==null&&(G.excerpt===!1||G.excerpt==null))return $;let J=typeof G.excerpt==="string"?G.excerpt:Y||G.delimiters[0],W=$.content.indexOf(J);if(W!==-1)$.excerpt=$.content.slice(0,W);return $}});var RH=d((lk,ZH)=>{var OH=A4(),z_=P7(),N6=e8();ZH.exports=function($){if(OH($)!=="object")$={content:$};if(OH($.data)!=="object")$.data={};if($.contents&&$.content==null)$.content=$.contents;return N6.define($,"orig",N6.toBuffer($.content)),N6.define($,"language",$.language||""),N6.define($,"matter",$.matter||""),N6.define($,"stringify",function(X,G){if(G&&G.language)$.language=G.language;return z_($,X,G)}),$.content=N6.toString($.content),$.isEmpty=!1,$.excerpt="",$}});var BH=d((ck,AH)=>{var D_=D7(),P_=D4();AH.exports=function($,X,G){let Y=P_(G),J=D_($,Y);if(typeof J.parse!=="function")throw TypeError('expected "'+$+'.parse" to be a function');return J.parse(X,Y)}});var C7=d((rk,wH)=>{var L_=N5("fs"),C_=OJ(),L7=D4(),T_=P7(),VH=qH(),E_=z7(),I_=RH(),j_=BH(),NH=e8();function O1($,X){if($==="")return{data:{},content:$,excerpt:"",orig:$};let G=I_($),Y=O1.cache[G.content];if(!X){if(Y)return G=Object.assign({},Y),G.orig=Y.orig,G;O1.cache[G.content]=G}return S_(G,X)}function S_($,X){let G=L7(X),Y=G.delimiters[0],J=`
52
+ `+G.delimiters[1],W=$.content;if(G.language)$.language=G.language;let H=Y.length;if(!NH.startsWith(W,Y,H))return VH($,G),$;if(W.charAt(H)===Y.slice(-1))return $;W=W.slice(H);let U=W.length,F=O1.language(W,G);if(F.name)$.language=F.name,W=W.slice(F.raw.length);let M=W.indexOf(J);if(M===-1)M=U;if($.matter=W.slice(0,M),$.matter.replace(/^\s*#[^\n]+/gm,"").trim()==="")$.isEmpty=!0,$.empty=$.content,$.data={};else $.data=j_($.language,$.matter,G);if(M===U)$.content="";else{if($.content=W.slice(M+J.length),$.content[0]==="\r")$.content=$.content.slice(1);if($.content[0]===`
53
+ `)$.content=$.content.slice(1)}if(VH($,G),G.sections===!0||typeof G.section==="function")C_($,G.section);return $}O1.engines=E_;O1.stringify=function($,X,G){if(typeof $==="string")$=O1($,G);return T_($,X,G)};O1.read=function($,X){let G=L_.readFileSync($,"utf8"),Y=O1(G,X);return Y.path=$,Y};O1.test=function($,X){return NH.startsWith($,L7(X).delimiters[0])};O1.language=function($,X){let Y=L7(X).delimiters[0];if(O1.test($))$=$.slice(Y.length);let J=$.slice(0,$.search(/\r?\n/));return{raw:J,name:J?J.trim():""}};O1.cache={};O1.clearCache=function(){O1.cache={}};wH.exports=O1});function E7(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function CH($){j2=$}function I1($,X){if(X){if(TH.test($))return $.replace(k_,_H)}else if(EH.test($))return $.replace(v_,_H);return $}function h_($){return $.replace(b_,(X,G)=>{if(G=G.toLowerCase(),G==="colon")return":";if(G.charAt(0)==="#")return G.charAt(1)==="x"?String.fromCharCode(parseInt(G.substring(2),16)):String.fromCharCode(+G.substring(1));return""})}function z0($,X){let G=typeof $==="string"?$:$.source;X=X||"";let Y={replace:(J,W)=>{let H=typeof W==="string"?W:W.source;return H=H.replace(y_,"$1"),G=G.replace(J,H),Y},getRegex:()=>{return new RegExp(G,X)}};return Y}function zH($){try{$=encodeURI($).replace(/%25/g,"%")}catch(X){return null}return $}function DH($,X){let G=$.replace(/\|/g,(W,H,U)=>{let F=!1,M=H;while(--M>=0&&U[M]==="\\")F=!F;if(F)return"|";else return" |"}),Y=G.split(/ \|/),J=0;if(!Y[0].trim())Y.shift();if(Y.length>0&&!Y[Y.length-1].trim())Y.pop();if(X)if(Y.length>X)Y.splice(X);else while(Y.length<X)Y.push("");for(;J<Y.length;J++)Y[J]=Y[J].trim().replace(/\\\|/g,"|");return Y}function $9($,X,G){let Y=$.length;if(Y===0)return"";let J=0;while(J<Y){let W=$.charAt(Y-J-1);if(W===X&&!G)J++;else if(W!==X&&G)J++;else break}return $.slice(0,Y-J)}function f_($,X){if($.indexOf(X[1])===-1)return-1;let G=0;for(let Y=0;Y<$.length;Y++)if($[Y]==="\\")Y++;else if($[Y]===X[0])G++;else if($[Y]===X[1]){if(G--,G<0)return Y}return-1}function PH($,X,G,Y){let J=X.href,W=X.title?I1(X.title):null,H=$[1].replace(/\\([\[\]])/g,"$1");if($[0].charAt(0)!=="!"){Y.state.inLink=!0;let U={type:"link",raw:G,href:J,title:W,text:H,tokens:Y.inlineTokens(H)};return Y.state.inLink=!1,U}return{type:"image",raw:G,href:J,title:W,text:I1(H)}}function g_($,X){let G=$.match(/^(\s+)(?:```)/);if(G===null)return X;let Y=G[1];return X.split(`
54
54
  `).map((J)=>{let W=J.match(/^\s+/);if(W===null)return J;let[H]=W;if(H.length>=Y.length)return J.slice(Y.length);return J}).join(`
55
- `)}class C4{options;rules;lexer;constructor($){this.options=$||S2}space($){let X=this.rules.block.newline.exec($);if(X&&X[0].length>0)return{type:"space",raw:X[0]}}code($){let X=this.rules.block.code.exec($);if(X){let G=X[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:X[0],codeBlockStyle:"indented",text:!this.options.pedantic?s8(G,`
56
- `):G}}}fences($){let X=this.rules.block.fences.exec($);if(X){let G=X[0],Y=y_(G,X[3]||"");return{type:"code",raw:G,lang:X[2]?X[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):X[2],text:Y}}}heading($){let X=this.rules.block.heading.exec($);if(X){let G=X[2].trim();if(/#$/.test(G)){let Y=s8(G,"#");if(this.options.pedantic)G=Y.trim();else if(!Y||/ $/.test(Y))G=Y.trim()}return{type:"heading",raw:X[0],depth:X[1].length,text:G,tokens:this.lexer.inline(G)}}}hr($){let X=this.rules.block.hr.exec($);if(X)return{type:"hr",raw:X[0]}}blockquote($){let X=this.rules.block.blockquote.exec($);if(X){let G=X[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
57
- $1`);G=s8(G.replace(/^ *>[ \t]?/gm,""),`
55
+ `)}class T4{options;rules;lexer;constructor($){this.options=$||j2}space($){let X=this.rules.block.newline.exec($);if(X&&X[0].length>0)return{type:"space",raw:X[0]}}code($){let X=this.rules.block.code.exec($);if(X){let G=X[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:X[0],codeBlockStyle:"indented",text:!this.options.pedantic?$9(G,`
56
+ `):G}}}fences($){let X=this.rules.block.fences.exec($);if(X){let G=X[0],Y=g_(G,X[3]||"");return{type:"code",raw:G,lang:X[2]?X[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):X[2],text:Y}}}heading($){let X=this.rules.block.heading.exec($);if(X){let G=X[2].trim();if(/#$/.test(G)){let Y=$9(G,"#");if(this.options.pedantic)G=Y.trim();else if(!Y||/ $/.test(Y))G=Y.trim()}return{type:"heading",raw:X[0],depth:X[1].length,text:G,tokens:this.lexer.inline(G)}}}hr($){let X=this.rules.block.hr.exec($);if(X)return{type:"hr",raw:X[0]}}blockquote($){let X=this.rules.block.blockquote.exec($);if(X){let G=X[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
57
+ $1`);G=$9(G.replace(/^ *>[ \t]?/gm,""),`
58
58
  `);let Y=this.lexer.state.top;this.lexer.state.top=!0;let J=this.lexer.blockTokens(G);return this.lexer.state.top=Y,{type:"blockquote",raw:X[0],tokens:J,text:G}}}list($){let X=this.rules.block.list.exec($);if(X){let G=X[1].trim(),Y=G.length>1,J={type:"list",raw:"",ordered:Y,start:Y?+G.slice(0,-1):"",loose:!1,items:[]};if(G=Y?`\\d{1,9}\\${G.slice(-1)}`:`\\${G}`,this.options.pedantic)G=Y?G:"[*+-]";let W=new RegExp(`^( {0,3}${G})((?:[ ][^\\n]*)?(?:\\n|$))`),H="",U="",F=!1;while($){let M=!1;if(!(X=W.exec($)))break;if(this.rules.block.hr.test($))break;H=X[0],$=$.substring(H.length);let Q=X[2].split(`
59
59
  `,1)[0].replace(/^\t+/,(D)=>" ".repeat(3*D.length)),q=$.split(`
60
- `,1)[0],Z=0;if(this.options.pedantic)Z=2,U=Q.trimStart();else Z=X[2].search(/[^ ]/),Z=Z>4?1:Z,U=Q.slice(Z),Z+=X[1].length;let A=!1;if(!Q&&/^ *$/.test(q))H+=q+`
61
- `,$=$.substring(q.length+1),M=!0;if(!M){let D=new RegExp(`^ {0,${Math.min(3,Z-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),P=new RegExp(`^ {0,${Math.min(3,Z-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),b=new RegExp(`^ {0,${Math.min(3,Z-1)}}(?:\`\`\`|~~~)`),y=new RegExp(`^ {0,${Math.min(3,Z-1)}}#`);while($){let X0=$.split(`
62
- `,1)[0];if(q=X0,this.options.pedantic)q=q.replace(/^ {1,4}(?=( {4})*[^ ])/g," ");if(b.test(q))break;if(y.test(q))break;if(D.test(q))break;if(P.test($))break;if(q.search(/[^ ]/)>=Z||!q.trim())U+=`
63
- `+q.slice(Z);else{if(A)break;if(Q.search(/[^ ]/)>=4)break;if(b.test(Q))break;if(y.test(Q))break;if(P.test(Q))break;U+=`
64
- `+q}if(!A&&!q.trim())A=!0;H+=X0+`
65
- `,$=$.substring(X0.length+1),Q=q.slice(Z)}}if(!J.loose){if(F)J.loose=!0;else if(/\n *\n *$/.test(H))F=!0}let _=null,z;if(this.options.gfm){if(_=/^\[[ xX]\] /.exec(U),_)z=_[0]!=="[ ] ",U=U.replace(/^\[[ xX]\] +/,"")}J.items.push({type:"list_item",raw:H,task:!!_,checked:z,loose:!1,text:U,tokens:[]}),J.raw+=H}J.items[J.items.length-1].raw=H.trimEnd(),J.items[J.items.length-1].text=U.trimEnd(),J.raw=J.raw.trimEnd();for(let M=0;M<J.items.length;M++)if(this.lexer.state.top=!1,J.items[M].tokens=this.lexer.blockTokens(J.items[M].text,[]),!J.loose){let Q=J.items[M].tokens.filter((Z)=>Z.type==="space"),q=Q.length>0&&Q.some((Z)=>/\n.*\n/.test(Z.raw));J.loose=q}if(J.loose)for(let M=0;M<J.items.length;M++)J.items[M].loose=!0;return J}}html($){let X=this.rules.block.html.exec($);if(X)return{type:"html",block:!0,raw:X[0],pre:X[1]==="pre"||X[1]==="script"||X[1]==="style",text:X[0]}}def($){let X=this.rules.block.def.exec($);if(X){let G=X[1].toLowerCase().replace(/\s+/g," "),Y=X[2]?X[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",J=X[3]?X[3].substring(1,X[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):X[3];return{type:"def",tag:G,raw:X[0],href:Y,title:J}}}table($){let X=this.rules.block.table.exec($);if(!X)return;if(!/[:|]/.test(X[2]))return;let G=PH(X[1]),Y=X[2].replace(/^\||\| *$/g,"").split("|"),J=X[3]&&X[3].trim()?X[3].replace(/\n[ \t]*$/,"").split(`
66
- `):[],W={type:"table",raw:X[0],header:[],align:[],rows:[]};if(G.length!==Y.length)return;for(let H of Y)if(/^ *-+: *$/.test(H))W.align.push("right");else if(/^ *:-+: *$/.test(H))W.align.push("center");else if(/^ *:-+ *$/.test(H))W.align.push("left");else W.align.push(null);for(let H of G)W.header.push({text:H,tokens:this.lexer.inline(H)});for(let H of J)W.rows.push(PH(H,W.header.length).map((U)=>{return{text:U,tokens:this.lexer.inline(U)}}));return W}lheading($){let X=this.rules.block.lheading.exec($);if(X)return{type:"heading",raw:X[0],depth:X[2].charAt(0)==="="?1:2,text:X[1],tokens:this.lexer.inline(X[1])}}paragraph($){let X=this.rules.block.paragraph.exec($);if(X){let G=X[1].charAt(X[1].length-1)===`
67
- `?X[1].slice(0,-1):X[1];return{type:"paragraph",raw:X[0],text:G,tokens:this.lexer.inline(G)}}}text($){let X=this.rules.block.text.exec($);if(X)return{type:"text",raw:X[0],text:X[0],tokens:this.lexer.inline(X[0])}}escape($){let X=this.rules.inline.escape.exec($);if(X)return{type:"escape",raw:X[0],text:I1(X[1])}}tag($){let X=this.rules.inline.tag.exec($);if(X){if(!this.lexer.state.inLink&&/^<a /i.test(X[0]))this.lexer.state.inLink=!0;else if(this.lexer.state.inLink&&/^<\/a>/i.test(X[0]))this.lexer.state.inLink=!1;if(!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(X[0]))this.lexer.state.inRawBlock=!0;else if(this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(X[0]))this.lexer.state.inRawBlock=!1;return{type:"html",raw:X[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:X[0]}}}link($){let X=this.rules.inline.link.exec($);if(X){let G=X[2].trim();if(!this.options.pedantic&&/^</.test(G)){if(!/>$/.test(G))return;let W=s8(G.slice(0,-1),"\\");if((G.length-W.length)%2===0)return}else{let W=h_(X[2],"()");if(W>-1){let U=(X[0].indexOf("!")===0?5:4)+X[1].length+W;X[2]=X[2].substring(0,W),X[0]=X[0].substring(0,U).trim(),X[3]=""}}let Y=X[2],J="";if(this.options.pedantic){let W=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Y);if(W)Y=W[1],J=W[3]}else J=X[3]?X[3].slice(1,-1):"";if(Y=Y.trim(),/^</.test(Y))if(this.options.pedantic&&!/>$/.test(G))Y=Y.slice(1);else Y=Y.slice(1,-1);return LH(X,{href:Y?Y.replace(this.rules.inline.anyPunctuation,"$1"):Y,title:J?J.replace(this.rules.inline.anyPunctuation,"$1"):J},X[0],this.lexer)}}reflink($,X){let G;if((G=this.rules.inline.reflink.exec($))||(G=this.rules.inline.nolink.exec($))){let Y=(G[2]||G[1]).replace(/\s+/g," "),J=X[Y.toLowerCase()];if(!J){let W=G[0].charAt(0);return{type:"text",raw:W,text:W}}return LH(G,J,G[0],this.lexer)}}emStrong($,X,G=""){let Y=this.rules.inline.emStrongLDelim.exec($);if(!Y)return;if(Y[3]&&G.match(/[\p{L}\p{N}]/u))return;if(!(Y[1]||Y[2])||!G||this.rules.inline.punctuation.exec(G)){let W=[...Y[0]].length-1,H,U,F=W,M=0,Q=Y[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;Q.lastIndex=0,X=X.slice(-1*$.length+W);while((Y=Q.exec(X))!=null){if(H=Y[1]||Y[2]||Y[3]||Y[4]||Y[5]||Y[6],!H)continue;if(U=[...H].length,Y[3]||Y[4]){F+=U;continue}else if(Y[5]||Y[6]){if(W%3&&!((W+U)%3)){M+=U;continue}}if(F-=U,F>0)continue;U=Math.min(U,U+F+M);let q=[...Y[0]][0].length,Z=$.slice(0,W+Y.index+q+U);if(Math.min(W,U)%2){let _=Z.slice(1,-1);return{type:"em",raw:Z,text:_,tokens:this.lexer.inlineTokens(_)}}let A=Z.slice(2,-2);return{type:"strong",raw:Z,text:A,tokens:this.lexer.inlineTokens(A)}}}}codespan($){let X=this.rules.inline.code.exec($);if(X){let G=X[2].replace(/\n/g," "),Y=/[^ ]/.test(G),J=/^ /.test(G)&&/ $/.test(G);if(Y&&J)G=G.substring(1,G.length-1);return G=I1(G,!0),{type:"codespan",raw:X[0],text:G}}}br($){let X=this.rules.inline.br.exec($);if(X)return{type:"br",raw:X[0]}}del($){let X=this.rules.inline.del.exec($);if(X)return{type:"del",raw:X[0],text:X[2],tokens:this.lexer.inlineTokens(X[2])}}autolink($){let X=this.rules.inline.autolink.exec($);if(X){let G,Y;if(X[2]==="@")G=I1(X[1]),Y="mailto:"+G;else G=I1(X[1]),Y=G;return{type:"link",raw:X[0],text:G,href:Y,tokens:[{type:"text",raw:G,text:G}]}}}url($){let X;if(X=this.rules.inline.url.exec($)){let G,Y;if(X[2]==="@")G=I1(X[0]),Y="mailto:"+G;else{let J;do J=X[0],X[0]=this.rules.inline._backpedal.exec(X[0])?.[0]??"";while(J!==X[0]);if(G=I1(X[0]),X[1]==="www.")Y="http://"+X[0];else Y=X[0]}return{type:"link",raw:X[0],text:G,href:Y,tokens:[{type:"text",raw:G,text:G}]}}}inlineText($){let X=this.rules.inline.text.exec($);if(X){let G;if(this.lexer.state.inRawBlock)G=X[0];else G=I1(X[0]);return{type:"text",raw:X[0],text:G}}}}class J5{tokens;options;state;tokenizer;inlineQueue;constructor($){this.tokens=[],this.tokens.links=Object.create(null),this.options=$||S2,this.options.tokenizer=this.options.tokenizer||new C4,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let X={block:a8.normal,inline:D4.normal};if(this.options.pedantic)X.block=a8.pedantic,X.inline=D4.pedantic;else if(this.options.gfm)if(X.block=a8.gfm,this.options.breaks)X.inline=D4.breaks;else X.inline=D4.gfm;this.tokenizer.rules=X}static get rules(){return{block:a8,inline:D4}}static lex($,X){return new J5(X).lex($)}static lexInline($,X){return new J5(X).inlineTokens($)}lex($){$=$.replace(/\r\n|\r/g,`
60
+ `,1)[0],A=0;if(this.options.pedantic)A=2,U=Q.trimStart();else A=X[2].search(/[^ ]/),A=A>4?1:A,U=Q.slice(A),A+=X[1].length;let Z=!1;if(!Q&&/^ *$/.test(q))H+=q+`
61
+ `,$=$.substring(q.length+1),M=!0;if(!M){let D=new RegExp(`^ {0,${Math.min(3,A-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),P=new RegExp(`^ {0,${Math.min(3,A-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),b=new RegExp(`^ {0,${Math.min(3,A-1)}}(?:\`\`\`|~~~)`),y=new RegExp(`^ {0,${Math.min(3,A-1)}}#`);while($){let $0=$.split(`
62
+ `,1)[0];if(q=$0,this.options.pedantic)q=q.replace(/^ {1,4}(?=( {4})*[^ ])/g," ");if(b.test(q))break;if(y.test(q))break;if(D.test(q))break;if(P.test($))break;if(q.search(/[^ ]/)>=A||!q.trim())U+=`
63
+ `+q.slice(A);else{if(Z)break;if(Q.search(/[^ ]/)>=4)break;if(b.test(Q))break;if(y.test(Q))break;if(P.test(Q))break;U+=`
64
+ `+q}if(!Z&&!q.trim())Z=!0;H+=$0+`
65
+ `,$=$.substring($0.length+1),Q=q.slice(A)}}if(!J.loose){if(F)J.loose=!0;else if(/\n *\n *$/.test(H))F=!0}let _=null,z;if(this.options.gfm){if(_=/^\[[ xX]\] /.exec(U),_)z=_[0]!=="[ ] ",U=U.replace(/^\[[ xX]\] +/,"")}J.items.push({type:"list_item",raw:H,task:!!_,checked:z,loose:!1,text:U,tokens:[]}),J.raw+=H}J.items[J.items.length-1].raw=H.trimEnd(),J.items[J.items.length-1].text=U.trimEnd(),J.raw=J.raw.trimEnd();for(let M=0;M<J.items.length;M++)if(this.lexer.state.top=!1,J.items[M].tokens=this.lexer.blockTokens(J.items[M].text,[]),!J.loose){let Q=J.items[M].tokens.filter((A)=>A.type==="space"),q=Q.length>0&&Q.some((A)=>/\n.*\n/.test(A.raw));J.loose=q}if(J.loose)for(let M=0;M<J.items.length;M++)J.items[M].loose=!0;return J}}html($){let X=this.rules.block.html.exec($);if(X)return{type:"html",block:!0,raw:X[0],pre:X[1]==="pre"||X[1]==="script"||X[1]==="style",text:X[0]}}def($){let X=this.rules.block.def.exec($);if(X){let G=X[1].toLowerCase().replace(/\s+/g," "),Y=X[2]?X[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",J=X[3]?X[3].substring(1,X[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):X[3];return{type:"def",tag:G,raw:X[0],href:Y,title:J}}}table($){let X=this.rules.block.table.exec($);if(!X)return;if(!/[:|]/.test(X[2]))return;let G=DH(X[1]),Y=X[2].replace(/^\||\| *$/g,"").split("|"),J=X[3]&&X[3].trim()?X[3].replace(/\n[ \t]*$/,"").split(`
66
+ `):[],W={type:"table",raw:X[0],header:[],align:[],rows:[]};if(G.length!==Y.length)return;for(let H of Y)if(/^ *-+: *$/.test(H))W.align.push("right");else if(/^ *:-+: *$/.test(H))W.align.push("center");else if(/^ *:-+ *$/.test(H))W.align.push("left");else W.align.push(null);for(let H of G)W.header.push({text:H,tokens:this.lexer.inline(H)});for(let H of J)W.rows.push(DH(H,W.header.length).map((U)=>{return{text:U,tokens:this.lexer.inline(U)}}));return W}lheading($){let X=this.rules.block.lheading.exec($);if(X)return{type:"heading",raw:X[0],depth:X[2].charAt(0)==="="?1:2,text:X[1],tokens:this.lexer.inline(X[1])}}paragraph($){let X=this.rules.block.paragraph.exec($);if(X){let G=X[1].charAt(X[1].length-1)===`
67
+ `?X[1].slice(0,-1):X[1];return{type:"paragraph",raw:X[0],text:G,tokens:this.lexer.inline(G)}}}text($){let X=this.rules.block.text.exec($);if(X)return{type:"text",raw:X[0],text:X[0],tokens:this.lexer.inline(X[0])}}escape($){let X=this.rules.inline.escape.exec($);if(X)return{type:"escape",raw:X[0],text:I1(X[1])}}tag($){let X=this.rules.inline.tag.exec($);if(X){if(!this.lexer.state.inLink&&/^<a /i.test(X[0]))this.lexer.state.inLink=!0;else if(this.lexer.state.inLink&&/^<\/a>/i.test(X[0]))this.lexer.state.inLink=!1;if(!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(X[0]))this.lexer.state.inRawBlock=!0;else if(this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(X[0]))this.lexer.state.inRawBlock=!1;return{type:"html",raw:X[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:X[0]}}}link($){let X=this.rules.inline.link.exec($);if(X){let G=X[2].trim();if(!this.options.pedantic&&/^</.test(G)){if(!/>$/.test(G))return;let W=$9(G.slice(0,-1),"\\");if((G.length-W.length)%2===0)return}else{let W=f_(X[2],"()");if(W>-1){let U=(X[0].indexOf("!")===0?5:4)+X[1].length+W;X[2]=X[2].substring(0,W),X[0]=X[0].substring(0,U).trim(),X[3]=""}}let Y=X[2],J="";if(this.options.pedantic){let W=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Y);if(W)Y=W[1],J=W[3]}else J=X[3]?X[3].slice(1,-1):"";if(Y=Y.trim(),/^</.test(Y))if(this.options.pedantic&&!/>$/.test(G))Y=Y.slice(1);else Y=Y.slice(1,-1);return PH(X,{href:Y?Y.replace(this.rules.inline.anyPunctuation,"$1"):Y,title:J?J.replace(this.rules.inline.anyPunctuation,"$1"):J},X[0],this.lexer)}}reflink($,X){let G;if((G=this.rules.inline.reflink.exec($))||(G=this.rules.inline.nolink.exec($))){let Y=(G[2]||G[1]).replace(/\s+/g," "),J=X[Y.toLowerCase()];if(!J){let W=G[0].charAt(0);return{type:"text",raw:W,text:W}}return PH(G,J,G[0],this.lexer)}}emStrong($,X,G=""){let Y=this.rules.inline.emStrongLDelim.exec($);if(!Y)return;if(Y[3]&&G.match(/[\p{L}\p{N}]/u))return;if(!(Y[1]||Y[2])||!G||this.rules.inline.punctuation.exec(G)){let W=[...Y[0]].length-1,H,U,F=W,M=0,Q=Y[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;Q.lastIndex=0,X=X.slice(-1*$.length+W);while((Y=Q.exec(X))!=null){if(H=Y[1]||Y[2]||Y[3]||Y[4]||Y[5]||Y[6],!H)continue;if(U=[...H].length,Y[3]||Y[4]){F+=U;continue}else if(Y[5]||Y[6]){if(W%3&&!((W+U)%3)){M+=U;continue}}if(F-=U,F>0)continue;U=Math.min(U,U+F+M);let q=[...Y[0]][0].length,A=$.slice(0,W+Y.index+q+U);if(Math.min(W,U)%2){let _=A.slice(1,-1);return{type:"em",raw:A,text:_,tokens:this.lexer.inlineTokens(_)}}let Z=A.slice(2,-2);return{type:"strong",raw:A,text:Z,tokens:this.lexer.inlineTokens(Z)}}}}codespan($){let X=this.rules.inline.code.exec($);if(X){let G=X[2].replace(/\n/g," "),Y=/[^ ]/.test(G),J=/^ /.test(G)&&/ $/.test(G);if(Y&&J)G=G.substring(1,G.length-1);return G=I1(G,!0),{type:"codespan",raw:X[0],text:G}}}br($){let X=this.rules.inline.br.exec($);if(X)return{type:"br",raw:X[0]}}del($){let X=this.rules.inline.del.exec($);if(X)return{type:"del",raw:X[0],text:X[2],tokens:this.lexer.inlineTokens(X[2])}}autolink($){let X=this.rules.inline.autolink.exec($);if(X){let G,Y;if(X[2]==="@")G=I1(X[1]),Y="mailto:"+G;else G=I1(X[1]),Y=G;return{type:"link",raw:X[0],text:G,href:Y,tokens:[{type:"text",raw:G,text:G}]}}}url($){let X;if(X=this.rules.inline.url.exec($)){let G,Y;if(X[2]==="@")G=I1(X[0]),Y="mailto:"+G;else{let J;do J=X[0],X[0]=this.rules.inline._backpedal.exec(X[0])?.[0]??"";while(J!==X[0]);if(G=I1(X[0]),X[1]==="www.")Y="http://"+X[0];else Y=X[0]}return{type:"link",raw:X[0],text:G,href:Y,tokens:[{type:"text",raw:G,text:G}]}}}inlineText($){let X=this.rules.inline.text.exec($);if(X){let G;if(this.lexer.state.inRawBlock)G=X[0];else G=I1(X[0]);return{type:"text",raw:X[0],text:G}}}}class J5{tokens;options;state;tokenizer;inlineQueue;constructor($){this.tokens=[],this.tokens.links=Object.create(null),this.options=$||j2,this.options.tokenizer=this.options.tokenizer||new T4,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let X={block:X9.normal,inline:P4.normal};if(this.options.pedantic)X.block=X9.pedantic,X.inline=P4.pedantic;else if(this.options.gfm)if(X.block=X9.gfm,this.options.breaks)X.inline=P4.breaks;else X.inline=P4.gfm;this.tokenizer.rules=X}static get rules(){return{block:X9,inline:P4}}static lex($,X){return new J5(X).lex($)}static lexInline($,X){return new J5(X).inlineTokens($)}lex($){$=$.replace(/\r\n|\r/g,`
68
68
  `),this.blockTokens($,this.tokens);for(let X=0;X<this.inlineQueue.length;X++){let G=this.inlineQueue[X];this.inlineTokens(G.src,G.tokens)}return this.inlineQueue=[],this.tokens}blockTokens($,X=[]){if(this.options.pedantic)$=$.replace(/\t/g," ").replace(/^ +$/gm,"");else $=$.replace(/^( *)(\t+)/gm,(H,U,F)=>{return U+" ".repeat(F.length)});let G,Y,J,W;while($){if(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((H)=>{if(G=H.call({lexer:this},$,X))return $=$.substring(G.raw.length),X.push(G),!0;return!1}))continue;if(G=this.tokenizer.space($)){if($=$.substring(G.raw.length),G.raw.length===1&&X.length>0)X[X.length-1].raw+=`
69
69
  `;else X.push(G);continue}if(G=this.tokenizer.code($)){if($=$.substring(G.raw.length),Y=X[X.length-1],Y&&(Y.type==="paragraph"||Y.type==="text"))Y.raw+=`
70
70
  `+G.raw,Y.text+=`
@@ -74,7 +74,7 @@ return `+str.trim()+`;
74
74
  `+G.raw,Y.text+=`
75
75
  `+G.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Y.text;else X.push(G);W=J.length!==$.length,$=$.substring(G.raw.length);continue}if(G=this.tokenizer.text($)){if($=$.substring(G.raw.length),Y=X[X.length-1],Y&&Y.type==="text")Y.raw+=`
76
76
  `+G.raw,Y.text+=`
77
- `+G.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Y.text;else X.push(G);continue}if($){let H="Infinite loop on byte: "+$.charCodeAt(0);if(this.options.silent){console.error(H);break}else throw Error(H)}}return this.state.top=!0,X}inline($,X=[]){return this.inlineQueue.push({src:$,tokens:X}),X}inlineTokens($,X=[]){let G,Y,J,W=$,H,U,F;if(this.tokens.links){let M=Object.keys(this.tokens.links);if(M.length>0){while((H=this.tokenizer.rules.inline.reflinkSearch.exec(W))!=null)if(M.includes(H[0].slice(H[0].lastIndexOf("[")+1,-1)))W=W.slice(0,H.index)+"["+"a".repeat(H[0].length-2)+"]"+W.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex)}}while((H=this.tokenizer.rules.inline.blockSkip.exec(W))!=null)W=W.slice(0,H.index)+"["+"a".repeat(H[0].length-2)+"]"+W.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);while((H=this.tokenizer.rules.inline.anyPunctuation.exec(W))!=null)W=W.slice(0,H.index)+"++"+W.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);while($){if(!U)F="";if(U=!1,this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((M)=>{if(G=M.call({lexer:this},$,X))return $=$.substring(G.raw.length),X.push(G),!0;return!1}))continue;if(G=this.tokenizer.escape($)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.tag($)){if($=$.substring(G.raw.length),Y=X[X.length-1],Y&&G.type==="text"&&Y.type==="text")Y.raw+=G.raw,Y.text+=G.text;else X.push(G);continue}if(G=this.tokenizer.link($)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.reflink($,this.tokens.links)){if($=$.substring(G.raw.length),Y=X[X.length-1],Y&&G.type==="text"&&Y.type==="text")Y.raw+=G.raw,Y.text+=G.text;else X.push(G);continue}if(G=this.tokenizer.emStrong($,W,F)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.codespan($)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.br($)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.del($)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.autolink($)){$=$.substring(G.raw.length),X.push(G);continue}if(!this.state.inLink&&(G=this.tokenizer.url($))){$=$.substring(G.raw.length),X.push(G);continue}if(J=$,this.options.extensions&&this.options.extensions.startInline){let M=1/0,Q=$.slice(1),q;if(this.options.extensions.startInline.forEach((Z)=>{if(q=Z.call({lexer:this},Q),typeof q==="number"&&q>=0)M=Math.min(M,q)}),M<1/0&&M>=0)J=$.substring(0,M+1)}if(G=this.tokenizer.inlineText(J)){if($=$.substring(G.raw.length),G.raw.slice(-1)!=="_")F=G.raw.slice(-1);if(U=!0,Y=X[X.length-1],Y&&Y.type==="text")Y.raw+=G.raw,Y.text+=G.text;else X.push(G);continue}if($){let M="Infinite loop on byte: "+$.charCodeAt(0);if(this.options.silent){console.error(M);break}else throw Error(M)}}return X}}class T4{options;constructor($){this.options=$||S2}code($,X,G){let Y=(X||"").match(/^\S*/)?.[0];if($=$.replace(/\n$/,"")+`
77
+ `+G.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Y.text;else X.push(G);continue}if($){let H="Infinite loop on byte: "+$.charCodeAt(0);if(this.options.silent){console.error(H);break}else throw Error(H)}}return this.state.top=!0,X}inline($,X=[]){return this.inlineQueue.push({src:$,tokens:X}),X}inlineTokens($,X=[]){let G,Y,J,W=$,H,U,F;if(this.tokens.links){let M=Object.keys(this.tokens.links);if(M.length>0){while((H=this.tokenizer.rules.inline.reflinkSearch.exec(W))!=null)if(M.includes(H[0].slice(H[0].lastIndexOf("[")+1,-1)))W=W.slice(0,H.index)+"["+"a".repeat(H[0].length-2)+"]"+W.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex)}}while((H=this.tokenizer.rules.inline.blockSkip.exec(W))!=null)W=W.slice(0,H.index)+"["+"a".repeat(H[0].length-2)+"]"+W.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);while((H=this.tokenizer.rules.inline.anyPunctuation.exec(W))!=null)W=W.slice(0,H.index)+"++"+W.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);while($){if(!U)F="";if(U=!1,this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((M)=>{if(G=M.call({lexer:this},$,X))return $=$.substring(G.raw.length),X.push(G),!0;return!1}))continue;if(G=this.tokenizer.escape($)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.tag($)){if($=$.substring(G.raw.length),Y=X[X.length-1],Y&&G.type==="text"&&Y.type==="text")Y.raw+=G.raw,Y.text+=G.text;else X.push(G);continue}if(G=this.tokenizer.link($)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.reflink($,this.tokens.links)){if($=$.substring(G.raw.length),Y=X[X.length-1],Y&&G.type==="text"&&Y.type==="text")Y.raw+=G.raw,Y.text+=G.text;else X.push(G);continue}if(G=this.tokenizer.emStrong($,W,F)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.codespan($)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.br($)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.del($)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.autolink($)){$=$.substring(G.raw.length),X.push(G);continue}if(!this.state.inLink&&(G=this.tokenizer.url($))){$=$.substring(G.raw.length),X.push(G);continue}if(J=$,this.options.extensions&&this.options.extensions.startInline){let M=1/0,Q=$.slice(1),q;if(this.options.extensions.startInline.forEach((A)=>{if(q=A.call({lexer:this},Q),typeof q==="number"&&q>=0)M=Math.min(M,q)}),M<1/0&&M>=0)J=$.substring(0,M+1)}if(G=this.tokenizer.inlineText(J)){if($=$.substring(G.raw.length),G.raw.slice(-1)!=="_")F=G.raw.slice(-1);if(U=!0,Y=X[X.length-1],Y&&Y.type==="text")Y.raw+=G.raw,Y.text+=G.text;else X.push(G);continue}if($){let M="Infinite loop on byte: "+$.charCodeAt(0);if(this.options.silent){console.error(M);break}else throw Error(M)}}return X}}class E4{options;constructor($){this.options=$||j2}code($,X,G){let Y=(X||"").match(/^\S*/)?.[0];if($=$.replace(/\n$/,"")+`
78
78
  `,!Y)return"<pre><code>"+(G?$:I1($,!0))+`</code></pre>
79
79
  `;return'<pre><code class="language-'+I1(Y)+'">'+(G?$:I1($,!0))+`</code></pre>
80
80
  `}blockquote($){return`<blockquote>
@@ -92,91 +92,91 @@ ${$}</blockquote>
92
92
  `}tablerow($){return`<tr>
93
93
  ${$}</tr>
94
94
  `}tablecell($,X){let G=X.header?"th":"td";return(X.align?`<${G} align="${X.align}">`:`<${G}>`)+$+`</${G}>
95
- `}strong($){return`<strong>${$}</strong>`}em($){return`<em>${$}</em>`}codespan($){return`<code>${$}</code>`}br(){return"<br>"}del($){return`<del>${$}</del>`}link($,X,G){let Y=DH($);if(Y===null)return G;$=Y;let J='<a href="'+$+'"';if(X)J+=' title="'+X+'"';return J+=">"+G+"</a>",J}image($,X,G){let Y=DH($);if(Y===null)return G;$=Y;let J=`<img src="${$}" alt="${G}"`;if(X)J+=` title="${X}"`;return J+=">",J}text($){return $}}class $9{strong($){return $}em($){return $}codespan($){return $}del($){return $}html($){return $}text($){return $}link($,X,G){return""+G}image($,X,G){return""+G}br(){return""}}class W5{options;renderer;textRenderer;constructor($){this.options=$||S2,this.options.renderer=this.options.renderer||new T4,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new $9}static parse($,X){return new W5(X).parse($)}static parseInline($,X){return new W5(X).parseInline($)}parse($,X=!0){let G="";for(let Y=0;Y<$.length;Y++){let J=$[Y];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[J.type]){let W=J,H=this.options.extensions.renderers[W.type].call({parser:this},W);if(H!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(W.type)){G+=H||"";continue}}switch(J.type){case"space":continue;case"hr":{G+=this.renderer.hr();continue}case"heading":{let W=J;G+=this.renderer.heading(this.parseInline(W.tokens),W.depth,x_(this.parseInline(W.tokens,this.textRenderer)));continue}case"code":{let W=J;G+=this.renderer.code(W.text,W.lang,!!W.escaped);continue}case"table":{let W=J,H="",U="";for(let M=0;M<W.header.length;M++)U+=this.renderer.tablecell(this.parseInline(W.header[M].tokens),{header:!0,align:W.align[M]});H+=this.renderer.tablerow(U);let F="";for(let M=0;M<W.rows.length;M++){let Q=W.rows[M];U="";for(let q=0;q<Q.length;q++)U+=this.renderer.tablecell(this.parseInline(Q[q].tokens),{header:!1,align:W.align[q]});F+=this.renderer.tablerow(U)}G+=this.renderer.table(H,F);continue}case"blockquote":{let W=J,H=this.parse(W.tokens);G+=this.renderer.blockquote(H);continue}case"list":{let W=J,H=W.ordered,U=W.start,F=W.loose,M="";for(let Q=0;Q<W.items.length;Q++){let q=W.items[Q],Z=q.checked,A=q.task,_="";if(q.task){let z=this.renderer.checkbox(!!Z);if(F)if(q.tokens.length>0&&q.tokens[0].type==="paragraph"){if(q.tokens[0].text=z+" "+q.tokens[0].text,q.tokens[0].tokens&&q.tokens[0].tokens.length>0&&q.tokens[0].tokens[0].type==="text")q.tokens[0].tokens[0].text=z+" "+q.tokens[0].tokens[0].text}else q.tokens.unshift({type:"text",text:z+" "});else _+=z+" "}_+=this.parse(q.tokens,F),M+=this.renderer.listitem(_,A,!!Z)}G+=this.renderer.list(M,H,U);continue}case"html":{let W=J;G+=this.renderer.html(W.text,W.block);continue}case"paragraph":{let W=J;G+=this.renderer.paragraph(this.parseInline(W.tokens));continue}case"text":{let W=J,H=W.tokens?this.parseInline(W.tokens):W.text;while(Y+1<$.length&&$[Y+1].type==="text")W=$[++Y],H+=`
96
- `+(W.tokens?this.parseInline(W.tokens):W.text);G+=X?this.renderer.paragraph(H):H;continue}default:{let W='Token with "'+J.type+'" type was not found.';if(this.options.silent)return console.error(W),"";else throw Error(W)}}}return G}parseInline($,X){X=X||this.renderer;let G="";for(let Y=0;Y<$.length;Y++){let J=$[Y];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[J.type]){let W=this.options.extensions.renderers[J.type].call({parser:this},J);if(W!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(J.type)){G+=W||"";continue}}switch(J.type){case"escape":{let W=J;G+=X.text(W.text);break}case"html":{let W=J;G+=X.html(W.text);break}case"link":{let W=J;G+=X.link(W.href,W.title,this.parseInline(W.tokens,X));break}case"image":{let W=J;G+=X.image(W.href,W.title,W.text);break}case"strong":{let W=J;G+=X.strong(this.parseInline(W.tokens,X));break}case"em":{let W=J;G+=X.em(this.parseInline(W.tokens,X));break}case"codespan":{let W=J;G+=X.codespan(W.text);break}case"br":{G+=X.br();break}case"del":{let W=J;G+=X.del(this.parseInline(W.tokens,X));break}case"text":{let W=J;G+=X.text(W.text);break}default:{let W='Token with "'+J.type+'" type was not found.';if(this.options.silent)return console.error(W),"";else throw Error(W)}}}return G}}class j4{defaults=P7();options=this.setOptions;parse=this.#$(J5.lex,W5.parse);parseInline=this.#$(J5.lexInline,W5.parseInline);Parser=W5;Renderer=T4;TextRenderer=$9;Lexer=J5;Tokenizer=C4;Hooks=L4;constructor(...$){this.use(...$)}walkTokens($,X){let G=[];for(let Y of $)switch(G=G.concat(X.call(this,Y)),Y.type){case"table":{let J=Y;for(let W of J.header)G=G.concat(this.walkTokens(W.tokens,X));for(let W of J.rows)for(let H of W)G=G.concat(this.walkTokens(H.tokens,X));break}case"list":{let J=Y;G=G.concat(this.walkTokens(J.items,X));break}default:{let J=Y;if(this.defaults.extensions?.childTokens?.[J.type])this.defaults.extensions.childTokens[J.type].forEach((W)=>{let H=J[W].flat(1/0);G=G.concat(this.walkTokens(H,X))});else if(J.tokens)G=G.concat(this.walkTokens(J.tokens,X))}}return G}use(...$){let X=this.defaults.extensions||{renderers:{},childTokens:{}};return $.forEach((G)=>{let Y={...G};if(Y.async=this.defaults.async||Y.async||!1,G.extensions)G.extensions.forEach((J)=>{if(!J.name)throw Error("extension name required");if("renderer"in J){let W=X.renderers[J.name];if(W)X.renderers[J.name]=function(...H){let U=J.renderer.apply(this,H);if(U===!1)U=W.apply(this,H);return U};else X.renderers[J.name]=J.renderer}if("tokenizer"in J){if(!J.level||J.level!=="block"&&J.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let W=X[J.level];if(W)W.unshift(J.tokenizer);else X[J.level]=[J.tokenizer];if(J.start){if(J.level==="block")if(X.startBlock)X.startBlock.push(J.start);else X.startBlock=[J.start];else if(J.level==="inline")if(X.startInline)X.startInline.push(J.start);else X.startInline=[J.start]}}if("childTokens"in J&&J.childTokens)X.childTokens[J.name]=J.childTokens}),Y.extensions=X;if(G.renderer){let J=this.defaults.renderer||new T4(this.defaults);for(let W in G.renderer){if(!(W in J))throw Error(`renderer '${W}' does not exist`);if(W==="options")continue;let H=W,U=G.renderer[H],F=J[H];J[H]=(...M)=>{let Q=U.apply(J,M);if(Q===!1)Q=F.apply(J,M);return Q||""}}Y.renderer=J}if(G.tokenizer){let J=this.defaults.tokenizer||new C4(this.defaults);for(let W in G.tokenizer){if(!(W in J))throw Error(`tokenizer '${W}' does not exist`);if(["options","rules","lexer"].includes(W))continue;let H=W,U=G.tokenizer[H],F=J[H];J[H]=(...M)=>{let Q=U.apply(J,M);if(Q===!1)Q=F.apply(J,M);return Q}}Y.tokenizer=J}if(G.hooks){let J=this.defaults.hooks||new L4;for(let W in G.hooks){if(!(W in J))throw Error(`hook '${W}' does not exist`);if(W==="options")continue;let H=W,U=G.hooks[H],F=J[H];if(L4.passThroughHooks.has(W))J[H]=(M)=>{if(this.defaults.async)return Promise.resolve(U.call(J,M)).then((q)=>{return F.call(J,q)});let Q=U.call(J,M);return F.call(J,Q)};else J[H]=(...M)=>{let Q=U.apply(J,M);if(Q===!1)Q=F.apply(J,M);return Q}}Y.hooks=J}if(G.walkTokens){let J=this.defaults.walkTokens,W=G.walkTokens;Y.walkTokens=function(H){let U=[];if(U.push(W.call(this,H)),J)U=U.concat(J.call(this,H));return U}}this.defaults={...this.defaults,...Y}}),this}setOptions($){return this.defaults={...this.defaults,...$},this}lexer($,X){return J5.lex($,X??this.defaults)}parser($,X){return W5.parse($,X??this.defaults)}#$($,X){return(G,Y)=>{let J={...Y},W={...this.defaults,...J};if(this.defaults.async===!0&&J.async===!1){if(!W.silent)console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored.");W.async=!0}let H=this.#X(!!W.silent,!!W.async);if(typeof G>"u"||G===null)return H(Error("marked(): input parameter is undefined or null"));if(typeof G!=="string")return H(Error("marked(): input parameter is of type "+Object.prototype.toString.call(G)+", string expected"));if(W.hooks)W.hooks.options=W;if(W.async)return Promise.resolve(W.hooks?W.hooks.preprocess(G):G).then((U)=>$(U,W)).then((U)=>W.hooks?W.hooks.processAllTokens(U):U).then((U)=>W.walkTokens?Promise.all(this.walkTokens(U,W.walkTokens)).then(()=>U):U).then((U)=>X(U,W)).then((U)=>W.hooks?W.hooks.postprocess(U):U).catch(H);try{if(W.hooks)G=W.hooks.preprocess(G);let U=$(G,W);if(W.hooks)U=W.hooks.processAllTokens(U);if(W.walkTokens)this.walkTokens(U,W.walkTokens);let F=X(U,W);if(W.hooks)F=W.hooks.postprocess(F);return F}catch(U){return H(U)}}}#X($,X){return(G)=>{if(G.message+=`
97
- Please report this to https://github.com/markedjs/marked.`,$){let Y="<p>An error occurred:</p><pre>"+I1(G.message+"",!0)+"</pre>";if(X)return Promise.resolve(Y);return Y}if(X)return Promise.reject(G);throw G}}}function _0($,X){return j2.parse($,X)}var S2,EH,j_,IH,S_,k_,zH=($)=>k_[$],v_,b_,P4,f_,g_,m_,E4,p_,jH,SH,L7,u_,C7,d_,l_,e8="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",T7,c_,kH,r_,E7,CH,i_,n_,vH,o_,xH,s_,I4="\\p{P}\\p{S}",a_,t_,e_,$z,Xz,Gz,Yz,Jz,Wz,t8,Hz,bH,hH,Uz,I7,Kz,D7,Fz,a8,D4,L4,j2,Ik,jk,Sk,kk,vk,xk,bk;var yH=V(()=>{S2=P7();EH=/[&<>"']/,j_=new RegExp(EH.source,"g"),IH=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,S_=new RegExp(IH.source,"g"),k_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};v_=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;b_=/(^|[^\[])\^/g;P4={exec:()=>null};f_=/^(?: *(?:\n|$))+/,g_=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,m_=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,E4=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,p_=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,jH=/(?:[*+-]|\d{1,9}[.)])/,SH=z0(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,jH).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),L7=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,u_=/^[^\n]+/,C7=/(?!\s*\])(?:\\.|[^\[\]\\])+/,d_=z0(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",C7).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),l_=z0(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,jH).getRegex(),T7=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,c_=z0("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",T7).replace("tag",e8).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),kH=z0(L7).replace("hr",E4).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",e8).getRegex(),r_=z0(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",kH).getRegex(),E7={blockquote:r_,code:g_,def:d_,fences:m_,heading:p_,hr:E4,html:c_,lheading:SH,list:l_,newline:f_,paragraph:kH,table:P4,text:u_},CH=z0("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",E4).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",e8).getRegex(),i_={...E7,table:CH,paragraph:z0(L7).replace("hr",E4).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",CH).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",e8).getRegex()},n_={...E7,html:z0(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",T7).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:P4,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:z0(L7).replace("hr",E4).replace("heading",` *#{1,6} *[^
98
- ]`).replace("lheading",SH).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},vH=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,o_=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,xH=/^( {2,}|\\)\n(?!\s*$)/,s_=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,a_=z0(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,I4).getRegex(),t_=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,e_=z0(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,I4).getRegex(),$z=z0("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,I4).getRegex(),Xz=z0("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,I4).getRegex(),Gz=z0(/\\([punct])/,"gu").replace(/punct/g,I4).getRegex(),Yz=z0(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Jz=z0(T7).replace("(?:-->|$)","-->").getRegex(),Wz=z0("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Jz).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),t8=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Hz=z0(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",t8).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),bH=z0(/^!?\[(label)\]\[(ref)\]/).replace("label",t8).replace("ref",C7).getRegex(),hH=z0(/^!?\[(ref)\](?:\[\])?/).replace("ref",C7).getRegex(),Uz=z0("reflink|nolink(?!\\()","g").replace("reflink",bH).replace("nolink",hH).getRegex(),I7={_backpedal:P4,anyPunctuation:Gz,autolink:Yz,blockSkip:t_,br:xH,code:o_,del:P4,emStrongLDelim:e_,emStrongRDelimAst:$z,emStrongRDelimUnd:Xz,escape:vH,link:Hz,nolink:hH,punctuation:a_,reflink:bH,reflinkSearch:Uz,tag:Wz,text:s_,url:P4},Kz={...I7,link:z0(/^!?\[(label)\]\((.*?)\)/).replace("label",t8).getRegex(),reflink:z0(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",t8).getRegex()},D7={...I7,escape:z0(vH).replace("])","~|])").getRegex(),url:z0(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Fz={...D7,br:z0(xH).replace("{2,}","*").getRegex(),text:z0(D7.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},a8={normal:E7,gfm:i_,pedantic:n_},D4={normal:I7,gfm:D7,breaks:Fz,pedantic:Kz};L4=class L4{options;constructor($){this.options=$||S2}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess($){return $}postprocess($){return $}processAllTokens($){return $}};j2=new j4;_0.options=_0.setOptions=function($){return j2.setOptions($),_0.defaults=j2.defaults,TH(_0.defaults),_0};_0.getDefaults=P7;_0.defaults=S2;_0.use=function(...$){return j2.use(...$),_0.defaults=j2.defaults,TH(_0.defaults),_0};_0.walkTokens=function($,X){return j2.walkTokens($,X)};_0.parseInline=j2.parseInline;_0.Parser=W5;_0.parser=W5.parse;_0.Renderer=T4;_0.TextRenderer=$9;_0.Lexer=J5;_0.lexer=J5.lex;_0.Tokenizer=C4;_0.Hooks=L4;_0.parse=_0;Ik=_0.options,jk=_0.setOptions,Sk=_0.use,kk=_0.walkTokens,vk=_0.parseInline,xk=W5.parse,bk=J5.lex});var fH=()=>{};function B($,X){Mz(Boolean($),!1,!0,"ok","Expected value to be truthy",X)}function Mz($,X,G,Y,J,W){if(!$)throw W instanceof Error?W:new gH(W||J,X,G,Y,!W)}var gH;var O0=V(()=>{fH();gH=class gH extends Error{name="Assertion";code="ERR_ASSERTION";constructor($,X,G,Y,J){super($);if(Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);this.actual=X,this.expected=G,this.generated=J,this.operator=Y}}});function k2($,X){let G=X||Qz,Y=typeof G.includeImageAlt==="boolean"?G.includeImageAlt:!0,J=typeof G.includeHtml==="boolean"?G.includeHtml:!0;return pH($,Y,J)}function pH($,X,G){if(qz($)){if("value"in $)return $.type==="html"&&!G?"":$.value;if(X&&"alt"in $&&$.alt)return $.alt;if("children"in $)return mH($.children,X,G)}if(Array.isArray($))return mH($,X,G);return""}function mH($,X,G){let Y=[],J=-1;while(++J<$.length)Y[J]=pH($[J],X,G);return Y.join("")}function qz($){return Boolean($&&typeof $==="object")}var Qz;var uH=V(()=>{Qz={}});var X9=V(()=>{uH()});var j7;var dH=V(()=>{j7={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:`
99
- `,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"}});function _6($){return Oz.call(j7,$)?j7[$]:!1}var Oz;var G9=V(()=>{dH();Oz={}.hasOwnProperty});var R;var lH=V(()=>{R={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 S;var cH=V(()=>{S={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 O;var rH=V(()=>{O={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 j1;var iH=V(()=>{j1={ht:"\t",lf:`
100
- `,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"}});var t=V(()=>{lH();cH();rH();iH()});function t0($,X,G,Y){let J=$.length,W=0,H;if(X<0)X=-X>J?0:J+X;else X=X>J?J:X;if(G=G>0?G:0,Y.length<S.v8MaxSafeChunkSize)H=Array.from(Y),H.unshift(X,G),$.splice(...H);else{if(G)$.splice(X,G);while(W<Y.length)H=Y.slice(W,W+S.v8MaxSafeChunkSize),H.unshift(X,0),$.splice(...H),W+=S.v8MaxSafeChunkSize,X+=S.v8MaxSafeChunkSize}}function R1($,X){if($.length>0)return t0($,$.length,0,X),$;return X}var l5=V(()=>{t()});function oH($){let X={},G=-1;while(++G<$.length)Rz(X,$[G]);return X}function Rz($,X){let G;for(G in X){let J=(nH.call($,G)?$[G]:void 0)||($[G]={}),W=X[G],H;if(W)for(H in W){if(!nH.call(J,H))J[H]=[];let U=W[H];Zz(J[H],Array.isArray(U)?U:U?[U]:[])}}}function Zz($,X){let G=-1,Y=[];while(++G<X.length)(X[G].add==="after"?$:Y).push(X[G]);t0($,0,0,Y)}var nH;var sH=V(()=>{l5();nH={}.hasOwnProperty});function Y9($,X){let G=Number.parseInt($,X);if(G<R.ht||G===R.vt||G>R.cr&&G<R.space||G>R.tilde&&G<160||G>55295&&G<57344||G>64975&&G<65008||(G&65535)===65535||(G&65535)===65534||G>1114111)return j1.replacementCharacter;return String.fromCodePoint(G)}var S7=V(()=>{t()});function P5($){return $.replace(/[\t\n\r ]+/g,j1.space).replace(/^ | $/g,"").toLowerCase().toUpperCase()}var J9=V(()=>{t()});function S4($){return $!==null&&($<R.space||$===R.del)}function x($){return $!==null&&$<R.horizontalTab}function h0($){return $!==null&&($<R.nul||$===R.space)}function n($){return $===R.horizontalTab||$===R.virtualSpace||$===R.space}function c5($){return X;function X(G){return G!==null&&G>-1&&$.test(String.fromCharCode(G))}}var S1,Z1,aH,k4,tH,eH,$U,XU;var A0=V(()=>{t();S1=c5(/[A-Za-z]/),Z1=c5(/[\dA-Za-z]/),aH=c5(/[#-'*+\--9=?A-Z^-~]/);k4=c5(/\d/),tH=c5(/[\dA-Fa-f]/),eH=c5(/[!-/:-@[-`{-~]/);$U=c5(/\p{P}|\p{S}/u),XU=c5(/\s/)});function e($,X,G,Y){let J=Y?Y-1:Number.POSITIVE_INFINITY,W=0;return H;function H(F){if(n(F))return $.enter(G),U(F);return X(F)}function U(F){if(n(F)&&W++<J)return $.consume(F),U;return $.exit(G),X(F)}}var l0=V(()=>{A0()});function Az($){let X=$.attempt(this.parser.constructs.contentInitial,Y,J),G;return X;function Y(U){if(B(U===R.eof||x(U),"expected eol or eof"),U===R.eof){$.consume(U);return}return $.enter(O.lineEnding),$.consume(U),$.exit(O.lineEnding),e($,X,O.linePrefix)}function J(U){return B(U!==R.eof&&!x(U),"expected anything other than a line ending or EOF"),$.enter(O.paragraph),W(U)}function W(U){let F=$.enter(O.chunkText,{contentType:S.contentTypeText,previous:G});if(G)G.next=F;return G=F,H(U)}function H(U){if(U===R.eof){$.exit(O.chunkText),$.exit(O.paragraph),$.consume(U);return}if(x(U))return $.consume(U),$.exit(O.chunkText),W;return $.consume(U),H}}var GU;var YU=V(()=>{O0();l0();A0();t();GU={tokenize:Az}});function Vz($){let X=this,G=[],Y=0,J,W,H;return U;function U(y){if(Y<G.length){let X0=G[Y];return X.containerState=X0[1],B(X0[0].continuation,"expected `continuation` to be defined on container construct"),$.attempt(X0[0].continuation,F,M)(y)}return M(y)}function F(y){if(B(X.containerState,"expected `containerState` to be defined after continuation"),Y++,X.containerState._closeFlow){if(X.containerState._closeFlow=void 0,J)b();let X0=X.events.length,Z0=X0,E;while(Z0--)if(X.events[Z0][0]==="exit"&&X.events[Z0][1].type===O.chunkFlow){E=X.events[Z0][1].end;break}B(E,"could not find previous flow chunk"),P(Y);let q0=X0;while(q0<X.events.length)X.events[q0][1].end={...E},q0++;return t0(X.events,Z0+1,0,X.events.slice(X0)),X.events.length=q0,M(y)}return U(y)}function M(y){if(Y===G.length){if(!J)return Z(y);if(J.currentConstruct&&J.currentConstruct.concrete)return _(y);X.interrupt=Boolean(J.currentConstruct&&!J._gfmTableDynamicInterruptHack)}return X.containerState={},$.check(JU,Q,q)(y)}function Q(y){if(J)b();return P(Y),Z(y)}function q(y){return X.parser.lazy[X.now().line]=Y!==G.length,H=X.now().offset,_(y)}function Z(y){return X.containerState={},$.attempt(JU,A,_)(y)}function A(y){return B(X.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),B(X.containerState,"expected `containerState` to be defined on tokenizer"),Y++,G.push([X.currentConstruct,X.containerState]),Z(y)}function _(y){if(y===R.eof){if(J)b();P(0),$.consume(y);return}return J=J||X.parser.flow(X.now()),$.enter(O.chunkFlow,{_tokenizer:J,contentType:S.contentTypeFlow,previous:W}),z(y)}function z(y){if(y===R.eof){D($.exit(O.chunkFlow),!0),P(0),$.consume(y);return}if(x(y))return $.consume(y),D($.exit(O.chunkFlow)),Y=0,X.interrupt=void 0,U;return $.consume(y),z}function D(y,X0){B(J,"expected `childFlow` to be defined when continuing");let Z0=X.sliceStream(y);if(X0)Z0.push(null);if(y.previous=W,W)W.next=y;if(W=y,J.defineSkip(y.start),J.write(Z0),X.parser.lazy[y.start.line]){let E=J.events.length;while(E--)if(J.events[E][1].start.offset<H&&(!J.events[E][1].end||J.events[E][1].end.offset>H))return;let q0=X.events.length,C0=q0,M0,B0;while(C0--)if(X.events[C0][0]==="exit"&&X.events[C0][1].type===O.chunkFlow){if(M0){B0=X.events[C0][1].end;break}M0=!0}B(B0,"could not find previous flow chunk"),P(Y),E=q0;while(E<X.events.length)X.events[E][1].end={...B0},E++;t0(X.events,C0+1,0,X.events.slice(q0)),X.events.length=E}}function P(y){let X0=G.length;while(X0-- >y){let Z0=G[X0];X.containerState=Z0[1],B(Z0[0].exit,"expected `exit` to be defined on container construct"),Z0[0].exit.call(X,$)}G.length=y}function b(){B(X.containerState,"expected `containerState` to be defined when closing flow"),B(J,"expected `childFlow` to be defined when closing it"),J.write([R.eof]),W=void 0,J=void 0,X.containerState._closeFlow=void 0}}function Bz($,X,G){return B(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),e($,$.attempt(this.parser.constructs.document,X,G),O.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:S.tabSize)}var WU,JU;var HU=V(()=>{O0();l0();A0();l5();t();WU={tokenize:Vz},JU={tokenize:Bz}});function z6($){if($===R.eof||h0($)||XU($))return S.characterGroupWhitespace;if($U($))return S.characterGroupPunctuation}var k7=V(()=>{A0();t()});function D6($,X,G){let Y=[],J=-1;while(++J<$.length){let W=$[J].resolveAll;if(W&&!Y.includes(W))X=W(X,G),Y.push(W)}return X}function Nz($,X){let G=-1,Y,J,W,H,U,F,M,Q;while(++G<$.length)if($[G][0]==="enter"&&$[G][1].type==="attentionSequence"&&$[G][1]._close){Y=G;while(Y--)if($[Y][0]==="exit"&&$[Y][1].type==="attentionSequence"&&$[Y][1]._open&&X.sliceSerialize($[Y][1]).charCodeAt(0)===X.sliceSerialize($[G][1]).charCodeAt(0)){if(($[Y][1]._close||$[G][1]._open)&&($[G][1].end.offset-$[G][1].start.offset)%3&&!(($[Y][1].end.offset-$[Y][1].start.offset+$[G][1].end.offset-$[G][1].start.offset)%3))continue;F=$[Y][1].end.offset-$[Y][1].start.offset>1&&$[G][1].end.offset-$[G][1].start.offset>1?2:1;let q={...$[Y][1].end},Z={...$[G][1].start};if(UU(q,-F),UU(Z,F),H={type:F>1?O.strongSequence:O.emphasisSequence,start:q,end:{...$[Y][1].end}},U={type:F>1?O.strongSequence:O.emphasisSequence,start:{...$[G][1].start},end:Z},W={type:F>1?O.strongText:O.emphasisText,start:{...$[Y][1].end},end:{...$[G][1].start}},J={type:F>1?O.strong:O.emphasis,start:{...H.start},end:{...U.end}},$[Y][1].end={...H.start},$[G][1].start={...U.end},M=[],$[Y][1].end.offset-$[Y][1].start.offset)M=R1(M,[["enter",$[Y][1],X],["exit",$[Y][1],X]]);if(M=R1(M,[["enter",J,X],["enter",H,X],["exit",H,X],["enter",W,X]]),B(X.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),M=R1(M,D6(X.parser.constructs.insideSpan.null,$.slice(Y+1,G),X)),M=R1(M,[["exit",W,X],["enter",U,X],["exit",U,X],["exit",J,X]]),$[G][1].end.offset-$[G][1].start.offset)Q=2,M=R1(M,[["enter",$[G][1],X],["exit",$[G][1],X]]);else Q=0;t0($,Y-1,G-Y+3,M),G=Y+M.length-Q-2;break}}G=-1;while(++G<$.length)if($[G][1].type==="attentionSequence")$[G][1].type="data";return $}function wz($,X){let G=this.parser.constructs.attentionMarkers.null,Y=this.previous,J=z6(Y),W;return H;function H(F){return B(F===R.asterisk||F===R.underscore,"expected asterisk or underscore"),W=F,$.enter("attentionSequence"),U(F)}function U(F){if(F===W)return $.consume(F),U;let M=$.exit("attentionSequence"),Q=z6(F);B(G,"expected `attentionMarkers` to be populated");let q=!Q||Q===S.characterGroupPunctuation&&J||G.includes(F),Z=!J||J===S.characterGroupPunctuation&&Q||G.includes(Y);return M._open=Boolean(W===R.asterisk?q:q&&(J||!Z)),M._close=Boolean(W===R.asterisk?Z:Z&&(Q||!q)),X(F)}}function UU($,X){$.column+=X,$.offset+=X,$._bufferIndex+=X}var v4;var KU=V(()=>{O0();l5();k7();t();v4={name:"attention",resolveAll:Nz,tokenize:wz}});function _z($,X,G){let Y=0;return J;function J(A){return B(A===R.lessThan,"expected `<`"),$.enter(O.autolink),$.enter(O.autolinkMarker),$.consume(A),$.exit(O.autolinkMarker),$.enter(O.autolinkProtocol),W}function W(A){if(S1(A))return $.consume(A),H;if(A===R.atSign)return G(A);return M(A)}function H(A){if(A===R.plusSign||A===R.dash||A===R.dot||Z1(A))return Y=1,U(A);return M(A)}function U(A){if(A===R.colon)return $.consume(A),Y=0,F;if((A===R.plusSign||A===R.dash||A===R.dot||Z1(A))&&Y++<S.autolinkSchemeSizeMax)return $.consume(A),U;return Y=0,M(A)}function F(A){if(A===R.greaterThan)return $.exit(O.autolinkProtocol),$.enter(O.autolinkMarker),$.consume(A),$.exit(O.autolinkMarker),$.exit(O.autolink),X;if(A===R.eof||A===R.space||A===R.lessThan||S4(A))return G(A);return $.consume(A),F}function M(A){if(A===R.atSign)return $.consume(A),Q;if(aH(A))return $.consume(A),M;return G(A)}function Q(A){return Z1(A)?q(A):G(A)}function q(A){if(A===R.dot)return $.consume(A),Y=0,Q;if(A===R.greaterThan)return $.exit(O.autolinkProtocol).type=O.autolinkEmail,$.enter(O.autolinkMarker),$.consume(A),$.exit(O.autolinkMarker),$.exit(O.autolink),X;return Z(A)}function Z(A){if((A===R.dash||Z1(A))&&Y++<S.autolinkDomainSizeMax){let _=A===R.dash?Z:q;return $.consume(A),_}return G(A)}}var v7;var FU=V(()=>{O0();A0();t();v7={name:"autolink",tokenize:_z}});function zz($,X,G){return Y;function Y(W){return n(W)?e($,J,O.linePrefix)(W):J(W)}function J(W){return W===R.eof||x(W)?X(W):G(W)}}var r5;var W9=V(()=>{l0();A0();t();r5={partial:!0,tokenize:zz}});function Dz($,X,G){let Y=this;return J;function J(H){if(H===R.greaterThan){let U=Y.containerState;if(B(U,"expected `containerState` to be defined in container"),!U.open)$.enter(O.blockQuote,{_container:!0}),U.open=!0;return $.enter(O.blockQuotePrefix),$.enter(O.blockQuoteMarker),$.consume(H),$.exit(O.blockQuoteMarker),W}return G(H)}function W(H){if(n(H))return $.enter(O.blockQuotePrefixWhitespace),$.consume(H),$.exit(O.blockQuotePrefixWhitespace),$.exit(O.blockQuotePrefix),X;return $.exit(O.blockQuotePrefix),X(H)}}function Pz($,X,G){let Y=this;return J;function J(H){if(n(H))return B(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),e($,W,O.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:S.tabSize)(H);return W(H)}function W(H){return $.attempt(H9,X,G)(H)}}function Lz($){$.exit(O.blockQuote)}var H9;var MU=V(()=>{O0();l0();A0();t();H9={continuation:{tokenize:Pz},exit:Lz,name:"blockQuote",tokenize:Dz}});function Cz($,X,G){return Y;function Y(W){return B(W===R.backslash,"expected `\\`"),$.enter(O.characterEscape),$.enter(O.escapeMarker),$.consume(W),$.exit(O.escapeMarker),J}function J(W){if(eH(W))return $.enter(O.characterEscapeValue),$.consume(W),$.exit(O.characterEscapeValue),$.exit(O.characterEscape),X;return G(W)}}var U9;var QU=V(()=>{O0();A0();t();U9={name:"characterEscape",tokenize:Cz}});function Tz($,X,G){let Y=this,J=0,W,H;return U;function U(q){return B(q===R.ampersand,"expected `&`"),$.enter(O.characterReference),$.enter(O.characterReferenceMarker),$.consume(q),$.exit(O.characterReferenceMarker),F}function F(q){if(q===R.numberSign)return $.enter(O.characterReferenceMarkerNumeric),$.consume(q),$.exit(O.characterReferenceMarkerNumeric),M;return $.enter(O.characterReferenceValue),W=S.characterReferenceNamedSizeMax,H=Z1,Q(q)}function M(q){if(q===R.uppercaseX||q===R.lowercaseX)return $.enter(O.characterReferenceMarkerHexadecimal),$.consume(q),$.exit(O.characterReferenceMarkerHexadecimal),$.enter(O.characterReferenceValue),W=S.characterReferenceHexadecimalSizeMax,H=tH,Q;return $.enter(O.characterReferenceValue),W=S.characterReferenceDecimalSizeMax,H=k4,Q(q)}function Q(q){if(q===R.semicolon&&J){let Z=$.exit(O.characterReferenceValue);if(H===Z1&&!_6(Y.sliceSerialize(Z)))return G(q);return $.enter(O.characterReferenceMarker),$.consume(q),$.exit(O.characterReferenceMarker),$.exit(O.characterReference),X}if(H(q)&&J++<W)return $.consume(q),Q;return G(q)}}var K9;var qU=V(()=>{O0();G9();A0();t();K9={name:"characterReference",tokenize:Tz}});function Ez($,X,G){let Y=this,J={partial:!0,tokenize:Z0},W=0,H=0,U;return F;function F(E){return M(E)}function M(E){B(E===R.graveAccent||E===R.tilde,"expected `` ` `` or `~`");let q0=Y.events[Y.events.length-1];return W=q0&&q0[1].type===O.linePrefix?q0[2].sliceSerialize(q0[1],!0).length:0,U=E,$.enter(O.codeFenced),$.enter(O.codeFencedFence),$.enter(O.codeFencedFenceSequence),Q(E)}function Q(E){if(E===U)return H++,$.consume(E),Q;if(H<S.codeFencedSequenceSizeMin)return G(E);return $.exit(O.codeFencedFenceSequence),n(E)?e($,q,O.whitespace)(E):q(E)}function q(E){if(E===R.eof||x(E))return $.exit(O.codeFencedFence),Y.interrupt?X(E):$.check(OU,z,X0)(E);return $.enter(O.codeFencedFenceInfo),$.enter(O.chunkString,{contentType:S.contentTypeString}),Z(E)}function Z(E){if(E===R.eof||x(E))return $.exit(O.chunkString),$.exit(O.codeFencedFenceInfo),q(E);if(n(E))return $.exit(O.chunkString),$.exit(O.codeFencedFenceInfo),e($,A,O.whitespace)(E);if(E===R.graveAccent&&E===U)return G(E);return $.consume(E),Z}function A(E){if(E===R.eof||x(E))return q(E);return $.enter(O.codeFencedFenceMeta),$.enter(O.chunkString,{contentType:S.contentTypeString}),_(E)}function _(E){if(E===R.eof||x(E))return $.exit(O.chunkString),$.exit(O.codeFencedFenceMeta),q(E);if(E===R.graveAccent&&E===U)return G(E);return $.consume(E),_}function z(E){return B(x(E),"expected eol"),$.attempt(J,X0,D)(E)}function D(E){return B(x(E),"expected eol"),$.enter(O.lineEnding),$.consume(E),$.exit(O.lineEnding),P}function P(E){return W>0&&n(E)?e($,b,O.linePrefix,W+1)(E):b(E)}function b(E){if(E===R.eof||x(E))return $.check(OU,z,X0)(E);return $.enter(O.codeFlowValue),y(E)}function y(E){if(E===R.eof||x(E))return $.exit(O.codeFlowValue),b(E);return $.consume(E),y}function X0(E){return $.exit(O.codeFenced),X(E)}function Z0(E,q0,C0){let M0=0;return B0;function B0(a){return B(x(a),"expected eol"),E.enter(O.lineEnding),E.consume(a),E.exit(O.lineEnding),X1}function X1(a){return B(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),E.enter(O.codeFencedFence),n(a)?e(E,u,O.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:S.tabSize)(a):u(a)}function u(a){if(a===U)return E.enter(O.codeFencedFenceSequence),f(a);return C0(a)}function f(a){if(a===U)return M0++,E.consume(a),f;if(M0>=H)return E.exit(O.codeFencedFenceSequence),n(a)?e(E,r,O.whitespace)(a):r(a);return C0(a)}function r(a){if(a===R.eof||x(a))return E.exit(O.codeFencedFence),q0(a);return C0(a)}}}function Iz($,X,G){let Y=this;return J;function J(H){if(H===R.eof)return G(H);return B(x(H),"expected eol"),$.enter(O.lineEnding),$.consume(H),$.exit(O.lineEnding),W}function W(H){return Y.parser.lazy[Y.now().line]?G(H):X(H)}}var OU,F9;var RU=V(()=>{O0();l0();A0();t();OU={partial:!0,tokenize:Iz},F9={concrete:!0,name:"codeFenced",tokenize:Ez}});function Sz($,X,G){let Y=this;return J;function J(M){return B(n(M)),$.enter(O.codeIndented),e($,W,O.linePrefix,S.tabSize+1)(M)}function W(M){let Q=Y.events[Y.events.length-1];return Q&&Q[1].type===O.linePrefix&&Q[2].sliceSerialize(Q[1],!0).length>=S.tabSize?H(M):G(M)}function H(M){if(M===R.eof)return F(M);if(x(M))return $.attempt(jz,H,F)(M);return $.enter(O.codeFlowValue),U(M)}function U(M){if(M===R.eof||x(M))return $.exit(O.codeFlowValue),H(M);return $.consume(M),U}function F(M){return $.exit(O.codeIndented),X(M)}}function kz($,X,G){let Y=this;return J;function J(H){if(Y.parser.lazy[Y.now().line])return G(H);if(x(H))return $.enter(O.lineEnding),$.consume(H),$.exit(O.lineEnding),J;return e($,W,O.linePrefix,S.tabSize+1)(H)}function W(H){let U=Y.events[Y.events.length-1];return U&&U[1].type===O.linePrefix&&U[2].sliceSerialize(U[1],!0).length>=S.tabSize?X(H):x(H)?J(H):G(H)}}var x4,jz;var ZU=V(()=>{O0();l0();A0();t();x4={name:"codeIndented",tokenize:Sz},jz={partial:!0,tokenize:kz}});function vz($){let X=$.length-4,G=3,Y,J;if(($[G][1].type===O.lineEnding||$[G][1].type==="space")&&($[X][1].type===O.lineEnding||$[X][1].type==="space")){Y=G;while(++Y<X)if($[Y][1].type===O.codeTextData){$[G][1].type=O.codeTextPadding,$[X][1].type=O.codeTextPadding,G+=2,X-=2;break}}Y=G-1,X++;while(++Y<=X)if(J===void 0){if(Y!==X&&$[Y][1].type!==O.lineEnding)J=Y}else if(Y===X||$[Y][1].type===O.lineEnding){if($[J][1].type=O.codeTextData,Y!==J+2)$[J][1].end=$[Y-1][1].end,$.splice(J+2,Y-J-2),X-=Y-J-2,Y=J+2;J=void 0}return $}function AU($){return $!==R.graveAccent||this.events[this.events.length-1][1].type===O.characterEscape}function xz($,X,G){let Y=this,J=0,W,H;return U;function U(Z){return B(Z===R.graveAccent,"expected `` ` ``"),B(AU.call(Y,Y.previous),"expected correct previous"),$.enter(O.codeText),$.enter(O.codeTextSequence),F(Z)}function F(Z){if(Z===R.graveAccent)return $.consume(Z),J++,F;return $.exit(O.codeTextSequence),M(Z)}function M(Z){if(Z===R.eof)return G(Z);if(Z===R.space)return $.enter("space"),$.consume(Z),$.exit("space"),M;if(Z===R.graveAccent)return H=$.enter(O.codeTextSequence),W=0,q(Z);if(x(Z))return $.enter(O.lineEnding),$.consume(Z),$.exit(O.lineEnding),M;return $.enter(O.codeTextData),Q(Z)}function Q(Z){if(Z===R.eof||Z===R.space||Z===R.graveAccent||x(Z))return $.exit(O.codeTextData),M(Z);return $.consume(Z),Q}function q(Z){if(Z===R.graveAccent)return $.consume(Z),W++,q;if(W===J)return $.exit(O.codeTextSequence),$.exit(O.codeText),X(Z);return H.type=O.codeTextData,Q(Z)}}var x7;var VU=V(()=>{O0();A0();t();x7={name:"codeText",previous:AU,resolve:vz,tokenize:xz}});class b7{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($,X){let G=X===null||X===void 0?Number.POSITIVE_INFINITY:X;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($,X,G){let Y=X||0;this.setCursor(Math.trunc($));let J=this.right.splice(this.right.length-Y,Number.POSITIVE_INFINITY);if(G)b4(this.left,G);return J.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),b4(this.left,$)}unshift($){this.setCursor(0),this.right.push($)}unshiftMany($){this.setCursor(0),b4(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 X=this.left.splice($,Number.POSITIVE_INFINITY);b4(this.right,X.reverse())}else{let X=this.right.splice(this.left.length+this.right.length-$,Number.POSITIVE_INFINITY);b4(this.left,X.reverse())}}}function b4($,X){let G=0;if(X.length<S.v8MaxSafeChunkSize)$.push(...X);else while(G<X.length)$.push(...X.slice(G,G+S.v8MaxSafeChunkSize)),G+=S.v8MaxSafeChunkSize}var BU=V(()=>{t()});function M9($){let X={},G=-1,Y,J,W,H,U,F,M,Q=new b7($);while(++G<Q.length){while(G in X)G=X[G];if(Y=Q.get(G),G&&Y[1].type===O.chunkFlow&&Q.get(G-1)[1].type===O.listItemPrefix){if(B(Y[1]._tokenizer,"expected `_tokenizer` on subtokens"),F=Y[1]._tokenizer.events,W=0,W<F.length&&F[W][1].type===O.lineEndingBlank)W+=2;if(W<F.length&&F[W][1].type===O.content)while(++W<F.length){if(F[W][1].type===O.content)break;if(F[W][1].type===O.chunkText)F[W][1]._isInFirstContentOfListItem=!0,W++}}if(Y[0]==="enter"){if(Y[1].contentType)Object.assign(X,bz(Q,G)),G=X[G],M=!0}else if(Y[1]._container){W=G,J=void 0;while(W--)if(H=Q.get(W),H[1].type===O.lineEnding||H[1].type===O.lineEndingBlank){if(H[0]==="enter"){if(J)Q.get(J)[1].type=O.lineEndingBlank;H[1].type=O.lineEnding,J=W}}else if(H[1].type===O.linePrefix||H[1].type===O.listItemIndent);else break;if(J)Y[1].end={...Q.get(J)[1].start},U=Q.slice(J,G),U.unshift(Y),Q.splice(J,G-J+1,U)}}return t0($,0,Number.POSITIVE_INFINITY,Q.slice(0)),!M}function bz($,X){let G=$.get(X)[1],Y=$.get(X)[2],J=X-1,W=[];B(G.contentType,"expected `contentType` on subtokens");let H=G._tokenizer;if(!H){if(H=Y.parser[G.contentType](G.start),G._contentTypeTextTrailing)H._contentTypeTextTrailing=!0}let U=H.events,F=[],M={},Q,q,Z=-1,A=G,_=0,z=0,D=[z];while(A){while($.get(++J)[1]!==A);if(B(!q||A.previous===q,"expected previous to match"),B(!q||q.next===A,"expected next to match"),W.push(J),!A._tokenizer){if(Q=Y.sliceStream(A),!A.next)Q.push(R.eof);if(q)H.defineSkip(A.start);if(A._isInFirstContentOfListItem)H._gfmTasklistFirstContentOfListItem=!0;if(H.write(Q),A._isInFirstContentOfListItem)H._gfmTasklistFirstContentOfListItem=void 0}q=A,A=A.next}A=G;while(++Z<U.length)if(U[Z][0]==="exit"&&U[Z-1][0]==="enter"&&U[Z][1].type===U[Z-1][1].type&&U[Z][1].start.line!==U[Z][1].end.line)B(A,"expected a current token"),z=Z+1,D.push(z),A._tokenizer=void 0,A.previous=void 0,A=A.next;if(H.events=[],A)A._tokenizer=void 0,A.previous=void 0,B(!A.next,"expected no next token");else D.pop();Z=D.length;while(Z--){let P=U.slice(D[Z],D[Z+1]),b=W.pop();B(b!==void 0,"expected a start position when splicing"),F.push([b,b+P.length-1]),$.splice(b,2,P)}F.reverse(),Z=-1;while(++Z<F.length)M[_+F[Z][0]]=_+F[Z][1],_+=F[Z][1]-F[Z][0]-1;return M}var h7=V(()=>{O0();l5();t();BU()});function yz($){return M9($),$}function fz($,X){let G;return Y;function Y(U){return B(U!==R.eof&&!x(U),"expected no eof or eol"),$.enter(O.content),G=$.enter(O.chunkContent,{contentType:S.contentTypeContent}),J(U)}function J(U){if(U===R.eof)return W(U);if(x(U))return $.check(hz,H,W)(U);return $.consume(U),J}function W(U){return $.exit(O.chunkContent),$.exit(O.content),X(U)}function H(U){return B(x(U),"expected eol"),$.consume(U),$.exit(O.chunkContent),B(G,"expected previous token"),G.next=$.enter(O.chunkContent,{contentType:S.contentTypeContent,previous:G}),G=G.next,J}}function gz($,X,G){let Y=this;return J;function J(H){return B(x(H),"expected a line ending"),$.exit(O.chunkContent),$.enter(O.lineEnding),$.consume(H),$.exit(O.lineEnding),e($,W,O.linePrefix)}function W(H){if(H===R.eof||x(H))return G(H);B(Y.parser.constructs.disable.null,"expected `disable.null` to be populated");let U=Y.events[Y.events.length-1];if(!Y.parser.constructs.disable.null.includes("codeIndented")&&U&&U[1].type===O.linePrefix&&U[2].sliceSerialize(U[1],!0).length>=S.tabSize)return X(H);return $.interrupt(Y.parser.constructs.flow,G,X)(H)}}var y7,hz;var NU=V(()=>{O0();l0();A0();h7();t();y7={resolve:yz,tokenize:fz},hz={partial:!0,tokenize:gz}});function Q9($,X,G,Y,J,W,H,U,F){let M=F||Number.POSITIVE_INFINITY,Q=0;return q;function q(P){if(P===R.lessThan)return $.enter(Y),$.enter(J),$.enter(W),$.consume(P),$.exit(W),Z;if(P===R.eof||P===R.space||P===R.rightParenthesis||S4(P))return G(P);return $.enter(Y),$.enter(H),$.enter(U),$.enter(O.chunkString,{contentType:S.contentTypeString}),z(P)}function Z(P){if(P===R.greaterThan)return $.enter(W),$.consume(P),$.exit(W),$.exit(J),$.exit(Y),X;return $.enter(U),$.enter(O.chunkString,{contentType:S.contentTypeString}),A(P)}function A(P){if(P===R.greaterThan)return $.exit(O.chunkString),$.exit(U),Z(P);if(P===R.eof||P===R.lessThan||x(P))return G(P);return $.consume(P),P===R.backslash?_:A}function _(P){if(P===R.lessThan||P===R.greaterThan||P===R.backslash)return $.consume(P),A;return A(P)}function z(P){if(!Q&&(P===R.eof||P===R.rightParenthesis||h0(P)))return $.exit(O.chunkString),$.exit(U),$.exit(H),$.exit(Y),X(P);if(Q<M&&P===R.leftParenthesis)return $.consume(P),Q++,z;if(P===R.rightParenthesis)return $.consume(P),Q--,z;if(P===R.eof||P===R.space||P===R.leftParenthesis||S4(P))return G(P);return $.consume(P),P===R.backslash?D:z}function D(P){if(P===R.leftParenthesis||P===R.rightParenthesis||P===R.backslash)return $.consume(P),z;return z(P)}}var f7=V(()=>{A0();t()});function q9($,X,G,Y,J,W){let H=this,U=0,F;return M;function M(A){return B(A===R.leftSquareBracket,"expected `[`"),$.enter(Y),$.enter(J),$.consume(A),$.exit(J),$.enter(W),Q}function Q(A){if(U>S.linkReferenceSizeMax||A===R.eof||A===R.leftSquareBracket||A===R.rightSquareBracket&&!F||A===R.caret&&!U&&"_hiddenFootnoteSupport"in H.parser.constructs)return G(A);if(A===R.rightSquareBracket)return $.exit(W),$.enter(J),$.consume(A),$.exit(J),$.exit(Y),X;if(x(A))return $.enter(O.lineEnding),$.consume(A),$.exit(O.lineEnding),Q;return $.enter(O.chunkString,{contentType:S.contentTypeString}),q(A)}function q(A){if(A===R.eof||A===R.leftSquareBracket||A===R.rightSquareBracket||x(A)||U++>S.linkReferenceSizeMax)return $.exit(O.chunkString),Q(A);if($.consume(A),!F)F=!n(A);return A===R.backslash?Z:q}function Z(A){if(A===R.leftSquareBracket||A===R.backslash||A===R.rightSquareBracket)return $.consume(A),U++,q;return q(A)}}var g7=V(()=>{O0();A0();t()});function O9($,X,G,Y,J,W){let H;return U;function U(Z){if(Z===R.quotationMark||Z===R.apostrophe||Z===R.leftParenthesis)return $.enter(Y),$.enter(J),$.consume(Z),$.exit(J),H=Z===R.leftParenthesis?R.rightParenthesis:Z,F;return G(Z)}function F(Z){if(Z===H)return $.enter(J),$.consume(Z),$.exit(J),$.exit(Y),X;return $.enter(W),M(Z)}function M(Z){if(Z===H)return $.exit(W),F(H);if(Z===R.eof)return G(Z);if(x(Z))return $.enter(O.lineEnding),$.consume(Z),$.exit(O.lineEnding),e($,M,O.linePrefix);return $.enter(O.chunkString,{contentType:S.contentTypeString}),Q(Z)}function Q(Z){if(Z===H||Z===R.eof||x(Z))return $.exit(O.chunkString),M(Z);return $.consume(Z),Z===R.backslash?q:Q}function q(Z){if(Z===H||Z===R.backslash)return $.consume(Z),Q;return Q(Z)}}var m7=V(()=>{l0();A0();t()});function v2($,X){let G;return Y;function Y(J){if(x(J))return $.enter(O.lineEnding),$.consume(J),$.exit(O.lineEnding),G=!0,Y;if(n(J))return e($,Y,G?O.linePrefix:O.lineSuffix)(J);return X(J)}}var p7=V(()=>{l0();A0();t()});function pz($,X,G){let Y=this,J;return W;function W(A){return $.enter(O.definition),H(A)}function H(A){return B(A===R.leftSquareBracket,"expected `[`"),q9.call(Y,$,U,G,O.definitionLabel,O.definitionLabelMarker,O.definitionLabelString)(A)}function U(A){if(J=P5(Y.sliceSerialize(Y.events[Y.events.length-1][1]).slice(1,-1)),A===R.colon)return $.enter(O.definitionMarker),$.consume(A),$.exit(O.definitionMarker),F;return G(A)}function F(A){return h0(A)?v2($,M)(A):M(A)}function M(A){return Q9($,Q,G,O.definitionDestination,O.definitionDestinationLiteral,O.definitionDestinationLiteralMarker,O.definitionDestinationRaw,O.definitionDestinationString)(A)}function Q(A){return $.attempt(mz,q,q)(A)}function q(A){return n(A)?e($,Z,O.whitespace)(A):Z(A)}function Z(A){if(A===R.eof||x(A))return $.exit(O.definition),Y.parser.defined.push(J),X(A);return G(A)}}function uz($,X,G){return Y;function Y(U){return h0(U)?v2($,J)(U):G(U)}function J(U){return O9($,W,G,O.definitionTitle,O.definitionTitleMarker,O.definitionTitleString)(U)}function W(U){return n(U)?e($,H,O.whitespace)(U):H(U)}function H(U){return U===R.eof||x(U)?X(U):G(U)}}var u7,mz;var wU=V(()=>{O0();f7();g7();l0();m7();p7();A0();J9();t();u7={name:"definition",tokenize:pz},mz={partial:!0,tokenize:uz}});function dz($,X,G){return Y;function Y(W){return B(W===R.backslash,"expected `\\`"),$.enter(O.hardBreakEscape),$.consume(W),J}function J(W){if(x(W))return $.exit(O.hardBreakEscape),X(W);return G(W)}}var d7;var _U=V(()=>{O0();A0();t();d7={name:"hardBreakEscape",tokenize:dz}});function lz($,X){let G=$.length-2,Y=3,J,W;if($[Y][1].type===O.whitespace)Y+=2;if(G-2>Y&&$[G][1].type===O.whitespace)G-=2;if($[G][1].type===O.atxHeadingSequence&&(Y===G-1||G-4>Y&&$[G-2][1].type===O.whitespace))G-=Y+1===G?2:4;if(G>Y)J={type:O.atxHeadingText,start:$[Y][1].start,end:$[G][1].end},W={type:O.chunkText,start:$[Y][1].start,end:$[G][1].end,contentType:S.contentTypeText},t0($,Y,G-Y+1,[["enter",J,X],["enter",W,X],["exit",W,X],["exit",J,X]]);return $}function cz($,X,G){let Y=0;return J;function J(Q){return $.enter(O.atxHeading),W(Q)}function W(Q){return B(Q===R.numberSign,"expected `#`"),$.enter(O.atxHeadingSequence),H(Q)}function H(Q){if(Q===R.numberSign&&Y++<S.atxHeadingOpeningFenceSizeMax)return $.consume(Q),H;if(Q===R.eof||h0(Q))return $.exit(O.atxHeadingSequence),U(Q);return G(Q)}function U(Q){if(Q===R.numberSign)return $.enter(O.atxHeadingSequence),F(Q);if(Q===R.eof||x(Q))return $.exit(O.atxHeading),X(Q);if(n(Q))return e($,U,O.whitespace)(Q);return $.enter(O.atxHeadingText),M(Q)}function F(Q){if(Q===R.numberSign)return $.consume(Q),F;return $.exit(O.atxHeadingSequence),U(Q)}function M(Q){if(Q===R.eof||Q===R.numberSign||h0(Q))return $.exit(O.atxHeadingText),U(Q);return $.consume(Q),M}}var l7;var zU=V(()=>{O0();l0();A0();l5();t();l7={name:"headingAtx",resolve:lz,tokenize:cz}});var DU,c7;var PU=V(()=>{DU=["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"],c7=["pre","script","style","textarea"]});function nz($){let X=$.length;while(X--)if($[X][0]==="enter"&&$[X][1].type===O.htmlFlow)break;if(X>1&&$[X-2][1].type===O.linePrefix)$[X][1].start=$[X-2][1].start,$[X+1][1].start=$[X-2][1].start,$.splice(X-2,2);return $}function oz($,X,G){let Y=this,J,W,H,U,F;return M;function M(w){return Q(w)}function Q(w){return B(w===R.lessThan,"expected `<`"),$.enter(O.htmlFlow),$.enter(O.htmlFlowData),$.consume(w),q}function q(w){if(w===R.exclamationMark)return $.consume(w),Z;if(w===R.slash)return $.consume(w),W=!0,z;if(w===R.questionMark)return $.consume(w),J=S.htmlInstruction,Y.interrupt?X:N;if(S1(w))return B(w!==null),$.consume(w),H=String.fromCharCode(w),D;return G(w)}function Z(w){if(w===R.dash)return $.consume(w),J=S.htmlComment,A;if(w===R.leftSquareBracket)return $.consume(w),J=S.htmlCdata,U=0,_;if(S1(w))return $.consume(w),J=S.htmlDeclaration,Y.interrupt?X:N;return G(w)}function A(w){if(w===R.dash)return $.consume(w),Y.interrupt?X:N;return G(w)}function _(w){let T1=S.cdataOpeningString;if(w===T1.charCodeAt(U++)){if($.consume(w),U===T1.length)return Y.interrupt?X:u;return _}return G(w)}function z(w){if(S1(w))return B(w!==null),$.consume(w),H=String.fromCharCode(w),D;return G(w)}function D(w){if(w===R.eof||w===R.slash||w===R.greaterThan||h0(w)){let T1=w===R.slash,A2=H.toLowerCase();if(!T1&&!W&&c7.includes(A2))return J=S.htmlRaw,Y.interrupt?X(w):u(w);if(DU.includes(H.toLowerCase())){if(J=S.htmlBasic,T1)return $.consume(w),P;return Y.interrupt?X(w):u(w)}return J=S.htmlComplete,Y.interrupt&&!Y.parser.lazy[Y.now().line]?G(w):W?b(w):y(w)}if(w===R.dash||Z1(w))return $.consume(w),H+=String.fromCharCode(w),D;return G(w)}function P(w){if(w===R.greaterThan)return $.consume(w),Y.interrupt?X:u;return G(w)}function b(w){if(n(w))return $.consume(w),b;return B0(w)}function y(w){if(w===R.slash)return $.consume(w),B0;if(w===R.colon||w===R.underscore||S1(w))return $.consume(w),X0;if(n(w))return $.consume(w),y;return B0(w)}function X0(w){if(w===R.dash||w===R.dot||w===R.colon||w===R.underscore||Z1(w))return $.consume(w),X0;return Z0(w)}function Z0(w){if(w===R.equalsTo)return $.consume(w),E;if(n(w))return $.consume(w),Z0;return y(w)}function E(w){if(w===R.eof||w===R.lessThan||w===R.equalsTo||w===R.greaterThan||w===R.graveAccent)return G(w);if(w===R.quotationMark||w===R.apostrophe)return $.consume(w),F=w,q0;if(n(w))return $.consume(w),E;return C0(w)}function q0(w){if(w===F)return $.consume(w),F=null,M0;if(w===R.eof||x(w))return G(w);return $.consume(w),q0}function C0(w){if(w===R.eof||w===R.quotationMark||w===R.apostrophe||w===R.slash||w===R.lessThan||w===R.equalsTo||w===R.greaterThan||w===R.graveAccent||h0(w))return Z0(w);return $.consume(w),C0}function M0(w){if(w===R.slash||w===R.greaterThan||n(w))return y(w);return G(w)}function B0(w){if(w===R.greaterThan)return $.consume(w),X1;return G(w)}function X1(w){if(w===R.eof||x(w))return u(w);if(n(w))return $.consume(w),X1;return G(w)}function u(w){if(w===R.dash&&J===S.htmlComment)return $.consume(w),P0;if(w===R.lessThan&&J===S.htmlRaw)return $.consume(w),k0;if(w===R.greaterThan&&J===S.htmlDeclaration)return $.consume(w),v0;if(w===R.questionMark&&J===S.htmlInstruction)return $.consume(w),N;if(w===R.rightSquareBracket&&J===S.htmlCdata)return $.consume(w),Y1;if(x(w)&&(J===S.htmlBasic||J===S.htmlComplete))return $.exit(O.htmlFlowData),$.check(rz,Z5,f)(w);if(w===R.eof||x(w))return $.exit(O.htmlFlowData),f(w);return $.consume(w),u}function f(w){return $.check(iz,r,Z5)(w)}function r(w){return B(x(w)),$.enter(O.lineEnding),$.consume(w),$.exit(O.lineEnding),a}function a(w){if(w===R.eof||x(w))return f(w);return $.enter(O.htmlFlowData),u(w)}function P0(w){if(w===R.dash)return $.consume(w),N;return u(w)}function k0(w){if(w===R.slash)return $.consume(w),H="",G1;return u(w)}function G1(w){if(w===R.greaterThan){let T1=H.toLowerCase();if(c7.includes(T1))return $.consume(w),v0;return u(w)}if(S1(w)&&H.length<S.htmlRawSizeMax)return B(w!==null),$.consume(w),H+=String.fromCharCode(w),G1;return u(w)}function Y1(w){if(w===R.rightSquareBracket)return $.consume(w),N;return u(w)}function N(w){if(w===R.greaterThan)return $.consume(w),v0;if(w===R.dash&&J===S.htmlComment)return $.consume(w),N;return u(w)}function v0(w){if(w===R.eof||x(w))return $.exit(O.htmlFlowData),Z5(w);return $.consume(w),v0}function Z5(w){return $.exit(O.htmlFlow),X(w)}}function sz($,X,G){let Y=this;return J;function J(H){if(x(H))return $.enter(O.lineEnding),$.consume(H),$.exit(O.lineEnding),W;return G(H)}function W(H){return Y.parser.lazy[Y.now().line]?G(H):X(H)}}function az($,X,G){return Y;function Y(J){return B(x(J),"expected a line ending"),$.enter(O.lineEnding),$.consume(J),$.exit(O.lineEnding),$.attempt(r5,X,G)}}var r7,rz,iz;var LU=V(()=>{O0();A0();PU();t();W9();r7={concrete:!0,name:"htmlFlow",resolveTo:nz,tokenize:oz},rz={partial:!0,tokenize:az},iz={partial:!0,tokenize:sz}});function tz($,X,G){let Y=this,J,W,H;return U;function U(N){return B(N===R.lessThan,"expected `<`"),$.enter(O.htmlText),$.enter(O.htmlTextData),$.consume(N),F}function F(N){if(N===R.exclamationMark)return $.consume(N),M;if(N===R.slash)return $.consume(N),Z0;if(N===R.questionMark)return $.consume(N),y;if(S1(N))return $.consume(N),C0;return G(N)}function M(N){if(N===R.dash)return $.consume(N),Q;if(N===R.leftSquareBracket)return $.consume(N),W=0,_;if(S1(N))return $.consume(N),b;return G(N)}function Q(N){if(N===R.dash)return $.consume(N),A;return G(N)}function q(N){if(N===R.eof)return G(N);if(N===R.dash)return $.consume(N),Z;if(x(N))return H=q,k0(N);return $.consume(N),q}function Z(N){if(N===R.dash)return $.consume(N),A;return q(N)}function A(N){return N===R.greaterThan?P0(N):N===R.dash?Z(N):q(N)}function _(N){let v0=S.cdataOpeningString;if(N===v0.charCodeAt(W++))return $.consume(N),W===v0.length?z:_;return G(N)}function z(N){if(N===R.eof)return G(N);if(N===R.rightSquareBracket)return $.consume(N),D;if(x(N))return H=z,k0(N);return $.consume(N),z}function D(N){if(N===R.rightSquareBracket)return $.consume(N),P;return z(N)}function P(N){if(N===R.greaterThan)return P0(N);if(N===R.rightSquareBracket)return $.consume(N),P;return z(N)}function b(N){if(N===R.eof||N===R.greaterThan)return P0(N);if(x(N))return H=b,k0(N);return $.consume(N),b}function y(N){if(N===R.eof)return G(N);if(N===R.questionMark)return $.consume(N),X0;if(x(N))return H=y,k0(N);return $.consume(N),y}function X0(N){return N===R.greaterThan?P0(N):y(N)}function Z0(N){if(S1(N))return $.consume(N),E;return G(N)}function E(N){if(N===R.dash||Z1(N))return $.consume(N),E;return q0(N)}function q0(N){if(x(N))return H=q0,k0(N);if(n(N))return $.consume(N),q0;return P0(N)}function C0(N){if(N===R.dash||Z1(N))return $.consume(N),C0;if(N===R.slash||N===R.greaterThan||h0(N))return M0(N);return G(N)}function M0(N){if(N===R.slash)return $.consume(N),P0;if(N===R.colon||N===R.underscore||S1(N))return $.consume(N),B0;if(x(N))return H=M0,k0(N);if(n(N))return $.consume(N),M0;return P0(N)}function B0(N){if(N===R.dash||N===R.dot||N===R.colon||N===R.underscore||Z1(N))return $.consume(N),B0;return X1(N)}function X1(N){if(N===R.equalsTo)return $.consume(N),u;if(x(N))return H=X1,k0(N);if(n(N))return $.consume(N),X1;return M0(N)}function u(N){if(N===R.eof||N===R.lessThan||N===R.equalsTo||N===R.greaterThan||N===R.graveAccent)return G(N);if(N===R.quotationMark||N===R.apostrophe)return $.consume(N),J=N,f;if(x(N))return H=u,k0(N);if(n(N))return $.consume(N),u;return $.consume(N),r}function f(N){if(N===J)return $.consume(N),J=void 0,a;if(N===R.eof)return G(N);if(x(N))return H=f,k0(N);return $.consume(N),f}function r(N){if(N===R.eof||N===R.quotationMark||N===R.apostrophe||N===R.lessThan||N===R.equalsTo||N===R.graveAccent)return G(N);if(N===R.slash||N===R.greaterThan||h0(N))return M0(N);return $.consume(N),r}function a(N){if(N===R.slash||N===R.greaterThan||h0(N))return M0(N);return G(N)}function P0(N){if(N===R.greaterThan)return $.consume(N),$.exit(O.htmlTextData),$.exit(O.htmlText),X;return G(N)}function k0(N){return B(H,"expected return state"),B(x(N),"expected eol"),$.exit(O.htmlTextData),$.enter(O.lineEnding),$.consume(N),$.exit(O.lineEnding),G1}function G1(N){return B(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),n(N)?e($,Y1,O.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:S.tabSize)(N):Y1(N)}function Y1(N){return $.enter(O.htmlTextData),H(N)}}var i7;var CU=V(()=>{O0();l0();A0();t();i7={name:"htmlText",tokenize:tz}});function GD($){let X=-1,G=[];while(++X<$.length){let Y=$[X][1];if(G.push($[X]),Y.type===O.labelImage||Y.type===O.labelLink||Y.type===O.labelEnd){let J=Y.type===O.labelImage?4:2;Y.type=O.data,X+=J}}if($.length!==G.length)t0($,0,$.length,G);return $}function YD($,X){let G=$.length,Y=0,J,W,H,U;while(G--)if(J=$[G][1],W){if(J.type===O.link||J.type===O.labelLink&&J._inactive)break;if($[G][0]==="enter"&&J.type===O.labelLink)J._inactive=!0}else if(H){if($[G][0]==="enter"&&(J.type===O.labelImage||J.type===O.labelLink)&&!J._balanced){if(W=G,J.type!==O.labelLink){Y=2;break}}}else if(J.type===O.labelEnd)H=G;B(W!==void 0,"`open` is supposed to be found"),B(H!==void 0,"`close` is supposed to be found");let F={type:$[W][1].type===O.labelLink?O.link:O.image,start:{...$[W][1].start},end:{...$[$.length-1][1].end}},M={type:O.label,start:{...$[W][1].start},end:{...$[H][1].end}},Q={type:O.labelText,start:{...$[W+Y+2][1].end},end:{...$[H-2][1].start}};return U=[["enter",F,X],["enter",M,X]],U=R1(U,$.slice(W+1,W+Y+3)),U=R1(U,[["enter",Q,X]]),B(X.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),U=R1(U,D6(X.parser.constructs.insideSpan.null,$.slice(W+Y+4,H-3),X)),U=R1(U,[["exit",Q,X],$[H-2],$[H-1],["exit",M,X]]),U=R1(U,$.slice(H+1)),U=R1(U,[["exit",F,X]]),t0($,W,$.length,U),$}function JD($,X,G){let Y=this,J=Y.events.length,W,H;while(J--)if((Y.events[J][1].type===O.labelImage||Y.events[J][1].type===O.labelLink)&&!Y.events[J][1]._balanced){W=Y.events[J][1];break}return U;function U(Z){if(B(Z===R.rightSquareBracket,"expected `]`"),!W)return G(Z);if(W._inactive)return q(Z);return H=Y.parser.defined.includes(P5(Y.sliceSerialize({start:W.end,end:Y.now()}))),$.enter(O.labelEnd),$.enter(O.labelMarker),$.consume(Z),$.exit(O.labelMarker),$.exit(O.labelEnd),F}function F(Z){if(Z===R.leftParenthesis)return $.attempt(ez,Q,H?Q:q)(Z);if(Z===R.leftSquareBracket)return $.attempt($D,Q,H?M:q)(Z);return H?Q(Z):q(Z)}function M(Z){return $.attempt(XD,Q,q)(Z)}function Q(Z){return X(Z)}function q(Z){return W._balanced=!0,G(Z)}}function WD($,X,G){return Y;function Y(q){return B(q===R.leftParenthesis,"expected left paren"),$.enter(O.resource),$.enter(O.resourceMarker),$.consume(q),$.exit(O.resourceMarker),J}function J(q){return h0(q)?v2($,W)(q):W(q)}function W(q){if(q===R.rightParenthesis)return Q(q);return Q9($,H,U,O.resourceDestination,O.resourceDestinationLiteral,O.resourceDestinationLiteralMarker,O.resourceDestinationRaw,O.resourceDestinationString,S.linkResourceDestinationBalanceMax)(q)}function H(q){return h0(q)?v2($,F)(q):Q(q)}function U(q){return G(q)}function F(q){if(q===R.quotationMark||q===R.apostrophe||q===R.leftParenthesis)return O9($,M,G,O.resourceTitle,O.resourceTitleMarker,O.resourceTitleString)(q);return Q(q)}function M(q){return h0(q)?v2($,Q)(q):Q(q)}function Q(q){if(q===R.rightParenthesis)return $.enter(O.resourceMarker),$.consume(q),$.exit(O.resourceMarker),$.exit(O.resource),X;return G(q)}}function HD($,X,G){let Y=this;return J;function J(U){return B(U===R.leftSquareBracket,"expected left bracket"),q9.call(Y,$,W,H,O.reference,O.referenceMarker,O.referenceString)(U)}function W(U){return Y.parser.defined.includes(P5(Y.sliceSerialize(Y.events[Y.events.length-1][1]).slice(1,-1)))?X(U):G(U)}function H(U){return G(U)}}function UD($,X,G){return Y;function Y(W){return B(W===R.leftSquareBracket,"expected left bracket"),$.enter(O.reference),$.enter(O.referenceMarker),$.consume(W),$.exit(O.referenceMarker),J}function J(W){if(W===R.rightSquareBracket)return $.enter(O.referenceMarker),$.consume(W),$.exit(O.referenceMarker),$.exit(O.reference),X;return G(W)}}var x2,ez,$D,XD;var R9=V(()=>{O0();f7();g7();m7();p7();A0();l5();J9();t();x2={name:"labelEnd",resolveAll:GD,resolveTo:YD,tokenize:JD},ez={tokenize:WD},$D={tokenize:HD},XD={tokenize:UD}});function KD($,X,G){let Y=this;return J;function J(U){return B(U===R.exclamationMark,"expected `!`"),$.enter(O.labelImage),$.enter(O.labelImageMarker),$.consume(U),$.exit(O.labelImageMarker),W}function W(U){if(U===R.leftSquareBracket)return $.enter(O.labelMarker),$.consume(U),$.exit(O.labelMarker),$.exit(O.labelImage),H;return G(U)}function H(U){return U===R.caret&&"_hiddenFootnoteSupport"in Y.parser.constructs?G(U):X(U)}}var n7;var TU=V(()=>{O0();t();R9();n7={name:"labelStartImage",resolveAll:x2.resolveAll,tokenize:KD}});function FD($,X,G){let Y=this;return J;function J(H){return B(H===R.leftSquareBracket,"expected `[`"),$.enter(O.labelLink),$.enter(O.labelMarker),$.consume(H),$.exit(O.labelMarker),$.exit(O.labelLink),W}function W(H){return H===R.caret&&"_hiddenFootnoteSupport"in Y.parser.constructs?G(H):X(H)}}var o7;var EU=V(()=>{O0();t();R9();o7={name:"labelStartLink",resolveAll:x2.resolveAll,tokenize:FD}});function MD($,X){return G;function G(Y){return B(x(Y),"expected eol"),$.enter(O.lineEnding),$.consume(Y),$.exit(O.lineEnding),e($,X,O.linePrefix)}}var h4;var IU=V(()=>{O0();l0();A0();t();h4={name:"lineEnding",tokenize:MD}});function QD($,X,G){let Y=0,J;return W;function W(M){return $.enter(O.thematicBreak),H(M)}function H(M){return B(M===R.asterisk||M===R.dash||M===R.underscore,"expected `*`, `-`, or `_`"),J=M,U(M)}function U(M){if(M===J)return $.enter(O.thematicBreakSequence),F(M);if(Y>=S.thematicBreakMarkerCountMin&&(M===R.eof||x(M)))return $.exit(O.thematicBreak),X(M);return G(M)}function F(M){if(M===J)return $.consume(M),Y++,F;return $.exit(O.thematicBreakSequence),n(M)?e($,U,O.whitespace)(M):U(M)}}var b2;var s7=V(()=>{O0();l0();A0();t();b2={name:"thematicBreak",tokenize:QD}});function RD($,X,G){let Y=this,J=Y.events[Y.events.length-1],W=J&&J[1].type===O.linePrefix?J[2].sliceSerialize(J[1],!0).length:0,H=0;return U;function U(A){B(Y.containerState,"expected state");let _=Y.containerState.type||(A===R.asterisk||A===R.plusSign||A===R.dash?O.listUnordered:O.listOrdered);if(_===O.listUnordered?!Y.containerState.marker||A===Y.containerState.marker:k4(A)){if(!Y.containerState.type)Y.containerState.type=_,$.enter(_,{_container:!0});if(_===O.listUnordered)return $.enter(O.listItemPrefix),A===R.asterisk||A===R.dash?$.check(b2,G,M)(A):M(A);if(!Y.interrupt||A===R.digit1)return $.enter(O.listItemPrefix),$.enter(O.listItemValue),F(A)}return G(A)}function F(A){if(B(Y.containerState,"expected state"),k4(A)&&++H<S.listItemValueSizeMax)return $.consume(A),F;if((!Y.interrupt||H<2)&&(Y.containerState.marker?A===Y.containerState.marker:A===R.rightParenthesis||A===R.dot))return $.exit(O.listItemValue),M(A);return G(A)}function M(A){return B(Y.containerState,"expected state"),B(A!==R.eof,"eof (`null`) is not a marker"),$.enter(O.listItemMarker),$.consume(A),$.exit(O.listItemMarker),Y.containerState.marker=Y.containerState.marker||A,$.check(r5,Y.interrupt?G:Q,$.attempt(qD,Z,q))}function Q(A){return B(Y.containerState,"expected state"),Y.containerState.initialBlankLine=!0,W++,Z(A)}function q(A){if(n(A))return $.enter(O.listItemPrefixWhitespace),$.consume(A),$.exit(O.listItemPrefixWhitespace),Z;return G(A)}function Z(A){return B(Y.containerState,"expected state"),Y.containerState.size=W+Y.sliceSerialize($.exit(O.listItemPrefix),!0).length,X(A)}}function ZD($,X,G){let Y=this;return B(Y.containerState,"expected state"),Y.containerState._closeFlow=void 0,$.check(r5,J,W);function J(U){return B(Y.containerState,"expected state"),B(typeof Y.containerState.size==="number","expected size"),Y.containerState.furtherBlankLines=Y.containerState.furtherBlankLines||Y.containerState.initialBlankLine,e($,X,O.listItemIndent,Y.containerState.size+1)(U)}function W(U){if(B(Y.containerState,"expected state"),Y.containerState.furtherBlankLines||!n(U))return Y.containerState.furtherBlankLines=void 0,Y.containerState.initialBlankLine=void 0,H(U);return Y.containerState.furtherBlankLines=void 0,Y.containerState.initialBlankLine=void 0,$.attempt(OD,X,H)(U)}function H(U){return B(Y.containerState,"expected state"),Y.containerState._closeFlow=!0,Y.interrupt=void 0,B(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),e($,$.attempt(U1,X,G),O.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:S.tabSize)(U)}}function AD($,X,G){let Y=this;return B(Y.containerState,"expected state"),B(typeof Y.containerState.size==="number","expected size"),e($,J,O.listItemIndent,Y.containerState.size+1);function J(W){B(Y.containerState,"expected state");let H=Y.events[Y.events.length-1];return H&&H[1].type===O.listItemIndent&&H[2].sliceSerialize(H[1],!0).length===Y.containerState.size?X(W):G(W)}}function VD($){B(this.containerState,"expected state"),B(typeof this.containerState.type==="string","expected type"),$.exit(this.containerState.type)}function BD($,X,G){let Y=this;return B(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),e($,J,O.listItemPrefixWhitespace,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:S.tabSize+1);function J(W){let H=Y.events[Y.events.length-1];return!n(W)&&H&&H[1].type===O.listItemPrefixWhitespace?X(W):G(W)}}var U1,qD,OD;var jU=V(()=>{O0();l0();A0();t();W9();s7();U1={continuation:{tokenize:ZD},exit:VD,name:"list",tokenize:RD},qD={partial:!0,tokenize:BD},OD={partial:!0,tokenize:AD}});function ND($,X){let G=$.length,Y,J,W;while(G--)if($[G][0]==="enter"){if($[G][1].type===O.content){Y=G;break}if($[G][1].type===O.paragraph)J=G}else{if($[G][1].type===O.content)$.splice(G,1);if(!W&&$[G][1].type===O.definition)W=G}B(J!==void 0,"expected a `text` index to be found"),B(Y!==void 0,"expected a `text` index to be found"),B($[Y][2]===X,"enter context should be same"),B($[$.length-1][2]===X,"enter context should be same");let H={type:O.setextHeading,start:{...$[Y][1].start},end:{...$[$.length-1][1].end}};if($[J][1].type=O.setextHeadingText,W)$.splice(J,0,["enter",H,X]),$.splice(W+1,0,["exit",$[Y][1],X]),$[Y][1].end={...$[W][1].end};else $[Y][1]=H;return $.push(["exit",H,X]),$}function wD($,X,G){let Y=this,J;return W;function W(M){let Q=Y.events.length,q;B(M===R.dash||M===R.equalsTo,"expected `=` or `-`");while(Q--)if(Y.events[Q][1].type!==O.lineEnding&&Y.events[Q][1].type!==O.linePrefix&&Y.events[Q][1].type!==O.content){q=Y.events[Q][1].type===O.paragraph;break}if(!Y.parser.lazy[Y.now().line]&&(Y.interrupt||q))return $.enter(O.setextHeadingLine),J=M,H(M);return G(M)}function H(M){return $.enter(O.setextHeadingLineSequence),U(M)}function U(M){if(M===J)return $.consume(M),U;return $.exit(O.setextHeadingLineSequence),n(M)?e($,F,O.lineSuffix)(M):F(M)}function F(M){if(M===R.eof||x(M))return $.exit(O.setextHeadingLine),X(M);return G(M)}}var Z9;var SU=V(()=>{O0();l0();A0();t();Z9={name:"setextUnderline",resolveTo:ND,tokenize:wD}});var a7=V(()=>{KU();FU();W9();MU();QU();qU();RU();ZU();VU();NU();wU();_U();zU();LU();CU();R9();TU();EU();IU();jU();SU();s7()});function _D($){let X=this,G=$.attempt(r5,Y,$.attempt(this.parser.constructs.flowInitial,J,e($,$.attempt(this.parser.constructs.flow,J,$.attempt(y7,J)),O.linePrefix)));return G;function Y(W){if(B(W===R.eof||x(W),"expected eol or eof"),W===R.eof){$.consume(W);return}return $.enter(O.lineEndingBlank),$.consume(W),$.exit(O.lineEndingBlank),X.currentConstruct=void 0,G}function J(W){if(B(W===R.eof||x(W),"expected eol or eof"),W===R.eof){$.consume(W);return}return $.enter(O.lineEnding),$.consume(W),$.exit(O.lineEnding),X.currentConstruct=void 0,G}}var kU;var vU=V(()=>{O0();a7();l0();A0();t();kU={tokenize:_D}});function yU($){return{resolveAll:fU($==="text"?zD:void 0),tokenize:X};function X(G){let Y=this,J=this.parser.constructs[$],W=G.attempt(J,H,U);return H;function H(Q){return M(Q)?W(Q):U(Q)}function U(Q){if(Q===R.eof){G.consume(Q);return}return G.enter(O.data),G.consume(Q),F}function F(Q){if(M(Q))return G.exit(O.data),W(Q);return G.consume(Q),F}function M(Q){if(Q===R.eof)return!0;let q=J[Q],Z=-1;if(q){B(Array.isArray(q),"expected `disable.null` to be populated");while(++Z<q.length){let A=q[Z];if(!A.previous||A.previous.call(Y,Y.previous))return!0}}return!1}}}function fU($){return X;function X(G,Y){let J=-1,W;while(++J<=G.length)if(W===void 0){if(G[J]&&G[J][1].type===O.data)W=J,J++}else if(!G[J]||G[J][1].type!==O.data){if(J!==W+2)G[W][1].end=G[J-1][1].end,G.splice(W+2,J-W-2),J=W+2;W=void 0}return $?$(G,Y):G}}function zD($,X){let G=0;while(++G<=$.length)if((G===$.length||$[G][1].type===O.lineEnding)&&$[G-1][1].type===O.data){let Y=$[G-1][1],J=X.sliceStream(Y),W=J.length,H=-1,U=0,F;while(W--){let M=J[W];if(typeof M==="string"){H=M.length;while(M.charCodeAt(H-1)===R.space)U++,H--;if(H)break;H=-1}else if(M===R.horizontalTab)F=!0,U++;else if(M===R.virtualSpace);else{W++;break}}if(X._contentTypeTextTrailing&&G===$.length)U=0;if(U){let M={type:G===$.length||F||U<S.hardBreakPrefixSizeMin?O.lineSuffix:O.hardBreakTrailing,start:{_bufferIndex:W?H:Y.start._bufferIndex+H,_index:Y.start._index+W,line:Y.end.line,column:Y.end.column-U,offset:Y.end.offset-U},end:{...Y.end}};if(Y.end={...M.start},Y.start.offset===Y.end.offset)Object.assign(Y,M);else $.splice(G,0,["enter",M,X],["exit",M,X]),G+=2}G++}return $}var xU,bU,hU;var t7=V(()=>{O0();t();xU={resolveAll:fU()},bU=yU("string"),hU=yU("text")});var e7={};S8(e7,{text:()=>ED,string:()=>TD,insideSpan:()=>ID,flowInitial:()=>LD,flow:()=>CD,document:()=>DD,disable:()=>SD,contentInitial:()=>PD,attentionMarkers:()=>jD});var DD,PD,LD,CD,TD,ED,ID,jD,SD;var gU=V(()=>{a7();t();t7();DD={[R.asterisk]:U1,[R.plusSign]:U1,[R.dash]:U1,[R.digit0]:U1,[R.digit1]:U1,[R.digit2]:U1,[R.digit3]:U1,[R.digit4]:U1,[R.digit5]:U1,[R.digit6]:U1,[R.digit7]:U1,[R.digit8]:U1,[R.digit9]:U1,[R.greaterThan]:H9},PD={[R.leftSquareBracket]:u7},LD={[R.horizontalTab]:x4,[R.virtualSpace]:x4,[R.space]:x4},CD={[R.numberSign]:l7,[R.asterisk]:b2,[R.dash]:[Z9,b2],[R.lessThan]:r7,[R.equalsTo]:Z9,[R.underscore]:b2,[R.graveAccent]:F9,[R.tilde]:F9},TD={[R.ampersand]:K9,[R.backslash]:U9},ED={[R.carriageReturn]:h4,[R.lineFeed]:h4,[R.carriageReturnLineFeed]:h4,[R.exclamationMark]:n7,[R.ampersand]:K9,[R.asterisk]:v4,[R.lessThan]:[v7,i7],[R.leftSquareBracket]:o7,[R.backslash]:[d7,U9],[R.rightSquareBracket]:x2,[R.underscore]:v4,[R.graveAccent]:x7},ID={null:[v4,xU]},jD={null:[R.asterisk,R.underscore]},SD={null:[]}});var pU=d((ch,mU)=>{var P6=1000,L6=P6*60,C6=L6*60,h2=C6*24,kD=h2*7,vD=h2*365.25;mU.exports=function($,X){X=X||{};var G=typeof $;if(G==="string"&&$.length>0)return xD($);else if(G==="number"&&isFinite($))return X.long?hD($):bD($);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify($))};function xD($){if($=String($),$.length>100)return;var X=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec($);if(!X)return;var G=parseFloat(X[1]),Y=(X[2]||"ms").toLowerCase();switch(Y){case"years":case"year":case"yrs":case"yr":case"y":return G*vD;case"weeks":case"week":case"w":return G*kD;case"days":case"day":case"d":return G*h2;case"hours":case"hour":case"hrs":case"hr":case"h":return G*C6;case"minutes":case"minute":case"mins":case"min":case"m":return G*L6;case"seconds":case"second":case"secs":case"sec":case"s":return G*P6;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return G;default:return}}function bD($){var X=Math.abs($);if(X>=h2)return Math.round($/h2)+"d";if(X>=C6)return Math.round($/C6)+"h";if(X>=L6)return Math.round($/L6)+"m";if(X>=P6)return Math.round($/P6)+"s";return $+"ms"}function hD($){var X=Math.abs($);if(X>=h2)return A9($,X,h2,"day");if(X>=C6)return A9($,X,C6,"hour");if(X>=L6)return A9($,X,L6,"minute");if(X>=P6)return A9($,X,P6,"second");return $+" ms"}function A9($,X,G,Y){var J=X>=G*1.5;return Math.round($/G)+" "+Y+(J?"s":"")}});var $X=d((rh,uU)=>{function yD($){G.debug=G,G.default=G,G.coerce=F,G.disable=H,G.enable=J,G.enabled=U,G.humanize=pU(),G.destroy=M,Object.keys($).forEach((Q)=>{G[Q]=$[Q]}),G.names=[],G.skips=[],G.formatters={};function X(Q){let q=0;for(let Z=0;Z<Q.length;Z++)q=(q<<5)-q+Q.charCodeAt(Z),q|=0;return G.colors[Math.abs(q)%G.colors.length]}G.selectColor=X;function G(Q){let q,Z=null,A,_;function z(...D){if(!z.enabled)return;let P=z,b=Number(new Date),y=b-(q||b);if(P.diff=y,P.prev=q,P.curr=b,q=b,D[0]=G.coerce(D[0]),typeof D[0]!=="string")D.unshift("%O");let X0=0;D[0]=D[0].replace(/%([a-zA-Z%])/g,(E,q0)=>{if(E==="%%")return"%";X0++;let C0=G.formatters[q0];if(typeof C0==="function"){let M0=D[X0];E=C0.call(P,M0),D.splice(X0,1),X0--}return E}),G.formatArgs.call(P,D),(P.log||G.log).apply(P,D)}if(z.namespace=Q,z.useColors=G.useColors(),z.color=G.selectColor(Q),z.extend=Y,z.destroy=G.destroy,Object.defineProperty(z,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(Z!==null)return Z;if(A!==G.namespaces)A=G.namespaces,_=G.enabled(Q);return _},set:(D)=>{Z=D}}),typeof G.init==="function")G.init(z);return z}function Y(Q,q){let Z=G(this.namespace+(typeof q>"u"?":":q)+Q);return Z.log=this.log,Z}function J(Q){G.save(Q),G.namespaces=Q,G.names=[],G.skips=[];let q=(typeof Q==="string"?Q:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let Z of q)if(Z[0]==="-")G.skips.push(Z.slice(1));else G.names.push(Z)}function W(Q,q){let Z=0,A=0,_=-1,z=0;while(Z<Q.length)if(A<q.length&&(q[A]===Q[Z]||q[A]==="*"))if(q[A]==="*")_=A,z=Z,A++;else Z++,A++;else if(_!==-1)A=_+1,z++,Z=z;else return!1;while(A<q.length&&q[A]==="*")A++;return A===q.length}function H(){let Q=[...G.names,...G.skips.map((q)=>"-"+q)].join(",");return G.enable(""),Q}function U(Q){for(let q of G.skips)if(W(Q,q))return!1;for(let q of G.names)if(W(Q,q))return!0;return!1}function F(Q){if(Q instanceof Error)return Q.stack||Q.message;return Q}function M(){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}uU.exports=yD});var lU=d((dU,V9)=>{dU.formatArgs=gD;dU.save=mD;dU.load=pD;dU.useColors=fD;dU.storage=uD();dU.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`.")}})();dU.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 fD(){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 gD($){if($[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+$[0]+(this.useColors?"%c ":" ")+"+"+V9.exports.humanize(this.diff),!this.useColors)return;let X="color: "+this.color;$.splice(1,0,X,"color: inherit");let G=0,Y=0;$[0].replace(/%[a-zA-Z%]/g,(J)=>{if(J==="%%")return;if(G++,J==="%c")Y=G}),$.splice(Y,0,X)}dU.log=console.debug||console.log||(()=>{});function mD($){try{if($)dU.storage.setItem("debug",$);else dU.storage.removeItem("debug")}catch(X){}}function pD(){let $;try{$=dU.storage.getItem("debug")||dU.storage.getItem("DEBUG")}catch(X){}if(!$&&typeof process<"u"&&"env"in process)$=process.env.DEBUG;return $}function uD(){try{return localStorage}catch($){}}V9.exports=$X()(dU);var{formatters:dD}=V9.exports;dD.j=function($){try{return JSON.stringify($)}catch(X){return"[UnexpectedJSONParseError]: "+X.message}}});var rU=d((nh,cU)=>{cU.exports=($,X=process.argv)=>{let G=$.startsWith("-")?"":$.length===1?"-":"--",Y=X.indexOf(G+$),J=X.indexOf("--");return Y!==-1&&(J===-1||Y<J)}});var oU=d((oh,nU)=>{var aD=N5("os"),iU=N5("tty"),y1=rU(),{env:c0}=process,i5;if(y1("no-color")||y1("no-colors")||y1("color=false")||y1("color=never"))i5=0;else if(y1("color")||y1("colors")||y1("color=true")||y1("color=always"))i5=1;if("FORCE_COLOR"in c0)if(c0.FORCE_COLOR==="true")i5=1;else if(c0.FORCE_COLOR==="false")i5=0;else i5=c0.FORCE_COLOR.length===0?1:Math.min(parseInt(c0.FORCE_COLOR,10),3);function XX($){if($===0)return!1;return{level:$,hasBasic:!0,has256:$>=2,has16m:$>=3}}function GX($,X){if(i5===0)return 0;if(y1("color=16m")||y1("color=full")||y1("color=truecolor"))return 3;if(y1("color=256"))return 2;if($&&!X&&i5===void 0)return 0;let G=i5||0;if(c0.TERM==="dumb")return G;if(process.platform==="win32"){let Y=aD.release().split(".");if(Number(Y[0])>=10&&Number(Y[2])>=10586)return Number(Y[2])>=14931?3:2;return 1}if("CI"in c0){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((Y)=>(Y in c0))||c0.CI_NAME==="codeship")return 1;return G}if("TEAMCITY_VERSION"in c0)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(c0.TEAMCITY_VERSION)?1:0;if(c0.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in c0){let Y=parseInt((c0.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(c0.TERM_PROGRAM){case"iTerm.app":return Y>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(c0.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(c0.TERM))return 1;if("COLORTERM"in c0)return 1;return G}function tD($){let X=GX($,$&&$.isTTY);return XX(X)}nU.exports={supportsColor:tD,stdout:XX(GX(!0,iU.isatty(1))),stderr:XX(GX(!0,iU.isatty(2)))}});var eU=d((aU,N9)=>{var eD=N5("tty"),B9=N5("util");aU.init=HP;aU.log=YP;aU.formatArgs=XP;aU.save=JP;aU.load=WP;aU.useColors=$P;aU.destroy=B9.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");aU.colors=[6,2,3,4,5,1];try{let $=oU();if($&&($.stderr||$).level>=2)aU.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($){}aU.inspectOpts=Object.keys(process.env).filter(($)=>{return/^debug_/i.test($)}).reduce(($,X)=>{let G=X.substring(6).toLowerCase().replace(/_([a-z])/g,(J,W)=>{return W.toUpperCase()}),Y=process.env[X];if(/^(yes|on|true|enabled)$/i.test(Y))Y=!0;else if(/^(no|off|false|disabled)$/i.test(Y))Y=!1;else if(Y==="null")Y=null;else Y=Number(Y);return $[G]=Y,$},{});function $P(){return"colors"in aU.inspectOpts?Boolean(aU.inspectOpts.colors):eD.isatty(process.stderr.fd)}function XP($){let{namespace:X,useColors:G}=this;if(G){let Y=this.color,J="\x1B[3"+(Y<8?Y:"8;5;"+Y),W=` ${J};1m${X} \x1B[0m`;$[0]=W+$[0].split(`
95
+ `}strong($){return`<strong>${$}</strong>`}em($){return`<em>${$}</em>`}codespan($){return`<code>${$}</code>`}br(){return"<br>"}del($){return`<del>${$}</del>`}link($,X,G){let Y=zH($);if(Y===null)return G;$=Y;let J='<a href="'+$+'"';if(X)J+=' title="'+X+'"';return J+=">"+G+"</a>",J}image($,X,G){let Y=zH($);if(Y===null)return G;$=Y;let J=`<img src="${$}" alt="${G}"`;if(X)J+=` title="${X}"`;return J+=">",J}text($){return $}}class J9{strong($){return $}em($){return $}codespan($){return $}del($){return $}html($){return $}text($){return $}link($,X,G){return""+G}image($,X,G){return""+G}br(){return""}}class W5{options;renderer;textRenderer;constructor($){this.options=$||j2,this.options.renderer=this.options.renderer||new E4,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new J9}static parse($,X){return new W5(X).parse($)}static parseInline($,X){return new W5(X).parseInline($)}parse($,X=!0){let G="";for(let Y=0;Y<$.length;Y++){let J=$[Y];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[J.type]){let W=J,H=this.options.extensions.renderers[W.type].call({parser:this},W);if(H!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(W.type)){G+=H||"";continue}}switch(J.type){case"space":continue;case"hr":{G+=this.renderer.hr();continue}case"heading":{let W=J;G+=this.renderer.heading(this.parseInline(W.tokens),W.depth,h_(this.parseInline(W.tokens,this.textRenderer)));continue}case"code":{let W=J;G+=this.renderer.code(W.text,W.lang,!!W.escaped);continue}case"table":{let W=J,H="",U="";for(let M=0;M<W.header.length;M++)U+=this.renderer.tablecell(this.parseInline(W.header[M].tokens),{header:!0,align:W.align[M]});H+=this.renderer.tablerow(U);let F="";for(let M=0;M<W.rows.length;M++){let Q=W.rows[M];U="";for(let q=0;q<Q.length;q++)U+=this.renderer.tablecell(this.parseInline(Q[q].tokens),{header:!1,align:W.align[q]});F+=this.renderer.tablerow(U)}G+=this.renderer.table(H,F);continue}case"blockquote":{let W=J,H=this.parse(W.tokens);G+=this.renderer.blockquote(H);continue}case"list":{let W=J,H=W.ordered,U=W.start,F=W.loose,M="";for(let Q=0;Q<W.items.length;Q++){let q=W.items[Q],A=q.checked,Z=q.task,_="";if(q.task){let z=this.renderer.checkbox(!!A);if(F)if(q.tokens.length>0&&q.tokens[0].type==="paragraph"){if(q.tokens[0].text=z+" "+q.tokens[0].text,q.tokens[0].tokens&&q.tokens[0].tokens.length>0&&q.tokens[0].tokens[0].type==="text")q.tokens[0].tokens[0].text=z+" "+q.tokens[0].tokens[0].text}else q.tokens.unshift({type:"text",text:z+" "});else _+=z+" "}_+=this.parse(q.tokens,F),M+=this.renderer.listitem(_,Z,!!A)}G+=this.renderer.list(M,H,U);continue}case"html":{let W=J;G+=this.renderer.html(W.text,W.block);continue}case"paragraph":{let W=J;G+=this.renderer.paragraph(this.parseInline(W.tokens));continue}case"text":{let W=J,H=W.tokens?this.parseInline(W.tokens):W.text;while(Y+1<$.length&&$[Y+1].type==="text")W=$[++Y],H+=`
96
+ `+(W.tokens?this.parseInline(W.tokens):W.text);G+=X?this.renderer.paragraph(H):H;continue}default:{let W='Token with "'+J.type+'" type was not found.';if(this.options.silent)return console.error(W),"";else throw Error(W)}}}return G}parseInline($,X){X=X||this.renderer;let G="";for(let Y=0;Y<$.length;Y++){let J=$[Y];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[J.type]){let W=this.options.extensions.renderers[J.type].call({parser:this},J);if(W!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(J.type)){G+=W||"";continue}}switch(J.type){case"escape":{let W=J;G+=X.text(W.text);break}case"html":{let W=J;G+=X.html(W.text);break}case"link":{let W=J;G+=X.link(W.href,W.title,this.parseInline(W.tokens,X));break}case"image":{let W=J;G+=X.image(W.href,W.title,W.text);break}case"strong":{let W=J;G+=X.strong(this.parseInline(W.tokens,X));break}case"em":{let W=J;G+=X.em(this.parseInline(W.tokens,X));break}case"codespan":{let W=J;G+=X.codespan(W.text);break}case"br":{G+=X.br();break}case"del":{let W=J;G+=X.del(this.parseInline(W.tokens,X));break}case"text":{let W=J;G+=X.text(W.text);break}default:{let W='Token with "'+J.type+'" type was not found.';if(this.options.silent)return console.error(W),"";else throw Error(W)}}}return G}}class S4{defaults=E7();options=this.setOptions;parse=this.#$(J5.lex,W5.parse);parseInline=this.#$(J5.lexInline,W5.parseInline);Parser=W5;Renderer=E4;TextRenderer=J9;Lexer=J5;Tokenizer=T4;Hooks=C4;constructor(...$){this.use(...$)}walkTokens($,X){let G=[];for(let Y of $)switch(G=G.concat(X.call(this,Y)),Y.type){case"table":{let J=Y;for(let W of J.header)G=G.concat(this.walkTokens(W.tokens,X));for(let W of J.rows)for(let H of W)G=G.concat(this.walkTokens(H.tokens,X));break}case"list":{let J=Y;G=G.concat(this.walkTokens(J.items,X));break}default:{let J=Y;if(this.defaults.extensions?.childTokens?.[J.type])this.defaults.extensions.childTokens[J.type].forEach((W)=>{let H=J[W].flat(1/0);G=G.concat(this.walkTokens(H,X))});else if(J.tokens)G=G.concat(this.walkTokens(J.tokens,X))}}return G}use(...$){let X=this.defaults.extensions||{renderers:{},childTokens:{}};return $.forEach((G)=>{let Y={...G};if(Y.async=this.defaults.async||Y.async||!1,G.extensions)G.extensions.forEach((J)=>{if(!J.name)throw Error("extension name required");if("renderer"in J){let W=X.renderers[J.name];if(W)X.renderers[J.name]=function(...H){let U=J.renderer.apply(this,H);if(U===!1)U=W.apply(this,H);return U};else X.renderers[J.name]=J.renderer}if("tokenizer"in J){if(!J.level||J.level!=="block"&&J.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let W=X[J.level];if(W)W.unshift(J.tokenizer);else X[J.level]=[J.tokenizer];if(J.start){if(J.level==="block")if(X.startBlock)X.startBlock.push(J.start);else X.startBlock=[J.start];else if(J.level==="inline")if(X.startInline)X.startInline.push(J.start);else X.startInline=[J.start]}}if("childTokens"in J&&J.childTokens)X.childTokens[J.name]=J.childTokens}),Y.extensions=X;if(G.renderer){let J=this.defaults.renderer||new E4(this.defaults);for(let W in G.renderer){if(!(W in J))throw Error(`renderer '${W}' does not exist`);if(W==="options")continue;let H=W,U=G.renderer[H],F=J[H];J[H]=(...M)=>{let Q=U.apply(J,M);if(Q===!1)Q=F.apply(J,M);return Q||""}}Y.renderer=J}if(G.tokenizer){let J=this.defaults.tokenizer||new T4(this.defaults);for(let W in G.tokenizer){if(!(W in J))throw Error(`tokenizer '${W}' does not exist`);if(["options","rules","lexer"].includes(W))continue;let H=W,U=G.tokenizer[H],F=J[H];J[H]=(...M)=>{let Q=U.apply(J,M);if(Q===!1)Q=F.apply(J,M);return Q}}Y.tokenizer=J}if(G.hooks){let J=this.defaults.hooks||new C4;for(let W in G.hooks){if(!(W in J))throw Error(`hook '${W}' does not exist`);if(W==="options")continue;let H=W,U=G.hooks[H],F=J[H];if(C4.passThroughHooks.has(W))J[H]=(M)=>{if(this.defaults.async)return Promise.resolve(U.call(J,M)).then((q)=>{return F.call(J,q)});let Q=U.call(J,M);return F.call(J,Q)};else J[H]=(...M)=>{let Q=U.apply(J,M);if(Q===!1)Q=F.apply(J,M);return Q}}Y.hooks=J}if(G.walkTokens){let J=this.defaults.walkTokens,W=G.walkTokens;Y.walkTokens=function(H){let U=[];if(U.push(W.call(this,H)),J)U=U.concat(J.call(this,H));return U}}this.defaults={...this.defaults,...Y}}),this}setOptions($){return this.defaults={...this.defaults,...$},this}lexer($,X){return J5.lex($,X??this.defaults)}parser($,X){return W5.parse($,X??this.defaults)}#$($,X){return(G,Y)=>{let J={...Y},W={...this.defaults,...J};if(this.defaults.async===!0&&J.async===!1){if(!W.silent)console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored.");W.async=!0}let H=this.#X(!!W.silent,!!W.async);if(typeof G>"u"||G===null)return H(Error("marked(): input parameter is undefined or null"));if(typeof G!=="string")return H(Error("marked(): input parameter is of type "+Object.prototype.toString.call(G)+", string expected"));if(W.hooks)W.hooks.options=W;if(W.async)return Promise.resolve(W.hooks?W.hooks.preprocess(G):G).then((U)=>$(U,W)).then((U)=>W.hooks?W.hooks.processAllTokens(U):U).then((U)=>W.walkTokens?Promise.all(this.walkTokens(U,W.walkTokens)).then(()=>U):U).then((U)=>X(U,W)).then((U)=>W.hooks?W.hooks.postprocess(U):U).catch(H);try{if(W.hooks)G=W.hooks.preprocess(G);let U=$(G,W);if(W.hooks)U=W.hooks.processAllTokens(U);if(W.walkTokens)this.walkTokens(U,W.walkTokens);let F=X(U,W);if(W.hooks)F=W.hooks.postprocess(F);return F}catch(U){return H(U)}}}#X($,X){return(G)=>{if(G.message+=`
97
+ Please report this to https://github.com/markedjs/marked.`,$){let Y="<p>An error occurred:</p><pre>"+I1(G.message+"",!0)+"</pre>";if(X)return Promise.resolve(Y);return Y}if(X)return Promise.reject(G);throw G}}}function _0($,X){return I2.parse($,X)}var j2,TH,k_,EH,v_,x_,_H=($)=>x_[$],b_,y_,L4,m_,p_,u_,I4,d_,IH,jH,I7,l_,j7,c_,r_,Y9="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",S7,i_,SH,n_,k7,LH,o_,s_,kH,a_,vH,t_,j4="\\p{P}\\p{S}",e_,$z,Xz,Gz,Yz,Jz,Wz,Hz,Uz,G9,Kz,xH,bH,Fz,v7,Mz,T7,Qz,X9,P4,C4,I2,ik,nk,ok,sk,ak,tk,ek;var hH=B(()=>{j2=E7();TH=/[&<>"']/,k_=new RegExp(TH.source,"g"),EH=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,v_=new RegExp(EH.source,"g"),x_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};b_=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;y_=/(^|[^\[])\^/g;L4={exec:()=>null};m_=/^(?: *(?:\n|$))+/,p_=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,u_=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,I4=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,d_=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,IH=/(?:[*+-]|\d{1,9}[.)])/,jH=z0(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,IH).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),I7=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,l_=/^[^\n]+/,j7=/(?!\s*\])(?:\\.|[^\[\]\\])+/,c_=z0(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",j7).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),r_=z0(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,IH).getRegex(),S7=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,i_=z0("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",S7).replace("tag",Y9).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),SH=z0(I7).replace("hr",I4).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Y9).getRegex(),n_=z0(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",SH).getRegex(),k7={blockquote:n_,code:p_,def:c_,fences:u_,heading:d_,hr:I4,html:i_,lheading:jH,list:r_,newline:m_,paragraph:SH,table:L4,text:l_},LH=z0("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",I4).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Y9).getRegex(),o_={...k7,table:LH,paragraph:z0(I7).replace("hr",I4).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",LH).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Y9).getRegex()},s_={...k7,html:z0(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",S7).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:L4,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:z0(I7).replace("hr",I4).replace("heading",` *#{1,6} *[^
98
+ ]`).replace("lheading",jH).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},kH=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,a_=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,vH=/^( {2,}|\\)\n(?!\s*$)/,t_=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,e_=z0(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,j4).getRegex(),$z=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Xz=z0(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,j4).getRegex(),Gz=z0("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,j4).getRegex(),Yz=z0("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,j4).getRegex(),Jz=z0(/\\([punct])/,"gu").replace(/punct/g,j4).getRegex(),Wz=z0(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Hz=z0(S7).replace("(?:-->|$)","-->").getRegex(),Uz=z0("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Hz).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),G9=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Kz=z0(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",G9).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),xH=z0(/^!?\[(label)\]\[(ref)\]/).replace("label",G9).replace("ref",j7).getRegex(),bH=z0(/^!?\[(ref)\](?:\[\])?/).replace("ref",j7).getRegex(),Fz=z0("reflink|nolink(?!\\()","g").replace("reflink",xH).replace("nolink",bH).getRegex(),v7={_backpedal:L4,anyPunctuation:Jz,autolink:Wz,blockSkip:$z,br:vH,code:a_,del:L4,emStrongLDelim:Xz,emStrongRDelimAst:Gz,emStrongRDelimUnd:Yz,escape:kH,link:Kz,nolink:bH,punctuation:e_,reflink:xH,reflinkSearch:Fz,tag:Uz,text:t_,url:L4},Mz={...v7,link:z0(/^!?\[(label)\]\((.*?)\)/).replace("label",G9).getRegex(),reflink:z0(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",G9).getRegex()},T7={...v7,escape:z0(kH).replace("])","~|])").getRegex(),url:z0(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Qz={...T7,br:z0(vH).replace("{2,}","*").getRegex(),text:z0(T7.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},X9={normal:k7,gfm:o_,pedantic:s_},P4={normal:v7,gfm:T7,breaks:Qz,pedantic:Mz};C4=class C4{options;constructor($){this.options=$||j2}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess($){return $}postprocess($){return $}processAllTokens($){return $}};I2=new S4;_0.options=_0.setOptions=function($){return I2.setOptions($),_0.defaults=I2.defaults,CH(_0.defaults),_0};_0.getDefaults=E7;_0.defaults=j2;_0.use=function(...$){return I2.use(...$),_0.defaults=I2.defaults,CH(_0.defaults),_0};_0.walkTokens=function($,X){return I2.walkTokens($,X)};_0.parseInline=I2.parseInline;_0.Parser=W5;_0.parser=W5.parse;_0.Renderer=E4;_0.TextRenderer=J9;_0.Lexer=J5;_0.lexer=J5.lex;_0.Tokenizer=T4;_0.Hooks=C4;_0.parse=_0;ik=_0.options,nk=_0.setOptions,ok=_0.use,sk=_0.walkTokens,ak=_0.parseInline,tk=W5.parse,ek=J5.lex});var yH=()=>{};function V($,X){qz(Boolean($),!1,!0,"ok","Expected value to be truthy",X)}function qz($,X,G,Y,J,W){if(!$)throw W instanceof Error?W:new fH(W||J,X,G,Y,!W)}var fH;var O0=B(()=>{yH();fH=class fH extends Error{name="Assertion";code="ERR_ASSERTION";constructor($,X,G,Y,J){super($);if(Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);this.actual=X,this.expected=G,this.generated=J,this.operator=Y}}});function S2($,X){let G=X||Oz,Y=typeof G.includeImageAlt==="boolean"?G.includeImageAlt:!0,J=typeof G.includeHtml==="boolean"?G.includeHtml:!0;return mH($,Y,J)}function mH($,X,G){if(Zz($)){if("value"in $)return $.type==="html"&&!G?"":$.value;if(X&&"alt"in $&&$.alt)return $.alt;if("children"in $)return gH($.children,X,G)}if(Array.isArray($))return gH($,X,G);return""}function gH($,X,G){let Y=[],J=-1;while(++J<$.length)Y[J]=mH($[J],X,G);return Y.join("")}function Zz($){return Boolean($&&typeof $==="object")}var Oz;var pH=B(()=>{Oz={}});var W9=B(()=>{pH()});var x7;var uH=B(()=>{x7={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:`
99
+ `,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"}});function w6($){return Rz.call(x7,$)?x7[$]:!1}var Rz;var H9=B(()=>{uH();Rz={}.hasOwnProperty});var R;var dH=B(()=>{R={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 S;var lH=B(()=>{S={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 O;var cH=B(()=>{O={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 j1;var rH=B(()=>{j1={ht:"\t",lf:`
100
+ `,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"}});var a=B(()=>{dH();lH();cH();rH()});function e0($,X,G,Y){let J=$.length,W=0,H;if(X<0)X=-X>J?0:J+X;else X=X>J?J:X;if(G=G>0?G:0,Y.length<S.v8MaxSafeChunkSize)H=Array.from(Y),H.unshift(X,G),$.splice(...H);else{if(G)$.splice(X,G);while(W<Y.length)H=Y.slice(W,W+S.v8MaxSafeChunkSize),H.unshift(X,0),$.splice(...H),W+=S.v8MaxSafeChunkSize,X+=S.v8MaxSafeChunkSize}}function Z1($,X){if($.length>0)return e0($,$.length,0,X),$;return X}var d5=B(()=>{a()});function nH($){let X={},G=-1;while(++G<$.length)Az(X,$[G]);return X}function Az($,X){let G;for(G in X){let J=(iH.call($,G)?$[G]:void 0)||($[G]={}),W=X[G],H;if(W)for(H in W){if(!iH.call(J,H))J[H]=[];let U=W[H];Bz(J[H],Array.isArray(U)?U:U?[U]:[])}}}function Bz($,X){let G=-1,Y=[];while(++G<X.length)(X[G].add==="after"?$:Y).push(X[G]);e0($,0,0,Y)}var iH;var oH=B(()=>{d5();iH={}.hasOwnProperty});function U9($,X){let G=Number.parseInt($,X);if(G<R.ht||G===R.vt||G>R.cr&&G<R.space||G>R.tilde&&G<160||G>55295&&G<57344||G>64975&&G<65008||(G&65535)===65535||(G&65535)===65534||G>1114111)return j1.replacementCharacter;return String.fromCodePoint(G)}var b7=B(()=>{a()});function P5($){return $.replace(/[\t\n\r ]+/g,j1.space).replace(/^ | $/g,"").toLowerCase().toUpperCase()}var K9=B(()=>{a()});function k4($){return $!==null&&($<R.space||$===R.del)}function x($){return $!==null&&$<R.horizontalTab}function y0($){return $!==null&&($<R.nul||$===R.space)}function n($){return $===R.horizontalTab||$===R.virtualSpace||$===R.space}function l5($){return X;function X(G){return G!==null&&G>-1&&$.test(String.fromCharCode(G))}}var S1,R1,sH,v4,aH,tH,eH,$U;var A0=B(()=>{a();S1=l5(/[A-Za-z]/),R1=l5(/[\dA-Za-z]/),sH=l5(/[#-'*+\--9=?A-Z^-~]/);v4=l5(/\d/),aH=l5(/[\dA-Fa-f]/),tH=l5(/[!-/:-@[-`{-~]/);eH=l5(/\p{P}|\p{S}/u),$U=l5(/\s/)});function t($,X,G,Y){let J=Y?Y-1:Number.POSITIVE_INFINITY,W=0;return H;function H(F){if(n(F))return $.enter(G),U(F);return X(F)}function U(F){if(n(F)&&W++<J)return $.consume(F),U;return $.exit(G),X(F)}}var c0=B(()=>{A0()});function Vz($){let X=$.attempt(this.parser.constructs.contentInitial,Y,J),G;return X;function Y(U){if(V(U===R.eof||x(U),"expected eol or eof"),U===R.eof){$.consume(U);return}return $.enter(O.lineEnding),$.consume(U),$.exit(O.lineEnding),t($,X,O.linePrefix)}function J(U){return V(U!==R.eof&&!x(U),"expected anything other than a line ending or EOF"),$.enter(O.paragraph),W(U)}function W(U){let F=$.enter(O.chunkText,{contentType:S.contentTypeText,previous:G});if(G)G.next=F;return G=F,H(U)}function H(U){if(U===R.eof){$.exit(O.chunkText),$.exit(O.paragraph),$.consume(U);return}if(x(U))return $.consume(U),$.exit(O.chunkText),W;return $.consume(U),H}}var XU;var GU=B(()=>{O0();c0();A0();a();XU={tokenize:Vz}});function Nz($){let X=this,G=[],Y=0,J,W,H;return U;function U(y){if(Y<G.length){let $0=G[Y];return X.containerState=$0[1],V($0[0].continuation,"expected `continuation` to be defined on container construct"),$.attempt($0[0].continuation,F,M)(y)}return M(y)}function F(y){if(V(X.containerState,"expected `containerState` to be defined after continuation"),Y++,X.containerState._closeFlow){if(X.containerState._closeFlow=void 0,J)b();let $0=X.events.length,R0=$0,E;while(R0--)if(X.events[R0][0]==="exit"&&X.events[R0][1].type===O.chunkFlow){E=X.events[R0][1].end;break}V(E,"could not find previous flow chunk"),P(Y);let q0=$0;while(q0<X.events.length)X.events[q0][1].end={...E},q0++;return e0(X.events,R0+1,0,X.events.slice($0)),X.events.length=q0,M(y)}return U(y)}function M(y){if(Y===G.length){if(!J)return A(y);if(J.currentConstruct&&J.currentConstruct.concrete)return _(y);X.interrupt=Boolean(J.currentConstruct&&!J._gfmTableDynamicInterruptHack)}return X.containerState={},$.check(YU,Q,q)(y)}function Q(y){if(J)b();return P(Y),A(y)}function q(y){return X.parser.lazy[X.now().line]=Y!==G.length,H=X.now().offset,_(y)}function A(y){return X.containerState={},$.attempt(YU,Z,_)(y)}function Z(y){return V(X.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),V(X.containerState,"expected `containerState` to be defined on tokenizer"),Y++,G.push([X.currentConstruct,X.containerState]),A(y)}function _(y){if(y===R.eof){if(J)b();P(0),$.consume(y);return}return J=J||X.parser.flow(X.now()),$.enter(O.chunkFlow,{_tokenizer:J,contentType:S.contentTypeFlow,previous:W}),z(y)}function z(y){if(y===R.eof){D($.exit(O.chunkFlow),!0),P(0),$.consume(y);return}if(x(y))return $.consume(y),D($.exit(O.chunkFlow)),Y=0,X.interrupt=void 0,U;return $.consume(y),z}function D(y,$0){V(J,"expected `childFlow` to be defined when continuing");let R0=X.sliceStream(y);if($0)R0.push(null);if(y.previous=W,W)W.next=y;if(W=y,J.defineSkip(y.start),J.write(R0),X.parser.lazy[y.start.line]){let E=J.events.length;while(E--)if(J.events[E][1].start.offset<H&&(!J.events[E][1].end||J.events[E][1].end.offset>H))return;let q0=X.events.length,T0=q0,M0,V0;while(T0--)if(X.events[T0][0]==="exit"&&X.events[T0][1].type===O.chunkFlow){if(M0){V0=X.events[T0][1].end;break}M0=!0}V(V0,"could not find previous flow chunk"),P(Y),E=q0;while(E<X.events.length)X.events[E][1].end={...V0},E++;e0(X.events,T0+1,0,X.events.slice(q0)),X.events.length=E}}function P(y){let $0=G.length;while($0-- >y){let R0=G[$0];X.containerState=R0[1],V(R0[0].exit,"expected `exit` to be defined on container construct"),R0[0].exit.call(X,$)}G.length=y}function b(){V(X.containerState,"expected `containerState` to be defined when closing flow"),V(J,"expected `childFlow` to be defined when closing it"),J.write([R.eof]),W=void 0,J=void 0,X.containerState._closeFlow=void 0}}function wz($,X,G){return V(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),t($,$.attempt(this.parser.constructs.document,X,G),O.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:S.tabSize)}var JU,YU;var WU=B(()=>{O0();c0();A0();d5();a();JU={tokenize:Nz},YU={tokenize:wz}});function _6($){if($===R.eof||y0($)||$U($))return S.characterGroupWhitespace;if(eH($))return S.characterGroupPunctuation}var h7=B(()=>{A0();a()});function z6($,X,G){let Y=[],J=-1;while(++J<$.length){let W=$[J].resolveAll;if(W&&!Y.includes(W))X=W(X,G),Y.push(W)}return X}function _z($,X){let G=-1,Y,J,W,H,U,F,M,Q;while(++G<$.length)if($[G][0]==="enter"&&$[G][1].type==="attentionSequence"&&$[G][1]._close){Y=G;while(Y--)if($[Y][0]==="exit"&&$[Y][1].type==="attentionSequence"&&$[Y][1]._open&&X.sliceSerialize($[Y][1]).charCodeAt(0)===X.sliceSerialize($[G][1]).charCodeAt(0)){if(($[Y][1]._close||$[G][1]._open)&&($[G][1].end.offset-$[G][1].start.offset)%3&&!(($[Y][1].end.offset-$[Y][1].start.offset+$[G][1].end.offset-$[G][1].start.offset)%3))continue;F=$[Y][1].end.offset-$[Y][1].start.offset>1&&$[G][1].end.offset-$[G][1].start.offset>1?2:1;let q={...$[Y][1].end},A={...$[G][1].start};if(HU(q,-F),HU(A,F),H={type:F>1?O.strongSequence:O.emphasisSequence,start:q,end:{...$[Y][1].end}},U={type:F>1?O.strongSequence:O.emphasisSequence,start:{...$[G][1].start},end:A},W={type:F>1?O.strongText:O.emphasisText,start:{...$[Y][1].end},end:{...$[G][1].start}},J={type:F>1?O.strong:O.emphasis,start:{...H.start},end:{...U.end}},$[Y][1].end={...H.start},$[G][1].start={...U.end},M=[],$[Y][1].end.offset-$[Y][1].start.offset)M=Z1(M,[["enter",$[Y][1],X],["exit",$[Y][1],X]]);if(M=Z1(M,[["enter",J,X],["enter",H,X],["exit",H,X],["enter",W,X]]),V(X.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),M=Z1(M,z6(X.parser.constructs.insideSpan.null,$.slice(Y+1,G),X)),M=Z1(M,[["exit",W,X],["enter",U,X],["exit",U,X],["exit",J,X]]),$[G][1].end.offset-$[G][1].start.offset)Q=2,M=Z1(M,[["enter",$[G][1],X],["exit",$[G][1],X]]);else Q=0;e0($,Y-1,G-Y+3,M),G=Y+M.length-Q-2;break}}G=-1;while(++G<$.length)if($[G][1].type==="attentionSequence")$[G][1].type="data";return $}function zz($,X){let G=this.parser.constructs.attentionMarkers.null,Y=this.previous,J=_6(Y),W;return H;function H(F){return V(F===R.asterisk||F===R.underscore,"expected asterisk or underscore"),W=F,$.enter("attentionSequence"),U(F)}function U(F){if(F===W)return $.consume(F),U;let M=$.exit("attentionSequence"),Q=_6(F);V(G,"expected `attentionMarkers` to be populated");let q=!Q||Q===S.characterGroupPunctuation&&J||G.includes(F),A=!J||J===S.characterGroupPunctuation&&Q||G.includes(Y);return M._open=Boolean(W===R.asterisk?q:q&&(J||!A)),M._close=Boolean(W===R.asterisk?A:A&&(Q||!q)),X(F)}}function HU($,X){$.column+=X,$.offset+=X,$._bufferIndex+=X}var x4;var UU=B(()=>{O0();d5();h7();a();x4={name:"attention",resolveAll:_z,tokenize:zz}});function Dz($,X,G){let Y=0;return J;function J(Z){return V(Z===R.lessThan,"expected `<`"),$.enter(O.autolink),$.enter(O.autolinkMarker),$.consume(Z),$.exit(O.autolinkMarker),$.enter(O.autolinkProtocol),W}function W(Z){if(S1(Z))return $.consume(Z),H;if(Z===R.atSign)return G(Z);return M(Z)}function H(Z){if(Z===R.plusSign||Z===R.dash||Z===R.dot||R1(Z))return Y=1,U(Z);return M(Z)}function U(Z){if(Z===R.colon)return $.consume(Z),Y=0,F;if((Z===R.plusSign||Z===R.dash||Z===R.dot||R1(Z))&&Y++<S.autolinkSchemeSizeMax)return $.consume(Z),U;return Y=0,M(Z)}function F(Z){if(Z===R.greaterThan)return $.exit(O.autolinkProtocol),$.enter(O.autolinkMarker),$.consume(Z),$.exit(O.autolinkMarker),$.exit(O.autolink),X;if(Z===R.eof||Z===R.space||Z===R.lessThan||k4(Z))return G(Z);return $.consume(Z),F}function M(Z){if(Z===R.atSign)return $.consume(Z),Q;if(sH(Z))return $.consume(Z),M;return G(Z)}function Q(Z){return R1(Z)?q(Z):G(Z)}function q(Z){if(Z===R.dot)return $.consume(Z),Y=0,Q;if(Z===R.greaterThan)return $.exit(O.autolinkProtocol).type=O.autolinkEmail,$.enter(O.autolinkMarker),$.consume(Z),$.exit(O.autolinkMarker),$.exit(O.autolink),X;return A(Z)}function A(Z){if((Z===R.dash||R1(Z))&&Y++<S.autolinkDomainSizeMax){let _=Z===R.dash?A:q;return $.consume(Z),_}return G(Z)}}var y7;var KU=B(()=>{O0();A0();a();y7={name:"autolink",tokenize:Dz}});function Pz($,X,G){return Y;function Y(W){return n(W)?t($,J,O.linePrefix)(W):J(W)}function J(W){return W===R.eof||x(W)?X(W):G(W)}}var c5;var F9=B(()=>{c0();A0();a();c5={partial:!0,tokenize:Pz}});function Lz($,X,G){let Y=this;return J;function J(H){if(H===R.greaterThan){let U=Y.containerState;if(V(U,"expected `containerState` to be defined in container"),!U.open)$.enter(O.blockQuote,{_container:!0}),U.open=!0;return $.enter(O.blockQuotePrefix),$.enter(O.blockQuoteMarker),$.consume(H),$.exit(O.blockQuoteMarker),W}return G(H)}function W(H){if(n(H))return $.enter(O.blockQuotePrefixWhitespace),$.consume(H),$.exit(O.blockQuotePrefixWhitespace),$.exit(O.blockQuotePrefix),X;return $.exit(O.blockQuotePrefix),X(H)}}function Cz($,X,G){let Y=this;return J;function J(H){if(n(H))return V(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),t($,W,O.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:S.tabSize)(H);return W(H)}function W(H){return $.attempt(M9,X,G)(H)}}function Tz($){$.exit(O.blockQuote)}var M9;var FU=B(()=>{O0();c0();A0();a();M9={continuation:{tokenize:Cz},exit:Tz,name:"blockQuote",tokenize:Lz}});function Ez($,X,G){return Y;function Y(W){return V(W===R.backslash,"expected `\\`"),$.enter(O.characterEscape),$.enter(O.escapeMarker),$.consume(W),$.exit(O.escapeMarker),J}function J(W){if(tH(W))return $.enter(O.characterEscapeValue),$.consume(W),$.exit(O.characterEscapeValue),$.exit(O.characterEscape),X;return G(W)}}var Q9;var MU=B(()=>{O0();A0();a();Q9={name:"characterEscape",tokenize:Ez}});function Iz($,X,G){let Y=this,J=0,W,H;return U;function U(q){return V(q===R.ampersand,"expected `&`"),$.enter(O.characterReference),$.enter(O.characterReferenceMarker),$.consume(q),$.exit(O.characterReferenceMarker),F}function F(q){if(q===R.numberSign)return $.enter(O.characterReferenceMarkerNumeric),$.consume(q),$.exit(O.characterReferenceMarkerNumeric),M;return $.enter(O.characterReferenceValue),W=S.characterReferenceNamedSizeMax,H=R1,Q(q)}function M(q){if(q===R.uppercaseX||q===R.lowercaseX)return $.enter(O.characterReferenceMarkerHexadecimal),$.consume(q),$.exit(O.characterReferenceMarkerHexadecimal),$.enter(O.characterReferenceValue),W=S.characterReferenceHexadecimalSizeMax,H=aH,Q;return $.enter(O.characterReferenceValue),W=S.characterReferenceDecimalSizeMax,H=v4,Q(q)}function Q(q){if(q===R.semicolon&&J){let A=$.exit(O.characterReferenceValue);if(H===R1&&!w6(Y.sliceSerialize(A)))return G(q);return $.enter(O.characterReferenceMarker),$.consume(q),$.exit(O.characterReferenceMarker),$.exit(O.characterReference),X}if(H(q)&&J++<W)return $.consume(q),Q;return G(q)}}var q9;var QU=B(()=>{O0();H9();A0();a();q9={name:"characterReference",tokenize:Iz}});function jz($,X,G){let Y=this,J={partial:!0,tokenize:R0},W=0,H=0,U;return F;function F(E){return M(E)}function M(E){V(E===R.graveAccent||E===R.tilde,"expected `` ` `` or `~`");let q0=Y.events[Y.events.length-1];return W=q0&&q0[1].type===O.linePrefix?q0[2].sliceSerialize(q0[1],!0).length:0,U=E,$.enter(O.codeFenced),$.enter(O.codeFencedFence),$.enter(O.codeFencedFenceSequence),Q(E)}function Q(E){if(E===U)return H++,$.consume(E),Q;if(H<S.codeFencedSequenceSizeMin)return G(E);return $.exit(O.codeFencedFenceSequence),n(E)?t($,q,O.whitespace)(E):q(E)}function q(E){if(E===R.eof||x(E))return $.exit(O.codeFencedFence),Y.interrupt?X(E):$.check(qU,z,$0)(E);return $.enter(O.codeFencedFenceInfo),$.enter(O.chunkString,{contentType:S.contentTypeString}),A(E)}function A(E){if(E===R.eof||x(E))return $.exit(O.chunkString),$.exit(O.codeFencedFenceInfo),q(E);if(n(E))return $.exit(O.chunkString),$.exit(O.codeFencedFenceInfo),t($,Z,O.whitespace)(E);if(E===R.graveAccent&&E===U)return G(E);return $.consume(E),A}function Z(E){if(E===R.eof||x(E))return q(E);return $.enter(O.codeFencedFenceMeta),$.enter(O.chunkString,{contentType:S.contentTypeString}),_(E)}function _(E){if(E===R.eof||x(E))return $.exit(O.chunkString),$.exit(O.codeFencedFenceMeta),q(E);if(E===R.graveAccent&&E===U)return G(E);return $.consume(E),_}function z(E){return V(x(E),"expected eol"),$.attempt(J,$0,D)(E)}function D(E){return V(x(E),"expected eol"),$.enter(O.lineEnding),$.consume(E),$.exit(O.lineEnding),P}function P(E){return W>0&&n(E)?t($,b,O.linePrefix,W+1)(E):b(E)}function b(E){if(E===R.eof||x(E))return $.check(qU,z,$0)(E);return $.enter(O.codeFlowValue),y(E)}function y(E){if(E===R.eof||x(E))return $.exit(O.codeFlowValue),b(E);return $.consume(E),y}function $0(E){return $.exit(O.codeFenced),X(E)}function R0(E,q0,T0){let M0=0;return V0;function V0(s){return V(x(s),"expected eol"),E.enter(O.lineEnding),E.consume(s),E.exit(O.lineEnding),G1}function G1(s){return V(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),E.enter(O.codeFencedFence),n(s)?t(E,u,O.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:S.tabSize)(s):u(s)}function u(s){if(s===U)return E.enter(O.codeFencedFenceSequence),f(s);return T0(s)}function f(s){if(s===U)return M0++,E.consume(s),f;if(M0>=H)return E.exit(O.codeFencedFenceSequence),n(s)?t(E,r,O.whitespace)(s):r(s);return T0(s)}function r(s){if(s===R.eof||x(s))return E.exit(O.codeFencedFence),q0(s);return T0(s)}}}function Sz($,X,G){let Y=this;return J;function J(H){if(H===R.eof)return G(H);return V(x(H),"expected eol"),$.enter(O.lineEnding),$.consume(H),$.exit(O.lineEnding),W}function W(H){return Y.parser.lazy[Y.now().line]?G(H):X(H)}}var qU,O9;var OU=B(()=>{O0();c0();A0();a();qU={partial:!0,tokenize:Sz},O9={concrete:!0,name:"codeFenced",tokenize:jz}});function vz($,X,G){let Y=this;return J;function J(M){return V(n(M)),$.enter(O.codeIndented),t($,W,O.linePrefix,S.tabSize+1)(M)}function W(M){let Q=Y.events[Y.events.length-1];return Q&&Q[1].type===O.linePrefix&&Q[2].sliceSerialize(Q[1],!0).length>=S.tabSize?H(M):G(M)}function H(M){if(M===R.eof)return F(M);if(x(M))return $.attempt(kz,H,F)(M);return $.enter(O.codeFlowValue),U(M)}function U(M){if(M===R.eof||x(M))return $.exit(O.codeFlowValue),H(M);return $.consume(M),U}function F(M){return $.exit(O.codeIndented),X(M)}}function xz($,X,G){let Y=this;return J;function J(H){if(Y.parser.lazy[Y.now().line])return G(H);if(x(H))return $.enter(O.lineEnding),$.consume(H),$.exit(O.lineEnding),J;return t($,W,O.linePrefix,S.tabSize+1)(H)}function W(H){let U=Y.events[Y.events.length-1];return U&&U[1].type===O.linePrefix&&U[2].sliceSerialize(U[1],!0).length>=S.tabSize?X(H):x(H)?J(H):G(H)}}var b4,kz;var ZU=B(()=>{O0();c0();A0();a();b4={name:"codeIndented",tokenize:vz},kz={partial:!0,tokenize:xz}});function bz($){let X=$.length-4,G=3,Y,J;if(($[G][1].type===O.lineEnding||$[G][1].type==="space")&&($[X][1].type===O.lineEnding||$[X][1].type==="space")){Y=G;while(++Y<X)if($[Y][1].type===O.codeTextData){$[G][1].type=O.codeTextPadding,$[X][1].type=O.codeTextPadding,G+=2,X-=2;break}}Y=G-1,X++;while(++Y<=X)if(J===void 0){if(Y!==X&&$[Y][1].type!==O.lineEnding)J=Y}else if(Y===X||$[Y][1].type===O.lineEnding){if($[J][1].type=O.codeTextData,Y!==J+2)$[J][1].end=$[Y-1][1].end,$.splice(J+2,Y-J-2),X-=Y-J-2,Y=J+2;J=void 0}return $}function RU($){return $!==R.graveAccent||this.events[this.events.length-1][1].type===O.characterEscape}function hz($,X,G){let Y=this,J=0,W,H;return U;function U(A){return V(A===R.graveAccent,"expected `` ` ``"),V(RU.call(Y,Y.previous),"expected correct previous"),$.enter(O.codeText),$.enter(O.codeTextSequence),F(A)}function F(A){if(A===R.graveAccent)return $.consume(A),J++,F;return $.exit(O.codeTextSequence),M(A)}function M(A){if(A===R.eof)return G(A);if(A===R.space)return $.enter("space"),$.consume(A),$.exit("space"),M;if(A===R.graveAccent)return H=$.enter(O.codeTextSequence),W=0,q(A);if(x(A))return $.enter(O.lineEnding),$.consume(A),$.exit(O.lineEnding),M;return $.enter(O.codeTextData),Q(A)}function Q(A){if(A===R.eof||A===R.space||A===R.graveAccent||x(A))return $.exit(O.codeTextData),M(A);return $.consume(A),Q}function q(A){if(A===R.graveAccent)return $.consume(A),W++,q;if(W===J)return $.exit(O.codeTextSequence),$.exit(O.codeText),X(A);return H.type=O.codeTextData,Q(A)}}var f7;var AU=B(()=>{O0();A0();a();f7={name:"codeText",previous:RU,resolve:bz,tokenize:hz}});class g7{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($,X){let G=X===null||X===void 0?Number.POSITIVE_INFINITY:X;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($,X,G){let Y=X||0;this.setCursor(Math.trunc($));let J=this.right.splice(this.right.length-Y,Number.POSITIVE_INFINITY);if(G)h4(this.left,G);return J.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),h4(this.left,$)}unshift($){this.setCursor(0),this.right.push($)}unshiftMany($){this.setCursor(0),h4(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 X=this.left.splice($,Number.POSITIVE_INFINITY);h4(this.right,X.reverse())}else{let X=this.right.splice(this.left.length+this.right.length-$,Number.POSITIVE_INFINITY);h4(this.left,X.reverse())}}}function h4($,X){let G=0;if(X.length<S.v8MaxSafeChunkSize)$.push(...X);else while(G<X.length)$.push(...X.slice(G,G+S.v8MaxSafeChunkSize)),G+=S.v8MaxSafeChunkSize}var BU=B(()=>{a()});function Z9($){let X={},G=-1,Y,J,W,H,U,F,M,Q=new g7($);while(++G<Q.length){while(G in X)G=X[G];if(Y=Q.get(G),G&&Y[1].type===O.chunkFlow&&Q.get(G-1)[1].type===O.listItemPrefix){if(V(Y[1]._tokenizer,"expected `_tokenizer` on subtokens"),F=Y[1]._tokenizer.events,W=0,W<F.length&&F[W][1].type===O.lineEndingBlank)W+=2;if(W<F.length&&F[W][1].type===O.content)while(++W<F.length){if(F[W][1].type===O.content)break;if(F[W][1].type===O.chunkText)F[W][1]._isInFirstContentOfListItem=!0,W++}}if(Y[0]==="enter"){if(Y[1].contentType)Object.assign(X,yz(Q,G)),G=X[G],M=!0}else if(Y[1]._container){W=G,J=void 0;while(W--)if(H=Q.get(W),H[1].type===O.lineEnding||H[1].type===O.lineEndingBlank){if(H[0]==="enter"){if(J)Q.get(J)[1].type=O.lineEndingBlank;H[1].type=O.lineEnding,J=W}}else if(H[1].type===O.linePrefix||H[1].type===O.listItemIndent);else break;if(J)Y[1].end={...Q.get(J)[1].start},U=Q.slice(J,G),U.unshift(Y),Q.splice(J,G-J+1,U)}}return e0($,0,Number.POSITIVE_INFINITY,Q.slice(0)),!M}function yz($,X){let G=$.get(X)[1],Y=$.get(X)[2],J=X-1,W=[];V(G.contentType,"expected `contentType` on subtokens");let H=G._tokenizer;if(!H){if(H=Y.parser[G.contentType](G.start),G._contentTypeTextTrailing)H._contentTypeTextTrailing=!0}let U=H.events,F=[],M={},Q,q,A=-1,Z=G,_=0,z=0,D=[z];while(Z){while($.get(++J)[1]!==Z);if(V(!q||Z.previous===q,"expected previous to match"),V(!q||q.next===Z,"expected next to match"),W.push(J),!Z._tokenizer){if(Q=Y.sliceStream(Z),!Z.next)Q.push(R.eof);if(q)H.defineSkip(Z.start);if(Z._isInFirstContentOfListItem)H._gfmTasklistFirstContentOfListItem=!0;if(H.write(Q),Z._isInFirstContentOfListItem)H._gfmTasklistFirstContentOfListItem=void 0}q=Z,Z=Z.next}Z=G;while(++A<U.length)if(U[A][0]==="exit"&&U[A-1][0]==="enter"&&U[A][1].type===U[A-1][1].type&&U[A][1].start.line!==U[A][1].end.line)V(Z,"expected a current token"),z=A+1,D.push(z),Z._tokenizer=void 0,Z.previous=void 0,Z=Z.next;if(H.events=[],Z)Z._tokenizer=void 0,Z.previous=void 0,V(!Z.next,"expected no next token");else D.pop();A=D.length;while(A--){let P=U.slice(D[A],D[A+1]),b=W.pop();V(b!==void 0,"expected a start position when splicing"),F.push([b,b+P.length-1]),$.splice(b,2,P)}F.reverse(),A=-1;while(++A<F.length)M[_+F[A][0]]=_+F[A][1],_+=F[A][1]-F[A][0]-1;return M}var m7=B(()=>{O0();d5();a();BU()});function gz($){return Z9($),$}function mz($,X){let G;return Y;function Y(U){return V(U!==R.eof&&!x(U),"expected no eof or eol"),$.enter(O.content),G=$.enter(O.chunkContent,{contentType:S.contentTypeContent}),J(U)}function J(U){if(U===R.eof)return W(U);if(x(U))return $.check(fz,H,W)(U);return $.consume(U),J}function W(U){return $.exit(O.chunkContent),$.exit(O.content),X(U)}function H(U){return V(x(U),"expected eol"),$.consume(U),$.exit(O.chunkContent),V(G,"expected previous token"),G.next=$.enter(O.chunkContent,{contentType:S.contentTypeContent,previous:G}),G=G.next,J}}function pz($,X,G){let Y=this;return J;function J(H){return V(x(H),"expected a line ending"),$.exit(O.chunkContent),$.enter(O.lineEnding),$.consume(H),$.exit(O.lineEnding),t($,W,O.linePrefix)}function W(H){if(H===R.eof||x(H))return G(H);V(Y.parser.constructs.disable.null,"expected `disable.null` to be populated");let U=Y.events[Y.events.length-1];if(!Y.parser.constructs.disable.null.includes("codeIndented")&&U&&U[1].type===O.linePrefix&&U[2].sliceSerialize(U[1],!0).length>=S.tabSize)return X(H);return $.interrupt(Y.parser.constructs.flow,G,X)(H)}}var p7,fz;var VU=B(()=>{O0();c0();A0();m7();a();p7={resolve:gz,tokenize:mz},fz={partial:!0,tokenize:pz}});function R9($,X,G,Y,J,W,H,U,F){let M=F||Number.POSITIVE_INFINITY,Q=0;return q;function q(P){if(P===R.lessThan)return $.enter(Y),$.enter(J),$.enter(W),$.consume(P),$.exit(W),A;if(P===R.eof||P===R.space||P===R.rightParenthesis||k4(P))return G(P);return $.enter(Y),$.enter(H),$.enter(U),$.enter(O.chunkString,{contentType:S.contentTypeString}),z(P)}function A(P){if(P===R.greaterThan)return $.enter(W),$.consume(P),$.exit(W),$.exit(J),$.exit(Y),X;return $.enter(U),$.enter(O.chunkString,{contentType:S.contentTypeString}),Z(P)}function Z(P){if(P===R.greaterThan)return $.exit(O.chunkString),$.exit(U),A(P);if(P===R.eof||P===R.lessThan||x(P))return G(P);return $.consume(P),P===R.backslash?_:Z}function _(P){if(P===R.lessThan||P===R.greaterThan||P===R.backslash)return $.consume(P),Z;return Z(P)}function z(P){if(!Q&&(P===R.eof||P===R.rightParenthesis||y0(P)))return $.exit(O.chunkString),$.exit(U),$.exit(H),$.exit(Y),X(P);if(Q<M&&P===R.leftParenthesis)return $.consume(P),Q++,z;if(P===R.rightParenthesis)return $.consume(P),Q--,z;if(P===R.eof||P===R.space||P===R.leftParenthesis||k4(P))return G(P);return $.consume(P),P===R.backslash?D:z}function D(P){if(P===R.leftParenthesis||P===R.rightParenthesis||P===R.backslash)return $.consume(P),z;return z(P)}}var u7=B(()=>{A0();a()});function A9($,X,G,Y,J,W){let H=this,U=0,F;return M;function M(Z){return V(Z===R.leftSquareBracket,"expected `[`"),$.enter(Y),$.enter(J),$.consume(Z),$.exit(J),$.enter(W),Q}function Q(Z){if(U>S.linkReferenceSizeMax||Z===R.eof||Z===R.leftSquareBracket||Z===R.rightSquareBracket&&!F||Z===R.caret&&!U&&"_hiddenFootnoteSupport"in H.parser.constructs)return G(Z);if(Z===R.rightSquareBracket)return $.exit(W),$.enter(J),$.consume(Z),$.exit(J),$.exit(Y),X;if(x(Z))return $.enter(O.lineEnding),$.consume(Z),$.exit(O.lineEnding),Q;return $.enter(O.chunkString,{contentType:S.contentTypeString}),q(Z)}function q(Z){if(Z===R.eof||Z===R.leftSquareBracket||Z===R.rightSquareBracket||x(Z)||U++>S.linkReferenceSizeMax)return $.exit(O.chunkString),Q(Z);if($.consume(Z),!F)F=!n(Z);return Z===R.backslash?A:q}function A(Z){if(Z===R.leftSquareBracket||Z===R.backslash||Z===R.rightSquareBracket)return $.consume(Z),U++,q;return q(Z)}}var d7=B(()=>{O0();A0();a()});function B9($,X,G,Y,J,W){let H;return U;function U(A){if(A===R.quotationMark||A===R.apostrophe||A===R.leftParenthesis)return $.enter(Y),$.enter(J),$.consume(A),$.exit(J),H=A===R.leftParenthesis?R.rightParenthesis:A,F;return G(A)}function F(A){if(A===H)return $.enter(J),$.consume(A),$.exit(J),$.exit(Y),X;return $.enter(W),M(A)}function M(A){if(A===H)return $.exit(W),F(H);if(A===R.eof)return G(A);if(x(A))return $.enter(O.lineEnding),$.consume(A),$.exit(O.lineEnding),t($,M,O.linePrefix);return $.enter(O.chunkString,{contentType:S.contentTypeString}),Q(A)}function Q(A){if(A===H||A===R.eof||x(A))return $.exit(O.chunkString),M(A);return $.consume(A),A===R.backslash?q:Q}function q(A){if(A===H||A===R.backslash)return $.consume(A),Q;return Q(A)}}var l7=B(()=>{c0();A0();a()});function k2($,X){let G;return Y;function Y(J){if(x(J))return $.enter(O.lineEnding),$.consume(J),$.exit(O.lineEnding),G=!0,Y;if(n(J))return t($,Y,G?O.linePrefix:O.lineSuffix)(J);return X(J)}}var c7=B(()=>{c0();A0();a()});function dz($,X,G){let Y=this,J;return W;function W(Z){return $.enter(O.definition),H(Z)}function H(Z){return V(Z===R.leftSquareBracket,"expected `[`"),A9.call(Y,$,U,G,O.definitionLabel,O.definitionLabelMarker,O.definitionLabelString)(Z)}function U(Z){if(J=P5(Y.sliceSerialize(Y.events[Y.events.length-1][1]).slice(1,-1)),Z===R.colon)return $.enter(O.definitionMarker),$.consume(Z),$.exit(O.definitionMarker),F;return G(Z)}function F(Z){return y0(Z)?k2($,M)(Z):M(Z)}function M(Z){return R9($,Q,G,O.definitionDestination,O.definitionDestinationLiteral,O.definitionDestinationLiteralMarker,O.definitionDestinationRaw,O.definitionDestinationString)(Z)}function Q(Z){return $.attempt(uz,q,q)(Z)}function q(Z){return n(Z)?t($,A,O.whitespace)(Z):A(Z)}function A(Z){if(Z===R.eof||x(Z))return $.exit(O.definition),Y.parser.defined.push(J),X(Z);return G(Z)}}function lz($,X,G){return Y;function Y(U){return y0(U)?k2($,J)(U):G(U)}function J(U){return B9($,W,G,O.definitionTitle,O.definitionTitleMarker,O.definitionTitleString)(U)}function W(U){return n(U)?t($,H,O.whitespace)(U):H(U)}function H(U){return U===R.eof||x(U)?X(U):G(U)}}var r7,uz;var NU=B(()=>{O0();u7();d7();c0();l7();c7();A0();K9();a();r7={name:"definition",tokenize:dz},uz={partial:!0,tokenize:lz}});function cz($,X,G){return Y;function Y(W){return V(W===R.backslash,"expected `\\`"),$.enter(O.hardBreakEscape),$.consume(W),J}function J(W){if(x(W))return $.exit(O.hardBreakEscape),X(W);return G(W)}}var i7;var wU=B(()=>{O0();A0();a();i7={name:"hardBreakEscape",tokenize:cz}});function rz($,X){let G=$.length-2,Y=3,J,W;if($[Y][1].type===O.whitespace)Y+=2;if(G-2>Y&&$[G][1].type===O.whitespace)G-=2;if($[G][1].type===O.atxHeadingSequence&&(Y===G-1||G-4>Y&&$[G-2][1].type===O.whitespace))G-=Y+1===G?2:4;if(G>Y)J={type:O.atxHeadingText,start:$[Y][1].start,end:$[G][1].end},W={type:O.chunkText,start:$[Y][1].start,end:$[G][1].end,contentType:S.contentTypeText},e0($,Y,G-Y+1,[["enter",J,X],["enter",W,X],["exit",W,X],["exit",J,X]]);return $}function iz($,X,G){let Y=0;return J;function J(Q){return $.enter(O.atxHeading),W(Q)}function W(Q){return V(Q===R.numberSign,"expected `#`"),$.enter(O.atxHeadingSequence),H(Q)}function H(Q){if(Q===R.numberSign&&Y++<S.atxHeadingOpeningFenceSizeMax)return $.consume(Q),H;if(Q===R.eof||y0(Q))return $.exit(O.atxHeadingSequence),U(Q);return G(Q)}function U(Q){if(Q===R.numberSign)return $.enter(O.atxHeadingSequence),F(Q);if(Q===R.eof||x(Q))return $.exit(O.atxHeading),X(Q);if(n(Q))return t($,U,O.whitespace)(Q);return $.enter(O.atxHeadingText),M(Q)}function F(Q){if(Q===R.numberSign)return $.consume(Q),F;return $.exit(O.atxHeadingSequence),U(Q)}function M(Q){if(Q===R.eof||Q===R.numberSign||y0(Q))return $.exit(O.atxHeadingText),U(Q);return $.consume(Q),M}}var n7;var _U=B(()=>{O0();c0();A0();d5();a();n7={name:"headingAtx",resolve:rz,tokenize:iz}});var zU,o7;var DU=B(()=>{zU=["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"],o7=["pre","script","style","textarea"]});function sz($){let X=$.length;while(X--)if($[X][0]==="enter"&&$[X][1].type===O.htmlFlow)break;if(X>1&&$[X-2][1].type===O.linePrefix)$[X][1].start=$[X-2][1].start,$[X+1][1].start=$[X-2][1].start,$.splice(X-2,2);return $}function az($,X,G){let Y=this,J,W,H,U,F;return M;function M(w){return Q(w)}function Q(w){return V(w===R.lessThan,"expected `<`"),$.enter(O.htmlFlow),$.enter(O.htmlFlowData),$.consume(w),q}function q(w){if(w===R.exclamationMark)return $.consume(w),A;if(w===R.slash)return $.consume(w),W=!0,z;if(w===R.questionMark)return $.consume(w),J=S.htmlInstruction,Y.interrupt?X:N;if(S1(w))return V(w!==null),$.consume(w),H=String.fromCharCode(w),D;return G(w)}function A(w){if(w===R.dash)return $.consume(w),J=S.htmlComment,Z;if(w===R.leftSquareBracket)return $.consume(w),J=S.htmlCdata,U=0,_;if(S1(w))return $.consume(w),J=S.htmlDeclaration,Y.interrupt?X:N;return G(w)}function Z(w){if(w===R.dash)return $.consume(w),Y.interrupt?X:N;return G(w)}function _(w){let T1=S.cdataOpeningString;if(w===T1.charCodeAt(U++)){if($.consume(w),U===T1.length)return Y.interrupt?X:u;return _}return G(w)}function z(w){if(S1(w))return V(w!==null),$.consume(w),H=String.fromCharCode(w),D;return G(w)}function D(w){if(w===R.eof||w===R.slash||w===R.greaterThan||y0(w)){let T1=w===R.slash,R2=H.toLowerCase();if(!T1&&!W&&o7.includes(R2))return J=S.htmlRaw,Y.interrupt?X(w):u(w);if(zU.includes(H.toLowerCase())){if(J=S.htmlBasic,T1)return $.consume(w),P;return Y.interrupt?X(w):u(w)}return J=S.htmlComplete,Y.interrupt&&!Y.parser.lazy[Y.now().line]?G(w):W?b(w):y(w)}if(w===R.dash||R1(w))return $.consume(w),H+=String.fromCharCode(w),D;return G(w)}function P(w){if(w===R.greaterThan)return $.consume(w),Y.interrupt?X:u;return G(w)}function b(w){if(n(w))return $.consume(w),b;return V0(w)}function y(w){if(w===R.slash)return $.consume(w),V0;if(w===R.colon||w===R.underscore||S1(w))return $.consume(w),$0;if(n(w))return $.consume(w),y;return V0(w)}function $0(w){if(w===R.dash||w===R.dot||w===R.colon||w===R.underscore||R1(w))return $.consume(w),$0;return R0(w)}function R0(w){if(w===R.equalsTo)return $.consume(w),E;if(n(w))return $.consume(w),R0;return y(w)}function E(w){if(w===R.eof||w===R.lessThan||w===R.equalsTo||w===R.greaterThan||w===R.graveAccent)return G(w);if(w===R.quotationMark||w===R.apostrophe)return $.consume(w),F=w,q0;if(n(w))return $.consume(w),E;return T0(w)}function q0(w){if(w===F)return $.consume(w),F=null,M0;if(w===R.eof||x(w))return G(w);return $.consume(w),q0}function T0(w){if(w===R.eof||w===R.quotationMark||w===R.apostrophe||w===R.slash||w===R.lessThan||w===R.equalsTo||w===R.greaterThan||w===R.graveAccent||y0(w))return R0(w);return $.consume(w),T0}function M0(w){if(w===R.slash||w===R.greaterThan||n(w))return y(w);return G(w)}function V0(w){if(w===R.greaterThan)return $.consume(w),G1;return G(w)}function G1(w){if(w===R.eof||x(w))return u(w);if(n(w))return $.consume(w),G1;return G(w)}function u(w){if(w===R.dash&&J===S.htmlComment)return $.consume(w),P0;if(w===R.lessThan&&J===S.htmlRaw)return $.consume(w),v0;if(w===R.greaterThan&&J===S.htmlDeclaration)return $.consume(w),x0;if(w===R.questionMark&&J===S.htmlInstruction)return $.consume(w),N;if(w===R.rightSquareBracket&&J===S.htmlCdata)return $.consume(w),J1;if(x(w)&&(J===S.htmlBasic||J===S.htmlComplete))return $.exit(O.htmlFlowData),$.check(nz,R5,f)(w);if(w===R.eof||x(w))return $.exit(O.htmlFlowData),f(w);return $.consume(w),u}function f(w){return $.check(oz,r,R5)(w)}function r(w){return V(x(w)),$.enter(O.lineEnding),$.consume(w),$.exit(O.lineEnding),s}function s(w){if(w===R.eof||x(w))return f(w);return $.enter(O.htmlFlowData),u(w)}function P0(w){if(w===R.dash)return $.consume(w),N;return u(w)}function v0(w){if(w===R.slash)return $.consume(w),H="",Y1;return u(w)}function Y1(w){if(w===R.greaterThan){let T1=H.toLowerCase();if(o7.includes(T1))return $.consume(w),x0;return u(w)}if(S1(w)&&H.length<S.htmlRawSizeMax)return V(w!==null),$.consume(w),H+=String.fromCharCode(w),Y1;return u(w)}function J1(w){if(w===R.rightSquareBracket)return $.consume(w),N;return u(w)}function N(w){if(w===R.greaterThan)return $.consume(w),x0;if(w===R.dash&&J===S.htmlComment)return $.consume(w),N;return u(w)}function x0(w){if(w===R.eof||x(w))return $.exit(O.htmlFlowData),R5(w);return $.consume(w),x0}function R5(w){return $.exit(O.htmlFlow),X(w)}}function tz($,X,G){let Y=this;return J;function J(H){if(x(H))return $.enter(O.lineEnding),$.consume(H),$.exit(O.lineEnding),W;return G(H)}function W(H){return Y.parser.lazy[Y.now().line]?G(H):X(H)}}function ez($,X,G){return Y;function Y(J){return V(x(J),"expected a line ending"),$.enter(O.lineEnding),$.consume(J),$.exit(O.lineEnding),$.attempt(c5,X,G)}}var s7,nz,oz;var PU=B(()=>{O0();A0();DU();a();F9();s7={concrete:!0,name:"htmlFlow",resolveTo:sz,tokenize:az},nz={partial:!0,tokenize:ez},oz={partial:!0,tokenize:tz}});function $D($,X,G){let Y=this,J,W,H;return U;function U(N){return V(N===R.lessThan,"expected `<`"),$.enter(O.htmlText),$.enter(O.htmlTextData),$.consume(N),F}function F(N){if(N===R.exclamationMark)return $.consume(N),M;if(N===R.slash)return $.consume(N),R0;if(N===R.questionMark)return $.consume(N),y;if(S1(N))return $.consume(N),T0;return G(N)}function M(N){if(N===R.dash)return $.consume(N),Q;if(N===R.leftSquareBracket)return $.consume(N),W=0,_;if(S1(N))return $.consume(N),b;return G(N)}function Q(N){if(N===R.dash)return $.consume(N),Z;return G(N)}function q(N){if(N===R.eof)return G(N);if(N===R.dash)return $.consume(N),A;if(x(N))return H=q,v0(N);return $.consume(N),q}function A(N){if(N===R.dash)return $.consume(N),Z;return q(N)}function Z(N){return N===R.greaterThan?P0(N):N===R.dash?A(N):q(N)}function _(N){let x0=S.cdataOpeningString;if(N===x0.charCodeAt(W++))return $.consume(N),W===x0.length?z:_;return G(N)}function z(N){if(N===R.eof)return G(N);if(N===R.rightSquareBracket)return $.consume(N),D;if(x(N))return H=z,v0(N);return $.consume(N),z}function D(N){if(N===R.rightSquareBracket)return $.consume(N),P;return z(N)}function P(N){if(N===R.greaterThan)return P0(N);if(N===R.rightSquareBracket)return $.consume(N),P;return z(N)}function b(N){if(N===R.eof||N===R.greaterThan)return P0(N);if(x(N))return H=b,v0(N);return $.consume(N),b}function y(N){if(N===R.eof)return G(N);if(N===R.questionMark)return $.consume(N),$0;if(x(N))return H=y,v0(N);return $.consume(N),y}function $0(N){return N===R.greaterThan?P0(N):y(N)}function R0(N){if(S1(N))return $.consume(N),E;return G(N)}function E(N){if(N===R.dash||R1(N))return $.consume(N),E;return q0(N)}function q0(N){if(x(N))return H=q0,v0(N);if(n(N))return $.consume(N),q0;return P0(N)}function T0(N){if(N===R.dash||R1(N))return $.consume(N),T0;if(N===R.slash||N===R.greaterThan||y0(N))return M0(N);return G(N)}function M0(N){if(N===R.slash)return $.consume(N),P0;if(N===R.colon||N===R.underscore||S1(N))return $.consume(N),V0;if(x(N))return H=M0,v0(N);if(n(N))return $.consume(N),M0;return P0(N)}function V0(N){if(N===R.dash||N===R.dot||N===R.colon||N===R.underscore||R1(N))return $.consume(N),V0;return G1(N)}function G1(N){if(N===R.equalsTo)return $.consume(N),u;if(x(N))return H=G1,v0(N);if(n(N))return $.consume(N),G1;return M0(N)}function u(N){if(N===R.eof||N===R.lessThan||N===R.equalsTo||N===R.greaterThan||N===R.graveAccent)return G(N);if(N===R.quotationMark||N===R.apostrophe)return $.consume(N),J=N,f;if(x(N))return H=u,v0(N);if(n(N))return $.consume(N),u;return $.consume(N),r}function f(N){if(N===J)return $.consume(N),J=void 0,s;if(N===R.eof)return G(N);if(x(N))return H=f,v0(N);return $.consume(N),f}function r(N){if(N===R.eof||N===R.quotationMark||N===R.apostrophe||N===R.lessThan||N===R.equalsTo||N===R.graveAccent)return G(N);if(N===R.slash||N===R.greaterThan||y0(N))return M0(N);return $.consume(N),r}function s(N){if(N===R.slash||N===R.greaterThan||y0(N))return M0(N);return G(N)}function P0(N){if(N===R.greaterThan)return $.consume(N),$.exit(O.htmlTextData),$.exit(O.htmlText),X;return G(N)}function v0(N){return V(H,"expected return state"),V(x(N),"expected eol"),$.exit(O.htmlTextData),$.enter(O.lineEnding),$.consume(N),$.exit(O.lineEnding),Y1}function Y1(N){return V(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),n(N)?t($,J1,O.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:S.tabSize)(N):J1(N)}function J1(N){return $.enter(O.htmlTextData),H(N)}}var a7;var LU=B(()=>{O0();c0();A0();a();a7={name:"htmlText",tokenize:$D}});function JD($){let X=-1,G=[];while(++X<$.length){let Y=$[X][1];if(G.push($[X]),Y.type===O.labelImage||Y.type===O.labelLink||Y.type===O.labelEnd){let J=Y.type===O.labelImage?4:2;Y.type=O.data,X+=J}}if($.length!==G.length)e0($,0,$.length,G);return $}function WD($,X){let G=$.length,Y=0,J,W,H,U;while(G--)if(J=$[G][1],W){if(J.type===O.link||J.type===O.labelLink&&J._inactive)break;if($[G][0]==="enter"&&J.type===O.labelLink)J._inactive=!0}else if(H){if($[G][0]==="enter"&&(J.type===O.labelImage||J.type===O.labelLink)&&!J._balanced){if(W=G,J.type!==O.labelLink){Y=2;break}}}else if(J.type===O.labelEnd)H=G;V(W!==void 0,"`open` is supposed to be found"),V(H!==void 0,"`close` is supposed to be found");let F={type:$[W][1].type===O.labelLink?O.link:O.image,start:{...$[W][1].start},end:{...$[$.length-1][1].end}},M={type:O.label,start:{...$[W][1].start},end:{...$[H][1].end}},Q={type:O.labelText,start:{...$[W+Y+2][1].end},end:{...$[H-2][1].start}};return U=[["enter",F,X],["enter",M,X]],U=Z1(U,$.slice(W+1,W+Y+3)),U=Z1(U,[["enter",Q,X]]),V(X.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),U=Z1(U,z6(X.parser.constructs.insideSpan.null,$.slice(W+Y+4,H-3),X)),U=Z1(U,[["exit",Q,X],$[H-2],$[H-1],["exit",M,X]]),U=Z1(U,$.slice(H+1)),U=Z1(U,[["exit",F,X]]),e0($,W,$.length,U),$}function HD($,X,G){let Y=this,J=Y.events.length,W,H;while(J--)if((Y.events[J][1].type===O.labelImage||Y.events[J][1].type===O.labelLink)&&!Y.events[J][1]._balanced){W=Y.events[J][1];break}return U;function U(A){if(V(A===R.rightSquareBracket,"expected `]`"),!W)return G(A);if(W._inactive)return q(A);return H=Y.parser.defined.includes(P5(Y.sliceSerialize({start:W.end,end:Y.now()}))),$.enter(O.labelEnd),$.enter(O.labelMarker),$.consume(A),$.exit(O.labelMarker),$.exit(O.labelEnd),F}function F(A){if(A===R.leftParenthesis)return $.attempt(XD,Q,H?Q:q)(A);if(A===R.leftSquareBracket)return $.attempt(GD,Q,H?M:q)(A);return H?Q(A):q(A)}function M(A){return $.attempt(YD,Q,q)(A)}function Q(A){return X(A)}function q(A){return W._balanced=!0,G(A)}}function UD($,X,G){return Y;function Y(q){return V(q===R.leftParenthesis,"expected left paren"),$.enter(O.resource),$.enter(O.resourceMarker),$.consume(q),$.exit(O.resourceMarker),J}function J(q){return y0(q)?k2($,W)(q):W(q)}function W(q){if(q===R.rightParenthesis)return Q(q);return R9($,H,U,O.resourceDestination,O.resourceDestinationLiteral,O.resourceDestinationLiteralMarker,O.resourceDestinationRaw,O.resourceDestinationString,S.linkResourceDestinationBalanceMax)(q)}function H(q){return y0(q)?k2($,F)(q):Q(q)}function U(q){return G(q)}function F(q){if(q===R.quotationMark||q===R.apostrophe||q===R.leftParenthesis)return B9($,M,G,O.resourceTitle,O.resourceTitleMarker,O.resourceTitleString)(q);return Q(q)}function M(q){return y0(q)?k2($,Q)(q):Q(q)}function Q(q){if(q===R.rightParenthesis)return $.enter(O.resourceMarker),$.consume(q),$.exit(O.resourceMarker),$.exit(O.resource),X;return G(q)}}function KD($,X,G){let Y=this;return J;function J(U){return V(U===R.leftSquareBracket,"expected left bracket"),A9.call(Y,$,W,H,O.reference,O.referenceMarker,O.referenceString)(U)}function W(U){return Y.parser.defined.includes(P5(Y.sliceSerialize(Y.events[Y.events.length-1][1]).slice(1,-1)))?X(U):G(U)}function H(U){return G(U)}}function FD($,X,G){return Y;function Y(W){return V(W===R.leftSquareBracket,"expected left bracket"),$.enter(O.reference),$.enter(O.referenceMarker),$.consume(W),$.exit(O.referenceMarker),J}function J(W){if(W===R.rightSquareBracket)return $.enter(O.referenceMarker),$.consume(W),$.exit(O.referenceMarker),$.exit(O.reference),X;return G(W)}}var v2,XD,GD,YD;var V9=B(()=>{O0();u7();d7();l7();c7();A0();d5();K9();a();v2={name:"labelEnd",resolveAll:JD,resolveTo:WD,tokenize:HD},XD={tokenize:UD},GD={tokenize:KD},YD={tokenize:FD}});function MD($,X,G){let Y=this;return J;function J(U){return V(U===R.exclamationMark,"expected `!`"),$.enter(O.labelImage),$.enter(O.labelImageMarker),$.consume(U),$.exit(O.labelImageMarker),W}function W(U){if(U===R.leftSquareBracket)return $.enter(O.labelMarker),$.consume(U),$.exit(O.labelMarker),$.exit(O.labelImage),H;return G(U)}function H(U){return U===R.caret&&"_hiddenFootnoteSupport"in Y.parser.constructs?G(U):X(U)}}var t7;var CU=B(()=>{O0();a();V9();t7={name:"labelStartImage",resolveAll:v2.resolveAll,tokenize:MD}});function QD($,X,G){let Y=this;return J;function J(H){return V(H===R.leftSquareBracket,"expected `[`"),$.enter(O.labelLink),$.enter(O.labelMarker),$.consume(H),$.exit(O.labelMarker),$.exit(O.labelLink),W}function W(H){return H===R.caret&&"_hiddenFootnoteSupport"in Y.parser.constructs?G(H):X(H)}}var e7;var TU=B(()=>{O0();a();V9();e7={name:"labelStartLink",resolveAll:v2.resolveAll,tokenize:QD}});function qD($,X){return G;function G(Y){return V(x(Y),"expected eol"),$.enter(O.lineEnding),$.consume(Y),$.exit(O.lineEnding),t($,X,O.linePrefix)}}var y4;var EU=B(()=>{O0();c0();A0();a();y4={name:"lineEnding",tokenize:qD}});function OD($,X,G){let Y=0,J;return W;function W(M){return $.enter(O.thematicBreak),H(M)}function H(M){return V(M===R.asterisk||M===R.dash||M===R.underscore,"expected `*`, `-`, or `_`"),J=M,U(M)}function U(M){if(M===J)return $.enter(O.thematicBreakSequence),F(M);if(Y>=S.thematicBreakMarkerCountMin&&(M===R.eof||x(M)))return $.exit(O.thematicBreak),X(M);return G(M)}function F(M){if(M===J)return $.consume(M),Y++,F;return $.exit(O.thematicBreakSequence),n(M)?t($,U,O.whitespace)(M):U(M)}}var x2;var $X=B(()=>{O0();c0();A0();a();x2={name:"thematicBreak",tokenize:OD}});function AD($,X,G){let Y=this,J=Y.events[Y.events.length-1],W=J&&J[1].type===O.linePrefix?J[2].sliceSerialize(J[1],!0).length:0,H=0;return U;function U(Z){V(Y.containerState,"expected state");let _=Y.containerState.type||(Z===R.asterisk||Z===R.plusSign||Z===R.dash?O.listUnordered:O.listOrdered);if(_===O.listUnordered?!Y.containerState.marker||Z===Y.containerState.marker:v4(Z)){if(!Y.containerState.type)Y.containerState.type=_,$.enter(_,{_container:!0});if(_===O.listUnordered)return $.enter(O.listItemPrefix),Z===R.asterisk||Z===R.dash?$.check(x2,G,M)(Z):M(Z);if(!Y.interrupt||Z===R.digit1)return $.enter(O.listItemPrefix),$.enter(O.listItemValue),F(Z)}return G(Z)}function F(Z){if(V(Y.containerState,"expected state"),v4(Z)&&++H<S.listItemValueSizeMax)return $.consume(Z),F;if((!Y.interrupt||H<2)&&(Y.containerState.marker?Z===Y.containerState.marker:Z===R.rightParenthesis||Z===R.dot))return $.exit(O.listItemValue),M(Z);return G(Z)}function M(Z){return V(Y.containerState,"expected state"),V(Z!==R.eof,"eof (`null`) is not a marker"),$.enter(O.listItemMarker),$.consume(Z),$.exit(O.listItemMarker),Y.containerState.marker=Y.containerState.marker||Z,$.check(c5,Y.interrupt?G:Q,$.attempt(ZD,A,q))}function Q(Z){return V(Y.containerState,"expected state"),Y.containerState.initialBlankLine=!0,W++,A(Z)}function q(Z){if(n(Z))return $.enter(O.listItemPrefixWhitespace),$.consume(Z),$.exit(O.listItemPrefixWhitespace),A;return G(Z)}function A(Z){return V(Y.containerState,"expected state"),Y.containerState.size=W+Y.sliceSerialize($.exit(O.listItemPrefix),!0).length,X(Z)}}function BD($,X,G){let Y=this;return V(Y.containerState,"expected state"),Y.containerState._closeFlow=void 0,$.check(c5,J,W);function J(U){return V(Y.containerState,"expected state"),V(typeof Y.containerState.size==="number","expected size"),Y.containerState.furtherBlankLines=Y.containerState.furtherBlankLines||Y.containerState.initialBlankLine,t($,X,O.listItemIndent,Y.containerState.size+1)(U)}function W(U){if(V(Y.containerState,"expected state"),Y.containerState.furtherBlankLines||!n(U))return Y.containerState.furtherBlankLines=void 0,Y.containerState.initialBlankLine=void 0,H(U);return Y.containerState.furtherBlankLines=void 0,Y.containerState.initialBlankLine=void 0,$.attempt(RD,X,H)(U)}function H(U){return V(Y.containerState,"expected state"),Y.containerState._closeFlow=!0,Y.interrupt=void 0,V(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),t($,$.attempt(K1,X,G),O.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:S.tabSize)(U)}}function VD($,X,G){let Y=this;return V(Y.containerState,"expected state"),V(typeof Y.containerState.size==="number","expected size"),t($,J,O.listItemIndent,Y.containerState.size+1);function J(W){V(Y.containerState,"expected state");let H=Y.events[Y.events.length-1];return H&&H[1].type===O.listItemIndent&&H[2].sliceSerialize(H[1],!0).length===Y.containerState.size?X(W):G(W)}}function ND($){V(this.containerState,"expected state"),V(typeof this.containerState.type==="string","expected type"),$.exit(this.containerState.type)}function wD($,X,G){let Y=this;return V(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),t($,J,O.listItemPrefixWhitespace,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:S.tabSize+1);function J(W){let H=Y.events[Y.events.length-1];return!n(W)&&H&&H[1].type===O.listItemPrefixWhitespace?X(W):G(W)}}var K1,ZD,RD;var IU=B(()=>{O0();c0();A0();a();F9();$X();K1={continuation:{tokenize:BD},exit:ND,name:"list",tokenize:AD},ZD={partial:!0,tokenize:wD},RD={partial:!0,tokenize:VD}});function _D($,X){let G=$.length,Y,J,W;while(G--)if($[G][0]==="enter"){if($[G][1].type===O.content){Y=G;break}if($[G][1].type===O.paragraph)J=G}else{if($[G][1].type===O.content)$.splice(G,1);if(!W&&$[G][1].type===O.definition)W=G}V(J!==void 0,"expected a `text` index to be found"),V(Y!==void 0,"expected a `text` index to be found"),V($[Y][2]===X,"enter context should be same"),V($[$.length-1][2]===X,"enter context should be same");let H={type:O.setextHeading,start:{...$[Y][1].start},end:{...$[$.length-1][1].end}};if($[J][1].type=O.setextHeadingText,W)$.splice(J,0,["enter",H,X]),$.splice(W+1,0,["exit",$[Y][1],X]),$[Y][1].end={...$[W][1].end};else $[Y][1]=H;return $.push(["exit",H,X]),$}function zD($,X,G){let Y=this,J;return W;function W(M){let Q=Y.events.length,q;V(M===R.dash||M===R.equalsTo,"expected `=` or `-`");while(Q--)if(Y.events[Q][1].type!==O.lineEnding&&Y.events[Q][1].type!==O.linePrefix&&Y.events[Q][1].type!==O.content){q=Y.events[Q][1].type===O.paragraph;break}if(!Y.parser.lazy[Y.now().line]&&(Y.interrupt||q))return $.enter(O.setextHeadingLine),J=M,H(M);return G(M)}function H(M){return $.enter(O.setextHeadingLineSequence),U(M)}function U(M){if(M===J)return $.consume(M),U;return $.exit(O.setextHeadingLineSequence),n(M)?t($,F,O.lineSuffix)(M):F(M)}function F(M){if(M===R.eof||x(M))return $.exit(O.setextHeadingLine),X(M);return G(M)}}var N9;var jU=B(()=>{O0();c0();A0();a();N9={name:"setextUnderline",resolveTo:_D,tokenize:zD}});var XX=B(()=>{UU();KU();F9();FU();MU();QU();OU();ZU();AU();VU();NU();wU();_U();PU();LU();V9();CU();TU();EU();IU();jU();$X()});function DD($){let X=this,G=$.attempt(c5,Y,$.attempt(this.parser.constructs.flowInitial,J,t($,$.attempt(this.parser.constructs.flow,J,$.attempt(p7,J)),O.linePrefix)));return G;function Y(W){if(V(W===R.eof||x(W),"expected eol or eof"),W===R.eof){$.consume(W);return}return $.enter(O.lineEndingBlank),$.consume(W),$.exit(O.lineEndingBlank),X.currentConstruct=void 0,G}function J(W){if(V(W===R.eof||x(W),"expected eol or eof"),W===R.eof){$.consume(W);return}return $.enter(O.lineEnding),$.consume(W),$.exit(O.lineEnding),X.currentConstruct=void 0,G}}var SU;var kU=B(()=>{O0();XX();c0();A0();a();SU={tokenize:DD}});function hU($){return{resolveAll:yU($==="text"?PD:void 0),tokenize:X};function X(G){let Y=this,J=this.parser.constructs[$],W=G.attempt(J,H,U);return H;function H(Q){return M(Q)?W(Q):U(Q)}function U(Q){if(Q===R.eof){G.consume(Q);return}return G.enter(O.data),G.consume(Q),F}function F(Q){if(M(Q))return G.exit(O.data),W(Q);return G.consume(Q),F}function M(Q){if(Q===R.eof)return!0;let q=J[Q],A=-1;if(q){V(Array.isArray(q),"expected `disable.null` to be populated");while(++A<q.length){let Z=q[A];if(!Z.previous||Z.previous.call(Y,Y.previous))return!0}}return!1}}}function yU($){return X;function X(G,Y){let J=-1,W;while(++J<=G.length)if(W===void 0){if(G[J]&&G[J][1].type===O.data)W=J,J++}else if(!G[J]||G[J][1].type!==O.data){if(J!==W+2)G[W][1].end=G[J-1][1].end,G.splice(W+2,J-W-2),J=W+2;W=void 0}return $?$(G,Y):G}}function PD($,X){let G=0;while(++G<=$.length)if((G===$.length||$[G][1].type===O.lineEnding)&&$[G-1][1].type===O.data){let Y=$[G-1][1],J=X.sliceStream(Y),W=J.length,H=-1,U=0,F;while(W--){let M=J[W];if(typeof M==="string"){H=M.length;while(M.charCodeAt(H-1)===R.space)U++,H--;if(H)break;H=-1}else if(M===R.horizontalTab)F=!0,U++;else if(M===R.virtualSpace);else{W++;break}}if(X._contentTypeTextTrailing&&G===$.length)U=0;if(U){let M={type:G===$.length||F||U<S.hardBreakPrefixSizeMin?O.lineSuffix:O.hardBreakTrailing,start:{_bufferIndex:W?H:Y.start._bufferIndex+H,_index:Y.start._index+W,line:Y.end.line,column:Y.end.column-U,offset:Y.end.offset-U},end:{...Y.end}};if(Y.end={...M.start},Y.start.offset===Y.end.offset)Object.assign(Y,M);else $.splice(G,0,["enter",M,X],["exit",M,X]),G+=2}G++}return $}var vU,xU,bU;var GX=B(()=>{O0();a();vU={resolveAll:yU()},xU=hU("string"),bU=hU("text")});var YX={};b8(YX,{text:()=>jD,string:()=>ID,insideSpan:()=>SD,flowInitial:()=>TD,flow:()=>ED,document:()=>LD,disable:()=>vD,contentInitial:()=>CD,attentionMarkers:()=>kD});var LD,CD,TD,ED,ID,jD,SD,kD,vD;var fU=B(()=>{XX();a();GX();LD={[R.asterisk]:K1,[R.plusSign]:K1,[R.dash]:K1,[R.digit0]:K1,[R.digit1]:K1,[R.digit2]:K1,[R.digit3]:K1,[R.digit4]:K1,[R.digit5]:K1,[R.digit6]:K1,[R.digit7]:K1,[R.digit8]:K1,[R.digit9]:K1,[R.greaterThan]:M9},CD={[R.leftSquareBracket]:r7},TD={[R.horizontalTab]:b4,[R.virtualSpace]:b4,[R.space]:b4},ED={[R.numberSign]:n7,[R.asterisk]:x2,[R.dash]:[N9,x2],[R.lessThan]:s7,[R.equalsTo]:N9,[R.underscore]:x2,[R.graveAccent]:O9,[R.tilde]:O9},ID={[R.ampersand]:q9,[R.backslash]:Q9},jD={[R.carriageReturn]:y4,[R.lineFeed]:y4,[R.carriageReturnLineFeed]:y4,[R.exclamationMark]:t7,[R.ampersand]:q9,[R.asterisk]:x4,[R.lessThan]:[y7,a7],[R.leftSquareBracket]:e7,[R.backslash]:[i7,Q9],[R.rightSquareBracket]:v2,[R.underscore]:x4,[R.graveAccent]:f7},SD={null:[x4,vU]},kD={null:[R.asterisk,R.underscore]},vD={null:[]}});var mU=d((Fy,gU)=>{var D6=1000,P6=D6*60,L6=P6*60,b2=L6*24,xD=b2*7,bD=b2*365.25;gU.exports=function($,X){X=X||{};var G=typeof $;if(G==="string"&&$.length>0)return hD($);else if(G==="number"&&isFinite($))return X.long?fD($):yD($);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify($))};function hD($){if($=String($),$.length>100)return;var X=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec($);if(!X)return;var G=parseFloat(X[1]),Y=(X[2]||"ms").toLowerCase();switch(Y){case"years":case"year":case"yrs":case"yr":case"y":return G*bD;case"weeks":case"week":case"w":return G*xD;case"days":case"day":case"d":return G*b2;case"hours":case"hour":case"hrs":case"hr":case"h":return G*L6;case"minutes":case"minute":case"mins":case"min":case"m":return G*P6;case"seconds":case"second":case"secs":case"sec":case"s":return G*D6;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return G;default:return}}function yD($){var X=Math.abs($);if(X>=b2)return Math.round($/b2)+"d";if(X>=L6)return Math.round($/L6)+"h";if(X>=P6)return Math.round($/P6)+"m";if(X>=D6)return Math.round($/D6)+"s";return $+"ms"}function fD($){var X=Math.abs($);if(X>=b2)return w9($,X,b2,"day");if(X>=L6)return w9($,X,L6,"hour");if(X>=P6)return w9($,X,P6,"minute");if(X>=D6)return w9($,X,D6,"second");return $+" ms"}function w9($,X,G,Y){var J=X>=G*1.5;return Math.round($/G)+" "+Y+(J?"s":"")}});var JX=d((My,pU)=>{function gD($){G.debug=G,G.default=G,G.coerce=F,G.disable=H,G.enable=J,G.enabled=U,G.humanize=mU(),G.destroy=M,Object.keys($).forEach((Q)=>{G[Q]=$[Q]}),G.names=[],G.skips=[],G.formatters={};function X(Q){let q=0;for(let A=0;A<Q.length;A++)q=(q<<5)-q+Q.charCodeAt(A),q|=0;return G.colors[Math.abs(q)%G.colors.length]}G.selectColor=X;function G(Q){let q,A=null,Z,_;function z(...D){if(!z.enabled)return;let P=z,b=Number(new Date),y=b-(q||b);if(P.diff=y,P.prev=q,P.curr=b,q=b,D[0]=G.coerce(D[0]),typeof D[0]!=="string")D.unshift("%O");let $0=0;D[0]=D[0].replace(/%([a-zA-Z%])/g,(E,q0)=>{if(E==="%%")return"%";$0++;let T0=G.formatters[q0];if(typeof T0==="function"){let M0=D[$0];E=T0.call(P,M0),D.splice($0,1),$0--}return E}),G.formatArgs.call(P,D),(P.log||G.log).apply(P,D)}if(z.namespace=Q,z.useColors=G.useColors(),z.color=G.selectColor(Q),z.extend=Y,z.destroy=G.destroy,Object.defineProperty(z,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(A!==null)return A;if(Z!==G.namespaces)Z=G.namespaces,_=G.enabled(Q);return _},set:(D)=>{A=D}}),typeof G.init==="function")G.init(z);return z}function Y(Q,q){let A=G(this.namespace+(typeof q>"u"?":":q)+Q);return A.log=this.log,A}function J(Q){G.save(Q),G.namespaces=Q,G.names=[],G.skips=[];let q=(typeof Q==="string"?Q:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let A of q)if(A[0]==="-")G.skips.push(A.slice(1));else G.names.push(A)}function W(Q,q){let A=0,Z=0,_=-1,z=0;while(A<Q.length)if(Z<q.length&&(q[Z]===Q[A]||q[Z]==="*"))if(q[Z]==="*")_=Z,z=A,Z++;else A++,Z++;else if(_!==-1)Z=_+1,z++,A=z;else return!1;while(Z<q.length&&q[Z]==="*")Z++;return Z===q.length}function H(){let Q=[...G.names,...G.skips.map((q)=>"-"+q)].join(",");return G.enable(""),Q}function U(Q){for(let q of G.skips)if(W(Q,q))return!1;for(let q of G.names)if(W(Q,q))return!0;return!1}function F(Q){if(Q instanceof Error)return Q.stack||Q.message;return Q}function M(){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}pU.exports=gD});var dU=d((uU,_9)=>{uU.formatArgs=pD;uU.save=uD;uU.load=dD;uU.useColors=mD;uU.storage=lD();uU.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`.")}})();uU.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 mD(){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 pD($){if($[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+$[0]+(this.useColors?"%c ":" ")+"+"+_9.exports.humanize(this.diff),!this.useColors)return;let X="color: "+this.color;$.splice(1,0,X,"color: inherit");let G=0,Y=0;$[0].replace(/%[a-zA-Z%]/g,(J)=>{if(J==="%%")return;if(G++,J==="%c")Y=G}),$.splice(Y,0,X)}uU.log=console.debug||console.log||(()=>{});function uD($){try{if($)uU.storage.setItem("debug",$);else uU.storage.removeItem("debug")}catch(X){}}function dD(){let $;try{$=uU.storage.getItem("debug")||uU.storage.getItem("DEBUG")}catch(X){}if(!$&&typeof process<"u"&&"env"in process)$=process.env.DEBUG;return $}function lD(){try{return localStorage}catch($){}}_9.exports=JX()(uU);var{formatters:cD}=_9.exports;cD.j=function($){try{return JSON.stringify($)}catch(X){return"[UnexpectedJSONParseError]: "+X.message}}});var cU=d((qy,lU)=>{lU.exports=($,X=process.argv)=>{let G=$.startsWith("-")?"":$.length===1?"-":"--",Y=X.indexOf(G+$),J=X.indexOf("--");return Y!==-1&&(J===-1||Y<J)}});var nU=d((Oy,iU)=>{var eD=N5("os"),rU=N5("tty"),y1=cU(),{env:r0}=process,r5;if(y1("no-color")||y1("no-colors")||y1("color=false")||y1("color=never"))r5=0;else if(y1("color")||y1("colors")||y1("color=true")||y1("color=always"))r5=1;if("FORCE_COLOR"in r0)if(r0.FORCE_COLOR==="true")r5=1;else if(r0.FORCE_COLOR==="false")r5=0;else r5=r0.FORCE_COLOR.length===0?1:Math.min(parseInt(r0.FORCE_COLOR,10),3);function WX($){if($===0)return!1;return{level:$,hasBasic:!0,has256:$>=2,has16m:$>=3}}function HX($,X){if(r5===0)return 0;if(y1("color=16m")||y1("color=full")||y1("color=truecolor"))return 3;if(y1("color=256"))return 2;if($&&!X&&r5===void 0)return 0;let G=r5||0;if(r0.TERM==="dumb")return G;if(process.platform==="win32"){let Y=eD.release().split(".");if(Number(Y[0])>=10&&Number(Y[2])>=10586)return Number(Y[2])>=14931?3:2;return 1}if("CI"in r0){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((Y)=>(Y in r0))||r0.CI_NAME==="codeship")return 1;return G}if("TEAMCITY_VERSION"in r0)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r0.TEAMCITY_VERSION)?1:0;if(r0.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in r0){let Y=parseInt((r0.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r0.TERM_PROGRAM){case"iTerm.app":return Y>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(r0.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r0.TERM))return 1;if("COLORTERM"in r0)return 1;return G}function $P($){let X=HX($,$&&$.isTTY);return WX(X)}iU.exports={supportsColor:$P,stdout:WX(HX(!0,rU.isatty(1))),stderr:WX(HX(!0,rU.isatty(2)))}});var tU=d((sU,D9)=>{var XP=N5("tty"),z9=N5("util");sU.init=KP;sU.log=WP;sU.formatArgs=YP;sU.save=HP;sU.load=UP;sU.useColors=GP;sU.destroy=z9.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");sU.colors=[6,2,3,4,5,1];try{let $=nU();if($&&($.stderr||$).level>=2)sU.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($){}sU.inspectOpts=Object.keys(process.env).filter(($)=>{return/^debug_/i.test($)}).reduce(($,X)=>{let G=X.substring(6).toLowerCase().replace(/_([a-z])/g,(J,W)=>{return W.toUpperCase()}),Y=process.env[X];if(/^(yes|on|true|enabled)$/i.test(Y))Y=!0;else if(/^(no|off|false|disabled)$/i.test(Y))Y=!1;else if(Y==="null")Y=null;else Y=Number(Y);return $[G]=Y,$},{});function GP(){return"colors"in sU.inspectOpts?Boolean(sU.inspectOpts.colors):XP.isatty(process.stderr.fd)}function YP($){let{namespace:X,useColors:G}=this;if(G){let Y=this.color,J="\x1B[3"+(Y<8?Y:"8;5;"+Y),W=` ${J};1m${X} \x1B[0m`;$[0]=W+$[0].split(`
101
101
  `).join(`
102
- `+W),$.push(J+"m+"+N9.exports.humanize(this.diff)+"\x1B[0m")}else $[0]=GP()+X+" "+$[0]}function GP(){if(aU.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function YP(...$){return process.stderr.write(B9.formatWithOptions(aU.inspectOpts,...$)+`
103
- `)}function JP($){if($)process.env.DEBUG=$;else delete process.env.DEBUG}function WP(){return process.env.DEBUG}function HP($){$.inspectOpts={};let X=Object.keys(aU.inspectOpts);for(let G=0;G<X.length;G++)$.inspectOpts[X[G]]=aU.inspectOpts[X[G]]}N9.exports=$X()(aU);var{formatters:sU}=N9.exports;sU.o=function($){return this.inspectOpts.colors=this.useColors,B9.inspect($,this.inspectOpts).split(`
104
- `).map((X)=>X.trim()).join(" ")};sU.O=function($){return this.inspectOpts.colors=this.useColors,B9.inspect($,this.inspectOpts)}});var $K=d((ah,YX)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)YX.exports=lU();else YX.exports=eU()});function GK($,X,G){let Y={_bufferIndex:-1,_index:0,line:G&&G.line||1,column:G&&G.column||1,offset:G&&G.offset||0},J={},W=[],H=[],U=[],F=!0,M={attempt:M0(q0),check:M0(C0),consume:X0,enter:Z0,exit:E,interrupt:M0(C0,{interrupt:!0})},Q={code:R.eof,containerState:{},defineSkip:P,events:[],now:D,parser:$,previous:R.eof,sliceSerialize:_,sliceStream:z,write:A},q=X.tokenize.call(Q,M),Z;if(X.resolveAll)W.push(X);return Q;function A(f){if(H=R1(H,f),b(),H[H.length-1]!==R.eof)return[];return B0(X,0),Q.events=D6(W,Q.events,Q),Q.events}function _(f,r){return ZP(z(f),r)}function z(f){return RP(H,f)}function D(){let{_bufferIndex:f,_index:r,line:a,column:P0,offset:k0}=Y;return{_bufferIndex:f,_index:r,line:a,column:P0,offset:k0}}function P(f){J[f.line]=f.column,u(),f2("position: define skip: `%j`",Y)}function b(){let f;while(Y._index<H.length){let r=H[Y._index];if(typeof r==="string"){if(f=Y._index,Y._bufferIndex<0)Y._bufferIndex=0;while(Y._index===f&&Y._bufferIndex<r.length)y(r.charCodeAt(Y._bufferIndex))}else y(r)}}function y(f){B(F===!0,"expected character to be consumed"),F=void 0,f2("main: passing `%s` to %s",f,q&&q.name),Z=f,B(typeof q==="function","expected state"),q=q(f)}function X0(f){if(B(f===Z,"expected given code to equal expected code"),f2("consume: `%s`",f),B(F===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),B(f===null?Q.events.length===0||Q.events[Q.events.length-1][0]==="exit":Q.events[Q.events.length-1][0]==="enter","expected last token to be open"),x(f))Y.line++,Y.column=1,Y.offset+=f===R.carriageReturnLineFeed?2:1,u(),f2("position: after eol: `%j`",Y);else if(f!==R.virtualSpace)Y.column++,Y.offset++;if(Y._bufferIndex<0)Y._index++;else if(Y._bufferIndex++,Y._bufferIndex===H[Y._index].length)Y._bufferIndex=-1,Y._index++;Q.previous=f,F=!0}function Z0(f,r){let a=r||{};return a.type=f,a.start=D(),B(typeof f==="string","expected string type"),B(f.length>0,"expected non-empty string"),f2("enter: `%s`",f),Q.events.push(["enter",a,Q]),U.push(a),a}function E(f){B(typeof f==="string","expected string type"),B(f.length>0,"expected non-empty string");let r=U.pop();return B(r,"cannot close w/o open tokens"),r.end=D(),B(f===r.type,"expected exit token to match current token"),B(!(r.start._index===r.end._index&&r.start._bufferIndex===r.end._bufferIndex),"expected non-empty token (`"+f+"`)"),f2("exit: `%s`",r.type),Q.events.push(["exit",r,Q]),r}function q0(f,r){B0(f,r.from)}function C0(f,r){r.restore()}function M0(f,r){return a;function a(P0,k0,G1){let Y1,N,v0,Z5;return Array.isArray(P0)?T1(P0):("tokenize"in P0)?T1([P0]):w(P0);function w(p0){return J4;function J4(A5){let V2=A5!==null&&p0[A5],o2=A5!==null&&p0.null,r$=[...Array.isArray(V2)?V2:V2?[V2]:[],...Array.isArray(o2)?o2:o2?[o2]:[]];return T1(r$)(A5)}}function T1(p0){if(Y1=p0,N=0,p0.length===0)return B(G1,"expected `bogusState` to be given"),G1;return A2(p0[N])}function A2(p0){return J4;function J4(A5){if(Z5=X1(),v0=p0,!p0.partial)Q.currentConstruct=p0;if(B(Q.parser.constructs.disable.null,"expected `disable.null` to be populated"),p0.name&&Q.parser.constructs.disable.null.includes(p0.name))return I8(A5);return p0.tokenize.call(r?Object.assign(Object.create(Q),r):Q,M,c$,I8)(A5)}}function c$(p0){return B(p0===Z,"expected code"),F=!0,f(v0,Z5),k0}function I8(p0){if(B(p0===Z,"expected code"),F=!0,Z5.restore(),++N<Y1.length)return A2(Y1[N]);return G1}}}function B0(f,r){if(f.resolveAll&&!W.includes(f))W.push(f);if(f.resolve)t0(Q.events,r,Q.events.length-r,f.resolve(Q.events.slice(r),Q));if(f.resolveTo)Q.events=f.resolveTo(Q.events,Q);B(f.partial||Q.events.length===0||Q.events[Q.events.length-1][0]==="exit","expected last token to end")}function X1(){let f=D(),r=Q.previous,a=Q.currentConstruct,P0=Q.events.length,k0=Array.from(U);return{from:P0,restore:G1};function G1(){Y=f,Q.previous=r,Q.currentConstruct=a,Q.events.length=P0,U=k0,u(),f2("position: restore: `%j`",Y)}}function u(){if(Y.line in J&&Y.column<2)Y.column=J[Y.line],Y.offset+=J[Y.line]-1}}function RP($,X){let G=X.start._index,Y=X.start._bufferIndex,J=X.end._index,W=X.end._bufferIndex,H;if(G===J)B(W>-1,"expected non-negative end buffer index"),B(Y>-1,"expected non-negative start buffer index"),H=[$[G].slice(Y,W)];else{if(H=$.slice(G,J),Y>-1){let U=H[0];if(typeof U==="string")H[0]=U.slice(Y);else B(Y===0,"expected `startBufferIndex` to be `0`"),H.shift()}if(W>0)H.push($[J].slice(0,W))}return H}function ZP($,X){let G=-1,Y=[],J;while(++G<$.length){let W=$[G],H;if(typeof W==="string")H=W;else switch(W){case R.carriageReturn:{H=j1.cr;break}case R.lineFeed:{H=j1.lf;break}case R.carriageReturnLineFeed:{H=j1.cr+j1.lf;break}case R.horizontalTab:{H=X?j1.space:j1.ht;break}case R.virtualSpace:{if(!X&&J)continue;H=j1.space;break}default:B(typeof W==="number","expected number"),H=String.fromCharCode(W)}J=W===R.horizontalTab,Y.push(H)}return Y.join("")}var XK,f2;var YK=V(()=>{O0();A0();l5();t();XK=j8($K(),1),f2=XK.default("micromark")});function JX($){let Y={constructs:oH([e7,...($||{}).extensions||[]]),content:J(GU),defined:[],document:J(WU),flow:J(kU),lazy:{},string:J(bU),text:J(hU)};return Y;function J(W){return H;function H(U){return GK(Y,W,U)}}}var JK=V(()=>{sH();YU();HU();vU();t7();gU();YK()});function WX($){while(!M9($));return $}var WK=V(()=>{h7()});function HX(){let $=1,X="",G=!0,Y;return J;function J(W,H,U){let F=[],M,Q,q,Z,A;if(W=X+(typeof W==="string"?W.toString():new TextDecoder(H||void 0).decode(W)),q=0,X="",G){if(W.charCodeAt(0)===R.byteOrderMarker)q++;G=void 0}while(q<W.length){if(HK.lastIndex=q,M=HK.exec(W),Z=M&&M.index!==void 0?M.index:W.length,A=W.charCodeAt(Z),!M){X=W.slice(q);break}if(A===R.lf&&q===Z&&Y)F.push(R.carriageReturnLineFeed),Y=void 0;else{if(Y)F.push(R.carriageReturn),Y=void 0;if(q<Z)F.push(W.slice(q,Z)),$+=Z-q;switch(A){case R.nul:{F.push(R.replacementCharacter),$++;break}case R.ht:{Q=Math.ceil($/S.tabSize)*S.tabSize,F.push(R.horizontalTab);while($++<Q)F.push(R.virtualSpace);break}case R.lf:{F.push(R.lineFeed),$=1;break}default:Y=!0,$=1}}q=Z+1}if(U){if(Y)F.push(R.carriageReturn);if(X)F.push(X);F.push(R.eof)}return F}}var HK;var UK=V(()=>{t();HK=/[\0\t\n\r]/g});var KK=V(()=>{JK();WK();UK()});function w9($){return $.replace(AP,VP)}function VP($,X,G){if(X)return X;if(G.charCodeAt(0)===R.numberSign){let J=G.charCodeAt(1),W=J===R.lowercaseX||J===R.uppercaseX;return Y9(G.slice(W?2:1),W?S.numericBaseHexadecimal:S.numericBaseDecimal)}return _6(G)||$}var AP;var UX=V(()=>{G9();S7();t();AP=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi});function n5($){if(!$||typeof $!=="object")return"";if("position"in $||"type"in $)return FK($.position);if("start"in $||"end"in $)return FK($);if("line"in $||"column"in $)return KX($);return""}function KX($){return MK($&&$.line)+":"+MK($&&$.column)}function FK($){return KX($&&$.start)+"-"+KX($&&$.end)}function MK($){return $&&typeof $==="number"?$:1}var FX=()=>{};function MX($,X,G){if(X&&typeof X==="object")G=X,X=void 0;return BP(G)(WX(JX(G).document().write(HX()($,X,!0))))}function BP($){let X={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:W(uY),autolinkProtocol:M0,autolinkEmail:M0,atxHeading:W(gY),blockQuote:W(A5),characterEscape:M0,characterReference:M0,codeFenced:W(V2),codeFencedFenceInfo:H,codeFencedFenceMeta:H,codeIndented:W(V2,H),codeText:W(o2,H),codeTextData:M0,data:M0,codeFlowValue:M0,definition:W(r$),definitionDestinationString:H,definitionLabelString:H,definitionTitleString:H,emphasis:W(eZ),hardBreakEscape:W(mY),hardBreakTrailing:W(mY),htmlFlow:W(pY,H),htmlFlowData:M0,htmlText:W(pY,H),htmlTextData:M0,image:W($A),label:H,link:W(uY),listItem:W(XA),listItemValue:Z,listOrdered:W(dY,q),listUnordered:W(dY),paragraph:W(GA),reference:w,referenceString:H,resourceDestinationString:H,resourceTitleString:H,setextHeading:W(gY),strong:W(YA),thematicBreak:W(WA)},exit:{atxHeading:F(),atxHeadingSequence:Z0,autolink:F(),autolinkEmail:J4,autolinkProtocol:p0,blockQuote:F(),characterEscapeValue:B0,characterReferenceMarkerHexadecimal:A2,characterReferenceMarkerNumeric:A2,characterReferenceValue:c$,characterReference:I8,codeFenced:F(D),codeFencedFence:z,codeFencedFenceInfo:A,codeFencedFenceMeta:_,codeFlowValue:B0,codeIndented:F(P),codeText:F(a),codeTextData:B0,data:B0,definition:F(),definitionDestinationString:X0,definitionLabelString:b,definitionTitleString:y,emphasis:F(),hardBreakEscape:F(u),hardBreakTrailing:F(u),htmlFlow:F(f),htmlFlowData:B0,htmlText:F(r),htmlTextData:B0,image:F(k0),label:Y1,labelText:G1,lineEnding:X1,link:F(P0),listItem:F(),listOrdered:F(),listUnordered:F(),paragraph:F(),referenceString:T1,resourceDestinationString:N,resourceTitleString:v0,resource:Z5,setextHeading:F(C0),setextHeadingLineSequence:q0,setextHeadingText:E,strong:F(),thematicBreak:F()}};OK(X,($||{}).mdastExtensions||[]);let G={};return Y;function Y(L){let C={type:"root",children:[]},g={stack:[C],tokenStack:[],config:X,enter:U,exit:M,buffer:H,resume:Q,data:G},K0=[],N0=-1;while(++N0<L.length)if(L[N0][1].type===O.listOrdered||L[N0][1].type===O.listUnordered)if(L[N0][0]==="enter")K0.push(N0);else{let w1=K0.pop();B(typeof w1==="number","expected list to be open"),N0=J(L,w1,N0)}N0=-1;while(++N0<L.length){let w1=X[L[N0][0]];if(qK.call(w1,L[N0][1].type))w1[L[N0][1].type].call(Object.assign({sliceSerialize:L[N0][2].sliceSerialize},g),L[N0][1])}if(g.tokenStack.length>0){let w1=g.tokenStack[g.tokenStack.length-1];(w1[1]||QK).call(g,void 0,w1[0])}C.position={start:o5(L.length>0?L[0][1].start:{line:1,column:1,offset:0}),end:o5(L.length>0?L[L.length-2][1].end:{line:1,column:1,offset:0})},N0=-1;while(++N0<X.transforms.length)C=X.transforms[N0](C)||C;return C}function J(L,C,g){let K0=C-1,N0=-1,w1=!1,B2,V5,W4,H4;while(++K0<=g){let E1=L[K0];switch(E1[1].type){case O.listUnordered:case O.listOrdered:case O.blockQuote:{if(E1[0]==="enter")N0++;else N0--;H4=void 0;break}case O.lineEndingBlank:{if(E1[0]==="enter"){if(B2&&!H4&&!N0&&!W4)W4=K0;H4=void 0}break}case O.linePrefix:case O.listItemValue:case O.listItemMarker:case O.listItemPrefix:case O.listItemPrefixWhitespace:break;default:H4=void 0}if(!N0&&E1[0]==="enter"&&E1[1].type===O.listItemPrefix||N0===-1&&E1[0]==="exit"&&(E1[1].type===O.listUnordered||E1[1].type===O.listOrdered)){if(B2){let s2=K0;V5=void 0;while(s2--){let B5=L[s2];if(B5[1].type===O.lineEnding||B5[1].type===O.lineEndingBlank){if(B5[0]==="exit")continue;if(V5)L[V5][1].type=O.lineEndingBlank,w1=!0;B5[1].type=O.lineEnding,V5=s2}else if(B5[1].type===O.linePrefix||B5[1].type===O.blockQuotePrefix||B5[1].type===O.blockQuotePrefixWhitespace||B5[1].type===O.blockQuoteMarker||B5[1].type===O.listItemIndent);else break}if(W4&&(!V5||W4<V5))B2._spread=!0;B2.end=Object.assign({},V5?L[V5][1].start:E1[1].end),L.splice(V5||K0,0,["exit",B2,E1[2]]),K0++,g++}if(E1[1].type===O.listItemPrefix){let s2={type:"listItem",_spread:!1,start:Object.assign({},E1[1].start),end:void 0};B2=s2,L.splice(K0,0,["enter",s2,E1[2]]),K0++,g++,W4=void 0,H4=!0}}}return L[C][1]._spread=w1,g}function W(L,C){return g;function g(K0){if(U.call(this,L(K0),K0),C)C.call(this,K0)}}function H(){this.stack.push({type:"fragment",children:[]})}function U(L,C,g){let K0=this.stack[this.stack.length-1];B(K0,"expected `parent`"),B("children"in K0,"expected `parent`"),K0.children.push(L),this.stack.push(L),this.tokenStack.push([C,g||void 0]),L.position={start:o5(C.start),end:void 0}}function F(L){return C;function C(g){if(L)L.call(this,g);M.call(this,g)}}function M(L,C){let g=this.stack.pop();B(g,"expected `node`");let K0=this.tokenStack.pop();if(!K0)throw Error("Cannot close `"+L.type+"` ("+n5({start:L.start,end:L.end})+"): it\u2019s not open");else if(K0[0].type!==L.type)if(C)C.call(this,L,K0[0]);else(K0[1]||QK).call(this,L,K0[0]);B(g.type!=="fragment","unexpected fragment `exit`ed"),B(g.position,"expected `position` to be defined"),g.position.end=o5(L.end)}function Q(){return k2(this.stack.pop())}function q(){this.data.expectingFirstListItemValue=!0}function Z(L){if(this.data.expectingFirstListItemValue){let C=this.stack[this.stack.length-2];B(C,"expected nodes on stack"),B(C.type==="list","expected list on stack"),C.start=Number.parseInt(this.sliceSerialize(L),S.numericBaseDecimal),this.data.expectingFirstListItemValue=void 0}}function A(){let L=this.resume(),C=this.stack[this.stack.length-1];B(C,"expected node on stack"),B(C.type==="code","expected code on stack"),C.lang=L}function _(){let L=this.resume(),C=this.stack[this.stack.length-1];B(C,"expected node on stack"),B(C.type==="code","expected code on stack"),C.meta=L}function z(){if(this.data.flowCodeInside)return;this.buffer(),this.data.flowCodeInside=!0}function D(){let L=this.resume(),C=this.stack[this.stack.length-1];B(C,"expected node on stack"),B(C.type==="code","expected code on stack"),C.value=L.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function P(){let L=this.resume(),C=this.stack[this.stack.length-1];B(C,"expected node on stack"),B(C.type==="code","expected code on stack"),C.value=L.replace(/(\r?\n|\r)$/g,"")}function b(L){let C=this.resume(),g=this.stack[this.stack.length-1];B(g,"expected node on stack"),B(g.type==="definition","expected definition on stack"),g.label=C,g.identifier=P5(this.sliceSerialize(L)).toLowerCase()}function y(){let L=this.resume(),C=this.stack[this.stack.length-1];B(C,"expected node on stack"),B(C.type==="definition","expected definition on stack"),C.title=L}function X0(){let L=this.resume(),C=this.stack[this.stack.length-1];B(C,"expected node on stack"),B(C.type==="definition","expected definition on stack"),C.url=L}function Z0(L){let C=this.stack[this.stack.length-1];if(B(C,"expected node on stack"),B(C.type==="heading","expected heading on stack"),!C.depth){let g=this.sliceSerialize(L).length;B(g===1||g===2||g===3||g===4||g===5||g===6,"expected `depth` between `1` and `6`"),C.depth=g}}function E(){this.data.setextHeadingSlurpLineEnding=!0}function q0(L){let C=this.stack[this.stack.length-1];B(C,"expected node on stack"),B(C.type==="heading","expected heading on stack"),C.depth=this.sliceSerialize(L).codePointAt(0)===R.equalsTo?1:2}function C0(){this.data.setextHeadingSlurpLineEnding=void 0}function M0(L){let C=this.stack[this.stack.length-1];B(C,"expected node on stack"),B("children"in C,"expected parent on stack");let g=C.children,K0=g[g.length-1];if(!K0||K0.type!=="text")K0=JA(),K0.position={start:o5(L.start),end:void 0},g.push(K0);this.stack.push(K0)}function B0(L){let C=this.stack.pop();B(C,"expected a `node` to be on the stack"),B("value"in C,"expected a `literal` to be on the stack"),B(C.position,"expected `node` to have an open position"),C.value+=this.sliceSerialize(L),C.position.end=o5(L.end)}function X1(L){let C=this.stack[this.stack.length-1];if(B(C,"expected `node`"),this.data.atHardBreak){B("children"in C,"expected `parent`");let g=C.children[C.children.length-1];B(g.position,"expected tail to have a starting position"),g.position.end=o5(L.end),this.data.atHardBreak=void 0;return}if(!this.data.setextHeadingSlurpLineEnding&&X.canContainEols.includes(C.type))M0.call(this,L),B0.call(this,L)}function u(){this.data.atHardBreak=!0}function f(){let L=this.resume(),C=this.stack[this.stack.length-1];B(C,"expected node on stack"),B(C.type==="html","expected html on stack"),C.value=L}function r(){let L=this.resume(),C=this.stack[this.stack.length-1];B(C,"expected node on stack"),B(C.type==="html","expected html on stack"),C.value=L}function a(){let L=this.resume(),C=this.stack[this.stack.length-1];B(C,"expected node on stack"),B(C.type==="inlineCode","expected inline code on stack"),C.value=L}function P0(){let L=this.stack[this.stack.length-1];if(B(L,"expected node on stack"),B(L.type==="link","expected link on stack"),this.data.inReference){let C=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=C,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function k0(){let L=this.stack[this.stack.length-1];if(B(L,"expected node on stack"),B(L.type==="image","expected image on stack"),this.data.inReference){let C=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=C,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function G1(L){let C=this.sliceSerialize(L),g=this.stack[this.stack.length-2];B(g,"expected ancestor on stack"),B(g.type==="image"||g.type==="link","expected image or link on stack"),g.label=w9(C),g.identifier=P5(C).toLowerCase()}function Y1(){let L=this.stack[this.stack.length-1];B(L,"expected node on stack"),B(L.type==="fragment","expected fragment on stack");let C=this.resume(),g=this.stack[this.stack.length-1];if(B(g,"expected node on stack"),B(g.type==="image"||g.type==="link","expected image or link on stack"),this.data.inReference=!0,g.type==="link"){let K0=L.children;g.children=K0}else g.alt=C}function N(){let L=this.resume(),C=this.stack[this.stack.length-1];B(C,"expected node on stack"),B(C.type==="image"||C.type==="link","expected image or link on stack"),C.url=L}function v0(){let L=this.resume(),C=this.stack[this.stack.length-1];B(C,"expected node on stack"),B(C.type==="image"||C.type==="link","expected image or link on stack"),C.title=L}function Z5(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function T1(L){let C=this.resume(),g=this.stack[this.stack.length-1];B(g,"expected node on stack"),B(g.type==="image"||g.type==="link","expected image reference or link reference on stack"),g.label=C,g.identifier=P5(this.sliceSerialize(L)).toLowerCase(),this.data.referenceType="full"}function A2(L){B(L.type==="characterReferenceMarkerNumeric"||L.type==="characterReferenceMarkerHexadecimal"),this.data.characterReferenceType=L.type}function c$(L){let C=this.sliceSerialize(L),g=this.data.characterReferenceType,K0;if(g)K0=Y9(C,g===O.characterReferenceMarkerNumeric?S.numericBaseDecimal:S.numericBaseHexadecimal),this.data.characterReferenceType=void 0;else{let w1=_6(C);B(w1!==!1,"expected reference to decode"),K0=w1}let N0=this.stack[this.stack.length-1];B(N0,"expected `node`"),B("value"in N0,"expected `node.value`"),N0.value+=K0}function I8(L){let C=this.stack.pop();B(C,"expected `node`"),B(C.position,"expected `node.position`"),C.position.end=o5(L.end)}function p0(L){B0.call(this,L);let C=this.stack[this.stack.length-1];B(C,"expected node on stack"),B(C.type==="link","expected link on stack"),C.url=this.sliceSerialize(L)}function J4(L){B0.call(this,L);let C=this.stack[this.stack.length-1];B(C,"expected node on stack"),B(C.type==="link","expected link on stack"),C.url="mailto:"+this.sliceSerialize(L)}function A5(){return{type:"blockquote",children:[]}}function V2(){return{type:"code",lang:null,meta:null,value:""}}function o2(){return{type:"inlineCode",value:""}}function r$(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function eZ(){return{type:"emphasis",children:[]}}function gY(){return{type:"heading",depth:0,children:[]}}function mY(){return{type:"break"}}function pY(){return{type:"html",value:""}}function $A(){return{type:"image",title:null,url:"",alt:null}}function uY(){return{type:"link",title:null,url:"",children:[]}}function dY(L){return{type:"list",ordered:L.type==="listOrdered",start:null,spread:L._spread,children:[]}}function XA(L){return{type:"listItem",spread:L._spread,checked:null,children:[]}}function GA(){return{type:"paragraph",children:[]}}function YA(){return{type:"strong",children:[]}}function JA(){return{type:"text",value:""}}function WA(){return{type:"thematicBreak"}}}function o5($){return{line:$.line,column:$.column,offset:$.offset}}function OK($,X){let G=-1;while(++G<X.length){let Y=X[G];if(Array.isArray(Y))OK($,Y);else NP($,Y)}}function NP($,X){let G;for(G in X)if(qK.call(X,G))switch(G){case"canContainEols":{let Y=X[G];if(Y)$[G].push(...Y);break}case"transforms":{let Y=X[G];if(Y)$[G].push(...Y);break}case"enter":case"exit":{let Y=X[G];if(Y)Object.assign($[G],Y);break}}}function QK($,X){if($)throw Error("Cannot close `"+$.type+"` ("+n5({start:$.start,end:$.end})+"): a different token (`"+X.type+"`, "+n5({start:X.start,end:X.end})+") is open");else throw Error("Cannot close document, a token (`"+X.type+"`, "+n5({start:X.start,end:X.end})+") is still open")}var qK;var RK=V(()=>{O0();X9();KK();S7();UX();J9();t();G9();FX();qK={}.hasOwnProperty});var ZK=V(()=>{RK()});function _9($){let X=this;X.parser=G;function G(Y){return MX(Y,{...X.data("settings"),...$,extensions:X.data("micromarkExtensions")||[],mdastExtensions:X.data("fromMarkdownExtensions")||[]})}}var AK=V(()=>{ZK()});var VK=V(()=>{AK()});function NK($,X){let G=X||{};function Y(J,...W){let{invalid:H,handlers:U}=Y;if(J&&BK.call(J,$)){let F=String(J[$]);H=BK.call(U,F)?U[F]:Y.unknown}if(H)return H.call(this,J,...W)}return Y.handlers=G.handlers||{},Y.invalid=G.invalid,Y.unknown=G.unknown,Y}var BK;var wK=V(()=>{BK={}.hasOwnProperty});function QX($,X){let G=-1,Y;if(X.extensions)while(++G<X.extensions.length)QX($,X.extensions[G]);for(Y in X)if(wP.call(X,Y))switch(Y){case"extensions":break;case"unsafe":{_K($[Y],X[Y]);break}case"join":{_K($[Y],X[Y]);break}case"handlers":{_P($[Y],X[Y]);break}default:$.options[Y]=X[Y]}return $}function _K($,X){if(X)$.push(...X)}function _P($,X){if(X)Object.assign($,X)}var wP;var zK=V(()=>{wP={}.hasOwnProperty});function DK($,X,G,Y){let J=G.enter("blockquote"),W=G.createTracker(Y);W.move("> "),W.shift(2);let H=G.indentLines(G.containerFlow($,W.current()),zP);return J(),H}function zP($,X,G){return">"+(G?"":" ")+$}function z9($,X){return PK($,X.inConstruct,!0)&&!PK($,X.notInConstruct,!1)}function PK($,X,G){if(typeof X==="string")X=[X];if(!X||X.length===0)return G;let Y=-1;while(++Y<X.length)if($.includes(X[Y]))return!0;return!1}function qX($,X,G,Y){let J=-1;while(++J<G.unsafe.length)if(G.unsafe[J].character===`
105
- `&&z9(G.stack,G.unsafe[J]))return/[ \t]/.test(Y.before)?"":" ";return"\\\n"}var LK=()=>{};function CK($,X){let G=String($),Y=G.indexOf(X),J=Y,W=0,H=0;if(typeof X!=="string")throw TypeError("Expected substring");while(Y!==-1){if(Y===J){if(++W>H)H=W}else W=1;J=Y+X.length,Y=G.indexOf(X,J)}return H}function f4($,X){return Boolean(X.options.fences===!1&&$.value&&!$.lang&&/[^ \r\n]/.test($.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test($.value))}function TK($){let X=$.options.fence||"`";if(X!=="`"&&X!=="~")throw Error("Cannot serialize code with `"+X+"` for `options.fence`, expected `` ` `` or `~`");return X}function EK($,X,G,Y){let J=TK(G),W=$.value||"",H=J==="`"?"GraveAccent":"Tilde";if(f4($,G)){let q=G.enter("codeIndented"),Z=G.indentLines(W,DP);return q(),Z}let U=G.createTracker(Y),F=J.repeat(Math.max(CK(W,J)+1,3)),M=G.enter("codeFenced"),Q=U.move(F);if($.lang){let q=G.enter(`codeFencedLang${H}`);Q+=U.move(G.safe($.lang,{before:Q,after:" ",encode:["`"],...U.current()})),q()}if($.lang&&$.meta){let q=G.enter(`codeFencedMeta${H}`);Q+=U.move(" "),Q+=U.move(G.safe($.meta,{before:Q,after:`
102
+ `+W),$.push(J+"m+"+D9.exports.humanize(this.diff)+"\x1B[0m")}else $[0]=JP()+X+" "+$[0]}function JP(){if(sU.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function WP(...$){return process.stderr.write(z9.formatWithOptions(sU.inspectOpts,...$)+`
103
+ `)}function HP($){if($)process.env.DEBUG=$;else delete process.env.DEBUG}function UP(){return process.env.DEBUG}function KP($){$.inspectOpts={};let X=Object.keys(sU.inspectOpts);for(let G=0;G<X.length;G++)$.inspectOpts[X[G]]=sU.inspectOpts[X[G]]}D9.exports=JX()(sU);var{formatters:oU}=D9.exports;oU.o=function($){return this.inspectOpts.colors=this.useColors,z9.inspect($,this.inspectOpts).split(`
104
+ `).map((X)=>X.trim()).join(" ")};oU.O=function($){return this.inspectOpts.colors=this.useColors,z9.inspect($,this.inspectOpts)}});var eU=d((Ry,UX)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)UX.exports=dU();else UX.exports=tU()});function XK($,X,G){let Y={_bufferIndex:-1,_index:0,line:G&&G.line||1,column:G&&G.column||1,offset:G&&G.offset||0},J={},W=[],H=[],U=[],F=!0,M={attempt:M0(q0),check:M0(T0),consume:$0,enter:R0,exit:E,interrupt:M0(T0,{interrupt:!0})},Q={code:R.eof,containerState:{},defineSkip:P,events:[],now:D,parser:$,previous:R.eof,sliceSerialize:_,sliceStream:z,write:Z},q=X.tokenize.call(Q,M),A;if(X.resolveAll)W.push(X);return Q;function Z(f){if(H=Z1(H,f),b(),H[H.length-1]!==R.eof)return[];return V0(X,0),Q.events=z6(W,Q.events,Q),Q.events}function _(f,r){return BP(z(f),r)}function z(f){return AP(H,f)}function D(){let{_bufferIndex:f,_index:r,line:s,column:P0,offset:v0}=Y;return{_bufferIndex:f,_index:r,line:s,column:P0,offset:v0}}function P(f){J[f.line]=f.column,u(),y2("position: define skip: `%j`",Y)}function b(){let f;while(Y._index<H.length){let r=H[Y._index];if(typeof r==="string"){if(f=Y._index,Y._bufferIndex<0)Y._bufferIndex=0;while(Y._index===f&&Y._bufferIndex<r.length)y(r.charCodeAt(Y._bufferIndex))}else y(r)}}function y(f){V(F===!0,"expected character to be consumed"),F=void 0,y2("main: passing `%s` to %s",f,q&&q.name),A=f,V(typeof q==="function","expected state"),q=q(f)}function $0(f){if(V(f===A,"expected given code to equal expected code"),y2("consume: `%s`",f),V(F===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),V(f===null?Q.events.length===0||Q.events[Q.events.length-1][0]==="exit":Q.events[Q.events.length-1][0]==="enter","expected last token to be open"),x(f))Y.line++,Y.column=1,Y.offset+=f===R.carriageReturnLineFeed?2:1,u(),y2("position: after eol: `%j`",Y);else if(f!==R.virtualSpace)Y.column++,Y.offset++;if(Y._bufferIndex<0)Y._index++;else if(Y._bufferIndex++,Y._bufferIndex===H[Y._index].length)Y._bufferIndex=-1,Y._index++;Q.previous=f,F=!0}function R0(f,r){let s=r||{};return s.type=f,s.start=D(),V(typeof f==="string","expected string type"),V(f.length>0,"expected non-empty string"),y2("enter: `%s`",f),Q.events.push(["enter",s,Q]),U.push(s),s}function E(f){V(typeof f==="string","expected string type"),V(f.length>0,"expected non-empty string");let r=U.pop();return V(r,"cannot close w/o open tokens"),r.end=D(),V(f===r.type,"expected exit token to match current token"),V(!(r.start._index===r.end._index&&r.start._bufferIndex===r.end._bufferIndex),"expected non-empty token (`"+f+"`)"),y2("exit: `%s`",r.type),Q.events.push(["exit",r,Q]),r}function q0(f,r){V0(f,r.from)}function T0(f,r){r.restore()}function M0(f,r){return s;function s(P0,v0,Y1){let J1,N,x0,R5;return Array.isArray(P0)?T1(P0):("tokenize"in P0)?T1([P0]):w(P0);function w(u0){return W4;function W4(A5){let A2=A5!==null&&u0[A5],n2=A5!==null&&u0.null,s$=[...Array.isArray(A2)?A2:A2?[A2]:[],...Array.isArray(n2)?n2:n2?[n2]:[]];return T1(s$)(A5)}}function T1(u0){if(J1=u0,N=0,u0.length===0)return V(Y1,"expected `bogusState` to be given"),Y1;return R2(u0[N])}function R2(u0){return W4;function W4(A5){if(R5=G1(),x0=u0,!u0.partial)Q.currentConstruct=u0;if(V(Q.parser.constructs.disable.null,"expected `disable.null` to be populated"),u0.name&&Q.parser.constructs.disable.null.includes(u0.name))return v8(A5);return u0.tokenize.call(r?Object.assign(Object.create(Q),r):Q,M,o$,v8)(A5)}}function o$(u0){return V(u0===A,"expected code"),F=!0,f(x0,R5),v0}function v8(u0){if(V(u0===A,"expected code"),F=!0,R5.restore(),++N<J1.length)return R2(J1[N]);return Y1}}}function V0(f,r){if(f.resolveAll&&!W.includes(f))W.push(f);if(f.resolve)e0(Q.events,r,Q.events.length-r,f.resolve(Q.events.slice(r),Q));if(f.resolveTo)Q.events=f.resolveTo(Q.events,Q);V(f.partial||Q.events.length===0||Q.events[Q.events.length-1][0]==="exit","expected last token to end")}function G1(){let f=D(),r=Q.previous,s=Q.currentConstruct,P0=Q.events.length,v0=Array.from(U);return{from:P0,restore:Y1};function Y1(){Y=f,Q.previous=r,Q.currentConstruct=s,Q.events.length=P0,U=v0,u(),y2("position: restore: `%j`",Y)}}function u(){if(Y.line in J&&Y.column<2)Y.column=J[Y.line],Y.offset+=J[Y.line]-1}}function AP($,X){let G=X.start._index,Y=X.start._bufferIndex,J=X.end._index,W=X.end._bufferIndex,H;if(G===J)V(W>-1,"expected non-negative end buffer index"),V(Y>-1,"expected non-negative start buffer index"),H=[$[G].slice(Y,W)];else{if(H=$.slice(G,J),Y>-1){let U=H[0];if(typeof U==="string")H[0]=U.slice(Y);else V(Y===0,"expected `startBufferIndex` to be `0`"),H.shift()}if(W>0)H.push($[J].slice(0,W))}return H}function BP($,X){let G=-1,Y=[],J;while(++G<$.length){let W=$[G],H;if(typeof W==="string")H=W;else switch(W){case R.carriageReturn:{H=j1.cr;break}case R.lineFeed:{H=j1.lf;break}case R.carriageReturnLineFeed:{H=j1.cr+j1.lf;break}case R.horizontalTab:{H=X?j1.space:j1.ht;break}case R.virtualSpace:{if(!X&&J)continue;H=j1.space;break}default:V(typeof W==="number","expected number"),H=String.fromCharCode(W)}J=W===R.horizontalTab,Y.push(H)}return Y.join("")}var $K,y2;var GK=B(()=>{O0();A0();d5();a();$K=x8(eU(),1),y2=$K.default("micromark")});function KX($){let Y={constructs:nH([YX,...($||{}).extensions||[]]),content:J(XU),defined:[],document:J(JU),flow:J(SU),lazy:{},string:J(xU),text:J(bU)};return Y;function J(W){return H;function H(U){return XK(Y,W,U)}}}var YK=B(()=>{oH();GU();WU();kU();GX();fU();GK()});function FX($){while(!Z9($));return $}var JK=B(()=>{m7()});function MX(){let $=1,X="",G=!0,Y;return J;function J(W,H,U){let F=[],M,Q,q,A,Z;if(W=X+(typeof W==="string"?W.toString():new TextDecoder(H||void 0).decode(W)),q=0,X="",G){if(W.charCodeAt(0)===R.byteOrderMarker)q++;G=void 0}while(q<W.length){if(WK.lastIndex=q,M=WK.exec(W),A=M&&M.index!==void 0?M.index:W.length,Z=W.charCodeAt(A),!M){X=W.slice(q);break}if(Z===R.lf&&q===A&&Y)F.push(R.carriageReturnLineFeed),Y=void 0;else{if(Y)F.push(R.carriageReturn),Y=void 0;if(q<A)F.push(W.slice(q,A)),$+=A-q;switch(Z){case R.nul:{F.push(R.replacementCharacter),$++;break}case R.ht:{Q=Math.ceil($/S.tabSize)*S.tabSize,F.push(R.horizontalTab);while($++<Q)F.push(R.virtualSpace);break}case R.lf:{F.push(R.lineFeed),$=1;break}default:Y=!0,$=1}}q=A+1}if(U){if(Y)F.push(R.carriageReturn);if(X)F.push(X);F.push(R.eof)}return F}}var WK;var HK=B(()=>{a();WK=/[\0\t\n\r]/g});var UK=B(()=>{YK();JK();HK()});function P9($){return $.replace(VP,NP)}function NP($,X,G){if(X)return X;if(G.charCodeAt(0)===R.numberSign){let J=G.charCodeAt(1),W=J===R.lowercaseX||J===R.uppercaseX;return U9(G.slice(W?2:1),W?S.numericBaseHexadecimal:S.numericBaseDecimal)}return w6(G)||$}var VP;var QX=B(()=>{H9();b7();a();VP=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi});function i5($){if(!$||typeof $!=="object")return"";if("position"in $||"type"in $)return KK($.position);if("start"in $||"end"in $)return KK($);if("line"in $||"column"in $)return qX($);return""}function qX($){return FK($&&$.line)+":"+FK($&&$.column)}function KK($){return qX($&&$.start)+"-"+qX($&&$.end)}function FK($){return $&&typeof $==="number"?$:1}var OX=()=>{};function ZX($,X,G){if(X&&typeof X==="object")G=X,X=void 0;return wP(G)(FX(KX(G).document().write(MX()($,X,!0))))}function wP($){let X={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:W(pY),autolinkProtocol:M0,autolinkEmail:M0,atxHeading:W(fY),blockQuote:W(A5),characterEscape:M0,characterReference:M0,codeFenced:W(A2),codeFencedFenceInfo:H,codeFencedFenceMeta:H,codeIndented:W(A2,H),codeText:W(n2,H),codeTextData:M0,data:M0,codeFlowValue:M0,definition:W(s$),definitionDestinationString:H,definitionLabelString:H,definitionTitleString:H,emphasis:W(XA),hardBreakEscape:W(gY),hardBreakTrailing:W(gY),htmlFlow:W(mY,H),htmlFlowData:M0,htmlText:W(mY,H),htmlTextData:M0,image:W(GA),label:H,link:W(pY),listItem:W(YA),listItemValue:A,listOrdered:W(uY,q),listUnordered:W(uY),paragraph:W(JA),reference:w,referenceString:H,resourceDestinationString:H,resourceTitleString:H,setextHeading:W(fY),strong:W(WA),thematicBreak:W(UA)},exit:{atxHeading:F(),atxHeadingSequence:R0,autolink:F(),autolinkEmail:W4,autolinkProtocol:u0,blockQuote:F(),characterEscapeValue:V0,characterReferenceMarkerHexadecimal:R2,characterReferenceMarkerNumeric:R2,characterReferenceValue:o$,characterReference:v8,codeFenced:F(D),codeFencedFence:z,codeFencedFenceInfo:Z,codeFencedFenceMeta:_,codeFlowValue:V0,codeIndented:F(P),codeText:F(s),codeTextData:V0,data:V0,definition:F(),definitionDestinationString:$0,definitionLabelString:b,definitionTitleString:y,emphasis:F(),hardBreakEscape:F(u),hardBreakTrailing:F(u),htmlFlow:F(f),htmlFlowData:V0,htmlText:F(r),htmlTextData:V0,image:F(v0),label:J1,labelText:Y1,lineEnding:G1,link:F(P0),listItem:F(),listOrdered:F(),listUnordered:F(),paragraph:F(),referenceString:T1,resourceDestinationString:N,resourceTitleString:x0,resource:R5,setextHeading:F(T0),setextHeadingLineSequence:q0,setextHeadingText:E,strong:F(),thematicBreak:F()}};qK(X,($||{}).mdastExtensions||[]);let G={};return Y;function Y(L){let C={type:"root",children:[]},g={stack:[C],tokenStack:[],config:X,enter:U,exit:M,buffer:H,resume:Q,data:G},K0=[],N0=-1;while(++N0<L.length)if(L[N0][1].type===O.listOrdered||L[N0][1].type===O.listUnordered)if(L[N0][0]==="enter")K0.push(N0);else{let w1=K0.pop();V(typeof w1==="number","expected list to be open"),N0=J(L,w1,N0)}N0=-1;while(++N0<L.length){let w1=X[L[N0][0]];if(QK.call(w1,L[N0][1].type))w1[L[N0][1].type].call(Object.assign({sliceSerialize:L[N0][2].sliceSerialize},g),L[N0][1])}if(g.tokenStack.length>0){let w1=g.tokenStack[g.tokenStack.length-1];(w1[1]||MK).call(g,void 0,w1[0])}C.position={start:n5(L.length>0?L[0][1].start:{line:1,column:1,offset:0}),end:n5(L.length>0?L[L.length-2][1].end:{line:1,column:1,offset:0})},N0=-1;while(++N0<X.transforms.length)C=X.transforms[N0](C)||C;return C}function J(L,C,g){let K0=C-1,N0=-1,w1=!1,B2,B5,H4,U4;while(++K0<=g){let E1=L[K0];switch(E1[1].type){case O.listUnordered:case O.listOrdered:case O.blockQuote:{if(E1[0]==="enter")N0++;else N0--;U4=void 0;break}case O.lineEndingBlank:{if(E1[0]==="enter"){if(B2&&!U4&&!N0&&!H4)H4=K0;U4=void 0}break}case O.linePrefix:case O.listItemValue:case O.listItemMarker:case O.listItemPrefix:case O.listItemPrefixWhitespace:break;default:U4=void 0}if(!N0&&E1[0]==="enter"&&E1[1].type===O.listItemPrefix||N0===-1&&E1[0]==="exit"&&(E1[1].type===O.listUnordered||E1[1].type===O.listOrdered)){if(B2){let o2=K0;B5=void 0;while(o2--){let V5=L[o2];if(V5[1].type===O.lineEnding||V5[1].type===O.lineEndingBlank){if(V5[0]==="exit")continue;if(B5)L[B5][1].type=O.lineEndingBlank,w1=!0;V5[1].type=O.lineEnding,B5=o2}else if(V5[1].type===O.linePrefix||V5[1].type===O.blockQuotePrefix||V5[1].type===O.blockQuotePrefixWhitespace||V5[1].type===O.blockQuoteMarker||V5[1].type===O.listItemIndent);else break}if(H4&&(!B5||H4<B5))B2._spread=!0;B2.end=Object.assign({},B5?L[B5][1].start:E1[1].end),L.splice(B5||K0,0,["exit",B2,E1[2]]),K0++,g++}if(E1[1].type===O.listItemPrefix){let o2={type:"listItem",_spread:!1,start:Object.assign({},E1[1].start),end:void 0};B2=o2,L.splice(K0,0,["enter",o2,E1[2]]),K0++,g++,H4=void 0,U4=!0}}}return L[C][1]._spread=w1,g}function W(L,C){return g;function g(K0){if(U.call(this,L(K0),K0),C)C.call(this,K0)}}function H(){this.stack.push({type:"fragment",children:[]})}function U(L,C,g){let K0=this.stack[this.stack.length-1];V(K0,"expected `parent`"),V("children"in K0,"expected `parent`"),K0.children.push(L),this.stack.push(L),this.tokenStack.push([C,g||void 0]),L.position={start:n5(C.start),end:void 0}}function F(L){return C;function C(g){if(L)L.call(this,g);M.call(this,g)}}function M(L,C){let g=this.stack.pop();V(g,"expected `node`");let K0=this.tokenStack.pop();if(!K0)throw Error("Cannot close `"+L.type+"` ("+i5({start:L.start,end:L.end})+"): it\u2019s not open");else if(K0[0].type!==L.type)if(C)C.call(this,L,K0[0]);else(K0[1]||MK).call(this,L,K0[0]);V(g.type!=="fragment","unexpected fragment `exit`ed"),V(g.position,"expected `position` to be defined"),g.position.end=n5(L.end)}function Q(){return S2(this.stack.pop())}function q(){this.data.expectingFirstListItemValue=!0}function A(L){if(this.data.expectingFirstListItemValue){let C=this.stack[this.stack.length-2];V(C,"expected nodes on stack"),V(C.type==="list","expected list on stack"),C.start=Number.parseInt(this.sliceSerialize(L),S.numericBaseDecimal),this.data.expectingFirstListItemValue=void 0}}function Z(){let L=this.resume(),C=this.stack[this.stack.length-1];V(C,"expected node on stack"),V(C.type==="code","expected code on stack"),C.lang=L}function _(){let L=this.resume(),C=this.stack[this.stack.length-1];V(C,"expected node on stack"),V(C.type==="code","expected code on stack"),C.meta=L}function z(){if(this.data.flowCodeInside)return;this.buffer(),this.data.flowCodeInside=!0}function D(){let L=this.resume(),C=this.stack[this.stack.length-1];V(C,"expected node on stack"),V(C.type==="code","expected code on stack"),C.value=L.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function P(){let L=this.resume(),C=this.stack[this.stack.length-1];V(C,"expected node on stack"),V(C.type==="code","expected code on stack"),C.value=L.replace(/(\r?\n|\r)$/g,"")}function b(L){let C=this.resume(),g=this.stack[this.stack.length-1];V(g,"expected node on stack"),V(g.type==="definition","expected definition on stack"),g.label=C,g.identifier=P5(this.sliceSerialize(L)).toLowerCase()}function y(){let L=this.resume(),C=this.stack[this.stack.length-1];V(C,"expected node on stack"),V(C.type==="definition","expected definition on stack"),C.title=L}function $0(){let L=this.resume(),C=this.stack[this.stack.length-1];V(C,"expected node on stack"),V(C.type==="definition","expected definition on stack"),C.url=L}function R0(L){let C=this.stack[this.stack.length-1];if(V(C,"expected node on stack"),V(C.type==="heading","expected heading on stack"),!C.depth){let g=this.sliceSerialize(L).length;V(g===1||g===2||g===3||g===4||g===5||g===6,"expected `depth` between `1` and `6`"),C.depth=g}}function E(){this.data.setextHeadingSlurpLineEnding=!0}function q0(L){let C=this.stack[this.stack.length-1];V(C,"expected node on stack"),V(C.type==="heading","expected heading on stack"),C.depth=this.sliceSerialize(L).codePointAt(0)===R.equalsTo?1:2}function T0(){this.data.setextHeadingSlurpLineEnding=void 0}function M0(L){let C=this.stack[this.stack.length-1];V(C,"expected node on stack"),V("children"in C,"expected parent on stack");let g=C.children,K0=g[g.length-1];if(!K0||K0.type!=="text")K0=HA(),K0.position={start:n5(L.start),end:void 0},g.push(K0);this.stack.push(K0)}function V0(L){let C=this.stack.pop();V(C,"expected a `node` to be on the stack"),V("value"in C,"expected a `literal` to be on the stack"),V(C.position,"expected `node` to have an open position"),C.value+=this.sliceSerialize(L),C.position.end=n5(L.end)}function G1(L){let C=this.stack[this.stack.length-1];if(V(C,"expected `node`"),this.data.atHardBreak){V("children"in C,"expected `parent`");let g=C.children[C.children.length-1];V(g.position,"expected tail to have a starting position"),g.position.end=n5(L.end),this.data.atHardBreak=void 0;return}if(!this.data.setextHeadingSlurpLineEnding&&X.canContainEols.includes(C.type))M0.call(this,L),V0.call(this,L)}function u(){this.data.atHardBreak=!0}function f(){let L=this.resume(),C=this.stack[this.stack.length-1];V(C,"expected node on stack"),V(C.type==="html","expected html on stack"),C.value=L}function r(){let L=this.resume(),C=this.stack[this.stack.length-1];V(C,"expected node on stack"),V(C.type==="html","expected html on stack"),C.value=L}function s(){let L=this.resume(),C=this.stack[this.stack.length-1];V(C,"expected node on stack"),V(C.type==="inlineCode","expected inline code on stack"),C.value=L}function P0(){let L=this.stack[this.stack.length-1];if(V(L,"expected node on stack"),V(L.type==="link","expected link on stack"),this.data.inReference){let C=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=C,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function v0(){let L=this.stack[this.stack.length-1];if(V(L,"expected node on stack"),V(L.type==="image","expected image on stack"),this.data.inReference){let C=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=C,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function Y1(L){let C=this.sliceSerialize(L),g=this.stack[this.stack.length-2];V(g,"expected ancestor on stack"),V(g.type==="image"||g.type==="link","expected image or link on stack"),g.label=P9(C),g.identifier=P5(C).toLowerCase()}function J1(){let L=this.stack[this.stack.length-1];V(L,"expected node on stack"),V(L.type==="fragment","expected fragment on stack");let C=this.resume(),g=this.stack[this.stack.length-1];if(V(g,"expected node on stack"),V(g.type==="image"||g.type==="link","expected image or link on stack"),this.data.inReference=!0,g.type==="link"){let K0=L.children;g.children=K0}else g.alt=C}function N(){let L=this.resume(),C=this.stack[this.stack.length-1];V(C,"expected node on stack"),V(C.type==="image"||C.type==="link","expected image or link on stack"),C.url=L}function x0(){let L=this.resume(),C=this.stack[this.stack.length-1];V(C,"expected node on stack"),V(C.type==="image"||C.type==="link","expected image or link on stack"),C.title=L}function R5(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function T1(L){let C=this.resume(),g=this.stack[this.stack.length-1];V(g,"expected node on stack"),V(g.type==="image"||g.type==="link","expected image reference or link reference on stack"),g.label=C,g.identifier=P5(this.sliceSerialize(L)).toLowerCase(),this.data.referenceType="full"}function R2(L){V(L.type==="characterReferenceMarkerNumeric"||L.type==="characterReferenceMarkerHexadecimal"),this.data.characterReferenceType=L.type}function o$(L){let C=this.sliceSerialize(L),g=this.data.characterReferenceType,K0;if(g)K0=U9(C,g===O.characterReferenceMarkerNumeric?S.numericBaseDecimal:S.numericBaseHexadecimal),this.data.characterReferenceType=void 0;else{let w1=w6(C);V(w1!==!1,"expected reference to decode"),K0=w1}let N0=this.stack[this.stack.length-1];V(N0,"expected `node`"),V("value"in N0,"expected `node.value`"),N0.value+=K0}function v8(L){let C=this.stack.pop();V(C,"expected `node`"),V(C.position,"expected `node.position`"),C.position.end=n5(L.end)}function u0(L){V0.call(this,L);let C=this.stack[this.stack.length-1];V(C,"expected node on stack"),V(C.type==="link","expected link on stack"),C.url=this.sliceSerialize(L)}function W4(L){V0.call(this,L);let C=this.stack[this.stack.length-1];V(C,"expected node on stack"),V(C.type==="link","expected link on stack"),C.url="mailto:"+this.sliceSerialize(L)}function A5(){return{type:"blockquote",children:[]}}function A2(){return{type:"code",lang:null,meta:null,value:""}}function n2(){return{type:"inlineCode",value:""}}function s$(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function XA(){return{type:"emphasis",children:[]}}function fY(){return{type:"heading",depth:0,children:[]}}function gY(){return{type:"break"}}function mY(){return{type:"html",value:""}}function GA(){return{type:"image",title:null,url:"",alt:null}}function pY(){return{type:"link",title:null,url:"",children:[]}}function uY(L){return{type:"list",ordered:L.type==="listOrdered",start:null,spread:L._spread,children:[]}}function YA(L){return{type:"listItem",spread:L._spread,checked:null,children:[]}}function JA(){return{type:"paragraph",children:[]}}function WA(){return{type:"strong",children:[]}}function HA(){return{type:"text",value:""}}function UA(){return{type:"thematicBreak"}}}function n5($){return{line:$.line,column:$.column,offset:$.offset}}function qK($,X){let G=-1;while(++G<X.length){let Y=X[G];if(Array.isArray(Y))qK($,Y);else _P($,Y)}}function _P($,X){let G;for(G in X)if(QK.call(X,G))switch(G){case"canContainEols":{let Y=X[G];if(Y)$[G].push(...Y);break}case"transforms":{let Y=X[G];if(Y)$[G].push(...Y);break}case"enter":case"exit":{let Y=X[G];if(Y)Object.assign($[G],Y);break}}}function MK($,X){if($)throw Error("Cannot close `"+$.type+"` ("+i5({start:$.start,end:$.end})+"): a different token (`"+X.type+"`, "+i5({start:X.start,end:X.end})+") is open");else throw Error("Cannot close document, a token (`"+X.type+"`, "+i5({start:X.start,end:X.end})+") is still open")}var QK;var OK=B(()=>{O0();W9();UK();b7();QX();K9();a();H9();OX();QK={}.hasOwnProperty});var ZK=B(()=>{OK()});function L9($){let X=this;X.parser=G;function G(Y){return ZX(Y,{...X.data("settings"),...$,extensions:X.data("micromarkExtensions")||[],mdastExtensions:X.data("fromMarkdownExtensions")||[]})}}var RK=B(()=>{ZK()});var AK=B(()=>{RK()});function VK($,X){let G=X||{};function Y(J,...W){let{invalid:H,handlers:U}=Y;if(J&&BK.call(J,$)){let F=String(J[$]);H=BK.call(U,F)?U[F]:Y.unknown}if(H)return H.call(this,J,...W)}return Y.handlers=G.handlers||{},Y.invalid=G.invalid,Y.unknown=G.unknown,Y}var BK;var NK=B(()=>{BK={}.hasOwnProperty});function RX($,X){let G=-1,Y;if(X.extensions)while(++G<X.extensions.length)RX($,X.extensions[G]);for(Y in X)if(zP.call(X,Y))switch(Y){case"extensions":break;case"unsafe":{wK($[Y],X[Y]);break}case"join":{wK($[Y],X[Y]);break}case"handlers":{DP($[Y],X[Y]);break}default:$.options[Y]=X[Y]}return $}function wK($,X){if(X)$.push(...X)}function DP($,X){if(X)Object.assign($,X)}var zP;var _K=B(()=>{zP={}.hasOwnProperty});function zK($,X,G,Y){let J=G.enter("blockquote"),W=G.createTracker(Y);W.move("> "),W.shift(2);let H=G.indentLines(G.containerFlow($,W.current()),PP);return J(),H}function PP($,X,G){return">"+(G?"":" ")+$}function C9($,X){return DK($,X.inConstruct,!0)&&!DK($,X.notInConstruct,!1)}function DK($,X,G){if(typeof X==="string")X=[X];if(!X||X.length===0)return G;let Y=-1;while(++Y<X.length)if($.includes(X[Y]))return!0;return!1}function AX($,X,G,Y){let J=-1;while(++J<G.unsafe.length)if(G.unsafe[J].character===`
105
+ `&&C9(G.stack,G.unsafe[J]))return/[ \t]/.test(Y.before)?"":" ";return"\\\n"}var PK=()=>{};function LK($,X){let G=String($),Y=G.indexOf(X),J=Y,W=0,H=0;if(typeof X!=="string")throw TypeError("Expected substring");while(Y!==-1){if(Y===J){if(++W>H)H=W}else W=1;J=Y+X.length,Y=G.indexOf(X,J)}return H}function g4($,X){return Boolean(X.options.fences===!1&&$.value&&!$.lang&&/[^ \r\n]/.test($.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test($.value))}function CK($){let X=$.options.fence||"`";if(X!=="`"&&X!=="~")throw Error("Cannot serialize code with `"+X+"` for `options.fence`, expected `` ` `` or `~`");return X}function TK($,X,G,Y){let J=CK(G),W=$.value||"",H=J==="`"?"GraveAccent":"Tilde";if(g4($,G)){let q=G.enter("codeIndented"),A=G.indentLines(W,LP);return q(),A}let U=G.createTracker(Y),F=J.repeat(Math.max(LK(W,J)+1,3)),M=G.enter("codeFenced"),Q=U.move(F);if($.lang){let q=G.enter(`codeFencedLang${H}`);Q+=U.move(G.safe($.lang,{before:Q,after:" ",encode:["`"],...U.current()})),q()}if($.lang&&$.meta){let q=G.enter(`codeFencedMeta${H}`);Q+=U.move(" "),Q+=U.move(G.safe($.meta,{before:Q,after:`
106
106
  `,encode:["`"],...U.current()})),q()}if(Q+=U.move(`
107
107
  `),W)Q+=U.move(W+`
108
- `);return Q+=U.move(F),M(),Q}function DP($,X,G){return(G?"":" ")+$}var IK=()=>{};function T6($){let X=$.options.quote||'"';if(X!=='"'&&X!=="'")throw Error("Cannot serialize title with `"+X+"` for `options.quote`, expected `\"`, or `'`");return X}function jK($,X,G,Y){let J=T6(G),W=J==='"'?"Quote":"Apostrophe",H=G.enter("definition"),U=G.enter("label"),F=G.createTracker(Y),M=F.move("[");if(M+=F.move(G.safe(G.associationId($),{before:M,after:"]",...F.current()})),M+=F.move("]: "),U(),!$.url||/[\0- \u007F]/.test($.url))U=G.enter("destinationLiteral"),M+=F.move("<"),M+=F.move(G.safe($.url,{before:M,after:">",...F.current()})),M+=F.move(">");else U=G.enter("destinationRaw"),M+=F.move(G.safe($.url,{before:M,after:$.title?" ":`
109
- `,...F.current()}));if(U(),$.title)U=G.enter(`title${W}`),M+=F.move(" "+J),M+=F.move(G.safe($.title,{before:M,after:J,...F.current()})),M+=F.move(J),U();return H(),M}var SK=()=>{};function kK($){let X=$.options.emphasis||"*";if(X!=="*"&&X!=="_")throw Error("Cannot serialize emphasis with `"+X+"` for `options.emphasis`, expected `*`, or `_`");return X}function k1($){return"&#x"+$.toString(16).toUpperCase()+";"}function E6($,X,G){let Y=z6($),J=z6(X);if(Y===void 0)return J===void 0?G==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:J===1?{inside:!0,outside:!0}:{inside:!1,outside:!0};if(Y===1)return J===void 0?{inside:!1,outside:!1}:J===1?{inside:!0,outside:!0}:{inside:!1,outside:!1};return J===void 0?{inside:!1,outside:!1}:J===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}var OX=V(()=>{k7()});function RX($,X,G,Y){let J=kK(G),W=G.enter("emphasis"),H=G.createTracker(Y),U=H.move(J),F=H.move(G.containerPhrasing($,{after:J,before:U,...H.current()})),M=F.charCodeAt(0),Q=E6(Y.before.charCodeAt(Y.before.length-1),M,J);if(Q.inside)F=k1(M)+F.slice(1);let q=F.charCodeAt(F.length-1),Z=E6(Y.after.charCodeAt(0),q,J);if(Z.inside)F=F.slice(0,-1)+k1(q);let A=H.move(J);return W(),G.attentionEncodeSurroundingInfo={after:Z.outside,before:Q.outside},U+F+A}function PP($,X,G){return G.options.emphasis||"*"}var vK=V(()=>{OX();RX.peek=PP});function LP($){let X=[],G=-1;while(++G<$.length)X[G]=I6($[G]);return D9(Y);function Y(...J){let W=-1;while(++W<X.length)if(X[W].apply(this,J))return!0;return!1}}function CP($){let X=$;return D9(G);function G(Y){let J=Y,W;for(W in $)if(J[W]!==X[W])return!1;return!0}}function TP($){return D9(X);function X(G){return G&&G.type===$}}function D9($){return X;function X(G,Y,J){return Boolean(IP(G)&&$.call(this,G,typeof Y==="number"?Y:void 0,J||void 0))}}function EP(){return!0}function IP($){return $!==null&&typeof $==="object"&&"type"in $}var I6=function($){if($===null||$===void 0)return EP;if(typeof $==="function")return D9($);if(typeof $==="object")return Array.isArray($)?LP($):CP($);if(typeof $==="string")return TP($);throw Error("Expected function, string, or object as test")};var ZX=()=>{};function xK($){return"\x1B[33m"+$+"\x1B[39m"}function AX($,X,G,Y){let J;if(typeof X==="function"&&typeof G!=="function")Y=G,G=X;else J=X;let W=I6(J),H=Y?-1:1;U($,void 0,[])();function U(F,M,Q){let q=F&&typeof F==="object"?F:{};if(typeof q.type==="string"){let A=typeof q.tagName==="string"?q.tagName:typeof q.name==="string"?q.name:void 0;Object.defineProperty(Z,"name",{value:"node ("+xK(F.type+(A?"<"+A+">":""))+")"})}return Z;function Z(){let A=bK,_,z,D;if(!X||W(F,M,Q[Q.length-1]||void 0)){if(A=jP(G(F,Q)),A[0]===g2)return A}if("children"in F&&F.children){let P=F;if(P.children&&A[0]!==L9){z=(Y?P.children.length:-1)+H,D=Q.concat(P);while(z>-1&&z<P.children.length){let b=P.children[z];if(_=U(b,z,D)(),_[0]===g2)return _;z=typeof _[1]==="number"?_[1]:z+H}}}return A}}}function jP($){if(Array.isArray($))return $;if(typeof $==="number")return[P9,$];return $===null||$===void 0?bK:[$]}var bK,P9=!0,g2=!1,L9="skip";var hK=V(()=>{ZX();bK=[]});var VX=V(()=>{hK()});function BX($,X,G,Y){let J,W,H;if(typeof X==="function"&&typeof G!=="function")W=void 0,H=X,J=G;else W=X,H=G,J=Y;AX($,W,U,J);function U(F,M){let Q=M[M.length-1],q=Q?Q.children.indexOf(F):void 0;return H(F,q,Q)}}var yK=V(()=>{VX();VX()});var fK=V(()=>{yK()});function C9($,X){let G=!1;return BX($,function(Y){if("value"in Y&&/\r?\n|\r/.test(Y.value)||Y.type==="break")return G=!0,g2}),Boolean((!$.depth||$.depth<3)&&k2($)&&(X.options.setext||G))}var NX=V(()=>{fK();X9()});function gK($,X,G,Y){let J=Math.max(Math.min(6,$.depth||1),1),W=G.createTracker(Y);if(C9($,G)){let Q=G.enter("headingSetext"),q=G.enter("phrasing"),Z=G.containerPhrasing($,{...W.current(),before:`
108
+ `);return Q+=U.move(F),M(),Q}function LP($,X,G){return(G?"":" ")+$}var EK=()=>{};function C6($){let X=$.options.quote||'"';if(X!=='"'&&X!=="'")throw Error("Cannot serialize title with `"+X+"` for `options.quote`, expected `\"`, or `'`");return X}function IK($,X,G,Y){let J=C6(G),W=J==='"'?"Quote":"Apostrophe",H=G.enter("definition"),U=G.enter("label"),F=G.createTracker(Y),M=F.move("[");if(M+=F.move(G.safe(G.associationId($),{before:M,after:"]",...F.current()})),M+=F.move("]: "),U(),!$.url||/[\0- \u007F]/.test($.url))U=G.enter("destinationLiteral"),M+=F.move("<"),M+=F.move(G.safe($.url,{before:M,after:">",...F.current()})),M+=F.move(">");else U=G.enter("destinationRaw"),M+=F.move(G.safe($.url,{before:M,after:$.title?" ":`
109
+ `,...F.current()}));if(U(),$.title)U=G.enter(`title${W}`),M+=F.move(" "+J),M+=F.move(G.safe($.title,{before:M,after:J,...F.current()})),M+=F.move(J),U();return H(),M}var jK=()=>{};function SK($){let X=$.options.emphasis||"*";if(X!=="*"&&X!=="_")throw Error("Cannot serialize emphasis with `"+X+"` for `options.emphasis`, expected `*`, or `_`");return X}function k1($){return"&#x"+$.toString(16).toUpperCase()+";"}function T6($,X,G){let Y=_6($),J=_6(X);if(Y===void 0)return J===void 0?G==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:J===1?{inside:!0,outside:!0}:{inside:!1,outside:!0};if(Y===1)return J===void 0?{inside:!1,outside:!1}:J===1?{inside:!0,outside:!0}:{inside:!1,outside:!1};return J===void 0?{inside:!1,outside:!1}:J===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}var BX=B(()=>{h7()});function VX($,X,G,Y){let J=SK(G),W=G.enter("emphasis"),H=G.createTracker(Y),U=H.move(J),F=H.move(G.containerPhrasing($,{after:J,before:U,...H.current()})),M=F.charCodeAt(0),Q=T6(Y.before.charCodeAt(Y.before.length-1),M,J);if(Q.inside)F=k1(M)+F.slice(1);let q=F.charCodeAt(F.length-1),A=T6(Y.after.charCodeAt(0),q,J);if(A.inside)F=F.slice(0,-1)+k1(q);let Z=H.move(J);return W(),G.attentionEncodeSurroundingInfo={after:A.outside,before:Q.outside},U+F+Z}function CP($,X,G){return G.options.emphasis||"*"}var kK=B(()=>{BX();VX.peek=CP});function TP($){let X=[],G=-1;while(++G<$.length)X[G]=E6($[G]);return T9(Y);function Y(...J){let W=-1;while(++W<X.length)if(X[W].apply(this,J))return!0;return!1}}function EP($){let X=$;return T9(G);function G(Y){let J=Y,W;for(W in $)if(J[W]!==X[W])return!1;return!0}}function IP($){return T9(X);function X(G){return G&&G.type===$}}function T9($){return X;function X(G,Y,J){return Boolean(SP(G)&&$.call(this,G,typeof Y==="number"?Y:void 0,J||void 0))}}function jP(){return!0}function SP($){return $!==null&&typeof $==="object"&&"type"in $}var E6=function($){if($===null||$===void 0)return jP;if(typeof $==="function")return T9($);if(typeof $==="object")return Array.isArray($)?TP($):EP($);if(typeof $==="string")return IP($);throw Error("Expected function, string, or object as test")};var NX=()=>{};function vK($){return"\x1B[33m"+$+"\x1B[39m"}function wX($,X,G,Y){let J;if(typeof X==="function"&&typeof G!=="function")Y=G,G=X;else J=X;let W=E6(J),H=Y?-1:1;U($,void 0,[])();function U(F,M,Q){let q=F&&typeof F==="object"?F:{};if(typeof q.type==="string"){let Z=typeof q.tagName==="string"?q.tagName:typeof q.name==="string"?q.name:void 0;Object.defineProperty(A,"name",{value:"node ("+vK(F.type+(Z?"<"+Z+">":""))+")"})}return A;function A(){let Z=xK,_,z,D;if(!X||W(F,M,Q[Q.length-1]||void 0)){if(Z=kP(G(F,Q)),Z[0]===f2)return Z}if("children"in F&&F.children){let P=F;if(P.children&&Z[0]!==I9){z=(Y?P.children.length:-1)+H,D=Q.concat(P);while(z>-1&&z<P.children.length){let b=P.children[z];if(_=U(b,z,D)(),_[0]===f2)return _;z=typeof _[1]==="number"?_[1]:z+H}}}return Z}}}function kP($){if(Array.isArray($))return $;if(typeof $==="number")return[E9,$];return $===null||$===void 0?xK:[$]}var xK,E9=!0,f2=!1,I9="skip";var bK=B(()=>{NX();xK=[]});var _X=B(()=>{bK()});function zX($,X,G,Y){let J,W,H;if(typeof X==="function"&&typeof G!=="function")W=void 0,H=X,J=G;else W=X,H=G,J=Y;wX($,W,U,J);function U(F,M){let Q=M[M.length-1],q=Q?Q.children.indexOf(F):void 0;return H(F,q,Q)}}var hK=B(()=>{_X();_X()});var yK=B(()=>{hK()});function j9($,X){let G=!1;return zX($,function(Y){if("value"in Y&&/\r?\n|\r/.test(Y.value)||Y.type==="break")return G=!0,f2}),Boolean((!$.depth||$.depth<3)&&S2($)&&(X.options.setext||G))}var DX=B(()=>{yK();W9()});function fK($,X,G,Y){let J=Math.max(Math.min(6,$.depth||1),1),W=G.createTracker(Y);if(j9($,G)){let Q=G.enter("headingSetext"),q=G.enter("phrasing"),A=G.containerPhrasing($,{...W.current(),before:`
110
110
  `,after:`
111
- `});return q(),Q(),Z+`
112
- `+(J===1?"=":"-").repeat(Z.length-(Math.max(Z.lastIndexOf("\r"),Z.lastIndexOf(`
111
+ `});return q(),Q(),A+`
112
+ `+(J===1?"=":"-").repeat(A.length-(Math.max(A.lastIndexOf("\r"),A.lastIndexOf(`
113
113
  `))+1))}let H="#".repeat(J),U=G.enter("headingAtx"),F=G.enter("phrasing");W.move(H+" ");let M=G.containerPhrasing($,{before:"# ",after:`
114
- `,...W.current()});if(/^[\t ]/.test(M))M=k1(M.charCodeAt(0))+M.slice(1);if(M=M?H+" "+M:H,G.options.closeAtx)M+=" "+H;return F(),U(),M}var mK=V(()=>{NX()});function wX($){return $.value||""}function SP(){return"<"}var pK=V(()=>{wX.peek=SP});function _X($,X,G,Y){let J=T6(G),W=J==='"'?"Quote":"Apostrophe",H=G.enter("image"),U=G.enter("label"),F=G.createTracker(Y),M=F.move("![");if(M+=F.move(G.safe($.alt,{before:M,after:"]",...F.current()})),M+=F.move("]("),U(),!$.url&&$.title||/[\0- \u007F]/.test($.url))U=G.enter("destinationLiteral"),M+=F.move("<"),M+=F.move(G.safe($.url,{before:M,after:">",...F.current()})),M+=F.move(">");else U=G.enter("destinationRaw"),M+=F.move(G.safe($.url,{before:M,after:$.title?" ":")",...F.current()}));if(U(),$.title)U=G.enter(`title${W}`),M+=F.move(" "+J),M+=F.move(G.safe($.title,{before:M,after:J,...F.current()})),M+=F.move(J),U();return M+=F.move(")"),H(),M}function kP(){return"!"}var uK=V(()=>{_X.peek=kP});function zX($,X,G,Y){let J=$.referenceType,W=G.enter("imageReference"),H=G.enter("label"),U=G.createTracker(Y),F=U.move("!["),M=G.safe($.alt,{before:F,after:"]",...U.current()});F+=U.move(M+"]["),H();let Q=G.stack;G.stack=[],H=G.enter("reference");let q=G.safe(G.associationId($),{before:F,after:"]",...U.current()});if(H(),G.stack=Q,W(),J==="full"||!M||M!==q)F+=U.move(q+"]");else if(J==="shortcut")F=F.slice(0,-1);else F+=U.move("]");return F}function vP(){return"!"}var dK=V(()=>{zX.peek=vP});function DX($,X,G){let Y=$.value||"",J="`",W=-1;while(new RegExp("(^|[^`])"+J+"([^`]|$)").test(Y))J+="`";if(/[^ \r\n]/.test(Y)&&(/^[ \r\n]/.test(Y)&&/[ \r\n]$/.test(Y)||/^`|`$/.test(Y)))Y=" "+Y+" ";while(++W<G.unsafe.length){let H=G.unsafe[W],U=G.compilePattern(H),F;if(!H.atBreak)continue;while(F=U.exec(Y)){let M=F.index;if(Y.charCodeAt(M)===10&&Y.charCodeAt(M-1)===13)M--;Y=Y.slice(0,M)+" "+Y.slice(F.index+1)}}return J+Y+J}function xP(){return"`"}var lK=V(()=>{DX.peek=xP});function PX($,X){let G=k2($);return Boolean(!X.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))}var cK=V(()=>{X9()});function LX($,X,G,Y){let J=T6(G),W=J==='"'?"Quote":"Apostrophe",H=G.createTracker(Y),U,F;if(PX($,G)){let Q=G.stack;G.stack=[],U=G.enter("autolink");let q=H.move("<");return q+=H.move(G.containerPhrasing($,{before:q,after:">",...H.current()})),q+=H.move(">"),U(),G.stack=Q,q}U=G.enter("link"),F=G.enter("label");let M=H.move("[");if(M+=H.move(G.containerPhrasing($,{before:M,after:"](",...H.current()})),M+=H.move("]("),F(),!$.url&&$.title||/[\0- \u007F]/.test($.url))F=G.enter("destinationLiteral"),M+=H.move("<"),M+=H.move(G.safe($.url,{before:M,after:">",...H.current()})),M+=H.move(">");else F=G.enter("destinationRaw"),M+=H.move(G.safe($.url,{before:M,after:$.title?" ":")",...H.current()}));if(F(),$.title)F=G.enter(`title${W}`),M+=H.move(" "+J),M+=H.move(G.safe($.title,{before:M,after:J,...H.current()})),M+=H.move(J),F();return M+=H.move(")"),U(),M}function bP($,X,G){return PX($,G)?"<":"["}var rK=V(()=>{cK();LX.peek=bP});function CX($,X,G,Y){let J=$.referenceType,W=G.enter("linkReference"),H=G.enter("label"),U=G.createTracker(Y),F=U.move("["),M=G.containerPhrasing($,{before:F,after:"]",...U.current()});F+=U.move(M+"]["),H();let Q=G.stack;G.stack=[],H=G.enter("reference");let q=G.safe(G.associationId($),{before:F,after:"]",...U.current()});if(H(),G.stack=Q,W(),J==="full"||!M||M!==q)F+=U.move(q+"]");else if(J==="shortcut")F=F.slice(0,-1);else F+=U.move("]");return F}function hP(){return"["}var iK=V(()=>{CX.peek=hP});function j6($){let X=$.options.bullet||"*";if(X!=="*"&&X!=="+"&&X!=="-")throw Error("Cannot serialize items with `"+X+"` for `options.bullet`, expected `*`, `+`, or `-`");return X}function nK($){let X=j6($),G=$.options.bulletOther;if(!G)return X==="*"?"-":"*";if(G!=="*"&&G!=="+"&&G!=="-")throw Error("Cannot serialize items with `"+G+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(G===X)throw Error("Expected `bullet` (`"+X+"`) and `bulletOther` (`"+G+"`) to be different");return G}var oK=()=>{};function sK($){let X=$.options.bulletOrdered||".";if(X!=="."&&X!==")")throw Error("Cannot serialize items with `"+X+"` for `options.bulletOrdered`, expected `.` or `)`");return X}function T9($){let X=$.options.rule||"*";if(X!=="*"&&X!=="-"&&X!=="_")throw Error("Cannot serialize rules with `"+X+"` for `options.rule`, expected `*`, `-`, or `_`");return X}function aK($,X,G,Y){let J=G.enter("list"),W=G.bulletCurrent,H=$.ordered?sK(G):j6(G),U=$.ordered?H==="."?")":".":nK(G),F=X&&G.bulletLastUsed?H===G.bulletLastUsed:!1;if(!$.ordered){let Q=$.children?$.children[0]:void 0;if((H==="*"||H==="-")&&Q&&(!Q.children||!Q.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)F=!0;if(T9(G)===H&&Q){let q=-1;while(++q<$.children.length){let Z=$.children[q];if(Z&&Z.type==="listItem"&&Z.children&&Z.children[0]&&Z.children[0].type==="thematicBreak"){F=!0;break}}}}if(F)H=U;G.bulletCurrent=H;let M=G.containerFlow($,Y);return G.bulletLastUsed=H,G.bulletCurrent=W,J(),M}var tK=V(()=>{oK()});function eK($){let X=$.options.listItemIndent||"one";if(X!=="tab"&&X!=="one"&&X!=="mixed")throw Error("Cannot serialize items with `"+X+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return X}function $F($,X,G,Y){let J=eK(G),W=G.bulletCurrent||j6(G);if(X&&X.type==="list"&&X.ordered)W=(typeof X.start==="number"&&X.start>-1?X.start:1)+(G.options.incrementListMarker===!1?0:X.children.indexOf($))+W;let H=W.length+1;if(J==="tab"||J==="mixed"&&(X&&X.type==="list"&&X.spread||$.spread))H=Math.ceil(H/4)*4;let U=G.createTracker(Y);U.move(W+" ".repeat(H-W.length)),U.shift(H);let F=G.enter("listItem"),M=G.indentLines(G.containerFlow($,U.current()),Q);return F(),M;function Q(q,Z,A){if(Z)return(A?"":" ".repeat(H))+q;return(A?W:W+" ".repeat(H-W.length))+q}}var XF=()=>{};function GF($,X,G,Y){let J=G.enter("paragraph"),W=G.enter("phrasing"),H=G.containerPhrasing($,Y);return W(),J(),H}var TX;var YF=V(()=>{ZX();TX=I6(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"])});var JF=V(()=>{YF()});function WF($,X,G,Y){return($.children.some(function(H){return TX(H)})?G.containerPhrasing:G.containerFlow).call(G,$,Y)}var HF=V(()=>{JF()});function UF($){let X=$.options.strong||"*";if(X!=="*"&&X!=="_")throw Error("Cannot serialize strong with `"+X+"` for `options.strong`, expected `*`, or `_`");return X}function EX($,X,G,Y){let J=UF(G),W=G.enter("strong"),H=G.createTracker(Y),U=H.move(J+J),F=H.move(G.containerPhrasing($,{after:J,before:U,...H.current()})),M=F.charCodeAt(0),Q=E6(Y.before.charCodeAt(Y.before.length-1),M,J);if(Q.inside)F=k1(M)+F.slice(1);let q=F.charCodeAt(F.length-1),Z=E6(Y.after.charCodeAt(0),q,J);if(Z.inside)F=F.slice(0,-1)+k1(q);let A=H.move(J+J);return W(),G.attentionEncodeSurroundingInfo={after:Z.outside,before:Q.outside},U+F+A}function yP($,X,G){return G.options.strong||"*"}var KF=V(()=>{OX();EX.peek=yP});function FF($,X,G,Y){return G.safe($.value,Y)}function MF($){let X=$.options.ruleRepetition||3;if(X<3)throw Error("Cannot serialize rules with repetition `"+X+"` for `options.ruleRepetition`, expected `3` or more");return X}function QF($,X,G){let Y=(T9(G)+(G.options.ruleSpaces?" ":"")).repeat(MF(G));return G.options.ruleSpaces?Y.slice(0,-1):Y}var qF=()=>{};var OF;var RF=V(()=>{LK();IK();SK();vK();mK();pK();uK();dK();lK();rK();iK();tK();XF();HF();KF();qF();OF={blockquote:DK,break:qX,code:EK,definition:jK,emphasis:RX,hardBreak:qX,heading:gK,html:wX,image:_X,imageReference:zX,inlineCode:DX,link:LX,linkReference:CX,list:aK,listItem:$F,paragraph:GF,root:WF,strong:EX,text:FF,thematicBreak:QF}});function fP($,X,G,Y){if(X.type==="code"&&f4(X,Y)&&($.type==="list"||$.type===X.type&&f4($,Y)))return!1;if("spread"in G&&typeof G.spread==="boolean"){if($.type==="paragraph"&&($.type===X.type||X.type==="definition"||X.type==="heading"&&C9(X,Y)))return;return G.spread?1:0}}var ZF;var AF=V(()=>{NX();ZF=[fP]});var m2,VF;var BF=V(()=>{m2=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],VF=[{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:`
115
- `,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:m2},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
116
- ]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:m2},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
117
- *])`},{character:"*",inConstruct:"phrasing",notInConstruct:m2},{atBreak:!0,character:"+",after:`(?:[ \r
114
+ `,...W.current()});if(/^[\t ]/.test(M))M=k1(M.charCodeAt(0))+M.slice(1);if(M=M?H+" "+M:H,G.options.closeAtx)M+=" "+H;return F(),U(),M}var gK=B(()=>{DX()});function PX($){return $.value||""}function vP(){return"<"}var mK=B(()=>{PX.peek=vP});function LX($,X,G,Y){let J=C6(G),W=J==='"'?"Quote":"Apostrophe",H=G.enter("image"),U=G.enter("label"),F=G.createTracker(Y),M=F.move("![");if(M+=F.move(G.safe($.alt,{before:M,after:"]",...F.current()})),M+=F.move("]("),U(),!$.url&&$.title||/[\0- \u007F]/.test($.url))U=G.enter("destinationLiteral"),M+=F.move("<"),M+=F.move(G.safe($.url,{before:M,after:">",...F.current()})),M+=F.move(">");else U=G.enter("destinationRaw"),M+=F.move(G.safe($.url,{before:M,after:$.title?" ":")",...F.current()}));if(U(),$.title)U=G.enter(`title${W}`),M+=F.move(" "+J),M+=F.move(G.safe($.title,{before:M,after:J,...F.current()})),M+=F.move(J),U();return M+=F.move(")"),H(),M}function xP(){return"!"}var pK=B(()=>{LX.peek=xP});function CX($,X,G,Y){let J=$.referenceType,W=G.enter("imageReference"),H=G.enter("label"),U=G.createTracker(Y),F=U.move("!["),M=G.safe($.alt,{before:F,after:"]",...U.current()});F+=U.move(M+"]["),H();let Q=G.stack;G.stack=[],H=G.enter("reference");let q=G.safe(G.associationId($),{before:F,after:"]",...U.current()});if(H(),G.stack=Q,W(),J==="full"||!M||M!==q)F+=U.move(q+"]");else if(J==="shortcut")F=F.slice(0,-1);else F+=U.move("]");return F}function bP(){return"!"}var uK=B(()=>{CX.peek=bP});function TX($,X,G){let Y=$.value||"",J="`",W=-1;while(new RegExp("(^|[^`])"+J+"([^`]|$)").test(Y))J+="`";if(/[^ \r\n]/.test(Y)&&(/^[ \r\n]/.test(Y)&&/[ \r\n]$/.test(Y)||/^`|`$/.test(Y)))Y=" "+Y+" ";while(++W<G.unsafe.length){let H=G.unsafe[W],U=G.compilePattern(H),F;if(!H.atBreak)continue;while(F=U.exec(Y)){let M=F.index;if(Y.charCodeAt(M)===10&&Y.charCodeAt(M-1)===13)M--;Y=Y.slice(0,M)+" "+Y.slice(F.index+1)}}return J+Y+J}function hP(){return"`"}var dK=B(()=>{TX.peek=hP});function EX($,X){let G=S2($);return Boolean(!X.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))}var lK=B(()=>{W9()});function IX($,X,G,Y){let J=C6(G),W=J==='"'?"Quote":"Apostrophe",H=G.createTracker(Y),U,F;if(EX($,G)){let Q=G.stack;G.stack=[],U=G.enter("autolink");let q=H.move("<");return q+=H.move(G.containerPhrasing($,{before:q,after:">",...H.current()})),q+=H.move(">"),U(),G.stack=Q,q}U=G.enter("link"),F=G.enter("label");let M=H.move("[");if(M+=H.move(G.containerPhrasing($,{before:M,after:"](",...H.current()})),M+=H.move("]("),F(),!$.url&&$.title||/[\0- \u007F]/.test($.url))F=G.enter("destinationLiteral"),M+=H.move("<"),M+=H.move(G.safe($.url,{before:M,after:">",...H.current()})),M+=H.move(">");else F=G.enter("destinationRaw"),M+=H.move(G.safe($.url,{before:M,after:$.title?" ":")",...H.current()}));if(F(),$.title)F=G.enter(`title${W}`),M+=H.move(" "+J),M+=H.move(G.safe($.title,{before:M,after:J,...H.current()})),M+=H.move(J),F();return M+=H.move(")"),U(),M}function yP($,X,G){return EX($,G)?"<":"["}var cK=B(()=>{lK();IX.peek=yP});function jX($,X,G,Y){let J=$.referenceType,W=G.enter("linkReference"),H=G.enter("label"),U=G.createTracker(Y),F=U.move("["),M=G.containerPhrasing($,{before:F,after:"]",...U.current()});F+=U.move(M+"]["),H();let Q=G.stack;G.stack=[],H=G.enter("reference");let q=G.safe(G.associationId($),{before:F,after:"]",...U.current()});if(H(),G.stack=Q,W(),J==="full"||!M||M!==q)F+=U.move(q+"]");else if(J==="shortcut")F=F.slice(0,-1);else F+=U.move("]");return F}function fP(){return"["}var rK=B(()=>{jX.peek=fP});function I6($){let X=$.options.bullet||"*";if(X!=="*"&&X!=="+"&&X!=="-")throw Error("Cannot serialize items with `"+X+"` for `options.bullet`, expected `*`, `+`, or `-`");return X}function iK($){let X=I6($),G=$.options.bulletOther;if(!G)return X==="*"?"-":"*";if(G!=="*"&&G!=="+"&&G!=="-")throw Error("Cannot serialize items with `"+G+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(G===X)throw Error("Expected `bullet` (`"+X+"`) and `bulletOther` (`"+G+"`) to be different");return G}var nK=()=>{};function oK($){let X=$.options.bulletOrdered||".";if(X!=="."&&X!==")")throw Error("Cannot serialize items with `"+X+"` for `options.bulletOrdered`, expected `.` or `)`");return X}function S9($){let X=$.options.rule||"*";if(X!=="*"&&X!=="-"&&X!=="_")throw Error("Cannot serialize rules with `"+X+"` for `options.rule`, expected `*`, `-`, or `_`");return X}function sK($,X,G,Y){let J=G.enter("list"),W=G.bulletCurrent,H=$.ordered?oK(G):I6(G),U=$.ordered?H==="."?")":".":iK(G),F=X&&G.bulletLastUsed?H===G.bulletLastUsed:!1;if(!$.ordered){let Q=$.children?$.children[0]:void 0;if((H==="*"||H==="-")&&Q&&(!Q.children||!Q.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)F=!0;if(S9(G)===H&&Q){let q=-1;while(++q<$.children.length){let A=$.children[q];if(A&&A.type==="listItem"&&A.children&&A.children[0]&&A.children[0].type==="thematicBreak"){F=!0;break}}}}if(F)H=U;G.bulletCurrent=H;let M=G.containerFlow($,Y);return G.bulletLastUsed=H,G.bulletCurrent=W,J(),M}var aK=B(()=>{nK()});function tK($){let X=$.options.listItemIndent||"one";if(X!=="tab"&&X!=="one"&&X!=="mixed")throw Error("Cannot serialize items with `"+X+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return X}function eK($,X,G,Y){let J=tK(G),W=G.bulletCurrent||I6(G);if(X&&X.type==="list"&&X.ordered)W=(typeof X.start==="number"&&X.start>-1?X.start:1)+(G.options.incrementListMarker===!1?0:X.children.indexOf($))+W;let H=W.length+1;if(J==="tab"||J==="mixed"&&(X&&X.type==="list"&&X.spread||$.spread))H=Math.ceil(H/4)*4;let U=G.createTracker(Y);U.move(W+" ".repeat(H-W.length)),U.shift(H);let F=G.enter("listItem"),M=G.indentLines(G.containerFlow($,U.current()),Q);return F(),M;function Q(q,A,Z){if(A)return(Z?"":" ".repeat(H))+q;return(Z?W:W+" ".repeat(H-W.length))+q}}var $F=()=>{};function XF($,X,G,Y){let J=G.enter("paragraph"),W=G.enter("phrasing"),H=G.containerPhrasing($,Y);return W(),J(),H}var SX;var GF=B(()=>{NX();SX=E6(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"])});var YF=B(()=>{GF()});function JF($,X,G,Y){return($.children.some(function(H){return SX(H)})?G.containerPhrasing:G.containerFlow).call(G,$,Y)}var WF=B(()=>{YF()});function HF($){let X=$.options.strong||"*";if(X!=="*"&&X!=="_")throw Error("Cannot serialize strong with `"+X+"` for `options.strong`, expected `*`, or `_`");return X}function kX($,X,G,Y){let J=HF(G),W=G.enter("strong"),H=G.createTracker(Y),U=H.move(J+J),F=H.move(G.containerPhrasing($,{after:J,before:U,...H.current()})),M=F.charCodeAt(0),Q=T6(Y.before.charCodeAt(Y.before.length-1),M,J);if(Q.inside)F=k1(M)+F.slice(1);let q=F.charCodeAt(F.length-1),A=T6(Y.after.charCodeAt(0),q,J);if(A.inside)F=F.slice(0,-1)+k1(q);let Z=H.move(J+J);return W(),G.attentionEncodeSurroundingInfo={after:A.outside,before:Q.outside},U+F+Z}function gP($,X,G){return G.options.strong||"*"}var UF=B(()=>{BX();kX.peek=gP});function KF($,X,G,Y){return G.safe($.value,Y)}function FF($){let X=$.options.ruleRepetition||3;if(X<3)throw Error("Cannot serialize rules with repetition `"+X+"` for `options.ruleRepetition`, expected `3` or more");return X}function MF($,X,G){let Y=(S9(G)+(G.options.ruleSpaces?" ":"")).repeat(FF(G));return G.options.ruleSpaces?Y.slice(0,-1):Y}var QF=()=>{};var qF;var OF=B(()=>{PK();EK();jK();kK();gK();mK();pK();uK();dK();cK();rK();aK();$F();WF();UF();QF();qF={blockquote:zK,break:AX,code:TK,definition:IK,emphasis:VX,hardBreak:AX,heading:fK,html:PX,image:LX,imageReference:CX,inlineCode:TX,link:IX,linkReference:jX,list:sK,listItem:eK,paragraph:XF,root:JF,strong:kX,text:KF,thematicBreak:MF}});function mP($,X,G,Y){if(X.type==="code"&&g4(X,Y)&&($.type==="list"||$.type===X.type&&g4($,Y)))return!1;if("spread"in G&&typeof G.spread==="boolean"){if($.type==="paragraph"&&($.type===X.type||X.type==="definition"||X.type==="heading"&&j9(X,Y)))return;return G.spread?1:0}}var ZF;var RF=B(()=>{DX();ZF=[mP]});var g2,AF;var BF=B(()=>{g2=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],AF=[{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:`
115
+ `,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
116
+ ]|$)`},{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
117
+ *])`},{character:"*",inConstruct:"phrasing",notInConstruct:g2},{atBreak:!0,character:"+",after:`(?:[ \r
118
118
  ])`},{atBreak:!0,character:"-",after:`(?:[ \r
119
119
  -])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
120
- ]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:m2},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:m2},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:m2},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:m2},{atBreak:!0,character:"~"}]});function NF($){if($.label||!$.identifier)return $.label||"";return w9($.identifier)}var wF=V(()=>{UX()});function _F($){if(!$._compiled){let X=($.atBreak?"[\\r\\n][\\t ]*":"")+($.before?"(?:"+$.before+")":"");$._compiled=new RegExp((X?"("+X+")":"")+(/[|\\{}()[\]^$+*?.-]/.test($.character)?"\\":"")+$.character+($.after?"(?:"+$.after+")":""),"g")}return $._compiled}function zF($,X,G){let Y=X.indexStack,J=$.children||[],W=[],H=-1,U=G.before,F;Y.push(-1);let M=X.createTracker(G);while(++H<J.length){let Q=J[H],q;if(Y[Y.length-1]=H,H+1<J.length){let _=X.handle.handlers[J[H+1].type];if(_&&_.peek)_=_.peek;q=_?_(J[H+1],$,X,{before:"",after:"",...M.current()}).charAt(0):""}else q=G.after;if(W.length>0&&(U==="\r"||U===`
121
- `)&&Q.type==="html")W[W.length-1]=W[W.length-1].replace(/(\r?\n|\r)$/," "),U=" ",M=X.createTracker(G),M.move(W.join(""));let Z=X.handle(Q,$,X,{...M.current(),after:q,before:U});if(F&&F===Z.slice(0,1))Z=k1(F.charCodeAt(0))+Z.slice(1);let A=X.attentionEncodeSurroundingInfo;if(X.attentionEncodeSurroundingInfo=void 0,F=void 0,A){if(W.length>0&&A.before&&U===W[W.length-1].slice(-1))W[W.length-1]=W[W.length-1].slice(0,-1)+k1(U.charCodeAt(0));if(A.after)F=q}M.move(Z),W.push(Z),U=Z.slice(-1)}return Y.pop(),W.join("")}var DF=()=>{};function PF($,X,G){let Y=X.indexStack,J=$.children||[],W=X.createTracker(G),H=[],U=-1;Y.push(-1);while(++U<J.length){let F=J[U];if(Y[Y.length-1]=U,H.push(W.move(X.handle(F,$,X,{before:`
120
+ ]|$)`},{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 VF($){if($.label||!$.identifier)return $.label||"";return P9($.identifier)}var NF=B(()=>{QX()});function wF($){if(!$._compiled){let X=($.atBreak?"[\\r\\n][\\t ]*":"")+($.before?"(?:"+$.before+")":"");$._compiled=new RegExp((X?"("+X+")":"")+(/[|\\{}()[\]^$+*?.-]/.test($.character)?"\\":"")+$.character+($.after?"(?:"+$.after+")":""),"g")}return $._compiled}function _F($,X,G){let Y=X.indexStack,J=$.children||[],W=[],H=-1,U=G.before,F;Y.push(-1);let M=X.createTracker(G);while(++H<J.length){let Q=J[H],q;if(Y[Y.length-1]=H,H+1<J.length){let _=X.handle.handlers[J[H+1].type];if(_&&_.peek)_=_.peek;q=_?_(J[H+1],$,X,{before:"",after:"",...M.current()}).charAt(0):""}else q=G.after;if(W.length>0&&(U==="\r"||U===`
121
+ `)&&Q.type==="html")W[W.length-1]=W[W.length-1].replace(/(\r?\n|\r)$/," "),U=" ",M=X.createTracker(G),M.move(W.join(""));let A=X.handle(Q,$,X,{...M.current(),after:q,before:U});if(F&&F===A.slice(0,1))A=k1(F.charCodeAt(0))+A.slice(1);let Z=X.attentionEncodeSurroundingInfo;if(X.attentionEncodeSurroundingInfo=void 0,F=void 0,Z){if(W.length>0&&Z.before&&U===W[W.length-1].slice(-1))W[W.length-1]=W[W.length-1].slice(0,-1)+k1(U.charCodeAt(0));if(Z.after)F=q}M.move(A),W.push(A),U=A.slice(-1)}return Y.pop(),W.join("")}var zF=()=>{};function DF($,X,G){let Y=X.indexStack,J=$.children||[],W=X.createTracker(G),H=[],U=-1;Y.push(-1);while(++U<J.length){let F=J[U];if(Y[Y.length-1]=U,H.push(W.move(X.handle(F,$,X,{before:`
122
122
  `,after:`
123
- `,...W.current()}))),F.type!=="list")X.bulletLastUsed=void 0;if(U<J.length-1)H.push(W.move(gP(F,J[U+1],$,X)))}return Y.pop(),H.join("")}function gP($,X,G,Y){let J=Y.join.length;while(J--){let W=Y.join[J]($,X,G,Y);if(W===!0||W===1)break;if(typeof W==="number")return`
123
+ `,...W.current()}))),F.type!=="list")X.bulletLastUsed=void 0;if(U<J.length-1)H.push(W.move(pP(F,J[U+1],$,X)))}return Y.pop(),H.join("")}function pP($,X,G,Y){let J=Y.join.length;while(J--){let W=Y.join[J]($,X,G,Y);if(W===!0||W===1)break;if(typeof W==="number")return`
124
124
  `.repeat(1+W);if(W===!1)return`
125
125
 
126
126
  <!---->
127
127
 
128
128
  `}return`
129
129
 
130
- `}function LF($,X){let G=[],Y=0,J=0,W;while(W=mP.exec($))H($.slice(Y,W.index)),G.push(W[0]),Y=W.index+W[0].length,J++;return H($.slice(Y)),G.join("");function H(U){G.push(X(U,J,!U))}}var mP;var CF=V(()=>{mP=/\r?\n|\r/g});function EF($,X,G){let Y=(G.before||"")+(X||"")+(G.after||""),J=[],W=[],H={},U=-1;while(++U<$.unsafe.length){let Q=$.unsafe[U];if(!z9($.stack,Q))continue;let q=$.compilePattern(Q),Z;while(Z=q.exec(Y)){let A="before"in Q||Boolean(Q.atBreak),_="after"in Q,z=Z.index+(A?Z[1].length:0);if(J.includes(z)){if(H[z].before&&!A)H[z].before=!1;if(H[z].after&&!_)H[z].after=!1}else J.push(z),H[z]={before:A,after:_}}}J.sort(pP);let F=G.before?G.before.length:0,M=Y.length-(G.after?G.after.length:0);U=-1;while(++U<J.length){let Q=J[U];if(Q<F||Q>=M)continue;if(Q+1<M&&J[U+1]===Q+1&&H[Q].after&&!H[Q+1].before&&!H[Q+1].after||J[U-1]===Q-1&&H[Q].before&&!H[Q-1].before&&!H[Q-1].after)continue;if(F!==Q)W.push(TF(Y.slice(F,Q),"\\"));if(F=Q,/[!-/:-@[-`{-~]/.test(Y.charAt(Q))&&(!G.encode||!G.encode.includes(Y.charAt(Q))))W.push("\\");else W.push(k1(Y.charCodeAt(Q))),F++}return W.push(TF(Y.slice(F,M),G.after)),W.join("")}function pP($,X){return $-X}function TF($,X){let G=/\\(?=[!-/:-@[-`{-~])/g,Y=[],J=[],W=$+X,H=-1,U=0,F;while(F=G.exec(W))Y.push(F.index);while(++H<Y.length){if(U!==Y[H])J.push($.slice(U,Y[H]));J.push("\\"),U=Y[H]}return J.push($.slice(U)),J.join("")}var IF=()=>{};function jF($){let X=$||{},G=X.now||{},Y=X.lineShift||0,J=G.line||1,W=G.column||1;return{move:F,current:H,shift:U};function H(){return{now:{line:J,column:W},lineShift:Y}}function U(M){Y+=M}function F(M){let Q=M||"",q=Q.split(/\r?\n|\r/g),Z=q[q.length-1];return J+=q.length-1,W=q.length===1?W+Z.length:1+Z.length+Y,Q}}function IX($,X){let G=X||{},Y={associationId:NF,containerPhrasing:cP,containerFlow:rP,createTracker:jF,compilePattern:_F,enter:W,handlers:{...OF},handle:void 0,indentLines:LF,indexStack:[],join:[...ZF],options:{},safe:iP,stack:[],unsafe:[...VF]};if(QX(Y,G),Y.options.tightDefinitions)Y.join.push(lP);Y.handle=NK("type",{invalid:uP,unknown:dP,handlers:Y.handlers});let J=Y.handle($,void 0,Y,{before:`
130
+ `}function PF($,X){let G=[],Y=0,J=0,W;while(W=uP.exec($))H($.slice(Y,W.index)),G.push(W[0]),Y=W.index+W[0].length,J++;return H($.slice(Y)),G.join("");function H(U){G.push(X(U,J,!U))}}var uP;var LF=B(()=>{uP=/\r?\n|\r/g});function TF($,X,G){let Y=(G.before||"")+(X||"")+(G.after||""),J=[],W=[],H={},U=-1;while(++U<$.unsafe.length){let Q=$.unsafe[U];if(!C9($.stack,Q))continue;let q=$.compilePattern(Q),A;while(A=q.exec(Y)){let Z="before"in Q||Boolean(Q.atBreak),_="after"in Q,z=A.index+(Z?A[1].length:0);if(J.includes(z)){if(H[z].before&&!Z)H[z].before=!1;if(H[z].after&&!_)H[z].after=!1}else J.push(z),H[z]={before:Z,after:_}}}J.sort(dP);let F=G.before?G.before.length:0,M=Y.length-(G.after?G.after.length:0);U=-1;while(++U<J.length){let Q=J[U];if(Q<F||Q>=M)continue;if(Q+1<M&&J[U+1]===Q+1&&H[Q].after&&!H[Q+1].before&&!H[Q+1].after||J[U-1]===Q-1&&H[Q].before&&!H[Q-1].before&&!H[Q-1].after)continue;if(F!==Q)W.push(CF(Y.slice(F,Q),"\\"));if(F=Q,/[!-/:-@[-`{-~]/.test(Y.charAt(Q))&&(!G.encode||!G.encode.includes(Y.charAt(Q))))W.push("\\");else W.push(k1(Y.charCodeAt(Q))),F++}return W.push(CF(Y.slice(F,M),G.after)),W.join("")}function dP($,X){return $-X}function CF($,X){let G=/\\(?=[!-/:-@[-`{-~])/g,Y=[],J=[],W=$+X,H=-1,U=0,F;while(F=G.exec(W))Y.push(F.index);while(++H<Y.length){if(U!==Y[H])J.push($.slice(U,Y[H]));J.push("\\"),U=Y[H]}return J.push($.slice(U)),J.join("")}var EF=()=>{};function IF($){let X=$||{},G=X.now||{},Y=X.lineShift||0,J=G.line||1,W=G.column||1;return{move:F,current:H,shift:U};function H(){return{now:{line:J,column:W},lineShift:Y}}function U(M){Y+=M}function F(M){let Q=M||"",q=Q.split(/\r?\n|\r/g),A=q[q.length-1];return J+=q.length-1,W=q.length===1?W+A.length:1+A.length+Y,Q}}function vX($,X){let G=X||{},Y={associationId:VF,containerPhrasing:iP,containerFlow:nP,createTracker:IF,compilePattern:wF,enter:W,handlers:{...qF},handle:void 0,indentLines:PF,indexStack:[],join:[...ZF],options:{},safe:oP,stack:[],unsafe:[...AF]};if(RX(Y,G),Y.options.tightDefinitions)Y.join.push(rP);Y.handle=VK("type",{invalid:lP,unknown:cP,handlers:Y.handlers});let J=Y.handle($,void 0,Y,{before:`
131
131
  `,after:`
132
132
  `,now:{line:1,column:1},lineShift:0});if(J&&J.charCodeAt(J.length-1)!==10&&J.charCodeAt(J.length-1)!==13)J+=`
133
- `;return J;function W(H){return Y.stack.push(H),U;function U(){Y.stack.pop()}}}function uP($){throw Error("Cannot handle value `"+$+"`, expected node")}function dP($){throw Error("Cannot handle unknown node `"+$.type+"`")}function lP($,X){if($.type==="definition"&&$.type===X.type)return 0}function cP($,X){return zF($,this,X)}function rP($,X){return PF($,this,X)}function iP($,X){return EF(this,$,X)}var SF=V(()=>{wK();zK();RF();AF();BF();wF();DF();CF();IF()});var kF=V(()=>{SF()});function E9($){let X=this;X.compiler=G;function G(Y){return IX(Y,{...X.data("settings"),...$,extensions:X.data("toMarkdownExtensions")||[]})}}var vF=V(()=>{kF()});var xF=V(()=>{vF()});function jX($){if($)throw $}var dF=d((Lm,uF)=>{var I9=Object.prototype.hasOwnProperty,pF=Object.prototype.toString,bF=Object.defineProperty,hF=Object.getOwnPropertyDescriptor,yF=function(X){if(typeof Array.isArray==="function")return Array.isArray(X);return pF.call(X)==="[object Array]"},fF=function(X){if(!X||pF.call(X)!=="[object Object]")return!1;var G=I9.call(X,"constructor"),Y=X.constructor&&X.constructor.prototype&&I9.call(X.constructor.prototype,"isPrototypeOf");if(X.constructor&&!G&&!Y)return!1;var J;for(J in X);return typeof J>"u"||I9.call(X,J)},gF=function(X,G){if(bF&&G.name==="__proto__")bF(X,G.name,{enumerable:!0,configurable:!0,value:G.newValue,writable:!0});else X[G.name]=G.newValue},mF=function(X,G){if(G==="__proto__"){if(!I9.call(X,G))return;else if(hF)return hF(X,G).value}return X[G]};uF.exports=function $(){var X,G,Y,J,W,H,U=arguments[0],F=1,M=arguments.length,Q=!1;if(typeof U==="boolean")Q=U,U=arguments[1]||{},F=2;if(U==null||typeof U!=="object"&&typeof U!=="function")U={};for(;F<M;++F)if(X=arguments[F],X!=null){for(G in X)if(Y=mF(U,G),J=mF(X,G),U!==J){if(Q&&J&&(fF(J)||(W=yF(J)))){if(W)W=!1,H=Y&&yF(Y)?Y:[];else H=Y&&fF(Y)?Y:{};gF(U,{name:G,newValue:$(Q,H,J)})}else if(typeof J<"u")gF(U,{name:G,newValue:J})}}return U}});function g4($){if(typeof $!=="object"||$===null)return!1;let X=Object.getPrototypeOf($);return(X===null||X===Object.prototype||Object.getPrototypeOf(X)===null)&&!(Symbol.toStringTag in $)&&!(Symbol.iterator in $)}function SX(){let $=[],X={run:G,use:Y};return X;function G(...J){let W=-1,H=J.pop();if(typeof H!=="function")throw TypeError("Expected function as last argument, not "+H);U(null,...J);function U(F,...M){let Q=$[++W],q=-1;if(F){H(F);return}while(++q<J.length)if(M[q]===null||M[q]===void 0)M[q]=J[q];if(J=M,Q)lF(Q,U)(...M);else H(null,...M)}}function Y(J){if(typeof J!=="function")throw TypeError("Expected `middelware` to be a function, not "+J);return $.push(J),X}}function lF($,X){let G;return Y;function Y(...H){let U=$.length>H.length,F;if(U)H.push(J);try{F=$.apply(this,H)}catch(M){let Q=M;if(U&&G)throw Q;return J(Q)}if(!U)if(F&&F.then&&typeof F.then==="function")F.then(W,J);else if(F instanceof Error)J(F);else W(F)}function J(H,...U){if(!G)G=!0,X(H,...U)}function W(H){J(null,H)}}var cF=()=>{};var e0;var rF=V(()=>{FX();e0=class e0 extends Error{constructor($,X,G){super();if(typeof X==="string")G=X,X=void 0;let Y="",J={},W=!1;if(X)if("line"in X&&"column"in X)J={place:X};else if("start"in X&&"end"in X)J={place:X};else if("type"in X)J={ancestors:[X],place:X.position};else J={...X};if(typeof $==="string")Y=$;else if(!J.cause&&$)W=!0,Y=$.message,J.cause=$;if(!J.ruleId&&!J.source&&typeof G==="string"){let U=G.indexOf(":");if(U===-1)J.ruleId=G;else J.source=G.slice(0,U),J.ruleId=G.slice(U+1)}if(!J.place&&J.ancestors&&J.ancestors){let U=J.ancestors[J.ancestors.length-1];if(U)J.place=U.position}let H=J.place&&"start"in J.place?J.place.start:J.place;this.ancestors=J.ancestors||void 0,this.cause=J.cause||void 0,this.column=H?H.column:void 0,this.fatal=void 0,this.file="",this.message=Y,this.line=H?H.line:void 0,this.name=n5(J.place)||"1:1",this.place=J.place||void 0,this.reason=this.message,this.ruleId=J.ruleId||void 0,this.source=J.source||void 0,this.stack=W&&J.cause&&typeof J.cause.stack==="string"?J.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};e0.prototype.file="";e0.prototype.name="";e0.prototype.reason="";e0.prototype.message="";e0.prototype.stack="";e0.prototype.column=void 0;e0.prototype.line=void 0;e0.prototype.ancestors=void 0;e0.prototype.cause=void 0;e0.prototype.fatal=void 0;e0.prototype.place=void 0;e0.prototype.ruleId=void 0;e0.prototype.source=void 0});var iF=V(()=>{rF()});import{default as n1}from"path";var nF=()=>{};import{default as oF}from"process";var sF=()=>{};function j9($){return Boolean($!==null&&typeof $==="object"&&"href"in $&&$.href&&"protocol"in $&&$.protocol&&$.auth===void 0)}import{fileURLToPath as aF}from"url";var tF=()=>{};class S9{constructor($){let X;if(!$)X={};else if(j9($))X={path:$};else if(typeof $==="string"||nP($))X={value:$};else X=$;this.cwd="cwd"in X?"":oF.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let G=-1;while(++G<kX.length){let J=kX[G];if(J in X&&X[J]!==void 0&&X[J]!==null)this[J]=J==="history"?[...X[J]]:X[J]}let Y;for(Y in X)if(!kX.includes(Y))this[Y]=X[Y]}get basename(){return typeof this.path==="string"?n1.basename(this.path):void 0}set basename($){xX($,"basename"),vX($,"basename"),this.path=n1.join(this.dirname||"",$)}get dirname(){return typeof this.path==="string"?n1.dirname(this.path):void 0}set dirname($){eF(this.basename,"dirname"),this.path=n1.join($||"",this.basename)}get extname(){return typeof this.path==="string"?n1.extname(this.path):void 0}set extname($){if(vX($,"extname"),eF(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=n1.join(this.dirname,this.stem+($||""))}get path(){return this.history[this.history.length-1]}set path($){if(j9($))$=aF($);if(xX($,"path"),this.path!==$)this.history.push($)}get stem(){return typeof this.path==="string"?n1.basename(this.path,this.extname):void 0}set stem($){xX($,"stem"),vX($,"stem"),this.path=n1.join(this.dirname||"",$+(this.extname||""))}fail($,X,G){let Y=this.message($,X,G);throw Y.fatal=!0,Y}info($,X,G){let Y=this.message($,X,G);return Y.fatal=void 0,Y}message($,X,G){let Y=new e0($,X,G);if(this.path)Y.name=this.path+":"+Y.name,Y.file=this.path;return Y.fatal=!1,this.messages.push(Y),Y}toString($){if(this.value===void 0)return"";if(typeof this.value==="string")return this.value;return new TextDecoder($||void 0).decode(this.value)}}function vX($,X){if($&&$.includes(n1.sep))throw Error("`"+X+"` cannot be a path: did not expect `"+n1.sep+"`")}function xX($,X){if(!$)throw Error("`"+X+"` cannot be empty")}function eF($,X){if(!$)throw Error("Setting `"+X+"` requires `path` to be set too")}function nP($){return Boolean($&&typeof $==="object"&&"byteLength"in $&&"byteOffset"in $)}var kX;var $M=V(()=>{iF();nF();sF();tF();kX=["history","path","basename","stem","extname","dirname"]});var XM=V(()=>{$M()});var GM=function($){let Y=this.constructor.prototype,J=Y[$],W=function(){return J.apply(W,arguments)};return Object.setPrototypeOf(W,Y),W};function bX($,X){if(typeof X!=="function")throw TypeError("Cannot `"+$+"` without `parser`")}function hX($,X){if(typeof X!=="function")throw TypeError("Cannot `"+$+"` without `compiler`")}function yX($,X){if(X)throw Error("Cannot call `"+$+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function YM($){if(!g4($)||typeof $.type!=="string")throw TypeError("Expected node, got `"+$+"`")}function JM($,X,G){if(!G)throw Error("`"+$+"` finished async. Use `"+X+"` instead")}function k9($){return sP($)?$:new S9($)}function sP($){return Boolean($&&typeof $==="object"&&"message"in $&&"messages"in $)}function aP($){return typeof $==="string"||tP($)}function tP($){return Boolean($&&typeof $==="object"&&"byteLength"in $&&"byteOffset"in $)}var v9,oP,fX,gX;var WM=V(()=>{O0();cF();XM();v9=j8(dF(),1),oP={}.hasOwnProperty;fX=class fX extends GM{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=SX()}copy(){let $=new fX,X=-1;while(++X<this.attachers.length){let G=this.attachers[X];$.use(...G)}return $.data(v9.default(!0,{},this.namespace)),$}data($,X){if(typeof $==="string"){if(arguments.length===2)return yX("data",this.frozen),this.namespace[$]=X,this;return oP.call(this.namespace,$)&&this.namespace[$]||void 0}if($)return yX("data",this.frozen),this.namespace=$,this;return this.namespace}freeze(){if(this.frozen)return this;let $=this;while(++this.freezeIndex<this.attachers.length){let[X,...G]=this.attachers[this.freezeIndex];if(G[0]===!1)continue;if(G[0]===!0)G[0]=void 0;let Y=X.call($,...G);if(typeof Y==="function")this.transformers.use(Y)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse($){this.freeze();let X=k9($),G=this.parser||this.Parser;return bX("parse",G),G(String(X),X)}process($,X){let G=this;return this.freeze(),bX("process",this.parser||this.Parser),hX("process",this.compiler||this.Compiler),X?Y(void 0,X):new Promise(Y);function Y(J,W){let H=k9($),U=G.parse(H);G.run(U,H,function(M,Q,q){if(M||!Q||!q)return F(M);let Z=Q,A=G.stringify(Z,q);if(aP(A))q.value=A;else q.result=A;F(M,q)});function F(M,Q){if(M||!Q)W(M);else if(J)J(Q);else B(X,"`done` is defined if `resolve` is not"),X(void 0,Q)}}}processSync($){let X=!1,G;return this.freeze(),bX("processSync",this.parser||this.Parser),hX("processSync",this.compiler||this.Compiler),this.process($,Y),JM("processSync","process",X),B(G,"we either bailed on an error or have a tree"),G;function Y(J,W){X=!0,jX(J),G=W}}run($,X,G){YM($),this.freeze();let Y=this.transformers;if(!G&&typeof X==="function")G=X,X=void 0;return G?J(void 0,G):new Promise(J);function J(W,H){B(typeof X!=="function","`file` can\u2019t be a `done` anymore, we checked");let U=k9(X);Y.run($,U,F);function F(M,Q,q){let Z=Q||$;if(M)H(M);else if(W)W(Z);else B(G,"`done` is defined if `resolve` is not"),G(void 0,Z,q)}}}runSync($,X){let G=!1,Y;return this.run($,X,J),JM("runSync","run",G),B(Y,"we either bailed on an error or have a tree"),Y;function J(W,H){jX(W),Y=H,G=!0}}stringify($,X){this.freeze();let G=k9(X),Y=this.compiler||this.Compiler;return hX("stringify",Y),YM($),Y($,G)}use($,...X){let G=this.attachers,Y=this.namespace;if(yX("use",this.frozen),$===null||$===void 0);else if(typeof $==="function")U($,X);else if(typeof $==="object")if(Array.isArray($))H($);else W($);else throw TypeError("Expected usable value, not `"+$+"`");return this;function J(F){if(typeof F==="function")U(F,[]);else if(typeof F==="object")if(Array.isArray(F)){let[M,...Q]=F;U(M,Q)}else W(F);else throw TypeError("Expected usable value, not `"+F+"`")}function W(F){if(!("plugins"in F)&&!("settings"in F))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(H(F.plugins),F.settings)Y.settings=v9.default(!0,Y.settings,F.settings)}function H(F){let M=-1;if(F===null||F===void 0);else if(Array.isArray(F))while(++M<F.length){let Q=F[M];J(Q)}else throw TypeError("Expected a list of plugins, not `"+F+"`")}function U(F,M){let Q=-1,q=-1;while(++Q<G.length)if(G[Q][0]===F){q=Q;break}if(q===-1)G.push([F,...M]);else if(M.length>0){let[Z,...A]=M,_=G[q][1];if(g4(_)&&g4(Z))Z=v9.default(!0,_,Z);G[q]=[F,Z,...A]}}}};gX=new fX().freeze()});var HM=V(()=>{WM()});var x9;var mX=V(()=>{VK();xF();HM();x9=gX().use(_9).use(E9).freeze()});function XL($){if(!$)return $L;let X=UM.get($);if(!X)X=new j4({gfm:!0,breaks:!0}),X.use({renderer:{image(G,Y,J){return $(G,Y,J)??!1}}}),UM.set($,X);return X}function pX($,X){let Y=XL(X?.imageRenderer).parse($);return Y=Y.replace(/<\/blockquote>\s*<p>(\u2014|--|\u2013)([\s\S]*?)<\/p>/g,`</blockquote>
134
- <cite class="block-attribution"><span class="emdash">$1</span>$2</cite>`),Y}var eP,Qp,$L,UM;var KM=V(()=>{yH();mX();eP=j8(z7(),1),Qp=x9(),$L=new j4({gfm:!0,breaks:!0}),UM=new WeakMap});class s5{callback;heartbeatInterval;constructor($){this.callback=$}static from($){if(!$)return;return new s5($)}createSub($){let{scale:X}=$??{};if(X){let{start:G,end:Y}=X,J=Y-G;return new s5(async(W)=>{let H=G+W.progress/(W.total??100)*J;await this.callback({...W,progress:H,total:100})})}return new s5(this.callback)}async report($){await this.callback($)}startHeartbeat($,X=5000){this.stopHeartbeat(),this.heartbeatInterval=setInterval(()=>{this.report({message:$,progress:0}).catch(()=>{})},X)}stopHeartbeat(){if(this.heartbeatInterval)clearInterval(this.heartbeatInterval),this.heartbeatInterval=void 0}toCallback(){return this.callback}}function PM($){return typeof $>"u"||$===null}function GL($){return typeof $==="object"&&$!==null}function YL($){if(Array.isArray($))return $;else if(PM($))return[];return[$]}function JL($,X){var G,Y,J,W;if(X){W=Object.keys(X);for(G=0,Y=W.length;G<Y;G+=1)J=W[G],$[J]=X[J]}return $}function WL($,X){var G="",Y;for(Y=0;Y<X;Y+=1)G+=$;return G}function HL($){return $===0&&Number.NEGATIVE_INFINITY===1/$}function LM($,X){var G="",Y=$.reason||"(unknown reason)";if(!$.mark)return Y;if($.mark.name)G+='in "'+$.mark.name+'" ';if(G+="("+($.mark.line+1)+":"+($.mark.column+1)+")",!X&&$.mark.snippet)G+=`
135
-
136
- `+$.mark.snippet;return Y+" "+G}function p4($,X){if(Error.call(this),this.name="YAMLException",this.reason=$,this.mark=X,this.message=LM(this,!1),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}function uX($,X,G,Y,J){var W="",H="",U=Math.floor(J/2)-1;if(Y-X>U)W=" ... ",X=Y-U+W.length;if(G-Y>U)H=" ...",G=Y+U-H.length;return{str:W+$.slice(X,G).replace(/\t/g,"\u2192")+H,pos:Y-X+W.length}}function dX($,X){return d0.repeat(" ",X-$.length)+$}function OL($,X){if(X=Object.create(X||null),!$.buffer)return null;if(!X.maxLength)X.maxLength=79;if(typeof X.indent!=="number")X.indent=1;if(typeof X.linesBefore!=="number")X.linesBefore=3;if(typeof X.linesAfter!=="number")X.linesAfter=2;var G=/\r?\n|\r|\0/g,Y=[0],J=[],W,H=-1;while(W=G.exec($.buffer))if(J.push(W.index),Y.push(W.index+W[0].length),$.position<=W.index&&H<0)H=Y.length-2;if(H<0)H=Y.length-1;var U="",F,M,Q=Math.min($.line+X.linesAfter,J.length).toString().length,q=X.maxLength-(X.indent+Q+3);for(F=1;F<=X.linesBefore;F++){if(H-F<0)break;M=uX($.buffer,Y[H-F],J[H-F],$.position-(Y[H]-Y[H-F]),q),U=d0.repeat(" ",X.indent)+dX(($.line-F+1).toString(),Q)+" | "+M.str+`
137
- `+U}M=uX($.buffer,Y[H],J[H],$.position,q),U+=d0.repeat(" ",X.indent)+dX(($.line+1).toString(),Q)+" | "+M.str+`
138
- `,U+=d0.repeat("-",X.indent+Q+3+M.pos)+`^
139
- `;for(F=1;F<=X.linesAfter;F++){if(H+F>=J.length)break;M=uX($.buffer,Y[H+F],J[H+F],$.position-(Y[H]-Y[H+F]),q),U+=d0.repeat(" ",X.indent)+dX(($.line+F+1).toString(),Q)+" | "+M.str+`
140
- `}return U.replace(/\n$/,"")}function VL($){var X={};if($!==null)Object.keys($).forEach(function(G){$[G].forEach(function(Y){X[String(Y)]=G})});return X}function BL($,X){if(X=X||{},Object.keys(X).forEach(function(G){if(ZL.indexOf(G)===-1)throw new z1('Unknown option "'+G+'" is met in definition of "'+$+'" YAML type.')}),this.options=X,this.tag=$,this.kind=X.kind||null,this.resolve=X.resolve||function(){return!0},this.construct=X.construct||function(G){return G},this.instanceOf=X.instanceOf||null,this.predicate=X.predicate||null,this.represent=X.represent||null,this.representName=X.representName||null,this.defaultStyle=X.defaultStyle||null,this.multi=X.multi||!1,this.styleAliases=VL(X.styleAliases||null),AL.indexOf(this.kind)===-1)throw new z1('Unknown kind "'+this.kind+'" is specified for "'+$+'" YAML type.')}function FM($,X){var G=[];return $[X].forEach(function(Y){var J=G.length;G.forEach(function(W,H){if(W.tag===Y.tag&&W.kind===Y.kind&&W.multi===Y.multi)J=H}),G[J]=Y}),G}function NL(){var $={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},X,G;function Y(J){if(J.multi)$.multi[J.kind].push(J),$.multi.fallback.push(J);else $[J.kind][J.tag]=$.fallback[J.tag]=J}for(X=0,G=arguments.length;X<G;X+=1)arguments[X].forEach(Y);return $}function cX($){return this.extend($)}function LL($){if($===null)return!0;var X=$.length;return X===1&&$==="~"||X===4&&($==="null"||$==="Null"||$==="NULL")}function CL(){return null}function TL($){return $===null}function IL($){if($===null)return!1;var X=$.length;return X===4&&($==="true"||$==="True"||$==="TRUE")||X===5&&($==="false"||$==="False"||$==="FALSE")}function jL($){return $==="true"||$==="True"||$==="TRUE"}function SL($){return Object.prototype.toString.call($)==="[object Boolean]"}function vL($){return 48<=$&&$<=57||65<=$&&$<=70||97<=$&&$<=102}function xL($){return 48<=$&&$<=55}function bL($){return 48<=$&&$<=57}function hL($){if($===null)return!1;var X=$.length,G=0,Y=!1,J;if(!X)return!1;if(J=$[G],J==="-"||J==="+")J=$[++G];if(J==="0"){if(G+1===X)return!0;if(J=$[++G],J==="b"){G++;for(;G<X;G++){if(J=$[G],J==="_")continue;if(J!=="0"&&J!=="1")return!1;Y=!0}return Y&&J!=="_"}if(J==="x"){G++;for(;G<X;G++){if(J=$[G],J==="_")continue;if(!vL($.charCodeAt(G)))return!1;Y=!0}return Y&&J!=="_"}if(J==="o"){G++;for(;G<X;G++){if(J=$[G],J==="_")continue;if(!xL($.charCodeAt(G)))return!1;Y=!0}return Y&&J!=="_"}}if(J==="_")return!1;for(;G<X;G++){if(J=$[G],J==="_")continue;if(!bL($.charCodeAt(G)))return!1;Y=!0}if(!Y||J==="_")return!1;return!0}function yL($){var X=$,G=1,Y;if(X.indexOf("_")!==-1)X=X.replace(/_/g,"");if(Y=X[0],Y==="-"||Y==="+"){if(Y==="-")G=-1;X=X.slice(1),Y=X[0]}if(X==="0")return 0;if(Y==="0"){if(X[1]==="b")return G*parseInt(X.slice(2),2);if(X[1]==="x")return G*parseInt(X.slice(2),16);if(X[1]==="o")return G*parseInt(X.slice(2),8)}return G*parseInt(X,10)}function fL($){return Object.prototype.toString.call($)==="[object Number]"&&($%1===0&&!d0.isNegativeZero($))}function pL($){if($===null)return!1;if(!mL.test($)||$[$.length-1]==="_")return!1;return!0}function uL($){var X,G;if(X=$.replace(/_/g,"").toLowerCase(),G=X[0]==="-"?-1:1,"+-".indexOf(X[0])>=0)X=X.slice(1);if(X===".inf")return G===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(X===".nan")return NaN;return G*parseFloat(X,10)}function lL($,X){var G;if(isNaN($))switch(X){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===$)switch(X){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===$)switch(X){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(d0.isNegativeZero($))return"-0.0";return G=$.toString(10),dL.test(G)?G.replace("e",".e"):G}function cL($){return Object.prototype.toString.call($)==="[object Number]"&&($%1!==0||d0.isNegativeZero($))}function oL($){if($===null)return!1;if(CM.exec($)!==null)return!0;if(TM.exec($)!==null)return!0;return!1}function sL($){var X,G,Y,J,W,H,U,F=0,M=null,Q,q,Z;if(X=CM.exec($),X===null)X=TM.exec($);if(X===null)throw Error("Date resolve error");if(G=+X[1],Y=+X[2]-1,J=+X[3],!X[4])return new Date(Date.UTC(G,Y,J));if(W=+X[4],H=+X[5],U=+X[6],X[7]){F=X[7].slice(0,3);while(F.length<3)F+="0";F=+F}if(X[9]){if(Q=+X[10],q=+(X[11]||0),M=(Q*60+q)*60000,X[9]==="-")M=-M}if(Z=new Date(Date.UTC(G,Y,J,W,H,U,F)),M)Z.setTime(Z.getTime()-M);return Z}function aL($){return $.toISOString()}function eL($){return $==="<<"||$===null}function XC($){if($===null)return!1;var X,G,Y=0,J=$.length,W=sX;for(G=0;G<J;G++){if(X=W.indexOf($.charAt(G)),X>64)continue;if(X<0)return!1;Y+=6}return Y%8===0}function GC($){var X,G,Y=$.replace(/[\r\n=]/g,""),J=Y.length,W=sX,H=0,U=[];for(X=0;X<J;X++){if(X%4===0&&X)U.push(H>>16&255),U.push(H>>8&255),U.push(H&255);H=H<<6|W.indexOf(Y.charAt(X))}if(G=J%4*6,G===0)U.push(H>>16&255),U.push(H>>8&255),U.push(H&255);else if(G===18)U.push(H>>10&255),U.push(H>>2&255);else if(G===12)U.push(H>>4&255);return new Uint8Array(U)}function YC($){var X="",G=0,Y,J,W=$.length,H=sX;for(Y=0;Y<W;Y++){if(Y%3===0&&Y)X+=H[G>>18&63],X+=H[G>>12&63],X+=H[G>>6&63],X+=H[G&63];G=(G<<8)+$[Y]}if(J=W%3,J===0)X+=H[G>>18&63],X+=H[G>>12&63],X+=H[G>>6&63],X+=H[G&63];else if(J===2)X+=H[G>>10&63],X+=H[G>>4&63],X+=H[G<<2&63],X+=H[64];else if(J===1)X+=H[G>>2&63],X+=H[G<<4&63],X+=H[64],X+=H[64];return X}function JC($){return Object.prototype.toString.call($)==="[object Uint8Array]"}function KC($){if($===null)return!0;var X=[],G,Y,J,W,H,U=$;for(G=0,Y=U.length;G<Y;G+=1){if(J=U[G],H=!1,UC.call(J)!=="[object Object]")return!1;for(W in J)if(HC.call(J,W))if(!H)H=!0;else return!1;if(!H)return!1;if(X.indexOf(W)===-1)X.push(W);else return!1}return!0}function FC($){return $!==null?$:[]}function qC($){if($===null)return!0;var X,G,Y,J,W,H=$;W=Array(H.length);for(X=0,G=H.length;X<G;X+=1){if(Y=H[X],QC.call(Y)!=="[object Object]")return!1;if(J=Object.keys(Y),J.length!==1)return!1;W[X]=[J[0],Y[J[0]]]}return!0}function OC($){if($===null)return[];var X,G,Y,J,W,H=$;W=Array(H.length);for(X=0,G=H.length;X<G;X+=1)Y=H[X],J=Object.keys(Y),W[X]=[J[0],Y[J[0]]];return W}function AC($){if($===null)return!0;var X,G=$;for(X in G)if(ZC.call(G,X)){if(G[X]!==null)return!1}return!0}function VC($){return $!==null?$:{}}function QM($){return Object.prototype.toString.call($)}function H5($){return $===10||$===13}function p2($){return $===9||$===32}function D1($){return $===9||$===32||$===10||$===13}function k6($){return $===44||$===91||$===93||$===123||$===125}function DC($){var X;if(48<=$&&$<=57)return $-48;if(X=$|32,97<=X&&X<=102)return X-97+10;return-1}function PC($){if($===120)return 2;if($===117)return 4;if($===85)return 8;return 0}function LC($){if(48<=$&&$<=57)return $-48;return-1}function qM($){return $===48?"\x00":$===97?"\x07":$===98?"\b":$===116?"\t":$===9?"\t":$===110?`
141
- `:$===118?"\v":$===102?"\f":$===114?"\r":$===101?"\x1B":$===32?" ":$===34?'"':$===47?"/":$===92?"\\":$===78?"\x85":$===95?"\xA0":$===76?"\u2028":$===80?"\u2029":""}function CC($){if($<=65535)return String.fromCharCode($);return String.fromCharCode(($-65536>>10)+55296,($-65536&1023)+56320)}function vM($,X,G){if(X==="__proto__")Object.defineProperty($,X,{configurable:!0,enumerable:!0,writable:!0,value:G});else $[X]=G}function TC($,X){this.input=$,this.filename=X.filename||null,this.schema=X.schema||EM,this.onWarning=X.onWarning||null,this.legacy=X.legacy||!1,this.json=X.json||!1,this.listener=X.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=$.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function hM($,X){var G={name:$.filename,buffer:$.input.slice(0,-1),position:$.position,line:$.line,column:$.position-$.lineStart};return G.snippet=RL(G),new z1(X,G)}function p($,X){throw hM($,X)}function y9($,X){if($.onWarning)$.onWarning.call(null,hM($,X))}function t5($,X,G,Y){var J,W,H,U;if(X<G){if(U=$.input.slice(X,G),Y){for(J=0,W=U.length;J<W;J+=1)if(H=U.charCodeAt(J),!(H===9||32<=H&&H<=1114111))p($,"expected valid JSON character")}else if(wC.test(U))p($,"the stream contains non-printable characters");$.result+=U}}function RM($,X,G,Y){var J,W,H,U;if(!d0.isObject(G))p($,"cannot merge mappings; the provided source object is unacceptable");J=Object.keys(G);for(H=0,U=J.length;H<U;H+=1)if(W=J[H],!e5.call(X,W))vM(X,W,G[W]),Y[W]=!0}function v6($,X,G,Y,J,W,H,U,F){var M,Q;if(Array.isArray(J)){J=Array.prototype.slice.call(J);for(M=0,Q=J.length;M<Q;M+=1){if(Array.isArray(J[M]))p($,"nested arrays are not supported inside keys");if(typeof J==="object"&&QM(J[M])==="[object Object]")J[M]="[object Object]"}}if(typeof J==="object"&&QM(J)==="[object Object]")J="[object Object]";if(J=String(J),X===null)X={};if(Y==="tag:yaml.org,2002:merge")if(Array.isArray(W))for(M=0,Q=W.length;M<Q;M+=1)RM($,X,W[M],G);else RM($,X,W,G);else{if(!$.json&&!e5.call(G,J)&&e5.call(X,J))$.line=H||$.line,$.lineStart=U||$.lineStart,$.position=F||$.position,p($,"duplicated mapping key");vM(X,J,W),delete G[J]}return X}function aX($){var X=$.input.charCodeAt($.position);if(X===10)$.position++;else if(X===13){if($.position++,$.input.charCodeAt($.position)===10)$.position++}else p($,"a line break is expected");$.line+=1,$.lineStart=$.position,$.firstTabInLine=-1}function g0($,X,G){var Y=0,J=$.input.charCodeAt($.position);while(J!==0){while(p2(J)){if(J===9&&$.firstTabInLine===-1)$.firstTabInLine=$.position;J=$.input.charCodeAt(++$.position)}if(X&&J===35)do J=$.input.charCodeAt(++$.position);while(J!==10&&J!==13&&J!==0);if(H5(J)){aX($),J=$.input.charCodeAt($.position),Y++,$.lineIndent=0;while(J===32)$.lineIndent++,J=$.input.charCodeAt(++$.position)}else break}if(G!==-1&&Y!==0&&$.lineIndent<G)y9($,"deficient indentation");return Y}function m9($){var X=$.position,G;if(G=$.input.charCodeAt(X),(G===45||G===46)&&G===$.input.charCodeAt(X+1)&&G===$.input.charCodeAt(X+2)){if(X+=3,G=$.input.charCodeAt(X),G===0||D1(G))return!0}return!1}function tX($,X){if(X===1)$.result+=" ";else if(X>1)$.result+=d0.repeat(`
142
- `,X-1)}function EC($,X,G){var Y,J,W,H,U,F,M,Q,q=$.kind,Z=$.result,A;if(A=$.input.charCodeAt($.position),D1(A)||k6(A)||A===35||A===38||A===42||A===33||A===124||A===62||A===39||A===34||A===37||A===64||A===96)return!1;if(A===63||A===45){if(J=$.input.charCodeAt($.position+1),D1(J)||G&&k6(J))return!1}$.kind="scalar",$.result="",W=H=$.position,U=!1;while(A!==0){if(A===58){if(J=$.input.charCodeAt($.position+1),D1(J)||G&&k6(J))break}else if(A===35){if(Y=$.input.charCodeAt($.position-1),D1(Y))break}else if($.position===$.lineStart&&m9($)||G&&k6(A))break;else if(H5(A))if(F=$.line,M=$.lineStart,Q=$.lineIndent,g0($,!1,-1),$.lineIndent>=X){U=!0,A=$.input.charCodeAt($.position);continue}else{$.position=H,$.line=F,$.lineStart=M,$.lineIndent=Q;break}if(U)t5($,W,H,!1),tX($,$.line-F),W=H=$.position,U=!1;if(!p2(A))H=$.position+1;A=$.input.charCodeAt(++$.position)}if(t5($,W,H,!1),$.result)return!0;return $.kind=q,$.result=Z,!1}function IC($,X){var G,Y,J;if(G=$.input.charCodeAt($.position),G!==39)return!1;$.kind="scalar",$.result="",$.position++,Y=J=$.position;while((G=$.input.charCodeAt($.position))!==0)if(G===39)if(t5($,Y,$.position,!0),G=$.input.charCodeAt(++$.position),G===39)Y=$.position,$.position++,J=$.position;else return!0;else if(H5(G))t5($,Y,J,!0),tX($,g0($,!1,X)),Y=J=$.position;else if($.position===$.lineStart&&m9($))p($,"unexpected end of the document within a single quoted scalar");else $.position++,J=$.position;p($,"unexpected end of the stream within a single quoted scalar")}function jC($,X){var G,Y,J,W,H,U;if(U=$.input.charCodeAt($.position),U!==34)return!1;$.kind="scalar",$.result="",$.position++,G=Y=$.position;while((U=$.input.charCodeAt($.position))!==0)if(U===34)return t5($,G,$.position,!0),$.position++,!0;else if(U===92){if(t5($,G,$.position,!0),U=$.input.charCodeAt(++$.position),H5(U))g0($,!1,X);else if(U<256&&xM[U])$.result+=bM[U],$.position++;else if((H=PC(U))>0){J=H,W=0;for(;J>0;J--)if(U=$.input.charCodeAt(++$.position),(H=DC(U))>=0)W=(W<<4)+H;else p($,"expected hexadecimal character");$.result+=CC(W),$.position++}else p($,"unknown escape sequence");G=Y=$.position}else if(H5(U))t5($,G,Y,!0),tX($,g0($,!1,X)),G=Y=$.position;else if($.position===$.lineStart&&m9($))p($,"unexpected end of the document within a double quoted scalar");else $.position++,Y=$.position;p($,"unexpected end of the stream within a double quoted scalar")}function SC($,X){var G=!0,Y,J,W,H=$.tag,U,F=$.anchor,M,Q,q,Z,A,_=Object.create(null),z,D,P,b;if(b=$.input.charCodeAt($.position),b===91)Q=93,A=!1,U=[];else if(b===123)Q=125,A=!0,U={};else return!1;if($.anchor!==null)$.anchorMap[$.anchor]=U;b=$.input.charCodeAt(++$.position);while(b!==0){if(g0($,!0,X),b=$.input.charCodeAt($.position),b===Q)return $.position++,$.tag=H,$.anchor=F,$.kind=A?"mapping":"sequence",$.result=U,!0;else if(!G)p($,"missed comma between flow collection entries");else if(b===44)p($,"expected the node content, but found ','");if(D=z=P=null,q=Z=!1,b===63){if(M=$.input.charCodeAt($.position+1),D1(M))q=Z=!0,$.position++,g0($,!0,X)}if(Y=$.line,J=$.lineStart,W=$.position,x6($,X,b9,!1,!0),D=$.tag,z=$.result,g0($,!0,X),b=$.input.charCodeAt($.position),(Z||$.line===Y)&&b===58)q=!0,b=$.input.charCodeAt(++$.position),g0($,!0,X),x6($,X,b9,!1,!0),P=$.result;if(A)v6($,U,_,D,z,P,Y,J,W);else if(q)U.push(v6($,null,_,D,z,P,Y,J,W));else U.push(z);if(g0($,!0,X),b=$.input.charCodeAt($.position),b===44)G=!0,b=$.input.charCodeAt(++$.position);else G=!1}p($,"unexpected end of the stream within a flow collection")}function kC($,X){var G,Y,J=lX,W=!1,H=!1,U=X,F=0,M=!1,Q,q;if(q=$.input.charCodeAt($.position),q===124)Y=!1;else if(q===62)Y=!0;else return!1;$.kind="scalar",$.result="";while(q!==0)if(q=$.input.charCodeAt(++$.position),q===43||q===45)if(lX===J)J=q===43?MM:NC;else p($,"repeat of a chomping mode identifier");else if((Q=LC(q))>=0)if(Q===0)p($,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!H)U=X+Q-1,H=!0;else p($,"repeat of an indentation width identifier");else break;if(p2(q)){do q=$.input.charCodeAt(++$.position);while(p2(q));if(q===35)do q=$.input.charCodeAt(++$.position);while(!H5(q)&&q!==0)}while(q!==0){aX($),$.lineIndent=0,q=$.input.charCodeAt($.position);while((!H||$.lineIndent<U)&&q===32)$.lineIndent++,q=$.input.charCodeAt(++$.position);if(!H&&$.lineIndent>U)U=$.lineIndent;if(H5(q)){F++;continue}if($.lineIndent<U){if(J===MM)$.result+=d0.repeat(`
143
- `,W?1+F:F);else if(J===lX){if(W)$.result+=`
144
- `}break}if(Y)if(p2(q))M=!0,$.result+=d0.repeat(`
145
- `,W?1+F:F);else if(M)M=!1,$.result+=d0.repeat(`
146
- `,F+1);else if(F===0){if(W)$.result+=" "}else $.result+=d0.repeat(`
147
- `,F);else $.result+=d0.repeat(`
148
- `,W?1+F:F);W=!0,H=!0,F=0,G=$.position;while(!H5(q)&&q!==0)q=$.input.charCodeAt(++$.position);t5($,G,$.position,!1)}return!0}function ZM($,X){var G,Y=$.tag,J=$.anchor,W=[],H,U=!1,F;if($.firstTabInLine!==-1)return!1;if($.anchor!==null)$.anchorMap[$.anchor]=W;F=$.input.charCodeAt($.position);while(F!==0){if($.firstTabInLine!==-1)$.position=$.firstTabInLine,p($,"tab characters must not be used in indentation");if(F!==45)break;if(H=$.input.charCodeAt($.position+1),!D1(H))break;if(U=!0,$.position++,g0($,!0,-1)){if($.lineIndent<=X){W.push(null),F=$.input.charCodeAt($.position);continue}}if(G=$.line,x6($,X,jM,!1,!0),W.push($.result),g0($,!0,-1),F=$.input.charCodeAt($.position),($.line===G||$.lineIndent>X)&&F!==0)p($,"bad indentation of a sequence entry");else if($.lineIndent<X)break}if(U)return $.tag=Y,$.anchor=J,$.kind="sequence",$.result=W,!0;return!1}function vC($,X,G){var Y,J,W,H,U,F,M=$.tag,Q=$.anchor,q={},Z=Object.create(null),A=null,_=null,z=null,D=!1,P=!1,b;if($.firstTabInLine!==-1)return!1;if($.anchor!==null)$.anchorMap[$.anchor]=q;b=$.input.charCodeAt($.position);while(b!==0){if(!D&&$.firstTabInLine!==-1)$.position=$.firstTabInLine,p($,"tab characters must not be used in indentation");if(Y=$.input.charCodeAt($.position+1),W=$.line,(b===63||b===58)&&D1(Y)){if(b===63){if(D)v6($,q,Z,A,_,null,H,U,F),A=_=z=null;P=!0,D=!0,J=!0}else if(D)D=!1,J=!0;else p($,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");$.position+=1,b=Y}else{if(H=$.line,U=$.lineStart,F=$.position,!x6($,G,IM,!1,!0))break;if($.line===W){b=$.input.charCodeAt($.position);while(p2(b))b=$.input.charCodeAt(++$.position);if(b===58){if(b=$.input.charCodeAt(++$.position),!D1(b))p($,"a whitespace character is expected after the key-value separator within a block mapping");if(D)v6($,q,Z,A,_,null,H,U,F),A=_=z=null;P=!0,D=!1,J=!1,A=$.tag,_=$.result}else if(P)p($,"can not read an implicit mapping pair; a colon is missed");else return $.tag=M,$.anchor=Q,!0}else if(P)p($,"can not read a block mapping entry; a multiline key may not be an implicit key");else return $.tag=M,$.anchor=Q,!0}if($.line===W||$.lineIndent>X){if(D)H=$.line,U=$.lineStart,F=$.position;if(x6($,X,h9,!0,J))if(D)_=$.result;else z=$.result;if(!D)v6($,q,Z,A,_,z,H,U,F),A=_=z=null;g0($,!0,-1),b=$.input.charCodeAt($.position)}if(($.line===W||$.lineIndent>X)&&b!==0)p($,"bad indentation of a mapping entry");else if($.lineIndent<X)break}if(D)v6($,q,Z,A,_,null,H,U,F);if(P)$.tag=M,$.anchor=Q,$.kind="mapping",$.result=q;return P}function xC($){var X,G=!1,Y=!1,J,W,H;if(H=$.input.charCodeAt($.position),H!==33)return!1;if($.tag!==null)p($,"duplication of a tag property");if(H=$.input.charCodeAt(++$.position),H===60)G=!0,H=$.input.charCodeAt(++$.position);else if(H===33)Y=!0,J="!!",H=$.input.charCodeAt(++$.position);else J="!";if(X=$.position,G){do H=$.input.charCodeAt(++$.position);while(H!==0&&H!==62);if($.position<$.length)W=$.input.slice(X,$.position),H=$.input.charCodeAt(++$.position);else p($,"unexpected end of the stream within a verbatim tag")}else{while(H!==0&&!D1(H)){if(H===33)if(!Y){if(J=$.input.slice(X-1,$.position+1),!SM.test(J))p($,"named tag handle cannot contain such characters");Y=!0,X=$.position+1}else p($,"tag suffix cannot contain exclamation marks");H=$.input.charCodeAt(++$.position)}if(W=$.input.slice(X,$.position),zC.test(W))p($,"tag suffix cannot contain flow indicator characters")}if(W&&!kM.test(W))p($,"tag name cannot contain such characters: "+W);try{W=decodeURIComponent(W)}catch(U){p($,"tag name is malformed: "+W)}if(G)$.tag=W;else if(e5.call($.tagMap,J))$.tag=$.tagMap[J]+W;else if(J==="!")$.tag="!"+W;else if(J==="!!")$.tag="tag:yaml.org,2002:"+W;else p($,'undeclared tag handle "'+J+'"');return!0}function bC($){var X,G;if(G=$.input.charCodeAt($.position),G!==38)return!1;if($.anchor!==null)p($,"duplication of an anchor property");G=$.input.charCodeAt(++$.position),X=$.position;while(G!==0&&!D1(G)&&!k6(G))G=$.input.charCodeAt(++$.position);if($.position===X)p($,"name of an anchor node must contain at least one character");return $.anchor=$.input.slice(X,$.position),!0}function hC($){var X,G,Y;if(Y=$.input.charCodeAt($.position),Y!==42)return!1;Y=$.input.charCodeAt(++$.position),X=$.position;while(Y!==0&&!D1(Y)&&!k6(Y))Y=$.input.charCodeAt(++$.position);if($.position===X)p($,"name of an alias node must contain at least one character");if(G=$.input.slice(X,$.position),!e5.call($.anchorMap,G))p($,'unidentified alias "'+G+'"');return $.result=$.anchorMap[G],g0($,!0,-1),!0}function x6($,X,G,Y,J){var W,H,U,F=1,M=!1,Q=!1,q,Z,A,_,z,D;if($.listener!==null)$.listener("open",$);if($.tag=null,$.anchor=null,$.kind=null,$.result=null,W=H=U=h9===G||jM===G,Y){if(g0($,!0,-1)){if(M=!0,$.lineIndent>X)F=1;else if($.lineIndent===X)F=0;else if($.lineIndent<X)F=-1}}if(F===1)while(xC($)||bC($))if(g0($,!0,-1)){if(M=!0,U=W,$.lineIndent>X)F=1;else if($.lineIndent===X)F=0;else if($.lineIndent<X)F=-1}else U=!1;if(U)U=M||J;if(F===1||h9===G){if(b9===G||IM===G)z=X;else z=X+1;if(D=$.position-$.lineStart,F===1)if(U&&(ZM($,D)||vC($,D,z))||SC($,z))Q=!0;else{if(H&&kC($,z)||IC($,z)||jC($,z))Q=!0;else if(hC($)){if(Q=!0,$.tag!==null||$.anchor!==null)p($,"alias node should not have any properties")}else if(EC($,z,b9===G)){if(Q=!0,$.tag===null)$.tag="?"}if($.anchor!==null)$.anchorMap[$.anchor]=$.result}else if(F===0)Q=U&&ZM($,D)}if($.tag===null){if($.anchor!==null)$.anchorMap[$.anchor]=$.result}else if($.tag==="?"){if($.result!==null&&$.kind!=="scalar")p($,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+$.kind+'"');for(q=0,Z=$.implicitTypes.length;q<Z;q+=1)if(_=$.implicitTypes[q],_.resolve($.result)){if($.result=_.construct($.result),$.tag=_.tag,$.anchor!==null)$.anchorMap[$.anchor]=$.result;break}}else if($.tag!=="!"){if(e5.call($.typeMap[$.kind||"fallback"],$.tag))_=$.typeMap[$.kind||"fallback"][$.tag];else{_=null,A=$.typeMap.multi[$.kind||"fallback"];for(q=0,Z=A.length;q<Z;q+=1)if($.tag.slice(0,A[q].tag.length)===A[q].tag){_=A[q];break}}if(!_)p($,"unknown tag !<"+$.tag+">");if($.result!==null&&_.kind!==$.kind)p($,"unacceptable node kind for !<"+$.tag+'> tag; it should be "'+_.kind+'", not "'+$.kind+'"');if(!_.resolve($.result,$.tag))p($,"cannot resolve a node with !<"+$.tag+"> explicit tag");else if($.result=_.construct($.result,$.tag),$.anchor!==null)$.anchorMap[$.anchor]=$.result}if($.listener!==null)$.listener("close",$);return $.tag!==null||$.anchor!==null||Q}function yC($){var X=$.position,G,Y,J,W=!1,H;$.version=null,$.checkLineBreaks=$.legacy,$.tagMap=Object.create(null),$.anchorMap=Object.create(null);while((H=$.input.charCodeAt($.position))!==0){if(g0($,!0,-1),H=$.input.charCodeAt($.position),$.lineIndent>0||H!==37)break;W=!0,H=$.input.charCodeAt(++$.position),G=$.position;while(H!==0&&!D1(H))H=$.input.charCodeAt(++$.position);if(Y=$.input.slice(G,$.position),J=[],Y.length<1)p($,"directive name must not be less than one character in length");while(H!==0){while(p2(H))H=$.input.charCodeAt(++$.position);if(H===35){do H=$.input.charCodeAt(++$.position);while(H!==0&&!H5(H));break}if(H5(H))break;G=$.position;while(H!==0&&!D1(H))H=$.input.charCodeAt(++$.position);J.push($.input.slice(G,$.position))}if(H!==0)aX($);if(e5.call(OM,Y))OM[Y]($,Y,J);else y9($,'unknown document directive "'+Y+'"')}if(g0($,!0,-1),$.lineIndent===0&&$.input.charCodeAt($.position)===45&&$.input.charCodeAt($.position+1)===45&&$.input.charCodeAt($.position+2)===45)$.position+=3,g0($,!0,-1);else if(W)p($,"directives end mark is expected");if(x6($,$.lineIndent-1,h9,!1,!0),g0($,!0,-1),$.checkLineBreaks&&_C.test($.input.slice(X,$.position)))y9($,"non-ASCII line breaks are interpreted as content");if($.documents.push($.result),$.position===$.lineStart&&m9($)){if($.input.charCodeAt($.position)===46)$.position+=3,g0($,!0,-1);return}if($.position<$.length-1)p($,"end of the stream or a document separator is expected");else return}function yM($,X){if($=String($),X=X||{},$.length!==0){if($.charCodeAt($.length-1)!==10&&$.charCodeAt($.length-1)!==13)$+=`
149
- `;if($.charCodeAt(0)===65279)$=$.slice(1)}var G=new TC($,X),Y=$.indexOf("\x00");if(Y!==-1)G.position=Y,p(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)yC(G);return G.documents}function fC($,X,G){if(X!==null&&typeof X==="object"&&typeof G>"u")G=X,X=null;var Y=yM($,G);if(typeof X!=="function")return Y;for(var J=0,W=Y.length;J<W;J+=1)X(Y[J])}function gC($,X){var G=yM($,X);if(G.length===0)return;else if(G.length===1)return G[0];throw new z1("expected a single document in the stream, but found more")}function HT($,X){var G,Y,J,W,H,U,F;if(X===null)return{};G={},Y=Object.keys(X);for(J=0,W=Y.length;J<W;J+=1){if(H=Y[J],U=String(X[H]),H.slice(0,2)==="!!")H="tag:yaml.org,2002:"+H.slice(2);if(F=$.compiledTypeMap.fallback[H],F&&mM.call(F.styleAliases,U))U=F.styleAliases[U];G[H]=U}return G}function UT($){var X,G,Y;if(X=$.toString(16).toUpperCase(),$<=255)G="x",Y=2;else if($<=65535)G="u",Y=4;else if($<=4294967295)G="U",Y=8;else throw new z1("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+G+d0.repeat("0",Y-X.length)+X}function FT($){this.schema=$.schema||EM,this.indent=Math.max(1,$.indent||2),this.noArrayIndent=$.noArrayIndent||!1,this.skipInvalid=$.skipInvalid||!1,this.flowLevel=d0.isNothing($.flowLevel)?-1:$.flowLevel,this.styleMap=HT(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==='"'?d4:KT,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 AM($,X){var G=d0.repeat(" ",X),Y=0,J=-1,W="",H,U=$.length;while(Y<U){if(J=$.indexOf(`
133
+ `;return J;function W(H){return Y.stack.push(H),U;function U(){Y.stack.pop()}}}function lP($){throw Error("Cannot handle value `"+$+"`, expected node")}function cP($){throw Error("Cannot handle unknown node `"+$.type+"`")}function rP($,X){if($.type==="definition"&&$.type===X.type)return 0}function iP($,X){return _F($,this,X)}function nP($,X){return DF($,this,X)}function oP($,X){return TF(this,$,X)}var jF=B(()=>{NK();_K();OF();RF();BF();NF();zF();LF();EF()});var SF=B(()=>{jF()});function k9($){let X=this;X.compiler=G;function G(Y){return vX(Y,{...X.data("settings"),...$,extensions:X.data("toMarkdownExtensions")||[]})}}var kF=B(()=>{SF()});var vF=B(()=>{kF()});function xX($){if($)throw $}var uF=d((dm,pF)=>{var v9=Object.prototype.hasOwnProperty,mF=Object.prototype.toString,xF=Object.defineProperty,bF=Object.getOwnPropertyDescriptor,hF=function(X){if(typeof Array.isArray==="function")return Array.isArray(X);return mF.call(X)==="[object Array]"},yF=function(X){if(!X||mF.call(X)!=="[object Object]")return!1;var G=v9.call(X,"constructor"),Y=X.constructor&&X.constructor.prototype&&v9.call(X.constructor.prototype,"isPrototypeOf");if(X.constructor&&!G&&!Y)return!1;var J;for(J in X);return typeof J>"u"||v9.call(X,J)},fF=function(X,G){if(xF&&G.name==="__proto__")xF(X,G.name,{enumerable:!0,configurable:!0,value:G.newValue,writable:!0});else X[G.name]=G.newValue},gF=function(X,G){if(G==="__proto__"){if(!v9.call(X,G))return;else if(bF)return bF(X,G).value}return X[G]};pF.exports=function $(){var X,G,Y,J,W,H,U=arguments[0],F=1,M=arguments.length,Q=!1;if(typeof U==="boolean")Q=U,U=arguments[1]||{},F=2;if(U==null||typeof U!=="object"&&typeof U!=="function")U={};for(;F<M;++F)if(X=arguments[F],X!=null){for(G in X)if(Y=gF(U,G),J=gF(X,G),U!==J){if(Q&&J&&(yF(J)||(W=hF(J)))){if(W)W=!1,H=Y&&hF(Y)?Y:[];else H=Y&&yF(Y)?Y:{};fF(U,{name:G,newValue:$(Q,H,J)})}else if(typeof J<"u")fF(U,{name:G,newValue:J})}}return U}});function m4($){if(typeof $!=="object"||$===null)return!1;let X=Object.getPrototypeOf($);return(X===null||X===Object.prototype||Object.getPrototypeOf(X)===null)&&!(Symbol.toStringTag in $)&&!(Symbol.iterator in $)}function bX(){let $=[],X={run:G,use:Y};return X;function G(...J){let W=-1,H=J.pop();if(typeof H!=="function")throw TypeError("Expected function as last argument, not "+H);U(null,...J);function U(F,...M){let Q=$[++W],q=-1;if(F){H(F);return}while(++q<J.length)if(M[q]===null||M[q]===void 0)M[q]=J[q];if(J=M,Q)dF(Q,U)(...M);else H(null,...M)}}function Y(J){if(typeof J!=="function")throw TypeError("Expected `middelware` to be a function, not "+J);return $.push(J),X}}function dF($,X){let G;return Y;function Y(...H){let U=$.length>H.length,F;if(U)H.push(J);try{F=$.apply(this,H)}catch(M){let Q=M;if(U&&G)throw Q;return J(Q)}if(!U)if(F&&F.then&&typeof F.then==="function")F.then(W,J);else if(F instanceof Error)J(F);else W(F)}function J(H,...U){if(!G)G=!0,X(H,...U)}function W(H){J(null,H)}}var lF=()=>{};var $1;var cF=B(()=>{OX();$1=class $1 extends Error{constructor($,X,G){super();if(typeof X==="string")G=X,X=void 0;let Y="",J={},W=!1;if(X)if("line"in X&&"column"in X)J={place:X};else if("start"in X&&"end"in X)J={place:X};else if("type"in X)J={ancestors:[X],place:X.position};else J={...X};if(typeof $==="string")Y=$;else if(!J.cause&&$)W=!0,Y=$.message,J.cause=$;if(!J.ruleId&&!J.source&&typeof G==="string"){let U=G.indexOf(":");if(U===-1)J.ruleId=G;else J.source=G.slice(0,U),J.ruleId=G.slice(U+1)}if(!J.place&&J.ancestors&&J.ancestors){let U=J.ancestors[J.ancestors.length-1];if(U)J.place=U.position}let H=J.place&&"start"in J.place?J.place.start:J.place;this.ancestors=J.ancestors||void 0,this.cause=J.cause||void 0,this.column=H?H.column:void 0,this.fatal=void 0,this.file="",this.message=Y,this.line=H?H.line:void 0,this.name=i5(J.place)||"1:1",this.place=J.place||void 0,this.reason=this.message,this.ruleId=J.ruleId||void 0,this.source=J.source||void 0,this.stack=W&&J.cause&&typeof J.cause.stack==="string"?J.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};$1.prototype.file="";$1.prototype.name="";$1.prototype.reason="";$1.prototype.message="";$1.prototype.stack="";$1.prototype.column=void 0;$1.prototype.line=void 0;$1.prototype.ancestors=void 0;$1.prototype.cause=void 0;$1.prototype.fatal=void 0;$1.prototype.place=void 0;$1.prototype.ruleId=void 0;$1.prototype.source=void 0});var rF=B(()=>{cF()});import{default as i1}from"path";var iF=()=>{};import{default as nF}from"process";var oF=()=>{};function x9($){return Boolean($!==null&&typeof $==="object"&&"href"in $&&$.href&&"protocol"in $&&$.protocol&&$.auth===void 0)}import{fileURLToPath as sF}from"url";var aF=()=>{};class b9{constructor($){let X;if(!$)X={};else if(x9($))X={path:$};else if(typeof $==="string"||sP($))X={value:$};else X=$;this.cwd="cwd"in X?"":nF.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let G=-1;while(++G<hX.length){let J=hX[G];if(J in X&&X[J]!==void 0&&X[J]!==null)this[J]=J==="history"?[...X[J]]:X[J]}let Y;for(Y in X)if(!hX.includes(Y))this[Y]=X[Y]}get basename(){return typeof this.path==="string"?i1.basename(this.path):void 0}set basename($){fX($,"basename"),yX($,"basename"),this.path=i1.join(this.dirname||"",$)}get dirname(){return typeof this.path==="string"?i1.dirname(this.path):void 0}set dirname($){tF(this.basename,"dirname"),this.path=i1.join($||"",this.basename)}get extname(){return typeof this.path==="string"?i1.extname(this.path):void 0}set extname($){if(yX($,"extname"),tF(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=i1.join(this.dirname,this.stem+($||""))}get path(){return this.history[this.history.length-1]}set path($){if(x9($))$=sF($);if(fX($,"path"),this.path!==$)this.history.push($)}get stem(){return typeof this.path==="string"?i1.basename(this.path,this.extname):void 0}set stem($){fX($,"stem"),yX($,"stem"),this.path=i1.join(this.dirname||"",$+(this.extname||""))}fail($,X,G){let Y=this.message($,X,G);throw Y.fatal=!0,Y}info($,X,G){let Y=this.message($,X,G);return Y.fatal=void 0,Y}message($,X,G){let Y=new $1($,X,G);if(this.path)Y.name=this.path+":"+Y.name,Y.file=this.path;return Y.fatal=!1,this.messages.push(Y),Y}toString($){if(this.value===void 0)return"";if(typeof this.value==="string")return this.value;return new TextDecoder($||void 0).decode(this.value)}}function yX($,X){if($&&$.includes(i1.sep))throw Error("`"+X+"` cannot be a path: did not expect `"+i1.sep+"`")}function fX($,X){if(!$)throw Error("`"+X+"` cannot be empty")}function tF($,X){if(!$)throw Error("Setting `"+X+"` requires `path` to be set too")}function sP($){return Boolean($&&typeof $==="object"&&"byteLength"in $&&"byteOffset"in $)}var hX;var eF=B(()=>{rF();iF();oF();aF();hX=["history","path","basename","stem","extname","dirname"]});var $M=B(()=>{eF()});var XM=function($){let Y=this.constructor.prototype,J=Y[$],W=function(){return J.apply(W,arguments)};return Object.setPrototypeOf(W,Y),W};function gX($,X){if(typeof X!=="function")throw TypeError("Cannot `"+$+"` without `parser`")}function mX($,X){if(typeof X!=="function")throw TypeError("Cannot `"+$+"` without `compiler`")}function pX($,X){if(X)throw Error("Cannot call `"+$+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function GM($){if(!m4($)||typeof $.type!=="string")throw TypeError("Expected node, got `"+$+"`")}function YM($,X,G){if(!G)throw Error("`"+$+"` finished async. Use `"+X+"` instead")}function h9($){return tP($)?$:new b9($)}function tP($){return Boolean($&&typeof $==="object"&&"message"in $&&"messages"in $)}function eP($){return typeof $==="string"||$L($)}function $L($){return Boolean($&&typeof $==="object"&&"byteLength"in $&&"byteOffset"in $)}var y9,aP,uX,dX;var JM=B(()=>{O0();lF();$M();y9=x8(uF(),1),aP={}.hasOwnProperty;uX=class uX extends XM{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=bX()}copy(){let $=new uX,X=-1;while(++X<this.attachers.length){let G=this.attachers[X];$.use(...G)}return $.data(y9.default(!0,{},this.namespace)),$}data($,X){if(typeof $==="string"){if(arguments.length===2)return pX("data",this.frozen),this.namespace[$]=X,this;return aP.call(this.namespace,$)&&this.namespace[$]||void 0}if($)return pX("data",this.frozen),this.namespace=$,this;return this.namespace}freeze(){if(this.frozen)return this;let $=this;while(++this.freezeIndex<this.attachers.length){let[X,...G]=this.attachers[this.freezeIndex];if(G[0]===!1)continue;if(G[0]===!0)G[0]=void 0;let Y=X.call($,...G);if(typeof Y==="function")this.transformers.use(Y)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse($){this.freeze();let X=h9($),G=this.parser||this.Parser;return gX("parse",G),G(String(X),X)}process($,X){let G=this;return this.freeze(),gX("process",this.parser||this.Parser),mX("process",this.compiler||this.Compiler),X?Y(void 0,X):new Promise(Y);function Y(J,W){let H=h9($),U=G.parse(H);G.run(U,H,function(M,Q,q){if(M||!Q||!q)return F(M);let A=Q,Z=G.stringify(A,q);if(eP(Z))q.value=Z;else q.result=Z;F(M,q)});function F(M,Q){if(M||!Q)W(M);else if(J)J(Q);else V(X,"`done` is defined if `resolve` is not"),X(void 0,Q)}}}processSync($){let X=!1,G;return this.freeze(),gX("processSync",this.parser||this.Parser),mX("processSync",this.compiler||this.Compiler),this.process($,Y),YM("processSync","process",X),V(G,"we either bailed on an error or have a tree"),G;function Y(J,W){X=!0,xX(J),G=W}}run($,X,G){GM($),this.freeze();let Y=this.transformers;if(!G&&typeof X==="function")G=X,X=void 0;return G?J(void 0,G):new Promise(J);function J(W,H){V(typeof X!=="function","`file` can\u2019t be a `done` anymore, we checked");let U=h9(X);Y.run($,U,F);function F(M,Q,q){let A=Q||$;if(M)H(M);else if(W)W(A);else V(G,"`done` is defined if `resolve` is not"),G(void 0,A,q)}}}runSync($,X){let G=!1,Y;return this.run($,X,J),YM("runSync","run",G),V(Y,"we either bailed on an error or have a tree"),Y;function J(W,H){xX(W),Y=H,G=!0}}stringify($,X){this.freeze();let G=h9(X),Y=this.compiler||this.Compiler;return mX("stringify",Y),GM($),Y($,G)}use($,...X){let G=this.attachers,Y=this.namespace;if(pX("use",this.frozen),$===null||$===void 0);else if(typeof $==="function")U($,X);else if(typeof $==="object")if(Array.isArray($))H($);else W($);else throw TypeError("Expected usable value, not `"+$+"`");return this;function J(F){if(typeof F==="function")U(F,[]);else if(typeof F==="object")if(Array.isArray(F)){let[M,...Q]=F;U(M,Q)}else W(F);else throw TypeError("Expected usable value, not `"+F+"`")}function W(F){if(!("plugins"in F)&&!("settings"in F))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(H(F.plugins),F.settings)Y.settings=y9.default(!0,Y.settings,F.settings)}function H(F){let M=-1;if(F===null||F===void 0);else if(Array.isArray(F))while(++M<F.length){let Q=F[M];J(Q)}else throw TypeError("Expected a list of plugins, not `"+F+"`")}function U(F,M){let Q=-1,q=-1;while(++Q<G.length)if(G[Q][0]===F){q=Q;break}if(q===-1)G.push([F,...M]);else if(M.length>0){let[A,...Z]=M,_=G[q][1];if(m4(_)&&m4(A))A=y9.default(!0,_,A);G[q]=[F,A,...Z]}}}};dX=new uX().freeze()});var WM=B(()=>{JM()});var f9;var lX=B(()=>{AK();vF();WM();f9=dX().use(L9).use(k9).freeze()});function YL($){if(!$)return GL;let X=HM.get($);if(!X)X=new S4({gfm:!0,breaks:!0}),X.use({renderer:{image(G,Y,J){return $(G,Y,J)??!1}}}),HM.set($,X);return X}function cX($,X){let Y=YL(X?.imageRenderer).parse($);return Y=Y.replace(/<\/blockquote>\s*<p>(\u2014|--|\u2013)([\s\S]*?)<\/p>/g,`</blockquote>
134
+ <cite class="block-attribution"><span class="emdash">$1</span>$2</cite>`),Y}var XL,Ip,GL,HM;var UM=B(()=>{hH();lX();XL=x8(C7(),1),Ip=f9(),GL=new S4({gfm:!0,breaks:!0}),HM=new WeakMap});class o5{callback;heartbeatInterval;constructor($){this.callback=$}static from($){if(!$)return;return new o5($)}createSub($){let{scale:X}=$??{};if(X){let{start:G,end:Y}=X,J=Y-G;return new o5(async(W)=>{let H=G+W.progress/(W.total??100)*J;await this.callback({...W,progress:H,total:100})})}return new o5(this.callback)}async report($){await this.callback($)}startHeartbeat($,X=5000){this.stopHeartbeat(),this.heartbeatInterval=setInterval(()=>{this.report({message:$,progress:0}).catch(()=>{})},X)}stopHeartbeat(){if(this.heartbeatInterval)clearInterval(this.heartbeatInterval),this.heartbeatInterval=void 0}toCallback(){return this.callback}}function DM($){return typeof $>"u"||$===null}function JL($){return typeof $==="object"&&$!==null}function WL($){if(Array.isArray($))return $;else if(DM($))return[];return[$]}function HL($,X){var G,Y,J,W;if(X){W=Object.keys(X);for(G=0,Y=W.length;G<Y;G+=1)J=W[G],$[J]=X[J]}return $}function UL($,X){var G="",Y;for(Y=0;Y<X;Y+=1)G+=$;return G}function KL($){return $===0&&Number.NEGATIVE_INFINITY===1/$}function PM($,X){var G="",Y=$.reason||"(unknown reason)";if(!$.mark)return Y;if($.mark.name)G+='in "'+$.mark.name+'" ';if(G+="("+($.mark.line+1)+":"+($.mark.column+1)+")",!X&&$.mark.snippet)G+=`
135
+
136
+ `+$.mark.snippet;return Y+" "+G}function u4($,X){if(Error.call(this),this.name="YAMLException",this.reason=$,this.mark=X,this.message=PM(this,!1),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}function rX($,X,G,Y,J){var W="",H="",U=Math.floor(J/2)-1;if(Y-X>U)W=" ... ",X=Y-U+W.length;if(G-Y>U)H=" ...",G=Y+U-H.length;return{str:W+$.slice(X,G).replace(/\t/g,"\u2192")+H,pos:Y-X+W.length}}function iX($,X){return l0.repeat(" ",X-$.length)+$}function RL($,X){if(X=Object.create(X||null),!$.buffer)return null;if(!X.maxLength)X.maxLength=79;if(typeof X.indent!=="number")X.indent=1;if(typeof X.linesBefore!=="number")X.linesBefore=3;if(typeof X.linesAfter!=="number")X.linesAfter=2;var G=/\r?\n|\r|\0/g,Y=[0],J=[],W,H=-1;while(W=G.exec($.buffer))if(J.push(W.index),Y.push(W.index+W[0].length),$.position<=W.index&&H<0)H=Y.length-2;if(H<0)H=Y.length-1;var U="",F,M,Q=Math.min($.line+X.linesAfter,J.length).toString().length,q=X.maxLength-(X.indent+Q+3);for(F=1;F<=X.linesBefore;F++){if(H-F<0)break;M=rX($.buffer,Y[H-F],J[H-F],$.position-(Y[H]-Y[H-F]),q),U=l0.repeat(" ",X.indent)+iX(($.line-F+1).toString(),Q)+" | "+M.str+`
137
+ `+U}M=rX($.buffer,Y[H],J[H],$.position,q),U+=l0.repeat(" ",X.indent)+iX(($.line+1).toString(),Q)+" | "+M.str+`
138
+ `,U+=l0.repeat("-",X.indent+Q+3+M.pos)+`^
139
+ `;for(F=1;F<=X.linesAfter;F++){if(H+F>=J.length)break;M=rX($.buffer,Y[H+F],J[H+F],$.position-(Y[H]-Y[H+F]),q),U+=l0.repeat(" ",X.indent)+iX(($.line+F+1).toString(),Q)+" | "+M.str+`
140
+ `}return U.replace(/\n$/,"")}function NL($){var X={};if($!==null)Object.keys($).forEach(function(G){$[G].forEach(function(Y){X[String(Y)]=G})});return X}function wL($,X){if(X=X||{},Object.keys(X).forEach(function(G){if(BL.indexOf(G)===-1)throw new z1('Unknown option "'+G+'" is met in definition of "'+$+'" YAML type.')}),this.options=X,this.tag=$,this.kind=X.kind||null,this.resolve=X.resolve||function(){return!0},this.construct=X.construct||function(G){return G},this.instanceOf=X.instanceOf||null,this.predicate=X.predicate||null,this.represent=X.represent||null,this.representName=X.representName||null,this.defaultStyle=X.defaultStyle||null,this.multi=X.multi||!1,this.styleAliases=NL(X.styleAliases||null),VL.indexOf(this.kind)===-1)throw new z1('Unknown kind "'+this.kind+'" is specified for "'+$+'" YAML type.')}function KM($,X){var G=[];return $[X].forEach(function(Y){var J=G.length;G.forEach(function(W,H){if(W.tag===Y.tag&&W.kind===Y.kind&&W.multi===Y.multi)J=H}),G[J]=Y}),G}function _L(){var $={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},X,G;function Y(J){if(J.multi)$.multi[J.kind].push(J),$.multi.fallback.push(J);else $[J.kind][J.tag]=$.fallback[J.tag]=J}for(X=0,G=arguments.length;X<G;X+=1)arguments[X].forEach(Y);return $}function oX($){return this.extend($)}function TL($){if($===null)return!0;var X=$.length;return X===1&&$==="~"||X===4&&($==="null"||$==="Null"||$==="NULL")}function EL(){return null}function IL($){return $===null}function SL($){if($===null)return!1;var X=$.length;return X===4&&($==="true"||$==="True"||$==="TRUE")||X===5&&($==="false"||$==="False"||$==="FALSE")}function kL($){return $==="true"||$==="True"||$==="TRUE"}function vL($){return Object.prototype.toString.call($)==="[object Boolean]"}function bL($){return 48<=$&&$<=57||65<=$&&$<=70||97<=$&&$<=102}function hL($){return 48<=$&&$<=55}function yL($){return 48<=$&&$<=57}function fL($){if($===null)return!1;var X=$.length,G=0,Y=!1,J;if(!X)return!1;if(J=$[G],J==="-"||J==="+")J=$[++G];if(J==="0"){if(G+1===X)return!0;if(J=$[++G],J==="b"){G++;for(;G<X;G++){if(J=$[G],J==="_")continue;if(J!=="0"&&J!=="1")return!1;Y=!0}return Y&&J!=="_"}if(J==="x"){G++;for(;G<X;G++){if(J=$[G],J==="_")continue;if(!bL($.charCodeAt(G)))return!1;Y=!0}return Y&&J!=="_"}if(J==="o"){G++;for(;G<X;G++){if(J=$[G],J==="_")continue;if(!hL($.charCodeAt(G)))return!1;Y=!0}return Y&&J!=="_"}}if(J==="_")return!1;for(;G<X;G++){if(J=$[G],J==="_")continue;if(!yL($.charCodeAt(G)))return!1;Y=!0}if(!Y||J==="_")return!1;return!0}function gL($){var X=$,G=1,Y;if(X.indexOf("_")!==-1)X=X.replace(/_/g,"");if(Y=X[0],Y==="-"||Y==="+"){if(Y==="-")G=-1;X=X.slice(1),Y=X[0]}if(X==="0")return 0;if(Y==="0"){if(X[1]==="b")return G*parseInt(X.slice(2),2);if(X[1]==="x")return G*parseInt(X.slice(2),16);if(X[1]==="o")return G*parseInt(X.slice(2),8)}return G*parseInt(X,10)}function mL($){return Object.prototype.toString.call($)==="[object Number]"&&($%1===0&&!l0.isNegativeZero($))}function dL($){if($===null)return!1;if(!uL.test($)||$[$.length-1]==="_")return!1;return!0}function lL($){var X,G;if(X=$.replace(/_/g,"").toLowerCase(),G=X[0]==="-"?-1:1,"+-".indexOf(X[0])>=0)X=X.slice(1);if(X===".inf")return G===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(X===".nan")return NaN;return G*parseFloat(X,10)}function rL($,X){var G;if(isNaN($))switch(X){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===$)switch(X){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===$)switch(X){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(l0.isNegativeZero($))return"-0.0";return G=$.toString(10),cL.test(G)?G.replace("e",".e"):G}function iL($){return Object.prototype.toString.call($)==="[object Number]"&&($%1!==0||l0.isNegativeZero($))}function aL($){if($===null)return!1;if(LM.exec($)!==null)return!0;if(CM.exec($)!==null)return!0;return!1}function tL($){var X,G,Y,J,W,H,U,F=0,M=null,Q,q,A;if(X=LM.exec($),X===null)X=CM.exec($);if(X===null)throw Error("Date resolve error");if(G=+X[1],Y=+X[2]-1,J=+X[3],!X[4])return new Date(Date.UTC(G,Y,J));if(W=+X[4],H=+X[5],U=+X[6],X[7]){F=X[7].slice(0,3);while(F.length<3)F+="0";F=+F}if(X[9]){if(Q=+X[10],q=+(X[11]||0),M=(Q*60+q)*60000,X[9]==="-")M=-M}if(A=new Date(Date.UTC(G,Y,J,W,H,U,F)),M)A.setTime(A.getTime()-M);return A}function eL($){return $.toISOString()}function XC($){return $==="<<"||$===null}function YC($){if($===null)return!1;var X,G,Y=0,J=$.length,W=$3;for(G=0;G<J;G++){if(X=W.indexOf($.charAt(G)),X>64)continue;if(X<0)return!1;Y+=6}return Y%8===0}function JC($){var X,G,Y=$.replace(/[\r\n=]/g,""),J=Y.length,W=$3,H=0,U=[];for(X=0;X<J;X++){if(X%4===0&&X)U.push(H>>16&255),U.push(H>>8&255),U.push(H&255);H=H<<6|W.indexOf(Y.charAt(X))}if(G=J%4*6,G===0)U.push(H>>16&255),U.push(H>>8&255),U.push(H&255);else if(G===18)U.push(H>>10&255),U.push(H>>2&255);else if(G===12)U.push(H>>4&255);return new Uint8Array(U)}function WC($){var X="",G=0,Y,J,W=$.length,H=$3;for(Y=0;Y<W;Y++){if(Y%3===0&&Y)X+=H[G>>18&63],X+=H[G>>12&63],X+=H[G>>6&63],X+=H[G&63];G=(G<<8)+$[Y]}if(J=W%3,J===0)X+=H[G>>18&63],X+=H[G>>12&63],X+=H[G>>6&63],X+=H[G&63];else if(J===2)X+=H[G>>10&63],X+=H[G>>4&63],X+=H[G<<2&63],X+=H[64];else if(J===1)X+=H[G>>2&63],X+=H[G<<4&63],X+=H[64],X+=H[64];return X}function HC($){return Object.prototype.toString.call($)==="[object Uint8Array]"}function MC($){if($===null)return!0;var X=[],G,Y,J,W,H,U=$;for(G=0,Y=U.length;G<Y;G+=1){if(J=U[G],H=!1,FC.call(J)!=="[object Object]")return!1;for(W in J)if(KC.call(J,W))if(!H)H=!0;else return!1;if(!H)return!1;if(X.indexOf(W)===-1)X.push(W);else return!1}return!0}function QC($){return $!==null?$:[]}function ZC($){if($===null)return!0;var X,G,Y,J,W,H=$;W=Array(H.length);for(X=0,G=H.length;X<G;X+=1){if(Y=H[X],OC.call(Y)!=="[object Object]")return!1;if(J=Object.keys(Y),J.length!==1)return!1;W[X]=[J[0],Y[J[0]]]}return!0}function RC($){if($===null)return[];var X,G,Y,J,W,H=$;W=Array(H.length);for(X=0,G=H.length;X<G;X+=1)Y=H[X],J=Object.keys(Y),W[X]=[J[0],Y[J[0]]];return W}function VC($){if($===null)return!0;var X,G=$;for(X in G)if(BC.call(G,X)){if(G[X]!==null)return!1}return!0}function NC($){return $!==null?$:{}}function MM($){return Object.prototype.toString.call($)}function H5($){return $===10||$===13}function m2($){return $===9||$===32}function D1($){return $===9||$===32||$===10||$===13}function S6($){return $===44||$===91||$===93||$===123||$===125}function LC($){var X;if(48<=$&&$<=57)return $-48;if(X=$|32,97<=X&&X<=102)return X-97+10;return-1}function CC($){if($===120)return 2;if($===117)return 4;if($===85)return 8;return 0}function TC($){if(48<=$&&$<=57)return $-48;return-1}function QM($){return $===48?"\x00":$===97?"\x07":$===98?"\b":$===116?"\t":$===9?"\t":$===110?`
141
+ `:$===118?"\v":$===102?"\f":$===114?"\r":$===101?"\x1B":$===32?" ":$===34?'"':$===47?"/":$===92?"\\":$===78?"\x85":$===95?"\xA0":$===76?"\u2028":$===80?"\u2029":""}function EC($){if($<=65535)return String.fromCharCode($);return String.fromCharCode(($-65536>>10)+55296,($-65536&1023)+56320)}function kM($,X,G){if(X==="__proto__")Object.defineProperty($,X,{configurable:!0,enumerable:!0,writable:!0,value:G});else $[X]=G}function IC($,X){this.input=$,this.filename=X.filename||null,this.schema=X.schema||TM,this.onWarning=X.onWarning||null,this.legacy=X.legacy||!1,this.json=X.json||!1,this.listener=X.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=$.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function bM($,X){var G={name:$.filename,buffer:$.input.slice(0,-1),position:$.position,line:$.line,column:$.position-$.lineStart};return G.snippet=AL(G),new z1(X,G)}function p($,X){throw bM($,X)}function p9($,X){if($.onWarning)$.onWarning.call(null,bM($,X))}function a5($,X,G,Y){var J,W,H,U;if(X<G){if(U=$.input.slice(X,G),Y){for(J=0,W=U.length;J<W;J+=1)if(H=U.charCodeAt(J),!(H===9||32<=H&&H<=1114111))p($,"expected valid JSON character")}else if(zC.test(U))p($,"the stream contains non-printable characters");$.result+=U}}function OM($,X,G,Y){var J,W,H,U;if(!l0.isObject(G))p($,"cannot merge mappings; the provided source object is unacceptable");J=Object.keys(G);for(H=0,U=J.length;H<U;H+=1)if(W=J[H],!t5.call(X,W))kM(X,W,G[W]),Y[W]=!0}function k6($,X,G,Y,J,W,H,U,F){var M,Q;if(Array.isArray(J)){J=Array.prototype.slice.call(J);for(M=0,Q=J.length;M<Q;M+=1){if(Array.isArray(J[M]))p($,"nested arrays are not supported inside keys");if(typeof J==="object"&&MM(J[M])==="[object Object]")J[M]="[object Object]"}}if(typeof J==="object"&&MM(J)==="[object Object]")J="[object Object]";if(J=String(J),X===null)X={};if(Y==="tag:yaml.org,2002:merge")if(Array.isArray(W))for(M=0,Q=W.length;M<Q;M+=1)OM($,X,W[M],G);else OM($,X,W,G);else{if(!$.json&&!t5.call(G,J)&&t5.call(X,J))$.line=H||$.line,$.lineStart=U||$.lineStart,$.position=F||$.position,p($,"duplicated mapping key");kM(X,J,W),delete G[J]}return X}function X3($){var X=$.input.charCodeAt($.position);if(X===10)$.position++;else if(X===13){if($.position++,$.input.charCodeAt($.position)===10)$.position++}else p($,"a line break is expected");$.line+=1,$.lineStart=$.position,$.firstTabInLine=-1}function g0($,X,G){var Y=0,J=$.input.charCodeAt($.position);while(J!==0){while(m2(J)){if(J===9&&$.firstTabInLine===-1)$.firstTabInLine=$.position;J=$.input.charCodeAt(++$.position)}if(X&&J===35)do J=$.input.charCodeAt(++$.position);while(J!==10&&J!==13&&J!==0);if(H5(J)){X3($),J=$.input.charCodeAt($.position),Y++,$.lineIndent=0;while(J===32)$.lineIndent++,J=$.input.charCodeAt(++$.position)}else break}if(G!==-1&&Y!==0&&$.lineIndent<G)p9($,"deficient indentation");return Y}function l9($){var X=$.position,G;if(G=$.input.charCodeAt(X),(G===45||G===46)&&G===$.input.charCodeAt(X+1)&&G===$.input.charCodeAt(X+2)){if(X+=3,G=$.input.charCodeAt(X),G===0||D1(G))return!0}return!1}function G3($,X){if(X===1)$.result+=" ";else if(X>1)$.result+=l0.repeat(`
142
+ `,X-1)}function jC($,X,G){var Y,J,W,H,U,F,M,Q,q=$.kind,A=$.result,Z;if(Z=$.input.charCodeAt($.position),D1(Z)||S6(Z)||Z===35||Z===38||Z===42||Z===33||Z===124||Z===62||Z===39||Z===34||Z===37||Z===64||Z===96)return!1;if(Z===63||Z===45){if(J=$.input.charCodeAt($.position+1),D1(J)||G&&S6(J))return!1}$.kind="scalar",$.result="",W=H=$.position,U=!1;while(Z!==0){if(Z===58){if(J=$.input.charCodeAt($.position+1),D1(J)||G&&S6(J))break}else if(Z===35){if(Y=$.input.charCodeAt($.position-1),D1(Y))break}else if($.position===$.lineStart&&l9($)||G&&S6(Z))break;else if(H5(Z))if(F=$.line,M=$.lineStart,Q=$.lineIndent,g0($,!1,-1),$.lineIndent>=X){U=!0,Z=$.input.charCodeAt($.position);continue}else{$.position=H,$.line=F,$.lineStart=M,$.lineIndent=Q;break}if(U)a5($,W,H,!1),G3($,$.line-F),W=H=$.position,U=!1;if(!m2(Z))H=$.position+1;Z=$.input.charCodeAt(++$.position)}if(a5($,W,H,!1),$.result)return!0;return $.kind=q,$.result=A,!1}function SC($,X){var G,Y,J;if(G=$.input.charCodeAt($.position),G!==39)return!1;$.kind="scalar",$.result="",$.position++,Y=J=$.position;while((G=$.input.charCodeAt($.position))!==0)if(G===39)if(a5($,Y,$.position,!0),G=$.input.charCodeAt(++$.position),G===39)Y=$.position,$.position++,J=$.position;else return!0;else if(H5(G))a5($,Y,J,!0),G3($,g0($,!1,X)),Y=J=$.position;else if($.position===$.lineStart&&l9($))p($,"unexpected end of the document within a single quoted scalar");else $.position++,J=$.position;p($,"unexpected end of the stream within a single quoted scalar")}function kC($,X){var G,Y,J,W,H,U;if(U=$.input.charCodeAt($.position),U!==34)return!1;$.kind="scalar",$.result="",$.position++,G=Y=$.position;while((U=$.input.charCodeAt($.position))!==0)if(U===34)return a5($,G,$.position,!0),$.position++,!0;else if(U===92){if(a5($,G,$.position,!0),U=$.input.charCodeAt(++$.position),H5(U))g0($,!1,X);else if(U<256&&vM[U])$.result+=xM[U],$.position++;else if((H=CC(U))>0){J=H,W=0;for(;J>0;J--)if(U=$.input.charCodeAt(++$.position),(H=LC(U))>=0)W=(W<<4)+H;else p($,"expected hexadecimal character");$.result+=EC(W),$.position++}else p($,"unknown escape sequence");G=Y=$.position}else if(H5(U))a5($,G,Y,!0),G3($,g0($,!1,X)),G=Y=$.position;else if($.position===$.lineStart&&l9($))p($,"unexpected end of the document within a double quoted scalar");else $.position++,Y=$.position;p($,"unexpected end of the stream within a double quoted scalar")}function vC($,X){var G=!0,Y,J,W,H=$.tag,U,F=$.anchor,M,Q,q,A,Z,_=Object.create(null),z,D,P,b;if(b=$.input.charCodeAt($.position),b===91)Q=93,Z=!1,U=[];else if(b===123)Q=125,Z=!0,U={};else return!1;if($.anchor!==null)$.anchorMap[$.anchor]=U;b=$.input.charCodeAt(++$.position);while(b!==0){if(g0($,!0,X),b=$.input.charCodeAt($.position),b===Q)return $.position++,$.tag=H,$.anchor=F,$.kind=Z?"mapping":"sequence",$.result=U,!0;else if(!G)p($,"missed comma between flow collection entries");else if(b===44)p($,"expected the node content, but found ','");if(D=z=P=null,q=A=!1,b===63){if(M=$.input.charCodeAt($.position+1),D1(M))q=A=!0,$.position++,g0($,!0,X)}if(Y=$.line,J=$.lineStart,W=$.position,v6($,X,g9,!1,!0),D=$.tag,z=$.result,g0($,!0,X),b=$.input.charCodeAt($.position),(A||$.line===Y)&&b===58)q=!0,b=$.input.charCodeAt(++$.position),g0($,!0,X),v6($,X,g9,!1,!0),P=$.result;if(Z)k6($,U,_,D,z,P,Y,J,W);else if(q)U.push(k6($,null,_,D,z,P,Y,J,W));else U.push(z);if(g0($,!0,X),b=$.input.charCodeAt($.position),b===44)G=!0,b=$.input.charCodeAt(++$.position);else G=!1}p($,"unexpected end of the stream within a flow collection")}function xC($,X){var G,Y,J=nX,W=!1,H=!1,U=X,F=0,M=!1,Q,q;if(q=$.input.charCodeAt($.position),q===124)Y=!1;else if(q===62)Y=!0;else return!1;$.kind="scalar",$.result="";while(q!==0)if(q=$.input.charCodeAt(++$.position),q===43||q===45)if(nX===J)J=q===43?FM:_C;else p($,"repeat of a chomping mode identifier");else if((Q=TC(q))>=0)if(Q===0)p($,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!H)U=X+Q-1,H=!0;else p($,"repeat of an indentation width identifier");else break;if(m2(q)){do q=$.input.charCodeAt(++$.position);while(m2(q));if(q===35)do q=$.input.charCodeAt(++$.position);while(!H5(q)&&q!==0)}while(q!==0){X3($),$.lineIndent=0,q=$.input.charCodeAt($.position);while((!H||$.lineIndent<U)&&q===32)$.lineIndent++,q=$.input.charCodeAt(++$.position);if(!H&&$.lineIndent>U)U=$.lineIndent;if(H5(q)){F++;continue}if($.lineIndent<U){if(J===FM)$.result+=l0.repeat(`
143
+ `,W?1+F:F);else if(J===nX){if(W)$.result+=`
144
+ `}break}if(Y)if(m2(q))M=!0,$.result+=l0.repeat(`
145
+ `,W?1+F:F);else if(M)M=!1,$.result+=l0.repeat(`
146
+ `,F+1);else if(F===0){if(W)$.result+=" "}else $.result+=l0.repeat(`
147
+ `,F);else $.result+=l0.repeat(`
148
+ `,W?1+F:F);W=!0,H=!0,F=0,G=$.position;while(!H5(q)&&q!==0)q=$.input.charCodeAt(++$.position);a5($,G,$.position,!1)}return!0}function ZM($,X){var G,Y=$.tag,J=$.anchor,W=[],H,U=!1,F;if($.firstTabInLine!==-1)return!1;if($.anchor!==null)$.anchorMap[$.anchor]=W;F=$.input.charCodeAt($.position);while(F!==0){if($.firstTabInLine!==-1)$.position=$.firstTabInLine,p($,"tab characters must not be used in indentation");if(F!==45)break;if(H=$.input.charCodeAt($.position+1),!D1(H))break;if(U=!0,$.position++,g0($,!0,-1)){if($.lineIndent<=X){W.push(null),F=$.input.charCodeAt($.position);continue}}if(G=$.line,v6($,X,IM,!1,!0),W.push($.result),g0($,!0,-1),F=$.input.charCodeAt($.position),($.line===G||$.lineIndent>X)&&F!==0)p($,"bad indentation of a sequence entry");else if($.lineIndent<X)break}if(U)return $.tag=Y,$.anchor=J,$.kind="sequence",$.result=W,!0;return!1}function bC($,X,G){var Y,J,W,H,U,F,M=$.tag,Q=$.anchor,q={},A=Object.create(null),Z=null,_=null,z=null,D=!1,P=!1,b;if($.firstTabInLine!==-1)return!1;if($.anchor!==null)$.anchorMap[$.anchor]=q;b=$.input.charCodeAt($.position);while(b!==0){if(!D&&$.firstTabInLine!==-1)$.position=$.firstTabInLine,p($,"tab characters must not be used in indentation");if(Y=$.input.charCodeAt($.position+1),W=$.line,(b===63||b===58)&&D1(Y)){if(b===63){if(D)k6($,q,A,Z,_,null,H,U,F),Z=_=z=null;P=!0,D=!0,J=!0}else if(D)D=!1,J=!0;else p($,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");$.position+=1,b=Y}else{if(H=$.line,U=$.lineStart,F=$.position,!v6($,G,EM,!1,!0))break;if($.line===W){b=$.input.charCodeAt($.position);while(m2(b))b=$.input.charCodeAt(++$.position);if(b===58){if(b=$.input.charCodeAt(++$.position),!D1(b))p($,"a whitespace character is expected after the key-value separator within a block mapping");if(D)k6($,q,A,Z,_,null,H,U,F),Z=_=z=null;P=!0,D=!1,J=!1,Z=$.tag,_=$.result}else if(P)p($,"can not read an implicit mapping pair; a colon is missed");else return $.tag=M,$.anchor=Q,!0}else if(P)p($,"can not read a block mapping entry; a multiline key may not be an implicit key");else return $.tag=M,$.anchor=Q,!0}if($.line===W||$.lineIndent>X){if(D)H=$.line,U=$.lineStart,F=$.position;if(v6($,X,m9,!0,J))if(D)_=$.result;else z=$.result;if(!D)k6($,q,A,Z,_,z,H,U,F),Z=_=z=null;g0($,!0,-1),b=$.input.charCodeAt($.position)}if(($.line===W||$.lineIndent>X)&&b!==0)p($,"bad indentation of a mapping entry");else if($.lineIndent<X)break}if(D)k6($,q,A,Z,_,null,H,U,F);if(P)$.tag=M,$.anchor=Q,$.kind="mapping",$.result=q;return P}function hC($){var X,G=!1,Y=!1,J,W,H;if(H=$.input.charCodeAt($.position),H!==33)return!1;if($.tag!==null)p($,"duplication of a tag property");if(H=$.input.charCodeAt(++$.position),H===60)G=!0,H=$.input.charCodeAt(++$.position);else if(H===33)Y=!0,J="!!",H=$.input.charCodeAt(++$.position);else J="!";if(X=$.position,G){do H=$.input.charCodeAt(++$.position);while(H!==0&&H!==62);if($.position<$.length)W=$.input.slice(X,$.position),H=$.input.charCodeAt(++$.position);else p($,"unexpected end of the stream within a verbatim tag")}else{while(H!==0&&!D1(H)){if(H===33)if(!Y){if(J=$.input.slice(X-1,$.position+1),!jM.test(J))p($,"named tag handle cannot contain such characters");Y=!0,X=$.position+1}else p($,"tag suffix cannot contain exclamation marks");H=$.input.charCodeAt(++$.position)}if(W=$.input.slice(X,$.position),PC.test(W))p($,"tag suffix cannot contain flow indicator characters")}if(W&&!SM.test(W))p($,"tag name cannot contain such characters: "+W);try{W=decodeURIComponent(W)}catch(U){p($,"tag name is malformed: "+W)}if(G)$.tag=W;else if(t5.call($.tagMap,J))$.tag=$.tagMap[J]+W;else if(J==="!")$.tag="!"+W;else if(J==="!!")$.tag="tag:yaml.org,2002:"+W;else p($,'undeclared tag handle "'+J+'"');return!0}function yC($){var X,G;if(G=$.input.charCodeAt($.position),G!==38)return!1;if($.anchor!==null)p($,"duplication of an anchor property");G=$.input.charCodeAt(++$.position),X=$.position;while(G!==0&&!D1(G)&&!S6(G))G=$.input.charCodeAt(++$.position);if($.position===X)p($,"name of an anchor node must contain at least one character");return $.anchor=$.input.slice(X,$.position),!0}function fC($){var X,G,Y;if(Y=$.input.charCodeAt($.position),Y!==42)return!1;Y=$.input.charCodeAt(++$.position),X=$.position;while(Y!==0&&!D1(Y)&&!S6(Y))Y=$.input.charCodeAt(++$.position);if($.position===X)p($,"name of an alias node must contain at least one character");if(G=$.input.slice(X,$.position),!t5.call($.anchorMap,G))p($,'unidentified alias "'+G+'"');return $.result=$.anchorMap[G],g0($,!0,-1),!0}function v6($,X,G,Y,J){var W,H,U,F=1,M=!1,Q=!1,q,A,Z,_,z,D;if($.listener!==null)$.listener("open",$);if($.tag=null,$.anchor=null,$.kind=null,$.result=null,W=H=U=m9===G||IM===G,Y){if(g0($,!0,-1)){if(M=!0,$.lineIndent>X)F=1;else if($.lineIndent===X)F=0;else if($.lineIndent<X)F=-1}}if(F===1)while(hC($)||yC($))if(g0($,!0,-1)){if(M=!0,U=W,$.lineIndent>X)F=1;else if($.lineIndent===X)F=0;else if($.lineIndent<X)F=-1}else U=!1;if(U)U=M||J;if(F===1||m9===G){if(g9===G||EM===G)z=X;else z=X+1;if(D=$.position-$.lineStart,F===1)if(U&&(ZM($,D)||bC($,D,z))||vC($,z))Q=!0;else{if(H&&xC($,z)||SC($,z)||kC($,z))Q=!0;else if(fC($)){if(Q=!0,$.tag!==null||$.anchor!==null)p($,"alias node should not have any properties")}else if(jC($,z,g9===G)){if(Q=!0,$.tag===null)$.tag="?"}if($.anchor!==null)$.anchorMap[$.anchor]=$.result}else if(F===0)Q=U&&ZM($,D)}if($.tag===null){if($.anchor!==null)$.anchorMap[$.anchor]=$.result}else if($.tag==="?"){if($.result!==null&&$.kind!=="scalar")p($,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+$.kind+'"');for(q=0,A=$.implicitTypes.length;q<A;q+=1)if(_=$.implicitTypes[q],_.resolve($.result)){if($.result=_.construct($.result),$.tag=_.tag,$.anchor!==null)$.anchorMap[$.anchor]=$.result;break}}else if($.tag!=="!"){if(t5.call($.typeMap[$.kind||"fallback"],$.tag))_=$.typeMap[$.kind||"fallback"][$.tag];else{_=null,Z=$.typeMap.multi[$.kind||"fallback"];for(q=0,A=Z.length;q<A;q+=1)if($.tag.slice(0,Z[q].tag.length)===Z[q].tag){_=Z[q];break}}if(!_)p($,"unknown tag !<"+$.tag+">");if($.result!==null&&_.kind!==$.kind)p($,"unacceptable node kind for !<"+$.tag+'> tag; it should be "'+_.kind+'", not "'+$.kind+'"');if(!_.resolve($.result,$.tag))p($,"cannot resolve a node with !<"+$.tag+"> explicit tag");else if($.result=_.construct($.result,$.tag),$.anchor!==null)$.anchorMap[$.anchor]=$.result}if($.listener!==null)$.listener("close",$);return $.tag!==null||$.anchor!==null||Q}function gC($){var X=$.position,G,Y,J,W=!1,H;$.version=null,$.checkLineBreaks=$.legacy,$.tagMap=Object.create(null),$.anchorMap=Object.create(null);while((H=$.input.charCodeAt($.position))!==0){if(g0($,!0,-1),H=$.input.charCodeAt($.position),$.lineIndent>0||H!==37)break;W=!0,H=$.input.charCodeAt(++$.position),G=$.position;while(H!==0&&!D1(H))H=$.input.charCodeAt(++$.position);if(Y=$.input.slice(G,$.position),J=[],Y.length<1)p($,"directive name must not be less than one character in length");while(H!==0){while(m2(H))H=$.input.charCodeAt(++$.position);if(H===35){do H=$.input.charCodeAt(++$.position);while(H!==0&&!H5(H));break}if(H5(H))break;G=$.position;while(H!==0&&!D1(H))H=$.input.charCodeAt(++$.position);J.push($.input.slice(G,$.position))}if(H!==0)X3($);if(t5.call(qM,Y))qM[Y]($,Y,J);else p9($,'unknown document directive "'+Y+'"')}if(g0($,!0,-1),$.lineIndent===0&&$.input.charCodeAt($.position)===45&&$.input.charCodeAt($.position+1)===45&&$.input.charCodeAt($.position+2)===45)$.position+=3,g0($,!0,-1);else if(W)p($,"directives end mark is expected");if(v6($,$.lineIndent-1,m9,!1,!0),g0($,!0,-1),$.checkLineBreaks&&DC.test($.input.slice(X,$.position)))p9($,"non-ASCII line breaks are interpreted as content");if($.documents.push($.result),$.position===$.lineStart&&l9($)){if($.input.charCodeAt($.position)===46)$.position+=3,g0($,!0,-1);return}if($.position<$.length-1)p($,"end of the stream or a document separator is expected");else return}function hM($,X){if($=String($),X=X||{},$.length!==0){if($.charCodeAt($.length-1)!==10&&$.charCodeAt($.length-1)!==13)$+=`
149
+ `;if($.charCodeAt(0)===65279)$=$.slice(1)}var G=new IC($,X),Y=$.indexOf("\x00");if(Y!==-1)G.position=Y,p(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)gC(G);return G.documents}function mC($,X,G){if(X!==null&&typeof X==="object"&&typeof G>"u")G=X,X=null;var Y=hM($,G);if(typeof X!=="function")return Y;for(var J=0,W=Y.length;J<W;J+=1)X(Y[J])}function pC($,X){var G=hM($,X);if(G.length===0)return;else if(G.length===1)return G[0];throw new z1("expected a single document in the stream, but found more")}function KT($,X){var G,Y,J,W,H,U,F;if(X===null)return{};G={},Y=Object.keys(X);for(J=0,W=Y.length;J<W;J+=1){if(H=Y[J],U=String(X[H]),H.slice(0,2)==="!!")H="tag:yaml.org,2002:"+H.slice(2);if(F=$.compiledTypeMap.fallback[H],F&&gM.call(F.styleAliases,U))U=F.styleAliases[U];G[H]=U}return G}function FT($){var X,G,Y;if(X=$.toString(16).toUpperCase(),$<=255)G="x",Y=2;else if($<=65535)G="u",Y=4;else if($<=4294967295)G="U",Y=8;else throw new z1("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+G+l0.repeat("0",Y-X.length)+X}function QT($){this.schema=$.schema||TM,this.indent=Math.max(1,$.indent||2),this.noArrayIndent=$.noArrayIndent||!1,this.skipInvalid=$.skipInvalid||!1,this.flowLevel=l0.isNothing($.flowLevel)?-1:$.flowLevel,this.styleMap=KT(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==='"'?l4:MT,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 RM($,X){var G=l0.repeat(" ",X),Y=0,J=-1,W="",H,U=$.length;while(Y<U){if(J=$.indexOf(`
150
150
  `,Y),J===-1)H=$.slice(Y),Y=U;else H=$.slice(Y,J+1),Y=J+1;if(H.length&&H!==`
151
- `)W+=G;W+=H}return W}function iX($,X){return`
152
- `+d0.repeat(" ",$.indent*X)}function MT($,X){var G,Y,J;for(G=0,Y=$.implicitTypes.length;G<Y;G+=1)if(J=$.implicitTypes[G],J.resolve(X))return!0;return!1}function g9($){return $===lC||$===uC}function l4($){return 32<=$&&$<=126||161<=$&&$<=55295&&$!==8232&&$!==8233||57344<=$&&$<=65533&&$!==eX||65536<=$&&$<=1114111}function VM($){return l4($)&&$!==eX&&$!==dC&&$!==u4}function BM($,X,G){var Y=VM($),J=Y&&!g9($);return(G?Y:Y&&$!==pM&&$!==uM&&$!==dM&&$!==lM&&$!==cM)&&$!==rX&&!(X===f9&&!J)||VM(X)&&!g9(X)&&$===rX||X===f9&&J}function QT($){return l4($)&&$!==eX&&!g9($)&&$!==aC&&$!==$T&&$!==f9&&$!==pM&&$!==uM&&$!==dM&&$!==lM&&$!==cM&&$!==rX&&$!==nC&&$!==sC&&$!==cC&&$!==YT&&$!==tC&&$!==eC&&$!==oC&&$!==rC&&$!==iC&&$!==XT&&$!==GT}function qT($){return!g9($)&&$!==f9}function m4($,X){var G=$.charCodeAt(X),Y;if(G>=55296&&G<=56319&&X+1<$.length){if(Y=$.charCodeAt(X+1),Y>=56320&&Y<=57343)return(G-55296)*1024+Y-56320+65536}return G}function rM($){var X=/^\n* /;return X.test($)}function OT($,X,G,Y,J,W,H,U){var F,M=0,Q=null,q=!1,Z=!1,A=Y!==-1,_=-1,z=QT(m4($,0))&&qT(m4($,$.length-1));if(X||H)for(F=0;F<$.length;M>=65536?F+=2:F++){if(M=m4($,F),!l4(M))return S6;z=z&&BM(M,Q,U),Q=M}else{for(F=0;F<$.length;M>=65536?F+=2:F++){if(M=m4($,F),M===u4){if(q=!0,A)Z=Z||F-_-1>Y&&$[_+1]!==" ",_=F}else if(!l4(M))return S6;z=z&&BM(M,Q,U),Q=M}Z=Z||A&&(F-_-1>Y&&$[_+1]!==" ")}if(!q&&!Z){if(z&&!H&&!J($))return iM;return W===d4?S6:nX}if(G>9&&rM($))return S6;if(!H)return Z?oM:nM;return W===d4?S6:nX}function RT($,X,G,Y,J){$.dump=function(){if(X.length===0)return $.quotingType===d4?'""':"''";if(!$.noCompatMode){if(JT.indexOf(X)!==-1||WT.test(X))return $.quotingType===d4?'"'+X+'"':"'"+X+"'"}var W=$.indent*Math.max(1,G),H=$.lineWidth===-1?-1:Math.max(Math.min($.lineWidth,40),$.lineWidth-W),U=Y||$.flowLevel>-1&&G>=$.flowLevel;function F(M){return MT($,M)}switch(OT(X,U,$.indent,H,F,$.quotingType,$.forceQuotes&&!Y,J)){case iM:return X;case nX:return"'"+X.replace(/'/g,"''")+"'";case nM:return"|"+NM(X,$.indent)+wM(AM(X,W));case oM:return">"+NM(X,$.indent)+wM(AM(ZT(X,H),W));case S6:return'"'+AT(X)+'"';default:throw new z1("impossible error: invalid scalar style")}}()}function NM($,X){var G=rM($)?String(X):"",Y=$[$.length-1]===`
151
+ `)W+=G;W+=H}return W}function aX($,X){return`
152
+ `+l0.repeat(" ",$.indent*X)}function qT($,X){var G,Y,J;for(G=0,Y=$.implicitTypes.length;G<Y;G+=1)if(J=$.implicitTypes[G],J.resolve(X))return!0;return!1}function d9($){return $===rC||$===lC}function c4($){return 32<=$&&$<=126||161<=$&&$<=55295&&$!==8232&&$!==8233||57344<=$&&$<=65533&&$!==Y3||65536<=$&&$<=1114111}function AM($){return c4($)&&$!==Y3&&$!==cC&&$!==d4}function BM($,X,G){var Y=AM($),J=Y&&!d9($);return(G?Y:Y&&$!==mM&&$!==pM&&$!==uM&&$!==dM&&$!==lM)&&$!==sX&&!(X===u9&&!J)||AM(X)&&!d9(X)&&$===sX||X===u9&&J}function OT($){return c4($)&&$!==Y3&&!d9($)&&$!==eC&&$!==GT&&$!==u9&&$!==mM&&$!==pM&&$!==uM&&$!==dM&&$!==lM&&$!==sX&&$!==sC&&$!==tC&&$!==iC&&$!==WT&&$!==$T&&$!==XT&&$!==aC&&$!==nC&&$!==oC&&$!==YT&&$!==JT}function ZT($){return!d9($)&&$!==u9}function p4($,X){var G=$.charCodeAt(X),Y;if(G>=55296&&G<=56319&&X+1<$.length){if(Y=$.charCodeAt(X+1),Y>=56320&&Y<=57343)return(G-55296)*1024+Y-56320+65536}return G}function cM($){var X=/^\n* /;return X.test($)}function RT($,X,G,Y,J,W,H,U){var F,M=0,Q=null,q=!1,A=!1,Z=Y!==-1,_=-1,z=OT(p4($,0))&&ZT(p4($,$.length-1));if(X||H)for(F=0;F<$.length;M>=65536?F+=2:F++){if(M=p4($,F),!c4(M))return j6;z=z&&BM(M,Q,U),Q=M}else{for(F=0;F<$.length;M>=65536?F+=2:F++){if(M=p4($,F),M===d4){if(q=!0,Z)A=A||F-_-1>Y&&$[_+1]!==" ",_=F}else if(!c4(M))return j6;z=z&&BM(M,Q,U),Q=M}A=A||Z&&(F-_-1>Y&&$[_+1]!==" ")}if(!q&&!A){if(z&&!H&&!J($))return rM;return W===l4?j6:tX}if(G>9&&cM($))return j6;if(!H)return A?nM:iM;return W===l4?j6:tX}function AT($,X,G,Y,J){$.dump=function(){if(X.length===0)return $.quotingType===l4?'""':"''";if(!$.noCompatMode){if(HT.indexOf(X)!==-1||UT.test(X))return $.quotingType===l4?'"'+X+'"':"'"+X+"'"}var W=$.indent*Math.max(1,G),H=$.lineWidth===-1?-1:Math.max(Math.min($.lineWidth,40),$.lineWidth-W),U=Y||$.flowLevel>-1&&G>=$.flowLevel;function F(M){return qT($,M)}switch(RT(X,U,$.indent,H,F,$.quotingType,$.forceQuotes&&!Y,J)){case rM:return X;case tX:return"'"+X.replace(/'/g,"''")+"'";case iM:return"|"+VM(X,$.indent)+NM(RM(X,W));case nM:return">"+VM(X,$.indent)+NM(RM(BT(X,H),W));case j6:return'"'+VT(X)+'"';default:throw new z1("impossible error: invalid scalar style")}}()}function VM($,X){var G=cM($)?String(X):"",Y=$[$.length-1]===`
153
153
  `,J=Y&&($[$.length-2]===`
154
154
  `||$===`
155
155
  `),W=J?"+":Y?"":"-";return G+W+`
156
- `}function wM($){return $[$.length-1]===`
157
- `?$.slice(0,-1):$}function ZT($,X){var G=/(\n+)([^\n]*)/g,Y=function(){var M=$.indexOf(`
158
- `);return M=M!==-1?M:$.length,G.lastIndex=M,_M($.slice(0,M),X)}(),J=$[0]===`
156
+ `}function NM($){return $[$.length-1]===`
157
+ `?$.slice(0,-1):$}function BT($,X){var G=/(\n+)([^\n]*)/g,Y=function(){var M=$.indexOf(`
158
+ `);return M=M!==-1?M:$.length,G.lastIndex=M,wM($.slice(0,M),X)}(),J=$[0]===`
159
159
  `||$[0]===" ",W,H;while(H=G.exec($)){var U=H[1],F=H[2];W=F[0]===" ",Y+=U+(!J&&!W&&F!==""?`
160
- `:"")+_M(F,X),J=W}return Y}function _M($,X){if($===""||$[0]===" ")return $;var G=/ [^ ]/g,Y,J=0,W,H=0,U=0,F="";while(Y=G.exec($)){if(U=Y.index,U-J>X)W=H>J?H:U,F+=`
160
+ `:"")+wM(F,X),J=W}return Y}function wM($,X){if($===""||$[0]===" ")return $;var G=/ [^ ]/g,Y,J=0,W,H=0,U=0,F="";while(Y=G.exec($)){if(U=Y.index,U-J>X)W=H>J?H:U,F+=`
161
161
  `+$.slice(J,W),J=W+1;H=U}if(F+=`
162
162
  `,$.length-J>X&&H>J)F+=$.slice(J,H)+`
163
- `+$.slice(H+1);else F+=$.slice(J);return F.slice(1)}function AT($){var X="",G=0,Y;for(var J=0;J<$.length;G>=65536?J+=2:J++)if(G=m4($,J),Y=F1[G],!Y&&l4(G)){if(X+=$[J],G>=65536)X+=$[J+1]}else X+=Y||UT(G);return X}function VT($,X,G){var Y="",J=$.tag,W,H,U;for(W=0,H=G.length;W<H;W+=1){if(U=G[W],$.replacer)U=$.replacer.call(G,String(W),U);if(L5($,X,U,!1,!1)||typeof U>"u"&&L5($,X,null,!1,!1)){if(Y!=="")Y+=","+(!$.condenseFlow?" ":"");Y+=$.dump}}$.tag=J,$.dump="["+Y+"]"}function zM($,X,G,Y){var J="",W=$.tag,H,U,F;for(H=0,U=G.length;H<U;H+=1){if(F=G[H],$.replacer)F=$.replacer.call(G,String(H),F);if(L5($,X+1,F,!0,!0,!1,!0)||typeof F>"u"&&L5($,X+1,null,!0,!0,!1,!0)){if(!Y||J!=="")J+=iX($,X);if($.dump&&u4===$.dump.charCodeAt(0))J+="-";else J+="- ";J+=$.dump}}$.tag=W,$.dump=J||"[]"}function BT($,X,G){var Y="",J=$.tag,W=Object.keys(G),H,U,F,M,Q;for(H=0,U=W.length;H<U;H+=1){if(Q="",Y!=="")Q+=", ";if($.condenseFlow)Q+='"';if(F=W[H],M=G[F],$.replacer)M=$.replacer.call(G,F,M);if(!L5($,X,F,!1,!1))continue;if($.dump.length>1024)Q+="? ";if(Q+=$.dump+($.condenseFlow?'"':"")+":"+($.condenseFlow?"":" "),!L5($,X,M,!1,!1))continue;Q+=$.dump,Y+=Q}$.tag=J,$.dump="{"+Y+"}"}function NT($,X,G,Y){var J="",W=$.tag,H=Object.keys(G),U,F,M,Q,q,Z;if($.sortKeys===!0)H.sort();else if(typeof $.sortKeys==="function")H.sort($.sortKeys);else if($.sortKeys)throw new z1("sortKeys must be a boolean or a function");for(U=0,F=H.length;U<F;U+=1){if(Z="",!Y||J!=="")Z+=iX($,X);if(M=H[U],Q=G[M],$.replacer)Q=$.replacer.call(G,M,Q);if(!L5($,X+1,M,!0,!0,!0))continue;if(q=$.tag!==null&&$.tag!=="?"||$.dump&&$.dump.length>1024,q)if($.dump&&u4===$.dump.charCodeAt(0))Z+="?";else Z+="? ";if(Z+=$.dump,q)Z+=iX($,X);if(!L5($,X+1,Q,!0,q))continue;if($.dump&&u4===$.dump.charCodeAt(0))Z+=":";else Z+=": ";Z+=$.dump,J+=Z}$.tag=W,$.dump=J||"{}"}function DM($,X,G){var Y,J,W,H,U,F;J=G?$.explicitTypes:$.implicitTypes;for(W=0,H=J.length;W<H;W+=1)if(U=J[W],(U.instanceOf||U.predicate)&&(!U.instanceOf||typeof X==="object"&&X instanceof U.instanceOf)&&(!U.predicate||U.predicate(X))){if(G)if(U.multi&&U.representName)$.tag=U.representName(X);else $.tag=U.tag;else $.tag="?";if(U.represent){if(F=$.styleMap[U.tag]||U.defaultStyle,gM.call(U.represent)==="[object Function]")Y=U.represent(X,F);else if(mM.call(U.represent,F))Y=U.represent[F](X,F);else throw new z1("!<"+U.tag+'> tag resolver accepts not "'+F+'" style');$.dump=Y}return!0}return!1}function L5($,X,G,Y,J,W,H){if($.tag=null,$.dump=G,!DM($,G,!1))DM($,G,!0);var U=gM.call($.dump),F=Y,M;if(Y)Y=$.flowLevel<0||$.flowLevel>X;var Q=U==="[object Object]"||U==="[object Array]",q,Z;if(Q)q=$.duplicates.indexOf(G),Z=q!==-1;if($.tag!==null&&$.tag!=="?"||Z||$.indent!==2&&X>0)J=!1;if(Z&&$.usedDuplicates[q])$.dump="*ref_"+q;else{if(Q&&Z&&!$.usedDuplicates[q])$.usedDuplicates[q]=!0;if(U==="[object Object]"){if(Y&&Object.keys($.dump).length!==0){if(NT($,X,$.dump,J),Z)$.dump="&ref_"+q+$.dump}else if(BT($,X,$.dump),Z)$.dump="&ref_"+q+" "+$.dump}else if(U==="[object Array]"){if(Y&&$.dump.length!==0){if($.noArrayIndent&&!H&&X>0)zM($,X-1,$.dump,J);else zM($,X,$.dump,J);if(Z)$.dump="&ref_"+q+$.dump}else if(VT($,X,$.dump),Z)$.dump="&ref_"+q+" "+$.dump}else if(U==="[object String]"){if($.tag!=="?")RT($,$.dump,X,W,F)}else if(U==="[object Undefined]")return!1;else{if($.skipInvalid)return!1;throw new z1("unacceptable kind of an object to dump "+U)}if($.tag!==null&&$.tag!=="?"){if(M=encodeURI($.tag[0]==="!"?$.tag.slice(1):$.tag).replace(/!/g,"%21"),$.tag[0]==="!")M="!"+M;else if(M.slice(0,18)==="tag:yaml.org,2002:")M="!!"+M.slice(18);else M="!<"+M+">";$.dump=M+" "+$.dump}}return!0}function wT($,X){var G=[],Y=[],J,W;oX($,G,Y);for(J=0,W=Y.length;J<W;J+=1)X.duplicates.push(G[Y[J]]);X.usedDuplicates=Array(W)}function oX($,X,G){var Y,J,W;if($!==null&&typeof $==="object")if(J=X.indexOf($),J!==-1){if(G.indexOf(J)===-1)G.push(J)}else if(X.push($),Array.isArray($))for(J=0,W=$.length;J<W;J+=1)oX($[J],X,G);else{Y=Object.keys($);for(J=0,W=Y.length;J<W;J+=1)oX($[Y[J]],X,G)}}function _T($,X){X=X||{};var G=new FT(X);if(!G.noRefs)wT($,G);var Y=$;if(G.replacer)Y=G.replacer.call({"":Y},"",Y);if(L5(G,0,Y,!0,!0))return G.dump+`
164
- `;return""}function $3($,X){return function(){throw Error("Function yaml."+$+" is removed in js-yaml 4. Use yaml."+X+" instead, which is now safe by default.")}}var UL,KL,FL,ML,QL,qL,d0,z1,RL,ZL,AL,K1,wL,_L,zL,DL,PL,EL,kL,gL,mL,dL,rL,iL,nL,CM,TM,tL,$C,sX=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
165
- \r`,WC,HC,UC,MC,QC,RC,ZC,BC,EM,e5,b9=1,IM=2,jM=3,h9=4,lX=1,NC=2,MM=3,wC,_C,zC,SM,kM,xM,bM,a5,OM,mC,pC,fM,gM,mM,eX=65279,uC=9,u4=10,dC=13,lC=32,cC=33,rC=34,rX=35,iC=37,nC=38,oC=39,sC=42,pM=44,aC=45,f9=58,tC=61,eC=62,$T=63,XT=64,uM=91,dM=93,GT=96,lM=123,YT=124,cM=125,F1,JT,WT,KT=1,d4=2,iM=1,nX=2,nM=3,oM=4,S6=5,zT,DT,sM,Rp,aM,Zp,Ap,Vp;var p9=V(()=>{/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */UL=PM,KL=GL,FL=YL,ML=WL,QL=HL,qL=JL,d0={isNothing:UL,isObject:KL,toArray:FL,repeat:ML,isNegativeZero:QL,extend:qL};p4.prototype=Object.create(Error.prototype);p4.prototype.constructor=p4;p4.prototype.toString=function(X){return this.name+": "+LM(this,X)};z1=p4;RL=OL,ZL=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],AL=["scalar","sequence","mapping"];K1=BL;cX.prototype.extend=function(X){var G=[],Y=[];if(X instanceof K1)Y.push(X);else if(Array.isArray(X))Y=Y.concat(X);else if(X&&(Array.isArray(X.implicit)||Array.isArray(X.explicit))){if(X.implicit)G=G.concat(X.implicit);if(X.explicit)Y=Y.concat(X.explicit)}else throw new z1("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");G.forEach(function(W){if(!(W instanceof K1))throw new z1("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(W.loadKind&&W.loadKind!=="scalar")throw new z1("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(W.multi)throw new z1("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),Y.forEach(function(W){if(!(W instanceof K1))throw new z1("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var J=Object.create(cX.prototype);return J.implicit=(this.implicit||[]).concat(G),J.explicit=(this.explicit||[]).concat(Y),J.compiledImplicit=FM(J,"implicit"),J.compiledExplicit=FM(J,"explicit"),J.compiledTypeMap=NL(J.compiledImplicit,J.compiledExplicit),J};wL=cX,_L=new K1("tag:yaml.org,2002:str",{kind:"scalar",construct:function($){return $!==null?$:""}}),zL=new K1("tag:yaml.org,2002:seq",{kind:"sequence",construct:function($){return $!==null?$:[]}}),DL=new K1("tag:yaml.org,2002:map",{kind:"mapping",construct:function($){return $!==null?$:{}}}),PL=new wL({explicit:[_L,zL,DL]});EL=new K1("tag:yaml.org,2002:null",{kind:"scalar",resolve:LL,construct:CL,predicate:TL,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});kL=new K1("tag:yaml.org,2002:bool",{kind:"scalar",resolve:IL,construct:jL,predicate:SL,represent:{lowercase:function($){return $?"true":"false"},uppercase:function($){return $?"TRUE":"FALSE"},camelcase:function($){return $?"True":"False"}},defaultStyle:"lowercase"});gL=new K1("tag:yaml.org,2002:int",{kind:"scalar",resolve:hL,construct:yL,predicate:fL,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"]}}),mL=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");dL=/^[-+]?[0-9]+e/;rL=new K1("tag:yaml.org,2002:float",{kind:"scalar",resolve:pL,construct:uL,predicate:cL,represent:lL,defaultStyle:"lowercase"}),iL=PL.extend({implicit:[EL,kL,gL,rL]}),nL=iL,CM=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),TM=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]))?))?$");tL=new K1("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:oL,construct:sL,instanceOf:Date,represent:aL});$C=new K1("tag:yaml.org,2002:merge",{kind:"scalar",resolve:eL});WC=new K1("tag:yaml.org,2002:binary",{kind:"scalar",resolve:XC,construct:GC,predicate:JC,represent:YC}),HC=Object.prototype.hasOwnProperty,UC=Object.prototype.toString;MC=new K1("tag:yaml.org,2002:omap",{kind:"sequence",resolve:KC,construct:FC}),QC=Object.prototype.toString;RC=new K1("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:qC,construct:OC}),ZC=Object.prototype.hasOwnProperty;BC=new K1("tag:yaml.org,2002:set",{kind:"mapping",resolve:AC,construct:VC}),EM=nL.extend({implicit:[tL,$C],explicit:[WC,MC,RC,BC]}),e5=Object.prototype.hasOwnProperty,wC=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,_C=/[\x85\u2028\u2029]/,zC=/[,\[\]\{\}]/,SM=/^(?:!|!!|![a-z\-]+!)$/i,kM=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;xM=Array(256),bM=Array(256);for(a5=0;a5<256;a5++)xM[a5]=qM(a5)?1:0,bM[a5]=qM(a5);OM={YAML:function(X,G,Y){var J,W,H;if(X.version!==null)p(X,"duplication of %YAML directive");if(Y.length!==1)p(X,"YAML directive accepts exactly one argument");if(J=/^([0-9]+)\.([0-9]+)$/.exec(Y[0]),J===null)p(X,"ill-formed argument of the YAML directive");if(W=parseInt(J[1],10),H=parseInt(J[2],10),W!==1)p(X,"unacceptable YAML version of the document");if(X.version=Y[0],X.checkLineBreaks=H<2,H!==1&&H!==2)y9(X,"unsupported YAML version of the document")},TAG:function(X,G,Y){var J,W;if(Y.length!==2)p(X,"TAG directive accepts exactly two arguments");if(J=Y[0],W=Y[1],!SM.test(J))p(X,"ill-formed tag handle (first argument) of the TAG directive");if(e5.call(X.tagMap,J))p(X,'there is a previously declared suffix for "'+J+'" tag handle');if(!kM.test(W))p(X,"ill-formed tag prefix (second argument) of the TAG directive");try{W=decodeURIComponent(W)}catch(H){p(X,"tag prefix is malformed: "+W)}X.tagMap[J]=W}};mC=fC,pC=gC,fM={loadAll:mC,load:pC},gM=Object.prototype.toString,mM=Object.prototype.hasOwnProperty,F1={};F1[0]="\\0";F1[7]="\\a";F1[8]="\\b";F1[9]="\\t";F1[10]="\\n";F1[11]="\\v";F1[12]="\\f";F1[13]="\\r";F1[27]="\\e";F1[34]="\\\"";F1[92]="\\\\";F1[133]="\\N";F1[160]="\\_";F1[8232]="\\L";F1[8233]="\\P";JT=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],WT=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;zT=_T,DT={dump:zT};sM=fM.load,Rp=fM.loadAll,aM=DT.dump,Zp=$3("safeLoad","load"),Ap=$3("safeLoadAll","loadAll"),Vp=$3("safeDump","dump")});var tM=V(()=>{p9()});var c4=()=>{};var b6=V(()=>{G5()});var Ep;var eM=V(()=>{c4();b6();Ep=K.object({message:K.string()})});var Y3,$Q,J3,W3;var u9=V(()=>{b6();Y3=K.object({message:K.string().describe("Natural language response to the query"),summary:K.string().optional().describe("Brief summary if applicable"),topics:K.array(K.string()).optional().describe("Related topics mentioned"),sources:K.array(K.object({id:K.string(),type:K.string(),excerpt:K.string().optional(),relevance:K.number().min(0).max(1).optional()})).optional().describe("Source entities used to answer the query"),metadata:K.record(K.string(),K.unknown()).optional()}).describe("defaultQueryResponse"),$Q=K.object({message:K.string()}).describe("simpleTextResponse"),J3=K.object({success:K.boolean(),entityId:K.string().optional(),message:K.string()}).describe("createEntityResponse"),W3=K.object({success:K.boolean(),entityId:K.string(),changes:K.array(K.string()).optional(),message:K.string()}).describe("updateEntityResponse")});var XQ=V(()=>{c4();u9()});var GQ=V(()=>{c4();u9()});class d9{schema;config;processor=x9();constructor($,X){this.schema=$;this.config=X}getLabels(){let $={};for(let X of this.config.mappings)$[X.key]=X.label;return $}generateBodyTemplate(){if(this.config.mappings.length===0)return"";let $=[];for(let X of this.config.mappings)$.push(`## ${X.label}`,"",`<!-- Write your ${X.label.toLowerCase()} here -->`,"");return $.join(`
163
+ `+$.slice(H+1);else F+=$.slice(J);return F.slice(1)}function VT($){var X="",G=0,Y;for(var J=0;J<$.length;G>=65536?J+=2:J++)if(G=p4($,J),Y=M1[G],!Y&&c4(G)){if(X+=$[J],G>=65536)X+=$[J+1]}else X+=Y||FT(G);return X}function NT($,X,G){var Y="",J=$.tag,W,H,U;for(W=0,H=G.length;W<H;W+=1){if(U=G[W],$.replacer)U=$.replacer.call(G,String(W),U);if(L5($,X,U,!1,!1)||typeof U>"u"&&L5($,X,null,!1,!1)){if(Y!=="")Y+=","+(!$.condenseFlow?" ":"");Y+=$.dump}}$.tag=J,$.dump="["+Y+"]"}function _M($,X,G,Y){var J="",W=$.tag,H,U,F;for(H=0,U=G.length;H<U;H+=1){if(F=G[H],$.replacer)F=$.replacer.call(G,String(H),F);if(L5($,X+1,F,!0,!0,!1,!0)||typeof F>"u"&&L5($,X+1,null,!0,!0,!1,!0)){if(!Y||J!=="")J+=aX($,X);if($.dump&&d4===$.dump.charCodeAt(0))J+="-";else J+="- ";J+=$.dump}}$.tag=W,$.dump=J||"[]"}function wT($,X,G){var Y="",J=$.tag,W=Object.keys(G),H,U,F,M,Q;for(H=0,U=W.length;H<U;H+=1){if(Q="",Y!=="")Q+=", ";if($.condenseFlow)Q+='"';if(F=W[H],M=G[F],$.replacer)M=$.replacer.call(G,F,M);if(!L5($,X,F,!1,!1))continue;if($.dump.length>1024)Q+="? ";if(Q+=$.dump+($.condenseFlow?'"':"")+":"+($.condenseFlow?"":" "),!L5($,X,M,!1,!1))continue;Q+=$.dump,Y+=Q}$.tag=J,$.dump="{"+Y+"}"}function _T($,X,G,Y){var J="",W=$.tag,H=Object.keys(G),U,F,M,Q,q,A;if($.sortKeys===!0)H.sort();else if(typeof $.sortKeys==="function")H.sort($.sortKeys);else if($.sortKeys)throw new z1("sortKeys must be a boolean or a function");for(U=0,F=H.length;U<F;U+=1){if(A="",!Y||J!=="")A+=aX($,X);if(M=H[U],Q=G[M],$.replacer)Q=$.replacer.call(G,M,Q);if(!L5($,X+1,M,!0,!0,!0))continue;if(q=$.tag!==null&&$.tag!=="?"||$.dump&&$.dump.length>1024,q)if($.dump&&d4===$.dump.charCodeAt(0))A+="?";else A+="? ";if(A+=$.dump,q)A+=aX($,X);if(!L5($,X+1,Q,!0,q))continue;if($.dump&&d4===$.dump.charCodeAt(0))A+=":";else A+=": ";A+=$.dump,J+=A}$.tag=W,$.dump=J||"{}"}function zM($,X,G){var Y,J,W,H,U,F;J=G?$.explicitTypes:$.implicitTypes;for(W=0,H=J.length;W<H;W+=1)if(U=J[W],(U.instanceOf||U.predicate)&&(!U.instanceOf||typeof X==="object"&&X instanceof U.instanceOf)&&(!U.predicate||U.predicate(X))){if(G)if(U.multi&&U.representName)$.tag=U.representName(X);else $.tag=U.tag;else $.tag="?";if(U.represent){if(F=$.styleMap[U.tag]||U.defaultStyle,fM.call(U.represent)==="[object Function]")Y=U.represent(X,F);else if(gM.call(U.represent,F))Y=U.represent[F](X,F);else throw new z1("!<"+U.tag+'> tag resolver accepts not "'+F+'" style');$.dump=Y}return!0}return!1}function L5($,X,G,Y,J,W,H){if($.tag=null,$.dump=G,!zM($,G,!1))zM($,G,!0);var U=fM.call($.dump),F=Y,M;if(Y)Y=$.flowLevel<0||$.flowLevel>X;var Q=U==="[object Object]"||U==="[object Array]",q,A;if(Q)q=$.duplicates.indexOf(G),A=q!==-1;if($.tag!==null&&$.tag!=="?"||A||$.indent!==2&&X>0)J=!1;if(A&&$.usedDuplicates[q])$.dump="*ref_"+q;else{if(Q&&A&&!$.usedDuplicates[q])$.usedDuplicates[q]=!0;if(U==="[object Object]"){if(Y&&Object.keys($.dump).length!==0){if(_T($,X,$.dump,J),A)$.dump="&ref_"+q+$.dump}else if(wT($,X,$.dump),A)$.dump="&ref_"+q+" "+$.dump}else if(U==="[object Array]"){if(Y&&$.dump.length!==0){if($.noArrayIndent&&!H&&X>0)_M($,X-1,$.dump,J);else _M($,X,$.dump,J);if(A)$.dump="&ref_"+q+$.dump}else if(NT($,X,$.dump),A)$.dump="&ref_"+q+" "+$.dump}else if(U==="[object String]"){if($.tag!=="?")AT($,$.dump,X,W,F)}else if(U==="[object Undefined]")return!1;else{if($.skipInvalid)return!1;throw new z1("unacceptable kind of an object to dump "+U)}if($.tag!==null&&$.tag!=="?"){if(M=encodeURI($.tag[0]==="!"?$.tag.slice(1):$.tag).replace(/!/g,"%21"),$.tag[0]==="!")M="!"+M;else if(M.slice(0,18)==="tag:yaml.org,2002:")M="!!"+M.slice(18);else M="!<"+M+">";$.dump=M+" "+$.dump}}return!0}function zT($,X){var G=[],Y=[],J,W;eX($,G,Y);for(J=0,W=Y.length;J<W;J+=1)X.duplicates.push(G[Y[J]]);X.usedDuplicates=Array(W)}function eX($,X,G){var Y,J,W;if($!==null&&typeof $==="object")if(J=X.indexOf($),J!==-1){if(G.indexOf(J)===-1)G.push(J)}else if(X.push($),Array.isArray($))for(J=0,W=$.length;J<W;J+=1)eX($[J],X,G);else{Y=Object.keys($);for(J=0,W=Y.length;J<W;J+=1)eX($[Y[J]],X,G)}}function DT($,X){X=X||{};var G=new QT(X);if(!G.noRefs)zT($,G);var Y=$;if(G.replacer)Y=G.replacer.call({"":Y},"",Y);if(L5(G,0,Y,!0,!0))return G.dump+`
164
+ `;return""}function J3($,X){return function(){throw Error("Function yaml."+$+" is removed in js-yaml 4. Use yaml."+X+" instead, which is now safe by default.")}}var FL,ML,QL,qL,OL,ZL,l0,z1,AL,BL,VL,F1,zL,DL,PL,LL,CL,jL,xL,pL,uL,cL,nL,oL,sL,LM,CM,$C,GC,$3=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
165
+ \r`,UC,KC,FC,qC,OC,AC,BC,wC,TM,t5,g9=1,EM=2,IM=3,m9=4,nX=1,_C=2,FM=3,zC,DC,PC,jM,SM,vM,xM,s5,qM,uC,dC,yM,fM,gM,Y3=65279,lC=9,d4=10,cC=13,rC=32,iC=33,nC=34,sX=35,oC=37,sC=38,aC=39,tC=42,mM=44,eC=45,u9=58,$T=61,XT=62,GT=63,YT=64,pM=91,uM=93,JT=96,dM=123,WT=124,lM=125,M1,HT,UT,MT=1,l4=2,rM=1,tX=2,iM=3,nM=4,j6=5,PT,LT,oM,kp,sM,vp,xp,bp;var c9=B(()=>{/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */FL=DM,ML=JL,QL=WL,qL=UL,OL=KL,ZL=HL,l0={isNothing:FL,isObject:ML,toArray:QL,repeat:qL,isNegativeZero:OL,extend:ZL};u4.prototype=Object.create(Error.prototype);u4.prototype.constructor=u4;u4.prototype.toString=function(X){return this.name+": "+PM(this,X)};z1=u4;AL=RL,BL=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],VL=["scalar","sequence","mapping"];F1=wL;oX.prototype.extend=function(X){var G=[],Y=[];if(X instanceof F1)Y.push(X);else if(Array.isArray(X))Y=Y.concat(X);else if(X&&(Array.isArray(X.implicit)||Array.isArray(X.explicit))){if(X.implicit)G=G.concat(X.implicit);if(X.explicit)Y=Y.concat(X.explicit)}else throw new z1("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");G.forEach(function(W){if(!(W instanceof F1))throw new z1("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(W.loadKind&&W.loadKind!=="scalar")throw new z1("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(W.multi)throw new z1("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),Y.forEach(function(W){if(!(W instanceof F1))throw new z1("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var J=Object.create(oX.prototype);return J.implicit=(this.implicit||[]).concat(G),J.explicit=(this.explicit||[]).concat(Y),J.compiledImplicit=KM(J,"implicit"),J.compiledExplicit=KM(J,"explicit"),J.compiledTypeMap=_L(J.compiledImplicit,J.compiledExplicit),J};zL=oX,DL=new F1("tag:yaml.org,2002:str",{kind:"scalar",construct:function($){return $!==null?$:""}}),PL=new F1("tag:yaml.org,2002:seq",{kind:"sequence",construct:function($){return $!==null?$:[]}}),LL=new F1("tag:yaml.org,2002:map",{kind:"mapping",construct:function($){return $!==null?$:{}}}),CL=new zL({explicit:[DL,PL,LL]});jL=new F1("tag:yaml.org,2002:null",{kind:"scalar",resolve:TL,construct:EL,predicate:IL,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});xL=new F1("tag:yaml.org,2002:bool",{kind:"scalar",resolve:SL,construct:kL,predicate:vL,represent:{lowercase:function($){return $?"true":"false"},uppercase:function($){return $?"TRUE":"FALSE"},camelcase:function($){return $?"True":"False"}},defaultStyle:"lowercase"});pL=new F1("tag:yaml.org,2002:int",{kind:"scalar",resolve:fL,construct:gL,predicate:mL,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"]}}),uL=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");cL=/^[-+]?[0-9]+e/;nL=new F1("tag:yaml.org,2002:float",{kind:"scalar",resolve:dL,construct:lL,predicate:iL,represent:rL,defaultStyle:"lowercase"}),oL=CL.extend({implicit:[jL,xL,pL,nL]}),sL=oL,LM=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),CM=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]))?))?$");$C=new F1("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:aL,construct:tL,instanceOf:Date,represent:eL});GC=new F1("tag:yaml.org,2002:merge",{kind:"scalar",resolve:XC});UC=new F1("tag:yaml.org,2002:binary",{kind:"scalar",resolve:YC,construct:JC,predicate:HC,represent:WC}),KC=Object.prototype.hasOwnProperty,FC=Object.prototype.toString;qC=new F1("tag:yaml.org,2002:omap",{kind:"sequence",resolve:MC,construct:QC}),OC=Object.prototype.toString;AC=new F1("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ZC,construct:RC}),BC=Object.prototype.hasOwnProperty;wC=new F1("tag:yaml.org,2002:set",{kind:"mapping",resolve:VC,construct:NC}),TM=sL.extend({implicit:[$C,GC],explicit:[UC,qC,AC,wC]}),t5=Object.prototype.hasOwnProperty,zC=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,DC=/[\x85\u2028\u2029]/,PC=/[,\[\]\{\}]/,jM=/^(?:!|!!|![a-z\-]+!)$/i,SM=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;vM=Array(256),xM=Array(256);for(s5=0;s5<256;s5++)vM[s5]=QM(s5)?1:0,xM[s5]=QM(s5);qM={YAML:function(X,G,Y){var J,W,H;if(X.version!==null)p(X,"duplication of %YAML directive");if(Y.length!==1)p(X,"YAML directive accepts exactly one argument");if(J=/^([0-9]+)\.([0-9]+)$/.exec(Y[0]),J===null)p(X,"ill-formed argument of the YAML directive");if(W=parseInt(J[1],10),H=parseInt(J[2],10),W!==1)p(X,"unacceptable YAML version of the document");if(X.version=Y[0],X.checkLineBreaks=H<2,H!==1&&H!==2)p9(X,"unsupported YAML version of the document")},TAG:function(X,G,Y){var J,W;if(Y.length!==2)p(X,"TAG directive accepts exactly two arguments");if(J=Y[0],W=Y[1],!jM.test(J))p(X,"ill-formed tag handle (first argument) of the TAG directive");if(t5.call(X.tagMap,J))p(X,'there is a previously declared suffix for "'+J+'" tag handle');if(!SM.test(W))p(X,"ill-formed tag prefix (second argument) of the TAG directive");try{W=decodeURIComponent(W)}catch(H){p(X,"tag prefix is malformed: "+W)}X.tagMap[J]=W}};uC=mC,dC=pC,yM={loadAll:uC,load:dC},fM=Object.prototype.toString,gM=Object.prototype.hasOwnProperty,M1={};M1[0]="\\0";M1[7]="\\a";M1[8]="\\b";M1[9]="\\t";M1[10]="\\n";M1[11]="\\v";M1[12]="\\f";M1[13]="\\r";M1[27]="\\e";M1[34]="\\\"";M1[92]="\\\\";M1[133]="\\N";M1[160]="\\_";M1[8232]="\\L";M1[8233]="\\P";HT=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],UT=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;PT=DT,LT={dump:PT};oM=yM.load,kp=yM.loadAll,sM=LT.dump,vp=J3("safeLoad","load"),xp=J3("safeLoadAll","loadAll"),bp=J3("safeDump","dump")});var aM=B(()=>{c9()});var r4=()=>{};var x6=B(()=>{G5()});var rp;var tM=B(()=>{r4();x6();rp=K.object({message:K.string()})});var U3,eM,K3,F3;var r9=B(()=>{x6();U3=K.object({message:K.string().describe("Natural language response to the query"),summary:K.string().optional().describe("Brief summary if applicable"),topics:K.array(K.string()).optional().describe("Related topics mentioned"),sources:K.array(K.object({id:K.string(),type:K.string(),excerpt:K.string().optional(),relevance:K.number().min(0).max(1).optional()})).optional().describe("Source entities used to answer the query"),metadata:K.record(K.string(),K.unknown()).optional()}).describe("defaultQueryResponse"),eM=K.object({message:K.string()}).describe("simpleTextResponse"),K3=K.object({success:K.boolean(),entityId:K.string().optional(),message:K.string()}).describe("createEntityResponse"),F3=K.object({success:K.boolean(),entityId:K.string(),changes:K.array(K.string()).optional(),message:K.string()}).describe("updateEntityResponse")});var $Q=B(()=>{r4();r9()});var XQ=B(()=>{r4();r9()});class i9{schema;config;processor=f9();constructor($,X){this.schema=$;this.config=X}getLabels(){let $={};for(let X of this.config.mappings)$[X.key]=X.label;return $}generateBodyTemplate(){if(this.config.mappings.length===0)return"";let $=[];for(let X of this.config.mappings)$.push(`## ${X.label}`,"",`<!-- Write your ${X.label.toLowerCase()} here -->`,"");return $.join(`
166
166
  `).trimEnd()+`
167
167
  `}format($){try{let X=[`# ${this.config.title}`,""];for(let G of this.config.mappings)this.formatField($,G,X,2);return X.join(`
168
168
  `)}catch{throw Error("Failed to format structured content")}}parse($){try{let X=this.processor.parse($),G=this.extractSections(X,2),Y=this.buildDataFromSections(G,this.config.mappings);return this.schema.parse(Y)}catch{throw Error("Failed to parse structured content")}}formatField($,X,G,Y){let J="#".repeat(Y)+" "+X.label,W=this.getValueByPath($,X.key);if(X.type==="custom"&&X.formatter){if(W!==void 0&&W!==null){G.push(J,"");let H=X.formatter(W);if(H)G.push(H,"")}return}switch(X.type){case"string":case"number":G.push(J,String(W??""),"");break;case"object":if(G.push(J),X.children&&W)for(let H of X.children)this.formatField(W,H,G,Y+1);break;case"array":if(G.push(J,""),Array.isArray(W))if(X.itemType==="object"&&X.itemMappings)W.forEach((H,U)=>{if(G.push(`${"#".repeat(Y+1)} ${X.label.slice(0,-1)} ${U+1}`),G.push(""),X.itemMappings)for(let F of X.itemMappings)this.formatField(H,F,G,Y+2)});else{for(let H of W){let U=this.defaultArrayItemFormat(H);G.push(`- ${U}`)}G.push("")}break}}getValueByPath($,X){let G=X.split("."),Y=$;for(let J of G)if(Y&&typeof Y==="object"&&J in Y)Y=Y[J];else return;return Y}defaultArrayItemFormat($){if(typeof $==="string"||typeof $==="number")return String($);return JSON.stringify($)}extractSections($,X){let G=new Map,Y=null,J=[];for(let W of $.children)if(W.type==="heading"&&W.depth===X){if(Y)G.set(Y.toLowerCase(),J);Y=this.getHeadingText(W),J=[]}else if(Y)J.push(W);if(Y)G.set(Y.toLowerCase(),J);return G}extractSubsections($,X){let G=new Map,Y=null,J=[];for(let W of $)if(W.type==="heading"&&W.depth===X){if(Y)G.set(Y.toLowerCase(),J);Y=this.getHeadingText(W),J=[]}else if(Y)J.push(W);if(Y)G.set(Y.toLowerCase(),J);return G}textNodeSchema=K.object({type:K.literal("text"),value:K.string()});extractTextValue($){let X=this.textNodeSchema.safeParse($);return X.success?X.data.value:""}getHeadingText($){return $.children.filter((G)=>G.type==="text").map((G)=>this.extractTextValue(G)).join("")}buildDataFromSections($,X,G=2){let Y={};for(let J of X){let W=$.get(J.label.toLowerCase());if(J.type==="custom"&&J.parser&&W){let H=this.getTextFromSection(W),U=J.parser(H);this.setValueByPath(Y,J.key,U)}else if(J.type==="object"&&J.children&&W){let H=this.extractSubsections(W,G+1),U=this.buildDataFromSections(H,J.children,G+1);this.setValueByPath(Y,J.key,U)}else if(J.type==="array"&&W)if(J.itemType==="object"&&J.itemMappings){let H=this.extractObjectArrayItems(W,G+1,J.itemMappings);this.setValueByPath(Y,J.key,H)}else{let H=this.extractSimpleArrayItems(W);this.setValueByPath(Y,J.key,H)}else if(W){let H=this.getTextFromSection(W),U=J.type==="number"?Number(H):H;this.setValueByPath(Y,J.key,U)}}return Y}setValueByPath($,X,G){let Y=X.split("."),J=$;for(let H=0;H<Y.length-1;H++){let U=Y[H];if(!U)continue;if(!(U in J))J[U]={};J=J[U]}let W=Y[Y.length-1];if(W)J[W]=G}getTextFromSection($){let X=[];for(let G of $)if(G.type==="paragraph"){let Y=this.extractTextFromParagraph(G);if(Y)X.push(Y)}else if(G.type==="list"){let Y=G;for(let J of Y.children){let W=this.extractTextFromListItem(J);if(W)X.push(`- ${W}`)}}return X.join(`
169
169
  `)}extractTextFromParagraph($){return this.extractInlineText($.children).trim()}extractInlineText($){let X=[];for(let G of $)if(G.type==="text")X.push(this.extractTextValue(G));else if(G.type==="emphasis"){let Y=this.extractInlineText(G.children);if(Y)X.push(`*${Y}*`)}else if(G.type==="strong"){let Y=this.extractInlineText(G.children);if(Y)X.push(`**${Y}**`)}return X.join("")}extractSimpleArrayItems($){let X=[];for(let G of $)if(G.type==="list"){let Y=G;for(let J of Y.children){let W=this.extractTextFromListItem(J);if(W)X.push(W)}}return X}extractObjectArrayItems($,X,G){let Y=[],J=[],W=!1;for(let H of $)if(H.type==="heading"&&H.depth===X){if(W&&J.length>0){let U=this.extractSubsections(J,X+1),F=this.buildDataFromSections(U,G,X+1);Y.push(F)}J=[],W=!0}else if(W)J.push(H);if(W&&J.length>0){let H=this.extractSubsections(J,X+1),U=this.buildDataFromSections(H,G,X+1);Y.push(U)}return Y}extractTextFromListItem($){let X=[];for(let G of $.children)if(G.type==="paragraph"){let Y=this.extractTextFromParagraph(G);if(Y)X.push(Y)}return X.join(`
170
- `)}}var YQ=V(()=>{b6();mX()});var JQ=V(()=>{p9()});var WQ=V(()=>{p9()});var HQ=V(()=>{c4();eM();XQ();GQ();YQ();JQ();WQ()});var Mu;var UQ=V(()=>{b6();Mu=K.object({slug:K.string(),title:K.string(),type:K.string(),entityId:K.string(),contentHash:K.string()})});var KQ=V(()=>{HQ();UQ()});var FQ="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";import{webcrypto as MQ}from"crypto";function LT($){if(!u2||u2.length<$)u2=Buffer.allocUnsafe($*PT),MQ.getRandomValues(u2),h6=0;else if(h6+$>u2.length)MQ.getRandomValues(u2),h6=0;h6+=$}function QQ($=21){LT($|=0);let X="";for(let G=h6-$;G<h6;G++)X+=FQ[u2[G]&63];return X}var PT=128,u2,h6;var qQ=()=>{};function C5($=12){return QQ($)}var OQ=V(()=>{qQ()});function f1($){return $.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function H3($){let G=$.split(/\s+/).filter((Y)=>Y.length>0).length;return Math.max(1,Math.ceil(G/200))}function U3($){let X=$.trim().replace(/^https?:\/\//,""),G=X.split(".").filter(Boolean);if(G.length>=3){let[Y,...J]=G;if(!Y||J.length===0)return`preview.${X}`;return`${Y}-preview.${J.join(".")}`}return`preview.${X}`}var K3=()=>{};var RQ=V(()=>{K3()});function y6($,X){let G=$.metadata.publishedAt??$.created,Y=X.metadata.publishedAt??X.created;return new Date(Y).getTime()-new Date(G).getTime()}var r4;var ZQ=V(()=>{r4={START:0,INIT:10,FETCH:20,PROCESS:40,GENERATE:50,EXTRACT:60,SAVE:80,COMPLETE:100}});function j0($){return $ instanceof Error?$.message:String($)}function i4($){return $ instanceof Error?$:Error(String($))}var F3;var AQ=V(()=>{F3={success($){return{success:!0,...$}},failure($){return{success:!1,error:j0($)}}}});var n4;var VQ=V(()=>{G5();n4=K.object({success:K.boolean(),entityId:K.string().optional(),error:K.string().optional()})});var BQ=()=>{};var NQ=()=>{};function M3($){let X={};for(let Y of $.matchAll(wQ)){let J=Y[1]??"";for(let H of J.matchAll(/([\w-]+)=["']([^"']*?)["']/g)){let U=H[1],F=H[2];if(U&&F!==void 0)X[U]=F}let W=J.replace(/([\w-]+)=["']([^"']*?)["']/g,"").trim();if(W)for(let H of W.matchAll(/(?:^|\s)([\w-]+)(?=\s|$)/g)){let U=H[1];if(U)X[U]="true"}}let G=$.replace(wQ,"").replace(/^\n+/,"").replace(/\n{3,}/g,`
170
+ `)}}var GQ=B(()=>{x6();lX()});var YQ=B(()=>{c9()});var JQ=B(()=>{c9()});var WQ=B(()=>{r4();tM();$Q();XQ();GQ();YQ();JQ()});var Eu;var HQ=B(()=>{x6();Eu=K.object({slug:K.string(),title:K.string(),type:K.string(),entityId:K.string(),contentHash:K.string()})});var UQ=B(()=>{WQ();HQ()});var KQ="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";import{webcrypto as FQ}from"crypto";function TT($){if(!p2||p2.length<$)p2=Buffer.allocUnsafe($*CT),FQ.getRandomValues(p2),b6=0;else if(b6+$>p2.length)FQ.getRandomValues(p2),b6=0;b6+=$}function MQ($=21){TT($|=0);let X="";for(let G=b6-$;G<b6;G++)X+=KQ[p2[G]&63];return X}var CT=128,p2,b6;var QQ=()=>{};function C5($=12){return MQ($)}var qQ=B(()=>{QQ()});function f1($){return $.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function M3($){let G=$.split(/\s+/).filter((Y)=>Y.length>0).length;return Math.max(1,Math.ceil(G/200))}function Q3($){let X=$.trim().replace(/^https?:\/\//,""),G=X.split(".").filter(Boolean);if(G.length>=3){let[Y,...J]=G;if(!Y||J.length===0)return`preview.${X}`;return`${Y}-preview.${J.join(".")}`}return`preview.${X}`}var q3=()=>{};var OQ=B(()=>{q3()});function h6($,X){let G=$.metadata.publishedAt??$.created,Y=X.metadata.publishedAt??X.created;return new Date(Y).getTime()-new Date(G).getTime()}var i4;var ZQ=B(()=>{i4={START:0,INIT:10,FETCH:20,PROCESS:40,GENERATE:50,EXTRACT:60,SAVE:80,COMPLETE:100}});function S0($){return $ instanceof Error?$.message:String($)}function n4($){return $ instanceof Error?$:Error(String($))}var O3;var RQ=B(()=>{O3={success($){return{success:!0,...$}},failure($){return{success:!1,error:S0($)}}}});var o4;var AQ=B(()=>{G5();o4=K.object({success:K.boolean(),entityId:K.string().optional(),error:K.string().optional()})});var BQ=()=>{};var VQ=()=>{};function Z3($){let X={};for(let Y of $.matchAll(NQ)){let J=Y[1]??"";for(let H of J.matchAll(/([\w-]+)=["']([^"']*?)["']/g)){let U=H[1],F=H[2];if(U&&F!==void 0)X[U]=F}let W=J.replace(/([\w-]+)=["']([^"']*?)["']/g,"").trim();if(W)for(let H of W.matchAll(/(?:^|\s)([\w-]+)(?=\s|$)/g)){let U=H[1];if(U)X[U]="true"}}let G=$.replace(NQ,"").replace(/^\n+/,"").replace(/\n{3,}/g,`
171
171
 
172
- `).trim();return{attributes:X,markdown:G}}function Q3($){let X=$.split(TT);return X.length>1?X:null}var wQ,TT;var _Q=V(()=>{wQ=/<!--\s*\.slide:\s*(.*?)\s*-->/g;TT=/<!--\s*\.break\s*-->/});function ST($){return $.replace(jT,(X)=>IT[X]??X)}function l9($){return $.replace(ET,(X,G)=>{return`<div class="mermaid">${ST(G)}</div>`})}var ET,IT,jT;var zQ=V(()=>{ET=/<pre><code class="language-mermaid">([\s\S]*?)<\/code><\/pre>/g,IT={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},jT=/&(?:amp|lt|gt|quot|#39);/g});var I=V(()=>{JJ();$7();$7();KM();tM();OQ();K3();RQ();u9();b6();ZQ();AQ();VQ();BQ();NQ();_Q();zQ();KQ()});var vT,LQ;var CQ=V(()=>{I();vT=K.object({status:K.enum(["healthy","warning","error","unknown"]),message:K.string().optional(),lastCheck:K.date().optional(),details:K.record(K.string(),K.unknown()).optional()}),LQ=K.object({name:K.string(),pluginId:K.string(),status:K.string(),health:vT.optional()})});var q3;var O3=V(()=>{I();q3=K.enum(["anchor","trusted","public"])});function TQ($,X){return(G)=>{let Y=$.parse(G);return X(Y)}}function L0($){let{layout:X,schema:G,...Y}=$,J={...Y,schema:G};if(X){if(J.layout={},X.component)J.layout.component=TQ(G,X.component);if(X.fullscreen!==void 0)J.layout.fullscreen=X.fullscreen}return J}var xT;var EQ=V(()=>{I();O3();xT=K.object({name:K.string(),description:K.string(),schema:K.any(),basePrompt:K.string().optional(),useKnowledgeContext:K.boolean().optional(),requiredPermission:q3,formatter:K.any().optional(),layout:K.object({component:K.any(),fullscreen:K.boolean().optional()}).optional(),dataSourceId:K.string().optional()})});class o4{static canGenerate($){return!!$.basePrompt&&!!$.dataSourceId&&$.dataSourceId.includes("ai-content")}static canFetch($){return!!$.dataSourceId&&!this.canGenerate($)}static canRender($){return!!$.layout?.component}static isStaticOnly($){return!this.canGenerate($)&&!this.canFetch($)}static getCapabilities($){return{canGenerate:this.canGenerate($),canFetch:this.canFetch($),canRender:this.canRender($),isStaticOnly:this.isStaticOnly($)}}static validate($){let X=[];if($.dataSourceId?.includes("ai-content")&&!$.basePrompt)X.push(`Template "${$.name}" has AI-content dataSourceId but no basePrompt. AI generation requires a basePrompt.`);if($.basePrompt&&(!$.dataSourceId||!$.dataSourceId.includes("ai-content")))X.push(`Template "${$.name}" has basePrompt but no AI-content dataSourceId. The basePrompt won't be used.`);return X}static logCapabilities($,X){let G=this.getCapabilities($),Y=this.validate($);if(X)X.debug(`Template capabilities for "${$.name}":`,{...G,errors:Y.length>0?Y:void 0})}}var IQ=()=>{};var bT,hT,yT,fT;var jQ=V(()=>{I();bT=K.enum(["site-content-preview","site-content-production"]),hT=K.object({name:K.string(),schema:K.any(),description:K.string().optional(),pluginId:K.string(),renderers:K.object({web:K.union([K.function(),K.string()]).optional()})}),yT=K.object({enableContentGeneration:K.boolean().default(!1),outputDir:K.string(),workingDir:K.string().optional(),environment:K.enum(["preview","production"]).default("preview"),siteConfig:K.object({title:K.string(),description:K.string(),url:K.string().optional()}).optional()}),fT=K.object({success:K.boolean(),routesBuilt:K.number(),errors:K.array(K.string()).optional(),warnings:K.array(K.string()).optional()})});var U5=V(()=>{EQ();IQ();O3();jQ()});import{McpServer as vl,ResourceTemplate as xl}from"@modelcontextprotocol/sdk/server/mcp.js";var kQ=V(()=>{U5();I()});var vQ=V(()=>{kQ()});var c9,xQ,bQ,hQ,R3;var yQ=V(()=>{I();c9=K.object({interfaceType:K.string(),userId:K.string(),channelId:K.string().optional(),channelName:K.string().optional()}),xQ=K.object({success:K.literal(!0),data:K.unknown(),message:K.string().optional()}),bQ=K.object({success:K.literal(!1),error:K.string(),code:K.string().optional()}),hQ=K.object({needsConfirmation:K.literal(!0),toolName:K.string(),description:K.string(),args:K.unknown()}),R3=K.union([xQ,bQ,hQ])});var fQ;var gQ=V(()=>{I();fQ=K.union([K.object({success:K.literal(!0),data:K.unknown(),message:K.string().optional()}),K.object({success:K.literal(!1),error:K.string(),code:K.string().optional()})])});var mQ=V(()=>{I()});var Z3=V(()=>{vQ();yQ();gQ();mQ()});var Kc,Fc,pQ,dT,lT;var A3=V(()=>{I();I();CQ();Z3();Kc=K.object({id:K.string(),type:K.string(),version:K.string(),status:K.string()}),Fc=K.object({name:K.string(),description:K.string()}),pQ=K.object({label:K.string(),url:K.string(),pluginId:K.string(),priority:K.number().default(100)}),dT=K.object({model:K.string(),version:K.string(),uptime:K.number(),entities:K.number(),embeddings:K.number(),ai:K.object({model:K.string(),embeddingModel:K.string()}),daemons:K.array(LQ),endpoints:K.array(pQ)}),lT=K.object({id:K.string(),version:K.string(),type:K.enum(["core","entity","service","interface"]),description:K.string().optional(),dependencies:K.array(K.string()).optional(),packageName:K.string()})});class f6{id;version;description;packageName;config;context;get logger(){return this.context?.logger??a0.createFresh({context:this.id})}constructor($,X,G,Y){this.id=$,this.packageName=X.name,this.version=X.version,this.description=X.description??`${X.name} plugin`,this.config=Y.parse(G)}setupMessageHandlers($){$.messaging.subscribe(`plugin:${this.id}:tool:execute`,async(X)=>{try{let{toolName:G,args:Y,progressToken:J,hasProgress:W,interfaceType:H,userId:U,channelId:F}=cT.parse(X.payload),Q=(await this.getTools()).find((A)=>A.name===G);if(!Q)return{success:!1,error:`Tool not found: ${G}`};let q={interfaceType:H,userId:U,...F&&{channelId:F},...W&&J!==void 0&&{progressToken:J,sendProgress:async(A)=>{await $.messaging.send(`plugin:${this.id}:progress`,{progressToken:J,notification:A})}}};return{success:!0,data:await Q.handler(Y,q)}}catch(G){if(G instanceof K.ZodError)return{success:!1,error:"Invalid tool execution request format"};return this.logger.error("Tool execution error",G),{success:!1,error:j0(G)}}}),$.messaging.subscribe(`plugin:${this.id}:resource:get`,async(X)=>{try{let{resourceUri:G}=rT.parse(X.payload),J=(await this.getResources()).find((H)=>H.uri===G);if(!J)return{success:!1,error:`Resource not found: ${G}`};return{success:!0,data:await J.handler()}}catch(G){if(G instanceof K.ZodError)return{success:!1,error:"Invalid resource get request format"};return this.logger.error("Resource fetch error",G),{success:!1,error:j0(G)}}})}async onRegister($){}async onReady($){}async ready(){await this.onReady(this.getContext())}async getCapabilities(){let $=await this.getInstructions();return{tools:await this.getTools(),resources:await this.getResources(),...$&&{instructions:$}}}async getTools(){return[]}async getResources(){return[]}async getInstructions(){return}async shutdown(){await this.onShutdown()}async onShutdown(){}getContext(){if(!this.context)throw Error(`Plugin ${this.id}: Plugin not registered yet`);return this.context}determineUserPermissionLevel($){return"public"}createProgressBridge($){if(!$)return;let X=this.context;if(!X)return;let G=this.id;return s5.from(async(Y)=>{await X.messaging.send(`plugin:${G}:progress`,{progressToken:$,notification:{progress:Y.progress,total:Y.total,message:Y.message}})})}}var cT,rT;var r9=V(()=>{A3();I();I();cT=K.object({toolName:K.string(),args:K.unknown(),progressToken:K.union([K.string(),K.number()]).optional(),hasProgress:K.boolean().optional(),...c9.shape}),rT=K.object({resourceUri:K.string()})});var uQ,dQ,s4,Vc;var i9=V(()=>{I();uQ=K.enum(["file_operations","content_operations","data_processing","batch_processing"]),dQ=K.object({pluginId:K.string().optional(),progressToken:K.union([K.string(),K.number()]).optional(),operationType:uQ,operationTarget:K.string().optional(),interfaceType:K.string().optional(),channelId:K.string().optional()}),s4=dQ.extend({rootJobId:K.string()}),Vc=K.enum(["none","skip","replace","coalesce"])});var V3,lQ,iT,nT,cQ,B3;var $2=V(()=>{I();i9();V3=K.enum(["pending","processing","completed","failed"]),lQ=K.enum(["completed","failed"]),iT=K.object({id:K.string(),type:K.string(),status:V3,data:K.unknown(),result:K.unknown().optional(),lastError:K.string().optional().nullable(),attempts:K.number(),maxRetries:K.number(),priority:K.number(),createdAt:K.date(),updatedAt:K.date(),processedAt:K.date().optional().nullable(),completedAt:K.date().optional().nullable(),failedAt:K.date().optional().nullable()}),nT=K.object({jobId:K.string(),type:K.string(),status:lQ,result:K.unknown().optional(),error:K.string().optional()}),cQ=K.object({success:K.literal(!1),error:K.string().optional()}),B3=K.object({id:K.string(),type:K.enum(["job","batch"]),status:V3,message:K.string().optional(),progress:K.object({current:K.number(),total:K.number(),percentage:K.number()}).optional(),aggregationKey:K.string().optional(),batchDetails:K.object({totalOperations:K.number(),completedOperations:K.number(),failedOperations:K.number(),currentOperation:K.string().optional(),errors:K.array(K.string()).optional()}).optional(),jobDetails:K.object({jobType:K.string(),priority:K.number(),retryCount:K.number()}).optional(),metadata:s4})});function $0($,X){if(!$||typeof $!=="object")return!1;if($ instanceof X)return!0;if(!Object.prototype.hasOwnProperty.call(X,k))throw Error(`Class "${X.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(k in G&&G[k]===X[k])return!0;G=Object.getPrototypeOf(G)}return!1}var k;var w0=V(()=>{k=Symbol.for("drizzle:entityKind")});var P1;var X2=V(()=>{w0();P1=class P1{constructor($,X){this.table=$,this.config=X,this.name=X.name,this.keyAsName=X.keyAsName,this.notNull=X.notNull,this.default=X.default,this.defaultFn=X.defaultFn,this.onUpdateFn=X.onUpdateFn,this.hasDefault=X.hasDefault,this.primary=X.primaryKey,this.isUnique=X.isUnique,this.uniqueName=X.uniqueName,this.uniqueType=X.uniqueType,this.dataType=X.dataType,this.columnType=X.columnType,this.generated=X.generated,this.generatedIdentity=X.generatedIdentity}static[k]="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"}}});var N3;var w3=V(()=>{w0();N3=class N3{static[k]="ColumnBuilder";config;constructor($,X,G){this.config={name:$,keyAsName:$==="",notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:X,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 o1;var a4=V(()=>{o1=Symbol.for("drizzle:Name")});function rQ($,...X){return $(...X)}var iQ=()=>{};function nQ($,X){return`${$[o1]}_${X.join("_")}_unique`}var oQ=V(()=>{a4()});var t4,oT;var sQ=V(()=>{X2();w0();oQ();t4=class t4 extends P1{constructor($,X){if(!X.uniqueName)X.uniqueName=nQ($,[X.name]);super($,X);this.table=$}static[k]="PgColumn"};oT=class oT extends t4{static[k]="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}}});function tQ($){return!!$&&typeof $==="function"&&aQ in $&&$[aQ]===!0}var sT,aQ,aT;var eQ=V(()=>{w0();sQ();sT=class sT extends t4{static[k]="PgEnumObjectColumn";enum;enumValues=this.config.enum.enumValues;constructor($,X){super($,X);this.enum=X.enum}getSQLType(){return this.enum.enumName}};aQ=Symbol.for("drizzle:isPgEnum");aT=class aT extends t4{static[k]="PgEnumColumn";enum=this.config.enum;enumValues=this.config.enum.enumValues;constructor($,X){super($,X);this.enum=X.enum}getSQLType(){return this.enum.enumName}}});var A1;var G2=V(()=>{w0();A1=class A1{static[k]="Subquery";constructor($,X,G,Y=!1,J=[]){this._={brand:"Subquery",sql:$,selectedFields:X,alias:G,isWith:Y,usedTables:J}}}});var $q="0.44.7";var Xq=()=>{};var _3,z3,Gq;var Yq=V(()=>{iQ();Xq();Gq={startActiveSpan($,X){if(!_3)return X();if(!z3)z3=_3.trace.getTracer("drizzle-orm",$q);return rQ((G,Y)=>Y.startActiveSpan($,(J)=>{try{return X(J)}catch(W){throw J.setStatus({code:G.SpanStatusCode.ERROR,message:W instanceof Error?W.message:"Unknown error"}),W}finally{J.end()}}),_3,z3)}}});var m0;var Y2=V(()=>{m0=Symbol.for("drizzle:ViewBaseConfig")});var D3,Jq,Wq,P3,L3,e4,Hq,tT,W0;var T5=V(()=>{w0();a4();D3=Symbol.for("drizzle:Schema"),Jq=Symbol.for("drizzle:Columns"),Wq=Symbol.for("drizzle:ExtraConfigColumns"),P3=Symbol.for("drizzle:OriginalName"),L3=Symbol.for("drizzle:BaseName"),e4=Symbol.for("drizzle:IsAlias"),Hq=Symbol.for("drizzle:ExtraConfigBuilder"),tT=Symbol.for("drizzle:IsDrizzleTable");W0=class W0{static[k]="Table";static Symbol={Name:o1,Schema:D3,OriginalName:P3,Columns:Jq,ExtraConfigColumns:Wq,BaseName:L3,IsAlias:e4,ExtraConfigBuilder:Hq};[o1];[P3];[D3];[Jq];[Wq];[L3];[e4]=!1;[tT]=!0;[Hq]=void 0;constructor($,X,G){this[o1]=this[P3]=$,this[D3]=X,this[L3]=G}}});function eT($){return $!==null&&$!==void 0&&typeof $.getSQL==="function"}function $E($){let X={sql:"",params:[]};for(let G of $)if(X.sql+=G.sql,X.params.push(...G.params),G.typings?.length){if(!X.typings)X.typings=[];X.typings.push(...G.typings)}return X}function g6($,...X){let G=[];if(X.length>0||$.length>0&&$[0]!=="")G.push(new g1($[0]));for(let[Y,J]of X.entries())G.push(J,new g1($[Y+1]));return new R0(G)}var g1,R0,n9,Uq,Kq,Gr,s9,o9,XE,K5;var J2=V(()=>{w0();eQ();G2();Yq();Y2();X2();T5();g1=class g1{static[k]="StringChunk";value;constructor($){this.value=Array.isArray($)?$:[$]}getSQL(){return new R0([this])}};R0=class R0{constructor($){this.queryChunks=$;for(let X of $)if($0(X,W0)){let G=X[W0.Symbol.Schema];this.usedTables.push(G===void 0?X[W0.Symbol.Name]:G+"."+X[W0.Symbol.Name])}}static[k]="SQL";decoder=Uq;shouldInlineParams=!1;usedTables=[];append($){return this.queryChunks.push(...$.queryChunks),this}toQuery($){return Gq.startActiveSpan("drizzle.buildSQL",(X)=>{let G=this.buildQueryFromSourceParams(this.queryChunks,$);return X?.setAttributes({"drizzle.query.text":G.sql,"drizzle.query.params":JSON.stringify(G.params)}),G})}buildQueryFromSourceParams($,X){let G=Object.assign({},X,{inlineParams:X.inlineParams||this.shouldInlineParams,paramStartIndex:X.paramStartIndex||{value:0}}),{casing:Y,escapeName:J,escapeParam:W,prepareTyping:H,inlineParams:U,paramStartIndex:F}=G;return $E($.map((M)=>{if($0(M,g1))return{sql:M.value.join(""),params:[]};if($0(M,n9))return{sql:J(M.value),params:[]};if(M===void 0)return{sql:"",params:[]};if(Array.isArray(M)){let Q=[new g1("(")];for(let[q,Z]of M.entries())if(Q.push(Z),q<M.length-1)Q.push(new g1(", "));return Q.push(new g1(")")),this.buildQueryFromSourceParams(Q,G)}if($0(M,R0))return this.buildQueryFromSourceParams(M.queryChunks,{...G,inlineParams:U||M.shouldInlineParams});if($0(M,W0)){let Q=M[W0.Symbol.Schema],q=M[W0.Symbol.Name];return{sql:Q===void 0||M[e4]?J(q):J(Q)+"."+J(q),params:[]}}if($0(M,P1)){let Q=Y.getColumnCasing(M);if(X.invokeSource==="indexes")return{sql:J(Q),params:[]};let q=M.table[W0.Symbol.Schema];return{sql:M.table[e4]||q===void 0?J(M.table[W0.Symbol.Name])+"."+J(Q):J(q)+"."+J(M.table[W0.Symbol.Name])+"."+J(Q),params:[]}}if($0(M,K5)){let Q=M[m0].schema,q=M[m0].name;return{sql:Q===void 0||M[m0].isAlias?J(q):J(Q)+"."+J(q),params:[]}}if($0(M,s9)){if($0(M.value,o9))return{sql:W(F.value++,M),params:[M],typings:["none"]};let Q=M.value===null?null:M.encoder.mapToDriverValue(M.value);if($0(Q,R0))return this.buildQueryFromSourceParams([Q],G);if(U)return{sql:this.mapInlineParam(Q,G),params:[]};let q=["none"];if(H)q=[H(M.encoder)];return{sql:W(F.value++,Q),params:[Q],typings:q}}if($0(M,o9))return{sql:W(F.value++,M),params:[M],typings:["none"]};if($0(M,R0.Aliased)&&M.fieldAlias!==void 0)return{sql:J(M.fieldAlias),params:[]};if($0(M,A1)){if(M._.isWith)return{sql:J(M._.alias),params:[]};return this.buildQueryFromSourceParams([new g1("("),M._.sql,new g1(") "),new n9(M._.alias)],G)}if(tQ(M)){if(M.schema)return{sql:J(M.schema)+"."+J(M.enumName),params:[]};return{sql:J(M.enumName),params:[]}}if(eT(M)){if(M.shouldOmitSQLParens?.())return this.buildQueryFromSourceParams([M.getSQL()],G);return this.buildQueryFromSourceParams([new g1("("),M.getSQL(),new g1(")")],G)}if(U)return{sql:this.mapInlineParam(M,G),params:[]};return{sql:W(F.value++,M),params:[M],typings:["none"]}}))}mapInlineParam($,{escapeString:X}){if($===null)return"null";if(typeof $==="number"||typeof $==="boolean")return $.toString();if(typeof $==="string")return X($);if(typeof $==="object"){let G=$.toString();if(G==="[object Object]")return X(JSON.stringify($));return X(G)}throw Error("Unexpected param value: "+$)}getSQL(){return this}as($){if($===void 0)return this;return new R0.Aliased(this,$)}mapWith($){return this.decoder=typeof $==="function"?{mapFromDriverValue:$}:$,this}inlineParams(){return this.shouldInlineParams=!0,this}if($){return $?this:void 0}};n9=class n9{constructor($){this.value=$}static[k]="Name";brand;getSQL(){return new R0([this])}};Uq={mapFromDriverValue:($)=>$},Kq={mapToDriverValue:($)=>$},Gr={...Uq,...Kq};s9=class s9{constructor($,X=Kq){this.value=$,this.encoder=X}static[k]="Param";brand;getSQL(){return new R0([this])}};(($)=>{function X(){return new R0([])}$.empty=X;function G(F){return new R0(F)}$.fromList=G;function Y(F){return new R0([new g1(F)])}$.raw=Y;function J(F,M){let Q=[];for(let[q,Z]of F.entries()){if(q>0&&M!==void 0)Q.push(M);Q.push(Z)}return new R0(Q)}$.join=J;function W(F){return new n9(F)}$.identifier=W;function H(F){return new o9(F)}$.placeholder=H;function U(F,M){return new s9(F,M)}$.param=U})(g6||(g6={}));(($)=>{class X{constructor(G,Y){this.sql=G,this.fieldAlias=Y}static[k]="SQL.Aliased";isSelectionField=!1;getSQL(){return this.sql}clone(){return new X(this.sql,this.fieldAlias)}}$.Aliased=X})(R0||(R0={}));o9=class o9{constructor($){this.name=$}static[k]="Placeholder";getSQL(){return new R0([this])}};XE=Symbol.for("drizzle:IsDrizzleView");K5=class K5{static[k]="View";[m0];[XE]=!0;constructor({name:$,schema:X,selectedFields:G,query:Y}){this[m0]={name:$,originalName:$,schema:X,selectedFields:G,query:Y,isExisting:!Y,isAlias:!1}}getSQL(){return new R0([this])}};P1.prototype.getSQL=function(){return new R0([this])};W0.prototype.getSQL=function(){return new R0([this])};A1.prototype.getSQL=function(){return new R0([this])}});function m6($,X){return Object.entries($).reduce((G,[Y,J])=>{if(typeof Y!=="string")return G;let W=X?[...X,Y]:[Y];if($0(J,P1)||$0(J,R0)||$0(J,R0.Aliased))G.push({path:W,field:J});else if($0(J,W0))G.push(...m6(J[W0.Symbol.Columns],W));else G.push(...m6(J,W));return G},[])}function C3($,X){let G=Object.keys($),Y=Object.keys(X);if(G.length!==Y.length)return!1;for(let[J,W]of G.entries())if(W!==Y[J])return!1;return!0}function Fq($,X){for(let G of X)for(let Y of Object.getOwnPropertyNames(G.prototype)){if(Y==="constructor")continue;Object.defineProperty($.prototype,Y,Object.getOwnPropertyDescriptor(G.prototype,Y)||Object.create(null))}}function $8($){return $0($,A1)?$._.alias:$0($,K5)?$[m0].name:$0($,R0)?void 0:$[W0.Symbol.IsAlias]?$[W0.Symbol.Name]:$[W0.Symbol.BaseName]}function F5($,X){return{name:typeof $==="string"&&$.length>0?$:"",config:typeof $==="object"?$:X}}var T3;var E5=V(()=>{X2();w0();J2();G2();T5();Y2();T3=typeof TextDecoder>"u"?null:new TextDecoder});var Mq=()=>{};var Qq=()=>{};var qq=()=>{};var Oq=V(()=>{Qq();qq()});var Rq=()=>{};var X8,E3;var I3=V(()=>{X2();w0();T5();Y2();X8=class X8{constructor($){this.table=$}static[k]="ColumnAliasProxyHandler";get($,X){if(X==="table")return this.table;return $[X]}};E3=class E3{constructor($,X){this.alias=$,this.replaceOriginalName=X}static[k]="TableAliasProxyHandler";get($,X){if(X===W0.Symbol.IsAlias)return!0;if(X===W0.Symbol.Name)return this.alias;if(this.replaceOriginalName&&X===W0.Symbol.OriginalName)return this.alias;if(X===m0)return{...$[m0],name:this.alias,isAlias:!0};if(X===W0.Symbol.Columns){let Y=$[W0.Symbol.Columns];if(!Y)return Y;let J={};return Object.keys(Y).map((W)=>{J[W]=new Proxy(Y[W],new X8(new Proxy($,this)))}),J}let G=$[X];if($0(G,P1))return new Proxy(G,new X8(new Proxy($,this)));return G}}});var L1;var j3=V(()=>{I3();X2();w0();J2();G2();Y2();L1=class L1{static[k]="SelectionProxyHandler";config;constructor($){this.config={...$}}get($,X){if(X==="_")return{...$._,selectedFields:new Proxy($._.selectedFields,this)};if(X===m0)return{...$[m0],selectedFields:new Proxy($[m0].selectedFields,this)};if(typeof X==="symbol")return $[X];let Y=($0($,A1)?$._.selectedFields:$0($,K5)?$[m0].selectedFields:$)[X];if($0(Y,R0.Aliased)){if(this.config.sqlAliasedBehavior==="sql"&&!Y.isSelectionField)return Y.sql;let J=Y.clone();return J.isSelectionField=!0,J}if($0(Y,R0)){if(this.config.sqlBehavior==="sql")return Y;throw Error(`You tried to reference "${X}" field from a subquery, which is a raw SQL field, but it doesn't have an alias declared. Please add an alias to the field using ".as('alias')" method.`)}if($0(Y,P1)){if(this.config.alias)return new Proxy(Y,new X8(new Proxy(Y.table,new E3(this.config.alias,this.config.replaceOriginalName??!1))));return Y}if(typeof Y!=="object"||Y===null)return Y;return new Proxy(Y,new L1(this.config))}}});var G8;var a9=V(()=>{w0();G8=class G8{static[k]="QueryPromise";[Symbol.toStringTag]="QueryPromise";catch($){return this.then(void 0,$)}finally($){return this.then((X)=>{return $?.(),X},(X)=>{throw $?.(),X})}then($,X){return this.execute().then($,X)}}});var S3,Zq;var k3=V(()=>{w0();a4();S3=class S3{static[k]="SQLiteForeignKeyBuilder";reference;_onUpdate;_onDelete;constructor($,X){if(this.reference=()=>{let{name:G,columns:Y,foreignColumns:J}=$();return{name:G,columns:Y,foreignTable:J[0].table,foreignColumns:J}},X)this._onUpdate=X.onUpdate,this._onDelete=X.onDelete}onUpdate($){return this._onUpdate=$,this}onDelete($){return this._onDelete=$,this}build($){return new Zq($,this)}};Zq=class Zq{constructor($,X){this.table=$,this.reference=X.reference,this.onUpdate=X._onUpdate,this.onDelete=X._onDelete}static[k]="SQLiteForeignKey";reference;onUpdate;onDelete;getName(){let{name:$,columns:X,foreignColumns:G}=this.reference(),Y=X.map((H)=>H.name),J=G.map((H)=>H.name),W=[this.table[o1],...Y,G[0].table[o1],...J];return $??`${W.join("_")}_fk`}}});function Aq($,X){return`${$[o1]}_${X.join("_")}_unique`}var v3=V(()=>{a4()});var r0,i0;var W2=V(()=>{w3();X2();w0();k3();v3();r0=class r0 extends N3{static[k]="SQLiteColumnBuilder";foreignKeyConfigs=[];references($,X={}){return this.foreignKeyConfigs.push({ref:$,actions:X}),this}unique($){return this.config.isUnique=!0,this.config.uniqueName=$,this}generatedAlwaysAs($,X){return this.config.generated={as:$,type:"always",mode:X?.mode??"virtual"},this}buildForeignKeys($,X){return this.foreignKeyConfigs.map(({ref:G,actions:Y})=>{return((J,W)=>{let H=new S3(()=>{let U=J();return{columns:[$],foreignColumns:[U]}});if(W.onUpdate)H.onUpdate(W.onUpdate);if(W.onDelete)H.onDelete(W.onDelete);return H.build(X)})(G,Y)})}};i0=class i0 extends P1{constructor($,X){if(!X.uniqueName)X.uniqueName=Aq($,[X.name]);super($,X);this.table=$}static[k]="SQLiteColumn"}});function Dq($,X){let{name:G,config:Y}=F5($,X);if(Y?.mode==="json")return new Nq(G);if(Y?.mode==="bigint")return new Vq(G);return new _q(G)}var Vq,Bq,Nq,wq,_q,zq;var x3=V(()=>{w0();E5();W2();Vq=class Vq extends r0{static[k]="SQLiteBigIntBuilder";constructor($){super($,"bigint","SQLiteBigInt")}build($){return new Bq($,this.config)}};Bq=class Bq extends i0{static[k]="SQLiteBigInt";getSQLType(){return"blob"}mapFromDriverValue($){if(typeof Buffer<"u"&&Buffer.from){let X=Buffer.isBuffer($)?$:$ instanceof ArrayBuffer?Buffer.from($):$.buffer?Buffer.from($.buffer,$.byteOffset,$.byteLength):Buffer.from($);return BigInt(X.toString("utf8"))}return BigInt(T3.decode($))}mapToDriverValue($){return Buffer.from($.toString())}};Nq=class Nq extends r0{static[k]="SQLiteBlobJsonBuilder";constructor($){super($,"json","SQLiteBlobJson")}build($){return new wq($,this.config)}};wq=class wq extends i0{static[k]="SQLiteBlobJson";getSQLType(){return"blob"}mapFromDriverValue($){if(typeof Buffer<"u"&&Buffer.from){let X=Buffer.isBuffer($)?$:$ instanceof ArrayBuffer?Buffer.from($):$.buffer?Buffer.from($.buffer,$.byteOffset,$.byteLength):Buffer.from($);return JSON.parse(X.toString("utf8"))}return JSON.parse(T3.decode($))}mapToDriverValue($){return Buffer.from(JSON.stringify($))}};_q=class _q extends r0{static[k]="SQLiteBlobBufferBuilder";constructor($){super($,"buffer","SQLiteBlobBuffer")}build($){return new zq($,this.config)}};zq=class zq extends i0{static[k]="SQLiteBlobBuffer";mapFromDriverValue($){if(Buffer.isBuffer($))return $;return Buffer.from($)}getSQLType(){return"blob"}}});function t9($){return(X,G)=>{let{name:Y,config:J}=F5(X,G);return new Pq(Y,J,$)}}var Pq,Lq;var b3=V(()=>{w0();E5();W2();Pq=class Pq extends r0{static[k]="SQLiteCustomColumnBuilder";constructor($,X,G){super($,"custom","SQLiteCustomColumn");this.config.fieldConfig=X,this.config.customTypeParams=G}build($){return new Lq($,this.config)}};Lq=class Lq extends i0{static[k]="SQLiteCustomColumn";sqlName;mapTo;mapFrom;constructor($,X){super($,X);this.sqlName=X.customTypeParams.dataType(X.fieldConfig),this.mapTo=X.customTypeParams.toDriver,this.mapFrom=X.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue($){return typeof this.mapFrom==="function"?this.mapFrom($):$}mapToDriverValue($){return typeof this.mapTo==="function"?this.mapTo($):$}}});function V1($,X){let{name:G,config:Y}=F5($,X);if(Y?.mode==="timestamp"||Y?.mode==="timestamp_ms")return new Eq(G,Y.mode);if(Y?.mode==="boolean")return new jq(G,Y.mode);return new Cq(G)}var e9,$$,Cq,Tq,Eq,Iq,jq,Sq;var h3=V(()=>{w0();J2();E5();W2();e9=class e9 extends r0{static[k]="SQLiteBaseIntegerBuilder";constructor($,X,G){super($,X,G);this.config.autoIncrement=!1}primaryKey($){if($?.autoIncrement)this.config.autoIncrement=!0;return this.config.hasDefault=!0,super.primaryKey()}};$$=class $$ extends i0{static[k]="SQLiteBaseInteger";autoIncrement=this.config.autoIncrement;getSQLType(){return"integer"}};Cq=class Cq extends e9{static[k]="SQLiteIntegerBuilder";constructor($){super($,"number","SQLiteInteger")}build($){return new Tq($,this.config)}};Tq=class Tq extends $${static[k]="SQLiteInteger"};Eq=class Eq extends e9{static[k]="SQLiteTimestampBuilder";constructor($,X){super($,"date","SQLiteTimestamp");this.config.mode=X}defaultNow(){return this.default(g6`(cast((julianday('now') - 2440587.5)*86400000 as integer))`)}build($){return new Iq($,this.config)}};Iq=class Iq extends $${static[k]="SQLiteTimestamp";mode=this.config.mode;mapFromDriverValue($){if(this.config.mode==="timestamp")return new Date($*1000);return new Date($)}mapToDriverValue($){let X=$.getTime();if(this.config.mode==="timestamp")return Math.floor(X/1000);return X}};jq=class jq extends e9{static[k]="SQLiteBooleanBuilder";constructor($,X){super($,"boolean","SQLiteBoolean");this.config.mode=X}build($){return new Sq($,this.config)}};Sq=class Sq extends $${static[k]="SQLiteBoolean";mode=this.config.mode;mapFromDriverValue($){return Number($)===1}mapToDriverValue($){return $?1:0}}});function fq($,X){let{name:G,config:Y}=F5($,X),J=Y?.mode;return J==="number"?new xq(G):J==="bigint"?new hq(G):new kq(G)}var kq,vq,xq,bq,hq,yq;var y3=V(()=>{w0();E5();W2();kq=class kq extends r0{static[k]="SQLiteNumericBuilder";constructor($){super($,"string","SQLiteNumeric")}build($){return new vq($,this.config)}};vq=class vq extends i0{static[k]="SQLiteNumeric";mapFromDriverValue($){if(typeof $==="string")return $;return String($)}getSQLType(){return"numeric"}};xq=class xq extends r0{static[k]="SQLiteNumericNumberBuilder";constructor($){super($,"number","SQLiteNumericNumber")}build($){return new bq($,this.config)}};bq=class bq extends i0{static[k]="SQLiteNumericNumber";mapFromDriverValue($){if(typeof $==="number")return $;return Number($)}mapToDriverValue=String;getSQLType(){return"numeric"}};hq=class hq extends r0{static[k]="SQLiteNumericBigIntBuilder";constructor($){super($,"bigint","SQLiteNumericBigInt")}build($){return new yq($,this.config)}};yq=class yq extends i0{static[k]="SQLiteNumericBigInt";mapFromDriverValue=BigInt;mapToDriverValue=String;getSQLType(){return"numeric"}}});function pq($){return new gq($??"")}var gq,mq;var f3=V(()=>{w0();W2();gq=class gq extends r0{static[k]="SQLiteRealBuilder";constructor($){super($,"number","SQLiteReal")}build($){return new mq($,this.config)}};mq=class mq extends i0{static[k]="SQLiteReal";getSQLType(){return"real"}}});function Y0($,X={}){let{name:G,config:Y}=F5($,X);if(Y.mode==="json")return new lq(G);return new uq(G,Y)}var uq,dq,lq,cq;var g3=V(()=>{w0();E5();W2();uq=class uq extends r0{static[k]="SQLiteTextBuilder";constructor($,X){super($,"string","SQLiteText");this.config.enumValues=X.enum,this.config.length=X.length}build($){return new dq($,this.config)}};dq=class dq extends i0{static[k]="SQLiteText";enumValues=this.config.enumValues;length=this.config.length;constructor($,X){super($,X)}getSQLType(){return`text${this.config.length?`(${this.config.length})`:""}`}};lq=class lq extends r0{static[k]="SQLiteTextJsonBuilder";constructor($){super($,"json","SQLiteTextJson")}build($){return new cq($,this.config)}};cq=class cq extends i0{static[k]="SQLiteTextJson";getSQLType(){return"text"}mapFromDriverValue($){return JSON.parse($)}mapToDriverValue($){return JSON.stringify($)}}});function rq(){return{blob:Dq,customType:t9,integer:V1,numeric:fq,real:pq,text:Y0}}var iq=V(()=>{x3();b3();h3();y3();f3();g3()});function GE($,X,G,Y,J=$){let W=new M5($,Y,J),H=typeof X==="function"?X(rq()):X,U=Object.fromEntries(Object.entries(H).map(([M,Q])=>{let q=Q;q.setName(M);let Z=q.build(W);return W[m3].push(...q.buildForeignKeys(Z,W)),[M,Z]})),F=Object.assign(W,U);if(F[W0.Symbol.Columns]=U,F[W0.Symbol.ExtraConfigColumns]=U,G)F[M5.Symbol.ExtraConfigBuilder]=G;return F}var m3,M5,Q5=($,X,G)=>{return GE($,X,G)};var Y8=V(()=>{w0();T5();iq();m3=Symbol.for("drizzle:SQLiteInlineForeignKeys");M5=class M5 extends W0{static[k]="SQLiteTable";static Symbol=Object.assign({},W0.Symbol,{InlineForeignKeys:m3});[W0.Symbol.Columns];[m3]=[];[W0.Symbol.ExtraConfigBuilder]=void 0}});var nq=()=>{};function s1($){return new oq($,!1)}var oq,sq,aq;var tq=V(()=>{w0();oq=class oq{constructor($,X){this.name=$,this.unique=X}static[k]="SQLiteIndexBuilderOn";on(...$){return new sq(this.name,$,this.unique)}};sq=class sq{static[k]="SQLiteIndexBuilder";config;constructor($,X,G){this.config={name:$,columns:X,unique:G,where:void 0}}where($){return this.config.where=$,this}build($){return new aq(this.config,$)}};aq=class aq{static[k]="SQLiteIndex";config;constructor($,X){this.config={...$,table:X}}}});function X$(...$){if($[0].columns)return new p3($[0].columns,$[0].name);return new p3($)}var p3,eq;var $O=V(()=>{w0();Y8();p3=class p3{static[k]="SQLitePrimaryKeyBuilder";columns;name;constructor($,X){this.columns=$,this.name=X}build($){return new eq($,this.columns,this.name)}};eq=class eq{constructor($,X,G){this.table=$,this.columns=X,this.name=G}static[k]="SQLitePrimaryKey";columns;name;getName(){return this.name??`${this.table[M5.Symbol.Name]}_${this.columns.map(($)=>$.name).join("_")}_pk`}}});function d2($){if($0($,M5))return[`${$[W0.Symbol.BaseName]}`];if($0($,A1))return $._.usedTables??[];if($0($,R0))return $.usedTables??[];return[]}var G$=V(()=>{w0();J2();G2();T5();Y8()});var XO=()=>{};var GO=()=>{};var YO=()=>{};var JO=()=>{};var WO=V(()=>{YO();JO()});var HO=V(()=>{Oq();WO();J2()});var UO=V(()=>{x3();W2();b3();h3();y3();f3();g3()});var u3;var KO=V(()=>{w0();J2();u3=class u3 extends K5{static[k]="SQLiteViewBase"}});var FO=()=>{};var d3;var MO=V(()=>{w0();d3=class d3{static[k]="TypedQueryBuilder";getSelectedFields(){return this._.selectedFields}}});function Y$($,X){return(G,Y,...J)=>{let W=[Y,...J].map((H)=>({type:$,isAll:X,rightSelect:H}));for(let H of W)if(!C3(G.getSelectedFields(),H.rightSelect.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return G.addSetOperators(W)}}var QO,qO,YE=()=>({union:JE,unionAll:WE,intersect:HE,except:UE}),JE,WE,HE,UE;var OO=V(()=>{w0();MO();a9();j3();J2();G2();T5();E5();Y2();G$();QO=class QO extends d3{static[k]="SQLiteSelectQueryBuilder";_;config;joinsNotNullableMap;tableName;isPartialSelect;session;dialect;cacheConfig=void 0;usedTables=new Set;constructor({table:$,fields:X,isPartialSelect:G,session:Y,dialect:J,withList:W,distinct:H}){super();this.config={withList:W,table:$,fields:{...X},distinct:H,setOperators:[]},this.isPartialSelect=G,this.session=Y,this.dialect=J,this._={selectedFields:X,config:this.config},this.tableName=$8($),this.joinsNotNullableMap=typeof this.tableName==="string"?{[this.tableName]:!0}:{};for(let U of d2($))this.usedTables.add(U)}getUsedTables(){return[...this.usedTables]}createJoin($){return(X,G)=>{let Y=this.tableName,J=$8(X);for(let W of d2(X))this.usedTables.add(W);if(typeof J==="string"&&this.config.joins?.some((W)=>W.alias===J))throw Error(`Alias "${J}" is already used in this query`);if(!this.isPartialSelect){if(Object.keys(this.joinsNotNullableMap).length===1&&typeof Y==="string")this.config.fields={[Y]:this.config.fields};if(typeof J==="string"&&!$0(X,R0)){let W=$0(X,A1)?X._.selectedFields:$0(X,K5)?X[m0].selectedFields:X[W0.Symbol.Columns];this.config.fields[J]=W}}if(typeof G==="function")G=G(new Proxy(this.config.fields,new L1({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})));if(!this.config.joins)this.config.joins=[];if(this.config.joins.push({on:G,table:X,joinType:$,alias:J}),typeof J==="string")switch($){case"left":{this.joinsNotNullableMap[J]=!1;break}case"right":{this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([W])=>[W,!1])),this.joinsNotNullableMap[J]=!0;break}case"cross":case"inner":{this.joinsNotNullableMap[J]=!0;break}case"full":{this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([W])=>[W,!1])),this.joinsNotNullableMap[J]=!1;break}}return this}}leftJoin=this.createJoin("left");rightJoin=this.createJoin("right");innerJoin=this.createJoin("inner");fullJoin=this.createJoin("full");crossJoin=this.createJoin("cross");createSetOperator($,X){return(G)=>{let Y=typeof G==="function"?G(YE()):G;if(!C3(this.getSelectedFields(),Y.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return this.config.setOperators.push({type:$,isAll:X,rightSelect:Y}),this}}union=this.createSetOperator("union",!1);unionAll=this.createSetOperator("union",!0);intersect=this.createSetOperator("intersect",!1);except=this.createSetOperator("except",!1);addSetOperators($){return this.config.setOperators.push(...$),this}where($){if(typeof $==="function")$=$(new Proxy(this.config.fields,new L1({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})));return this.config.where=$,this}having($){if(typeof $==="function")$=$(new Proxy(this.config.fields,new L1({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})));return this.config.having=$,this}groupBy(...$){if(typeof $[0]==="function"){let X=$[0](new Proxy(this.config.fields,new L1({sqlAliasedBehavior:"alias",sqlBehavior:"sql"})));this.config.groupBy=Array.isArray(X)?X:[X]}else this.config.groupBy=$;return this}orderBy(...$){if(typeof $[0]==="function"){let X=$[0](new Proxy(this.config.fields,new L1({sqlAliasedBehavior:"alias",sqlBehavior:"sql"}))),G=Array.isArray(X)?X:[X];if(this.config.setOperators.length>0)this.config.setOperators.at(-1).orderBy=G;else this.config.orderBy=G}else{let X=$;if(this.config.setOperators.length>0)this.config.setOperators.at(-1).orderBy=X;else this.config.orderBy=X}return this}limit($){if(this.config.setOperators.length>0)this.config.setOperators.at(-1).limit=$;else this.config.limit=$;return this}offset($){if(this.config.setOperators.length>0)this.config.setOperators.at(-1).offset=$;else this.config.offset=$;return this}getSQL(){return this.dialect.buildSelectQuery(this.config)}toSQL(){let{typings:$,...X}=this.dialect.sqlToQuery(this.getSQL());return X}as($){let X=[];if(X.push(...d2(this.config.table)),this.config.joins)for(let G of this.config.joins)X.push(...d2(G.table));return new Proxy(new A1(this.getSQL(),this.config.fields,$,!1,[...new Set(X)]),new L1({alias:$,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}getSelectedFields(){return new Proxy(this.config.fields,new L1({alias:this.tableName,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}$dynamic(){return this}};qO=class qO extends QO{static[k]="SQLiteSelect";_prepare($=!0){if(!this.session)throw Error("Cannot execute a query on a query builder. Please use a database instance instead.");let X=m6(this.config.fields),G=this.session[$?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),X,"all",!0,void 0,{type:"select",tables:[...this.usedTables]},this.cacheConfig);return G.joinsNotNullableMap=this.joinsNotNullableMap,G}$withCache($){return this.cacheConfig=$===void 0?{config:{},enable:!0,autoInvalidate:!0}:$===!1?{enable:!1}:{enable:!0,autoInvalidate:!0,...$},this}prepare(){return this._prepare(!1)}run=($)=>{return this._prepare().run($)};all=($)=>{return this._prepare().all($)};get=($)=>{return this._prepare().get($)};values=($)=>{return this._prepare().values($)};async execute(){return this.all()}};Fq(qO,[G8]);JE=Y$("union",!1),WE=Y$("union",!0),HE=Y$("intersect",!1),UE=Y$("except",!1)});var RO=()=>{};var ZO=()=>{};var KE;var AO=V(()=>{w0();a9();j3();Y8();G2();T5();E5();Y2();G$();KO();KE=class KE extends G8{constructor($,X,G,Y,J){super();this.session=G,this.dialect=Y,this.config={set:X,table:$,withList:J,joins:[]}}static[k]="SQLiteUpdate";config;from($){return this.config.from=$,this}createJoin($){return(X,G)=>{let Y=$8(X);if(typeof Y==="string"&&this.config.joins.some((J)=>J.alias===Y))throw Error(`Alias "${Y}" is already used in this query`);if(typeof G==="function"){let J=this.config.from?$0(X,M5)?X[W0.Symbol.Columns]:$0(X,A1)?X._.selectedFields:$0(X,u3)?X[m0].selectedFields:void 0:void 0;G=G(new Proxy(this.config.table[W0.Symbol.Columns],new L1({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})),J&&new Proxy(J,new L1({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))}return this.config.joins.push({on:G,table:X,joinType:$,alias:Y}),this}}leftJoin=this.createJoin("left");rightJoin=this.createJoin("right");innerJoin=this.createJoin("inner");fullJoin=this.createJoin("full");where($){return this.config.where=$,this}orderBy(...$){if(typeof $[0]==="function"){let X=$[0](new Proxy(this.config.table[W0.Symbol.Columns],new L1({sqlAliasedBehavior:"alias",sqlBehavior:"sql"}))),G=Array.isArray(X)?X:[X];this.config.orderBy=G}else{let X=$;this.config.orderBy=X}return this}limit($){return this.config.limit=$,this}returning($=this.config.table[M5.Symbol.Columns]){return this.config.returning=m6($),this}getSQL(){return this.dialect.buildUpdateQuery(this.config)}toSQL(){let{typings:$,...X}=this.dialect.sqlToQuery(this.getSQL());return X}_prepare($=!0){return this.session[$?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),this.config.returning,this.config.returning?"all":"run",!0,void 0,{type:"insert",tables:d2(this.config.table)})}prepare(){return this._prepare(!1)}run=($)=>{return this._prepare().run($)};all=($)=>{return this._prepare().all($)};get=($)=>{return this._prepare().get($)};values=($)=>{return this._prepare().values($)};async execute(){return this.config.returning?this.all():this.run()}$dynamic(){return this}}});var VO=V(()=>{XO();ZO();RO();OO();AO()});var BO=()=>{};var NO=()=>{};var wO=()=>{};var _O=()=>{};var p6=V(()=>{NO();nq();UO();BO();FO();k3();tq();$O();VO();wO();Y8();v3();G$();_O()});var zO;var l3=V(()=>{p6();I();zO=Q5("job_queue",{id:Y0("id").primaryKey().$defaultFn(()=>C5()),type:Y0("type").notNull(),data:Y0("data").notNull(),result:Y0("result",{mode:"json"}),source:Y0("source"),metadata:Y0("metadata",{mode:"json"}).$type().notNull(),status:Y0("status",{enum:["pending","processing","completed","failed"]}).notNull().default("pending"),priority:V1("priority").notNull().default(0),retryCount:V1("retryCount").notNull().default(0),maxRetries:V1("maxRetries").notNull().default(3),lastError:Y0("lastError"),createdAt:V1("createdAt").notNull().$defaultFn(()=>Date.now()),scheduledFor:V1("scheduledFor").notNull().$defaultFn(()=>Date.now()),startedAt:V1("startedAt"),completedAt:V1("completedAt")},($)=>({queueReadyIdx:s1("idx_job_queue_ready").on($.status,$.priority,$.scheduledFor),jobTypeIdx:s1("idx_job_queue_type").on($.type,$.status),jobSourceIdx:s1("idx_job_queue_source").on($.source)}))});import{createClient as qo}from"@libsql/client";var DO=V(()=>{l3()});var PO=V(()=>{I3();w3();X2();w0();GO();Mq();a9();Rq();HO();G2();T5();E5();Y2()});var LO=V(()=>{l3();$2()});var CO=V(()=>{$2()});var TO=V(()=>{I();$2();DO();LO();CO()});var EO=V(()=>{I();$2();$2()});var IO=V(()=>{$2()});var jO=V(()=>{I()});class W8{logger;schema;jobTypeName;constructor($,X){this.logger=$,this.schema=X.schema,this.jobTypeName=X.jobTypeName}validateAndParse($){if(!this.schema)throw Error(`${this.jobTypeName}: No schema provided. Override validateAndParse() or provide a schema.`);try{let X=this.schema.parse($);return this.logger.debug(`${this.jobTypeName} job data validation successful`,{data:this.summarizeDataForLog(X)}),X}catch(X){return this.logger.warn(`Invalid ${this.jobTypeName} job data`,{data:$,validationError:X instanceof K.ZodError?X.issues:X}),null}}async onError($,X,G,Y){this.logger.error(`${this.jobTypeName} job error handler triggered`,{jobId:G,errorMessage:$.message,errorStack:$.stack,data:this.summarizeDataForLog(X)})}async reportProgress($,X){await $.report({progress:X.progress,total:X.total??100,message:X.message})}summarizeDataForLog($){return $}}var SO=V(()=>{I()});var FE;var kO=V(()=>{i9();I();FE=K.object({id:K.string(),type:K.string(),data:K.string(),status:K.enum(["pending","processing","completed","failed"]),source:K.string().nullable(),priority:K.number(),retryCount:K.number(),maxRetries:K.number(),lastError:K.string().nullable(),createdAt:K.number(),scheduledFor:K.number(),startedAt:K.number().nullable(),completedAt:K.number().nullable(),metadata:s4,result:K.unknown().nullable().optional()})});function c3($,X,G){return async(Y,J,W,H)=>{let{metadata:U,...F}=H??{},M={source:X,...H?.rootJobId&&{rootJobId:H.rootJobId},...F,metadata:{operationType:"data_processing",pluginId:X,...W&&{interfaceType:W.interfaceType,channelId:W.channelId},...U}},Q=G&&!Y.includes(":")?`${X}:${Y}`:Y;return $.enqueue(Q,J,M)}}function r3($,X){return async(G,Y)=>{let J=C5(),W=G.map((U)=>({...U,type:U.type.includes(":")?U.type:`${X}:${U.type}`})),H={...Y,source:X,rootJobId:J,metadata:{...Y?.metadata,operationType:"batch_processing",pluginId:X}};return await $.enqueueBatch(W,H,J,X),J}}function i3($,X){return(G,Y)=>{let J=G.includes(":")?G:`${X}:${G}`;$.registerHandler(J,Y,X)}}var vO=V(()=>{I()});var H8=V(()=>{TO();EO();IO();jO();SO();kO();$2();i9();vO()});function xO($){return ME.safeParse($).success}var ME;var n3=V(()=>{I();ME=K.object({name:K.string(),schema:K.custom(($)=>$ instanceof K.ZodType)})});function QE($){if(!$)return;return{status:$.status,message:$.message,lastCheck:$.lastCheck?.toISOString(),details:$.details}}function bO($){return{model:$.model,version:$.version,uptime:$.uptime,entities:$.entities,embeddings:$.embeddings,ai:$.ai,daemons:$.daemons.map((X)=>({name:X.name,pluginId:X.pluginId,status:X.status,health:QE(X.health)})),endpoints:$.endpoints}}var U8;var o3=V(()=>{G5();U8=K.record(K.unknown())});var qE,s3,OE;var a3=V(()=>{G5();o3();qE=K.object({id:K.string(),sessionId:K.string(),interfaceType:K.string(),channelId:K.string(),channelName:K.string().optional(),startedAt:K.string(),lastActiveAt:K.string(),createdAt:K.string(),updatedAt:K.string(),metadata:U8}),s3=K.enum(["user","assistant","system"]),OE=K.object({id:K.string(),conversationId:K.string(),role:s3,content:K.string(),timestamp:K.string(),metadata:U8})});function hO($){if(!$)return{};try{let X=JSON.parse($);if(X&&typeof X==="object"&&!Array.isArray(X))return X}catch{}return{}}function RE($){let X=s3.safeParse($);return X.success?X.data:"user"}function J$($){let X=hO($.metadata),G=typeof X.channelName==="string"?X.channelName:void 0;return{id:$.id,sessionId:$.sessionId,interfaceType:$.interfaceType,channelId:$.channelId,channelName:G,startedAt:$.started,lastActiveAt:$.lastActive,createdAt:$.created,updatedAt:$.updated,metadata:X}}function yO($){return{id:$.id,conversationId:$.conversationId,role:RE($.role),content:$.content,timestamp:$.timestamp,metadata:hO($.metadata)}}var fO=V(()=>{a3()});var t3,e3;var $G=V(()=>{G5();t3=K.object({name:K.string(),role:K.string(),purpose:K.string(),values:K.array(K.string())}),e3=K.object({name:K.string(),kind:K.enum(["professional","team","collective"]),organization:K.string().optional(),description:K.string().optional(),avatar:K.string().optional(),website:K.string().optional(),email:K.string().optional(),socialLinks:K.array(K.object({platform:K.enum(["github","instagram","linkedin","email","website"]),url:K.string(),label:K.string().optional()})).optional()})});function gO($){return t3.parse($)}function mO($){return e3.parse($)}var pO=V(()=>{$G()});function uO($){return async()=>{return bO(await $.getAppInfo())}}function dO($,X){return{get:()=>gO($.getIdentity()),getProfile:()=>mO($.getProfile()),getAppInfo:X}}function lO($,X,G){let Y=$.getMessageBus();return{send:async(W,H,U)=>{return Y.send(W,H,X,void 0,void 0,U?.broadcast)},subscribe:(W,H)=>{if(xO(W)){let U=W,F=H,M=async(Q)=>{let q=U.schema.safeParse(Q.payload);if(!q.success)return G.warn(`Invalid payload for channel ${U.name}`,{error:q.error.message}),{noop:!0};let{payload:Z,...A}=Q;return F(q.data,A)};return Y.subscribe(U.name,M)}return Y.subscribe(W,H)}}}function cO($,X){let G=$.getJobQueueService();return{...$.jobs,enqueue:c3(G,X,!0),enqueueBatch:r3($.jobs,X),registerHandler:i3(G,X)}}function rO($){return{get:async(X)=>{let Y=await $.getConversationService().getConversation(X);return Y?J$(Y):null},search:async(X)=>{return(await $.getConversationService().searchConversations(X)).map(J$)},list:async(X)=>{return(await $.getConversationService().listConversations(X)).map(J$)},getMessages:async(X,G)=>{return(await $.getConversationService().getMessages(X,G)).map(yO)},countMessages:async(X)=>{return $.getConversationService().countMessages(X)}}}function iO($,X){return{registerHandler:(G,Y)=>{$.registerEvalHandler(X,G,Y)}}}function nO($){return{register:(X,G)=>{$.getInsightsRegistry().register(X,G)}}}function oO($,X){return{register:({label:G,url:Y,priority:J=100})=>{$.registerEndpoint({label:G,url:Y,pluginId:X,priority:J})}}}var sO=V(()=>{H8();n3();fO();pO()});function u6($,X,G){let Y=$.getEntityService(),J=$.getLogger().child(X),W=$.getDomain(),H=uO($);return{pluginId:X,logger:J,entityService:Y,identity:dO($,H),appInfo:H,domain:W,siteUrl:W?`https://${W}`:void 0,previewUrl:W?`https://${U3(W)}`:void 0,entityDisplay:G?.entityDisplay,messaging:lO($,X,J),jobs:cO($,X),conversations:rO($),dataDir:$.getDataDir(),eval:iO($,X),insights:nO($),endpoints:oO($,X)}}var K8=V(()=>{I();sO()});var W$;var F8=V(()=>{PO();p6();W$=Q5("entities",{id:Y0("id").notNull(),entityType:Y0("entityType").notNull(),content:Y0("content").notNull(),contentHash:Y0("contentHash").notNull(),metadata:Y0("metadata",{mode:"json"}).$type().notNull().default(g6`'{}'`),created:V1("created").notNull().$defaultFn(()=>Date.now()),updated:V1("updated").notNull().$defaultFn(()=>Date.now())},($)=>{return{pk:X$({columns:[$.id,$.entityType]})}})});import{createClient as as}from"@libsql/client";var aO=V(()=>{F8()});var tO;var eO=V(()=>{p6();tO=t9({dataType(){return"F32_BLOB(1536)"},toDriver($){return Buffer.from($.buffer)},fromDriver($){return new Float32Array($.buffer,$.byteOffset,$.byteLength/4)}})});var H$;var M8=V(()=>{p6();eO();H$=Q5("embeddings",{entityId:Y0("entity_id").notNull(),entityType:Y0("entity_type").notNull(),embedding:tO("embedding").notNull(),contentHash:Y0("content_hash").notNull()},($)=>{return{pk:X$({columns:[$.entityId,$.entityType]})}})});import{createClient as Ha}from"@libsql/client";var XG=V(()=>{M8()});var Qa;var GG=V(()=>{I();Qa=K.object({id:K.string().min(1,"Entity ID is required"),entityType:K.string().min(1,"Entity type is required"),contentHash:K.string().min(1,"Content hash is required"),operation:K.enum(["create","update"])})});var Za;var $R=V(()=>{I();F8();Za=K.object({limit:K.number().int().positive().optional().default(20),offset:K.number().int().min(0).optional().default(0),types:K.array(K.string()).optional().default([]),excludeTypes:K.array(K.string()).optional().default([]),weight:K.record(K.string(),K.number()).optional()})});var XR=V(()=>{I()});var ZE,La;var GR=V(()=>{F8();M8();I();ZE=K.object({field:K.string(),direction:K.enum(["asc","desc"]),nullsFirst:K.boolean().optional()}),La=K.object({limit:K.number().int().positive().optional(),offset:K.number().int().min(0).optional().default(0),sortFields:K.array(ZE).optional(),filter:K.object({metadata:K.record(K.string(),K.unknown()).optional()}).optional(),publishedOnly:K.boolean().optional()})});var YR=()=>{};var JR=V(()=>{I();YR();F8();M8()});var WR=V(()=>{I()});var HR=V(()=>{aO();XG();M8();I();GG();$R();XR();GR();JR();WR()});function H2($,X){if(Object.keys(X).length===0)return $;let G=Object.fromEntries(Object.entries(X).filter(([,Y])=>Y!==void 0));return U$.default.stringify($,G)}function YG($){if($ instanceof Date)return $.toISOString();if(Array.isArray($))return $.map(YG);if($!==null&&typeof $==="object"){let X={};for(let[G,Y]of Object.entries($))X[G]=YG(Y);return X}return $}function E0($,X){let{content:G,data:Y}=U$.default($),J=YG(Y);return{content:G.trim(),metadata:X.parse(J)}}function JG($){if(Object.keys($).length===0)return"";let G=U$.default.stringify("",$).match(/^---\n[\s\S]*?\n---/);return G?G[0]:""}var U$;var K$=V(()=>{U$=j8(z7(),1)});var UR=V(()=>{I();K$()});class B1{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??PE,$.isSingleton!==void 0)this.isSingleton=$.isSingleton;if($.hasBody!==void 0)this.hasBody=$.hasBody;if($.supportsCoverImage!==void 0)this.supportsCoverImage=$.supportsCoverImage}toMarkdown($){let X=this.renderBody($),Y={...this.readExistingFrontmatter($.content)},J=Object.keys(this.frontmatterSchema.shape);for(let[W,H]of Object.entries($.metadata))if(J.includes(W))Y[W]=H;return this.buildMarkdown(X,Y)}renderBody($){return this.extractBody($.content)}readExistingFrontmatter($){try{return E0($,K.record(K.unknown())).metadata}catch{return{}}}extractMetadata($){return $.metadata}parseFrontMatter($,X){return E0($,X).metadata}getBodyTemplate(){return this.bodyFormatter.generateBodyTemplate()}generateFrontMatter($){let X=$.metadata;return JG(X)}extractBody($){try{return E0($,K.record(K.unknown())).content}catch{return $}}parseFrontmatter($){return E0($,this.fmSchema).metadata}buildMarkdown($,X){return H2($,X)}}var PE;var WG=V(()=>{I();K$();PE={generateBodyTemplate:()=>""}});var N1;var HG=V(()=>{I();N1=K.object({id:K.string(),entityType:K.string(),content:K.string(),created:K.string().datetime(),updated:K.string().datetime(),metadata:K.record(K.string(),K.unknown()),contentHash:K.string()})});var KR=V(()=>{I();HG();WG()});var FR=V(()=>{WG();KR()});class d6{cache=null;cacheParseError=null;logger;entityService;entityType;defaultBody;constructor($,X,G,Y){this.entityService=$,this.logger=X.child(this.constructor.name),this.entityType=G,this.defaultBody=Y}async initialize(){if(await this.load())return;if(await this.load())return;this.logger.info(`No ${this.entityType} found, creating default ${this.entityType}`);try{let $=this.createContent(this.defaultBody);await this.entityService.createEntity({id:this.entityType,entityType:this.entityType,content:$,metadata:{}}),await this.load(),this.logger.info(`Default ${this.entityType} created successfully`)}catch($){this.logger.error(`Failed to create default ${this.entityType}`,{error:$})}}get(){if(this.cache&&!this.cacheParseError)return this.parseBody(this.cache.content);return this.defaultBody}getContent(){if(this.cache)return this.cache.content;return this.createContent(this.defaultBody)}async refreshCache(){await this.load()}async load(){try{let $=await this.entityService.getEntity(this.entityType,this.entityType);if(this.cache=$,this.cacheParseError=null,$)try{return this.parseBody($.content),this.logger.debug(`${this.entityType} loaded`),!0}catch(X){return this.cacheParseError=X instanceof Error?X:Error(String(X)),this.logger.error(`Failed to parse ${this.entityType} \u2014 using default. Fix the entity content to clear this error.`,{error:this.cacheParseError.message}),!0}else this.logger.debug(`No ${this.entityType} found in database`)}catch($){this.logger.warn(`Failed to load ${this.entityType}`,{error:$}),this.cache=null,this.cacheParseError=null}return!1}}function UG($,X,G){let Y=Math.max(1,Math.ceil($/G));return{currentPage:X,totalPages:Y,totalItems:$,pageSize:G,hasNextPage:X<Y,hasPrevPage:X>1}}var F$;var MR=V(()=>{I();F$=K.object({currentPage:K.number(),totalPages:K.number(),totalItems:K.number(),pageSize:K.number(),hasNextPage:K.boolean(),hasPrevPage:K.boolean()})});var v1=V(()=>{HR();GG();UR();FR();XG();HG();K$();MR()});function CE($){return $.replace(/:/g,"-")}function TE($){return $.split(/[:.-]/).map((X)=>X.charAt(0).toUpperCase()+X.slice(1)).join(" ")}async function FG($,X,G){let Y=KG.get(X);if(Y!==void 0)return Y;let J=CE(X),W;try{W=await $.getEntity("prompt",J)}catch{return G}if(W?.content){let H=E0(W.content,K.record(K.unknown())).content;return KG.set(X,H),H}try{let H=TE(X),U=H2(G,{title:H,target:X});await $.createEntity({id:J,entityType:"prompt",content:U,metadata:{title:H,target:X,slug:J}})}catch{}return KG.set(X,G),G}var KG;var MG=V(()=>{v1();I();KG=new Map});function M$($){let X=$.getEntityService(),G=$.getEntityRegistry(),Y=$.getDataSourceRegistry();return{register:(J,W,H,U)=>{G.registerEntityType(J,W,H,U)},getAdapter:(J)=>{try{return G.getAdapter(J)}catch{return}},extendFrontmatterSchema:(J,W)=>{G.extendFrontmatterSchema(J,W)},getEffectiveFrontmatterSchema:(J)=>{return G.getEffectiveFrontmatterSchema(J)},registerCreateInterceptor:(J,W)=>{G.registerCreateInterceptor(J,W)},update:async(J)=>{return X.updateEntity(J)},registerDataSource:(J)=>{Y.register(J)}}}function Q$($){return{resolve:(X,G)=>{return FG($,X,G)}}}var QG=V(()=>{MG()});function qG($,X,G){let Y=u6($,X,G),J=$.getEntityService(),W=$.getRenderService(),H=$.getContentService();return{...Y,entityService:J,entities:M$($),templates:{register:(U,F)=>{$.registerTemplates(U,F??X)},format:(U,F)=>{return H.formatContent(U,F,{pluginId:X})},parse:(U,F)=>{return H.parseContent(U,F,X)},resolve:async(U,F)=>{return await H.resolveContent(U,F,X)},getCapabilities:(U)=>{let F=U.includes(":")?U:`${X}:${U}`,M=$.getTemplate(F);if(!M)return null;let Q=o4.getCapabilities(M);return{canGenerate:Q.canGenerate,canFetch:Q.canFetch,canRender:Q.canRender,isStaticOnly:Q.isStaticOnly}}},views:{get:(U)=>{return W.get(U)??void 0},list:()=>{return W.list()},hasRenderer:(U)=>{return W.hasRenderer(U,"web")},getRenderer:(U)=>{return W.getRenderer(U,"web")},validate:(U,F)=>{return W.validate(U,F)}},prompts:Q$(J),registerInstructions:(U)=>{$.registerInstructions(X,U)}}}var OG=V(()=>{K8();QG();U5()});var l6;var QR=V(()=>{r9();OG();l6=class l6 extends f6{type="service";getApiRoutes(){return[]}getWebRoutes(){return[]}async register($,X){let G=qG($,this.id,X);return this.context=G,this.setupMessageHandlers(G),await this.onRegister(G),this.getCapabilities()}get entityService(){return this.getContext().entityService}registerEntityType($,X,G,Y){this.getContext().entities.register($,X,G,Y)}async enqueueJob($,X,G,Y){return this.getContext().jobs.enqueue($,X,G,Y)}async enqueueBatch($,X){return this.getContext().jobs.enqueueBatch($,X)}async registerEntityTypes($){}async registerJobHandlers($){}async onRegister($){await this.registerEntityTypes($),await this.registerJobHandlers($)}}});function RG($,X,G){let Y=u6($,X,G),J=$.getEntityService();return{...Y,entityService:J,entities:M$($),ai:{query:(W,H)=>$.query(W,H),generate:async(W)=>{return $.generateContent(W)},generateObject:async(W,H)=>{return $.generateObject(W,H)},generateImage:async(W,H)=>{return $.generateImage(W,H)},canGenerateImages:()=>{return $.canGenerateImages()}},prompts:Q$(J)}}var ZG=V(()=>{K8();QG()});function AG($,X,G){let Y=!1,J=!1;if($.jobs.registerHandler(G.job.type,G.job.handler),G.initialSync){let W=G.initialSync;$.messaging.subscribe("sync:initial:completed",async()=>{if(Y)return{success:!0};if(Y=!0,!(await W.shouldEnqueue?.()??!0))return X.info("Skipping derived entity projection initial sync",{projectionId:G.id,targetType:G.targetType}),{success:!0};return J=await qR($,X,G,W.jobData,IE(W.jobOptions),"initial-sync"),{success:!0}})}if(G.sourceChange){let W=G.sourceChange,H=new Set(W.sourceTypes),U=W.events??["entity:created","entity:updated"],F=async(M)=>{if(W.requireInitialSync&&!Y)return{success:!0};let Q=M.payload,q=EE(W,Q);if(!q||!H.has("*")&&!H.has(q))return{success:!0};if(!(await W.shouldEnqueue?.(Q)??!0))return{success:!0};let A=await W.jobData(Q);if(!A)return{success:!0};return await qR($,X,G,A,W.jobOptions?.(Q),"source-change"),{success:!0}};for(let M of U)$.messaging.subscribe(M,F)}return{hasObservedInitialSync:()=>Y,hasQueuedInitialSync:()=>J}}function EE($,X){if($.sourceType)return $.sourceType;if($.sourceKind&&$.sourceKind!=="entity")return $.sourceKind;return X.entityType}async function qR($,X,G,Y,J,W){try{return await $.jobs.enqueue(G.job.type,Y,null,J),X.info("Queued derived entity projection",{projectionId:G.id,targetType:G.targetType,reason:W}),!0}catch(H){return X.error("Failed to queue derived entity projection",{projectionId:G.id,targetType:G.targetType,reason:W,error:j0(H)}),!1}}function IE($){return typeof $==="function"?$():$}var VG=V(()=>{I()});var jE,U2;var OR=V(()=>{r9();I();ZG();VG();jE=K.object({});U2=class U2 extends f6{type="entity";derivedEntityProjectionControllers=new Map;constructor($,X,G={},Y=jE){super($,X,G,Y)}async register($,X){let G=RG($,this.id,X);if(this.context=G,this.setupMessageHandlers(G),G.entities.register(this.entityType,this.schema,this.adapter,this.getEntityTypeConfig()),this.interceptCreate!==U2.prototype.interceptCreate)G.entities.registerCreateInterceptor(this.entityType,(F,M)=>this.interceptCreate(F,M,G));let Y=this.createGenerationHandler(G);if(Y)G.jobs.registerHandler(`${this.entityType}:generation`,Y);let J=this.getTemplates();if(J&&Object.keys(J).length>0)$.registerTemplates(J,this.id);let W=this.getDataSources();for(let F of W)G.entities.registerDataSource(F);let H=this.getDerivedEntityProjections(G);for(let F of H){let M=AG(G,this.logger,F);this.derivedEntityProjectionControllers.set(F.id,M)}await this.onRegister(this.context);let U=await this.getInstructions();return{tools:[],resources:[],...U&&{instructions:U}}}async interceptCreate($,X,G){return{kind:"continue",input:$}}createGenerationHandler($){return null}getTemplates(){return null}getDataSources(){return[]}getEntityTypeConfig(){return}getDerivedEntityProjections($){return[]}getDerivedEntityProjectionController($){return this.derivedEntityProjectionControllers.get($)}}});var BG=V(()=>{K8()});var NG=V(()=>{r9();BG()});var RR=()=>{};class c6{logger;constructor($){this.logger=$}buildDetailResult($,X){throw Error(`${this.id}: buildDetailResult() not implemented. Override this method or override fetch() to handle detail views.`)}parseQuery($){let X=O$.parse($);return{entityType:X.entityType??this.config.entityType,query:X.query??{}}}async fetch($,X,G){let Y=this.parseQuery($),J=G.entityService;if(Y.query.id){let H=await this.fetchDetail(Y.query.id,J);return X.parse(this.buildDetailResult(H.item,H.navigation))}let W=await this.fetchList(Y.query,J);return X.parse(this.buildListResult(W.items,W.pagination,Y.query))}async fetchDetail($,X){let G=await this.lookupEntity($,X),Y=this.transformEntity(G),J=null;if(this.config.enableNavigation)J=await this.resolveNavigation(G,X);return{item:Y,navigation:J}}async fetchList($,X,G){let Y=$.page??1,J=$.pageSize??$.limit??this.config.defaultLimit??100,W=(Y-1)*J,H=$.page!==void 0,[U,F]=await Promise.all([X.listEntities(this.config.entityType,{limit:J,offset:W,sortFields:this.config.defaultSort,...G}),H?X.countEntities(this.config.entityType,G?.filter?{filter:G.filter}:void 0):Promise.resolve(0)]),M=U.map((q)=>this.transformEntity(q)),Q=H?UG(F,Y,J):null;return{items:M,pagination:Q}}async resolveNavigation($,X,G){let Y=this.config.navigationLimit??1000,J=await X.listEntities(this.config.entityType,{limit:Y,sortFields:G??this.config.defaultSort}),W=J.findIndex((Q)=>Q.id===$.id),H=W>0?J[W-1]:void 0,U=W<J.length-1?J[W+1]:void 0,F=H?this.transformEntity(H):null,M=U?this.transformEntity(U):null;return{prev:F,next:M}}async lookupEntity($,X){if(this.config.lookupField==="id"){let J=await X.getEntity(this.config.entityType,$);if(!J)throw Error(`${this.config.entityType} not found: ${$}`);return J}let Y=(await X.listEntities(this.config.entityType,{filter:{metadata:{slug:$}},limit:1}))[0];if(!Y)throw Error(`${this.config.entityType} not found with slug: ${$}`);return Y}}var q$,O$;var ZR=V(()=>{v1();I();q$=K.object({id:K.string().optional(),limit:K.number().optional(),page:K.number().optional(),pageSize:K.number().optional(),baseUrl:K.string().optional()}).passthrough(),O$=K.object({entityType:K.string().optional(),query:q$.optional()}).passthrough()});var r6,wG;var AR=V(()=>{H8();I();r6=class r6 extends W8{context;entityType;constructor($,X,G){super($,{schema:G.schema,jobTypeName:G.jobTypeName});this.context=X,this.entityType=G.entityType}async afterCreate($,X,G,Y){}async onGenerationFailure($,X){}async process($,X,G){try{await this.reportProgress(G,{progress:r4.START,message:`Starting ${this.jobTypeName}`});let Y=await this.generate($,G);await this.reportProgress(G,{progress:r4.SAVE,message:`Saving ${this.entityType} to database`});let J=await this.context.entityService.createEntity({id:Y.id,entityType:this.entityType,content:Y.content,metadata:Y.metadata},Y.createOptions);return await this.afterCreate($,J.entityId,G,Y),await this.reportProgress(G,{progress:r4.COMPLETE,message:`${Y.title??this.entityType} created successfully`}),{success:!0,entityId:J.entityId,...Y.resultExtras}}catch(Y){if(Y instanceof wG)return await this.onGenerationFailure($,Y.message),{success:!1,error:Y.message};let J=j0(Y);return this.logger.error(`${this.jobTypeName} job failed`,{error:Y,jobId:X,data:this.summarizeDataForLog($)}),await this.onGenerationFailure($,J),F3.failure(Y)}}failEarly($){throw new wG($)}};wG=class wG extends Error{constructor($){super($);this.name="GenerationFailure"}}});var kE,VR,BR,vE;var NR=V(()=>{G5();kE=K.object({userPermissionLevel:K.enum(["public","trusted","anchor"]).optional(),interfaceType:K.string().optional(),channelId:K.string().optional(),channelName:K.string().optional()}),VR=K.object({toolName:K.string(),description:K.string(),args:K.unknown()}),BR=K.object({toolName:K.string(),args:K.record(K.unknown()).optional(),jobId:K.string().optional(),data:K.unknown().optional()}),vE=K.object({text:K.string(),toolResults:K.array(BR).optional(),pendingConfirmation:VR.optional(),usage:K.object({promptTokens:K.number(),completionTokens:K.number(),totalTokens:K.number()})})});var xE,bE,hE,yE;var wR=V(()=>{G5();xE=K.object({label:K.string(),url:K.string(),pluginId:K.string(),priority:K.number()}),bE=K.object({status:K.enum(["healthy","warning","error","unknown"]),message:K.string().optional(),lastCheck:K.string().optional(),details:K.record(K.unknown()).optional()}),hE=K.object({name:K.string(),pluginId:K.string(),status:K.string(),health:bE.optional()}),yE=K.object({model:K.string(),version:K.string(),uptime:K.number(),entities:K.number(),embeddings:K.number(),ai:K.object({model:K.string(),embeddingModel:K.string()}),daemons:K.array(hE),endpoints:K.array(xE)})});var fE,gE;var _R=V(()=>{G5();o3();fE=K.union([K.object({success:K.boolean(),data:K.unknown().optional(),error:K.string().optional()}),K.object({noop:K.literal(!0)})]),gE=K.object({id:K.string(),timestamp:K.string(),type:K.string(),source:K.string(),target:K.string().optional(),metadata:U8.optional()})});var R$,zR,DR;var _G=V(()=>{p6();R$=Q5("conversations",{id:Y0("id").primaryKey(),sessionId:Y0("session_id").notNull(),interfaceType:Y0("interface_type").notNull(),channelId:Y0("channel_id").notNull(),started:Y0("started").notNull(),lastActive:Y0("last_active").notNull(),metadata:Y0("metadata"),created:Y0("created").notNull(),updated:Y0("updated").notNull()},($)=>({sessionIdx:s1("idx_conversations_session").on($.sessionId),channelIdx:s1("idx_conversations_channel").on($.channelId),interfaceSessionIdx:s1("idx_conversations_interface_session").on($.interfaceType,$.sessionId),interfaceChannelIdx:s1("idx_conversations_interface_channel").on($.interfaceType,$.channelId)})),zR=Q5("messages",{id:Y0("id").primaryKey(),conversationId:Y0("conversation_id").notNull().references(()=>R$.id,{onDelete:"cascade"}),role:Y0("role").notNull(),content:Y0("content").notNull(),timestamp:Y0("timestamp").notNull(),metadata:Y0("metadata")},($)=>({conversationIdx:s1("idx_messages_conversation").on($.conversationId),timestampIdx:s1("idx_messages_timestamp").on($.timestamp)})),DR=Q5("summary_tracking",{conversationId:Y0("conversation_id").primaryKey().references(()=>R$.id,{onDelete:"cascade"}),lastSummarizedAt:Y0("last_summarized_at"),lastMessageId:Y0("last_message_id"),messagesSinceSummary:V1("messages_since_summary").default(0),updated:Y0("updated").notNull()})});import{createClient as ye}from"@libsql/client";var PR=V(()=>{_G()});var mE,LR;var zG=V(()=>{I();mE=K.object({id:K.string(),conversationId:K.string(),role:K.string(),content:K.string(),timestamp:K.string(),metadata:K.string().nullable()}),LR=K.object({conversationId:K.string(),messageCount:K.number(),messages:K.array(mE),windowStart:K.number(),windowEnd:K.number(),windowSize:K.number(),timestamp:K.string()})});var CR=V(()=>{PR();zG();_G();I()});var TR=V(()=>{CR();zG()});var DG=V(()=>{H8()});var dE,PG;var ER=V(()=>{I();dE=["meet.google.com","zoom.us","teams.microsoft.com","whereby.com","gather.town","calendly.com","cal.com","discord.com","discord.gg","cdn.discordapp.com","media.discordapp.net","giphy.com","tenor.com","wetransfer.com","file.io"],PG=K.object({captureUrls:K.boolean().default(!1),blockedUrlDomains:K.array(K.string()).default(dE)})});var IR=V(()=>{NG();DG();ER()});var jR=()=>{};var SR=V(()=>{IR();DG();jR()});async function Q8($){let{entityType:X,title:G,deriveId:Y,regeneratePrompt:J,context:W}=$,H=Y(G);if(!await W.entityService.getEntity(X,H))return G;W.logger.debug(`Entity ID collision: ${X}/${H}, asking AI for a new title`);let F=K.object({title:K.string().max(80).describe("A short, unique title (2-6 words)")}),{object:M}=await W.ai.generateObject(`The title "${G}" is already taken. ${J}`,F),Q=M.title;return W.logger.debug(`AI suggested new title: "${Q}"`),Q}var kR=V(()=>{I()});var LG,Z$,CG,A$,TG,EG,IG,jG,V$;var SG=V(()=>{I();LG=K.object({id:K.string(),template:K.string(),content:K.unknown().optional(),dataQuery:K.object({entityType:K.string().optional(),template:K.string().optional(),query:K.object({id:K.string().optional(),limit:K.number().optional(),offset:K.number().optional()}).passthrough().optional()}).passthrough().optional(),order:K.number().optional()}),Z$=["primary","secondary"],CG=K.object({show:K.boolean().default(!1),label:K.string().optional(),slot:K.enum(Z$).default("primary"),priority:K.number().min(0).max(100).default(50)}).optional(),A$=K.object({id:K.string(),path:K.string(),title:K.string().default(""),description:K.string().default(""),sections:K.array(LG).default([]),layout:K.string().default("default"),fullscreen:K.boolean().optional(),pluginId:K.string().optional(),sourceEntityType:K.string().optional(),external:K.boolean().optional(),navigation:CG}),TG=K.object({routes:K.array(A$),pluginId:K.string()}),EG=K.object({paths:K.array(K.string()).optional(),pluginId:K.string().optional()}),IG=K.object({pluginId:K.string().optional()}),jG=K.object({path:K.string()}),V$=K.object({label:K.string(),href:K.string(),priority:K.number()})});var B$,N$,aE,tE;var vR=V(()=>{I();SG();B$=K.object({heading:K.string().describe("Main CTA heading text"),buttonText:K.string().describe("Call-to-action button text"),buttonLink:K.string().describe("URL or anchor for the CTA button")}),N$=K.object({title:K.string().describe("The site's title"),description:K.string().describe("The site's description"),url:K.string().optional().describe("Canonical site URL"),copyright:K.string().optional().describe("Copyright notice text"),logo:K.boolean().optional().describe("Whether to display logo instead of title text in header"),themeMode:K.enum(["light","dark"]).optional().describe("Default theme mode"),analyticsScript:K.string().optional().describe("Analytics script HTML"),cta:B$.optional().describe("Call-to-action configuration")}),aE=K.object({platform:K.enum(["github","instagram","linkedin","email","website"]).describe("Social media platform"),url:K.string().describe("Profile or contact URL"),label:K.string().optional().describe("Optional display label")}),tE=N$.extend({navigation:K.object({primary:K.array(V$),secondary:K.array(V$)}),copyright:K.string(),socialLinks:K.array(aE).optional().describe("Social media links from profile metadata")})});var eE,$I,XI,GI,YI;var xR=V(()=>{I();eE=K.string(),$I=K.object({id:K.string().min(1)}).passthrough(),XI=K.object({label:K.string().min(1)}).passthrough(),GI=K.object({layouts:K.record(K.unknown()),plugin:K.function(),routes:K.array($I),entityDisplay:K.record(XI),staticAssets:K.record(K.string()).optional()}).passthrough(),YI=K.custom(($)=>GI.safeParse($).success)});var w$=V(()=>{SG();vR();xR()});var bR=V(()=>{w$()});var HI;var hR=V(()=>{I();HI=K.object({enabled:K.boolean().describe("Whether the plugin is enabled"),debug:K.boolean().describe("Enable debug logging for this plugin")})});var kG,_$;var vG=V(()=>{I();v1();kG=N1.extend({id:K.literal("brain-character"),entityType:K.literal("brain-character")}),_$=K.object({name:K.string().describe("The brain's friendly display name"),role:K.string().describe("The brain's primary role"),purpose:K.string().describe("The brain's purpose and goals"),values:K.array(K.string()).describe("Core values that guide behavior")})});var z$;var xG=V(()=>{v1();vG();z$=class z$ extends B1{constructor(){super({entityType:"brain-character",schema:kG,frontmatterSchema:_$,isSingleton:!0,hasBody:!1})}createCharacterContent($){return this.buildMarkdown("",$)}parseCharacterBody($){return this.parseFrontmatter($)}toMarkdown($){let X=this.parseFrontmatter($.content);return this.buildMarkdown("",X)}fromMarkdown($){return{content:$,entityType:"brain-character"}}extractMetadata($){let X=this.parseFrontmatter($.content);return{role:X.role,values:X.values}}generateFrontMatter($){let X=this.parseFrontmatter($.content);return this.buildMarkdown("",X)}}});var K2;var yR=V(()=>{v1();xG();K2=class K2 extends d6{static instance=null;adapter=new z$;static getDefaultCharacter(){return{name:"Brain",role:"Knowledge assistant",purpose:"Help organize, understand, and retrieve information from your knowledge base",values:["clarity","accuracy","helpfulness"]}}static getInstance($,X,G){return K2.instance??=new K2($,X,G),K2.instance}static resetInstance(){K2.instance=null}static createFresh($,X,G){return new K2($,X,G)}constructor($,X,G){super($,X,"brain-character",G??K2.getDefaultCharacter())}parseBody($){return this.adapter.parseCharacterBody($)}createContent($){return this.adapter.createCharacterContent($)}getCharacter(){return this.get()}getCharacterContent(){return this.getContent()}}});async function q5($){let G=(await $.listEntities("anchor-profile",{limit:1}))[0];if(!G)throw Error("Profile not found \u2014 create an anchor-profile entity");return G.content}var i6;var fR=V(()=>{I();i6=K.object({tagline:K.string().optional().describe("Short, punchy one-liner for homepage"),intro:K.string().optional().describe("Optional longer introduction for homepage"),story:K.string().optional().describe("Extended bio/narrative (multi-paragraph markdown)")})});var bG,O5;var hG=V(()=>{I();v1();bG=N1.extend({id:K.literal("anchor-profile"),entityType:K.literal("anchor-profile")}),O5=K.object({name:K.string().describe("Name (person or organization)"),kind:K.enum(["professional","team","collective"]).describe("Type of anchor: professional (individual), team, or collective"),organization:K.string().optional().describe("Organization the anchor belongs to"),description:K.string().optional().describe("Short description or biography"),avatar:K.string().optional().describe("URL or asset path to avatar/logo"),website:K.string().optional().describe("Primary website URL"),email:K.string().optional().describe("Contact email"),socialLinks:K.array(K.object({platform:K.enum(["github","instagram","linkedin","email","website"]).describe("Social media platform"),url:K.string().describe("Profile or contact URL"),label:K.string().optional().describe("Optional display label")})).optional().describe("Social media and contact links")})});var m1;var yG=V(()=>{v1();hG();m1=class m1 extends B1{constructor(){super({entityType:"anchor-profile",schema:bG,frontmatterSchema:O5,isSingleton:!0,hasBody:!0})}createProfileContent($){let X=O5.parse($);return this.buildMarkdown("",X)}parseProfileBody($,X){if(X){let{metadata:G,content:Y}=E0($,X);return Y?{...G,story:Y}:G}return this.parseFrontmatter($)}fromMarkdown($){return{content:$,entityType:"anchor-profile"}}extractMetadata($){let X=this.parseFrontmatter($.content);return{name:X.name,email:X.email,website:X.website}}generateFrontMatter($){let X=this.parseFrontmatter($.content);return this.buildMarkdown("",X)}}});var I5;var gR=V(()=>{v1();yG();I5=class I5 extends d6{static instance=null;adapter=new m1;static getDefaultProfile(){return{name:"Unknown",kind:"professional"}}static getInstance($,X,G){return I5.instance??=new I5($,X,G),I5.instance}static resetInstance(){I5.instance=null}static createFresh($,X,G){return new I5($,X,G)}constructor($,X,G){super($,X,"anchor-profile",G??I5.getDefaultProfile())}parseBody($){return this.adapter.parseProfileBody($)}createContent($){return this.adapter.createProfileContent($)}getProfile(){return this.get()}getProfileContent(){return this.getContent()}}});var l2=V(()=>{yR();xG();vG();fR();gR();yG();hG()});var mR,UI,KI,FI;var pR=V(()=>{I();l2();mR=K.object({id:K.string(),description:K.string(),name:K.string().optional(),tags:K.array(K.string()).optional().default([])}).passthrough(),UI=K.object({uri:K.string(),params:K.record(K.unknown()).optional()}).passthrough(),KI=K.object({name:K.string(),url:K.string(),description:K.string().optional(),skills:K.array(mR).optional().default([]),capabilities:K.object({extensions:K.array(UI).optional().default([])}).passthrough().optional()}).passthrough(),FI=K.object({name:K.string(),description:K.string(),tags:K.array(K.string()),examples:K.array(K.string())})});var n6=()=>{};var a1;var q8=V(()=>{a1=class a1 extends Error{pluginId;constructor($,X){super(`Plugin ${$}: ${X}`);this.name="PluginError",this.pluginId=$}}});class fG{plugins;events;daemonRegistry;logger;constructor($,X,G,Y){this.plugins=$;this.events=X;this.daemonRegistry=G;this.logger=Y.child("PluginLifecycle")}async initializePlugin($,X,G){let Y=this.plugins.get($);if(!Y)throw new a1($,"Registration failed: Plugin is not registered");let J=Y.plugin;this.logger.debug(`Initializing plugin: ${$}`),this.events.emit("plugin:before_initialize",$,J);try{let W=await J.register(X,G);return Y.status="initialized",this.logger.debug(`Initialized plugin: ${$}`),this.events.emit("plugin:initialized",$,J),W}catch(W){let H=j0(W);throw this.logger.error(`Error initializing plugin ${$}: ${H}`),Y.status="error",Y.error=i4(W),this.events.emit("plugin:error",$,W),W}}async readyPlugin($){let X=this.plugins.get($);if(!X)throw new a1($,"Ready failed: Plugin is not registered");if(X.status!=="initialized"){this.logger.debug(`Skipping ready hook for non-initialized plugin: ${$}`);return}try{await X.plugin.ready?.(),this.logger.debug(`Ready hook completed for plugin: ${$}`)}catch(G){let Y=i4(G);throw X.status="error",X.error=Y,this.events.emit("plugin:error",$,Y),Y}}async startPluginDaemons($){let X=this.plugins.get($);if(X?.status!=="initialized")return;try{await this.daemonRegistry.startPlugin($),this.logger.debug(`Started daemons for plugin: ${$}`)}catch(G){if(X.plugin.requiresDaemonStartup?.())throw G;this.logger.warn(`Daemon ${$} failed to start: ${j0(G)}`)}}async disablePlugin($){let X=this.plugins.get($);if(!X){this.logger.warn(`Cannot disable plugin ${$}: not registered`);return}this.logger.debug(`Disabling plugin: ${$}`);try{await this.daemonRegistry.stopPlugin($),this.logger.debug(`Stopped daemons for plugin: ${$}`)}catch(G){this.logger.error(`Failed to stop daemons for plugin: ${$}`,G)}if(X.plugin.shutdown)try{await X.plugin.shutdown(),this.logger.debug(`Shutdown completed for plugin: ${$}`)}catch(G){this.logger.error(`Plugin shutdown failed for ${$}:`,G)}X.status="disabled",this.events.emit("plugin:disabled",$,X.plugin),this.logger.debug(`Disabled plugin: ${$}`)}async enablePlugin($){let X=this.plugins.get($);if(!X){this.logger.warn(`Cannot enable plugin ${$}: not registered`);return}if(X.status!=="disabled"){this.logger.warn(`Cannot enable plugin ${$}: not disabled`);return}this.logger.debug(`Enabling plugin: ${$}`),X.status="initialized";try{await this.daemonRegistry.startPlugin($),this.logger.debug(`Started daemons for plugin: ${$}`)}catch(G){this.logger.error(`Failed to start daemons for plugin: ${$}`,G)}this.events.emit("plugin:enabled",$,X.plugin),this.logger.debug(`Enabled plugin: ${$}`)}}var uR=V(()=>{I();n6();q8()});class gG{plugins;events;logger;constructor($,X,G){this.plugins=$;this.events=X;this.logger=G.child("DependencyResolver")}async resolveInitializationOrder($){this.logger.debug("Resolving plugin initialization order...");let X=Array.from(this.plugins.keys()),G=new Set,Y=!0;while(Y&&G.size<X.length){Y=!1;for(let H of X){if(G.has(H))continue;if(!this.plugins.get(H))continue;if(this.getUnmetDependencies(H).length===0)try{await $(H),G.add(H),Y=!0}catch(M){let Q=j0(M);this.logger.error(`Failed to initialize plugin ${H}: ${Q}`),G.add(H),Y=!0}}}let J=X.filter((H)=>!G.has(H));if(J.length>0){let H=J.join(", ");this.logger.error(`Failed to initialize plugins due to dependency issues: ${H}`);for(let U of J){let F=this.getUnmetDependencies(U);this.logger.error(`Plugin ${U} has unmet dependencies: ${F.join(", ")}`);let M=this.plugins.get(U);if(M)M.status="error",M.error=new a1(U,`Unmet dependencies: ${F.join(", ")}`);this.events.emit("plugin:error",U,M?.error)}}let W=new Set;for(let[H,U]of this.plugins)if(U.status==="initialized")W.add(H);return this.logger.debug(`Resolved ${W.size} of ${X.length} plugins`),{initialized:W,failed:J}}getUnmetDependencies($){let X=this.plugins.get($);if(!X)return[];let{dependencies:G}=X,Y=[];for(let J of G){let W=this.plugins.get(J);if(!W){Y.push(J);continue}if(W.status!=="initialized")Y.push(J)}return Y}}var dR=V(()=>{I();n6();q8()});class mG{logger;constructor($){this.logger=$.child("CapabilityRegistrar")}async registerCapabilities($,X,G){if(G.tools.length>0)$.registerTools(X,G.tools),this.logger.debug(`Registered ${G.tools.length} tools from ${X}`);if(G.resources.length>0)$.registerResources(X,G.resources),this.logger.debug(`Registered ${G.resources.length} resources from ${X}`);if(G.instructions)$.registerInstructions(X,G.instructions),this.logger.debug(`Registered instructions from ${X}`)}}import{EventEmitter as lR}from"events";class F2{static instance=null;plugins=new Map;logger;events=new lR;daemonRegistry;shell=null;initializedPluginIds=[];pluginLifecycle;dependencyResolver;capabilityRegistrar;static getInstance($,X){return F2.instance??=new F2($,X),F2.instance}static resetInstance(){F2.instance=null}static createFresh($,X){return new F2($,X)}setShell($){this.shell=$}constructor($,X){this.logger=$.child("PluginManager"),this.events=new lR,this.daemonRegistry=X,this.pluginLifecycle=new fG(this.plugins,this.events,this.daemonRegistry,$),this.dependencyResolver=new gG(this.plugins,this.events,$),this.capabilityRegistrar=new mG($)}registerPlugin($){if(!$.id)throw new a1("unknown","Registration failed: Plugin must have an id");if(this.logger.debug(`Registering plugin: ${$.id} (${$.version})`),this.plugins.has($.id)){let J=this.plugins.get($.id)?.plugin.version;throw new a1($.id,`Registration failed: Plugin is already registered with version ${J}`)}let X=$.dependencies??[],G={plugin:$,status:"registered",dependencies:X};this.plugins.set($.id,G),this.logger.debug(`Registered plugin: ${$.id} (${$.version})`),this.events.emit("plugin:registered",$.id,$)}async initializePlugins($){this.logger.debug("Initializing plugins..."),this.initializedPluginIds=[];let X=await this.dependencyResolver.resolveInitializationOrder(async(G)=>{await this.initializePlugin(G,$)});this.logger.debug(`Initialized ${X.initialized.size} of ${this.plugins.size} plugins`)}async initializePlugin($,X){if(!this.shell)throw new a1($,"Cannot initialize plugin: Shell not set. Call setShell() first.");let G=this.shell,Y=await this.pluginLifecycle.initializePlugin($,G,X);await this.capabilityRegistrar.registerCapabilities(G,$,Y),this.initializedPluginIds.push($)}async readyPlugins(){this.logger.debug("Dispatching plugin ready hooks..."),await Promise.all(this.initializedPluginIds.map(($)=>this.pluginLifecycle.readyPlugin($)))}async startPluginDaemons(){this.logger.debug("Starting plugin daemons..."),await Promise.all(this.initializedPluginIds.map(($)=>this.pluginLifecycle.startPluginDaemons($)))}getPlugin($){return this.plugins.get($)?.plugin}getPluginStatus($){return this.plugins.get($)?.status}hasPlugin($){return this.plugins.has($)}isPluginInitialized($){return this.plugins.get($)?.status==="initialized"}getAllPluginIds(){return Array.from(this.plugins.keys())}getAllPlugins(){return new Map(this.plugins)}getFailedPlugins(){return Array.from(this.plugins.entries()).filter(($)=>$[1].status==="error"&&$[1].error!==void 0).map(([$,X])=>({id:$,error:X.error}))}getPluginPackageName($){return this.plugins.get($)?.plugin.packageName}async disablePlugin($){await this.pluginLifecycle.disablePlugin($)}async enablePlugin($){await this.pluginLifecycle.enablePlugin($)}on($,X){this.events.on($,X)}once($,X){this.events.once($,X)}off($,X){this.events.off($,X)}getEventEmitter(){return this.events}}var cR=V(()=>{n6();q8();uR();dR();n6()});var rR=V(()=>{cR();n6()});var Q0=V(()=>{QR();OR();VG();ZG();MG();NG();RR();n3();OG();K8();BG();A3();v1();ZR();v1();H8();AR();U5();NR();wR();a3();$G();_R();TR();SR();Z3();kR();I();bR();hR();l2();pR();rR();q8()});var MI,M1,QI,o6,O8,t1,R8;var R5=V(()=>{I();Q0();MI=K.enum(["draft","queued","published"]),M1=K.object({title:K.string(),slug:K.string().optional(),status:MI,publishedAt:K.string().datetime().optional(),excerpt:K.string(),author:K.string(),coverImageId:K.string().optional(),seriesName:K.string().optional(),seriesIndex:K.number().optional(),ogImage:K.string().url().optional(),ogDescription:K.string().optional(),twitterCard:K.enum(["summary","summary_large_image"]).optional(),canonicalUrl:K.string().url().optional()}),QI=M1.pick({title:!0,status:!0,publishedAt:!0,seriesName:!0,seriesIndex:!0}).extend({slug:K.string()}),o6=N1.extend({entityType:K.literal("post"),metadata:QI}),O8=o6.extend({frontmatter:M1,body:K.string(),coverImageUrl:K.string().optional()}),t1=O8.extend({url:K.string().optional(),typeLabel:K.string().optional(),listUrl:K.string().optional(),listLabel:K.string().optional(),seriesUrl:K.string().optional(),coverImageUrl:K.string().optional(),coverImageWidth:K.number().optional(),coverImageHeight:K.number().optional(),coverImageSrcset:K.string().optional(),coverImageSizes:K.string().optional()}),R8=O8.extend({url:K.string(),typeLabel:K.string(),listUrl:K.string(),listLabel:K.string(),seriesUrl:K.string().optional(),coverImageUrl:K.string().optional(),coverImageWidth:K.number().optional(),coverImageHeight:K.number().optional(),coverImageSrcset:K.string().optional(),coverImageSizes:K.string().optional()})});var iR={};S8(iR,{blogPostAdapter:()=>c2,BlogPostAdapter:()=>L$});var L$,c2;var Z8=V(()=>{Q0();I();R5();L$=class L$ extends B1{constructor(){super({entityType:"post",schema:o6,frontmatterSchema:M1,supportsCoverImage:!0})}toMarkdown($){let X=this.extractBody($.content);try{let G=this.parseFrontMatter($.content,M1),Y={...G,slug:G.slug??$.metadata.slug};return this.buildMarkdown(X,Y)}catch{return X}}fromMarkdown($){let X=this.parseFrontMatter($,M1),G=X.slug??f1(X.title);return{content:$,entityType:"post",metadata:{title:X.title,slug:G,status:X.status,publishedAt:X.publishedAt,seriesName:X.seriesName,seriesIndex:X.seriesIndex}}}parsePostFrontmatter($){return this.parseFrontMatter($.content,M1)}createPostContent($,X){return this.buildMarkdown(X,$)}};c2=new L$});function b1($){return $.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function EZ($){return new Date($).toUTCString()}function k$($,X){let G=$.filter((M)=>{if(X.includeAllPosts)return!0;return M.frontmatter.status==="published"&&M.frontmatter.publishedAt}).sort((M,Q)=>{let q=new Date(M.frontmatter.publishedAt??M.created);return new Date(Q.frontmatter.publishedAt??Q.created).getTime()-q.getTime()}),Y=G.length>0&&G[0]?G[0].frontmatter.publishedAt??G[0].created:new Date().toISOString(),J=G.map((M)=>{let Q=`${X.link}/posts/${M.metadata.slug}`,q=M.frontmatter.publishedAt??M.created,Z=M.frontmatter.excerpt,A=M.frontmatter.author;return` <item>
172
+ `).trim();return{attributes:X,markdown:G}}function R3($){let X=$.split(IT);return X.length>1?X:null}var NQ,IT;var wQ=B(()=>{NQ=/<!--\s*\.slide:\s*(.*?)\s*-->/g;IT=/<!--\s*\.break\s*-->/});function vT($){return $.replace(kT,(X)=>ST[X]??X)}function n9($){return $.replace(jT,(X,G)=>{return`<div class="mermaid">${vT(G)}</div>`})}var jT,ST,kT;var _Q=B(()=>{jT=/<pre><code class="language-mermaid">([\s\S]*?)<\/code><\/pre>/g,ST={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},kT=/&(?:amp|lt|gt|quot|#39);/g});var I=B(()=>{YJ();J7();J7();UM();aM();qQ();q3();OQ();r9();x6();ZQ();RQ();AQ();BQ();VQ();wQ();_Q();UQ()});var bT,PQ;var LQ=B(()=>{I();bT=K.object({status:K.enum(["healthy","warning","error","unknown"]),message:K.string().optional(),lastCheck:K.date().optional(),details:K.record(K.string(),K.unknown()).optional()}),PQ=K.object({name:K.string(),pluginId:K.string(),status:K.string(),health:bT.optional()})});var A3;var B3=B(()=>{I();A3=K.enum(["anchor","trusted","public"])});function CQ($,X){return(G)=>{let Y=$.parse(G);return X(Y)}}function L0($){let{layout:X,schema:G,...Y}=$,J={...Y,schema:G};if(X){if(J.layout={},X.component)J.layout.component=CQ(G,X.component);if(X.fullscreen!==void 0)J.layout.fullscreen=X.fullscreen}return J}var hT;var TQ=B(()=>{I();B3();hT=K.object({name:K.string(),description:K.string(),schema:K.any(),basePrompt:K.string().optional(),useKnowledgeContext:K.boolean().optional(),requiredPermission:A3,formatter:K.any().optional(),layout:K.object({component:K.any(),fullscreen:K.boolean().optional()}).optional(),dataSourceId:K.string().optional()})});class s4{static canGenerate($){return!!$.basePrompt&&!!$.dataSourceId&&$.dataSourceId.includes("ai-content")}static canFetch($){return!!$.dataSourceId&&!this.canGenerate($)}static canRender($){return!!$.layout?.component}static isStaticOnly($){return!this.canGenerate($)&&!this.canFetch($)}static getCapabilities($){return{canGenerate:this.canGenerate($),canFetch:this.canFetch($),canRender:this.canRender($),isStaticOnly:this.isStaticOnly($)}}static validate($){let X=[];if($.dataSourceId?.includes("ai-content")&&!$.basePrompt)X.push(`Template "${$.name}" has AI-content dataSourceId but no basePrompt. AI generation requires a basePrompt.`);if($.basePrompt&&(!$.dataSourceId||!$.dataSourceId.includes("ai-content")))X.push(`Template "${$.name}" has basePrompt but no AI-content dataSourceId. The basePrompt won't be used.`);return X}static logCapabilities($,X){let G=this.getCapabilities($),Y=this.validate($);if(X)X.debug(`Template capabilities for "${$.name}":`,{...G,errors:Y.length>0?Y:void 0})}}var EQ=()=>{};var yT,fT,gT,mT;var IQ=B(()=>{I();yT=K.enum(["site-content-preview","site-content-production"]),fT=K.object({name:K.string(),schema:K.any(),description:K.string().optional(),pluginId:K.string(),renderers:K.object({web:K.union([K.function(),K.string()]).optional()})}),gT=K.object({enableContentGeneration:K.boolean().default(!1),outputDir:K.string(),workingDir:K.string().optional(),environment:K.enum(["preview","production"]).default("preview"),siteConfig:K.object({title:K.string(),description:K.string(),url:K.string().optional()}).optional()}),mT=K.object({success:K.boolean(),routesBuilt:K.number(),errors:K.array(K.string()).optional(),warnings:K.array(K.string()).optional()})});var U5=B(()=>{TQ();EQ();B3();IQ()});import{McpServer as tl,ResourceTemplate as el}from"@modelcontextprotocol/sdk/server/mcp.js";var SQ=B(()=>{U5();I()});var kQ=B(()=>{SQ()});var o9,vQ,xQ,bQ,V3;var hQ=B(()=>{I();o9=K.object({interfaceType:K.string(),userId:K.string(),channelId:K.string().optional(),channelName:K.string().optional()}),vQ=K.object({success:K.literal(!0),data:K.unknown(),message:K.string().optional()}),xQ=K.object({success:K.literal(!1),error:K.string(),code:K.string().optional()}),bQ=K.object({needsConfirmation:K.literal(!0),toolName:K.string(),description:K.string(),args:K.unknown()}),V3=K.union([vQ,xQ,bQ])});var yQ;var fQ=B(()=>{I();yQ=K.union([K.object({success:K.literal(!0),data:K.unknown(),message:K.string().optional()}),K.object({success:K.literal(!1),error:K.string(),code:K.string().optional()})])});var gQ=B(()=>{I()});var N3=B(()=>{kQ();hQ();fQ();gQ()});var Tc,Ec,mQ,cT,rT;var w3=B(()=>{I();I();LQ();N3();Tc=K.object({id:K.string(),type:K.string(),version:K.string(),status:K.string()}),Ec=K.object({name:K.string(),description:K.string()}),mQ=K.object({label:K.string(),url:K.string(),pluginId:K.string(),priority:K.number().default(100)}),cT=K.object({model:K.string(),version:K.string(),uptime:K.number(),entities:K.number(),embeddings:K.number(),ai:K.object({model:K.string(),embeddingModel:K.string()}),daemons:K.array(PQ),endpoints:K.array(mQ)}),rT=K.object({id:K.string(),version:K.string(),type:K.enum(["core","entity","service","interface"]),description:K.string().optional(),dependencies:K.array(K.string()).optional(),packageName:K.string()})});class y6{id;version;description;packageName;config;context;get logger(){return this.context?.logger??t0.createFresh({context:this.id})}constructor($,X,G,Y){this.id=$,this.packageName=X.name,this.version=X.version,this.description=X.description??`${X.name} plugin`,this.config=Y.parse(G)}setupMessageHandlers($){$.messaging.subscribe(`plugin:${this.id}:tool:execute`,async(X)=>{try{let{toolName:G,args:Y,progressToken:J,hasProgress:W,interfaceType:H,userId:U,channelId:F}=iT.parse(X.payload),Q=(await this.getTools()).find((Z)=>Z.name===G);if(!Q)return{success:!1,error:`Tool not found: ${G}`};let q={interfaceType:H,userId:U,...F&&{channelId:F},...W&&J!==void 0&&{progressToken:J,sendProgress:async(Z)=>{await $.messaging.send({type:`plugin:${this.id}:progress`,payload:{progressToken:J,notification:Z}})}}};return{success:!0,data:await Q.handler(Y,q)}}catch(G){if(G instanceof K.ZodError)return{success:!1,error:"Invalid tool execution request format"};return this.logger.error("Tool execution error",G),{success:!1,error:S0(G)}}}),$.messaging.subscribe(`plugin:${this.id}:resource:get`,async(X)=>{try{let{resourceUri:G}=nT.parse(X.payload),J=(await this.getResources()).find((H)=>H.uri===G);if(!J)return{success:!1,error:`Resource not found: ${G}`};return{success:!0,data:await J.handler()}}catch(G){if(G instanceof K.ZodError)return{success:!1,error:"Invalid resource get request format"};return this.logger.error("Resource fetch error",G),{success:!1,error:S0(G)}}})}async onRegister($){}async onReady($){}async ready(){await this.onReady(this.getContext())}async getCapabilities(){let $=await this.getInstructions();return{tools:await this.getTools(),resources:await this.getResources(),...$&&{instructions:$}}}async getTools(){return[]}async getResources(){return[]}async getInstructions(){return}async shutdown(){await this.onShutdown()}async onShutdown(){}getContext(){if(!this.context)throw Error(`Plugin ${this.id}: Plugin not registered yet`);return this.context}determineUserPermissionLevel($){return"public"}createProgressBridge($){if(!$)return;let X=this.context;if(!X)return;let G=this.id;return o5.from(async(Y)=>{await X.messaging.send({type:`plugin:${G}:progress`,payload:{progressToken:$,notification:{progress:Y.progress,total:Y.total,message:Y.message}}})})}}var iT,nT;var s9=B(()=>{w3();I();I();iT=K.object({toolName:K.string(),args:K.unknown(),progressToken:K.union([K.string(),K.number()]).optional(),hasProgress:K.boolean().optional(),...o9.shape}),nT=K.object({resourceUri:K.string()})});var pQ,uQ,a4,hc;var a9=B(()=>{I();pQ=K.enum(["file_operations","content_operations","data_processing","batch_processing"]),uQ=K.object({pluginId:K.string().optional(),progressToken:K.union([K.string(),K.number()]).optional(),operationType:pQ,operationTarget:K.string().optional(),interfaceType:K.string().optional(),channelId:K.string().optional()}),a4=uQ.extend({rootJobId:K.string()}),hc=K.enum(["none","skip","replace","coalesce"])});var _3,dQ,oT,sT,lQ,z3;var e5=B(()=>{I();a9();_3=K.enum(["pending","processing","completed","failed"]),dQ=K.enum(["completed","failed"]),oT=K.object({id:K.string(),type:K.string(),status:_3,data:K.unknown(),result:K.unknown().optional(),lastError:K.string().optional().nullable(),attempts:K.number(),maxRetries:K.number(),priority:K.number(),createdAt:K.date(),updatedAt:K.date(),processedAt:K.date().optional().nullable(),completedAt:K.date().optional().nullable(),failedAt:K.date().optional().nullable()}),sT=K.object({jobId:K.string(),type:K.string(),status:dQ,result:K.unknown().optional(),error:K.string().optional()}),lQ=K.object({success:K.literal(!1),error:K.string().optional()}),z3=K.object({id:K.string(),type:K.enum(["job","batch"]),status:_3,message:K.string().optional(),progress:K.object({current:K.number(),total:K.number(),percentage:K.number()}).optional(),aggregationKey:K.string().optional(),batchDetails:K.object({totalOperations:K.number(),completedOperations:K.number(),failedOperations:K.number(),currentOperation:K.string().optional(),errors:K.array(K.string()).optional()}).optional(),jobDetails:K.object({jobType:K.string(),priority:K.number(),retryCount:K.number()}).optional(),metadata:a4})});function e($,X){if(!$||typeof $!=="object")return!1;if($ instanceof X)return!0;if(!Object.prototype.hasOwnProperty.call(X,k))throw Error(`Class "${X.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(k in G&&G[k]===X[k])return!0;G=Object.getPrototypeOf(G)}return!1}var k;var w0=B(()=>{k=Symbol.for("drizzle:entityKind")});var P1;var $2=B(()=>{w0();P1=class P1{constructor($,X){this.table=$,this.config=X,this.name=X.name,this.keyAsName=X.keyAsName,this.notNull=X.notNull,this.default=X.default,this.defaultFn=X.defaultFn,this.onUpdateFn=X.onUpdateFn,this.hasDefault=X.hasDefault,this.primary=X.primaryKey,this.isUnique=X.isUnique,this.uniqueName=X.uniqueName,this.uniqueType=X.uniqueType,this.dataType=X.dataType,this.columnType=X.columnType,this.generated=X.generated,this.generatedIdentity=X.generatedIdentity}static[k]="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"}}});var D3;var P3=B(()=>{w0();D3=class D3{static[k]="ColumnBuilder";config;constructor($,X,G){this.config={name:$,keyAsName:$==="",notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:X,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;var t4=B(()=>{n1=Symbol.for("drizzle:Name")});function cQ($,...X){return $(...X)}var rQ=()=>{};function iQ($,X){return`${$[n1]}_${X.join("_")}_unique`}var nQ=B(()=>{t4()});var e4,aT;var oQ=B(()=>{$2();w0();nQ();e4=class e4 extends P1{constructor($,X){if(!X.uniqueName)X.uniqueName=iQ($,[X.name]);super($,X);this.table=$}static[k]="PgColumn"};aT=class aT extends e4{static[k]="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}}});function aQ($){return!!$&&typeof $==="function"&&sQ in $&&$[sQ]===!0}var tT,sQ,eT;var tQ=B(()=>{w0();oQ();tT=class tT extends e4{static[k]="PgEnumObjectColumn";enum;enumValues=this.config.enum.enumValues;constructor($,X){super($,X);this.enum=X.enum}getSQLType(){return this.enum.enumName}};sQ=Symbol.for("drizzle:isPgEnum");eT=class eT extends e4{static[k]="PgEnumColumn";enum=this.config.enum;enumValues=this.config.enum.enumValues;constructor($,X){super($,X);this.enum=X.enum}getSQLType(){return this.enum.enumName}}});var A1;var X2=B(()=>{w0();A1=class A1{static[k]="Subquery";constructor($,X,G,Y=!1,J=[]){this._={brand:"Subquery",sql:$,selectedFields:X,alias:G,isWith:Y,usedTables:J}}}});var eQ="0.44.7";var $q=()=>{};var L3,C3,Xq;var Gq=B(()=>{rQ();$q();Xq={startActiveSpan($,X){if(!L3)return X();if(!C3)C3=L3.trace.getTracer("drizzle-orm",eQ);return cQ((G,Y)=>Y.startActiveSpan($,(J)=>{try{return X(J)}catch(W){throw J.setStatus({code:G.SpanStatusCode.ERROR,message:W instanceof Error?W.message:"Unknown error"}),W}finally{J.end()}}),L3,C3)}}});var m0;var G2=B(()=>{m0=Symbol.for("drizzle:ViewBaseConfig")});var T3,Yq,Jq,E3,I3,$8,Wq,$E,W0;var T5=B(()=>{w0();t4();T3=Symbol.for("drizzle:Schema"),Yq=Symbol.for("drizzle:Columns"),Jq=Symbol.for("drizzle:ExtraConfigColumns"),E3=Symbol.for("drizzle:OriginalName"),I3=Symbol.for("drizzle:BaseName"),$8=Symbol.for("drizzle:IsAlias"),Wq=Symbol.for("drizzle:ExtraConfigBuilder"),$E=Symbol.for("drizzle:IsDrizzleTable");W0=class W0{static[k]="Table";static Symbol={Name:n1,Schema:T3,OriginalName:E3,Columns:Yq,ExtraConfigColumns:Jq,BaseName:I3,IsAlias:$8,ExtraConfigBuilder:Wq};[n1];[E3];[T3];[Yq];[Jq];[I3];[$8]=!1;[$E]=!0;[Wq]=void 0;constructor($,X,G){this[n1]=this[E3]=$,this[T3]=X,this[I3]=G}}});function XE($){return $!==null&&$!==void 0&&typeof $.getSQL==="function"}function GE($){let X={sql:"",params:[]};for(let G of $)if(X.sql+=G.sql,X.params.push(...G.params),G.typings?.length){if(!X.typings)X.typings=[];X.typings.push(...G.typings)}return X}function f6($,...X){let G=[];if(X.length>0||$.length>0&&$[0]!=="")G.push(new g1($[0]));for(let[Y,J]of X.entries())G.push(J,new g1($[Y+1]));return new Z0(G)}var g1,Z0,t9,Hq,Uq,_r,$$,e9,YE,K5;var Y2=B(()=>{w0();tQ();X2();Gq();G2();$2();T5();g1=class g1{static[k]="StringChunk";value;constructor($){this.value=Array.isArray($)?$:[$]}getSQL(){return new Z0([this])}};Z0=class Z0{constructor($){this.queryChunks=$;for(let X of $)if(e(X,W0)){let G=X[W0.Symbol.Schema];this.usedTables.push(G===void 0?X[W0.Symbol.Name]:G+"."+X[W0.Symbol.Name])}}static[k]="SQL";decoder=Hq;shouldInlineParams=!1;usedTables=[];append($){return this.queryChunks.push(...$.queryChunks),this}toQuery($){return Xq.startActiveSpan("drizzle.buildSQL",(X)=>{let G=this.buildQueryFromSourceParams(this.queryChunks,$);return X?.setAttributes({"drizzle.query.text":G.sql,"drizzle.query.params":JSON.stringify(G.params)}),G})}buildQueryFromSourceParams($,X){let G=Object.assign({},X,{inlineParams:X.inlineParams||this.shouldInlineParams,paramStartIndex:X.paramStartIndex||{value:0}}),{casing:Y,escapeName:J,escapeParam:W,prepareTyping:H,inlineParams:U,paramStartIndex:F}=G;return GE($.map((M)=>{if(e(M,g1))return{sql:M.value.join(""),params:[]};if(e(M,t9))return{sql:J(M.value),params:[]};if(M===void 0)return{sql:"",params:[]};if(Array.isArray(M)){let Q=[new g1("(")];for(let[q,A]of M.entries())if(Q.push(A),q<M.length-1)Q.push(new g1(", "));return Q.push(new g1(")")),this.buildQueryFromSourceParams(Q,G)}if(e(M,Z0))return this.buildQueryFromSourceParams(M.queryChunks,{...G,inlineParams:U||M.shouldInlineParams});if(e(M,W0)){let Q=M[W0.Symbol.Schema],q=M[W0.Symbol.Name];return{sql:Q===void 0||M[$8]?J(q):J(Q)+"."+J(q),params:[]}}if(e(M,P1)){let Q=Y.getColumnCasing(M);if(X.invokeSource==="indexes")return{sql:J(Q),params:[]};let q=M.table[W0.Symbol.Schema];return{sql:M.table[$8]||q===void 0?J(M.table[W0.Symbol.Name])+"."+J(Q):J(q)+"."+J(M.table[W0.Symbol.Name])+"."+J(Q),params:[]}}if(e(M,K5)){let Q=M[m0].schema,q=M[m0].name;return{sql:Q===void 0||M[m0].isAlias?J(q):J(Q)+"."+J(q),params:[]}}if(e(M,$$)){if(e(M.value,e9))return{sql:W(F.value++,M),params:[M],typings:["none"]};let Q=M.value===null?null:M.encoder.mapToDriverValue(M.value);if(e(Q,Z0))return this.buildQueryFromSourceParams([Q],G);if(U)return{sql:this.mapInlineParam(Q,G),params:[]};let q=["none"];if(H)q=[H(M.encoder)];return{sql:W(F.value++,Q),params:[Q],typings:q}}if(e(M,e9))return{sql:W(F.value++,M),params:[M],typings:["none"]};if(e(M,Z0.Aliased)&&M.fieldAlias!==void 0)return{sql:J(M.fieldAlias),params:[]};if(e(M,A1)){if(M._.isWith)return{sql:J(M._.alias),params:[]};return this.buildQueryFromSourceParams([new g1("("),M._.sql,new g1(") "),new t9(M._.alias)],G)}if(aQ(M)){if(M.schema)return{sql:J(M.schema)+"."+J(M.enumName),params:[]};return{sql:J(M.enumName),params:[]}}if(XE(M)){if(M.shouldOmitSQLParens?.())return this.buildQueryFromSourceParams([M.getSQL()],G);return this.buildQueryFromSourceParams([new g1("("),M.getSQL(),new g1(")")],G)}if(U)return{sql:this.mapInlineParam(M,G),params:[]};return{sql:W(F.value++,M),params:[M],typings:["none"]}}))}mapInlineParam($,{escapeString:X}){if($===null)return"null";if(typeof $==="number"||typeof $==="boolean")return $.toString();if(typeof $==="string")return X($);if(typeof $==="object"){let G=$.toString();if(G==="[object Object]")return X(JSON.stringify($));return X(G)}throw Error("Unexpected param value: "+$)}getSQL(){return this}as($){if($===void 0)return this;return new Z0.Aliased(this,$)}mapWith($){return this.decoder=typeof $==="function"?{mapFromDriverValue:$}:$,this}inlineParams(){return this.shouldInlineParams=!0,this}if($){return $?this:void 0}};t9=class t9{constructor($){this.value=$}static[k]="Name";brand;getSQL(){return new Z0([this])}};Hq={mapFromDriverValue:($)=>$},Uq={mapToDriverValue:($)=>$},_r={...Hq,...Uq};$$=class $${constructor($,X=Uq){this.value=$,this.encoder=X}static[k]="Param";brand;getSQL(){return new Z0([this])}};(($)=>{function X(){return new Z0([])}$.empty=X;function G(F){return new Z0(F)}$.fromList=G;function Y(F){return new Z0([new g1(F)])}$.raw=Y;function J(F,M){let Q=[];for(let[q,A]of F.entries()){if(q>0&&M!==void 0)Q.push(M);Q.push(A)}return new Z0(Q)}$.join=J;function W(F){return new t9(F)}$.identifier=W;function H(F){return new e9(F)}$.placeholder=H;function U(F,M){return new $$(F,M)}$.param=U})(f6||(f6={}));(($)=>{class X{constructor(G,Y){this.sql=G,this.fieldAlias=Y}static[k]="SQL.Aliased";isSelectionField=!1;getSQL(){return this.sql}clone(){return new X(this.sql,this.fieldAlias)}}$.Aliased=X})(Z0||(Z0={}));e9=class e9{constructor($){this.name=$}static[k]="Placeholder";getSQL(){return new Z0([this])}};YE=Symbol.for("drizzle:IsDrizzleView");K5=class K5{static[k]="View";[m0];[YE]=!0;constructor({name:$,schema:X,selectedFields:G,query:Y}){this[m0]={name:$,originalName:$,schema:X,selectedFields:G,query:Y,isExisting:!Y,isAlias:!1}}getSQL(){return new Z0([this])}};P1.prototype.getSQL=function(){return new Z0([this])};W0.prototype.getSQL=function(){return new Z0([this])};A1.prototype.getSQL=function(){return new Z0([this])}});function g6($,X){return Object.entries($).reduce((G,[Y,J])=>{if(typeof Y!=="string")return G;let W=X?[...X,Y]:[Y];if(e(J,P1)||e(J,Z0)||e(J,Z0.Aliased))G.push({path:W,field:J});else if(e(J,W0))G.push(...g6(J[W0.Symbol.Columns],W));else G.push(...g6(J,W));return G},[])}function j3($,X){let G=Object.keys($),Y=Object.keys(X);if(G.length!==Y.length)return!1;for(let[J,W]of G.entries())if(W!==Y[J])return!1;return!0}function Kq($,X){for(let G of X)for(let Y of Object.getOwnPropertyNames(G.prototype)){if(Y==="constructor")continue;Object.defineProperty($.prototype,Y,Object.getOwnPropertyDescriptor(G.prototype,Y)||Object.create(null))}}function X8($){return e($,A1)?$._.alias:e($,K5)?$[m0].name:e($,Z0)?void 0:$[W0.Symbol.IsAlias]?$[W0.Symbol.Name]:$[W0.Symbol.BaseName]}function F5($,X){return{name:typeof $==="string"&&$.length>0?$:"",config:typeof $==="object"?$:X}}var S3;var E5=B(()=>{$2();w0();Y2();X2();T5();G2();S3=typeof TextDecoder>"u"?null:new TextDecoder});var Fq=()=>{};var Mq=()=>{};var Qq=()=>{};var qq=B(()=>{Mq();Qq()});var Oq=()=>{};var G8,k3;var v3=B(()=>{$2();w0();T5();G2();G8=class G8{constructor($){this.table=$}static[k]="ColumnAliasProxyHandler";get($,X){if(X==="table")return this.table;return $[X]}};k3=class k3{constructor($,X){this.alias=$,this.replaceOriginalName=X}static[k]="TableAliasProxyHandler";get($,X){if(X===W0.Symbol.IsAlias)return!0;if(X===W0.Symbol.Name)return this.alias;if(this.replaceOriginalName&&X===W0.Symbol.OriginalName)return this.alias;if(X===m0)return{...$[m0],name:this.alias,isAlias:!0};if(X===W0.Symbol.Columns){let Y=$[W0.Symbol.Columns];if(!Y)return Y;let J={};return Object.keys(Y).map((W)=>{J[W]=new Proxy(Y[W],new G8(new Proxy($,this)))}),J}let G=$[X];if(e(G,P1))return new Proxy(G,new G8(new Proxy($,this)));return G}}});var L1;var x3=B(()=>{v3();$2();w0();Y2();X2();G2();L1=class L1{static[k]="SelectionProxyHandler";config;constructor($){this.config={...$}}get($,X){if(X==="_")return{...$._,selectedFields:new Proxy($._.selectedFields,this)};if(X===m0)return{...$[m0],selectedFields:new Proxy($[m0].selectedFields,this)};if(typeof X==="symbol")return $[X];let Y=(e($,A1)?$._.selectedFields:e($,K5)?$[m0].selectedFields:$)[X];if(e(Y,Z0.Aliased)){if(this.config.sqlAliasedBehavior==="sql"&&!Y.isSelectionField)return Y.sql;let J=Y.clone();return J.isSelectionField=!0,J}if(e(Y,Z0)){if(this.config.sqlBehavior==="sql")return Y;throw Error(`You tried to reference "${X}" field from a subquery, which is a raw SQL field, but it doesn't have an alias declared. Please add an alias to the field using ".as('alias')" method.`)}if(e(Y,P1)){if(this.config.alias)return new Proxy(Y,new G8(new Proxy(Y.table,new k3(this.config.alias,this.config.replaceOriginalName??!1))));return Y}if(typeof Y!=="object"||Y===null)return Y;return new Proxy(Y,new L1(this.config))}}});var Y8;var X$=B(()=>{w0();Y8=class Y8{static[k]="QueryPromise";[Symbol.toStringTag]="QueryPromise";catch($){return this.then(void 0,$)}finally($){return this.then((X)=>{return $?.(),X},(X)=>{throw $?.(),X})}then($,X){return this.execute().then($,X)}}});var b3,Zq;var h3=B(()=>{w0();t4();b3=class b3{static[k]="SQLiteForeignKeyBuilder";reference;_onUpdate;_onDelete;constructor($,X){if(this.reference=()=>{let{name:G,columns:Y,foreignColumns:J}=$();return{name:G,columns:Y,foreignTable:J[0].table,foreignColumns:J}},X)this._onUpdate=X.onUpdate,this._onDelete=X.onDelete}onUpdate($){return this._onUpdate=$,this}onDelete($){return this._onDelete=$,this}build($){return new Zq($,this)}};Zq=class Zq{constructor($,X){this.table=$,this.reference=X.reference,this.onUpdate=X._onUpdate,this.onDelete=X._onDelete}static[k]="SQLiteForeignKey";reference;onUpdate;onDelete;getName(){let{name:$,columns:X,foreignColumns:G}=this.reference(),Y=X.map((H)=>H.name),J=G.map((H)=>H.name),W=[this.table[n1],...Y,G[0].table[n1],...J];return $??`${W.join("_")}_fk`}}});function Rq($,X){return`${$[n1]}_${X.join("_")}_unique`}var y3=B(()=>{t4()});var i0,n0;var J2=B(()=>{P3();$2();w0();h3();y3();i0=class i0 extends D3{static[k]="SQLiteColumnBuilder";foreignKeyConfigs=[];references($,X={}){return this.foreignKeyConfigs.push({ref:$,actions:X}),this}unique($){return this.config.isUnique=!0,this.config.uniqueName=$,this}generatedAlwaysAs($,X){return this.config.generated={as:$,type:"always",mode:X?.mode??"virtual"},this}buildForeignKeys($,X){return this.foreignKeyConfigs.map(({ref:G,actions:Y})=>{return((J,W)=>{let H=new b3(()=>{let U=J();return{columns:[$],foreignColumns:[U]}});if(W.onUpdate)H.onUpdate(W.onUpdate);if(W.onDelete)H.onDelete(W.onDelete);return H.build(X)})(G,Y)})}};n0=class n0 extends P1{constructor($,X){if(!X.uniqueName)X.uniqueName=Rq($,[X.name]);super($,X);this.table=$}static[k]="SQLiteColumn"}});function zq($,X){let{name:G,config:Y}=F5($,X);if(Y?.mode==="json")return new Vq(G);if(Y?.mode==="bigint")return new Aq(G);return new wq(G)}var Aq,Bq,Vq,Nq,wq,_q;var f3=B(()=>{w0();E5();J2();Aq=class Aq extends i0{static[k]="SQLiteBigIntBuilder";constructor($){super($,"bigint","SQLiteBigInt")}build($){return new Bq($,this.config)}};Bq=class Bq extends n0{static[k]="SQLiteBigInt";getSQLType(){return"blob"}mapFromDriverValue($){if(typeof Buffer<"u"&&Buffer.from){let X=Buffer.isBuffer($)?$:$ instanceof ArrayBuffer?Buffer.from($):$.buffer?Buffer.from($.buffer,$.byteOffset,$.byteLength):Buffer.from($);return BigInt(X.toString("utf8"))}return BigInt(S3.decode($))}mapToDriverValue($){return Buffer.from($.toString())}};Vq=class Vq extends i0{static[k]="SQLiteBlobJsonBuilder";constructor($){super($,"json","SQLiteBlobJson")}build($){return new Nq($,this.config)}};Nq=class Nq extends n0{static[k]="SQLiteBlobJson";getSQLType(){return"blob"}mapFromDriverValue($){if(typeof Buffer<"u"&&Buffer.from){let X=Buffer.isBuffer($)?$:$ instanceof ArrayBuffer?Buffer.from($):$.buffer?Buffer.from($.buffer,$.byteOffset,$.byteLength):Buffer.from($);return JSON.parse(X.toString("utf8"))}return JSON.parse(S3.decode($))}mapToDriverValue($){return Buffer.from(JSON.stringify($))}};wq=class wq extends i0{static[k]="SQLiteBlobBufferBuilder";constructor($){super($,"buffer","SQLiteBlobBuffer")}build($){return new _q($,this.config)}};_q=class _q extends n0{static[k]="SQLiteBlobBuffer";mapFromDriverValue($){if(Buffer.isBuffer($))return $;return Buffer.from($)}getSQLType(){return"blob"}}});function G$($){return(X,G)=>{let{name:Y,config:J}=F5(X,G);return new Dq(Y,J,$)}}var Dq,Pq;var g3=B(()=>{w0();E5();J2();Dq=class Dq extends i0{static[k]="SQLiteCustomColumnBuilder";constructor($,X,G){super($,"custom","SQLiteCustomColumn");this.config.fieldConfig=X,this.config.customTypeParams=G}build($){return new Pq($,this.config)}};Pq=class Pq extends n0{static[k]="SQLiteCustomColumn";sqlName;mapTo;mapFrom;constructor($,X){super($,X);this.sqlName=X.customTypeParams.dataType(X.fieldConfig),this.mapTo=X.customTypeParams.toDriver,this.mapFrom=X.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue($){return typeof this.mapFrom==="function"?this.mapFrom($):$}mapToDriverValue($){return typeof this.mapTo==="function"?this.mapTo($):$}}});function B1($,X){let{name:G,config:Y}=F5($,X);if(Y?.mode==="timestamp"||Y?.mode==="timestamp_ms")return new Tq(G,Y.mode);if(Y?.mode==="boolean")return new Iq(G,Y.mode);return new Lq(G)}var Y$,J$,Lq,Cq,Tq,Eq,Iq,jq;var m3=B(()=>{w0();Y2();E5();J2();Y$=class Y$ extends i0{static[k]="SQLiteBaseIntegerBuilder";constructor($,X,G){super($,X,G);this.config.autoIncrement=!1}primaryKey($){if($?.autoIncrement)this.config.autoIncrement=!0;return this.config.hasDefault=!0,super.primaryKey()}};J$=class J$ extends n0{static[k]="SQLiteBaseInteger";autoIncrement=this.config.autoIncrement;getSQLType(){return"integer"}};Lq=class Lq extends Y${static[k]="SQLiteIntegerBuilder";constructor($){super($,"number","SQLiteInteger")}build($){return new Cq($,this.config)}};Cq=class Cq extends J${static[k]="SQLiteInteger"};Tq=class Tq extends Y${static[k]="SQLiteTimestampBuilder";constructor($,X){super($,"date","SQLiteTimestamp");this.config.mode=X}defaultNow(){return this.default(f6`(cast((julianday('now') - 2440587.5)*86400000 as integer))`)}build($){return new Eq($,this.config)}};Eq=class Eq extends J${static[k]="SQLiteTimestamp";mode=this.config.mode;mapFromDriverValue($){if(this.config.mode==="timestamp")return new Date($*1000);return new Date($)}mapToDriverValue($){let X=$.getTime();if(this.config.mode==="timestamp")return Math.floor(X/1000);return X}};Iq=class Iq extends Y${static[k]="SQLiteBooleanBuilder";constructor($,X){super($,"boolean","SQLiteBoolean");this.config.mode=X}build($){return new jq($,this.config)}};jq=class jq extends J${static[k]="SQLiteBoolean";mode=this.config.mode;mapFromDriverValue($){return Number($)===1}mapToDriverValue($){return $?1:0}}});function yq($,X){let{name:G,config:Y}=F5($,X),J=Y?.mode;return J==="number"?new vq(G):J==="bigint"?new bq(G):new Sq(G)}var Sq,kq,vq,xq,bq,hq;var p3=B(()=>{w0();E5();J2();Sq=class Sq extends i0{static[k]="SQLiteNumericBuilder";constructor($){super($,"string","SQLiteNumeric")}build($){return new kq($,this.config)}};kq=class kq extends n0{static[k]="SQLiteNumeric";mapFromDriverValue($){if(typeof $==="string")return $;return String($)}getSQLType(){return"numeric"}};vq=class vq extends i0{static[k]="SQLiteNumericNumberBuilder";constructor($){super($,"number","SQLiteNumericNumber")}build($){return new xq($,this.config)}};xq=class xq extends n0{static[k]="SQLiteNumericNumber";mapFromDriverValue($){if(typeof $==="number")return $;return Number($)}mapToDriverValue=String;getSQLType(){return"numeric"}};bq=class bq extends i0{static[k]="SQLiteNumericBigIntBuilder";constructor($){super($,"bigint","SQLiteNumericBigInt")}build($){return new hq($,this.config)}};hq=class hq extends n0{static[k]="SQLiteNumericBigInt";mapFromDriverValue=BigInt;mapToDriverValue=String;getSQLType(){return"numeric"}}});function mq($){return new fq($??"")}var fq,gq;var u3=B(()=>{w0();J2();fq=class fq extends i0{static[k]="SQLiteRealBuilder";constructor($){super($,"number","SQLiteReal")}build($){return new gq($,this.config)}};gq=class gq extends n0{static[k]="SQLiteReal";getSQLType(){return"real"}}});function Y0($,X={}){let{name:G,config:Y}=F5($,X);if(Y.mode==="json")return new dq(G);return new pq(G,Y)}var pq,uq,dq,lq;var d3=B(()=>{w0();E5();J2();pq=class pq extends i0{static[k]="SQLiteTextBuilder";constructor($,X){super($,"string","SQLiteText");this.config.enumValues=X.enum,this.config.length=X.length}build($){return new uq($,this.config)}};uq=class uq extends n0{static[k]="SQLiteText";enumValues=this.config.enumValues;length=this.config.length;constructor($,X){super($,X)}getSQLType(){return`text${this.config.length?`(${this.config.length})`:""}`}};dq=class dq extends i0{static[k]="SQLiteTextJsonBuilder";constructor($){super($,"json","SQLiteTextJson")}build($){return new lq($,this.config)}};lq=class lq extends n0{static[k]="SQLiteTextJson";getSQLType(){return"text"}mapFromDriverValue($){return JSON.parse($)}mapToDriverValue($){return JSON.stringify($)}}});function cq(){return{blob:zq,customType:G$,integer:B1,numeric:yq,real:mq,text:Y0}}var rq=B(()=>{f3();g3();m3();p3();u3();d3()});function JE($,X,G,Y,J=$){let W=new M5($,Y,J),H=typeof X==="function"?X(cq()):X,U=Object.fromEntries(Object.entries(H).map(([M,Q])=>{let q=Q;q.setName(M);let A=q.build(W);return W[l3].push(...q.buildForeignKeys(A,W)),[M,A]})),F=Object.assign(W,U);if(F[W0.Symbol.Columns]=U,F[W0.Symbol.ExtraConfigColumns]=U,G)F[M5.Symbol.ExtraConfigBuilder]=G;return F}var l3,M5,Q5=($,X,G)=>{return JE($,X,G)};var J8=B(()=>{w0();T5();rq();l3=Symbol.for("drizzle:SQLiteInlineForeignKeys");M5=class M5 extends W0{static[k]="SQLiteTable";static Symbol=Object.assign({},W0.Symbol,{InlineForeignKeys:l3});[W0.Symbol.Columns];[l3]=[];[W0.Symbol.ExtraConfigBuilder]=void 0}});var iq=()=>{};function o1($){return new nq($,!1)}var nq,oq,sq;var aq=B(()=>{w0();nq=class nq{constructor($,X){this.name=$,this.unique=X}static[k]="SQLiteIndexBuilderOn";on(...$){return new oq(this.name,$,this.unique)}};oq=class oq{static[k]="SQLiteIndexBuilder";config;constructor($,X,G){this.config={name:$,columns:X,unique:G,where:void 0}}where($){return this.config.where=$,this}build($){return new sq(this.config,$)}};sq=class sq{static[k]="SQLiteIndex";config;constructor($,X){this.config={...$,table:X}}}});function W$(...$){if($[0].columns)return new c3($[0].columns,$[0].name);return new c3($)}var c3,tq;var eq=B(()=>{w0();J8();c3=class c3{static[k]="SQLitePrimaryKeyBuilder";columns;name;constructor($,X){this.columns=$,this.name=X}build($){return new tq($,this.columns,this.name)}};tq=class tq{constructor($,X,G){this.table=$,this.columns=X,this.name=G}static[k]="SQLitePrimaryKey";columns;name;getName(){return this.name??`${this.table[M5.Symbol.Name]}_${this.columns.map(($)=>$.name).join("_")}_pk`}}});function u2($){if(e($,M5))return[`${$[W0.Symbol.BaseName]}`];if(e($,A1))return $._.usedTables??[];if(e($,Z0))return $.usedTables??[];return[]}var H$=B(()=>{w0();Y2();X2();T5();J8()});var $O=()=>{};var XO=()=>{};var GO=()=>{};var YO=()=>{};var JO=B(()=>{GO();YO()});var WO=B(()=>{qq();JO();Y2()});var HO=B(()=>{f3();J2();g3();m3();p3();u3();d3()});var r3;var UO=B(()=>{w0();Y2();r3=class r3 extends K5{static[k]="SQLiteViewBase"}});var KO=()=>{};var i3;var FO=B(()=>{w0();i3=class i3{static[k]="TypedQueryBuilder";getSelectedFields(){return this._.selectedFields}}});function U$($,X){return(G,Y,...J)=>{let W=[Y,...J].map((H)=>({type:$,isAll:X,rightSelect:H}));for(let H of W)if(!j3(G.getSelectedFields(),H.rightSelect.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return G.addSetOperators(W)}}var MO,QO,WE=()=>({union:HE,unionAll:UE,intersect:KE,except:FE}),HE,UE,KE,FE;var qO=B(()=>{w0();FO();X$();x3();Y2();X2();T5();E5();G2();H$();MO=class MO extends i3{static[k]="SQLiteSelectQueryBuilder";_;config;joinsNotNullableMap;tableName;isPartialSelect;session;dialect;cacheConfig=void 0;usedTables=new Set;constructor({table:$,fields:X,isPartialSelect:G,session:Y,dialect:J,withList:W,distinct:H}){super();this.config={withList:W,table:$,fields:{...X},distinct:H,setOperators:[]},this.isPartialSelect=G,this.session=Y,this.dialect=J,this._={selectedFields:X,config:this.config},this.tableName=X8($),this.joinsNotNullableMap=typeof this.tableName==="string"?{[this.tableName]:!0}:{};for(let U of u2($))this.usedTables.add(U)}getUsedTables(){return[...this.usedTables]}createJoin($){return(X,G)=>{let Y=this.tableName,J=X8(X);for(let W of u2(X))this.usedTables.add(W);if(typeof J==="string"&&this.config.joins?.some((W)=>W.alias===J))throw Error(`Alias "${J}" is already used in this query`);if(!this.isPartialSelect){if(Object.keys(this.joinsNotNullableMap).length===1&&typeof Y==="string")this.config.fields={[Y]:this.config.fields};if(typeof J==="string"&&!e(X,Z0)){let W=e(X,A1)?X._.selectedFields:e(X,K5)?X[m0].selectedFields:X[W0.Symbol.Columns];this.config.fields[J]=W}}if(typeof G==="function")G=G(new Proxy(this.config.fields,new L1({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})));if(!this.config.joins)this.config.joins=[];if(this.config.joins.push({on:G,table:X,joinType:$,alias:J}),typeof J==="string")switch($){case"left":{this.joinsNotNullableMap[J]=!1;break}case"right":{this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([W])=>[W,!1])),this.joinsNotNullableMap[J]=!0;break}case"cross":case"inner":{this.joinsNotNullableMap[J]=!0;break}case"full":{this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([W])=>[W,!1])),this.joinsNotNullableMap[J]=!1;break}}return this}}leftJoin=this.createJoin("left");rightJoin=this.createJoin("right");innerJoin=this.createJoin("inner");fullJoin=this.createJoin("full");crossJoin=this.createJoin("cross");createSetOperator($,X){return(G)=>{let Y=typeof G==="function"?G(WE()):G;if(!j3(this.getSelectedFields(),Y.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return this.config.setOperators.push({type:$,isAll:X,rightSelect:Y}),this}}union=this.createSetOperator("union",!1);unionAll=this.createSetOperator("union",!0);intersect=this.createSetOperator("intersect",!1);except=this.createSetOperator("except",!1);addSetOperators($){return this.config.setOperators.push(...$),this}where($){if(typeof $==="function")$=$(new Proxy(this.config.fields,new L1({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})));return this.config.where=$,this}having($){if(typeof $==="function")$=$(new Proxy(this.config.fields,new L1({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})));return this.config.having=$,this}groupBy(...$){if(typeof $[0]==="function"){let X=$[0](new Proxy(this.config.fields,new L1({sqlAliasedBehavior:"alias",sqlBehavior:"sql"})));this.config.groupBy=Array.isArray(X)?X:[X]}else this.config.groupBy=$;return this}orderBy(...$){if(typeof $[0]==="function"){let X=$[0](new Proxy(this.config.fields,new L1({sqlAliasedBehavior:"alias",sqlBehavior:"sql"}))),G=Array.isArray(X)?X:[X];if(this.config.setOperators.length>0)this.config.setOperators.at(-1).orderBy=G;else this.config.orderBy=G}else{let X=$;if(this.config.setOperators.length>0)this.config.setOperators.at(-1).orderBy=X;else this.config.orderBy=X}return this}limit($){if(this.config.setOperators.length>0)this.config.setOperators.at(-1).limit=$;else this.config.limit=$;return this}offset($){if(this.config.setOperators.length>0)this.config.setOperators.at(-1).offset=$;else this.config.offset=$;return this}getSQL(){return this.dialect.buildSelectQuery(this.config)}toSQL(){let{typings:$,...X}=this.dialect.sqlToQuery(this.getSQL());return X}as($){let X=[];if(X.push(...u2(this.config.table)),this.config.joins)for(let G of this.config.joins)X.push(...u2(G.table));return new Proxy(new A1(this.getSQL(),this.config.fields,$,!1,[...new Set(X)]),new L1({alias:$,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}getSelectedFields(){return new Proxy(this.config.fields,new L1({alias:this.tableName,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}$dynamic(){return this}};QO=class QO extends MO{static[k]="SQLiteSelect";_prepare($=!0){if(!this.session)throw Error("Cannot execute a query on a query builder. Please use a database instance instead.");let X=g6(this.config.fields),G=this.session[$?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),X,"all",!0,void 0,{type:"select",tables:[...this.usedTables]},this.cacheConfig);return G.joinsNotNullableMap=this.joinsNotNullableMap,G}$withCache($){return this.cacheConfig=$===void 0?{config:{},enable:!0,autoInvalidate:!0}:$===!1?{enable:!1}:{enable:!0,autoInvalidate:!0,...$},this}prepare(){return this._prepare(!1)}run=($)=>{return this._prepare().run($)};all=($)=>{return this._prepare().all($)};get=($)=>{return this._prepare().get($)};values=($)=>{return this._prepare().values($)};async execute(){return this.all()}};Kq(QO,[Y8]);HE=U$("union",!1),UE=U$("union",!0),KE=U$("intersect",!1),FE=U$("except",!1)});var OO=()=>{};var ZO=()=>{};var ME;var RO=B(()=>{w0();X$();x3();J8();X2();T5();E5();G2();H$();UO();ME=class ME extends Y8{constructor($,X,G,Y,J){super();this.session=G,this.dialect=Y,this.config={set:X,table:$,withList:J,joins:[]}}static[k]="SQLiteUpdate";config;from($){return this.config.from=$,this}createJoin($){return(X,G)=>{let Y=X8(X);if(typeof Y==="string"&&this.config.joins.some((J)=>J.alias===Y))throw Error(`Alias "${Y}" is already used in this query`);if(typeof G==="function"){let J=this.config.from?e(X,M5)?X[W0.Symbol.Columns]:e(X,A1)?X._.selectedFields:e(X,r3)?X[m0].selectedFields:void 0:void 0;G=G(new Proxy(this.config.table[W0.Symbol.Columns],new L1({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})),J&&new Proxy(J,new L1({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))}return this.config.joins.push({on:G,table:X,joinType:$,alias:Y}),this}}leftJoin=this.createJoin("left");rightJoin=this.createJoin("right");innerJoin=this.createJoin("inner");fullJoin=this.createJoin("full");where($){return this.config.where=$,this}orderBy(...$){if(typeof $[0]==="function"){let X=$[0](new Proxy(this.config.table[W0.Symbol.Columns],new L1({sqlAliasedBehavior:"alias",sqlBehavior:"sql"}))),G=Array.isArray(X)?X:[X];this.config.orderBy=G}else{let X=$;this.config.orderBy=X}return this}limit($){return this.config.limit=$,this}returning($=this.config.table[M5.Symbol.Columns]){return this.config.returning=g6($),this}getSQL(){return this.dialect.buildUpdateQuery(this.config)}toSQL(){let{typings:$,...X}=this.dialect.sqlToQuery(this.getSQL());return X}_prepare($=!0){return this.session[$?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),this.config.returning,this.config.returning?"all":"run",!0,void 0,{type:"insert",tables:u2(this.config.table)})}prepare(){return this._prepare(!1)}run=($)=>{return this._prepare().run($)};all=($)=>{return this._prepare().all($)};get=($)=>{return this._prepare().get($)};values=($)=>{return this._prepare().values($)};async execute(){return this.config.returning?this.all():this.run()}$dynamic(){return this}}});var AO=B(()=>{$O();ZO();OO();qO();RO()});var BO=()=>{};var VO=()=>{};var NO=()=>{};var wO=()=>{};var m6=B(()=>{VO();iq();HO();BO();KO();h3();aq();eq();AO();NO();J8();y3();H$();wO()});var _O;var n3=B(()=>{m6();I();_O=Q5("job_queue",{id:Y0("id").primaryKey().$defaultFn(()=>C5()),type:Y0("type").notNull(),data:Y0("data").notNull(),result:Y0("result",{mode:"json"}),source:Y0("source"),metadata:Y0("metadata",{mode:"json"}).$type().notNull(),status:Y0("status",{enum:["pending","processing","completed","failed"]}).notNull().default("pending"),priority:B1("priority").notNull().default(0),retryCount:B1("retryCount").notNull().default(0),maxRetries:B1("maxRetries").notNull().default(3),lastError:Y0("lastError"),createdAt:B1("createdAt").notNull().$defaultFn(()=>Date.now()),scheduledFor:B1("scheduledFor").notNull().$defaultFn(()=>Date.now()),startedAt:B1("startedAt"),completedAt:B1("completedAt")},($)=>({queueReadyIdx:o1("idx_job_queue_ready").on($.status,$.priority,$.scheduledFor),jobTypeIdx:o1("idx_job_queue_type").on($.type,$.status),jobSourceIdx:o1("idx_job_queue_source").on($.source)}))});import{createClient as So}from"@libsql/client";var zO=B(()=>{n3()});var DO=B(()=>{v3();P3();$2();w0();XO();Fq();X$();Oq();WO();X2();T5();E5();G2()});var PO=B(()=>{n3();e5()});var LO=B(()=>{e5()});var CO=B(()=>{I();e5();zO();PO();LO()});var TO=B(()=>{I();e5();e5()});var EO=B(()=>{e5()});var IO=B(()=>{I()});class H8{logger;schema;jobTypeName;constructor($,X){this.logger=$,this.schema=X.schema,this.jobTypeName=X.jobTypeName}validateAndParse($){if(!this.schema)throw Error(`${this.jobTypeName}: No schema provided. Override validateAndParse() or provide a schema.`);try{let X=this.schema.parse($);return this.logger.debug(`${this.jobTypeName} job data validation successful`,{data:this.summarizeDataForLog(X)}),X}catch(X){return this.logger.warn(`Invalid ${this.jobTypeName} job data`,{data:$,validationError:X instanceof K.ZodError?X.issues:X}),null}}async onError($,X,G,Y){this.logger.error(`${this.jobTypeName} job error handler triggered`,{jobId:G,errorMessage:$.message,errorStack:$.stack,data:this.summarizeDataForLog(X)})}async reportProgress($,X){await $.report({progress:X.progress,total:X.total??100,message:X.message})}summarizeDataForLog($){return $}}var jO=B(()=>{I()});var QE;var SO=B(()=>{a9();I();QE=K.object({id:K.string(),type:K.string(),data:K.string(),status:K.enum(["pending","processing","completed","failed"]),source:K.string().nullable(),priority:K.number(),retryCount:K.number(),maxRetries:K.number(),lastError:K.string().nullable(),createdAt:K.number(),scheduledFor:K.number(),startedAt:K.number().nullable(),completedAt:K.number().nullable(),metadata:a4,result:K.unknown().nullable().optional()})});function o3($,X,G){return async(Y)=>{let{type:J,data:W,toolContext:H=null,options:U}=Y,{metadata:F,...M}=U??{},Q={source:X,...U?.rootJobId&&{rootJobId:U.rootJobId},...M,metadata:{operationType:"data_processing",pluginId:X,...H&&{interfaceType:H.interfaceType,channelId:H.channelId},...F}},q=G&&!J.includes(":")?`${X}:${J}`:J;return $.enqueue({type:q,data:W,options:Q})}}function s3($,X){return async(G,Y)=>{let J=C5(),W=G.map((U)=>({...U,type:U.type.includes(":")?U.type:`${X}:${U.type}`})),H={...Y,source:X,rootJobId:J,metadata:{...Y?.metadata,operationType:"batch_processing",pluginId:X}};return await $.enqueueBatch(W,H,J,X),J}}function a3($,X){return(G,Y)=>{let J=G.includes(":")?G:`${X}:${G}`;$.registerHandler(J,Y,X)}}var kO=B(()=>{I()});var U8=B(()=>{CO();TO();EO();IO();jO();SO();e5();a9();kO()});function vO($){return qE.safeParse($).success}var qE;var t3=B(()=>{I();qE=K.object({name:K.string(),schema:K.custom(($)=>$ instanceof K.ZodType)})});function OE($){if(!$)return;return{status:$.status,message:$.message,lastCheck:$.lastCheck?.toISOString(),details:$.details}}function xO($){return{model:$.model,version:$.version,uptime:$.uptime,entities:$.entities,embeddings:$.embeddings,ai:$.ai,daemons:$.daemons.map((X)=>({name:X.name,pluginId:X.pluginId,status:X.status,health:OE(X.health)})),endpoints:$.endpoints}}var K8;var e3=B(()=>{G5();K8=K.record(K.unknown())});var ZE,$G,RE;var XG=B(()=>{G5();e3();ZE=K.object({id:K.string(),sessionId:K.string(),interfaceType:K.string(),channelId:K.string(),channelName:K.string().optional(),startedAt:K.string(),lastActiveAt:K.string(),createdAt:K.string(),updatedAt:K.string(),metadata:K8}),$G=K.enum(["user","assistant","system"]),RE=K.object({id:K.string(),conversationId:K.string(),role:$G,content:K.string(),timestamp:K.string(),metadata:K8})});function bO($){if(!$)return{};try{let X=JSON.parse($);if(X&&typeof X==="object"&&!Array.isArray(X))return X}catch{}return{}}function AE($){let X=$G.safeParse($);return X.success?X.data:"user"}function K$($){let X=bO($.metadata),G=typeof X.channelName==="string"?X.channelName:void 0;return{id:$.id,sessionId:$.sessionId,interfaceType:$.interfaceType,channelId:$.channelId,channelName:G,startedAt:$.started,lastActiveAt:$.lastActive,createdAt:$.created,updatedAt:$.updated,metadata:X}}function hO($){return{id:$.id,conversationId:$.conversationId,role:AE($.role),content:$.content,timestamp:$.timestamp,metadata:bO($.metadata)}}var yO=B(()=>{XG()});var GG,YG;var JG=B(()=>{G5();GG=K.object({name:K.string(),role:K.string(),purpose:K.string(),values:K.array(K.string())}),YG=K.object({name:K.string(),kind:K.enum(["professional","team","collective"]),organization:K.string().optional(),description:K.string().optional(),avatar:K.string().optional(),website:K.string().optional(),email:K.string().optional(),socialLinks:K.array(K.object({platform:K.enum(["github","instagram","linkedin","email","website"]),url:K.string(),label:K.string().optional()})).optional()})});function fO($){return GG.parse($)}function gO($){return YG.parse($)}var mO=B(()=>{JG()});function pO($){return async()=>{return xO(await $.getAppInfo())}}function uO($,X){return{get:()=>fO($.getIdentity()),getProfile:()=>gO($.getProfile()),getAppInfo:X}}function dO($,X,G){let Y=$.getMessageBus();return{send:async(W)=>{return Y.send({...W,sender:X})},subscribe:(W,H)=>{if(vO(W)){let U=W,F=H,M=async(Q)=>{let q=U.schema.safeParse(Q.payload);if(!q.success)return G.warn(`Invalid payload for channel ${U.name}`,{error:q.error.message}),{noop:!0};let{payload:A,...Z}=Q;return F(q.data,Z)};return Y.subscribe(U.name,M)}return Y.subscribe(W,H)}}}function lO($,X){let G=$.getJobQueueService();return{...$.jobs,enqueue:o3(G,X,!0),enqueueBatch:s3($.jobs,X),registerHandler:a3(G,X)}}function cO($){return{get:async(X)=>{let Y=await $.getConversationService().getConversation(X);return Y?K$(Y):null},search:async(X)=>{return(await $.getConversationService().searchConversations(X)).map(K$)},list:async(X)=>{return(await $.getConversationService().listConversations(X)).map(K$)},getMessages:async(X,G)=>{return(await $.getConversationService().getMessages(X,G)).map(hO)},countMessages:async(X)=>{return $.getConversationService().countMessages(X)}}}function rO($,X){return{registerHandler:(G,Y)=>{$.registerEvalHandler(X,G,Y)}}}function iO($){return{register:(X,G)=>{$.getInsightsRegistry().register(X,G)}}}function nO($,X){return{register:({label:G,url:Y,priority:J=100})=>{$.registerEndpoint({label:G,url:Y,pluginId:X,priority:J})}}}var oO=B(()=>{U8();t3();yO();mO()});function p6($,X,G){let Y=$.getEntityService(),J=$.getLogger().child(X),W=$.getDomain(),H=pO($);return{pluginId:X,logger:J,entityService:Y,identity:uO($,H),appInfo:H,domain:W,siteUrl:W?`https://${W}`:void 0,previewUrl:W?`https://${Q3(W)}`:void 0,entityDisplay:G?.entityDisplay,messaging:dO($,X,J),jobs:lO($,X),conversations:cO($),dataDir:$.getDataDir(),eval:rO($,X),insights:iO($),endpoints:nO($,X)}}var F8=B(()=>{I();oO()});var F$;var M8=B(()=>{DO();m6();F$=Q5("entities",{id:Y0("id").notNull(),entityType:Y0("entityType").notNull(),content:Y0("content").notNull(),contentHash:Y0("contentHash").notNull(),metadata:Y0("metadata",{mode:"json"}).$type().notNull().default(f6`'{}'`),created:B1("created").notNull().$defaultFn(()=>Date.now()),updated:B1("updated").notNull().$defaultFn(()=>Date.now())},($)=>{return{pk:W$({columns:[$.id,$.entityType]})}})});import{createClient as Aa}from"@libsql/client";var sO=B(()=>{M8()});var aO;var tO=B(()=>{m6();aO=G$({dataType(){return"F32_BLOB(1536)"},toDriver($){return Buffer.from($.buffer)},fromDriver($){return new Float32Array($.buffer,$.byteOffset,$.byteLength/4)}})});var M$;var Q8=B(()=>{m6();tO();M$=Q5("embeddings",{entityId:Y0("entity_id").notNull(),entityType:Y0("entity_type").notNull(),embedding:aO("embedding").notNull(),contentHash:Y0("content_hash").notNull()},($)=>{return{pk:W$({columns:[$.entityId,$.entityType]})}})});import{createClient as La}from"@libsql/client";var WG=B(()=>{Q8()});var ja;var HG=B(()=>{I();ja=K.object({id:K.string().min(1,"Entity ID is required"),entityType:K.string().min(1,"Entity type is required"),contentHash:K.string().min(1,"Content hash is required"),operation:K.enum(["create","update"])})});var xa;var eO=B(()=>{I();M8();xa=K.object({limit:K.number().int().positive().optional().default(20),offset:K.number().int().min(0).optional().default(0),types:K.array(K.string()).optional().default([]),excludeTypes:K.array(K.string()).optional().default([]),weight:K.record(K.string(),K.number()).optional()})});var $Z=B(()=>{I()});var BE,la;var XZ=B(()=>{M8();Q8();I();BE=K.object({field:K.string(),direction:K.enum(["asc","desc"]),nullsFirst:K.boolean().optional()}),la=K.object({limit:K.number().int().positive().optional(),offset:K.number().int().min(0).optional().default(0),sortFields:K.array(BE).optional(),filter:K.object({metadata:K.record(K.string(),K.unknown()).optional()}).optional(),publishedOnly:K.boolean().optional()})});var GZ=()=>{};var YZ=B(()=>{I();GZ();M8();Q8()});var JZ=B(()=>{I()});var WZ=B(()=>{sO();WG();Q8();I();HG();eO();$Z();XZ();YZ();JZ()});function W2($,X){if(Object.keys(X).length===0)return $;let G=Object.fromEntries(Object.entries(X).filter(([,Y])=>Y!==void 0));return Q$.default.stringify($,G)}function UG($){if($ instanceof Date)return $.toISOString();if(Array.isArray($))return $.map(UG);if($!==null&&typeof $==="object"){let X={};for(let[G,Y]of Object.entries($))X[G]=UG(Y);return X}return $}function I0($,X){let{content:G,data:Y}=Q$.default($),J=UG(Y);return{content:G.trim(),metadata:X.parse(J)}}function KG($){if(Object.keys($).length===0)return"";let G=Q$.default.stringify("",$).match(/^---\n[\s\S]*?\n---/);return G?G[0]:""}var Q$;var q$=B(()=>{Q$=x8(C7(),1)});var HZ=B(()=>{I();q$()});class V1{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??CE,$.isSingleton!==void 0)this.isSingleton=$.isSingleton;if($.hasBody!==void 0)this.hasBody=$.hasBody;if($.supportsCoverImage!==void 0)this.supportsCoverImage=$.supportsCoverImage}toMarkdown($){let X=this.renderBody($),Y={...this.readExistingFrontmatter($.content)},J=Object.keys(this.frontmatterSchema.shape);for(let[W,H]of Object.entries($.metadata))if(J.includes(W))Y[W]=H;return this.buildMarkdown(X,Y)}renderBody($){return this.extractBody($.content)}readExistingFrontmatter($){try{return I0($,K.record(K.unknown())).metadata}catch{return{}}}extractMetadata($){return $.metadata}parseFrontMatter($,X){return I0($,X).metadata}getBodyTemplate(){return this.bodyFormatter.generateBodyTemplate()}generateFrontMatter($){let X=$.metadata;return KG(X)}extractBody($){try{return I0($,K.record(K.unknown())).content}catch{return $}}parseFrontmatter($){return I0($,this.fmSchema).metadata}buildMarkdown($,X){return W2($,X)}}var CE;var FG=B(()=>{I();q$();CE={generateBodyTemplate:()=>""}});var N1;var MG=B(()=>{I();N1=K.object({id:K.string(),entityType:K.string(),content:K.string(),created:K.string().datetime(),updated:K.string().datetime(),metadata:K.record(K.string(),K.unknown()),contentHash:K.string()})});var UZ=B(()=>{I();MG();FG()});var KZ=B(()=>{FG();UZ()});class u6{cache=null;cacheParseError=null;logger;entityService;entityType;defaultBody;constructor($,X,G,Y){this.entityService=$,this.logger=X.child(this.constructor.name),this.entityType=G,this.defaultBody=Y}async initialize(){if(await this.load())return;if(await this.load())return;this.logger.info(`No ${this.entityType} found, creating default ${this.entityType}`);try{let $=this.createContent(this.defaultBody);await this.entityService.createEntity({entity:{id:this.entityType,entityType:this.entityType,content:$,metadata:{}}}),await this.load(),this.logger.info(`Default ${this.entityType} created successfully`)}catch($){this.logger.error(`Failed to create default ${this.entityType}`,{error:$})}}get(){if(this.cache&&!this.cacheParseError)return this.parseBody(this.cache.content);return this.defaultBody}getContent(){if(this.cache)return this.cache.content;return this.createContent(this.defaultBody)}async refreshCache(){await this.load()}async load(){try{let $=await this.entityService.getEntity({entityType:this.entityType,id:this.entityType});if(this.cache=$,this.cacheParseError=null,$)try{return this.parseBody($.content),this.logger.debug(`${this.entityType} loaded`),!0}catch(X){return this.cacheParseError=X instanceof Error?X:Error(String(X)),this.logger.error(`Failed to parse ${this.entityType} \u2014 using default. Fix the entity content to clear this error.`,{error:this.cacheParseError.message}),!0}else this.logger.debug(`No ${this.entityType} found in database`)}catch($){this.logger.warn(`Failed to load ${this.entityType}`,{error:$}),this.cache=null,this.cacheParseError=null}return!1}}function QG($,X,G){let Y=Math.max(1,Math.ceil($/G));return{currentPage:X,totalPages:Y,totalItems:$,pageSize:G,hasNextPage:X<Y,hasPrevPage:X>1}}var O$;var FZ=B(()=>{I();O$=K.object({currentPage:K.number(),totalPages:K.number(),totalItems:K.number(),pageSize:K.number(),hasNextPage:K.boolean(),hasPrevPage:K.boolean()})});var v1=B(()=>{WZ();HG();HZ();KZ();WG();MG();q$();FZ()});function EE($){return $.replace(/:/g,"-")}function IE($){return $.split(/[:.-]/).map((X)=>X.charAt(0).toUpperCase()+X.slice(1)).join(" ")}async function OG($,X,G){let Y=qG.get(X);if(Y!==void 0)return Y;let J=EE(X),W;try{W=await $.getEntity({entityType:"prompt",id:J})}catch{return G}if(W?.content){let H=I0(W.content,K.record(K.unknown())).content;return qG.set(X,H),H}try{let H=IE(X),U=W2(G,{title:H,target:X});await $.createEntity({entity:{id:J,entityType:"prompt",content:U,metadata:{title:H,target:X,slug:J}}})}catch{}return qG.set(X,G),G}var qG;var ZG=B(()=>{v1();I();qG=new Map});function Z$($){let X=$.getEntityService(),G=$.getEntityRegistry(),Y=$.getDataSourceRegistry();return{register:(J,W,H,U)=>{G.registerEntityType(J,W,H,U)},getAdapter:(J)=>{try{return G.getAdapter(J)}catch{return}},extendFrontmatterSchema:(J,W)=>{G.extendFrontmatterSchema(J,W)},getEffectiveFrontmatterSchema:(J)=>{return G.getEffectiveFrontmatterSchema(J)},registerCreateInterceptor:(J,W)=>{G.registerCreateInterceptor(J,W)},update:async(J)=>{return X.updateEntity({entity:J})},registerDataSource:(J)=>{Y.register(J)}}}function R$($){return{resolve:(X,G)=>{return OG($,X,G)}}}var RG=B(()=>{ZG()});function AG($,X,G){let Y=p6($,X,G),J=$.getEntityService(),W=$.getRenderService(),H=$.getContentService();return{...Y,entityService:J,entities:Z$($),templates:{register:(U,F)=>{$.registerTemplates(U,F??X)},format:(U,F)=>{return H.formatContent(U,F,{pluginId:X})},parse:(U,F)=>{return H.parseContent(U,F,X)},resolve:async(U,F)=>{return await H.resolveContent(U,F,X)},getCapabilities:(U)=>{let F=U.includes(":")?U:`${X}:${U}`,M=$.getTemplate(F);if(!M)return null;let Q=s4.getCapabilities(M);return{canGenerate:Q.canGenerate,canFetch:Q.canFetch,canRender:Q.canRender,isStaticOnly:Q.isStaticOnly}}},views:{get:(U)=>{return W.get(U)??void 0},list:()=>{return W.list()},hasRenderer:(U)=>{return W.hasRenderer(U,"web")},getRenderer:(U)=>{return W.getRenderer(U,"web")},validate:(U,F)=>{return W.validate(U,F)}},prompts:R$(J),registerInstructions:(U)=>{$.registerInstructions(X,U)}}}var BG=B(()=>{F8();RG();U5()});var d6;var MZ=B(()=>{s9();BG();d6=class d6 extends y6{type="service";getApiRoutes(){return[]}getWebRoutes(){return[]}async register($,X){let G=AG($,this.id,X);return this.context=G,this.setupMessageHandlers(G),await this.onRegister(G),this.getCapabilities()}get entityService(){return this.getContext().entityService}registerEntityType($,X,G,Y){this.getContext().entities.register($,X,G,Y)}async enqueueJob($){return this.getContext().jobs.enqueue($)}async enqueueBatch($,X){return this.getContext().jobs.enqueueBatch($,X)}async registerEntityTypes($){}async registerJobHandlers($){}async onRegister($){await this.registerEntityTypes($),await this.registerJobHandlers($)}}});function VG($,X,G){let Y=p6($,X,G),J=$.getEntityService();return{...Y,entityService:J,entities:Z$($),ai:{query:(W,H)=>$.query(W,H),generate:async(W)=>{return $.generateContent(W)},generateObject:async(W,H)=>{return $.generateObject(W,H)},generateImage:async(W,H)=>{return $.generateImage(W,H)},canGenerateImages:()=>{return $.canGenerateImages()}},prompts:R$(J)}}var NG=B(()=>{F8();RG()});function wG($,X,G){let Y=!1,J=!1;if($.jobs.registerHandler(G.job.type,G.job.handler),G.initialSync){let W=G.initialSync;$.messaging.subscribe("sync:initial:completed",async()=>{if(Y)return{success:!0};if(Y=!0,!(await W.shouldEnqueue?.()??!0))return X.info("Skipping derived entity projection initial sync",{projectionId:G.id,targetType:G.targetType}),{success:!0};return J=await QZ($,X,G,W.jobData,SE(W.jobOptions),"initial-sync"),{success:!0}})}if(G.sourceChange){let W=G.sourceChange,H=new Set(W.sourceTypes),U=W.events??["entity:created","entity:updated"],F=async(M)=>{if(W.requireInitialSync&&!Y)return{success:!0};let Q=M.payload,q=jE(W,Q);if(!q||!H.has("*")&&!H.has(q))return{success:!0};if(!(await W.shouldEnqueue?.(Q)??!0))return{success:!0};let Z=await W.jobData(Q);if(!Z)return{success:!0};return await QZ($,X,G,Z,W.jobOptions?.(Q),"source-change"),{success:!0}};for(let M of U)$.messaging.subscribe(M,F)}return{hasObservedInitialSync:()=>Y,hasQueuedInitialSync:()=>J}}function jE($,X){if($.sourceType)return $.sourceType;if($.sourceKind&&$.sourceKind!=="entity")return $.sourceKind;return X.entityType}async function QZ($,X,G,Y,J,W){try{return await $.jobs.enqueue({type:G.job.type,data:Y,...J?{options:J}:{}}),X.info("Queued derived entity projection",{projectionId:G.id,targetType:G.targetType,reason:W}),!0}catch(H){return X.error("Failed to queue derived entity projection",{projectionId:G.id,targetType:G.targetType,reason:W,error:S0(H)}),!1}}function SE($){return typeof $==="function"?$():$}var _G=B(()=>{I()});var kE,H2;var qZ=B(()=>{s9();I();NG();_G();kE=K.object({});H2=class H2 extends y6{type="entity";derivedEntityProjectionControllers=new Map;constructor($,X,G={},Y=kE){super($,X,G,Y)}async register($,X){let G=VG($,this.id,X);if(this.context=G,this.setupMessageHandlers(G),G.entities.register(this.entityType,this.schema,this.adapter,this.getEntityTypeConfig()),this.interceptCreate!==H2.prototype.interceptCreate)G.entities.registerCreateInterceptor(this.entityType,(F,M)=>this.interceptCreate(F,M,G));let Y=this.createGenerationHandler(G);if(Y)G.jobs.registerHandler(`${this.entityType}:generation`,Y);let J=this.getTemplates();if(J&&Object.keys(J).length>0)$.registerTemplates(J,this.id);let W=this.getDataSources();for(let F of W)G.entities.registerDataSource(F);let H=this.getDerivedEntityProjections(G);for(let F of H){let M=wG(G,this.logger,F);this.derivedEntityProjectionControllers.set(F.id,M)}await this.onRegister(this.context);let U=await this.getInstructions();return{tools:[],resources:[],...U&&{instructions:U}}}async interceptCreate($,X,G){return{kind:"continue",input:$}}createGenerationHandler($){return null}getTemplates(){return null}getDataSources(){return[]}getEntityTypeConfig(){return}getDerivedEntityProjections($){return[]}getDerivedEntityProjectionController($){return this.derivedEntityProjectionControllers.get($)}}});var zG=B(()=>{F8()});var DG=B(()=>{s9();zG()});var OZ=()=>{};class l6{logger;constructor($){this.logger=$}buildDetailResult($,X){throw Error(`${this.id}: buildDetailResult() not implemented. Override this method or override fetch() to handle detail views.`)}parseQuery($){let X=B$.parse($);return{entityType:X.entityType??this.config.entityType,query:X.query??{}}}async fetch($,X,G){let Y=this.parseQuery($),J=G.entityService;if(Y.query.id){let H=await this.fetchDetail(Y.query.id,J);return X.parse(this.buildDetailResult(H.item,H.navigation))}let W=await this.fetchList(Y.query,J);return X.parse(this.buildListResult(W.items,W.pagination,Y.query))}async fetchDetail($,X){let G=await this.lookupEntity($,X),Y=this.transformEntity(G),J=null;if(this.config.enableNavigation)J=await this.resolveNavigation(G,X);return{item:Y,navigation:J}}async fetchList($,X,G){let Y=$.page??1,J=$.pageSize??$.limit??this.config.defaultLimit??100,W=(Y-1)*J,H=$.page!==void 0,[U,F]=await Promise.all([X.listEntities({entityType:this.config.entityType,options:{limit:J,offset:W,sortFields:this.config.defaultSort,...G}}),H?X.countEntities({entityType:this.config.entityType,options:G?.filter?{filter:G.filter}:void 0}):Promise.resolve(0)]),M=U.map((q)=>this.transformEntity(q)),Q=H?QG(F,Y,J):null;return{items:M,pagination:Q}}async resolveNavigation($,X,G){let Y=this.config.navigationLimit??1000,J=await X.listEntities({entityType:this.config.entityType,options:{limit:Y,sortFields:G??this.config.defaultSort}}),W=J.findIndex((Q)=>Q.id===$.id),H=W>0?J[W-1]:void 0,U=W<J.length-1?J[W+1]:void 0,F=H?this.transformEntity(H):null,M=U?this.transformEntity(U):null;return{prev:F,next:M}}async lookupEntity($,X){if(this.config.lookupField==="id"){let J=await X.getEntity({entityType:this.config.entityType,id:$});if(!J)throw Error(`${this.config.entityType} not found: ${$}`);return J}let Y=(await X.listEntities({entityType:this.config.entityType,options:{filter:{metadata:{slug:$}},limit:1}}))[0];if(!Y)throw Error(`${this.config.entityType} not found with slug: ${$}`);return Y}}var A$,B$;var ZZ=B(()=>{v1();I();A$=K.object({id:K.string().optional(),limit:K.number().optional(),page:K.number().optional(),pageSize:K.number().optional(),baseUrl:K.string().optional()}).passthrough(),B$=K.object({entityType:K.string().optional(),query:A$.optional()}).passthrough()});var c6,PG;var RZ=B(()=>{U8();I();c6=class c6 extends H8{context;entityType;constructor($,X,G){super($,{schema:G.schema,jobTypeName:G.jobTypeName});this.context=X,this.entityType=G.entityType}async afterCreate($,X,G,Y){}async onGenerationFailure($,X){}async process($,X,G){try{await this.reportProgress(G,{progress:i4.START,message:`Starting ${this.jobTypeName}`});let Y=await this.generate($,G);await this.reportProgress(G,{progress:i4.SAVE,message:`Saving ${this.entityType} to database`});let J=await this.context.entityService.createEntity({entity:{id:Y.id,entityType:this.entityType,content:Y.content,metadata:Y.metadata},options:Y.createOptions});return await this.afterCreate($,J.entityId,G,Y),await this.reportProgress(G,{progress:i4.COMPLETE,message:`${Y.title??this.entityType} created successfully`}),{success:!0,entityId:J.entityId,...Y.resultExtras}}catch(Y){if(Y instanceof PG)return await this.onGenerationFailure($,Y.message),{success:!1,error:Y.message};let J=S0(Y);return this.logger.error(`${this.jobTypeName} job failed`,{error:Y,jobId:X,data:this.summarizeDataForLog($)}),await this.onGenerationFailure($,J),O3.failure(Y)}}failEarly($){throw new PG($)}};PG=class PG extends Error{constructor($){super($);this.name="GenerationFailure"}}});var xE,AZ,BZ,bE;var VZ=B(()=>{G5();xE=K.object({userPermissionLevel:K.enum(["public","trusted","anchor"]).optional(),interfaceType:K.string().optional(),channelId:K.string().optional(),channelName:K.string().optional()}),AZ=K.object({toolName:K.string(),description:K.string(),args:K.unknown()}),BZ=K.object({toolName:K.string(),args:K.record(K.unknown()).optional(),jobId:K.string().optional(),data:K.unknown().optional()}),bE=K.object({text:K.string(),toolResults:K.array(BZ).optional(),pendingConfirmation:AZ.optional(),usage:K.object({promptTokens:K.number(),completionTokens:K.number(),totalTokens:K.number()})})});var hE,yE,fE,gE;var NZ=B(()=>{G5();hE=K.object({label:K.string(),url:K.string(),pluginId:K.string(),priority:K.number()}),yE=K.object({status:K.enum(["healthy","warning","error","unknown"]),message:K.string().optional(),lastCheck:K.string().optional(),details:K.record(K.unknown()).optional()}),fE=K.object({name:K.string(),pluginId:K.string(),status:K.string(),health:yE.optional()}),gE=K.object({model:K.string(),version:K.string(),uptime:K.number(),entities:K.number(),embeddings:K.number(),ai:K.object({model:K.string(),embeddingModel:K.string()}),daemons:K.array(fE),endpoints:K.array(hE)})});var mE,pE;var wZ=B(()=>{G5();e3();mE=K.union([K.object({success:K.boolean(),data:K.unknown().optional(),error:K.string().optional()}),K.object({noop:K.literal(!0)})]),pE=K.object({id:K.string(),timestamp:K.string(),type:K.string(),source:K.string(),target:K.string().optional(),metadata:K8.optional()})});var V$,_Z,zZ;var LG=B(()=>{m6();V$=Q5("conversations",{id:Y0("id").primaryKey(),sessionId:Y0("session_id").notNull(),interfaceType:Y0("interface_type").notNull(),channelId:Y0("channel_id").notNull(),started:Y0("started").notNull(),lastActive:Y0("last_active").notNull(),metadata:Y0("metadata"),created:Y0("created").notNull(),updated:Y0("updated").notNull()},($)=>({sessionIdx:o1("idx_conversations_session").on($.sessionId),channelIdx:o1("idx_conversations_channel").on($.channelId),interfaceSessionIdx:o1("idx_conversations_interface_session").on($.interfaceType,$.sessionId),interfaceChannelIdx:o1("idx_conversations_interface_channel").on($.interfaceType,$.channelId)})),_Z=Q5("messages",{id:Y0("id").primaryKey(),conversationId:Y0("conversation_id").notNull().references(()=>V$.id,{onDelete:"cascade"}),role:Y0("role").notNull(),content:Y0("content").notNull(),timestamp:Y0("timestamp").notNull(),metadata:Y0("metadata")},($)=>({conversationIdx:o1("idx_messages_conversation").on($.conversationId),timestampIdx:o1("idx_messages_timestamp").on($.timestamp)})),zZ=Q5("summary_tracking",{conversationId:Y0("conversation_id").primaryKey().references(()=>V$.id,{onDelete:"cascade"}),lastSummarizedAt:Y0("last_summarized_at"),lastMessageId:Y0("last_message_id"),messagesSinceSummary:B1("messages_since_summary").default(0),updated:Y0("updated").notNull()})});import{createClient as G00}from"@libsql/client";var DZ=B(()=>{LG()});var uE,PZ;var CG=B(()=>{I();uE=K.object({id:K.string(),conversationId:K.string(),role:K.string(),content:K.string(),timestamp:K.string(),metadata:K.string().nullable()}),PZ=K.object({conversationId:K.string(),messageCount:K.number(),messages:K.array(uE),windowStart:K.number(),windowEnd:K.number(),windowSize:K.number(),timestamp:K.string()})});var LZ=B(()=>{DZ();CG();LG();I()});var CZ=B(()=>{LZ();CG()});var TG=B(()=>{U8()});var cE,EG;var TZ=B(()=>{I();cE=["meet.google.com","zoom.us","teams.microsoft.com","whereby.com","gather.town","calendly.com","cal.com","discord.com","discord.gg","cdn.discordapp.com","media.discordapp.net","giphy.com","tenor.com","wetransfer.com","file.io"],EG=K.object({captureUrls:K.boolean().default(!1),blockedUrlDomains:K.array(K.string()).default(cE)})});var EZ=B(()=>{DG();TG();TZ()});var IZ=()=>{};var jZ=B(()=>{EZ();TG();IZ()});async function q8($){let{entityType:X,title:G,deriveId:Y,regeneratePrompt:J,context:W}=$,H=Y(G);if(!await W.entityService.getEntity({entityType:X,id:H}))return G;W.logger.debug(`Entity ID collision: ${X}/${H}, asking AI for a new title`);let F=K.object({title:K.string().max(80).describe("A short, unique title (2-6 words)")}),{object:M}=await W.ai.generateObject(`The title "${G}" is already taken. ${J}`,F),Q=M.title;return W.logger.debug(`AI suggested new title: "${Q}"`),Q}var SZ=B(()=>{I()});var eE,kZ,$I,vZ,XI,GI,YI,JI;var xZ=B(()=>{I();eE=K.object({id:K.string(),template:K.string(),content:K.unknown().optional(),dataQuery:K.object({entityType:K.string().optional(),template:K.string().optional(),query:K.object({id:K.string().optional(),limit:K.number().optional(),offset:K.number().optional()}).passthrough().optional()}).passthrough().optional(),order:K.number().optional()}),kZ=["primary","secondary"],$I=K.object({show:K.boolean().default(!1),label:K.string().optional(),slot:K.enum(kZ).default("primary"),priority:K.number().min(0).max(100).default(50)}).optional(),vZ=K.object({id:K.string(),path:K.string(),title:K.string().default(""),description:K.string().default(""),sections:K.array(eE).default([]),layout:K.string().default("default"),fullscreen:K.boolean().optional(),pluginId:K.string().optional(),sourceEntityType:K.string().optional(),external:K.boolean().optional(),navigation:$I}),XI=K.object({routes:K.array(vZ),pluginId:K.string()}),GI=K.object({paths:K.array(K.string()).optional(),pluginId:K.string().optional()}),YI=K.object({pluginId:K.string().optional()}),JI=K.object({path:K.string()})});var WI;var bZ=B(()=>{I();WI=K.object({enabled:K.boolean().describe("Whether the plugin is enabled"),debug:K.boolean().describe("Enable debug logging for this plugin")})});var IG,N$;var jG=B(()=>{I();v1();IG=N1.extend({id:K.literal("brain-character"),entityType:K.literal("brain-character")}),N$=K.object({name:K.string().describe("The brain's friendly display name"),role:K.string().describe("The brain's primary role"),purpose:K.string().describe("The brain's purpose and goals"),values:K.array(K.string()).describe("Core values that guide behavior")})});var w$;var SG=B(()=>{v1();jG();w$=class w$ extends V1{constructor(){super({entityType:"brain-character",schema:IG,frontmatterSchema:N$,isSingleton:!0,hasBody:!1})}createCharacterContent($){return this.buildMarkdown("",$)}parseCharacterBody($){return this.parseFrontmatter($)}toMarkdown($){let X=this.parseFrontmatter($.content);return this.buildMarkdown("",X)}fromMarkdown($){return{content:$,entityType:"brain-character"}}extractMetadata($){let X=this.parseFrontmatter($.content);return{role:X.role,values:X.values}}generateFrontMatter($){let X=this.parseFrontmatter($.content);return this.buildMarkdown("",X)}}});var U2;var hZ=B(()=>{v1();SG();U2=class U2 extends u6{static instance=null;adapter=new w$;static getDefaultCharacter(){return{name:"Brain",role:"Knowledge assistant",purpose:"Help organize, understand, and retrieve information from your knowledge base",values:["clarity","accuracy","helpfulness"]}}static getInstance($,X,G){return U2.instance??=new U2($,X,G),U2.instance}static resetInstance(){U2.instance=null}static createFresh($,X,G){return new U2($,X,G)}constructor($,X,G){super($,X,"brain-character",G??U2.getDefaultCharacter())}parseBody($){return this.adapter.parseCharacterBody($)}createContent($){return this.adapter.createCharacterContent($)}getCharacter(){return this.get()}getCharacterContent(){return this.getContent()}}});async function q5($){let G=(await $.listEntities({entityType:"anchor-profile",options:{limit:1}}))[0];if(!G)throw Error("Profile not found \u2014 create an anchor-profile entity");return G.content}var r6;var yZ=B(()=>{I();r6=K.object({tagline:K.string().optional().describe("Short, punchy one-liner for homepage"),intro:K.string().optional().describe("Optional longer introduction for homepage"),story:K.string().optional().describe("Extended bio/narrative (multi-paragraph markdown)")})});var kG,O5;var vG=B(()=>{I();v1();kG=N1.extend({id:K.literal("anchor-profile"),entityType:K.literal("anchor-profile")}),O5=K.object({name:K.string().describe("Name (person or organization)"),kind:K.enum(["professional","team","collective"]).describe("Type of anchor: professional (individual), team, or collective"),organization:K.string().optional().describe("Organization the anchor belongs to"),description:K.string().optional().describe("Short description or biography"),avatar:K.string().optional().describe("URL or asset path to avatar/logo"),website:K.string().optional().describe("Primary website URL"),email:K.string().optional().describe("Contact email"),socialLinks:K.array(K.object({platform:K.enum(["github","instagram","linkedin","email","website"]).describe("Social media platform"),url:K.string().describe("Profile or contact URL"),label:K.string().optional().describe("Optional display label")})).optional().describe("Social media and contact links")})});var m1;var xG=B(()=>{v1();vG();m1=class m1 extends V1{constructor(){super({entityType:"anchor-profile",schema:kG,frontmatterSchema:O5,isSingleton:!0,hasBody:!0})}createProfileContent($){let X=O5.parse($);return this.buildMarkdown("",X)}parseProfileBody($,X){if(X){let{metadata:G,content:Y}=I0($,X);return Y?{...G,story:Y}:G}return this.parseFrontmatter($)}fromMarkdown($){return{content:$,entityType:"anchor-profile"}}extractMetadata($){let X=this.parseFrontmatter($.content);return{name:X.name,email:X.email,website:X.website}}generateFrontMatter($){let X=this.parseFrontmatter($.content);return this.buildMarkdown("",X)}}});var I5;var fZ=B(()=>{v1();xG();I5=class I5 extends u6{static instance=null;adapter=new m1;static getDefaultProfile(){return{name:"Unknown",kind:"professional"}}static getInstance($,X,G){return I5.instance??=new I5($,X,G),I5.instance}static resetInstance(){I5.instance=null}static createFresh($,X,G){return new I5($,X,G)}constructor($,X,G){super($,X,"anchor-profile",G??I5.getDefaultProfile())}parseBody($){return this.adapter.parseProfileBody($)}createContent($){return this.adapter.createProfileContent($)}getProfile(){return this.get()}getProfileContent(){return this.getContent()}}});var d2=B(()=>{hZ();SG();jG();yZ();fZ();xG();vG()});var gZ,HI,UI,KI;var mZ=B(()=>{I();d2();gZ=K.object({id:K.string(),description:K.string(),name:K.string().optional(),tags:K.array(K.string()).optional().default([])}).passthrough(),HI=K.object({uri:K.string(),params:K.record(K.unknown()).optional()}).passthrough(),UI=K.object({name:K.string(),url:K.string(),description:K.string().optional(),skills:K.array(gZ).optional().default([]),capabilities:K.object({extensions:K.array(HI).optional().default([])}).passthrough().optional()}).passthrough(),KI=K.object({name:K.string(),description:K.string(),tags:K.array(K.string()),examples:K.array(K.string())})});var i6=()=>{};var s1;var O8=B(()=>{s1=class s1 extends Error{pluginId;constructor($,X){super(`Plugin ${$}: ${X}`);this.name="PluginError",this.pluginId=$}}});class bG{plugins;events;daemonRegistry;logger;constructor($,X,G,Y){this.plugins=$;this.events=X;this.daemonRegistry=G;this.logger=Y.child("PluginLifecycle")}async initializePlugin($,X,G){let Y=this.plugins.get($);if(!Y)throw new s1($,"Registration failed: Plugin is not registered");let J=Y.plugin;this.logger.debug(`Initializing plugin: ${$}`),this.events.emit("plugin:before_initialize",$,J);try{let W=await J.register(X,G);return Y.status="initialized",this.logger.debug(`Initialized plugin: ${$}`),this.events.emit("plugin:initialized",$,J),W}catch(W){let H=S0(W);throw this.logger.error(`Error initializing plugin ${$}: ${H}`),Y.status="error",Y.error=n4(W),this.events.emit("plugin:error",$,W),W}}async readyPlugin($){let X=this.plugins.get($);if(!X)throw new s1($,"Ready failed: Plugin is not registered");if(X.status!=="initialized"){this.logger.debug(`Skipping ready hook for non-initialized plugin: ${$}`);return}try{await X.plugin.ready?.(),this.logger.debug(`Ready hook completed for plugin: ${$}`)}catch(G){let Y=n4(G);throw X.status="error",X.error=Y,this.events.emit("plugin:error",$,Y),Y}}async startPluginDaemons($){let X=this.plugins.get($);if(X?.status!=="initialized")return;try{await this.daemonRegistry.startPlugin($),this.logger.debug(`Started daemons for plugin: ${$}`)}catch(G){if(X.plugin.requiresDaemonStartup?.())throw G;this.logger.warn(`Daemon ${$} failed to start: ${S0(G)}`)}}async disablePlugin($){let X=this.plugins.get($);if(!X){this.logger.warn(`Cannot disable plugin ${$}: not registered`);return}this.logger.debug(`Disabling plugin: ${$}`);try{await this.daemonRegistry.stopPlugin($),this.logger.debug(`Stopped daemons for plugin: ${$}`)}catch(G){this.logger.error(`Failed to stop daemons for plugin: ${$}`,G)}if(X.plugin.shutdown)try{await X.plugin.shutdown(),this.logger.debug(`Shutdown completed for plugin: ${$}`)}catch(G){this.logger.error(`Plugin shutdown failed for ${$}:`,G)}X.status="disabled",this.events.emit("plugin:disabled",$,X.plugin),this.logger.debug(`Disabled plugin: ${$}`)}async enablePlugin($){let X=this.plugins.get($);if(!X){this.logger.warn(`Cannot enable plugin ${$}: not registered`);return}if(X.status!=="disabled"){this.logger.warn(`Cannot enable plugin ${$}: not disabled`);return}this.logger.debug(`Enabling plugin: ${$}`),X.status="initialized";try{await this.daemonRegistry.startPlugin($),this.logger.debug(`Started daemons for plugin: ${$}`)}catch(G){this.logger.error(`Failed to start daemons for plugin: ${$}`,G)}this.events.emit("plugin:enabled",$,X.plugin),this.logger.debug(`Enabled plugin: ${$}`)}}var pZ=B(()=>{I();i6();O8()});class hG{plugins;events;logger;constructor($,X,G){this.plugins=$;this.events=X;this.logger=G.child("DependencyResolver")}async resolveInitializationOrder($){this.logger.debug("Resolving plugin initialization order...");let X=Array.from(this.plugins.keys()),G=new Set,Y=!0;while(Y&&G.size<X.length){Y=!1;for(let H of X){if(G.has(H))continue;if(!this.plugins.get(H))continue;if(this.getUnmetDependencies(H).length===0)try{await $(H),G.add(H),Y=!0}catch(M){let Q=S0(M);this.logger.error(`Failed to initialize plugin ${H}: ${Q}`),G.add(H),Y=!0}}}let J=X.filter((H)=>!G.has(H));if(J.length>0){let H=J.join(", ");this.logger.error(`Failed to initialize plugins due to dependency issues: ${H}`);for(let U of J){let F=this.getUnmetDependencies(U);this.logger.error(`Plugin ${U} has unmet dependencies: ${F.join(", ")}`);let M=this.plugins.get(U);if(M)M.status="error",M.error=new s1(U,`Unmet dependencies: ${F.join(", ")}`);this.events.emit("plugin:error",U,M?.error)}}let W=new Set;for(let[H,U]of this.plugins)if(U.status==="initialized")W.add(H);return this.logger.debug(`Resolved ${W.size} of ${X.length} plugins`),{initialized:W,failed:J}}getUnmetDependencies($){let X=this.plugins.get($);if(!X)return[];let{dependencies:G}=X,Y=[];for(let J of G){let W=this.plugins.get(J);if(!W){Y.push(J);continue}if(W.status!=="initialized")Y.push(J)}return Y}}var uZ=B(()=>{I();i6();O8()});class yG{logger;constructor($){this.logger=$.child("CapabilityRegistrar")}async registerCapabilities($,X,G){if(G.tools.length>0)$.registerTools(X,G.tools),this.logger.debug(`Registered ${G.tools.length} tools from ${X}`);if(G.resources.length>0)$.registerResources(X,G.resources),this.logger.debug(`Registered ${G.resources.length} resources from ${X}`);if(G.instructions)$.registerInstructions(X,G.instructions),this.logger.debug(`Registered instructions from ${X}`)}}import{EventEmitter as dZ}from"events";class K2{static instance=null;plugins=new Map;logger;events=new dZ;daemonRegistry;shell=null;initializedPluginIds=[];pluginLifecycle;dependencyResolver;capabilityRegistrar;static getInstance($,X){return K2.instance??=new K2($,X),K2.instance}static resetInstance(){K2.instance=null}static createFresh($,X){return new K2($,X)}setShell($){this.shell=$}constructor($,X){this.logger=$.child("PluginManager"),this.events=new dZ,this.daemonRegistry=X,this.pluginLifecycle=new bG(this.plugins,this.events,this.daemonRegistry,$),this.dependencyResolver=new hG(this.plugins,this.events,$),this.capabilityRegistrar=new yG($)}registerPlugin($){if(!$.id)throw new s1("unknown","Registration failed: Plugin must have an id");if(this.logger.debug(`Registering plugin: ${$.id} (${$.version})`),this.plugins.has($.id)){let J=this.plugins.get($.id)?.plugin.version;throw new s1($.id,`Registration failed: Plugin is already registered with version ${J}`)}let X=$.dependencies??[],G={plugin:$,status:"registered",dependencies:X};this.plugins.set($.id,G),this.logger.debug(`Registered plugin: ${$.id} (${$.version})`),this.events.emit("plugin:registered",$.id,$)}async initializePlugins($){this.logger.debug("Initializing plugins..."),this.initializedPluginIds=[];let X=await this.dependencyResolver.resolveInitializationOrder(async(G)=>{await this.initializePlugin(G,$)});this.logger.debug(`Initialized ${X.initialized.size} of ${this.plugins.size} plugins`)}async initializePlugin($,X){if(!this.shell)throw new s1($,"Cannot initialize plugin: Shell not set. Call setShell() first.");let G=this.shell,Y=await this.pluginLifecycle.initializePlugin($,G,X);await this.capabilityRegistrar.registerCapabilities(G,$,Y),this.initializedPluginIds.push($)}async readyPlugins(){this.logger.debug("Dispatching plugin ready hooks..."),await Promise.all(this.initializedPluginIds.map(($)=>this.pluginLifecycle.readyPlugin($)))}async startPluginDaemons(){this.logger.debug("Starting plugin daemons..."),await Promise.all(this.initializedPluginIds.map(($)=>this.pluginLifecycle.startPluginDaemons($)))}getPlugin($){return this.plugins.get($)?.plugin}getPluginStatus($){return this.plugins.get($)?.status}hasPlugin($){return this.plugins.has($)}isPluginInitialized($){return this.plugins.get($)?.status==="initialized"}getAllPluginIds(){return Array.from(this.plugins.keys())}getAllPlugins(){return new Map(this.plugins)}getFailedPlugins(){return Array.from(this.plugins.entries()).filter(($)=>$[1].status==="error"&&$[1].error!==void 0).map(([$,X])=>({id:$,error:X.error}))}getPluginPackageName($){return this.plugins.get($)?.plugin.packageName}async disablePlugin($){await this.pluginLifecycle.disablePlugin($)}async enablePlugin($){await this.pluginLifecycle.enablePlugin($)}on($,X){this.events.on($,X)}once($,X){this.events.once($,X)}off($,X){this.events.off($,X)}getEventEmitter(){return this.events}}var lZ=B(()=>{i6();O8();pZ();uZ();i6()});var cZ=B(()=>{lZ();i6()});var Q0=B(()=>{MZ();qZ();_G();NG();ZG();DG();OZ();t3();BG();F8();zG();w3();v1();ZZ();v1();U8();RZ();U5();VZ();NZ();XG();JG();wZ();CZ();jZ();N3();SZ();I();xZ();bZ();d2();mZ();cZ();O8()});var FI,Q1,MI,n6,Z8,a1,R8;var Z5=B(()=>{I();Q0();FI=K.enum(["draft","queued","published"]),Q1=K.object({title:K.string(),slug:K.string().optional(),status:FI,publishedAt:K.string().datetime().optional(),excerpt:K.string(),author:K.string(),coverImageId:K.string().optional(),seriesName:K.string().optional(),seriesIndex:K.number().optional(),ogImage:K.string().url().optional(),ogDescription:K.string().optional(),twitterCard:K.enum(["summary","summary_large_image"]).optional(),canonicalUrl:K.string().url().optional()}),MI=Q1.pick({title:!0,status:!0,publishedAt:!0,seriesName:!0,seriesIndex:!0}).extend({slug:K.string()}),n6=N1.extend({entityType:K.literal("post"),metadata:MI}),Z8=n6.extend({frontmatter:Q1,body:K.string(),coverImageUrl:K.string().optional()}),a1=Z8.extend({url:K.string().optional(),typeLabel:K.string().optional(),listUrl:K.string().optional(),listLabel:K.string().optional(),seriesUrl:K.string().optional(),coverImageUrl:K.string().optional(),coverImageWidth:K.number().optional(),coverImageHeight:K.number().optional(),coverImageSrcset:K.string().optional(),coverImageSizes:K.string().optional()}),R8=Z8.extend({url:K.string(),typeLabel:K.string(),listUrl:K.string(),listLabel:K.string(),seriesUrl:K.string().optional(),coverImageUrl:K.string().optional(),coverImageWidth:K.number().optional(),coverImageHeight:K.number().optional(),coverImageSrcset:K.string().optional(),coverImageSizes:K.string().optional()})});var rZ={};b8(rZ,{blogPostAdapter:()=>l2,BlogPostAdapter:()=>D$});var D$,l2;var A8=B(()=>{Q0();I();Z5();D$=class D$ extends V1{constructor(){super({entityType:"post",schema:n6,frontmatterSchema:Q1,supportsCoverImage:!0})}toMarkdown($){let X=this.extractBody($.content);try{let G=this.parseFrontMatter($.content,Q1),Y={...G,slug:G.slug??$.metadata.slug};return this.buildMarkdown(X,Y)}catch{return X}}fromMarkdown($){let X=this.parseFrontMatter($,Q1),G=X.slug??f1(X.title);return{content:$,entityType:"post",metadata:{title:X.title,slug:G,status:X.status,publishedAt:X.publishedAt,seriesName:X.seriesName,seriesIndex:X.seriesIndex}}}parsePostFrontmatter($){return this.parseFrontMatter($.content,Q1)}createPostContent($,X){return this.buildMarkdown(X,$)}};l2=new D$});function b1($){return $.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function TR($){return new Date($).toUTCString()}function S$($,X){let G=$.filter((M)=>{if(X.includeAllPosts)return!0;return M.frontmatter.status==="published"&&M.frontmatter.publishedAt}).sort((M,Q)=>{let q=new Date(M.frontmatter.publishedAt??M.created);return new Date(Q.frontmatter.publishedAt??Q.created).getTime()-q.getTime()}),Y=G.length>0&&G[0]?G[0].frontmatter.publishedAt??G[0].created:new Date().toISOString(),J=G.map((M)=>{let Q=`${X.link}/posts/${M.metadata.slug}`,q=M.frontmatter.publishedAt??M.created,A=M.frontmatter.excerpt,Z=M.frontmatter.author;return` <item>
173
173
  <title>${b1(M.frontmatter.title)}</title>
174
174
  <link>${b1(Q)}</link>
175
175
  <guid isPermaLink="true">${b1(Q)}</guid>
176
- <description>${b1(Z)}</description>
176
+ <description>${b1(A)}</description>
177
177
  <content:encoded><![CDATA[${M.body}]]></content:encoded>
178
- <author>${b1(A)}</author>
179
- <pubDate>${EZ(q)}</pubDate>${M.frontmatter.seriesName?`
178
+ <author>${b1(Z)}</author>
179
+ <pubDate>${TR(q)}</pubDate>${M.frontmatter.seriesName?`
180
180
  <category>${b1(M.frontmatter.seriesName)}</category>`:""}
181
181
  </item>`}).join(`
182
182
  `),W=X.copyright?`
@@ -189,11 +189,11 @@ Please report this to https://github.com/markedjs/marked.`,$){let Y="<p>An error
189
189
  <link>${b1(X.link)}</link>
190
190
  <description>${b1(X.description)}</description>
191
191
  <language>${X.language??"en-us"}</language>
192
- <lastBuildDate>${EZ(Y)}</lastBuildDate>
192
+ <lastBuildDate>${TR(Y)}</lastBuildDate>
193
193
  <atom:link href="${b1(X.link)}/feed.xml" rel="self" type="application/rss+xml"/>${W}${H}${U}
194
194
  ${J}
195
195
  </channel>
196
- </rss>`}var vZ={};S8(vZ,{RSSDataSource:()=>kZ});class kZ{logger;id="blog:rss";name="Blog RSS Feed DataSource";description="Generates RSS 2.0 feed XML from published blog posts";constructor($){this.logger=$;this.logger.debug("RSSDataSource initialized")}async fetch($,X,G){let Y=yj.parse($),H=(await G.entityService.listEntities("post",{limit:1000})).filter((Q)=>Q.metadata.status==="published"&&Q.metadata.publishedAt).map((Q)=>{let q=E0(Q.content,M1);return{...Q,frontmatter:q.metadata,body:q.content}});this.logger.debug(`Generating RSS feed with ${H.length} posts`);let U={title:Y.title,description:Y.description,link:Y.siteUrl,language:Y.language??"en-us",...Y.copyright&&{copyright:Y.copyright}},M={xml:k$(H,U)};return X.parse(M)}}var yj;var xZ=V(()=>{I();Q0();R5();yj=K.object({siteUrl:K.string().url(),title:K.string(),description:K.string(),language:K.string().optional(),copyright:K.string().optional()})});Q0();I();U5();Q0();R5();Z8();I();var pG=K.object({defaultPrompt:K.string().default("Write a blog post about my recent work and insights"),paginate:K.boolean().default(!0),pageSize:K.number().default(10)});Q0();I();var qI=K.object({prompt:K.string().optional(),title:K.string().optional(),content:K.string().optional(),excerpt:K.string().optional(),coverImageId:K.string().optional(),seriesName:K.string().optional(),seriesIndex:K.number().optional(),skipAi:K.boolean().optional()}),b50=n4.extend({title:K.string().optional(),slug:K.string().optional()});class uG extends r6{constructor($,X){super($,X,{schema:qI,jobTypeName:"blog-generation",entityType:"post"})}async generate($,X){let{prompt:G,coverImageId:Y,seriesName:J,seriesIndex:W,skipAi:H}=$,{title:U,content:F,excerpt:M}=$;if(H){if(!U)this.failEarly("Title is required when skipAi is true");F=F??`## Introduction
196
+ </rss>`}var kR={};b8(kR,{RSSDataSource:()=>SR});class SR{logger;id="blog:rss";name="Blog RSS Feed DataSource";description="Generates RSS 2.0 feed XML from published blog posts";constructor($){this.logger=$;this.logger.debug("RSSDataSource initialized")}async fetch($,X,G){let Y=gj.parse($),H=(await G.entityService.listEntities({entityType:"post",options:{limit:1000}})).filter((Q)=>Q.metadata.status==="published"&&Q.metadata.publishedAt).map((Q)=>{let q=I0(Q.content,Q1);return{...Q,frontmatter:q.metadata,body:q.content}});this.logger.debug(`Generating RSS feed with ${H.length} posts`);let U={title:Y.title,description:Y.description,link:Y.siteUrl,language:Y.language??"en-us",...Y.copyright&&{copyright:Y.copyright}},M={xml:S$(H,U)};return X.parse(M)}}var gj;var vR=B(()=>{I();Q0();Z5();gj=K.object({siteUrl:K.string().url(),title:K.string(),description:K.string(),language:K.string().optional(),copyright:K.string().optional()})});Q0();I();U5();Q0();Z5();A8();I();var fG=K.object({defaultPrompt:K.string().default("Write a blog post about my recent work and insights"),paginate:K.boolean().default(!0),pageSize:K.number().default(10)});Q0();I();var QI=K.object({prompt:K.string().optional(),title:K.string().optional(),content:K.string().optional(),excerpt:K.string().optional(),coverImageId:K.string().optional(),seriesName:K.string().optional(),seriesIndex:K.number().optional(),skipAi:K.boolean().optional()}),u50=o4.extend({title:K.string().optional(),slug:K.string().optional()});class gG extends c6{constructor($,X){super($,X,{schema:QI,jobTypeName:"blog-generation",entityType:"post"})}async generate($,X){let{prompt:G,coverImageId:Y,seriesName:J,seriesIndex:W,skipAi:H}=$,{title:U,content:F,excerpt:M}=$;if(H){if(!U)this.failEarly("Title is required when skipAi is true");F=F??`## Introduction
197
197
 
198
198
  Add your introduction here.
199
199
 
@@ -208,7 +208,7 @@ Add your conclusion here.`,M=M??`Blog post about ${U}`,await this.reportProgress
208
208
  Note: This is part of a series called "${J}".`:""}`,y=await this.context.ai.generate({prompt:b,templateName:"blog:generation"});U=U??y.title,F=F??y.content,M=M??y.excerpt,await this.reportProgress(X,{progress:50,message:`Generated blog post: "${U}"`})}else if(!M)await this.reportProgress(X,{progress:30,message:"Generating excerpt with AI"}),M=(await this.context.ai.generate({prompt:`Title: ${U}
209
209
 
210
210
  Content:
211
- ${F}`,templateName:"blog:excerpt"})).excerpt,await this.reportProgress(X,{progress:50,message:"Excerpt generated"});else await this.reportProgress(X,{progress:50,message:"Using provided content"});let Q=this.context.identity.getProfile().name,q=W;if(J&&!W)q=(await this.context.entityService.listEntities("post")).filter((b)=>b.metadata.seriesName===J&&b.metadata.publishedAt).length+1;if(!U||!F)this.failEarly("Title and content are required");let Z=await Q8({entityType:"post",title:U,deriveId:(D)=>D,regeneratePrompt:"Generate a different blog post title on the same topic.",context:this.context}),A=f1(Z),{blogPostAdapter:_}=await Promise.resolve().then(() => (Z8(),iR)),z={title:Z,slug:A,status:"draft",excerpt:M,author:Q,...Y&&{coverImageId:Y},...J&&{seriesName:J},...q&&{seriesIndex:q}};return{id:Z,content:_.createPostContent(z,F),metadata:{title:Z,slug:A,status:z.status,publishedAt:z.publishedAt,seriesName:z.seriesName,seriesIndex:z.seriesIndex},title:Z,resultExtras:{title:Z,slug:A},createOptions:{deduplicateId:!0}}}summarizeDataForLog($){return{prompt:$.prompt,title:$.title}}}Q0();I();Q0();R5();function r2($){let X=E0($.content,M1);return O8.parse({...$,frontmatter:X.metadata,body:X.content})}var OI=q$.extend({latest:K.boolean().optional(),"metadata.seriesName":K.string().optional()}),RI=O$.extend({query:OI.optional()});function dG($){let X=r2($),G=X.frontmatter.seriesName,Y=G?`/series/${f1(G)}`:void 0;return{...X,...Y&&{seriesUrl:Y}}}class lG extends c6{id="blog:entities";name="Blog Entity DataSource";description="Fetches and transforms blog post entities for rendering";config={entityType:"post",defaultSort:[{field:"publishedAt",direction:"desc"}],defaultLimit:10,enableNavigation:!0};constructor($){super($);this.logger.debug("BlogDataSource initialized")}parseQuery($){let X=RI.parse($);return{entityType:X.entityType??this.config.entityType,query:X.query??{}}}transformEntity($){return dG($)}buildDetailResult($,X){return{post:$,prevPost:X?.prev??null,nextPost:X?.next??null,seriesPosts:null}}buildListResult($,X,G){return{posts:$,pagination:X,baseUrl:G.baseUrl}}async fetch($,X,G){let{query:Y}=this.parseQuery($),J=G.entityService;if(Y.latest)return this.fetchLatestPost(X,J);if(Y.id)return this.fetchSinglePost(Y.id,X,J);if(Y["metadata.seriesName"])return this.fetchSeriesPosts(Y["metadata.seriesName"],X,J);let{items:W,pagination:H}=await this.fetchList(Y,J);return X.parse(this.buildListResult(W,H,Y))}async fetchLatestPost($,X){let G=await X.listEntities(this.config.entityType,{limit:1,sortFields:[{field:"publishedAt",direction:"desc"}]});if(G.length===0)throw this.logger.info("No published blog posts found for homepage"),Error("NO_PUBLISHED_POSTS");let Y=G[0];if(!Y)throw Error("Failed to retrieve latest blog post");let J=dG(Y),W=await this.fetchSeriesPostsForEntity(Y,X);return $.parse({post:J,prevPost:null,nextPost:null,seriesPosts:W})}async fetchSinglePost($,X,G){let Y=await this.lookupEntity($,G),J=this.transformEntity(Y),[W,H]=await Promise.all([this.config.enableNavigation?this.resolveNavigation(Y,G):Promise.resolve(null),J.frontmatter.seriesName?this.fetchPostsBySeries(J.frontmatter.seriesName,G):Promise.resolve(null)]);return X.parse({post:J,prevPost:W?.prev??null,nextPost:W?.next??null,seriesPosts:H})}async fetchPostsBySeries($,X){return(await X.listEntities(this.config.entityType,{limit:100,filter:{metadata:{seriesName:$}},sortFields:[{field:"seriesIndex",direction:"asc"}]})).map(dG)}async fetchSeriesPostsForEntity($,X){let G=$.metadata.seriesName;if(!G)return null;return this.fetchPostsBySeries(G,X)}async fetchSeriesPosts($,X,G){let Y=await this.fetchPostsBySeries($,G);return X.parse({seriesName:$,posts:Y})}}Q0();U5();I();R5();function nR($){var X,G,Y="";if(typeof $=="string"||typeof $=="number")Y+=$;else if(typeof $=="object")if(Array.isArray($)){var J=$.length;for(X=0;X<J;X++)$[X]&&(G=nR($[X]))&&(Y&&(Y+=" "),Y+=G)}else for(G in $)$[G]&&(Y&&(Y+=" "),Y+=G);return Y}function C$(){for(var $,X,G=0,Y="",J=arguments.length;G<J;G++)($=arguments[G])&&(X=nR($))&&(Y&&(Y+=" "),Y+=X);return Y}var ZI=($)=>{let X=VI($),{conflictingClassGroups:G,conflictingClassGroupModifiers:Y}=$;return{getClassGroupId:(H)=>{let U=H.split("-");if(U[0]===""&&U.length!==1)U.shift();return eR(U,X)||AI(H)},getConflictingClassGroupIds:(H,U)=>{let F=G[H]||[];if(U&&Y[H])return[...F,...Y[H]];return F}}},eR=($,X)=>{if($.length===0)return X.classGroupId;let G=$[0],Y=X.nextPart.get(G),J=Y?eR($.slice(1),Y):void 0;if(J)return J;if(X.validators.length===0)return;let W=$.join("-");return X.validators.find(({validator:H})=>H(W))?.classGroupId},oR=/^\[(.+)\]$/,AI=($)=>{if(oR.test($)){let X=oR.exec($)[1],G=X?.substring(0,X.indexOf(":"));if(G)return"arbitrary.."+G}},VI=($)=>{let{theme:X,prefix:G}=$,Y={nextPart:new Map,validators:[]};return NI(Object.entries($.classGroups),G).forEach(([W,H])=>{rG(H,Y,W,X)}),Y},rG=($,X,G,Y)=>{$.forEach((J)=>{if(typeof J==="string"){let W=J===""?X:sR(X,J);W.classGroupId=G;return}if(typeof J==="function"){if(BI(J)){rG(J(Y),X,G,Y);return}X.validators.push({validator:J,classGroupId:G});return}Object.entries(J).forEach(([W,H])=>{rG(H,sR(X,W),G,Y)})})},sR=($,X)=>{let G=$;return X.split("-").forEach((Y)=>{if(!G.nextPart.has(Y))G.nextPart.set(Y,{nextPart:new Map,validators:[]});G=G.nextPart.get(Y)}),G},BI=($)=>$.isThemeGetter,NI=($,X)=>{if(!X)return $;return $.map(([G,Y])=>{let J=Y.map((W)=>{if(typeof W==="string")return X+W;if(typeof W==="object")return Object.fromEntries(Object.entries(W).map(([H,U])=>[X+H,U]));return W});return[G,J]})},wI=($)=>{if($<1)return{get:()=>{return},set:()=>{}};let X=0,G=new Map,Y=new Map,J=(W,H)=>{if(G.set(W,H),X++,X>$)X=0,Y=G,G=new Map};return{get(W){let H=G.get(W);if(H!==void 0)return H;if((H=Y.get(W))!==void 0)return J(W,H),H},set(W,H){if(G.has(W))G.set(W,H);else J(W,H)}}};var _I=($)=>{let{separator:X,experimentalParseClassName:G}=$,Y=X.length===1,J=X[0],W=X.length,H=(U)=>{let F=[],M=0,Q=0,q;for(let D=0;D<U.length;D++){let P=U[D];if(M===0){if(P===J&&(Y||U.slice(D,D+W)===X)){F.push(U.slice(Q,D)),Q=D+W;continue}if(P==="/"){q=D;continue}}if(P==="[")M++;else if(P==="]")M--}let Z=F.length===0?U:U.substring(Q),A=Z.startsWith("!"),_=A?Z.substring(1):Z,z=q&&q>Q?q-Q:void 0;return{modifiers:F,hasImportantModifier:A,baseClassName:_,maybePostfixModifierPosition:z}};if(G)return(U)=>G({className:U,parseClassName:H});return H},zI=($)=>{if($.length<=1)return $;let X=[],G=[];return $.forEach((Y)=>{if(Y[0]==="[")X.push(...G.sort(),Y),G=[];else G.push(Y)}),X.push(...G.sort()),X},DI=($)=>({cache:wI($.cacheSize),parseClassName:_I($),...ZI($)}),PI=/\s+/,LI=($,X)=>{let{parseClassName:G,getClassGroupId:Y,getConflictingClassGroupIds:J}=X,W=[],H=$.trim().split(PI),U="";for(let F=H.length-1;F>=0;F-=1){let M=H[F],{modifiers:Q,hasImportantModifier:q,baseClassName:Z,maybePostfixModifierPosition:A}=G(M),_=Boolean(A),z=Y(_?Z.substring(0,A):Z);if(!z){if(!_){U=M+(U.length>0?" "+U:U);continue}if(z=Y(Z),!z){U=M+(U.length>0?" "+U:U);continue}_=!1}let D=zI(Q).join(":"),P=q?D+"!":D,b=P+z;if(W.includes(b))continue;W.push(b);let y=J(z,_);for(let X0=0;X0<y.length;++X0){let Z0=y[X0];W.push(P+Z0)}U=M+(U.length>0?" "+U:U)}return U};function CI(){let $=0,X,G,Y="";while($<arguments.length)if(X=arguments[$++]){if(G=$Z(X))Y&&(Y+=" "),Y+=G}return Y}var $Z=($)=>{if(typeof $==="string")return $;let X,G="";for(let Y=0;Y<$.length;Y++)if($[Y]){if(X=$Z($[Y]))G&&(G+=" "),G+=X}return G};function aR($,...X){let G,Y,J,W=H;function H(F){let M=X.reduce((Q,q)=>q(Q),$());return G=DI(M),Y=G.cache.get,J=G.cache.set,W=U,U(F)}function U(F){let M=Y(F);if(M)return M;let Q=LI(F,G);return J(F,Q),Q}return function(){return W(CI.apply(null,arguments))}}var T0=($)=>{let X=(G)=>G[$]||[];return X.isThemeGetter=!0,X},XZ=/^\[(?:([a-z-]+):)?(.+)\]$/i,TI=/^\d+\/\d+$/,EI=new Set(["px","full","screen"]),II=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,jI=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,SI=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kI=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vI=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j5=($)=>s6($)||EI.has($)||TI.test($),M2=($)=>a6($,"length",pI),s6=($)=>Boolean($)&&!Number.isNaN(Number($)),cG=($)=>a6($,"number",s6),A8=($)=>Boolean($)&&Number.isInteger(Number($)),xI=($)=>$.endsWith("%")&&s6($.slice(0,-1)),J0=($)=>XZ.test($),Q2=($)=>II.test($),bI=new Set(["length","size","percentage"]),hI=($)=>a6($,bI,GZ),yI=($)=>a6($,"position",GZ),fI=new Set(["image","url"]),gI=($)=>a6($,fI,dI),mI=($)=>a6($,"",uI),V8=()=>!0,a6=($,X,G)=>{let Y=XZ.exec($);if(Y){if(Y[1])return typeof X==="string"?Y[1]===X:X.has(Y[1]);return G(Y[2])}return!1},pI=($)=>jI.test($)&&!SI.test($),GZ=()=>!1,uI=($)=>kI.test($),dI=($)=>vI.test($);var tR=()=>{let $=T0("colors"),X=T0("spacing"),G=T0("blur"),Y=T0("brightness"),J=T0("borderColor"),W=T0("borderRadius"),H=T0("borderSpacing"),U=T0("borderWidth"),F=T0("contrast"),M=T0("grayscale"),Q=T0("hueRotate"),q=T0("invert"),Z=T0("gap"),A=T0("gradientColorStops"),_=T0("gradientColorStopPositions"),z=T0("inset"),D=T0("margin"),P=T0("opacity"),b=T0("padding"),y=T0("saturate"),X0=T0("scale"),Z0=T0("sepia"),E=T0("skew"),q0=T0("space"),C0=T0("translate"),M0=()=>["auto","contain","none"],B0=()=>["auto","hidden","clip","visible","scroll"],X1=()=>["auto",J0,X],u=()=>[J0,X],f=()=>["",j5,M2],r=()=>["auto",s6,J0],a=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],P0=()=>["solid","dashed","dotted","double","none"],k0=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G1=()=>["start","end","center","between","around","evenly","stretch"],Y1=()=>["","0",J0],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v0=()=>[s6,J0];return{cacheSize:500,separator:":",theme:{colors:[V8],spacing:[j5,M2],blur:["none","",Q2,J0],brightness:v0(),borderColor:[$],borderRadius:["none","","full",Q2,J0],borderSpacing:u(),borderWidth:f(),contrast:v0(),grayscale:Y1(),hueRotate:v0(),invert:Y1(),gap:u(),gradientColorStops:[$],gradientColorStopPositions:[xI,M2],inset:X1(),margin:X1(),opacity:v0(),padding:u(),saturate:v0(),scale:v0(),sepia:Y1(),skew:v0(),space:u(),translate:u()},classGroups:{aspect:[{aspect:["auto","square","video",J0]}],container:["container"],columns:[{columns:[Q2]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...a(),J0]}],overflow:[{overflow:B0()}],"overflow-x":[{"overflow-x":B0()}],"overflow-y":[{"overflow-y":B0()}],overscroll:[{overscroll:M0()}],"overscroll-x":[{"overscroll-x":M0()}],"overscroll-y":[{"overscroll-y":M0()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[z]}],"inset-x":[{"inset-x":[z]}],"inset-y":[{"inset-y":[z]}],start:[{start:[z]}],end:[{end:[z]}],top:[{top:[z]}],right:[{right:[z]}],bottom:[{bottom:[z]}],left:[{left:[z]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",A8,J0]}],basis:[{basis:X1()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",J0]}],grow:[{grow:Y1()}],shrink:[{shrink:Y1()}],order:[{order:["first","last","none",A8,J0]}],"grid-cols":[{"grid-cols":[V8]}],"col-start-end":[{col:["auto",{span:["full",A8,J0]},J0]}],"col-start":[{"col-start":r()}],"col-end":[{"col-end":r()}],"grid-rows":[{"grid-rows":[V8]}],"row-start-end":[{row:["auto",{span:[A8,J0]},J0]}],"row-start":[{"row-start":r()}],"row-end":[{"row-end":r()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",J0]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",J0]}],gap:[{gap:[Z]}],"gap-x":[{"gap-x":[Z]}],"gap-y":[{"gap-y":[Z]}],"justify-content":[{justify:["normal",...G1()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...G1(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...G1(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[D]}],mx:[{mx:[D]}],my:[{my:[D]}],ms:[{ms:[D]}],me:[{me:[D]}],mt:[{mt:[D]}],mr:[{mr:[D]}],mb:[{mb:[D]}],ml:[{ml:[D]}],"space-x":[{"space-x":[q0]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[q0]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",J0,X]}],"min-w":[{"min-w":[J0,X,"min","max","fit"]}],"max-w":[{"max-w":[J0,X,"none","full","min","max","fit","prose",{screen:[Q2]},Q2]}],h:[{h:[J0,X,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[J0,X,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[J0,X,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[J0,X,"auto","min","max","fit"]}],"font-size":[{text:["base",Q2,M2]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",cG]}],"font-family":[{font:[V8]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",J0]}],"line-clamp":[{"line-clamp":["none",s6,cG]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",j5,J0]}],"list-image":[{"list-image":["none",J0]}],"list-style-type":[{list:["none","disc","decimal",J0]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[$]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[$]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...P0(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",j5,M2]}],"underline-offset":[{"underline-offset":["auto",j5,J0]}],"text-decoration-color":[{decoration:[$]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J0]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",J0]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...a(),yI]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",hI]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},gI]}],"bg-color":[{bg:[$]}],"gradient-from-pos":[{from:[_]}],"gradient-via-pos":[{via:[_]}],"gradient-to-pos":[{to:[_]}],"gradient-from":[{from:[A]}],"gradient-via":[{via:[A]}],"gradient-to":[{to:[A]}],rounded:[{rounded:[W]}],"rounded-s":[{"rounded-s":[W]}],"rounded-e":[{"rounded-e":[W]}],"rounded-t":[{"rounded-t":[W]}],"rounded-r":[{"rounded-r":[W]}],"rounded-b":[{"rounded-b":[W]}],"rounded-l":[{"rounded-l":[W]}],"rounded-ss":[{"rounded-ss":[W]}],"rounded-se":[{"rounded-se":[W]}],"rounded-ee":[{"rounded-ee":[W]}],"rounded-es":[{"rounded-es":[W]}],"rounded-tl":[{"rounded-tl":[W]}],"rounded-tr":[{"rounded-tr":[W]}],"rounded-br":[{"rounded-br":[W]}],"rounded-bl":[{"rounded-bl":[W]}],"border-w":[{border:[U]}],"border-w-x":[{"border-x":[U]}],"border-w-y":[{"border-y":[U]}],"border-w-s":[{"border-s":[U]}],"border-w-e":[{"border-e":[U]}],"border-w-t":[{"border-t":[U]}],"border-w-r":[{"border-r":[U]}],"border-w-b":[{"border-b":[U]}],"border-w-l":[{"border-l":[U]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...P0(),"hidden"]}],"divide-x":[{"divide-x":[U]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[U]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:P0()}],"border-color":[{border:[J]}],"border-color-x":[{"border-x":[J]}],"border-color-y":[{"border-y":[J]}],"border-color-s":[{"border-s":[J]}],"border-color-e":[{"border-e":[J]}],"border-color-t":[{"border-t":[J]}],"border-color-r":[{"border-r":[J]}],"border-color-b":[{"border-b":[J]}],"border-color-l":[{"border-l":[J]}],"divide-color":[{divide:[J]}],"outline-style":[{outline:["",...P0()]}],"outline-offset":[{"outline-offset":[j5,J0]}],"outline-w":[{outline:[j5,M2]}],"outline-color":[{outline:[$]}],"ring-w":[{ring:f()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[$]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[j5,M2]}],"ring-offset-color":[{"ring-offset":[$]}],shadow:[{shadow:["","inner","none",Q2,mI]}],"shadow-color":[{shadow:[V8]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...k0(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":k0()}],filter:[{filter:["","none"]}],blur:[{blur:[G]}],brightness:[{brightness:[Y]}],contrast:[{contrast:[F]}],"drop-shadow":[{"drop-shadow":["","none",Q2,J0]}],grayscale:[{grayscale:[M]}],"hue-rotate":[{"hue-rotate":[Q]}],invert:[{invert:[q]}],saturate:[{saturate:[y]}],sepia:[{sepia:[Z0]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[G]}],"backdrop-brightness":[{"backdrop-brightness":[Y]}],"backdrop-contrast":[{"backdrop-contrast":[F]}],"backdrop-grayscale":[{"backdrop-grayscale":[M]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Q]}],"backdrop-invert":[{"backdrop-invert":[q]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[Z0]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[H]}],"border-spacing-x":[{"border-spacing-x":[H]}],"border-spacing-y":[{"border-spacing-y":[H]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",J0]}],duration:[{duration:v0()}],ease:[{ease:["linear","in","out","in-out",J0]}],delay:[{delay:v0()}],animate:[{animate:["none","spin","ping","pulse","bounce",J0]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[X0]}],"scale-x":[{"scale-x":[X0]}],"scale-y":[{"scale-y":[X0]}],rotate:[{rotate:[A8,J0]}],"translate-x":[{"translate-x":[C0]}],"translate-y":[{"translate-y":[C0]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",J0]}],accent:[{accent:["auto",$]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",J0]}],"caret-color":[{caret:[$]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",J0]}],fill:[{fill:[$,"none"]}],"stroke-w":[{stroke:[j5,M2,cG]}],stroke:[{stroke:[$,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},lI=($,{cacheSize:X,prefix:G,separator:Y,experimentalParseClassName:J,extend:W={},override:H={}})=>{B8($,"cacheSize",X),B8($,"prefix",G),B8($,"separator",Y),B8($,"experimentalParseClassName",J);for(let U in H)cI($[U],H[U]);for(let U in W)rI($[U],W[U]);return $},B8=($,X,G)=>{if(G!==void 0)$[X]=G},cI=($,X)=>{if(X)for(let G in X)B8($,G,X[G])},rI=($,X)=>{if(X)for(let G in X){let Y=X[G];if(Y!==void 0)$[G]=($[G]||[]).concat(Y)}},YZ=($,...X)=>typeof $==="function"?aR(tR,$,...X):aR(()=>lI(tR(),$),...X);var iI=YZ({extend:{classGroups:{"font-size":[{text:["display-2xl","display-xl","display-lg","display-md","display-sm","heading-lg","heading-md","heading-sm","body-xl","body-lg","body-md","body-sm","body-xs","label-md","label-sm","label-xs"]}]}}});function o(...$){return iI(C$($))}var JZ=($)=>typeof $==="boolean"?`${$}`:$===0?"0":$,WZ=C$,D0=($,X)=>(G)=>{var Y;if((X===null||X===void 0?void 0:X.variants)==null)return WZ($,G===null||G===void 0?void 0:G.class,G===null||G===void 0?void 0:G.className);let{variants:J,defaultVariants:W}=X,H=Object.keys(J).map((M)=>{let Q=G===null||G===void 0?void 0:G[M],q=W===null||W===void 0?void 0:W[M];if(Q===null)return null;let Z=JZ(Q)||JZ(q);return J[M][Z]}),U=G&&Object.entries(G).reduce((M,Q)=>{let[q,Z]=Q;if(Z===void 0)return M;return M[q]=Z,M},{}),F=X===null||X===void 0?void 0:(Y=X.compoundVariants)===null||Y===void 0?void 0:Y.reduce((M,Q)=>{let{class:q,className:Z,...A}=Q;return Object.entries(A).every((_)=>{let[z,D]=_;return Array.isArray(D)?D.includes({...W,...U}[z]):{...W,...U}[z]===D})?[...M,q,Z]:M},[]);return WZ($,H,F,G===null||G===void 0?void 0:G.class,G===null||G===void 0?void 0:G.className)};import{jsxDEV as $20}from"preact/jsx-dev-runtime";var nI=D0("p-4 rounded-lg border",{variants:{variant:{warning:"bg-warning border-warning text-warning",error:"bg-error border-error text-error",success:"bg-success border-success text-success",info:"bg-info border-info text-info"}},defaultVariants:{variant:"info"}});import{jsxDEV as oI}from"preact/jsx-dev-runtime";var HZ=D0("inline-flex items-center justify-center font-bold transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed",{variants:{variant:{default:"bg-brand hover:bg-brand-dark text-theme-inverse",secondary:"bg-theme-muted hover:bg-theme-subtle text-theme border border-theme",ghost:"hover:bg-theme-subtle text-theme"},size:{sm:"h-8 px-3 text-sm rounded-md",md:"h-10 px-4 py-2 text-sm rounded-lg",lg:"h-12 px-6 text-base rounded-lg"}},defaultVariants:{variant:"default",size:"md"}});function T$({variant:$,size:X,className:G,children:Y,ssrOnClick:J,type:W="button",...H}){return oI("button",{type:W,className:o(HZ({variant:$,size:X}),G),...H,...J&&{onclick:J},children:Y},void 0,!1,void 0,this)}import{jsxDEV as sI}from"preact/jsx-dev-runtime";var UZ=D0("inline-flex items-center justify-center font-semibold transition-all text-center",{variants:{variant:{primary:"bg-brand text-theme-inverse hover:bg-brand-dark focus:ring-brand/20 focus:outline-none focus:ring-4",accent:"bg-accent text-theme-inverse hover:bg-accent-dark focus:ring-accent/20 focus:outline-none focus:ring-4",secondary:"bg-theme-muted text-theme hover:bg-theme-muted-dark focus:outline-none focus:ring-4",outline:"border-2 border-brand text-brand hover:bg-brand hover:text-theme-inverse focus:ring-brand/20 focus:outline-none focus:ring-4","outline-light":"border-2 border-theme-light text-theme-inverse hover:bg-theme-inverse hover:text-brand hover:border-theme-inverse focus:outline-none focus:ring-4",unstyled:""},size:{icon:"w-10 h-10 rounded-full",sm:"px-3 py-1.5 text-sm rounded-lg",md:"px-4 py-2 text-sm rounded-lg",lg:"px-6 py-3 text-base rounded-xl",xl:"px-8 py-4 text-lg rounded-xl","2xl":"px-10 py-5 text-lg rounded-2xl"}},defaultVariants:{size:"md"}});function p1({href:$,children:X,variant:G,size:Y,external:J=!1,className:W,"aria-label":H}){let U=J?{target:"_blank",rel:"noopener noreferrer"}:{};return sI("a",{href:$,className:o(UZ({variant:G,size:Y}),W),"aria-label":H,...U,children:X},void 0,!1,void 0,this)}import{jsxDEV as E$}from"preact/jsx-dev-runtime";var KZ=D0("rounded-full transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-2",{variants:{variant:{default:"bg-theme-muted/50 hover:bg-theme-muted text-theme",light:"bg-theme-subtle hover:bg-theme-muted text-theme",dark:"bg-theme-dark hover:bg-theme-muted text-theme-inverse",footer:"bg-theme-toggle hover:bg-theme-toggle-hover text-theme-toggle-icon"},size:{sm:"p-1.5",md:"p-2",lg:"p-3"}},defaultVariants:{variant:"default",size:"md"}}),aI={sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"};function q2({variant:$,size:X,className:G}){let Y=aI[X??"md"];return E$("button",{onclick:"toggleTheme()",type:"button",className:o(KZ({variant:$,size:X}),G),"aria-label":"Toggle dark mode",children:E$("svg",{className:o(Y,"transition-colors"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[E$("path",{className:"sun-icon",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"},void 0,!1,void 0,this),E$("path",{className:"moon-icon",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z",transform:"rotate(45 12 12)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}import{jsxDEV as iG}from"preact/jsx-dev-runtime";var FZ=D0("flex flex-wrap",{variants:{orientation:{horizontal:"justify-center gap-6 items-center",vertical:"flex-col gap-2.5"}},defaultVariants:{orientation:"horizontal"}});function I$({items:$,className:X,linkClassName:G="hover:text-accent transition-colors",orientation:Y,children:J}){if($.length===0&&!J)return null;let W=[...$].sort((H,U)=>H.priority-U.priority);return iG("ul",{className:o(FZ({orientation:Y}),X),children:[W.map((H)=>iG("li",{children:iG("a",{href:H.href,className:G,children:H.label},void 0,!1,void 0,this)},H.href,!1,void 0,this)),J]},void 0,!0,void 0,this)}import{jsxDEV as N20}from"preact/jsx-dev-runtime";import{jsxDEV as z20}from"preact/jsx-dev-runtime";I();I();import{createContext as tI,h as L20}from"preact";import{useContext as eI}from"preact/hooks";var $j=tI(null);function MZ(){return eI($j)}function i2(){let $=MZ();return(X)=>pX(X,$?{imageRenderer:$}:void 0)}import{jsxDEV as S5}from"preact/jsx-dev-runtime";var nG=({markdown:$})=>{let X=i2(),Y=$.split(/^---$/gm).map((H)=>H.trim()).map((H)=>{let{attributes:U,markdown:F}=M3(H),M=Q3(F),Q;if(M)Q=`<div class="slide-columns">${M.map((Z)=>`<div class="slide-column">${l9(X(Z.trim()))}</div>`).join("")}</div>`;else Q=l9(X(F));return{attributes:U,htmlContent:Q}}),J=Y.some((H)=>H.htmlContent.includes('class="mermaid"')),W=Y.map(({attributes:H,htmlContent:U},F)=>S5("section",{...H,dangerouslySetInnerHTML:{__html:U}},F,!1,void 0,this));return S5("section",{className:"presentation-section",children:[S5("link",{rel:"stylesheet",href:"https://cdn.jsdelivr.net/npm/reveal.js@5.1.0/dist/reveal.min.css"},void 0,!1,void 0,this),S5("div",{className:"reveal",children:S5("div",{className:"slides",children:W},void 0,!1,void 0,this)},void 0,!1,void 0,this),S5("script",{src:"https://cdn.jsdelivr.net/npm/reveal.js@5.1.0/dist/reveal.min.js",defer:!0},void 0,!1,void 0,this),J&&S5("script",{src:"https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js",defer:!0},void 0,!1,void 0,this),S5("script",{dangerouslySetInnerHTML:{__html:`
211
+ ${F}`,templateName:"blog:excerpt"})).excerpt,await this.reportProgress(X,{progress:50,message:"Excerpt generated"});else await this.reportProgress(X,{progress:50,message:"Using provided content"});let Q=this.context.identity.getProfile().name,q=W;if(J&&!W)q=(await this.context.entityService.listEntities({entityType:"post"})).filter((b)=>b.metadata.seriesName===J&&b.metadata.publishedAt).length+1;if(!U||!F)this.failEarly("Title and content are required");let A=await q8({entityType:"post",title:U,deriveId:(D)=>D,regeneratePrompt:"Generate a different blog post title on the same topic.",context:this.context}),Z=f1(A),{blogPostAdapter:_}=await Promise.resolve().then(() => (A8(),rZ)),z={title:A,slug:Z,status:"draft",excerpt:M,author:Q,...Y&&{coverImageId:Y},...J&&{seriesName:J},...q&&{seriesIndex:q}};return{id:A,content:_.createPostContent(z,F),metadata:{title:A,slug:Z,status:z.status,publishedAt:z.publishedAt,seriesName:z.seriesName,seriesIndex:z.seriesIndex},title:A,resultExtras:{title:A,slug:Z},createOptions:{deduplicateId:!0}}}summarizeDataForLog($){return{prompt:$.prompt,title:$.title}}}Q0();I();Q0();Z5();function c2($){let X=I0($.content,Q1);return Z8.parse({...$,frontmatter:X.metadata,body:X.content})}var qI=A$.extend({latest:K.boolean().optional(),"metadata.seriesName":K.string().optional()}),OI=B$.extend({query:qI.optional()});function mG($){let X=c2($),G=X.frontmatter.seriesName,Y=G?`/series/${f1(G)}`:void 0;return{...X,...Y&&{seriesUrl:Y}}}class pG extends l6{id="blog:entities";name="Blog Entity DataSource";description="Fetches and transforms blog post entities for rendering";config={entityType:"post",defaultSort:[{field:"publishedAt",direction:"desc"}],defaultLimit:10,enableNavigation:!0};constructor($){super($);this.logger.debug("BlogDataSource initialized")}parseQuery($){let X=OI.parse($);return{entityType:X.entityType??this.config.entityType,query:X.query??{}}}transformEntity($){return mG($)}buildDetailResult($,X){return{post:$,prevPost:X?.prev??null,nextPost:X?.next??null,seriesPosts:null}}buildListResult($,X,G){return{posts:$,pagination:X,baseUrl:G.baseUrl}}async fetch($,X,G){let{query:Y}=this.parseQuery($),J=G.entityService;if(Y.latest)return this.fetchLatestPost(X,J);if(Y.id)return this.fetchSinglePost(Y.id,X,J);if(Y["metadata.seriesName"])return this.fetchSeriesPosts(Y["metadata.seriesName"],X,J);let{items:W,pagination:H}=await this.fetchList(Y,J);return X.parse(this.buildListResult(W,H,Y))}async fetchLatestPost($,X){let G=await X.listEntities({entityType:this.config.entityType,options:{limit:1,sortFields:[{field:"publishedAt",direction:"desc"}]}});if(G.length===0)throw this.logger.info("No published blog posts found for homepage"),Error("NO_PUBLISHED_POSTS");let Y=G[0];if(!Y)throw Error("Failed to retrieve latest blog post");let J=mG(Y),W=await this.fetchSeriesPostsForEntity(Y,X);return $.parse({post:J,prevPost:null,nextPost:null,seriesPosts:W})}async fetchSinglePost($,X,G){let Y=await this.lookupEntity($,G),J=this.transformEntity(Y),[W,H]=await Promise.all([this.config.enableNavigation?this.resolveNavigation(Y,G):Promise.resolve(null),J.frontmatter.seriesName?this.fetchPostsBySeries(J.frontmatter.seriesName,G):Promise.resolve(null)]);return X.parse({post:J,prevPost:W?.prev??null,nextPost:W?.next??null,seriesPosts:H})}async fetchPostsBySeries($,X){return(await X.listEntities({entityType:this.config.entityType,options:{limit:100,filter:{metadata:{seriesName:$}},sortFields:[{field:"seriesIndex",direction:"asc"}]}})).map(mG)}async fetchSeriesPostsForEntity($,X){let G=$.metadata.seriesName;if(!G)return null;return this.fetchPostsBySeries(G,X)}async fetchSeriesPosts($,X,G){let Y=await this.fetchPostsBySeries($,G);return X.parse({seriesName:$,posts:Y})}}Q0();U5();I();Z5();function iZ($){var X,G,Y="";if(typeof $=="string"||typeof $=="number")Y+=$;else if(typeof $=="object")if(Array.isArray($)){var J=$.length;for(X=0;X<J;X++)$[X]&&(G=iZ($[X]))&&(Y&&(Y+=" "),Y+=G)}else for(G in $)$[G]&&(Y&&(Y+=" "),Y+=G);return Y}function P$(){for(var $,X,G=0,Y="",J=arguments.length;G<J;G++)($=arguments[G])&&(X=iZ($))&&(Y&&(Y+=" "),Y+=X);return Y}var ZI=($)=>{let X=AI($),{conflictingClassGroups:G,conflictingClassGroupModifiers:Y}=$;return{getClassGroupId:(H)=>{let U=H.split("-");if(U[0]===""&&U.length!==1)U.shift();return tZ(U,X)||RI(H)},getConflictingClassGroupIds:(H,U)=>{let F=G[H]||[];if(U&&Y[H])return[...F,...Y[H]];return F}}},tZ=($,X)=>{if($.length===0)return X.classGroupId;let G=$[0],Y=X.nextPart.get(G),J=Y?tZ($.slice(1),Y):void 0;if(J)return J;if(X.validators.length===0)return;let W=$.join("-");return X.validators.find(({validator:H})=>H(W))?.classGroupId},nZ=/^\[(.+)\]$/,RI=($)=>{if(nZ.test($)){let X=nZ.exec($)[1],G=X?.substring(0,X.indexOf(":"));if(G)return"arbitrary.."+G}},AI=($)=>{let{theme:X,prefix:G}=$,Y={nextPart:new Map,validators:[]};return VI(Object.entries($.classGroups),G).forEach(([W,H])=>{dG(H,Y,W,X)}),Y},dG=($,X,G,Y)=>{$.forEach((J)=>{if(typeof J==="string"){let W=J===""?X:oZ(X,J);W.classGroupId=G;return}if(typeof J==="function"){if(BI(J)){dG(J(Y),X,G,Y);return}X.validators.push({validator:J,classGroupId:G});return}Object.entries(J).forEach(([W,H])=>{dG(H,oZ(X,W),G,Y)})})},oZ=($,X)=>{let G=$;return X.split("-").forEach((Y)=>{if(!G.nextPart.has(Y))G.nextPart.set(Y,{nextPart:new Map,validators:[]});G=G.nextPart.get(Y)}),G},BI=($)=>$.isThemeGetter,VI=($,X)=>{if(!X)return $;return $.map(([G,Y])=>{let J=Y.map((W)=>{if(typeof W==="string")return X+W;if(typeof W==="object")return Object.fromEntries(Object.entries(W).map(([H,U])=>[X+H,U]));return W});return[G,J]})},NI=($)=>{if($<1)return{get:()=>{return},set:()=>{}};let X=0,G=new Map,Y=new Map,J=(W,H)=>{if(G.set(W,H),X++,X>$)X=0,Y=G,G=new Map};return{get(W){let H=G.get(W);if(H!==void 0)return H;if((H=Y.get(W))!==void 0)return J(W,H),H},set(W,H){if(G.has(W))G.set(W,H);else J(W,H)}}};var wI=($)=>{let{separator:X,experimentalParseClassName:G}=$,Y=X.length===1,J=X[0],W=X.length,H=(U)=>{let F=[],M=0,Q=0,q;for(let D=0;D<U.length;D++){let P=U[D];if(M===0){if(P===J&&(Y||U.slice(D,D+W)===X)){F.push(U.slice(Q,D)),Q=D+W;continue}if(P==="/"){q=D;continue}}if(P==="[")M++;else if(P==="]")M--}let A=F.length===0?U:U.substring(Q),Z=A.startsWith("!"),_=Z?A.substring(1):A,z=q&&q>Q?q-Q:void 0;return{modifiers:F,hasImportantModifier:Z,baseClassName:_,maybePostfixModifierPosition:z}};if(G)return(U)=>G({className:U,parseClassName:H});return H},_I=($)=>{if($.length<=1)return $;let X=[],G=[];return $.forEach((Y)=>{if(Y[0]==="[")X.push(...G.sort(),Y),G=[];else G.push(Y)}),X.push(...G.sort()),X},zI=($)=>({cache:NI($.cacheSize),parseClassName:wI($),...ZI($)}),DI=/\s+/,PI=($,X)=>{let{parseClassName:G,getClassGroupId:Y,getConflictingClassGroupIds:J}=X,W=[],H=$.trim().split(DI),U="";for(let F=H.length-1;F>=0;F-=1){let M=H[F],{modifiers:Q,hasImportantModifier:q,baseClassName:A,maybePostfixModifierPosition:Z}=G(M),_=Boolean(Z),z=Y(_?A.substring(0,Z):A);if(!z){if(!_){U=M+(U.length>0?" "+U:U);continue}if(z=Y(A),!z){U=M+(U.length>0?" "+U:U);continue}_=!1}let D=_I(Q).join(":"),P=q?D+"!":D,b=P+z;if(W.includes(b))continue;W.push(b);let y=J(z,_);for(let $0=0;$0<y.length;++$0){let R0=y[$0];W.push(P+R0)}U=M+(U.length>0?" "+U:U)}return U};function LI(){let $=0,X,G,Y="";while($<arguments.length)if(X=arguments[$++]){if(G=eZ(X))Y&&(Y+=" "),Y+=G}return Y}var eZ=($)=>{if(typeof $==="string")return $;let X,G="";for(let Y=0;Y<$.length;Y++)if($[Y]){if(X=eZ($[Y]))G&&(G+=" "),G+=X}return G};function sZ($,...X){let G,Y,J,W=H;function H(F){let M=X.reduce((Q,q)=>q(Q),$());return G=zI(M),Y=G.cache.get,J=G.cache.set,W=U,U(F)}function U(F){let M=Y(F);if(M)return M;let Q=PI(F,G);return J(F,Q),Q}return function(){return W(LI.apply(null,arguments))}}var E0=($)=>{let X=(G)=>G[$]||[];return X.isThemeGetter=!0,X},$R=/^\[(?:([a-z-]+):)?(.+)\]$/i,CI=/^\d+\/\d+$/,TI=new Set(["px","full","screen"]),EI=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,II=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,jI=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,SI=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kI=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j5=($)=>o6($)||TI.has($)||CI.test($),F2=($)=>s6($,"length",mI),o6=($)=>Boolean($)&&!Number.isNaN(Number($)),uG=($)=>s6($,"number",o6),B8=($)=>Boolean($)&&Number.isInteger(Number($)),vI=($)=>$.endsWith("%")&&o6($.slice(0,-1)),J0=($)=>$R.test($),M2=($)=>EI.test($),xI=new Set(["length","size","percentage"]),bI=($)=>s6($,xI,XR),hI=($)=>s6($,"position",XR),yI=new Set(["image","url"]),fI=($)=>s6($,yI,uI),gI=($)=>s6($,"",pI),V8=()=>!0,s6=($,X,G)=>{let Y=$R.exec($);if(Y){if(Y[1])return typeof X==="string"?Y[1]===X:X.has(Y[1]);return G(Y[2])}return!1},mI=($)=>II.test($)&&!jI.test($),XR=()=>!1,pI=($)=>SI.test($),uI=($)=>kI.test($);var aZ=()=>{let $=E0("colors"),X=E0("spacing"),G=E0("blur"),Y=E0("brightness"),J=E0("borderColor"),W=E0("borderRadius"),H=E0("borderSpacing"),U=E0("borderWidth"),F=E0("contrast"),M=E0("grayscale"),Q=E0("hueRotate"),q=E0("invert"),A=E0("gap"),Z=E0("gradientColorStops"),_=E0("gradientColorStopPositions"),z=E0("inset"),D=E0("margin"),P=E0("opacity"),b=E0("padding"),y=E0("saturate"),$0=E0("scale"),R0=E0("sepia"),E=E0("skew"),q0=E0("space"),T0=E0("translate"),M0=()=>["auto","contain","none"],V0=()=>["auto","hidden","clip","visible","scroll"],G1=()=>["auto",J0,X],u=()=>[J0,X],f=()=>["",j5,F2],r=()=>["auto",o6,J0],s=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],P0=()=>["solid","dashed","dotted","double","none"],v0=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y1=()=>["start","end","center","between","around","evenly","stretch"],J1=()=>["","0",J0],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x0=()=>[o6,J0];return{cacheSize:500,separator:":",theme:{colors:[V8],spacing:[j5,F2],blur:["none","",M2,J0],brightness:x0(),borderColor:[$],borderRadius:["none","","full",M2,J0],borderSpacing:u(),borderWidth:f(),contrast:x0(),grayscale:J1(),hueRotate:x0(),invert:J1(),gap:u(),gradientColorStops:[$],gradientColorStopPositions:[vI,F2],inset:G1(),margin:G1(),opacity:x0(),padding:u(),saturate:x0(),scale:x0(),sepia:J1(),skew:x0(),space:u(),translate:u()},classGroups:{aspect:[{aspect:["auto","square","video",J0]}],container:["container"],columns:[{columns:[M2]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...s(),J0]}],overflow:[{overflow:V0()}],"overflow-x":[{"overflow-x":V0()}],"overflow-y":[{"overflow-y":V0()}],overscroll:[{overscroll:M0()}],"overscroll-x":[{"overscroll-x":M0()}],"overscroll-y":[{"overscroll-y":M0()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[z]}],"inset-x":[{"inset-x":[z]}],"inset-y":[{"inset-y":[z]}],start:[{start:[z]}],end:[{end:[z]}],top:[{top:[z]}],right:[{right:[z]}],bottom:[{bottom:[z]}],left:[{left:[z]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",B8,J0]}],basis:[{basis:G1()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",J0]}],grow:[{grow:J1()}],shrink:[{shrink:J1()}],order:[{order:["first","last","none",B8,J0]}],"grid-cols":[{"grid-cols":[V8]}],"col-start-end":[{col:["auto",{span:["full",B8,J0]},J0]}],"col-start":[{"col-start":r()}],"col-end":[{"col-end":r()}],"grid-rows":[{"grid-rows":[V8]}],"row-start-end":[{row:["auto",{span:[B8,J0]},J0]}],"row-start":[{"row-start":r()}],"row-end":[{"row-end":r()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",J0]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",J0]}],gap:[{gap:[A]}],"gap-x":[{"gap-x":[A]}],"gap-y":[{"gap-y":[A]}],"justify-content":[{justify:["normal",...Y1()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Y1(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Y1(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[D]}],mx:[{mx:[D]}],my:[{my:[D]}],ms:[{ms:[D]}],me:[{me:[D]}],mt:[{mt:[D]}],mr:[{mr:[D]}],mb:[{mb:[D]}],ml:[{ml:[D]}],"space-x":[{"space-x":[q0]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[q0]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",J0,X]}],"min-w":[{"min-w":[J0,X,"min","max","fit"]}],"max-w":[{"max-w":[J0,X,"none","full","min","max","fit","prose",{screen:[M2]},M2]}],h:[{h:[J0,X,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[J0,X,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[J0,X,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[J0,X,"auto","min","max","fit"]}],"font-size":[{text:["base",M2,F2]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",uG]}],"font-family":[{font:[V8]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",J0]}],"line-clamp":[{"line-clamp":["none",o6,uG]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",j5,J0]}],"list-image":[{"list-image":["none",J0]}],"list-style-type":[{list:["none","disc","decimal",J0]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[$]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[$]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...P0(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",j5,F2]}],"underline-offset":[{"underline-offset":["auto",j5,J0]}],"text-decoration-color":[{decoration:[$]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J0]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",J0]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...s(),hI]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",bI]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},fI]}],"bg-color":[{bg:[$]}],"gradient-from-pos":[{from:[_]}],"gradient-via-pos":[{via:[_]}],"gradient-to-pos":[{to:[_]}],"gradient-from":[{from:[Z]}],"gradient-via":[{via:[Z]}],"gradient-to":[{to:[Z]}],rounded:[{rounded:[W]}],"rounded-s":[{"rounded-s":[W]}],"rounded-e":[{"rounded-e":[W]}],"rounded-t":[{"rounded-t":[W]}],"rounded-r":[{"rounded-r":[W]}],"rounded-b":[{"rounded-b":[W]}],"rounded-l":[{"rounded-l":[W]}],"rounded-ss":[{"rounded-ss":[W]}],"rounded-se":[{"rounded-se":[W]}],"rounded-ee":[{"rounded-ee":[W]}],"rounded-es":[{"rounded-es":[W]}],"rounded-tl":[{"rounded-tl":[W]}],"rounded-tr":[{"rounded-tr":[W]}],"rounded-br":[{"rounded-br":[W]}],"rounded-bl":[{"rounded-bl":[W]}],"border-w":[{border:[U]}],"border-w-x":[{"border-x":[U]}],"border-w-y":[{"border-y":[U]}],"border-w-s":[{"border-s":[U]}],"border-w-e":[{"border-e":[U]}],"border-w-t":[{"border-t":[U]}],"border-w-r":[{"border-r":[U]}],"border-w-b":[{"border-b":[U]}],"border-w-l":[{"border-l":[U]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...P0(),"hidden"]}],"divide-x":[{"divide-x":[U]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[U]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:P0()}],"border-color":[{border:[J]}],"border-color-x":[{"border-x":[J]}],"border-color-y":[{"border-y":[J]}],"border-color-s":[{"border-s":[J]}],"border-color-e":[{"border-e":[J]}],"border-color-t":[{"border-t":[J]}],"border-color-r":[{"border-r":[J]}],"border-color-b":[{"border-b":[J]}],"border-color-l":[{"border-l":[J]}],"divide-color":[{divide:[J]}],"outline-style":[{outline:["",...P0()]}],"outline-offset":[{"outline-offset":[j5,J0]}],"outline-w":[{outline:[j5,F2]}],"outline-color":[{outline:[$]}],"ring-w":[{ring:f()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[$]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[j5,F2]}],"ring-offset-color":[{"ring-offset":[$]}],shadow:[{shadow:["","inner","none",M2,gI]}],"shadow-color":[{shadow:[V8]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...v0(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":v0()}],filter:[{filter:["","none"]}],blur:[{blur:[G]}],brightness:[{brightness:[Y]}],contrast:[{contrast:[F]}],"drop-shadow":[{"drop-shadow":["","none",M2,J0]}],grayscale:[{grayscale:[M]}],"hue-rotate":[{"hue-rotate":[Q]}],invert:[{invert:[q]}],saturate:[{saturate:[y]}],sepia:[{sepia:[R0]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[G]}],"backdrop-brightness":[{"backdrop-brightness":[Y]}],"backdrop-contrast":[{"backdrop-contrast":[F]}],"backdrop-grayscale":[{"backdrop-grayscale":[M]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Q]}],"backdrop-invert":[{"backdrop-invert":[q]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[R0]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[H]}],"border-spacing-x":[{"border-spacing-x":[H]}],"border-spacing-y":[{"border-spacing-y":[H]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",J0]}],duration:[{duration:x0()}],ease:[{ease:["linear","in","out","in-out",J0]}],delay:[{delay:x0()}],animate:[{animate:["none","spin","ping","pulse","bounce",J0]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[$0]}],"scale-x":[{"scale-x":[$0]}],"scale-y":[{"scale-y":[$0]}],rotate:[{rotate:[B8,J0]}],"translate-x":[{"translate-x":[T0]}],"translate-y":[{"translate-y":[T0]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",J0]}],accent:[{accent:["auto",$]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",J0]}],"caret-color":[{caret:[$]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",J0]}],fill:[{fill:[$,"none"]}],"stroke-w":[{stroke:[j5,F2,uG]}],stroke:[{stroke:[$,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},dI=($,{cacheSize:X,prefix:G,separator:Y,experimentalParseClassName:J,extend:W={},override:H={}})=>{N8($,"cacheSize",X),N8($,"prefix",G),N8($,"separator",Y),N8($,"experimentalParseClassName",J);for(let U in H)lI($[U],H[U]);for(let U in W)cI($[U],W[U]);return $},N8=($,X,G)=>{if(G!==void 0)$[X]=G},lI=($,X)=>{if(X)for(let G in X)N8($,G,X[G])},cI=($,X)=>{if(X)for(let G in X){let Y=X[G];if(Y!==void 0)$[G]=($[G]||[]).concat(Y)}},GR=($,...X)=>typeof $==="function"?sZ(aZ,$,...X):sZ(()=>dI(aZ(),$),...X);var rI=GR({extend:{classGroups:{"font-size":[{text:["display-2xl","display-xl","display-lg","display-md","display-sm","heading-lg","heading-md","heading-sm","body-xl","body-lg","body-md","body-sm","body-xs","label-md","label-sm","label-xs"]}]}}});function G0(...$){return rI(P$($))}var YR=($)=>typeof $==="boolean"?`${$}`:$===0?"0":$,JR=P$,D0=($,X)=>(G)=>{var Y;if((X===null||X===void 0?void 0:X.variants)==null)return JR($,G===null||G===void 0?void 0:G.class,G===null||G===void 0?void 0:G.className);let{variants:J,defaultVariants:W}=X,H=Object.keys(J).map((M)=>{let Q=G===null||G===void 0?void 0:G[M],q=W===null||W===void 0?void 0:W[M];if(Q===null)return null;let A=YR(Q)||YR(q);return J[M][A]}),U=G&&Object.entries(G).reduce((M,Q)=>{let[q,A]=Q;if(A===void 0)return M;return M[q]=A,M},{}),F=X===null||X===void 0?void 0:(Y=X.compoundVariants)===null||Y===void 0?void 0:Y.reduce((M,Q)=>{let{class:q,className:A,...Z}=Q;return Object.entries(Z).every((_)=>{let[z,D]=_;return Array.isArray(D)?D.includes({...W,...U}[z]):{...W,...U}[z]===D})?[...M,q,A]:M},[]);return JR($,H,F,G===null||G===void 0?void 0:G.class,G===null||G===void 0?void 0:G.className)};import{jsxDEV as U20}from"preact/jsx-dev-runtime";var iI=D0("p-4 rounded-lg border",{variants:{variant:{warning:"bg-warning border-warning text-warning",error:"bg-error border-error text-error",success:"bg-success border-success text-success",info:"bg-info border-info text-info"}},defaultVariants:{variant:"info"}});import{jsxDEV as nI}from"preact/jsx-dev-runtime";var WR=D0("inline-flex items-center justify-center font-bold transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed",{variants:{variant:{default:"bg-brand hover:bg-brand-dark text-theme-inverse",secondary:"bg-theme-muted hover:bg-theme-subtle text-theme border border-theme",ghost:"hover:bg-theme-subtle text-theme"},size:{sm:"h-8 px-3 text-sm rounded-md",md:"h-10 px-4 py-2 text-sm rounded-lg",lg:"h-12 px-6 text-base rounded-lg"}},defaultVariants:{variant:"default",size:"md"}});function L$({variant:$,size:X,className:G,children:Y,ssrOnClick:J,type:W="button",...H}){return nI("button",{type:W,className:G0(WR({variant:$,size:X}),G),...H,...J&&{onclick:J},children:Y},void 0,!1,void 0,this)}import{jsxDEV as oI}from"preact/jsx-dev-runtime";var HR=D0("inline-flex items-center justify-center font-semibold transition-all text-center",{variants:{variant:{primary:"bg-brand text-theme-inverse hover:bg-brand-dark focus:ring-brand/20 focus:outline-none focus:ring-4",accent:"bg-accent text-theme-inverse hover:bg-accent-dark focus:ring-accent/20 focus:outline-none focus:ring-4",secondary:"bg-theme-muted text-theme hover:bg-theme-muted-dark focus:outline-none focus:ring-4",outline:"border-2 border-brand text-brand hover:bg-brand hover:text-theme-inverse focus:ring-brand/20 focus:outline-none focus:ring-4","outline-light":"border-2 border-theme-light text-theme-inverse hover:bg-theme-inverse hover:text-brand hover:border-theme-inverse focus:outline-none focus:ring-4",unstyled:""},size:{icon:"w-10 h-10 rounded-full",sm:"px-3 py-1.5 text-sm rounded-lg",md:"px-4 py-2 text-sm rounded-lg",lg:"px-6 py-3 text-base rounded-xl",xl:"px-8 py-4 text-lg rounded-xl","2xl":"px-10 py-5 text-lg rounded-2xl"}},defaultVariants:{size:"md"}});function t1({href:$,children:X,variant:G,size:Y,external:J=!1,className:W,"aria-label":H}){let U=J?{target:"_blank",rel:"noopener noreferrer"}:{};return oI("a",{href:$,className:G0(HR({variant:G,size:Y}),W),"aria-label":H,...U,children:X},void 0,!1,void 0,this)}import{jsxDEV as C$}from"preact/jsx-dev-runtime";var UR=D0("transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-2",{variants:{variant:{default:"rounded-[10px] bg-theme-subtle border border-theme text-theme-muted hover:text-accent hover:border-brand/40",light:"rounded-[10px] bg-theme-subtle border border-theme text-theme-muted hover:text-accent",dark:"rounded-[10px] bg-theme-dark hover:bg-theme-muted text-theme-inverse",footer:"rounded-full bg-theme-toggle hover:bg-theme-toggle-hover text-theme-toggle-icon"},size:{sm:"p-1.5",md:"p-2",lg:"p-3"}},defaultVariants:{variant:"default",size:"md"}}),sI={sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"};function Q2({variant:$,size:X,className:G}){let Y=sI[X??"md"];return C$("button",{onclick:"toggleTheme()",type:"button",className:G0(UR({variant:$,size:X}),G),"aria-label":"Toggle dark mode",children:C$("svg",{className:G0(Y,"transition-colors"),fill:"none",stroke:"currentColor",strokeWidth:1.6,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[C$("path",{className:"sun-icon",strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"},void 0,!1,void 0,this),C$("path",{className:"moon-icon",strokeLinecap:"round",strokeLinejoin:"round",d:"M20.354 15.354A9 9 0 018.646 3.646 9 9 0 1020.354 15.354z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}import{jsxDEV as lG}from"preact/jsx-dev-runtime";var KR=D0("flex flex-wrap",{variants:{orientation:{horizontal:"justify-center gap-6 items-center",vertical:"flex-col gap-2.5"}},defaultVariants:{orientation:"horizontal"}});function T$({items:$,className:X,linkClassName:G="hover:text-accent transition-colors",orientation:Y,children:J}){if($.length===0&&!J)return null;let W=[...$].sort((H,U)=>H.priority-U.priority);return lG("ul",{className:G0(KR({orientation:Y}),X),children:[W.map((H)=>lG("li",{children:lG("a",{href:H.href,className:G,children:H.label},void 0,!1,void 0,this)},H.href,!1,void 0,this)),J]},void 0,!0,void 0,this)}import{jsxDEV as C20}from"preact/jsx-dev-runtime";import{jsxDEV as I20}from"preact/jsx-dev-runtime";I();I();import{createContext as aI,h as k20}from"preact";import{useContext as tI}from"preact/hooks";var eI=aI(null);function FR(){return tI(eI)}function r2(){let $=FR();return(X)=>cX(X,$?{imageRenderer:$}:void 0)}import{jsxDEV as S5}from"preact/jsx-dev-runtime";var cG=({markdown:$})=>{let X=r2(),Y=$.split(/^---$/gm).map((H)=>H.trim()).map((H)=>{let{attributes:U,markdown:F}=Z3(H),M=R3(F),Q;if(M)Q=`<div class="slide-columns">${M.map((A)=>`<div class="slide-column">${n9(X(A.trim()))}</div>`).join("")}</div>`;else Q=n9(X(F));return{attributes:U,htmlContent:Q}}),J=Y.some((H)=>H.htmlContent.includes('class="mermaid"')),W=Y.map(({attributes:H,htmlContent:U},F)=>S5("section",{...H,dangerouslySetInnerHTML:{__html:U}},F,!1,void 0,this));return S5("section",{className:"presentation-section",children:[S5("link",{rel:"stylesheet",href:"https://cdn.jsdelivr.net/npm/reveal.js@5.1.0/dist/reveal.min.css"},void 0,!1,void 0,this),S5("div",{className:"reveal",children:S5("div",{className:"slides",children:W},void 0,!1,void 0,this)},void 0,!1,void 0,this),S5("script",{src:"https://cdn.jsdelivr.net/npm/reveal.js@5.1.0/dist/reveal.min.js",defer:!0},void 0,!1,void 0,this),J&&S5("script",{src:"https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js",defer:!0},void 0,!1,void 0,this),S5("script",{dangerouslySetInnerHTML:{__html:`
212
212
  window.addEventListener('DOMContentLoaded', () => {
213
213
  if (window.Reveal) {
214
214
  window.Reveal.initialize({
@@ -743,7 +743,7 @@ ${F}`,templateName:"blog:excerpt"})).excerpt,await this.reportProgress(X,{progre
743
743
  font-size: 0.68rem;
744
744
  }
745
745
  }
746
- `}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as u1}from"preact/jsx-dev-runtime";var Xj={github:($)=>u1("svg",{className:$,fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:u1("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),instagram:($)=>u1("svg",{className:$,fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:u1("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),linkedin:($)=>u1("svg",{className:$,fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:u1("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),email:($)=>u1("svg",{className:$,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:u1("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),website:($)=>u1("svg",{className:$,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:u1("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"},void 0,!1,void 0,this)},void 0,!1,void 0,this)};function oG({links:$,className:X,iconClassName:G="w-5 h-5"}){if($.length===0)return null;return u1("div",{className:o("flex gap-4 items-center",X),children:$.map((Y,J)=>{let W=Xj[Y.platform],H=`${Y.platform.charAt(0).toUpperCase()}${Y.platform.slice(1)}`;return u1("a",{href:Y.url,target:"_blank",rel:"noopener noreferrer","aria-label":Y.label??H,className:"inline-block transition-opacity hover:opacity-70",children:W(G)},`${Y.platform}-${J}`,!1,void 0,this)})},void 0,!1,void 0,this)}import{jsxDEV as x1}from"preact/jsx-dev-runtime";function sG({cta:$,variant:X="centered",socialLinks:G}){if(X==="editorial")return x1("section",{className:"cta-bg-pattern bg-theme-subtle py-24 md:py-32 px-6 md:px-12 relative",children:[x1("div",{className:"section-divider absolute top-0 left-0 right-0"},void 0,!1,void 0,this),x1("div",{className:"max-w-4xl mx-auto",children:[x1("p",{className:"text-sm tracking-widest uppercase text-theme-muted mb-4",children:"Get in Touch"},void 0,!1,void 0,this),x1("h2",{className:"text-3xl md:text-4xl font-semibold text-heading max-w-2xl mb-10",children:$.heading},void 0,!1,void 0,this),x1("div",{className:"flex flex-wrap items-center gap-6",children:[x1(p1,{href:$.buttonLink,variant:"primary",size:"lg",children:$.buttonText},void 0,!1,void 0,this),G&&G.length>0&&G.map((Y,J)=>x1("a",{href:Y.url,target:"_blank",rel:"noopener noreferrer",className:"text-theme-muted hover:text-brand transition-colors",children:Y.label??Y.platform},J,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);return x1("section",{className:"cta-bg-pattern bg-brand py-16 md:py-24 px-6 md:px-12",children:x1("div",{className:"max-w-4xl mx-auto text-center",children:[x1("h2",{className:"text-2xl md:text-3xl font-bold text-inverse mb-4 font-heading",children:$.heading},void 0,!1,void 0,this),$.subtitle&&x1("p",{className:"text-base md:text-lg text-inverse opacity-80 mb-6 max-w-md mx-auto",children:$.subtitle},void 0,!1,void 0,this),x1(p1,{href:$.buttonLink,variant:"outline-light",size:"lg",children:$.buttonText},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}import{jsxDEV as aG}from"preact/jsx-dev-runtime";var tG=({primaryNavigation:$,secondaryNavigation:X,copyright:G,socialLinks:Y,children:J})=>{return aG("footer",{className:"footer pt-8 sm:pt-14 pb-7 sm:pb-10 bg-footer",children:aG("div",{className:"container mx-auto px-6 max-w-layout",children:aG(eG,{primaryNav:$,secondaryNav:X,copyright:G??"Powered by Rizom",socialLinks:Y,showThemeToggle:!0,variant:"default",children:J},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)};import{jsxDEV as Q1}from"preact/jsx-dev-runtime";function QZ({children:$,variant:X}){return Q1("div",{className:X==="cta"?"text-[10px] font-mono font-bold uppercase tracking-[0.16em] text-white opacity-40 mb-5":"text-[10px] font-mono font-bold uppercase tracking-[0.16em] text-brand opacity-60 mb-5",children:$},void 0,!1,void 0,this)}function eG({primaryNav:$,secondaryNav:X,copyright:G,socialLinks:Y,showThemeToggle:J=!1,variant:W="default",children:H}){let U=W==="cta"?"text-white/70 hover:text-accent text-sm":"text-theme-muted hover:text-brand text-sm",F=W==="cta"?"w-4 h-4 text-white opacity-40 hover:opacity-100 hover:text-accent":"w-4 h-4 text-theme-light hover:text-brand hover:opacity-100",M=W==="cta"?"text-[11px] text-white opacity-30 font-mono tracking-[0.04em]":"text-[11px] text-theme-light font-mono tracking-[0.04em]",Q=X.length>0,q=Y&&Y.length>0;return Q1("div",{children:[Q1("div",{className:"flex flex-col sm:flex-row sm:items-start sm:gap-12",children:[H&&Q1("div",{className:"order-first sm:order-last sm:ml-auto pb-7 border-b border-theme-light sm:pb-0 sm:border-b-0",children:H},void 0,!1,void 0,this),Q1("div",{className:"grid grid-cols-2 sm:flex sm:gap-12 pt-7 sm:pt-0",children:[$.length>0&&Q1("div",{children:[Q1(QZ,{variant:W,children:"Navigate"},void 0,!1,void 0,this),Q1(I$,{items:$,orientation:"vertical",linkClassName:U},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q&&Q1("div",{children:[Q1(QZ,{variant:W,children:"More"},void 0,!1,void 0,this),Q1(I$,{items:X,orientation:"vertical",linkClassName:U},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Q1("div",{className:"mt-7 sm:mt-12 pt-5 border-t border-theme-light flex flex-row justify-between items-center gap-4",children:[G&&Q1("p",{className:M,children:G},void 0,!1,void 0,this),Q1("div",{className:"flex items-center gap-5",children:[q&&Q1(oG,{links:Y,iconClassName:F},void 0,!1,void 0,this),J&&Q1(q2,{variant:"footer",size:"sm"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}import{jsxDEV as s}from"preact/jsx-dev-runtime";var Gj=D0("",{variants:{variant:{full:"",icon:"",text:""}},defaultVariants:{variant:"full"}});function j$({variant:$,height:X=32,className:G,color:Y="currentColor",title:J}){if(J)return s("span",{className:o("font-semibold text-xl uppercase tracking-wide",G),children:J},void 0,!1,void 0,this);let W=$??"full";if(W==="icon")return s("svg",{height:X,viewBox:"0 0 60 59",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:G,"aria-label":"Rizom logo",children:s("g",{id:"Group",children:[s("path",{id:"Vector",d:"M29.8235 22.1142C31.7219 22.1142 33.5065 22.8336 34.8489 24.1412C36.1913 25.4481 36.9309 27.1856 36.9309 29.0338C36.9309 30.882 36.192 32.6195 34.8489 33.9265C33.5065 35.2334 31.7219 35.9535 29.8235 35.9535C27.9251 35.9535 26.1405 35.234 24.7981 33.9265C23.4557 32.6189 22.7167 30.882 22.7167 29.0338C22.7167 27.1856 23.4557 25.4481 24.7981 24.1412C26.1405 22.8342 27.9251 22.1142 29.8235 22.1142ZM29.8235 17.1881C23.104 17.1881 17.6562 22.4918 17.6562 29.0338C17.6562 35.5758 23.104 40.8796 29.8235 40.8796C36.543 40.8796 41.9907 35.5758 41.9907 29.0338C41.9907 22.4918 36.543 17.1881 29.8235 17.1881Z",fill:Y},void 0,!1,void 0,this),s("g",{id:"Group_2",children:[s("path",{id:"Vector_2",d:"M13.2469 29.0338C13.2469 33.2709 14.9323 37.1315 17.6846 40.0136C11.8265 39.6006 7.20517 34.8424 7.20517 29.0338C7.20517 23.2253 11.8265 18.4671 17.6846 18.0541C14.9323 20.9362 13.2469 24.798 13.2469 29.0338Z",fill:Y},void 0,!1,void 0,this),s("path",{id:"Vector_3",d:"M52.4385 29.0338C52.4385 34.8424 47.8172 39.6006 41.9591 40.0136C44.7114 37.1315 46.3967 33.2709 46.3967 29.0338C46.3967 24.7968 44.7114 20.9362 41.9591 18.0541C47.8172 18.4671 52.4385 23.2253 52.4385 29.0338Z",fill:Y},void 0,!1,void 0,this),s("g",{id:"Group_3",children:[s("path",{id:"Vector_4",d:"M59.7265 29.0338C59.7265 32.172 57.6563 34.84 54.7735 35.8142C56.0553 31.4628 56.056 26.6042 54.7735 22.2535C57.6563 23.2277 59.7265 25.8957 59.7265 29.0338Z",fill:Y},void 0,!1,void 0,this),s("path",{id:"Vector_5",d:"M3.97003 30.5734C4.08122 32.3778 4.3873 34.1312 4.86955 35.8139C-1.62448 33.824 -1.62136 24.2431 4.86955 22.2544C4.17929 24.8932 3.65582 27.8106 3.97003 30.5734Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s("path",{id:"Vector_6",d:"M41.0996 40.8504C40.6754 46.5537 35.788 51.0529 29.8218 51.0529C23.8557 51.0529 18.9683 46.5537 18.5441 40.8504C21.5044 43.5299 25.471 45.1708 29.8218 45.1708C34.1726 45.1708 38.1393 43.5299 41.0996 40.8504Z",fill:Y},void 0,!1,void 0,this),s("path",{id:"Vector_7",d:"M41.0996 17.2173C38.1393 14.5377 34.1739 12.8969 29.8218 12.8969C25.4698 12.8969 21.5044 14.5377 18.5441 17.2173C18.9683 11.514 23.8557 7.01479 29.8218 7.01479C35.788 7.01479 40.6754 11.514 41.0996 17.2173Z",fill:Y},void 0,!1,void 0,this),s("g",{id:"Group_4",children:[s("path",{id:"Vector_8",d:"M36.7862 53.3262C34.7417 59.6493 24.9007 59.6462 22.8574 53.3262C27.3257 54.5742 32.318 54.5742 36.7862 53.3262Z",fill:Y},void 0,!1,void 0,this),s("path",{id:"Vector_9",d:"M36.7862 4.74088C32.318 3.49294 27.3257 3.49294 22.8574 4.74088C24.902 -1.58155 34.743 -1.57851 36.7862 4.74088Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);if(W==="text")return s("svg",{height:X,viewBox:"0 0 138 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:G,"aria-label":"Rizom",children:s("g",{id:"RIZOM",children:[s("path",{d:"M5.24978 24.3876V31.7373H0V0.715879H10.0223C12.4086 0.715879 14.2858 1.43176 15.6539 2.86352C17.0538 4.26346 17.7538 6.01339 17.7538 8.1133C17.7538 9.99049 16.9902 11.7086 15.463 13.2676C17.7538 13.7767 19.5992 15.0494 20.9991 17.0857C22.3991 19.1219 23.099 21.54 23.099 24.3399V31.7373H17.8493V24.8172C17.8493 22.5263 17.2606 20.7287 16.0834 19.4242C14.938 18.1197 13.4108 17.4675 11.5018 17.4675C9.72005 17.4675 8.22466 18.0879 7.01562 19.3287C5.83839 20.5696 5.24978 22.2559 5.24978 24.3876ZM9.11553 5.82249H5.24978V14.7948C5.4725 14.5721 5.72704 14.3494 6.01339 14.1267C6.29974 13.904 6.602 13.6972 6.92017 13.5063C7.27015 13.3154 7.55651 13.1563 7.77922 13.029C8.03376 12.8699 8.36783 12.6949 8.78145 12.504C9.19507 12.2813 9.49733 12.1222 9.68824 12.0268C11.5972 11.0086 12.5518 9.86323 12.5518 8.59055C12.5518 7.7315 12.2495 7.06334 11.645 6.58609C11.0405 6.07702 10.1973 5.82249 9.11553 5.82249Z",fill:Y},void 0,!1,void 0,this),s("path",{d:"M33.3536 0.715879V31.7373H28.1039V0.715879H33.3536Z",fill:Y},void 0,!1,void 0,this),s("path",{d:"M61.3617 0.715879L46.71 26.5353H61.5049V31.7373H37.6422L52.3416 5.91794H39.3603V0.715879H61.3617Z",fill:Y},void 0,!1,void 0,this),s("path",{d:"M79.0133 32.4055C74.5908 32.4055 70.8205 30.8305 67.7024 27.6807C64.6162 24.5308 63.0731 20.6969 63.0731 16.1789C63.0731 11.7245 64.6162 7.9224 67.7024 4.77253C70.8205 1.59084 74.5908 0 79.0133 0C83.4359 0 87.2062 1.59084 90.3242 4.77253C93.4741 7.9224 95.049 11.7245 95.049 16.1789C95.049 20.6969 93.49 24.5308 90.3719 27.6807C87.2539 30.8305 83.4677 32.4055 79.0133 32.4055ZM79.0133 27.0125C81.9723 27.0125 84.4699 25.9626 86.5062 23.8626C88.5743 21.7627 89.6083 19.2015 89.6083 16.1789C89.6083 13.1881 88.5743 10.6586 86.5062 8.59055C84.4699 6.49064 81.9723 5.44068 79.0133 5.44068C76.0862 5.44068 73.6045 6.49064 71.5682 8.59055C69.5319 10.6586 68.5138 13.1881 68.5138 16.1789C68.5138 19.2015 69.5319 21.7627 71.5682 23.8626C73.6045 25.9626 76.0862 27.0125 79.0133 27.0125Z",fill:Y},void 0,!1,void 0,this),s("path",{d:"M126.682 0C129.545 0 132.011 1.04996 134.079 3.14987C136.147 5.21796 137.182 7.82695 137.182 10.9768V31.6896H131.932V10.7859C131.932 9.29052 131.423 8.01785 130.405 6.96789C129.386 5.91794 128.146 5.39296 126.682 5.39296C125.25 5.39296 124.025 5.90203 123.007 6.92017C121.989 7.93831 121.48 9.14735 121.48 10.5473V31.7373H116.182L116.23 10.5473C116.23 9.17917 115.705 7.98603 114.655 6.96789C113.605 5.91794 112.364 5.39296 110.933 5.39296C109.437 5.39296 108.165 5.91794 107.115 6.96789C106.065 8.01785 105.54 9.29052 105.54 10.7859V31.7373H100.338L100.29 10.9768C100.29 7.82695 101.324 5.21796 103.392 3.14987C105.492 1.04996 108.005 0 110.933 0C114.146 0 116.771 1.24086 118.807 3.72257C120.844 1.24086 123.468 0 126.682 0Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);let H=X,U=X*33/59,F=X*0.2;return s("div",{className:o("inline-flex items-center",G),style:{gap:`${F}px`},"aria-label":"Rizom logo",children:[s("svg",{height:H,viewBox:"0 0 60 59",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:s("g",{id:"Group",children:[s("path",{id:"Vector",d:"M29.8235 22.1142C31.7219 22.1142 33.5065 22.8336 34.8489 24.1412C36.1913 25.4481 36.9309 27.1856 36.9309 29.0338C36.9309 30.882 36.192 32.6195 34.8489 33.9265C33.5065 35.2334 31.7219 35.9535 29.8235 35.9535C27.9251 35.9535 26.1405 35.234 24.7981 33.9265C23.4557 32.6189 22.7167 30.882 22.7167 29.0338C22.7167 27.1856 23.4557 25.4481 24.7981 24.1412C26.1405 22.8342 27.9251 22.1142 29.8235 22.1142ZM29.8235 17.1881C23.104 17.1881 17.6562 22.4918 17.6562 29.0338C17.6562 35.5758 23.104 40.8796 29.8235 40.8796C36.543 40.8796 41.9907 35.5758 41.9907 29.0338C41.9907 22.4918 36.543 17.1881 29.8235 17.1881Z",fill:Y},void 0,!1,void 0,this),s("g",{id:"Group_2",children:[s("path",{id:"Vector_2",d:"M13.2469 29.0338C13.2469 33.2709 14.9323 37.1315 17.6846 40.0136C11.8265 39.6006 7.20517 34.8424 7.20517 29.0338C7.20517 23.2253 11.8265 18.4671 17.6846 18.0541C14.9323 20.9362 13.2469 24.798 13.2469 29.0338Z",fill:Y},void 0,!1,void 0,this),s("path",{id:"Vector_3",d:"M52.4385 29.0338C52.4385 34.8424 47.8172 39.6006 41.9591 40.0136C44.7114 37.1315 46.3967 33.2709 46.3967 29.0338C46.3967 24.7968 44.7114 20.9362 41.9591 18.0541C47.8172 18.4671 52.4385 23.2253 52.4385 29.0338Z",fill:Y},void 0,!1,void 0,this),s("g",{id:"Group_3",children:[s("path",{id:"Vector_4",d:"M59.7265 29.0338C59.7265 32.172 57.6563 34.84 54.7735 35.8142C56.0553 31.4628 56.056 26.6042 54.7735 22.2535C57.6563 23.2277 59.7265 25.8957 59.7265 29.0338Z",fill:Y},void 0,!1,void 0,this),s("path",{id:"Vector_5",d:"M3.97003 30.5734C4.08122 32.3778 4.3873 34.1312 4.86955 35.8139C-1.62448 33.824 -1.62136 24.2431 4.86955 22.2544C4.17929 24.8932 3.65582 27.8106 3.97003 30.5734Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s("path",{id:"Vector_6",d:"M41.0996 40.8504C40.6754 46.5537 35.788 51.0529 29.8218 51.0529C23.8557 51.0529 18.9683 46.5537 18.5441 40.8504C21.5044 43.5299 25.471 45.1708 29.8218 45.1708C34.1726 45.1708 38.1393 43.5299 41.0996 40.8504Z",fill:Y},void 0,!1,void 0,this),s("path",{id:"Vector_7",d:"M41.0996 17.2173C38.1393 14.5377 34.1739 12.8969 29.8218 12.8969C25.4698 12.8969 21.5044 14.5377 18.5441 17.2173C18.9683 11.514 23.8557 7.01479 29.8218 7.01479C35.788 7.01479 40.6754 11.514 41.0996 17.2173Z",fill:Y},void 0,!1,void 0,this),s("g",{id:"Group_4",children:[s("path",{id:"Vector_8",d:"M36.7862 53.3262C34.7417 59.6493 24.9007 59.6462 22.8574 53.3262C27.3257 54.5742 32.318 54.5742 36.7862 53.3262Z",fill:Y},void 0,!1,void 0,this),s("path",{id:"Vector_9",d:"M36.7862 4.74088C32.318 3.49294 27.3257 3.49294 22.8574 4.74088C24.902 -1.58155 34.743 -1.57851 36.7862 4.74088Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),s("svg",{height:U,viewBox:"0 0 138 33",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:s("g",{id:"RIZOM",children:[s("path",{d:"M5.24978 24.3876V31.7373H0V0.715879H10.0223C12.4086 0.715879 14.2858 1.43176 15.6539 2.86352C17.0538 4.26346 17.7538 6.01339 17.7538 8.1133C17.7538 9.99049 16.9902 11.7086 15.463 13.2676C17.7538 13.7767 19.5992 15.0494 20.9991 17.0857C22.3991 19.1219 23.099 21.54 23.099 24.3399V31.7373H17.8493V24.8172C17.8493 22.5263 17.2606 20.7287 16.0834 19.4242C14.938 18.1197 13.4108 17.4675 11.5018 17.4675C9.72005 17.4675 8.22466 18.0879 7.01562 19.3287C5.83839 20.5696 5.24978 22.2559 5.24978 24.3876ZM9.11553 5.82249H5.24978V14.7948C5.4725 14.5721 5.72704 14.3494 6.01339 14.1267C6.29974 13.904 6.602 13.6972 6.92017 13.5063C7.27015 13.3154 7.55651 13.1563 7.77922 13.029C8.03376 12.8699 8.36783 12.6949 8.78145 12.504C9.19507 12.2813 9.49733 12.1222 9.68824 12.0268C11.5972 11.0086 12.5518 9.86323 12.5518 8.59055C12.5518 7.7315 12.2495 7.06334 11.645 6.58609C11.0405 6.07702 10.1973 5.82249 9.11553 5.82249Z",fill:Y},void 0,!1,void 0,this),s("path",{d:"M33.3536 0.715879V31.7373H28.1039V0.715879H33.3536Z",fill:Y},void 0,!1,void 0,this),s("path",{d:"M61.3617 0.715879L46.71 26.5353H61.5049V31.7373H37.6422L52.3416 5.91794H39.3603V0.715879H61.3617Z",fill:Y},void 0,!1,void 0,this),s("path",{d:"M79.0133 32.4055C74.5908 32.4055 70.8205 30.8305 67.7024 27.6807C64.6162 24.5308 63.0731 20.6969 63.0731 16.1789C63.0731 11.7245 64.6162 7.9224 67.7024 4.77253C70.8205 1.59084 74.5908 0 79.0133 0C83.4359 0 87.2062 1.59084 90.3242 4.77253C93.4741 7.9224 95.049 11.7245 95.049 16.1789C95.049 20.6969 93.49 24.5308 90.3719 27.6807C87.2539 30.8305 83.4677 32.4055 79.0133 32.4055ZM79.0133 27.0125C81.9723 27.0125 84.4699 25.9626 86.5062 23.8626C88.5743 21.7627 89.6083 19.2015 89.6083 16.1789C89.6083 13.1881 88.5743 10.6586 86.5062 8.59055C84.4699 6.49064 81.9723 5.44068 79.0133 5.44068C76.0862 5.44068 73.6045 6.49064 71.5682 8.59055C69.5319 10.6586 68.5138 13.1881 68.5138 16.1789C68.5138 19.2015 69.5319 21.7627 71.5682 23.8626C73.6045 25.9626 76.0862 27.0125 79.0133 27.0125Z",fill:Y},void 0,!1,void 0,this),s("path",{d:"M126.682 0C129.545 0 132.011 1.04996 134.079 3.14987C136.147 5.21796 137.182 7.82695 137.182 10.9768V31.6896H131.932V10.7859C131.932 9.29052 131.423 8.01785 130.405 6.96789C129.386 5.91794 128.146 5.39296 126.682 5.39296C125.25 5.39296 124.025 5.90203 123.007 6.92017C121.989 7.93831 121.48 9.14735 121.48 10.5473V31.7373H116.182L116.23 10.5473C116.23 9.17917 115.705 7.98603 114.655 6.96789C113.605 5.91794 112.364 5.39296 110.933 5.39296C109.437 5.39296 108.165 5.91794 107.115 6.96789C106.065 8.01785 105.54 9.29052 105.54 10.7859V31.7373H100.338L100.29 10.9768C100.29 7.82695 101.324 5.21796 103.392 3.14987C105.492 1.04996 108.005 0 110.933 0C114.146 0 116.771 1.24086 118.807 3.72257C120.844 1.24086 123.468 0 126.682 0Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}import{jsxDEV as b0}from"preact/jsx-dev-runtime";function N8({title:$,logo:X,titleClassName:G,navigation:Y,cta:J,showThemeToggle:W=!1,themeToggleClassName:H}){return b0("header",{className:"py-4 border-b border-theme",children:b0("div",{className:"max-w-layout mx-auto px-6 md:px-8",children:[b0("div",{className:"flex flex-row justify-between items-center",children:[b0("a",{href:"/",className:"text-logo hover:opacity-80 transition-opacity",children:X?b0(j$,{height:36},void 0,!1,void 0,this):G?b0("span",{className:G,children:$},void 0,!1,void 0,this):b0(j$,{title:$,height:36},void 0,!1,void 0,this)},void 0,!1,void 0,this),b0("div",{className:"hidden md:flex items-center gap-6",children:[b0("nav",{className:"flex gap-6","aria-label":"Main navigation",children:Y.map((F)=>b0("a",{href:F.href,className:"text-sm text-theme hover:text-brand transition-colors",children:F.label},F.href,!1,void 0,this))},void 0,!1,void 0,this),J&&b0(p1,{href:J.buttonLink,variant:"accent",size:"sm",external:!0,className:"whitespace-nowrap",children:J.buttonText},void 0,!1,void 0,this),W&&b0(q2,{size:"sm",...H?{className:H}:{}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b0(T$,{variant:"ghost",ssrOnClick:"toggleMobileMenu()",type:"button",className:o("md:hidden p-2 h-auto rounded-lg","text-brand border border-brand/40 bg-brand/10","hover:bg-brand hover:text-theme-inverse hover:border-brand"),"aria-label":"Toggle navigation menu","aria-expanded":"false","aria-controls":"mobile-menu",id:"mobile-menu-button",children:b0("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:[b0("path",{className:"menu-icon",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"},void 0,!1,void 0,this),b0("path",{className:"close-icon hidden",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b0("nav",{id:"mobile-menu","aria-label":"Mobile navigation",className:"md:hidden overflow-hidden transition-all duration-300 ease-in-out max-h-0 opacity-0",children:b0("div",{className:"flex flex-col gap-3 mt-4 pb-2 pt-4 border-t border-theme",children:[Y.map((F)=>b0("a",{href:F.href,onclick:"closeMobileMenu()",className:"text-sm text-theme hover:text-brand transition-colors py-1",children:F.label},F.href,!1,void 0,this)),J&&b0(p1,{href:J.buttonLink,variant:"accent",size:"sm",external:!0,className:"mt-2",children:J.buttonText},void 0,!1,void 0,this),W&&b0("div",{className:"pt-2 mt-2 border-t border-theme",children:b0(q2,{size:"sm",...H?{className:H}:{}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}import{jsxDEV as Yj}from"preact/jsx-dev-runtime";var $Y=({html:$,className:X})=>{return Yj("article",{className:o(`prose prose-lg max-w-none
746
+ `}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as p1}from"preact/jsx-dev-runtime";var $j={github:($)=>p1("svg",{className:$,fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:p1("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),instagram:($)=>p1("svg",{className:$,fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:p1("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),linkedin:($)=>p1("svg",{className:$,fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:p1("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),email:($)=>p1("svg",{className:$,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:p1("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),website:($)=>p1("svg",{className:$,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:p1("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"},void 0,!1,void 0,this)},void 0,!1,void 0,this)};function rG({links:$,className:X,iconClassName:G="w-5 h-5"}){if($.length===0)return null;return p1("div",{className:G0("flex gap-4 items-center",X),children:$.map((Y,J)=>{let W=$j[Y.platform],H=`${Y.platform.charAt(0).toUpperCase()}${Y.platform.slice(1)}`;return p1("a",{href:Y.url,target:"_blank",rel:"noopener noreferrer","aria-label":Y.label??H,className:"inline-block transition-opacity hover:opacity-70",children:W(G)},`${Y.platform}-${J}`,!1,void 0,this)})},void 0,!1,void 0,this)}import{jsxDEV as x1}from"preact/jsx-dev-runtime";function iG({cta:$,variant:X="centered",socialLinks:G}){if(X==="editorial")return x1("section",{className:"cta-bg-pattern py-28 md:py-32 px-6 md:px-12",children:x1("div",{className:"max-w-5xl mx-auto",children:[x1("span",{className:"inline-flex items-center gap-[0.6rem] font-mono text-[0.7rem] font-medium uppercase tracking-[0.22em] text-accent mb-6 before:content-[''] before:w-[18px] before:h-px before:bg-accent",children:"Get in touch"},void 0,!1,void 0,this),x1("h2",{className:"font-heading font-normal text-heading leading-[1.05] tracking-[-0.02em] text-[clamp(2.25rem,4.5vw,3.5rem)] max-w-[18ch] mb-10 [font-variation-settings:'opsz'_96,'SOFT'_60]",children:$.heading},void 0,!1,void 0,this),x1("div",{className:"flex flex-wrap items-center gap-7",children:[x1("a",{href:$.buttonLink,className:"inline-flex items-center gap-2 font-mono text-[0.78rem] font-medium uppercase tracking-[0.14em] bg-accent text-theme-inverse px-6 py-[0.95rem] rounded-xl transition-[background,transform] duration-150 hover:bg-[var(--color-text)] hover:-translate-y-px",children:[$.buttonText,x1("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G&&G.length>0&&G.map((Y,J)=>x1("a",{href:Y.url,target:"_blank",rel:"noopener noreferrer",className:"font-mono text-[0.72rem] font-medium uppercase tracking-[0.16em] text-theme-muted hover:text-accent transition-colors relative pb-[3px] before:content-[''] before:absolute before:left-0 before:right-full before:bottom-0 before:h-px before:bg-accent before:transition-[right] before:duration-300 hover:before:right-0",children:Y.label??Y.platform},J,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);return x1("section",{className:"cta-bg-pattern bg-brand py-16 md:py-24 px-6 md:px-12",children:x1("div",{className:"max-w-4xl mx-auto text-center",children:[x1("h2",{className:"text-2xl md:text-3xl font-bold text-inverse mb-4 font-heading",children:$.heading},void 0,!1,void 0,this),$.subtitle&&x1("p",{className:"text-base md:text-lg text-inverse opacity-80 mb-6 max-w-md mx-auto",children:$.subtitle},void 0,!1,void 0,this),x1(t1,{href:$.buttonLink,variant:"outline-light",size:"lg",children:$.buttonText},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}import{jsxDEV as nG}from"preact/jsx-dev-runtime";var oG=({primaryNavigation:$,secondaryNavigation:X,copyright:G,socialLinks:Y,title:J,tagline:W,children:H})=>{return nG("footer",{className:"footer pt-14 pb-10 bg-footer border-t border-rule",children:nG("div",{className:"container mx-auto px-6 max-w-layout",children:nG(sG,{primaryNav:$,secondaryNav:X,copyright:G??"Powered by Rizom",socialLinks:Y,showThemeToggle:!0,variant:"default",title:J,tagline:W,children:H},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)};import{jsxDEV as o}from"preact/jsx-dev-runtime";var Xj=D0("",{variants:{variant:{full:"",icon:"",text:""}},defaultVariants:{variant:"full"}});function a6({variant:$,height:X=32,className:G,color:Y="currentColor",title:J}){if(J)return o("span",{className:G0("font-heading font-medium text-[1.4rem] leading-none tracking-[-0.01em] [font-variation-settings:'opsz'_24,'SOFT'_50]",G),children:J},void 0,!1,void 0,this);let W=$??"full";if(W==="icon")return o("svg",{height:X,viewBox:"0 0 60 59",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:G,"aria-label":"Rizom logo",children:o("g",{id:"Group",children:[o("path",{id:"Vector",d:"M29.8235 22.1142C31.7219 22.1142 33.5065 22.8336 34.8489 24.1412C36.1913 25.4481 36.9309 27.1856 36.9309 29.0338C36.9309 30.882 36.192 32.6195 34.8489 33.9265C33.5065 35.2334 31.7219 35.9535 29.8235 35.9535C27.9251 35.9535 26.1405 35.234 24.7981 33.9265C23.4557 32.6189 22.7167 30.882 22.7167 29.0338C22.7167 27.1856 23.4557 25.4481 24.7981 24.1412C26.1405 22.8342 27.9251 22.1142 29.8235 22.1142ZM29.8235 17.1881C23.104 17.1881 17.6562 22.4918 17.6562 29.0338C17.6562 35.5758 23.104 40.8796 29.8235 40.8796C36.543 40.8796 41.9907 35.5758 41.9907 29.0338C41.9907 22.4918 36.543 17.1881 29.8235 17.1881Z",fill:Y},void 0,!1,void 0,this),o("g",{id:"Group_2",children:[o("path",{id:"Vector_2",d:"M13.2469 29.0338C13.2469 33.2709 14.9323 37.1315 17.6846 40.0136C11.8265 39.6006 7.20517 34.8424 7.20517 29.0338C7.20517 23.2253 11.8265 18.4671 17.6846 18.0541C14.9323 20.9362 13.2469 24.798 13.2469 29.0338Z",fill:Y},void 0,!1,void 0,this),o("path",{id:"Vector_3",d:"M52.4385 29.0338C52.4385 34.8424 47.8172 39.6006 41.9591 40.0136C44.7114 37.1315 46.3967 33.2709 46.3967 29.0338C46.3967 24.7968 44.7114 20.9362 41.9591 18.0541C47.8172 18.4671 52.4385 23.2253 52.4385 29.0338Z",fill:Y},void 0,!1,void 0,this),o("g",{id:"Group_3",children:[o("path",{id:"Vector_4",d:"M59.7265 29.0338C59.7265 32.172 57.6563 34.84 54.7735 35.8142C56.0553 31.4628 56.056 26.6042 54.7735 22.2535C57.6563 23.2277 59.7265 25.8957 59.7265 29.0338Z",fill:Y},void 0,!1,void 0,this),o("path",{id:"Vector_5",d:"M3.97003 30.5734C4.08122 32.3778 4.3873 34.1312 4.86955 35.8139C-1.62448 33.824 -1.62136 24.2431 4.86955 22.2544C4.17929 24.8932 3.65582 27.8106 3.97003 30.5734Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this),o("path",{id:"Vector_6",d:"M41.0996 40.8504C40.6754 46.5537 35.788 51.0529 29.8218 51.0529C23.8557 51.0529 18.9683 46.5537 18.5441 40.8504C21.5044 43.5299 25.471 45.1708 29.8218 45.1708C34.1726 45.1708 38.1393 43.5299 41.0996 40.8504Z",fill:Y},void 0,!1,void 0,this),o("path",{id:"Vector_7",d:"M41.0996 17.2173C38.1393 14.5377 34.1739 12.8969 29.8218 12.8969C25.4698 12.8969 21.5044 14.5377 18.5441 17.2173C18.9683 11.514 23.8557 7.01479 29.8218 7.01479C35.788 7.01479 40.6754 11.514 41.0996 17.2173Z",fill:Y},void 0,!1,void 0,this),o("g",{id:"Group_4",children:[o("path",{id:"Vector_8",d:"M36.7862 53.3262C34.7417 59.6493 24.9007 59.6462 22.8574 53.3262C27.3257 54.5742 32.318 54.5742 36.7862 53.3262Z",fill:Y},void 0,!1,void 0,this),o("path",{id:"Vector_9",d:"M36.7862 4.74088C32.318 3.49294 27.3257 3.49294 22.8574 4.74088C24.902 -1.58155 34.743 -1.57851 36.7862 4.74088Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);if(W==="text")return o("svg",{height:X,viewBox:"0 0 138 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:G,"aria-label":"Rizom",children:o("g",{id:"RIZOM",children:[o("path",{d:"M5.24978 24.3876V31.7373H0V0.715879H10.0223C12.4086 0.715879 14.2858 1.43176 15.6539 2.86352C17.0538 4.26346 17.7538 6.01339 17.7538 8.1133C17.7538 9.99049 16.9902 11.7086 15.463 13.2676C17.7538 13.7767 19.5992 15.0494 20.9991 17.0857C22.3991 19.1219 23.099 21.54 23.099 24.3399V31.7373H17.8493V24.8172C17.8493 22.5263 17.2606 20.7287 16.0834 19.4242C14.938 18.1197 13.4108 17.4675 11.5018 17.4675C9.72005 17.4675 8.22466 18.0879 7.01562 19.3287C5.83839 20.5696 5.24978 22.2559 5.24978 24.3876ZM9.11553 5.82249H5.24978V14.7948C5.4725 14.5721 5.72704 14.3494 6.01339 14.1267C6.29974 13.904 6.602 13.6972 6.92017 13.5063C7.27015 13.3154 7.55651 13.1563 7.77922 13.029C8.03376 12.8699 8.36783 12.6949 8.78145 12.504C9.19507 12.2813 9.49733 12.1222 9.68824 12.0268C11.5972 11.0086 12.5518 9.86323 12.5518 8.59055C12.5518 7.7315 12.2495 7.06334 11.645 6.58609C11.0405 6.07702 10.1973 5.82249 9.11553 5.82249Z",fill:Y},void 0,!1,void 0,this),o("path",{d:"M33.3536 0.715879V31.7373H28.1039V0.715879H33.3536Z",fill:Y},void 0,!1,void 0,this),o("path",{d:"M61.3617 0.715879L46.71 26.5353H61.5049V31.7373H37.6422L52.3416 5.91794H39.3603V0.715879H61.3617Z",fill:Y},void 0,!1,void 0,this),o("path",{d:"M79.0133 32.4055C74.5908 32.4055 70.8205 30.8305 67.7024 27.6807C64.6162 24.5308 63.0731 20.6969 63.0731 16.1789C63.0731 11.7245 64.6162 7.9224 67.7024 4.77253C70.8205 1.59084 74.5908 0 79.0133 0C83.4359 0 87.2062 1.59084 90.3242 4.77253C93.4741 7.9224 95.049 11.7245 95.049 16.1789C95.049 20.6969 93.49 24.5308 90.3719 27.6807C87.2539 30.8305 83.4677 32.4055 79.0133 32.4055ZM79.0133 27.0125C81.9723 27.0125 84.4699 25.9626 86.5062 23.8626C88.5743 21.7627 89.6083 19.2015 89.6083 16.1789C89.6083 13.1881 88.5743 10.6586 86.5062 8.59055C84.4699 6.49064 81.9723 5.44068 79.0133 5.44068C76.0862 5.44068 73.6045 6.49064 71.5682 8.59055C69.5319 10.6586 68.5138 13.1881 68.5138 16.1789C68.5138 19.2015 69.5319 21.7627 71.5682 23.8626C73.6045 25.9626 76.0862 27.0125 79.0133 27.0125Z",fill:Y},void 0,!1,void 0,this),o("path",{d:"M126.682 0C129.545 0 132.011 1.04996 134.079 3.14987C136.147 5.21796 137.182 7.82695 137.182 10.9768V31.6896H131.932V10.7859C131.932 9.29052 131.423 8.01785 130.405 6.96789C129.386 5.91794 128.146 5.39296 126.682 5.39296C125.25 5.39296 124.025 5.90203 123.007 6.92017C121.989 7.93831 121.48 9.14735 121.48 10.5473V31.7373H116.182L116.23 10.5473C116.23 9.17917 115.705 7.98603 114.655 6.96789C113.605 5.91794 112.364 5.39296 110.933 5.39296C109.437 5.39296 108.165 5.91794 107.115 6.96789C106.065 8.01785 105.54 9.29052 105.54 10.7859V31.7373H100.338L100.29 10.9768C100.29 7.82695 101.324 5.21796 103.392 3.14987C105.492 1.04996 108.005 0 110.933 0C114.146 0 116.771 1.24086 118.807 3.72257C120.844 1.24086 123.468 0 126.682 0Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);let H=X,U=X*33/59,F=X*0.2;return o("div",{className:G0("inline-flex items-center",G),style:{gap:`${F}px`},"aria-label":"Rizom logo",children:[o("svg",{height:H,viewBox:"0 0 60 59",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:o("g",{id:"Group",children:[o("path",{id:"Vector",d:"M29.8235 22.1142C31.7219 22.1142 33.5065 22.8336 34.8489 24.1412C36.1913 25.4481 36.9309 27.1856 36.9309 29.0338C36.9309 30.882 36.192 32.6195 34.8489 33.9265C33.5065 35.2334 31.7219 35.9535 29.8235 35.9535C27.9251 35.9535 26.1405 35.234 24.7981 33.9265C23.4557 32.6189 22.7167 30.882 22.7167 29.0338C22.7167 27.1856 23.4557 25.4481 24.7981 24.1412C26.1405 22.8342 27.9251 22.1142 29.8235 22.1142ZM29.8235 17.1881C23.104 17.1881 17.6562 22.4918 17.6562 29.0338C17.6562 35.5758 23.104 40.8796 29.8235 40.8796C36.543 40.8796 41.9907 35.5758 41.9907 29.0338C41.9907 22.4918 36.543 17.1881 29.8235 17.1881Z",fill:Y},void 0,!1,void 0,this),o("g",{id:"Group_2",children:[o("path",{id:"Vector_2",d:"M13.2469 29.0338C13.2469 33.2709 14.9323 37.1315 17.6846 40.0136C11.8265 39.6006 7.20517 34.8424 7.20517 29.0338C7.20517 23.2253 11.8265 18.4671 17.6846 18.0541C14.9323 20.9362 13.2469 24.798 13.2469 29.0338Z",fill:Y},void 0,!1,void 0,this),o("path",{id:"Vector_3",d:"M52.4385 29.0338C52.4385 34.8424 47.8172 39.6006 41.9591 40.0136C44.7114 37.1315 46.3967 33.2709 46.3967 29.0338C46.3967 24.7968 44.7114 20.9362 41.9591 18.0541C47.8172 18.4671 52.4385 23.2253 52.4385 29.0338Z",fill:Y},void 0,!1,void 0,this),o("g",{id:"Group_3",children:[o("path",{id:"Vector_4",d:"M59.7265 29.0338C59.7265 32.172 57.6563 34.84 54.7735 35.8142C56.0553 31.4628 56.056 26.6042 54.7735 22.2535C57.6563 23.2277 59.7265 25.8957 59.7265 29.0338Z",fill:Y},void 0,!1,void 0,this),o("path",{id:"Vector_5",d:"M3.97003 30.5734C4.08122 32.3778 4.3873 34.1312 4.86955 35.8139C-1.62448 33.824 -1.62136 24.2431 4.86955 22.2544C4.17929 24.8932 3.65582 27.8106 3.97003 30.5734Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this),o("path",{id:"Vector_6",d:"M41.0996 40.8504C40.6754 46.5537 35.788 51.0529 29.8218 51.0529C23.8557 51.0529 18.9683 46.5537 18.5441 40.8504C21.5044 43.5299 25.471 45.1708 29.8218 45.1708C34.1726 45.1708 38.1393 43.5299 41.0996 40.8504Z",fill:Y},void 0,!1,void 0,this),o("path",{id:"Vector_7",d:"M41.0996 17.2173C38.1393 14.5377 34.1739 12.8969 29.8218 12.8969C25.4698 12.8969 21.5044 14.5377 18.5441 17.2173C18.9683 11.514 23.8557 7.01479 29.8218 7.01479C35.788 7.01479 40.6754 11.514 41.0996 17.2173Z",fill:Y},void 0,!1,void 0,this),o("g",{id:"Group_4",children:[o("path",{id:"Vector_8",d:"M36.7862 53.3262C34.7417 59.6493 24.9007 59.6462 22.8574 53.3262C27.3257 54.5742 32.318 54.5742 36.7862 53.3262Z",fill:Y},void 0,!1,void 0,this),o("path",{id:"Vector_9",d:"M36.7862 4.74088C32.318 3.49294 27.3257 3.49294 22.8574 4.74088C24.902 -1.58155 34.743 -1.57851 36.7862 4.74088Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),o("svg",{height:U,viewBox:"0 0 138 33",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:o("g",{id:"RIZOM",children:[o("path",{d:"M5.24978 24.3876V31.7373H0V0.715879H10.0223C12.4086 0.715879 14.2858 1.43176 15.6539 2.86352C17.0538 4.26346 17.7538 6.01339 17.7538 8.1133C17.7538 9.99049 16.9902 11.7086 15.463 13.2676C17.7538 13.7767 19.5992 15.0494 20.9991 17.0857C22.3991 19.1219 23.099 21.54 23.099 24.3399V31.7373H17.8493V24.8172C17.8493 22.5263 17.2606 20.7287 16.0834 19.4242C14.938 18.1197 13.4108 17.4675 11.5018 17.4675C9.72005 17.4675 8.22466 18.0879 7.01562 19.3287C5.83839 20.5696 5.24978 22.2559 5.24978 24.3876ZM9.11553 5.82249H5.24978V14.7948C5.4725 14.5721 5.72704 14.3494 6.01339 14.1267C6.29974 13.904 6.602 13.6972 6.92017 13.5063C7.27015 13.3154 7.55651 13.1563 7.77922 13.029C8.03376 12.8699 8.36783 12.6949 8.78145 12.504C9.19507 12.2813 9.49733 12.1222 9.68824 12.0268C11.5972 11.0086 12.5518 9.86323 12.5518 8.59055C12.5518 7.7315 12.2495 7.06334 11.645 6.58609C11.0405 6.07702 10.1973 5.82249 9.11553 5.82249Z",fill:Y},void 0,!1,void 0,this),o("path",{d:"M33.3536 0.715879V31.7373H28.1039V0.715879H33.3536Z",fill:Y},void 0,!1,void 0,this),o("path",{d:"M61.3617 0.715879L46.71 26.5353H61.5049V31.7373H37.6422L52.3416 5.91794H39.3603V0.715879H61.3617Z",fill:Y},void 0,!1,void 0,this),o("path",{d:"M79.0133 32.4055C74.5908 32.4055 70.8205 30.8305 67.7024 27.6807C64.6162 24.5308 63.0731 20.6969 63.0731 16.1789C63.0731 11.7245 64.6162 7.9224 67.7024 4.77253C70.8205 1.59084 74.5908 0 79.0133 0C83.4359 0 87.2062 1.59084 90.3242 4.77253C93.4741 7.9224 95.049 11.7245 95.049 16.1789C95.049 20.6969 93.49 24.5308 90.3719 27.6807C87.2539 30.8305 83.4677 32.4055 79.0133 32.4055ZM79.0133 27.0125C81.9723 27.0125 84.4699 25.9626 86.5062 23.8626C88.5743 21.7627 89.6083 19.2015 89.6083 16.1789C89.6083 13.1881 88.5743 10.6586 86.5062 8.59055C84.4699 6.49064 81.9723 5.44068 79.0133 5.44068C76.0862 5.44068 73.6045 6.49064 71.5682 8.59055C69.5319 10.6586 68.5138 13.1881 68.5138 16.1789C68.5138 19.2015 69.5319 21.7627 71.5682 23.8626C73.6045 25.9626 76.0862 27.0125 79.0133 27.0125Z",fill:Y},void 0,!1,void 0,this),o("path",{d:"M126.682 0C129.545 0 132.011 1.04996 134.079 3.14987C136.147 5.21796 137.182 7.82695 137.182 10.9768V31.6896H131.932V10.7859C131.932 9.29052 131.423 8.01785 130.405 6.96789C129.386 5.91794 128.146 5.39296 126.682 5.39296C125.25 5.39296 124.025 5.90203 123.007 6.92017C121.989 7.93831 121.48 9.14735 121.48 10.5473V31.7373H116.182L116.23 10.5473C116.23 9.17917 115.705 7.98603 114.655 6.96789C113.605 5.91794 112.364 5.39296 110.933 5.39296C109.437 5.39296 108.165 5.91794 107.115 6.96789C106.065 8.01785 105.54 9.29052 105.54 10.7859V31.7373H100.338L100.29 10.9768C100.29 7.82695 101.324 5.21796 103.392 3.14987C105.492 1.04996 108.005 0 110.933 0C114.146 0 116.771 1.24086 118.807 3.72257C120.844 1.24086 123.468 0 126.682 0Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}import{jsxDEV as p0}from"preact/jsx-dev-runtime";function MR({children:$,variant:X}){return p0("div",{className:X==="cta"?"font-mono text-[11px] font-medium uppercase tracking-[0.2em] text-white/70 mb-5":"font-mono text-[11px] font-medium uppercase tracking-[0.2em] text-accent/80 mb-5",children:$},void 0,!1,void 0,this)}function sG({primaryNav:$,secondaryNav:X,copyright:G,socialLinks:Y,showThemeToggle:J=!1,variant:W="default",title:H,tagline:U,children:F}){let M=W==="cta"?"text-white/70 hover:text-accent text-sm":"text-theme-muted hover:text-brand text-sm",Q=W==="cta"?"w-4 h-4 text-white opacity-40 hover:opacity-100 hover:text-accent":"w-4 h-4 text-theme-light hover:text-brand hover:opacity-100",q=X.length>0,A=Y&&Y.length>0,Z=Boolean(H),_=Array.isArray(F)?F.length>0:Boolean(F);return p0("div",{children:[p0("div",{className:"flex flex-col gap-10 sm:flex-row sm:items-start sm:gap-12",children:[Z&&p0("div",{className:"sm:max-w-[18rem] sm:flex-1",children:[p0("a",{href:"/",className:"text-logo inline-block mb-2",children:p0(a6,{title:H,className:"text-[1.25rem]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),U&&p0("p",{className:`text-[0.85rem] leading-[1.55] ${W==="cta"?"text-white/60":"text-theme-muted"} max-w-[30ch]`,children:U},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p0("div",{className:"grid grid-cols-2 sm:flex sm:gap-12",children:[$.length>0&&p0("div",{children:[p0(MR,{variant:W,children:"Navigate"},void 0,!1,void 0,this),p0(T$,{items:$,orientation:"vertical",linkClassName:M},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q&&p0("div",{children:[p0(MR,{variant:W,children:"More"},void 0,!1,void 0,this),p0(T$,{items:X,orientation:"vertical",linkClassName:M},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),_&&p0("div",{className:"sm:ml-auto sm:max-w-[20rem]",children:F},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p0("div",{className:"mt-14 pt-6 border-t border-rule flex flex-row flex-wrap justify-between items-center gap-4",children:[G&&p0("p",{className:"font-mono text-[0.7rem] uppercase tracking-[0.16em] text-theme-light",children:G},void 0,!1,void 0,this),p0("div",{className:"flex items-center gap-5",children:[A&&p0(rG,{links:Y,iconClassName:Q},void 0,!1,void 0,this),J&&p0(Q2,{variant:"footer",size:"sm"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}import{jsxDEV as h0}from"preact/jsx-dev-runtime";function w8({title:$,logo:X,titleClassName:G,navigation:Y,cta:J,showThemeToggle:W=!1,themeToggleClassName:H}){return h0("header",{className:"sticky top-0 z-50 py-5 border-b border-rule bg-header",children:h0("div",{className:"max-w-layout mx-auto px-6 md:px-8",children:[h0("div",{className:"flex flex-row justify-between items-center gap-8",children:[h0("a",{href:"/",className:"text-logo hover:opacity-80 transition-opacity",children:X?h0(a6,{height:36},void 0,!1,void 0,this):G?h0("span",{className:G,children:$},void 0,!1,void 0,this):h0(a6,{title:$,height:36},void 0,!1,void 0,this)},void 0,!1,void 0,this),h0("nav",{className:"hidden md:flex gap-7","aria-label":"Main navigation",children:Y.map((F)=>h0("a",{href:F.href,className:"nav-link",children:F.label},F.href,!1,void 0,this))},void 0,!1,void 0,this),h0("div",{className:"hidden md:flex items-center gap-4",children:[J&&h0(t1,{href:J.buttonLink,variant:"accent",size:"sm",external:!0,className:"whitespace-nowrap",children:J.buttonText},void 0,!1,void 0,this),W&&h0(Q2,{size:"md",...H?{className:H}:{}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h0(L$,{variant:"ghost",ssrOnClick:"toggleMobileMenu()",type:"button",className:G0("md:hidden p-2 h-auto rounded-[10px]","text-theme-muted border border-theme bg-theme-subtle","hover:text-accent hover:border-brand/40"),"aria-label":"Toggle navigation menu","aria-expanded":"false","aria-controls":"mobile-menu",id:"mobile-menu-button",children:h0("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:[h0("path",{className:"menu-icon",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"},void 0,!1,void 0,this),h0("path",{className:"close-icon hidden",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h0("nav",{id:"mobile-menu","aria-label":"Mobile navigation",className:"md:hidden overflow-hidden transition-all duration-300 ease-in-out max-h-0 opacity-0",children:h0("div",{className:"flex flex-col gap-3 mt-4 pb-2 pt-4 border-t border-theme",children:[Y.map((F)=>h0("a",{href:F.href,onclick:"closeMobileMenu()",className:"nav-link",children:F.label},F.href,!1,void 0,this)),J&&h0(t1,{href:J.buttonLink,variant:"accent",size:"sm",external:!0,className:"mt-2",children:J.buttonText},void 0,!1,void 0,this),W&&h0("div",{className:"pt-2 mt-2 border-t border-theme",children:h0(Q2,{size:"sm",...H?{className:H}:{}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}import{jsxDEV as Gj}from"preact/jsx-dev-runtime";var aG=({html:$,className:X})=>{return Gj("article",{className:G0(`prose prose-lg max-w-none
747
747
  prose-h1:text-4xl prose-h1:font-bold prose-h1:mb-8 prose-h1:mt-0
748
748
  prose-h2:text-3xl prose-h2:font-semibold prose-h2:mt-16 prose-h2:mb-6 prose-h2:border-b prose-h2:pb-4
749
749
  prose-h3:text-2xl prose-h3:font-semibold prose-h3:mt-10 prose-h3:mb-4
@@ -755,7 +755,8 @@ ${F}`,templateName:"blog:excerpt"})).excerpt,await this.reportProgress(X,{progre
755
755
  prose-pre:rounded-lg prose-pre:my-6 prose-pre:p-4 prose-pre:overflow-x-auto prose-pre:text-sm
756
756
  prose-blockquote:border-l-2 prose-blockquote:border-brand prose-blockquote:pl-6 prose-blockquote:py-2 prose-blockquote:mt-8 prose-blockquote:mb-2 prose-blockquote:text-lg prose-blockquote:leading-relaxed prose-blockquote:font-light prose-blockquote:not-italic
757
757
  prose-hr:my-12
758
- prose-img:rounded-lg prose-img:shadow-md prose-img:my-8`,X),dangerouslySetInnerHTML:{__html:$}},void 0,!1,void 0,this)};import{jsxDEV as M60}from"preact/jsx-dev-runtime";var Jj=D0("",{variants:{level:{1:"text-4xl font-bold mb-8 mt-0 leading-tight tracking-tight",2:"text-3xl font-semibold mt-16 mb-6 border-b pb-4 leading-snug tracking-tight",3:"text-2xl font-semibold mt-10 mb-4 leading-snug tracking-tight"}},defaultVariants:{level:1}});import{jsxDEV as XY}from"preact/jsx-dev-runtime";var qZ=D0("bg-theme-subtle rounded-lg border border-theme hover:shadow-lg transition-shadow",{variants:{variant:{vertical:"flex flex-col p-6",horizontal:"flex flex-col sm:flex-row items-start gap-4 p-6",compact:"flex flex-col p-4"}},defaultVariants:{variant:"vertical"}}),t6=({href:$,variant:X,className:G,children:Y})=>{let J=o(qZ({variant:X}),G);if($)return XY("article",{className:o(J,"group"),children:XY("a",{href:$,className:"contents",children:Y},void 0,!1,void 0,this)},void 0,!1,void 0,this);return XY("article",{className:J,children:Y},void 0,!1,void 0,this)};import{jsxDEV as N60}from"preact/jsx-dev-runtime";var Wj=D0("object-cover rounded-lg",{variants:{size:{small:"w-full sm:w-32 h-48 sm:h-32 flex-shrink-0",medium:"w-full sm:w-48 h-48",large:"w-full h-48"}},defaultVariants:{size:"medium"}});import{jsxDEV as OZ}from"preact/jsx-dev-runtime";var GY=({src:$,alt:X,width:G,height:Y,srcset:J,sizes:W,className:H})=>{return OZ("div",{className:o("w-full overflow-hidden",H),children:OZ("img",{src:$,alt:X,width:G,height:Y,...J&&{srcset:J},...W&&{sizes:W},loading:"lazy",decoding:"async",style:{aspectRatio:`${G}/${Y}`},className:"w-full h-auto rounded-lg"},void 0,!1,void 0,this)},void 0,!1,void 0,this)};import{jsxDEV as C60}from"preact/jsx-dev-runtime";import{jsxDEV as j60}from"preact/jsx-dev-runtime";import{jsxDEV as x60}from"preact/jsx-dev-runtime";import{jsxDEV as f60}from"preact/jsx-dev-runtime";var w8=($,X={})=>{let{style:G="short",includeTime:Y=!1}=X,J=typeof $==="string"?new Date($):$;if(Y)return J.toLocaleString();switch(G){case"long":return J.toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"});case"full":return J.toLocaleDateString(void 0,{weekday:"long",year:"numeric",month:"long",day:"numeric"});case"short":default:return J.toLocaleDateString()}};import{jsxDEV as YY}from"preact/jsx-dev-runtime";var _8=D0("rounded-full",{variants:{variant:{default:"bg-theme-muted text-theme",muted:"bg-theme text-theme-muted",accent:"bg-accent/10 text-accent"},size:{xs:"text-xs px-2 py-1",sm:"text-sm px-3 py-1",md:"text-sm px-3 py-1 font-medium",lg:"text-sm px-4 py-2 font-medium"}},defaultVariants:{variant:"default",size:"xs"}}),JY=({tags:$,maxVisible:X=5,variant:G,size:Y,className:J})=>{let W=$.slice(0,X),H=$.length-X;return YY("div",{className:o("flex flex-wrap gap-2",J),children:[W.map((U)=>YY("span",{className:o(_8({variant:G,size:Y})),children:U},U,!1,void 0,this)),H>0&&YY("span",{className:o(_8({size:Y}),"bg-transparent text-theme-muted"),children:["+",H," more"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as i60}from"preact/jsx-dev-runtime";import{jsxDEV as e60}from"preact/jsx-dev-runtime";var Hj=D0("",{variants:{titleSize:{"3xl":"text-3xl","4xl":"text-4xl"}},defaultVariants:{titleSize:"4xl"}});import{jsxDEV as J40}from"preact/jsx-dev-runtime";var Uj=D0("px-2 py-1 rounded-full",{variants:{variant:{default:"bg-theme",muted:"bg-theme-muted"}},defaultVariants:{variant:"default"}});import{jsxDEV as K40}from"preact/jsx-dev-runtime";import{jsxDEV as q40}from"preact/jsx-dev-runtime";import{jsxDEV as V40}from"preact/jsx-dev-runtime";import{jsxDEV as z40}from"preact/jsx-dev-runtime";var Kj=D0("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",{variants:{status:{draft:"bg-status-neutral text-status-neutral",queued:"bg-status-info text-status-info",sent:"bg-status-success text-status-success",failed:"bg-status-danger text-status-danger",published:"bg-status-success text-status-success",pending:"bg-status-warning text-status-warning",captured:"bg-status-info text-status-info",available:"bg-status-success text-status-success","early access":"bg-status-info text-status-info","coming soon":"bg-status-warning text-status-warning",planned:"bg-status-neutral text-status-neutral"}},defaultVariants:{status:"draft"}});import{jsxDEV as e6}from"preact/jsx-dev-runtime";var WY=({url:$,title:X,date:G,description:Y,series:J,featured:W})=>{return e6("li",{children:e6("a",{href:$,className:"group block",children:[J&&e6("span",{className:"text-xs font-medium text-accent uppercase tracking-wide",children:[String(J.index).padStart(3,"0")," ",J.name]},void 0,!0,void 0,this),e6("h3",{className:o("font-medium text-heading group-hover:underline mb-2",W?"text-2xl md:text-3xl":"text-lg"),children:X},void 0,!1,void 0,this),e6("time",{className:"text-sm text-theme-muted block mb-3",children:new Date(G).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})},void 0,!1,void 0,this),Y&&e6("p",{className:"text-sm text-theme-muted leading-relaxed",children:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)};import{jsxDEV as n0,Fragment as RZ}from"preact/jsx-dev-runtime";var k5=({title:$,items:X,children:G,viewAllUrl:Y,emptyMessage:J,variant:W="divided"})=>{let F=!((X&&X.length>0)??G)?n0("p",{className:"text-theme-muted italic",children:J??`No ${$.toLowerCase()} yet.`},void 0,!1,void 0,null):G?n0(RZ,{children:[G,Y&&n0("div",{className:"mt-10",children:n0("a",{href:Y,className:"text-sm font-medium text-brand hover:text-brand-dark uppercase tracking-wide",children:"Learn More \u2192"},void 0,!1,void 0,null)},void 0,!1,void 0,null)]},void 0,!0,void 0,null):n0(RZ,{children:[n0("ul",{className:"space-y-10",children:X?.map((M,Q)=>n0(WY,{url:M.url,title:M.title,date:M.date,description:M.description,series:M.series,featured:Q===0},M.id,!1,void 0,this))},void 0,!1,void 0,null),Y&&n0("div",{className:"mt-10",children:n0("a",{href:Y,className:"text-sm font-medium text-brand hover:text-brand-dark uppercase tracking-wide",children:["View All ",$," \u2192"]},void 0,!0,void 0,null)},void 0,!1,void 0,null)]},void 0,!0,void 0,null);if(W==="stacked")return n0("section",{children:n0("div",{className:"border-t border-theme pt-8",children:[n0("h2",{className:"text-sm tracking-widest uppercase text-theme-muted mb-8",children:$},void 0,!1,void 0,this),n0("div",{children:F},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);return n0("section",{children:n0("div",{className:"grid md:grid-cols-[200px_1px_1fr] gap-y-2 gap-x-0 md:gap-12 items-start",children:[n0("h2",{className:"text-xl md:text-2xl font-semibold text-heading",children:$},void 0,!1,void 0,this),n0("div",{className:"border-t md:border-t-0 md:border-l border-theme md:self-stretch"},void 0,!1,void 0,this),n0("div",{className:"mt-6 md:mt-0",children:F},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)};import{createContext as Fj,h as S40}from"preact";import{useContext as Mj}from"preact/hooks";var ZZ=Fj(null);function AZ(){return Mj(ZZ)}function o0($){let X=AZ();if(X)X.setHeadProps($);return null}import{jsxDEV as Qj}from"preact/jsx-dev-runtime";var n2=({markdown:$,className:X})=>{let G=i2();return Qj($Y,{html:G($),...X&&{className:X}},void 0,!1,void 0,this)};import{jsxDEV as v5}from"preact/jsx-dev-runtime";function HY($,X){if(X===1)return $;return`${$.endsWith("/")?$.slice(0,-1):$}/page/${X}`}function qj($,X,G){let Y=[];Y.push(1);let J=Math.max(2,$-G),W=Math.min(X-1,$+G);if(J>2)Y.push("ellipsis");for(let H=J;H<=W;H++)Y.push(H);if(W<X-1)Y.push("ellipsis");if(X>1)Y.push(X);return Y}var UY="px-3 py-2 text-sm font-medium text-theme rounded-lg hover:text-brand hover:bg-theme-subtle transition-colors",Oj="px-3 py-2 text-sm font-semibold text-brand bg-theme-subtle rounded-lg",VZ="px-3 py-2 text-sm font-medium text-theme-muted cursor-not-allowed",KY=({currentPage:$,totalPages:X,baseUrl:G,siblingCount:Y=1})=>{if(X<=1)return null;let J=qj($,X,Y),W=$>1,H=$<X;return v5("nav",{"aria-label":"Pagination",className:"flex items-center justify-center gap-1 mt-12",children:[W?v5("a",{href:HY(G,$-1),className:UY,"aria-label":"Previous page",children:"\u2190 Prev"},void 0,!1,void 0,this):v5("span",{className:VZ,children:"\u2190 Prev"},void 0,!1,void 0,this),v5("div",{className:"flex items-center gap-1 mx-2",children:J.map((U,F)=>U==="ellipsis"?v5("span",{className:"px-2 py-2 text-sm text-theme-muted",children:"\u2026"},`ellipsis-${F}`,!1,void 0,this):U===$?v5("span",{className:Oj,"aria-current":"page",children:U},U,!1,void 0,this):v5("a",{href:HY(G,U),className:UY,children:U},U,!1,void 0,this))},void 0,!1,void 0,this),H?v5("a",{href:HY(G,$+1),className:UY,"aria-label":"Next page",children:"Next \u2192"},void 0,!1,void 0,this):v5("span",{className:VZ,children:"Next \u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as $4}from"preact/jsx-dev-runtime";function FY({items:$}){return $4("nav",{"aria-label":"Breadcrumb",className:"text-sm text-theme-muted mb-6",children:$4("ol",{className:"flex flex-wrap items-center gap-1",children:$.map((X,G)=>{let Y=G===$.length-1;return $4("li",{className:"flex items-center gap-1",children:[G>0&&$4("span",{className:"mx-1","aria-hidden":"true",children:"/"},void 0,!1,void 0,this),Y||!X.href?$4("span",{className:"text-heading font-medium",children:X.label},void 0,!1,void 0,this):$4("a",{href:X.href,className:"hover:text-brand transition-colors",children:X.label},void 0,!1,void 0,this)]},G,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this)}import{jsxDEV as r40}from"preact/jsx-dev-runtime";var Rj=D0("newsletter-signup",{variants:{variant:{inline:"",card:"p-6 rounded-lg bg-theme-subtle",section:"py-16 text-center"}},defaultVariants:{variant:"card"}});I();import{useState as o40}from"preact/hooks";import{jsxDEV as e40}from"preact/jsx-dev-runtime";var a40=K.record(K.unknown());I();import{jsxDEV as J80}from"preact/jsx-dev-runtime";var MY=K.object({id:K.string(),type:K.string().optional(),name:K.string().optional(),count:K.number().optional(),priority:K.string().optional(),status:K.string().optional()}),G80=K.object({jobs:K.array(MY).optional(),batches:K.array(MY).optional(),items:K.array(MY).optional()});I();import{jsxDEV as F80}from"preact/jsx-dev-runtime";var U80=K.record(K.unknown());I();import{useState as q80}from"preact/hooks";import{jsxDEV as A80}from"preact/jsx-dev-runtime";var Zj=K.object({id:K.string(),title:K.string(),type:K.string(),status:K.enum(["draft","queued","published","failed"]),scheduledFor:K.string().optional(),retryInfo:K.string().optional()}),R80=K.object({summary:K.object({draft:K.number(),queued:K.number(),published:K.number(),failed:K.number()}),items:K.array(Zj)});I();import{jsxDEV as _80}from"preact/jsx-dev-runtime";var N80=K.object({name:K.string(),role:K.string(),purpose:K.string(),values:K.array(K.string())});I();import{jsxDEV as C80}from"preact/jsx-dev-runtime";var P80=K.object({name:K.string(),description:K.string().optional(),links:K.array(K.object({label:K.string(),url:K.string()})).optional()});I();import{jsxDEV as S80}from"preact/jsx-dev-runtime";var I80=K.object({version:K.string(),plugins:K.string(),rendered:K.string(),links:K.array(K.object({label:K.string(),url:K.string()})).optional()});import{jsxDEV as X4,Fragment as Dj}from"preact/jsx-dev-runtime";var QY=({posts:$,pageTitle:X,pagination:G,baseUrl:Y="/posts"})=>{let J=$.map((F)=>({id:F.id,url:F.url,title:F.metadata.title,date:F.metadata.publishedAt||F.created,description:F.frontmatter.excerpt,series:F.frontmatter.seriesName&&F.frontmatter.seriesIndex?{name:F.frontmatter.seriesName,index:F.frontmatter.seriesIndex}:void 0})),W=X??"Essays",H=G?.totalItems??$.length,U=`Browse all ${H} ${H===1?"essay":"essays"}`;return X4(Dj,{children:[X4(o0,{title:W,description:U},void 0,!1,void 0,this),X4("div",{className:"blog-list bg-theme",children:X4("div",{className:"container mx-auto px-6 md:px-12 max-w-4xl py-16 md:py-24",children:[X4(k5,{title:W,items:J},void 0,!1,void 0,this),G&&G.totalPages>1&&X4(KY,{currentPage:G.currentPage,totalPages:G.totalPages,baseUrl:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};I();import{jsxDEV as S0}from"preact/jsx-dev-runtime";var BZ=({currentPost:$,seriesPosts:X})=>{if(!$.frontmatter.seriesName||!X)return null;let Y=X.findIndex((W)=>W.id===$.id)+1,J=X.length;return S0("aside",{className:"hidden lg:block w-64 shrink-0",children:S0("div",{className:"sticky top-8",children:S0(t6,{variant:"compact",children:[S0("h3",{className:"font-semibold text-theme text-sm mb-1",children:$.frontmatter.seriesName},void 0,!1,void 0,this),S0("p",{className:"text-xs text-theme-muted mb-4",children:["Part ",Y," of ",J]},void 0,!0,void 0,this),S0("ol",{className:"space-y-2 text-sm",children:X.map((W,H)=>S0("li",{className:W.id===$.id?"text-brand font-medium":"text-theme-muted hover:text-theme",children:W.id===$.id?S0("span",{className:"flex gap-2",children:[S0("span",{className:"text-brand",children:[H+1,"."]},void 0,!0,void 0,this),S0("span",{children:W.frontmatter.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this):S0("a",{href:W.url,className:"flex gap-2 hover:text-brand",children:[S0("span",{children:[H+1,"."]},void 0,!0,void 0,this),S0("span",{children:W.frontmatter.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},W.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},NZ=({currentPost:$,seriesPosts:X})=>{if(!$.frontmatter.seriesName||!X)return null;let Y=X.findIndex((W)=>W.id===$.id)+1,J=X.length;return S0("details",{className:"lg:hidden bg-theme-subtle rounded-lg mb-8",children:[S0("summary",{className:"cursor-pointer p-4 text-sm font-medium text-theme",children:["Series: ",$.frontmatter.seriesName," (Part ",Y," of ",J,")"]},void 0,!0,void 0,this),S0("ol",{className:"px-4 pb-4 space-y-2 text-sm",children:X.map((W,H)=>S0("li",{className:W.id===$.id?"text-brand font-medium":"text-theme-muted",children:W.id===$.id?S0("span",{className:"flex gap-2",children:[S0("span",{className:"text-brand",children:[H+1,"."]},void 0,!0,void 0,this),S0("span",{children:W.frontmatter.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this):S0("a",{href:W.url,className:"flex gap-2 hover:text-brand",children:[S0("span",{children:[H+1,"."]},void 0,!0,void 0,this),S0("span",{children:W.frontmatter.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},W.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as x5}from"preact/jsx-dev-runtime";var wZ=({prevPost:$,nextPost:X})=>{if(!$&&!X)return null;return x5("nav",{className:"border-t border-theme pt-8 mt-16",children:x5("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[$?x5(t6,{href:$.url,variant:"compact",children:[x5("span",{className:"text-xs text-theme-muted uppercase tracking-wide",children:"Previous"},void 0,!1,void 0,this),x5("span",{className:"block mt-1 font-medium text-heading group-hover:text-brand transition-colors truncate",children:$.frontmatter.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this):x5("div",{},void 0,!1,void 0,this),X&&x5(t6,{href:X.url,variant:"compact",className:"md:text-right",children:[x5("span",{className:"text-xs text-theme-muted uppercase tracking-wide",children:"Next"},void 0,!1,void 0,this),x5("span",{className:"block mt-1 font-medium text-heading group-hover:text-brand transition-colors truncate",children:X.frontmatter.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)};import{jsxDEV as S$}from"preact/jsx-dev-runtime";var _Z=({publishedAt:$,readingTime:X,className:G=""})=>{return S$("div",{className:`text-sm text-theme-muted ${G}`,children:[$&&S$("span",{children:w8($,{style:"long"})},void 0,!1,void 0,this),$&&X&&S$("span",{children:" \u2022 "},void 0,!1,void 0,this),X&&S$("span",{children:[X," min read"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as C1,Fragment as Pj}from"preact/jsx-dev-runtime";var z8=({post:$,prevPost:X,nextPost:G,seriesPosts:Y})=>{let J=H3($.body),W=Boolean($.frontmatter.seriesName&&Y),H=[{label:"Home",href:"/"},{label:$.listLabel,href:$.listUrl}];if($.frontmatter.seriesName)H.push({label:$.frontmatter.seriesName,href:$.seriesUrl});return H.push({label:$.frontmatter.title}),C1(Pj,{children:[C1(o0,{title:$.frontmatter.title,description:$.frontmatter.excerpt,...$.coverImageUrl&&{ogImage:$.coverImageUrl},ogType:"article"},void 0,!1,void 0,this),C1("section",{className:"blog-post-section",children:C1("div",{className:"container mx-auto px-6 md:px-8 py-12 md:py-20",children:C1("div",{className:`flex gap-12 ${W?"max-w-5xl":"max-w-3xl"} mx-auto`,children:[C1("div",{className:"flex-1 min-w-0 max-w-3xl",children:[C1(FY,{items:H},void 0,!1,void 0,this),$.coverImageUrl&&$.coverImageWidth&&$.coverImageHeight&&C1(GY,{src:$.coverImageUrl,alt:$.frontmatter.title,width:$.coverImageWidth,height:$.coverImageHeight,srcset:$.coverImageSrcset,sizes:$.coverImageSizes,className:"mb-8 shadow-lg"},void 0,!1,void 0,this),C1("h1",{className:"text-4xl md:text-5xl font-bold text-heading leading-tight tracking-tight mb-4",children:$.frontmatter.title},void 0,!1,void 0,this),C1(_Z,{publishedAt:$.frontmatter.publishedAt,readingTime:J,className:"mb-8"},void 0,!1,void 0,this),C1(NZ,{currentPost:$,seriesPosts:Y},void 0,!1,void 0,this),C1(n2,{markdown:$.body},void 0,!1,void 0,this),C1(wZ,{prevPost:X,nextPost:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C1(BZ,{currentPost:$,seriesPosts:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};I();Q0();var Lj=K.object({title:K.string().trim().min(1).max(80).describe("A short, punchy title (2-4 words) that's memorable and evocative. Must not be empty."),content:K.string().trim().min(1).describe("Blog post content in markdown format, relatively concise (30-80 lines), with flowing narrative style. Must not be empty."),excerpt:K.string().trim().min(1).describe("A concise 1-2 sentence summary that captures the essence of the post. Must not be empty.")}),zZ=L0({name:"blog:generation",description:"Template for AI to generate complete blog posts from prompts",schema:Lj,dataSourceId:"shell:ai-content",requiredPermission:"public",useKnowledgeContext:!0,basePrompt:`You are writing blog posts in a distinctive voice that blends philosophy, technology, and culture.
758
+ prose-img:rounded-lg prose-img:shadow-md prose-img:my-8`,X),dangerouslySetInnerHTML:{__html:$}},void 0,!1,void 0,this)};import{jsxDEV as V60}from"preact/jsx-dev-runtime";var Yj=D0("",{variants:{level:{1:"text-4xl font-bold mb-8 mt-0 leading-tight tracking-tight",2:"text-3xl font-semibold mt-16 mb-6 border-b pb-4 leading-snug tracking-tight",3:"text-2xl font-semibold mt-10 mb-4 leading-snug tracking-tight"}},defaultVariants:{level:1}});import{jsxDEV as tG}from"preact/jsx-dev-runtime";var QR=D0("bg-theme-subtle rounded-lg border border-theme hover:shadow-lg transition-shadow",{variants:{variant:{vertical:"flex flex-col p-6",horizontal:"flex flex-col sm:flex-row items-start gap-4 p-6",compact:"flex flex-col p-4"}},defaultVariants:{variant:"vertical"}}),t6=({href:$,variant:X,className:G,children:Y})=>{let J=G0(QR({variant:X}),G);if($)return tG("article",{className:G0(J,"group"),children:tG("a",{href:$,className:"contents",children:Y},void 0,!1,void 0,this)},void 0,!1,void 0,this);return tG("article",{className:J,children:Y},void 0,!1,void 0,this)};import{jsxDEV as T60}from"preact/jsx-dev-runtime";var Jj=D0("object-cover rounded-lg",{variants:{size:{small:"w-full sm:w-32 h-48 sm:h-32 flex-shrink-0",medium:"w-full sm:w-48 h-48",large:"w-full h-48"}},defaultVariants:{size:"medium"}});import{jsxDEV as qR}from"preact/jsx-dev-runtime";var eG=({src:$,alt:X,width:G,height:Y,srcset:J,sizes:W,className:H})=>{return qR("div",{className:G0("w-full overflow-hidden",H),children:qR("img",{src:$,alt:X,width:G,height:Y,...J&&{srcset:J},...W&&{sizes:W},loading:"lazy",decoding:"async",style:{aspectRatio:`${G}/${Y}`},className:"w-full h-auto rounded-lg"},void 0,!1,void 0,this)},void 0,!1,void 0,this)};import{jsxDEV as x60}from"preact/jsx-dev-runtime";import{jsxDEV as f60}from"preact/jsx-dev-runtime";import{jsxDEV as u60}from"preact/jsx-dev-runtime";import{jsxDEV as r60}from"preact/jsx-dev-runtime";var _8=($,X={})=>{let{style:G="short",includeTime:Y=!1}=X,J=typeof $==="string"?new Date($):$;if(Y)return J.toLocaleString();switch(G){case"long":return J.toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"});case"full":return J.toLocaleDateString(void 0,{weekday:"long",year:"numeric",month:"long",day:"numeric"});case"short":default:return J.toLocaleDateString()}};import{jsxDEV as t60}from"preact/jsx-dev-runtime";var $Y=D0("rounded-full",{variants:{variant:{default:"bg-theme-muted text-theme",muted:"bg-theme text-theme-muted",accent:"bg-accent/10 text-accent"},size:{xs:"text-xs px-2 py-1",sm:"text-sm px-3 py-1",md:"text-sm px-3 py-1 font-medium",lg:"text-sm px-4 py-2 font-medium"}},defaultVariants:{variant:"default",size:"xs"}});import{jsxDEV as G40}from"preact/jsx-dev-runtime";import{jsxDEV as K40}from"preact/jsx-dev-runtime";var Wj=D0("",{variants:{titleSize:{"3xl":"text-3xl","4xl":"text-4xl"}},defaultVariants:{titleSize:"4xl"}});import{jsxDEV as O40}from"preact/jsx-dev-runtime";var Hj=D0("px-2 py-1 rounded-full",{variants:{variant:{default:"bg-theme",muted:"bg-theme-muted"}},defaultVariants:{variant:"default"}});import{jsxDEV as B40}from"preact/jsx-dev-runtime";import{jsxDEV as _40}from"preact/jsx-dev-runtime";import{jsxDEV as C40}from"preact/jsx-dev-runtime";import{jsxDEV as S40}from"preact/jsx-dev-runtime";var Uj=D0("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",{variants:{status:{draft:"bg-status-neutral text-status-neutral",queued:"bg-status-info text-status-info",sent:"bg-status-success text-status-success",failed:"bg-status-danger text-status-danger",published:"bg-status-success text-status-success",pending:"bg-status-warning text-status-warning",captured:"bg-status-info text-status-info",available:"bg-status-success text-status-success","early access":"bg-status-info text-status-info","coming soon":"bg-status-warning text-status-warning",planned:"bg-status-neutral text-status-neutral"}},defaultVariants:{status:"draft"}});import{jsxDEV as e6}from"preact/jsx-dev-runtime";var z8=({url:$,title:X,date:G,description:Y,series:J,featured:W})=>{return e6("li",{className:"block pb-10 border-b border-rule last:border-b-0 last:pb-0 transition-transform duration-200 hover:translate-x-1",children:e6("a",{href:$,className:"group block",children:[J&&e6("span",{className:"block font-mono text-[0.65rem] font-medium uppercase tracking-[0.18em] text-accent mb-3",children:[String(J.index).padStart(3,"0")," \xB7 ",J.name]},void 0,!0,void 0,this),e6("h3",{className:G0("font-heading font-normal text-heading mb-2 leading-[1.15] tracking-[-0.01em] transition-colors group-hover:text-accent",W?"text-[clamp(1.75rem,3.2vw,2.65rem)] leading-[1.05] tracking-[-0.018em] [font-variation-settings:'opsz'_96,'SOFT'_30]":"text-[clamp(1.4rem,2.4vw,2rem)] [font-variation-settings:'opsz'_72,'SOFT'_30]"),children:X},void 0,!1,void 0,this),e6("time",{className:"block font-mono text-[0.7rem] uppercase tracking-[0.14em] text-theme-light mb-4",children:new Date(G).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})},void 0,!1,void 0,this),Y&&e6("p",{className:"text-[0.95rem] leading-[1.6] text-theme-muted max-w-[60ch]",children:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)};import{jsxDEV as o0,Fragment as OR}from"preact/jsx-dev-runtime";var D8=({title:$,items:X,children:G,viewAllUrl:Y,emptyMessage:J,variant:W="divided"})=>{let F=!((X&&X.length>0)??G)?o0("p",{className:"text-theme-muted italic",children:J??`No ${$.toLowerCase()} yet.`},void 0,!1,void 0,null):G?o0(OR,{children:[G,Y&&o0("div",{className:"mt-10",children:o0("a",{href:Y,className:"text-sm font-medium text-brand hover:text-brand-dark uppercase tracking-wide",children:"Learn More \u2192"},void 0,!1,void 0,null)},void 0,!1,void 0,null)]},void 0,!0,void 0,null):o0(OR,{children:[o0("ul",{className:"space-y-10",children:X?.map((M,Q)=>o0(z8,{url:M.url,title:M.title,date:M.date,description:M.description,series:M.series,featured:Q===0},M.id,!1,void 0,this))},void 0,!1,void 0,null),Y&&o0("div",{className:"mt-10",children:o0("a",{href:Y,className:"text-sm font-medium text-brand hover:text-brand-dark uppercase tracking-wide",children:["View All ",$," \u2192"]},void 0,!0,void 0,null)},void 0,!1,void 0,null)]},void 0,!0,void 0,null);if(W==="stacked")return o0("section",{children:o0("div",{className:"border-t border-theme pt-8",children:[o0("h2",{className:"text-sm tracking-widest uppercase text-theme-muted mb-8",children:$},void 0,!1,void 0,this),o0("div",{children:F},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);return o0("section",{children:o0("div",{className:"grid md:grid-cols-[200px_1px_1fr] gap-y-2 gap-x-0 md:gap-12 items-start",children:[o0("h2",{className:"text-xl md:text-2xl font-semibold text-heading",children:$},void 0,!1,void 0,this),o0("div",{className:"border-t md:border-t-0 md:border-l border-theme md:self-stretch"},void 0,!1,void 0,this),o0("div",{className:"mt-6 md:mt-0",children:F},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)};import{jsxDEV as $4,Fragment as Kj}from"preact/jsx-dev-runtime";var E$=({items:$,viewAllUrl:X,viewAllLabel:G,emptyMessage:Y})=>{if($.length===0)return $4("p",{className:"text-theme-muted italic",children:Y??"Nothing here yet."},void 0,!1,void 0,this);return $4(Kj,{children:[$4("ul",{className:"flex flex-col gap-10",children:$.map((J,W)=>$4(z8,{url:J.url,title:J.title,date:J.date,description:J.description,series:J.series,featured:W===0},J.id,!1,void 0,this))},void 0,!1,void 0,this),X&&$4("a",{href:X,className:"mt-10 inline-flex items-center gap-2 font-mono text-[0.7rem] font-medium uppercase tracking-[0.18em] text-accent pb-1 relative before:content-[''] before:absolute before:left-0 before:right-full before:bottom-0 before:h-px before:bg-accent before:transition-[right] before:duration-300 hover:before:right-0",children:[G??"View All",$4("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as P8}from"preact/jsx-dev-runtime";var XY=({title:$,number:X,blurb:G,variant:Y="editorial"})=>{if(Y==="compact")return P8("h2",{className:"text-sm tracking-widest uppercase text-theme-muted mb-8",children:$},void 0,!1,void 0,this);return P8("header",{children:[X!==void 0&&P8("span",{className:"block font-mono text-[0.7rem] font-medium uppercase tracking-[0.22em] text-accent mb-[0.85rem]",children:X},void 0,!1,void 0,this),P8("h2",{className:"font-heading font-normal text-heading leading-[1.05] tracking-[-0.015em] text-[clamp(1.75rem,2.6vw,2.1rem)] [font-variation-settings:'opsz'_48,'SOFT'_30]",children:$},void 0,!1,void 0,this),G!==void 0&&P8("p",{className:"font-heading italic font-light text-[0.95rem] leading-[1.5] text-theme-light mt-3 max-w-[22ch] [font-variation-settings:'opsz'_18,'SOFT'_50]",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as L8}from"preact/jsx-dev-runtime";var Fj=($)=>`/topics/${$.toLowerCase().replace(/\s+/g,"-")}`,GY=({subjects:$,hrefFor:X=Fj})=>L8("ul",{className:"grid grid-cols-1 sm:grid-cols-2 sm:gap-x-10 max-w-[40rem] border-t border-rule-strong list-none p-0 mt-8",children:$.map((G,Y)=>L8("li",{className:"border-b border-rule",children:L8("a",{href:X(G),className:"flex items-baseline gap-[1.1rem] py-[0.95rem] text-theme transition-[color,padding-left] duration-200 hover:text-accent hover:pl-[0.4rem]",children:[L8("span",{className:"font-mono text-[0.66rem] font-medium tracking-[0.18em] text-theme-light min-w-[1.6rem] transition-colors",children:String(Y+1).padStart(2,"0")},void 0,!1,void 0,this),L8("span",{className:"font-heading italic font-normal text-[1.05rem] tracking-[-0.005em] [font-variation-settings:'opsz'_24,'SOFT'_60]",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},G,!1,void 0,this))},void 0,!1,void 0,this);import{Fragment as YY}from"preact";import{jsxDEV as C8}from"preact/jsx-dev-runtime";var Mj=/(\*[^*]+\*)/;function I$($,X){let G=$.split(`
759
+ `);return C8(YY,{children:G.map((Y,J)=>C8(YY,{children:[J>0&&C8("br",{},void 0,!1,void 0,this),Y.split(Mj).map((W,H)=>{if(W.length>=3&&W.startsWith("*")&&W.endsWith("*"))return C8("span",{className:X,children:W.slice(1,-1)},H,!1,void 0,this);return C8(YY,{children:W},H,!1,void 0,this)})]},J,!0,void 0,this))},void 0,!1,void 0,this)}import{createContext as Qj,h as s40}from"preact";import{useContext as qj}from"preact/hooks";var ZR=Qj(null);function RR(){return qj(ZR)}function s0($){let X=RR();if(X)X.setHeadProps($);return null}import{jsxDEV as Oj}from"preact/jsx-dev-runtime";var i2=({markdown:$,className:X})=>{let G=r2();return Oj(aG,{html:G($),...X&&{className:X}},void 0,!1,void 0,this)};import{jsxDEV as k5}from"preact/jsx-dev-runtime";function JY($,X){if(X===1)return $;return`${$.endsWith("/")?$.slice(0,-1):$}/page/${X}`}function Zj($,X,G){let Y=[];Y.push(1);let J=Math.max(2,$-G),W=Math.min(X-1,$+G);if(J>2)Y.push("ellipsis");for(let H=J;H<=W;H++)Y.push(H);if(W<X-1)Y.push("ellipsis");if(X>1)Y.push(X);return Y}var WY="px-3 py-2 text-sm font-medium text-theme rounded-lg hover:text-brand hover:bg-theme-subtle transition-colors",Rj="px-3 py-2 text-sm font-semibold text-brand bg-theme-subtle rounded-lg",AR="px-3 py-2 text-sm font-medium text-theme-muted cursor-not-allowed",HY=({currentPage:$,totalPages:X,baseUrl:G,siblingCount:Y=1})=>{if(X<=1)return null;let J=Zj($,X,Y),W=$>1,H=$<X;return k5("nav",{"aria-label":"Pagination",className:"flex items-center justify-center gap-1 mt-12",children:[W?k5("a",{href:JY(G,$-1),className:WY,"aria-label":"Previous page",children:"\u2190 Prev"},void 0,!1,void 0,this):k5("span",{className:AR,children:"\u2190 Prev"},void 0,!1,void 0,this),k5("div",{className:"flex items-center gap-1 mx-2",children:J.map((U,F)=>U==="ellipsis"?k5("span",{className:"px-2 py-2 text-sm text-theme-muted",children:"\u2026"},`ellipsis-${F}`,!1,void 0,this):U===$?k5("span",{className:Rj,"aria-current":"page",children:U},U,!1,void 0,this):k5("a",{href:JY(G,U),className:WY,children:U},U,!1,void 0,this))},void 0,!1,void 0,this),H?k5("a",{href:JY(G,$+1),className:WY,"aria-label":"Next page",children:"Next \u2192"},void 0,!1,void 0,this):k5("span",{className:AR,children:"Next \u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as X4}from"preact/jsx-dev-runtime";function UY({items:$}){return X4("nav",{"aria-label":"Breadcrumb",className:"text-sm text-theme-muted mb-6",children:X4("ol",{className:"flex flex-wrap items-center gap-1",children:$.map((X,G)=>{let Y=G===$.length-1;return X4("li",{className:"flex items-center gap-1",children:[G>0&&X4("span",{className:"mx-1","aria-hidden":"true",children:"/"},void 0,!1,void 0,this),Y||!X.href?X4("span",{className:"text-heading font-medium",children:X.label},void 0,!1,void 0,this):X4("a",{href:X.href,className:"hover:text-brand transition-colors",children:X.label},void 0,!1,void 0,this)]},G,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this)}import{jsxDEV as Q80}from"preact/jsx-dev-runtime";var Aj=D0("newsletter-signup",{variants:{variant:{inline:"",card:"p-6 rounded-lg bg-theme-subtle",section:"py-16 text-center"}},defaultVariants:{variant:"card"}});I();import{useState as Z80}from"preact/hooks";import{jsxDEV as V80}from"preact/jsx-dev-runtime";var A80=K.record(K.unknown());I();import{jsxDEV as D80}from"preact/jsx-dev-runtime";var KY=K.object({id:K.string(),type:K.string().optional(),name:K.string().optional(),count:K.number().optional(),priority:K.string().optional(),status:K.string().optional()}),_80=K.object({jobs:K.array(KY).optional(),batches:K.array(KY).optional(),items:K.array(KY).optional()});I();import{jsxDEV as E80}from"preact/jsx-dev-runtime";var C80=K.record(K.unknown());I();import{useState as S80}from"preact/hooks";import{jsxDEV as b80}from"preact/jsx-dev-runtime";var Bj=K.object({id:K.string(),title:K.string(),type:K.string(),status:K.enum(["draft","queued","published","failed"]),scheduledFor:K.string().optional(),retryInfo:K.string().optional()}),v80=K.object({summary:K.object({draft:K.number(),queued:K.number(),published:K.number(),failed:K.number()}),items:K.array(Bj)});I();import{jsxDEV as m80}from"preact/jsx-dev-runtime";var f80=K.object({name:K.string(),role:K.string(),purpose:K.string(),values:K.array(K.string())});I();import{jsxDEV as c80}from"preact/jsx-dev-runtime";var d80=K.object({name:K.string(),description:K.string().optional(),links:K.array(K.object({label:K.string(),url:K.string()})).optional()});I();import{jsxDEV as s80}from"preact/jsx-dev-runtime";var n80=K.object({version:K.string(),plugins:K.string(),rendered:K.string(),links:K.array(K.object({label:K.string(),url:K.string()})).optional()});import{jsxDEV as G4,Fragment as Lj}from"preact/jsx-dev-runtime";var FY=({posts:$,pageTitle:X,pagination:G,baseUrl:Y="/posts"})=>{let J=$.map((F)=>({id:F.id,url:F.url,title:F.metadata.title,date:F.metadata.publishedAt||F.created,description:F.frontmatter.excerpt,series:F.frontmatter.seriesName&&F.frontmatter.seriesIndex?{name:F.frontmatter.seriesName,index:F.frontmatter.seriesIndex}:void 0})),W=X??"Essays",H=G?.totalItems??$.length,U=`Browse all ${H} ${H===1?"essay":"essays"}`;return G4(Lj,{children:[G4(s0,{title:W,description:U},void 0,!1,void 0,this),G4("div",{className:"blog-list bg-theme",children:G4("div",{className:"container mx-auto px-6 md:px-12 max-w-4xl py-16 md:py-24",children:[G4(D8,{title:W,items:J},void 0,!1,void 0,this),G&&G.totalPages>1&&G4(HY,{currentPage:G.currentPage,totalPages:G.totalPages,baseUrl:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};I();import{jsxDEV as k0}from"preact/jsx-dev-runtime";var BR=({currentPost:$,seriesPosts:X})=>{if(!$.frontmatter.seriesName||!X)return null;let Y=X.findIndex((W)=>W.id===$.id)+1,J=X.length;return k0("aside",{className:"hidden lg:block w-64 shrink-0",children:k0("div",{className:"sticky top-8",children:k0(t6,{variant:"compact",children:[k0("h3",{className:"font-semibold text-theme text-sm mb-1",children:$.frontmatter.seriesName},void 0,!1,void 0,this),k0("p",{className:"text-xs text-theme-muted mb-4",children:["Part ",Y," of ",J]},void 0,!0,void 0,this),k0("ol",{className:"space-y-2 text-sm",children:X.map((W,H)=>k0("li",{className:W.id===$.id?"text-brand font-medium":"text-theme-muted hover:text-theme",children:W.id===$.id?k0("span",{className:"flex gap-2",children:[k0("span",{className:"text-brand",children:[H+1,"."]},void 0,!0,void 0,this),k0("span",{children:W.frontmatter.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this):k0("a",{href:W.url,className:"flex gap-2 hover:text-brand",children:[k0("span",{children:[H+1,"."]},void 0,!0,void 0,this),k0("span",{children:W.frontmatter.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},W.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},VR=({currentPost:$,seriesPosts:X})=>{if(!$.frontmatter.seriesName||!X)return null;let Y=X.findIndex((W)=>W.id===$.id)+1,J=X.length;return k0("details",{className:"lg:hidden bg-theme-subtle rounded-lg mb-8",children:[k0("summary",{className:"cursor-pointer p-4 text-sm font-medium text-theme",children:["Series: ",$.frontmatter.seriesName," (Part ",Y," of ",J,")"]},void 0,!0,void 0,this),k0("ol",{className:"px-4 pb-4 space-y-2 text-sm",children:X.map((W,H)=>k0("li",{className:W.id===$.id?"text-brand font-medium":"text-theme-muted",children:W.id===$.id?k0("span",{className:"flex gap-2",children:[k0("span",{className:"text-brand",children:[H+1,"."]},void 0,!0,void 0,this),k0("span",{children:W.frontmatter.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this):k0("a",{href:W.url,className:"flex gap-2 hover:text-brand",children:[k0("span",{children:[H+1,"."]},void 0,!0,void 0,this),k0("span",{children:W.frontmatter.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},W.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as v5}from"preact/jsx-dev-runtime";var NR=({prevPost:$,nextPost:X})=>{if(!$&&!X)return null;return v5("nav",{className:"border-t border-theme pt-8 mt-16",children:v5("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[$?v5(t6,{href:$.url,variant:"compact",children:[v5("span",{className:"text-xs text-theme-muted uppercase tracking-wide",children:"Previous"},void 0,!1,void 0,this),v5("span",{className:"block mt-1 font-medium text-heading group-hover:text-brand transition-colors truncate",children:$.frontmatter.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this):v5("div",{},void 0,!1,void 0,this),X&&v5(t6,{href:X.url,variant:"compact",className:"md:text-right",children:[v5("span",{className:"text-xs text-theme-muted uppercase tracking-wide",children:"Next"},void 0,!1,void 0,this),v5("span",{className:"block mt-1 font-medium text-heading group-hover:text-brand transition-colors truncate",children:X.frontmatter.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)};import{jsxDEV as j$}from"preact/jsx-dev-runtime";var wR=({publishedAt:$,readingTime:X,className:G=""})=>{return j$("div",{className:`text-sm text-theme-muted ${G}`,children:[$&&j$("span",{children:_8($,{style:"long"})},void 0,!1,void 0,this),$&&X&&j$("span",{children:" \u2022 "},void 0,!1,void 0,this),X&&j$("span",{children:[X," min read"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as C1,Fragment as Cj}from"preact/jsx-dev-runtime";var T8=({post:$,prevPost:X,nextPost:G,seriesPosts:Y})=>{let J=M3($.body),W=Boolean($.frontmatter.seriesName&&Y),H=[{label:"Home",href:"/"},{label:$.listLabel,href:$.listUrl}];if($.frontmatter.seriesName)H.push({label:$.frontmatter.seriesName,href:$.seriesUrl});return H.push({label:$.frontmatter.title}),C1(Cj,{children:[C1(s0,{title:$.frontmatter.title,description:$.frontmatter.excerpt,...$.coverImageUrl&&{ogImage:$.coverImageUrl},ogType:"article"},void 0,!1,void 0,this),C1("section",{className:"blog-post-section",children:C1("div",{className:"container mx-auto px-6 md:px-8 py-12 md:py-20",children:C1("div",{className:`flex gap-12 ${W?"max-w-5xl":"max-w-3xl"} mx-auto`,children:[C1("div",{className:"flex-1 min-w-0 max-w-3xl",children:[C1(UY,{items:H},void 0,!1,void 0,this),$.coverImageUrl&&$.coverImageWidth&&$.coverImageHeight&&C1(eG,{src:$.coverImageUrl,alt:$.frontmatter.title,width:$.coverImageWidth,height:$.coverImageHeight,srcset:$.coverImageSrcset,sizes:$.coverImageSizes,className:"mb-8 shadow-lg"},void 0,!1,void 0,this),C1("h1",{className:"text-4xl md:text-5xl font-bold text-heading leading-tight tracking-tight mb-4",children:$.frontmatter.title},void 0,!1,void 0,this),C1(wR,{publishedAt:$.frontmatter.publishedAt,readingTime:J,className:"mb-8"},void 0,!1,void 0,this),C1(VR,{currentPost:$,seriesPosts:Y},void 0,!1,void 0,this),C1(i2,{markdown:$.body},void 0,!1,void 0,this),C1(NR,{prevPost:X,nextPost:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C1(BR,{currentPost:$,seriesPosts:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};I();Q0();var Tj=K.object({title:K.string().trim().min(1).max(80).describe("A short, punchy title (2-4 words) that's memorable and evocative. Must not be empty."),content:K.string().trim().min(1).describe("Blog post content in markdown format, relatively concise (30-80 lines), with flowing narrative style. Must not be empty."),excerpt:K.string().trim().min(1).describe("A concise 1-2 sentence summary that captures the essence of the post. Must not be empty.")}),_R=L0({name:"blog:generation",description:"Template for AI to generate complete blog posts from prompts",schema:Tj,dataSourceId:"shell:ai-content",requiredPermission:"public",useKnowledgeContext:!0,basePrompt:`You are writing blog posts in a distinctive voice that blends philosophy, technology, and culture.
759
760
 
760
761
  Your task is to generate a complete blog post based on the user's prompt.
761
762
 
@@ -772,7 +773,7 @@ Style guidelines:
772
773
  8. NO "Key Takeaways" or summary bullet points at the end. Let the piece end naturally.
773
774
  9. NO over-structuring with many subheadings like "### For Organizations" or "### Practical Implications"
774
775
 
775
- The tone should feel like a thoughtful essay from someone who builds things and thinks deeply about them - not a consulting whitepaper or content marketing piece.`});I();Q0();var Cj=K.object({excerpt:K.string().describe("A concise 1-2 sentence summary that captures the essence of the blog post")}),DZ=L0({name:"blog:excerpt",description:"Template for AI to generate excerpts/summaries from blog post content",schema:Cj,dataSourceId:"shell:ai-content",requiredPermission:"public",basePrompt:`You are an expert at writing concise, compelling summaries.
776
+ The tone should feel like a thoughtful essay from someone who builds things and thinks deeply about them - not a consulting whitepaper or content marketing piece.`});I();Q0();var Ej=K.object({excerpt:K.string().describe("A concise 1-2 sentence summary that captures the essence of the blog post")}),zR=L0({name:"blog:excerpt",description:"Template for AI to generate excerpts/summaries from blog post content",schema:Ej,dataSourceId:"shell:ai-content",requiredPermission:"public",basePrompt:`You are an expert at writing concise, compelling summaries.
776
777
 
777
778
  Your task is to create a short excerpt (1-2 sentences) that:
778
779
  1. Captures the main topic and value of the blog post
@@ -780,12 +781,12 @@ Your task is to create a short excerpt (1-2 sentences) that:
780
781
  3. Works well as a meta description for SEO
781
782
  4. Is between 120-160 characters ideally
782
783
 
783
- The excerpt should be clear, concise, and compelling.`});I();U5();R5();import{jsxDEV as G4,Fragment as Ij}from"preact/jsx-dev-runtime";var Tj=K.union([K.object({type:K.literal("post"),post:R8,prevPost:R8.nullable(),nextPost:R8.nullable(),seriesPosts:K.array(R8).nullable()}),K.object({type:K.literal("markdown"),content:K.string()})]),Ej=($)=>{if($.type==="post")return G4(z8,{post:$.post,prevPost:$.prevPost,nextPost:$.nextPost,seriesPosts:$.seriesPosts},void 0,!1,void 0,this);let G=i2()($.content);return G4(Ij,{children:[G4(o0,{title:"Home",description:"Welcome to my site"},void 0,!1,void 0,this),G4("section",{className:"homepage-section flex-grow min-h-screen",children:G4("div",{className:"container mx-auto px-6 md:px-8 max-w-3xl py-20",children:G4("article",{className:"prose prose-lg dark:prose-invert max-w-none",dangerouslySetInnerHTML:{__html:G}},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},PZ=L0({name:"homepage",description:"Homepage showing latest blog post or fallback content",schema:Tj,dataSourceId:"blog:homepage",requiredPermission:"public",layout:{component:Ej}});var jj=K.object({posts:K.array(t1),pageTitle:K.string().optional(),pagination:F$.nullable(),baseUrl:K.string().optional()});function LZ(){return{"post-list":L0({name:"post-list",description:"Blog list page template",schema:jj,dataSourceId:"blog:entities",requiredPermission:"public",layout:{component:QY}}),"post-detail":L0({name:"post-detail",description:"Individual blog post template",schema:K.object({post:t1,prevPost:t1.nullable(),nextPost:t1.nullable(),seriesPosts:K.array(t1).nullable()}),dataSourceId:"blog:entities",requiredPermission:"public",layout:{component:z8}}),homepage:PZ,generation:zZ,excerpt:DZ}}I();Q0();R5();Z8();async function CZ($,X){let G={name:"internal",publish:async()=>{return{id:"internal"}}};await $.messaging.send("publish:register",{entityType:"post",provider:G}),X.info("Registered post with publish-pipeline")}function TZ($,X){$.messaging.subscribe("publish:execute",async(G)=>{let{entityType:Y,entityId:J}=G.payload;if(Y!=="post")return{success:!0};try{let W=await $.entityService.getEntity("post",J);if(!W)return await $.messaging.send("publish:report:failure",{entityType:Y,entityId:J,error:`Post not found: ${J}`}),{success:!0};if(W.metadata.status==="published")return X.debug(`Post already published: ${J}`),{success:!0};let H=E0(W.content,M1),U=new Date().toISOString(),F={...H.metadata,status:"published",publishedAt:U},M=c2.createPostContent(F,H.content);await $.entityService.updateEntity({...W,content:M,metadata:{...W.metadata,status:"published",publishedAt:U}}),await $.messaging.send("publish:report:success",{entityType:Y,entityId:J,result:{id:J}}),X.info(`Published post: ${J}`)}catch(W){let H=j0(W);await $.messaging.send("publish:report:failure",{entityType:Y,entityId:J,error:H}),X.error(`Failed to publish post: ${H}`)}return{success:!0}}),X.debug("Subscribed to publish:execute messages")}Q0();R5();import{promises as Sj}from"fs";import{join as kj}from"path";function IZ($,X){$.messaging.subscribe("site:build:completed",async(G)=>{try{let Y=G.payload;X.info(`Received site:build:completed event for ${Y.environment} environment`),await vj($,X,Y)}catch(Y){X.error("Failed to generate RSS feed",Y)}return{success:!0}})}async function vj($,X,G){let Y=G.environment==="preview";X.info(`Auto-generating RSS feed after site build (${Y?"all posts":"published only"})`);let W=(await $.entityService.listEntities("post",{limit:1000})).filter((q)=>Y||q.metadata.status==="published"&&q.metadata.publishedAt).map((q)=>{let Z=E0(q.content,M1);return{...q,frontmatter:Z.metadata,body:Z.content,url:G.generateEntityUrl("post",q.metadata.slug)}});if(W.length===0){X.info(`No ${Y?"":"published "}posts found, skipping RSS generation`);return}let H=G.siteConfig.url??"https://example.com",U=G.siteConfig.title??"Blog",F=G.siteConfig.description??"Latest blog posts",M=k$(W,{title:U,description:F,link:H,language:"en-us",includeAllPosts:Y}),Q=kj(G.outputDir,"feed.xml");await Sj.writeFile(Q,M,"utf-8"),X.info(`RSS feed generated successfully with ${W.length} posts at ${Q}`)}I();var xj=K.object({prompt:K.string(),seriesName:K.string().optional()}),bj=K.object({title:K.string(),content:K.string()});function jZ($){$.eval.registerHandler("generatePost",async(X)=>{let G=xj.parse(X),Y=`${G.prompt}${G.seriesName?`
784
+ The excerpt should be clear, concise, and compelling.`});I();U5();Z5();import{jsxDEV as Y4,Fragment as Sj}from"preact/jsx-dev-runtime";var Ij=K.union([K.object({type:K.literal("post"),post:R8,prevPost:R8.nullable(),nextPost:R8.nullable(),seriesPosts:K.array(R8).nullable()}),K.object({type:K.literal("markdown"),content:K.string()})]),jj=($)=>{if($.type==="post")return Y4(T8,{post:$.post,prevPost:$.prevPost,nextPost:$.nextPost,seriesPosts:$.seriesPosts},void 0,!1,void 0,this);let G=r2()($.content);return Y4(Sj,{children:[Y4(s0,{title:"Home",description:"Welcome to my site"},void 0,!1,void 0,this),Y4("section",{className:"homepage-section flex-grow min-h-screen",children:Y4("div",{className:"container mx-auto px-6 md:px-8 max-w-3xl py-20",children:Y4("article",{className:"prose prose-lg dark:prose-invert max-w-none",dangerouslySetInnerHTML:{__html:G}},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},DR=L0({name:"homepage",description:"Homepage showing latest blog post or fallback content",schema:Ij,dataSourceId:"blog:homepage",requiredPermission:"public",layout:{component:jj}});var kj=K.object({posts:K.array(a1),pageTitle:K.string().optional(),pagination:O$.nullable(),baseUrl:K.string().optional()});function PR(){return{"post-list":L0({name:"post-list",description:"Blog list page template",schema:kj,dataSourceId:"blog:entities",requiredPermission:"public",layout:{component:FY}}),"post-detail":L0({name:"post-detail",description:"Individual blog post template",schema:K.object({post:a1,prevPost:a1.nullable(),nextPost:a1.nullable(),seriesPosts:K.array(a1).nullable()}),dataSourceId:"blog:entities",requiredPermission:"public",layout:{component:T8}}),homepage:DR,generation:_R,excerpt:zR}}I();Q0();Z5();A8();async function LR($,X){let G={name:"internal",publish:async()=>{return{id:"internal"}}};await $.messaging.send({type:"publish:register",payload:{entityType:"post",provider:G}}),X.info("Registered post with publish-pipeline")}function CR($,X){$.messaging.subscribe("publish:execute",async(G)=>{let{entityType:Y,entityId:J}=G.payload;if(Y!=="post")return{success:!0};try{let W=await $.entityService.getEntity({entityType:"post",id:J});if(!W)return await $.messaging.send({type:"publish:report:failure",payload:{entityType:Y,entityId:J,error:`Post not found: ${J}`}}),{success:!0};if(W.metadata.status==="published")return X.debug(`Post already published: ${J}`),{success:!0};let H=I0(W.content,Q1),U=new Date().toISOString(),F={...H.metadata,status:"published",publishedAt:U},M=l2.createPostContent(F,H.content);await $.entityService.updateEntity({entity:{...W,content:M,metadata:{...W.metadata,status:"published",publishedAt:U}}}),await $.messaging.send({type:"publish:report:success",payload:{entityType:Y,entityId:J,result:{id:J}}}),X.info(`Published post: ${J}`)}catch(W){let H=S0(W);await $.messaging.send({type:"publish:report:failure",payload:{entityType:Y,entityId:J,error:H}}),X.error(`Failed to publish post: ${H}`)}return{success:!0}}),X.debug("Subscribed to publish:execute messages")}Q0();Z5();import{promises as vj}from"fs";import{join as xj}from"path";function ER($,X){$.messaging.subscribe("site:build:completed",async(G)=>{try{let Y=G.payload;X.info(`Received site:build:completed event for ${Y.environment} environment`),await bj($,X,Y)}catch(Y){X.error("Failed to generate RSS feed",Y)}return{success:!0}})}async function bj($,X,G){let Y=G.environment==="preview";X.info(`Auto-generating RSS feed after site build (${Y?"all posts":"published only"})`);let W=(await $.entityService.listEntities({entityType:"post",options:{limit:1000}})).filter((q)=>Y||q.metadata.status==="published"&&q.metadata.publishedAt).map((q)=>{let A=I0(q.content,Q1);return{...q,frontmatter:A.metadata,body:A.content,url:G.generateEntityUrl("post",q.metadata.slug)}});if(W.length===0){X.info(`No ${Y?"":"published "}posts found, skipping RSS generation`);return}let H=G.siteConfig.url??"https://example.com",U=G.siteConfig.title??"Blog",F=G.siteConfig.description??"Latest blog posts",M=S$(W,{title:U,description:F,link:H,language:"en-us",includeAllPosts:Y}),Q=xj(G.outputDir,"feed.xml");await vj.writeFile(Q,M,"utf-8"),X.info(`RSS feed generated successfully with ${W.length} posts at ${Q}`)}I();var hj=K.object({prompt:K.string(),seriesName:K.string().optional()}),yj=K.object({title:K.string(),content:K.string()});function IR($){$.eval.registerHandler("generatePost",async(X)=>{let G=hj.parse(X),Y=`${G.prompt}${G.seriesName?`
784
785
 
785
- Note: This is part of a series called "${G.seriesName}".`:""}`;return $.ai.generate({prompt:Y,templateName:"blog:generation"})}),$.eval.registerHandler("generateExcerpt",async(X)=>{let G=bj.parse(X);return $.ai.generate({prompt:`Title: ${G.title}
786
+ Note: This is part of a series called "${G.seriesName}".`:""}`;return $.ai.generate({prompt:Y,templateName:"blog:generation"})}),$.eval.registerHandler("generateExcerpt",async(X)=>{let G=yj.parse(X);return $.ai.generate({prompt:`Title: ${G.title}
786
787
 
787
788
  Content:
788
- ${G.content}`,templateName:"blog:excerpt"})})}var SZ={name:"@brains/blog",private:!0,version:"0.2.0-alpha.50",description:"AI-powered blog post generation from existing brain content",type:"module",exports:{".":"./src/index.ts"},scripts:{typecheck:"tsc --noEmit",test:"bun test",lint:"eslint . --ext .ts","lint:fix":"eslint . --ext .ts --fix",eval:"cd evals && bun run brain-eval"},dependencies:{"@brains/plugins":"workspace:*","@brains/utils":"workspace:*"},devDependencies:{"@brains/app":"workspace:*","@brains/eslint-config":"workspace:*","@brains/typescript-config":"workspace:*","@types/bun":"latest","bun-types":"latest",eslint:"^8.56.0",typescript:"^5.3.3"}};class bZ extends U2{entityType=c2.entityType;schema=o6;adapter=c2;constructor($={}){super("blog",SZ,$,pG)}getEntityTypeConfig(){return{weight:2}}createGenerationHandler($){return new uG(this.logger.child("BlogGenerationJobHandler"),$)}getTemplates(){return LZ()}getDataSources(){return[new lG(this.logger.child("BlogDataSource"))]}async onRegister($){let{RSSDataSource:X}=await Promise.resolve().then(() => (xZ(),vZ));$.entities.registerDataSource(new X(this.logger.child("RSSDataSource"))),await CZ($,this.logger),TZ($,this.logger),IZ($,this.logger),jZ($),this.logger.info("Blog plugin registered (routes auto-generated at /posts/)")}}R5();Z8();Q0();w$();I();Q0();w$();var hZ=K.object({}),v$=N1.extend({id:K.literal("site-info"),entityType:K.literal("site-info"),metadata:hZ}),D8=B$,Y4=N$.omit({url:!0,analyticsScript:!0});Q0();class b5 extends B1{constructor(){super({entityType:"site-info",schema:v$,frontmatterSchema:Y4,isSingleton:!0,hasBody:!1})}createSiteInfoContent($){let X=Y4.parse($);return this.buildMarkdown("",X)}parseSiteInfoBody($){return this.parseFrontmatter($)}fromMarkdown($){return{content:$,entityType:"site-info"}}extractMetadata($){return{}}generateFrontMatter($){let X=this.parseFrontmatter($.content);return this.buildMarkdown("",X)}}var v70=new b5;var c70=new b5;var mj=new b5;async function P8($){let G=(await $.listEntities("site-info",{limit:1}))[0];if(!G)throw Error("Site info not found \u2014 create a site-info entity");return mj.parseSiteInfoBody(G.content)}I();var pj=Y4.extend({navigation:K.object({primary:K.array(K.object({label:K.string(),href:K.string(),priority:K.number()})),secondary:K.array(K.object({label:K.string(),href:K.string(),priority:K.number()}))}),copyright:K.string(),socialLinks:K.array(K.object({platform:K.enum(["github","instagram","linkedin","email","website"]).describe("Social media platform"),url:K.string().describe("Profile or contact URL"),label:K.string().optional().describe("Optional display label")})).optional().describe("Social media links from profile entity")});Q0();var x$=i6,O2=O5.extend(x$.shape);Q0();l2();I();var uj=new m1;class b${postsListUrl;id="personal:homepage";name="Personal Homepage DataSource";description="Fetches profile and blog posts for a personal homepage";constructor($){this.postsListUrl=$}async fetch($,X,G){let Y=G.entityService,[J,W,H]=await Promise.all([q5(Y),Y.listEntities("post",{limit:20}),P8(Y)]),U=uj.parseProfileBody(J,O2),F=W.sort(y6).slice(0,6).map(r2);if(!H.cta)throw Error("CTA not configured in site-info");let M={profile:U,posts:F,postsListUrl:this.postsListUrl,cta:H.cta};return X.parse(M)}}Q0();l2();var dj=new m1;class h${id="personal:about";name="About Page DataSource";description="Fetches full profile data for the about page";async fetch($,X,G){let Y=await q5(G.entityService),W={profile:dj.parseProfileBody(Y,O2)};return X.parse(W)}}import{jsxDEV as U0,Fragment as yZ}from"preact/jsx-dev-runtime";function lj($){return new Date($).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}function cj($){return $.split(/(\*[^*]+\*)/).map((X,G)=>{if(X.startsWith("*")&&X.endsWith("*")&&X.length>2)return U0("em",{className:"font-sans italic font-medium text-theme-inverse tracking-[-0.015em] [font-variation-settings:'opsz'_72]",children:X.slice(1,-1)},G,!1,void 0,this);return X})}var qY=({profile:$,posts:X,postsListUrl:G,cta:Y})=>{let J=$.tagline??$.description,W=$.name.split(" ")[0];return U0(yZ,{children:[U0(o0,{title:$.name,description:$.description??J??"Personal site",ogType:"website"},void 0,!1,void 0,this),U0("header",{className:"hero-decor bg-brand text-theme-inverse relative flex flex-col items-center justify-center px-6 md:px-12 pt-32 pb-24 gap-7",children:U0("div",{className:"w-full max-w-[1100px] mx-auto text-center flex flex-col items-center gap-7",children:[J&&U0("h1",{className:"font-heading font-bold text-[clamp(2.5rem,6vw,5rem)] leading-[1.05] tracking-[-0.035em] text-theme-inverse text-balance m-0 [font-variation-settings:'wdth'_90,'opsz'_96]",children:cj(J)},void 0,!1,void 0,this),$.description&&U0("p",{className:"text-[clamp(1.0625rem,1.4vw,1.3125rem)] leading-[1.5] text-theme-inverse opacity-95 max-w-[600px] mx-auto m-0",children:$.description},void 0,!1,void 0,this),U0("div",{className:"flex flex-wrap justify-center gap-3.5 mt-2",children:[U0("a",{href:G,className:"inline-flex items-center gap-2 rounded-full py-3.5 px-7 bg-theme text-brand border-2 border-theme font-heading font-semibold text-[15px] hover:bg-theme-subtle hover:-translate-y-0.5 transition-all [font-variation-settings:'wdth'_92,'opsz'_18]",children:["Read the Blog ",U0("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0("a",{href:"/about",className:"rounded-full py-3.5 px-7 border-2 border-theme-light text-theme-inverse font-heading font-semibold text-[15px] hover:bg-brand-dark hover:border-theme hover:-translate-y-0.5 transition-all [font-variation-settings:'wdth'_92,'opsz'_18]",children:["About ",W]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),X.length>0&&U0("section",{className:"flex flex-col py-24 px-6 md:px-12 gap-11 bg-theme-subtle",children:[U0("div",{className:"flex justify-between items-end max-w-layout mx-auto w-full gap-6 flex-wrap",children:[U0("div",{children:[U0("span",{className:"block font-heading font-semibold text-[13px] uppercase tracking-[0.22em] text-brand mb-3 [font-variation-settings:'wdth'_85,'opsz'_12]",children:"The Archive"},void 0,!1,void 0,this),U0("h2",{className:"font-heading font-bold text-[clamp(2.25rem,5vw,3.75rem)] leading-none tracking-[-0.03em] text-heading m-0 [font-variation-settings:'wdth'_92,'opsz'_64]",children:["Recent"," ",U0("em",{className:"font-sans italic font-medium text-brand [font-variation-settings:'opsz'_60]",children:"posts"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),U0("a",{href:G,className:"font-heading font-semibold text-[15px] text-brand inline-flex items-center gap-1.5 pb-1.5 border-b-2 border-current hover:text-brand-dark transition-colors [font-variation-settings:'wdth'_88,'opsz'_16]",children:["View the whole archive ",U0("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),U0("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(min(100%,320px),1fr))] gap-8 max-w-layout mx-auto w-full",children:X.map((H)=>U0("a",{href:H.url,className:"group flex flex-col bg-theme border border-theme rounded-md overflow-hidden hover:-translate-y-1 hover:border-brand/50 transition-all no-underline shadow-sm hover:shadow-lg",children:[H.coverImageUrl?U0("img",{src:H.coverImageUrl,alt:H.metadata.title,className:"w-full aspect-[16/10] object-cover bg-theme-muted"},void 0,!1,void 0,this):U0("div",{className:"w-full aspect-[16/10] bg-gradient-to-br from-brand to-accent","aria-hidden":"true"},void 0,!1,void 0,this),U0("div",{className:"flex flex-col gap-4 p-7 flex-1",children:[U0("div",{className:"flex flex-wrap items-center gap-3.5 font-heading text-[11px] font-semibold uppercase tracking-[0.18em] text-theme-muted [font-variation-settings:'wdth'_85,'opsz'_11]",children:[H.frontmatter.seriesName&&U0(yZ,{children:[U0("span",{className:"text-brand",children:H.frontmatter.seriesName},void 0,!1,void 0,this),U0("span",{className:"w-[3px] h-[3px] rounded-full bg-current opacity-50","aria-hidden":"true"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0("time",{children:lj(H.metadata.publishedAt??H.created)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0("h3",{className:"font-sans font-semibold text-[clamp(1.375rem,1.8vw,1.625rem)] leading-[1.18] tracking-[-0.012em] text-heading m-0 text-balance",children:H.metadata.title},void 0,!1,void 0,this),H.frontmatter.excerpt&&U0("p",{className:"text-base leading-[1.55] text-theme-muted m-0 flex-1",children:H.frontmatter.excerpt},void 0,!1,void 0,this),U0("span",{className:"inline-flex items-center gap-1.5 font-heading font-semibold text-[13px] uppercase tracking-[0.14em] text-brand mt-1 [font-variation-settings:'wdth'_88,'opsz'_14]",children:["Read the post"," ",U0("span",{"aria-hidden":"true",className:"transition-transform group-hover:translate-x-1",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},H.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0("section",{className:"cta-decor bg-theme-dark text-theme-on-dark flex-grow flex flex-col items-center justify-center py-24 px-6 md:px-12 gap-5",children:[U0("span",{className:"font-heading font-medium text-xs uppercase tracking-[0.24em] text-accent [font-variation-settings:'wdth'_85,'opsz'_12]",children:"Get in touch"},void 0,!1,void 0,this),U0("h2",{className:"text-center font-heading font-bold text-[clamp(2rem,4vw,3rem)] leading-none tracking-[-0.03em] text-theme-on-dark m-0 [font-variation-settings:'wdth'_90,'opsz'_64]",children:Y.heading},void 0,!1,void 0,this),Y.subtitle&&U0("p",{className:"text-center text-base leading-[1.55] text-theme-on-dark opacity-80 max-w-[480px] m-0",children:Y.subtitle},void 0,!1,void 0,this),U0("a",{href:Y.buttonLink,className:"inline-flex items-center gap-2 rounded-full py-3.5 px-7 bg-brand text-theme-inverse border-2 border-brand font-heading font-semibold text-[15px] hover:bg-brand-dark hover:-translate-y-0.5 transition-all mt-2 [font-variation-settings:'wdth'_92,'opsz'_18]",children:[Y.buttonText," ",U0("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as $1,Fragment as rj}from"preact/jsx-dev-runtime";var OY=({profile:$})=>{let X=`About ${$.name}`,G=$.description??$.intro??"About page",Y=Boolean($.email??$.website);return $1(rj,{children:[$1(o0,{title:X,description:G,ogType:"profile"},void 0,!1,void 0,this),$1("section",{className:"hero-decor bg-brand text-theme-inverse relative flex flex-col px-6 md:px-12 pt-32 pb-24",children:$1("div",{className:"w-full max-w-3xl mx-auto flex flex-col gap-6",children:[$1("h1",{className:"font-heading font-bold text-[clamp(2.5rem,6vw,4.5rem)] leading-[1.05] tracking-[-0.035em] text-theme-inverse text-balance m-0 [font-variation-settings:'wdth'_90,'opsz'_96]",children:$.name},void 0,!1,void 0,this),$.description&&$1("p",{className:"text-[clamp(1.0625rem,1.4vw,1.25rem)] leading-[1.55] text-theme-inverse opacity-95 max-w-2xl m-0",children:$.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),$.story&&$1("section",{className:`py-24 px-6 md:px-12 bg-theme-subtle${Y?"":" flex-grow"}`,children:$1("div",{className:"max-w-3xl mx-auto",children:$1(n2,{markdown:$.story},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y&&$1("section",{className:"cta-decor bg-theme-dark text-theme-on-dark flex-grow flex flex-col items-center justify-center py-24 px-6 md:px-12 gap-5",children:[$1("span",{className:"font-heading font-medium text-xs uppercase tracking-[0.24em] text-accent [font-variation-settings:'wdth'_85,'opsz'_12]",children:"Get in touch"},void 0,!1,void 0,this),$1("h2",{className:"text-center font-heading font-bold text-[clamp(2rem,4vw,3rem)] leading-none tracking-[-0.03em] text-theme-on-dark m-0 [font-variation-settings:'wdth'_90,'opsz'_64]",children:["Say"," ",$1("em",{className:"font-sans italic font-medium text-accent [font-variation-settings:'opsz'_72]",children:"hi."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$1("div",{className:"flex flex-wrap justify-center gap-3.5 mt-2",children:[$.email&&$1("a",{href:`mailto:${$.email}`,className:"inline-flex items-center gap-2 rounded-full py-3.5 px-7 bg-brand text-theme-inverse border-2 border-brand font-heading font-semibold text-[15px] hover:bg-brand-dark hover:-translate-y-0.5 transition-all [font-variation-settings:'wdth'_92,'opsz'_18]",children:["Get in Touch ",$1("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$.website&&$1("a",{href:$.website,className:"rounded-full py-3.5 px-7 border-2 border-theme-light text-theme-on-dark font-heading font-semibold text-[15px] hover:bg-brand-dark hover:border-theme hover:-translate-y-0.5 transition-all [font-variation-settings:'wdth'_92,'opsz'_18]",children:"Website"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};var fZ={name:"@brains/site-personal",private:!0,version:"0.2.0-alpha.50",description:"Personal site composition package",type:"module",exports:{".":"./src/index.ts"},files:["src"],scripts:{typecheck:"tsc --noEmit",lint:"eslint . --ext .ts","lint:fix":"eslint . --ext .ts --fix"},dependencies:{"@brains/blog":"workspace:*","@brains/identity-service":"workspace:*","@brains/plugins":"workspace:*","@brains/site-composition":"workspace:*","@brains/site-engine":"workspace:*","@brains/site-info":"workspace:*","@brains/templates":"workspace:*","@brains/ui-library":"workspace:*","@brains/utils":"workspace:*",preact:"^10.27.2"},devDependencies:{"@brains/eslint-config":"workspace:*","@brains/typescript-config":"workspace:*","@types/bun":"latest","bun-types":"latest",eslint:"^8.56.0",typescript:"^5.3.3"}};var nj=K.object({entityDisplay:K.object({post:K.object({label:K.string().default("Post"),pluralName:K.string().optional()}).default({})}).default({})});class RY extends l6{dependencies=["blog"];constructor($={}){super("personal-site",fZ,$,nj)}async onRegister($){$.entities.extendFrontmatterSchema("anchor-profile",x$);let X=this.config.entityDisplay.post,G=`/${X.pluralName??X.label.toLowerCase()+"s"}`,Y=new b$(G);$.entities.registerDataSource(Y);let J=new h$;$.entities.registerDataSource(J);let W=K.object({profile:O2,posts:K.array(t1),postsListUrl:K.string(),cta:D8}),H=K.object({profile:O2});$.templates.register({homepage:L0({name:"homepage",description:"Personal homepage with recent blog posts",schema:W,dataSourceId:"personal:homepage",requiredPermission:"public",layout:{component:qY}}),about:L0({name:"about",description:"About page with profile",schema:H,dataSourceId:"personal:about",requiredPermission:"public",layout:{component:OY}})}),this.logger.info("Personal site plugin registered successfully")}async getTools(){return[]}async getResources(){return[]}}function ZY($){return new RY($??{})}var AY=[{id:"home",path:"/",title:"Home",description:"Personal site homepage",layout:"default",navigation:{show:!0,label:"Home",slot:"secondary",priority:10},sections:[{id:"homepage",template:"personal-site:homepage",dataQuery:{}}]},{id:"about",path:"/about",title:"About",description:"About page",layout:"default",navigation:{show:!0,label:"About",slot:"primary",priority:90},sections:[{id:"about",template:"personal-site:about",dataQuery:{}}]}];import{jsxDEV as h1}from"preact/jsx-dev-runtime";function VY({sections:$,siteInfo:X}){let G=[...X.navigation.primary,...X.navigation.secondary].filter((Y)=>Y.label!=="Home");return h1("div",{className:"flex flex-col min-h-screen bg-theme overflow-x-clip",children:[h1(N8,{title:X.title,titleClassName:"font-heading font-bold text-2xl",navigation:X.navigation.primary,showThemeToggle:!0,themeToggleClassName:"bg-theme-toggle text-theme-toggle-icon hover:bg-theme-toggle-hover rounded-[10px]",...X.logo!==void 0?{logo:X.logo}:{}},void 0,!1,void 0,this),h1("main",{className:"flex-grow flex flex-col",children:$},void 0,!1,void 0,this),h1("footer",{className:"bg-footer text-footer border-t border-theme",children:h1("div",{className:"max-w-layout mx-auto flex flex-col md:flex-row justify-between items-center py-8 px-6 md:px-8",children:[h1("div",{className:"flex flex-col gap-1 mb-4 md:mb-0",children:[h1("span",{className:"text-brand font-heading font-bold text-lg",children:X.title},void 0,!1,void 0,this),X.description&&h1("span",{className:"text-theme-muted text-xs",children:X.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h1("nav",{className:"flex flex-wrap justify-center gap-x-6 gap-y-2 mb-4 md:mb-0",children:G.map((Y)=>h1("a",{href:Y.href,className:"text-theme-muted text-[13px] hover:text-brand transition-colors",children:Y.label},Y.href,!1,void 0,this))},void 0,!1,void 0,this),h1("div",{className:"flex items-center gap-4",children:[X.copyright&&h1("span",{className:"text-theme-light text-[11px]",children:X.copyright},void 0,!1,void 0,this),h1(q2,{variant:"footer",size:"sm"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}Q0();I();U5();Q0();I();Q0();I();I();Q0();var oj=K.enum(["draft","queued","published"]),R2=K.object({title:K.string(),slug:K.string().optional(),description:K.string().optional(),author:K.string().optional(),status:oj,publishedAt:K.string().datetime().optional(),event:K.string().optional(),coverImageId:K.string().optional()}),sj=R2.pick({title:!0,description:!0,status:!0,publishedAt:!0,coverImageId:!0}).extend({slug:K.string()}),y$=N1.extend({entityType:K.literal("deck"),metadata:sj}),f$=y$.extend({frontmatter:R2,body:K.string()}),L8=f$.extend({url:K.string().optional(),typeLabel:K.string().optional(),listUrl:K.string().optional(),listLabel:K.string().optional(),coverImageUrl:K.string().optional(),coverImageWidth:K.number().optional(),coverImageHeight:K.number().optional()});class BY extends B1{constructor(){super({entityType:"deck",schema:y$,frontmatterSchema:R2,supportsCoverImage:!0})}validateSlideStructure($){if(!/^---$/gm.test($))throw Error("Invalid deck: markdown must contain slide separators (---) to be a valid presentation")}toMarkdown($){let X=this.extractBody($.content);this.validateSlideStructure(X);try{let G=this.parseFrontMatter($.content,R2),Y={...G,slug:G.slug??$.metadata.slug};return this.buildMarkdown(X,Y)}catch{return X}}fromMarkdown($){let X=this.parseFrontmatter($),G=this.extractBody($);this.validateSlideStructure(G);let Y=X.slug??f1(X.title),J=X.status;return{entityType:"deck",content:$,metadata:{slug:Y,title:X.title,description:X.description,status:J,publishedAt:X.publishedAt,coverImageId:X.coverImageId}}}generateTitle($){return $.metadata.title}generateSummary($){if($.metadata.description)return $.metadata.description;return`Presentation: ${$.metadata.title}`}generateFrontMatter($){return this.toMarkdown($)}}var C8=new BY;I();U5();var aj=K.object({markdown:K.string().describe("Markdown content with slide separators (---)")}),NY=L0({name:"deck-detail",description:"Render a presentation deck as Reveal.js slides",schema:aj,dataSourceId:"decks:entities",requiredPermission:"public",layout:{component:nG,fullscreen:!0}});U5();I();var wY=K.object({decks:K.array(f$)}),_Y=K.object({decks:K.array(L8),pageTitle:K.string().optional()});import{jsxDEV as zY}from"preact/jsx-dev-runtime";var DY=({decks:$,pageTitle:X})=>{let G=$.map((Y)=>({id:Y.id,url:Y.url,title:Y.frontmatter.title,date:Y.frontmatter.publishedAt??Y.created,description:Y.frontmatter.description}));return zY("div",{className:"deck-list bg-theme",children:zY("div",{className:"container mx-auto px-6 md:px-12 max-w-4xl py-16 md:py-24",children:zY(k5,{title:X??"Presentations",items:G},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)};I();class g$ extends d9{constructor(){super(wY,{title:"Deck List",mappings:[{key:"decks",label:"Decks",type:"array",itemType:"object"}]})}}var PY=L0({name:"deck-list",description:"List view of all presentation decks",schema:_Y,dataSourceId:"decks:entities",requiredPermission:"public",formatter:new g$,layout:{component:DY}});I();Q0();var tj=K.object({title:K.string().max(80).describe("A short, punchy title (2-5 words) that's memorable and evocative"),content:K.string().describe("Full slide deck content in markdown format with slide separators (---). Each slide should have a header and focused content."),description:K.string().describe("A concise 1-2 sentence summary that captures the essence of the talk")}),gZ=L0({name:"decks:generation",description:"Template for AI to generate complete slide decks from prompts",schema:tj,dataSourceId:"shell:ai-content",requiredPermission:"public",useKnowledgeContext:!0,basePrompt:`You are creating slide decks in a distinctive voice that blends philosophy, technology, and culture.
789
+ ${G.content}`,templateName:"blog:excerpt"})})}var jR={name:"@brains/blog",private:!0,version:"0.2.0-alpha.51",description:"AI-powered blog post generation from existing brain content",type:"module",exports:{".":"./src/index.ts"},scripts:{typecheck:"tsc --noEmit",test:"bun test",lint:"eslint . --ext .ts","lint:fix":"eslint . --ext .ts --fix",eval:"cd evals && bun run brain-eval"},dependencies:{"@brains/plugins":"workspace:*","@brains/utils":"workspace:*"},devDependencies:{"@brains/app":"workspace:*","@brains/eslint-config":"workspace:*","@brains/typescript-config":"workspace:*","@types/bun":"latest","bun-types":"latest",eslint:"^8.56.0",typescript:"^5.3.3"}};class xR extends H2{entityType=l2.entityType;schema=n6;adapter=l2;constructor($={}){super("blog",jR,$,fG)}getEntityTypeConfig(){return{weight:2}}createGenerationHandler($){return new gG(this.logger.child("BlogGenerationJobHandler"),$)}getTemplates(){return PR()}getDataSources(){return[new pG(this.logger.child("BlogDataSource"))]}async onRegister($){let{RSSDataSource:X}=await Promise.resolve().then(() => (vR(),kR));$.entities.registerDataSource(new X(this.logger.child("RSSDataSource"))),await LR($,this.logger),CR($,this.logger),ER($,this.logger),IR($),this.logger.info("Blog plugin registered (routes auto-generated at /posts/)")}}Z5();A8();Q0();I();var bR=K.object({id:K.string(),template:K.string(),content:K.unknown().optional(),dataQuery:K.object({entityType:K.string().optional(),template:K.string().optional(),query:K.object({id:K.string().optional(),limit:K.number().optional(),offset:K.number().optional()}).passthrough().optional()}).passthrough().optional(),order:K.number().optional()}),hR=["primary","secondary"],yR=K.object({show:K.boolean().default(!1),label:K.string().optional(),slot:K.enum(hR).default("primary"),priority:K.number().min(0).max(100).default(50)}).optional(),fR=K.object({id:K.string(),path:K.string(),title:K.string().default(""),description:K.string().default(""),sections:K.array(bR).default([]),layout:K.string().default("default"),fullscreen:K.boolean().optional(),pluginId:K.string().optional(),sourceEntityType:K.string().optional(),external:K.boolean().optional(),navigation:yR}),mj=K.object({routes:K.array(fR),pluginId:K.string()}),pj=K.object({paths:K.array(K.string()).optional(),pluginId:K.string().optional()}),uj=K.object({pluginId:K.string().optional()}),dj=K.object({path:K.string()}),k$=K.object({label:K.string(),href:K.string(),priority:K.number()});I();var v$=K.object({heading:K.string().describe("Main CTA heading text"),buttonText:K.string().describe("Call-to-action button text"),buttonLink:K.string().describe("URL or anchor for the CTA button")}),x$=K.object({blurb:K.string().optional().describe("Short italic subtitle under the section title")}),b$=K.object({title:K.string().describe("The site's title"),description:K.string().describe("The site's description"),url:K.string().optional().describe("Canonical site URL"),copyright:K.string().optional().describe("Copyright notice text"),logo:K.boolean().optional().describe("Whether to display logo instead of title text in header"),themeMode:K.enum(["light","dark"]).optional().describe("Default theme mode"),analyticsScript:K.string().optional().describe("Analytics script HTML"),cta:v$.optional().describe("Call-to-action configuration"),sections:K.record(K.string(),x$).optional().describe("Optional per-section blurbs, keyed by section id (e.g. 'essays', 'presentations', 'about'). Used by homepage templates that render editorial section headers.")}),lj=K.object({platform:K.enum(["github","instagram","linkedin","email","website"]).describe("Social media platform"),url:K.string().describe("Profile or contact URL"),label:K.string().optional().describe("Optional display label")}),cj=b$.extend({navigation:K.object({primary:K.array(k$),secondary:K.array(k$)}),copyright:K.string(),socialLinks:K.array(lj).optional().describe("Social media links from profile metadata")});I();var rj=K.string(),ij=K.object({id:K.string().min(1)}).passthrough(),nj=K.object({label:K.string().min(1)}).passthrough(),oj=K.object({layouts:K.record(K.unknown()),plugin:K.function(),routes:K.array(ij),entityDisplay:K.record(nj),staticAssets:K.record(K.string()).optional()}).passthrough(),sj=K.custom(($)=>oj.safeParse($).success);I();Q0();var gR=K.object({}),h$=N1.extend({id:K.literal("site-info"),entityType:K.literal("site-info"),metadata:gR}),E8=v$,J4=b$.omit({url:!0,analyticsScript:!0});Q0();class x5 extends V1{constructor(){super({entityType:"site-info",schema:h$,frontmatterSchema:J4,isSingleton:!0,hasBody:!1})}createSiteInfoContent($){let X=J4.parse($);return this.buildMarkdown("",X)}parseSiteInfoBody($){return this.parseFrontmatter($)}fromMarkdown($){return{content:$,entityType:"site-info"}}extractMetadata($){return{}}generateFrontMatter($){let X=this.parseFrontmatter($.content);return this.buildMarkdown("",X)}}var RX0=new x5;var TX0=new x5;var XS=new x5;async function I8($){let G=(await $.listEntities({entityType:"site-info",options:{limit:1}}))[0];if(!G)throw Error("Site info not found \u2014 create a site-info entity");return XS.parseSiteInfoBody(G.content)}I();var GS=J4.extend({navigation:K.object({primary:K.array(K.object({label:K.string(),href:K.string(),priority:K.number()})),secondary:K.array(K.object({label:K.string(),href:K.string(),priority:K.number()}))}),copyright:K.string(),socialLinks:K.array(K.object({platform:K.enum(["github","instagram","linkedin","email","website"]).describe("Social media platform"),url:K.string().describe("Profile or contact URL"),label:K.string().optional().describe("Optional display label")})).optional().describe("Social media links from profile entity")});Q0();var y$=r6,q2=O5.extend(y$.shape);Q0();d2();I();var YS=new m1;class f${postsListUrl;id="personal:homepage";name="Personal Homepage DataSource";description="Fetches profile and blog posts for a personal homepage";constructor($){this.postsListUrl=$}async fetch($,X,G){let Y=G.entityService,[J,W,H]=await Promise.all([q5(Y),Y.listEntities({entityType:"post",options:{limit:20}}),I8(Y)]),U=YS.parseProfileBody(J,q2),F=W.sort(h6).slice(0,6).map(c2);if(!H.cta)throw Error("CTA not configured in site-info");let M={profile:U,posts:F,postsListUrl:this.postsListUrl,cta:H.cta};return X.parse(M)}}Q0();d2();var JS=new m1;class g${id="personal:about";name="About Page DataSource";description="Fetches full profile data for the about page";async fetch($,X,G){let Y=await q5(G.entityService),W={profile:JS.parseProfileBody(Y,q2)};return X.parse(W)}}import{jsxDEV as U0,Fragment as mR}from"preact/jsx-dev-runtime";function WS($){return new Date($).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}function HS($){return $.split(/(\*[^*]+\*)/).map((X,G)=>{if(X.startsWith("*")&&X.endsWith("*")&&X.length>2)return U0("em",{className:"font-sans italic font-medium text-theme-inverse tracking-[-0.015em] [font-variation-settings:'opsz'_72]",children:X.slice(1,-1)},G,!1,void 0,this);return X})}var MY=({profile:$,posts:X,postsListUrl:G,cta:Y})=>{let J=$.tagline??$.description,W=$.name.split(" ")[0];return U0(mR,{children:[U0(s0,{title:$.name,description:$.description??J??"Personal site",ogType:"website"},void 0,!1,void 0,this),U0("header",{className:"hero-decor bg-brand text-theme-inverse relative flex flex-col items-center justify-center px-6 md:px-12 pt-32 pb-24 gap-7",children:U0("div",{className:"w-full max-w-[1100px] mx-auto text-center flex flex-col items-center gap-7",children:[J&&U0("h1",{className:"font-heading font-bold text-[clamp(2.5rem,6vw,5rem)] leading-[1.05] tracking-[-0.035em] text-theme-inverse text-balance m-0 [font-variation-settings:'wdth'_90,'opsz'_96]",children:HS(J)},void 0,!1,void 0,this),$.description&&U0("p",{className:"text-[clamp(1.0625rem,1.4vw,1.3125rem)] leading-[1.5] text-theme-inverse opacity-95 max-w-[600px] mx-auto m-0",children:$.description},void 0,!1,void 0,this),U0("div",{className:"flex flex-wrap justify-center gap-3.5 mt-2",children:[U0("a",{href:G,className:"inline-flex items-center gap-2 rounded-full py-3.5 px-7 bg-theme text-brand border-2 border-theme font-heading font-semibold text-[15px] hover:bg-theme-subtle hover:-translate-y-0.5 transition-all [font-variation-settings:'wdth'_92,'opsz'_18]",children:["Read the Blog ",U0("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0("a",{href:"/about",className:"rounded-full py-3.5 px-7 border-2 border-theme-light text-theme-inverse font-heading font-semibold text-[15px] hover:bg-brand-dark hover:border-theme hover:-translate-y-0.5 transition-all [font-variation-settings:'wdth'_92,'opsz'_18]",children:["About ",W]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),X.length>0&&U0("section",{className:"flex flex-col py-24 px-6 md:px-12 gap-11 bg-theme-subtle",children:[U0("div",{className:"flex justify-between items-end max-w-layout mx-auto w-full gap-6 flex-wrap",children:[U0("div",{children:[U0("span",{className:"block font-heading font-semibold text-[13px] uppercase tracking-[0.22em] text-brand mb-3 [font-variation-settings:'wdth'_85,'opsz'_12]",children:"The Archive"},void 0,!1,void 0,this),U0("h2",{className:"font-heading font-bold text-[clamp(2.25rem,5vw,3.75rem)] leading-none tracking-[-0.03em] text-heading m-0 [font-variation-settings:'wdth'_92,'opsz'_64]",children:["Recent"," ",U0("em",{className:"font-sans italic font-medium text-brand [font-variation-settings:'opsz'_60]",children:"posts"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),U0("a",{href:G,className:"font-heading font-semibold text-[15px] text-brand inline-flex items-center gap-1.5 pb-1.5 border-b-2 border-current hover:text-brand-dark transition-colors [font-variation-settings:'wdth'_88,'opsz'_16]",children:["View the whole archive ",U0("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),U0("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(min(100%,320px),1fr))] gap-8 max-w-layout mx-auto w-full",children:X.map((H)=>U0("a",{href:H.url,className:"group flex flex-col bg-theme border border-theme rounded-md overflow-hidden hover:-translate-y-1 hover:border-brand/50 transition-all no-underline shadow-sm hover:shadow-lg",children:[H.coverImageUrl?U0("img",{src:H.coverImageUrl,alt:H.metadata.title,className:"w-full aspect-[16/10] object-cover bg-theme-muted"},void 0,!1,void 0,this):U0("div",{className:"w-full aspect-[16/10] bg-gradient-to-br from-brand to-accent","aria-hidden":"true"},void 0,!1,void 0,this),U0("div",{className:"flex flex-col gap-4 p-7 flex-1",children:[U0("div",{className:"flex flex-wrap items-center gap-3.5 font-heading text-[11px] font-semibold uppercase tracking-[0.18em] text-theme-muted [font-variation-settings:'wdth'_85,'opsz'_11]",children:[H.frontmatter.seriesName&&U0(mR,{children:[U0("span",{className:"text-brand",children:H.frontmatter.seriesName},void 0,!1,void 0,this),U0("span",{className:"w-[3px] h-[3px] rounded-full bg-current opacity-50","aria-hidden":"true"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0("time",{children:WS(H.metadata.publishedAt??H.created)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0("h3",{className:"font-sans font-semibold text-[clamp(1.375rem,1.8vw,1.625rem)] leading-[1.18] tracking-[-0.012em] text-heading m-0 text-balance",children:H.metadata.title},void 0,!1,void 0,this),H.frontmatter.excerpt&&U0("p",{className:"text-base leading-[1.55] text-theme-muted m-0 flex-1",children:H.frontmatter.excerpt},void 0,!1,void 0,this),U0("span",{className:"inline-flex items-center gap-1.5 font-heading font-semibold text-[13px] uppercase tracking-[0.14em] text-brand mt-1 [font-variation-settings:'wdth'_88,'opsz'_14]",children:["Read the post"," ",U0("span",{"aria-hidden":"true",className:"transition-transform group-hover:translate-x-1",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},H.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0("section",{className:"cta-decor bg-theme-dark text-theme-on-dark flex-grow flex flex-col items-center justify-center py-24 px-6 md:px-12 gap-5",children:[U0("span",{className:"font-heading font-medium text-xs uppercase tracking-[0.24em] text-accent [font-variation-settings:'wdth'_85,'opsz'_12]",children:"Get in touch"},void 0,!1,void 0,this),U0("h2",{className:"text-center font-heading font-bold text-[clamp(2rem,4vw,3rem)] leading-none tracking-[-0.03em] text-theme-on-dark m-0 [font-variation-settings:'wdth'_90,'opsz'_64]",children:Y.heading},void 0,!1,void 0,this),Y.subtitle&&U0("p",{className:"text-center text-base leading-[1.55] text-theme-on-dark opacity-80 max-w-[480px] m-0",children:Y.subtitle},void 0,!1,void 0,this),U0("a",{href:Y.buttonLink,className:"inline-flex items-center gap-2 rounded-full py-3.5 px-7 bg-brand text-theme-inverse border-2 border-brand font-heading font-semibold text-[15px] hover:bg-brand-dark hover:-translate-y-0.5 transition-all mt-2 [font-variation-settings:'wdth'_92,'opsz'_18]",children:[Y.buttonText," ",U0("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as X1,Fragment as US}from"preact/jsx-dev-runtime";var QY=({profile:$})=>{let X=`About ${$.name}`,G=$.description??$.intro??"About page",Y=Boolean($.email??$.website);return X1(US,{children:[X1(s0,{title:X,description:G,ogType:"profile"},void 0,!1,void 0,this),X1("section",{className:"hero-decor bg-brand text-theme-inverse relative flex flex-col px-6 md:px-12 pt-32 pb-24",children:X1("div",{className:"w-full max-w-3xl mx-auto flex flex-col gap-6",children:[X1("h1",{className:"font-heading font-bold text-[clamp(2.5rem,6vw,4.5rem)] leading-[1.05] tracking-[-0.035em] text-theme-inverse text-balance m-0 [font-variation-settings:'wdth'_90,'opsz'_96]",children:$.name},void 0,!1,void 0,this),$.description&&X1("p",{className:"text-[clamp(1.0625rem,1.4vw,1.25rem)] leading-[1.55] text-theme-inverse opacity-95 max-w-2xl m-0",children:$.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),$.story&&X1("section",{className:`py-24 px-6 md:px-12 bg-theme-subtle${Y?"":" flex-grow"}`,children:X1("div",{className:"max-w-3xl mx-auto",children:X1(i2,{markdown:$.story},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y&&X1("section",{className:"cta-decor bg-theme-dark text-theme-on-dark flex-grow flex flex-col items-center justify-center py-24 px-6 md:px-12 gap-5",children:[X1("span",{className:"font-heading font-medium text-xs uppercase tracking-[0.24em] text-accent [font-variation-settings:'wdth'_85,'opsz'_12]",children:"Get in touch"},void 0,!1,void 0,this),X1("h2",{className:"text-center font-heading font-bold text-[clamp(2rem,4vw,3rem)] leading-none tracking-[-0.03em] text-theme-on-dark m-0 [font-variation-settings:'wdth'_90,'opsz'_64]",children:["Say"," ",X1("em",{className:"font-sans italic font-medium text-accent [font-variation-settings:'opsz'_72]",children:"hi."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X1("div",{className:"flex flex-wrap justify-center gap-3.5 mt-2",children:[$.email&&X1("a",{href:`mailto:${$.email}`,className:"inline-flex items-center gap-2 rounded-full py-3.5 px-7 bg-brand text-theme-inverse border-2 border-brand font-heading font-semibold text-[15px] hover:bg-brand-dark hover:-translate-y-0.5 transition-all [font-variation-settings:'wdth'_92,'opsz'_18]",children:["Get in Touch ",X1("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$.website&&X1("a",{href:$.website,className:"rounded-full py-3.5 px-7 border-2 border-theme-light text-theme-on-dark font-heading font-semibold text-[15px] hover:bg-brand-dark hover:border-theme hover:-translate-y-0.5 transition-all [font-variation-settings:'wdth'_92,'opsz'_18]",children:"Website"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};var pR={name:"@brains/site-personal",private:!0,version:"0.2.0-alpha.51",description:"Personal site composition package",type:"module",exports:{".":"./src/index.ts"},files:["src"],scripts:{typecheck:"tsc --noEmit",lint:"eslint . --ext .ts","lint:fix":"eslint . --ext .ts --fix"},dependencies:{"@brains/blog":"workspace:*","@brains/identity-service":"workspace:*","@brains/plugins":"workspace:*","@brains/site-composition":"workspace:*","@brains/site-engine":"workspace:*","@brains/site-info":"workspace:*","@brains/templates":"workspace:*","@brains/ui-library":"workspace:*","@brains/utils":"workspace:*",preact:"^10.27.2"},devDependencies:{"@brains/eslint-config":"workspace:*","@brains/typescript-config":"workspace:*","@types/bun":"latest","bun-types":"latest",eslint:"^8.56.0",typescript:"^5.3.3"}};var FS=K.object({entityDisplay:K.object({post:K.object({label:K.string().default("Post"),pluralName:K.string().optional()}).default({})}).default({})});class qY extends d6{dependencies=["blog"];constructor($={}){super("personal-site",pR,$,FS)}async onRegister($){$.entities.extendFrontmatterSchema("anchor-profile",y$);let X=this.config.entityDisplay.post,G=`/${X.pluralName??X.label.toLowerCase()+"s"}`,Y=new f$(G);$.entities.registerDataSource(Y);let J=new g$;$.entities.registerDataSource(J);let W=K.object({profile:q2,posts:K.array(a1),postsListUrl:K.string(),cta:E8}),H=K.object({profile:q2});$.templates.register({homepage:L0({name:"homepage",description:"Personal homepage with recent blog posts",schema:W,dataSourceId:"personal:homepage",requiredPermission:"public",layout:{component:MY}}),about:L0({name:"about",description:"About page with profile",schema:H,dataSourceId:"personal:about",requiredPermission:"public",layout:{component:QY}})}),this.logger.info("Personal site plugin registered successfully")}async getTools(){return[]}async getResources(){return[]}}function OY($){return new qY($??{})}var ZY=[{id:"home",path:"/",title:"Home",description:"Personal site homepage",layout:"default",navigation:{show:!0,label:"Home",slot:"secondary",priority:10},sections:[{id:"homepage",template:"personal-site:homepage",dataQuery:{}}]},{id:"about",path:"/about",title:"About",description:"About page",layout:"default",navigation:{show:!0,label:"About",slot:"primary",priority:90},sections:[{id:"about",template:"personal-site:about",dataQuery:{}}]}];import{jsxDEV as h1}from"preact/jsx-dev-runtime";function RY({sections:$,siteInfo:X}){let G=[...X.navigation.primary,...X.navigation.secondary].filter((Y)=>Y.label!=="Home");return h1("div",{className:"flex flex-col min-h-screen bg-theme overflow-x-clip",children:[h1(w8,{title:X.title,titleClassName:"font-heading font-bold text-2xl",navigation:X.navigation.primary,showThemeToggle:!0,themeToggleClassName:"bg-theme-toggle text-theme-toggle-icon hover:bg-theme-toggle-hover rounded-[10px]",...X.logo!==void 0?{logo:X.logo}:{}},void 0,!1,void 0,this),h1("main",{className:"flex-grow flex flex-col",children:$},void 0,!1,void 0,this),h1("footer",{className:"bg-footer text-footer border-t border-theme",children:h1("div",{className:"max-w-layout mx-auto flex flex-col md:flex-row justify-between items-center py-8 px-6 md:px-8",children:[h1("div",{className:"flex flex-col gap-1 mb-4 md:mb-0",children:[h1("span",{className:"text-brand font-heading font-bold text-lg",children:X.title},void 0,!1,void 0,this),X.description&&h1("span",{className:"text-theme-muted text-xs",children:X.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h1("nav",{className:"flex flex-wrap justify-center gap-x-6 gap-y-2 mb-4 md:mb-0",children:G.map((Y)=>h1("a",{href:Y.href,className:"text-theme-muted text-[13px] hover:text-brand transition-colors",children:Y.label},Y.href,!1,void 0,this))},void 0,!1,void 0,this),h1("div",{className:"flex items-center gap-4",children:[X.copyright&&h1("span",{className:"text-theme-light text-[11px]",children:X.copyright},void 0,!1,void 0,this),h1(Q2,{variant:"footer",size:"sm"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}Q0();I();U5();Q0();I();Q0();I();I();Q0();var MS=K.enum(["draft","queued","published"]),O2=K.object({title:K.string(),slug:K.string().optional(),description:K.string().optional(),author:K.string().optional(),status:MS,publishedAt:K.string().datetime().optional(),event:K.string().optional(),coverImageId:K.string().optional()}),QS=O2.pick({title:!0,description:!0,status:!0,publishedAt:!0,coverImageId:!0}).extend({slug:K.string()}),m$=N1.extend({entityType:K.literal("deck"),metadata:QS}),p$=m$.extend({frontmatter:O2,body:K.string()}),j8=p$.extend({url:K.string().optional(),typeLabel:K.string().optional(),listUrl:K.string().optional(),listLabel:K.string().optional(),coverImageUrl:K.string().optional(),coverImageWidth:K.number().optional(),coverImageHeight:K.number().optional()});class AY extends V1{constructor(){super({entityType:"deck",schema:m$,frontmatterSchema:O2,supportsCoverImage:!0})}validateSlideStructure($){if(!/^---$/gm.test($))throw Error("Invalid deck: markdown must contain slide separators (---) to be a valid presentation")}toMarkdown($){let X=this.extractBody($.content);this.validateSlideStructure(X);try{let G=this.parseFrontMatter($.content,O2),Y={...G,slug:G.slug??$.metadata.slug};return this.buildMarkdown(X,Y)}catch{return X}}fromMarkdown($){let X=this.parseFrontmatter($),G=this.extractBody($);this.validateSlideStructure(G);let Y=X.slug??f1(X.title),J=X.status;return{entityType:"deck",content:$,metadata:{slug:Y,title:X.title,description:X.description,status:J,publishedAt:X.publishedAt,coverImageId:X.coverImageId}}}generateTitle($){return $.metadata.title}generateSummary($){if($.metadata.description)return $.metadata.description;return`Presentation: ${$.metadata.title}`}generateFrontMatter($){return this.toMarkdown($)}}var S8=new AY;I();U5();var qS=K.object({markdown:K.string().describe("Markdown content with slide separators (---)")}),BY=L0({name:"deck-detail",description:"Render a presentation deck as Reveal.js slides",schema:qS,dataSourceId:"decks:entities",requiredPermission:"public",layout:{component:cG,fullscreen:!0}});U5();I();var VY=K.object({decks:K.array(p$)}),NY=K.object({decks:K.array(j8),pageTitle:K.string().optional()});import{jsxDEV as wY}from"preact/jsx-dev-runtime";var _Y=({decks:$,pageTitle:X})=>{let G=$.map((Y)=>({id:Y.id,url:Y.url,title:Y.frontmatter.title,date:Y.frontmatter.publishedAt??Y.created,description:Y.frontmatter.description}));return wY("div",{className:"deck-list bg-theme",children:wY("div",{className:"container mx-auto px-6 md:px-12 max-w-4xl py-16 md:py-24",children:wY(D8,{title:X??"Presentations",items:G},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)};I();class u$ extends i9{constructor(){super(VY,{title:"Deck List",mappings:[{key:"decks",label:"Decks",type:"array",itemType:"object"}]})}}var zY=L0({name:"deck-list",description:"List view of all presentation decks",schema:NY,dataSourceId:"decks:entities",requiredPermission:"public",formatter:new u$,layout:{component:_Y}});I();Q0();var OS=K.object({title:K.string().max(80).describe("A short, punchy title (2-5 words) that's memorable and evocative"),content:K.string().describe("Full slide deck content in markdown format with slide separators (---). Each slide should have a header and focused content."),description:K.string().describe("A concise 1-2 sentence summary that captures the essence of the talk")}),uR=L0({name:"decks:generation",description:"Template for AI to generate complete slide decks from prompts",schema:OS,dataSourceId:"shell:ai-content",requiredPermission:"public",useKnowledgeContext:!0,basePrompt:`You are creating slide decks in a distinctive voice that blends philosophy, technology, and culture.
789
790
 
790
791
  Your task is to generate a complete slide deck based on the user's prompt.
791
792
 
@@ -820,7 +821,7 @@ When to use directives:
820
821
  - Mermaid: Architecture diagrams, flowcharts, sequences \u2014 only when visual adds clarity
821
822
  - Most slides should have NO directives \u2014 clean content speaks louder
822
823
 
823
- The tone should feel like a talk from someone who builds things and thinks deeply about them - not a corporate deck or sales pitch.`});I();Q0();var ej=K.object({description:K.string().describe("A concise 1-2 sentence description that captures the essence of the presentation")}),mZ=L0({name:"decks:description",description:"Template for AI to generate descriptions from slide deck content",schema:ej,dataSourceId:"shell:ai-content",requiredPermission:"public",basePrompt:`Write a short description (1-2 sentences) for this presentation.
824
+ The tone should feel like a talk from someone who builds things and thinks deeply about them - not a corporate deck or sales pitch.`});I();Q0();var ZS=K.object({description:K.string().describe("A concise 1-2 sentence description that captures the essence of the presentation")}),dR=L0({name:"decks:description",description:"Template for AI to generate descriptions from slide deck content",schema:ZS,dataSourceId:"shell:ai-content",requiredPermission:"public",basePrompt:`Write a short description (1-2 sentences) for this presentation.
824
825
 
825
826
  Guidelines:
826
827
  1. Capture the core argument or idea, not just the topic
@@ -829,8 +830,8 @@ Guidelines:
829
830
  4. Match the voice of the presentation - if it's opinionated, the description should be too
830
831
 
831
832
  Bad: "An exploration of modern web development practices and their implications"
832
- Good: "Why most web frameworks are solving the wrong problems"`});Q0();I();v1();var pZ=K.enum(["png","jpg","jpeg","webp","gif","svg"]),uZ=K.object({title:K.string().optional(),alt:K.string().optional(),format:pZ,width:K.number(),height:K.number(),sourceUrl:K.string().url().optional()}),LY=N1.extend({entityType:K.literal("image"),metadata:uZ}),$S=K.object({url:K.string(),alt:K.string(),title:K.string(),width:K.number(),height:K.number()});I();function m$($){let X=$.match(/^data:image\/([a-z+]+);base64,(.+)$/i);if(!X?.[1]||!X[2])throw Error("Invalid image data URL");return{format:X[1].toLowerCase(),base64:X[2]}}var XS={png:"iVBORw",jpg:"/9j/",gif:"R0lGOD",webp:"UklGR"};function CY($){for(let[X,G]of Object.entries(XS))if($.startsWith(G))return X;return null}function p$($){let X=Buffer.from($,"base64");if(X[0]===137&&X[1]===80&&X[2]===78&&X[3]===71){let G=X.readUInt32BE(16),Y=X.readUInt32BE(20);return{width:G,height:Y}}if(X[0]===255&&X[1]===216){let G=2;while(G<X.length-8){if(X[G]!==255){G++;continue}let Y=X[G+1];if(Y===192||Y===194){let W=X.readUInt16BE(G+5);return{width:X.readUInt16BE(G+7),height:W}}let J=X.readUInt16BE(G+2);G+=2+J}}if(X[0]===71&&X[1]===73&&X[2]===70){let G=X.readUInt16LE(6),Y=X.readUInt16LE(8);return{width:G,height:Y}}if(X.length>=30&&X[0]===82&&X[1]===73&&X[2]===70&&X[3]===70){if(X[12]===86&&X[13]===80&&X[14]===56){if(X[15]===32){let G=X[26]??0,Y=X[27]??0,J=X[28]??0,W=X[29]??0,H=(G|Y<<8)&16383,U=(J|W<<8)&16383;return{width:H,height:U}}if(X[15]===76&&X.length>=25){let G=X.readUInt32LE(21),Y=(G&16383)+1,J=(G>>14&16383)+1;return{width:Y,height:J}}}}return null}class TY{entityType="image";schema=LY;toMarkdown($){return $.content}fromMarkdown($){let{format:X,base64:G}=m$($),Y=p$(G);return{entityType:"image",content:$,metadata:{format:X,width:Y?.width??0,height:Y?.height??0}}}extractMetadata($){return $.metadata}parseFrontMatter($,X){return X.parse({})}generateFrontMatter($){return""}getBodyTemplate(){return""}createImageEntity($){let{dataUrl:X,title:G,alt:Y}=$,{format:J,base64:W}=m$(X),H=p$(W),F=CY(W)??J;return{entityType:"image",content:X,metadata:{title:G,alt:Y??G,format:F,width:H?.width??0,height:H?.height??0}}}}var GS=new TY;v1();I();var YS=K.object({coverImageId:K.string().optional()}).passthrough();async function dZ($,X){let G=await X.getEntity("image",$);if(!G)return null;return{url:G.content,alt:G.metadata.alt??"",title:G.metadata.title??"",width:G.metadata.width,height:G.metadata.height}}function lZ($){try{let{metadata:X}=E0($.content,YS);return X.coverImageId}catch{return}}async function EY($,X){let G=lZ($);if(!G)return;return await dZ(G,X)??void 0}Q0();function T8($){let{metadata:X,content:G}=E0($.content,R2);return{...$,frontmatter:X,body:G}}class IY extends c6{id="decks:entities";name="Deck Entity DataSource";description="Fetches and transforms deck entities for rendering";config={entityType:"deck",defaultSort:[{field:"publishedAt",direction:"desc"}],defaultLimit:100};constructor($){super($);this.logger.debug("DeckDataSource initialized")}transformEntity($){return T8($)}async fetchDetail($,X){let G=await super.fetchDetail($,X),Y=await EY(G.item,X);if(Y){let J=`<!-- .slide: data-background-image="${Y.url}" data-background-opacity="0.4" -->`;G.item={...G.item,body:`${J}
833
- ${G.item.body}`}}return G}buildDetailResult($,X){return{markdown:$.body}}buildListResult($,X,G){return this.logger.debug("Creating deck list data",{deckCount:$.length,firstDeck:$[0]?.id}),{decks:$}}}Q0();I();var JS=K.object({prompt:K.string().optional(),title:K.string().optional(),content:K.string().optional(),description:K.string().optional(),author:K.string().optional(),event:K.string().optional(),skipAi:K.boolean().optional()}),UG0=n4.extend({title:K.string().optional(),slug:K.string().optional()});class jY extends r6{constructor($,X){super($,X,{schema:JS,jobTypeName:"deck-generation",entityType:"deck"})}async generate($,X){let{prompt:G,author:Y,event:J,skipAi:W}=$,{title:H,content:U,description:F}=$;if(W){if(!H)this.failEarly("Title is required when skipAi is true");U=U??`# ${H}
833
+ Good: "Why most web frameworks are solving the wrong problems"`});Q0();I();v1();var lR=K.enum(["png","jpg","jpeg","webp","gif","svg"]),cR=K.object({title:K.string().optional(),alt:K.string().optional(),format:lR,width:K.number(),height:K.number(),sourceUrl:K.string().url().optional()}),DY=N1.extend({entityType:K.literal("image"),metadata:cR}),RS=K.object({url:K.string(),alt:K.string(),title:K.string(),width:K.number(),height:K.number()});I();function d$($){let X=$.match(/^data:image\/([a-z+]+);base64,(.+)$/i);if(!X?.[1]||!X[2])throw Error("Invalid image data URL");return{format:X[1].toLowerCase(),base64:X[2]}}var AS={png:"iVBORw",jpg:"/9j/",gif:"R0lGOD",webp:"UklGR"};function PY($){for(let[X,G]of Object.entries(AS))if($.startsWith(G))return X;return null}function l$($){let X=Buffer.from($,"base64");if(X[0]===137&&X[1]===80&&X[2]===78&&X[3]===71){let G=X.readUInt32BE(16),Y=X.readUInt32BE(20);return{width:G,height:Y}}if(X[0]===255&&X[1]===216){let G=2;while(G<X.length-8){if(X[G]!==255){G++;continue}let Y=X[G+1];if(Y===192||Y===194){let W=X.readUInt16BE(G+5);return{width:X.readUInt16BE(G+7),height:W}}let J=X.readUInt16BE(G+2);G+=2+J}}if(X[0]===71&&X[1]===73&&X[2]===70){let G=X.readUInt16LE(6),Y=X.readUInt16LE(8);return{width:G,height:Y}}if(X.length>=30&&X[0]===82&&X[1]===73&&X[2]===70&&X[3]===70){if(X[12]===86&&X[13]===80&&X[14]===56){if(X[15]===32){let G=X[26]??0,Y=X[27]??0,J=X[28]??0,W=X[29]??0,H=(G|Y<<8)&16383,U=(J|W<<8)&16383;return{width:H,height:U}}if(X[15]===76&&X.length>=25){let G=X.readUInt32LE(21),Y=(G&16383)+1,J=(G>>14&16383)+1;return{width:Y,height:J}}}}return null}class LY{entityType="image";schema=DY;toMarkdown($){return $.content}fromMarkdown($){let{format:X,base64:G}=d$($),Y=l$(G);return{entityType:"image",content:$,metadata:{format:X,width:Y?.width??0,height:Y?.height??0}}}extractMetadata($){return $.metadata}parseFrontMatter($,X){return X.parse({})}generateFrontMatter($){return""}getBodyTemplate(){return""}createImageEntity($){let{dataUrl:X,title:G,alt:Y}=$,{format:J,base64:W}=d$(X),H=l$(W),F=PY(W)??J;return{entityType:"image",content:X,metadata:{title:G,alt:Y??G,format:F,width:H?.width??0,height:H?.height??0}}}}var BS=new LY;v1();I();var VS=K.object({coverImageId:K.string().optional()}).passthrough();async function rR($,X){let G=await X.getEntity({entityType:"image",id:$});if(!G)return null;return{url:G.content,alt:G.metadata.alt??"",title:G.metadata.title??"",width:G.metadata.width,height:G.metadata.height}}function iR($){try{let{metadata:X}=I0($.content,VS);return X.coverImageId}catch{return}}async function CY($,X){let G=iR($);if(!G)return;return await rR(G,X)??void 0}Q0();function k8($){let{metadata:X,content:G}=I0($.content,O2);return{...$,frontmatter:X,body:G}}class TY extends l6{id="decks:entities";name="Deck Entity DataSource";description="Fetches and transforms deck entities for rendering";config={entityType:"deck",defaultSort:[{field:"publishedAt",direction:"desc"}],defaultLimit:100};constructor($){super($);this.logger.debug("DeckDataSource initialized")}transformEntity($){return k8($)}async fetchDetail($,X){let G=await super.fetchDetail($,X),Y=await CY(G.item,X);if(Y){let J=`<!-- .slide: data-background-image="${Y.url}" data-background-opacity="0.4" -->`;G.item={...G.item,body:`${J}
834
+ ${G.item.body}`}}return G}buildDetailResult($,X){return{markdown:$.body}}buildListResult($,X,G){return this.logger.debug("Creating deck list data",{deckCount:$.length,firstDeck:$[0]?.id}),{decks:$}}}Q0();I();var NS=K.object({prompt:K.string().optional(),title:K.string().optional(),content:K.string().optional(),description:K.string().optional(),author:K.string().optional(),event:K.string().optional(),skipAi:K.boolean().optional()}),dG0=o4.extend({title:K.string().optional(),slug:K.string().optional()});class EY extends c6{constructor($,X){super($,X,{schema:NS,jobTypeName:"deck-generation",entityType:"deck"})}async generate($,X){let{prompt:G,author:Y,event:J,skipAi:W}=$,{title:H,content:U,description:F}=$;if(W){if(!H)this.failEarly("Title is required when skipAi is true");U=U??`# ${H}
834
835
 
835
836
  ---
836
837
 
@@ -853,12 +854,12 @@ Add your conclusion here`,F=F??`Presentation: ${H}`,await this.reportProgress(X,
853
854
  Note: This presentation is for "${J}".`:""}`,P=await this.context.ai.generate({prompt:D,templateName:"decks:generation"});H=H??P.title,U=U??P.content,F=F??P.description,await this.reportProgress(X,{progress:50,message:`Generated deck: "${H}"`})}else if(!F)await this.reportProgress(X,{progress:30,message:"Generating description with AI"}),F=(await this.context.ai.generate({prompt:`Title: ${H}
854
855
 
855
856
  Content:
856
- ${U}`,templateName:"decks:description"})).description,await this.reportProgress(X,{progress:50,message:"Description generated"});else await this.reportProgress(X,{progress:50,message:"Using provided content"});if(!H||!U)this.failEarly("Title and content are required");let Q={slug:f1(H),title:H,status:"draft"},q=await Q8({entityType:"deck",title:H,deriveId:(_)=>_,regeneratePrompt:"Generate a different presentation deck title on the same topic.",context:this.context});if(q!==H)Q.title=q,Q.slug=f1(q);let Z={title:Q.title,status:Q.status,slug:Q.slug,description:F,author:Y,event:J},A=H2(U,Z);return{id:q,content:A,metadata:Q,title:q,resultExtras:{title:q,slug:Q.slug},createOptions:{deduplicateId:!0}}}summarizeDataForLog($){return{prompt:$.prompt,title:$.title}}}var cZ={name:"@brains/decks",private:!0,version:"0.2.0-alpha.50",description:"Presentation decks plugin for creating and viewing slide presentations",type:"module",exports:{".":"./src/index.ts"},scripts:{typecheck:"tsc --noEmit",test:"bun test",lint:"eslint . --ext .ts","lint:fix":"eslint . --ext .ts --fix",eval:"cd evals && bun run brain-eval"},dependencies:{"@brains/image":"workspace:*","@brains/plugins":"workspace:*","@brains/utils":"workspace:*"},devDependencies:{"@brains/app":"workspace:*","@brains/eslint-config":"workspace:*","@brains/typescript-config":"workspace:*","@types/bun":"latest","bun-types":"latest",eslint:"^8.56.0",typescript:"^5.3.3"}};class rZ extends U2{entityType=C8.entityType;schema=C8.schema;adapter=C8;constructor(){super("decks",cZ)}createGenerationHandler($){return new jY(this.logger.child("DeckGenerationJobHandler"),$)}getTemplates(){return{"deck-detail":NY,"deck-list":PY,generation:gZ,description:mZ}}getDataSources(){return[new IY(this.logger)]}getEntityTypeConfig(){return{weight:1.5}}async onRegister($){await this.registerWithPublishPipeline($),this.subscribeToPublishExecute($),this.registerEvalHandlers($),this.logger.info("Decks plugin registered")}async registerWithPublishPipeline($){await $.messaging.send("publish:register",{entityType:"deck",provider:{name:"internal",publish:async()=>({id:"internal"})}})}subscribeToPublishExecute($){$.messaging.subscribe("publish:execute",async(X)=>{let{entityType:G,entityId:Y}=X.payload;if(G!=="deck")return{success:!0};try{let J=await $.entityService.getEntity("deck",Y);if(!J)return await $.messaging.send("publish:report:failure",{entityType:G,entityId:Y,error:`Deck not found: ${Y}`}),{success:!0};if(J.metadata.status==="published")return{success:!0};let W=new Date().toISOString(),H={...J,metadata:{...J.metadata,status:"published",publishedAt:W}};await $.entityService.updateEntity({...H,content:this.adapter.toMarkdown(H)}),await $.messaging.send("publish:report:success",{entityType:G,entityId:Y,result:{id:Y}})}catch(J){await $.messaging.send("publish:report:failure",{entityType:G,entityId:Y,error:j0(J)})}return{success:!0}})}registerEvalHandlers($){$.eval.registerHandler("generateDeck",async(X)=>{let G=K.object({prompt:K.string(),event:K.string().optional()}).parse(X);return $.ai.generate({prompt:`${G.prompt}${G.event?`
857
+ ${U}`,templateName:"decks:description"})).description,await this.reportProgress(X,{progress:50,message:"Description generated"});else await this.reportProgress(X,{progress:50,message:"Using provided content"});if(!H||!U)this.failEarly("Title and content are required");let Q={slug:f1(H),title:H,status:"draft"},q=await q8({entityType:"deck",title:H,deriveId:(_)=>_,regeneratePrompt:"Generate a different presentation deck title on the same topic.",context:this.context});if(q!==H)Q.title=q,Q.slug=f1(q);let A={title:Q.title,status:Q.status,slug:Q.slug,description:F,author:Y,event:J},Z=W2(U,A);return{id:q,content:Z,metadata:Q,title:q,resultExtras:{title:q,slug:Q.slug},createOptions:{deduplicateId:!0}}}summarizeDataForLog($){return{prompt:$.prompt,title:$.title}}}var nR={name:"@brains/decks",private:!0,version:"0.2.0-alpha.51",description:"Presentation decks plugin for creating and viewing slide presentations",type:"module",exports:{".":"./src/index.ts"},scripts:{typecheck:"tsc --noEmit",test:"bun test",lint:"eslint . --ext .ts","lint:fix":"eslint . --ext .ts --fix",eval:"cd evals && bun run brain-eval"},dependencies:{"@brains/image":"workspace:*","@brains/plugins":"workspace:*","@brains/utils":"workspace:*"},devDependencies:{"@brains/app":"workspace:*","@brains/eslint-config":"workspace:*","@brains/typescript-config":"workspace:*","@types/bun":"latest","bun-types":"latest",eslint:"^8.56.0",typescript:"^5.3.3"}};class oR extends H2{entityType=S8.entityType;schema=S8.schema;adapter=S8;constructor(){super("decks",nR)}createGenerationHandler($){return new EY(this.logger.child("DeckGenerationJobHandler"),$)}getTemplates(){return{"deck-detail":BY,"deck-list":zY,generation:uR,description:dR}}getDataSources(){return[new TY(this.logger)]}getEntityTypeConfig(){return{weight:1.5}}async onRegister($){await this.registerWithPublishPipeline($),this.subscribeToPublishExecute($),this.registerEvalHandlers($),this.logger.info("Decks plugin registered")}async registerWithPublishPipeline($){await $.messaging.send({type:"publish:register",payload:{entityType:"deck",provider:{name:"internal",publish:async()=>({id:"internal"})}}})}subscribeToPublishExecute($){$.messaging.subscribe("publish:execute",async(X)=>{let{entityType:G,entityId:Y}=X.payload;if(G!=="deck")return{success:!0};try{let J=await $.entityService.getEntity({entityType:"deck",id:Y});if(!J)return await $.messaging.send({type:"publish:report:failure",payload:{entityType:G,entityId:Y,error:`Deck not found: ${Y}`}}),{success:!0};if(J.metadata.status==="published")return{success:!0};let W=new Date().toISOString(),H={...J,metadata:{...J.metadata,status:"published",publishedAt:W}};await $.entityService.updateEntity({entity:{...H,content:this.adapter.toMarkdown(H)}}),await $.messaging.send({type:"publish:report:success",payload:{entityType:G,entityId:Y,result:{id:Y}}})}catch(J){await $.messaging.send({type:"publish:report:failure",payload:{entityType:G,entityId:Y,error:S0(J)}})}return{success:!0}})}registerEvalHandlers($){$.eval.registerHandler("generateDeck",async(X)=>{let G=K.object({prompt:K.string(),event:K.string().optional()}).parse(X);return $.ai.generate({prompt:`${G.prompt}${G.event?`
857
858
 
858
859
  Note: This presentation is for "${G.event}".`:""}`,templateName:"decks:generation"})}),$.eval.registerHandler("generateDescription",async(X)=>{let G=K.object({title:K.string(),content:K.string()}).parse(X);return $.ai.generate({prompt:`Title: ${G.title}
859
860
 
860
861
  Content:
861
- ${G.content}`,templateName:"decks:description"})})}}I();Q0();var u$=i6.extend({expertise:K.array(K.string()).optional().describe("Skills, domains, areas of focus"),currentFocus:K.string().optional().describe("What you're currently working on"),availability:K.string().optional().describe("What you're open to (consulting, speaking, etc.)")}),Z2=O5.extend(u$.shape);Q0();l2();I();var HS=new m1;class d${postsListUrl;decksListUrl;id="professional:homepage-list";name="Homepage List DataSource";description="Fetches profile, blog posts, and presentation decks for homepage";constructor($,X){this.postsListUrl=$;this.decksListUrl=X}async fetch($,X,G){let Y=G.entityService,[J,W,H,U]=await Promise.all([q5(Y),Y.listEntities("post",{limit:20}),Y.listEntities("deck",{limit:20}),P8(Y)]),F=HS.parseProfileBody(J,Z2),M=W.sort(y6).slice(0,3).map(r2),Q=H.sort(y6).slice(0,3).map(T8);if(!U.cta)throw Error("CTA not configured in site-info");let q={profile:F,posts:M,decks:Q,postsListUrl:this.postsListUrl,decksListUrl:this.decksListUrl,cta:U.cta};return X.parse(q)}}Q0();l2();var US=new m1;class l${id="professional:about";name="About Page DataSource";description="Fetches full profile data for the about page";async fetch($,X,G){let Y=await q5(G.entityService),W={profile:US.parseProfileBody(Y,Z2)};return X.parse(W)}}import{jsxDEV as y0,Fragment as iZ}from"preact/jsx-dev-runtime";var SY=({profile:$,posts:X,decks:G,postsListUrl:Y,decksListUrl:J,cta:W})=>{let H=$.tagline||$.description,U=X.map((q)=>({id:q.id,url:q.url,title:q.metadata.title,date:q.metadata.publishedAt||q.created,description:q.frontmatter.excerpt,series:q.frontmatter.seriesName&&q.frontmatter.seriesIndex?{name:q.frontmatter.seriesName,index:q.frontmatter.seriesIndex}:void 0})),F=G.map((q)=>({id:q.id,url:q.url,title:q.frontmatter.title||q.id,date:q.frontmatter.publishedAt??q.created,description:q.frontmatter.description})),M=$.name||"Home",Q=$.intro||$.description||H||"Professional site";return y0(iZ,{children:[y0(o0,{title:M,description:Q,ogType:"website"},void 0,!1,void 0,this),y0("div",{className:"homepage-list bg-theme",children:[y0("header",{className:"hero-bg-pattern relative w-full min-h-[70vh] flex items-end px-6 md:px-12 bg-theme overflow-hidden",children:y0("div",{className:"relative z-10 max-w-6xl mx-auto w-full pb-16 md:pb-24",children:[H&&y0("h1",{className:"text-5xl md:text-6xl lg:text-7xl font-semibold text-heading leading-[1.08] tracking-tight",children:H},void 0,!1,void 0,this),$.intro&&y0(iZ,{children:[y0("div",{className:"w-12 border-t border-theme mt-8 mb-6 md:mt-10 md:mb-8"},void 0,!1,void 0,this),y0("p",{className:"text-lg md:text-xl text-theme-muted leading-relaxed max-w-xl md:max-w-lg",children:$.intro},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),y0("div",{className:"section-divider"},void 0,!1,void 0,this),y0("div",{className:"container mx-auto px-6 md:px-12 max-w-5xl py-16 md:py-24",children:[y0("div",{className:"content-section-reveal mb-20 md:mb-32",children:y0(k5,{title:"Essays",items:U,viewAllUrl:Y},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.length>0&&y0("div",{className:"content-section-reveal mb-20 md:mb-32",children:y0(k5,{title:"Presentations",items:F,viewAllUrl:J},void 0,!1,void 0,this)},void 0,!1,void 0,this),($.description||$.expertise&&$.expertise.length>0)&&y0("div",{className:"content-section-reveal mb-20 md:mb-32",children:y0(k5,{title:"About",viewAllUrl:"/about",variant:"stacked",children:y0("div",{className:"space-y-6",children:[$.description&&y0("p",{className:"text-lg text-theme leading-relaxed",children:$.description},void 0,!1,void 0,this),$.expertise&&$.expertise.length>0&&y0(JY,{tags:$.expertise,variant:"accent",size:"sm"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0(sG,{cta:W,variant:"editorial",socialLinks:$.socialLinks},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as V0,Fragment as KS}from"preact/jsx-dev-runtime";var kY=({profile:$})=>{let X=`About ${$.name||"Me"}`,G=$.description||$.intro||"About page",Y=$.expertise&&$.expertise.length>0||$.currentFocus||$.availability||$.email||$.website||$.socialLinks&&$.socialLinks.length>0;return V0(KS,{children:[V0(o0,{title:X,description:G,ogType:"profile"},void 0,!1,void 0,this),V0("div",{className:"about-page bg-theme",children:[V0("header",{className:"hero-bg-pattern relative w-full py-16 md:py-24 px-6 md:px-12 bg-theme overflow-hidden",children:V0("div",{className:"relative z-10 max-w-4xl mx-auto",children:[V0("h1",{className:"text-5xl md:text-6xl font-semibold mb-6 text-heading",children:["About ",$.name||"Me"]},void 0,!0,void 0,this),$.description&&V0("p",{className:"text-xl md:text-2xl text-theme-muted leading-relaxed",children:$.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),V0("div",{className:"container mx-auto px-6 md:px-12 max-w-4xl py-12 md:py-16",children:[$.story&&V0("section",{className:"content-section-reveal mb-20 md:mb-28",children:V0(n2,{markdown:$.story},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y&&V0("div",{className:"content-section-reveal grid md:grid-cols-2 gap-x-16 gap-y-12",children:[$.expertise&&$.expertise.length>0&&V0("section",{children:[V0("h2",{className:"text-sm tracking-widest uppercase text-theme-muted mb-6",children:"Expertise"},void 0,!1,void 0,this),V0("ul",{className:"flex flex-wrap gap-3",children:$.expertise.map((J,W)=>V0("li",{className:_8({variant:"accent",size:"lg"}),children:J},W,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$.currentFocus&&V0("section",{children:[V0("h2",{className:"text-sm tracking-widest uppercase text-theme-muted mb-6",children:"Current Focus"},void 0,!1,void 0,this),V0("p",{className:"text-lg text-theme leading-relaxed",children:$.currentFocus},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$.availability&&V0("section",{children:[V0("h2",{className:"text-sm tracking-widest uppercase text-theme-muted mb-6",children:"Availability"},void 0,!1,void 0,this),V0("p",{className:"text-lg text-theme leading-relaxed",children:$.availability},void 0,!1,void 0,this)]},void 0,!0,void 0,this),($.email||$.website||$.socialLinks&&$.socialLinks.length>0)&&V0("section",{children:[V0("h2",{className:"text-sm tracking-widest uppercase text-theme-muted mb-6",children:"Contact"},void 0,!1,void 0,this),V0("div",{className:"space-y-4",children:[$.email&&V0("p",{className:"text-lg",children:V0("a",{href:`mailto:${$.email}`,className:"text-brand hover:text-brand-dark transition-colors",children:$.email},void 0,!1,void 0,this)},void 0,!1,void 0,this),$.website&&V0("p",{className:"text-lg",children:V0("a",{href:$.website,target:"_blank",rel:"noopener noreferrer",className:"text-brand hover:text-brand-dark transition-colors",children:$.website},void 0,!1,void 0,this)},void 0,!1,void 0,this),$.socialLinks&&$.socialLinks.length>0&&V0("div",{className:"flex flex-wrap gap-4 mt-4",children:$.socialLinks.map((J,W)=>V0(p1,{href:J.url,external:!0,variant:"secondary",size:"md",children:J.label||J.platform},W,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as q1,Fragment as nZ}from"preact/jsx-dev-runtime";var vY=()=>{return q1(nZ,{children:[q1(o0,{title:"Thanks for subscribing!",description:"You've successfully subscribed to the newsletter."},void 0,!1,void 0,this),q1("div",{className:"min-h-[60vh] flex items-center justify-center px-6",children:q1("div",{className:"text-center max-w-md",children:[q1("div",{className:"text-6xl mb-6",children:"\uD83C\uDF89"},void 0,!1,void 0,this),q1("h1",{className:"text-3xl font-semibold mb-4 text-heading",children:"Thanks for subscribing!"},void 0,!1,void 0,this),q1("p",{className:"text-lg text-theme-muted mb-8",children:"You'll receive a confirmation email shortly. Check your inbox to confirm your subscription."},void 0,!1,void 0,this),q1(p1,{href:"/",variant:"primary",children:"Back to Home"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},xY=()=>{return q1(nZ,{children:[q1(o0,{title:"Subscription failed",description:"There was a problem with your subscription."},void 0,!1,void 0,this),q1("div",{className:"min-h-[60vh] flex items-center justify-center px-6",children:q1("div",{className:"text-center max-w-md",children:[q1("div",{className:"text-6xl mb-6",children:"\uD83D\uDE22"},void 0,!1,void 0,this),q1("h1",{className:"text-3xl font-semibold mb-4 text-heading",children:"Something went wrong"},void 0,!1,void 0,this),q1("p",{className:"text-lg text-theme-muted mb-8",children:"We couldn't process your subscription. Please try again or contact us if the problem persists."},void 0,!1,void 0,this),q1(p1,{href:"/",variant:"primary",children:"Back to Home"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};I();var oZ=K.object({label:K.string().describe("Display label for entity type (e.g., 'Essay')"),pluralName:K.string().optional().describe("URL path segment (defaults to label.toLowerCase() + 's')")}),sZ=K.object({entityDisplay:K.object({post:oZ,deck:oZ}).describe("Display metadata for post and deck entity types (required for homepage)")});var aZ={name:"@brains/site-professional",private:!0,version:"0.2.0-alpha.50",description:"Professional site composition package",type:"module",exports:{".":"./src/index.ts"},files:["src"],scripts:{typecheck:"tsc --noEmit",lint:"eslint . --ext .ts","lint:fix":"eslint . --ext .ts --fix"},dependencies:{"@brains/blog":"workspace:*","@brains/decks":"workspace:*","@brains/identity-service":"workspace:*","@brains/plugins":"workspace:*","@brains/site-composition":"workspace:*","@brains/site-engine":"workspace:*","@brains/site-info":"workspace:*","@brains/templates":"workspace:*","@brains/ui-library":"workspace:*","@brains/utils":"workspace:*",preact:"^10.27.2"},devDependencies:{"@brains/eslint-config":"workspace:*","@brains/typescript-config":"workspace:*","@types/bun":"latest","bun-types":"latest",eslint:"^8.56.0",typescript:"^5.3.3"}};class bY extends l6{dependencies=["blog","decks"];constructor($){super("professional-site",aZ,$,sZ)}async onRegister($){$.entities.extendFrontmatterSchema("anchor-profile",u$);let X=this.config.entityDisplay.post,G=this.config.entityDisplay.deck,Y=`/${X.pluralName??X.label.toLowerCase()+"s"}`,J=`/${G.pluralName??G.label.toLowerCase()+"s"}`,W=new d$(Y,J);$.entities.registerDataSource(W);let H=new l$;$.entities.registerDataSource(H);let U=K.object({profile:Z2,posts:K.array(t1),decks:K.array(L8),postsListUrl:K.string(),decksListUrl:K.string(),cta:D8}),F=K.object({profile:Z2}),M=K.object({});$.templates.register({"homepage-list":L0({name:"homepage-list",description:"Professional homepage with essays and presentations",schema:U,dataSourceId:"professional:homepage-list",requiredPermission:"public",layout:{component:SY}}),about:L0({name:"about",description:"About page with full profile information",schema:F,dataSourceId:"professional:about",requiredPermission:"public",layout:{component:kY}}),"subscribe-thanks":L0({name:"subscribe-thanks",description:"Newsletter subscription success page",schema:M,requiredPermission:"public",layout:{component:vY}}),"subscribe-error":L0({name:"subscribe-error",description:"Newsletter subscription error page",schema:M,requiredPermission:"public",layout:{component:xY}})}),this.logger.info("Professional site plugin registered successfully")}async getTools(){return[]}async getResources(){return[]}}function hY($){return new bY($??{})}var yY=[{id:"home",path:"/",title:"Home",description:"Professional site homepage",layout:"default",navigation:{show:!0,label:"Home",slot:"secondary",priority:10},sections:[{id:"homepage",template:"professional-site:homepage-list",dataQuery:{}}]},{id:"about",path:"/about",title:"About",description:"About page",layout:"default",navigation:{show:!0,label:"About",slot:"primary",priority:90},sections:[{id:"about",template:"professional-site:about",dataQuery:{}}]},{id:"subscribe-thanks",path:"/subscribe/thanks",title:"Thanks for subscribing",description:"Newsletter subscription confirmation",layout:"default",navigation:{show:!1},sections:[{id:"subscribe-thanks",template:"professional-site:subscribe-thanks",dataQuery:{},content:{}}]},{id:"subscribe-error",path:"/subscribe/error",title:"Subscription failed",description:"Newsletter subscription error",layout:"default",navigation:{show:!1},sections:[{id:"subscribe-error",template:"professional-site:subscribe-error",dataQuery:{},content:{}}]}];import{jsxDEV as E8}from"preact/jsx-dev-runtime";function fY({sections:$,siteInfo:X,slots:G}){return E8("div",{className:"flex flex-col min-h-screen bg-theme overflow-x-clip",children:[E8(N8,{title:X.title,navigation:X.navigation.primary,...X.logo!==void 0?{logo:X.logo}:{}},void 0,!1,void 0,this),E8("main",{className:"flex-grow flex flex-col bg-theme",children:$},void 0,!1,void 0,this),E8("div",{className:"section-divider"},void 0,!1,void 0,this),E8(tG,{primaryNavigation:X.navigation.primary,secondaryNavigation:X.navigation.secondary,copyright:X.copyright,socialLinks:X.socialLinks,children:G?.getSlot("footer-top").map((Y)=>Y.render())},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function tZ($){return{id:$.id,version:$.version,type:$.type,packageName:$.packageName}}var bY0=VY;function hY0($){return tZ(ZY($))}var MS=AY,yY0=MS,fY0=fY;function gY0($){return tZ(hY($))}var mY0=yY;export{MS as routes,gY0 as professionalSitePlugin,mY0 as professionalRoutes,hY0 as personalSitePlugin,yY0 as personalRoutes,fY0 as ProfessionalLayout,bY0 as PersonalLayout};
862
+ ${G.content}`,templateName:"decks:description"})})}}I();Q0();var c$=r6.extend({expertise:K.array(K.string()).optional().describe("Skills, domains, areas of focus"),currentFocus:K.string().optional().describe("What you're currently working on"),availability:K.string().optional().describe("What you're open to (consulting, speaking, etc.)")}),Z2=O5.extend(c$.shape);Q0();d2();I();var _S=new m1;class r${postsListUrl;decksListUrl;id="professional:homepage-list";name="Homepage List DataSource";description="Fetches profile, blog posts, and presentation decks for homepage";constructor($,X){this.postsListUrl=$;this.decksListUrl=X}async fetch($,X,G){let Y=G.entityService,[J,W,H,U]=await Promise.all([q5(Y),Y.listEntities({entityType:"post",options:{limit:20}}),Y.listEntities({entityType:"deck",options:{limit:20}}),I8(Y)]),F=_S.parseProfileBody(J,Z2),M=W.sort(h6).slice(0,3).map(c2),Q=H.sort(h6).slice(0,3).map(k8);if(!U.cta)throw Error("CTA not configured in site-info");let q={profile:F,posts:M,decks:Q,postsListUrl:this.postsListUrl,decksListUrl:this.decksListUrl,cta:U.cta,sections:U.sections??{}};return X.parse(q)}}Q0();d2();var zS=new m1;class i${id="professional:about";name="About Page DataSource";description="Fetches full profile data for the about page";async fetch($,X,G){let Y=await q5(G.entityService),W={profile:zS.parseProfileBody(Y,Z2)};return X.parse(W)}}import{jsxDEV as C0,Fragment as LS}from"preact/jsx-dev-runtime";var DS="grid md:grid-cols-[14rem_1px_1fr] gap-y-2 gap-x-0 md:gap-16 items-start",PS="border-t md:border-t-0 md:border-l border-rule-strong md:self-stretch",IY=({number:$,title:X,blurb:G,children:Y})=>C0("section",{className:"py-20 border-b border-rule",children:C0("div",{className:"container mx-auto px-6 md:px-12 max-w-6xl",children:C0("div",{className:DS,children:[C0(XY,{title:X,number:$,blurb:G},void 0,!1,void 0,this),C0("div",{className:PS,"aria-hidden":"true"},void 0,!1,void 0,this),C0("div",{className:"mt-6 md:mt-0",children:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),jY=({profile:$,posts:X,decks:G,postsListUrl:Y,decksListUrl:J,cta:W,sections:H})=>{let U=$.tagline||$.description,F=X.map((Z)=>({id:Z.id,url:Z.url,title:Z.metadata.title,date:Z.metadata.publishedAt||Z.created,description:Z.frontmatter.excerpt,series:Z.frontmatter.seriesName&&Z.frontmatter.seriesIndex?{name:Z.frontmatter.seriesName,index:Z.frontmatter.seriesIndex}:void 0})),M=G.map((Z)=>({id:Z.id,url:Z.url,title:Z.frontmatter.title||Z.id,date:Z.frontmatter.publishedAt??Z.created,description:Z.frontmatter.description})),Q=$.name||"Home",q=$.intro||$.description||U||"Professional site",A=Boolean($.description)||$.expertise!==void 0&&$.expertise.length>0;return C0(LS,{children:[C0(s0,{title:Q,description:q,ogType:"website"},void 0,!1,void 0,this),C0("div",{className:"homepage-list bg-theme",children:[C0("header",{className:"hero-bg-pattern relative w-full px-6 md:px-12 pt-28 pb-24 md:pt-28 md:pb-24 overflow-hidden border-b border-rule",children:C0("div",{className:"relative z-10 max-w-6xl mx-auto w-full",children:[$.name&&C0("div",{className:"flex items-center gap-[0.6rem] mb-6 font-mono text-[0.7rem] font-medium uppercase tracking-[0.22em] text-accent",children:[C0("span",{className:"w-[18px] h-px bg-accent","aria-hidden":"true"},void 0,!1,void 0,this),C0("span",{children:$.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U&&C0("h1",{className:"font-heading text-[clamp(2.75rem,6.5vw,5.5rem)] font-normal text-heading leading-[1.02] tracking-[-0.025em] max-w-[18ch] [font-variation-settings:'opsz'_144,'SOFT'_30]",children:I$(U,"italic font-normal text-accent [font-variation-settings:'opsz'_144,'SOFT'_80]")},void 0,!1,void 0,this),$.intro&&C0("p",{className:"font-heading font-light text-[clamp(1.1rem,1.8vw,1.4rem)] leading-[1.5] text-theme-muted max-w-[42ch] mt-8 [font-variation-settings:'opsz'_24]",children:I$($.intro,"italic text-accent")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),C0(IY,{number:"01",title:"Essays",blurb:H.essays?.blurb,children:C0(E$,{items:F,viewAllUrl:Y,viewAllLabel:"View all essays"},void 0,!1,void 0,this)},void 0,!1,void 0,this),M.length>0&&C0(IY,{number:"02",title:"Presentations",blurb:H.presentations?.blurb,children:C0(E$,{items:M,viewAllUrl:J,viewAllLabel:"View all presentations"},void 0,!1,void 0,this)},void 0,!1,void 0,this),A&&C0(IY,{number:"03",title:"About",blurb:H.about?.blurb,children:C0("div",{className:"flex flex-col gap-8",children:[$.description&&C0("p",{className:"font-heading font-light text-[1.25rem] leading-[1.55] text-theme max-w-[55ch] [font-variation-settings:'opsz'_24,'SOFT'_50]",children:$.description},void 0,!1,void 0,this),$.expertise&&$.expertise.length>0&&C0(GY,{subjects:$.expertise},void 0,!1,void 0,this),C0("a",{href:"/about",className:"mt-6 inline-flex items-center gap-2 font-mono text-[0.7rem] font-medium uppercase tracking-[0.18em] text-accent pb-1 relative before:content-[''] before:absolute before:left-0 before:right-full before:bottom-0 before:h-px before:bg-accent before:transition-[right] before:duration-300 hover:before:right-0",children:["Learn more",C0("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),C0(iG,{cta:W,variant:"editorial",socialLinks:$.socialLinks},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as B0,Fragment as CS}from"preact/jsx-dev-runtime";var SY=({profile:$})=>{let X=`About ${$.name||"Me"}`,G=$.description||$.intro||"About page",Y=$.expertise&&$.expertise.length>0||$.currentFocus||$.availability||$.email||$.website||$.socialLinks&&$.socialLinks.length>0;return B0(CS,{children:[B0(s0,{title:X,description:G,ogType:"profile"},void 0,!1,void 0,this),B0("div",{className:"about-page bg-theme",children:[B0("header",{className:"hero-bg-pattern relative w-full py-16 md:py-24 px-6 md:px-12 bg-theme overflow-hidden",children:B0("div",{className:"relative z-10 max-w-4xl mx-auto",children:[B0("h1",{className:"text-5xl md:text-6xl font-semibold mb-6 text-heading",children:["About ",$.name||"Me"]},void 0,!0,void 0,this),$.description&&B0("p",{className:"text-xl md:text-2xl text-theme-muted leading-relaxed",children:$.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),B0("div",{className:"container mx-auto px-6 md:px-12 max-w-4xl py-12 md:py-16",children:[$.story&&B0("section",{className:"content-section-reveal mb-20 md:mb-28",children:B0(i2,{markdown:$.story},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y&&B0("div",{className:"content-section-reveal grid md:grid-cols-2 gap-x-16 gap-y-12",children:[$.expertise&&$.expertise.length>0&&B0("section",{children:[B0("h2",{className:"text-sm tracking-widest uppercase text-theme-muted mb-6",children:"Expertise"},void 0,!1,void 0,this),B0("ul",{className:"flex flex-wrap gap-3",children:$.expertise.map((J,W)=>B0("li",{className:$Y({variant:"accent",size:"lg"}),children:J},W,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$.currentFocus&&B0("section",{children:[B0("h2",{className:"text-sm tracking-widest uppercase text-theme-muted mb-6",children:"Current Focus"},void 0,!1,void 0,this),B0("p",{className:"text-lg text-theme leading-relaxed",children:$.currentFocus},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$.availability&&B0("section",{children:[B0("h2",{className:"text-sm tracking-widest uppercase text-theme-muted mb-6",children:"Availability"},void 0,!1,void 0,this),B0("p",{className:"text-lg text-theme leading-relaxed",children:$.availability},void 0,!1,void 0,this)]},void 0,!0,void 0,this),($.email||$.website||$.socialLinks&&$.socialLinks.length>0)&&B0("section",{children:[B0("h2",{className:"text-sm tracking-widest uppercase text-theme-muted mb-6",children:"Contact"},void 0,!1,void 0,this),B0("div",{className:"space-y-4",children:[$.email&&B0("p",{className:"text-lg",children:B0("a",{href:`mailto:${$.email}`,className:"text-brand hover:text-brand-dark transition-colors",children:$.email},void 0,!1,void 0,this)},void 0,!1,void 0,this),$.website&&B0("p",{className:"text-lg",children:B0("a",{href:$.website,target:"_blank",rel:"noopener noreferrer",className:"text-brand hover:text-brand-dark transition-colors",children:$.website},void 0,!1,void 0,this)},void 0,!1,void 0,this),$.socialLinks&&$.socialLinks.length>0&&B0("div",{className:"flex flex-wrap gap-4 mt-4",children:$.socialLinks.map((J,W)=>B0(t1,{href:J.url,external:!0,variant:"secondary",size:"md",children:J.label||J.platform},W,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as q1,Fragment as sR}from"preact/jsx-dev-runtime";var kY=()=>{return q1(sR,{children:[q1(s0,{title:"Thanks for subscribing!",description:"You've successfully subscribed to the newsletter."},void 0,!1,void 0,this),q1("div",{className:"min-h-[60vh] flex items-center justify-center px-6",children:q1("div",{className:"text-center max-w-md",children:[q1("div",{className:"text-6xl mb-6",children:"\uD83C\uDF89"},void 0,!1,void 0,this),q1("h1",{className:"text-3xl font-semibold mb-4 text-heading",children:"Thanks for subscribing!"},void 0,!1,void 0,this),q1("p",{className:"text-lg text-theme-muted mb-8",children:"You'll receive a confirmation email shortly. Check your inbox to confirm your subscription."},void 0,!1,void 0,this),q1(t1,{href:"/",variant:"primary",children:"Back to Home"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},vY=()=>{return q1(sR,{children:[q1(s0,{title:"Subscription failed",description:"There was a problem with your subscription."},void 0,!1,void 0,this),q1("div",{className:"min-h-[60vh] flex items-center justify-center px-6",children:q1("div",{className:"text-center max-w-md",children:[q1("div",{className:"text-6xl mb-6",children:"\uD83D\uDE22"},void 0,!1,void 0,this),q1("h1",{className:"text-3xl font-semibold mb-4 text-heading",children:"Something went wrong"},void 0,!1,void 0,this),q1("p",{className:"text-lg text-theme-muted mb-8",children:"We couldn't process your subscription. Please try again or contact us if the problem persists."},void 0,!1,void 0,this),q1(t1,{href:"/",variant:"primary",children:"Back to Home"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};I();var aR=K.object({label:K.string().describe("Display label for entity type (e.g., 'Essay')"),pluralName:K.string().optional().describe("URL path segment (defaults to label.toLowerCase() + 's')")}),tR=K.object({entityDisplay:K.object({post:aR,deck:aR}).describe("Display metadata for post and deck entity types (required for homepage)")});var eR={name:"@brains/site-professional",private:!0,version:"0.2.0-alpha.51",description:"Professional site composition package",type:"module",exports:{".":"./src/index.ts"},files:["src"],scripts:{typecheck:"tsc --noEmit",lint:"eslint . --ext .ts","lint:fix":"eslint . --ext .ts --fix"},dependencies:{"@brains/blog":"workspace:*","@brains/decks":"workspace:*","@brains/identity-service":"workspace:*","@brains/plugins":"workspace:*","@brains/site-composition":"workspace:*","@brains/site-engine":"workspace:*","@brains/site-info":"workspace:*","@brains/templates":"workspace:*","@brains/ui-library":"workspace:*","@brains/utils":"workspace:*",preact:"^10.27.2"},devDependencies:{"@brains/eslint-config":"workspace:*","@brains/typescript-config":"workspace:*","@types/bun":"latest","bun-types":"latest",eslint:"^8.56.0",typescript:"^5.3.3"}};class xY extends d6{dependencies=["blog","decks"];constructor($){super("professional-site",eR,$,tR)}async onRegister($){$.entities.extendFrontmatterSchema("anchor-profile",c$);let X=this.config.entityDisplay.post,G=this.config.entityDisplay.deck,Y=`/${X.pluralName??X.label.toLowerCase()+"s"}`,J=`/${G.pluralName??G.label.toLowerCase()+"s"}`,W=new r$(Y,J);$.entities.registerDataSource(W);let H=new i$;$.entities.registerDataSource(H);let U=K.object({profile:Z2,posts:K.array(a1),decks:K.array(j8),postsListUrl:K.string(),decksListUrl:K.string(),cta:E8,sections:K.record(K.string(),x$)}),F=K.object({profile:Z2}),M=K.object({});$.templates.register({"homepage-list":L0({name:"homepage-list",description:"Professional homepage with essays and presentations",schema:U,dataSourceId:"professional:homepage-list",requiredPermission:"public",layout:{component:jY}}),about:L0({name:"about",description:"About page with full profile information",schema:F,dataSourceId:"professional:about",requiredPermission:"public",layout:{component:SY}}),"subscribe-thanks":L0({name:"subscribe-thanks",description:"Newsletter subscription success page",schema:M,requiredPermission:"public",layout:{component:kY}}),"subscribe-error":L0({name:"subscribe-error",description:"Newsletter subscription error page",schema:M,requiredPermission:"public",layout:{component:vY}})}),this.logger.info("Professional site plugin registered successfully")}async getTools(){return[]}async getResources(){return[]}}function bY($){return new xY($??{})}var hY=[{id:"home",path:"/",title:"Home",description:"Professional site homepage",layout:"default",navigation:{show:!0,label:"Home",slot:"secondary",priority:10},sections:[{id:"homepage",template:"professional-site:homepage-list",dataQuery:{}}]},{id:"about",path:"/about",title:"About",description:"About page",layout:"default",navigation:{show:!0,label:"About",slot:"primary",priority:90},sections:[{id:"about",template:"professional-site:about",dataQuery:{}}]},{id:"subscribe-thanks",path:"/subscribe/thanks",title:"Thanks for subscribing",description:"Newsletter subscription confirmation",layout:"default",navigation:{show:!1},sections:[{id:"subscribe-thanks",template:"professional-site:subscribe-thanks",dataQuery:{},content:{}}]},{id:"subscribe-error",path:"/subscribe/error",title:"Subscription failed",description:"Newsletter subscription error",layout:"default",navigation:{show:!1},sections:[{id:"subscribe-error",template:"professional-site:subscribe-error",dataQuery:{},content:{}}]}];import{jsxDEV as n$}from"preact/jsx-dev-runtime";function yY({sections:$,siteInfo:X,slots:G}){return n$("div",{className:"flex flex-col min-h-screen bg-theme overflow-x-clip",children:[n$(w8,{title:X.title,navigation:X.navigation.primary,showThemeToggle:!0,...X.logo!==void 0?{logo:X.logo}:{}},void 0,!1,void 0,this),n$("main",{className:"flex-grow flex flex-col bg-theme",children:$},void 0,!1,void 0,this),n$(oG,{primaryNavigation:X.navigation.primary,secondaryNavigation:X.navigation.secondary,copyright:X.copyright,socialLinks:X.socialLinks,title:X.title,tagline:X.description,children:G?.getSlot("footer-top").map((Y)=>Y.render())},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function $A($){return{id:$.id,version:$.version,type:$.type,packageName:$.packageName}}var VJ0=RY;function NJ0($){return $A(OY($))}var ES=ZY,wJ0=ES,_J0=yY;function zJ0($){return $A(bY($))}var DJ0=hY;export{ES as routes,zJ0 as professionalSitePlugin,DJ0 as professionalRoutes,NJ0 as personalSitePlugin,wJ0 as personalRoutes,_J0 as ProfessionalLayout,VJ0 as PersonalLayout};
862
863
 
863
- //# debugId=8FE35432D7CD48C464756E2164756E21
864
+ //# debugId=F661CA5449066C6464756E2164756E21
864
865
  //# sourceMappingURL=site.js.map