faf-cli 7.2.0 → 7.2.1

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/index.js CHANGED
@@ -1,15 +1,15 @@
1
- import{createRequire as FZ}from"node:module";var IZ=Object.defineProperty;var R=($,Z)=>()=>(Z||$((Z={exports:{}}).exports,Z),Z.exports);var DZ=($)=>$;function RZ($,Z){this[$]=DZ.bind(null,Z)}var MZ=($,Z)=>{for(var X in Z)IZ($,X,{get:Z[X],enumerable:!0,configurable:!0,set:RZ.bind(Z,X)})};var p0=FZ(import.meta.url);var b=R((mZ)=>{var K1=Symbol.for("yaml.alias"),U9=Symbol.for("yaml.document"),K$=Symbol.for("yaml.map"),z9=Symbol.for("yaml.pair"),A1=Symbol.for("yaml.scalar"),A$=Symbol.for("yaml.seq"),r=Symbol.for("yaml.node.type"),yZ=($)=>!!$&&typeof $==="object"&&$[r]===K1,fZ=($)=>!!$&&typeof $==="object"&&$[r]===U9,hZ=($)=>!!$&&typeof $==="object"&&$[r]===K$,xZ=($)=>!!$&&typeof $==="object"&&$[r]===z9,Q9=($)=>!!$&&typeof $==="object"&&$[r]===A1,uZ=($)=>!!$&&typeof $==="object"&&$[r]===A$;function J9($){if($&&typeof $==="object")switch($[r]){case K$:case A$:return!0}return!1}function kZ($){if($&&typeof $==="object")switch($[r]){case K1:case K$:case A1:case A$:return!0}return!1}var vZ=($)=>(Q9($)||J9($))&&!!$.anchor;mZ.ALIAS=K1;mZ.DOC=U9;mZ.MAP=K$;mZ.NODE_TYPE=r;mZ.PAIR=z9;mZ.SCALAR=A1;mZ.SEQ=A$;mZ.hasAnchor=vZ;mZ.isAlias=yZ;mZ.isCollection=J9;mZ.isDocument=fZ;mZ.isMap=hZ;mZ.isNode=kZ;mZ.isPair=xZ;mZ.isScalar=Q9;mZ.isSeq=uZ});var s0=R((z6)=>{var y=b(),u=Symbol("break visit"),H9=Symbol("skip children"),i=Symbol("remove node");function N$($,Z){let X=q9(Z);if(y.isDocument($)){if(K0(null,$.contents,X,Object.freeze([$]))===i)$.contents=null}else K0(null,$,X,Object.freeze([]))}N$.BREAK=u;N$.SKIP=H9;N$.REMOVE=i;function K0($,Z,X,U){let z=G9($,Z,X,U);if(y.isNode(z)||y.isPair(z))return _9($,U,z),K0($,z,X,U);if(typeof z!=="symbol"){if(y.isCollection(Z)){U=Object.freeze(U.concat(Z));for(let Q=0;Q<Z.items.length;++Q){let J=K0(Q,Z.items[Q],X,U);if(typeof J==="number")Q=J-1;else if(J===u)return u;else if(J===i)Z.items.splice(Q,1),Q-=1}}else if(y.isPair(Z)){U=Object.freeze(U.concat(Z));let Q=K0("key",Z.key,X,U);if(Q===u)return u;else if(Q===i)Z.key=null;let J=K0("value",Z.value,X,U);if(J===u)return u;else if(J===i)Z.value=null}}return z}async function w$($,Z){let X=q9(Z);if(y.isDocument($)){if(await A0(null,$.contents,X,Object.freeze([$]))===i)$.contents=null}else await A0(null,$,X,Object.freeze([]))}w$.BREAK=u;w$.SKIP=H9;w$.REMOVE=i;async function A0($,Z,X,U){let z=await G9($,Z,X,U);if(y.isNode(z)||y.isPair(z))return _9($,U,z),A0($,z,X,U);if(typeof z!=="symbol"){if(y.isCollection(Z)){U=Object.freeze(U.concat(Z));for(let Q=0;Q<Z.items.length;++Q){let J=await A0(Q,Z.items[Q],X,U);if(typeof J==="number")Q=J-1;else if(J===u)return u;else if(J===i)Z.items.splice(Q,1),Q-=1}}else if(y.isPair(Z)){U=Object.freeze(U.concat(Z));let Q=await A0("key",Z.key,X,U);if(Q===u)return u;else if(Q===i)Z.key=null;let J=await A0("value",Z.value,X,U);if(J===u)return u;else if(J===i)Z.value=null}}return z}function q9($){if(typeof $==="object"&&($.Collection||$.Node||$.Value))return Object.assign({Alias:$.Node,Map:$.Node,Scalar:$.Node,Seq:$.Node},$.Value&&{Map:$.Value,Scalar:$.Value,Seq:$.Value},$.Collection&&{Map:$.Collection,Seq:$.Collection},$);return $}function G9($,Z,X,U){if(typeof X==="function")return X($,Z,U);if(y.isMap(Z))return X.Map?.($,Z,U);if(y.isSeq(Z))return X.Seq?.($,Z,U);if(y.isPair(Z))return X.Pair?.($,Z,U);if(y.isScalar(Z))return X.Scalar?.($,Z,U);if(y.isAlias(Z))return X.Alias?.($,Z,U);return}function _9($,Z,X){let U=Z[Z.length-1];if(y.isCollection(U))U.items[$]=X;else if(y.isPair(U))if($==="key")U.key=X;else U.value=X;else if(y.isDocument(U))U.contents=X;else{let z=y.isAlias(U)?"alias":"scalar";throw Error(`Cannot replace node with ${z} parent`)}}z6.visit=N$;z6.visitAsync=w$});var N1=R((_6)=>{var Y9=b(),H6=s0(),q6={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},G6=($)=>$.replace(/[!,[\]{}]/g,(Z)=>q6[Z]);class k{constructor($,Z){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},k.defaultYaml,$),this.tags=Object.assign({},k.defaultTags,Z)}clone(){let $=new k(this.yaml,this.tags);return $.docStart=this.docStart,$}atDocument(){let $=new k(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:k.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},k.defaultTags);break}return $}add($,Z){if(this.atNextDocument)this.yaml={explicit:k.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},k.defaultTags),this.atNextDocument=!1;let X=$.trim().split(/[ \t]+/),U=X.shift();switch(U){case"%TAG":{if(X.length!==2){if(Z(0,"%TAG directive should contain exactly two parts"),X.length<2)return!1}let[z,Q]=X;return this.tags[z]=Q,!0}case"%YAML":{if(this.yaml.explicit=!0,X.length!==1)return Z(0,"%YAML directive should contain exactly one part"),!1;let[z]=X;if(z==="1.1"||z==="1.2")return this.yaml.version=z,!0;else{let Q=/^\d+\.\d+$/.test(z);return Z(6,`Unsupported YAML version ${z}`,Q),!1}}default:return Z(0,`Unknown directive ${U}`,!0),!1}}tagName($,Z){if($==="!")return"!";if($[0]!=="!")return Z(`Not a valid tag: ${$}`),null;if($[1]==="<"){let Q=$.slice(2,-1);if(Q==="!"||Q==="!!")return Z(`Verbatim tags aren't resolved, so ${$} is invalid.`),null;if($[$.length-1]!==">")Z("Verbatim tags must end with a >");return Q}let[,X,U]=$.match(/^(.*!)([^!]*)$/s);if(!U)Z(`The ${$} tag has no suffix`);let z=this.tags[X];if(z)try{return z+decodeURIComponent(U)}catch(Q){return Z(String(Q)),null}if(X==="!")return $;return Z(`Could not resolve tag: ${$}`),null}tagString($){for(let[Z,X]of Object.entries(this.tags))if($.startsWith(X))return Z+G6($.substring(X.length));return $[0]==="!"?$:`!<${$}>`}toString($){let Z=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],X=Object.entries(this.tags),U;if($&&X.length>0&&Y9.isNode($.contents)){let z={};H6.visit($.contents,(Q,J)=>{if(Y9.isNode(J)&&J.tag)z[J.tag]=!0}),U=Object.keys(z)}else U=[];for(let[z,Q]of X){if(z==="!!"&&Q==="tag:yaml.org,2002:")continue;if(!$||U.some((J)=>J.startsWith(Q)))Z.push(`%TAG ${z} ${Q}`)}return Z.join(`
2
- `)}}k.defaultYaml={explicit:!1,version:"1.2"};k.defaultTags={"!!":"tag:yaml.org,2002:"};_6.Directives=k});var b$=R((W6)=>{var B9=b(),B6=s0();function V6($){if(/[\x00-\x19\s,[\]{}]/.test($)){let X=`Anchor must not contain whitespace or control characters: ${JSON.stringify($)}`;throw Error(X)}return!0}function V9($){let Z=new Set;return B6.visit($,{Value(X,U){if(U.anchor)Z.add(U.anchor)}}),Z}function O9($,Z){for(let X=1;;++X){let U=`${$}${X}`;if(!Z.has(U))return U}}function O6($,Z){let X=[],U=new Map,z=null;return{onAnchor:(Q)=>{X.push(Q),z??(z=V9($));let J=O9(Z,z);return z.add(J),J},setAnchors:()=>{for(let Q of X){let J=U.get(Q);if(typeof J==="object"&&J.anchor&&(B9.isScalar(J.node)||B9.isCollection(J.node)))J.node.anchor=J.anchor;else{let H=Error("Failed to resolve repeated object (this should not happen)");throw H.source=Q,H}}},sourceObjects:U}}W6.anchorIsValid=V6;W6.anchorNames=V9;W6.createNodeAnchors=O6;W6.findNewAnchor=O9});var w1=R((M6)=>{function a0($,Z,X,U){if(U&&typeof U==="object")if(Array.isArray(U))for(let z=0,Q=U.length;z<Q;++z){let J=U[z],H=a0($,U,String(z),J);if(H===void 0)delete U[z];else if(H!==J)U[z]=H}else if(U instanceof Map)for(let z of Array.from(U.keys())){let Q=U.get(z),J=a0($,U,z,Q);if(J===void 0)U.delete(z);else if(J!==Q)U.set(z,J)}else if(U instanceof Set)for(let z of Array.from(U)){let Q=a0($,U,z,z);if(Q===void 0)U.delete(z);else if(Q!==z)U.delete(z),U.add(Q)}else for(let[z,Q]of Object.entries(U)){let J=a0($,U,z,Q);if(J===void 0)delete U[z];else if(J!==Q)U[z]=J}return $.call(Z,X,U)}M6.applyReviver=a0});var $0=R((T6)=>{var P6=b();function W9($,Z,X){if(Array.isArray($))return $.map((U,z)=>W9(U,String(z),X));if($&&typeof $.toJSON==="function"){if(!X||!P6.hasAnchor($))return $.toJSON(Z,X);let U={aliasCount:0,count:1,res:void 0};X.anchors.set($,U),X.onCreate=(Q)=>{U.res=Q,delete X.onCreate};let z=$.toJSON(Z,X);if(X.onCreate)X.onCreate(z);return z}if(typeof $==="bigint"&&!X?.keep)return Number($);return $}T6.toJS=W9});var C$=R((w6)=>{var A6=w1(),L9=b(),N6=$0();class I9{constructor($){Object.defineProperty(this,L9.NODE_TYPE,{value:$})}clone(){let $=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)$.range=this.range.slice();return $}toJS($,{mapAsMap:Z,maxAliasCount:X,onAnchor:U,reviver:z}={}){if(!L9.isDocument($))throw TypeError("A document argument is required");let Q={anchors:new Map,doc:$,keep:!0,mapAsMap:Z===!0,mapKeyWarned:!1,maxAliasCount:typeof X==="number"?X:100},J=N6.toJS(this,"",Q);if(typeof U==="function")for(let{count:H,res:q}of Q.anchors.values())U(q,H);return typeof z==="function"?A6.applyReviver(z,{"":J},"",J):J}}w6.NodeBase=I9});var r0=R((g6)=>{var C6=b$(),j6=s0(),N0=b(),S6=C$(),E6=$0();class D9 extends S6.NodeBase{constructor($){super(N0.ALIAS);this.source=$,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve($,Z){let X;if(Z?.aliasResolveCache)X=Z.aliasResolveCache;else if(X=[],j6.visit($,{Node:(z,Q)=>{if(N0.isAlias(Q)||N0.hasAnchor(Q))X.push(Q)}}),Z)Z.aliasResolveCache=X;let U=void 0;for(let z of X){if(z===this)break;if(z.anchor===this.source)U=z}return U}toJSON($,Z){if(!Z)return{source:this.source};let{anchors:X,doc:U,maxAliasCount:z}=Z,Q=this.resolve(U,Z);if(!Q){let H=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(H)}let J=X.get(Q);if(!J)E6.toJS(Q,null,Z),J=X.get(Q);if(J?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(z>=0){if(J.count+=1,J.aliasCount===0)J.aliasCount=j$(U,Q,X);if(J.count*J.aliasCount>z)throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return J.res}toString($,Z,X){let U=`*${this.source}`;if($){if(C6.anchorIsValid(this.source),$.options.verifyAliasOrder&&!$.anchors.has(this.source)){let z=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(z)}if($.implicitKey)return`${U} `}return U}}function j$($,Z,X){if(N0.isAlias(Z)){let U=Z.resolve($),z=X&&U&&X.get(U);return z?z.count*z.aliasCount:0}else if(N0.isCollection(Z)){let U=0;for(let z of Z.items){let Q=j$($,z,X);if(Q>U)U=Q}return U}else if(N0.isPair(Z)){let U=j$($,Z.key,X),z=j$($,Z.value,X);return Math.max(U,z)}return 1}g6.Alias=D9});var g=R((k6)=>{var f6=b(),h6=C$(),x6=$0(),u6=($)=>!$||typeof $!=="function"&&typeof $!=="object";class Y0 extends h6.NodeBase{constructor($){super(f6.SCALAR);this.value=$}toJSON($,Z){return Z?.keep?this.value:x6.toJS(this.value,$,Z)}toString(){return String(this.value)}}Y0.BLOCK_FOLDED="BLOCK_FOLDED";Y0.BLOCK_LITERAL="BLOCK_LITERAL";Y0.PLAIN="PLAIN";Y0.QUOTE_DOUBLE="QUOTE_DOUBLE";Y0.QUOTE_SINGLE="QUOTE_SINGLE";k6.Scalar=Y0;k6.isScalarValue=u6});var n0=R((i6)=>{var p6=r0(),B0=b(),R9=g(),l6="tag:yaml.org,2002:";function d6($,Z,X){if(Z){let U=X.filter((Q)=>Q.tag===Z),z=U.find((Q)=>!Q.format)??U[0];if(!z)throw Error(`Tag ${Z} not found`);return z}return X.find((U)=>U.identify?.($)&&!U.format)}function c6($,Z,X){if(B0.isDocument($))$=$.contents;if(B0.isNode($))return $;if(B0.isPair($)){let _=X.schema[B0.MAP].createNode?.(X.schema,null,X);return _.items.push($),_}if($ instanceof String||$ instanceof Number||$ instanceof Boolean||typeof BigInt<"u"&&$ instanceof BigInt)$=$.valueOf();let{aliasDuplicateObjects:U,onAnchor:z,onTagObj:Q,schema:J,sourceObjects:H}=X,q=void 0;if(U&&$&&typeof $==="object")if(q=H.get($),q)return q.anchor??(q.anchor=z($)),new p6.Alias(q.anchor);else q={anchor:null,node:null},H.set($,q);if(Z?.startsWith("!!"))Z=l6+Z.slice(2);let G=d6($,Z,J.tags);if(!G){if($&&typeof $.toJSON==="function")$=$.toJSON();if(!$||typeof $!=="object"){let _=new R9.Scalar($);if(q)q.node=_;return _}G=$ instanceof Map?J[B0.MAP]:(Symbol.iterator in Object($))?J[B0.SEQ]:J[B0.MAP]}if(Q)Q(G),delete X.onTagObj;let B=G?.createNode?G.createNode(X.schema,$,X):typeof G?.nodeClass?.from==="function"?G.nodeClass.from(X.schema,$,X):new R9.Scalar($);if(Z)B.tag=Z;else if(!G.default)B.tag=G.tag;if(q)q.node=B;return B}i6.createNode=c6});var S$=R((n6)=>{var a6=n0(),s=b(),r6=C$();function b1($,Z,X){let U=X;for(let z=Z.length-1;z>=0;--z){let Q=Z[z];if(typeof Q==="number"&&Number.isInteger(Q)&&Q>=0){let J=[];J[Q]=U,U=J}else U=new Map([[Q,U]])}return a6.createNode(U,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:$,sourceObjects:new Map})}var M9=($)=>$==null||typeof $==="object"&&!!$[Symbol.iterator]().next().done;class F9 extends r6.NodeBase{constructor($,Z){super($);Object.defineProperty(this,"schema",{value:Z,configurable:!0,enumerable:!1,writable:!0})}clone($){let Z=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if($)Z.schema=$;if(Z.items=Z.items.map((X)=>s.isNode(X)||s.isPair(X)?X.clone($):X),this.range)Z.range=this.range.slice();return Z}addIn($,Z){if(M9($))this.add(Z);else{let[X,...U]=$,z=this.get(X,!0);if(s.isCollection(z))z.addIn(U,Z);else if(z===void 0&&this.schema)this.set(X,b1(this.schema,U,Z));else throw Error(`Expected YAML collection at ${X}. Remaining path: ${U}`)}}deleteIn($){let[Z,...X]=$;if(X.length===0)return this.delete(Z);let U=this.get(Z,!0);if(s.isCollection(U))return U.deleteIn(X);else throw Error(`Expected YAML collection at ${Z}. Remaining path: ${X}`)}getIn($,Z){let[X,...U]=$,z=this.get(X,!0);if(U.length===0)return!Z&&s.isScalar(z)?z.value:z;else return s.isCollection(z)?z.getIn(U,Z):void 0}hasAllNullValues($){return this.items.every((Z)=>{if(!s.isPair(Z))return!1;let X=Z.value;return X==null||$&&s.isScalar(X)&&X.value==null&&!X.commentBefore&&!X.comment&&!X.tag})}hasIn($){let[Z,...X]=$;if(X.length===0)return this.has(Z);let U=this.get(Z,!0);return s.isCollection(U)?U.hasIn(X):!1}setIn($,Z){let[X,...U]=$;if(U.length===0)this.set(X,Z);else{let z=this.get(X,!0);if(s.isCollection(z))z.setIn(U,Z);else if(z===void 0&&this.schema)this.set(X,b1(this.schema,U,Z));else throw Error(`Expected YAML collection at ${X}. Remaining path: ${U}`)}}}n6.Collection=F9;n6.collectionFromPath=b1;n6.isEmptyPath=M9});var o0=R((X4)=>{var $4=($)=>$.replace(/^(?!$)(?: $)?/gm,"#");function C1($,Z){if(/^\n+$/.test($))return $.substring(1);return Z?$.replace(/^(?! *$)/gm,Z):$}var Z4=($,Z,X)=>$.endsWith(`
1
+ import{createRequire as M6}from"node:module";var R6=Object.defineProperty;var D=($,Z)=>()=>(Z||$((Z={exports:{}}).exports,Z),Z.exports);var I6=($)=>$;function D6($,Z){this[$]=I6.bind(null,Z)}var F6=($,Z)=>{for(var X in Z)R6($,X,{get:Z[X],enumerable:!0,configurable:!0,set:D6.bind(Z,X)})};var p0=M6(import.meta.url);var b=D((m6)=>{var K1=Symbol.for("yaml.alias"),U8=Symbol.for("yaml.document"),K$=Symbol.for("yaml.map"),z8=Symbol.for("yaml.pair"),A1=Symbol.for("yaml.scalar"),A$=Symbol.for("yaml.seq"),r=Symbol.for("yaml.node.type"),y6=($)=>!!$&&typeof $==="object"&&$[r]===K1,f6=($)=>!!$&&typeof $==="object"&&$[r]===U8,x6=($)=>!!$&&typeof $==="object"&&$[r]===K$,h6=($)=>!!$&&typeof $==="object"&&$[r]===z8,Q8=($)=>!!$&&typeof $==="object"&&$[r]===A1,u6=($)=>!!$&&typeof $==="object"&&$[r]===A$;function J8($){if($&&typeof $==="object")switch($[r]){case K$:case A$:return!0}return!1}function k6($){if($&&typeof $==="object")switch($[r]){case K1:case K$:case A1:case A$:return!0}return!1}var v6=($)=>(Q8($)||J8($))&&!!$.anchor;m6.ALIAS=K1;m6.DOC=U8;m6.MAP=K$;m6.NODE_TYPE=r;m6.PAIR=z8;m6.SCALAR=A1;m6.SEQ=A$;m6.hasAnchor=v6;m6.isAlias=y6;m6.isCollection=J8;m6.isDocument=f6;m6.isMap=x6;m6.isNode=k6;m6.isPair=h6;m6.isScalar=Q8;m6.isSeq=u6});var s0=D((zZ)=>{var y=b(),u=Symbol("break visit"),H8=Symbol("skip children"),i=Symbol("remove node");function N$($,Z){let X=q8(Z);if(y.isDocument($)){if(K0(null,$.contents,X,Object.freeze([$]))===i)$.contents=null}else K0(null,$,X,Object.freeze([]))}N$.BREAK=u;N$.SKIP=H8;N$.REMOVE=i;function K0($,Z,X,U){let z=_8($,Z,X,U);if(y.isNode(z)||y.isPair(z))return G8($,U,z),K0($,z,X,U);if(typeof z!=="symbol"){if(y.isCollection(Z)){U=Object.freeze(U.concat(Z));for(let Q=0;Q<Z.items.length;++Q){let J=K0(Q,Z.items[Q],X,U);if(typeof J==="number")Q=J-1;else if(J===u)return u;else if(J===i)Z.items.splice(Q,1),Q-=1}}else if(y.isPair(Z)){U=Object.freeze(U.concat(Z));let Q=K0("key",Z.key,X,U);if(Q===u)return u;else if(Q===i)Z.key=null;let J=K0("value",Z.value,X,U);if(J===u)return u;else if(J===i)Z.value=null}}return z}async function w$($,Z){let X=q8(Z);if(y.isDocument($)){if(await A0(null,$.contents,X,Object.freeze([$]))===i)$.contents=null}else await A0(null,$,X,Object.freeze([]))}w$.BREAK=u;w$.SKIP=H8;w$.REMOVE=i;async function A0($,Z,X,U){let z=await _8($,Z,X,U);if(y.isNode(z)||y.isPair(z))return G8($,U,z),A0($,z,X,U);if(typeof z!=="symbol"){if(y.isCollection(Z)){U=Object.freeze(U.concat(Z));for(let Q=0;Q<Z.items.length;++Q){let J=await A0(Q,Z.items[Q],X,U);if(typeof J==="number")Q=J-1;else if(J===u)return u;else if(J===i)Z.items.splice(Q,1),Q-=1}}else if(y.isPair(Z)){U=Object.freeze(U.concat(Z));let Q=await A0("key",Z.key,X,U);if(Q===u)return u;else if(Q===i)Z.key=null;let J=await A0("value",Z.value,X,U);if(J===u)return u;else if(J===i)Z.value=null}}return z}function q8($){if(typeof $==="object"&&($.Collection||$.Node||$.Value))return Object.assign({Alias:$.Node,Map:$.Node,Scalar:$.Node,Seq:$.Node},$.Value&&{Map:$.Value,Scalar:$.Value,Seq:$.Value},$.Collection&&{Map:$.Collection,Seq:$.Collection},$);return $}function _8($,Z,X,U){if(typeof X==="function")return X($,Z,U);if(y.isMap(Z))return X.Map?.($,Z,U);if(y.isSeq(Z))return X.Seq?.($,Z,U);if(y.isPair(Z))return X.Pair?.($,Z,U);if(y.isScalar(Z))return X.Scalar?.($,Z,U);if(y.isAlias(Z))return X.Alias?.($,Z,U);return}function G8($,Z,X){let U=Z[Z.length-1];if(y.isCollection(U))U.items[$]=X;else if(y.isPair(U))if($==="key")U.key=X;else U.value=X;else if(y.isDocument(U))U.contents=X;else{let z=y.isAlias(U)?"alias":"scalar";throw Error(`Cannot replace node with ${z} parent`)}}zZ.visit=N$;zZ.visitAsync=w$});var N1=D((GZ)=>{var Y8=b(),HZ=s0(),qZ={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},_Z=($)=>$.replace(/[!,[\]{}]/g,(Z)=>qZ[Z]);class k{constructor($,Z){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},k.defaultYaml,$),this.tags=Object.assign({},k.defaultTags,Z)}clone(){let $=new k(this.yaml,this.tags);return $.docStart=this.docStart,$}atDocument(){let $=new k(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:k.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},k.defaultTags);break}return $}add($,Z){if(this.atNextDocument)this.yaml={explicit:k.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},k.defaultTags),this.atNextDocument=!1;let X=$.trim().split(/[ \t]+/),U=X.shift();switch(U){case"%TAG":{if(X.length!==2){if(Z(0,"%TAG directive should contain exactly two parts"),X.length<2)return!1}let[z,Q]=X;return this.tags[z]=Q,!0}case"%YAML":{if(this.yaml.explicit=!0,X.length!==1)return Z(0,"%YAML directive should contain exactly one part"),!1;let[z]=X;if(z==="1.1"||z==="1.2")return this.yaml.version=z,!0;else{let Q=/^\d+\.\d+$/.test(z);return Z(6,`Unsupported YAML version ${z}`,Q),!1}}default:return Z(0,`Unknown directive ${U}`,!0),!1}}tagName($,Z){if($==="!")return"!";if($[0]!=="!")return Z(`Not a valid tag: ${$}`),null;if($[1]==="<"){let Q=$.slice(2,-1);if(Q==="!"||Q==="!!")return Z(`Verbatim tags aren't resolved, so ${$} is invalid.`),null;if($[$.length-1]!==">")Z("Verbatim tags must end with a >");return Q}let[,X,U]=$.match(/^(.*!)([^!]*)$/s);if(!U)Z(`The ${$} tag has no suffix`);let z=this.tags[X];if(z)try{return z+decodeURIComponent(U)}catch(Q){return Z(String(Q)),null}if(X==="!")return $;return Z(`Could not resolve tag: ${$}`),null}tagString($){for(let[Z,X]of Object.entries(this.tags))if($.startsWith(X))return Z+_Z($.substring(X.length));return $[0]==="!"?$:`!<${$}>`}toString($){let Z=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],X=Object.entries(this.tags),U;if($&&X.length>0&&Y8.isNode($.contents)){let z={};HZ.visit($.contents,(Q,J)=>{if(Y8.isNode(J)&&J.tag)z[J.tag]=!0}),U=Object.keys(z)}else U=[];for(let[z,Q]of X){if(z==="!!"&&Q==="tag:yaml.org,2002:")continue;if(!$||U.some((J)=>J.startsWith(Q)))Z.push(`%TAG ${z} ${Q}`)}return Z.join(`
2
+ `)}}k.defaultYaml={explicit:!1,version:"1.2"};k.defaultTags={"!!":"tag:yaml.org,2002:"};GZ.Directives=k});var b$=D((WZ)=>{var B8=b(),BZ=s0();function VZ($){if(/[\x00-\x19\s,[\]{}]/.test($)){let X=`Anchor must not contain whitespace or control characters: ${JSON.stringify($)}`;throw Error(X)}return!0}function V8($){let Z=new Set;return BZ.visit($,{Value(X,U){if(U.anchor)Z.add(U.anchor)}}),Z}function O8($,Z){for(let X=1;;++X){let U=`${$}${X}`;if(!Z.has(U))return U}}function OZ($,Z){let X=[],U=new Map,z=null;return{onAnchor:(Q)=>{X.push(Q),z??(z=V8($));let J=O8(Z,z);return z.add(J),J},setAnchors:()=>{for(let Q of X){let J=U.get(Q);if(typeof J==="object"&&J.anchor&&(B8.isScalar(J.node)||B8.isCollection(J.node)))J.node.anchor=J.anchor;else{let H=Error("Failed to resolve repeated object (this should not happen)");throw H.source=Q,H}}},sourceObjects:U}}WZ.anchorIsValid=VZ;WZ.anchorNames=V8;WZ.createNodeAnchors=OZ;WZ.findNewAnchor=O8});var w1=D((FZ)=>{function a0($,Z,X,U){if(U&&typeof U==="object")if(Array.isArray(U))for(let z=0,Q=U.length;z<Q;++z){let J=U[z],H=a0($,U,String(z),J);if(H===void 0)delete U[z];else if(H!==J)U[z]=H}else if(U instanceof Map)for(let z of Array.from(U.keys())){let Q=U.get(z),J=a0($,U,z,Q);if(J===void 0)U.delete(z);else if(J!==Q)U.set(z,J)}else if(U instanceof Set)for(let z of Array.from(U)){let Q=a0($,U,z,z);if(Q===void 0)U.delete(z);else if(Q!==z)U.delete(z),U.add(Q)}else for(let[z,Q]of Object.entries(U)){let J=a0($,U,z,Q);if(J===void 0)delete U[z];else if(J!==Q)U[z]=J}return $.call(Z,X,U)}FZ.applyReviver=a0});var $0=D((TZ)=>{var PZ=b();function W8($,Z,X){if(Array.isArray($))return $.map((U,z)=>W8(U,String(z),X));if($&&typeof $.toJSON==="function"){if(!X||!PZ.hasAnchor($))return $.toJSON(Z,X);let U={aliasCount:0,count:1,res:void 0};X.anchors.set($,U),X.onCreate=(Q)=>{U.res=Q,delete X.onCreate};let z=$.toJSON(Z,X);if(X.onCreate)X.onCreate(z);return z}if(typeof $==="bigint"&&!X?.keep)return Number($);return $}TZ.toJS=W8});var C$=D((wZ)=>{var AZ=w1(),L8=b(),NZ=$0();class R8{constructor($){Object.defineProperty(this,L8.NODE_TYPE,{value:$})}clone(){let $=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)$.range=this.range.slice();return $}toJS($,{mapAsMap:Z,maxAliasCount:X,onAnchor:U,reviver:z}={}){if(!L8.isDocument($))throw TypeError("A document argument is required");let Q={anchors:new Map,doc:$,keep:!0,mapAsMap:Z===!0,mapKeyWarned:!1,maxAliasCount:typeof X==="number"?X:100},J=NZ.toJS(this,"",Q);if(typeof U==="function")for(let{count:H,res:q}of Q.anchors.values())U(q,H);return typeof z==="function"?AZ.applyReviver(z,{"":J},"",J):J}}wZ.NodeBase=R8});var r0=D((gZ)=>{var CZ=b$(),jZ=s0(),N0=b(),SZ=C$(),EZ=$0();class I8 extends SZ.NodeBase{constructor($){super(N0.ALIAS);this.source=$,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve($,Z){let X;if(Z?.aliasResolveCache)X=Z.aliasResolveCache;else if(X=[],jZ.visit($,{Node:(z,Q)=>{if(N0.isAlias(Q)||N0.hasAnchor(Q))X.push(Q)}}),Z)Z.aliasResolveCache=X;let U=void 0;for(let z of X){if(z===this)break;if(z.anchor===this.source)U=z}return U}toJSON($,Z){if(!Z)return{source:this.source};let{anchors:X,doc:U,maxAliasCount:z}=Z,Q=this.resolve(U,Z);if(!Q){let H=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(H)}let J=X.get(Q);if(!J)EZ.toJS(Q,null,Z),J=X.get(Q);if(J?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(z>=0){if(J.count+=1,J.aliasCount===0)J.aliasCount=j$(U,Q,X);if(J.count*J.aliasCount>z)throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return J.res}toString($,Z,X){let U=`*${this.source}`;if($){if(CZ.anchorIsValid(this.source),$.options.verifyAliasOrder&&!$.anchors.has(this.source)){let z=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(z)}if($.implicitKey)return`${U} `}return U}}function j$($,Z,X){if(N0.isAlias(Z)){let U=Z.resolve($),z=X&&U&&X.get(U);return z?z.count*z.aliasCount:0}else if(N0.isCollection(Z)){let U=0;for(let z of Z.items){let Q=j$($,z,X);if(Q>U)U=Q}return U}else if(N0.isPair(Z)){let U=j$($,Z.key,X),z=j$($,Z.value,X);return Math.max(U,z)}return 1}gZ.Alias=I8});var g=D((kZ)=>{var fZ=b(),xZ=C$(),hZ=$0(),uZ=($)=>!$||typeof $!=="function"&&typeof $!=="object";class Y0 extends xZ.NodeBase{constructor($){super(fZ.SCALAR);this.value=$}toJSON($,Z){return Z?.keep?this.value:hZ.toJS(this.value,$,Z)}toString(){return String(this.value)}}Y0.BLOCK_FOLDED="BLOCK_FOLDED";Y0.BLOCK_LITERAL="BLOCK_LITERAL";Y0.PLAIN="PLAIN";Y0.QUOTE_DOUBLE="QUOTE_DOUBLE";Y0.QUOTE_SINGLE="QUOTE_SINGLE";kZ.Scalar=Y0;kZ.isScalarValue=uZ});var n0=D((iZ)=>{var pZ=r0(),B0=b(),D8=g(),lZ="tag:yaml.org,2002:";function dZ($,Z,X){if(Z){let U=X.filter((Q)=>Q.tag===Z),z=U.find((Q)=>!Q.format)??U[0];if(!z)throw Error(`Tag ${Z} not found`);return z}return X.find((U)=>U.identify?.($)&&!U.format)}function cZ($,Z,X){if(B0.isDocument($))$=$.contents;if(B0.isNode($))return $;if(B0.isPair($)){let G=X.schema[B0.MAP].createNode?.(X.schema,null,X);return G.items.push($),G}if($ instanceof String||$ instanceof Number||$ instanceof Boolean||typeof BigInt<"u"&&$ instanceof BigInt)$=$.valueOf();let{aliasDuplicateObjects:U,onAnchor:z,onTagObj:Q,schema:J,sourceObjects:H}=X,q=void 0;if(U&&$&&typeof $==="object")if(q=H.get($),q)return q.anchor??(q.anchor=z($)),new pZ.Alias(q.anchor);else q={anchor:null,node:null},H.set($,q);if(Z?.startsWith("!!"))Z=lZ+Z.slice(2);let _=dZ($,Z,J.tags);if(!_){if($&&typeof $.toJSON==="function")$=$.toJSON();if(!$||typeof $!=="object"){let G=new D8.Scalar($);if(q)q.node=G;return G}_=$ instanceof Map?J[B0.MAP]:(Symbol.iterator in Object($))?J[B0.SEQ]:J[B0.MAP]}if(Q)Q(_),delete X.onTagObj;let B=_?.createNode?_.createNode(X.schema,$,X):typeof _?.nodeClass?.from==="function"?_.nodeClass.from(X.schema,$,X):new D8.Scalar($);if(Z)B.tag=Z;else if(!_.default)B.tag=_.tag;if(q)q.node=B;return B}iZ.createNode=cZ});var S$=D((nZ)=>{var aZ=n0(),s=b(),rZ=C$();function b1($,Z,X){let U=X;for(let z=Z.length-1;z>=0;--z){let Q=Z[z];if(typeof Q==="number"&&Number.isInteger(Q)&&Q>=0){let J=[];J[Q]=U,U=J}else U=new Map([[Q,U]])}return aZ.createNode(U,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:$,sourceObjects:new Map})}var F8=($)=>$==null||typeof $==="object"&&!!$[Symbol.iterator]().next().done;class M8 extends rZ.NodeBase{constructor($,Z){super($);Object.defineProperty(this,"schema",{value:Z,configurable:!0,enumerable:!1,writable:!0})}clone($){let Z=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if($)Z.schema=$;if(Z.items=Z.items.map((X)=>s.isNode(X)||s.isPair(X)?X.clone($):X),this.range)Z.range=this.range.slice();return Z}addIn($,Z){if(F8($))this.add(Z);else{let[X,...U]=$,z=this.get(X,!0);if(s.isCollection(z))z.addIn(U,Z);else if(z===void 0&&this.schema)this.set(X,b1(this.schema,U,Z));else throw Error(`Expected YAML collection at ${X}. Remaining path: ${U}`)}}deleteIn($){let[Z,...X]=$;if(X.length===0)return this.delete(Z);let U=this.get(Z,!0);if(s.isCollection(U))return U.deleteIn(X);else throw Error(`Expected YAML collection at ${Z}. Remaining path: ${X}`)}getIn($,Z){let[X,...U]=$,z=this.get(X,!0);if(U.length===0)return!Z&&s.isScalar(z)?z.value:z;else return s.isCollection(z)?z.getIn(U,Z):void 0}hasAllNullValues($){return this.items.every((Z)=>{if(!s.isPair(Z))return!1;let X=Z.value;return X==null||$&&s.isScalar(X)&&X.value==null&&!X.commentBefore&&!X.comment&&!X.tag})}hasIn($){let[Z,...X]=$;if(X.length===0)return this.has(Z);let U=this.get(Z,!0);return s.isCollection(U)?U.hasIn(X):!1}setIn($,Z){let[X,...U]=$;if(U.length===0)this.set(X,Z);else{let z=this.get(X,!0);if(s.isCollection(z))z.setIn(U,Z);else if(z===void 0&&this.schema)this.set(X,b1(this.schema,U,Z));else throw Error(`Expected YAML collection at ${X}. Remaining path: ${U}`)}}}nZ.Collection=M8;nZ.collectionFromPath=b1;nZ.isEmptyPath=F8});var o0=D((X4)=>{var $4=($)=>$.replace(/^(?!$)(?: $)?/gm,"#");function C1($,Z){if(/^\n+$/.test($))return $.substring(1);return Z?$.replace(/^(?! *$)/gm,Z):$}var Z4=($,Z,X)=>$.endsWith(`
3
3
  `)?C1(X,Z):X.includes(`
4
4
  `)?`
5
- `+C1(X,Z):($.endsWith(" ")?"":" ")+X;X4.indentComment=C1;X4.lineComment=Z4;X4.stringifyComment=$4});var T9=R((H4)=>{function J4($,Z,X="flow",{indentAtStart:U,lineWidth:z=80,minContentWidth:Q=20,onFold:J,onOverflow:H}={}){if(!z||z<0)return $;if(z<Q)Q=0;let q=Math.max(1+Q,1+z-Z.length);if($.length<=q)return $;let G=[],B={},_=z-Z.length;if(typeof U==="number")if(U>z-Math.max(2,Q))G.push(0);else _=z-U;let Y=void 0,O=void 0,L=!1,V=-1,W=-1,D=-1;if(X==="block"){if(V=P9($,V,Z.length),V!==-1)_=V+q}for(let T;T=$[V+=1];){if(X==="quoted"&&T==="\\"){switch(W=V,$[V+1]){case"x":V+=3;break;case"u":V+=5;break;case"U":V+=9;break;default:V+=1}D=V}if(T===`
6
- `){if(X==="block")V=P9($,V,Z.length);_=V+Z.length+q,Y=void 0}else{if(T===" "&&O&&O!==" "&&O!==`
5
+ `+C1(X,Z):($.endsWith(" ")?"":" ")+X;X4.indentComment=C1;X4.lineComment=Z4;X4.stringifyComment=$4});var T8=D((H4)=>{function J4($,Z,X="flow",{indentAtStart:U,lineWidth:z=80,minContentWidth:Q=20,onFold:J,onOverflow:H}={}){if(!z||z<0)return $;if(z<Q)Q=0;let q=Math.max(1+Q,1+z-Z.length);if($.length<=q)return $;let _=[],B={},G=z-Z.length;if(typeof U==="number")if(U>z-Math.max(2,Q))_.push(0);else G=z-U;let Y=void 0,O=void 0,L=!1,V=-1,W=-1,I=-1;if(X==="block"){if(V=P8($,V,Z.length),V!==-1)G=V+q}for(let T;T=$[V+=1];){if(X==="quoted"&&T==="\\"){switch(W=V,$[V+1]){case"x":V+=3;break;case"u":V+=5;break;case"U":V+=9;break;default:V+=1}I=V}if(T===`
6
+ `){if(X==="block")V=P8($,V,Z.length);G=V+Z.length+q,Y=void 0}else{if(T===" "&&O&&O!==" "&&O!==`
7
7
  `&&O!=="\t"){let A=$[V+1];if(A&&A!==" "&&A!==`
8
- `&&A!=="\t")Y=V}if(V>=_)if(Y)G.push(Y),_=Y+q,Y=void 0;else if(X==="quoted"){while(O===" "||O==="\t")O=T,T=$[V+=1],L=!0;let A=V>D+1?V-2:W-1;if(B[A])return $;G.push(A),B[A]=!0,_=A+q,Y=void 0}else L=!0}O=T}if(L&&H)H();if(G.length===0)return $;if(J)J();let M=$.slice(0,G[0]);for(let T=0;T<G.length;++T){let A=G[T],K=G[T+1]||$.length;if(A===0)M=`
9
- ${Z}${$.slice(0,K)}`;else{if(X==="quoted"&&B[A])M+=`${$[A]}\\`;M+=`
10
- ${Z}${$.slice(A+1,K)}`}}return M}function P9($,Z,X){let U=Z,z=Z+1,Q=$[z];while(Q===" "||Q==="\t")if(Z<z+X)Q=$[++Z];else{do Q=$[++Z];while(Q&&Q!==`
11
- `);U=Z,z=Z+1,Q=$[z]}return U}H4.FOLD_BLOCK="block";H4.FOLD_FLOW="flow";H4.FOLD_QUOTED="quoted";H4.foldFlowLines=J4});var e0=R((W4)=>{var m=g(),Z0=T9(),g$=($,Z)=>({indentAtStart:Z?$.indent.length:$.indentAtStart,lineWidth:$.options.lineWidth,minContentWidth:$.options.minContentWidth}),y$=($)=>/^(%|---|\.\.\.)/m.test($);function B4($,Z,X){if(!Z||Z<0)return!1;let U=Z-X,z=$.length;if(z<=U)return!1;for(let Q=0,J=0;Q<z;++Q)if($[Q]===`
12
- `){if(Q-J>U)return!0;if(J=Q+1,z-J<=U)return!1}return!0}function t0($,Z){let X=JSON.stringify($);if(Z.options.doubleQuotedAsJSON)return X;let{implicitKey:U}=Z,z=Z.options.doubleQuotedMinMultiLineLength,Q=Z.indent||(y$($)?" ":""),J="",H=0;for(let q=0,G=X[q];G;G=X[++q]){if(G===" "&&X[q+1]==="\\"&&X[q+2]==="n")J+=X.slice(H,q)+"\\ ",q+=1,H=q,G="\\";if(G==="\\")switch(X[q+1]){case"u":{J+=X.slice(H,q);let B=X.substr(q+2,4);switch(B){case"0000":J+="\\0";break;case"0007":J+="\\a";break;case"000b":J+="\\v";break;case"001b":J+="\\e";break;case"0085":J+="\\N";break;case"00a0":J+="\\_";break;case"2028":J+="\\L";break;case"2029":J+="\\P";break;default:if(B.substr(0,2)==="00")J+="\\x"+B.substr(2);else J+=X.substr(q,6)}q+=5,H=q+1}break;case"n":if(U||X[q+2]==='"'||X.length<z)q+=1;else{J+=X.slice(H,q)+`
8
+ `&&A!=="\t")Y=V}if(V>=G)if(Y)_.push(Y),G=Y+q,Y=void 0;else if(X==="quoted"){while(O===" "||O==="\t")O=T,T=$[V+=1],L=!0;let A=V>I+1?V-2:W-1;if(B[A])return $;_.push(A),B[A]=!0,G=A+q,Y=void 0}else L=!0}O=T}if(L&&H)H();if(_.length===0)return $;if(J)J();let F=$.slice(0,_[0]);for(let T=0;T<_.length;++T){let A=_[T],K=_[T+1]||$.length;if(A===0)F=`
9
+ ${Z}${$.slice(0,K)}`;else{if(X==="quoted"&&B[A])F+=`${$[A]}\\`;F+=`
10
+ ${Z}${$.slice(A+1,K)}`}}return F}function P8($,Z,X){let U=Z,z=Z+1,Q=$[z];while(Q===" "||Q==="\t")if(Z<z+X)Q=$[++Z];else{do Q=$[++Z];while(Q&&Q!==`
11
+ `);U=Z,z=Z+1,Q=$[z]}return U}H4.FOLD_BLOCK="block";H4.FOLD_FLOW="flow";H4.FOLD_QUOTED="quoted";H4.foldFlowLines=J4});var e0=D((W4)=>{var m=g(),Z0=T8(),g$=($,Z)=>({indentAtStart:Z?$.indent.length:$.indentAtStart,lineWidth:$.options.lineWidth,minContentWidth:$.options.minContentWidth}),y$=($)=>/^(%|---|\.\.\.)/m.test($);function B4($,Z,X){if(!Z||Z<0)return!1;let U=Z-X,z=$.length;if(z<=U)return!1;for(let Q=0,J=0;Q<z;++Q)if($[Q]===`
12
+ `){if(Q-J>U)return!0;if(J=Q+1,z-J<=U)return!1}return!0}function t0($,Z){let X=JSON.stringify($);if(Z.options.doubleQuotedAsJSON)return X;let{implicitKey:U}=Z,z=Z.options.doubleQuotedMinMultiLineLength,Q=Z.indent||(y$($)?" ":""),J="",H=0;for(let q=0,_=X[q];_;_=X[++q]){if(_===" "&&X[q+1]==="\\"&&X[q+2]==="n")J+=X.slice(H,q)+"\\ ",q+=1,H=q,_="\\";if(_==="\\")switch(X[q+1]){case"u":{J+=X.slice(H,q);let B=X.substr(q+2,4);switch(B){case"0000":J+="\\0";break;case"0007":J+="\\a";break;case"000b":J+="\\v";break;case"001b":J+="\\e";break;case"0085":J+="\\N";break;case"00a0":J+="\\_";break;case"2028":J+="\\L";break;case"2029":J+="\\P";break;default:if(B.substr(0,2)==="00")J+="\\x"+B.substr(2);else J+=X.substr(q,6)}q+=5,H=q+1}break;case"n":if(U||X[q+2]==='"'||X.length<z)q+=1;else{J+=X.slice(H,q)+`
13
13
 
14
14
  `;while(X[q+2]==="\\"&&X[q+3]==="n"&&X[q+4]!=='"')J+=`
15
15
  `,q+=2;if(J+=Q,X[q+2]===" ")J+="\\";q+=1,H=q+1}break;default:q+=1}}return J=H?J+X.slice(H):X,U?J:Z0.foldFlowLines(J,Q,Z0.FOLD_QUOTED,g$(Z,!1))}function j1($,Z){if(Z.options.singleQuote===!1||Z.implicitKey&&$.includes(`
@@ -17,71 +17,71 @@ ${Z}${$.slice(A+1,K)}`}}return M}function P9($,Z,X){let U=Z,z=Z+1,Q=$[z];while(Q
17
17
  ${X}`)+"'";return Z.implicitKey?U:Z0.foldFlowLines(U,X,Z0.FOLD_FLOW,g$(Z,!1))}function w0($,Z){let{singleQuote:X}=Z.options,U;if(X===!1)U=t0;else{let z=$.includes('"'),Q=$.includes("'");if(z&&!Q)U=j1;else if(Q&&!z)U=t0;else U=X?j1:t0}return U($,Z)}var S1;try{S1=new RegExp(`(^|(?<!
18
18
  ))
19
19
  +(?!
20
- |$)`,"g")}catch{S1=/\n+(?!\n|$)/g}function E$({comment:$,type:Z,value:X},U,z,Q){let{blockQuote:J,commentString:H,lineWidth:q}=U.options;if(!J||/\n[\t ]+$/.test(X))return w0(X,U);let G=U.indent||(U.forceBlockIndent||y$(X)?" ":""),B=J==="literal"?!0:J==="folded"||Z===m.Scalar.BLOCK_FOLDED?!1:Z===m.Scalar.BLOCK_LITERAL?!0:!B4(X,q,G.length);if(!X)return B?`|
20
+ |$)`,"g")}catch{S1=/\n+(?!\n|$)/g}function E$({comment:$,type:Z,value:X},U,z,Q){let{blockQuote:J,commentString:H,lineWidth:q}=U.options;if(!J||/\n[\t ]+$/.test(X))return w0(X,U);let _=U.indent||(U.forceBlockIndent||y$(X)?" ":""),B=J==="literal"?!0:J==="folded"||Z===m.Scalar.BLOCK_FOLDED?!1:Z===m.Scalar.BLOCK_LITERAL?!0:!B4(X,q,_.length);if(!X)return B?`|
21
21
  `:`>
22
- `;let _,Y;for(Y=X.length;Y>0;--Y){let K=X[Y-1];if(K!==`
22
+ `;let G,Y;for(Y=X.length;Y>0;--Y){let K=X[Y-1];if(K!==`
23
23
  `&&K!=="\t"&&K!==" ")break}let O=X.substring(Y),L=O.indexOf(`
24
- `);if(L===-1)_="-";else if(X===O||L!==O.length-1){if(_="+",Q)Q()}else _="";if(O){if(X=X.slice(0,-O.length),O[O.length-1]===`
25
- `)O=O.slice(0,-1);O=O.replace(S1,`$&${G}`)}let V=!1,W,D=-1;for(W=0;W<X.length;++W){let K=X[W];if(K===" ")V=!0;else if(K===`
26
- `)D=W;else break}let M=X.substring(0,D<W?D+1:W);if(M)X=X.substring(M.length),M=M.replace(/\n+/g,`$&${G}`);let A=(V?G?"2":"1":"")+_;if($){if(A+=" "+H($.replace(/ ?[\r\n]+/g," ")),z)z()}if(!B){let K=X.replace(/\n+/g,`
27
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${G}`),N=!1,C=g$(U,!0);if(J!=="folded"&&Z!==m.Scalar.BLOCK_FOLDED)C.onOverflow=()=>{N=!0};let I=Z0.foldFlowLines(`${M}${K}${O}`,G,Z0.FOLD_BLOCK,C);if(!N)return`>${A}
28
- ${G}${I}`}return X=X.replace(/\n+/g,`$&${G}`),`|${A}
29
- ${G}${M}${X}${O}`}function V4($,Z,X,U){let{type:z,value:Q}=$,{actualString:J,implicitKey:H,indent:q,indentStep:G,inFlow:B}=Z;if(H&&Q.includes(`
24
+ `);if(L===-1)G="-";else if(X===O||L!==O.length-1){if(G="+",Q)Q()}else G="";if(O){if(X=X.slice(0,-O.length),O[O.length-1]===`
25
+ `)O=O.slice(0,-1);O=O.replace(S1,`$&${_}`)}let V=!1,W,I=-1;for(W=0;W<X.length;++W){let K=X[W];if(K===" ")V=!0;else if(K===`
26
+ `)I=W;else break}let F=X.substring(0,I<W?I+1:W);if(F)X=X.substring(F.length),F=F.replace(/\n+/g,`$&${_}`);let A=(V?_?"2":"1":"")+G;if($){if(A+=" "+H($.replace(/ ?[\r\n]+/g," ")),z)z()}if(!B){let K=X.replace(/\n+/g,`
27
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${_}`),N=!1,C=g$(U,!0);if(J!=="folded"&&Z!==m.Scalar.BLOCK_FOLDED)C.onOverflow=()=>{N=!0};let R=Z0.foldFlowLines(`${F}${K}${O}`,_,Z0.FOLD_BLOCK,C);if(!N)return`>${A}
28
+ ${_}${R}`}return X=X.replace(/\n+/g,`$&${_}`),`|${A}
29
+ ${_}${F}${X}${O}`}function V4($,Z,X,U){let{type:z,value:Q}=$,{actualString:J,implicitKey:H,indent:q,indentStep:_,inFlow:B}=Z;if(H&&Q.includes(`
30
30
  `)||B&&/[[\]{},]/.test(Q))return w0(Q,Z);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(Q))return H||B||!Q.includes(`
31
31
  `)?w0(Q,Z):E$($,Z,X,U);if(!H&&!B&&z!==m.Scalar.PLAIN&&Q.includes(`
32
- `))return E$($,Z,X,U);if(y$(Q)){if(q==="")return Z.forceBlockIndent=!0,E$($,Z,X,U);else if(H&&q===G)return w0(Q,Z)}let _=Q.replace(/\n+/g,`$&
33
- ${q}`);if(J){let Y=(V)=>V.default&&V.tag!=="tag:yaml.org,2002:str"&&V.test?.test(_),{compat:O,tags:L}=Z.doc.schema;if(L.some(Y)||O?.some(Y))return w0(Q,Z)}return H?_:Z0.foldFlowLines(_,q,Z0.FOLD_FLOW,g$(Z,!1))}function O4($,Z,X,U){let{implicitKey:z,inFlow:Q}=Z,J=typeof $.value==="string"?$:Object.assign({},$,{value:String($.value)}),{type:H}=$;if(H!==m.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(J.value))H=m.Scalar.QUOTE_DOUBLE}let q=(B)=>{switch(B){case m.Scalar.BLOCK_FOLDED:case m.Scalar.BLOCK_LITERAL:return z||Q?w0(J.value,Z):E$(J,Z,X,U);case m.Scalar.QUOTE_DOUBLE:return t0(J.value,Z);case m.Scalar.QUOTE_SINGLE:return j1(J.value,Z);case m.Scalar.PLAIN:return V4(J,Z,X,U);default:return null}},G=q(H);if(G===null){let{defaultKeyType:B,defaultStringType:_}=Z.options,Y=z&&B||_;if(G=q(Y),G===null)throw Error(`Unsupported default string type ${Y}`)}return G}W4.stringifyString=O4});var $$=R((K4)=>{var I4=b$(),X0=b(),D4=o0(),R4=e0();function M4($,Z){let X=Object.assign({blockQuote:!0,commentString:D4.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},$.schema.toStringOptions,Z),U;switch(X.collectionStyle){case"block":U=!1;break;case"flow":U=!0;break;default:U=null}return{anchors:new Set,doc:$,flowCollectionPadding:X.flowCollectionPadding?" ":"",indent:"",indentStep:typeof X.indent==="number"?" ".repeat(X.indent):" ",inFlow:U,options:X}}function F4($,Z){if(Z.tag){let z=$.filter((Q)=>Q.tag===Z.tag);if(z.length>0)return z.find((Q)=>Q.format===Z.format)??z[0]}let X=void 0,U;if(X0.isScalar(Z)){U=Z.value;let z=$.filter((Q)=>Q.identify?.(U));if(z.length>1){let Q=z.filter((J)=>J.test);if(Q.length>0)z=Q}X=z.find((Q)=>Q.format===Z.format)??z.find((Q)=>!Q.format)}else U=Z,X=$.find((z)=>z.nodeClass&&U instanceof z.nodeClass);if(!X){let z=U?.constructor?.name??(U===null?"null":typeof U);throw Error(`Tag not resolved for ${z} value`)}return X}function P4($,Z,{anchors:X,doc:U}){if(!U.directives)return"";let z=[],Q=(X0.isScalar($)||X0.isCollection($))&&$.anchor;if(Q&&I4.anchorIsValid(Q))X.add(Q),z.push(`&${Q}`);let J=$.tag??(Z.default?null:Z.tag);if(J)z.push(U.directives.tagString(J));return z.join(" ")}function T4($,Z,X,U){if(X0.isPair($))return $.toString(Z,X,U);if(X0.isAlias($)){if(Z.doc.directives)return $.toString(Z);if(Z.resolvedAliases?.has($))throw TypeError("Cannot stringify circular structure without alias nodes");else{if(Z.resolvedAliases)Z.resolvedAliases.add($);else Z.resolvedAliases=new Set([$]);$=$.resolve(Z.doc)}}let z=void 0,Q=X0.isNode($)?$:Z.doc.createNode($,{onTagObj:(q)=>z=q});z??(z=F4(Z.doc.schema.tags,Q));let J=P4(Q,z,Z);if(J.length>0)Z.indentAtStart=(Z.indentAtStart??0)+J.length+1;let H=typeof z.stringify==="function"?z.stringify(Q,Z,X,U):X0.isScalar(Q)?R4.stringifyString(Q,Z,X,U):Q.toString(Z,X,U);if(!J)return H;return X0.isScalar(Q)||H[0]==="{"||H[0]==="["?`${J} ${H}`:`${J}
34
- ${Z.indent}${H}`}K4.createStringifyContext=M4;K4.stringify=T4});var N9=R((b4)=>{var n=b(),K9=g(),A9=$$(),Z$=o0();function w4({key:$,value:Z},X,U,z){let{allNullValues:Q,doc:J,indent:H,indentStep:q,options:{commentString:G,indentSeq:B,simpleKeys:_}}=X,Y=n.isNode($)&&$.comment||null;if(_){if(Y)throw Error("With simple keys, key nodes cannot have comments");if(n.isCollection($)||!n.isNode($)&&typeof $==="object")throw Error("With simple keys, collection cannot be used as a key value")}let O=!_&&(!$||Y&&Z==null&&!X.inFlow||n.isCollection($)||(n.isScalar($)?$.type===K9.Scalar.BLOCK_FOLDED||$.type===K9.Scalar.BLOCK_LITERAL:typeof $==="object"));X=Object.assign({},X,{allNullValues:!1,implicitKey:!O&&(_||!Q),indent:H+q});let L=!1,V=!1,W=A9.stringify($,X,()=>L=!0,()=>V=!0);if(!O&&!X.inFlow&&W.length>1024){if(_)throw Error("With simple keys, single line scalar must not span more than 1024 characters");O=!0}if(X.inFlow){if(Q||Z==null){if(L&&U)U();return W===""?"?":O?`? ${W}`:W}}else if(Q&&!_||Z==null&&O){if(W=`? ${W}`,Y&&!L)W+=Z$.lineComment(W,X.indent,G(Y));else if(V&&z)z();return W}if(L)Y=null;if(O){if(Y)W+=Z$.lineComment(W,X.indent,G(Y));W=`? ${W}
35
- ${H}:`}else if(W=`${W}:`,Y)W+=Z$.lineComment(W,X.indent,G(Y));let D,M,T;if(n.isNode(Z))D=!!Z.spaceBefore,M=Z.commentBefore,T=Z.comment;else if(D=!1,M=null,T=null,Z&&typeof Z==="object")Z=J.createNode(Z);if(X.implicitKey=!1,!O&&!Y&&n.isScalar(Z))X.indentAtStart=W.length+1;if(V=!1,!B&&q.length>=2&&!X.inFlow&&!O&&n.isSeq(Z)&&!Z.flow&&!Z.tag&&!Z.anchor)X.indent=X.indent.substring(2);let A=!1,K=A9.stringify(Z,X,()=>A=!0,()=>V=!0),N=" ";if(Y||D||M){if(N=D?`
36
- `:"",M){let C=G(M);N+=`
32
+ `))return E$($,Z,X,U);if(y$(Q)){if(q==="")return Z.forceBlockIndent=!0,E$($,Z,X,U);else if(H&&q===_)return w0(Q,Z)}let G=Q.replace(/\n+/g,`$&
33
+ ${q}`);if(J){let Y=(V)=>V.default&&V.tag!=="tag:yaml.org,2002:str"&&V.test?.test(G),{compat:O,tags:L}=Z.doc.schema;if(L.some(Y)||O?.some(Y))return w0(Q,Z)}return H?G:Z0.foldFlowLines(G,q,Z0.FOLD_FLOW,g$(Z,!1))}function O4($,Z,X,U){let{implicitKey:z,inFlow:Q}=Z,J=typeof $.value==="string"?$:Object.assign({},$,{value:String($.value)}),{type:H}=$;if(H!==m.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(J.value))H=m.Scalar.QUOTE_DOUBLE}let q=(B)=>{switch(B){case m.Scalar.BLOCK_FOLDED:case m.Scalar.BLOCK_LITERAL:return z||Q?w0(J.value,Z):E$(J,Z,X,U);case m.Scalar.QUOTE_DOUBLE:return t0(J.value,Z);case m.Scalar.QUOTE_SINGLE:return j1(J.value,Z);case m.Scalar.PLAIN:return V4(J,Z,X,U);default:return null}},_=q(H);if(_===null){let{defaultKeyType:B,defaultStringType:G}=Z.options,Y=z&&B||G;if(_=q(Y),_===null)throw Error(`Unsupported default string type ${Y}`)}return _}W4.stringifyString=O4});var $$=D((K4)=>{var R4=b$(),X0=b(),I4=o0(),D4=e0();function F4($,Z){let X=Object.assign({blockQuote:!0,commentString:I4.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},$.schema.toStringOptions,Z),U;switch(X.collectionStyle){case"block":U=!1;break;case"flow":U=!0;break;default:U=null}return{anchors:new Set,doc:$,flowCollectionPadding:X.flowCollectionPadding?" ":"",indent:"",indentStep:typeof X.indent==="number"?" ".repeat(X.indent):" ",inFlow:U,options:X}}function M4($,Z){if(Z.tag){let z=$.filter((Q)=>Q.tag===Z.tag);if(z.length>0)return z.find((Q)=>Q.format===Z.format)??z[0]}let X=void 0,U;if(X0.isScalar(Z)){U=Z.value;let z=$.filter((Q)=>Q.identify?.(U));if(z.length>1){let Q=z.filter((J)=>J.test);if(Q.length>0)z=Q}X=z.find((Q)=>Q.format===Z.format)??z.find((Q)=>!Q.format)}else U=Z,X=$.find((z)=>z.nodeClass&&U instanceof z.nodeClass);if(!X){let z=U?.constructor?.name??(U===null?"null":typeof U);throw Error(`Tag not resolved for ${z} value`)}return X}function P4($,Z,{anchors:X,doc:U}){if(!U.directives)return"";let z=[],Q=(X0.isScalar($)||X0.isCollection($))&&$.anchor;if(Q&&R4.anchorIsValid(Q))X.add(Q),z.push(`&${Q}`);let J=$.tag??(Z.default?null:Z.tag);if(J)z.push(U.directives.tagString(J));return z.join(" ")}function T4($,Z,X,U){if(X0.isPair($))return $.toString(Z,X,U);if(X0.isAlias($)){if(Z.doc.directives)return $.toString(Z);if(Z.resolvedAliases?.has($))throw TypeError("Cannot stringify circular structure without alias nodes");else{if(Z.resolvedAliases)Z.resolvedAliases.add($);else Z.resolvedAliases=new Set([$]);$=$.resolve(Z.doc)}}let z=void 0,Q=X0.isNode($)?$:Z.doc.createNode($,{onTagObj:(q)=>z=q});z??(z=M4(Z.doc.schema.tags,Q));let J=P4(Q,z,Z);if(J.length>0)Z.indentAtStart=(Z.indentAtStart??0)+J.length+1;let H=typeof z.stringify==="function"?z.stringify(Q,Z,X,U):X0.isScalar(Q)?D4.stringifyString(Q,Z,X,U):Q.toString(Z,X,U);if(!J)return H;return X0.isScalar(Q)||H[0]==="{"||H[0]==="["?`${J} ${H}`:`${J}
34
+ ${Z.indent}${H}`}K4.createStringifyContext=F4;K4.stringify=T4});var N8=D((b4)=>{var n=b(),K8=g(),A8=$$(),Z$=o0();function w4({key:$,value:Z},X,U,z){let{allNullValues:Q,doc:J,indent:H,indentStep:q,options:{commentString:_,indentSeq:B,simpleKeys:G}}=X,Y=n.isNode($)&&$.comment||null;if(G){if(Y)throw Error("With simple keys, key nodes cannot have comments");if(n.isCollection($)||!n.isNode($)&&typeof $==="object")throw Error("With simple keys, collection cannot be used as a key value")}let O=!G&&(!$||Y&&Z==null&&!X.inFlow||n.isCollection($)||(n.isScalar($)?$.type===K8.Scalar.BLOCK_FOLDED||$.type===K8.Scalar.BLOCK_LITERAL:typeof $==="object"));X=Object.assign({},X,{allNullValues:!1,implicitKey:!O&&(G||!Q),indent:H+q});let L=!1,V=!1,W=A8.stringify($,X,()=>L=!0,()=>V=!0);if(!O&&!X.inFlow&&W.length>1024){if(G)throw Error("With simple keys, single line scalar must not span more than 1024 characters");O=!0}if(X.inFlow){if(Q||Z==null){if(L&&U)U();return W===""?"?":O?`? ${W}`:W}}else if(Q&&!G||Z==null&&O){if(W=`? ${W}`,Y&&!L)W+=Z$.lineComment(W,X.indent,_(Y));else if(V&&z)z();return W}if(L)Y=null;if(O){if(Y)W+=Z$.lineComment(W,X.indent,_(Y));W=`? ${W}
35
+ ${H}:`}else if(W=`${W}:`,Y)W+=Z$.lineComment(W,X.indent,_(Y));let I,F,T;if(n.isNode(Z))I=!!Z.spaceBefore,F=Z.commentBefore,T=Z.comment;else if(I=!1,F=null,T=null,Z&&typeof Z==="object")Z=J.createNode(Z);if(X.implicitKey=!1,!O&&!Y&&n.isScalar(Z))X.indentAtStart=W.length+1;if(V=!1,!B&&q.length>=2&&!X.inFlow&&!O&&n.isSeq(Z)&&!Z.flow&&!Z.tag&&!Z.anchor)X.indent=X.indent.substring(2);let A=!1,K=A8.stringify(Z,X,()=>A=!0,()=>V=!0),N=" ";if(Y||I||F){if(N=I?`
36
+ `:"",F){let C=_(F);N+=`
37
37
  ${Z$.indentComment(C,X.indent)}`}if(K===""&&!X.inFlow){if(N===`
38
38
  `&&T)N=`
39
39
 
40
40
  `}else N+=`
41
- ${X.indent}`}else if(!O&&n.isCollection(Z)){let C=K[0],I=K.indexOf(`
42
- `),w=I!==-1,d=X.inFlow??Z.flow??Z.items.length===0;if(w||!d){let c=!1;if(w&&(C==="&"||C==="!")){let E=K.indexOf(" ");if(C==="&"&&E!==-1&&E<I&&K[E+1]==="!")E=K.indexOf(" ",E+1);if(E===-1||I<E)c=!0}if(!c)N=`
41
+ ${X.indent}`}else if(!O&&n.isCollection(Z)){let C=K[0],R=K.indexOf(`
42
+ `),w=R!==-1,d=X.inFlow??Z.flow??Z.items.length===0;if(w||!d){let c=!1;if(w&&(C==="&"||C==="!")){let E=K.indexOf(" ");if(C==="&"&&E!==-1&&E<R&&K[E+1]==="!")E=K.indexOf(" ",E+1);if(E===-1||R<E)c=!0}if(!c)N=`
43
43
  ${X.indent}`}}else if(K===""||K[0]===`
44
- `)N="";if(W+=N+K,X.inFlow){if(A&&U)U()}else if(T&&!A)W+=Z$.lineComment(W,X.indent,G(T));else if(V&&z)z();return W}b4.stringifyPair=w4});var E1=R((E4)=>{var w9=p0("process");function j4($,...Z){if($==="debug")console.log(...Z)}function S4($,Z){if($==="debug"||$==="warn")if(typeof w9.emitWarning==="function")w9.emitWarning(Z);else console.warn(Z)}E4.debug=j4;E4.warn=S4});var x$=R((h4)=>{var X$=b(),b9=g(),f$="<<",h$={identify:($)=>$===f$||typeof $==="symbol"&&$.description===f$,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new b9.Scalar(Symbol(f$)),{addToJSMap:C9}),stringify:()=>f$},f4=($,Z)=>(h$.identify(Z)||X$.isScalar(Z)&&(!Z.type||Z.type===b9.Scalar.PLAIN)&&h$.identify(Z.value))&&$?.doc.schema.tags.some((X)=>X.tag===h$.tag&&X.default);function C9($,Z,X){if(X=$&&X$.isAlias(X)?X.resolve($.doc):X,X$.isSeq(X))for(let U of X.items)g1($,Z,U);else if(Array.isArray(X))for(let U of X)g1($,Z,U);else g1($,Z,X)}function g1($,Z,X){let U=$&&X$.isAlias(X)?X.resolve($.doc):X;if(!X$.isMap(U))throw Error("Merge sources must be maps or map aliases");let z=U.toJSON(null,$,Map);for(let[Q,J]of z)if(Z instanceof Map){if(!Z.has(Q))Z.set(Q,J)}else if(Z instanceof Set)Z.add(Q);else if(!Object.prototype.hasOwnProperty.call(Z,Q))Object.defineProperty(Z,Q,{value:J,writable:!0,enumerable:!0,configurable:!0});return Z}h4.addMergeToJSMap=C9;h4.isMergeKey=f4;h4.merge=h$});var f1=R((d4)=>{var v4=E1(),j9=x$(),m4=$$(),S9=b(),y1=$0();function p4($,Z,{key:X,value:U}){if(S9.isNode(X)&&X.addToJSMap)X.addToJSMap($,Z,U);else if(j9.isMergeKey($,X))j9.addMergeToJSMap($,Z,U);else{let z=y1.toJS(X,"",$);if(Z instanceof Map)Z.set(z,y1.toJS(U,z,$));else if(Z instanceof Set)Z.add(z);else{let Q=l4(X,z,$),J=y1.toJS(U,Q,$);if(Q in Z)Object.defineProperty(Z,Q,{value:J,writable:!0,enumerable:!0,configurable:!0});else Z[Q]=J}}return Z}function l4($,Z,X){if(Z===null)return"";if(typeof Z!=="object")return String(Z);if(S9.isNode($)&&X?.doc){let U=m4.createStringifyContext(X.doc,{});U.anchors=new Set;for(let Q of X.anchors.keys())U.anchors.add(Q.anchor);U.inFlow=!0,U.inStringifyKey=!0;let z=$.toString(U);if(!X.mapKeyWarned){let Q=JSON.stringify(z);if(Q.length>40)Q=Q.substring(0,36)+'..."';v4.warn(X.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${Q}. Set mapAsMap: true to use object keys.`),X.mapKeyWarned=!0}return z}return JSON.stringify(Z)}d4.addPairToJSMap=p4});var U0=R((r4)=>{var E9=n0(),i4=N9(),s4=f1(),u$=b();function a4($,Z,X){let U=E9.createNode($,void 0,X),z=E9.createNode(Z,void 0,X);return new k$(U,z)}class k${constructor($,Z=null){Object.defineProperty(this,u$.NODE_TYPE,{value:u$.PAIR}),this.key=$,this.value=Z}clone($){let{key:Z,value:X}=this;if(u$.isNode(Z))Z=Z.clone($);if(u$.isNode(X))X=X.clone($);return new k$(Z,X)}toJSON($,Z){let X=Z?.mapAsMap?new Map:{};return s4.addPairToJSMap(Z,X,this)}toString($,Z,X){return $?.doc?i4.stringifyPair(this,$,Z,X):JSON.stringify(this)}}r4.Pair=k$;r4.createPair=a4});var h1=R((Z5)=>{var V0=b(),g9=$$(),v$=o0();function t4($,Z,X){return(Z.inFlow??$.flow?$5:e4)($,Z,X)}function e4({comment:$,items:Z},X,{blockItemPrefix:U,flowChars:z,itemIndent:Q,onChompKeep:J,onComment:H}){let{indent:q,options:{commentString:G}}=X,B=Object.assign({},X,{indent:Q,type:null}),_=!1,Y=[];for(let L=0;L<Z.length;++L){let V=Z[L],W=null;if(V0.isNode(V)){if(!_&&V.spaceBefore)Y.push("");if(m$(X,Y,V.commentBefore,_),V.comment)W=V.comment}else if(V0.isPair(V)){let M=V0.isNode(V.key)?V.key:null;if(M){if(!_&&M.spaceBefore)Y.push("");m$(X,Y,M.commentBefore,_)}}_=!1;let D=g9.stringify(V,B,()=>W=null,()=>_=!0);if(W)D+=v$.lineComment(D,Q,G(W));if(_&&W)_=!1;Y.push(U+D)}let O;if(Y.length===0)O=z.start+z.end;else{O=Y[0];for(let L=1;L<Y.length;++L){let V=Y[L];O+=V?`
44
+ `)N="";if(W+=N+K,X.inFlow){if(A&&U)U()}else if(T&&!A)W+=Z$.lineComment(W,X.indent,_(T));else if(V&&z)z();return W}b4.stringifyPair=w4});var E1=D((E4)=>{var w8=p0("process");function j4($,...Z){if($==="debug")console.log(...Z)}function S4($,Z){if($==="debug"||$==="warn")if(typeof w8.emitWarning==="function")w8.emitWarning(Z);else console.warn(Z)}E4.debug=j4;E4.warn=S4});var h$=D((x4)=>{var X$=b(),b8=g(),f$="<<",x$={identify:($)=>$===f$||typeof $==="symbol"&&$.description===f$,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new b8.Scalar(Symbol(f$)),{addToJSMap:C8}),stringify:()=>f$},f4=($,Z)=>(x$.identify(Z)||X$.isScalar(Z)&&(!Z.type||Z.type===b8.Scalar.PLAIN)&&x$.identify(Z.value))&&$?.doc.schema.tags.some((X)=>X.tag===x$.tag&&X.default);function C8($,Z,X){if(X=$&&X$.isAlias(X)?X.resolve($.doc):X,X$.isSeq(X))for(let U of X.items)g1($,Z,U);else if(Array.isArray(X))for(let U of X)g1($,Z,U);else g1($,Z,X)}function g1($,Z,X){let U=$&&X$.isAlias(X)?X.resolve($.doc):X;if(!X$.isMap(U))throw Error("Merge sources must be maps or map aliases");let z=U.toJSON(null,$,Map);for(let[Q,J]of z)if(Z instanceof Map){if(!Z.has(Q))Z.set(Q,J)}else if(Z instanceof Set)Z.add(Q);else if(!Object.prototype.hasOwnProperty.call(Z,Q))Object.defineProperty(Z,Q,{value:J,writable:!0,enumerable:!0,configurable:!0});return Z}x4.addMergeToJSMap=C8;x4.isMergeKey=f4;x4.merge=x$});var f1=D((d4)=>{var v4=E1(),j8=h$(),m4=$$(),S8=b(),y1=$0();function p4($,Z,{key:X,value:U}){if(S8.isNode(X)&&X.addToJSMap)X.addToJSMap($,Z,U);else if(j8.isMergeKey($,X))j8.addMergeToJSMap($,Z,U);else{let z=y1.toJS(X,"",$);if(Z instanceof Map)Z.set(z,y1.toJS(U,z,$));else if(Z instanceof Set)Z.add(z);else{let Q=l4(X,z,$),J=y1.toJS(U,Q,$);if(Q in Z)Object.defineProperty(Z,Q,{value:J,writable:!0,enumerable:!0,configurable:!0});else Z[Q]=J}}return Z}function l4($,Z,X){if(Z===null)return"";if(typeof Z!=="object")return String(Z);if(S8.isNode($)&&X?.doc){let U=m4.createStringifyContext(X.doc,{});U.anchors=new Set;for(let Q of X.anchors.keys())U.anchors.add(Q.anchor);U.inFlow=!0,U.inStringifyKey=!0;let z=$.toString(U);if(!X.mapKeyWarned){let Q=JSON.stringify(z);if(Q.length>40)Q=Q.substring(0,36)+'..."';v4.warn(X.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${Q}. Set mapAsMap: true to use object keys.`),X.mapKeyWarned=!0}return z}return JSON.stringify(Z)}d4.addPairToJSMap=p4});var U0=D((r4)=>{var E8=n0(),i4=N8(),s4=f1(),u$=b();function a4($,Z,X){let U=E8.createNode($,void 0,X),z=E8.createNode(Z,void 0,X);return new k$(U,z)}class k${constructor($,Z=null){Object.defineProperty(this,u$.NODE_TYPE,{value:u$.PAIR}),this.key=$,this.value=Z}clone($){let{key:Z,value:X}=this;if(u$.isNode(Z))Z=Z.clone($);if(u$.isNode(X))X=X.clone($);return new k$(Z,X)}toJSON($,Z){let X=Z?.mapAsMap?new Map:{};return s4.addPairToJSMap(Z,X,this)}toString($,Z,X){return $?.doc?i4.stringifyPair(this,$,Z,X):JSON.stringify(this)}}r4.Pair=k$;r4.createPair=a4});var x1=D((Z5)=>{var V0=b(),g8=$$(),v$=o0();function t4($,Z,X){return(Z.inFlow??$.flow?$5:e4)($,Z,X)}function e4({comment:$,items:Z},X,{blockItemPrefix:U,flowChars:z,itemIndent:Q,onChompKeep:J,onComment:H}){let{indent:q,options:{commentString:_}}=X,B=Object.assign({},X,{indent:Q,type:null}),G=!1,Y=[];for(let L=0;L<Z.length;++L){let V=Z[L],W=null;if(V0.isNode(V)){if(!G&&V.spaceBefore)Y.push("");if(m$(X,Y,V.commentBefore,G),V.comment)W=V.comment}else if(V0.isPair(V)){let F=V0.isNode(V.key)?V.key:null;if(F){if(!G&&F.spaceBefore)Y.push("");m$(X,Y,F.commentBefore,G)}}G=!1;let I=g8.stringify(V,B,()=>W=null,()=>G=!0);if(W)I+=v$.lineComment(I,Q,_(W));if(G&&W)G=!1;Y.push(U+I)}let O;if(Y.length===0)O=z.start+z.end;else{O=Y[0];for(let L=1;L<Y.length;++L){let V=Y[L];O+=V?`
45
45
  ${q}${V}`:`
46
46
  `}}if($){if(O+=`
47
- `+v$.indentComment(G($),q),H)H()}else if(_&&J)J();return O}function $5({items:$},Z,{flowChars:X,itemIndent:U}){let{indent:z,indentStep:Q,flowCollectionPadding:J,options:{commentString:H}}=Z;U+=Q;let q=Object.assign({},Z,{indent:U,inFlow:!0,type:null}),G=!1,B=0,_=[];for(let L=0;L<$.length;++L){let V=$[L],W=null;if(V0.isNode(V)){if(V.spaceBefore)_.push("");if(m$(Z,_,V.commentBefore,!1),V.comment)W=V.comment}else if(V0.isPair(V)){let M=V0.isNode(V.key)?V.key:null;if(M){if(M.spaceBefore)_.push("");if(m$(Z,_,M.commentBefore,!1),M.comment)G=!0}let T=V0.isNode(V.value)?V.value:null;if(T){if(T.comment)W=T.comment;if(T.commentBefore)G=!0}else if(V.value==null&&M?.comment)W=M.comment}if(W)G=!0;let D=g9.stringify(V,q,()=>W=null);if(G||(G=_.length>B||D.includes(`
48
- `)),L<$.length-1)D+=",";else if(Z.options.trailingComma){if(Z.options.lineWidth>0)G||(G=_.reduce((M,T)=>M+T.length+2,2)+(D.length+2)>Z.options.lineWidth);if(G)D+=","}if(W)D+=v$.lineComment(D,U,H(W));_.push(D),B=_.length}let{start:Y,end:O}=X;if(_.length===0)return Y+O;else{if(!G){let L=_.reduce((V,W)=>V+W.length+2,2);G=Z.options.lineWidth>0&&L>Z.options.lineWidth}if(G){let L=Y;for(let V of _)L+=V?`
47
+ `+v$.indentComment(_($),q),H)H()}else if(G&&J)J();return O}function $5({items:$},Z,{flowChars:X,itemIndent:U}){let{indent:z,indentStep:Q,flowCollectionPadding:J,options:{commentString:H}}=Z;U+=Q;let q=Object.assign({},Z,{indent:U,inFlow:!0,type:null}),_=!1,B=0,G=[];for(let L=0;L<$.length;++L){let V=$[L],W=null;if(V0.isNode(V)){if(V.spaceBefore)G.push("");if(m$(Z,G,V.commentBefore,!1),V.comment)W=V.comment}else if(V0.isPair(V)){let F=V0.isNode(V.key)?V.key:null;if(F){if(F.spaceBefore)G.push("");if(m$(Z,G,F.commentBefore,!1),F.comment)_=!0}let T=V0.isNode(V.value)?V.value:null;if(T){if(T.comment)W=T.comment;if(T.commentBefore)_=!0}else if(V.value==null&&F?.comment)W=F.comment}if(W)_=!0;let I=g8.stringify(V,q,()=>W=null);if(_||(_=G.length>B||I.includes(`
48
+ `)),L<$.length-1)I+=",";else if(Z.options.trailingComma){if(Z.options.lineWidth>0)_||(_=G.reduce((F,T)=>F+T.length+2,2)+(I.length+2)>Z.options.lineWidth);if(_)I+=","}if(W)I+=v$.lineComment(I,U,H(W));G.push(I),B=G.length}let{start:Y,end:O}=X;if(G.length===0)return Y+O;else{if(!_){let L=G.reduce((V,W)=>V+W.length+2,2);_=Z.options.lineWidth>0&&L>Z.options.lineWidth}if(_){let L=Y;for(let V of G)L+=V?`
49
49
  ${Q}${z}${V}`:`
50
50
  `;return`${L}
51
- ${z}${O}`}else return`${Y}${J}${_.join(" ")}${J}${O}`}}function m$({indent:$,options:{commentString:Z}},X,U,z){if(U&&z)U=U.replace(/^\n+/,"");if(U){let Q=v$.indentComment(Z(U),$);X.push(Q.trimStart())}}Z5.stringifyCollection=t4});var Q0=R((H5)=>{var U5=h1(),z5=f1(),Q5=S$(),z0=b(),p$=U0(),J5=g();function U$($,Z){let X=z0.isScalar(Z)?Z.value:Z;for(let U of $)if(z0.isPair(U)){if(U.key===Z||U.key===X)return U;if(z0.isScalar(U.key)&&U.key.value===X)return U}return}class y9 extends Q5.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor($){super(z0.MAP,$);this.items=[]}static from($,Z,X){let{keepUndefined:U,replacer:z}=X,Q=new this($),J=(H,q)=>{if(typeof z==="function")q=z.call(Z,H,q);else if(Array.isArray(z)&&!z.includes(H))return;if(q!==void 0||U)Q.items.push(p$.createPair(H,q,X))};if(Z instanceof Map)for(let[H,q]of Z)J(H,q);else if(Z&&typeof Z==="object")for(let H of Object.keys(Z))J(H,Z[H]);if(typeof $.sortMapEntries==="function")Q.items.sort($.sortMapEntries);return Q}add($,Z){let X;if(z0.isPair($))X=$;else if(!$||typeof $!=="object"||!("key"in $))X=new p$.Pair($,$?.value);else X=new p$.Pair($.key,$.value);let U=U$(this.items,X.key),z=this.schema?.sortMapEntries;if(U){if(!Z)throw Error(`Key ${X.key} already set`);if(z0.isScalar(U.value)&&J5.isScalarValue(X.value))U.value.value=X.value;else U.value=X.value}else if(z){let Q=this.items.findIndex((J)=>z(X,J)<0);if(Q===-1)this.items.push(X);else this.items.splice(Q,0,X)}else this.items.push(X)}delete($){let Z=U$(this.items,$);if(!Z)return!1;return this.items.splice(this.items.indexOf(Z),1).length>0}get($,Z){let U=U$(this.items,$)?.value;return(!Z&&z0.isScalar(U)?U.value:U)??void 0}has($){return!!U$(this.items,$)}set($,Z){this.add(new p$.Pair($,Z),!0)}toJSON($,Z,X){let U=X?new X:Z?.mapAsMap?new Map:{};if(Z?.onCreate)Z.onCreate(U);for(let z of this.items)z5.addPairToJSMap(Z,U,z);return U}toString($,Z,X){if(!$)return JSON.stringify(this);for(let U of this.items)if(!z0.isPair(U))throw Error(`Map items must all be pairs; found ${JSON.stringify(U)} instead`);if(!$.allNullValues&&this.hasAllNullValues(!1))$=Object.assign({},$,{allNullValues:!0});return U5.stringifyCollection(this,$,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:$.indent||"",onChompKeep:X,onComment:Z})}}H5.YAMLMap=y9;H5.findPair=U$});var b0=R((B5)=>{var _5=b(),f9=Q0(),Y5={collection:"map",default:!0,nodeClass:f9.YAMLMap,tag:"tag:yaml.org,2002:map",resolve($,Z){if(!_5.isMap($))Z("Expected a mapping for this tag");return $},createNode:($,Z,X)=>f9.YAMLMap.from($,Z,X)};B5.map=Y5});var J0=R((R5)=>{var O5=n0(),W5=h1(),L5=S$(),d$=b(),I5=g(),D5=$0();class h9 extends L5.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor($){super(d$.SEQ,$);this.items=[]}add($){this.items.push($)}delete($){let Z=l$($);if(typeof Z!=="number")return!1;return this.items.splice(Z,1).length>0}get($,Z){let X=l$($);if(typeof X!=="number")return;let U=this.items[X];return!Z&&d$.isScalar(U)?U.value:U}has($){let Z=l$($);return typeof Z==="number"&&Z<this.items.length}set($,Z){let X=l$($);if(typeof X!=="number")throw Error(`Expected a valid index, not ${$}.`);let U=this.items[X];if(d$.isScalar(U)&&I5.isScalarValue(Z))U.value=Z;else this.items[X]=Z}toJSON($,Z){let X=[];if(Z?.onCreate)Z.onCreate(X);let U=0;for(let z of this.items)X.push(D5.toJS(z,String(U++),Z));return X}toString($,Z,X){if(!$)return JSON.stringify(this);return W5.stringifyCollection(this,$,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:($.indent||"")+" ",onChompKeep:X,onComment:Z})}static from($,Z,X){let{replacer:U}=X,z=new this($);if(Z&&Symbol.iterator in Object(Z)){let Q=0;for(let J of Z){if(typeof U==="function"){let H=Z instanceof Set?J:String(Q++);J=U.call(Z,H,J)}z.items.push(O5.createNode(J,void 0,X))}}return z}}function l$($){let Z=d$.isScalar($)?$.value:$;if(Z&&typeof Z==="string")Z=Number(Z);return typeof Z==="number"&&Number.isInteger(Z)&&Z>=0?Z:null}R5.YAMLSeq=h9});var C0=R((T5)=>{var F5=b(),x9=J0(),P5={collection:"seq",default:!0,nodeClass:x9.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve($,Z){if(!F5.isSeq($))Z("Expected a sequence for this tag");return $},createNode:($,Z,X)=>x9.YAMLSeq.from($,Z,X)};T5.seq=P5});var z$=R((w5)=>{var A5=e0(),N5={identify:($)=>typeof $==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:($)=>$,stringify($,Z,X,U){return Z=Object.assign({actualString:!0},Z),A5.stringifyString($,Z,X,U)}};w5.string=N5});var c$=R((C5)=>{var u9=g(),k9={identify:($)=>$==null,createNode:()=>new u9.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new u9.Scalar(null),stringify:({source:$},Z)=>typeof $==="string"&&k9.test.test($)?$:Z.options.nullStr};C5.nullTag=k9});var x1=R((E5)=>{var S5=g(),v9={identify:($)=>typeof $==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:($)=>new S5.Scalar($[0]==="t"||$[0]==="T"),stringify({source:$,value:Z},X){if($&&v9.test.test($)){let U=$[0]==="t"||$[0]==="T";if(Z===U)return $}return Z?X.options.trueStr:X.options.falseStr}};E5.boolTag=v9});var j0=R((f5)=>{function y5({format:$,minFractionDigits:Z,tag:X,value:U}){if(typeof U==="bigint")return String(U);let z=typeof U==="number"?U:Number(U);if(!isFinite(z))return isNaN(z)?".nan":z<0?"-.inf":".inf";let Q=Object.is(U,-0)?"-0":JSON.stringify(U);if(!$&&Z&&(!X||X==="tag:yaml.org,2002:float")&&/^\d/.test(Q)){let J=Q.indexOf(".");if(J<0)J=Q.length,Q+=".";let H=Z-(Q.length-J-1);while(H-- >0)Q+="0"}return Q}f5.stringifyNumber=y5});var k1=R((m5)=>{var x5=g(),u1=j0(),u5={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:($)=>$.slice(-3).toLowerCase()==="nan"?NaN:$[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:u1.stringifyNumber},k5={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:($)=>parseFloat($),stringify($){let Z=Number($.value);return isFinite(Z)?Z.toExponential():u1.stringifyNumber($)}},v5={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve($){let Z=new x5.Scalar(parseFloat($)),X=$.indexOf(".");if(X!==-1&&$[$.length-1]==="0")Z.minFractionDigits=$.length-X-1;return Z},stringify:u1.stringifyNumber};m5.float=v5;m5.floatExp=k5;m5.floatNaN=u5});var m1=R((a5)=>{var m9=j0(),i$=($)=>typeof $==="bigint"||Number.isInteger($),v1=($,Z,X,{intAsBigInt:U})=>U?BigInt($):parseInt($.substring(Z),X);function p9($,Z,X){let{value:U}=$;if(i$(U)&&U>=0)return X+U.toString(Z);return m9.stringifyNumber($)}var c5={identify:($)=>i$($)&&$>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:($,Z,X)=>v1($,2,8,X),stringify:($)=>p9($,8,"0o")},i5={identify:i$,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:($,Z,X)=>v1($,0,10,X),stringify:m9.stringifyNumber},s5={identify:($)=>i$($)&&$>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:($,Z,X)=>v1($,2,16,X),stringify:($)=>p9($,16,"0x")};a5.int=i5;a5.intHex=s5;a5.intOct=c5});var l9=R((z7)=>{var t5=b0(),e5=c$(),$7=C0(),Z7=z$(),X7=x1(),p1=k1(),l1=m1(),U7=[t5.map,$7.seq,Z7.string,e5.nullTag,X7.boolTag,l1.intOct,l1.int,l1.intHex,p1.floatNaN,p1.floatExp,p1.float];z7.schema=U7});var c9=R((B7)=>{var J7=g(),H7=b0(),q7=C0();function d9($){return typeof $==="bigint"||Number.isInteger($)}var s$=({value:$})=>JSON.stringify($),G7=[{identify:($)=>typeof $==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:($)=>$,stringify:s$},{identify:($)=>$==null,createNode:()=>new J7.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:s$},{identify:($)=>typeof $==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:($)=>$==="true",stringify:s$},{identify:d9,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:($,Z,{intAsBigInt:X})=>X?BigInt($):parseInt($,10),stringify:({value:$})=>d9($)?$.toString():JSON.stringify($)},{identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:($)=>parseFloat($),stringify:s$}],_7={default:!0,tag:"",test:/^/,resolve($,Z){return Z(`Unresolved plain scalar ${JSON.stringify($)}`),$}},Y7=[H7.map,q7.seq].concat(G7,_7);B7.schema=Y7});var c1=R((L7)=>{var Q$=p0("buffer"),d1=g(),O7=e0(),W7={identify:($)=>$ instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve($,Z){if(typeof Q$.Buffer==="function")return Q$.Buffer.from($,"base64");else if(typeof atob==="function"){let X=atob($.replace(/[\n\r]/g,"")),U=new Uint8Array(X.length);for(let z=0;z<X.length;++z)U[z]=X.charCodeAt(z);return U}else return Z("This environment does not support reading binary tags; either Buffer or atob is required"),$},stringify({comment:$,type:Z,value:X},U,z,Q){if(!X)return"";let J=X,H;if(typeof Q$.Buffer==="function")H=J instanceof Q$.Buffer?J.toString("base64"):Q$.Buffer.from(J.buffer).toString("base64");else if(typeof btoa==="function"){let q="";for(let G=0;G<J.length;++G)q+=String.fromCharCode(J[G]);H=btoa(q)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(Z??(Z=d1.Scalar.BLOCK_LITERAL),Z!==d1.Scalar.QUOTE_DOUBLE){let q=Math.max(U.options.lineWidth-U.indent.length,U.options.minContentWidth),G=Math.ceil(H.length/q),B=Array(G);for(let _=0,Y=0;_<G;++_,Y+=q)B[_]=H.substr(Y,q);H=B.join(Z===d1.Scalar.BLOCK_LITERAL?`
52
- `:" ")}return O7.stringifyString({comment:$,type:Z,value:H},U,z,Q)}};L7.binary=W7});var r$=R((F7)=>{var a$=b(),i1=U0(),D7=g(),R7=J0();function i9($,Z){if(a$.isSeq($))for(let X=0;X<$.items.length;++X){let U=$.items[X];if(a$.isPair(U))continue;else if(a$.isMap(U)){if(U.items.length>1)Z("Each pair must have its own sequence indicator");let z=U.items[0]||new i1.Pair(new D7.Scalar(null));if(U.commentBefore)z.key.commentBefore=z.key.commentBefore?`${U.commentBefore}
51
+ ${z}${O}`}else return`${Y}${J}${G.join(" ")}${J}${O}`}}function m$({indent:$,options:{commentString:Z}},X,U,z){if(U&&z)U=U.replace(/^\n+/,"");if(U){let Q=v$.indentComment(Z(U),$);X.push(Q.trimStart())}}Z5.stringifyCollection=t4});var Q0=D((H5)=>{var U5=x1(),z5=f1(),Q5=S$(),z0=b(),p$=U0(),J5=g();function U$($,Z){let X=z0.isScalar(Z)?Z.value:Z;for(let U of $)if(z0.isPair(U)){if(U.key===Z||U.key===X)return U;if(z0.isScalar(U.key)&&U.key.value===X)return U}return}class y8 extends Q5.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor($){super(z0.MAP,$);this.items=[]}static from($,Z,X){let{keepUndefined:U,replacer:z}=X,Q=new this($),J=(H,q)=>{if(typeof z==="function")q=z.call(Z,H,q);else if(Array.isArray(z)&&!z.includes(H))return;if(q!==void 0||U)Q.items.push(p$.createPair(H,q,X))};if(Z instanceof Map)for(let[H,q]of Z)J(H,q);else if(Z&&typeof Z==="object")for(let H of Object.keys(Z))J(H,Z[H]);if(typeof $.sortMapEntries==="function")Q.items.sort($.sortMapEntries);return Q}add($,Z){let X;if(z0.isPair($))X=$;else if(!$||typeof $!=="object"||!("key"in $))X=new p$.Pair($,$?.value);else X=new p$.Pair($.key,$.value);let U=U$(this.items,X.key),z=this.schema?.sortMapEntries;if(U){if(!Z)throw Error(`Key ${X.key} already set`);if(z0.isScalar(U.value)&&J5.isScalarValue(X.value))U.value.value=X.value;else U.value=X.value}else if(z){let Q=this.items.findIndex((J)=>z(X,J)<0);if(Q===-1)this.items.push(X);else this.items.splice(Q,0,X)}else this.items.push(X)}delete($){let Z=U$(this.items,$);if(!Z)return!1;return this.items.splice(this.items.indexOf(Z),1).length>0}get($,Z){let U=U$(this.items,$)?.value;return(!Z&&z0.isScalar(U)?U.value:U)??void 0}has($){return!!U$(this.items,$)}set($,Z){this.add(new p$.Pair($,Z),!0)}toJSON($,Z,X){let U=X?new X:Z?.mapAsMap?new Map:{};if(Z?.onCreate)Z.onCreate(U);for(let z of this.items)z5.addPairToJSMap(Z,U,z);return U}toString($,Z,X){if(!$)return JSON.stringify(this);for(let U of this.items)if(!z0.isPair(U))throw Error(`Map items must all be pairs; found ${JSON.stringify(U)} instead`);if(!$.allNullValues&&this.hasAllNullValues(!1))$=Object.assign({},$,{allNullValues:!0});return U5.stringifyCollection(this,$,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:$.indent||"",onChompKeep:X,onComment:Z})}}H5.YAMLMap=y8;H5.findPair=U$});var b0=D((B5)=>{var G5=b(),f8=Q0(),Y5={collection:"map",default:!0,nodeClass:f8.YAMLMap,tag:"tag:yaml.org,2002:map",resolve($,Z){if(!G5.isMap($))Z("Expected a mapping for this tag");return $},createNode:($,Z,X)=>f8.YAMLMap.from($,Z,X)};B5.map=Y5});var J0=D((D5)=>{var O5=n0(),W5=x1(),L5=S$(),d$=b(),R5=g(),I5=$0();class x8 extends L5.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor($){super(d$.SEQ,$);this.items=[]}add($){this.items.push($)}delete($){let Z=l$($);if(typeof Z!=="number")return!1;return this.items.splice(Z,1).length>0}get($,Z){let X=l$($);if(typeof X!=="number")return;let U=this.items[X];return!Z&&d$.isScalar(U)?U.value:U}has($){let Z=l$($);return typeof Z==="number"&&Z<this.items.length}set($,Z){let X=l$($);if(typeof X!=="number")throw Error(`Expected a valid index, not ${$}.`);let U=this.items[X];if(d$.isScalar(U)&&R5.isScalarValue(Z))U.value=Z;else this.items[X]=Z}toJSON($,Z){let X=[];if(Z?.onCreate)Z.onCreate(X);let U=0;for(let z of this.items)X.push(I5.toJS(z,String(U++),Z));return X}toString($,Z,X){if(!$)return JSON.stringify(this);return W5.stringifyCollection(this,$,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:($.indent||"")+" ",onChompKeep:X,onComment:Z})}static from($,Z,X){let{replacer:U}=X,z=new this($);if(Z&&Symbol.iterator in Object(Z)){let Q=0;for(let J of Z){if(typeof U==="function"){let H=Z instanceof Set?J:String(Q++);J=U.call(Z,H,J)}z.items.push(O5.createNode(J,void 0,X))}}return z}}function l$($){let Z=d$.isScalar($)?$.value:$;if(Z&&typeof Z==="string")Z=Number(Z);return typeof Z==="number"&&Number.isInteger(Z)&&Z>=0?Z:null}D5.YAMLSeq=x8});var C0=D((T5)=>{var M5=b(),h8=J0(),P5={collection:"seq",default:!0,nodeClass:h8.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve($,Z){if(!M5.isSeq($))Z("Expected a sequence for this tag");return $},createNode:($,Z,X)=>h8.YAMLSeq.from($,Z,X)};T5.seq=P5});var z$=D((w5)=>{var A5=e0(),N5={identify:($)=>typeof $==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:($)=>$,stringify($,Z,X,U){return Z=Object.assign({actualString:!0},Z),A5.stringifyString($,Z,X,U)}};w5.string=N5});var c$=D((C5)=>{var u8=g(),k8={identify:($)=>$==null,createNode:()=>new u8.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new u8.Scalar(null),stringify:({source:$},Z)=>typeof $==="string"&&k8.test.test($)?$:Z.options.nullStr};C5.nullTag=k8});var h1=D((E5)=>{var S5=g(),v8={identify:($)=>typeof $==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:($)=>new S5.Scalar($[0]==="t"||$[0]==="T"),stringify({source:$,value:Z},X){if($&&v8.test.test($)){let U=$[0]==="t"||$[0]==="T";if(Z===U)return $}return Z?X.options.trueStr:X.options.falseStr}};E5.boolTag=v8});var j0=D((f5)=>{function y5({format:$,minFractionDigits:Z,tag:X,value:U}){if(typeof U==="bigint")return String(U);let z=typeof U==="number"?U:Number(U);if(!isFinite(z))return isNaN(z)?".nan":z<0?"-.inf":".inf";let Q=Object.is(U,-0)?"-0":JSON.stringify(U);if(!$&&Z&&(!X||X==="tag:yaml.org,2002:float")&&/^\d/.test(Q)){let J=Q.indexOf(".");if(J<0)J=Q.length,Q+=".";let H=Z-(Q.length-J-1);while(H-- >0)Q+="0"}return Q}f5.stringifyNumber=y5});var k1=D((m5)=>{var h5=g(),u1=j0(),u5={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:($)=>$.slice(-3).toLowerCase()==="nan"?NaN:$[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:u1.stringifyNumber},k5={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:($)=>parseFloat($),stringify($){let Z=Number($.value);return isFinite(Z)?Z.toExponential():u1.stringifyNumber($)}},v5={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve($){let Z=new h5.Scalar(parseFloat($)),X=$.indexOf(".");if(X!==-1&&$[$.length-1]==="0")Z.minFractionDigits=$.length-X-1;return Z},stringify:u1.stringifyNumber};m5.float=v5;m5.floatExp=k5;m5.floatNaN=u5});var m1=D((a5)=>{var m8=j0(),i$=($)=>typeof $==="bigint"||Number.isInteger($),v1=($,Z,X,{intAsBigInt:U})=>U?BigInt($):parseInt($.substring(Z),X);function p8($,Z,X){let{value:U}=$;if(i$(U)&&U>=0)return X+U.toString(Z);return m8.stringifyNumber($)}var c5={identify:($)=>i$($)&&$>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:($,Z,X)=>v1($,2,8,X),stringify:($)=>p8($,8,"0o")},i5={identify:i$,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:($,Z,X)=>v1($,0,10,X),stringify:m8.stringifyNumber},s5={identify:($)=>i$($)&&$>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:($,Z,X)=>v1($,2,16,X),stringify:($)=>p8($,16,"0x")};a5.int=i5;a5.intHex=s5;a5.intOct=c5});var l8=D((z7)=>{var t5=b0(),e5=c$(),$7=C0(),Z7=z$(),X7=h1(),p1=k1(),l1=m1(),U7=[t5.map,$7.seq,Z7.string,e5.nullTag,X7.boolTag,l1.intOct,l1.int,l1.intHex,p1.floatNaN,p1.floatExp,p1.float];z7.schema=U7});var c8=D((B7)=>{var J7=g(),H7=b0(),q7=C0();function d8($){return typeof $==="bigint"||Number.isInteger($)}var s$=({value:$})=>JSON.stringify($),_7=[{identify:($)=>typeof $==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:($)=>$,stringify:s$},{identify:($)=>$==null,createNode:()=>new J7.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:s$},{identify:($)=>typeof $==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:($)=>$==="true",stringify:s$},{identify:d8,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:($,Z,{intAsBigInt:X})=>X?BigInt($):parseInt($,10),stringify:({value:$})=>d8($)?$.toString():JSON.stringify($)},{identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:($)=>parseFloat($),stringify:s$}],G7={default:!0,tag:"",test:/^/,resolve($,Z){return Z(`Unresolved plain scalar ${JSON.stringify($)}`),$}},Y7=[H7.map,q7.seq].concat(_7,G7);B7.schema=Y7});var c1=D((L7)=>{var Q$=p0("buffer"),d1=g(),O7=e0(),W7={identify:($)=>$ instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve($,Z){if(typeof Q$.Buffer==="function")return Q$.Buffer.from($,"base64");else if(typeof atob==="function"){let X=atob($.replace(/[\n\r]/g,"")),U=new Uint8Array(X.length);for(let z=0;z<X.length;++z)U[z]=X.charCodeAt(z);return U}else return Z("This environment does not support reading binary tags; either Buffer or atob is required"),$},stringify({comment:$,type:Z,value:X},U,z,Q){if(!X)return"";let J=X,H;if(typeof Q$.Buffer==="function")H=J instanceof Q$.Buffer?J.toString("base64"):Q$.Buffer.from(J.buffer).toString("base64");else if(typeof btoa==="function"){let q="";for(let _=0;_<J.length;++_)q+=String.fromCharCode(J[_]);H=btoa(q)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(Z??(Z=d1.Scalar.BLOCK_LITERAL),Z!==d1.Scalar.QUOTE_DOUBLE){let q=Math.max(U.options.lineWidth-U.indent.length,U.options.minContentWidth),_=Math.ceil(H.length/q),B=Array(_);for(let G=0,Y=0;G<_;++G,Y+=q)B[G]=H.substr(Y,q);H=B.join(Z===d1.Scalar.BLOCK_LITERAL?`
52
+ `:" ")}return O7.stringifyString({comment:$,type:Z,value:H},U,z,Q)}};L7.binary=W7});var r$=D((M7)=>{var a$=b(),i1=U0(),I7=g(),D7=J0();function i8($,Z){if(a$.isSeq($))for(let X=0;X<$.items.length;++X){let U=$.items[X];if(a$.isPair(U))continue;else if(a$.isMap(U)){if(U.items.length>1)Z("Each pair must have its own sequence indicator");let z=U.items[0]||new i1.Pair(new I7.Scalar(null));if(U.commentBefore)z.key.commentBefore=z.key.commentBefore?`${U.commentBefore}
53
53
  ${z.key.commentBefore}`:U.commentBefore;if(U.comment){let Q=z.value??z.key;Q.comment=Q.comment?`${U.comment}
54
- ${Q.comment}`:U.comment}U=z}$.items[X]=a$.isPair(U)?U:new i1.Pair(U)}else Z("Expected a sequence for this tag");return $}function s9($,Z,X){let{replacer:U}=X,z=new R7.YAMLSeq($);z.tag="tag:yaml.org,2002:pairs";let Q=0;if(Z&&Symbol.iterator in Object(Z))for(let J of Z){if(typeof U==="function")J=U.call(Z,String(Q++),J);let H,q;if(Array.isArray(J))if(J.length===2)H=J[0],q=J[1];else throw TypeError(`Expected [key, value] tuple: ${J}`);else if(J&&J instanceof Object){let G=Object.keys(J);if(G.length===1)H=G[0],q=J[H];else throw TypeError(`Expected tuple with one key, not ${G.length} keys`)}else H=J;z.items.push(i1.createPair(H,q,X))}return z}var M7={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:i9,createNode:s9};F7.createPairs=s9;F7.pairs=M7;F7.resolvePairs=i9});var a1=R((w7)=>{var a9=b(),s1=$0(),J$=Q0(),A7=J0(),r9=r$();class O0 extends A7.YAMLSeq{constructor(){super();this.add=J$.YAMLMap.prototype.add.bind(this),this.delete=J$.YAMLMap.prototype.delete.bind(this),this.get=J$.YAMLMap.prototype.get.bind(this),this.has=J$.YAMLMap.prototype.has.bind(this),this.set=J$.YAMLMap.prototype.set.bind(this),this.tag=O0.tag}toJSON($,Z){if(!Z)return super.toJSON($);let X=new Map;if(Z?.onCreate)Z.onCreate(X);for(let U of this.items){let z,Q;if(a9.isPair(U))z=s1.toJS(U.key,"",Z),Q=s1.toJS(U.value,z,Z);else z=s1.toJS(U,"",Z);if(X.has(z))throw Error("Ordered maps must not include duplicate keys");X.set(z,Q)}return X}static from($,Z,X){let U=r9.createPairs($,Z,X),z=new this;return z.items=U.items,z}}O0.tag="tag:yaml.org,2002:omap";var N7={collection:"seq",identify:($)=>$ instanceof Map,nodeClass:O0,default:!1,tag:"tag:yaml.org,2002:omap",resolve($,Z){let X=r9.resolvePairs($,Z),U=[];for(let{key:z}of X.items)if(a9.isScalar(z))if(U.includes(z.value))Z(`Ordered maps must not include duplicate keys: ${z.value}`);else U.push(z.value);return Object.assign(new O0,X)},createNode:($,Z,X)=>O0.from($,Z,X)};w7.YAMLOMap=O0;w7.omap=N7});var $3=R((j7)=>{var n9=g();function o9({value:$,source:Z},X){if(Z&&($?t9:e9).test.test(Z))return Z;return $?X.options.trueStr:X.options.falseStr}var t9={identify:($)=>$===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n9.Scalar(!0),stringify:o9},e9={identify:($)=>$===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new n9.Scalar(!1),stringify:o9};j7.falseTag=e9;j7.trueTag=t9});var Z3=R((x7)=>{var g7=g(),r1=j0(),y7={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:($)=>$.slice(-3).toLowerCase()==="nan"?NaN:$[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:r1.stringifyNumber},f7={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:($)=>parseFloat($.replace(/_/g,"")),stringify($){let Z=Number($.value);return isFinite(Z)?Z.toExponential():r1.stringifyNumber($)}},h7={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve($){let Z=new g7.Scalar(parseFloat($.replace(/_/g,""))),X=$.indexOf(".");if(X!==-1){let U=$.substring(X+1).replace(/_/g,"");if(U[U.length-1]==="0")Z.minFractionDigits=U.length}return Z},stringify:r1.stringifyNumber};x7.float=h7;x7.floatExp=f7;x7.floatNaN=y7});var U3=R((c7)=>{var X3=j0(),H$=($)=>typeof $==="bigint"||Number.isInteger($);function n$($,Z,X,{intAsBigInt:U}){let z=$[0];if(z==="-"||z==="+")Z+=1;if($=$.substring(Z).replace(/_/g,""),U){switch(X){case 2:$=`0b${$}`;break;case 8:$=`0o${$}`;break;case 16:$=`0x${$}`;break}let J=BigInt($);return z==="-"?BigInt(-1)*J:J}let Q=parseInt($,X);return z==="-"?-1*Q:Q}function n1($,Z,X){let{value:U}=$;if(H$(U)){let z=U.toString(Z);return U<0?"-"+X+z.substr(1):X+z}return X3.stringifyNumber($)}var m7={identify:H$,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:($,Z,X)=>n$($,2,2,X),stringify:($)=>n1($,2,"0b")},p7={identify:H$,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:($,Z,X)=>n$($,1,8,X),stringify:($)=>n1($,8,"0")},l7={identify:H$,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:($,Z,X)=>n$($,0,10,X),stringify:X3.stringifyNumber},d7={identify:H$,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:($,Z,X)=>n$($,2,16,X),stringify:($)=>n1($,16,"0x")};c7.int=l7;c7.intBin=m7;c7.intHex=d7;c7.intOct=p7});var o1=R((o7)=>{var e$=b(),o$=U0(),t$=Q0();class W0 extends t$.YAMLMap{constructor($){super($);this.tag=W0.tag}add($){let Z;if(e$.isPair($))Z=$;else if($&&typeof $==="object"&&"key"in $&&"value"in $&&$.value===null)Z=new o$.Pair($.key,null);else Z=new o$.Pair($,null);if(!t$.findPair(this.items,Z.key))this.items.push(Z)}get($,Z){let X=t$.findPair(this.items,$);return!Z&&e$.isPair(X)?e$.isScalar(X.key)?X.key.value:X.key:X}set($,Z){if(typeof Z!=="boolean")throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof Z}`);let X=t$.findPair(this.items,$);if(X&&!Z)this.items.splice(this.items.indexOf(X),1);else if(!X&&Z)this.items.push(new o$.Pair($))}toJSON($,Z){return super.toJSON($,Z,Set)}toString($,Z,X){if(!$)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},$,{allNullValues:!0}),Z,X);else throw Error("Set items must all have null values")}static from($,Z,X){let{replacer:U}=X,z=new this($);if(Z&&Symbol.iterator in Object(Z))for(let Q of Z){if(typeof U==="function")Q=U.call(Z,Q,Q);z.items.push(o$.createPair(Q,null,X))}return z}}W0.tag="tag:yaml.org,2002:set";var n7={collection:"map",identify:($)=>$ instanceof Set,nodeClass:W0,default:!1,tag:"tag:yaml.org,2002:set",createNode:($,Z,X)=>W0.from($,Z,X),resolve($,Z){if(e$.isMap($))if($.hasAllNullValues(!0))return Object.assign(new W0,$);else Z("Set items must all have null values");else Z("Expected a mapping for this tag");return $}};o7.YAMLSet=W0;o7.set=n7});var e1=R((UX)=>{var $X=j0();function t1($,Z){let X=$[0],U=X==="-"||X==="+"?$.substring(1):$,z=(J)=>Z?BigInt(J):Number(J),Q=U.replace(/_/g,"").split(":").reduce((J,H)=>J*z(60)+z(H),z(0));return X==="-"?z(-1)*Q:Q}function z3($){let{value:Z}=$,X=(J)=>J;if(typeof Z==="bigint")X=(J)=>BigInt(J);else if(isNaN(Z)||!isFinite(Z))return $X.stringifyNumber($);let U="";if(Z<0)U="-",Z*=X(-1);let z=X(60),Q=[Z%z];if(Z<60)Q.unshift(0);else if(Z=(Z-Q[0])/z,Q.unshift(Z%z),Z>=60)Z=(Z-Q[0])/z,Q.unshift(Z);return U+Q.map((J)=>String(J).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var ZX={identify:($)=>typeof $==="bigint"||Number.isInteger($),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:($,Z,{intAsBigInt:X})=>t1($,X),stringify:z3},XX={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:($)=>t1($,!1),stringify:z3},Q3={identify:($)=>$ instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve($){let Z=$.match(Q3.test);if(!Z)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,X,U,z,Q,J,H]=Z.map(Number),q=Z[7]?Number((Z[7]+"00").substr(1,3)):0,G=Date.UTC(X,U-1,z,Q||0,J||0,H||0,q),B=Z[8];if(B&&B!=="Z"){let _=t1(B,!1);if(Math.abs(_)<30)_*=60;G-=60000*_}return new Date(G)},stringify:({value:$})=>$?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};UX.floatTime=XX;UX.intTime=ZX;UX.timestamp=Q3});var H3=R((IX)=>{var HX=b0(),qX=c$(),GX=C0(),_X=z$(),YX=c1(),J3=$3(),$2=Z3(),$1=U3(),BX=x$(),VX=a1(),OX=r$(),WX=o1(),Z2=e1(),LX=[HX.map,GX.seq,_X.string,qX.nullTag,J3.trueTag,J3.falseTag,$1.intBin,$1.intOct,$1.int,$1.intHex,$2.floatNaN,$2.floatExp,$2.float,YX.binary,BX.merge,VX.omap,OX.pairs,WX.set,Z2.intTime,Z2.floatTime,Z2.timestamp];IX.schema=LX});var I3=R((NX)=>{var Y3=b0(),RX=c$(),B3=C0(),MX=z$(),FX=x1(),X2=k1(),U2=m1(),PX=l9(),TX=c9(),V3=c1(),q$=x$(),O3=a1(),W3=r$(),q3=H3(),L3=o1(),Z1=e1(),G3=new Map([["core",PX.schema],["failsafe",[Y3.map,B3.seq,MX.string]],["json",TX.schema],["yaml11",q3.schema],["yaml-1.1",q3.schema]]),_3={binary:V3.binary,bool:FX.boolTag,float:X2.float,floatExp:X2.floatExp,floatNaN:X2.floatNaN,floatTime:Z1.floatTime,int:U2.int,intHex:U2.intHex,intOct:U2.intOct,intTime:Z1.intTime,map:Y3.map,merge:q$.merge,null:RX.nullTag,omap:O3.omap,pairs:W3.pairs,seq:B3.seq,set:L3.set,timestamp:Z1.timestamp},KX={"tag:yaml.org,2002:binary":V3.binary,"tag:yaml.org,2002:merge":q$.merge,"tag:yaml.org,2002:omap":O3.omap,"tag:yaml.org,2002:pairs":W3.pairs,"tag:yaml.org,2002:set":L3.set,"tag:yaml.org,2002:timestamp":Z1.timestamp};function AX($,Z,X){let U=G3.get(Z);if(U&&!$)return X&&!U.includes(q$.merge)?U.concat(q$.merge):U.slice();let z=U;if(!z)if(Array.isArray($))z=[];else{let Q=Array.from(G3.keys()).filter((J)=>J!=="yaml11").map((J)=>JSON.stringify(J)).join(", ");throw Error(`Unknown schema "${Z}"; use one of ${Q} or define customTags array`)}if(Array.isArray($))for(let Q of $)z=z.concat(Q);else if(typeof $==="function")z=$(z.slice());if(X)z=z.concat(q$.merge);return z.reduce((Q,J)=>{let H=typeof J==="string"?_3[J]:J;if(!H){let q=JSON.stringify(J),G=Object.keys(_3).map((B)=>JSON.stringify(B)).join(", ");throw Error(`Unknown custom tag ${q}; use one of ${G}`)}if(!Q.includes(H))Q.push(H);return Q},[])}NX.coreKnownTags=KX;NX.getTags=AX});var J2=R((gX)=>{var z2=b(),CX=b0(),jX=C0(),SX=z$(),X1=I3(),EX=($,Z)=>$.key<Z.key?-1:$.key>Z.key?1:0;class Q2{constructor({compat:$,customTags:Z,merge:X,resolveKnownTags:U,schema:z,sortMapEntries:Q,toStringDefaults:J}){this.compat=Array.isArray($)?X1.getTags($,"compat"):$?X1.getTags(null,$):null,this.name=typeof z==="string"&&z||"core",this.knownTags=U?X1.coreKnownTags:{},this.tags=X1.getTags(Z,this.name,X),this.toStringOptions=J??null,Object.defineProperty(this,z2.MAP,{value:CX.map}),Object.defineProperty(this,z2.SCALAR,{value:SX.string}),Object.defineProperty(this,z2.SEQ,{value:jX.seq}),this.sortMapEntries=typeof Q==="function"?Q:Q===!0?EX:null}clone(){let $=Object.create(Q2.prototype,Object.getOwnPropertyDescriptors(this));return $.tags=this.tags.slice(),$}}gX.Schema=Q2});var D3=R((xX)=>{var fX=b(),H2=$$(),G$=o0();function hX($,Z){let X=[],U=Z.directives===!0;if(Z.directives!==!1&&$.directives){let q=$.directives.toString($);if(q)X.push(q),U=!0;else if($.directives.docStart)U=!0}if(U)X.push("---");let z=H2.createStringifyContext($,Z),{commentString:Q}=z.options;if($.commentBefore){if(X.length!==1)X.unshift("");let q=Q($.commentBefore);X.unshift(G$.indentComment(q,""))}let J=!1,H=null;if($.contents){if(fX.isNode($.contents)){if($.contents.spaceBefore&&U)X.push("");if($.contents.commentBefore){let B=Q($.contents.commentBefore);X.push(G$.indentComment(B,""))}z.forceBlockIndent=!!$.comment,H=$.contents.comment}let q=H?void 0:()=>J=!0,G=H2.stringify($.contents,z,()=>H=null,q);if(H)G+=G$.lineComment(G,"",Q(H));if((G[0]==="|"||G[0]===">")&&X[X.length-1]==="---")X[X.length-1]=`--- ${G}`;else X.push(G)}else X.push(H2.stringify($.contents,z));if($.directives?.docEnd)if($.comment){let q=Q($.comment);if(q.includes(`
55
- `))X.push("..."),X.push(G$.indentComment(q,""));else X.push(`... ${q}`)}else X.push("...");else{let q=$.comment;if(q&&J)q=q.replace(/^\n+/,"");if(q){if((!J||H)&&X[X.length-1]!=="")X.push("");X.push(G$.indentComment(Q(q),""))}}return X.join(`
54
+ ${Q.comment}`:U.comment}U=z}$.items[X]=a$.isPair(U)?U:new i1.Pair(U)}else Z("Expected a sequence for this tag");return $}function s8($,Z,X){let{replacer:U}=X,z=new D7.YAMLSeq($);z.tag="tag:yaml.org,2002:pairs";let Q=0;if(Z&&Symbol.iterator in Object(Z))for(let J of Z){if(typeof U==="function")J=U.call(Z,String(Q++),J);let H,q;if(Array.isArray(J))if(J.length===2)H=J[0],q=J[1];else throw TypeError(`Expected [key, value] tuple: ${J}`);else if(J&&J instanceof Object){let _=Object.keys(J);if(_.length===1)H=_[0],q=J[H];else throw TypeError(`Expected tuple with one key, not ${_.length} keys`)}else H=J;z.items.push(i1.createPair(H,q,X))}return z}var F7={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:i8,createNode:s8};M7.createPairs=s8;M7.pairs=F7;M7.resolvePairs=i8});var a1=D((w7)=>{var a8=b(),s1=$0(),J$=Q0(),A7=J0(),r8=r$();class O0 extends A7.YAMLSeq{constructor(){super();this.add=J$.YAMLMap.prototype.add.bind(this),this.delete=J$.YAMLMap.prototype.delete.bind(this),this.get=J$.YAMLMap.prototype.get.bind(this),this.has=J$.YAMLMap.prototype.has.bind(this),this.set=J$.YAMLMap.prototype.set.bind(this),this.tag=O0.tag}toJSON($,Z){if(!Z)return super.toJSON($);let X=new Map;if(Z?.onCreate)Z.onCreate(X);for(let U of this.items){let z,Q;if(a8.isPair(U))z=s1.toJS(U.key,"",Z),Q=s1.toJS(U.value,z,Z);else z=s1.toJS(U,"",Z);if(X.has(z))throw Error("Ordered maps must not include duplicate keys");X.set(z,Q)}return X}static from($,Z,X){let U=r8.createPairs($,Z,X),z=new this;return z.items=U.items,z}}O0.tag="tag:yaml.org,2002:omap";var N7={collection:"seq",identify:($)=>$ instanceof Map,nodeClass:O0,default:!1,tag:"tag:yaml.org,2002:omap",resolve($,Z){let X=r8.resolvePairs($,Z),U=[];for(let{key:z}of X.items)if(a8.isScalar(z))if(U.includes(z.value))Z(`Ordered maps must not include duplicate keys: ${z.value}`);else U.push(z.value);return Object.assign(new O0,X)},createNode:($,Z,X)=>O0.from($,Z,X)};w7.YAMLOMap=O0;w7.omap=N7});var $9=D((j7)=>{var n8=g();function o8({value:$,source:Z},X){if(Z&&($?t8:e8).test.test(Z))return Z;return $?X.options.trueStr:X.options.falseStr}var t8={identify:($)=>$===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n8.Scalar(!0),stringify:o8},e8={identify:($)=>$===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new n8.Scalar(!1),stringify:o8};j7.falseTag=e8;j7.trueTag=t8});var Z9=D((h7)=>{var g7=g(),r1=j0(),y7={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:($)=>$.slice(-3).toLowerCase()==="nan"?NaN:$[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:r1.stringifyNumber},f7={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:($)=>parseFloat($.replace(/_/g,"")),stringify($){let Z=Number($.value);return isFinite(Z)?Z.toExponential():r1.stringifyNumber($)}},x7={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve($){let Z=new g7.Scalar(parseFloat($.replace(/_/g,""))),X=$.indexOf(".");if(X!==-1){let U=$.substring(X+1).replace(/_/g,"");if(U[U.length-1]==="0")Z.minFractionDigits=U.length}return Z},stringify:r1.stringifyNumber};h7.float=x7;h7.floatExp=f7;h7.floatNaN=y7});var U9=D((c7)=>{var X9=j0(),H$=($)=>typeof $==="bigint"||Number.isInteger($);function n$($,Z,X,{intAsBigInt:U}){let z=$[0];if(z==="-"||z==="+")Z+=1;if($=$.substring(Z).replace(/_/g,""),U){switch(X){case 2:$=`0b${$}`;break;case 8:$=`0o${$}`;break;case 16:$=`0x${$}`;break}let J=BigInt($);return z==="-"?BigInt(-1)*J:J}let Q=parseInt($,X);return z==="-"?-1*Q:Q}function n1($,Z,X){let{value:U}=$;if(H$(U)){let z=U.toString(Z);return U<0?"-"+X+z.substr(1):X+z}return X9.stringifyNumber($)}var m7={identify:H$,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:($,Z,X)=>n$($,2,2,X),stringify:($)=>n1($,2,"0b")},p7={identify:H$,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:($,Z,X)=>n$($,1,8,X),stringify:($)=>n1($,8,"0")},l7={identify:H$,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:($,Z,X)=>n$($,0,10,X),stringify:X9.stringifyNumber},d7={identify:H$,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:($,Z,X)=>n$($,2,16,X),stringify:($)=>n1($,16,"0x")};c7.int=l7;c7.intBin=m7;c7.intHex=d7;c7.intOct=p7});var o1=D((o7)=>{var e$=b(),o$=U0(),t$=Q0();class W0 extends t$.YAMLMap{constructor($){super($);this.tag=W0.tag}add($){let Z;if(e$.isPair($))Z=$;else if($&&typeof $==="object"&&"key"in $&&"value"in $&&$.value===null)Z=new o$.Pair($.key,null);else Z=new o$.Pair($,null);if(!t$.findPair(this.items,Z.key))this.items.push(Z)}get($,Z){let X=t$.findPair(this.items,$);return!Z&&e$.isPair(X)?e$.isScalar(X.key)?X.key.value:X.key:X}set($,Z){if(typeof Z!=="boolean")throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof Z}`);let X=t$.findPair(this.items,$);if(X&&!Z)this.items.splice(this.items.indexOf(X),1);else if(!X&&Z)this.items.push(new o$.Pair($))}toJSON($,Z){return super.toJSON($,Z,Set)}toString($,Z,X){if(!$)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},$,{allNullValues:!0}),Z,X);else throw Error("Set items must all have null values")}static from($,Z,X){let{replacer:U}=X,z=new this($);if(Z&&Symbol.iterator in Object(Z))for(let Q of Z){if(typeof U==="function")Q=U.call(Z,Q,Q);z.items.push(o$.createPair(Q,null,X))}return z}}W0.tag="tag:yaml.org,2002:set";var n7={collection:"map",identify:($)=>$ instanceof Set,nodeClass:W0,default:!1,tag:"tag:yaml.org,2002:set",createNode:($,Z,X)=>W0.from($,Z,X),resolve($,Z){if(e$.isMap($))if($.hasAllNullValues(!0))return Object.assign(new W0,$);else Z("Set items must all have null values");else Z("Expected a mapping for this tag");return $}};o7.YAMLSet=W0;o7.set=n7});var e1=D((UX)=>{var $X=j0();function t1($,Z){let X=$[0],U=X==="-"||X==="+"?$.substring(1):$,z=(J)=>Z?BigInt(J):Number(J),Q=U.replace(/_/g,"").split(":").reduce((J,H)=>J*z(60)+z(H),z(0));return X==="-"?z(-1)*Q:Q}function z9($){let{value:Z}=$,X=(J)=>J;if(typeof Z==="bigint")X=(J)=>BigInt(J);else if(isNaN(Z)||!isFinite(Z))return $X.stringifyNumber($);let U="";if(Z<0)U="-",Z*=X(-1);let z=X(60),Q=[Z%z];if(Z<60)Q.unshift(0);else if(Z=(Z-Q[0])/z,Q.unshift(Z%z),Z>=60)Z=(Z-Q[0])/z,Q.unshift(Z);return U+Q.map((J)=>String(J).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var ZX={identify:($)=>typeof $==="bigint"||Number.isInteger($),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:($,Z,{intAsBigInt:X})=>t1($,X),stringify:z9},XX={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:($)=>t1($,!1),stringify:z9},Q9={identify:($)=>$ instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve($){let Z=$.match(Q9.test);if(!Z)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,X,U,z,Q,J,H]=Z.map(Number),q=Z[7]?Number((Z[7]+"00").substr(1,3)):0,_=Date.UTC(X,U-1,z,Q||0,J||0,H||0,q),B=Z[8];if(B&&B!=="Z"){let G=t1(B,!1);if(Math.abs(G)<30)G*=60;_-=60000*G}return new Date(_)},stringify:({value:$})=>$?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};UX.floatTime=XX;UX.intTime=ZX;UX.timestamp=Q9});var H9=D((RX)=>{var HX=b0(),qX=c$(),_X=C0(),GX=z$(),YX=c1(),J9=$9(),$2=Z9(),$1=U9(),BX=h$(),VX=a1(),OX=r$(),WX=o1(),Z2=e1(),LX=[HX.map,_X.seq,GX.string,qX.nullTag,J9.trueTag,J9.falseTag,$1.intBin,$1.intOct,$1.int,$1.intHex,$2.floatNaN,$2.floatExp,$2.float,YX.binary,BX.merge,VX.omap,OX.pairs,WX.set,Z2.intTime,Z2.floatTime,Z2.timestamp];RX.schema=LX});var R9=D((NX)=>{var Y9=b0(),DX=c$(),B9=C0(),FX=z$(),MX=h1(),X2=k1(),U2=m1(),PX=l8(),TX=c8(),V9=c1(),q$=h$(),O9=a1(),W9=r$(),q9=H9(),L9=o1(),Z1=e1(),_9=new Map([["core",PX.schema],["failsafe",[Y9.map,B9.seq,FX.string]],["json",TX.schema],["yaml11",q9.schema],["yaml-1.1",q9.schema]]),G9={binary:V9.binary,bool:MX.boolTag,float:X2.float,floatExp:X2.floatExp,floatNaN:X2.floatNaN,floatTime:Z1.floatTime,int:U2.int,intHex:U2.intHex,intOct:U2.intOct,intTime:Z1.intTime,map:Y9.map,merge:q$.merge,null:DX.nullTag,omap:O9.omap,pairs:W9.pairs,seq:B9.seq,set:L9.set,timestamp:Z1.timestamp},KX={"tag:yaml.org,2002:binary":V9.binary,"tag:yaml.org,2002:merge":q$.merge,"tag:yaml.org,2002:omap":O9.omap,"tag:yaml.org,2002:pairs":W9.pairs,"tag:yaml.org,2002:set":L9.set,"tag:yaml.org,2002:timestamp":Z1.timestamp};function AX($,Z,X){let U=_9.get(Z);if(U&&!$)return X&&!U.includes(q$.merge)?U.concat(q$.merge):U.slice();let z=U;if(!z)if(Array.isArray($))z=[];else{let Q=Array.from(_9.keys()).filter((J)=>J!=="yaml11").map((J)=>JSON.stringify(J)).join(", ");throw Error(`Unknown schema "${Z}"; use one of ${Q} or define customTags array`)}if(Array.isArray($))for(let Q of $)z=z.concat(Q);else if(typeof $==="function")z=$(z.slice());if(X)z=z.concat(q$.merge);return z.reduce((Q,J)=>{let H=typeof J==="string"?G9[J]:J;if(!H){let q=JSON.stringify(J),_=Object.keys(G9).map((B)=>JSON.stringify(B)).join(", ");throw Error(`Unknown custom tag ${q}; use one of ${_}`)}if(!Q.includes(H))Q.push(H);return Q},[])}NX.coreKnownTags=KX;NX.getTags=AX});var J2=D((gX)=>{var z2=b(),CX=b0(),jX=C0(),SX=z$(),X1=R9(),EX=($,Z)=>$.key<Z.key?-1:$.key>Z.key?1:0;class Q2{constructor({compat:$,customTags:Z,merge:X,resolveKnownTags:U,schema:z,sortMapEntries:Q,toStringDefaults:J}){this.compat=Array.isArray($)?X1.getTags($,"compat"):$?X1.getTags(null,$):null,this.name=typeof z==="string"&&z||"core",this.knownTags=U?X1.coreKnownTags:{},this.tags=X1.getTags(Z,this.name,X),this.toStringOptions=J??null,Object.defineProperty(this,z2.MAP,{value:CX.map}),Object.defineProperty(this,z2.SCALAR,{value:SX.string}),Object.defineProperty(this,z2.SEQ,{value:jX.seq}),this.sortMapEntries=typeof Q==="function"?Q:Q===!0?EX:null}clone(){let $=Object.create(Q2.prototype,Object.getOwnPropertyDescriptors(this));return $.tags=this.tags.slice(),$}}gX.Schema=Q2});var I9=D((hX)=>{var fX=b(),H2=$$(),_$=o0();function xX($,Z){let X=[],U=Z.directives===!0;if(Z.directives!==!1&&$.directives){let q=$.directives.toString($);if(q)X.push(q),U=!0;else if($.directives.docStart)U=!0}if(U)X.push("---");let z=H2.createStringifyContext($,Z),{commentString:Q}=z.options;if($.commentBefore){if(X.length!==1)X.unshift("");let q=Q($.commentBefore);X.unshift(_$.indentComment(q,""))}let J=!1,H=null;if($.contents){if(fX.isNode($.contents)){if($.contents.spaceBefore&&U)X.push("");if($.contents.commentBefore){let B=Q($.contents.commentBefore);X.push(_$.indentComment(B,""))}z.forceBlockIndent=!!$.comment,H=$.contents.comment}let q=H?void 0:()=>J=!0,_=H2.stringify($.contents,z,()=>H=null,q);if(H)_+=_$.lineComment(_,"",Q(H));if((_[0]==="|"||_[0]===">")&&X[X.length-1]==="---")X[X.length-1]=`--- ${_}`;else X.push(_)}else X.push(H2.stringify($.contents,z));if($.directives?.docEnd)if($.comment){let q=Q($.comment);if(q.includes(`
55
+ `))X.push("..."),X.push(_$.indentComment(q,""));else X.push(`... ${q}`)}else X.push("...");else{let q=$.comment;if(q&&J)q=q.replace(/^\n+/,"");if(q){if((!J||H)&&X[X.length-1]!=="")X.push("");X.push(_$.indentComment(Q(q),""))}}return X.join(`
56
56
  `)+`
57
- `}xX.stringifyDocument=hX});var _$=R((iX)=>{var kX=r0(),S0=S$(),v=b(),vX=U0(),mX=$0(),pX=J2(),lX=D3(),q2=b$(),dX=w1(),cX=n0(),G2=N1();class _2{constructor($,Z,X){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,v.NODE_TYPE,{value:v.DOC});let U=null;if(typeof Z==="function"||Array.isArray(Z))U=Z;else if(X===void 0&&Z)X=Z,Z=void 0;let z=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},X);this.options=z;let{version:Q}=z;if(X?._directives){if(this.directives=X._directives.atDocument(),this.directives.yaml.explicit)Q=this.directives.yaml.version}else this.directives=new G2.Directives({version:Q});this.setSchema(Q,X),this.contents=$===void 0?null:this.createNode($,U,X)}clone(){let $=Object.create(_2.prototype,{[v.NODE_TYPE]:{value:v.DOC}});if($.commentBefore=this.commentBefore,$.comment=this.comment,$.errors=this.errors.slice(),$.warnings=this.warnings.slice(),$.options=Object.assign({},this.options),this.directives)$.directives=this.directives.clone();if($.schema=this.schema.clone(),$.contents=v.isNode(this.contents)?this.contents.clone($.schema):this.contents,this.range)$.range=this.range.slice();return $}add($){if(E0(this.contents))this.contents.add($)}addIn($,Z){if(E0(this.contents))this.contents.addIn($,Z)}createAlias($,Z){if(!$.anchor){let X=q2.anchorNames(this);$.anchor=!Z||X.has(Z)?q2.findNewAnchor(Z||"a",X):Z}return new kX.Alias($.anchor)}createNode($,Z,X){let U=void 0;if(typeof Z==="function")$=Z.call({"":$},"",$),U=Z;else if(Array.isArray(Z)){let V=(D)=>typeof D==="number"||D instanceof String||D instanceof Number,W=Z.filter(V).map(String);if(W.length>0)Z=Z.concat(W);U=Z}else if(X===void 0&&Z)X=Z,Z=void 0;let{aliasDuplicateObjects:z,anchorPrefix:Q,flow:J,keepUndefined:H,onTagObj:q,tag:G}=X??{},{onAnchor:B,setAnchors:_,sourceObjects:Y}=q2.createNodeAnchors(this,Q||"a"),O={aliasDuplicateObjects:z??!0,keepUndefined:H??!1,onAnchor:B,onTagObj:q,replacer:U,schema:this.schema,sourceObjects:Y},L=cX.createNode($,G,O);if(J&&v.isCollection(L))L.flow=!0;return _(),L}createPair($,Z,X={}){let U=this.createNode($,null,X),z=this.createNode(Z,null,X);return new vX.Pair(U,z)}delete($){return E0(this.contents)?this.contents.delete($):!1}deleteIn($){if(S0.isEmptyPath($)){if(this.contents==null)return!1;return this.contents=null,!0}return E0(this.contents)?this.contents.deleteIn($):!1}get($,Z){return v.isCollection(this.contents)?this.contents.get($,Z):void 0}getIn($,Z){if(S0.isEmptyPath($))return!Z&&v.isScalar(this.contents)?this.contents.value:this.contents;return v.isCollection(this.contents)?this.contents.getIn($,Z):void 0}has($){return v.isCollection(this.contents)?this.contents.has($):!1}hasIn($){if(S0.isEmptyPath($))return this.contents!==void 0;return v.isCollection(this.contents)?this.contents.hasIn($):!1}set($,Z){if(this.contents==null)this.contents=S0.collectionFromPath(this.schema,[$],Z);else if(E0(this.contents))this.contents.set($,Z)}setIn($,Z){if(S0.isEmptyPath($))this.contents=Z;else if(this.contents==null)this.contents=S0.collectionFromPath(this.schema,Array.from($),Z);else if(E0(this.contents))this.contents.setIn($,Z)}setSchema($,Z={}){if(typeof $==="number")$=String($);let X;switch($){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new G2.Directives({version:"1.1"});X={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=$;else this.directives=new G2.Directives({version:$});X={resolveKnownTags:!0,schema:"core"};break;case null:if(this.directives)delete this.directives;X=null;break;default:{let U=JSON.stringify($);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${U}`)}}if(Z.schema instanceof Object)this.schema=Z.schema;else if(X)this.schema=new pX.Schema(Object.assign(X,Z));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:$,jsonArg:Z,mapAsMap:X,maxAliasCount:U,onAnchor:z,reviver:Q}={}){let J={anchors:new Map,doc:this,keep:!$,mapAsMap:X===!0,mapKeyWarned:!1,maxAliasCount:typeof U==="number"?U:100},H=mX.toJS(this.contents,Z??"",J);if(typeof z==="function")for(let{count:q,res:G}of J.anchors.values())z(G,q);return typeof Q==="function"?dX.applyReviver(Q,{"":H},"",H):H}toJSON($,Z){return this.toJS({json:!0,jsonArg:$,mapAsMap:!1,onAnchor:Z})}toString($={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in $&&(!Number.isInteger($.indent)||Number($.indent)<=0)){let Z=JSON.stringify($.indent);throw Error(`"indent" option must be a positive integer, not ${Z}`)}return lX.stringifyDocument(this,$)}}function E0($){if(v.isCollection($))return!0;throw Error("Expected a YAML collection as document contents")}iX.Document=_2});var Y$=R((rX)=>{class U1 extends Error{constructor($,Z,X,U){super();this.name=$,this.code=X,this.message=U,this.pos=Z}}class R3 extends U1{constructor($,Z,X){super("YAMLParseError",$,Z,X)}}class M3 extends U1{constructor($,Z,X){super("YAMLWarning",$,Z,X)}}var aX=($,Z)=>(X)=>{if(X.pos[0]===-1)return;X.linePos=X.pos.map((H)=>Z.linePos(H));let{line:U,col:z}=X.linePos[0];X.message+=` at line ${U}, column ${z}`;let Q=z-1,J=$.substring(Z.lineStarts[U-1],Z.lineStarts[U]).replace(/[\n\r]+$/,"");if(Q>=60&&J.length>80){let H=Math.min(Q-39,J.length-79);J="…"+J.substring(H),Q-=H-1}if(J.length>80)J=J.substring(0,79)+"…";if(U>1&&/^ *$/.test(J.substring(0,Q))){let H=$.substring(Z.lineStarts[U-2],Z.lineStarts[U-1]);if(H.length>80)H=H.substring(0,79)+`…
58
- `;J=H+J}if(/[^ ]/.test(J)){let H=1,q=X.linePos[1];if(q?.line===U&&q.col>z)H=Math.max(1,Math.min(q.col-z,80-Q));let G=" ".repeat(Q)+"^".repeat(H);X.message+=`:
57
+ `}hX.stringifyDocument=xX});var G$=D((iX)=>{var kX=r0(),S0=S$(),v=b(),vX=U0(),mX=$0(),pX=J2(),lX=I9(),q2=b$(),dX=w1(),cX=n0(),_2=N1();class G2{constructor($,Z,X){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,v.NODE_TYPE,{value:v.DOC});let U=null;if(typeof Z==="function"||Array.isArray(Z))U=Z;else if(X===void 0&&Z)X=Z,Z=void 0;let z=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},X);this.options=z;let{version:Q}=z;if(X?._directives){if(this.directives=X._directives.atDocument(),this.directives.yaml.explicit)Q=this.directives.yaml.version}else this.directives=new _2.Directives({version:Q});this.setSchema(Q,X),this.contents=$===void 0?null:this.createNode($,U,X)}clone(){let $=Object.create(G2.prototype,{[v.NODE_TYPE]:{value:v.DOC}});if($.commentBefore=this.commentBefore,$.comment=this.comment,$.errors=this.errors.slice(),$.warnings=this.warnings.slice(),$.options=Object.assign({},this.options),this.directives)$.directives=this.directives.clone();if($.schema=this.schema.clone(),$.contents=v.isNode(this.contents)?this.contents.clone($.schema):this.contents,this.range)$.range=this.range.slice();return $}add($){if(E0(this.contents))this.contents.add($)}addIn($,Z){if(E0(this.contents))this.contents.addIn($,Z)}createAlias($,Z){if(!$.anchor){let X=q2.anchorNames(this);$.anchor=!Z||X.has(Z)?q2.findNewAnchor(Z||"a",X):Z}return new kX.Alias($.anchor)}createNode($,Z,X){let U=void 0;if(typeof Z==="function")$=Z.call({"":$},"",$),U=Z;else if(Array.isArray(Z)){let V=(I)=>typeof I==="number"||I instanceof String||I instanceof Number,W=Z.filter(V).map(String);if(W.length>0)Z=Z.concat(W);U=Z}else if(X===void 0&&Z)X=Z,Z=void 0;let{aliasDuplicateObjects:z,anchorPrefix:Q,flow:J,keepUndefined:H,onTagObj:q,tag:_}=X??{},{onAnchor:B,setAnchors:G,sourceObjects:Y}=q2.createNodeAnchors(this,Q||"a"),O={aliasDuplicateObjects:z??!0,keepUndefined:H??!1,onAnchor:B,onTagObj:q,replacer:U,schema:this.schema,sourceObjects:Y},L=cX.createNode($,_,O);if(J&&v.isCollection(L))L.flow=!0;return G(),L}createPair($,Z,X={}){let U=this.createNode($,null,X),z=this.createNode(Z,null,X);return new vX.Pair(U,z)}delete($){return E0(this.contents)?this.contents.delete($):!1}deleteIn($){if(S0.isEmptyPath($)){if(this.contents==null)return!1;return this.contents=null,!0}return E0(this.contents)?this.contents.deleteIn($):!1}get($,Z){return v.isCollection(this.contents)?this.contents.get($,Z):void 0}getIn($,Z){if(S0.isEmptyPath($))return!Z&&v.isScalar(this.contents)?this.contents.value:this.contents;return v.isCollection(this.contents)?this.contents.getIn($,Z):void 0}has($){return v.isCollection(this.contents)?this.contents.has($):!1}hasIn($){if(S0.isEmptyPath($))return this.contents!==void 0;return v.isCollection(this.contents)?this.contents.hasIn($):!1}set($,Z){if(this.contents==null)this.contents=S0.collectionFromPath(this.schema,[$],Z);else if(E0(this.contents))this.contents.set($,Z)}setIn($,Z){if(S0.isEmptyPath($))this.contents=Z;else if(this.contents==null)this.contents=S0.collectionFromPath(this.schema,Array.from($),Z);else if(E0(this.contents))this.contents.setIn($,Z)}setSchema($,Z={}){if(typeof $==="number")$=String($);let X;switch($){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new _2.Directives({version:"1.1"});X={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=$;else this.directives=new _2.Directives({version:$});X={resolveKnownTags:!0,schema:"core"};break;case null:if(this.directives)delete this.directives;X=null;break;default:{let U=JSON.stringify($);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${U}`)}}if(Z.schema instanceof Object)this.schema=Z.schema;else if(X)this.schema=new pX.Schema(Object.assign(X,Z));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:$,jsonArg:Z,mapAsMap:X,maxAliasCount:U,onAnchor:z,reviver:Q}={}){let J={anchors:new Map,doc:this,keep:!$,mapAsMap:X===!0,mapKeyWarned:!1,maxAliasCount:typeof U==="number"?U:100},H=mX.toJS(this.contents,Z??"",J);if(typeof z==="function")for(let{count:q,res:_}of J.anchors.values())z(_,q);return typeof Q==="function"?dX.applyReviver(Q,{"":H},"",H):H}toJSON($,Z){return this.toJS({json:!0,jsonArg:$,mapAsMap:!1,onAnchor:Z})}toString($={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in $&&(!Number.isInteger($.indent)||Number($.indent)<=0)){let Z=JSON.stringify($.indent);throw Error(`"indent" option must be a positive integer, not ${Z}`)}return lX.stringifyDocument(this,$)}}function E0($){if(v.isCollection($))return!0;throw Error("Expected a YAML collection as document contents")}iX.Document=G2});var Y$=D((rX)=>{class U1 extends Error{constructor($,Z,X,U){super();this.name=$,this.code=X,this.message=U,this.pos=Z}}class D9 extends U1{constructor($,Z,X){super("YAMLParseError",$,Z,X)}}class F9 extends U1{constructor($,Z,X){super("YAMLWarning",$,Z,X)}}var aX=($,Z)=>(X)=>{if(X.pos[0]===-1)return;X.linePos=X.pos.map((H)=>Z.linePos(H));let{line:U,col:z}=X.linePos[0];X.message+=` at line ${U}, column ${z}`;let Q=z-1,J=$.substring(Z.lineStarts[U-1],Z.lineStarts[U]).replace(/[\n\r]+$/,"");if(Q>=60&&J.length>80){let H=Math.min(Q-39,J.length-79);J="…"+J.substring(H),Q-=H-1}if(J.length>80)J=J.substring(0,79)+"…";if(U>1&&/^ *$/.test(J.substring(0,Q))){let H=$.substring(Z.lineStarts[U-2],Z.lineStarts[U-1]);if(H.length>80)H=H.substring(0,79)+`…
58
+ `;J=H+J}if(/[^ ]/.test(J)){let H=1,q=X.linePos[1];if(q?.line===U&&q.col>z)H=Math.max(1,Math.min(q.col-z,80-Q));let _=" ".repeat(Q)+"^".repeat(H);X.message+=`:
59
59
 
60
60
  ${J}
61
- ${G}
62
- `}};rX.YAMLError=U1;rX.YAMLParseError=R3;rX.YAMLWarning=M3;rX.prettifyError=aX});var B$=R((ZU)=>{function $U($,{flow:Z,indicator:X,next:U,offset:z,onError:Q,parentIndent:J,startOnNewline:H}){let q=!1,G=H,B=H,_="",Y="",O=!1,L=!1,V=null,W=null,D=null,M=null,T=null,A=null,K=null;for(let I of $){if(L){if(I.type!=="space"&&I.type!=="newline"&&I.type!=="comma")Q(I.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");L=!1}if(V){if(G&&I.type!=="comment"&&I.type!=="newline")Q(V,"TAB_AS_INDENT","Tabs are not allowed as indentation");V=null}switch(I.type){case"space":if(!Z&&(X!=="doc-start"||U?.type!=="flow-collection")&&I.source.includes("\t"))V=I;B=!0;break;case"comment":{if(!B)Q(I,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let w=I.source.substring(1)||" ";if(!_)_=w;else _+=Y+w;Y="",G=!1;break}case"newline":if(G){if(_)_+=I.source;else if(!A||X!=="seq-item-ind")q=!0}else Y+=I.source;if(G=!0,O=!0,W||D)M=I;B=!0;break;case"anchor":if(W)Q(I,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(I.source.endsWith(":"))Q(I.offset+I.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0);W=I,K??(K=I.offset),G=!1,B=!1,L=!0;break;case"tag":{if(D)Q(I,"MULTIPLE_TAGS","A node can have at most one tag");D=I,K??(K=I.offset),G=!1,B=!1,L=!0;break}case X:if(W||D)Q(I,"BAD_PROP_ORDER",`Anchors and tags must be after the ${I.source} indicator`);if(A)Q(I,"UNEXPECTED_TOKEN",`Unexpected ${I.source} in ${Z??"collection"}`);A=I,G=X==="seq-item-ind"||X==="explicit-key-ind",B=!1;break;case"comma":if(Z){if(T)Q(I,"UNEXPECTED_TOKEN",`Unexpected , in ${Z}`);T=I,G=!1,B=!1;break}default:Q(I,"UNEXPECTED_TOKEN",`Unexpected ${I.type} token`),G=!1,B=!1}}let N=$[$.length-1],C=N?N.offset+N.source.length:z;if(L&&U&&U.type!=="space"&&U.type!=="newline"&&U.type!=="comma"&&(U.type!=="scalar"||U.source!==""))Q(U.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");if(V&&(G&&V.indent<=J||U?.type==="block-map"||U?.type==="block-seq"))Q(V,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:T,found:A,spaceBefore:q,comment:_,hasNewline:O,anchor:W,tag:D,newlineAfterProp:M,end:C,start:K??C}}ZU.resolveProps=$U});var z1=R((UU)=>{function Y2($){if(!$)return null;switch($.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if($.source.includes(`
63
- `))return!0;if($.end){for(let Z of $.end)if(Z.type==="newline")return!0}return!1;case"flow-collection":for(let Z of $.items){for(let X of Z.start)if(X.type==="newline")return!0;if(Z.sep){for(let X of Z.sep)if(X.type==="newline")return!0}if(Y2(Z.key)||Y2(Z.value))return!0}return!1;default:return!0}}UU.containsNewline=Y2});var B2=R((HU)=>{var QU=z1();function JU($,Z,X){if(Z?.type==="flow-collection"){let U=Z.end[0];if(U.indent===$&&(U.source==="]"||U.source==="}")&&QU.containsNewline(Z))X(U,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}HU.flowIndentCheck=JU});var V2=R((_U)=>{var F3=b();function GU($,Z,X){let{uniqueKeys:U}=$.options;if(U===!1)return!1;let z=typeof U==="function"?U:(Q,J)=>Q===J||F3.isScalar(Q)&&F3.isScalar(J)&&Q.value===J.value;return Z.some((Q)=>z(Q.key,X))}_U.mapIncludes=GU});var N3=R((LU)=>{var P3=U0(),BU=Q0(),T3=B$(),VU=z1(),K3=B2(),OU=V2(),A3="All mapping items must start at the same column";function WU({composeNode:$,composeEmptyNode:Z},X,U,z,Q){let H=new(Q?.nodeClass??BU.YAMLMap)(X.schema);if(X.atRoot)X.atRoot=!1;let q=U.offset,G=null;for(let B of U.items){let{start:_,key:Y,sep:O,value:L}=B,V=T3.resolveProps(_,{indicator:"explicit-key-ind",next:Y??O?.[0],offset:q,onError:z,parentIndent:U.indent,startOnNewline:!0}),W=!V.found;if(W){if(Y){if(Y.type==="block-seq")z(q,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in Y&&Y.indent!==U.indent)z(q,"BAD_INDENT",A3)}if(!V.anchor&&!V.tag&&!O){if(G=V.end,V.comment)if(H.comment)H.comment+=`
64
- `+V.comment;else H.comment=V.comment;continue}if(V.newlineAfterProp||VU.containsNewline(Y))z(Y??_[_.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else if(V.found?.indent!==U.indent)z(q,"BAD_INDENT",A3);X.atKey=!0;let D=V.end,M=Y?$(X,Y,V,z):Z(X,D,_,null,V,z);if(X.schema.compat)K3.flowIndentCheck(U.indent,Y,z);if(X.atKey=!1,OU.mapIncludes(X,H.items,M))z(D,"DUPLICATE_KEY","Map keys must be unique");let T=T3.resolveProps(O??[],{indicator:"map-value-ind",next:L,offset:M.range[2],onError:z,parentIndent:U.indent,startOnNewline:!Y||Y.type==="block-scalar"});if(q=T.end,T.found){if(W){if(L?.type==="block-map"&&!T.hasNewline)z(q,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(X.options.strict&&V.start<T.found.offset-1024)z(M.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key")}let A=L?$(X,L,T,z):Z(X,q,O,null,T,z);if(X.schema.compat)K3.flowIndentCheck(U.indent,L,z);q=A.range[2];let K=new P3.Pair(M,A);if(X.options.keepSourceTokens)K.srcToken=B;H.items.push(K)}else{if(W)z(M.range,"MISSING_CHAR","Implicit map keys need to be followed by map values");if(T.comment)if(M.comment)M.comment+=`
65
- `+T.comment;else M.comment=T.comment;let A=new P3.Pair(M);if(X.options.keepSourceTokens)A.srcToken=B;H.items.push(A)}}if(G&&G<q)z(G,"IMPOSSIBLE","Map comment with trailing content");return H.range=[U.offset,q,G??q],H}LU.resolveBlockMap=WU});var w3=R((PU)=>{var DU=J0(),RU=B$(),MU=B2();function FU({composeNode:$,composeEmptyNode:Z},X,U,z,Q){let H=new(Q?.nodeClass??DU.YAMLSeq)(X.schema);if(X.atRoot)X.atRoot=!1;if(X.atKey)X.atKey=!1;let q=U.offset,G=null;for(let{start:B,value:_}of U.items){let Y=RU.resolveProps(B,{indicator:"seq-item-ind",next:_,offset:q,onError:z,parentIndent:U.indent,startOnNewline:!0});if(!Y.found)if(Y.anchor||Y.tag||_)if(_?.type==="block-seq")z(Y.end,"BAD_INDENT","All sequence items must start at the same column");else z(q,"MISSING_CHAR","Sequence item without - indicator");else{if(G=Y.end,Y.comment)H.comment=Y.comment;continue}let O=_?$(X,_,Y,z):Z(X,Y.end,B,null,Y,z);if(X.schema.compat)MU.flowIndentCheck(U.indent,_,z);q=O.range[2],H.items.push(O)}return H.range=[U.offset,q,G??q],H}PU.resolveBlockSeq=FU});var g0=R((AU)=>{function KU($,Z,X,U){let z="";if($){let Q=!1,J="";for(let H of $){let{source:q,type:G}=H;switch(G){case"space":Q=!0;break;case"comment":{if(X&&!Q)U(H,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let B=q.substring(1)||" ";if(!z)z=B;else z+=J+B;J="";break}case"newline":if(z)J+=q;Q=!0;break;default:U(H,"UNEXPECTED_TOKEN",`Unexpected ${G} at node end`)}Z+=q.length}}return{comment:z,offset:Z}}AU.resolveEnd=KU});var j3=R((yU)=>{var wU=b(),bU=U0(),b3=Q0(),CU=J0(),jU=g0(),C3=B$(),SU=z1(),EU=V2(),O2="Block collections are not allowed within flow collections",W2=($)=>$&&($.type==="block-map"||$.type==="block-seq");function gU({composeNode:$,composeEmptyNode:Z},X,U,z,Q){let J=U.start.source==="{",H=J?"flow map":"flow sequence",G=new(Q?.nodeClass??(J?b3.YAMLMap:CU.YAMLSeq))(X.schema);G.flow=!0;let B=X.atRoot;if(B)X.atRoot=!1;if(X.atKey)X.atKey=!1;let _=U.offset+U.start.source.length;for(let W=0;W<U.items.length;++W){let D=U.items[W],{start:M,key:T,sep:A,value:K}=D,N=C3.resolveProps(M,{flow:H,indicator:"explicit-key-ind",next:T??A?.[0],offset:_,onError:z,parentIndent:U.indent,startOnNewline:!1});if(!N.found){if(!N.anchor&&!N.tag&&!A&&!K){if(W===0&&N.comma)z(N.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${H}`);else if(W<U.items.length-1)z(N.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${H}`);if(N.comment)if(G.comment)G.comment+=`
66
- `+N.comment;else G.comment=N.comment;_=N.end;continue}if(!J&&X.options.strict&&SU.containsNewline(T))z(T,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(W===0){if(N.comma)z(N.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${H}`)}else{if(!N.comma)z(N.start,"MISSING_CHAR",`Missing , between ${H} items`);if(N.comment){let C="";$:for(let I of M)switch(I.type){case"comma":case"space":break;case"comment":C=I.source.substring(1);break $;default:break $}if(C){let I=G.items[G.items.length-1];if(wU.isPair(I))I=I.value??I.key;if(I.comment)I.comment+=`
67
- `+C;else I.comment=C;N.comment=N.comment.substring(C.length+1)}}}if(!J&&!A&&!N.found){let C=K?$(X,K,N,z):Z(X,N.end,A,null,N,z);if(G.items.push(C),_=C.range[2],W2(K))z(C.range,"BLOCK_IN_FLOW",O2)}else{X.atKey=!0;let C=N.end,I=T?$(X,T,N,z):Z(X,C,M,null,N,z);if(W2(T))z(I.range,"BLOCK_IN_FLOW",O2);X.atKey=!1;let w=C3.resolveProps(A??[],{flow:H,indicator:"map-value-ind",next:K,offset:I.range[2],onError:z,parentIndent:U.indent,startOnNewline:!1});if(w.found){if(!J&&!N.found&&X.options.strict){if(A)for(let E of A){if(E===w.found)break;if(E.type==="newline"){z(E,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(N.start<w.found.offset-1024)z(w.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else if(K)if("source"in K&&K.source?.[0]===":")z(K,"MISSING_CHAR",`Missing space after : in ${H}`);else z(w.start,"MISSING_CHAR",`Missing , or : between ${H} items`);let d=K?$(X,K,w,z):w.found?Z(X,w.end,A,null,w,z):null;if(d){if(W2(K))z(d.range,"BLOCK_IN_FLOW",O2)}else if(w.comment)if(I.comment)I.comment+=`
68
- `+w.comment;else I.comment=w.comment;let c=new bU.Pair(I,d);if(X.options.keepSourceTokens)c.srcToken=D;if(J){let E=G;if(EU.mapIncludes(X,E.items,I))z(C,"DUPLICATE_KEY","Map keys must be unique");E.items.push(c)}else{let E=new b3.YAMLMap(X.schema);E.flow=!0,E.items.push(c);let m0=(d??I).range;E.range=[I.range[0],m0[1],m0[2]],G.items.push(E)}_=d?d.range[2]:w.end}}let Y=J?"}":"]",[O,...L]=U.end,V=_;if(O?.source===Y)V=O.offset+O.source.length;else{let W=H[0].toUpperCase()+H.substring(1),D=B?`${W} must end with a ${Y}`:`${W} in block collection must be sufficiently indented and end with a ${Y}`;if(z(_,B?"MISSING_CHAR":"BAD_INDENT",D),O&&O.source.length!==1)L.unshift(O)}if(L.length>0){let W=jU.resolveEnd(L,V,X.options.strict,z);if(W.comment)if(G.comment)G.comment+=`
69
- `+W.comment;else G.comment=W.comment;G.range=[U.offset,V,W.offset]}else G.range=[U.offset,V,V];return G}yU.resolveFlowCollection=gU});var S3=R((dU)=>{var hU=b(),xU=g(),uU=Q0(),kU=J0(),vU=N3(),mU=w3(),pU=j3();function L2($,Z,X,U,z,Q){let J=X.type==="block-map"?vU.resolveBlockMap($,Z,X,U,Q):X.type==="block-seq"?mU.resolveBlockSeq($,Z,X,U,Q):pU.resolveFlowCollection($,Z,X,U,Q),H=J.constructor;if(z==="!"||z===H.tagName)return J.tag=H.tagName,J;if(z)J.tag=z;return J}function lU($,Z,X,U,z){let Q=U.tag,J=!Q?null:Z.directives.tagName(Q.source,(Y)=>z(Q,"TAG_RESOLVE_FAILED",Y));if(X.type==="block-seq"){let{anchor:Y,newlineAfterProp:O}=U,L=Y&&Q?Y.offset>Q.offset?Y:Q:Y??Q;if(L&&(!O||O.offset<L.offset))z(L,"MISSING_CHAR","Missing newline after block sequence props")}let H=X.type==="block-map"?"map":X.type==="block-seq"?"seq":X.start.source==="{"?"map":"seq";if(!Q||!J||J==="!"||J===uU.YAMLMap.tagName&&H==="map"||J===kU.YAMLSeq.tagName&&H==="seq")return L2($,Z,X,z,J);let q=Z.schema.tags.find((Y)=>Y.tag===J&&Y.collection===H);if(!q){let Y=Z.schema.knownTags[J];if(Y?.collection===H)Z.schema.tags.push(Object.assign({},Y,{default:!1})),q=Y;else{if(Y)z(Q,"BAD_COLLECTION_TYPE",`${Y.tag} used for ${H} collection, but expects ${Y.collection??"scalar"}`,!0);else z(Q,"TAG_RESOLVE_FAILED",`Unresolved tag: ${J}`,!0);return L2($,Z,X,z,J)}}let G=L2($,Z,X,z,J,q),B=q.resolve?.(G,(Y)=>z(Q,"TAG_RESOLVE_FAILED",Y),Z.options)??G,_=hU.isNode(B)?B:new xU.Scalar(B);if(_.range=G.range,_.tag=J,q?.format)_.format=q.format;return _}dU.composeCollection=lU});var D2=R((rU)=>{var I2=g();function iU($,Z,X){let U=Z.offset,z=sU(Z,$.options.strict,X);if(!z)return{value:"",type:null,comment:"",range:[U,U,U]};let Q=z.mode===">"?I2.Scalar.BLOCK_FOLDED:I2.Scalar.BLOCK_LITERAL,J=Z.source?aU(Z.source):[],H=J.length;for(let V=J.length-1;V>=0;--V){let W=J[V][1];if(W===""||W==="\r")H=V;else break}if(H===0){let V=z.chomp==="+"&&J.length>0?`
70
- `.repeat(Math.max(1,J.length-1)):"",W=U+z.length;if(Z.source)W+=Z.source.length;return{value:V,type:Q,comment:z.comment,range:[U,W,W]}}let q=Z.indent+z.indent,G=Z.offset+z.length,B=0;for(let V=0;V<H;++V){let[W,D]=J[V];if(D===""||D==="\r"){if(z.indent===0&&W.length>q)q=W.length}else{if(W.length<q)X(G+W.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator");if(z.indent===0)q=W.length;if(B=V,q===0&&!$.atRoot)X(G,"BAD_INDENT","Block scalar values in collections must be indented");break}G+=W.length+D.length+1}for(let V=J.length-1;V>=H;--V)if(J[V][0].length>q)H=V+1;let _="",Y="",O=!1;for(let V=0;V<B;++V)_+=J[V][0].slice(q)+`
71
- `;for(let V=B;V<H;++V){let[W,D]=J[V];G+=W.length+D.length+1;let M=D[D.length-1]==="\r";if(M)D=D.slice(0,-1);if(D&&W.length<q){let A=`Block scalar lines must not be less indented than their ${z.indent?"explicit indentation indicator":"first line"}`;X(G-D.length-(M?2:1),"BAD_INDENT",A),W=""}if(Q===I2.Scalar.BLOCK_LITERAL)_+=Y+W.slice(q)+D,Y=`
72
- `;else if(W.length>q||D[0]==="\t"){if(Y===" ")Y=`
61
+ ${_}
62
+ `}};rX.YAMLError=U1;rX.YAMLParseError=D9;rX.YAMLWarning=F9;rX.prettifyError=aX});var B$=D((ZU)=>{function $U($,{flow:Z,indicator:X,next:U,offset:z,onError:Q,parentIndent:J,startOnNewline:H}){let q=!1,_=H,B=H,G="",Y="",O=!1,L=!1,V=null,W=null,I=null,F=null,T=null,A=null,K=null;for(let R of $){if(L){if(R.type!=="space"&&R.type!=="newline"&&R.type!=="comma")Q(R.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");L=!1}if(V){if(_&&R.type!=="comment"&&R.type!=="newline")Q(V,"TAB_AS_INDENT","Tabs are not allowed as indentation");V=null}switch(R.type){case"space":if(!Z&&(X!=="doc-start"||U?.type!=="flow-collection")&&R.source.includes("\t"))V=R;B=!0;break;case"comment":{if(!B)Q(R,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let w=R.source.substring(1)||" ";if(!G)G=w;else G+=Y+w;Y="",_=!1;break}case"newline":if(_){if(G)G+=R.source;else if(!A||X!=="seq-item-ind")q=!0}else Y+=R.source;if(_=!0,O=!0,W||I)F=R;B=!0;break;case"anchor":if(W)Q(R,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(R.source.endsWith(":"))Q(R.offset+R.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0);W=R,K??(K=R.offset),_=!1,B=!1,L=!0;break;case"tag":{if(I)Q(R,"MULTIPLE_TAGS","A node can have at most one tag");I=R,K??(K=R.offset),_=!1,B=!1,L=!0;break}case X:if(W||I)Q(R,"BAD_PROP_ORDER",`Anchors and tags must be after the ${R.source} indicator`);if(A)Q(R,"UNEXPECTED_TOKEN",`Unexpected ${R.source} in ${Z??"collection"}`);A=R,_=X==="seq-item-ind"||X==="explicit-key-ind",B=!1;break;case"comma":if(Z){if(T)Q(R,"UNEXPECTED_TOKEN",`Unexpected , in ${Z}`);T=R,_=!1,B=!1;break}default:Q(R,"UNEXPECTED_TOKEN",`Unexpected ${R.type} token`),_=!1,B=!1}}let N=$[$.length-1],C=N?N.offset+N.source.length:z;if(L&&U&&U.type!=="space"&&U.type!=="newline"&&U.type!=="comma"&&(U.type!=="scalar"||U.source!==""))Q(U.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");if(V&&(_&&V.indent<=J||U?.type==="block-map"||U?.type==="block-seq"))Q(V,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:T,found:A,spaceBefore:q,comment:G,hasNewline:O,anchor:W,tag:I,newlineAfterProp:F,end:C,start:K??C}}ZU.resolveProps=$U});var z1=D((UU)=>{function Y2($){if(!$)return null;switch($.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if($.source.includes(`
63
+ `))return!0;if($.end){for(let Z of $.end)if(Z.type==="newline")return!0}return!1;case"flow-collection":for(let Z of $.items){for(let X of Z.start)if(X.type==="newline")return!0;if(Z.sep){for(let X of Z.sep)if(X.type==="newline")return!0}if(Y2(Z.key)||Y2(Z.value))return!0}return!1;default:return!0}}UU.containsNewline=Y2});var B2=D((HU)=>{var QU=z1();function JU($,Z,X){if(Z?.type==="flow-collection"){let U=Z.end[0];if(U.indent===$&&(U.source==="]"||U.source==="}")&&QU.containsNewline(Z))X(U,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}HU.flowIndentCheck=JU});var V2=D((GU)=>{var M9=b();function _U($,Z,X){let{uniqueKeys:U}=$.options;if(U===!1)return!1;let z=typeof U==="function"?U:(Q,J)=>Q===J||M9.isScalar(Q)&&M9.isScalar(J)&&Q.value===J.value;return Z.some((Q)=>z(Q.key,X))}GU.mapIncludes=_U});var N9=D((LU)=>{var P9=U0(),BU=Q0(),T9=B$(),VU=z1(),K9=B2(),OU=V2(),A9="All mapping items must start at the same column";function WU({composeNode:$,composeEmptyNode:Z},X,U,z,Q){let H=new(Q?.nodeClass??BU.YAMLMap)(X.schema);if(X.atRoot)X.atRoot=!1;let q=U.offset,_=null;for(let B of U.items){let{start:G,key:Y,sep:O,value:L}=B,V=T9.resolveProps(G,{indicator:"explicit-key-ind",next:Y??O?.[0],offset:q,onError:z,parentIndent:U.indent,startOnNewline:!0}),W=!V.found;if(W){if(Y){if(Y.type==="block-seq")z(q,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in Y&&Y.indent!==U.indent)z(q,"BAD_INDENT",A9)}if(!V.anchor&&!V.tag&&!O){if(_=V.end,V.comment)if(H.comment)H.comment+=`
64
+ `+V.comment;else H.comment=V.comment;continue}if(V.newlineAfterProp||VU.containsNewline(Y))z(Y??G[G.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else if(V.found?.indent!==U.indent)z(q,"BAD_INDENT",A9);X.atKey=!0;let I=V.end,F=Y?$(X,Y,V,z):Z(X,I,G,null,V,z);if(X.schema.compat)K9.flowIndentCheck(U.indent,Y,z);if(X.atKey=!1,OU.mapIncludes(X,H.items,F))z(I,"DUPLICATE_KEY","Map keys must be unique");let T=T9.resolveProps(O??[],{indicator:"map-value-ind",next:L,offset:F.range[2],onError:z,parentIndent:U.indent,startOnNewline:!Y||Y.type==="block-scalar"});if(q=T.end,T.found){if(W){if(L?.type==="block-map"&&!T.hasNewline)z(q,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(X.options.strict&&V.start<T.found.offset-1024)z(F.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key")}let A=L?$(X,L,T,z):Z(X,q,O,null,T,z);if(X.schema.compat)K9.flowIndentCheck(U.indent,L,z);q=A.range[2];let K=new P9.Pair(F,A);if(X.options.keepSourceTokens)K.srcToken=B;H.items.push(K)}else{if(W)z(F.range,"MISSING_CHAR","Implicit map keys need to be followed by map values");if(T.comment)if(F.comment)F.comment+=`
65
+ `+T.comment;else F.comment=T.comment;let A=new P9.Pair(F);if(X.options.keepSourceTokens)A.srcToken=B;H.items.push(A)}}if(_&&_<q)z(_,"IMPOSSIBLE","Map comment with trailing content");return H.range=[U.offset,q,_??q],H}LU.resolveBlockMap=WU});var w9=D((PU)=>{var IU=J0(),DU=B$(),FU=B2();function MU({composeNode:$,composeEmptyNode:Z},X,U,z,Q){let H=new(Q?.nodeClass??IU.YAMLSeq)(X.schema);if(X.atRoot)X.atRoot=!1;if(X.atKey)X.atKey=!1;let q=U.offset,_=null;for(let{start:B,value:G}of U.items){let Y=DU.resolveProps(B,{indicator:"seq-item-ind",next:G,offset:q,onError:z,parentIndent:U.indent,startOnNewline:!0});if(!Y.found)if(Y.anchor||Y.tag||G)if(G?.type==="block-seq")z(Y.end,"BAD_INDENT","All sequence items must start at the same column");else z(q,"MISSING_CHAR","Sequence item without - indicator");else{if(_=Y.end,Y.comment)H.comment=Y.comment;continue}let O=G?$(X,G,Y,z):Z(X,Y.end,B,null,Y,z);if(X.schema.compat)FU.flowIndentCheck(U.indent,G,z);q=O.range[2],H.items.push(O)}return H.range=[U.offset,q,_??q],H}PU.resolveBlockSeq=MU});var g0=D((AU)=>{function KU($,Z,X,U){let z="";if($){let Q=!1,J="";for(let H of $){let{source:q,type:_}=H;switch(_){case"space":Q=!0;break;case"comment":{if(X&&!Q)U(H,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let B=q.substring(1)||" ";if(!z)z=B;else z+=J+B;J="";break}case"newline":if(z)J+=q;Q=!0;break;default:U(H,"UNEXPECTED_TOKEN",`Unexpected ${_} at node end`)}Z+=q.length}}return{comment:z,offset:Z}}AU.resolveEnd=KU});var j9=D((yU)=>{var wU=b(),bU=U0(),b9=Q0(),CU=J0(),jU=g0(),C9=B$(),SU=z1(),EU=V2(),O2="Block collections are not allowed within flow collections",W2=($)=>$&&($.type==="block-map"||$.type==="block-seq");function gU({composeNode:$,composeEmptyNode:Z},X,U,z,Q){let J=U.start.source==="{",H=J?"flow map":"flow sequence",_=new(Q?.nodeClass??(J?b9.YAMLMap:CU.YAMLSeq))(X.schema);_.flow=!0;let B=X.atRoot;if(B)X.atRoot=!1;if(X.atKey)X.atKey=!1;let G=U.offset+U.start.source.length;for(let W=0;W<U.items.length;++W){let I=U.items[W],{start:F,key:T,sep:A,value:K}=I,N=C9.resolveProps(F,{flow:H,indicator:"explicit-key-ind",next:T??A?.[0],offset:G,onError:z,parentIndent:U.indent,startOnNewline:!1});if(!N.found){if(!N.anchor&&!N.tag&&!A&&!K){if(W===0&&N.comma)z(N.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${H}`);else if(W<U.items.length-1)z(N.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${H}`);if(N.comment)if(_.comment)_.comment+=`
66
+ `+N.comment;else _.comment=N.comment;G=N.end;continue}if(!J&&X.options.strict&&SU.containsNewline(T))z(T,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(W===0){if(N.comma)z(N.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${H}`)}else{if(!N.comma)z(N.start,"MISSING_CHAR",`Missing , between ${H} items`);if(N.comment){let C="";$:for(let R of F)switch(R.type){case"comma":case"space":break;case"comment":C=R.source.substring(1);break $;default:break $}if(C){let R=_.items[_.items.length-1];if(wU.isPair(R))R=R.value??R.key;if(R.comment)R.comment+=`
67
+ `+C;else R.comment=C;N.comment=N.comment.substring(C.length+1)}}}if(!J&&!A&&!N.found){let C=K?$(X,K,N,z):Z(X,N.end,A,null,N,z);if(_.items.push(C),G=C.range[2],W2(K))z(C.range,"BLOCK_IN_FLOW",O2)}else{X.atKey=!0;let C=N.end,R=T?$(X,T,N,z):Z(X,C,F,null,N,z);if(W2(T))z(R.range,"BLOCK_IN_FLOW",O2);X.atKey=!1;let w=C9.resolveProps(A??[],{flow:H,indicator:"map-value-ind",next:K,offset:R.range[2],onError:z,parentIndent:U.indent,startOnNewline:!1});if(w.found){if(!J&&!N.found&&X.options.strict){if(A)for(let E of A){if(E===w.found)break;if(E.type==="newline"){z(E,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(N.start<w.found.offset-1024)z(w.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else if(K)if("source"in K&&K.source?.[0]===":")z(K,"MISSING_CHAR",`Missing space after : in ${H}`);else z(w.start,"MISSING_CHAR",`Missing , or : between ${H} items`);let d=K?$(X,K,w,z):w.found?Z(X,w.end,A,null,w,z):null;if(d){if(W2(K))z(d.range,"BLOCK_IN_FLOW",O2)}else if(w.comment)if(R.comment)R.comment+=`
68
+ `+w.comment;else R.comment=w.comment;let c=new bU.Pair(R,d);if(X.options.keepSourceTokens)c.srcToken=I;if(J){let E=_;if(EU.mapIncludes(X,E.items,R))z(C,"DUPLICATE_KEY","Map keys must be unique");E.items.push(c)}else{let E=new b9.YAMLMap(X.schema);E.flow=!0,E.items.push(c);let m0=(d??R).range;E.range=[R.range[0],m0[1],m0[2]],_.items.push(E)}G=d?d.range[2]:w.end}}let Y=J?"}":"]",[O,...L]=U.end,V=G;if(O?.source===Y)V=O.offset+O.source.length;else{let W=H[0].toUpperCase()+H.substring(1),I=B?`${W} must end with a ${Y}`:`${W} in block collection must be sufficiently indented and end with a ${Y}`;if(z(G,B?"MISSING_CHAR":"BAD_INDENT",I),O&&O.source.length!==1)L.unshift(O)}if(L.length>0){let W=jU.resolveEnd(L,V,X.options.strict,z);if(W.comment)if(_.comment)_.comment+=`
69
+ `+W.comment;else _.comment=W.comment;_.range=[U.offset,V,W.offset]}else _.range=[U.offset,V,V];return _}yU.resolveFlowCollection=gU});var S9=D((dU)=>{var xU=b(),hU=g(),uU=Q0(),kU=J0(),vU=N9(),mU=w9(),pU=j9();function L2($,Z,X,U,z,Q){let J=X.type==="block-map"?vU.resolveBlockMap($,Z,X,U,Q):X.type==="block-seq"?mU.resolveBlockSeq($,Z,X,U,Q):pU.resolveFlowCollection($,Z,X,U,Q),H=J.constructor;if(z==="!"||z===H.tagName)return J.tag=H.tagName,J;if(z)J.tag=z;return J}function lU($,Z,X,U,z){let Q=U.tag,J=!Q?null:Z.directives.tagName(Q.source,(Y)=>z(Q,"TAG_RESOLVE_FAILED",Y));if(X.type==="block-seq"){let{anchor:Y,newlineAfterProp:O}=U,L=Y&&Q?Y.offset>Q.offset?Y:Q:Y??Q;if(L&&(!O||O.offset<L.offset))z(L,"MISSING_CHAR","Missing newline after block sequence props")}let H=X.type==="block-map"?"map":X.type==="block-seq"?"seq":X.start.source==="{"?"map":"seq";if(!Q||!J||J==="!"||J===uU.YAMLMap.tagName&&H==="map"||J===kU.YAMLSeq.tagName&&H==="seq")return L2($,Z,X,z,J);let q=Z.schema.tags.find((Y)=>Y.tag===J&&Y.collection===H);if(!q){let Y=Z.schema.knownTags[J];if(Y?.collection===H)Z.schema.tags.push(Object.assign({},Y,{default:!1})),q=Y;else{if(Y)z(Q,"BAD_COLLECTION_TYPE",`${Y.tag} used for ${H} collection, but expects ${Y.collection??"scalar"}`,!0);else z(Q,"TAG_RESOLVE_FAILED",`Unresolved tag: ${J}`,!0);return L2($,Z,X,z,J)}}let _=L2($,Z,X,z,J,q),B=q.resolve?.(_,(Y)=>z(Q,"TAG_RESOLVE_FAILED",Y),Z.options)??_,G=xU.isNode(B)?B:new hU.Scalar(B);if(G.range=_.range,G.tag=J,q?.format)G.format=q.format;return G}dU.composeCollection=lU});var I2=D((rU)=>{var R2=g();function iU($,Z,X){let U=Z.offset,z=sU(Z,$.options.strict,X);if(!z)return{value:"",type:null,comment:"",range:[U,U,U]};let Q=z.mode===">"?R2.Scalar.BLOCK_FOLDED:R2.Scalar.BLOCK_LITERAL,J=Z.source?aU(Z.source):[],H=J.length;for(let V=J.length-1;V>=0;--V){let W=J[V][1];if(W===""||W==="\r")H=V;else break}if(H===0){let V=z.chomp==="+"&&J.length>0?`
70
+ `.repeat(Math.max(1,J.length-1)):"",W=U+z.length;if(Z.source)W+=Z.source.length;return{value:V,type:Q,comment:z.comment,range:[U,W,W]}}let q=Z.indent+z.indent,_=Z.offset+z.length,B=0;for(let V=0;V<H;++V){let[W,I]=J[V];if(I===""||I==="\r"){if(z.indent===0&&W.length>q)q=W.length}else{if(W.length<q)X(_+W.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator");if(z.indent===0)q=W.length;if(B=V,q===0&&!$.atRoot)X(_,"BAD_INDENT","Block scalar values in collections must be indented");break}_+=W.length+I.length+1}for(let V=J.length-1;V>=H;--V)if(J[V][0].length>q)H=V+1;let G="",Y="",O=!1;for(let V=0;V<B;++V)G+=J[V][0].slice(q)+`
71
+ `;for(let V=B;V<H;++V){let[W,I]=J[V];_+=W.length+I.length+1;let F=I[I.length-1]==="\r";if(F)I=I.slice(0,-1);if(I&&W.length<q){let A=`Block scalar lines must not be less indented than their ${z.indent?"explicit indentation indicator":"first line"}`;X(_-I.length-(F?2:1),"BAD_INDENT",A),W=""}if(Q===R2.Scalar.BLOCK_LITERAL)G+=Y+W.slice(q)+I,Y=`
72
+ `;else if(W.length>q||I[0]==="\t"){if(Y===" ")Y=`
73
73
  `;else if(!O&&Y===`
74
74
  `)Y=`
75
75
 
76
- `;_+=Y+W.slice(q)+D,Y=`
77
- `,O=!0}else if(D==="")if(Y===`
78
- `)_+=`
76
+ `;G+=Y+W.slice(q)+I,Y=`
77
+ `,O=!0}else if(I==="")if(Y===`
78
+ `)G+=`
79
79
  `;else Y=`
80
- `;else _+=Y+D,Y=" ",O=!1}switch(z.chomp){case"-":break;case"+":for(let V=H;V<J.length;++V)_+=`
81
- `+J[V][0].slice(q);if(_[_.length-1]!==`
82
- `)_+=`
83
- `;break;default:_+=`
84
- `}let L=U+z.length+Z.source.length;return{value:_,type:Q,comment:z.comment,range:[U,L,L]}}function sU({offset:$,props:Z},X,U){if(Z[0].type!=="block-scalar-header")return U(Z[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:z}=Z[0],Q=z[0],J=0,H="",q=-1;for(let Y=1;Y<z.length;++Y){let O=z[Y];if(!H&&(O==="-"||O==="+"))H=O;else{let L=Number(O);if(!J&&L)J=L;else if(q===-1)q=$+Y}}if(q!==-1)U(q,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${z}`);let G=!1,B="",_=z.length;for(let Y=1;Y<Z.length;++Y){let O=Z[Y];switch(O.type){case"space":G=!0;case"newline":_+=O.source.length;break;case"comment":if(X&&!G)U(O,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");_+=O.source.length,B=O.source.substring(1);break;case"error":U(O,"UNEXPECTED_TOKEN",O.message),_+=O.source.length;break;default:{let L=`Unexpected token in block scalar header: ${O.type}`;U(O,"UNEXPECTED_TOKEN",L);let V=O.source;if(V&&typeof V==="string")_+=V.length}}}return{mode:Q,indent:J,chomp:H,comment:B,length:_}}function aU($){let Z=$.split(/\n( *)/),X=Z[0],U=X.match(/^( *)/),Q=[U?.[1]?[U[1],X.slice(U[1].length)]:["",X]];for(let J=1;J<Z.length;J+=2)Q.push([Z[J],Z[J+1]]);return Q}rU.resolveBlockScalar=iU});var M2=R((Qz)=>{var R2=g(),oU=g0();function tU($,Z,X){let{offset:U,type:z,source:Q,end:J}=$,H,q,G=(Y,O,L)=>X(U+Y,O,L);switch(z){case"scalar":H=R2.Scalar.PLAIN,q=eU(Q,G);break;case"single-quoted-scalar":H=R2.Scalar.QUOTE_SINGLE,q=$z(Q,G);break;case"double-quoted-scalar":H=R2.Scalar.QUOTE_DOUBLE,q=Zz(Q,G);break;default:return X($,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${z}`),{value:"",type:null,comment:"",range:[U,U+Q.length,U+Q.length]}}let B=U+Q.length,_=oU.resolveEnd(J,B,Z,X);return{value:q,type:H,comment:_.comment,range:[U,B,_.offset]}}function eU($,Z){let X="";switch($[0]){case"\t":X="a tab character";break;case",":X="flow indicator character ,";break;case"%":X="directive indicator character %";break;case"|":case">":{X=`block scalar indicator ${$[0]}`;break}case"@":case"`":{X=`reserved character ${$[0]}`;break}}if(X)Z(0,"BAD_SCALAR_START",`Plain value cannot start with ${X}`);return E3($)}function $z($,Z){if($[$.length-1]!=="'"||$.length===1)Z($.length,"MISSING_CHAR","Missing closing 'quote");return E3($.slice(1,-1)).replace(/''/g,"'")}function E3($){let Z,X;try{Z=new RegExp(`(.*?)(?<![ ])[ ]*\r?
80
+ `;else G+=Y+I,Y=" ",O=!1}switch(z.chomp){case"-":break;case"+":for(let V=H;V<J.length;++V)G+=`
81
+ `+J[V][0].slice(q);if(G[G.length-1]!==`
82
+ `)G+=`
83
+ `;break;default:G+=`
84
+ `}let L=U+z.length+Z.source.length;return{value:G,type:Q,comment:z.comment,range:[U,L,L]}}function sU({offset:$,props:Z},X,U){if(Z[0].type!=="block-scalar-header")return U(Z[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:z}=Z[0],Q=z[0],J=0,H="",q=-1;for(let Y=1;Y<z.length;++Y){let O=z[Y];if(!H&&(O==="-"||O==="+"))H=O;else{let L=Number(O);if(!J&&L)J=L;else if(q===-1)q=$+Y}}if(q!==-1)U(q,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${z}`);let _=!1,B="",G=z.length;for(let Y=1;Y<Z.length;++Y){let O=Z[Y];switch(O.type){case"space":_=!0;case"newline":G+=O.source.length;break;case"comment":if(X&&!_)U(O,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");G+=O.source.length,B=O.source.substring(1);break;case"error":U(O,"UNEXPECTED_TOKEN",O.message),G+=O.source.length;break;default:{let L=`Unexpected token in block scalar header: ${O.type}`;U(O,"UNEXPECTED_TOKEN",L);let V=O.source;if(V&&typeof V==="string")G+=V.length}}}return{mode:Q,indent:J,chomp:H,comment:B,length:G}}function aU($){let Z=$.split(/\n( *)/),X=Z[0],U=X.match(/^( *)/),Q=[U?.[1]?[U[1],X.slice(U[1].length)]:["",X]];for(let J=1;J<Z.length;J+=2)Q.push([Z[J],Z[J+1]]);return Q}rU.resolveBlockScalar=iU});var F2=D((Qz)=>{var D2=g(),oU=g0();function tU($,Z,X){let{offset:U,type:z,source:Q,end:J}=$,H,q,_=(Y,O,L)=>X(U+Y,O,L);switch(z){case"scalar":H=D2.Scalar.PLAIN,q=eU(Q,_);break;case"single-quoted-scalar":H=D2.Scalar.QUOTE_SINGLE,q=$z(Q,_);break;case"double-quoted-scalar":H=D2.Scalar.QUOTE_DOUBLE,q=Zz(Q,_);break;default:return X($,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${z}`),{value:"",type:null,comment:"",range:[U,U+Q.length,U+Q.length]}}let B=U+Q.length,G=oU.resolveEnd(J,B,Z,X);return{value:q,type:H,comment:G.comment,range:[U,B,G.offset]}}function eU($,Z){let X="";switch($[0]){case"\t":X="a tab character";break;case",":X="flow indicator character ,";break;case"%":X="directive indicator character %";break;case"|":case">":{X=`block scalar indicator ${$[0]}`;break}case"@":case"`":{X=`reserved character ${$[0]}`;break}}if(X)Z(0,"BAD_SCALAR_START",`Plain value cannot start with ${X}`);return E9($)}function $z($,Z){if($[$.length-1]!=="'"||$.length===1)Z($.length,"MISSING_CHAR","Missing closing 'quote");return E9($.slice(1,-1)).replace(/''/g,"'")}function E9($){let Z,X;try{Z=new RegExp(`(.*?)(?<![ ])[ ]*\r?
85
85
  `,"sy"),X=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
86
86
  `,"sy")}catch{Z=/(.*?)[ \t]*\r?\n/sy,X=/[ \t]*(.*?)[ \t]*\r?\n/sy}let U=Z.exec($);if(!U)return $;let z=U[1],Q=" ",J=Z.lastIndex;X.lastIndex=J;while(U=X.exec($)){if(U[1]==="")if(Q===`
87
87
  `)z+=Q;else Q=`
@@ -96,26 +96,26 @@ ${G}
96
96
  `)break;if(U===`
97
97
  `)X+=`
98
98
  `;Z+=1,U=$[Z+1]}if(!X)X=" ";return{fold:X,offset:Z}}var Uz={"0":"\x00",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
99
- `,r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function zz($,Z,X,U){let z=$.substr(Z,X),J=z.length===X&&/^[0-9a-fA-F]+$/.test(z)?parseInt(z,16):NaN;if(isNaN(J)){let H=$.substr(Z-2,X+2);return U(Z-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${H}`),H}return String.fromCodePoint(J)}Qz.resolveFlowScalar=tU});var y3=R((Bz)=>{var L0=b(),g3=g(),Hz=D2(),qz=M2();function Gz($,Z,X,U){let{value:z,type:Q,comment:J,range:H}=Z.type==="block-scalar"?Hz.resolveBlockScalar($,Z,U):qz.resolveFlowScalar(Z,$.options.strict,U),q=X?$.directives.tagName(X.source,(_)=>U(X,"TAG_RESOLVE_FAILED",_)):null,G;if($.options.stringKeys&&$.atKey)G=$.schema[L0.SCALAR];else if(q)G=_z($.schema,z,q,X,U);else if(Z.type==="scalar")G=Yz($,z,Z,U);else G=$.schema[L0.SCALAR];let B;try{let _=G.resolve(z,(Y)=>U(X??Z,"TAG_RESOLVE_FAILED",Y),$.options);B=L0.isScalar(_)?_:new g3.Scalar(_)}catch(_){let Y=_ instanceof Error?_.message:String(_);U(X??Z,"TAG_RESOLVE_FAILED",Y),B=new g3.Scalar(z)}if(B.range=H,B.source=z,Q)B.type=Q;if(q)B.tag=q;if(G.format)B.format=G.format;if(J)B.comment=J;return B}function _z($,Z,X,U,z){if(X==="!")return $[L0.SCALAR];let Q=[];for(let H of $.tags)if(!H.collection&&H.tag===X)if(H.default&&H.test)Q.push(H);else return H;for(let H of Q)if(H.test?.test(Z))return H;let J=$.knownTags[X];if(J&&!J.collection)return $.tags.push(Object.assign({},J,{default:!1,test:void 0})),J;return z(U,"TAG_RESOLVE_FAILED",`Unresolved tag: ${X}`,X!=="tag:yaml.org,2002:str"),$[L0.SCALAR]}function Yz({atKey:$,directives:Z,schema:X},U,z,Q){let J=X.tags.find((H)=>(H.default===!0||$&&H.default==="key")&&H.test?.test(U))||X[L0.SCALAR];if(X.compat){let H=X.compat.find((q)=>q.default&&q.test?.test(U))??X[L0.SCALAR];if(J.tag!==H.tag){let q=Z.tagString(J.tag),G=Z.tagString(H.tag),B=`Value may be parsed as either ${q} or ${G}`;Q(z,"TAG_RESOLVE_FAILED",B,!0)}}return J}Bz.composeScalar=Gz});var f3=R((Wz)=>{function Oz($,Z,X){if(Z){X??(X=Z.length);for(let U=X-1;U>=0;--U){let z=Z[U];switch(z.type){case"space":case"comment":case"newline":$-=z.source.length;continue}z=Z[++U];while(z?.type==="space")$+=z.source.length,z=Z[++U];break}}return $}Wz.emptyScalarPosition=Oz});var u3=R((Kz)=>{var Iz=r0(),Dz=b(),Rz=S3(),h3=y3(),Mz=g0(),Fz=f3(),Pz={composeNode:x3,composeEmptyNode:F2};function x3($,Z,X,U){let z=$.atKey,{spaceBefore:Q,comment:J,anchor:H,tag:q}=X,G,B=!0;switch(Z.type){case"alias":if(G=Tz($,Z,U),H||q)U(Z,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":if(G=h3.composeScalar($,Z,q,U),H)G.anchor=H.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":try{if(G=Rz.composeCollection(Pz,$,Z,X,U),H)G.anchor=H.source.substring(1)}catch(_){let Y=_ instanceof Error?_.message:String(_);U(Z,"RESOURCE_EXHAUSTION",Y)}break;default:{let _=Z.type==="error"?Z.message:`Unsupported token (type: ${Z.type})`;U(Z,"UNEXPECTED_TOKEN",_),B=!1}}if(G??(G=F2($,Z.offset,void 0,null,X,U)),H&&G.anchor==="")U(H,"BAD_ALIAS","Anchor cannot be an empty string");if(z&&$.options.stringKeys&&(!Dz.isScalar(G)||typeof G.value!=="string"||G.tag&&G.tag!=="tag:yaml.org,2002:str"))U(q??Z,"NON_STRING_KEY","With stringKeys, all keys must be strings");if(Q)G.spaceBefore=!0;if(J)if(Z.type==="scalar"&&Z.source==="")G.comment=J;else G.commentBefore=J;if($.options.keepSourceTokens&&B)G.srcToken=Z;return G}function F2($,Z,X,U,{spaceBefore:z,comment:Q,anchor:J,tag:H,end:q},G){let B={type:"scalar",offset:Fz.emptyScalarPosition(Z,X,U),indent:-1,source:""},_=h3.composeScalar($,B,H,G);if(J){if(_.anchor=J.source.substring(1),_.anchor==="")G(J,"BAD_ALIAS","Anchor cannot be an empty string")}if(z)_.spaceBefore=!0;if(Q)_.comment=Q,_.range[2]=q;return _}function Tz({options:$},{offset:Z,source:X,end:U},z){let Q=new Iz.Alias(X.substring(1));if(Q.source==="")z(Z,"BAD_ALIAS","Alias cannot be an empty string");if(Q.source.endsWith(":"))z(Z+X.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let J=Z+X.length,H=Mz.resolveEnd(U,J,$.strict,z);if(Q.range=[Z,J,H.offset],H.comment)Q.comment=H.comment;return Q}Kz.composeEmptyNode=F2;Kz.composeNode=x3});var v3=R((Sz)=>{var wz=_$(),k3=u3(),bz=g0(),Cz=B$();function jz($,Z,{offset:X,start:U,value:z,end:Q},J){let H=Object.assign({_directives:Z},$),q=new wz.Document(void 0,H),G={atKey:!1,atRoot:!0,directives:q.directives,options:q.options,schema:q.schema},B=Cz.resolveProps(U,{indicator:"doc-start",next:z??Q?.[0],offset:X,onError:J,parentIndent:0,startOnNewline:!0});if(B.found){if(q.directives.docStart=!0,z&&(z.type==="block-map"||z.type==="block-seq")&&!B.hasNewline)J(B.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}q.contents=z?k3.composeNode(G,z,B,J):k3.composeEmptyNode(G,B.end,U,null,B,J);let _=q.contents.range[2],Y=bz.resolveEnd(Q,_,!1,J);if(Y.comment)q.comment=Y.comment;return q.range=[X,_,Y.offset],q}Sz.composeDoc=jz});var P2=R((uz)=>{var gz=p0("process"),yz=N1(),fz=_$(),V$=Y$(),m3=b(),hz=v3(),xz=g0();function O$($){if(typeof $==="number")return[$,$+1];if(Array.isArray($))return $.length===2?$:[$[0],$[1]];let{offset:Z,source:X}=$;return[Z,Z+(typeof X==="string"?X.length:1)]}function p3($){let Z="",X=!1,U=!1;for(let z=0;z<$.length;++z){let Q=$[z];switch(Q[0]){case"#":Z+=(Z===""?"":U?`
99
+ `,r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function zz($,Z,X,U){let z=$.substr(Z,X),J=z.length===X&&/^[0-9a-fA-F]+$/.test(z)?parseInt(z,16):NaN;if(isNaN(J)){let H=$.substr(Z-2,X+2);return U(Z-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${H}`),H}return String.fromCodePoint(J)}Qz.resolveFlowScalar=tU});var y9=D((Bz)=>{var L0=b(),g9=g(),Hz=I2(),qz=F2();function _z($,Z,X,U){let{value:z,type:Q,comment:J,range:H}=Z.type==="block-scalar"?Hz.resolveBlockScalar($,Z,U):qz.resolveFlowScalar(Z,$.options.strict,U),q=X?$.directives.tagName(X.source,(G)=>U(X,"TAG_RESOLVE_FAILED",G)):null,_;if($.options.stringKeys&&$.atKey)_=$.schema[L0.SCALAR];else if(q)_=Gz($.schema,z,q,X,U);else if(Z.type==="scalar")_=Yz($,z,Z,U);else _=$.schema[L0.SCALAR];let B;try{let G=_.resolve(z,(Y)=>U(X??Z,"TAG_RESOLVE_FAILED",Y),$.options);B=L0.isScalar(G)?G:new g9.Scalar(G)}catch(G){let Y=G instanceof Error?G.message:String(G);U(X??Z,"TAG_RESOLVE_FAILED",Y),B=new g9.Scalar(z)}if(B.range=H,B.source=z,Q)B.type=Q;if(q)B.tag=q;if(_.format)B.format=_.format;if(J)B.comment=J;return B}function Gz($,Z,X,U,z){if(X==="!")return $[L0.SCALAR];let Q=[];for(let H of $.tags)if(!H.collection&&H.tag===X)if(H.default&&H.test)Q.push(H);else return H;for(let H of Q)if(H.test?.test(Z))return H;let J=$.knownTags[X];if(J&&!J.collection)return $.tags.push(Object.assign({},J,{default:!1,test:void 0})),J;return z(U,"TAG_RESOLVE_FAILED",`Unresolved tag: ${X}`,X!=="tag:yaml.org,2002:str"),$[L0.SCALAR]}function Yz({atKey:$,directives:Z,schema:X},U,z,Q){let J=X.tags.find((H)=>(H.default===!0||$&&H.default==="key")&&H.test?.test(U))||X[L0.SCALAR];if(X.compat){let H=X.compat.find((q)=>q.default&&q.test?.test(U))??X[L0.SCALAR];if(J.tag!==H.tag){let q=Z.tagString(J.tag),_=Z.tagString(H.tag),B=`Value may be parsed as either ${q} or ${_}`;Q(z,"TAG_RESOLVE_FAILED",B,!0)}}return J}Bz.composeScalar=_z});var f9=D((Wz)=>{function Oz($,Z,X){if(Z){X??(X=Z.length);for(let U=X-1;U>=0;--U){let z=Z[U];switch(z.type){case"space":case"comment":case"newline":$-=z.source.length;continue}z=Z[++U];while(z?.type==="space")$+=z.source.length,z=Z[++U];break}}return $}Wz.emptyScalarPosition=Oz});var u9=D((Kz)=>{var Rz=r0(),Iz=b(),Dz=S9(),x9=y9(),Fz=g0(),Mz=f9(),Pz={composeNode:h9,composeEmptyNode:M2};function h9($,Z,X,U){let z=$.atKey,{spaceBefore:Q,comment:J,anchor:H,tag:q}=X,_,B=!0;switch(Z.type){case"alias":if(_=Tz($,Z,U),H||q)U(Z,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":if(_=x9.composeScalar($,Z,q,U),H)_.anchor=H.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":try{if(_=Dz.composeCollection(Pz,$,Z,X,U),H)_.anchor=H.source.substring(1)}catch(G){let Y=G instanceof Error?G.message:String(G);U(Z,"RESOURCE_EXHAUSTION",Y)}break;default:{let G=Z.type==="error"?Z.message:`Unsupported token (type: ${Z.type})`;U(Z,"UNEXPECTED_TOKEN",G),B=!1}}if(_??(_=M2($,Z.offset,void 0,null,X,U)),H&&_.anchor==="")U(H,"BAD_ALIAS","Anchor cannot be an empty string");if(z&&$.options.stringKeys&&(!Iz.isScalar(_)||typeof _.value!=="string"||_.tag&&_.tag!=="tag:yaml.org,2002:str"))U(q??Z,"NON_STRING_KEY","With stringKeys, all keys must be strings");if(Q)_.spaceBefore=!0;if(J)if(Z.type==="scalar"&&Z.source==="")_.comment=J;else _.commentBefore=J;if($.options.keepSourceTokens&&B)_.srcToken=Z;return _}function M2($,Z,X,U,{spaceBefore:z,comment:Q,anchor:J,tag:H,end:q},_){let B={type:"scalar",offset:Mz.emptyScalarPosition(Z,X,U),indent:-1,source:""},G=x9.composeScalar($,B,H,_);if(J){if(G.anchor=J.source.substring(1),G.anchor==="")_(J,"BAD_ALIAS","Anchor cannot be an empty string")}if(z)G.spaceBefore=!0;if(Q)G.comment=Q,G.range[2]=q;return G}function Tz({options:$},{offset:Z,source:X,end:U},z){let Q=new Rz.Alias(X.substring(1));if(Q.source==="")z(Z,"BAD_ALIAS","Alias cannot be an empty string");if(Q.source.endsWith(":"))z(Z+X.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let J=Z+X.length,H=Fz.resolveEnd(U,J,$.strict,z);if(Q.range=[Z,J,H.offset],H.comment)Q.comment=H.comment;return Q}Kz.composeEmptyNode=M2;Kz.composeNode=h9});var v9=D((Sz)=>{var wz=G$(),k9=u9(),bz=g0(),Cz=B$();function jz($,Z,{offset:X,start:U,value:z,end:Q},J){let H=Object.assign({_directives:Z},$),q=new wz.Document(void 0,H),_={atKey:!1,atRoot:!0,directives:q.directives,options:q.options,schema:q.schema},B=Cz.resolveProps(U,{indicator:"doc-start",next:z??Q?.[0],offset:X,onError:J,parentIndent:0,startOnNewline:!0});if(B.found){if(q.directives.docStart=!0,z&&(z.type==="block-map"||z.type==="block-seq")&&!B.hasNewline)J(B.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}q.contents=z?k9.composeNode(_,z,B,J):k9.composeEmptyNode(_,B.end,U,null,B,J);let G=q.contents.range[2],Y=bz.resolveEnd(Q,G,!1,J);if(Y.comment)q.comment=Y.comment;return q.range=[X,G,Y.offset],q}Sz.composeDoc=jz});var P2=D((uz)=>{var gz=p0("process"),yz=N1(),fz=G$(),V$=Y$(),m9=b(),xz=v9(),hz=g0();function O$($){if(typeof $==="number")return[$,$+1];if(Array.isArray($))return $.length===2?$:[$[0],$[1]];let{offset:Z,source:X}=$;return[Z,Z+(typeof X==="string"?X.length:1)]}function p9($){let Z="",X=!1,U=!1;for(let z=0;z<$.length;++z){let Q=$[z];switch(Q[0]){case"#":Z+=(Z===""?"":U?`
100
100
 
101
101
  `:`
102
- `)+(Q.substring(1)||" "),X=!0,U=!1;break;case"%":if($[z+1]?.[0]!=="#")z+=1;X=!1;break;default:if(!X)U=!0;X=!1}}return{comment:Z,afterEmptyLine:U}}class l3{constructor($={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(Z,X,U,z)=>{let Q=O$(Z);if(z)this.warnings.push(new V$.YAMLWarning(Q,X,U));else this.errors.push(new V$.YAMLParseError(Q,X,U))},this.directives=new yz.Directives({version:$.version||"1.2"}),this.options=$}decorate($,Z){let{comment:X,afterEmptyLine:U}=p3(this.prelude);if(X){let z=$.contents;if(Z)$.comment=$.comment?`${$.comment}
103
- ${X}`:X;else if(U||$.directives.docStart||!z)$.commentBefore=X;else if(m3.isCollection(z)&&!z.flow&&z.items.length>0){let Q=z.items[0];if(m3.isPair(Q))Q=Q.key;let J=Q.commentBefore;Q.commentBefore=J?`${X}
102
+ `)+(Q.substring(1)||" "),X=!0,U=!1;break;case"%":if($[z+1]?.[0]!=="#")z+=1;X=!1;break;default:if(!X)U=!0;X=!1}}return{comment:Z,afterEmptyLine:U}}class l9{constructor($={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(Z,X,U,z)=>{let Q=O$(Z);if(z)this.warnings.push(new V$.YAMLWarning(Q,X,U));else this.errors.push(new V$.YAMLParseError(Q,X,U))},this.directives=new yz.Directives({version:$.version||"1.2"}),this.options=$}decorate($,Z){let{comment:X,afterEmptyLine:U}=p9(this.prelude);if(X){let z=$.contents;if(Z)$.comment=$.comment?`${$.comment}
103
+ ${X}`:X;else if(U||$.directives.docStart||!z)$.commentBefore=X;else if(m9.isCollection(z)&&!z.flow&&z.items.length>0){let Q=z.items[0];if(m9.isPair(Q))Q=Q.key;let J=Q.commentBefore;Q.commentBefore=J?`${X}
104
104
  ${J}`:X}else{let Q=z.commentBefore;z.commentBefore=Q?`${X}
105
- ${Q}`:X}}if(Z)Array.prototype.push.apply($.errors,this.errors),Array.prototype.push.apply($.warnings,this.warnings);else $.errors=this.errors,$.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:p3(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose($,Z=!1,X=-1){for(let U of $)yield*this.next(U);yield*this.end(Z,X)}*next($){if(gz.env.LOG_STREAM)console.dir($,{depth:null});switch($.type){case"directive":this.directives.add($.source,(Z,X,U)=>{let z=O$($);z[0]+=Z,this.onError(z,"BAD_DIRECTIVE",X,U)}),this.prelude.push($.source),this.atDirectives=!0;break;case"document":{let Z=hz.composeDoc(this.options,this.directives,$,this.onError);if(this.atDirectives&&!Z.directives.docStart)this.onError($,"MISSING_CHAR","Missing directives-end/doc-start indicator line");if(this.decorate(Z,!1),this.doc)yield this.doc;this.doc=Z,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push($.source);break;case"error":{let Z=$.source?`${$.message}: ${JSON.stringify($.source)}`:$.message,X=new V$.YAMLParseError(O$($),"UNEXPECTED_TOKEN",Z);if(this.atDirectives||!this.doc)this.errors.push(X);else this.doc.errors.push(X);break}case"doc-end":{if(!this.doc){this.errors.push(new V$.YAMLParseError(O$($),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let Z=xz.resolveEnd($.end,$.offset+$.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),Z.comment){let X=this.doc.comment;this.doc.comment=X?`${X}
106
- ${Z.comment}`:Z.comment}this.doc.range[2]=Z.offset;break}default:this.errors.push(new V$.YAMLParseError(O$($),"UNEXPECTED_TOKEN",`Unsupported token ${$.type}`))}}*end($=!1,Z=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if($){let X=Object.assign({_directives:this.directives},this.options),U=new fz.Document(void 0,X);if(this.atDirectives)this.onError(Z,"MISSING_CHAR","Missing directives-end indicator line");U.range=[0,Z,Z],this.decorate(U,!1),yield U}}}uz.Composer=l3});var i3=R((sz)=>{var vz=D2(),mz=M2(),pz=Y$(),d3=e0();function lz($,Z=!0,X){if($){let U=(z,Q,J)=>{let H=typeof z==="number"?z:Array.isArray(z)?z[0]:z.offset;if(X)X(H,Q,J);else throw new pz.YAMLParseError([H,H+1],Q,J)};switch($.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return mz.resolveFlowScalar($,Z,U);case"block-scalar":return vz.resolveBlockScalar({options:{strict:Z}},$,U)}}return null}function dz($,Z){let{implicitKey:X=!1,indent:U,inFlow:z=!1,offset:Q=-1,type:J="PLAIN"}=Z,H=d3.stringifyString({type:J,value:$},{implicitKey:X,indent:U>0?" ".repeat(U):"",inFlow:z,options:{blockQuote:!0,lineWidth:-1}}),q=Z.end??[{type:"newline",offset:-1,indent:U,source:`
107
- `}];switch(H[0]){case"|":case">":{let G=H.indexOf(`
108
- `),B=H.substring(0,G),_=H.substring(G+1)+`
109
- `,Y=[{type:"block-scalar-header",offset:Q,indent:U,source:B}];if(!c3(Y,q))Y.push({type:"newline",offset:-1,indent:U,source:`
110
- `});return{type:"block-scalar",offset:Q,indent:U,props:Y,source:_}}case'"':return{type:"double-quoted-scalar",offset:Q,indent:U,source:H,end:q};case"'":return{type:"single-quoted-scalar",offset:Q,indent:U,source:H,end:q};default:return{type:"scalar",offset:Q,indent:U,source:H,end:q}}}function cz($,Z,X={}){let{afterKey:U=!1,implicitKey:z=!1,inFlow:Q=!1,type:J}=X,H="indent"in $?$.indent:null;if(U&&typeof H==="number")H+=2;if(!J)switch($.type){case"single-quoted-scalar":J="QUOTE_SINGLE";break;case"double-quoted-scalar":J="QUOTE_DOUBLE";break;case"block-scalar":{let G=$.props[0];if(G.type!=="block-scalar-header")throw Error("Invalid block scalar header");J=G.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:J="PLAIN"}let q=d3.stringifyString({type:J,value:Z},{implicitKey:z||H===null,indent:H!==null&&H>0?" ".repeat(H):"",inFlow:Q,options:{blockQuote:!0,lineWidth:-1}});switch(q[0]){case"|":case">":iz($,q);break;case'"':T2($,q,"double-quoted-scalar");break;case"'":T2($,q,"single-quoted-scalar");break;default:T2($,q,"scalar")}}function iz($,Z){let X=Z.indexOf(`
105
+ ${Q}`:X}}if(Z)Array.prototype.push.apply($.errors,this.errors),Array.prototype.push.apply($.warnings,this.warnings);else $.errors=this.errors,$.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:p9(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose($,Z=!1,X=-1){for(let U of $)yield*this.next(U);yield*this.end(Z,X)}*next($){if(gz.env.LOG_STREAM)console.dir($,{depth:null});switch($.type){case"directive":this.directives.add($.source,(Z,X,U)=>{let z=O$($);z[0]+=Z,this.onError(z,"BAD_DIRECTIVE",X,U)}),this.prelude.push($.source),this.atDirectives=!0;break;case"document":{let Z=xz.composeDoc(this.options,this.directives,$,this.onError);if(this.atDirectives&&!Z.directives.docStart)this.onError($,"MISSING_CHAR","Missing directives-end/doc-start indicator line");if(this.decorate(Z,!1),this.doc)yield this.doc;this.doc=Z,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push($.source);break;case"error":{let Z=$.source?`${$.message}: ${JSON.stringify($.source)}`:$.message,X=new V$.YAMLParseError(O$($),"UNEXPECTED_TOKEN",Z);if(this.atDirectives||!this.doc)this.errors.push(X);else this.doc.errors.push(X);break}case"doc-end":{if(!this.doc){this.errors.push(new V$.YAMLParseError(O$($),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let Z=hz.resolveEnd($.end,$.offset+$.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),Z.comment){let X=this.doc.comment;this.doc.comment=X?`${X}
106
+ ${Z.comment}`:Z.comment}this.doc.range[2]=Z.offset;break}default:this.errors.push(new V$.YAMLParseError(O$($),"UNEXPECTED_TOKEN",`Unsupported token ${$.type}`))}}*end($=!1,Z=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if($){let X=Object.assign({_directives:this.directives},this.options),U=new fz.Document(void 0,X);if(this.atDirectives)this.onError(Z,"MISSING_CHAR","Missing directives-end indicator line");U.range=[0,Z,Z],this.decorate(U,!1),yield U}}}uz.Composer=l9});var i9=D((sz)=>{var vz=I2(),mz=F2(),pz=Y$(),d9=e0();function lz($,Z=!0,X){if($){let U=(z,Q,J)=>{let H=typeof z==="number"?z:Array.isArray(z)?z[0]:z.offset;if(X)X(H,Q,J);else throw new pz.YAMLParseError([H,H+1],Q,J)};switch($.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return mz.resolveFlowScalar($,Z,U);case"block-scalar":return vz.resolveBlockScalar({options:{strict:Z}},$,U)}}return null}function dz($,Z){let{implicitKey:X=!1,indent:U,inFlow:z=!1,offset:Q=-1,type:J="PLAIN"}=Z,H=d9.stringifyString({type:J,value:$},{implicitKey:X,indent:U>0?" ".repeat(U):"",inFlow:z,options:{blockQuote:!0,lineWidth:-1}}),q=Z.end??[{type:"newline",offset:-1,indent:U,source:`
107
+ `}];switch(H[0]){case"|":case">":{let _=H.indexOf(`
108
+ `),B=H.substring(0,_),G=H.substring(_+1)+`
109
+ `,Y=[{type:"block-scalar-header",offset:Q,indent:U,source:B}];if(!c9(Y,q))Y.push({type:"newline",offset:-1,indent:U,source:`
110
+ `});return{type:"block-scalar",offset:Q,indent:U,props:Y,source:G}}case'"':return{type:"double-quoted-scalar",offset:Q,indent:U,source:H,end:q};case"'":return{type:"single-quoted-scalar",offset:Q,indent:U,source:H,end:q};default:return{type:"scalar",offset:Q,indent:U,source:H,end:q}}}function cz($,Z,X={}){let{afterKey:U=!1,implicitKey:z=!1,inFlow:Q=!1,type:J}=X,H="indent"in $?$.indent:null;if(U&&typeof H==="number")H+=2;if(!J)switch($.type){case"single-quoted-scalar":J="QUOTE_SINGLE";break;case"double-quoted-scalar":J="QUOTE_DOUBLE";break;case"block-scalar":{let _=$.props[0];if(_.type!=="block-scalar-header")throw Error("Invalid block scalar header");J=_.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:J="PLAIN"}let q=d9.stringifyString({type:J,value:Z},{implicitKey:z||H===null,indent:H!==null&&H>0?" ".repeat(H):"",inFlow:Q,options:{blockQuote:!0,lineWidth:-1}});switch(q[0]){case"|":case">":iz($,q);break;case'"':T2($,q,"double-quoted-scalar");break;case"'":T2($,q,"single-quoted-scalar");break;default:T2($,q,"scalar")}}function iz($,Z){let X=Z.indexOf(`
111
111
  `),U=Z.substring(0,X),z=Z.substring(X+1)+`
112
- `;if($.type==="block-scalar"){let Q=$.props[0];if(Q.type!=="block-scalar-header")throw Error("Invalid block scalar header");Q.source=U,$.source=z}else{let{offset:Q}=$,J="indent"in $?$.indent:-1,H=[{type:"block-scalar-header",offset:Q,indent:J,source:U}];if(!c3(H,"end"in $?$.end:void 0))H.push({type:"newline",offset:-1,indent:J,source:`
113
- `});for(let q of Object.keys($))if(q!=="type"&&q!=="offset")delete $[q];Object.assign($,{type:"block-scalar",indent:J,props:H,source:z})}}function c3($,Z){if(Z)for(let X of Z)switch(X.type){case"space":case"comment":$.push(X);break;case"newline":return $.push(X),!0}return!1}function T2($,Z,X){switch($.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":$.type=X,$.source=Z;break;case"block-scalar":{let U=$.props.slice(1),z=Z.length;if($.props[0].type==="block-scalar-header")z-=$.props[0].source.length;for(let Q of U)Q.offset+=z;delete $.props,Object.assign($,{type:X,source:Z,end:U});break}case"block-map":case"block-seq":{let z={type:"newline",offset:$.offset+Z.length,indent:$.indent,source:`
114
- `};delete $.items,Object.assign($,{type:X,source:Z,end:[z]});break}default:{let U="indent"in $?$.indent:-1,z="end"in $&&Array.isArray($.end)?$.end.filter((Q)=>Q.type==="space"||Q.type==="comment"||Q.type==="newline"):[];for(let Q of Object.keys($))if(Q!=="type"&&Q!=="offset")delete $[Q];Object.assign($,{type:X,indent:U,source:Z,end:z})}}}sz.createScalarToken=dz;sz.resolveAsScalar=lz;sz.setScalarValue=cz});var s3=R((tz)=>{var oz=($)=>("type"in $)?J1($):Q1($);function J1($){switch($.type){case"block-scalar":{let Z="";for(let X of $.props)Z+=J1(X);return Z+$.source}case"block-map":case"block-seq":{let Z="";for(let X of $.items)Z+=Q1(X);return Z}case"flow-collection":{let Z=$.start.source;for(let X of $.items)Z+=Q1(X);for(let X of $.end)Z+=X.source;return Z}case"document":{let Z=Q1($);if($.end)for(let X of $.end)Z+=X.source;return Z}default:{let Z=$.source;if("end"in $&&$.end)for(let X of $.end)Z+=X.source;return Z}}}function Q1({start:$,key:Z,sep:X,value:U}){let z="";for(let Q of $)z+=Q.source;if(Z)z+=J1(Z);if(X)for(let Q of X)z+=Q.source;if(U)z+=J1(U);return z}tz.stringify=oz});var n3=R((ZQ)=>{var K2=Symbol("break visit"),$Q=Symbol("skip children"),a3=Symbol("remove item");function I0($,Z){if("type"in $&&$.type==="document")$={start:$.start,value:$.value};r3(Object.freeze([]),$,Z)}I0.BREAK=K2;I0.SKIP=$Q;I0.REMOVE=a3;I0.itemAtPath=($,Z)=>{let X=$;for(let[U,z]of Z){let Q=X?.[U];if(Q&&"items"in Q)X=Q.items[z];else return}return X};I0.parentCollection=($,Z)=>{let X=I0.itemAtPath($,Z.slice(0,-1)),U=Z[Z.length-1][0],z=X?.[U];if(z&&"items"in z)return z;throw Error("Parent collection not found")};function r3($,Z,X){let U=X(Z,$);if(typeof U==="symbol")return U;for(let z of["key","value"]){let Q=Z[z];if(Q&&"items"in Q){for(let J=0;J<Q.items.length;++J){let H=r3(Object.freeze($.concat([[z,J]])),Q.items[J],X);if(typeof H==="number")J=H-1;else if(H===K2)return K2;else if(H===a3)Q.items.splice(J,1),J-=1}if(typeof U==="function"&&z==="key")U=U(Z,$)}}return typeof U==="function"?U(Z,$):U}ZQ.visit=I0});var H1=R((GQ)=>{var A2=i3(),UQ=s3(),zQ=n3(),N2="\uFEFF",w2="\x02",b2="\x18",C2="\x1F",QQ=($)=>!!$&&("items"in $),JQ=($)=>!!$&&($.type==="scalar"||$.type==="single-quoted-scalar"||$.type==="double-quoted-scalar"||$.type==="block-scalar");function HQ($){switch($){case N2:return"<BOM>";case w2:return"<DOC>";case b2:return"<FLOW_END>";case C2:return"<SCALAR>";default:return JSON.stringify($)}}function qQ($){switch($){case N2:return"byte-order-mark";case w2:return"doc-mode";case b2:return"flow-error-end";case C2:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
112
+ `;if($.type==="block-scalar"){let Q=$.props[0];if(Q.type!=="block-scalar-header")throw Error("Invalid block scalar header");Q.source=U,$.source=z}else{let{offset:Q}=$,J="indent"in $?$.indent:-1,H=[{type:"block-scalar-header",offset:Q,indent:J,source:U}];if(!c9(H,"end"in $?$.end:void 0))H.push({type:"newline",offset:-1,indent:J,source:`
113
+ `});for(let q of Object.keys($))if(q!=="type"&&q!=="offset")delete $[q];Object.assign($,{type:"block-scalar",indent:J,props:H,source:z})}}function c9($,Z){if(Z)for(let X of Z)switch(X.type){case"space":case"comment":$.push(X);break;case"newline":return $.push(X),!0}return!1}function T2($,Z,X){switch($.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":$.type=X,$.source=Z;break;case"block-scalar":{let U=$.props.slice(1),z=Z.length;if($.props[0].type==="block-scalar-header")z-=$.props[0].source.length;for(let Q of U)Q.offset+=z;delete $.props,Object.assign($,{type:X,source:Z,end:U});break}case"block-map":case"block-seq":{let z={type:"newline",offset:$.offset+Z.length,indent:$.indent,source:`
114
+ `};delete $.items,Object.assign($,{type:X,source:Z,end:[z]});break}default:{let U="indent"in $?$.indent:-1,z="end"in $&&Array.isArray($.end)?$.end.filter((Q)=>Q.type==="space"||Q.type==="comment"||Q.type==="newline"):[];for(let Q of Object.keys($))if(Q!=="type"&&Q!=="offset")delete $[Q];Object.assign($,{type:X,indent:U,source:Z,end:z})}}}sz.createScalarToken=dz;sz.resolveAsScalar=lz;sz.setScalarValue=cz});var s9=D((tz)=>{var oz=($)=>("type"in $)?J1($):Q1($);function J1($){switch($.type){case"block-scalar":{let Z="";for(let X of $.props)Z+=J1(X);return Z+$.source}case"block-map":case"block-seq":{let Z="";for(let X of $.items)Z+=Q1(X);return Z}case"flow-collection":{let Z=$.start.source;for(let X of $.items)Z+=Q1(X);for(let X of $.end)Z+=X.source;return Z}case"document":{let Z=Q1($);if($.end)for(let X of $.end)Z+=X.source;return Z}default:{let Z=$.source;if("end"in $&&$.end)for(let X of $.end)Z+=X.source;return Z}}}function Q1({start:$,key:Z,sep:X,value:U}){let z="";for(let Q of $)z+=Q.source;if(Z)z+=J1(Z);if(X)for(let Q of X)z+=Q.source;if(U)z+=J1(U);return z}tz.stringify=oz});var n9=D((ZQ)=>{var K2=Symbol("break visit"),$Q=Symbol("skip children"),a9=Symbol("remove item");function R0($,Z){if("type"in $&&$.type==="document")$={start:$.start,value:$.value};r9(Object.freeze([]),$,Z)}R0.BREAK=K2;R0.SKIP=$Q;R0.REMOVE=a9;R0.itemAtPath=($,Z)=>{let X=$;for(let[U,z]of Z){let Q=X?.[U];if(Q&&"items"in Q)X=Q.items[z];else return}return X};R0.parentCollection=($,Z)=>{let X=R0.itemAtPath($,Z.slice(0,-1)),U=Z[Z.length-1][0],z=X?.[U];if(z&&"items"in z)return z;throw Error("Parent collection not found")};function r9($,Z,X){let U=X(Z,$);if(typeof U==="symbol")return U;for(let z of["key","value"]){let Q=Z[z];if(Q&&"items"in Q){for(let J=0;J<Q.items.length;++J){let H=r9(Object.freeze($.concat([[z,J]])),Q.items[J],X);if(typeof H==="number")J=H-1;else if(H===K2)return K2;else if(H===a9)Q.items.splice(J,1),J-=1}if(typeof U==="function"&&z==="key")U=U(Z,$)}}return typeof U==="function"?U(Z,$):U}ZQ.visit=R0});var H1=D((_Q)=>{var A2=i9(),UQ=s9(),zQ=n9(),N2="\uFEFF",w2="\x02",b2="\x18",C2="\x1F",QQ=($)=>!!$&&("items"in $),JQ=($)=>!!$&&($.type==="scalar"||$.type==="single-quoted-scalar"||$.type==="double-quoted-scalar"||$.type==="block-scalar");function HQ($){switch($){case N2:return"<BOM>";case w2:return"<DOC>";case b2:return"<FLOW_END>";case C2:return"<SCALAR>";default:return JSON.stringify($)}}function qQ($){switch($){case N2:return"byte-order-mark";case w2:return"doc-mode";case b2:return"flow-error-end";case C2:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
115
115
  `:case`\r
116
- `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch($[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}GQ.createScalarToken=A2.createScalarToken;GQ.resolveAsScalar=A2.resolveAsScalar;GQ.setScalarValue=A2.setScalarValue;GQ.stringify=UQ.stringify;GQ.visit=zQ.visit;GQ.BOM=N2;GQ.DOCUMENT=w2;GQ.FLOW_END=b2;GQ.SCALAR=C2;GQ.isCollection=QQ;GQ.isScalar=JQ;GQ.prettyToken=HQ;GQ.tokenType=qQ});var S2=R((AQ)=>{var W$=H1();function p($){switch($){case void 0:case" ":case`
117
- `:case"\r":case"\t":return!0;default:return!1}}var o3=new Set("0123456789ABCDEFabcdef"),TQ=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),q1=new Set(",[]{}"),KQ=new Set(` ,[]{}
118
- \r `),j2=($)=>!$||KQ.has($);class t3{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex($,Z=!1){if($){if(typeof $!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+$:$,this.lineEndPos=null}this.atEnd=!Z;let X=this.next??"stream";while(X&&(Z||this.hasChars(1)))X=yield*this.parseNext(X)}atLineEnd(){let $=this.pos,Z=this.buffer[$];while(Z===" "||Z==="\t")Z=this.buffer[++$];if(!Z||Z==="#"||Z===`
116
+ `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch($[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}_Q.createScalarToken=A2.createScalarToken;_Q.resolveAsScalar=A2.resolveAsScalar;_Q.setScalarValue=A2.setScalarValue;_Q.stringify=UQ.stringify;_Q.visit=zQ.visit;_Q.BOM=N2;_Q.DOCUMENT=w2;_Q.FLOW_END=b2;_Q.SCALAR=C2;_Q.isCollection=QQ;_Q.isScalar=JQ;_Q.prettyToken=HQ;_Q.tokenType=qQ});var S2=D((AQ)=>{var W$=H1();function p($){switch($){case void 0:case" ":case`
117
+ `:case"\r":case"\t":return!0;default:return!1}}var o9=new Set("0123456789ABCDEFabcdef"),TQ=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),q1=new Set(",[]{}"),KQ=new Set(` ,[]{}
118
+ \r `),j2=($)=>!$||KQ.has($);class t9{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex($,Z=!1){if($){if(typeof $!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+$:$,this.lineEndPos=null}this.atEnd=!Z;let X=this.next??"stream";while(X&&(Z||this.hasChars(1)))X=yield*this.parseNext(X)}atLineEnd(){let $=this.pos,Z=this.buffer[$];while(Z===" "||Z==="\t")Z=this.buffer[++$];if(!Z||Z==="#"||Z===`
119
119
  `)return!0;if(Z==="\r")return this.buffer[$+1]===`
120
120
  `;return!1}charAt($){return this.buffer[this.pos+$]}continueScalar($){let Z=this.buffer[$];if(this.indentNext>0){let X=0;while(Z===" ")Z=this.buffer[++X+$];if(Z==="\r"){let U=this.buffer[X+$+1];if(U===`
121
121
  `||!U&&!this.atEnd)return $+X+1}return Z===`
@@ -130,17 +130,17 @@ ${Z.comment}`:Z.comment}this.doc.range[2]=Z.offset;break}default:this.errors.pus
130
130
  `&&z>=this.pos&&z+1+Z>J)$=z;else break}while(!0);return yield W$.SCALAR,yield*this.pushToIndex($+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let $=this.flowLevel>0,Z=this.pos-1,X=this.pos-1,U;while(U=this.buffer[++X])if(U===":"){let z=this.buffer[X+1];if(p(z)||$&&q1.has(z))break;Z=X}else if(p(U)){let z=this.buffer[X+1];if(U==="\r")if(z===`
131
131
  `)X+=1,U=`
132
132
  `,z=this.buffer[X+1];else Z=X;if(z==="#"||$&&q1.has(z))break;if(U===`
133
- `){let Q=this.continueScalar(X+1);if(Q===-1)break;X=Math.max(X,Q-2)}}else{if($&&q1.has(U))break;Z=X}if(!U&&!this.atEnd)return this.setNext("plain-scalar");return yield W$.SCALAR,yield*this.pushToIndex(Z+1,!0),$?"flow":"doc"}*pushCount($){if($>0)return yield this.buffer.substr(this.pos,$),this.pos+=$,$;return 0}*pushToIndex($,Z){let X=this.buffer.slice(this.pos,$);if(X)return yield X,this.pos+=X.length,X.length;else if(Z)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(j2))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let $=this.flowLevel>0,Z=this.charAt(1);if(p(Z)||$&&q1.has(Z)){if(!$)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=!1;return(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let $=this.pos+2,Z=this.buffer[$];while(!p(Z)&&Z!==">")Z=this.buffer[++$];return yield*this.pushToIndex(Z===">"?$+1:$,!1)}else{let $=this.pos+1,Z=this.buffer[$];while(Z)if(TQ.has(Z))Z=this.buffer[++$];else if(Z==="%"&&o3.has(this.buffer[$+1])&&o3.has(this.buffer[$+2]))Z=this.buffer[$+=3];else break;return yield*this.pushToIndex($,!1)}}*pushNewline(){let $=this.buffer[this.pos];if($===`
133
+ `){let Q=this.continueScalar(X+1);if(Q===-1)break;X=Math.max(X,Q-2)}}else{if($&&q1.has(U))break;Z=X}if(!U&&!this.atEnd)return this.setNext("plain-scalar");return yield W$.SCALAR,yield*this.pushToIndex(Z+1,!0),$?"flow":"doc"}*pushCount($){if($>0)return yield this.buffer.substr(this.pos,$),this.pos+=$,$;return 0}*pushToIndex($,Z){let X=this.buffer.slice(this.pos,$);if(X)return yield X,this.pos+=X.length,X.length;else if(Z)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(j2))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let $=this.flowLevel>0,Z=this.charAt(1);if(p(Z)||$&&q1.has(Z)){if(!$)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=!1;return(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let $=this.pos+2,Z=this.buffer[$];while(!p(Z)&&Z!==">")Z=this.buffer[++$];return yield*this.pushToIndex(Z===">"?$+1:$,!1)}else{let $=this.pos+1,Z=this.buffer[$];while(Z)if(TQ.has(Z))Z=this.buffer[++$];else if(Z==="%"&&o9.has(this.buffer[$+1])&&o9.has(this.buffer[$+2]))Z=this.buffer[$+=3];else break;return yield*this.pushToIndex($,!1)}}*pushNewline(){let $=this.buffer[this.pos];if($===`
134
134
  `)return yield*this.pushCount(1);else if($==="\r"&&this.charAt(1)===`
135
- `)return yield*this.pushCount(2);else return 0}*pushSpaces($){let Z=this.pos-1,X;do X=this.buffer[++Z];while(X===" "||$&&X==="\t");let U=Z-this.pos;if(U>0)yield this.buffer.substr(this.pos,U),this.pos=Z;return U}*pushUntil($){let Z=this.pos,X=this.buffer[Z];while(!$(X))X=this.buffer[++Z];return yield*this.pushToIndex(Z,!1)}}AQ.Lexer=t3});var E2=R((wQ)=>{class e3{constructor(){this.lineStarts=[],this.addNewLine=($)=>this.lineStarts.push($),this.linePos=($)=>{let Z=0,X=this.lineStarts.length;while(Z<X){let z=Z+X>>1;if(this.lineStarts[z]<$)Z=z+1;else X=z}if(this.lineStarts[Z]===$)return{line:Z+1,col:1};if(Z===0)return{line:0,col:$};let U=this.lineStarts[Z-1];return{line:Z,col:$-U+1}}}}wQ.LineCounter=e3});var g2=R((SQ)=>{var CQ=p0("process"),$8=H1(),jQ=S2();function H0($,Z){for(let X=0;X<$.length;++X)if($[X].type===Z)return!0;return!1}function Z8($){for(let Z=0;Z<$.length;++Z)switch($[Z].type){case"space":case"comment":case"newline":break;default:return Z}return-1}function U8($){switch($?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function G1($){switch($.type){case"document":return $.start;case"block-map":{let Z=$.items[$.items.length-1];return Z.sep??Z.start}case"block-seq":return $.items[$.items.length-1].start;default:return[]}}function y0($){if($.length===0)return[];let Z=$.length;$:while(--Z>=0)switch($[Z].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break $}while($[++Z]?.type==="space");return $.splice(Z,$.length)}function X8($){if($.start.type==="flow-seq-start"){for(let Z of $.items)if(Z.sep&&!Z.value&&!H0(Z.start,"explicit-key-ind")&&!H0(Z.sep,"map-value-ind")){if(Z.key)Z.value=Z.key;if(delete Z.key,U8(Z.value))if(Z.value.end)Array.prototype.push.apply(Z.value.end,Z.sep);else Z.value.end=Z.sep;else Array.prototype.push.apply(Z.start,Z.sep);delete Z.sep}}}class z8{constructor($){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new jQ.Lexer,this.onNewLine=$}*parse($,Z=!1){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(let X of this.lexer.lex($,Z))yield*this.next(X);if(!Z)yield*this.end()}*next($){if(this.source=$,CQ.env.LOG_TOKENS)console.log("|",$8.prettyToken($));if(this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=$.length;return}let Z=$8.tokenType($);if(!Z){let X=`Not a YAML token: ${$}`;yield*this.pop({type:"error",offset:this.offset,message:X,source:$}),this.offset+=$.length}else if(Z==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=Z,yield*this.step(),Z){case"newline":if(this.atNewLine=!0,this.indent=0,this.onNewLine)this.onNewLine(this.offset+$.length);break;case"space":if(this.atNewLine&&$[0]===" ")this.indent+=$.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=$.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=$.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let $=this.peek(1);if(this.type==="doc-end"&&$?.type!=="doc-end"){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!$)return yield*this.stream();switch($.type){case"document":return yield*this.document($);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar($);case"block-scalar":return yield*this.blockScalar($);case"block-map":return yield*this.blockMap($);case"block-seq":return yield*this.blockSequence($);case"flow-collection":return yield*this.flowCollection($);case"doc-end":return yield*this.documentEnd($)}yield*this.pop()}peek($){return this.stack[this.stack.length-$]}*pop($){let Z=$??this.stack.pop();if(!Z)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield Z;else{let X=this.peek(1);if(Z.type==="block-scalar")Z.indent="indent"in X?X.indent:0;else if(Z.type==="flow-collection"&&X.type==="document")Z.indent=0;if(Z.type==="flow-collection")X8(Z);switch(X.type){case"document":X.value=Z;break;case"block-scalar":X.props.push(Z);break;case"block-map":{let U=X.items[X.items.length-1];if(U.value){X.items.push({start:[],key:Z,sep:[]}),this.onKeyLine=!0;return}else if(U.sep)U.value=Z;else{Object.assign(U,{key:Z,sep:[]}),this.onKeyLine=!U.explicitKey;return}break}case"block-seq":{let U=X.items[X.items.length-1];if(U.value)X.items.push({start:[],value:Z});else U.value=Z;break}case"flow-collection":{let U=X.items[X.items.length-1];if(!U||U.value)X.items.push({start:[],key:Z,sep:[]});else if(U.sep)U.value=Z;else Object.assign(U,{key:Z,sep:[]});return}default:yield*this.pop(),yield*this.pop(Z)}if((X.type==="document"||X.type==="block-map"||X.type==="block-seq")&&(Z.type==="block-map"||Z.type==="block-seq")){let U=Z.items[Z.items.length-1];if(U&&!U.sep&&!U.value&&U.start.length>0&&Z8(U.start)===-1&&(Z.indent===0||U.start.every((z)=>z.type!=="comment"||z.indent<Z.indent))){if(X.type==="document")X.end=U.start;else X.items.push({start:U.start});Z.items.splice(-1,1)}}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let $={type:"document",offset:this.offset,start:[]};if(this.type==="doc-start")$.start.push(this.sourceToken);this.stack.push($);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document($){if($.value)return yield*this.lineEnd($);switch(this.type){case"doc-start":{if(Z8($.start)!==-1)yield*this.pop(),yield*this.step();else $.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":$.start.push(this.sourceToken);return}let Z=this.startBlockValue($);if(Z)this.stack.push(Z);else yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar($){if(this.type==="map-value-ind"){let Z=G1(this.peek(2)),X=y0(Z),U;if($.end)U=$.end,U.push(this.sourceToken),delete $.end;else U=[this.sourceToken];let z={type:"block-map",offset:$.offset,indent:$.indent,items:[{start:X,key:$,sep:U}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=z}else yield*this.lineEnd($)}*blockScalar($){switch(this.type){case"space":case"comment":case"newline":$.props.push(this.sourceToken);return;case"scalar":if($.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let Z=this.source.indexOf(`
135
+ `)return yield*this.pushCount(2);else return 0}*pushSpaces($){let Z=this.pos-1,X;do X=this.buffer[++Z];while(X===" "||$&&X==="\t");let U=Z-this.pos;if(U>0)yield this.buffer.substr(this.pos,U),this.pos=Z;return U}*pushUntil($){let Z=this.pos,X=this.buffer[Z];while(!$(X))X=this.buffer[++Z];return yield*this.pushToIndex(Z,!1)}}AQ.Lexer=t9});var E2=D((wQ)=>{class e9{constructor(){this.lineStarts=[],this.addNewLine=($)=>this.lineStarts.push($),this.linePos=($)=>{let Z=0,X=this.lineStarts.length;while(Z<X){let z=Z+X>>1;if(this.lineStarts[z]<$)Z=z+1;else X=z}if(this.lineStarts[Z]===$)return{line:Z+1,col:1};if(Z===0)return{line:0,col:$};let U=this.lineStarts[Z-1];return{line:Z,col:$-U+1}}}}wQ.LineCounter=e9});var g2=D((SQ)=>{var CQ=p0("process"),$3=H1(),jQ=S2();function H0($,Z){for(let X=0;X<$.length;++X)if($[X].type===Z)return!0;return!1}function Z3($){for(let Z=0;Z<$.length;++Z)switch($[Z].type){case"space":case"comment":case"newline":break;default:return Z}return-1}function U3($){switch($?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function _1($){switch($.type){case"document":return $.start;case"block-map":{let Z=$.items[$.items.length-1];return Z.sep??Z.start}case"block-seq":return $.items[$.items.length-1].start;default:return[]}}function y0($){if($.length===0)return[];let Z=$.length;$:while(--Z>=0)switch($[Z].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break $}while($[++Z]?.type==="space");return $.splice(Z,$.length)}function X3($){if($.start.type==="flow-seq-start"){for(let Z of $.items)if(Z.sep&&!Z.value&&!H0(Z.start,"explicit-key-ind")&&!H0(Z.sep,"map-value-ind")){if(Z.key)Z.value=Z.key;if(delete Z.key,U3(Z.value))if(Z.value.end)Array.prototype.push.apply(Z.value.end,Z.sep);else Z.value.end=Z.sep;else Array.prototype.push.apply(Z.start,Z.sep);delete Z.sep}}}class z3{constructor($){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new jQ.Lexer,this.onNewLine=$}*parse($,Z=!1){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(let X of this.lexer.lex($,Z))yield*this.next(X);if(!Z)yield*this.end()}*next($){if(this.source=$,CQ.env.LOG_TOKENS)console.log("|",$3.prettyToken($));if(this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=$.length;return}let Z=$3.tokenType($);if(!Z){let X=`Not a YAML token: ${$}`;yield*this.pop({type:"error",offset:this.offset,message:X,source:$}),this.offset+=$.length}else if(Z==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=Z,yield*this.step(),Z){case"newline":if(this.atNewLine=!0,this.indent=0,this.onNewLine)this.onNewLine(this.offset+$.length);break;case"space":if(this.atNewLine&&$[0]===" ")this.indent+=$.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=$.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=$.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let $=this.peek(1);if(this.type==="doc-end"&&$?.type!=="doc-end"){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!$)return yield*this.stream();switch($.type){case"document":return yield*this.document($);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar($);case"block-scalar":return yield*this.blockScalar($);case"block-map":return yield*this.blockMap($);case"block-seq":return yield*this.blockSequence($);case"flow-collection":return yield*this.flowCollection($);case"doc-end":return yield*this.documentEnd($)}yield*this.pop()}peek($){return this.stack[this.stack.length-$]}*pop($){let Z=$??this.stack.pop();if(!Z)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield Z;else{let X=this.peek(1);if(Z.type==="block-scalar")Z.indent="indent"in X?X.indent:0;else if(Z.type==="flow-collection"&&X.type==="document")Z.indent=0;if(Z.type==="flow-collection")X3(Z);switch(X.type){case"document":X.value=Z;break;case"block-scalar":X.props.push(Z);break;case"block-map":{let U=X.items[X.items.length-1];if(U.value){X.items.push({start:[],key:Z,sep:[]}),this.onKeyLine=!0;return}else if(U.sep)U.value=Z;else{Object.assign(U,{key:Z,sep:[]}),this.onKeyLine=!U.explicitKey;return}break}case"block-seq":{let U=X.items[X.items.length-1];if(U.value)X.items.push({start:[],value:Z});else U.value=Z;break}case"flow-collection":{let U=X.items[X.items.length-1];if(!U||U.value)X.items.push({start:[],key:Z,sep:[]});else if(U.sep)U.value=Z;else Object.assign(U,{key:Z,sep:[]});return}default:yield*this.pop(),yield*this.pop(Z)}if((X.type==="document"||X.type==="block-map"||X.type==="block-seq")&&(Z.type==="block-map"||Z.type==="block-seq")){let U=Z.items[Z.items.length-1];if(U&&!U.sep&&!U.value&&U.start.length>0&&Z3(U.start)===-1&&(Z.indent===0||U.start.every((z)=>z.type!=="comment"||z.indent<Z.indent))){if(X.type==="document")X.end=U.start;else X.items.push({start:U.start});Z.items.splice(-1,1)}}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let $={type:"document",offset:this.offset,start:[]};if(this.type==="doc-start")$.start.push(this.sourceToken);this.stack.push($);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document($){if($.value)return yield*this.lineEnd($);switch(this.type){case"doc-start":{if(Z3($.start)!==-1)yield*this.pop(),yield*this.step();else $.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":$.start.push(this.sourceToken);return}let Z=this.startBlockValue($);if(Z)this.stack.push(Z);else yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar($){if(this.type==="map-value-ind"){let Z=_1(this.peek(2)),X=y0(Z),U;if($.end)U=$.end,U.push(this.sourceToken),delete $.end;else U=[this.sourceToken];let z={type:"block-map",offset:$.offset,indent:$.indent,items:[{start:X,key:$,sep:U}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=z}else yield*this.lineEnd($)}*blockScalar($){switch(this.type){case"space":case"comment":case"newline":$.props.push(this.sourceToken);return;case"scalar":if($.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let Z=this.source.indexOf(`
136
136
  `)+1;while(Z!==0)this.onNewLine(this.offset+Z),Z=this.source.indexOf(`
137
- `,Z)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap($){let Z=$.items[$.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,Z.value){let X="end"in Z.value?Z.value.end:void 0;if((Array.isArray(X)?X[X.length-1]:void 0)?.type==="comment")X?.push(this.sourceToken);else $.items.push({start:[this.sourceToken]})}else if(Z.sep)Z.sep.push(this.sourceToken);else Z.start.push(this.sourceToken);return;case"space":case"comment":if(Z.value)$.items.push({start:[this.sourceToken]});else if(Z.sep)Z.sep.push(this.sourceToken);else{if(this.atIndentedComment(Z.start,$.indent)){let U=$.items[$.items.length-2]?.value?.end;if(Array.isArray(U)){Array.prototype.push.apply(U,Z.start),U.push(this.sourceToken),$.items.pop();return}}Z.start.push(this.sourceToken)}return}if(this.indent>=$.indent){let X=!this.onKeyLine&&this.indent===$.indent,U=X&&(Z.sep||Z.explicitKey)&&this.type!=="seq-item-ind",z=[];if(U&&Z.sep&&!Z.value){let Q=[];for(let J=0;J<Z.sep.length;++J){let H=Z.sep[J];switch(H.type){case"newline":Q.push(J);break;case"space":break;case"comment":if(H.indent>$.indent)Q.length=0;break;default:Q.length=0}}if(Q.length>=2)z=Z.sep.splice(Q[1])}switch(this.type){case"anchor":case"tag":if(U||Z.value)z.push(this.sourceToken),$.items.push({start:z}),this.onKeyLine=!0;else if(Z.sep)Z.sep.push(this.sourceToken);else Z.start.push(this.sourceToken);return;case"explicit-key-ind":if(!Z.sep&&!Z.explicitKey)Z.start.push(this.sourceToken),Z.explicitKey=!0;else if(U||Z.value)z.push(this.sourceToken),$.items.push({start:z,explicitKey:!0});else this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]});this.onKeyLine=!0;return;case"map-value-ind":if(Z.explicitKey)if(!Z.sep)if(H0(Z.start,"newline"))Object.assign(Z,{key:null,sep:[this.sourceToken]});else{let Q=y0(Z.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:Q,key:null,sep:[this.sourceToken]}]})}else if(Z.value)$.items.push({start:[],key:null,sep:[this.sourceToken]});else if(H0(Z.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:z,key:null,sep:[this.sourceToken]}]});else if(U8(Z.key)&&!H0(Z.sep,"newline")){let Q=y0(Z.start),J=Z.key,H=Z.sep;H.push(this.sourceToken),delete Z.key,delete Z.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:Q,key:J,sep:H}]})}else if(z.length>0)Z.sep=Z.sep.concat(z,this.sourceToken);else Z.sep.push(this.sourceToken);else if(!Z.sep)Object.assign(Z,{key:null,sep:[this.sourceToken]});else if(Z.value||U)$.items.push({start:z,key:null,sep:[this.sourceToken]});else if(H0(Z.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]});else Z.sep.push(this.sourceToken);this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let Q=this.flowScalar(this.type);if(U||Z.value)$.items.push({start:z,key:Q,sep:[]}),this.onKeyLine=!0;else if(Z.sep)this.stack.push(Q);else Object.assign(Z,{key:Q,sep:[]}),this.onKeyLine=!0;return}default:{let Q=this.startBlockValue($);if(Q){if(Q.type==="block-seq"){if(!Z.explicitKey&&Z.sep&&!H0(Z.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else if(X)$.items.push({start:z});this.stack.push(Q);return}}}}yield*this.pop(),yield*this.step()}*blockSequence($){let Z=$.items[$.items.length-1];switch(this.type){case"newline":if(Z.value){let X="end"in Z.value?Z.value.end:void 0;if((Array.isArray(X)?X[X.length-1]:void 0)?.type==="comment")X?.push(this.sourceToken);else $.items.push({start:[this.sourceToken]})}else Z.start.push(this.sourceToken);return;case"space":case"comment":if(Z.value)$.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(Z.start,$.indent)){let U=$.items[$.items.length-2]?.value?.end;if(Array.isArray(U)){Array.prototype.push.apply(U,Z.start),U.push(this.sourceToken),$.items.pop();return}}Z.start.push(this.sourceToken)}return;case"anchor":case"tag":if(Z.value||this.indent<=$.indent)break;Z.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==$.indent)break;if(Z.value||H0(Z.start,"seq-item-ind"))$.items.push({start:[this.sourceToken]});else Z.start.push(this.sourceToken);return}if(this.indent>$.indent){let X=this.startBlockValue($);if(X){this.stack.push(X);return}}yield*this.pop(),yield*this.step()}*flowCollection($){let Z=$.items[$.items.length-1];if(this.type==="flow-error-end"){let X;do yield*this.pop(),X=this.peek(1);while(X?.type==="flow-collection")}else if($.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!Z||Z.sep)$.items.push({start:[this.sourceToken]});else Z.start.push(this.sourceToken);return;case"map-value-ind":if(!Z||Z.value)$.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Z.sep)Z.sep.push(this.sourceToken);else Object.assign(Z,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!Z||Z.value)$.items.push({start:[this.sourceToken]});else if(Z.sep)Z.sep.push(this.sourceToken);else Z.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let U=this.flowScalar(this.type);if(!Z||Z.value)$.items.push({start:[],key:U,sep:[]});else if(Z.sep)this.stack.push(U);else Object.assign(Z,{key:U,sep:[]});return}case"flow-map-end":case"flow-seq-end":$.end.push(this.sourceToken);return}let X=this.startBlockValue($);if(X)this.stack.push(X);else yield*this.pop(),yield*this.step()}else{let X=this.peek(2);if(X.type==="block-map"&&(this.type==="map-value-ind"&&X.indent===$.indent||this.type==="newline"&&!X.items[X.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&X.type!=="flow-collection"){let U=G1(X),z=y0(U);X8($);let Q=$.end.splice(1,$.end.length);Q.push(this.sourceToken);let J={type:"block-map",offset:$.offset,indent:$.indent,items:[{start:z,key:$,sep:Q}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=J}else yield*this.lineEnd($)}}flowScalar($){if(this.onNewLine){let Z=this.source.indexOf(`
137
+ `,Z)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap($){let Z=$.items[$.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,Z.value){let X="end"in Z.value?Z.value.end:void 0;if((Array.isArray(X)?X[X.length-1]:void 0)?.type==="comment")X?.push(this.sourceToken);else $.items.push({start:[this.sourceToken]})}else if(Z.sep)Z.sep.push(this.sourceToken);else Z.start.push(this.sourceToken);return;case"space":case"comment":if(Z.value)$.items.push({start:[this.sourceToken]});else if(Z.sep)Z.sep.push(this.sourceToken);else{if(this.atIndentedComment(Z.start,$.indent)){let U=$.items[$.items.length-2]?.value?.end;if(Array.isArray(U)){Array.prototype.push.apply(U,Z.start),U.push(this.sourceToken),$.items.pop();return}}Z.start.push(this.sourceToken)}return}if(this.indent>=$.indent){let X=!this.onKeyLine&&this.indent===$.indent,U=X&&(Z.sep||Z.explicitKey)&&this.type!=="seq-item-ind",z=[];if(U&&Z.sep&&!Z.value){let Q=[];for(let J=0;J<Z.sep.length;++J){let H=Z.sep[J];switch(H.type){case"newline":Q.push(J);break;case"space":break;case"comment":if(H.indent>$.indent)Q.length=0;break;default:Q.length=0}}if(Q.length>=2)z=Z.sep.splice(Q[1])}switch(this.type){case"anchor":case"tag":if(U||Z.value)z.push(this.sourceToken),$.items.push({start:z}),this.onKeyLine=!0;else if(Z.sep)Z.sep.push(this.sourceToken);else Z.start.push(this.sourceToken);return;case"explicit-key-ind":if(!Z.sep&&!Z.explicitKey)Z.start.push(this.sourceToken),Z.explicitKey=!0;else if(U||Z.value)z.push(this.sourceToken),$.items.push({start:z,explicitKey:!0});else this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]});this.onKeyLine=!0;return;case"map-value-ind":if(Z.explicitKey)if(!Z.sep)if(H0(Z.start,"newline"))Object.assign(Z,{key:null,sep:[this.sourceToken]});else{let Q=y0(Z.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:Q,key:null,sep:[this.sourceToken]}]})}else if(Z.value)$.items.push({start:[],key:null,sep:[this.sourceToken]});else if(H0(Z.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:z,key:null,sep:[this.sourceToken]}]});else if(U3(Z.key)&&!H0(Z.sep,"newline")){let Q=y0(Z.start),J=Z.key,H=Z.sep;H.push(this.sourceToken),delete Z.key,delete Z.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:Q,key:J,sep:H}]})}else if(z.length>0)Z.sep=Z.sep.concat(z,this.sourceToken);else Z.sep.push(this.sourceToken);else if(!Z.sep)Object.assign(Z,{key:null,sep:[this.sourceToken]});else if(Z.value||U)$.items.push({start:z,key:null,sep:[this.sourceToken]});else if(H0(Z.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]});else Z.sep.push(this.sourceToken);this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let Q=this.flowScalar(this.type);if(U||Z.value)$.items.push({start:z,key:Q,sep:[]}),this.onKeyLine=!0;else if(Z.sep)this.stack.push(Q);else Object.assign(Z,{key:Q,sep:[]}),this.onKeyLine=!0;return}default:{let Q=this.startBlockValue($);if(Q){if(Q.type==="block-seq"){if(!Z.explicitKey&&Z.sep&&!H0(Z.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else if(X)$.items.push({start:z});this.stack.push(Q);return}}}}yield*this.pop(),yield*this.step()}*blockSequence($){let Z=$.items[$.items.length-1];switch(this.type){case"newline":if(Z.value){let X="end"in Z.value?Z.value.end:void 0;if((Array.isArray(X)?X[X.length-1]:void 0)?.type==="comment")X?.push(this.sourceToken);else $.items.push({start:[this.sourceToken]})}else Z.start.push(this.sourceToken);return;case"space":case"comment":if(Z.value)$.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(Z.start,$.indent)){let U=$.items[$.items.length-2]?.value?.end;if(Array.isArray(U)){Array.prototype.push.apply(U,Z.start),U.push(this.sourceToken),$.items.pop();return}}Z.start.push(this.sourceToken)}return;case"anchor":case"tag":if(Z.value||this.indent<=$.indent)break;Z.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==$.indent)break;if(Z.value||H0(Z.start,"seq-item-ind"))$.items.push({start:[this.sourceToken]});else Z.start.push(this.sourceToken);return}if(this.indent>$.indent){let X=this.startBlockValue($);if(X){this.stack.push(X);return}}yield*this.pop(),yield*this.step()}*flowCollection($){let Z=$.items[$.items.length-1];if(this.type==="flow-error-end"){let X;do yield*this.pop(),X=this.peek(1);while(X?.type==="flow-collection")}else if($.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!Z||Z.sep)$.items.push({start:[this.sourceToken]});else Z.start.push(this.sourceToken);return;case"map-value-ind":if(!Z||Z.value)$.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Z.sep)Z.sep.push(this.sourceToken);else Object.assign(Z,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!Z||Z.value)$.items.push({start:[this.sourceToken]});else if(Z.sep)Z.sep.push(this.sourceToken);else Z.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let U=this.flowScalar(this.type);if(!Z||Z.value)$.items.push({start:[],key:U,sep:[]});else if(Z.sep)this.stack.push(U);else Object.assign(Z,{key:U,sep:[]});return}case"flow-map-end":case"flow-seq-end":$.end.push(this.sourceToken);return}let X=this.startBlockValue($);if(X)this.stack.push(X);else yield*this.pop(),yield*this.step()}else{let X=this.peek(2);if(X.type==="block-map"&&(this.type==="map-value-ind"&&X.indent===$.indent||this.type==="newline"&&!X.items[X.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&X.type!=="flow-collection"){let U=_1(X),z=y0(U);X3($);let Q=$.end.splice(1,$.end.length);Q.push(this.sourceToken);let J={type:"block-map",offset:$.offset,indent:$.indent,items:[{start:z,key:$,sep:Q}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=J}else yield*this.lineEnd($)}}flowScalar($){if(this.onNewLine){let Z=this.source.indexOf(`
138
138
  `)+1;while(Z!==0)this.onNewLine(this.offset+Z),Z=this.source.indexOf(`
139
- `,Z)+1}return{type:$,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue($){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let Z=G1($),X=y0(Z);return X.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:X,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let Z=G1($),X=y0(Z);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:X,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment($,Z){if(this.type!=="comment")return!1;if(this.indent<=Z)return!1;return $.every((X)=>X.type==="newline"||X.type==="space")}*documentEnd($){if(this.type!=="doc-mode"){if($.end)$.end.push(this.sourceToken);else $.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd($){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:if($.end)$.end.push(this.sourceToken);else $.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}SQ.Parser=z8});var G8=R((vQ)=>{var Q8=P2(),gQ=_$(),L$=Y$(),yQ=E1(),fQ=b(),hQ=E2(),J8=g2();function H8($){let Z=$.prettyErrors!==!1;return{lineCounter:$.lineCounter||Z&&new hQ.LineCounter||null,prettyErrors:Z}}function xQ($,Z={}){let{lineCounter:X,prettyErrors:U}=H8(Z),z=new J8.Parser(X?.addNewLine),Q=new Q8.Composer(Z),J=Array.from(Q.compose(z.parse($)));if(U&&X)for(let H of J)H.errors.forEach(L$.prettifyError($,X)),H.warnings.forEach(L$.prettifyError($,X));if(J.length>0)return J;return Object.assign([],{empty:!0},Q.streamInfo())}function q8($,Z={}){let{lineCounter:X,prettyErrors:U}=H8(Z),z=new J8.Parser(X?.addNewLine),Q=new Q8.Composer(Z),J=null;for(let H of Q.compose(z.parse($),!0,$.length))if(!J)J=H;else if(J.options.logLevel!=="silent"){J.errors.push(new L$.YAMLParseError(H.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}if(U&&X)J.errors.forEach(L$.prettifyError($,X)),J.warnings.forEach(L$.prettifyError($,X));return J}function uQ($,Z,X){let U=void 0;if(typeof Z==="function")U=Z;else if(X===void 0&&Z&&typeof Z==="object")X=Z;let z=q8($,X);if(!z)return null;if(z.warnings.forEach((Q)=>yQ.warn(z.options.logLevel,Q)),z.errors.length>0)if(z.options.logLevel!=="silent")throw z.errors[0];else z.errors=[];return z.toJS(Object.assign({reviver:U},X))}function kQ($,Z,X){let U=null;if(typeof Z==="function"||Array.isArray(Z))U=Z;else if(X===void 0&&Z)X=Z;if(typeof X==="string")X=X.length;if(typeof X==="number"){let z=Math.round(X);X=z<1?void 0:z>8?{indent:8}:{indent:z}}if($===void 0){let{keepUndefined:z}=X??Z??{};if(!z)return}if(fQ.isDocument($)&&!U)return $.toString(X);return new gQ.Document($,U,X).toString(X)}vQ.parse=uQ;vQ.parseAllDocuments=xQ;vQ.parseDocument=q8;vQ.stringify=kQ});var f=[{index:1,path:"project.name",label:"Name",description:"Project name",category:"project"},{index:2,path:"project.goal",label:"Goal",description:"Goal (use case)",category:"project"},{index:3,path:"project.main_language",label:"Language",description:"Primary language",category:"project"},{index:4,path:"human_context.who",label:"Who",description:"Who is this for?",category:"human"},{index:5,path:"human_context.what",label:"What",description:"What are they building",category:"human"},{index:6,path:"human_context.why",label:"Why",description:"Why does it exist",category:"human"},{index:7,path:"human_context.where",label:"Where",description:"Where does it run",category:"human"},{index:8,path:"human_context.when",label:"When",description:"When was it started / timeline",category:"human"},{index:9,path:"human_context.how",label:"How",description:"How is it built",category:"human"},{index:10,path:"stack.frontend",canonical:"stack.framework",label:"Framework",description:"Framework (React, Svelte, etc.)",category:"frontend"},{index:11,path:"stack.css_framework",canonical:"stack.css",label:"CSS",description:"CSS framework",category:"frontend"},{index:12,path:"stack.ui_library",label:"UI Library",description:"UI component library",category:"frontend"},{index:13,path:"stack.state_management",canonical:"stack.state",label:"State",description:"State management",category:"frontend"},{index:14,path:"stack.backend",label:"Backend",description:"Backend framework",category:"backend"},{index:15,path:"stack.api_type",canonical:"stack.api",label:"API",description:"API style (REST, GraphQL, etc.)",category:"backend"},{index:16,path:"stack.runtime",label:"Runtime",description:"Runtime (Node, Bun, Python, etc.)",category:"backend"},{index:17,path:"stack.database",canonical:"stack.db",label:"Database",description:"Database",category:"backend"},{index:18,path:"stack.connection",label:"Connection",description:"Connection method (Prisma, etc.)",category:"backend"},{index:19,path:"stack.hosting",label:"Hosting",description:"Hosting platform",category:"universal"},{index:20,path:"stack.build",label:"Build",description:"Build tool",category:"universal"},{index:21,path:"stack.cicd",label:"CI/CD",description:"CI/CD",category:"universal"},{index:22,path:"stack.monorepo_tool",label:"Monorepo",description:"Monorepo tool",category:"enterprise_infra"},{index:23,path:"stack.package_manager",canonical:"stack.pkg_manager",label:"Package Manager",description:"Package manager",category:"enterprise_infra"},{index:24,path:"stack.workspaces",label:"Workspaces",description:"Workspace configuration",category:"enterprise_infra"},{index:25,path:"monorepo.packages_count",label:"Packages",description:"Number of packages",category:"enterprise_infra"},{index:26,path:"monorepo.build_orchestrator",label:"Build Orchestrator",description:"Build orchestration tool",category:"enterprise_infra"},{index:27,path:"stack.admin",label:"Admin",description:"Admin panel",category:"enterprise_app"},{index:28,path:"stack.cache",label:"Cache",description:"Caching layer",category:"enterprise_app"},{index:29,path:"stack.search",label:"Search",description:"Search engine",category:"enterprise_app"},{index:30,path:"stack.storage",label:"Storage",description:"Object storage",category:"enterprise_app"},{index:31,path:"monorepo.versioning_strategy",label:"Versioning",description:"Version strategy",category:"enterprise_ops"},{index:32,path:"monorepo.shared_configs",label:"Shared Configs",description:"Shared configs",category:"enterprise_ops"},{index:33,path:"monorepo.remote_cache",label:"Remote Cache",description:"Remote build cache",category:"enterprise_ops"}],l0=new Map(f.flatMap(($)=>$.canonical?[[$.path,$],[$.canonical,$]]:[[$.path,$]])),fq=new Map(f.filter(($)=>$.canonical).map(($)=>[$.canonical,$.path])),hq=new Map(f.filter(($)=>$.canonical).map(($)=>[$.path,$.canonical]));function Z9($,Z){let X=(z)=>{let Q=z.split("."),J=$;for(let H of Q)if(J&&typeof J==="object"&&H in J)J=J[H];else return;return J},U=X(Z.path);if(U!==void 0)return U;if(Z.canonical)return X(Z.canonical);return}function PZ($){return f.filter((Z)=>Z.category===$)}var TZ=f.filter(($)=>$.index<=21),KZ=f,F$=new Set(["describe your project goal","development teams","cloud platform","null","none","unknown","n/a","not applicable"]);function _0($){if($===null||$===void 0||$==="")return!0;if(typeof $==="string")return F$.has($.toLowerCase().trim());if(Array.isArray($)&&$.length===0)return!0;if(typeof $==="object"&&Object.keys($).length===0)return!0;return!1}var P0={about:[],documentation:["project","human"],intent:["project","human"],encyclopedia:["project","human"],cli:["project","human","universal"],library:["project","human","universal"],sdk:["project","human","universal"],wasm:["project","human","universal"],html:["project","human","universal"],"server-card":["project","human","universal"],frontend:["project","frontend","human","universal"],website:["project","frontend","human","universal"],mobile:["project","frontend","human","universal"],extension:["project","frontend","human","universal"],mcp:["project","backend","human","universal"],backend:["project","backend","universal","human"],"data-science":["project","backend","human","universal"],fullstack:["project","frontend","backend","universal","human"],svelte:["project","frontend","backend","universal","human"],framework:["project","frontend","backend","universal","human"],"monorepo-root":["project","human","enterprise_infra","enterprise_app","enterprise_ops"],mcpaas:["project","backend","universal","human","enterprise_app","enterprise_ops"],saas:["project","frontend","backend","universal","human","enterprise_app"],enterprise:["project","frontend","backend","universal","human","enterprise_infra","enterprise_app","enterprise_ops"]};var D1=($)=>(Z)=>`\x1B[${$}m${Z}\x1B[0m`,P$=D1("1"),d0=D1("2"),uq=D1("3"),c0={cyan:"#00D4D4",cyanDeep:"#0E8C8C",orange:"#FF6B35"},T$=($)=>`\x1B[38;2;0;212;212m${$}\x1B[0m`,R1=($)=>`\x1B[38;2;14;140;140m${$}\x1B[0m`,T0=($)=>`\x1B[38;5;208m${$}\x1B[0m`;var a=[{name:"TROPHY",indicator:`${T0("\uD83C\uDFC6")} ${T0("TROPHY")}`,threshold:100},{name:"GOLD",indicator:`${T0(P$("★"))} ${T0("GOLD")}`,threshold:99},{name:"SILVER",indicator:`${T$("◆")} ${T$("SILVER")}`,threshold:95},{name:"BRONZE",indicator:`${R1("◇")} ${R1("BRONZE")}`,threshold:85},{name:"GREEN",indicator:`${P$("●")} GREEN`,threshold:70},{name:"YELLOW",indicator:`${d0("●")} YELLOW`,threshold:55},{name:"RED",indicator:`${d0("○")} RED`,threshold:1},{name:"WHITE",indicator:`${d0("♡")}`,threshold:0}];function i0($){for(let Z of a)if($>=Z.threshold)return Z;return a[a.length-1]}function AZ($){let Z=i0($),X=a.indexOf(Z);return X>0?a[X-1]:null}var P1={};MZ(P1,{validate:()=>wZ,sdkVersion:()=>EZ,scoreFafb:()=>SZ,scoreEnterprise:()=>NZ,score:()=>F1,fafbInfo:()=>jZ,decompile:()=>CZ,compile:()=>bZ});var M1=null;function e(){if(M1)return M1;try{let $=p0("faf-scoring-kernel");return M1=$,$}catch{throw Error(`faf-scoring-kernel not installed.
139
+ `,Z)+1}return{type:$,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue($){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let Z=_1($),X=y0(Z);return X.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:X,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let Z=_1($),X=y0(Z);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:X,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment($,Z){if(this.type!=="comment")return!1;if(this.indent<=Z)return!1;return $.every((X)=>X.type==="newline"||X.type==="space")}*documentEnd($){if(this.type!=="doc-mode"){if($.end)$.end.push(this.sourceToken);else $.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd($){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:if($.end)$.end.push(this.sourceToken);else $.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}SQ.Parser=z3});var _3=D((vQ)=>{var Q3=P2(),gQ=G$(),L$=Y$(),yQ=E1(),fQ=b(),xQ=E2(),J3=g2();function H3($){let Z=$.prettyErrors!==!1;return{lineCounter:$.lineCounter||Z&&new xQ.LineCounter||null,prettyErrors:Z}}function hQ($,Z={}){let{lineCounter:X,prettyErrors:U}=H3(Z),z=new J3.Parser(X?.addNewLine),Q=new Q3.Composer(Z),J=Array.from(Q.compose(z.parse($)));if(U&&X)for(let H of J)H.errors.forEach(L$.prettifyError($,X)),H.warnings.forEach(L$.prettifyError($,X));if(J.length>0)return J;return Object.assign([],{empty:!0},Q.streamInfo())}function q3($,Z={}){let{lineCounter:X,prettyErrors:U}=H3(Z),z=new J3.Parser(X?.addNewLine),Q=new Q3.Composer(Z),J=null;for(let H of Q.compose(z.parse($),!0,$.length))if(!J)J=H;else if(J.options.logLevel!=="silent"){J.errors.push(new L$.YAMLParseError(H.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}if(U&&X)J.errors.forEach(L$.prettifyError($,X)),J.warnings.forEach(L$.prettifyError($,X));return J}function uQ($,Z,X){let U=void 0;if(typeof Z==="function")U=Z;else if(X===void 0&&Z&&typeof Z==="object")X=Z;let z=q3($,X);if(!z)return null;if(z.warnings.forEach((Q)=>yQ.warn(z.options.logLevel,Q)),z.errors.length>0)if(z.options.logLevel!=="silent")throw z.errors[0];else z.errors=[];return z.toJS(Object.assign({reviver:U},X))}function kQ($,Z,X){let U=null;if(typeof Z==="function"||Array.isArray(Z))U=Z;else if(X===void 0&&Z)X=Z;if(typeof X==="string")X=X.length;if(typeof X==="number"){let z=Math.round(X);X=z<1?void 0:z>8?{indent:8}:{indent:z}}if($===void 0){let{keepUndefined:z}=X??Z??{};if(!z)return}if(fQ.isDocument($)&&!U)return $.toString(X);return new gQ.Document($,U,X).toString(X)}vQ.parse=uQ;vQ.parseAllDocuments=hQ;vQ.parseDocument=q3;vQ.stringify=kQ});var f=[{index:1,path:"project.name",label:"Name",description:"Project name",category:"project"},{index:2,path:"project.goal",label:"Goal",description:"Goal (use case)",category:"project"},{index:3,path:"project.main_language",label:"Language",description:"Primary language",category:"project"},{index:4,path:"human_context.who",label:"Who",description:"Who is this for?",category:"human"},{index:5,path:"human_context.what",label:"What",description:"What are they building",category:"human"},{index:6,path:"human_context.why",label:"Why",description:"Why does it exist",category:"human"},{index:7,path:"human_context.where",label:"Where",description:"Where does it run",category:"human"},{index:8,path:"human_context.when",label:"When",description:"When was it started / timeline",category:"human"},{index:9,path:"human_context.how",label:"How",description:"How is it built",category:"human"},{index:10,path:"stack.frontend",canonical:"stack.framework",label:"Framework",description:"Framework (React, Svelte, etc.)",category:"frontend"},{index:11,path:"stack.css_framework",canonical:"stack.css",label:"CSS",description:"CSS framework",category:"frontend"},{index:12,path:"stack.ui_library",label:"UI Library",description:"UI component library",category:"frontend"},{index:13,path:"stack.state_management",canonical:"stack.state",label:"State",description:"State management",category:"frontend"},{index:14,path:"stack.backend",label:"Backend",description:"Backend framework",category:"backend"},{index:15,path:"stack.api_type",canonical:"stack.api",label:"API",description:"API style (REST, GraphQL, etc.)",category:"backend"},{index:16,path:"stack.runtime",label:"Runtime",description:"Runtime (Node, Bun, Python, etc.)",category:"backend"},{index:17,path:"stack.database",canonical:"stack.db",label:"Database",description:"Database",category:"backend"},{index:18,path:"stack.connection",label:"Connection",description:"Connection method (Prisma, etc.)",category:"backend"},{index:19,path:"stack.hosting",label:"Hosting",description:"Hosting platform",category:"universal"},{index:20,path:"stack.build",label:"Build",description:"Build tool",category:"universal"},{index:21,path:"stack.cicd",label:"CI/CD",description:"CI/CD",category:"universal"},{index:22,path:"stack.monorepo_tool",label:"Monorepo",description:"Monorepo tool",category:"enterprise_infra"},{index:23,path:"stack.package_manager",canonical:"stack.pkg_manager",label:"Package Manager",description:"Package manager",category:"enterprise_infra"},{index:24,path:"stack.workspaces",label:"Workspaces",description:"Workspace configuration",category:"enterprise_infra"},{index:25,path:"monorepo.packages_count",label:"Packages",description:"Number of packages",category:"enterprise_infra"},{index:26,path:"monorepo.build_orchestrator",label:"Build Orchestrator",description:"Build orchestration tool",category:"enterprise_infra"},{index:27,path:"stack.admin",label:"Admin",description:"Admin panel",category:"enterprise_app"},{index:28,path:"stack.cache",label:"Cache",description:"Caching layer",category:"enterprise_app"},{index:29,path:"stack.search",label:"Search",description:"Search engine",category:"enterprise_app"},{index:30,path:"stack.storage",label:"Storage",description:"Object storage",category:"enterprise_app"},{index:31,path:"monorepo.versioning_strategy",label:"Versioning",description:"Version strategy",category:"enterprise_ops"},{index:32,path:"monorepo.shared_configs",label:"Shared Configs",description:"Shared configs",category:"enterprise_ops"},{index:33,path:"monorepo.remote_cache",label:"Remote Cache",description:"Remote build cache",category:"enterprise_ops"}],l0=new Map(f.flatMap(($)=>$.canonical?[[$.path,$],[$.canonical,$]]:[[$.path,$]])),fq=new Map(f.filter(($)=>$.canonical).map(($)=>[$.canonical,$.path])),xq=new Map(f.filter(($)=>$.canonical).map(($)=>[$.path,$.canonical]));function Z8($,Z){let X=(z)=>{let Q=z.split("."),J=$;for(let H of Q)if(J&&typeof J==="object"&&H in J)J=J[H];else return;return J},U=X(Z.path);if(U!==void 0)return U;if(Z.canonical)return X(Z.canonical);return}function P6($){return f.filter((Z)=>Z.category===$)}var T6=f.filter(($)=>$.index<=21),K6=f,M$=new Set(["describe your project goal","development teams","cloud platform","null","none","unknown","n/a","not applicable"]);function G0($){if($===null||$===void 0||$==="")return!0;if(typeof $==="string")return M$.has($.toLowerCase().trim());if(Array.isArray($)&&$.length===0)return!0;if(typeof $==="object"&&Object.keys($).length===0)return!0;return!1}var P0={about:[],documentation:["project","human"],intent:["project","human"],encyclopedia:["project","human"],cli:["project","human","universal"],library:["project","human","universal"],sdk:["project","human","universal"],wasm:["project","human","universal"],html:["project","human","universal"],"server-card":["project","human","universal"],frontend:["project","frontend","human","universal"],website:["project","frontend","human","universal"],mobile:["project","frontend","human","universal"],extension:["project","frontend","human","universal"],mcp:["project","backend","human","universal"],backend:["project","backend","universal","human"],"data-science":["project","backend","human","universal"],fullstack:["project","frontend","backend","universal","human"],svelte:["project","frontend","backend","universal","human"],framework:["project","frontend","backend","universal","human"],"monorepo-root":["project","human","enterprise_infra","enterprise_app","enterprise_ops"],mcpaas:["project","backend","universal","human","enterprise_app","enterprise_ops"],saas:["project","frontend","backend","universal","human","enterprise_app"],enterprise:["project","frontend","backend","universal","human","enterprise_infra","enterprise_app","enterprise_ops"]};var I1=($)=>(Z)=>`\x1B[${$}m${Z}\x1B[0m`,P$=I1("1"),d0=I1("2"),uq=I1("3"),c0={cyan:"#00D4D4",cyanDeep:"#0E8C8C",orange:"#FF6B35"},T$=($)=>`\x1B[38;2;0;212;212m${$}\x1B[0m`,D1=($)=>`\x1B[38;2;14;140;140m${$}\x1B[0m`,T0=($)=>`\x1B[38;5;208m${$}\x1B[0m`;var a=[{name:"TROPHY",indicator:`${T0("✪")} ${T0("TROPHY")}`,threshold:100},{name:"GOLD",indicator:`${T0(P$("★"))} ${T0("GOLD")}`,threshold:99},{name:"SILVER",indicator:`${T$("◆")} ${T$("SILVER")}`,threshold:95},{name:"BRONZE",indicator:`${D1("◇")} ${D1("BRONZE")}`,threshold:85},{name:"GREEN",indicator:`${P$("●")} GREEN`,threshold:70},{name:"YELLOW",indicator:`${d0("●")} YELLOW`,threshold:55},{name:"RED",indicator:`${d0("○")} RED`,threshold:1},{name:"WHITE",indicator:`${d0("♡")}`,threshold:0}];function i0($){for(let Z of a)if($>=Z.threshold)return Z;return a[a.length-1]}function A6($){let Z=i0($),X=a.indexOf(Z);return X>0?a[X-1]:null}var P1={};F6(P1,{validate:()=>w6,sdkVersion:()=>E6,scoreFafb:()=>S6,scoreEnterprise:()=>N6,score:()=>M1,fafbInfo:()=>j6,decompile:()=>C6,compile:()=>b6});var F1=null;function e(){if(F1)return F1;try{let $=p0("faf-scoring-kernel");return F1=$,$}catch{throw Error(`faf-scoring-kernel not installed.
140
140
 
141
141
  Run: npm install faf-scoring-kernel
142
- `)}}function F1($){return JSON.parse(e().score_faf($))}function NZ($){return JSON.parse(e().score_faf_enterprise($))}function wZ($){return e().validate_faf($)}function bZ($){return e().compile_fafb($)}function CZ($){return JSON.parse(e().decompile_fafb($))}function jZ($){return JSON.parse(e().fafb_info($))}function SZ($){return JSON.parse(e().score_fafb($))}function EZ(){return e().sdk_version()}function X9($){return{score:$.score,tier:i0($.score),populated:$.populated,empty:$.empty,ignored:$.ignored,active:$.active,total:$.total,slots:$.slots}}function T1($){if(/^\s*app_type:\s*about\s*$/m.test($)){let X=$.match(/^\s+source_score:\s*(\d+)\s*$/m),U=X?parseInt(X[1],10):-1,z=U>=0&&U<=100?U:-1,Q=$.match(/^\s+represents:\s*(\S+)\s*$/m),J=Q?Q[1]:void 0;return{score:z,tier:z>=0?i0(z):a[a.length-1],populated:0,empty:0,ignored:0,active:0,total:0,slots:{},inherited:!0,represents:J}}return X9(F1($))}function gZ($){let Z=[];if(!$||typeof $!=="object")return Z.push("File is not a valid YAML mapping"),{valid:!1,errors:Z};let X=$;if(!X.faf_version)Z.push("Missing required field: faf_version");if(!X.project?.name)Z.push("Missing required field: project.name");if(X.app_type==="about"){if(!X.about?.represents)Z.push("app_type 'about' requires about.represents (owner/repo of the source codebase)");else if(!/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(X.about.represents))Z.push(`about.represents must be "owner/repo" format (got: ${X.about.represents})`);if(X.about?.source_score!==void 0){let U=X.about.source_score;if(typeof U!=="number"||U<0||U>100)Z.push(`about.source_score must be a number 0-100 (got: ${U})`)}}return{valid:Z.length===0,errors:Z}}import{readFileSync as V8,writeFileSync as Y_,existsSync as Y8}from"fs";import{join as B8,dirname as bJ,basename as V_}from"path";var cQ=P2(),iQ=_$(),sQ=J2(),y2=Y$(),aQ=r0(),q0=b(),rQ=U0(),nQ=g(),oQ=Q0(),tQ=J0(),q_=H1(),eQ=S2(),$J=E2(),ZJ=g2(),_1=G8(),_8=s0();var XJ=cQ.Composer,UJ=iQ.Document,zJ=sQ.Schema,QJ=y2.YAMLError,JJ=y2.YAMLParseError,HJ=y2.YAMLWarning,qJ=aQ.Alias,GJ=q0.isAlias,_J=q0.isCollection,YJ=q0.isDocument,BJ=q0.isMap,VJ=q0.isNode,OJ=q0.isPair,WJ=q0.isScalar,LJ=q0.isSeq,IJ=rQ.Pair,DJ=nQ.Scalar,RJ=oQ.YAMLMap,MJ=tQ.YAMLSeq;var FJ=eQ.Lexer,PJ=$J.LineCounter,TJ=ZJ.Parser,o=_1.parse,KJ=_1.parseAllDocuments,AJ=_1.parseDocument,Y1=_1.stringify,NJ=_8.visit,wJ=_8.visitAsync;function CJ($){let Z=V8($,"utf-8");return o(Z)}function O8($){return V8($,"utf-8")}function W8($=process.cwd()){let Z=["project.faf",".faf"];for(let U of Z){let z=B8($,U);if(Y8(z))return z}let X=bJ($);if(X!==$)for(let U of Z){let z=B8(X,U);if(Y8(z))return z}return null}import{writeFileSync as jJ}from"fs";import{join as SJ}from"path";var L8=c0.orange,EJ=c0.cyan,gJ=c0.cyanDeep,yJ="#FF9500",fJ="#FF3B30",hJ="#E6EDF3",xJ="#6E7681",I8={TROPHY:{glyph:"\uD83C\uDFC6",color:L8},GOLD:{glyph:"★",color:L8},SILVER:{glyph:"◆",color:EJ},BRONZE:{glyph:"◇",color:gJ},GREEN:{glyph:"●",color:hJ},YELLOW:{glyph:"●",color:yJ},RED:{glyph:"○",color:fJ},WHITE:{glyph:"♡",color:xJ}};function f0($){return String($??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}var D8=["who","what","why","where","when","how"];function B1($){return $.filter(([,Z])=>Z!==void 0&&Z!==null&&String(Z).trim()!=="").map(([Z,X])=>`<div class="row"><div class="k">${f0(Z)}</div><div class="v">${f0(X)}</div></div>`).join(`
143
- `)}function R8($,Z,X="project.faf"){let U=f0($.project?.name??"Project"),z=Z.tier?.name??"WHITE",Q=I8[z]??I8.WHITE,J=Z.inherited?Z.represents?`inherited from ${f0(Z.represents)}`:"inherited":`${Z.score}%`,H=z==="TROPHY"&&!Z.inherited,q=$.human_context??{},G=D8.map((V)=>[V,q[V]]),B=Object.entries(q).filter(([V])=>!D8.includes(V)),_=[["goal",$.project?.goal],["main_language",$.project?.main_language],["type",$.project?.type],["framework",$.project?.framework],["faf_version",$.faf_version]],Y=Object.entries($.stack??{}),O=Y.filter(([,V])=>V&&V!=="slotignored"&&String(V).trim()!==""),L=Y.filter(([,V])=>V==="slotignored").length;return`<!DOCTYPE html>
142
+ `)}}function M1($){return JSON.parse(e().score_faf($))}function N6($){return JSON.parse(e().score_faf_enterprise($))}function w6($){return e().validate_faf($)}function b6($){return e().compile_fafb($)}function C6($){return JSON.parse(e().decompile_fafb($))}function j6($){return JSON.parse(e().fafb_info($))}function S6($){return JSON.parse(e().score_fafb($))}function E6(){return e().sdk_version()}function X8($){return{score:$.score,tier:i0($.score),populated:$.populated,empty:$.empty,ignored:$.ignored,active:$.active,total:$.total,slots:$.slots}}function T1($){if(/^\s*app_type:\s*about\s*$/m.test($)){let X=$.match(/^\s+source_score:\s*(\d+)\s*$/m),U=X?parseInt(X[1],10):-1,z=U>=0&&U<=100?U:-1,Q=$.match(/^\s+represents:\s*(\S+)\s*$/m),J=Q?Q[1]:void 0;return{score:z,tier:z>=0?i0(z):a[a.length-1],populated:0,empty:0,ignored:0,active:0,total:0,slots:{},inherited:!0,represents:J}}return X8(M1($))}function g6($){let Z=[];if(!$||typeof $!=="object")return Z.push("File is not a valid YAML mapping"),{valid:!1,errors:Z};let X=$;if(!X.faf_version)Z.push("Missing required field: faf_version");if(!X.project?.name)Z.push("Missing required field: project.name");if(X.app_type==="about"){if(!X.about?.represents)Z.push("app_type 'about' requires about.represents (owner/repo of the source codebase)");else if(!/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(X.about.represents))Z.push(`about.represents must be "owner/repo" format (got: ${X.about.represents})`);if(X.about?.source_score!==void 0){let U=X.about.source_score;if(typeof U!=="number"||U<0||U>100)Z.push(`about.source_score must be a number 0-100 (got: ${U})`)}}return{valid:Z.length===0,errors:Z}}import{readFileSync as V3,writeFileSync as YG,existsSync as Y3}from"fs";import{join as B3,dirname as bJ,basename as VG}from"path";var cQ=P2(),iQ=G$(),sQ=J2(),y2=Y$(),aQ=r0(),q0=b(),rQ=U0(),nQ=g(),oQ=Q0(),tQ=J0(),qG=H1(),eQ=S2(),$J=E2(),ZJ=g2(),G1=_3(),G3=s0();var XJ=cQ.Composer,UJ=iQ.Document,zJ=sQ.Schema,QJ=y2.YAMLError,JJ=y2.YAMLParseError,HJ=y2.YAMLWarning,qJ=aQ.Alias,_J=q0.isAlias,GJ=q0.isCollection,YJ=q0.isDocument,BJ=q0.isMap,VJ=q0.isNode,OJ=q0.isPair,WJ=q0.isScalar,LJ=q0.isSeq,RJ=rQ.Pair,IJ=nQ.Scalar,DJ=oQ.YAMLMap,FJ=tQ.YAMLSeq;var MJ=eQ.Lexer,PJ=$J.LineCounter,TJ=ZJ.Parser,o=G1.parse,KJ=G1.parseAllDocuments,AJ=G1.parseDocument,Y1=G1.stringify,NJ=G3.visit,wJ=G3.visitAsync;function CJ($){let Z=V3($,"utf-8");return o(Z)}function O3($){return V3($,"utf-8")}function W3($=process.cwd()){let Z=["project.faf",".faf"];for(let U of Z){let z=B3($,U);if(Y3(z))return z}let X=bJ($);if(X!==$)for(let U of Z){let z=B3(X,U);if(Y3(z))return z}return null}import{writeFileSync as jJ}from"fs";import{join as SJ}from"path";var L3=c0.orange,EJ=c0.cyan,gJ=c0.cyanDeep,yJ="#FF9500",fJ="#FF3B30",xJ="#E6EDF3",hJ="#6E7681",R3={TROPHY:{glyph:"✪",color:L3},GOLD:{glyph:"★",color:L3},SILVER:{glyph:"◆",color:EJ},BRONZE:{glyph:"◇",color:gJ},GREEN:{glyph:"●",color:xJ},YELLOW:{glyph:"●",color:yJ},RED:{glyph:"○",color:fJ},WHITE:{glyph:"♡",color:hJ}};function f0($){return String($??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}var I3=["who","what","why","where","when","how"];function B1($){return $.filter(([,Z])=>Z!==void 0&&Z!==null&&String(Z).trim()!=="").map(([Z,X])=>`<div class="row"><div class="k">${f0(Z)}</div><div class="v">${f0(X)}</div></div>`).join(`
143
+ `)}function D3($,Z,X="project.faf"){let U=f0($.project?.name??"Project"),z=Z.tier?.name??"WHITE",Q=R3[z]??R3.WHITE,J=Z.inherited?Z.represents?`inherited from ${f0(Z.represents)}`:"inherited":`${Z.score}%`,H=z==="TROPHY"&&!Z.inherited,q=$.human_context??{},_=I3.map((V)=>[V,q[V]]),B=Object.entries(q).filter(([V])=>!I3.includes(V)),G=[["goal",$.project?.goal],["main_language",$.project?.main_language],["type",$.project?.type],["framework",$.project?.framework],["faf_version",$.faf_version]],Y=Object.entries($.stack??{}),O=Y.filter(([,V])=>V&&V!=="slotignored"&&String(V).trim()!==""),L=Y.filter(([,V])=>V==="slotignored").length;return`<!DOCTYPE html>
144
144
  <html lang="en">
145
145
  <head>
146
146
  <meta charset="UTF-8">
@@ -185,17 +185,17 @@ footer strong{color:#e6edf3}
185
185
  <span class="score">${J}</span>
186
186
  </header>
187
187
  <div class="meter"><span></span></div>
188
- ${H?'<p class="award statline"><span class="awd-pre">✅ All Required slots filled.</span> <span class="awd-win">100% Trophy \uD83C\uDFC6 Awarded</span></p>':`<p class="muted statline">${Z.populated}/${Z.active} slots populated · ${Z.total} total${L?` · ${L} N/A`:""}</p>`}
188
+ ${H?'<p class="award statline"><span class="awd-pre">✅ All Required slots filled.</span> <span class="awd-win">100% Trophy ✪ Awarded</span></p>':`<p class="muted statline">${Z.populated}/${Z.active} slots populated · ${Z.total} total${L?` · ${L} N/A`:""}</p>`}
189
189
 
190
190
  <section>
191
191
  <h2>The 6 W's</h2>
192
- ${B1(G)||'<p class="muted">No human_context yet.</p>'}
192
+ ${B1(_)||'<p class="muted">No human_context yet.</p>'}
193
193
  ${B.length?B1(B):""}
194
194
  </section>
195
195
 
196
196
  <section>
197
197
  <h2>Project</h2>
198
- ${B1(_)||'<p class="muted">—</p>'}
198
+ ${B1(G)||'<p class="muted">—</p>'}
199
199
  </section>
200
200
 
201
201
  <section>
@@ -210,17 +210,17 @@ Rendered on-demand from your current <strong>${f0(X)}</strong><br>
210
210
  </div>
211
211
  </body>
212
212
  </html>
213
- `}function uJ($,Z,X,U="project.faf"){jJ(SJ($,"project.html"),R8(Z,X,U),"utf-8")}import{writeFileSync as kJ}from"fs";import{join as vJ}from"path";var M8="application/vnd.faf+yaml",mJ="https://static.modelcontextprotocol.io/schemas/v1/server-card.schema.json",pJ=/^[a-zA-Z0-9.-]+\/[a-zA-Z0-9._-]+$/;function P8($){let Z=String($.project?.name??"project").trim();if(Z.includes("/")&&pJ.test(Z))return Z;let X=$.project?.homepage??$.project?.website??$.project?.url,U="local";if(X)try{U=new URL(X).hostname.replace(/^www\./,"").split(".").reverse().join(".")}catch{}let z=Z.replace(/[^a-zA-Z0-9._-]/g,"-").replace(/^-+|-+$/g,"")||"project";return`${U}/${z}`}function lJ($){let Z=String($.project?.goal??$.context??$.project?.name??"MCP server").replace(/\s+/g," ").trim();if(!Z)return"MCP server";return Z.length<=100?Z:`${Z.slice(0,97).trimEnd()}...`}function f2($,Z={}){return{faf:Z.fafPointer??"./project.faf",mediaType:M8,iana:`https://www.iana.org/assignments/media-types/${M8}`,deterministic:!0,...Z.scoreEndpoint?{scoreEndpoint:Z.scoreEndpoint}:{},generated:$.generated??Z.now??new Date().toISOString()}}function T8($,Z={}){let X={$schema:mJ,name:P8($),version:String($.project?.version??"0.1.0"),description:lJ($)},U=iJ($)??$.project?.name;if(U&&U.length<=100)X.title=U;let z=$.project?.homepage??$.project?.website??$.project?.url;if(z)X.websiteUrl=z;if(Z.remoteUrl)X.remotes=[{type:"streamable-http",url:Z.remoteUrl}];return X._meta={"one.faf/context":f2($,Z)},X}var K8="io.modelcontextprotocol.registry/publisher-provided",F8=4096;function dJ($,Z={}){let X={"one.faf/context":f2($,Z)},U=new TextEncoder().encode(JSON.stringify(X)).length;if(U>F8)throw Error(`publisher-provided _meta is ${U}B — exceeds the registry ${F8}B cap`);return{[K8]:X}}function cJ($){return P8($)}function iJ($){let Z=$.project?.title;if(typeof Z==="string"){let X=Z.trim();if(X&&X.length<=100)return X}return}function sJ($,Z,X={}){let U=T8(Z,X),z=vJ($,"server-card");return kJ(z,`${JSON.stringify(U,null,2)}
214
- `,"utf-8"),z}var h2=["ephemeral","standard","high","critical"],G0=Object.fromEntries(h2.map(($,Z)=>[$,Z])),V1=new Set(["user","feedback","project","reference"]),x2=new Set(["version","profile","namepoint","created","last_etched","retention","index","memory"]),u2=new Set(["facts","sessions","preferences","custom"]),k2={low:"ephemeral",medium:"standard"};import{readFileSync as aJ,writeFileSync as rJ,existsSync as nJ}from"fs";function h0(){return new Date().toISOString().replace(/\.\d{3}Z$/,"Z")}function x($){return $===null||$===void 0}function I$($){if(x($))return"standard";if(k2[$])return k2[$];if($ in G0)return $;return"standard"}var oJ=new Set(["text","id","type","priority","tags","links","timestamp","source"]);function A8($){if(typeof $==="string")return{text:$,id:null,type:null,priority:"standard",tags:[],links:[],timestamp:null,source:null,extra:{}};if(!$||typeof $!=="object"||!("text"in $))throw Error(`fact must be a string or a mapping with 'text': ${JSON.stringify($)}`);let Z=$,X={};for(let[U,z]of Object.entries(Z))if(!oJ.has(U))X[U]=z;return{text:String(Z.text),id:Z.id??null,type:Z.type??null,priority:I$(Z.priority),tags:Array.isArray(Z.tags)?Z.tags.slice():[],links:Array.isArray(Z.links)?Z.links.slice():[],timestamp:Z.timestamp??null,source:Z.source??null,extra:X}}function N8($){if(x($.id)&&x($.type)&&$.tags.length===0&&$.links.length===0&&x($.timestamp)&&x($.source)&&Object.keys($.extra).length===0&&$.priority==="standard")return $.text;let X={text:$.text};if(!x($.id))X.id=$.id;if(!x($.type))X.type=$.type;if(X.priority=$.priority,$.tags.length)X.tags=$.tags;if($.links.length)X.links=$.links;if(!x($.timestamp))X.timestamp=$.timestamp;if(!x($.source))X.source=$.source;return Object.assign(X,$.extra),X}class D0{namepoint;profile;retention;created;last_etched;_facts;_byId;_index;_sessions;_preferences;_custom;_extra;_memoryExtra;constructor($,Z={}){this.namepoint=$,this.profile=Z.profile??"knowledge",this.retention=Z.retention??"forever",this.created=Z.created??h0(),this.last_etched=this.created,this._facts=Z.facts?Z.facts.slice():[],this._byId=new Map,this._facts.forEach((X,U)=>{if(!x(X.id))this._byId.set(X.id,U)}),this._index=Z.index?Z.index.slice():[],this._sessions=Z.sessions?structuredClone(Z.sessions):[],this._preferences=Z.preferences?{...Z.preferences}:{},this._custom=Z.custom?{...Z.custom}:{},this._extra=Z.extra?{...Z.extra}:{},this._memoryExtra=Z.memoryExtra?{...Z.memoryExtra}:{}}get facts(){return this._facts}get index(){return this._index}get sessions(){return this._sessions}get preferences(){return this._preferences}get custom(){return this._custom}get extra(){return this._extra}get memoryExtra(){return this._memoryExtra}static load($){if(!nJ($))throw Error(`soul file not found: ${$}`);let Z=aJ($,"utf-8"),X=o(Z);if(!X||typeof X!=="object")throw Error("soul is not a YAML mapping");let U=X.memory&&typeof X.memory==="object"?X.memory:{},z=Array.isArray(U.facts)?U.facts:[],Q={};for(let[q,G]of Object.entries(X))if(!x2.has(q))Q[q]=structuredClone(G);let J={};for(let[q,G]of Object.entries(U))if(!u2.has(q))J[q]=structuredClone(G);let H=new D0(String(X.namepoint??$.replace(/.*\//,"").replace(/\.fafm$/,"")),{profile:String(X.profile??"voice"),facts:z.map(A8),retention:String(X.retention??"forever"),created:X.created??null,index:Array.isArray(X.index)?X.index.slice():[],sessions:Array.isArray(U.sessions)?structuredClone(U.sessions):[],preferences:U.preferences&&typeof U.preferences==="object"?structuredClone(U.preferences):{},custom:U.custom&&typeof U.custom==="object"?structuredClone(U.custom):{},extra:Q,memoryExtra:J});return H.last_etched=String(X.last_etched??H.created),H}static fromFile($){return D0.load($)}toDoc(){let $={facts:this._facts.map(N8),sessions:structuredClone(this._sessions),preferences:structuredClone(this._preferences),custom:structuredClone(this._custom)};for(let[X,U]of Object.entries(this._memoryExtra))if(!u2.has(X))$[X]=structuredClone(U);let Z={version:"1.1",profile:this.profile,namepoint:this.namepoint,created:this.created,last_etched:this.last_etched,retention:this.retention,index:this._index.slice(),memory:$};for(let[X,U]of Object.entries(this._extra))if(!x2.has(X))Z[X]=structuredClone(U);return Z}toYaml(){return Y1(this.toDoc(),{lineWidth:100})}rebuildIndex($=80){return this._index=this._facts.map((Z)=>`${Z.id??"?"} — ${Z.text.slice(0,$)}`),this._index}save($,Z={}){if(Z.reindex!==!1)this.rebuildIndex();return rJ($,this.toYaml(),"utf-8"),$}toFile($,Z={}){return this.save($,Z)}add($){if(!x($.id)&&this._byId.has($.id)){let Z=this._byId.get($.id);if(Z!==void 0)this._facts[Z]=$}else if(this._facts.push($),!x($.id))this._byId.set($.id,this._facts.length-1);if($.timestamp&&$.timestamp>(this.last_etched||""))this.last_etched=$.timestamp;return $}etch($,Z={}){return this.add({text:$,id:Z.id??null,type:Z.type??null,priority:I$(Z.priority),tags:Z.tags?Z.tags.slice():[],links:Z.links?Z.links.slice():[],timestamp:h0(),source:Z.source??null,extra:{}})}recall($,Z={}){let X=G0[I$(Z.minPriority??"ephemeral")]??0,U=($??"").toLowerCase(),z=new Set(Z.tags??[]),Q=[];this._facts.forEach((H,q)=>{if(U&&!H.text.toLowerCase().includes(U))return;if(z.size>0&&![...z].some((G)=>H.tags.includes(G)))return;if(!x(Z.type)&&H.type!==Z.type)return;if((G0[H.priority]??1)<X)return;Q.push([q,H])}),Q.sort((H,q)=>{let G=G0[H[1].priority]??1,B=G0[q[1].priority]??1;if(B!==G)return B-G;let _=H[1].timestamp??"",Y=q[1].timestamp??"";if(Y!==_)return Y<_?-1:Y>_?1:0;return q[0]-H[0]});let J=Q.map(([,H])=>H);if(!x(Z.limit))return J.slice(0,Z.limit);return J}getFact($){let Z=this._byId.get($);return Z===void 0?null:this._facts[Z]}deleteFact($){let Z=this._byId.get($);if(Z===void 0)return!1;return this._facts.splice(Z,1),this._byId.clear(),this._facts.forEach((X,U)=>{if(!x(X.id))this._byId.set(X.id,U)}),!0}}import{readdirSync as tJ,readFileSync as eJ,statSync as w8,existsSync as $H}from"fs";import{join as ZH,basename as b8,resolve as XH}from"path";var C8=new Set(["MEMORY.md","MEMORY-FULL.md","README.md"]),UH=/\[\[([^\]]+)\]\]/g;function zH($){let Z=w8($).mtimeMs;return new Date(Z).toISOString().replace(/\.\d{3}Z$/,"Z")}function QH($){if(!$.startsWith("---"))return{fm:null,body:$};let Z=$.split("---");if(Z.length<3)return{fm:null,body:$};try{let X=o(Z[1]);if(!X||typeof X!=="object")return{fm:null,body:Z.slice(2).join("---").trim()};return{fm:X,body:Z.slice(2).join("---").trim()}}catch{return{fm:null,body:$}}}function JH($,Z,X){if(!X.name)return null;let U=X.metadata&&typeof X.metadata==="object"?X.metadata:{},z=U.type;if(typeof z!=="string"||!V1.has(z))return null;let Q=String(X.name).trim(),H=(X.description!==void 0&&X.description!==null&&String(X.description).trim()?String(X.description).trim():"")||Q,q={};if(U.originSessionId)q.provenance=[`session:${U.originSessionId}`];let G=[...new Set([...Z.matchAll(UH)].map((B)=>B[1]))].sort();return{text:H,id:Q,type:z,priority:"standard",tags:[],links:G,timestamp:zH($),source:`claude-code memory: ${b8($)}`,extra:q}}function j8($,Z={}){let X=XH($);if(!$H(X))throw Error(`Claude memory directory not found: ${X}`);if(!w8(X).isDirectory())throw Error(`Claude memory path is not a directory: ${X}`);let U=Z.skip??C8,z=Z.namepoint??`@claude-code:${b8(X)}`,Q=[],J=tJ(X).filter((_)=>_.endsWith(".md")).sort();for(let _ of J){if(U.has(_))continue;let Y=ZH(X,_),O;try{O=eJ(Y,"utf-8")}catch{continue}let{fm:L,body:V}=QH(O);if(!L)continue;let W=JH(Y,V,L);if(W)Q.push(W)}let H=Q.map((_)=>_.timestamp).filter(Boolean),q=H.length?H.reduce((_,Y)=>_<Y?_:Y):h0(),G=H.length?H.reduce((_,Y)=>_>Y?_:Y):q,B=new D0(z,{profile:"knowledge",facts:Q,created:q});return B.last_etched=G,B.rebuildIndex(),B}var f8="faf-interview/1",x0="(terse — 3-4 words)",v2=[{path:"project.name",question:"What is the name of this project?",header:"Name",type:"text",required:!0},{path:"project.goal",question:"What does this project do? (one sentence)",header:"Goal",type:"text",required:!0},{path:"human_context.who",question:`Who is this for? ${x0}`,header:"Who",type:"text",required:!0},{path:"human_context.what",question:`What are they building? ${x0}`,header:"What",type:"text",required:!0},{path:"human_context.why",question:`Why does it exist? ${x0}`,header:"Why",type:"text",required:!0},{path:"human_context.where",question:`Where does it run or ship? ${x0}`,header:"Where",type:"text",required:!0},{path:"human_context.when",question:`When — timeline or stage? ${x0}`,header:"When",type:"text",required:!0},{path:"human_context.how",question:`How is it built or used? ${x0}`,header:"How",type:"text",required:!0}],h8=[{path:"project.main_language",question:"What is the primary programming language?",header:"Language",type:"select",required:!0,options:[{label:"TypeScript",value:"TypeScript",description:"JavaScript with types"},{label:"JavaScript",value:"JavaScript",description:"Vanilla JS or Node.js"},{label:"Python",value:"Python",description:"Python 3.x"},{label:"Rust",value:"Rust",description:"Systems programming"},{label:"Go",value:"Go",description:"Golang"},{label:"Other",value:"Other",description:"Specify manually"}]},{path:"stack.frontend",question:"What frontend framework does it use?",header:"Frontend",type:"select",required:!1,options:[{label:"React",value:"React",description:"React.js"},{label:"Vue",value:"Vue",description:"Vue.js"},{label:"Svelte",value:"Svelte",description:"Svelte/SvelteKit"},{label:"Next.js",value:"Next.js",description:"React framework"},{label:"None",value:"None",description:"No frontend"},{label:"Other",value:"Other",description:"Specify manually"}]},{path:"stack.backend",question:"What backend framework does it use?",header:"Backend",type:"select",required:!1,options:[{label:"Express",value:"Express",description:"Node.js Express"},{label:"Fastify",value:"Fastify",description:"Node.js Fastify"},{label:"Django",value:"Django",description:"Python Django"},{label:"FastAPI",value:"FastAPI",description:"Python FastAPI"},{label:"None",value:"None",description:"No backend"},{label:"Other",value:"Other",description:"Specify manually"}]},{path:"stack.database",question:"What database does it use?",header:"Database",type:"select",required:!1,options:[{label:"PostgreSQL",value:"PostgreSQL",description:"Postgres"},{label:"MySQL",value:"MySQL",description:"MySQL/MariaDB"},{label:"SQLite",value:"SQLite",description:"Embedded SQL"},{label:"MongoDB",value:"MongoDB",description:"Document store"},{label:"None",value:"None",description:"No database"},{label:"Other",value:"Other",description:"Specify manually"}]},{path:"stack.runtime",question:"What runtime does it run on?",header:"Runtime",type:"text",required:!1},{path:"stack.hosting",question:"Where is it hosted or distributed?",header:"Hosting",type:"text",required:!1},{path:"stack.build",question:"What is the build tool?",header:"Build",type:"text",required:!1},{path:"stack.cicd",question:"What CI/CD does it use?",header:"CI/CD",type:"text",required:!1}],u0=[...v2,...h8],x8=new Map(u0.map(($)=>[$.path,$])),HH=Object.fromEntries(u0.map(($)=>[$.path,$]));function m2($){let Z=x8.get($);if(Z)return Z.question;let X=l0.get($)??f.find((U)=>U.canonical===$);return X?`${X.description}?`.replace(/\?\?$/,"?"):`${$}?`}function qH($,Z){return u0.filter((X)=>{let U=X.path.split("."),z=$;for(let Q of U)if(z&&typeof z==="object"&&Q in z)z=z[Q];else{z=void 0;break}if(z==="slotignored")return!1;return Z(z)})}var GH=new Set(["developers","development teams","development team","teams","development","cloud platform","web platform","platform","best practices","improve development efficiency","development efficiency","modern development practices","modern development","test-driven development","production/stable","production","stable","app","project","tool"]),_H=[["npm",/\bnpm\b/i],["PyPI",/\bpypi\b/i],["crates.io",/\bcrates\.io\b/i],["Homebrew",/\bhomebrew\b/i],["Docker",/\bdocker\b/i],["Cloudflare",/\bcloudflare\b/i],["Vercel",/\bvercel\b/i],["Netlify",/\bnetlify\b/i],["AWS",/\baws\b/i],["Cloud Run",/\bcloud run\b/i],["edge",/\bedge\b/i],["browser",/\bbrowser\b/i],["WASM",/\bwasm\b/i],["GitHub",/\bgithub\b/i],["MCP Registry",/\bmcp registry\b/i],["Chrome Web Store",/\bchrome web store\b/i],["Smithery",/\bsmithery\b/i]],S8=($)=>GH.has($.toLowerCase().trim()),YH=/^(?:with|and|or|using|for|to|that|who|whom|whose|the|a|an|in|on|of|via|by|&)$/i;function E8($,Z=5){let X=$.trim().split(/\s+/).filter(Boolean).slice(0,Z);while(X.length&&YH.test(X[X.length-1].replace(/[.,;:]+$/,"")))X.pop();return X.join(" ")}function u8($){let Z={};if(!$||typeof $!=="string")return Z;let X=$.trim(),U=X.replace(/^[^A-Za-z0-9]+/,"").split(/\s+(?:for|that|which|to)\s+|\s+[—–]\s+|\s-\s|:\s|\.\s|,\s/)[0].trim(),z=E8(U);if(z.split(/\s+/).filter(Boolean).length>=2&&!S8(z))Z.what=z;let Q=_H.filter(([,q])=>q.test(X)).map(([q])=>q);if(Q.length)Z.where=Q.slice(0,4).join(", ");let J=X.match(/\bfor ((?:[A-Za-z][\w./+-]* )?(?:any |all )?(?:developers?|teams?|engineers?|builders?|users?|integrators?)\b[^.,;:—]*)/i),H=E8((J?.[1]||"").trim().replace(/\s+/g," "));if(H&&!S8(H))Z.who=H;return Z}function g8($,Z){let X=$;for(let U of Z.split("."))if(X&&typeof X==="object"&&U in X)X=X[U];else return;return X}function y8($){if(typeof $!=="string")return!1;let Z=$.trim();if(!Z||Z==="slotignored")return!1;return!_0(Z)}function BH($,Z={}){let X=$&&typeof $==="object"?$:{},U=g8(X,"project.goal"),z=(y8(U)?String(U).trim():"")||(Z.goal??"").trim(),Q=u8(z),J=Z.detailed??{},H={"project.goal":z||void 0,"human_context.what":Q.what,"human_context.where":Q.where,"human_context.who":Q.who},q=(O)=>{let L=H[O];if(L)return{value:L,source:"project goal",confidence:0.9};let V=O.startsWith("human_context.")?O.slice(14):"",W=V?J[V]:void 0;return W?{value:W.value,source:W.source,confidence:W.confidence}:void 0},G=v2.map((O,L)=>{let V={n:L+1,path:O.path,header:O.header,question:O.question},W=g8(X,O.path);if(y8(W))return{...V,value:String(W).trim(),status:"filled",seeded:!1};let D=q(O.path);if(D)return{...V,value:D.value,status:"seeded",seeded:!0,source:D.source,confidence:D.confidence};return{...V,value:"",status:"empty",seeded:!1}}),B=G.filter((O)=>O.status==="filled").length,_=G.filter((O)=>O.status==="seeded").length,Y=G.filter((O)=>O.status==="empty").length;return{version:f8,rows:G,filledCount:B,seededCount:_,emptyCount:Y,complete:Y===0}}function O1($){if($===null||$===void 0)return!0;if(typeof $==="string"){let Z=$.trim();return Z===""||_0(Z)}return!1}function VH($,Z){let X=$;for(let U of Z.split("."))if(X&&typeof X==="object"&&U in X)X=X[U];else return;return X}function k8($){if($==="project.goal")return!0;return l0.get($)?.category==="human"}function v8($,Z=O1){let X=[],U=[];for(let z of u0){let Q=VH($,z.path);if(Q==="slotignored")continue;if(!Z(Q))continue;(k8(z.path)?X:U).push(z.path)}return{human:X,sourceable:U}}function m8($,Z,X=O1){let U=v8(Z,X),z;if($>=100||U.human.length===0&&U.sourceable.length===0)z="done";else if(U.sourceable.length>0)z="can-source";else z="needs-human";let Q=z==="needs-human"?p2(U):[];return{status:z,score:$,gaps:U,ask:Q}}function p2($){return $.human.map((Z)=>({path:Z,question:m2(Z)}))}function OH($,Z={}){let X=Math.max(1,Z.maxRounds??5),U=Z.isEmpty??O1,z=[],Q=0;for(let H=0;H<=X;H++){let q=$.read();if(!q)return{status:"no-faf",score:0,rounds:Q,history:z,ask:[]};let G=$.score(q.yaml);z.push(G);let B=m8(G,q.data,U);if(B.status==="done")return{status:"done",score:G,rounds:Q,history:z,ask:[]};if(B.status==="needs-human")return{status:"needs-human",score:G,rounds:Q,history:z,ask:B.ask};if(z.length>=2&&G<=z[z.length-2])return B.gaps.human.length?{status:"needs-human",score:G,rounds:Q,history:z,ask:p2(B.gaps)}:{status:"stuck",score:G,rounds:Q,history:z,ask:[]};if(Q>=X)return{status:"capped",score:G,rounds:Q,history:z,ask:p2(B.gaps)};$.runAuto(),Q++}return{status:"capped",score:z[z.length-1]??0,rounds:Q,history:z,ask:[]}}import{createHash as l8}from"crypto";var l2="faf-bench/1",WH={"project.name":"What is the project's name?","project.goal":"What is the project's goal — what is it for?","project.main_language":"What is the primary programming language?","human_context.who":"Who is this project for?","human_context.what":"What are they building?","human_context.why":"Why does this project exist?","human_context.where":"Where does it run or get distributed?","human_context.when":"When — what is the project's timeline or stage?","human_context.how":"How is it built or used?"};function LH($,Z){return WH[$]??`What is the project's ${Z.replace(/\s*\(.*\)$/,"").toLowerCase()}?`}var d8=[["typescript","ts"],["javascript","js"],["python","py","python3"],["node","nodejs","node js","node.js"],["github actions","gh actions","actions"],["postgresql","postgres","pg"],["kubernetes","k8s"],["npm","npm registry"],["cloudflare workers","cf workers","workers"],["google cloud run","cloud run","gcp cloud run"]],D$=new Map;d8.forEach(($,Z)=>$.forEach((X)=>D$.set(X,Z)));var IH=new Set(["a","an","the","and","or","of","for","to","in","on","with","is","it","its","their","your","via","by","using","use","used"]);function W1($){return $.toLowerCase().replace(/[^a-z0-9\s.+#-]/g," ").replace(/\.(?=\s|$)/g," ").replace(/\s+/g," ").trim()}function p8($){return W1($).split(" ").filter((Z)=>Z&&!IH.has(Z))}function c8($,Z){let X=W1($),U=W1(Z);if(!X||!U)return!1;if(X===U)return!0;let z=D$.get(X);if(z!==void 0&&D$.get(U)===z)return!0;let Q=p8($);if(Q.length===0)return!1;let J=new Set(p8(Z));return Q.every((H)=>{if(J.has(H))return!0;let q=D$.get(H);return q!==void 0&&[...J].some((G)=>D$.get(G)===q)})}function DH($){let Z=T1($),X=o($),U=[],z={},Q=0;for(let q of f){if(Z.slots[q.path]!=="populated")continue;let G=Z9(X,q);if(typeof G!=="string")continue;let B=G.trim();if(!B||F$.has(B.toLowerCase()))continue;Q+=1,U.push({n:Q,path:q.path,question:LH(q.path,q.description)}),z[Q]=B}let J=JSON.stringify({v:l2,q:U.map((q)=>[q.path,q.question])}),H=l8("sha256").update(J).digest("hex").slice(0,12);return{version:l2,qsetHash:H,questions:U,answers:z}}function RH($){return{version:$.version,qsetHash:$.qsetHash,questions:$.questions}}function MH($,Z){let X=$.questions.map((z)=>{let Q=Z[String(z.n)]??Z[z.path]??"";return{n:z.n,path:z.path,ok:typeof Q==="string"&&Q.trim()!==""&&c8($.answers[z.n],Q)}}),U=$.questions.filter((z)=>!X[z.n-1].ok);return{correct:X.filter((z)=>z.ok).length,total:$.questions.length,misses:U,perQuestion:X}}function FH($,Z){let X=JSON.stringify({v:$.version,repo:Z??null,qset:$.qsetHash,protocol:$.protocol,cold:$.cold??null,faf:$.faf??null});return{projection:X,hash:l8("sha256").update(X).digest("hex")}}import{existsSync as SH,readdirSync as s8,readFileSync as EH}from"fs";import{join as i2,dirname as gH,extname as yH,resolve as fH}from"path";var d2={"package.json":{frameworks:["Node.js","JavaScript","TypeScript"],slots:{packageManager:"npm/yarn/pnpm",mainLanguage:"JavaScript/TypeScript"},priority:35,intelligence:"ultra-high"},"README.md":{frameworks:[],slots:{targetUser:"developers",coreProblem:"understanding project",missionPurpose:"project documentation"},priority:25,intelligence:"high"},"requirements.txt":{frameworks:["Python"],slots:{packageManager:"pip",mainLanguage:"Python"},priority:35,intelligence:"ultra-high"},Pipfile:{frameworks:["Python"],slots:{packageManager:"pipenv",mainLanguage:"Python"},priority:35,intelligence:"ultra-high"},"pyproject.toml":{frameworks:["Python"],slots:{mainLanguage:"Python",runtime:"Python",backend:"Python"},priority:36,intelligence:"ultra-high"},Gemfile:{frameworks:["Ruby","Rails"],slots:{packageManager:"bundler",mainLanguage:"Ruby"},priority:35,intelligence:"ultra-high"},"composer.json":{frameworks:["PHP","Laravel","Symfony"],slots:{packageManager:"composer",mainLanguage:"PHP"},priority:35,intelligence:"ultra-high"},"Cargo.toml":{frameworks:["Rust"],slots:{packageManager:"cargo",mainLanguage:"Rust",buildTool:"cargo"},priority:36,intelligence:"ultra-high"},"go.mod":{frameworks:["Go"],slots:{packageManager:"go modules",mainLanguage:"Go",buildTool:"go build"},priority:36,intelligence:"ultra-high"},"pubspec.yaml":{frameworks:["Dart"],slots:{packageManager:"pub",mainLanguage:"Dart"},priority:35,intelligence:"ultra-high"},"pom.xml":{frameworks:["Java","Spring","Maven"],slots:{packageManager:"maven",mainLanguage:"Java",buildTool:"maven"},priority:35,intelligence:"ultra-high"},"build.gradle":{frameworks:["Java","Kotlin","Spring","Gradle"],slots:{packageManager:"gradle",mainLanguage:"Java/Kotlin",buildTool:"gradle"},priority:35,intelligence:"ultra-high"},"next.config.js":{frameworks:["Next.js"],slots:{framework:"Next.js",runtime:"Node.js",buildTool:"Next.js",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"next.config.mjs":{frameworks:["Next.js"],slots:{framework:"Next.js",runtime:"Node.js",buildTool:"Next.js",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"next.config.ts":{frameworks:["Next.js 13+"],slots:{framework:"Next.js 13+",runtime:"Node.js",buildTool:"Next.js",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"nuxt.config.js":{frameworks:["Nuxt 2"],slots:{framework:"Nuxt 2",runtime:"Node.js",buildTool:"Nuxt",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"nuxt.config.ts":{frameworks:["Nuxt 3"],slots:{framework:"Nuxt 3",runtime:"Node.js",buildTool:"Nuxt",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"svelte.config.js":{frameworks:["SvelteKit"],slots:{framework:"SvelteKit",buildTool:"Vite",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"angular.json":{frameworks:["Angular"],slots:{framework:"Angular",buildTool:"Angular CLI",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"manifest.json":{frameworks:["Chrome Extension","Browser Extension"],slots:{framework:"Chrome Extension",runtime:"Chrome/Browser",mainLanguage:"JavaScript",hosting:"Chrome Web Store",apiType:"Chrome APIs"},priority:35,intelligence:"ultra-high",confirmWith:["popup.html","background.js","content.js"]},"vue.config.js":{frameworks:["Vue"],slots:{framework:"Vue",buildTool:"Vue CLI",mainLanguage:"JavaScript"},priority:30,intelligence:"high"},"remix.config.js":{frameworks:["Remix"],slots:{framework:"Remix",runtime:"Node.js",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"gatsby-config.js":{frameworks:["Gatsby"],slots:{framework:"Gatsby",buildTool:"Gatsby",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"gatsby-config.ts":{frameworks:["Gatsby"],slots:{framework:"Gatsby",buildTool:"Gatsby",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"astro.config.mjs":{frameworks:["Astro"],slots:{framework:"Astro",buildTool:"Vite",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"redwood.toml":{frameworks:["RedwoodJS"],slots:{framework:"RedwoodJS",buildTool:"Webpack",mainLanguage:"JavaScript/TypeScript",server:"Node.js",database:"Prisma"},priority:30,intelligence:"high"},"blitz.config.ts":{frameworks:["Blitz.js"],slots:{framework:"Blitz.js",buildTool:"Next.js",mainLanguage:"TypeScript",server:"Node.js",database:"Prisma"},priority:30,intelligence:"high"},"qwik.config.ts":{frameworks:["Qwik"],slots:{framework:"Qwik",buildTool:"Vite",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"manage.py":{frameworks:["Django"],slots:{framework:"Django",backend:"Django",mainLanguage:"Python",server:"Django",apiType:"Django Views"},priority:30,intelligence:"high"},artisan:{frameworks:["Laravel"],slots:{framework:"Laravel",backend:"Laravel",mainLanguage:"PHP",server:"PHP",apiType:"Laravel Routes"},priority:30,intelligence:"high"},"mix.exs":{frameworks:["Phoenix","Elixir"],slots:{framework:"Phoenix",backend:"Phoenix",mainLanguage:"Elixir",server:"BEAM"},priority:30,intelligence:"high"},"nest-cli.json":{frameworks:["NestJS"],slots:{framework:"NestJS",backend:"NestJS",mainLanguage:"TypeScript",server:"Node.js",apiType:"REST API"},priority:30,intelligence:"high"},"strapi.config.js":{frameworks:["Strapi"],slots:{backend:"Strapi",apiType:"REST API",database:"Required",server:"Node.js"},priority:30,intelligence:"high"},Dockerfile:{frameworks:["Docker"],slots:{hosting:"Docker",connection:"Containerized"},priority:30,intelligence:"high"},"docker-compose.yml":{frameworks:["Docker Compose"],slots:{hosting:"Docker",connection:"Multi-container"},priority:30,intelligence:"high"},"docker-compose.yaml":{frameworks:["Docker Compose"],slots:{hosting:"Docker",connection:"Multi-container"},priority:30,intelligence:"high"},"kubernetes.yml":{frameworks:["Kubernetes"],slots:{hosting:"Kubernetes",connection:"Orchestrated"},priority:30,intelligence:"high"},"k8s.yaml":{frameworks:["Kubernetes"],slots:{hosting:"Kubernetes",connection:"Orchestrated"},priority:30,intelligence:"high"},"vercel.json":{frameworks:["Vercel"],slots:{hosting:"Vercel",cicd:"Vercel"},priority:30,intelligence:"high"},"netlify.toml":{frameworks:["Netlify"],slots:{hosting:"Netlify",cicd:"Netlify"},priority:30,intelligence:"high"},"render.yaml":{frameworks:["Render"],slots:{hosting:"Render",cicd:"Render"},priority:30,intelligence:"high"},"fly.toml":{frameworks:["Fly.io"],slots:{hosting:"Fly.io",cicd:"Fly.io"},priority:30,intelligence:"high"},"railway.json":{frameworks:["Railway"],slots:{hosting:"Railway",cicd:"Railway"},priority:30,intelligence:"high"},"railway.toml":{frameworks:["Railway"],slots:{hosting:"Railway",cicd:"Railway"},priority:30,intelligence:"high"},"app.yaml":{frameworks:["Google App Engine"],slots:{hosting:"Google Cloud",cicd:"Google Cloud"},priority:30,intelligence:"high"},Procfile:{frameworks:["Heroku"],slots:{hosting:"Heroku",cicd:"Heroku"},priority:30,intelligence:"high"},"vite.config.js":{frameworks:["Vite"],slots:{buildTool:"Vite"},priority:25,intelligence:"medium"},"vite.config.ts":{frameworks:["Vite"],slots:{buildTool:"Vite",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"webpack.config.js":{frameworks:["Webpack"],slots:{buildTool:"Webpack"},priority:25,intelligence:"medium"},"rollup.config.js":{frameworks:["Rollup"],slots:{buildTool:"Rollup"},priority:25,intelligence:"medium"},"esbuild.config.js":{frameworks:["esbuild"],slots:{buildTool:"esbuild"},priority:25,intelligence:"medium"},"parcel.config.js":{frameworks:["Parcel"],slots:{buildTool:"Parcel"},priority:25,intelligence:"medium"},"snowpack.config.js":{frameworks:["Snowpack"],slots:{buildTool:"Snowpack"},priority:25,intelligence:"medium"},"tsconfig.json":{frameworks:["TypeScript"],slots:{mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"jsconfig.json":{frameworks:["JavaScript"],slots:{mainLanguage:"JavaScript"},priority:20,intelligence:"medium"},"babel.config.js":{frameworks:["Babel"],slots:{buildTool:"Babel"},priority:20,intelligence:"medium"},".babelrc":{frameworks:["Babel"],slots:{buildTool:"Babel"},priority:20,intelligence:"medium"},"jest.config.js":{frameworks:["Jest"],slots:{cicd:"Jest"},priority:25,intelligence:"medium"},"jest.config.ts":{frameworks:["Jest"],slots:{cicd:"Jest",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"vitest.config.ts":{frameworks:["Vitest"],slots:{cicd:"Vitest",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"cypress.config.js":{frameworks:["Cypress"],slots:{cicd:"Cypress"},priority:25,intelligence:"medium"},"playwright.config.ts":{frameworks:["Playwright"],slots:{cicd:"Playwright",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"karma.conf.js":{frameworks:["Karma"],slots:{cicd:"Karma"},priority:20,intelligence:"medium"},"mocha.opts":{frameworks:["Mocha"],slots:{cicd:"Mocha"},priority:20,intelligence:"medium"},".rspec":{frameworks:["RSpec"],slots:{cicd:"RSpec",mainLanguage:"Ruby"},priority:25,intelligence:"medium"},"pytest.ini":{frameworks:["Pytest"],slots:{cicd:"Pytest",mainLanguage:"Python"},priority:25,intelligence:"medium"},"phpunit.xml":{frameworks:["PHPUnit"],slots:{cicd:"PHPUnit",mainLanguage:"PHP"},priority:25,intelligence:"medium"},"schema.prisma":{frameworks:["Prisma"],slots:{database:"Prisma ORM",connection:"Prisma"},priority:25,intelligence:"medium"},"drizzle.config.ts":{frameworks:["Drizzle"],slots:{database:"Drizzle ORM",connection:"Drizzle",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"ormconfig.js":{frameworks:["TypeORM"],slots:{database:"TypeORM",connection:"TypeORM"},priority:25,intelligence:"medium"},"knexfile.js":{frameworks:["Knex.js"],slots:{database:"Knex.js",connection:"Knex.js"},priority:25,intelligence:"medium"},"sequelize.config.js":{frameworks:["Sequelize"],slots:{database:"Sequelize",connection:"Sequelize"},priority:25,intelligence:"medium"},"alembic.ini":{frameworks:["Alembic"],slots:{database:"Alembic",mainLanguage:"Python"},priority:25,intelligence:"medium"},".github/workflows":{frameworks:["GitHub Actions"],slots:{cicd:"GitHub Actions"},priority:25,intelligence:"medium"},".gitlab-ci.yml":{frameworks:["GitLab CI"],slots:{cicd:"GitLab CI"},priority:25,intelligence:"medium"},Jenkinsfile:{frameworks:["Jenkins"],slots:{cicd:"Jenkins"},priority:25,intelligence:"medium"},".circleci/config.yml":{frameworks:["CircleCI"],slots:{cicd:"CircleCI"},priority:25,intelligence:"medium"},".travis.yml":{frameworks:["Travis CI"],slots:{cicd:"Travis CI"},priority:25,intelligence:"medium"},"azure-pipelines.yml":{frameworks:["Azure DevOps"],slots:{cicd:"Azure DevOps"},priority:25,intelligence:"medium"},"bitbucket-pipelines.yml":{frameworks:["Bitbucket Pipelines"],slots:{cicd:"Bitbucket Pipelines"},priority:25,intelligence:"medium"},"tailwind.config.js":{frameworks:["Tailwind CSS"],slots:{cssFramework:"Tailwind CSS"},priority:20,intelligence:"medium"},"tailwind.config.ts":{frameworks:["Tailwind CSS"],slots:{cssFramework:"Tailwind CSS",mainLanguage:"TypeScript"},priority:20,intelligence:"medium"},"postcss.config.js":{frameworks:["PostCSS"],slots:{cssFramework:"PostCSS"},priority:20,intelligence:"medium"},"uno.config.ts":{frameworks:["UnoCSS"],slots:{cssFramework:"UnoCSS",mainLanguage:"TypeScript"},priority:20,intelligence:"medium"},"styled-components.config.js":{frameworks:["styled-components"],slots:{cssFramework:"styled-components",uiLibrary:"styled-components"},priority:20,intelligence:"medium"},"emotion.config.js":{frameworks:["Emotion"],slots:{cssFramework:"Emotion",uiLibrary:"Emotion"},priority:20,intelligence:"medium"},"metro.config.js":{frameworks:["React Native"],slots:{framework:"React Native",mainLanguage:"JavaScript"},priority:25,intelligence:"medium"},"expo.config.js":{frameworks:["Expo"],slots:{framework:"React Native",buildTool:"Expo"},priority:25,intelligence:"medium"},"app.json":{frameworks:["React Native","Expo"],slots:{framework:"React Native"},priority:20,intelligence:"medium",confirmWith:["expo"]},"capacitor.config.ts":{frameworks:["Capacitor"],slots:{framework:"Capacitor",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"ionic.config.json":{frameworks:["Ionic"],slots:{framework:"Ionic",uiLibrary:"Ionic"},priority:25,intelligence:"medium"},"nx.json":{frameworks:["Nx"],slots:{buildTool:"Nx"},priority:25,intelligence:"medium"},"turbo.json":{frameworks:["Turborepo"],slots:{buildTool:"Turborepo"},priority:25,intelligence:"medium"},"lerna.json":{frameworks:["Lerna"],slots:{buildTool:"Lerna"},priority:25,intelligence:"medium"},"rush.json":{frameworks:["Rush"],slots:{buildTool:"Rush"},priority:25,intelligence:"medium"},"pnpm-workspace.yaml":{frameworks:["pnpm workspaces"],slots:{packageManager:"pnpm",buildTool:"pnpm workspaces"},priority:25,intelligence:"medium"},"*.svelte":{frameworks:["Svelte","SvelteKit"],slots:{framework:"Svelte"},priority:15,intelligence:"low"},"*.vue":{frameworks:["Vue"],slots:{framework:"Vue"},priority:15,intelligence:"low"},"*.jsx":{frameworks:["React"],slots:{framework:"React",mainLanguage:"JavaScript"},priority:15,intelligence:"low"},"*.ts":{frameworks:["TypeScript"],slots:{mainLanguage:"TypeScript"},priority:15,intelligence:"low"},"*.tsx":{frameworks:["React","TypeScript"],slots:{framework:"React",mainLanguage:"TypeScript"},priority:15,intelligence:"low"},"*.py":{frameworks:["Python"],slots:{mainLanguage:"Python"},priority:15,intelligence:"low"},"*.rb":{frameworks:["Ruby"],slots:{mainLanguage:"Ruby"},priority:15,intelligence:"low"},"*.php":{frameworks:["PHP"],slots:{mainLanguage:"PHP"},priority:15,intelligence:"low"},"*.java":{frameworks:["Java"],slots:{mainLanguage:"Java"},priority:15,intelligence:"low"},"*.kt":{frameworks:["Kotlin"],slots:{mainLanguage:"Kotlin"},priority:15,intelligence:"low"},"*.swift":{frameworks:["Swift"],slots:{mainLanguage:"Swift"},priority:15,intelligence:"low"},"*.go":{frameworks:["Go"],slots:{mainLanguage:"Go"},priority:15,intelligence:"low"},"*.rs":{frameworks:["Rust"],slots:{mainLanguage:"Rust"},priority:15,intelligence:"low"},"*.dart":{frameworks:["Flutter","Dart"],slots:{mainLanguage:"Dart"},priority:15,intelligence:"low"},"*.ex":{frameworks:["Elixir"],slots:{mainLanguage:"Elixir"},priority:15,intelligence:"low"},"*.exs":{frameworks:["Elixir"],slots:{mainLanguage:"Elixir"},priority:15,intelligence:"low"},"*.scala":{frameworks:["Scala"],slots:{mainLanguage:"Scala"},priority:15,intelligence:"low"},"*.clj":{frameworks:["Clojure"],slots:{mainLanguage:"Clojure"},priority:15,intelligence:"low"},"*.lua":{frameworks:["Lua"],slots:{mainLanguage:"Lua"},priority:15,intelligence:"low"},"*.r":{frameworks:["R"],slots:{mainLanguage:"R"},priority:15,intelligence:"low"},"*.R":{frameworks:["R"],slots:{mainLanguage:"R"},priority:15,intelligence:"low"},"*.jl":{frameworks:["Julia"],slots:{mainLanguage:"Julia"},priority:15,intelligence:"low"},"*.nim":{frameworks:["Nim"],slots:{mainLanguage:"Nim"},priority:15,intelligence:"low"},"*.zig":{frameworks:["Zig"],slots:{mainLanguage:"Zig"},priority:15,intelligence:"low"},"build.zig":{frameworks:["Zig"],slots:{packageManager:"Zig Package Manager",mainLanguage:"Zig",buildTool:"zig build",framework:"Zig",build:"zig build"},priority:35,intelligence:"ultra-high"},"openapi.json":{frameworks:["OpenAPI"],slots:{apiType:"REST API",backend:"API Server"},priority:30,intelligence:"high"},"openapi.yaml":{frameworks:["OpenAPI"],slots:{apiType:"REST API",backend:"API Server"},priority:30,intelligence:"high"},"swagger.json":{frameworks:["Swagger"],slots:{apiType:"REST API",backend:"API Server"},priority:30,intelligence:"high"},"graphql.schema":{frameworks:["GraphQL"],slots:{apiType:"GraphQL",backend:"GraphQL Server"},priority:30,intelligence:"high"},"schema.graphql":{frameworks:["GraphQL"],slots:{apiType:"GraphQL",backend:"GraphQL Server"},priority:30,intelligence:"high"},".graphqlconfig":{frameworks:["GraphQL"],slots:{apiType:"GraphQL"},priority:25,intelligence:"medium"},"redux.config.js":{frameworks:["Redux"],slots:{stateManagement:"Redux"},priority:20,intelligence:"medium"},"mobx.config.js":{frameworks:["MobX"],slots:{stateManagement:"MobX"},priority:20,intelligence:"medium"},"vuex.config.js":{frameworks:["Vuex"],slots:{stateManagement:"Vuex",framework:"Vue"},priority:20,intelligence:"medium"},"pinia.config.js":{frameworks:["Pinia"],slots:{stateManagement:"Pinia",framework:"Vue"},priority:20,intelligence:"medium"},"zustand.config.js":{frameworks:["Zustand"],slots:{stateManagement:"Zustand"},priority:20,intelligence:"medium"},".eslintrc.js":{frameworks:["ESLint"],slots:{},priority:15,intelligence:"low"},".eslintrc.json":{frameworks:["ESLint"],slots:{},priority:15,intelligence:"low"},".prettierrc":{frameworks:["Prettier"],slots:{},priority:15,intelligence:"low"},".prettierrc.json":{frameworks:["Prettier"],slots:{},priority:15,intelligence:"low"},"biome.json":{frameworks:["Biome"],slots:{},priority:15,intelligence:"low"},".editorconfig":{frameworks:["EditorConfig"],slots:{},priority:10,intelligence:"low"},"serverless.yml":{frameworks:["Serverless Framework"],slots:{hosting:"AWS Lambda/Azure/GCP",backend:"Serverless",apiType:"API Gateway"},priority:30,intelligence:"high"},"serverless.yaml":{frameworks:["Serverless Framework"],slots:{hosting:"AWS Lambda/Azure/GCP",backend:"Serverless",apiType:"API Gateway"},priority:30,intelligence:"high"},"sam.yaml":{frameworks:["AWS SAM"],slots:{hosting:"AWS Lambda",backend:"AWS SAM",cicd:"AWS SAM CLI"},priority:30,intelligence:"high"},"template.yaml":{frameworks:["AWS SAM","CloudFormation"],slots:{hosting:"AWS",backend:"AWS SAM/CloudFormation",cicd:"AWS"},priority:25,intelligence:"medium",confirmWith:["samconfig.toml"]},"amplify.yml":{frameworks:["AWS Amplify"],slots:{hosting:"AWS Amplify",backend:"AWS Amplify",cicd:"AWS Amplify"},priority:30,intelligence:"high"},Podfile:{frameworks:["CocoaPods","iOS"],slots:{packageManager:"CocoaPods",mainLanguage:"Swift/Objective-C",framework:"iOS Native"},priority:30,intelligence:"high"},"build.gradle.kts":{frameworks:["Gradle Kotlin DSL","Android","Kotlin"],slots:{packageManager:"Gradle",mainLanguage:"Kotlin",buildTool:"Gradle Kotlin DSL",framework:"Android"},priority:30,intelligence:"high"},"*.ipynb":{frameworks:["Jupyter","Python"],slots:{mainLanguage:"Python",framework:"Jupyter Notebook"},priority:30,intelligence:"high"},MLproject:{frameworks:["MLflow"],slots:{mainLanguage:"Python",framework:"MLflow",backend:"MLflow",cicd:"MLflow"},priority:30,intelligence:"high"},"dvc.yaml":{frameworks:["DVC","Data Version Control"],slots:{mainLanguage:"Python",framework:"DVC",cicd:"DVC Pipelines"},priority:30,intelligence:"high"},"dvc.lock":{frameworks:["DVC"],slots:{framework:"DVC"},priority:20,intelligence:"medium"},"wrangler.toml":{frameworks:["Cloudflare Workers","Cloudflare"],slots:{hosting:"Cloudflare Workers",backend:"Cloudflare Workers",runtime:"V8 Isolates"},priority:30,intelligence:"high"},"deno.json":{frameworks:["Deno"],slots:{runtime:"Deno",mainLanguage:"TypeScript",packageManager:"Deno"},priority:30,intelligence:"high"},"bun.lockb":{frameworks:["Bun"],slots:{runtime:"Bun",packageManager:"Bun",mainLanguage:"TypeScript/JavaScript"},priority:30,intelligence:"high"},"codecov.yml":{frameworks:["Codecov"],slots:{cicd:"Codecov"},priority:25,intelligence:"high"},"dependabot.yml":{frameworks:["Dependabot","GitHub"],slots:{cicd:"Dependabot"},priority:25,intelligence:"high"},"renovate.json":{frameworks:["Renovate"],slots:{cicd:"Renovate"},priority:25,intelligence:"high"},Makefile:{frameworks:["Make","GNU Make"],slots:{buildTool:"Make"},priority:30,intelligence:"high"},"CMakeLists.txt":{frameworks:["CMake","C","C++"],slots:{buildTool:"CMake",mainLanguage:"C/C++"},priority:30,intelligence:"high"},"meson.build":{frameworks:["Meson","C","C++"],slots:{buildTool:"Meson",mainLanguage:"C/C++"},priority:30,intelligence:"high"},"*.c":{frameworks:["C"],slots:{mainLanguage:"C"},priority:30,intelligence:"high"},"*.cpp":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:30,intelligence:"high"},"*.cc":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:30,intelligence:"high"},"*.cxx":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:25,intelligence:"high"},"*.h":{frameworks:["C","C++"],slots:{mainLanguage:"C/C++"},priority:25,intelligence:"high"},"*.hpp":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:25,intelligence:"high"},"*.hxx":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:20,intelligence:"medium"},".env":{frameworks:[],slots:{},priority:20,intelligence:"medium"},".env.example":{frameworks:[],slots:{},priority:25,intelligence:"high"},".env.local":{frameworks:[],slots:{},priority:20,intelligence:"medium"},".env.development":{frameworks:[],slots:{},priority:20,intelligence:"medium"},".env.production":{frameworks:[],slots:{},priority:20,intelligence:"medium"},"skaffold.yaml":{frameworks:["Skaffold","Kubernetes"],slots:{hosting:"Kubernetes",cicd:"Skaffold"},priority:30,intelligence:"high"},"Chart.yaml":{frameworks:["Helm","Kubernetes"],slots:{hosting:"Kubernetes",backend:"Helm"},priority:30,intelligence:"high"},"values.yaml":{frameworks:["Helm","Kubernetes"],slots:{hosting:"Kubernetes"},priority:25,intelligence:"high",confirmWith:["Chart.yaml"]},"pulumi.yaml":{frameworks:["Pulumi"],slots:{hosting:"Cloud",cicd:"Pulumi"},priority:30,intelligence:"high"},"Pulumi.yaml":{frameworks:["Pulumi"],slots:{hosting:"Cloud",cicd:"Pulumi"},priority:30,intelligence:"high"},"terragrunt.hcl":{frameworks:["Terragrunt","Terraform"],slots:{hosting:"Cloud",cicd:"Terragrunt"},priority:30,intelligence:"high"},"ansible.yml":{frameworks:["Ansible"],slots:{cicd:"Ansible"},priority:30,intelligence:"high"},"playbook.yml":{frameworks:["Ansible"],slots:{cicd:"Ansible"},priority:25,intelligence:"high"},"*.cs":{frameworks:["C#",".NET","Unity"],slots:{mainLanguage:"C#"},priority:30,intelligence:"high"},"*.m":{frameworks:["Objective-C","iOS"],slots:{mainLanguage:"Objective-C"},priority:25,intelligence:"high"},".nvmrc":{frameworks:["Node.js","nvm"],slots:{runtime:"Node.js"},priority:25,intelligence:"high"},".tool-versions":{frameworks:["asdf"],slots:{},priority:25,intelligence:"high"},".ruby-version":{frameworks:["Ruby","rbenv"],slots:{mainLanguage:"Ruby",runtime:"Ruby"},priority:25,intelligence:"high"},".python-version":{frameworks:["Python","pyenv"],slots:{mainLanguage:"Python",runtime:"Python"},priority:25,intelligence:"high"},".dockerignore":{frameworks:["Docker"],slots:{},priority:20,intelligence:"medium"},".gitattributes":{frameworks:["Git"],slots:{},priority:15,intelligence:"low"},".npmrc":{frameworks:["npm","Node.js"],slots:{packageManager:"npm"},priority:20,intelligence:"medium"},"sonar-project.properties":{frameworks:["SonarQube","SonarCloud"],slots:{cicd:"SonarQube"},priority:25,intelligence:"high"},"*.fs":{frameworks:["F#",".NET"],slots:{mainLanguage:"F#"},priority:25,intelligence:"high"},"*.mm":{frameworks:["Objective-C++","iOS","macOS"],slots:{mainLanguage:"Objective-C++"},priority:25,intelligence:"high"},"build.zig.zon":{frameworks:["Zig"],slots:{mainLanguage:"Zig",packageManager:"Zig Package Manager",buildTool:"zig build"},priority:35,intelligence:"ultra-high"},"gleam.toml":{frameworks:["Gleam","BEAM","Erlang"],slots:{mainLanguage:"Gleam",runtime:"BEAM",packageManager:"Gleam"},priority:30,intelligence:"high"},"bunfig.toml":{frameworks:["Bun"],slots:{runtime:"Bun",packageManager:"Bun",buildTool:"Bun"},priority:30,intelligence:"high"},"mise.toml":{frameworks:["mise"],slots:{},priority:25,intelligence:"high"},".mise.toml":{frameworks:["mise"],slots:{},priority:25,intelligence:"high"},"manifest.toml":{frameworks:["Flox","Nix"],slots:{},priority:25,intelligence:"high",confirmWith:[".flox"]},justfile:{frameworks:["Just"],slots:{buildTool:"Just"},priority:25,intelligence:"high"},".pre-commit-config.yaml":{frameworks:["pre-commit"],slots:{cicd:"pre-commit"},priority:25,intelligence:"high"},"CLAUDE.md":{frameworks:["Claude Code"],slots:{},priority:30,intelligence:"high",confirmWith:[".claude"]}};import{existsSync as i8,readFileSync as TH,readdirSync as KH}from"fs";import{join as c2}from"path";var k0={version:1,_doc:"SINGLE SOURCE of Dart/Flutter detection KNOWLEDGE (A+B hybrid, the Truth-is-faf-cli spec). faf-cli imports this directly; faf-python-sdk vendors a synced copy (phase 2); MCPs consume the SDK (phase 3). To bolster Dart/Flutter support — a new state library, server framework, MCP dep — edit THIS file and every engine inherits it. The thin per-language LOGIC (pubspec parse, app-vs-package heuristic, priority branching) lives in code, not here.",flutterDeps:["flutter"],mcpDeps:["dart_mcp","mcp_server","mcp_dart","dart_mcp_server","mcp"],serverFrameworks:[["serverpod","Serverpod"],["dart_frog","Dart Frog"],["conduit","Conduit"],["angel3_framework","Angel3"],["alfred","Alfred"],["shelf","Shelf"]],stateManagement:[["flutter_riverpod","Riverpod"],["hooks_riverpod","Riverpod"],["riverpod","Riverpod"],["flutter_bloc","Bloc"],["bloc","Bloc"],["provider","Provider"],["get","GetX"],["flutter_mobx","MobX"],["mobx","MobX"],["signals","Signals"]],routing:[["go_router","go_router"],["auto_route","auto_route"]]};var AH=k0.flutterDeps,NH=k0.mcpDeps,wH=k0.serverFrameworks,bH=k0.stateManagement,CH=k0.routing;function jH($){let Z=new Set,X=!1;for(let U of $.split(`
215
- `)){if(/^(dependencies|dev_dependencies|dependency_overrides):\s*$/.test(U)){X=!0;continue}if(/^\S/.test(U))X=!1;if(X){let z=U.match(/^\s{2}([a-zA-Z0-9_]+):/);if(z)Z.add(z[1].toLowerCase())}}return Z}function L1($){let Z=c2($,"pubspec.yaml");if(!i8(Z))return null;let X;try{X=TH(Z,"utf-8")}catch{return null}let U=jH(X),z=(T)=>U.has(T.toLowerCase()),Q=AH.some(z)||/^flutter:\s*$/m.test(X)||/\bsdk:\s*flutter\b/.test(X),J=NH.find(z),H=wH.find(([T])=>z(T)),q=bH.find(([T])=>z(T)),G=q?q[1]:"",B=CH.find(([T])=>z(T)),_=B?B[1]:"",Y=z("flutter_test")?"flutter_test":z("test")?"test":"",O=/^executables:\s*$/m.test(X),L=!1;try{L=KH(c2($,"bin")).some((T)=>T.endsWith(".dart"))}catch{}let V=O||L,W,D="",M;if(Q)if(D="Flutter",i8(c2($,"lib","main.dart"))||/^publish_to:\s*['"]?none\b/m.test(X))W="mobile",M="pubspec.yaml (Flutter app)";else W="library",M="pubspec.yaml (Flutter package)";else if(J)W="mcp",M=`pubspec.yaml + ${J} (Dart MCP server)`;else if(H)W="backend",D=H[1],M=`pubspec.yaml + ${H[0]} (Dart backend)`;else if(V)W="cli",M=O?"pubspec.yaml executables: (Dart CLI)":"pubspec.yaml + bin/*.dart (Dart CLI)";else W="library",M="pubspec.yaml (Dart package)";return{appType:W,isFlutter:Q,framework:D,stateManagement:G,routing:_,testing:Y,found:M}}var hH=new Set(["node_modules",".git","dist","build","venv",".venv","__pycache__","target","coverage",".next",".svelte-kit","vendor"]),xH=new Set([".py",".ts",".tsx",".js",".jsx",".svelte",".vue",".rb",".go",".rs",".php",".java",".kt",".swift"]),uH={mainLanguage:["project","main_language"],main_language:["project","main_language"],framework:["stack","frontend"],cssFramework:["stack","css_framework"],css:["stack","css_framework"],uiLibrary:["stack","ui_library"],ui_library:["stack","ui_library"],stateManagement:["stack","state_management"],state:["stack","state_management"],backend:["stack","backend"],apiType:["stack","api_type"],api:["stack","api_type"],runtime:["stack","runtime"],database:["stack","database"],db:["stack","database"],connection:["stack","connection"],hosting:["stack","hosting"],buildTool:["stack","build"],build_tool:["stack","build"],build:["stack","build"],packageManager:["stack","package_manager"],pkg_manager:["stack","package_manager"],cicd:["stack","cicd"]},kH=[["packageManager","package-manager"],["pkg_manager","package-manager"],["mainLanguage","language"],["main_language","language"],["framework","framework"],["backend","backend"],["database","database"],["db","database"],["cicd","ci-cd"],["hosting","hosting"],["buildTool","build"],["build_tool","build"],["build","build"],["runtime","runtime"],["cssFramework","css"],["css","css"],["uiLibrary","ui-library"],["stateManagement","state-management"],["apiType","api"],["api","api"]];function vH($,Z){for(let[X,U]of kH)if(X in $)return U;return Z.length>0?"framework":"config"}function mH($){try{let Z=JSON.parse(EH($,"utf-8")),X=["background","content_scripts","action","browser_action","permissions"].some((U)=>(U in Z));if(typeof Z.manifest_version==="number"&&X)return"chrome";return"other"}catch{return"other"}}function pH($){let Z=[],X=fH($),U=SH(i2($,".git"));for(let z=0;z<10;z++){let Q;try{Q=s8(X)}catch{break}for(let H of Q){let q=d2[H];if(!q)continue;if(H==="manifest.json"&&mH(i2(X,H))!=="chrome")continue;if(H==="pubspec.yaml"){let G=L1(X);if(G){let B={mainLanguage:"Dart",packageManager:"pub"};if(G.isFlutter){if(B.framework="Flutter",G.stateManagement)B.stateManagement=G.stateManagement}else if(G.appType==="backend"&&G.framework)B.backend=G.framework;else if(G.appType==="mcp")B.apiType="MCP";Z.push({slots:B,priority:q.priority,frameworks:G.isFlutter?["Flutter","Dart"]:["Dart"],fileName:H});continue}}Z.push({slots:q.slots||{},priority:q.priority,frameworks:q.frameworks,fileName:H})}if(U&&z===0)break;let J=gH(X);if(J===X)break;X=J}return Z}function lH($){let Z=[];for(let X of r8($,2,{count:0})){let U=d2[`*${X}`],z=U?.slots?.mainLanguage;if(z)Z.push({slots:{mainLanguage:z},priority:U.priority,frameworks:U.frameworks})}return Z}function a8($){let Z=[...pH($),...lH($)],X={},U={},z=new Set;for(let G of Z){G.frameworks.forEach((B)=>z.add(B));for(let[B,_]of Object.entries(G.slots))if(_&&!_.includes("/")&&(!(B in X)||G.priority>U[B]))X[B]=_,U[B]=G.priority}let Q=new Map;for(let G of Z){if(!G.fileName)continue;if(!Q.has(G.fileName))Q.set(G.fileName,{fileName:G.fileName,category:vH(G.slots,G.frameworks),priority:G.priority})}let J=[...Q.values()].sort((G,B)=>B.priority-G.priority||G.fileName.localeCompare(B.fileName)),H=[];if(X.mainLanguage)H.push(X.mainLanguage.toLowerCase());if(X.framework)H.push(X.framework.toLowerCase());let q=H.length>0?H.join("-"):"unknown-stack";return{slotFills:X,frameworks:[...z],confirmedCount:Z.length,discoveredFormats:J,stackSignature:q}}function s2($){let{slotFills:Z}=a8($),X={};for(let[U,z]of Object.entries(Z)){let Q=uH[U];if(!Q||!z)continue;let[J,H]=Q;if(J==="project")(X.project??={})[H]=z;else(X.stack??={})[H]=z}return X}function r8($,Z,X){let U=new Set;if(Z<0||X.count>400)return U;let z;try{z=s8($,{withFileTypes:!0})}catch{return U}for(let Q of z){if(X.count++>400)break;if(!Q.isDirectory()){let J=yH(Q.name);if(xH.has(J))U.add(J);continue}if(hH.has(Q.name)||Q.name.startsWith("."))continue;for(let J of r8(i2($,Q.name),Z-1,X))U.add(J)}return U}import{existsSync as n8,readFileSync as o8}from"fs";import{join as t8}from"path";var h=($,Z,X)=>({value:$,source:Z,confidence:X});function e8($){let Z=dH($),X=cH($),U={},z=(Q,J)=>{if(J)U[Q]=J};return z("what",iH(Z,X)),z("who",sH(X)),z("why",aH(X)),z("where",rH(Z,X)),z("when",nH(X)),z("how",oH(Z,X)),U}function a2($){let Z=e8($),X={};return Object.keys(Z).forEach((U)=>{let z=Z[U];if(z)X[U]=z.value}),X}function dH($){let Z=t8($,"package.json");if(!n8(Z))return null;try{return JSON.parse(o8(Z,"utf-8"))}catch{return null}}function cH($){let Z=t8($,"README.md");if(!n8(Z))return"";let X;try{X=o8(Z,"utf-8")}catch{return""}return X.split(`
213
+ `}function uJ($,Z,X,U="project.faf"){jJ(SJ($,"project.html"),D3(Z,X,U),"utf-8")}import{writeFileSync as kJ}from"fs";import{join as vJ}from"path";var F3="application/vnd.faf+yaml",mJ="https://static.modelcontextprotocol.io/schemas/v1/server-card.schema.json",pJ=/^[a-zA-Z0-9.-]+\/[a-zA-Z0-9._-]+$/;function P3($){let Z=String($.project?.name??"project").trim();if(Z.includes("/")&&pJ.test(Z))return Z;let X=$.project?.homepage??$.project?.website??$.project?.url,U="local";if(X)try{U=new URL(X).hostname.replace(/^www\./,"").split(".").reverse().join(".")}catch{}let z=Z.replace(/[^a-zA-Z0-9._-]/g,"-").replace(/^-+|-+$/g,"")||"project";return`${U}/${z}`}function lJ($){let Z=String($.project?.goal??$.context??$.project?.name??"MCP server").replace(/\s+/g," ").trim();if(!Z)return"MCP server";return Z.length<=100?Z:`${Z.slice(0,97).trimEnd()}...`}function f2($,Z={}){return{faf:Z.fafPointer??"./project.faf",mediaType:F3,iana:`https://www.iana.org/assignments/media-types/${F3}`,deterministic:!0,...Z.scoreEndpoint?{scoreEndpoint:Z.scoreEndpoint}:{},generated:$.generated??Z.now??new Date().toISOString()}}function T3($,Z={}){let X={$schema:mJ,name:P3($),version:String($.project?.version??"0.1.0"),description:lJ($)},U=iJ($)??$.project?.name;if(U&&U.length<=100)X.title=U;let z=$.project?.homepage??$.project?.website??$.project?.url;if(z)X.websiteUrl=z;if(Z.remoteUrl)X.remotes=[{type:"streamable-http",url:Z.remoteUrl}];return X._meta={"one.faf/context":f2($,Z)},X}var K3="io.modelcontextprotocol.registry/publisher-provided",M3=4096;function dJ($,Z={}){let X={"one.faf/context":f2($,Z)},U=new TextEncoder().encode(JSON.stringify(X)).length;if(U>M3)throw Error(`publisher-provided _meta is ${U}B — exceeds the registry ${M3}B cap`);return{[K3]:X}}function cJ($){return P3($)}function iJ($){let Z=$.project?.title;if(typeof Z==="string"){let X=Z.trim();if(X&&X.length<=100)return X}return}function sJ($,Z,X={}){let U=T3(Z,X),z=vJ($,"server-card");return kJ(z,`${JSON.stringify(U,null,2)}
214
+ `,"utf-8"),z}var x2=["ephemeral","standard","high","critical"],_0=Object.fromEntries(x2.map(($,Z)=>[$,Z])),V1=new Set(["user","feedback","project","reference"]),h2=new Set(["version","profile","namepoint","created","last_etched","retention","index","memory"]),u2=new Set(["facts","sessions","preferences","custom"]),k2={low:"ephemeral",medium:"standard"};import{readFileSync as aJ,writeFileSync as rJ,existsSync as nJ}from"fs";function x0(){return new Date().toISOString().replace(/\.\d{3}Z$/,"Z")}function h($){return $===null||$===void 0}function R$($){if(h($))return"standard";if(k2[$])return k2[$];if($ in _0)return $;return"standard"}var oJ=new Set(["text","id","type","priority","tags","links","timestamp","source"]);function A3($){if(typeof $==="string")return{text:$,id:null,type:null,priority:"standard",tags:[],links:[],timestamp:null,source:null,extra:{}};if(!$||typeof $!=="object"||!("text"in $))throw Error(`fact must be a string or a mapping with 'text': ${JSON.stringify($)}`);let Z=$,X={};for(let[U,z]of Object.entries(Z))if(!oJ.has(U))X[U]=z;return{text:String(Z.text),id:Z.id??null,type:Z.type??null,priority:R$(Z.priority),tags:Array.isArray(Z.tags)?Z.tags.slice():[],links:Array.isArray(Z.links)?Z.links.slice():[],timestamp:Z.timestamp??null,source:Z.source??null,extra:X}}function N3($){if(h($.id)&&h($.type)&&$.tags.length===0&&$.links.length===0&&h($.timestamp)&&h($.source)&&Object.keys($.extra).length===0&&$.priority==="standard")return $.text;let X={text:$.text};if(!h($.id))X.id=$.id;if(!h($.type))X.type=$.type;if(X.priority=$.priority,$.tags.length)X.tags=$.tags;if($.links.length)X.links=$.links;if(!h($.timestamp))X.timestamp=$.timestamp;if(!h($.source))X.source=$.source;return Object.assign(X,$.extra),X}class I0{namepoint;profile;retention;created;last_etched;_facts;_byId;_index;_sessions;_preferences;_custom;_extra;_memoryExtra;constructor($,Z={}){this.namepoint=$,this.profile=Z.profile??"knowledge",this.retention=Z.retention??"forever",this.created=Z.created??x0(),this.last_etched=this.created,this._facts=Z.facts?Z.facts.slice():[],this._byId=new Map,this._facts.forEach((X,U)=>{if(!h(X.id))this._byId.set(X.id,U)}),this._index=Z.index?Z.index.slice():[],this._sessions=Z.sessions?structuredClone(Z.sessions):[],this._preferences=Z.preferences?{...Z.preferences}:{},this._custom=Z.custom?{...Z.custom}:{},this._extra=Z.extra?{...Z.extra}:{},this._memoryExtra=Z.memoryExtra?{...Z.memoryExtra}:{}}get facts(){return this._facts}get index(){return this._index}get sessions(){return this._sessions}get preferences(){return this._preferences}get custom(){return this._custom}get extra(){return this._extra}get memoryExtra(){return this._memoryExtra}static load($){if(!nJ($))throw Error(`soul file not found: ${$}`);let Z=aJ($,"utf-8"),X=o(Z);if(!X||typeof X!=="object")throw Error("soul is not a YAML mapping");let U=X.memory&&typeof X.memory==="object"?X.memory:{},z=Array.isArray(U.facts)?U.facts:[],Q={};for(let[q,_]of Object.entries(X))if(!h2.has(q))Q[q]=structuredClone(_);let J={};for(let[q,_]of Object.entries(U))if(!u2.has(q))J[q]=structuredClone(_);let H=new I0(String(X.namepoint??$.replace(/.*\//,"").replace(/\.fafm$/,"")),{profile:String(X.profile??"voice"),facts:z.map(A3),retention:String(X.retention??"forever"),created:X.created??null,index:Array.isArray(X.index)?X.index.slice():[],sessions:Array.isArray(U.sessions)?structuredClone(U.sessions):[],preferences:U.preferences&&typeof U.preferences==="object"?structuredClone(U.preferences):{},custom:U.custom&&typeof U.custom==="object"?structuredClone(U.custom):{},extra:Q,memoryExtra:J});return H.last_etched=String(X.last_etched??H.created),H}static fromFile($){return I0.load($)}toDoc(){let $={facts:this._facts.map(N3),sessions:structuredClone(this._sessions),preferences:structuredClone(this._preferences),custom:structuredClone(this._custom)};for(let[X,U]of Object.entries(this._memoryExtra))if(!u2.has(X))$[X]=structuredClone(U);let Z={version:"1.1",profile:this.profile,namepoint:this.namepoint,created:this.created,last_etched:this.last_etched,retention:this.retention,index:this._index.slice(),memory:$};for(let[X,U]of Object.entries(this._extra))if(!h2.has(X))Z[X]=structuredClone(U);return Z}toYaml(){return Y1(this.toDoc(),{lineWidth:100})}rebuildIndex($=80){return this._index=this._facts.map((Z)=>`${Z.id??"?"} — ${Z.text.slice(0,$)}`),this._index}save($,Z={}){if(Z.reindex!==!1)this.rebuildIndex();return rJ($,this.toYaml(),"utf-8"),$}toFile($,Z={}){return this.save($,Z)}add($){if(!h($.id)&&this._byId.has($.id)){let Z=this._byId.get($.id);if(Z!==void 0)this._facts[Z]=$}else if(this._facts.push($),!h($.id))this._byId.set($.id,this._facts.length-1);if($.timestamp&&$.timestamp>(this.last_etched||""))this.last_etched=$.timestamp;return $}etch($,Z={}){return this.add({text:$,id:Z.id??null,type:Z.type??null,priority:R$(Z.priority),tags:Z.tags?Z.tags.slice():[],links:Z.links?Z.links.slice():[],timestamp:x0(),source:Z.source??null,extra:{}})}recall($,Z={}){let X=_0[R$(Z.minPriority??"ephemeral")]??0,U=($??"").toLowerCase(),z=new Set(Z.tags??[]),Q=[];this._facts.forEach((H,q)=>{if(U&&!H.text.toLowerCase().includes(U))return;if(z.size>0&&![...z].some((_)=>H.tags.includes(_)))return;if(!h(Z.type)&&H.type!==Z.type)return;if((_0[H.priority]??1)<X)return;Q.push([q,H])}),Q.sort((H,q)=>{let _=_0[H[1].priority]??1,B=_0[q[1].priority]??1;if(B!==_)return B-_;let G=H[1].timestamp??"",Y=q[1].timestamp??"";if(Y!==G)return Y<G?-1:Y>G?1:0;return q[0]-H[0]});let J=Q.map(([,H])=>H);if(!h(Z.limit))return J.slice(0,Z.limit);return J}getFact($){let Z=this._byId.get($);return Z===void 0?null:this._facts[Z]}deleteFact($){let Z=this._byId.get($);if(Z===void 0)return!1;return this._facts.splice(Z,1),this._byId.clear(),this._facts.forEach((X,U)=>{if(!h(X.id))this._byId.set(X.id,U)}),!0}}import{readdirSync as tJ,readFileSync as eJ,statSync as w3,existsSync as $H}from"fs";import{join as ZH,basename as b3,resolve as XH}from"path";var C3=new Set(["MEMORY.md","MEMORY-FULL.md","README.md"]),UH=/\[\[([^\]]+)\]\]/g;function zH($){let Z=w3($).mtimeMs;return new Date(Z).toISOString().replace(/\.\d{3}Z$/,"Z")}function QH($){if(!$.startsWith("---"))return{fm:null,body:$};let Z=$.split("---");if(Z.length<3)return{fm:null,body:$};try{let X=o(Z[1]);if(!X||typeof X!=="object")return{fm:null,body:Z.slice(2).join("---").trim()};return{fm:X,body:Z.slice(2).join("---").trim()}}catch{return{fm:null,body:$}}}function JH($,Z,X){if(!X.name)return null;let U=X.metadata&&typeof X.metadata==="object"?X.metadata:{},z=U.type;if(typeof z!=="string"||!V1.has(z))return null;let Q=String(X.name).trim(),H=(X.description!==void 0&&X.description!==null&&String(X.description).trim()?String(X.description).trim():"")||Q,q={};if(U.originSessionId)q.provenance=[`session:${U.originSessionId}`];let _=[...new Set([...Z.matchAll(UH)].map((B)=>B[1]))].sort();return{text:H,id:Q,type:z,priority:"standard",tags:[],links:_,timestamp:zH($),source:`claude-code memory: ${b3($)}`,extra:q}}function j3($,Z={}){let X=XH($);if(!$H(X))throw Error(`Claude memory directory not found: ${X}`);if(!w3(X).isDirectory())throw Error(`Claude memory path is not a directory: ${X}`);let U=Z.skip??C3,z=Z.namepoint??`@claude-code:${b3(X)}`,Q=[],J=tJ(X).filter((G)=>G.endsWith(".md")).sort();for(let G of J){if(U.has(G))continue;let Y=ZH(X,G),O;try{O=eJ(Y,"utf-8")}catch{continue}let{fm:L,body:V}=QH(O);if(!L)continue;let W=JH(Y,V,L);if(W)Q.push(W)}let H=Q.map((G)=>G.timestamp).filter(Boolean),q=H.length?H.reduce((G,Y)=>G<Y?G:Y):x0(),_=H.length?H.reduce((G,Y)=>G>Y?G:Y):q,B=new I0(z,{profile:"knowledge",facts:Q,created:q});return B.last_etched=_,B.rebuildIndex(),B}var f3="faf-interview/1",h0="(terse — 3-4 words)",v2=[{path:"project.name",question:"What is the name of this project?",header:"Name",type:"text",required:!0},{path:"project.goal",question:"What does this project do? (one sentence)",header:"Goal",type:"text",required:!0},{path:"human_context.who",question:`Who is this for? ${h0}`,header:"Who",type:"text",required:!0},{path:"human_context.what",question:`What are they building? ${h0}`,header:"What",type:"text",required:!0},{path:"human_context.why",question:`Why does it exist? ${h0}`,header:"Why",type:"text",required:!0},{path:"human_context.where",question:`Where does it run or ship? ${h0}`,header:"Where",type:"text",required:!0},{path:"human_context.when",question:`When — timeline or stage? ${h0}`,header:"When",type:"text",required:!0},{path:"human_context.how",question:`How is it built or used? ${h0}`,header:"How",type:"text",required:!0}],x3=[{path:"project.main_language",question:"What is the primary programming language?",header:"Language",type:"select",required:!0,options:[{label:"TypeScript",value:"TypeScript",description:"JavaScript with types"},{label:"JavaScript",value:"JavaScript",description:"Vanilla JS or Node.js"},{label:"Python",value:"Python",description:"Python 3.x"},{label:"Rust",value:"Rust",description:"Systems programming"},{label:"Go",value:"Go",description:"Golang"},{label:"Other",value:"Other",description:"Specify manually"}]},{path:"stack.frontend",question:"What frontend framework does it use?",header:"Frontend",type:"select",required:!1,options:[{label:"React",value:"React",description:"React.js"},{label:"Vue",value:"Vue",description:"Vue.js"},{label:"Svelte",value:"Svelte",description:"Svelte/SvelteKit"},{label:"Next.js",value:"Next.js",description:"React framework"},{label:"None",value:"None",description:"No frontend"},{label:"Other",value:"Other",description:"Specify manually"}]},{path:"stack.backend",question:"What backend framework does it use?",header:"Backend",type:"select",required:!1,options:[{label:"Express",value:"Express",description:"Node.js Express"},{label:"Fastify",value:"Fastify",description:"Node.js Fastify"},{label:"Django",value:"Django",description:"Python Django"},{label:"FastAPI",value:"FastAPI",description:"Python FastAPI"},{label:"None",value:"None",description:"No backend"},{label:"Other",value:"Other",description:"Specify manually"}]},{path:"stack.database",question:"What database does it use?",header:"Database",type:"select",required:!1,options:[{label:"PostgreSQL",value:"PostgreSQL",description:"Postgres"},{label:"MySQL",value:"MySQL",description:"MySQL/MariaDB"},{label:"SQLite",value:"SQLite",description:"Embedded SQL"},{label:"MongoDB",value:"MongoDB",description:"Document store"},{label:"None",value:"None",description:"No database"},{label:"Other",value:"Other",description:"Specify manually"}]},{path:"stack.runtime",question:"What runtime does it run on?",header:"Runtime",type:"text",required:!1},{path:"stack.hosting",question:"Where is it hosted or distributed?",header:"Hosting",type:"text",required:!1},{path:"stack.build",question:"What is the build tool?",header:"Build",type:"text",required:!1},{path:"stack.cicd",question:"What CI/CD does it use?",header:"CI/CD",type:"text",required:!1}],u0=[...v2,...x3],h3=new Map(u0.map(($)=>[$.path,$])),HH=Object.fromEntries(u0.map(($)=>[$.path,$]));function m2($){let Z=h3.get($);if(Z)return Z.question;let X=l0.get($)??f.find((U)=>U.canonical===$);return X?`${X.description}?`.replace(/\?\?$/,"?"):`${$}?`}function qH($,Z){return u0.filter((X)=>{let U=X.path.split("."),z=$;for(let Q of U)if(z&&typeof z==="object"&&Q in z)z=z[Q];else{z=void 0;break}if(z==="slotignored")return!1;return Z(z)})}var _H=new Set(["developers","development teams","development team","teams","development","cloud platform","web platform","platform","best practices","improve development efficiency","development efficiency","modern development practices","modern development","test-driven development","production/stable","production","stable","app","project","tool"]),GH=[["npm",/\bnpm\b/i],["PyPI",/\bpypi\b/i],["crates.io",/\bcrates\.io\b/i],["Homebrew",/\bhomebrew\b/i],["Docker",/\bdocker\b/i],["Cloudflare",/\bcloudflare\b/i],["Vercel",/\bvercel\b/i],["Netlify",/\bnetlify\b/i],["AWS",/\baws\b/i],["Cloud Run",/\bcloud run\b/i],["edge",/\bedge\b/i],["browser",/\bbrowser\b/i],["WASM",/\bwasm\b/i],["GitHub",/\bgithub\b/i],["MCP Registry",/\bmcp registry\b/i],["Chrome Web Store",/\bchrome web store\b/i],["Smithery",/\bsmithery\b/i]],S3=($)=>_H.has($.toLowerCase().trim()),YH=/^(?:with|and|or|using|for|to|that|who|whom|whose|the|a|an|in|on|of|via|by|&)$/i;function E3($,Z=5){let X=$.trim().split(/\s+/).filter(Boolean).slice(0,Z);while(X.length&&YH.test(X[X.length-1].replace(/[.,;:]+$/,"")))X.pop();return X.join(" ")}function u3($){let Z={};if(!$||typeof $!=="string")return Z;let X=$.trim(),U=X.replace(/^[^A-Za-z0-9]+/,"").split(/\s+(?:for|that|which|to)\s+|\s+[—–]\s+|\s-\s|:\s|\.\s|,\s/)[0].trim(),z=E3(U);if(z.split(/\s+/).filter(Boolean).length>=2&&!S3(z))Z.what=z;let Q=GH.filter(([,q])=>q.test(X)).map(([q])=>q);if(Q.length)Z.where=Q.slice(0,4).join(", ");let J=X.match(/\bfor ((?:[A-Za-z][\w./+-]* )?(?:any |all )?(?:developers?|teams?|engineers?|builders?|users?|integrators?)\b[^.,;:—]*)/i),H=E3((J?.[1]||"").trim().replace(/\s+/g," "));if(H&&!S3(H))Z.who=H;return Z}function g3($,Z){let X=$;for(let U of Z.split("."))if(X&&typeof X==="object"&&U in X)X=X[U];else return;return X}function y3($){if(typeof $!=="string")return!1;let Z=$.trim();if(!Z||Z==="slotignored")return!1;return!G0(Z)}function BH($,Z={}){let X=$&&typeof $==="object"?$:{},U=g3(X,"project.goal"),z=(y3(U)?String(U).trim():"")||(Z.goal??"").trim(),Q=u3(z),J=Z.detailed??{},H={"project.goal":z||void 0,"human_context.what":Q.what,"human_context.where":Q.where,"human_context.who":Q.who},q=(O)=>{let L=H[O];if(L)return{value:L,source:"project goal",confidence:0.9};let V=O.startsWith("human_context.")?O.slice(14):"",W=V?J[V]:void 0;return W?{value:W.value,source:W.source,confidence:W.confidence}:void 0},_=v2.map((O,L)=>{let V={n:L+1,path:O.path,header:O.header,question:O.question},W=g3(X,O.path);if(y3(W))return{...V,value:String(W).trim(),status:"filled",seeded:!1};let I=q(O.path);if(I)return{...V,value:I.value,status:"seeded",seeded:!0,source:I.source,confidence:I.confidence};return{...V,value:"",status:"empty",seeded:!1}}),B=_.filter((O)=>O.status==="filled").length,G=_.filter((O)=>O.status==="seeded").length,Y=_.filter((O)=>O.status==="empty").length;return{version:f3,rows:_,filledCount:B,seededCount:G,emptyCount:Y,complete:Y===0}}function O1($){if($===null||$===void 0)return!0;if(typeof $==="string"){let Z=$.trim();return Z===""||G0(Z)}return!1}function VH($,Z){let X=$;for(let U of Z.split("."))if(X&&typeof X==="object"&&U in X)X=X[U];else return;return X}function k3($){if($==="project.goal")return!0;return l0.get($)?.category==="human"}function v3($,Z=O1){let X=[],U=[];for(let z of u0){let Q=VH($,z.path);if(Q==="slotignored")continue;if(!Z(Q))continue;(k3(z.path)?X:U).push(z.path)}return{human:X,sourceable:U}}function m3($,Z,X=O1){let U=v3(Z,X),z;if($>=100||U.human.length===0&&U.sourceable.length===0)z="done";else if(U.sourceable.length>0)z="can-source";else z="needs-human";let Q=z==="needs-human"?p2(U):[];return{status:z,score:$,gaps:U,ask:Q}}function p2($){return $.human.map((Z)=>({path:Z,question:m2(Z)}))}function OH($,Z={}){let X=Math.max(1,Z.maxRounds??5),U=Z.isEmpty??O1,z=[],Q=0;for(let H=0;H<=X;H++){let q=$.read();if(!q)return{status:"no-faf",score:0,rounds:Q,history:z,ask:[]};let _=$.score(q.yaml);z.push(_);let B=m3(_,q.data,U);if(B.status==="done")return{status:"done",score:_,rounds:Q,history:z,ask:[]};if(B.status==="needs-human")return{status:"needs-human",score:_,rounds:Q,history:z,ask:B.ask};if(z.length>=2&&_<=z[z.length-2])return B.gaps.human.length?{status:"needs-human",score:_,rounds:Q,history:z,ask:p2(B.gaps)}:{status:"stuck",score:_,rounds:Q,history:z,ask:[]};if(Q>=X)return{status:"capped",score:_,rounds:Q,history:z,ask:p2(B.gaps)};$.runAuto(),Q++}return{status:"capped",score:z[z.length-1]??0,rounds:Q,history:z,ask:[]}}import{createHash as l3}from"crypto";var l2="faf-bench/1",WH={"project.name":"What is the project's name?","project.goal":"What is the project's goal — what is it for?","project.main_language":"What is the primary programming language?","human_context.who":"Who is this project for?","human_context.what":"What are they building?","human_context.why":"Why does this project exist?","human_context.where":"Where does it run or get distributed?","human_context.when":"When — what is the project's timeline or stage?","human_context.how":"How is it built or used?"};function LH($,Z){return WH[$]??`What is the project's ${Z.replace(/\s*\(.*\)$/,"").toLowerCase()}?`}var d3=[["typescript","ts"],["javascript","js"],["python","py","python3"],["node","nodejs","node js","node.js"],["github actions","gh actions","actions"],["postgresql","postgres","pg"],["kubernetes","k8s"],["npm","npm registry"],["cloudflare workers","cf workers","workers"],["google cloud run","cloud run","gcp cloud run"]],I$=new Map;d3.forEach(($,Z)=>$.forEach((X)=>I$.set(X,Z)));var RH=new Set(["a","an","the","and","or","of","for","to","in","on","with","is","it","its","their","your","via","by","using","use","used"]);function W1($){return $.toLowerCase().replace(/[^a-z0-9\s.+#-]/g," ").replace(/\.(?=\s|$)/g," ").replace(/\s+/g," ").trim()}function p3($){return W1($).split(" ").filter((Z)=>Z&&!RH.has(Z))}function c3($,Z){let X=W1($),U=W1(Z);if(!X||!U)return!1;if(X===U)return!0;let z=I$.get(X);if(z!==void 0&&I$.get(U)===z)return!0;let Q=p3($);if(Q.length===0)return!1;let J=new Set(p3(Z));return Q.every((H)=>{if(J.has(H))return!0;let q=I$.get(H);return q!==void 0&&[...J].some((_)=>I$.get(_)===q)})}function IH($){let Z=T1($),X=o($),U=[],z={},Q=0;for(let q of f){if(Z.slots[q.path]!=="populated")continue;let _=Z8(X,q);if(typeof _!=="string")continue;let B=_.trim();if(!B||M$.has(B.toLowerCase()))continue;Q+=1,U.push({n:Q,path:q.path,question:LH(q.path,q.description)}),z[Q]=B}let J=JSON.stringify({v:l2,q:U.map((q)=>[q.path,q.question])}),H=l3("sha256").update(J).digest("hex").slice(0,12);return{version:l2,qsetHash:H,questions:U,answers:z}}function DH($){return{version:$.version,qsetHash:$.qsetHash,questions:$.questions}}function FH($,Z){let X=$.questions.map((z)=>{let Q=Z[String(z.n)]??Z[z.path]??"";return{n:z.n,path:z.path,ok:typeof Q==="string"&&Q.trim()!==""&&c3($.answers[z.n],Q)}}),U=$.questions.filter((z)=>!X[z.n-1].ok);return{correct:X.filter((z)=>z.ok).length,total:$.questions.length,misses:U,perQuestion:X}}function MH($,Z){let X=JSON.stringify({v:$.version,repo:Z??null,qset:$.qsetHash,protocol:$.protocol,cold:$.cold??null,faf:$.faf??null});return{projection:X,hash:l3("sha256").update(X).digest("hex")}}import{existsSync as SH,readdirSync as s3,readFileSync as EH}from"fs";import{join as i2,dirname as gH,extname as yH,resolve as fH}from"path";var d2={"package.json":{frameworks:["Node.js","JavaScript","TypeScript"],slots:{packageManager:"npm/yarn/pnpm",mainLanguage:"JavaScript/TypeScript"},priority:35,intelligence:"ultra-high"},"README.md":{frameworks:[],slots:{targetUser:"developers",coreProblem:"understanding project",missionPurpose:"project documentation"},priority:25,intelligence:"high"},"requirements.txt":{frameworks:["Python"],slots:{packageManager:"pip",mainLanguage:"Python"},priority:35,intelligence:"ultra-high"},Pipfile:{frameworks:["Python"],slots:{packageManager:"pipenv",mainLanguage:"Python"},priority:35,intelligence:"ultra-high"},"pyproject.toml":{frameworks:["Python"],slots:{mainLanguage:"Python",runtime:"Python",backend:"Python"},priority:36,intelligence:"ultra-high"},Gemfile:{frameworks:["Ruby","Rails"],slots:{packageManager:"bundler",mainLanguage:"Ruby"},priority:35,intelligence:"ultra-high"},"composer.json":{frameworks:["PHP","Laravel","Symfony"],slots:{packageManager:"composer",mainLanguage:"PHP"},priority:35,intelligence:"ultra-high"},"Cargo.toml":{frameworks:["Rust"],slots:{packageManager:"cargo",mainLanguage:"Rust",buildTool:"cargo"},priority:36,intelligence:"ultra-high"},"go.mod":{frameworks:["Go"],slots:{packageManager:"go modules",mainLanguage:"Go",buildTool:"go build"},priority:36,intelligence:"ultra-high"},"pubspec.yaml":{frameworks:["Dart"],slots:{packageManager:"pub",mainLanguage:"Dart"},priority:35,intelligence:"ultra-high"},"pom.xml":{frameworks:["Java","Spring","Maven"],slots:{packageManager:"maven",mainLanguage:"Java",buildTool:"maven"},priority:35,intelligence:"ultra-high"},"build.gradle":{frameworks:["Java","Kotlin","Spring","Gradle"],slots:{packageManager:"gradle",mainLanguage:"Java/Kotlin",buildTool:"gradle"},priority:35,intelligence:"ultra-high"},"next.config.js":{frameworks:["Next.js"],slots:{framework:"Next.js",runtime:"Node.js",buildTool:"Next.js",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"next.config.mjs":{frameworks:["Next.js"],slots:{framework:"Next.js",runtime:"Node.js",buildTool:"Next.js",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"next.config.ts":{frameworks:["Next.js 13+"],slots:{framework:"Next.js 13+",runtime:"Node.js",buildTool:"Next.js",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"nuxt.config.js":{frameworks:["Nuxt 2"],slots:{framework:"Nuxt 2",runtime:"Node.js",buildTool:"Nuxt",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"nuxt.config.ts":{frameworks:["Nuxt 3"],slots:{framework:"Nuxt 3",runtime:"Node.js",buildTool:"Nuxt",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"svelte.config.js":{frameworks:["SvelteKit"],slots:{framework:"SvelteKit",buildTool:"Vite",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"angular.json":{frameworks:["Angular"],slots:{framework:"Angular",buildTool:"Angular CLI",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"manifest.json":{frameworks:["Chrome Extension","Browser Extension"],slots:{framework:"Chrome Extension",runtime:"Chrome/Browser",mainLanguage:"JavaScript",hosting:"Chrome Web Store",apiType:"Chrome APIs"},priority:35,intelligence:"ultra-high",confirmWith:["popup.html","background.js","content.js"]},"vue.config.js":{frameworks:["Vue"],slots:{framework:"Vue",buildTool:"Vue CLI",mainLanguage:"JavaScript"},priority:30,intelligence:"high"},"remix.config.js":{frameworks:["Remix"],slots:{framework:"Remix",runtime:"Node.js",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"gatsby-config.js":{frameworks:["Gatsby"],slots:{framework:"Gatsby",buildTool:"Gatsby",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"gatsby-config.ts":{frameworks:["Gatsby"],slots:{framework:"Gatsby",buildTool:"Gatsby",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"astro.config.mjs":{frameworks:["Astro"],slots:{framework:"Astro",buildTool:"Vite",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"redwood.toml":{frameworks:["RedwoodJS"],slots:{framework:"RedwoodJS",buildTool:"Webpack",mainLanguage:"JavaScript/TypeScript",server:"Node.js",database:"Prisma"},priority:30,intelligence:"high"},"blitz.config.ts":{frameworks:["Blitz.js"],slots:{framework:"Blitz.js",buildTool:"Next.js",mainLanguage:"TypeScript",server:"Node.js",database:"Prisma"},priority:30,intelligence:"high"},"qwik.config.ts":{frameworks:["Qwik"],slots:{framework:"Qwik",buildTool:"Vite",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"manage.py":{frameworks:["Django"],slots:{framework:"Django",backend:"Django",mainLanguage:"Python",server:"Django",apiType:"Django Views"},priority:30,intelligence:"high"},artisan:{frameworks:["Laravel"],slots:{framework:"Laravel",backend:"Laravel",mainLanguage:"PHP",server:"PHP",apiType:"Laravel Routes"},priority:30,intelligence:"high"},"mix.exs":{frameworks:["Phoenix","Elixir"],slots:{framework:"Phoenix",backend:"Phoenix",mainLanguage:"Elixir",server:"BEAM"},priority:30,intelligence:"high"},"nest-cli.json":{frameworks:["NestJS"],slots:{framework:"NestJS",backend:"NestJS",mainLanguage:"TypeScript",server:"Node.js",apiType:"REST API"},priority:30,intelligence:"high"},"strapi.config.js":{frameworks:["Strapi"],slots:{backend:"Strapi",apiType:"REST API",database:"Required",server:"Node.js"},priority:30,intelligence:"high"},Dockerfile:{frameworks:["Docker"],slots:{hosting:"Docker",connection:"Containerized"},priority:30,intelligence:"high"},"docker-compose.yml":{frameworks:["Docker Compose"],slots:{hosting:"Docker",connection:"Multi-container"},priority:30,intelligence:"high"},"docker-compose.yaml":{frameworks:["Docker Compose"],slots:{hosting:"Docker",connection:"Multi-container"},priority:30,intelligence:"high"},"kubernetes.yml":{frameworks:["Kubernetes"],slots:{hosting:"Kubernetes",connection:"Orchestrated"},priority:30,intelligence:"high"},"k8s.yaml":{frameworks:["Kubernetes"],slots:{hosting:"Kubernetes",connection:"Orchestrated"},priority:30,intelligence:"high"},"vercel.json":{frameworks:["Vercel"],slots:{hosting:"Vercel",cicd:"Vercel"},priority:30,intelligence:"high"},"netlify.toml":{frameworks:["Netlify"],slots:{hosting:"Netlify",cicd:"Netlify"},priority:30,intelligence:"high"},"render.yaml":{frameworks:["Render"],slots:{hosting:"Render",cicd:"Render"},priority:30,intelligence:"high"},"fly.toml":{frameworks:["Fly.io"],slots:{hosting:"Fly.io",cicd:"Fly.io"},priority:30,intelligence:"high"},"railway.json":{frameworks:["Railway"],slots:{hosting:"Railway",cicd:"Railway"},priority:30,intelligence:"high"},"railway.toml":{frameworks:["Railway"],slots:{hosting:"Railway",cicd:"Railway"},priority:30,intelligence:"high"},"app.yaml":{frameworks:["Google App Engine"],slots:{hosting:"Google Cloud",cicd:"Google Cloud"},priority:30,intelligence:"high"},Procfile:{frameworks:["Heroku"],slots:{hosting:"Heroku",cicd:"Heroku"},priority:30,intelligence:"high"},"vite.config.js":{frameworks:["Vite"],slots:{buildTool:"Vite"},priority:25,intelligence:"medium"},"vite.config.ts":{frameworks:["Vite"],slots:{buildTool:"Vite",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"webpack.config.js":{frameworks:["Webpack"],slots:{buildTool:"Webpack"},priority:25,intelligence:"medium"},"rollup.config.js":{frameworks:["Rollup"],slots:{buildTool:"Rollup"},priority:25,intelligence:"medium"},"esbuild.config.js":{frameworks:["esbuild"],slots:{buildTool:"esbuild"},priority:25,intelligence:"medium"},"parcel.config.js":{frameworks:["Parcel"],slots:{buildTool:"Parcel"},priority:25,intelligence:"medium"},"snowpack.config.js":{frameworks:["Snowpack"],slots:{buildTool:"Snowpack"},priority:25,intelligence:"medium"},"tsconfig.json":{frameworks:["TypeScript"],slots:{mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"jsconfig.json":{frameworks:["JavaScript"],slots:{mainLanguage:"JavaScript"},priority:20,intelligence:"medium"},"babel.config.js":{frameworks:["Babel"],slots:{buildTool:"Babel"},priority:20,intelligence:"medium"},".babelrc":{frameworks:["Babel"],slots:{buildTool:"Babel"},priority:20,intelligence:"medium"},"jest.config.js":{frameworks:["Jest"],slots:{cicd:"Jest"},priority:25,intelligence:"medium"},"jest.config.ts":{frameworks:["Jest"],slots:{cicd:"Jest",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"vitest.config.ts":{frameworks:["Vitest"],slots:{cicd:"Vitest",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"cypress.config.js":{frameworks:["Cypress"],slots:{cicd:"Cypress"},priority:25,intelligence:"medium"},"playwright.config.ts":{frameworks:["Playwright"],slots:{cicd:"Playwright",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"karma.conf.js":{frameworks:["Karma"],slots:{cicd:"Karma"},priority:20,intelligence:"medium"},"mocha.opts":{frameworks:["Mocha"],slots:{cicd:"Mocha"},priority:20,intelligence:"medium"},".rspec":{frameworks:["RSpec"],slots:{cicd:"RSpec",mainLanguage:"Ruby"},priority:25,intelligence:"medium"},"pytest.ini":{frameworks:["Pytest"],slots:{cicd:"Pytest",mainLanguage:"Python"},priority:25,intelligence:"medium"},"phpunit.xml":{frameworks:["PHPUnit"],slots:{cicd:"PHPUnit",mainLanguage:"PHP"},priority:25,intelligence:"medium"},"schema.prisma":{frameworks:["Prisma"],slots:{database:"Prisma ORM",connection:"Prisma"},priority:25,intelligence:"medium"},"drizzle.config.ts":{frameworks:["Drizzle"],slots:{database:"Drizzle ORM",connection:"Drizzle",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"ormconfig.js":{frameworks:["TypeORM"],slots:{database:"TypeORM",connection:"TypeORM"},priority:25,intelligence:"medium"},"knexfile.js":{frameworks:["Knex.js"],slots:{database:"Knex.js",connection:"Knex.js"},priority:25,intelligence:"medium"},"sequelize.config.js":{frameworks:["Sequelize"],slots:{database:"Sequelize",connection:"Sequelize"},priority:25,intelligence:"medium"},"alembic.ini":{frameworks:["Alembic"],slots:{database:"Alembic",mainLanguage:"Python"},priority:25,intelligence:"medium"},".github/workflows":{frameworks:["GitHub Actions"],slots:{cicd:"GitHub Actions"},priority:25,intelligence:"medium"},".gitlab-ci.yml":{frameworks:["GitLab CI"],slots:{cicd:"GitLab CI"},priority:25,intelligence:"medium"},Jenkinsfile:{frameworks:["Jenkins"],slots:{cicd:"Jenkins"},priority:25,intelligence:"medium"},".circleci/config.yml":{frameworks:["CircleCI"],slots:{cicd:"CircleCI"},priority:25,intelligence:"medium"},".travis.yml":{frameworks:["Travis CI"],slots:{cicd:"Travis CI"},priority:25,intelligence:"medium"},"azure-pipelines.yml":{frameworks:["Azure DevOps"],slots:{cicd:"Azure DevOps"},priority:25,intelligence:"medium"},"bitbucket-pipelines.yml":{frameworks:["Bitbucket Pipelines"],slots:{cicd:"Bitbucket Pipelines"},priority:25,intelligence:"medium"},"tailwind.config.js":{frameworks:["Tailwind CSS"],slots:{cssFramework:"Tailwind CSS"},priority:20,intelligence:"medium"},"tailwind.config.ts":{frameworks:["Tailwind CSS"],slots:{cssFramework:"Tailwind CSS",mainLanguage:"TypeScript"},priority:20,intelligence:"medium"},"postcss.config.js":{frameworks:["PostCSS"],slots:{cssFramework:"PostCSS"},priority:20,intelligence:"medium"},"uno.config.ts":{frameworks:["UnoCSS"],slots:{cssFramework:"UnoCSS",mainLanguage:"TypeScript"},priority:20,intelligence:"medium"},"styled-components.config.js":{frameworks:["styled-components"],slots:{cssFramework:"styled-components",uiLibrary:"styled-components"},priority:20,intelligence:"medium"},"emotion.config.js":{frameworks:["Emotion"],slots:{cssFramework:"Emotion",uiLibrary:"Emotion"},priority:20,intelligence:"medium"},"metro.config.js":{frameworks:["React Native"],slots:{framework:"React Native",mainLanguage:"JavaScript"},priority:25,intelligence:"medium"},"expo.config.js":{frameworks:["Expo"],slots:{framework:"React Native",buildTool:"Expo"},priority:25,intelligence:"medium"},"app.json":{frameworks:["React Native","Expo"],slots:{framework:"React Native"},priority:20,intelligence:"medium",confirmWith:["expo"]},"capacitor.config.ts":{frameworks:["Capacitor"],slots:{framework:"Capacitor",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"ionic.config.json":{frameworks:["Ionic"],slots:{framework:"Ionic",uiLibrary:"Ionic"},priority:25,intelligence:"medium"},"nx.json":{frameworks:["Nx"],slots:{buildTool:"Nx"},priority:25,intelligence:"medium"},"turbo.json":{frameworks:["Turborepo"],slots:{buildTool:"Turborepo"},priority:25,intelligence:"medium"},"lerna.json":{frameworks:["Lerna"],slots:{buildTool:"Lerna"},priority:25,intelligence:"medium"},"rush.json":{frameworks:["Rush"],slots:{buildTool:"Rush"},priority:25,intelligence:"medium"},"pnpm-workspace.yaml":{frameworks:["pnpm workspaces"],slots:{packageManager:"pnpm",buildTool:"pnpm workspaces"},priority:25,intelligence:"medium"},"*.svelte":{frameworks:["Svelte","SvelteKit"],slots:{framework:"Svelte"},priority:15,intelligence:"low"},"*.vue":{frameworks:["Vue"],slots:{framework:"Vue"},priority:15,intelligence:"low"},"*.jsx":{frameworks:["React"],slots:{framework:"React",mainLanguage:"JavaScript"},priority:15,intelligence:"low"},"*.ts":{frameworks:["TypeScript"],slots:{mainLanguage:"TypeScript"},priority:15,intelligence:"low"},"*.tsx":{frameworks:["React","TypeScript"],slots:{framework:"React",mainLanguage:"TypeScript"},priority:15,intelligence:"low"},"*.py":{frameworks:["Python"],slots:{mainLanguage:"Python"},priority:15,intelligence:"low"},"*.rb":{frameworks:["Ruby"],slots:{mainLanguage:"Ruby"},priority:15,intelligence:"low"},"*.php":{frameworks:["PHP"],slots:{mainLanguage:"PHP"},priority:15,intelligence:"low"},"*.java":{frameworks:["Java"],slots:{mainLanguage:"Java"},priority:15,intelligence:"low"},"*.kt":{frameworks:["Kotlin"],slots:{mainLanguage:"Kotlin"},priority:15,intelligence:"low"},"*.swift":{frameworks:["Swift"],slots:{mainLanguage:"Swift"},priority:15,intelligence:"low"},"*.go":{frameworks:["Go"],slots:{mainLanguage:"Go"},priority:15,intelligence:"low"},"*.rs":{frameworks:["Rust"],slots:{mainLanguage:"Rust"},priority:15,intelligence:"low"},"*.dart":{frameworks:["Flutter","Dart"],slots:{mainLanguage:"Dart"},priority:15,intelligence:"low"},"*.ex":{frameworks:["Elixir"],slots:{mainLanguage:"Elixir"},priority:15,intelligence:"low"},"*.exs":{frameworks:["Elixir"],slots:{mainLanguage:"Elixir"},priority:15,intelligence:"low"},"*.scala":{frameworks:["Scala"],slots:{mainLanguage:"Scala"},priority:15,intelligence:"low"},"*.clj":{frameworks:["Clojure"],slots:{mainLanguage:"Clojure"},priority:15,intelligence:"low"},"*.lua":{frameworks:["Lua"],slots:{mainLanguage:"Lua"},priority:15,intelligence:"low"},"*.r":{frameworks:["R"],slots:{mainLanguage:"R"},priority:15,intelligence:"low"},"*.R":{frameworks:["R"],slots:{mainLanguage:"R"},priority:15,intelligence:"low"},"*.jl":{frameworks:["Julia"],slots:{mainLanguage:"Julia"},priority:15,intelligence:"low"},"*.nim":{frameworks:["Nim"],slots:{mainLanguage:"Nim"},priority:15,intelligence:"low"},"*.zig":{frameworks:["Zig"],slots:{mainLanguage:"Zig"},priority:15,intelligence:"low"},"build.zig":{frameworks:["Zig"],slots:{packageManager:"Zig Package Manager",mainLanguage:"Zig",buildTool:"zig build",framework:"Zig",build:"zig build"},priority:35,intelligence:"ultra-high"},"openapi.json":{frameworks:["OpenAPI"],slots:{apiType:"REST API",backend:"API Server"},priority:30,intelligence:"high"},"openapi.yaml":{frameworks:["OpenAPI"],slots:{apiType:"REST API",backend:"API Server"},priority:30,intelligence:"high"},"swagger.json":{frameworks:["Swagger"],slots:{apiType:"REST API",backend:"API Server"},priority:30,intelligence:"high"},"graphql.schema":{frameworks:["GraphQL"],slots:{apiType:"GraphQL",backend:"GraphQL Server"},priority:30,intelligence:"high"},"schema.graphql":{frameworks:["GraphQL"],slots:{apiType:"GraphQL",backend:"GraphQL Server"},priority:30,intelligence:"high"},".graphqlconfig":{frameworks:["GraphQL"],slots:{apiType:"GraphQL"},priority:25,intelligence:"medium"},"redux.config.js":{frameworks:["Redux"],slots:{stateManagement:"Redux"},priority:20,intelligence:"medium"},"mobx.config.js":{frameworks:["MobX"],slots:{stateManagement:"MobX"},priority:20,intelligence:"medium"},"vuex.config.js":{frameworks:["Vuex"],slots:{stateManagement:"Vuex",framework:"Vue"},priority:20,intelligence:"medium"},"pinia.config.js":{frameworks:["Pinia"],slots:{stateManagement:"Pinia",framework:"Vue"},priority:20,intelligence:"medium"},"zustand.config.js":{frameworks:["Zustand"],slots:{stateManagement:"Zustand"},priority:20,intelligence:"medium"},".eslintrc.js":{frameworks:["ESLint"],slots:{},priority:15,intelligence:"low"},".eslintrc.json":{frameworks:["ESLint"],slots:{},priority:15,intelligence:"low"},".prettierrc":{frameworks:["Prettier"],slots:{},priority:15,intelligence:"low"},".prettierrc.json":{frameworks:["Prettier"],slots:{},priority:15,intelligence:"low"},"biome.json":{frameworks:["Biome"],slots:{},priority:15,intelligence:"low"},".editorconfig":{frameworks:["EditorConfig"],slots:{},priority:10,intelligence:"low"},"serverless.yml":{frameworks:["Serverless Framework"],slots:{hosting:"AWS Lambda/Azure/GCP",backend:"Serverless",apiType:"API Gateway"},priority:30,intelligence:"high"},"serverless.yaml":{frameworks:["Serverless Framework"],slots:{hosting:"AWS Lambda/Azure/GCP",backend:"Serverless",apiType:"API Gateway"},priority:30,intelligence:"high"},"sam.yaml":{frameworks:["AWS SAM"],slots:{hosting:"AWS Lambda",backend:"AWS SAM",cicd:"AWS SAM CLI"},priority:30,intelligence:"high"},"template.yaml":{frameworks:["AWS SAM","CloudFormation"],slots:{hosting:"AWS",backend:"AWS SAM/CloudFormation",cicd:"AWS"},priority:25,intelligence:"medium",confirmWith:["samconfig.toml"]},"amplify.yml":{frameworks:["AWS Amplify"],slots:{hosting:"AWS Amplify",backend:"AWS Amplify",cicd:"AWS Amplify"},priority:30,intelligence:"high"},Podfile:{frameworks:["CocoaPods","iOS"],slots:{packageManager:"CocoaPods",mainLanguage:"Swift/Objective-C",framework:"iOS Native"},priority:30,intelligence:"high"},"build.gradle.kts":{frameworks:["Gradle Kotlin DSL","Android","Kotlin"],slots:{packageManager:"Gradle",mainLanguage:"Kotlin",buildTool:"Gradle Kotlin DSL",framework:"Android"},priority:30,intelligence:"high"},"*.ipynb":{frameworks:["Jupyter","Python"],slots:{mainLanguage:"Python",framework:"Jupyter Notebook"},priority:30,intelligence:"high"},MLproject:{frameworks:["MLflow"],slots:{mainLanguage:"Python",framework:"MLflow",backend:"MLflow",cicd:"MLflow"},priority:30,intelligence:"high"},"dvc.yaml":{frameworks:["DVC","Data Version Control"],slots:{mainLanguage:"Python",framework:"DVC",cicd:"DVC Pipelines"},priority:30,intelligence:"high"},"dvc.lock":{frameworks:["DVC"],slots:{framework:"DVC"},priority:20,intelligence:"medium"},"wrangler.toml":{frameworks:["Cloudflare Workers","Cloudflare"],slots:{hosting:"Cloudflare Workers",backend:"Cloudflare Workers",runtime:"V8 Isolates"},priority:30,intelligence:"high"},"deno.json":{frameworks:["Deno"],slots:{runtime:"Deno",mainLanguage:"TypeScript",packageManager:"Deno"},priority:30,intelligence:"high"},"bun.lockb":{frameworks:["Bun"],slots:{runtime:"Bun",packageManager:"Bun",mainLanguage:"TypeScript/JavaScript"},priority:30,intelligence:"high"},"codecov.yml":{frameworks:["Codecov"],slots:{cicd:"Codecov"},priority:25,intelligence:"high"},"dependabot.yml":{frameworks:["Dependabot","GitHub"],slots:{cicd:"Dependabot"},priority:25,intelligence:"high"},"renovate.json":{frameworks:["Renovate"],slots:{cicd:"Renovate"},priority:25,intelligence:"high"},Makefile:{frameworks:["Make","GNU Make"],slots:{buildTool:"Make"},priority:30,intelligence:"high"},"CMakeLists.txt":{frameworks:["CMake","C","C++"],slots:{buildTool:"CMake",mainLanguage:"C/C++"},priority:30,intelligence:"high"},"meson.build":{frameworks:["Meson","C","C++"],slots:{buildTool:"Meson",mainLanguage:"C/C++"},priority:30,intelligence:"high"},"*.c":{frameworks:["C"],slots:{mainLanguage:"C"},priority:30,intelligence:"high"},"*.cpp":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:30,intelligence:"high"},"*.cc":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:30,intelligence:"high"},"*.cxx":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:25,intelligence:"high"},"*.h":{frameworks:["C","C++"],slots:{mainLanguage:"C/C++"},priority:25,intelligence:"high"},"*.hpp":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:25,intelligence:"high"},"*.hxx":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:20,intelligence:"medium"},".env":{frameworks:[],slots:{},priority:20,intelligence:"medium"},".env.example":{frameworks:[],slots:{},priority:25,intelligence:"high"},".env.local":{frameworks:[],slots:{},priority:20,intelligence:"medium"},".env.development":{frameworks:[],slots:{},priority:20,intelligence:"medium"},".env.production":{frameworks:[],slots:{},priority:20,intelligence:"medium"},"skaffold.yaml":{frameworks:["Skaffold","Kubernetes"],slots:{hosting:"Kubernetes",cicd:"Skaffold"},priority:30,intelligence:"high"},"Chart.yaml":{frameworks:["Helm","Kubernetes"],slots:{hosting:"Kubernetes",backend:"Helm"},priority:30,intelligence:"high"},"values.yaml":{frameworks:["Helm","Kubernetes"],slots:{hosting:"Kubernetes"},priority:25,intelligence:"high",confirmWith:["Chart.yaml"]},"pulumi.yaml":{frameworks:["Pulumi"],slots:{hosting:"Cloud",cicd:"Pulumi"},priority:30,intelligence:"high"},"Pulumi.yaml":{frameworks:["Pulumi"],slots:{hosting:"Cloud",cicd:"Pulumi"},priority:30,intelligence:"high"},"terragrunt.hcl":{frameworks:["Terragrunt","Terraform"],slots:{hosting:"Cloud",cicd:"Terragrunt"},priority:30,intelligence:"high"},"ansible.yml":{frameworks:["Ansible"],slots:{cicd:"Ansible"},priority:30,intelligence:"high"},"playbook.yml":{frameworks:["Ansible"],slots:{cicd:"Ansible"},priority:25,intelligence:"high"},"*.cs":{frameworks:["C#",".NET","Unity"],slots:{mainLanguage:"C#"},priority:30,intelligence:"high"},"*.m":{frameworks:["Objective-C","iOS"],slots:{mainLanguage:"Objective-C"},priority:25,intelligence:"high"},".nvmrc":{frameworks:["Node.js","nvm"],slots:{runtime:"Node.js"},priority:25,intelligence:"high"},".tool-versions":{frameworks:["asdf"],slots:{},priority:25,intelligence:"high"},".ruby-version":{frameworks:["Ruby","rbenv"],slots:{mainLanguage:"Ruby",runtime:"Ruby"},priority:25,intelligence:"high"},".python-version":{frameworks:["Python","pyenv"],slots:{mainLanguage:"Python",runtime:"Python"},priority:25,intelligence:"high"},".dockerignore":{frameworks:["Docker"],slots:{},priority:20,intelligence:"medium"},".gitattributes":{frameworks:["Git"],slots:{},priority:15,intelligence:"low"},".npmrc":{frameworks:["npm","Node.js"],slots:{packageManager:"npm"},priority:20,intelligence:"medium"},"sonar-project.properties":{frameworks:["SonarQube","SonarCloud"],slots:{cicd:"SonarQube"},priority:25,intelligence:"high"},"*.fs":{frameworks:["F#",".NET"],slots:{mainLanguage:"F#"},priority:25,intelligence:"high"},"*.mm":{frameworks:["Objective-C++","iOS","macOS"],slots:{mainLanguage:"Objective-C++"},priority:25,intelligence:"high"},"build.zig.zon":{frameworks:["Zig"],slots:{mainLanguage:"Zig",packageManager:"Zig Package Manager",buildTool:"zig build"},priority:35,intelligence:"ultra-high"},"gleam.toml":{frameworks:["Gleam","BEAM","Erlang"],slots:{mainLanguage:"Gleam",runtime:"BEAM",packageManager:"Gleam"},priority:30,intelligence:"high"},"bunfig.toml":{frameworks:["Bun"],slots:{runtime:"Bun",packageManager:"Bun",buildTool:"Bun"},priority:30,intelligence:"high"},"mise.toml":{frameworks:["mise"],slots:{},priority:25,intelligence:"high"},".mise.toml":{frameworks:["mise"],slots:{},priority:25,intelligence:"high"},"manifest.toml":{frameworks:["Flox","Nix"],slots:{},priority:25,intelligence:"high",confirmWith:[".flox"]},justfile:{frameworks:["Just"],slots:{buildTool:"Just"},priority:25,intelligence:"high"},".pre-commit-config.yaml":{frameworks:["pre-commit"],slots:{cicd:"pre-commit"},priority:25,intelligence:"high"},"CLAUDE.md":{frameworks:["Claude Code"],slots:{},priority:30,intelligence:"high",confirmWith:[".claude"]}};import{existsSync as i3,readFileSync as TH,readdirSync as KH}from"fs";import{join as c2}from"path";var k0={version:2,_doc:"SINGLE SOURCE of Dart/Flutter detection KNOWLEDGE (A+B hybrid, the Truth-is-faf-cli spec). faf-cli imports this directly; faf-python-sdk vendors a synced copy (phase 2); MCPs compose it. Bolster Dart/Flutter by editing THIS file. Logic stays in dart.ts. Refreshed 2026-08-01 (knowledge v2) — community receipt on top of 6.13.0 Dart Edition.",flutterDeps:["flutter"],mcpDeps:["dart_mcp","mcp_server","mcp_dart","dart_mcp_server","mcp","dart_mcpserver"],serverFrameworks:[["serverpod","Serverpod"],["dart_frog","Dart Frog"],["conduit","Conduit"],["angel3_framework","Angel3"],["alfred","Alfred"],["shelf","Shelf"],["jaspr","Jaspr"],["relic","Relic"]],stateManagement:[["flutter_riverpod","Riverpod"],["hooks_riverpod","Riverpod"],["riverpod_annotation","Riverpod"],["riverpod","Riverpod"],["flutter_bloc","Bloc"],["bloc","Bloc"],["provider","Provider"],["get","GetX"],["flutter_mobx","MobX"],["mobx","MobX"],["signals","Signals"],["flutter_hooks","Hooks"]],routing:[["go_router","go_router"],["auto_route","auto_route"],["beamer","Beamer"],["routemaster","Routemaster"]]};var AH=k0.flutterDeps,NH=k0.mcpDeps,wH=k0.serverFrameworks,bH=k0.stateManagement,CH=k0.routing;function jH($){let Z=new Set,X=!1;for(let U of $.split(`
215
+ `)){if(/^(dependencies|dev_dependencies|dependency_overrides):\s*$/.test(U)){X=!0;continue}if(/^\S/.test(U))X=!1;if(X){let z=U.match(/^\s{2}([a-zA-Z0-9_]+):/);if(z)Z.add(z[1].toLowerCase())}}return Z}function L1($){let Z=c2($,"pubspec.yaml");if(!i3(Z))return null;let X;try{X=TH(Z,"utf-8")}catch{return null}let U=jH(X),z=(T)=>U.has(T.toLowerCase()),Q=AH.some(z)||/^flutter:\s*$/m.test(X)||/\bsdk:\s*flutter\b/.test(X),J=NH.find(z),H=wH.find(([T])=>z(T)),q=bH.find(([T])=>z(T)),_=q?q[1]:"",B=CH.find(([T])=>z(T)),G=B?B[1]:"",Y=z("flutter_test")?"flutter_test":z("test")?"test":"",O=/^executables:\s*$/m.test(X),L=!1;try{L=KH(c2($,"bin")).some((T)=>T.endsWith(".dart"))}catch{}let V=O||L,W,I="",F;if(Q)if(I="Flutter",i3(c2($,"lib","main.dart"))||/^publish_to:\s*['"]?none\b/m.test(X))W="mobile",F="pubspec.yaml (Flutter app)";else W="library",F="pubspec.yaml (Flutter package)";else if(J)W="mcp",F=`pubspec.yaml + ${J} (Dart MCP server)`;else if(H)W="backend",I=H[1],F=`pubspec.yaml + ${H[0]} (Dart backend)`;else if(V)W="cli",F=O?"pubspec.yaml executables: (Dart CLI)":"pubspec.yaml + bin/*.dart (Dart CLI)";else W="library",F="pubspec.yaml (Dart package)";return{appType:W,isFlutter:Q,framework:I,stateManagement:_,routing:G,testing:Y,found:F}}var xH=new Set(["node_modules",".git","dist","build","venv",".venv","__pycache__","target","coverage",".next",".svelte-kit","vendor"]),hH=new Set([".py",".ts",".tsx",".js",".jsx",".svelte",".vue",".rb",".go",".rs",".php",".java",".kt",".swift"]),uH={mainLanguage:["project","main_language"],main_language:["project","main_language"],framework:["stack","frontend"],cssFramework:["stack","css_framework"],css:["stack","css_framework"],uiLibrary:["stack","ui_library"],ui_library:["stack","ui_library"],stateManagement:["stack","state_management"],state:["stack","state_management"],backend:["stack","backend"],apiType:["stack","api_type"],api:["stack","api_type"],runtime:["stack","runtime"],database:["stack","database"],db:["stack","database"],connection:["stack","connection"],hosting:["stack","hosting"],buildTool:["stack","build"],build_tool:["stack","build"],build:["stack","build"],packageManager:["stack","package_manager"],pkg_manager:["stack","package_manager"],cicd:["stack","cicd"]},kH=[["packageManager","package-manager"],["pkg_manager","package-manager"],["mainLanguage","language"],["main_language","language"],["framework","framework"],["backend","backend"],["database","database"],["db","database"],["cicd","ci-cd"],["hosting","hosting"],["buildTool","build"],["build_tool","build"],["build","build"],["runtime","runtime"],["cssFramework","css"],["css","css"],["uiLibrary","ui-library"],["stateManagement","state-management"],["apiType","api"],["api","api"]];function vH($,Z){for(let[X,U]of kH)if(X in $)return U;return Z.length>0?"framework":"config"}function mH($){try{let Z=JSON.parse(EH($,"utf-8")),X=["background","content_scripts","action","browser_action","permissions"].some((U)=>(U in Z));if(typeof Z.manifest_version==="number"&&X)return"chrome";return"other"}catch{return"other"}}function pH($){let Z=[],X=fH($),U=SH(i2($,".git"));for(let z=0;z<10;z++){let Q;try{Q=s3(X)}catch{break}for(let H of Q){let q=d2[H];if(!q)continue;if(H==="manifest.json"&&mH(i2(X,H))!=="chrome")continue;if(H==="pubspec.yaml"){let _=L1(X);if(_){let B={mainLanguage:"Dart",packageManager:"pub"};if(_.isFlutter){if(B.framework="Flutter",_.stateManagement)B.stateManagement=_.stateManagement}else if(_.appType==="backend"&&_.framework)B.backend=_.framework;else if(_.appType==="mcp")B.apiType="MCP";Z.push({slots:B,priority:q.priority,frameworks:_.isFlutter?["Flutter","Dart"]:["Dart"],fileName:H});continue}}Z.push({slots:q.slots||{},priority:q.priority,frameworks:q.frameworks,fileName:H})}if(U&&z===0)break;let J=gH(X);if(J===X)break;X=J}return Z}function lH($){let Z=[];for(let X of r3($,2,{count:0})){let U=d2[`*${X}`],z=U?.slots?.mainLanguage;if(z)Z.push({slots:{mainLanguage:z},priority:U.priority,frameworks:U.frameworks})}return Z}function a3($){let Z=[...pH($),...lH($)],X={},U={},z=new Set;for(let _ of Z){_.frameworks.forEach((B)=>z.add(B));for(let[B,G]of Object.entries(_.slots))if(G&&!G.includes("/")&&(!(B in X)||_.priority>U[B]))X[B]=G,U[B]=_.priority}let Q=new Map;for(let _ of Z){if(!_.fileName)continue;if(!Q.has(_.fileName))Q.set(_.fileName,{fileName:_.fileName,category:vH(_.slots,_.frameworks),priority:_.priority})}let J=[...Q.values()].sort((_,B)=>B.priority-_.priority||_.fileName.localeCompare(B.fileName)),H=[];if(X.mainLanguage)H.push(X.mainLanguage.toLowerCase());if(X.framework)H.push(X.framework.toLowerCase());let q=H.length>0?H.join("-"):"unknown-stack";return{slotFills:X,frameworks:[...z],confirmedCount:Z.length,discoveredFormats:J,stackSignature:q}}function s2($){let{slotFills:Z}=a3($),X={};for(let[U,z]of Object.entries(Z)){let Q=uH[U];if(!Q||!z)continue;let[J,H]=Q;if(J==="project")(X.project??={})[H]=z;else(X.stack??={})[H]=z}return X}function r3($,Z,X){let U=new Set;if(Z<0||X.count>400)return U;let z;try{z=s3($,{withFileTypes:!0})}catch{return U}for(let Q of z){if(X.count++>400)break;if(!Q.isDirectory()){let J=yH(Q.name);if(hH.has(J))U.add(J);continue}if(xH.has(Q.name)||Q.name.startsWith("."))continue;for(let J of r3(i2($,Q.name),Z-1,X))U.add(J)}return U}import{existsSync as n3,readFileSync as o3}from"fs";import{join as t3}from"path";var x=($,Z,X)=>({value:$,source:Z,confidence:X});function e3($){let Z=dH($),X=cH($),U={},z=(Q,J)=>{if(J)U[Q]=J};return z("what",iH(Z,X)),z("who",sH(X)),z("why",aH(X)),z("where",rH(Z,X)),z("when",nH(X)),z("how",oH(Z,X)),U}function a2($){let Z=e3($),X={};return Object.keys(Z).forEach((U)=>{let z=Z[U];if(z)X[U]=z.value}),X}function dH($){let Z=t3($,"package.json");if(!n3(Z))return null;try{return JSON.parse(o3(Z,"utf-8"))}catch{return null}}function cH($){let Z=t3($,"README.md");if(!n3(Z))return"";let X;try{X=o3(Z,"utf-8")}catch{return""}return X.split(`
216
216
  `).filter((U)=>!/^\s*\[!\[/.test(U)&&!/^\s*!\[/.test(U)).join(`
217
- `).replace(/<[^>]+>/g,"").replace(/!\[[^\]]*\]\([^)]*\)/g,"").trim()}function R0($){return $.replace(/\s+/g," ").replace(/[#*`>]/g,"").trim().slice(0,280)}function v0($,Z){let X=new RegExp(`##?\\s+(${Z})\\s*\\n+([\\s\\S]+?)(?:\\n\\n|\\n##?|$)`,"i"),U=$.match(X);return U&&U[2]&&U[2].trim().length>20?{body:R0(U[2]),heading:U[1].trim()}:null}function R$($,Z,X=30){for(let U of Z){let z=$.match(U);if(z&&z[1]&&z[1].trim().length>=X)return R0(z[1])}return null}function iH($,Z){if($?.description&&$.description.length>20)return h(R0($.description),"package.json:description",0.95);let X=v0(Z,"Purpose|What|About|Overview|Description");if(X)return h(X.body,`README:## ${X.heading}`,0.8);let U=Z.split(/\n\s*\n/).map((Q)=>Q.trim()).find((Q)=>Q.length>30&&!Q.startsWith("#"));if(U)return h(R0(U),"README:first-paragraph",0.5);let z=R$(Z,[/(?:core|main|primary)\s+(?:problem|challenge)(?:\s+is)?\s*:?\s*([^.\n]{30,})/i,/solves?\s+(?:the\s+)?(?:problem\s+of\s+)?([^.\n]{30,})/i]);return z?h(z,"README:problem-heuristic",0.6):null}function sH($){let Z=v0($,"Audience|Who|Who is this for|Who it.s for");if(Z)return h(Z.body,`README:## ${Z.heading}`,0.8);let X=R$($,[/\b(?:designed|built|made)\s+for\s+((?:[a-z][a-z-]*\s+)?(?:developers?|teams?|engineers?|builders?|founders?)[^.\n]{0,80})/i,/\bfor\s+((?:[a-z][a-z-]*\s+)?(?:developers?|teams?|engineers?|builders?|founders?)[^.\n]{0,80})/i],8);return X?h(X,"README:audience-heuristic",0.6):null}function aH($){let Z=v0($,"Why|Mission|Motivation|Rationale|Vision");if(Z)return h(Z.body,`README:## ${Z.heading}`,0.8);let X=R$($,[/(?:our\s+|the\s+)?(?:mission|purpose|goal)\s+is\s+([^.\n]{30,})/i,/\b(?:mission|purpose|goal)\s*:\s*([^.\n]{30,})/i,/(?:built|created|designed)\s+(?:because|to)\s+([^.\n]{30,})/i]);return X?h(X,"README:mission-heuristic",0.6):null}function rH($,Z){let X=typeof $?.repository==="string"?$.repository:$?.repository?.url;if(X)return h(R0(X.replace(/^git\+/,"").replace(/\.git$/,"")),"package.json:repository",0.95);if($?.homepage)return h(R0($.homepage),"package.json:homepage",0.9);let U=R$(Z,[/\b(?:deployed|hosted|available|published)\s+(?:on|at|via)\s+([^.\n]{3,80})/i],3);return U?h(U,"README:deploy-heuristic",0.6):null}function nH($){let Z=v0($,"Timeline|Status|Release|Roadmap");if(Z)return h(Z.body,`README:## ${Z.heading}`,0.8);let X=R$($,[/\b(production\s+since\s+[^.\n]{4,60})/i,/\b((?:in\s+)?(?:production|beta|alpha|development)\s+since\s+[^.\n]{4,60})/i,/\bsince\s+((?:[A-Z][a-z]+\s+)?\d{4}[^.\n]{0,40})/],4);return X?h(X,"README:since-heuristic",0.6):null}function oH($,Z){let X=$?.scripts?Object.keys($.scripts):[],U=["start","dev","build"].filter((J)=>X.includes(J));if(U.length)return h(R0(U.map((J)=>`npm run ${J}`).join(", ")),"package.json:scripts",0.9);let z=v0(Z,"Usage|Getting Started|Install|Installation|Quick Start");if(z)return h(z.body,`README:## ${z.heading}`,0.8);let Q=v0(Z,"Architecture|Approach|How it works|Methodology|How");return Q?h(Q.body,`README:## ${Q.heading}`,0.7):null}var $Z="3.0";import{existsSync as P,readFileSync as t,readdirSync as XZ}from"fs";import{join as F}from"path";var ZZ=[{name:"Next.js",slug:"nextjs",category:"frontend",signals:[{type:"dependency",key:"next"},{type:"file",pattern:"next.config.*"}]},{name:"React",slug:"react",category:"frontend",signals:[{type:"dependency",key:"react"}]},{name:"SvelteKit",slug:"sveltekit",category:"frontend",signals:[{type:"dependency",key:"@sveltejs/kit"},{type:"file",pattern:"svelte.config.*"}]},{name:"Svelte",slug:"svelte",category:"frontend",signals:[{type:"dependency",key:"svelte"},{type:"devDependency",key:"svelte"}]},{name:"Vue.js",slug:"vue",category:"frontend",signals:[{type:"dependency",key:"vue"}]},{name:"Nuxt",slug:"nuxt",category:"frontend",signals:[{type:"dependency",key:"nuxt"},{type:"file",pattern:"nuxt.config.*"}]},{name:"Angular",slug:"angular",category:"frontend",signals:[{type:"dependency",key:"@angular/core"},{type:"file",pattern:"angular.json"}]},{name:"Astro",slug:"astro",category:"frontend",signals:[{type:"dependency",key:"astro"},{type:"file",pattern:"astro.config.*"}]},{name:"Solid",slug:"solid",category:"frontend",signals:[{type:"dependency",key:"solid-js"}]},{name:"Remix",slug:"remix",category:"frontend",signals:[{type:"dependency",key:"@remix-run/react"}]},{name:"Gatsby",slug:"gatsby",category:"frontend",signals:[{type:"dependency",key:"gatsby"},{type:"file",pattern:"gatsby-config.*"}]},{name:"Qwik",slug:"qwik",category:"frontend",signals:[{type:"dependency",key:"@builder.io/qwik"}]},{name:"Vercel (SvelteKit)",slug:"adapter-vercel",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-vercel"},{type:"devDependency",key:"@sveltejs/adapter-vercel"}]},{name:"Node (SvelteKit)",slug:"adapter-node",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-node"},{type:"devDependency",key:"@sveltejs/adapter-node"}]},{name:"Static (SvelteKit)",slug:"adapter-static",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-static"},{type:"devDependency",key:"@sveltejs/adapter-static"}]},{name:"Cloudflare (SvelteKit)",slug:"adapter-cloudflare",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-cloudflare"},{type:"devDependency",key:"@sveltejs/adapter-cloudflare"}]},{name:"Netlify (SvelteKit)",slug:"adapter-netlify",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-netlify"},{type:"devDependency",key:"@sveltejs/adapter-netlify"}]},{name:"Tailwind CSS",slug:"tailwind",category:"css",signals:[{type:"dependency",key:"tailwindcss"},{type:"devDependency",key:"tailwindcss"},{type:"file",pattern:"tailwind.config.*"}]},{name:"Bootstrap",slug:"bootstrap",category:"css",signals:[{type:"dependency",key:"bootstrap"}]},{name:"Styled Components",slug:"styled-components",category:"css",signals:[{type:"dependency",key:"styled-components"}]},{name:"shadcn/ui",slug:"shadcn",category:"ui",signals:[{type:"file",pattern:"components.json"},{type:"dependency",key:"@radix-ui/react-dialog"}]},{name:"Material UI",slug:"mui",category:"ui",signals:[{type:"dependency",key:"@mui/material"}]},{name:"Chakra UI",slug:"chakra",category:"ui",signals:[{type:"dependency",key:"@chakra-ui/react"}]},{name:"Ant Design",slug:"antd",category:"ui",signals:[{type:"dependency",key:"antd"}]},{name:"Redux",slug:"redux",category:"state",signals:[{type:"dependency",key:"@reduxjs/toolkit"}]},{name:"Zustand",slug:"zustand",category:"state",signals:[{type:"dependency",key:"zustand"}]},{name:"Jotai",slug:"jotai",category:"state",signals:[{type:"dependency",key:"jotai"}]},{name:"Pinia",slug:"pinia",category:"state",signals:[{type:"dependency",key:"pinia"}]},{name:"Express",slug:"express",category:"backend",signals:[{type:"dependency",key:"express"}]},{name:"Fastify",slug:"fastify",category:"backend",signals:[{type:"dependency",key:"fastify"}]},{name:"Hono",slug:"hono",category:"backend",signals:[{type:"dependency",key:"hono"}]},{name:"Elysia",slug:"elysia",category:"backend",signals:[{type:"dependency",key:"elysia"}]},{name:"NestJS",slug:"nestjs",category:"backend",signals:[{type:"dependency",key:"@nestjs/core"}]},{name:"Koa",slug:"koa",category:"backend",signals:[{type:"dependency",key:"koa"}]},{name:"Django",slug:"django",category:"backend",signals:[{type:"file",pattern:"manage.py"},{type:"file",pattern:"settings.py"}]},{name:"Flask",slug:"flask",category:"backend",signals:[{type:"file",pattern:"app.py"}]},{name:"FastAPI",slug:"fastapi",category:"backend",signals:[{type:"file",pattern:"main.py"}]},{name:"Rails",slug:"rails",category:"backend",signals:[{type:"file",pattern:"Gemfile"},{type:"file",pattern:"config/routes.rb"}]},{name:"Spring Boot",slug:"spring",category:"backend",signals:[{type:"file",pattern:"pom.xml"},{type:"file",pattern:"build.gradle"}]},{name:"Prisma",slug:"prisma",category:"database",signals:[{type:"dependency",key:"prisma"},{type:"devDependency",key:"prisma"},{type:"file",pattern:"prisma/schema.prisma"}]},{name:"Drizzle",slug:"drizzle",category:"database",signals:[{type:"dependency",key:"drizzle-orm"},{type:"file",pattern:"drizzle.config.*"}]},{name:"TypeORM",slug:"typeorm",category:"database",signals:[{type:"dependency",key:"typeorm"}]},{name:"Mongoose",slug:"mongoose",category:"database",signals:[{type:"dependency",key:"mongoose"}]},{name:"Vite",slug:"vite",category:"build",signals:[{type:"dependency",key:"vite"},{type:"devDependency",key:"vite"},{type:"file",pattern:"vite.config.*"}]},{name:"webpack",slug:"webpack",category:"build",signals:[{type:"dependency",key:"webpack"},{type:"devDependency",key:"webpack"},{type:"file",pattern:"webpack.config.*"}]},{name:"esbuild",slug:"esbuild",category:"build",signals:[{type:"dependency",key:"esbuild"},{type:"devDependency",key:"esbuild"}]},{name:"Turbopack",slug:"turbopack",category:"build",signals:[{type:"file",pattern:"turbo.json"}]},{name:"Jest",slug:"jest",category:"testing",signals:[{type:"devDependency",key:"jest"},{type:"file",pattern:"jest.config.*"}]},{name:"Vitest",slug:"vitest",category:"testing",signals:[{type:"devDependency",key:"vitest"}]},{name:"Playwright",slug:"playwright",category:"testing",signals:[{type:"devDependency",key:"@playwright/test"},{type:"file",pattern:"playwright.config.*"}]},{name:"Cypress",slug:"cypress",category:"testing",signals:[{type:"devDependency",key:"cypress"},{type:"file",pattern:"cypress.config.*"}]},{name:"Turborepo",slug:"turborepo",category:"monorepo",signals:[{type:"devDependency",key:"turbo"},{type:"file",pattern:"turbo.json"}]},{name:"Nx",slug:"nx",category:"monorepo",signals:[{type:"devDependency",key:"nx"},{type:"file",pattern:"nx.json"}]},{name:"Lerna",slug:"lerna",category:"monorepo",signals:[{type:"devDependency",key:"lerna"},{type:"file",pattern:"lerna.json"}]},{name:"MCP SDK",slug:"mcp",category:"ai",signals:[{type:"dependency",key:"@modelcontextprotocol/sdk"}]},{name:"Anthropic SDK",slug:"anthropic",category:"ai",signals:[{type:"dependency",key:"@anthropic-ai/sdk"}]},{name:"OpenAI SDK",slug:"openai",category:"ai",signals:[{type:"dependency",key:"openai"}]},{name:"LangChain",slug:"langchain",category:"ai",signals:[{type:"dependency",key:"langchain"}]},{name:"Vercel",slug:"vercel",category:"hosting",signals:[{type:"file",pattern:"vercel.json"}]},{name:"Netlify",slug:"netlify",category:"hosting",signals:[{type:"file",pattern:"netlify.toml"}]},{name:"Docker",slug:"docker",category:"hosting",signals:[{type:"file",pattern:"Dockerfile"},{type:"file",pattern:"docker-compose.yml"}]},{name:"Cloudflare Workers",slug:"cloudflare",category:"hosting",signals:[{type:"file",pattern:"wrangler.toml"},{type:"dependency",key:"wrangler"}]},{name:"GitHub Actions",slug:"github-actions",category:"cicd",signals:[{type:"file",pattern:".github/workflows/*.yml"}]},{name:"Commander.js",slug:"commander",category:"cli",signals:[{type:"dependency",key:"commander"}]}];function tH($){let Z=F($,"Cargo.toml");if(!P(Z))return null;try{let U=t(Z,"utf-8").match(/^\s*\[package\][\s\S]*?^\s*name\s*=\s*"([^"]+)"/m);return U?U[1]:null}catch{return null}}function eH($){let Z=F($,"Cargo.toml");if(!P(Z))return!1;try{let X=t(Z,"utf-8");return/^\s*\[\[bin\]\]/m.test(X)}catch{return!1}}function $q($,Z){if(Z?.keywords?.some((U)=>/^sdk(?:\s|-|$)|-sdk$/i.test(U)))return'package.json keywords contains "sdk"';if(Z?.name&&/(?:^|[-_/])sdk(?:[-_/]|$)/i.test(Z.name))return`package.json name "${Z.name}" → sdk`;let X=tH($);if(X&&/(?:^|[-_])sdk(?:[-_]|$)/i.test(X))return`Cargo.toml name "${X}" → sdk`;return null}function Zq($){let Z=["manifest.json","public/manifest.json","src/manifest.json","app/manifest.json","extension/manifest.json","dist/manifest.json"];for(let X of Z){let U=F($,X);if(!P(U))continue;try{let z=JSON.parse(t(U,"utf-8"));if(typeof z.manifest_version==="number")return`${X} manifest_version ${z.manifest_version} (browser extension)`}catch{}}return null}function Xq($){let Z=/(numpy|pandas|jupyter|scikit-learn|sklearn|pytorch|tensorflow|matplotlib|scipy)/i,X=F($,"pyproject.toml");if(P(X))try{let Q=t(X,"utf-8").match(Z);if(Q)return`pyproject.toml depends on ${Q[1]}`}catch{}let U=F($,"requirements.txt");if(P(U))try{let Q=t(U,"utf-8").match(Z);if(Q)return`requirements.txt contains ${Q[1]}`}catch{}return null}function Uq($,Z){let X=["react-native","expo","@capacitor/core","@ionic/core"];if(Z){for(let U of X)if(Z.dependencies?.[U]||Z.devDependencies?.[U])return`${U} dependency`}if(P(F($,"ios"))&&P(F($,"android")))return"ios/ + android/ dirs";return null}function zq($,Z){let X=F($,"Cargo.toml");if(P(X))try{let z=t(X,"utf-8");if(/crate-type\s*=\s*\[[^\]]*"cdylib"/.test(z))return'Cargo.toml crate-type = ["cdylib"]';if(/wasm-bindgen|wasm-pack/i.test(z))return"Cargo.toml wasm-bindgen/wasm-pack"}catch{}let U=F($,"build.zig");if(P(U))try{let z=t(U,"utf-8");if(/\.wasm\b|wasm32|setOutputFormat\(\.wasm/i.test(z))return"build.zig wasm target"}catch{}if(Z?.keywords?.some((z)=>/^wasm(?:-|$)|webassembly/i.test(z)))return'package.json keywords contains "wasm"';return null}function Qq($,Z){if(!P(F($,"index.html")))return null;if(Z?.dependencies||Z?.devDependencies){let X={...Z.dependencies??{},...Z.devDependencies??{}};if(["react","vue","svelte","@sveltejs/kit","next","nuxt","astro","gatsby","solid-js","qwik"].some((z)=>X[z]))return null}return"index.html (vanilla, no frontend framework)"}function Jq($,Z){if(Z?.name&&/specification|^@.*\/spec/i.test(Z.name))return`package name "${Z.name}" → documentation`;if(Z?.keywords?.some((X)=>/^(specification|format-spec|standard)$/i.test(X)))return'package keywords contains "specification"';if(Z?.bin)return null;if(Z?.files&&Z.files.length>0){let X=/^(dist|src|lib|build|bin)(\/|$)|\/(dist|src|lib|build|bin)(\/|$)|(\.|\/)(js|ts|tsx|jsx|mjs|cjs|py|rs|go)$/,U=Z.files.some((Q)=>X.test(Q)),z=Z.files.some((Q)=>/\.(md|MD)$|examples?\//.test(Q)||Q==="README.md"||Q==="docs"||Q==="docs/");if(!U&&z)return"package.json files = docs/examples only (no source)"}return null}function Hq($,Z,X){let U=X.find((z)=>z.slug==="astro"||z.slug==="gatsby");if(U)return`${U.name} (static-site framework)`;if(Z?.keywords?.some((z)=>/^(website|marketing|landing|brochure|portfolio)$/i.test(z)))return'package keywords contains "website"/"marketing"/"landing"';return null}function qq($,Z){if(!Z)return null;let X={...Z.dependencies??{},...Z.devDependencies??{}},U=["@clerk/nextjs","@clerk/clerk-react","next-auth","@auth/core","auth0","@auth0/nextjs-auth0"],z=["stripe","@stripe/stripe-js","lemonsqueezy"],Q=U.some((H)=>X[H]),J=z.some((H)=>X[H]);if(Q&&J)return"auth + payment dependencies";return null}function Gq($,Z,X){if(Z?.keywords?.some((Q)=>/mcpaas/i.test(Q)))return'package keywords contains "mcpaas"';if(Z?.name&&/mcpaas/i.test(Z.name))return`package name "${Z.name}" → mcpaas`;let U=X.some((Q)=>Q.slug==="mcp"),z=X.some((Q)=>Q.category==="database");if(U&&z&&Z?.dependencies&&Object.keys(Z.dependencies).length>10)return"MCP + database + complex deps (platform shape)";return null}function _q($,Z){if(!Z?.private)return null;if(!(!!Z.workspaces||P(F($,"pnpm-workspace.yaml"))))return null;return"private workspace + multi-package"}function M0($){let Z=F($,"package.json");if(!P(Z))return null;try{return JSON.parse(t(Z,"utf-8"))}catch{return null}}function Yq($,Z){if(!Z.includes("*"))return P(F($,Z));let X=Z.split("/");if(X.length===1){let H=Z.split("*")[0];try{return XZ($).some((q)=>q.startsWith(H))}catch{return!1}}let U=F($,...X.slice(0,-1)),z=X[X.length-1],Q=z.split("*")[0],J=z.split("*")[1]||"";try{return XZ(U).some((H)=>H.startsWith(Q)&&H.endsWith(J))}catch{return!1}}function Bq($,Z,X){switch($.type){case"dependency":return!!Z?.dependencies?.[$.key];case"devDependency":return!!Z?.devDependencies?.[$.key];case"file":return Yq(X,$.pattern);default:return!1}}function r2($){let Z=M0($);return ZZ.map((X)=>{let z=X.signals.filter((Q)=>Bq(Q,Z,$)).length/X.signals.length;return{name:X.name,slug:X.slug,category:X.category,confidence:z}}).filter((X)=>X.confidence>0).sort((X,U)=>U.confidence-X.confidence)}function UZ($){let Z=M0($);if(Z?.devDependencies?.typescript||Z?.dependencies?.typescript)return"TypeScript";if(P(F($,"tsconfig.json")))return"TypeScript";if(P(F($,"Cargo.toml")))return"Rust";if(P(F($,"go.mod")))return"Go";if(P(F($,"pyproject.toml"))||P(F($,"setup.py")))return"Python";if(P(F($,"Gemfile")))return"Ruby";if(P(F($,"pom.xml"))||P(F($,"build.gradle")))return"Java";if(P(F($,"Package.swift")))return"Swift";if(P(F($,"build.zig")))return"Zig";if(P(F($,"pubspec.yaml")))return"Dart";if(Z)return"JavaScript";return"Unknown"}function zZ($){let Z=M0($),X=r2($),U=[],z=Jq($,Z);if(z)return U.push(z),{type:"documentation",found:U};let Q=$q($,Z);if(Q)return U.push(Q),{type:"sdk",found:U};let J=Zq($);if(J)return U.push(J),{type:"extension",found:U};let H=Gq($,Z,X);if(H)return U.push(H),{type:"mcpaas",found:U};let q=qq($,Z);if(q)return U.push(q),{type:"saas",found:U};let G=zq($,Z);if(G)return U.push(G),{type:"wasm",found:U};let B=L1($);if(B)return U.push(B.found),{type:B.appType,found:U};let _=Uq($,Z);if(_)return U.push(_),{type:"mobile",found:U};if(X.some((I)=>I.slug==="mcp"))return U.push("MCP SDK signal"),{type:"mcp",found:U};if(Z?.bin)return U.push("package.json bin"),{type:"cli",found:U};if(eH($))return U.push("Cargo.toml [[bin]]"),{type:"cli",found:U};if(P(F($,"build.zig"))){if(U.push("build.zig"),P(F($,"src/main.zig")))return U.push("src/main.zig"),{type:"cli",found:U};if(P(F($,"src/root.zig")))return U.push("src/root.zig"),{type:"library",found:U}}let O=X.some((I)=>I.slug==="svelte"||I.slug==="sveltekit");if(Z?.private===!0&&(P(F($,"pnpm-workspace.yaml"))||Z?.workspaces!==void 0)&&O)return U.push("private workspace","Svelte"),{type:"framework",found:U};if(O)return U.push("Svelte/SvelteKit"),{type:"svelte",found:U};let V=X.some((I)=>I.category==="frontend"),W=X.some((I)=>I.category==="backend");if(Z?.private&&(Z.workspaces||P(F($,"pnpm-workspace.yaml")))&&V&&W)return U.push("private workspace + frontend + backend frameworks"),{type:"enterprise",found:U};let D=_q($,Z);if(D)return U.push(D),{type:"monorepo-root",found:U};let M=Hq($,Z,X);if(M)return U.push(M),{type:"website",found:U};if(X.some((I)=>I.slug==="nextjs"||I.slug==="nuxt"))return U.push(X.find((I)=>I.slug==="nextjs")?"Next.js":"Nuxt"),{type:"fullstack",found:U};let A=X.some((I)=>I.category==="frontend"),K=X.some((I)=>I.category==="backend");if(A&&K)return U.push("frontend framework","backend framework"),{type:"fullstack",found:U};if(A)return U.push("frontend framework"),{type:"frontend",found:U};if(K)return U.push("backend framework"),{type:"backend",found:U};let N=Xq($);if(N)return U.push(N),{type:"data-science",found:U};let C=Qq($,Z);if(C)return U.push(C),{type:"html",found:U};if(Z?.main&&!Z?.bin)return U.push("package.json main (no bin)"),{type:"library",found:U};return U.push("no classifying signals — fallback"),{type:"library",found:U}}function QZ($){if(P(F($,"bunfig.toml")))return"Bun";if(P(F($,"deno.json"))||P(F($,"deno.jsonc")))return"Deno";if(M0($))return"Node.js";if(P(F($,"Cargo.toml")))return"Rust";if(P(F($,"go.mod")))return"Go";if(P(F($,"pubspec.yaml")))return"Dart";return"Unknown"}function JZ($){if(P(F($,"pubspec.yaml")))return"pub";if(P(F($,"bun.lockb"))||P(F($,"bun.lock")))return"bun";if(P(F($,"pnpm-lock.yaml")))return"pnpm";if(P(F($,"yarn.lock")))return"yarn";if(P(F($,"package-lock.json")))return"npm";return"npm"}function HZ($){if(P(F($,".github/workflows")))return"GitHub Actions";if(P(F($,".gitlab-ci.yml")))return"GitLab CI";if(P(F($,".circleci")))return"CircleCI";if(P(F($,"Jenkinsfile")))return"Jenkins";return null}function qZ($){if(P(F($,"vercel.json")))return"Vercel";if(P(F($,"netlify.toml")))return"Netlify";if(P(F($,"wrangler.toml")))return"Cloudflare";if(P(F($,"Dockerfile")))return"Docker";if(P(F($,"fly.toml")))return"Fly.io";if(P(F($,"render.yaml")))return"Render";return null}function GZ($){let Z=F($,"svelte.config.js");if(!P(Z))return null;try{let U=t(Z,"utf-8").match(/@sveltejs\/adapter-(\w+)/);if(U){let z=U[1];switch(z){case"vercel":return"Vercel";case"node":return"Node";case"static":return"Static";case"cloudflare":return"Cloudflare";case"netlify":return"Netlify";case"auto":return"Auto";default:return z}}return null}catch{return null}}function _Z($){let Z=M0($);if(Z?.devDependencies?.vite||Z?.dependencies?.vite)return"Vite";if(Z?.devDependencies?.webpack||Z?.dependencies?.webpack)return"webpack";if(Z?.devDependencies?.esbuild||Z?.dependencies?.esbuild)return"esbuild";if(P(F($,"tsconfig.json"))&&Z?.devDependencies?.typescript)return"TypeScript (tsc)";return null}function YZ($){return["package.json","Cargo.toml","pyproject.toml","go.mod","build.zig","build.zig.zon","src/index.ts","src/index.js","src/main.ts","src/cli.ts","src/main.rs","src/lib.rs","src/main.zig","src/root.zig","src/__init__.py","main.py","__main__.py","main.go","cmd/main.go","README.md","SPECIFICATION.md","BINARY-FORMAT.md","tsconfig.json","wrangler.toml","vercel.json"].filter((X)=>P(F($,X)))}function BZ($,Z){let X={};if(Z?.scripts){for(let U of["build","test","lint","dev","start"])if(Z.scripts[U]){let z=P(F($,"bun.lock"))||P(F($,"bun.lockb"))?"bun run":"npm run";X[U]=`${z} ${U}`}}if(P(F($,"Cargo.toml"))){if(!X.build)X.build="cargo build --release";if(!X.test)X.test="cargo test";if(!X.lint)X.lint="cargo clippy"}if(P(F($,"build.zig"))){if(!X.build)X.build="zig build";if(!X.test)X.test="zig build test"}if(P(F($,"go.mod"))){if(!X.build)X.build="go build ./...";if(!X.test)X.test="go test ./..."}if(P(F($,"pyproject.toml"))||P(F($,"pytest.ini"))){if(!X.test)X.test="pytest"}return X}function VZ($,Z,X,U){let z=[];if(U&&U!=="Unknown")z.push(U);let Q=new Set(["frontend","backend","database","build","css","state","monorepo"]);for(let J of X)if(Q.has(J.category))z.push(J.name);if(P(F($,"bunfig.toml")))z.push("Bun");else if(P(F($,"deno.json"))||P(F($,"deno.jsonc")))z.push("Deno");if(z.length<3&&Z?.dependencies){let J=Object.keys(Z.dependencies).slice(0,5);for(let H of J)if(!z.some((q)=>q.toLowerCase().includes(H.toLowerCase())))z.push(H)}return z}function OZ($){let Z=M0($),X=r2($),U=UZ($),z=zZ($),Q=z.type,J=QZ($),H=JZ($),q=HZ($),G=qZ($),B=_Z($),_=X.find((j)=>j.category==="frontend"),Y=X.find((j)=>j.category==="css"),O=X.find((j)=>j.category==="ui"),L=X.find((j)=>j.category==="state"),V=X.find((j)=>j.category==="backend"),W=X.find((j)=>j.category==="database"),D=P0[Q]||P0.library,M=Q==="framework",T=X.some((j)=>j.slug==="svelte"||j.slug==="sveltekit"),A=M&&T?"svelte":M?null:null,K=Q==="svelte"||A==="svelte",N=K?GZ($):null,C=K&&X.some((j)=>j.slug==="sveltekit"),I=new Set(["css_framework","ui_library","database","connection","hosting"]),w={},d=f.filter((j)=>j.path.startsWith("stack."));for(let j of d){let S=j.path.replace("stack.","");if(!D.includes(j.category)){w[S]="slotignored";continue}if(M&&I.has(S)){w[S]="slotignored";continue}switch(S){case"frontend":w[S]=_?.name??(Q==="cli"?"CLI":"");break;case"css_framework":w[S]=Y?.name??"";break;case"ui_library":w[S]=O?.name??"";break;case"state_management":w[S]=K?L?.name??"Runes":L?.name??"";break;case"backend":w[S]=K?C?"SvelteKit":V?.name??"":V?.name??"";break;case"api_type":w[S]=C?"Server Routes":"";break;case"runtime":w[S]=J!=="Unknown"?J:"";break;case"database":w[S]=W?.name??"";break;case"connection":w[S]=W?.name??"";break;case"hosting":if(K&&N)w[S]=N;else w[S]=G??"";break;case"build":w[S]=K?"Vite":B??"";break;case"cicd":w[S]=q??"";break;case"package_manager":w[S]=H;break;default:w[S]="";break}}let c={},E=f.filter((j)=>j.path.startsWith("monorepo."));for(let j of E){let S=j.path.replace("monorepo.","");if(!D.includes(j.category))c[S]="slotignored";else c[S]=""}let m0={name:Z?.name??$.split("/").pop()??"project",goal:Z?.description??"",main_language:U,type:Q};if(M&&A)m0.framework=A;let t2=VZ($,Z,X,U),e2=YZ($),$9=BZ($,Z),M$={faf_version:$Z,project:m0,stack:w,human_context:{who:"",what:Z?.description??"",why:"",where:"",when:"",how:""},monorepo:c,_meta:{found:z.found}};if(t2.length>0)M$.tech_stack=t2;if(e2.length>0)M$.key_files=e2;if(Object.keys($9).length>0)M$.commands=$9;return M$}import{existsSync as Oq,readFileSync as Wq}from"fs";import{join as Lq}from"path";var WZ={MIN_LENGTH:8,MAX_LENGTH:280},Vq=[/^(see|see\s+the?)\s+readme/i,/^(tbd|todo|fixme|coming\s+soon)\b/i,/^(software|application|app|project|tool|library|framework)\.?$/i,/^(for\s+users|for\s+developers)\.?$/i,/^(description|goal|name|title)\.?$/i,/^lorem\s+ipsum/i,/^example(\s+\w+)?\.?$/i];function l($){let Z=$.trim();if(Z.length<WZ.MIN_LENGTH)return!1;if(Z.length>WZ.MAX_LENGTH)return!1;if(Vq.some((X)=>X.test(Z)))return!1;if(/^[\s|\-*+]/.test(Z))return!1;if(Z.split(`
218
- `).length>4)return!1;return!0}function Iq($){let Z=$.split(`
217
+ `).replace(/<[^>]+>/g,"").replace(/!\[[^\]]*\]\([^)]*\)/g,"").trim()}function D0($){return $.replace(/\s+/g," ").replace(/[#*`>]/g,"").trim().slice(0,280)}function v0($,Z){let X=new RegExp(`##?\\s+(${Z})\\s*\\n+([\\s\\S]+?)(?:\\n\\n|\\n##?|$)`,"i"),U=$.match(X);return U&&U[2]&&U[2].trim().length>20?{body:D0(U[2]),heading:U[1].trim()}:null}function D$($,Z,X=30){for(let U of Z){let z=$.match(U);if(z&&z[1]&&z[1].trim().length>=X)return D0(z[1])}return null}function iH($,Z){if($?.description&&$.description.length>20)return x(D0($.description),"package.json:description",0.95);let X=v0(Z,"Purpose|What|About|Overview|Description");if(X)return x(X.body,`README:## ${X.heading}`,0.8);let U=Z.split(/\n\s*\n/).map((Q)=>Q.trim()).find((Q)=>Q.length>30&&!Q.startsWith("#"));if(U)return x(D0(U),"README:first-paragraph",0.5);let z=D$(Z,[/(?:core|main|primary)\s+(?:problem|challenge)(?:\s+is)?\s*:?\s*([^.\n]{30,})/i,/solves?\s+(?:the\s+)?(?:problem\s+of\s+)?([^.\n]{30,})/i]);return z?x(z,"README:problem-heuristic",0.6):null}function sH($){let Z=v0($,"Audience|Who|Who is this for|Who it.s for");if(Z)return x(Z.body,`README:## ${Z.heading}`,0.8);let X=D$($,[/\b(?:designed|built|made)\s+for\s+((?:[a-z][a-z-]*\s+)?(?:developers?|teams?|engineers?|builders?|founders?)[^.\n]{0,80})/i,/\bfor\s+((?:[a-z][a-z-]*\s+)?(?:developers?|teams?|engineers?|builders?|founders?)[^.\n]{0,80})/i],8);return X?x(X,"README:audience-heuristic",0.6):null}function aH($){let Z=v0($,"Why|Mission|Motivation|Rationale|Vision");if(Z)return x(Z.body,`README:## ${Z.heading}`,0.8);let X=D$($,[/(?:our\s+|the\s+)?(?:mission|purpose|goal)\s+is\s+([^.\n]{30,})/i,/\b(?:mission|purpose|goal)\s*:\s*([^.\n]{30,})/i,/(?:built|created|designed)\s+(?:because|to)\s+([^.\n]{30,})/i]);return X?x(X,"README:mission-heuristic",0.6):null}function rH($,Z){let X=typeof $?.repository==="string"?$.repository:$?.repository?.url;if(X)return x(D0(X.replace(/^git\+/,"").replace(/\.git$/,"")),"package.json:repository",0.95);if($?.homepage)return x(D0($.homepage),"package.json:homepage",0.9);let U=D$(Z,[/\b(?:deployed|hosted|available|published)\s+(?:on|at|via)\s+([^.\n]{3,80})/i],3);return U?x(U,"README:deploy-heuristic",0.6):null}function nH($){let Z=v0($,"Timeline|Status|Release|Roadmap");if(Z)return x(Z.body,`README:## ${Z.heading}`,0.8);let X=D$($,[/\b(production\s+since\s+[^.\n]{4,60})/i,/\b((?:in\s+)?(?:production|beta|alpha|development)\s+since\s+[^.\n]{4,60})/i,/\bsince\s+((?:[A-Z][a-z]+\s+)?\d{4}[^.\n]{0,40})/],4);return X?x(X,"README:since-heuristic",0.6):null}function oH($,Z){let X=$?.scripts?Object.keys($.scripts):[],U=["start","dev","build"].filter((J)=>X.includes(J));if(U.length)return x(D0(U.map((J)=>`npm run ${J}`).join(", ")),"package.json:scripts",0.9);let z=v0(Z,"Usage|Getting Started|Install|Installation|Quick Start");if(z)return x(z.body,`README:## ${z.heading}`,0.8);let Q=v0(Z,"Architecture|Approach|How it works|Methodology|How");return Q?x(Q.body,`README:## ${Q.heading}`,0.7):null}var $6="3.0";import{existsSync as P,readFileSync as t,readdirSync as X6}from"fs";import{join as M}from"path";var Z6=[{name:"Next.js",slug:"nextjs",category:"frontend",signals:[{type:"dependency",key:"next"},{type:"file",pattern:"next.config.*"}]},{name:"React",slug:"react",category:"frontend",signals:[{type:"dependency",key:"react"}]},{name:"SvelteKit",slug:"sveltekit",category:"frontend",signals:[{type:"dependency",key:"@sveltejs/kit"},{type:"file",pattern:"svelte.config.*"}]},{name:"Svelte",slug:"svelte",category:"frontend",signals:[{type:"dependency",key:"svelte"},{type:"devDependency",key:"svelte"}]},{name:"Vue.js",slug:"vue",category:"frontend",signals:[{type:"dependency",key:"vue"}]},{name:"Nuxt",slug:"nuxt",category:"frontend",signals:[{type:"dependency",key:"nuxt"},{type:"file",pattern:"nuxt.config.*"}]},{name:"Angular",slug:"angular",category:"frontend",signals:[{type:"dependency",key:"@angular/core"},{type:"file",pattern:"angular.json"}]},{name:"Astro",slug:"astro",category:"frontend",signals:[{type:"dependency",key:"astro"},{type:"file",pattern:"astro.config.*"}]},{name:"Solid",slug:"solid",category:"frontend",signals:[{type:"dependency",key:"solid-js"}]},{name:"Remix",slug:"remix",category:"frontend",signals:[{type:"dependency",key:"@remix-run/react"}]},{name:"Gatsby",slug:"gatsby",category:"frontend",signals:[{type:"dependency",key:"gatsby"},{type:"file",pattern:"gatsby-config.*"}]},{name:"Qwik",slug:"qwik",category:"frontend",signals:[{type:"dependency",key:"@builder.io/qwik"}]},{name:"Vercel (SvelteKit)",slug:"adapter-vercel",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-vercel"},{type:"devDependency",key:"@sveltejs/adapter-vercel"}]},{name:"Node (SvelteKit)",slug:"adapter-node",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-node"},{type:"devDependency",key:"@sveltejs/adapter-node"}]},{name:"Static (SvelteKit)",slug:"adapter-static",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-static"},{type:"devDependency",key:"@sveltejs/adapter-static"}]},{name:"Cloudflare (SvelteKit)",slug:"adapter-cloudflare",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-cloudflare"},{type:"devDependency",key:"@sveltejs/adapter-cloudflare"}]},{name:"Netlify (SvelteKit)",slug:"adapter-netlify",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-netlify"},{type:"devDependency",key:"@sveltejs/adapter-netlify"}]},{name:"Tailwind CSS",slug:"tailwind",category:"css",signals:[{type:"dependency",key:"tailwindcss"},{type:"devDependency",key:"tailwindcss"},{type:"file",pattern:"tailwind.config.*"}]},{name:"Bootstrap",slug:"bootstrap",category:"css",signals:[{type:"dependency",key:"bootstrap"}]},{name:"Styled Components",slug:"styled-components",category:"css",signals:[{type:"dependency",key:"styled-components"}]},{name:"shadcn/ui",slug:"shadcn",category:"ui",signals:[{type:"file",pattern:"components.json"},{type:"dependency",key:"@radix-ui/react-dialog"}]},{name:"Material UI",slug:"mui",category:"ui",signals:[{type:"dependency",key:"@mui/material"}]},{name:"Chakra UI",slug:"chakra",category:"ui",signals:[{type:"dependency",key:"@chakra-ui/react"}]},{name:"Ant Design",slug:"antd",category:"ui",signals:[{type:"dependency",key:"antd"}]},{name:"Redux",slug:"redux",category:"state",signals:[{type:"dependency",key:"@reduxjs/toolkit"}]},{name:"Zustand",slug:"zustand",category:"state",signals:[{type:"dependency",key:"zustand"}]},{name:"Jotai",slug:"jotai",category:"state",signals:[{type:"dependency",key:"jotai"}]},{name:"Pinia",slug:"pinia",category:"state",signals:[{type:"dependency",key:"pinia"}]},{name:"Express",slug:"express",category:"backend",signals:[{type:"dependency",key:"express"}]},{name:"Fastify",slug:"fastify",category:"backend",signals:[{type:"dependency",key:"fastify"}]},{name:"Hono",slug:"hono",category:"backend",signals:[{type:"dependency",key:"hono"}]},{name:"Elysia",slug:"elysia",category:"backend",signals:[{type:"dependency",key:"elysia"}]},{name:"NestJS",slug:"nestjs",category:"backend",signals:[{type:"dependency",key:"@nestjs/core"}]},{name:"Koa",slug:"koa",category:"backend",signals:[{type:"dependency",key:"koa"}]},{name:"Django",slug:"django",category:"backend",signals:[{type:"file",pattern:"manage.py"},{type:"file",pattern:"settings.py"}]},{name:"Flask",slug:"flask",category:"backend",signals:[{type:"file",pattern:"app.py"}]},{name:"FastAPI",slug:"fastapi",category:"backend",signals:[{type:"file",pattern:"main.py"}]},{name:"Rails",slug:"rails",category:"backend",signals:[{type:"file",pattern:"Gemfile"},{type:"file",pattern:"config/routes.rb"}]},{name:"Spring Boot",slug:"spring",category:"backend",signals:[{type:"file",pattern:"pom.xml"},{type:"file",pattern:"build.gradle"}]},{name:"Prisma",slug:"prisma",category:"database",signals:[{type:"dependency",key:"prisma"},{type:"devDependency",key:"prisma"},{type:"file",pattern:"prisma/schema.prisma"}]},{name:"Drizzle",slug:"drizzle",category:"database",signals:[{type:"dependency",key:"drizzle-orm"},{type:"file",pattern:"drizzle.config.*"}]},{name:"TypeORM",slug:"typeorm",category:"database",signals:[{type:"dependency",key:"typeorm"}]},{name:"Mongoose",slug:"mongoose",category:"database",signals:[{type:"dependency",key:"mongoose"}]},{name:"Vite",slug:"vite",category:"build",signals:[{type:"dependency",key:"vite"},{type:"devDependency",key:"vite"},{type:"file",pattern:"vite.config.*"}]},{name:"webpack",slug:"webpack",category:"build",signals:[{type:"dependency",key:"webpack"},{type:"devDependency",key:"webpack"},{type:"file",pattern:"webpack.config.*"}]},{name:"esbuild",slug:"esbuild",category:"build",signals:[{type:"dependency",key:"esbuild"},{type:"devDependency",key:"esbuild"}]},{name:"Turbopack",slug:"turbopack",category:"build",signals:[{type:"file",pattern:"turbo.json"}]},{name:"Jest",slug:"jest",category:"testing",signals:[{type:"devDependency",key:"jest"},{type:"file",pattern:"jest.config.*"}]},{name:"Vitest",slug:"vitest",category:"testing",signals:[{type:"devDependency",key:"vitest"}]},{name:"Playwright",slug:"playwright",category:"testing",signals:[{type:"devDependency",key:"@playwright/test"},{type:"file",pattern:"playwright.config.*"}]},{name:"Cypress",slug:"cypress",category:"testing",signals:[{type:"devDependency",key:"cypress"},{type:"file",pattern:"cypress.config.*"}]},{name:"Turborepo",slug:"turborepo",category:"monorepo",signals:[{type:"devDependency",key:"turbo"},{type:"file",pattern:"turbo.json"}]},{name:"Nx",slug:"nx",category:"monorepo",signals:[{type:"devDependency",key:"nx"},{type:"file",pattern:"nx.json"}]},{name:"Lerna",slug:"lerna",category:"monorepo",signals:[{type:"devDependency",key:"lerna"},{type:"file",pattern:"lerna.json"}]},{name:"MCP SDK",slug:"mcp",category:"ai",signals:[{type:"dependency",key:"@modelcontextprotocol/sdk"}]},{name:"Anthropic SDK",slug:"anthropic",category:"ai",signals:[{type:"dependency",key:"@anthropic-ai/sdk"}]},{name:"OpenAI SDK",slug:"openai",category:"ai",signals:[{type:"dependency",key:"openai"}]},{name:"LangChain",slug:"langchain",category:"ai",signals:[{type:"dependency",key:"langchain"}]},{name:"Vercel",slug:"vercel",category:"hosting",signals:[{type:"file",pattern:"vercel.json"}]},{name:"Netlify",slug:"netlify",category:"hosting",signals:[{type:"file",pattern:"netlify.toml"}]},{name:"Docker",slug:"docker",category:"hosting",signals:[{type:"file",pattern:"Dockerfile"},{type:"file",pattern:"docker-compose.yml"}]},{name:"Cloudflare Workers",slug:"cloudflare",category:"hosting",signals:[{type:"file",pattern:"wrangler.toml"},{type:"dependency",key:"wrangler"}]},{name:"GitHub Actions",slug:"github-actions",category:"cicd",signals:[{type:"file",pattern:".github/workflows/*.yml"}]},{name:"Commander.js",slug:"commander",category:"cli",signals:[{type:"dependency",key:"commander"}]}];function tH($){let Z=M($,"Cargo.toml");if(!P(Z))return null;try{let U=t(Z,"utf-8").match(/^\s*\[package\][\s\S]*?^\s*name\s*=\s*"([^"]+)"/m);return U?U[1]:null}catch{return null}}function eH($){let Z=M($,"Cargo.toml");if(!P(Z))return!1;try{let X=t(Z,"utf-8");return/^\s*\[\[bin\]\]/m.test(X)}catch{return!1}}function $q($,Z){if(Z?.keywords?.some((U)=>/^sdk(?:\s|-|$)|-sdk$/i.test(U)))return'package.json keywords contains "sdk"';if(Z?.name&&/(?:^|[-_/])sdk(?:[-_/]|$)/i.test(Z.name))return`package.json name "${Z.name}" → sdk`;let X=tH($);if(X&&/(?:^|[-_])sdk(?:[-_]|$)/i.test(X))return`Cargo.toml name "${X}" → sdk`;return null}function Zq($){let Z=["manifest.json","public/manifest.json","src/manifest.json","app/manifest.json","extension/manifest.json","dist/manifest.json"];for(let X of Z){let U=M($,X);if(!P(U))continue;try{let z=JSON.parse(t(U,"utf-8"));if(typeof z.manifest_version==="number")return`${X} manifest_version ${z.manifest_version} (browser extension)`}catch{}}return null}function Xq($){let Z=/(numpy|pandas|jupyter|scikit-learn|sklearn|pytorch|tensorflow|matplotlib|scipy)/i,X=M($,"pyproject.toml");if(P(X))try{let Q=t(X,"utf-8").match(Z);if(Q)return`pyproject.toml depends on ${Q[1]}`}catch{}let U=M($,"requirements.txt");if(P(U))try{let Q=t(U,"utf-8").match(Z);if(Q)return`requirements.txt contains ${Q[1]}`}catch{}return null}function Uq($,Z){let X=["react-native","expo","@capacitor/core","@ionic/core"];if(Z){for(let U of X)if(Z.dependencies?.[U]||Z.devDependencies?.[U])return`${U} dependency`}if(P(M($,"ios"))&&P(M($,"android")))return"ios/ + android/ dirs";return null}function zq($,Z){let X=M($,"Cargo.toml");if(P(X))try{let z=t(X,"utf-8");if(/crate-type\s*=\s*\[[^\]]*"cdylib"/.test(z))return'Cargo.toml crate-type = ["cdylib"]';if(/wasm-bindgen|wasm-pack/i.test(z))return"Cargo.toml wasm-bindgen/wasm-pack"}catch{}let U=M($,"build.zig");if(P(U))try{let z=t(U,"utf-8");if(/\.wasm\b|wasm32|setOutputFormat\(\.wasm/i.test(z))return"build.zig wasm target"}catch{}if(Z?.keywords?.some((z)=>/^wasm(?:-|$)|webassembly/i.test(z)))return'package.json keywords contains "wasm"';return null}function Qq($,Z){if(!P(M($,"index.html")))return null;if(Z?.dependencies||Z?.devDependencies){let X={...Z.dependencies??{},...Z.devDependencies??{}};if(["react","vue","svelte","@sveltejs/kit","next","nuxt","astro","gatsby","solid-js","qwik"].some((z)=>X[z]))return null}return"index.html (vanilla, no frontend framework)"}function Jq($,Z){if(Z?.name&&/specification|^@.*\/spec/i.test(Z.name))return`package name "${Z.name}" → documentation`;if(Z?.keywords?.some((X)=>/^(specification|format-spec|standard)$/i.test(X)))return'package keywords contains "specification"';if(Z?.bin)return null;if(Z?.files&&Z.files.length>0){let X=/^(dist|src|lib|build|bin)(\/|$)|\/(dist|src|lib|build|bin)(\/|$)|(\.|\/)(js|ts|tsx|jsx|mjs|cjs|py|rs|go)$/,U=Z.files.some((Q)=>X.test(Q)),z=Z.files.some((Q)=>/\.(md|MD)$|examples?\//.test(Q)||Q==="README.md"||Q==="docs"||Q==="docs/");if(!U&&z)return"package.json files = docs/examples only (no source)"}return null}function Hq($,Z,X){let U=X.find((z)=>z.slug==="astro"||z.slug==="gatsby");if(U)return`${U.name} (static-site framework)`;if(Z?.keywords?.some((z)=>/^(website|marketing|landing|brochure|portfolio)$/i.test(z)))return'package keywords contains "website"/"marketing"/"landing"';return null}function qq($,Z){if(!Z)return null;let X={...Z.dependencies??{},...Z.devDependencies??{}},U=["@clerk/nextjs","@clerk/clerk-react","next-auth","@auth/core","auth0","@auth0/nextjs-auth0"],z=["stripe","@stripe/stripe-js","lemonsqueezy"],Q=U.some((H)=>X[H]),J=z.some((H)=>X[H]);if(Q&&J)return"auth + payment dependencies";return null}function _q($,Z,X){if(Z?.keywords?.some((Q)=>/mcpaas/i.test(Q)))return'package keywords contains "mcpaas"';if(Z?.name&&/mcpaas/i.test(Z.name))return`package name "${Z.name}" → mcpaas`;let U=X.some((Q)=>Q.slug==="mcp"),z=X.some((Q)=>Q.category==="database");if(U&&z&&Z?.dependencies&&Object.keys(Z.dependencies).length>10)return"MCP + database + complex deps (platform shape)";return null}function Gq($,Z){if(!Z?.private)return null;if(!(!!Z.workspaces||P(M($,"pnpm-workspace.yaml"))))return null;return"private workspace + multi-package"}function F0($){let Z=M($,"package.json");if(!P(Z))return null;try{return JSON.parse(t(Z,"utf-8"))}catch{return null}}function Yq($,Z){if(!Z.includes("*"))return P(M($,Z));let X=Z.split("/");if(X.length===1){let H=Z.split("*")[0];try{return X6($).some((q)=>q.startsWith(H))}catch{return!1}}let U=M($,...X.slice(0,-1)),z=X[X.length-1],Q=z.split("*")[0],J=z.split("*")[1]||"";try{return X6(U).some((H)=>H.startsWith(Q)&&H.endsWith(J))}catch{return!1}}function Bq($,Z,X){switch($.type){case"dependency":return!!Z?.dependencies?.[$.key];case"devDependency":return!!Z?.devDependencies?.[$.key];case"file":return Yq(X,$.pattern);default:return!1}}function r2($){let Z=F0($);return Z6.map((X)=>{let z=X.signals.filter((Q)=>Bq(Q,Z,$)).length/X.signals.length;return{name:X.name,slug:X.slug,category:X.category,confidence:z}}).filter((X)=>X.confidence>0).sort((X,U)=>U.confidence-X.confidence)}function U6($){let Z=F0($);if(Z?.devDependencies?.typescript||Z?.dependencies?.typescript)return"TypeScript";if(P(M($,"tsconfig.json")))return"TypeScript";if(P(M($,"Cargo.toml")))return"Rust";if(P(M($,"go.mod")))return"Go";if(P(M($,"pyproject.toml"))||P(M($,"setup.py")))return"Python";if(P(M($,"Gemfile")))return"Ruby";if(P(M($,"pom.xml"))||P(M($,"build.gradle")))return"Java";if(P(M($,"Package.swift")))return"Swift";if(P(M($,"build.zig")))return"Zig";if(P(M($,"pubspec.yaml")))return"Dart";if(Z)return"JavaScript";return"Unknown"}function z6($){let Z=F0($),X=r2($),U=[],z=Jq($,Z);if(z)return U.push(z),{type:"documentation",found:U};let Q=$q($,Z);if(Q)return U.push(Q),{type:"sdk",found:U};let J=Zq($);if(J)return U.push(J),{type:"extension",found:U};let H=_q($,Z,X);if(H)return U.push(H),{type:"mcpaas",found:U};let q=qq($,Z);if(q)return U.push(q),{type:"saas",found:U};let _=zq($,Z);if(_)return U.push(_),{type:"wasm",found:U};let B=L1($);if(B)return U.push(B.found),{type:B.appType,found:U};let G=Uq($,Z);if(G)return U.push(G),{type:"mobile",found:U};if(X.some((R)=>R.slug==="mcp"))return U.push("MCP SDK signal"),{type:"mcp",found:U};if(Z?.bin)return U.push("package.json bin"),{type:"cli",found:U};if(eH($))return U.push("Cargo.toml [[bin]]"),{type:"cli",found:U};if(P(M($,"build.zig"))){if(U.push("build.zig"),P(M($,"src/main.zig")))return U.push("src/main.zig"),{type:"cli",found:U};if(P(M($,"src/root.zig")))return U.push("src/root.zig"),{type:"library",found:U}}let O=X.some((R)=>R.slug==="svelte"||R.slug==="sveltekit");if(Z?.private===!0&&(P(M($,"pnpm-workspace.yaml"))||Z?.workspaces!==void 0)&&O)return U.push("private workspace","Svelte"),{type:"framework",found:U};if(O)return U.push("Svelte/SvelteKit"),{type:"svelte",found:U};let V=X.some((R)=>R.category==="frontend"),W=X.some((R)=>R.category==="backend");if(Z?.private&&(Z.workspaces||P(M($,"pnpm-workspace.yaml")))&&V&&W)return U.push("private workspace + frontend + backend frameworks"),{type:"enterprise",found:U};let I=Gq($,Z);if(I)return U.push(I),{type:"monorepo-root",found:U};let F=Hq($,Z,X);if(F)return U.push(F),{type:"website",found:U};if(X.some((R)=>R.slug==="nextjs"||R.slug==="nuxt"))return U.push(X.find((R)=>R.slug==="nextjs")?"Next.js":"Nuxt"),{type:"fullstack",found:U};let A=X.some((R)=>R.category==="frontend"),K=X.some((R)=>R.category==="backend");if(A&&K)return U.push("frontend framework","backend framework"),{type:"fullstack",found:U};if(A)return U.push("frontend framework"),{type:"frontend",found:U};if(K)return U.push("backend framework"),{type:"backend",found:U};let N=Xq($);if(N)return U.push(N),{type:"data-science",found:U};let C=Qq($,Z);if(C)return U.push(C),{type:"html",found:U};if(Z?.main&&!Z?.bin)return U.push("package.json main (no bin)"),{type:"library",found:U};return U.push("no classifying signals — fallback"),{type:"library",found:U}}function Q6($){if(P(M($,"bunfig.toml")))return"Bun";if(P(M($,"deno.json"))||P(M($,"deno.jsonc")))return"Deno";if(F0($))return"Node.js";if(P(M($,"Cargo.toml")))return"Rust";if(P(M($,"go.mod")))return"Go";if(P(M($,"pubspec.yaml")))return"Dart";return"Unknown"}function J6($){if(P(M($,"pubspec.yaml")))return"pub";if(P(M($,"bun.lockb"))||P(M($,"bun.lock")))return"bun";if(P(M($,"pnpm-lock.yaml")))return"pnpm";if(P(M($,"yarn.lock")))return"yarn";if(P(M($,"package-lock.json")))return"npm";return"npm"}function H6($){if(P(M($,".github/workflows")))return"GitHub Actions";if(P(M($,".gitlab-ci.yml")))return"GitLab CI";if(P(M($,".circleci")))return"CircleCI";if(P(M($,"Jenkinsfile")))return"Jenkins";return null}function q6($){if(P(M($,"vercel.json")))return"Vercel";if(P(M($,"netlify.toml")))return"Netlify";if(P(M($,"wrangler.toml")))return"Cloudflare";if(P(M($,"Dockerfile")))return"Docker";if(P(M($,"fly.toml")))return"Fly.io";if(P(M($,"render.yaml")))return"Render";return null}function _6($){let Z=M($,"svelte.config.js");if(!P(Z))return null;try{let U=t(Z,"utf-8").match(/@sveltejs\/adapter-(\w+)/);if(U){let z=U[1];switch(z){case"vercel":return"Vercel";case"node":return"Node";case"static":return"Static";case"cloudflare":return"Cloudflare";case"netlify":return"Netlify";case"auto":return"Auto";default:return z}}return null}catch{return null}}function G6($){let Z=F0($);if(Z?.devDependencies?.vite||Z?.dependencies?.vite)return"Vite";if(Z?.devDependencies?.webpack||Z?.dependencies?.webpack)return"webpack";if(Z?.devDependencies?.esbuild||Z?.dependencies?.esbuild)return"esbuild";if(P(M($,"tsconfig.json"))&&Z?.devDependencies?.typescript)return"TypeScript (tsc)";return null}function Y6($){return["package.json","Cargo.toml","pyproject.toml","go.mod","build.zig","build.zig.zon","src/index.ts","src/index.js","src/main.ts","src/cli.ts","src/main.rs","src/lib.rs","src/main.zig","src/root.zig","src/__init__.py","main.py","__main__.py","main.go","cmd/main.go","README.md","SPECIFICATION.md","BINARY-FORMAT.md","tsconfig.json","wrangler.toml","vercel.json"].filter((X)=>P(M($,X)))}function B6($,Z){let X={};if(Z?.scripts){for(let U of["build","test","lint","dev","start"])if(Z.scripts[U]){let z=P(M($,"bun.lock"))||P(M($,"bun.lockb"))?"bun run":"npm run";X[U]=`${z} ${U}`}}if(P(M($,"Cargo.toml"))){if(!X.build)X.build="cargo build --release";if(!X.test)X.test="cargo test";if(!X.lint)X.lint="cargo clippy"}if(P(M($,"build.zig"))){if(!X.build)X.build="zig build";if(!X.test)X.test="zig build test"}if(P(M($,"go.mod"))){if(!X.build)X.build="go build ./...";if(!X.test)X.test="go test ./..."}if(P(M($,"pyproject.toml"))||P(M($,"pytest.ini"))){if(!X.test)X.test="pytest"}return X}function V6($,Z,X,U){let z=[];if(U&&U!=="Unknown")z.push(U);let Q=new Set(["frontend","backend","database","build","css","state","monorepo"]);for(let J of X)if(Q.has(J.category))z.push(J.name);if(P(M($,"bunfig.toml")))z.push("Bun");else if(P(M($,"deno.json"))||P(M($,"deno.jsonc")))z.push("Deno");if(z.length<3&&Z?.dependencies){let J=Object.keys(Z.dependencies).slice(0,5);for(let H of J)if(!z.some((q)=>q.toLowerCase().includes(H.toLowerCase())))z.push(H)}return z}function O6($){let Z=F0($),X=r2($),U=U6($),z=z6($),Q=z.type,J=Q6($),H=J6($),q=H6($),_=q6($),B=G6($),G=X.find((j)=>j.category==="frontend"),Y=X.find((j)=>j.category==="css"),O=X.find((j)=>j.category==="ui"),L=X.find((j)=>j.category==="state"),V=X.find((j)=>j.category==="backend"),W=X.find((j)=>j.category==="database"),I=P0[Q]||P0.library,F=Q==="framework",T=X.some((j)=>j.slug==="svelte"||j.slug==="sveltekit"),A=F&&T?"svelte":F?null:null,K=Q==="svelte"||A==="svelte",N=K?_6($):null,C=K&&X.some((j)=>j.slug==="sveltekit"),R=new Set(["css_framework","ui_library","database","connection","hosting"]),w={},d=f.filter((j)=>j.path.startsWith("stack."));for(let j of d){let S=j.path.replace("stack.","");if(!I.includes(j.category)){w[S]="slotignored";continue}if(F&&R.has(S)){w[S]="slotignored";continue}switch(S){case"frontend":w[S]=G?.name??(Q==="cli"?"CLI":"");break;case"css_framework":w[S]=Y?.name??"";break;case"ui_library":w[S]=O?.name??"";break;case"state_management":w[S]=K?L?.name??"Runes":L?.name??"";break;case"backend":w[S]=K?C?"SvelteKit":V?.name??"":V?.name??"";break;case"api_type":w[S]=C?"Server Routes":"";break;case"runtime":w[S]=J!=="Unknown"?J:"";break;case"database":w[S]=W?.name??"";break;case"connection":w[S]=W?.name??"";break;case"hosting":if(K&&N)w[S]=N;else w[S]=_??"";break;case"build":w[S]=K?"Vite":B??"";break;case"cicd":w[S]=q??"";break;case"package_manager":w[S]=H;break;default:w[S]="";break}}let c={},E=f.filter((j)=>j.path.startsWith("monorepo."));for(let j of E){let S=j.path.replace("monorepo.","");if(!I.includes(j.category))c[S]="slotignored";else c[S]=""}let m0={name:Z?.name??$.split("/").pop()??"project",goal:Z?.description??"",main_language:U,type:Q};if(F&&A)m0.framework=A;let t2=V6($,Z,X,U),e2=Y6($),$8=B6($,Z),F$={faf_version:$6,project:m0,stack:w,human_context:{who:"",what:Z?.description??"",why:"",where:"",when:"",how:""},monorepo:c,_meta:{found:z.found}};if(t2.length>0)F$.tech_stack=t2;if(e2.length>0)F$.key_files=e2;if(Object.keys($8).length>0)F$.commands=$8;return F$}import{existsSync as Oq,readFileSync as Wq}from"fs";import{join as Lq}from"path";var W6={MIN_LENGTH:8,MAX_LENGTH:280},Vq=[/^(see|see\s+the?)\s+readme/i,/^(tbd|todo|fixme|coming\s+soon)\b/i,/^(software|application|app|project|tool|library|framework)\.?$/i,/^(for\s+users|for\s+developers)\.?$/i,/^(description|goal|name|title)\.?$/i,/^lorem\s+ipsum/i,/^example(\s+\w+)?\.?$/i];function l($){let Z=$.trim();if(Z.length<W6.MIN_LENGTH)return!1;if(Z.length>W6.MAX_LENGTH)return!1;if(Vq.some((X)=>X.test(Z)))return!1;if(/^[\s|\-*+]/.test(Z))return!1;if(Z.split(`
218
+ `).length>4)return!1;return!0}function Rq($){let Z=$.split(`
219
219
  `),X=0;while(X<Z.length&&/^(#\s|$)/.test(Z[X].trim()))X++;while(X<Z.length){let U=Z[X].trim();if(/^\[!\[/.test(U)){X++;continue}if(/^!\[/.test(U)){X++;continue}if(/^<img\s/i.test(U)){X++;continue}if(U===""){X++;continue}break}return Z.slice(X).join(`
220
- `)}function Dq($){let X=Iq($).split(`
221
- `),U=[];for(let z of X){let Q=z.trim();if(Q===""){if(U.length>0)break;continue}if(/^(#|>|```|---|\||\s*[-*+]\s|\d+\.\s)/.test(Q))break;if(/^\*\*[^*]+\*\*\s*$/.test(Q)&&U.length===0)continue;U.push(Q)}if(U.length===0)return null;return U.join(" ").trim()}function F0($,Z){let X=$.split(`
222
- `),U=0;while(U<X.length){let Q=X[U].trim().match(/^(#{1,6})\s+(.+)$/);if(Q&&Z.test(Q[2])){let J=Q[1].length,H=[];U++;while(U<X.length){let q=X[U].trim(),G=q.match(/^(#{1,6})\s+/);if(G&&G[1].length<=J)break;if(q===""){if(H.length>0)break;U++;continue}if(/^(>|```|---|\||\s*[-*+]\s|\d+\.\s)/.test(q))break;H.push(q),U++}if(H.length===0)return null;return H.join(" ").trim()}U++}return null}function Rq($){let Z=F0($,/^(use\s+cases?|goal)\b/i);if(Z&&l(Z))return Z;let X=Dq($);if(X&&l(X))return X;return}function Mq($){let Z=F0($,/^(about|description|overview|what(\s+is\s+this)?)\b/i);if(Z&&l(Z))return Z;return}function Fq($){let Z=F0($,/^(audience|users?|for\s+whom|who(\s+is\s+this\s+for)?)\b/i);if(Z&&l(Z))return Z;return}function Pq($){let Z=F0($,/^(why|motivation|problem|rationale)\b/i);if(Z&&l(Z))return Z;return}function Tq($){let Z=F0($,/^(deployment|where(\s+it\s+runs)?|hosting)\b/i);if(Z&&l(Z))return Z;return}function Kq($){let Z=F0($,/^(status|history|timeline|since|launched)\b/i);if(Z&&l(Z))return Z;return}function Aq($){let Z=F0($,/^(architecture|how(\s+it\s+works)?|approach|design)\b/i);if(Z&&l(Z))return Z;return}function n2($){let Z=["README.md","README.MD","Readme.md","readme.md"],X=null;for(let O of Z){let L=Lq($,O);if(Oq(L)){X=L;break}}if(!X)return{};let U;try{U=Wq(X,"utf-8")}catch{return{}}let z={},Q=Rq(U);if(Q)z.project={goal:Q};let J={},H=Mq(U);if(H)J.what=H;let q=Fq(U);if(q)J.who=q;let G=Pq(U);if(G)J.why=G;let B=Tq(U);if(B)J.where=B;let _=Kq(U);if(_)J.when=_;let Y=Aq(U);if(Y)J.how=Y;if(Object.keys(J).length>0)z.human_context=J;return z}import{existsSync as Nq,readFileSync as wq}from"fs";import{join as bq}from"path";function Cq($,Z){let X=$.split(`
223
- `),U=!1;for(let z of X){let Q=z.trim();if(/^\[/.test(Q)){U=Q==="[package]";continue}if(!U)continue;let J=Q.match(new RegExp(`^${Z}\\s*=\\s*(.+)$`));if(J){let H=J[1].trim();H=H.replace(/\s*#.*$/,"").trim();let q=H.match(/^"((?:[^"\\]|\\.)*)"$/)||H.match(/^'((?:[^'\\]|\\.)*)'$/);if(q)return q[1];return H}}return null}function o2($){let Z=bq($,"Cargo.toml");if(!Nq(Z))return{};let X;try{X=wq(Z,"utf-8")}catch{return{}}let U=Cq(X,"description");if(U&&l(U))return{project:{goal:U}};return{}}function jq($,Z){let X={project:{...Z.project??{},...$.project??{}},human_context:{...Z.human_context??{},...$.human_context??{}}};if(X.project&&Object.keys(X.project).length===0)delete X.project;if(X.human_context&&Object.keys(X.human_context).length===0)delete X.human_context;return X}function LZ($){return jq(n2($),o2($))}function Sq($){let Z=OZ($),X=LZ($),U=I1(Z,X);Eq(U);let z=I1(U,s2($));return I1(z,{human_context:a2($)})}function Eq($){let Z=$.project?.type??"library",X=P0[Z]||P0.library;for(let U of f){if(X.includes(U.category))continue;let[z,Q]=U.path.split(".");if(z==="stack"&&$.stack)$.stack[Q]="slotignored";if(z==="monorepo"&&$.monorepo)$.monorepo[Q]="slotignored"}}function I1($,Z){let X={...$};for(let[U,z]of Object.entries(Z)){let Q=X[U];if(_0(Q))X[U]=z;else if(typeof z==="object"&&z!==null&&!Array.isArray(z)&&typeof Q==="object"&&Q!==null&&!Array.isArray(Q))X[U]=I1(Q,z)}return X}export{sJ as writeServerCard,uJ as writeProjectHtml,gZ as validateFaf,h0 as utcNow,s2 as turboCatSlots,a8 as turboCatScan,PZ as slotsByCategory,u8 as seedSixWsFromGoal,T1 as scoreFafYaml,OH as runLoop,e8 as relentlessContextDetailed,a2 as relentlessContext,cJ as registryName,dJ as registryMeta,O8 as readFafRaw,CJ as readFaf,m2 as questionForSlot,RH as publicQuestions,W1 as normalizeAnswer,m8 as loopVerdict,P1 as kernel,_0 as isPlaceholder,k8 as isHumanSlot,O1 as isEmptyValue,qH as interviewForMissing,MH as gradeAnswers,i0 as getTier,AZ as getNextTier,T8 as generateServerCard,R8 as generateProjectHtml,j8 as fromClaudeDir,W8 as findFafFile,f2 as fafContextBlock,X9 as enrichScore,DH as deriveQuestionSet,v8 as classifyGaps,I$ as canonicalPriority,BH as buildTableOf8,FH as buildReceipt,Sq as assembleFreshFaf,c8 as answersMatch,a as TIERS,h8 as STACK_INTERVIEW,l0 as SLOT_BY_PATH,f as SLOTS,v2 as SIX_WS_INTERVIEW,K8 as REGISTRY_PUBLISHER_KEY,G0 as PRIORITY_RANK,h2 as PRIORITY_ORDER,F$ as PLACEHOLDERS,V1 as KNOWLEDGE_TYPES,f8 as INTERVIEW_VERSION,HH as INTERVIEW_PATHS,x8 as INTERVIEW_BY_PATH,u0 as INTERVIEW,D0 as FafmSoul,c0 as FAF_HEX,KZ as ENTERPRISE_SLOTS,l2 as BENCH_VERSION,TZ as BASE_SLOTS,d8 as ALIAS_GROUPS};
220
+ `)}function Iq($){let X=Rq($).split(`
221
+ `),U=[];for(let z of X){let Q=z.trim();if(Q===""){if(U.length>0)break;continue}if(/^(#|>|```|---|\||\s*[-*+]\s|\d+\.\s)/.test(Q))break;if(/^\*\*[^*]+\*\*\s*$/.test(Q)&&U.length===0)continue;U.push(Q)}if(U.length===0)return null;return U.join(" ").trim()}function M0($,Z){let X=$.split(`
222
+ `),U=0;while(U<X.length){let Q=X[U].trim().match(/^(#{1,6})\s+(.+)$/);if(Q&&Z.test(Q[2])){let J=Q[1].length,H=[];U++;while(U<X.length){let q=X[U].trim(),_=q.match(/^(#{1,6})\s+/);if(_&&_[1].length<=J)break;if(q===""){if(H.length>0)break;U++;continue}if(/^(>|```|---|\||\s*[-*+]\s|\d+\.\s)/.test(q))break;H.push(q),U++}if(H.length===0)return null;return H.join(" ").trim()}U++}return null}function Dq($){let Z=M0($,/^(use\s+cases?|goal)\b/i);if(Z&&l(Z))return Z;let X=Iq($);if(X&&l(X))return X;return}function Fq($){let Z=M0($,/^(about|description|overview|what(\s+is\s+this)?)\b/i);if(Z&&l(Z))return Z;return}function Mq($){let Z=M0($,/^(audience|users?|for\s+whom|who(\s+is\s+this\s+for)?)\b/i);if(Z&&l(Z))return Z;return}function Pq($){let Z=M0($,/^(why|motivation|problem|rationale)\b/i);if(Z&&l(Z))return Z;return}function Tq($){let Z=M0($,/^(deployment|where(\s+it\s+runs)?|hosting)\b/i);if(Z&&l(Z))return Z;return}function Kq($){let Z=M0($,/^(status|history|timeline|since|launched)\b/i);if(Z&&l(Z))return Z;return}function Aq($){let Z=M0($,/^(architecture|how(\s+it\s+works)?|approach|design)\b/i);if(Z&&l(Z))return Z;return}function n2($){let Z=["README.md","README.MD","Readme.md","readme.md"],X=null;for(let O of Z){let L=Lq($,O);if(Oq(L)){X=L;break}}if(!X)return{};let U;try{U=Wq(X,"utf-8")}catch{return{}}let z={},Q=Dq(U);if(Q)z.project={goal:Q};let J={},H=Fq(U);if(H)J.what=H;let q=Mq(U);if(q)J.who=q;let _=Pq(U);if(_)J.why=_;let B=Tq(U);if(B)J.where=B;let G=Kq(U);if(G)J.when=G;let Y=Aq(U);if(Y)J.how=Y;if(Object.keys(J).length>0)z.human_context=J;return z}import{existsSync as Nq,readFileSync as wq}from"fs";import{join as bq}from"path";function Cq($,Z){let X=$.split(`
223
+ `),U=!1;for(let z of X){let Q=z.trim();if(/^\[/.test(Q)){U=Q==="[package]";continue}if(!U)continue;let J=Q.match(new RegExp(`^${Z}\\s*=\\s*(.+)$`));if(J){let H=J[1].trim();H=H.replace(/\s*#.*$/,"").trim();let q=H.match(/^"((?:[^"\\]|\\.)*)"$/)||H.match(/^'((?:[^'\\]|\\.)*)'$/);if(q)return q[1];return H}}return null}function o2($){let Z=bq($,"Cargo.toml");if(!Nq(Z))return{};let X;try{X=wq(Z,"utf-8")}catch{return{}}let U=Cq(X,"description");if(U&&l(U))return{project:{goal:U}};return{}}function jq($,Z){let X={project:{...Z.project??{},...$.project??{}},human_context:{...Z.human_context??{},...$.human_context??{}}};if(X.project&&Object.keys(X.project).length===0)delete X.project;if(X.human_context&&Object.keys(X.human_context).length===0)delete X.human_context;return X}function L6($){return jq(n2($),o2($))}function Sq($){let Z=O6($),X=L6($),U=R1(Z,X);Eq(U);let z=R1(U,s2($));return R1(z,{human_context:a2($)})}function Eq($){let Z=$.project?.type??"library",X=P0[Z]||P0.library;for(let U of f){if(X.includes(U.category))continue;let[z,Q]=U.path.split(".");if(z==="stack"&&$.stack)$.stack[Q]="slotignored";if(z==="monorepo"&&$.monorepo)$.monorepo[Q]="slotignored"}}function R1($,Z){let X={...$};for(let[U,z]of Object.entries(Z)){let Q=X[U];if(G0(Q))X[U]=z;else if(typeof z==="object"&&z!==null&&!Array.isArray(z)&&typeof Q==="object"&&Q!==null&&!Array.isArray(Q))X[U]=R1(Q,z)}return X}export{sJ as writeServerCard,uJ as writeProjectHtml,g6 as validateFaf,x0 as utcNow,s2 as turboCatSlots,a3 as turboCatScan,P6 as slotsByCategory,u3 as seedSixWsFromGoal,T1 as scoreFafYaml,OH as runLoop,e3 as relentlessContextDetailed,a2 as relentlessContext,cJ as registryName,dJ as registryMeta,O3 as readFafRaw,CJ as readFaf,m2 as questionForSlot,DH as publicQuestions,W1 as normalizeAnswer,m3 as loopVerdict,P1 as kernel,G0 as isPlaceholder,k3 as isHumanSlot,O1 as isEmptyValue,qH as interviewForMissing,FH as gradeAnswers,i0 as getTier,A6 as getNextTier,T3 as generateServerCard,D3 as generateProjectHtml,j3 as fromClaudeDir,W3 as findFafFile,f2 as fafContextBlock,X8 as enrichScore,IH as deriveQuestionSet,v3 as classifyGaps,R$ as canonicalPriority,BH as buildTableOf8,MH as buildReceipt,Sq as assembleFreshFaf,c3 as answersMatch,a as TIERS,x3 as STACK_INTERVIEW,l0 as SLOT_BY_PATH,f as SLOTS,v2 as SIX_WS_INTERVIEW,K3 as REGISTRY_PUBLISHER_KEY,_0 as PRIORITY_RANK,x2 as PRIORITY_ORDER,M$ as PLACEHOLDERS,V1 as KNOWLEDGE_TYPES,f3 as INTERVIEW_VERSION,HH as INTERVIEW_PATHS,h3 as INTERVIEW_BY_PATH,u0 as INTERVIEW,I0 as FafmSoul,c0 as FAF_HEX,K6 as ENTERPRISE_SLOTS,l2 as BENCH_VERSION,T6 as BASE_SLOTS,d3 as ALIAS_GROUPS};
224
224
 
225
- //# debugId=CAEDE5D14B7DD50C64756E2164756E21
225
+ //# debugId=063185567593FBAB64756E2164756E21
226
226
  //# sourceMappingURL=index.js.map