shaders 2.5.133 → 2.5.135

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/cli.js ADDED
@@ -0,0 +1,114 @@
1
+ #!/usr/bin/env node
2
+ /* shaders@2.5.135 CLI — npx shaders install-mcp. https://shaders.com */
3
+ import { createRequire as __cliCreateRequire } from "module";
4
+ const require = __cliCreateRequire(import.meta.url);
5
+ var Vi=Object.create;var sr=Object.defineProperty;var Yi=Object.getOwnPropertyDescriptor;var Gi=Object.getOwnPropertyNames;var Ki=Object.getPrototypeOf,qi=Object.prototype.hasOwnProperty;var Ji=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,i)=>(typeof require<"u"?require:t)[i]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var $=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var zi=(e,t,i,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of Gi(t))!qi.call(e,u)&&u!==i&&sr(e,u,{get:()=>t[u],enumerable:!(r=Yi(t,u))||r.enumerable});return e};var Se=(e,t,i)=>(i=e!=null?Vi(Ki(e)):{},zi(t||!e||!e.__esModule?sr(i,"default",{value:e,enumerable:!0}):i,e));var Dt=$((ka,or)=>{"use strict";var ht={to(e,t){return t?`\x1B[${t+1};${e+1}H`:`\x1B[${e+1}G`},move(e,t){let i="";return e<0?i+=`\x1B[${-e}D`:e>0&&(i+=`\x1B[${e}C`),t<0?i+=`\x1B[${-t}A`:t>0&&(i+=`\x1B[${t}B`),i},up:(e=1)=>`\x1B[${e}A`,down:(e=1)=>`\x1B[${e}B`,forward:(e=1)=>`\x1B[${e}C`,backward:(e=1)=>`\x1B[${e}D`,nextLine:(e=1)=>"\x1B[E".repeat(e),prevLine:(e=1)=>"\x1B[F".repeat(e),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},Qi={up:(e=1)=>"\x1B[S".repeat(e),down:(e=1)=>"\x1B[T".repeat(e)},Zi={screen:"\x1B[2J",up:(e=1)=>"\x1B[1J".repeat(e),down:(e=1)=>"\x1B[J".repeat(e),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(e){let t="";for(let i=0;i<e;i++)t+=this.line+(i<e-1?ht.up():"");return e&&(t+=ht.left),t}};or.exports={cursor:ht,scroll:Qi,erase:Zi,beep:"\x07"}});var cr=$(($a,ft)=>{var Oe=process||{},lr=Oe.argv||[],Be=Oe.env||{},Xi=!(Be.NO_COLOR||lr.includes("--no-color"))&&(!!Be.FORCE_COLOR||lr.includes("--color")||Oe.platform==="win32"||(Oe.stdout||{}).isTTY&&Be.TERM!=="dumb"||!!Be.CI),eu=(e,t,i=e)=>r=>{let u=""+r,s=u.indexOf(t,e.length);return~s?e+tu(u,t,i,s)+t:e+u+t},tu=(e,t,i,r)=>{let u="",s=0;do u+=e.substring(s,r)+i,s=r+t.length,r=e.indexOf(t,s);while(~r);return u+e.substring(s)},ar=(e=Xi)=>{let t=e?eu:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};ft.exports=ar();ft.exports.createColors=ar});var Wn=$((vc,Un)=>{"use strict";var re=class e extends Error{constructor(t,i,r){super("[ParserError] "+t,i,r),this.name="ParserError",this.code="ParserError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}},Ge=class{constructor(t){this.parser=t,this.buf="",this.returned=null,this.result=null,this.resultTable=null,this.resultArr=null}},ve=class{constructor(){this.pos=0,this.col=0,this.line=0,this.obj={},this.ctx=this.obj,this.stack=[],this._buf="",this.char=null,this.ii=0,this.state=new Ge(this.parseStart)}parse(t){if(t.length===0||t.length==null)return;this._buf=String(t),this.ii=-1,this.char=-1;let i;for(;i===!1||this.nextChar();)i=this.runOne();this._buf=null}nextChar(){return this.char===10&&(++this.line,this.col=-1),++this.ii,this.char=this._buf.codePointAt(this.ii),++this.pos,++this.col,this.haveBuffer()}haveBuffer(){return this.ii<this._buf.length}runOne(){return this.state.parser.call(this,this.state.returned)}finish(){this.char=1114112;let t;do t=this.state.parser,this.runOne();while(this.state.parser!==t);return this.ctx=null,this.state=null,this._buf=null,this.obj}next(t){if(typeof t!="function")throw new re("Tried to set state to non-existent state: "+JSON.stringify(t));this.state.parser=t}goto(t){return this.next(t),this.runOne()}call(t,i){i&&this.next(i),this.stack.push(this.state),this.state=new Ge(t)}callNow(t,i){return this.call(t,i),this.runOne()}return(t){if(this.stack.length===0)throw this.error(new re("Stack underflow"));t===void 0&&(t=this.state.buf),this.state=this.stack.pop(),this.state.returned=t}returnNow(t){return this.return(t),this.runOne()}consume(){if(this.char===1114112)throw this.error(new re("Unexpected end-of-buffer"));this.state.buf+=this._buf[this.ii]}error(t){return t.line=this.line,t.col=this.col,t.pos=this.pos,t}parseStart(){throw new re("Must declare a parseStart method")}};ve.END=1114112;ve.Error=re;Un.exports=ve});var Yn=$((wc,Vn)=>{"use strict";Vn.exports=e=>{let t=new Date(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var Ke=$((_c,Gn)=>{"use strict";Gn.exports=(e,t)=>{for(t=String(t);t.length<e;)t="0"+t;return t}});var qn=$((Tc,Kn)=>{"use strict";var De=Ke(),jt=class extends Date{constructor(t){super(t+"Z"),this.isFloating=!0}toISOString(){let t=`${this.getUTCFullYear()}-${De(2,this.getUTCMonth()+1)}-${De(2,this.getUTCDate())}`,i=`${De(2,this.getUTCHours())}:${De(2,this.getUTCMinutes())}:${De(2,this.getUTCSeconds())}.${De(3,this.getUTCMilliseconds())}`;return`${t}T${i}`}};Kn.exports=e=>{let t=new jt(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var Qn=$((Sc,zn)=>{"use strict";var Jn=Ke(),cl=global.Date,Ut=class extends cl{constructor(t){super(t),this.isDate=!0}toISOString(){return`${this.getUTCFullYear()}-${Jn(2,this.getUTCMonth()+1)}-${Jn(2,this.getUTCDate())}`}};zn.exports=e=>{let t=new Ut(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var Xn=$((Bc,Zn)=>{"use strict";var qe=Ke(),Wt=class extends Date{constructor(t){super(`0000-01-01T${t}Z`),this.isTime=!0}toISOString(){return`${qe(2,this.getUTCHours())}:${qe(2,this.getUTCMinutes())}:${qe(2,this.getUTCSeconds())}.${qe(3,this.getUTCMilliseconds())}`}};Zn.exports=e=>{let t=new Wt(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var Je=$((exports,module)=>{"use strict";module.exports=makeParserClass(Wn());module.exports.makeParserClass=makeParserClass;var TomlError=class e extends Error{constructor(t){super(t),this.name="TomlError",Error.captureStackTrace&&Error.captureStackTrace(this,e),this.fromTOML=!0,this.wrapped=null}};TomlError.wrap=e=>{let t=new TomlError(e.message);return t.code=e.code,t.wrapped=e,t};module.exports.TomlError=TomlError;var createDateTime=Yn(),createDateTimeFloat=qn(),createDate=Qn(),createTime=Xn(),CTRL_I=9,CTRL_J=10,CTRL_M=13,CTRL_CHAR_BOUNDARY=31,CHAR_SP=32,CHAR_QUOT=34,CHAR_NUM=35,CHAR_APOS=39,CHAR_PLUS=43,CHAR_COMMA=44,CHAR_HYPHEN=45,CHAR_PERIOD=46,CHAR_0=48,CHAR_1=49,CHAR_7=55,CHAR_9=57,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_A=65,CHAR_E=69,CHAR_F=70,CHAR_T=84,CHAR_U=85,CHAR_Z=90,CHAR_LOWBAR=95,CHAR_a=97,CHAR_b=98,CHAR_e=101,CHAR_f=102,CHAR_i=105,CHAR_l=108,CHAR_n=110,CHAR_o=111,CHAR_r=114,CHAR_s=115,CHAR_t=116,CHAR_u=117,CHAR_x=120,CHAR_z=122,CHAR_LCUB=123,CHAR_RCUB=125,CHAR_LSQB=91,CHAR_BSOL=92,CHAR_RSQB=93,CHAR_DEL=127,SURROGATE_FIRST=55296,SURROGATE_LAST=57343,escapes={[CHAR_b]:"\b",[CHAR_t]:" ",[CHAR_n]:`
6
+ `,[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(e){return e>=CHAR_0&&e<=CHAR_9}function isHexit(e){return e>=CHAR_A&&e<=CHAR_F||e>=CHAR_a&&e<=CHAR_f||e>=CHAR_0&&e<=CHAR_9}function isBit(e){return e===CHAR_1||e===CHAR_0}function isOctit(e){return e>=CHAR_0&&e<=CHAR_7}function isAlphaNumQuoteHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_APOS||e===CHAR_QUOT||e===CHAR_LOWBAR||e===CHAR_HYPHEN}function isAlphaNumHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_LOWBAR||e===CHAR_HYPHEN}var _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(e,t){return hasOwnProperty.call(e,t)?!0:(t==="__proto__"&&defineProperty(e,"__proto__",descriptor),!1)}var INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}function isInlineTable(e){return e===null||typeof e!="object"?!1:e[_type]===INLINE_TABLE}var TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}function isTable(e){return e===null||typeof e!="object"?!1:e[_type]===TABLE}var _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(e){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:e}})}function isInlineList(e){return e===null||typeof e!="object"?!1:e[_type]===INLINE_LIST}var LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}function isList(e){return e===null||typeof e!="object"?!1:e[_type]===LIST}var _custom;try{let utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(e){}var _inspect=_custom||"inspect",BoxedBigInt=class{constructor(t){try{this.value=global.BigInt.asIntN(64,t)}catch{this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return this.value===null}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}},INTEGER=Symbol("integer");function Integer(e){let t=Number(e);return Object.is(t,-0)&&(t=0),global.BigInt&&!Number.isSafeInteger(t)?new BoxedBigInt(e):Object.defineProperties(new Number(t),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${e}]`}})}function isInteger(e){return e===null||typeof e!="object"?!1:e[_type]===INTEGER}var FLOAT=Symbol("float");function Float(e){return Object.defineProperties(new Number(e),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${e}]`}})}function isFloat(e){return e===null||typeof e!="object"?!1:e[_type]===FLOAT}function tomlType(e){let t=typeof e;if(t==="object"){if(e===null)return"null";if(e instanceof Date)return"datetime";if(_type in e)switch(e[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return t}function makeParserClass(e){class t extends e{constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===e.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===e.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===e.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(r){let u=this.ctx,s=r.key.pop();for(let n of r.key){if(hasKey(u,n)&&(!isTable(u[n])||u[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));u=u[n]=u[n]||Table()}if(hasKey(u,s))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(r.value)||isFloat(r.value)?u[s]=r.value.valueOf():u[s]=r.value,this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(r){return this.state.resultTable?this.state.resultTable.push(r):this.state.resultTable=[r],this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){if(this.char===CHAR_PERIOD)return this.next(this.parseAssignKeywordPostDot);if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.goto(this.parseAssignEqual)}parseAssignKeywordPostDot(){if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.callNow(this.parseKeyword,this.recordAssignKeyword)}parseAssignEqual(){if(this.char===CHAR_EQUALS)return this.next(this.parseAssignPreValue);throw this.error(new TomlError('Invalid character, expected "="'))}parseAssignPreValue(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseValue,this.recordAssignValue)}recordAssignValue(r){return this.returnNow({key:this.state.resultTable,value:r})}parseComment(){do if(this.char===e.END||this.char===CTRL_J)return this.return();while(this.nextChar())}parseTableOrList(){if(this.char===CHAR_LSQB)this.next(this.parseList);else return this.goto(this.parseTable)}parseTable(){return this.ctx=this.obj,this.goto(this.parseTableNext)}parseTableNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseTableMore)}parseTableMore(r){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,r)&&(!isTable(this.ctx[r])||this.ctx[r][_declared]))throw this.error(new TomlError("Can't redefine existing key"));return this.ctx=this.ctx[r]=this.ctx[r]||Table(),this.ctx[_declared]=!0,this.next(this.parseWhitespaceToEOL)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,r))this.ctx=this.ctx[r]=Table();else if(isTable(this.ctx[r]))this.ctx=this.ctx[r];else if(isList(this.ctx[r]))this.ctx=this.ctx[r][this.ctx[r].length-1];else throw this.error(new TomlError("Can't redefine existing key"));return this.next(this.parseTableNext)}else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseList(){return this.ctx=this.obj,this.goto(this.parseListNext)}parseListNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseListMore)}parseListMore(r){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,r)||(this.ctx[r]=List()),isInlineList(this.ctx[r]))throw this.error(new TomlError("Can't extend an inline array"));if(isList(this.ctx[r])){let u=Table();this.ctx[r].push(u),this.ctx=u}else throw this.error(new TomlError("Can't redefine an existing key"));return this.next(this.parseListEnd)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,r))this.ctx=this.ctx[r]=Table();else{if(isInlineList(this.ctx[r]))throw this.error(new TomlError("Can't extend an inline array"));if(isInlineTable(this.ctx[r]))throw this.error(new TomlError("Can't extend an inline table"));if(isList(this.ctx[r]))this.ctx=this.ctx[r][this.ctx[r].length-1];else if(isTable(this.ctx[r]))this.ctx=this.ctx[r];else throw this.error(new TomlError("Can't redefine an existing key"))}return this.next(this.parseListNext)}else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseListEnd(r){if(this.char===CHAR_RSQB)return this.next(this.parseWhitespaceToEOL);throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseValue(){if(this.char===e.END)throw this.error(new TomlError("Key without value"));if(this.char===CHAR_QUOT)return this.next(this.parseDoubleString);if(this.char===CHAR_APOS)return this.next(this.parseSingleString);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)return this.goto(this.parseNumberSign);if(this.char===CHAR_i)return this.next(this.parseInf);if(this.char===CHAR_n)return this.next(this.parseNan);if(isDigit(this.char))return this.goto(this.parseNumberOrDateTime);if(this.char===CHAR_t||this.char===CHAR_f)return this.goto(this.parseBoolean);if(this.char===CHAR_LSQB)return this.call(this.parseInlineList,this.recordValue);if(this.char===CHAR_LCUB)return this.call(this.parseInlineTable,this.recordValue);throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"))}recordValue(r){return this.returnNow(r)}parseInf(){if(this.char===CHAR_n)return this.next(this.parseInf2);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseInf2(){if(this.char===CHAR_f)return this.state.buf==="-"?this.return(-1/0):this.return(1/0);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseNan(){if(this.char===CHAR_a)return this.next(this.parseNan2);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseNan2(){if(this.char===CHAR_n)return this.return(NaN);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseKeyword(){return this.char===CHAR_QUOT?this.next(this.parseBasicString):this.char===CHAR_APOS?this.next(this.parseLiteralString):this.goto(this.parseBareKey)}parseBareKey(){do{if(this.char===e.END)throw this.error(new TomlError("Key ended without value"));if(isAlphaNumHyphen(this.char))this.consume();else{if(this.state.buf.length===0)throw this.error(new TomlError("Empty bare keys are not allowed"));return this.returnNow()}}while(this.nextChar())}parseSingleString(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiStringMaybe):this.goto(this.parseLiteralString)}parseLiteralString(){do{if(this.char===CHAR_APOS)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiStringMaybe(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiString):this.returnNow()}parseLiteralMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseLiteralMultiStringContent):this.goto(this.parseLiteralMultiStringContent)}parseLiteralMultiStringContent(){do{if(this.char===CHAR_APOS)return this.next(this.parseLiteralMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiEnd(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiEnd2):(this.state.buf+="'",this.goto(this.parseLiteralMultiStringContent))}parseLiteralMultiEnd2(){return this.char===CHAR_APOS?this.return():(this.state.buf+="''",this.goto(this.parseLiteralMultiStringContent))}parseDoubleString(){return this.char===CHAR_QUOT?this.next(this.parseMultiStringMaybe):this.goto(this.parseBasicString)}parseBasicString(){do{if(this.char===CHAR_BSOL)return this.call(this.parseEscape,this.recordEscapeReplacement);if(this.char===CHAR_QUOT)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}recordEscapeReplacement(r){return this.state.buf+=r,this.goto(this.parseBasicString)}parseMultiStringMaybe(){return this.char===CHAR_QUOT?this.next(this.parseMultiString):this.returnNow()}parseMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseMultiStringContent):this.goto(this.parseMultiStringContent)}parseMultiStringContent(){do{if(this.char===CHAR_BSOL)return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement);if(this.char===CHAR_QUOT)return this.next(this.parseMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}errorControlCharInString(){let r="\\u00";return this.char<16&&(r+="0"),r+=this.char.toString(16),this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${r} instead`))}recordMultiEscapeReplacement(r){return this.state.buf+=r,this.goto(this.parseMultiStringContent)}parseMultiEnd(){return this.char===CHAR_QUOT?this.next(this.parseMultiEnd2):(this.state.buf+='"',this.goto(this.parseMultiStringContent))}parseMultiEnd2(){return this.char===CHAR_QUOT?this.return():(this.state.buf+='""',this.goto(this.parseMultiStringContent))}parseMultiEscape(){return this.char===CTRL_M||this.char===CTRL_J?this.next(this.parseMultiTrim):this.char===CHAR_SP||this.char===CTRL_I?this.next(this.parsePreMultiTrim):this.goto(this.parseEscape)}parsePreMultiTrim(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CTRL_M||this.char===CTRL_J)return this.next(this.parseMultiTrim);throw this.error(new TomlError("Can't escape whitespace"))}parseMultiTrim(){return this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M?null:this.returnNow()}parseEscape(){if(this.char in escapes)return this.return(escapes[this.char]);if(this.char===CHAR_u)return this.call(this.parseSmallUnicode,this.parseUnicodeReturn);if(this.char===CHAR_U)return this.call(this.parseLargeUnicode,this.parseUnicodeReturn);throw this.error(new TomlError("Unknown escape character: "+this.char))}parseUnicodeReturn(r){try{let u=parseInt(r,16);if(u>=SURROGATE_FIRST&&u<=SURROGATE_LAST)throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"));return this.returnNow(String.fromCodePoint(u))}catch(u){throw this.error(TomlError.wrap(u))}}parseSmallUnicode(){if(isHexit(this.char)){if(this.consume(),this.state.buf.length>=4)return this.return()}else throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}parseLargeUnicode(){if(isHexit(this.char)){if(this.consume(),this.state.buf.length>=8)return this.return()}else throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}parseNumberSign(){return this.consume(),this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){return this.char===CHAR_i?this.next(this.parseInf):this.char===CHAR_n?this.next(this.parseNan):this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}parseNumberIntegerStart(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberIntegerExponentOrDecimal)):this.goto(this.parseNumberInteger)}parseNumberIntegerExponentOrDecimal(){return this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Integer(this.state.buf))}parseNumberInteger(){if(isDigit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder);if(this.char===CHAR_E||this.char===CHAR_e)return this.consume(),this.next(this.parseNumberExponentSign);if(this.char===CHAR_PERIOD)return this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat);{let r=Integer(this.state.buf);if(r.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(r)}}}parseNoUnder(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD||this.char===CHAR_E||this.char===CHAR_e)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNumberFloat(){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder,this.parseNumberFloat);if(isDigit(this.char))this.consume();else return this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Float(this.state.buf))}parseNumberExponentSign(){if(isDigit(this.char))return this.goto(this.parseNumberExponent);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.call(this.parseNoUnder,this.parseNumberExponent);else throw this.error(new TomlError("Unexpected character, expected -, + or digit"))}parseNumberExponent(){if(isDigit(this.char))this.consume();else return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder):this.returnNow(Float(this.state.buf))}parseNumberOrDateTime(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberBaseOrDateTime)):this.goto(this.parseNumberOrDateTimeOnly)}parseNumberOrDateTimeOnly(){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder,this.parseNumberInteger);if(isDigit(this.char))this.consume(),this.state.buf.length>4&&this.next(this.parseNumberInteger);else return this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_HYPHEN?this.goto(this.parseDateTime):this.char===CHAR_COLON?this.goto(this.parseOnlyTimeHour):this.returnNow(Integer(this.state.buf))}parseDateTimeOnly(){if(this.state.buf.length<4){if(isDigit(this.char))return this.consume();if(this.char===CHAR_COLON)return this.goto(this.parseOnlyTimeHour);throw this.error(new TomlError("Expected digit while parsing year part of a date"))}else{if(this.char===CHAR_HYPHEN)return this.goto(this.parseDateTime);throw this.error(new TomlError("Expected hyphen (-) while parsing year part of date"))}}parseNumberBaseOrDateTime(){return this.char===CHAR_b?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin)):this.char===CHAR_o?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct)):this.char===CHAR_x?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex)):this.char===CHAR_PERIOD?this.goto(this.parseNumberInteger):isDigit(this.char)?this.goto(this.parseDateTimeOnly):this.returnNow(Integer(this.state.buf))}parseIntegerHex(){if(isHexit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let r=Integer(this.state.buf);if(r.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(r)}}}parseIntegerOct(){if(isOctit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let r=Integer(this.state.buf);if(r.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(r)}}}parseIntegerBin(){if(isBit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let r=Integer(this.state.buf);if(r.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(r)}}}parseDateTime(){if(this.state.buf.length<4)throw this.error(new TomlError("Years less than 1000 must be zero padded to four characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===CHAR_HYPHEN){if(this.state.buf.length<2)throw this.error(new TomlError("Months less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseDateDay)}else if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}parseDateDay(){if(this.char===CHAR_T||this.char===CHAR_SP){if(this.state.buf.length<2)throw this.error(new TomlError("Days less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseStartTimeHour)}else{if(this.atEndOfWord())return this.returnNow(createDate(this.state.result+"-"+this.state.buf));if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}}parseStartTimeHour(){return this.atEndOfWord()?this.returnNow(createDate(this.state.result)):this.goto(this.parseTimeHour)}parseTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result+="T"+this.state.buf,this.state.buf="",this.next(this.parseTimeMin)}else if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}parseTimeMin(){if(this.state.buf.length<2&&isDigit(this.char))this.consume();else{if(this.state.buf.length===2&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeSec);throw this.error(new TomlError("Incomplete datetime"))}}parseTimeSec(){if(isDigit(this.char)){if(this.consume(),this.state.buf.length===2)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeZoneOrFraction)}else throw this.error(new TomlError("Incomplete datetime"))}parseOnlyTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeMin)}else throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeMin(){if(this.state.buf.length<2&&isDigit(this.char))this.consume();else{if(this.state.buf.length===2&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeSec);throw this.error(new TomlError("Incomplete time"))}}parseOnlyTimeSec(){if(isDigit(this.char)){if(this.consume(),this.state.buf.length===2)return this.next(this.parseOnlyTimeFractionMaybe)}else throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeFractionMaybe(){if(this.state.result+=":"+this.state.buf,this.char===CHAR_PERIOD)this.state.buf="",this.next(this.parseOnlyTimeFraction);else return this.return(createTime(this.state.result))}parseOnlyTimeFraction(){if(isDigit(this.char))this.consume();else if(this.atEndOfWord()){if(this.state.buf.length===0)throw this.error(new TomlError("Expected digit in milliseconds"));return this.returnNow(createTime(this.state.result+"."+this.state.buf))}else throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}parseTimeZoneOrFraction(){if(this.char===CHAR_PERIOD)this.consume(),this.next(this.parseDateTimeFraction);else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.next(this.parseTimeZoneHour);else{if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}parseDateTimeFraction(){if(isDigit(this.char))this.consume();else{if(this.state.buf.length===1)throw this.error(new TomlError("Expected digit in milliseconds"));if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.next(this.parseTimeZoneHour);else{if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}}parseTimeZoneHour(){if(isDigit(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}else throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}parseTimeZoneSep(){if(this.char===CHAR_COLON)this.consume(),this.next(this.parseTimeZoneMin);else throw this.error(new TomlError("Unexpected character in datetime, expected colon"))}parseTimeZoneMin(){if(isDigit(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.return(createDateTime(this.state.result+this.state.buf))}else throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}parseBoolean(){if(this.char===CHAR_t)return this.consume(),this.next(this.parseTrue_r);if(this.char===CHAR_f)return this.consume(),this.next(this.parseFalse_a)}parseTrue_r(){if(this.char===CHAR_r)return this.consume(),this.next(this.parseTrue_u);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_u(){if(this.char===CHAR_u)return this.consume(),this.next(this.parseTrue_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_e(){if(this.char===CHAR_e)return this.return(!0);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_a(){if(this.char===CHAR_a)return this.consume(),this.next(this.parseFalse_l);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_l(){if(this.char===CHAR_l)return this.consume(),this.next(this.parseFalse_s);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_s(){if(this.char===CHAR_s)return this.consume(),this.next(this.parseFalse_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_e(){if(this.char===CHAR_e)return this.return(!1);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseInlineList(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===e.END)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_NUM?this.call(this.parseComment):this.char===CHAR_RSQB?this.return(this.state.resultArr||InlineList()):this.callNow(this.parseValue,this.recordInlineListValue)}recordInlineListValue(r){if(this.state.resultArr){let u=this.state.resultArr[_contentType],s=tomlType(r);if(u!==s)throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${u} and ${s}`))}else this.state.resultArr=InlineList(tomlType(r));return isFloat(r)||isInteger(r)?this.state.resultArr.push(r.valueOf()):this.state.resultArr.push(r),this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CHAR_COMMA)return this.next(this.parseInlineList);if(this.char===CHAR_RSQB)return this.goto(this.parseInlineList);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}parseInlineTable(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_RCUB?this.return(this.state.resultTable||InlineTable()):(this.state.resultTable||(this.state.resultTable=InlineTable()),this.callNow(this.parseAssign,this.recordInlineTableValue))}recordInlineTableValue(r){let u=this.state.resultTable,s=r.key.pop();for(let n of r.key){if(hasKey(u,n)&&(!isTable(u[n])||u[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));u=u[n]=u[n]||Table()}if(hasKey(u,s))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(r.value)||isFloat(r.value)?u[s]=r.value.valueOf():u[s]=r.value,this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));if(this.char===CHAR_COMMA)return this.next(this.parseInlineTable);if(this.char===CHAR_RCUB)return this.goto(this.parseInlineTable);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}return t}});var ze=$((Oc,ei)=>{"use strict";ei.exports=hl;function hl(e,t){if(e.pos==null||e.line==null)return e;let i=e.message;if(i+=` at row ${e.line+1}, col ${e.col+1}, pos ${e.pos}:
7
+ `,t&&t.split){let r=t.split(/\n/),u=String(Math.min(r.length,e.line+3)).length,s=" ";for(;s.length<u;)s+=" ";for(let n=Math.max(0,e.line-1);n<Math.min(r.length,e.line+2);++n){let o=String(n+1);if(o.length<u&&(o=" "+o),e.line===n){i+=o+"> "+r[n]+`
8
+ `,i+=s+" ";for(let l=0;l<e.col;++l)i+=" ";i+=`^
9
+ `}else i+=o+": "+r[n]+`
10
+ `}}return e.message=i+`
11
+ `,e}});var ri=$((Rc,ti)=>{"use strict";ti.exports=pl;var Dl=Je(),fl=ze();function pl(e){global.Buffer&&global.Buffer.isBuffer(e)&&(e=e.toString("utf8"));let t=new Dl;try{return t.parse(e),t.finish()}catch(i){throw fl(i,e)}}});var ui=$((Ic,ii)=>{"use strict";ii.exports=ml;var dl=Je(),ni=ze();function ml(e,t){t||(t={});let i=0,r=t.blocksize||40960,u=new dl;return new Promise((n,o)=>{setImmediate(s,i,r,n,o)});function s(n,o,l,a){if(n>=e.length)try{return l(u.finish())}catch(h){return a(ni(h,e))}try{u.parse(e.slice(n,n+o)),setImmediate(s,n+o,o,l,a)}catch(h){a(ni(h,e))}}}});var li=$((Lc,oi)=>{"use strict";oi.exports=Cl;var gl=Ji("stream"),si=Je();function Cl(e){return e?Fl(e):El(e)}function Fl(e){let t=new si;return e.setEncoding("utf8"),new Promise((i,r)=>{let u,s=!1,n=!1;function o(){if(s=!0,!u)try{i(t.finish())}catch(h){r(h)}}function l(h){n=!0,r(h)}e.once("end",o),e.once("error",l),a();function a(){u=!0;let h;for(;(h=e.read())!==null;)try{t.parse(h)}catch(c){return l(c)}if(u=!1,s)return o();n||e.once("readable",a)}})}function El(){let e=new si;return new gl.Transform({objectMode:!0,transform(t,i,r){try{e.parse(t.toString(i))}catch(u){this.emit("error",u)}r()},flush(t){try{this.push(e.finish())}catch(i){this.emit("error",i)}t()}})}});var ai=$((Nc,we)=>{"use strict";we.exports=ri();we.exports.async=ui();we.exports.stream=li();we.exports.prettyError=ze()});var gi=$((kc,Gt)=>{"use strict";Gt.exports=Al;Gt.exports.value=Yt;function Al(e){if(e===null)throw ne("null");if(e===void 0)throw ne("undefined");if(typeof e!="object")throw ne(typeof e);if(typeof e.toJSON=="function"&&(e=e.toJSON()),e==null)return null;let t=j(e);if(t!=="table")throw ne(t);return Vt("","",e)}function ne(e){return new Error("Can only stringify objects, not "+e)}function yl(){return new Error("Array values can't have mixed types")}function ci(e){return Object.keys(e).filter(t=>hi(e[t]))}function bl(e){return Object.keys(e).filter(t=>!hi(e[t]))}function Qe(e){let t=Array.isArray(e)?[]:Object.prototype.hasOwnProperty.call(e,"__proto__")?{["__proto__"]:void 0}:{};for(let i of Object.keys(e))e[i]&&typeof e[i].toJSON=="function"&&!("toISOString"in e[i])?t[i]=e[i].toJSON():t[i]=e[i];return t}function Vt(e,t,i){i=Qe(i);var r,u;r=ci(i),u=bl(i);var s=[],n=t||"";r.forEach(l=>{var a=j(i[l]);a!=="undefined"&&a!=="null"&&s.push(n+Ze(l)+" = "+pi(i[l],!0))}),s.length>0&&s.push("");var o=e&&r.length>0?t+" ":"";return u.forEach(l=>{s.push(Ll(e,o,l,i[l]))}),s.join(`
12
+ `)}function hi(e){switch(j(e)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return!0;case"array":return e.length===0||j(e[0])!=="table";case"table":return Object.keys(e).length===0;default:return!1}}function j(e){return e===void 0?"undefined":e===null?"null":typeof e=="bigint"||Number.isInteger(e)&&!Object.is(e,-0)?"integer":typeof e=="number"?"float":typeof e=="boolean"?"boolean":typeof e=="string"?"string":"toISOString"in e?isNaN(e)?"undefined":"datetime":Array.isArray(e)?"array":"table"}function Ze(e){var t=String(e);return/^[-A-Za-z0-9_]+$/.test(t)?t:Di(t)}function Di(e){return'"'+fi(e).replace(/"/g,'\\"')+'"'}function xl(e){return"'"+e+"'"}function vl(e,t){for(;t.length<e;)t="0"+t;return t}function fi(e){return e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/([\u0000-\u001f\u007f])/,t=>"\\u"+vl(4,t.codePointAt(0).toString(16)))}function wl(e){let t=e.split(/\n/).map(i=>fi(i).replace(/"(?="")/g,'\\"')).join(`
13
+ `);return t.slice(-1)==='"'&&(t+=`\\
14
+ `),`"""
15
+ `+t+'"""'}function pi(e,t){let i=j(e);return i==="string"&&(t&&/\n/.test(e)?i="string-multiline":!/[\b\t\n\f\r']/.test(e)&&/"/.test(e)&&(i="string-literal")),Yt(e,i)}function Yt(e,t){switch(t||(t=j(e)),t){case"string-multiline":return wl(e);case"string":return Di(e);case"string-literal":return xl(e);case"integer":return di(e);case"float":return _l(e);case"boolean":return Tl(e);case"datetime":return Sl(e);case"array":return Rl(e.filter(i=>j(i)!=="null"&&j(i)!=="undefined"&&j(i)!=="nan"));case"table":return Il(e);default:throw ne(t)}}function di(e){return String(e).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}function _l(e){if(e===1/0)return"inf";if(e===-1/0)return"-inf";if(Object.is(e,NaN))return"nan";if(Object.is(e,-0))return"-0.0";var t=String(e).split("."),i=t[0],r=t[1]||0;return di(i)+"."+r}function Tl(e){return String(e)}function Sl(e){return e.toISOString()}function Bl(e){return e==="float"||e==="integer"}function Ol(e){var t=j(e[0]);return e.every(i=>j(i)===t)?t:e.every(i=>Bl(j(i)))?"float":"mixed"}function mi(e){let t=Ol(e);if(t==="mixed")throw yl();return t}function Rl(e){e=Qe(e);let t=mi(e);var i="[",r=e.map(u=>Yt(u,t));return r.join(", ").length>60||/\n/.test(r)?i+=`
16
+ `+r.join(`,
17
+ `)+`
18
+ `:i+=" "+r.join(", ")+(r.length>0?" ":""),i+"]"}function Il(e){e=Qe(e);var t=[];return Object.keys(e).forEach(i=>{t.push(Ze(i)+" = "+pi(e[i],!1))}),"{ "+t.join(", ")+(t.length>0?" ":"")+"}"}function Ll(e,t,i,r){var u=j(r);if(u==="array")return Nl(e,t,i,r);if(u==="table")return kl(e,t,i,r);throw ne(u)}function Nl(e,t,i,r){r=Qe(r),mi(r);var u=j(r[0]);if(u!=="table")throw ne(u);var s=e+Ze(i),n="";return r.forEach(o=>{n.length>0&&(n+=`
19
+ `),n+=t+"[["+s+`]]
20
+ `,n+=Vt(s+".",t,o)}),n}function kl(e,t,i,r){var u=e+Ze(i),s="";return ci(r).length>0&&(s+=t+"["+u+`]
21
+ `),s+Vt(u+".",t,r)}});var Ci=$(Kt=>{"use strict";Kt.parse=ai();Kt.stringify=gi()});var V=Se(Dt(),1);import{stdin as ru,stdout as nu}from"node:process";import hr from"node:readline";import{WriteStream as iu}from"node:tty";function uu({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}var su=uu();function Fr(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(su,"")}function Er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ar={exports:{}};(function(e){var t={};e.exports=t,t.eastAsianWidth=function(r){var u=r.charCodeAt(0),s=r.length==2?r.charCodeAt(1):0,n=u;return 55296<=u&&u<=56319&&56320<=s&&s<=57343&&(u&=1023,s&=1023,n=u<<10|s,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":n==8361||65377<=n&&n<=65470||65474<=n&&n<=65479||65482<=n&&n<=65487||65490<=n&&n<=65495||65498<=n&&n<=65500||65512<=n&&n<=65518?"H":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":32<=n&&n<=126||162<=n&&n<=163||165<=n&&n<=166||n==172||n==175||10214<=n&&n<=10221||10629<=n&&n<=10630?"Na":n==161||n==164||167<=n&&n<=168||n==170||173<=n&&n<=174||176<=n&&n<=180||182<=n&&n<=186||188<=n&&n<=191||n==198||n==208||215<=n&&n<=216||222<=n&&n<=225||n==230||232<=n&&n<=234||236<=n&&n<=237||n==240||242<=n&&n<=243||247<=n&&n<=250||n==252||n==254||n==257||n==273||n==275||n==283||294<=n&&n<=295||n==299||305<=n&&n<=307||n==312||319<=n&&n<=322||n==324||328<=n&&n<=331||n==333||338<=n&&n<=339||358<=n&&n<=359||n==363||n==462||n==464||n==466||n==468||n==470||n==472||n==474||n==476||n==593||n==609||n==708||n==711||713<=n&&n<=715||n==717||n==720||728<=n&&n<=731||n==733||n==735||768<=n&&n<=879||913<=n&&n<=929||931<=n&&n<=937||945<=n&&n<=961||963<=n&&n<=969||n==1025||1040<=n&&n<=1103||n==1105||n==8208||8211<=n&&n<=8214||8216<=n&&n<=8217||8220<=n&&n<=8221||8224<=n&&n<=8226||8228<=n&&n<=8231||n==8240||8242<=n&&n<=8243||n==8245||n==8251||n==8254||n==8308||n==8319||8321<=n&&n<=8324||n==8364||n==8451||n==8453||n==8457||n==8467||n==8470||8481<=n&&n<=8482||n==8486||n==8491||8531<=n&&n<=8532||8539<=n&&n<=8542||8544<=n&&n<=8555||8560<=n&&n<=8569||n==8585||8592<=n&&n<=8601||8632<=n&&n<=8633||n==8658||n==8660||n==8679||n==8704||8706<=n&&n<=8707||8711<=n&&n<=8712||n==8715||n==8719||n==8721||n==8725||n==8730||8733<=n&&n<=8736||n==8739||n==8741||8743<=n&&n<=8748||n==8750||8756<=n&&n<=8759||8764<=n&&n<=8765||n==8776||n==8780||n==8786||8800<=n&&n<=8801||8804<=n&&n<=8807||8810<=n&&n<=8811||8814<=n&&n<=8815||8834<=n&&n<=8835||8838<=n&&n<=8839||n==8853||n==8857||n==8869||n==8895||n==8978||9312<=n&&n<=9449||9451<=n&&n<=9547||9552<=n&&n<=9587||9600<=n&&n<=9615||9618<=n&&n<=9621||9632<=n&&n<=9633||9635<=n&&n<=9641||9650<=n&&n<=9651||9654<=n&&n<=9655||9660<=n&&n<=9661||9664<=n&&n<=9665||9670<=n&&n<=9672||n==9675||9678<=n&&n<=9681||9698<=n&&n<=9701||n==9711||9733<=n&&n<=9734||n==9737||9742<=n&&n<=9743||9748<=n&&n<=9749||n==9756||n==9758||n==9792||n==9794||9824<=n&&n<=9825||9827<=n&&n<=9829||9831<=n&&n<=9834||9836<=n&&n<=9837||n==9839||9886<=n&&n<=9887||9918<=n&&n<=9919||9924<=n&&n<=9933||9935<=n&&n<=9953||n==9955||9960<=n&&n<=9983||n==10045||n==10071||10102<=n&&n<=10111||11093<=n&&n<=11097||12872<=n&&n<=12879||57344<=n&&n<=63743||65024<=n&&n<=65039||n==65533||127232<=n&&n<=127242||127248<=n&&n<=127277||127280<=n&&n<=127337||127344<=n&&n<=127386||917760<=n&&n<=917999||983040<=n&&n<=1048573||1048576<=n&&n<=1114109?"A":"N"},t.characterLength=function(r){var u=this.eastAsianWidth(r);return u=="F"||u=="W"||u=="A"?2:1};function i(r){return r.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}t.length=function(r){for(var u=i(r),s=0,n=0;n<u.length;n++)s=s+this.characterLength(u[n]);return s},t.slice=function(r,u,s){textLen=t.length(r),u=u||0,s=s||1,u<0&&(u=textLen+u),s<0&&(s=textLen+s);for(var n="",o=0,l=i(r),a=0;a<l.length;a++){var h=l[a],c=t.length(h);if(o>=u-(c==2?1:0))if(o+c<=s)n+=h;else break;o+=c}return n}})(Ar);var ou=Ar.exports,lu=Er(ou),au=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},cu=Er(au);function pe(e,t={}){if(typeof e!="string"||e.length===0||(t={ambiguousIsNarrow:!0,...t},e=Fr(e),e.length===0))return 0;e=e.replace(cu()," ");let i=t.ambiguousIsNarrow?1:2,r=0;for(let u of e){let s=u.codePointAt(0);if(!(s<=31||s>=127&&s<=159||s>=768&&s<=879))switch(lu.eastAsianWidth(u)){case"F":case"W":r+=2;break;case"A":r+=i;break;default:r+=1}}return r}var pt=10,Dr=(e=0)=>t=>`\x1B[${t+e}m`,fr=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,pr=(e=0)=>(t,i,r)=>`\x1B[${38+e};2;${t};${i};${r}m`,_={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(_.modifier);var hu=Object.keys(_.color),Du=Object.keys(_.bgColor);[...hu,...Du];function fu(){let e=new Map;for(let[t,i]of Object.entries(_)){for(let[r,u]of Object.entries(i))_[r]={open:`\x1B[${u[0]}m`,close:`\x1B[${u[1]}m`},i[r]=_[r],e.set(u[0],u[1]);Object.defineProperty(_,t,{value:i,enumerable:!1})}return Object.defineProperty(_,"codes",{value:e,enumerable:!1}),_.color.close="\x1B[39m",_.bgColor.close="\x1B[49m",_.color.ansi=Dr(),_.color.ansi256=fr(),_.color.ansi16m=pr(),_.bgColor.ansi=Dr(pt),_.bgColor.ansi256=fr(pt),_.bgColor.ansi16m=pr(pt),Object.defineProperties(_,{rgbToAnsi256:{value:(t,i,r)=>t===i&&i===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(i/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value:t=>{let i=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!i)return[0,0,0];let[r]=i;r.length===3&&(r=[...r].map(s=>s+s).join(""));let u=Number.parseInt(r,16);return[u>>16&255,u>>8&255,u&255]},enumerable:!1},hexToAnsi256:{value:t=>_.rgbToAnsi256(..._.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let i,r,u;if(t>=232)i=((t-232)*10+8)/255,r=i,u=i;else{t-=16;let o=t%36;i=Math.floor(t/36)/5,r=Math.floor(o/6)/5,u=o%6/5}let s=Math.max(i,r,u)*2;if(s===0)return 30;let n=30+(Math.round(u)<<2|Math.round(r)<<1|Math.round(i));return s===2&&(n+=60),n},enumerable:!1},rgbToAnsi:{value:(t,i,r)=>_.ansi256ToAnsi(_.rgbToAnsi256(t,i,r)),enumerable:!1},hexToAnsi:{value:t=>_.ansi256ToAnsi(_.hexToAnsi256(t)),enumerable:!1}}),_}var pu=fu(),Le=new Set(["\x1B","\x9B"]),du=39,Ct="\x07",yr="[",mu="]",br="m",Ft=`${mu}8;;`,dr=e=>`${Le.values().next().value}${yr}${e}${br}`,mr=e=>`${Le.values().next().value}${Ft}${e}${Ct}`,gu=e=>e.split(" ").map(t=>pe(t)),dt=(e,t,i)=>{let r=[...t],u=!1,s=!1,n=pe(Fr(e[e.length-1]));for(let[o,l]of r.entries()){let a=pe(l);if(n+a<=i?e[e.length-1]+=l:(e.push(l),n=0),Le.has(l)&&(u=!0,s=r.slice(o+1).join("").startsWith(Ft)),u){s?l===Ct&&(u=!1,s=!1):l===br&&(u=!1);continue}n+=a,n===i&&o<r.length-1&&(e.push(""),n=0)}!n&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},Cu=e=>{let t=e.split(" "),i=t.length;for(;i>0&&!(pe(t[i-1])>0);)i--;return i===t.length?e:t.slice(0,i).join(" ")+t.slice(i).join("")},Fu=(e,t,i={})=>{if(i.trim!==!1&&e.trim()==="")return"";let r="",u,s,n=gu(e),o=[""];for(let[a,h]of e.split(" ").entries()){i.trim!==!1&&(o[o.length-1]=o[o.length-1].trimStart());let c=pe(o[o.length-1]);if(a!==0&&(c>=t&&(i.wordWrap===!1||i.trim===!1)&&(o.push(""),c=0),(c>0||i.trim===!1)&&(o[o.length-1]+=" ",c++)),i.hard&&n[a]>t){let D=t-c,f=1+Math.floor((n[a]-D-1)/t);Math.floor((n[a]-1)/t)<f&&o.push(""),dt(o,h,t);continue}if(c+n[a]>t&&c>0&&n[a]>0){if(i.wordWrap===!1&&c<t){dt(o,h,t);continue}o.push("")}if(c+n[a]>t&&i.wordWrap===!1){dt(o,h,t);continue}o[o.length-1]+=h}i.trim!==!1&&(o=o.map(a=>Cu(a)));let l=[...o.join(`
22
+ `)];for(let[a,h]of l.entries()){if(r+=h,Le.has(h)){let{groups:D}=new RegExp(`(?:\\${yr}(?<code>\\d+)m|\\${Ft}(?<uri>.*)${Ct})`).exec(l.slice(a).join(""))||{groups:{}};if(D.code!==void 0){let f=Number.parseFloat(D.code);u=f===du?void 0:f}else D.uri!==void 0&&(s=D.uri.length===0?void 0:D.uri)}let c=pu.codes.get(Number(u));l[a+1]===`
23
+ `?(s&&(r+=mr("")),u&&c&&(r+=dr(c))):h===`
24
+ `&&(u&&c&&(r+=dr(u)),s&&(r+=mr(s)))}return r};function gr(e,t,i){return String(e).normalize().replace(/\r\n/g,`
25
+ `).split(`
26
+ `).map(r=>Fu(r,t,i)).join(`
27
+ `)}var Eu=["up","down","left","right","space","enter","cancel"],Ie={actions:new Set(Eu),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["","cancel"],["escape","cancel"]])};function xr(e,t){if(typeof e=="string")return Ie.aliases.get(e)===t;for(let i of e)if(i!==void 0&&xr(i,t))return!0;return!1}function Au(e,t){if(e===t)return;let i=e.split(`
28
+ `),r=t.split(`
29
+ `),u=[];for(let s=0;s<Math.max(i.length,r.length);s++)i[s]!==r[s]&&u.push(s);return u}var ja=globalThis.process.platform.startsWith("win"),mt=Symbol("clack:cancel");function de(e){return e===mt}function Re(e,t){let i=e;i.isTTY&&i.setRawMode(t)}var yu=Object.defineProperty,bu=(e,t,i)=>t in e?yu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,U=(e,t,i)=>(bu(e,typeof t!="symbol"?t+"":t,i),i),gt=class{constructor(t,i=!0){U(this,"input"),U(this,"output"),U(this,"_abortSignal"),U(this,"rl"),U(this,"opts"),U(this,"_render"),U(this,"_track",!1),U(this,"_prevFrame",""),U(this,"_subscribers",new Map),U(this,"_cursor",0),U(this,"state","initial"),U(this,"error",""),U(this,"value");let{input:r=ru,output:u=nu,render:s,signal:n,...o}=t;this.opts=o,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=s.bind(this),this._track=i,this._abortSignal=n,this.input=r,this.output=u}unsubscribe(){this._subscribers.clear()}setSubscriber(t,i){let r=this._subscribers.get(t)??[];r.push(i),this._subscribers.set(t,r)}on(t,i){this.setSubscriber(t,{cb:i})}once(t,i){this.setSubscriber(t,{cb:i,once:!0})}emit(t,...i){let r=this._subscribers.get(t)??[],u=[];for(let s of r)s.cb(...i),s.once&&u.push(()=>r.splice(r.indexOf(s),1));for(let s of u)s()}prompt(){return new Promise((t,i)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),t(mt);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}let r=new iu(0);r._write=(u,s,n)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),n()},this.input.pipe(r),this.rl=hr.createInterface({input:this.input,output:r,tabSize:2,prompt:"",escapeCodeTimeout:50}),hr.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),Re(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(V.cursor.show),this.output.off("resize",this.render),Re(this.input,!1),t(this.value)}),this.once("cancel",()=>{this.output.write(V.cursor.show),this.output.off("resize",this.render),Re(this.input,!1),t(mt)})})}onKeypress(t,i){if(this.state==="error"&&(this.state="active"),i?.name&&(!this._track&&Ie.aliases.has(i.name)&&this.emit("cursor",Ie.aliases.get(i.name)),Ie.actions.has(i.name)&&this.emit("cursor",i.name)),t&&(t.toLowerCase()==="y"||t.toLowerCase()==="n")&&this.emit("confirm",t.toLowerCase()==="y"),t===" "&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),t&&this.emit("key",t.toLowerCase()),i?.name==="return"){if(this.opts.validate){let r=this.opts.validate(this.value);r&&(this.error=r instanceof Error?r.message:r,this.state="error",this.rl?.write(this.value))}this.state!=="error"&&(this.state="submit")}xr([t,i?.name,i?.sequence],"cancel")&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
30
+ `),Re(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let t=gr(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
31
+ `).length-1;this.output.write(V.cursor.move(-999,t*-1))}render(){let t=gr(this._render(this)??"",process.stdout.columns,{hard:!0});if(t!==this._prevFrame){if(this.state==="initial")this.output.write(V.cursor.hide);else{let i=Au(this._prevFrame,t);if(this.restoreCursor(),i&&i?.length===1){let r=i[0];this.output.write(V.cursor.move(0,r)),this.output.write(V.erase.lines(1));let u=t.split(`
32
+ `);this.output.write(u[r]),this._prevFrame=t,this.output.write(V.cursor.move(0,u.length-r-1));return}if(i&&i?.length>1){let r=i[0];this.output.write(V.cursor.move(0,r)),this.output.write(V.erase.down());let u=t.split(`
33
+ `).slice(r);this.output.write(u.join(`
34
+ `)),this._prevFrame=t;return}this.output.write(V.erase.down())}this.output.write(t),this.state==="initial"&&(this.state="active"),this._prevFrame=t}}};var xu=Object.defineProperty,vu=(e,t,i)=>t in e?xu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Cr=(e,t,i)=>(vu(e,typeof t!="symbol"?t+"":t,i),i),vr=class extends gt{constructor(e){super(e,!1),Cr(this,"options"),Cr(this,"cursor",0),this.options=e.options,this.value=[...e.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:t})=>t===e.cursorAt),0),this.on("key",t=>{t==="a"&&this.toggleAll()}),this.on("cursor",t=>{switch(t){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break;case"space":this.toggleValue();break}})}get _value(){return this.options[this.cursor].value}toggleAll(){let e=this.value.length===this.options.length;this.value=e?[]:this.options.map(t=>t.value)}toggleValue(){let e=this.value.includes(this._value);this.value=e?this.value.filter(t=>t!==this._value):[...this.value,this._value]}};var y=Se(cr(),1),Sr=Se(Dt(),1);import Y from"node:process";function wu(){return Y.platform!=="win32"?Y.env.TERM!=="linux":!!Y.env.CI||!!Y.env.WT_SESSION||!!Y.env.TERMINUS_SUBLIME||Y.env.ConEmuTask==="{cmd::Cmder}"||Y.env.TERM_PROGRAM==="Terminus-Sublime"||Y.env.TERM_PROGRAM==="vscode"||Y.env.TERM==="xterm-256color"||Y.env.TERM==="alacritty"||Y.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var _u=wu(),B=(e,t)=>_u?e:t,Tu=B("\u25C6","*"),Su=B("\u25A0","x"),Bu=B("\u25B2","x"),Ou=B("\u25C7","o"),ec=B("\u250C","T"),J=B("\u2502","|"),wr=B("\u2514","\u2014"),tc=B("\u25CF",">"),rc=B("\u25CB"," "),Ru=B("\u25FB","[\u2022]"),_r=B("\u25FC","[+]"),Iu=B("\u25FB","[ ]"),nc=B("\u25AA","\u2022"),ic=B("\u2500","-"),uc=B("\u256E","+"),sc=B("\u251C","+"),oc=B("\u256F","+"),lc=B("\u25CF","\u2022"),ac=B("\u25C6","*"),cc=B("\u25B2","!"),hc=B("\u25A0","x"),Lu=e=>{switch(e){case"initial":case"active":return y.default.cyan(Tu);case"cancel":return y.default.red(Su);case"error":return y.default.yellow(Bu);case"submit":return y.default.green(Ou)}},Tr=e=>{let{cursor:t,options:i,style:r}=e,u=e.maxItems??Number.POSITIVE_INFINITY,s=Math.max(process.stdout.rows-4,0),n=Math.min(s,Math.max(u,5)),o=0;t>=o+n-3?o=Math.max(Math.min(t-n+3,i.length-n),0):t<o+2&&(o=Math.max(t-2,0));let l=n<i.length&&o>0,a=n<i.length&&o+n<i.length;return i.slice(o,o+n).map((h,c,D)=>{let f=c===0&&l,g=c===D.length-1&&a;return f||g?y.default.dim("..."):r(h,c+o===t)})};var Et=e=>{let t=(i,r)=>{let u=i.label??String(i.value);return r==="active"?`${y.default.cyan(Ru)} ${u} ${i.hint?y.default.dim(`(${i.hint})`):""}`:r==="selected"?`${y.default.green(_r)} ${y.default.dim(u)}`:r==="cancelled"?`${y.default.strikethrough(y.default.dim(u))}`:r==="active-selected"?`${y.default.green(_r)} ${u} ${i.hint?y.default.dim(`(${i.hint})`):""}`:r==="submitted"?`${y.default.dim(u)}`:`${y.default.dim(Iu)} ${y.default.dim(u)}`};return new vr({options:e.options,initialValues:e.initialValues,required:e.required??!0,cursorAt:e.cursorAt,validate(i){if(this.required&&i.length===0)return`Please select at least one option.
35
+ ${y.default.reset(y.default.dim(`Press ${y.default.gray(y.default.bgWhite(y.default.inverse(" space ")))} to select, ${y.default.gray(y.default.bgWhite(y.default.inverse(" enter ")))} to submit`))}`},render(){let i=`${y.default.gray(J)}
36
+ ${Lu(this.state)} ${e.message}
37
+ `,r=(u,s)=>{let n=this.value.includes(u.value);return s&&n?t(u,"active-selected"):n?t(u,"selected"):t(u,s?"active":"inactive")};switch(this.state){case"submit":return`${i}${y.default.gray(J)} ${this.options.filter(({value:u})=>this.value.includes(u)).map(u=>t(u,"submitted")).join(y.default.dim(", "))||y.default.dim("none")}`;case"cancel":{let u=this.options.filter(({value:s})=>this.value.includes(s)).map(s=>t(s,"cancelled")).join(y.default.dim(", "));return`${i}${y.default.gray(J)} ${u.trim()?`${u}
38
+ ${y.default.gray(J)}`:""}`}case"error":{let u=this.error.split(`
39
+ `).map((s,n)=>n===0?`${y.default.yellow(wr)} ${y.default.yellow(s)}`:` ${s}`).join(`
40
+ `);return`${i+y.default.yellow(J)} ${Tr({options:this.options,cursor:this.cursor,maxItems:e.maxItems,style:r}).join(`
41
+ ${y.default.yellow(J)} `)}
42
+ ${u}
43
+ `}default:return`${i}${y.default.cyan(J)} ${Tr({options:this.options,cursor:this.cursor,maxItems:e.maxItems,style:r}).join(`
44
+ ${y.default.cyan(J)} `)}
45
+ ${y.default.cyan(wr)}
46
+ `}}}).prompt()};import{homedir as $l}from"os";import{dirname as et,join as E}from"path";import{existsSync as N}from"fs";import{readFileSync as Xt,writeFileSync as tt,existsSync as rt,mkdirSync as Jl}from"fs";import{dirname as zl}from"path";function ge(e,t=!1){let i=e.length,r=0,u="",s=0,n=16,o=0,l=0,a=0,h=0,c=0;function D(m,w){let A=0,C=0;for(;A<m||!w;){let p=e.charCodeAt(r);if(p>=48&&p<=57)C=C*16+p-48;else if(p>=65&&p<=70)C=C*16+p-65+10;else if(p>=97&&p<=102)C=C*16+p-97+10;else break;r++,A++}return A<m&&(C=-1),C}function f(m){r=m,u="",s=0,n=16,c=0}function g(){let m=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&ue(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&ue(e.charCodeAt(r)))for(r++;r<e.length&&ue(e.charCodeAt(r));)r++;else return c=3,e.substring(m,r);let w=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&ue(e.charCodeAt(r))){for(r++;r<e.length&&ue(e.charCodeAt(r));)r++;w=r}else c=3;return e.substring(m,w)}function b(){let m="",w=r;for(;;){if(r>=i){m+=e.substring(w,r),c=2;break}let A=e.charCodeAt(r);if(A===34){m+=e.substring(w,r),r++;break}if(A===92){if(m+=e.substring(w,r),r++,r>=i){c=2;break}switch(e.charCodeAt(r++)){case 34:m+='"';break;case 92:m+="\\";break;case 47:m+="/";break;case 98:m+="\b";break;case 102:m+="\f";break;case 110:m+=`
47
+ `;break;case 114:m+="\r";break;case 116:m+=" ";break;case 117:let p=D(4,!0);p>=0?m+=String.fromCharCode(p):c=4;break;default:c=5}w=r;continue}if(A>=0&&A<=31)if(me(A)){m+=e.substring(w,r),c=2;break}else c=6;r++}return m}function F(){if(u="",c=0,s=r,l=o,h=a,r>=i)return s=i,n=17;let m=e.charCodeAt(r);if(At(m)){do r++,u+=String.fromCharCode(m),m=e.charCodeAt(r);while(At(m));return n=15}if(me(m))return r++,u+=String.fromCharCode(m),m===13&&e.charCodeAt(r)===10&&(r++,u+=`
48
+ `),o++,a=r,n=14;switch(m){case 123:return r++,n=1;case 125:return r++,n=2;case 91:return r++,n=3;case 93:return r++,n=4;case 58:return r++,n=6;case 44:return r++,n=5;case 34:return r++,u=b(),n=10;case 47:let w=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<i&&!me(e.charCodeAt(r));)r++;return u=e.substring(w,r),n=12}if(e.charCodeAt(r+1)===42){r+=2;let A=i-1,C=!1;for(;r<A;){let p=e.charCodeAt(r);if(p===42&&e.charCodeAt(r+1)===47){r+=2,C=!0;break}r++,me(p)&&(p===13&&e.charCodeAt(r)===10&&r++,o++,a=r)}return C||(r++,c=1),u=e.substring(w,r),n=13}return u+=String.fromCharCode(m),r++,n=16;case 45:if(u+=String.fromCharCode(m),r++,r===i||!ue(e.charCodeAt(r)))return n=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return u+=g(),n=11;default:for(;r<i&&S(m);)r++,m=e.charCodeAt(r);if(s!==r){switch(u=e.substring(s,r),u){case"true":return n=8;case"false":return n=9;case"null":return n=7}return n=16}return u+=String.fromCharCode(m),r++,n=16}}function S(m){if(At(m)||me(m))return!1;switch(m){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function x(){let m;do m=F();while(m>=12&&m<=15);return m}return{setPosition:f,getPosition:()=>r,scan:t?x:F,getToken:()=>n,getTokenValue:()=>u,getTokenOffset:()=>s,getTokenLength:()=>r-s,getTokenStartLine:()=>l,getTokenStartCharacter:()=>s-h,getTokenError:()=>c}}function At(e){return e===32||e===9}function me(e){return e===10||e===13}function ue(e){return e>=48&&e<=57}var Or;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(Or||(Or={}));var W=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),se=200,yt={" ":{"\n":new Array(se).fill(0).map((e,t)=>`
49
+ `+" ".repeat(t)),"\r":new Array(se).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(se).fill(0).map((e,t)=>`\r
50
+ `+" ".repeat(t))}," ":{"\n":new Array(se).fill(0).map((e,t)=>`
51
+ `+" ".repeat(t)),"\r":new Array(se).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(se).fill(0).map((e,t)=>`\r
52
+ `+" ".repeat(t))}},Rr=[`
53
+ `,"\r",`\r
54
+ `];function bt(e,t,i){let r,u,s,n,o;if(t){for(n=t.offset,o=n+t.length,s=n;s>0&&!Ce(e,s-1);)s--;let A=o;for(;A<e.length&&!Ce(e,A);)A++;u=e.substring(s,A),r=ku(u,i)}else u=e,r=0,s=0,n=0,o=e.length;let l=$u(i,e),a=Rr.includes(l),h=0,c=0,D;i.insertSpaces?D=W[i.tabSize||4]??oe(W[1],i.tabSize||4):D=" ";let f=D===" "?" ":" ",g=ge(u,!1),b=!1;function F(){if(h>1)return oe(l,h)+oe(D,r+c);let A=D.length*(r+c);return!a||A>yt[f][l].length?l+oe(D,r+c):A<=0?l:yt[f][l][A]}function S(){let A=g.scan();for(h=0;A===15||A===14;)A===14&&i.keepLines?h+=1:A===14&&(h=1),A=g.scan();return b=A===16||g.getTokenError()!==0,A}let x=[];function m(A,C,p){!b&&(!t||C<o&&p>n)&&e.substring(C,p)!==A&&x.push({offset:C,length:p-C,content:A})}let w=S();if(i.keepLines&&h>0&&m(oe(l,h),0,0),w!==17){let A=g.getTokenOffset()+s,C=D.length*r<20&&i.insertSpaces?W[D.length*r]:oe(D,r);m(C,s,A)}for(;w!==17;){let A=g.getTokenOffset()+g.getTokenLength()+s,C=S(),p="",K=!1;for(;h===0&&(C===12||C===13);){let at=g.getTokenOffset()+s;m(W[1],A,at),A=g.getTokenOffset()+g.getTokenLength()+s,K=C===12,p=K?F():"",C=S()}if(C===2)w!==1&&c--,i.keepLines&&h>0||!i.keepLines&&w!==1?p=F():i.keepLines&&(p=W[1]);else if(C===4)w!==3&&c--,i.keepLines&&h>0||!i.keepLines&&w!==3?p=F():i.keepLines&&(p=W[1]);else{switch(w){case 3:case 1:c++,i.keepLines&&h>0||!i.keepLines?p=F():p=W[1];break;case 5:i.keepLines&&h>0||!i.keepLines?p=F():p=W[1];break;case 12:p=F();break;case 13:h>0?p=F():K||(p=W[1]);break;case 6:i.keepLines&&h>0?p=F():K||(p=W[1]);break;case 10:i.keepLines&&h>0?p=F():C===6&&!K&&(p="");break;case 7:case 8:case 9:case 11:case 2:case 4:i.keepLines&&h>0?p=F():(C===12||C===13)&&!K?p=W[1]:C!==5&&C!==17&&(b=!0);break;case 16:b=!0;break}h>0&&(C===12||C===13)&&(p=F())}C===17&&(i.keepLines&&h>0?p=F():p=i.insertFinalNewline?l:"");let lt=g.getTokenOffset()+s;m(p,A,lt),w=C}return x}function oe(e,t){let i="";for(let r=0;r<t;r++)i+=e;return i}function ku(e,t){let i=0,r=0,u=t.tabSize||4;for(;i<e.length;){let s=e.charAt(i);if(s===W[1])r++;else if(s===" ")r+=u;else break;i++}return Math.floor(r/u)}function $u(e,t){for(let i=0;i<t.length;i++){let r=t.charAt(i);if(r==="\r")return i+1<t.length&&t.charAt(i+1)===`
55
+ `?`\r
56
+ `:"\r";if(r===`
57
+ `)return`
58
+ `}return e&&e.eol||`
59
+ `}function Ce(e,t){return`\r
60
+ `.indexOf(e.charAt(t))!==-1}var Fe;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Fe||(Fe={}));function Ir(e,t=[],i=Fe.DEFAULT){let r=null,u=[],s=[];function n(l){Array.isArray(u)?u.push(l):r!==null&&(u[r]=l)}return ke(e,{onObjectBegin:()=>{let l={};n(l),s.push(u),u=l,r=null},onObjectProperty:l=>{r=l},onObjectEnd:()=>{u=s.pop()},onArrayBegin:()=>{let l=[];n(l),s.push(u),u=l,r=null},onArrayEnd:()=>{u=s.pop()},onLiteralValue:n,onError:(l,a,h)=>{t.push({error:l,offset:a,length:h})}},i),u[0]}function xt(e,t=[],i=Fe.DEFAULT){let r={type:"array",offset:-1,length:-1,children:[],parent:void 0};function u(l){r.type==="property"&&(r.length=l-r.offset,r=r.parent)}function s(l){return r.children.push(l),l}ke(e,{onObjectBegin:l=>{r=s({type:"object",offset:l,length:-1,parent:r,children:[]})},onObjectProperty:(l,a,h)=>{r=s({type:"property",offset:a,length:-1,parent:r,children:[]}),r.children.push({type:"string",value:l,offset:a,length:h,parent:r})},onObjectEnd:(l,a)=>{u(l+a),r.length=l+a-r.offset,r=r.parent,u(l+a)},onArrayBegin:(l,a)=>{r=s({type:"array",offset:l,length:-1,parent:r,children:[]})},onArrayEnd:(l,a)=>{r.length=l+a-r.offset,r=r.parent,u(l+a)},onLiteralValue:(l,a,h)=>{s({type:Pu(l),offset:a,length:h,parent:r,value:l}),u(a+h)},onSeparator:(l,a,h)=>{r.type==="property"&&(l===":"?r.colonOffset=a:l===","&&u(a))},onError:(l,a,h)=>{t.push({error:l,offset:a,length:h})}},i);let o=r.children[0];return o&&delete o.parent,o}function Ne(e,t){if(!e)return;let i=e;for(let r of t)if(typeof r=="string"){if(i.type!=="object"||!Array.isArray(i.children))return;let u=!1;for(let s of i.children)if(Array.isArray(s.children)&&s.children[0].value===r&&s.children.length===2){i=s.children[1],u=!0;break}if(!u)return}else{let u=r;if(i.type!=="array"||u<0||!Array.isArray(i.children)||u>=i.children.length)return;i=i.children[u]}return i}function ke(e,t,i=Fe.DEFAULT){let r=ge(e,!1),u=[],s=0;function n(v){return v?()=>s===0&&v(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function o(v){return v?I=>s===0&&v(I,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function l(v){return v?I=>s===0&&v(I,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>u.slice()):()=>!0}function a(v){return v?()=>{s>0?s++:v(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>u.slice())===!1&&(s=1)}:()=>!0}function h(v){return v?()=>{s>0&&s--,s===0&&v(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}let c=a(t.onObjectBegin),D=l(t.onObjectProperty),f=h(t.onObjectEnd),g=a(t.onArrayBegin),b=h(t.onArrayEnd),F=l(t.onLiteralValue),S=o(t.onSeparator),x=n(t.onComment),m=o(t.onError),w=i&&i.disallowComments,A=i&&i.allowTrailingComma;function C(){for(;;){let v=r.scan();switch(r.getTokenError()){case 4:p(14);break;case 5:p(15);break;case 3:p(13);break;case 1:w||p(11);break;case 2:p(12);break;case 6:p(16);break}switch(v){case 12:case 13:w?p(10):x();break;case 16:p(1);break;case 15:case 14:break;default:return v}}}function p(v,I=[],ur=[]){if(m(v),I.length+ur.length>0){let Te=r.getToken();for(;Te!==17;){if(I.indexOf(Te)!==-1){C();break}else if(ur.indexOf(Te)!==-1)break;Te=C()}}}function K(v){let I=r.getTokenValue();return v?F(I):(D(I),u.push(I)),C(),!0}function lt(){switch(r.getToken()){case 11:let v=r.getTokenValue(),I=Number(v);isNaN(I)&&(p(2),I=0),F(I);break;case 7:F(null);break;case 8:F(!0);break;case 9:F(!1);break;default:return!1}return C(),!0}function at(){return r.getToken()!==10?(p(3,[],[2,5]),!1):(K(!1),r.getToken()===6?(S(":"),C(),ct()||p(4,[],[2,5])):p(5,[],[2,5]),u.pop(),!0)}function Ui(){c(),C();let v=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(v||p(4,[],[]),S(","),C(),r.getToken()===2&&A)break}else v&&p(6,[],[]);at()||p(4,[],[2,5]),v=!0}return f(),r.getToken()!==2?p(7,[2],[]):C(),!0}function Wi(){g(),C();let v=!0,I=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(I||p(4,[],[]),S(","),C(),r.getToken()===4&&A)break}else I&&p(6,[],[]);v?(u.push(0),v=!1):u[u.length-1]++,ct()||p(4,[],[4,5]),I=!0}return b(),v||u.pop(),r.getToken()!==4?p(8,[4],[]):C(),!0}function ct(){switch(r.getToken()){case 3:return Wi();case 1:return Ui();case 10:return K(!0);default:return lt()}}return C(),r.getToken()===17?i.allowEmptyContent?!0:(p(4,[],[]),!1):ct()?(r.getToken()!==17&&p(9,[],[]),!0):(p(4,[],[]),!1)}function Pu(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(e){if(Array.isArray(e))return"array"}else return"null";return"object"}default:return"null"}}function Lr(e,t,i,r){let u=t.slice(),n=xt(e,[]),o,l;for(;u.length>0&&(l=u.pop(),o=Ne(n,u),o===void 0&&i!==void 0);)typeof l=="string"?i={[l]:i}:i=[i];if(o)if(o.type==="object"&&typeof l=="string"&&Array.isArray(o.children)){let a=Ne(o,[l]);if(a!==void 0)if(i===void 0){if(!a.parent)throw new Error("Malformed AST");let h=o.children.indexOf(a.parent),c,D=a.parent.offset+a.parent.length;if(h>0){let f=o.children[h-1];c=f.offset+f.length}else c=o.offset+1,o.children.length>1&&(D=o.children[1].offset);return X(e,{offset:c,length:D-c,content:""},r)}else return X(e,{offset:a.offset,length:a.length,content:JSON.stringify(i)},r);else{if(i===void 0)return[];let h=`${JSON.stringify(l)}: ${JSON.stringify(i)}`,c=r.getInsertionIndex?r.getInsertionIndex(o.children.map(f=>f.children[0].value)):o.children.length,D;if(c>0){let f=o.children[c-1];D={offset:f.offset+f.length,length:0,content:","+h}}else o.children.length===0?D={offset:o.offset+1,length:0,content:h}:D={offset:o.offset+1,length:0,content:h+","};return X(e,D,r)}}else if(o.type==="array"&&typeof l=="number"&&Array.isArray(o.children)){let a=l;if(a===-1){let h=`${JSON.stringify(i)}`,c;if(o.children.length===0)c={offset:o.offset+1,length:0,content:h};else{let D=o.children[o.children.length-1];c={offset:D.offset+D.length,length:0,content:","+h}}return X(e,c,r)}else if(i===void 0&&o.children.length>=0){let h=l,c=o.children[h],D;if(o.children.length===1)D={offset:o.offset+1,length:o.length-2,content:""};else if(o.children.length-1===h){let f=o.children[h-1],g=f.offset+f.length,b=o.offset+o.length;D={offset:g,length:b-2-g,content:""}}else D={offset:c.offset,length:o.children[h+1].offset-c.offset,content:""};return X(e,D,r)}else if(i!==void 0){let h,c=`${JSON.stringify(i)}`;if(!r.isArrayInsertion&&o.children.length>l){let D=o.children[l];h={offset:D.offset,length:D.length,content:c}}else if(o.children.length===0||l===0)h={offset:o.offset+1,length:0,content:o.children.length===0?c:c+","};else{let D=l>o.children.length?o.children.length:l,f=o.children[D-1];h={offset:f.offset+f.length,length:0,content:","+c}}return X(e,h,r)}else throw new Error(`Can not ${i===void 0?"remove":r.isArrayInsertion?"insert":"modify"} Array index ${a} as length is not sufficient`)}else throw new Error(`Can not add ${typeof l!="number"?"index":"property"} to parent of type ${o.type}`);else{if(i===void 0)throw new Error("Can not delete in empty document");return X(e,{offset:n?n.offset:0,length:n?n.length:0,content:JSON.stringify(i)},r)}}function X(e,t,i){if(!i.formattingOptions)return[t];let r=$e(e,t),u=t.offset,s=t.offset+t.content.length;if(t.length===0||t.content.length===0){for(;u>0&&!Ce(r,u-1);)u--;for(;s<r.length&&!Ce(r,s);)s++}let n=bt(r,{offset:u,length:s-u},{...i.formattingOptions,keepLines:!1});for(let l=n.length-1;l>=0;l--){let a=n[l];r=$e(r,a),u=Math.min(u,a.offset),s=Math.max(s,a.offset+a.length),s+=a.content.length-a.length}let o=e.length-(r.length-s)-u;return[{offset:u,length:o,content:r.substring(u,s)}]}function $e(e,t){return e.substring(0,t.offset)+t.content+e.substring(t.offset+t.length)}var Nr;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(Nr||(Nr={}));var kr;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(kr||(kr={}));var He=Ir;var Hr=ke;var $r;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})($r||($r={}));function vt(e,t,i,r){return Lr(e,t,i,r)}function wt(e,t){let i=t.slice(0).sort((u,s)=>{let n=u.offset-s.offset;return n===0?u.length-s.length:n}),r=e.length;for(let u=i.length-1;u>=0;u--){let s=i[u];if(s.offset+s.length<=r)e=$e(e,s);else throw new Error("Overlapping edit");r=s.offset}return e}import{readFileSync as ta,writeFileSync as Ti,existsSync as nt,mkdirSync as ra}from"fs";import{dirname as na}from"path";function en(e){return typeof e>"u"||e===null}function Wu(e){return typeof e=="object"&&e!==null}function Vu(e){return Array.isArray(e)?e:en(e)?[]:[e]}function Yu(e,t){var i,r,u,s;if(t)for(s=Object.keys(t),i=0,r=s.length;i<r;i+=1)u=s[i],e[u]=t[u];return e}function Gu(e,t){var i="",r;for(r=0;r<t;r+=1)i+=e;return i}function Ku(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var qu=en,Ju=Wu,zu=Vu,Qu=Gu,Zu=Ku,Xu=Yu,L={isNothing:qu,isObject:Ju,toArray:zu,repeat:Qu,isNegativeZero:Zu,extend:Xu};function tn(e,t){var i="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(i+='in "'+e.mark.name+'" '),i+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(i+=`
61
+
62
+ `+e.mark.snippet),r+" "+i):r}function Ae(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=tn(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ae.prototype=Object.create(Error.prototype);Ae.prototype.constructor=Ae;Ae.prototype.toString=function(t){return this.name+": "+tn(this,t)};var P=Ae;function _t(e,t,i,r,u){var s="",n="",o=Math.floor(u/2)-1;return r-t>o&&(s=" ... ",t=r-o+s.length),i-r>o&&(n=" ...",i=r+o-n.length),{str:s+e.slice(t,i).replace(/\t/g,"\u2192")+n,pos:r-t+s.length}}function Tt(e,t){return L.repeat(" ",t-e.length)+e}function es(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],u=[],s,n=-1;s=i.exec(e.buffer);)u.push(s.index),r.push(s.index+s[0].length),e.position<=s.index&&n<0&&(n=r.length-2);n<0&&(n=r.length-1);var o="",l,a,h=Math.min(e.line+t.linesAfter,u.length).toString().length,c=t.maxLength-(t.indent+h+3);for(l=1;l<=t.linesBefore&&!(n-l<0);l++)a=_t(e.buffer,r[n-l],u[n-l],e.position-(r[n]-r[n-l]),c),o=L.repeat(" ",t.indent)+Tt((e.line-l+1).toString(),h)+" | "+a.str+`
63
+ `+o;for(a=_t(e.buffer,r[n],u[n],e.position,c),o+=L.repeat(" ",t.indent)+Tt((e.line+1).toString(),h)+" | "+a.str+`
64
+ `,o+=L.repeat("-",t.indent+h+3+a.pos)+`^
65
+ `,l=1;l<=t.linesAfter&&!(n+l>=u.length);l++)a=_t(e.buffer,r[n+l],u[n+l],e.position-(r[n]-r[n+l]),c),o+=L.repeat(" ",t.indent)+Tt((e.line+l+1).toString(),h)+" | "+a.str+`
66
+ `;return o.replace(/\n$/,"")}var ts=es,rs=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ns=["scalar","sequence","mapping"];function is(e){var t={};return e!==null&&Object.keys(e).forEach(function(i){e[i].forEach(function(r){t[String(r)]=i})}),t}function us(e,t){if(t=t||{},Object.keys(t).forEach(function(i){if(rs.indexOf(i)===-1)throw new P('Unknown option "'+i+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(i){return i},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=is(t.styleAliases||null),ns.indexOf(this.kind)===-1)throw new P('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var k=us;function Pr(e,t){var i=[];return e[t].forEach(function(r){var u=i.length;i.forEach(function(s,n){s.tag===r.tag&&s.kind===r.kind&&s.multi===r.multi&&(u=n)}),i[u]=r}),i}function ss(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,i;function r(u){u.multi?(e.multi[u.kind].push(u),e.multi.fallback.push(u)):e[u.kind][u.tag]=e.fallback[u.tag]=u}for(t=0,i=arguments.length;t<i;t+=1)arguments[t].forEach(r);return e}function Bt(e){return this.extend(e)}Bt.prototype.extend=function(t){var i=[],r=[];if(t instanceof k)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(i=i.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new P("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(s){if(!(s instanceof k))throw new P("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new P("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new P("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(s){if(!(s instanceof k))throw new P("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var u=Object.create(Bt.prototype);return u.implicit=(this.implicit||[]).concat(i),u.explicit=(this.explicit||[]).concat(r),u.compiledImplicit=Pr(u,"implicit"),u.compiledExplicit=Pr(u,"explicit"),u.compiledTypeMap=ss(u.compiledImplicit,u.compiledExplicit),u};var rn=Bt,nn=new k("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),un=new k("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),sn=new k("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),on=new rn({explicit:[nn,un,sn]});function os(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function ls(){return null}function as(e){return e===null}var ln=new k("tag:yaml.org,2002:null",{kind:"scalar",resolve:os,construct:ls,predicate:as,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function cs(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function hs(e){return e==="true"||e==="True"||e==="TRUE"}function Ds(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var an=new k("tag:yaml.org,2002:bool",{kind:"scalar",resolve:cs,construct:hs,predicate:Ds,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function fs(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function ps(e){return 48<=e&&e<=55}function ds(e){return 48<=e&&e<=57}function ms(e){if(e===null)return!1;var t=e.length,i=0,r=!1,u;if(!t)return!1;if(u=e[i],(u==="-"||u==="+")&&(u=e[++i]),u==="0"){if(i+1===t)return!0;if(u=e[++i],u==="b"){for(i++;i<t;i++)if(u=e[i],u!=="_"){if(u!=="0"&&u!=="1")return!1;r=!0}return r&&u!=="_"}if(u==="x"){for(i++;i<t;i++)if(u=e[i],u!=="_"){if(!fs(e.charCodeAt(i)))return!1;r=!0}return r&&u!=="_"}if(u==="o"){for(i++;i<t;i++)if(u=e[i],u!=="_"){if(!ps(e.charCodeAt(i)))return!1;r=!0}return r&&u!=="_"}}if(u==="_")return!1;for(;i<t;i++)if(u=e[i],u!=="_"){if(!ds(e.charCodeAt(i)))return!1;r=!0}return!(!r||u==="_")}function gs(e){var t=e,i=1,r;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(i=-1),t=t.slice(1),r=t[0]),t==="0")return 0;if(r==="0"){if(t[1]==="b")return i*parseInt(t.slice(2),2);if(t[1]==="x")return i*parseInt(t.slice(2),16);if(t[1]==="o")return i*parseInt(t.slice(2),8)}return i*parseInt(t,10)}function Cs(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!L.isNegativeZero(e)}var cn=new k("tag:yaml.org,2002:int",{kind:"scalar",resolve:ms,construct:gs,predicate:Cs,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Fs=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Es(e){return!(e===null||!Fs.test(e)||e[e.length-1]==="_")}function As(e){var t,i;return t=e.replace(/_/g,"").toLowerCase(),i=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:i*parseFloat(t,10)}var ys=/^[-+]?[0-9]+e/;function bs(e,t){var i;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(L.isNegativeZero(e))return"-0.0";return i=e.toString(10),ys.test(i)?i.replace("e",".e"):i}function xs(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||L.isNegativeZero(e))}var hn=new k("tag:yaml.org,2002:float",{kind:"scalar",resolve:Es,construct:As,predicate:xs,represent:bs,defaultStyle:"lowercase"}),Dn=on.extend({implicit:[ln,an,cn,hn]}),fn=Dn,pn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),dn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function vs(e){return e===null?!1:pn.exec(e)!==null||dn.exec(e)!==null}function ws(e){var t,i,r,u,s,n,o,l=0,a=null,h,c,D;if(t=pn.exec(e),t===null&&(t=dn.exec(e)),t===null)throw new Error("Date resolve error");if(i=+t[1],r=+t[2]-1,u=+t[3],!t[4])return new Date(Date.UTC(i,r,u));if(s=+t[4],n=+t[5],o=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(h=+t[10],c=+(t[11]||0),a=(h*60+c)*6e4,t[9]==="-"&&(a=-a)),D=new Date(Date.UTC(i,r,u,s,n,o,l)),a&&D.setTime(D.getTime()-a),D}function _s(e){return e.toISOString()}var mn=new k("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:vs,construct:ws,instanceOf:Date,represent:_s});function Ts(e){return e==="<<"||e===null}var gn=new k("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Ts}),Nt=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
67
+ \r`;function Ss(e){if(e===null)return!1;var t,i,r=0,u=e.length,s=Nt;for(i=0;i<u;i++)if(t=s.indexOf(e.charAt(i)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function Bs(e){var t,i,r=e.replace(/[\r\n=]/g,""),u=r.length,s=Nt,n=0,o=[];for(t=0;t<u;t++)t%4===0&&t&&(o.push(n>>16&255),o.push(n>>8&255),o.push(n&255)),n=n<<6|s.indexOf(r.charAt(t));return i=u%4*6,i===0?(o.push(n>>16&255),o.push(n>>8&255),o.push(n&255)):i===18?(o.push(n>>10&255),o.push(n>>2&255)):i===12&&o.push(n>>4&255),new Uint8Array(o)}function Os(e){var t="",i=0,r,u,s=e.length,n=Nt;for(r=0;r<s;r++)r%3===0&&r&&(t+=n[i>>18&63],t+=n[i>>12&63],t+=n[i>>6&63],t+=n[i&63]),i=(i<<8)+e[r];return u=s%3,u===0?(t+=n[i>>18&63],t+=n[i>>12&63],t+=n[i>>6&63],t+=n[i&63]):u===2?(t+=n[i>>10&63],t+=n[i>>4&63],t+=n[i<<2&63],t+=n[64]):u===1&&(t+=n[i>>2&63],t+=n[i<<4&63],t+=n[64],t+=n[64]),t}function Rs(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Cn=new k("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Ss,construct:Bs,predicate:Rs,represent:Os}),Is=Object.prototype.hasOwnProperty,Ls=Object.prototype.toString;function Ns(e){if(e===null)return!0;var t=[],i,r,u,s,n,o=e;for(i=0,r=o.length;i<r;i+=1){if(u=o[i],n=!1,Ls.call(u)!=="[object Object]")return!1;for(s in u)if(Is.call(u,s))if(!n)n=!0;else return!1;if(!n)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function ks(e){return e!==null?e:[]}var Fn=new k("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Ns,construct:ks}),$s=Object.prototype.toString;function Hs(e){if(e===null)return!0;var t,i,r,u,s,n=e;for(s=new Array(n.length),t=0,i=n.length;t<i;t+=1){if(r=n[t],$s.call(r)!=="[object Object]"||(u=Object.keys(r),u.length!==1))return!1;s[t]=[u[0],r[u[0]]]}return!0}function Ps(e){if(e===null)return[];var t,i,r,u,s,n=e;for(s=new Array(n.length),t=0,i=n.length;t<i;t+=1)r=n[t],u=Object.keys(r),s[t]=[u[0],r[u[0]]];return s}var En=new k("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Hs,construct:Ps}),Ms=Object.prototype.hasOwnProperty;function js(e){if(e===null)return!0;var t,i=e;for(t in i)if(Ms.call(i,t)&&i[t]!==null)return!1;return!0}function Us(e){return e!==null?e:{}}var An=new k("tag:yaml.org,2002:set",{kind:"mapping",resolve:js,construct:Us}),kt=fn.extend({implicit:[mn,gn],explicit:[Cn,Fn,En,An]}),Q=Object.prototype.hasOwnProperty,Pe=1,yn=2,bn=3,Me=4,St=1,Ws=2,Mr=3,Vs=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ys=/[\x85\u2028\u2029]/,Gs=/[,\[\]\{\}]/,xn=/^(?:!|!!|![a-z\-]+!)$/i,vn=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function jr(e){return Object.prototype.toString.call(e)}function G(e){return e===10||e===13}function te(e){return e===9||e===32}function M(e){return e===9||e===32||e===10||e===13}function ae(e){return e===44||e===91||e===93||e===123||e===125}function Ks(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function qs(e){return e===120?2:e===117?4:e===85?8:0}function Js(e){return 48<=e&&e<=57?e-48:-1}function Ur(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
68
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function zs(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var wn=new Array(256),_n=new Array(256);for(ee=0;ee<256;ee++)wn[ee]=Ur(ee)?1:0,_n[ee]=Ur(ee);var ee;function Qs(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||kt,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Tn(e,t){var i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=ts(i),new P(t,i)}function d(e,t){throw Tn(e,t)}function je(e,t){e.onWarning&&e.onWarning.call(null,Tn(e,t))}var Wr={YAML:function(t,i,r){var u,s,n;t.version!==null&&d(t,"duplication of %YAML directive"),r.length!==1&&d(t,"YAML directive accepts exactly one argument"),u=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),u===null&&d(t,"ill-formed argument of the YAML directive"),s=parseInt(u[1],10),n=parseInt(u[2],10),s!==1&&d(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=n<2,n!==1&&n!==2&&je(t,"unsupported YAML version of the document")},TAG:function(t,i,r){var u,s;r.length!==2&&d(t,"TAG directive accepts exactly two arguments"),u=r[0],s=r[1],xn.test(u)||d(t,"ill-formed tag handle (first argument) of the TAG directive"),Q.call(t.tagMap,u)&&d(t,'there is a previously declared suffix for "'+u+'" tag handle'),vn.test(s)||d(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{d(t,"tag prefix is malformed: "+s)}t.tagMap[u]=s}};function z(e,t,i,r){var u,s,n,o;if(t<i){if(o=e.input.slice(t,i),r)for(u=0,s=o.length;u<s;u+=1)n=o.charCodeAt(u),n===9||32<=n&&n<=1114111||d(e,"expected valid JSON character");else Vs.test(o)&&d(e,"the stream contains non-printable characters");e.result+=o}}function Vr(e,t,i,r){var u,s,n,o;for(L.isObject(i)||d(e,"cannot merge mappings; the provided source object is unacceptable"),u=Object.keys(i),n=0,o=u.length;n<o;n+=1)s=u[n],Q.call(t,s)||(t[s]=i[s],r[s]=!0)}function ce(e,t,i,r,u,s,n,o,l){var a,h;if(Array.isArray(u))for(u=Array.prototype.slice.call(u),a=0,h=u.length;a<h;a+=1)Array.isArray(u[a])&&d(e,"nested arrays are not supported inside keys"),typeof u=="object"&&jr(u[a])==="[object Object]"&&(u[a]="[object Object]");if(typeof u=="object"&&jr(u)==="[object Object]"&&(u="[object Object]"),u=String(u),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(a=0,h=s.length;a<h;a+=1)Vr(e,t,s[a],i);else Vr(e,t,s,i);else!e.json&&!Q.call(i,u)&&Q.call(t,u)&&(e.line=n||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,d(e,"duplicated mapping key")),u==="__proto__"?Object.defineProperty(t,u,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[u]=s,delete i[u];return t}function $t(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):d(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function O(e,t,i){for(var r=0,u=e.input.charCodeAt(e.position);u!==0;){for(;te(u);)u===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),u=e.input.charCodeAt(++e.position);if(t&&u===35)do u=e.input.charCodeAt(++e.position);while(u!==10&&u!==13&&u!==0);if(G(u))for($t(e),u=e.input.charCodeAt(e.position),r++,e.lineIndent=0;u===32;)e.lineIndent++,u=e.input.charCodeAt(++e.position);else break}return i!==-1&&r!==0&&e.lineIndent<i&&je(e,"deficient indentation"),r}function Ve(e){var t=e.position,i;return i=e.input.charCodeAt(t),!!((i===45||i===46)&&i===e.input.charCodeAt(t+1)&&i===e.input.charCodeAt(t+2)&&(t+=3,i=e.input.charCodeAt(t),i===0||M(i)))}function Ht(e,t){t===1?e.result+=" ":t>1&&(e.result+=L.repeat(`
69
+ `,t-1))}function Zs(e,t,i){var r,u,s,n,o,l,a,h,c=e.kind,D=e.result,f;if(f=e.input.charCodeAt(e.position),M(f)||ae(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96||(f===63||f===45)&&(u=e.input.charCodeAt(e.position+1),M(u)||i&&ae(u)))return!1;for(e.kind="scalar",e.result="",s=n=e.position,o=!1;f!==0;){if(f===58){if(u=e.input.charCodeAt(e.position+1),M(u)||i&&ae(u))break}else if(f===35){if(r=e.input.charCodeAt(e.position-1),M(r))break}else{if(e.position===e.lineStart&&Ve(e)||i&&ae(f))break;if(G(f))if(l=e.line,a=e.lineStart,h=e.lineIndent,O(e,!1,-1),e.lineIndent>=t){o=!0,f=e.input.charCodeAt(e.position);continue}else{e.position=n,e.line=l,e.lineStart=a,e.lineIndent=h;break}}o&&(z(e,s,n,!1),Ht(e,e.line-l),s=n=e.position,o=!1),te(f)||(n=e.position+1),f=e.input.charCodeAt(++e.position)}return z(e,s,n,!1),e.result?!0:(e.kind=c,e.result=D,!1)}function Xs(e,t){var i,r,u;if(i=e.input.charCodeAt(e.position),i!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=u=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39)if(z(e,r,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)r=e.position,e.position++,u=e.position;else return!0;else G(i)?(z(e,r,u,!0),Ht(e,O(e,!1,t)),r=u=e.position):e.position===e.lineStart&&Ve(e)?d(e,"unexpected end of the document within a single quoted scalar"):(e.position++,u=e.position);d(e,"unexpected end of the stream within a single quoted scalar")}function eo(e,t){var i,r,u,s,n,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,i=r=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return z(e,i,e.position,!0),e.position++,!0;if(o===92){if(z(e,i,e.position,!0),o=e.input.charCodeAt(++e.position),G(o))O(e,!1,t);else if(o<256&&wn[o])e.result+=_n[o],e.position++;else if((n=qs(o))>0){for(u=n,s=0;u>0;u--)o=e.input.charCodeAt(++e.position),(n=Ks(o))>=0?s=(s<<4)+n:d(e,"expected hexadecimal character");e.result+=zs(s),e.position++}else d(e,"unknown escape sequence");i=r=e.position}else G(o)?(z(e,i,r,!0),Ht(e,O(e,!1,t)),i=r=e.position):e.position===e.lineStart&&Ve(e)?d(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}d(e,"unexpected end of the stream within a double quoted scalar")}function to(e,t){var i=!0,r,u,s,n=e.tag,o,l=e.anchor,a,h,c,D,f,g=Object.create(null),b,F,S,x;if(x=e.input.charCodeAt(e.position),x===91)h=93,f=!1,o=[];else if(x===123)h=125,f=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),x=e.input.charCodeAt(++e.position);x!==0;){if(O(e,!0,t),x=e.input.charCodeAt(e.position),x===h)return e.position++,e.tag=n,e.anchor=l,e.kind=f?"mapping":"sequence",e.result=o,!0;i?x===44&&d(e,"expected the node content, but found ','"):d(e,"missed comma between flow collection entries"),F=b=S=null,c=D=!1,x===63&&(a=e.input.charCodeAt(e.position+1),M(a)&&(c=D=!0,e.position++,O(e,!0,t))),r=e.line,u=e.lineStart,s=e.position,he(e,t,Pe,!1,!0),F=e.tag,b=e.result,O(e,!0,t),x=e.input.charCodeAt(e.position),(D||e.line===r)&&x===58&&(c=!0,x=e.input.charCodeAt(++e.position),O(e,!0,t),he(e,t,Pe,!1,!0),S=e.result),f?ce(e,o,g,F,b,S,r,u,s):c?o.push(ce(e,null,g,F,b,S,r,u,s)):o.push(b),O(e,!0,t),x=e.input.charCodeAt(e.position),x===44?(i=!0,x=e.input.charCodeAt(++e.position)):i=!1}d(e,"unexpected end of the stream within a flow collection")}function ro(e,t){var i,r,u=St,s=!1,n=!1,o=t,l=0,a=!1,h,c;if(c=e.input.charCodeAt(e.position),c===124)r=!1;else if(c===62)r=!0;else return!1;for(e.kind="scalar",e.result="";c!==0;)if(c=e.input.charCodeAt(++e.position),c===43||c===45)St===u?u=c===43?Mr:Ws:d(e,"repeat of a chomping mode identifier");else if((h=Js(c))>=0)h===0?d(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):n?d(e,"repeat of an indentation width identifier"):(o=t+h-1,n=!0);else break;if(te(c)){do c=e.input.charCodeAt(++e.position);while(te(c));if(c===35)do c=e.input.charCodeAt(++e.position);while(!G(c)&&c!==0)}for(;c!==0;){for($t(e),e.lineIndent=0,c=e.input.charCodeAt(e.position);(!n||e.lineIndent<o)&&c===32;)e.lineIndent++,c=e.input.charCodeAt(++e.position);if(!n&&e.lineIndent>o&&(o=e.lineIndent),G(c)){l++;continue}if(e.lineIndent<o){u===Mr?e.result+=L.repeat(`
70
+ `,s?1+l:l):u===St&&s&&(e.result+=`
71
+ `);break}for(r?te(c)?(a=!0,e.result+=L.repeat(`
72
+ `,s?1+l:l)):a?(a=!1,e.result+=L.repeat(`
73
+ `,l+1)):l===0?s&&(e.result+=" "):e.result+=L.repeat(`
74
+ `,l):e.result+=L.repeat(`
75
+ `,s?1+l:l),s=!0,n=!0,l=0,i=e.position;!G(c)&&c!==0;)c=e.input.charCodeAt(++e.position);z(e,i,e.position,!1)}return!0}function Yr(e,t){var i,r=e.tag,u=e.anchor,s=[],n,o=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,d(e,"tab characters must not be used in indentation")),!(l!==45||(n=e.input.charCodeAt(e.position+1),!M(n))));){if(o=!0,e.position++,O(e,!0,-1)&&e.lineIndent<=t){s.push(null),l=e.input.charCodeAt(e.position);continue}if(i=e.line,he(e,t,bn,!1,!0),s.push(e.result),O(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===i||e.lineIndent>t)&&l!==0)d(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=r,e.anchor=u,e.kind="sequence",e.result=s,!0):!1}function no(e,t,i){var r,u,s,n,o,l,a=e.tag,h=e.anchor,c={},D=Object.create(null),f=null,g=null,b=null,F=!1,S=!1,x;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),x=e.input.charCodeAt(e.position);x!==0;){if(!F&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,d(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),s=e.line,(x===63||x===58)&&M(r))x===63?(F&&(ce(e,c,D,f,g,null,n,o,l),f=g=b=null),S=!0,F=!0,u=!0):F?(F=!1,u=!0):d(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,x=r;else{if(n=e.line,o=e.lineStart,l=e.position,!he(e,i,yn,!1,!0))break;if(e.line===s){for(x=e.input.charCodeAt(e.position);te(x);)x=e.input.charCodeAt(++e.position);if(x===58)x=e.input.charCodeAt(++e.position),M(x)||d(e,"a whitespace character is expected after the key-value separator within a block mapping"),F&&(ce(e,c,D,f,g,null,n,o,l),f=g=b=null),S=!0,F=!1,u=!1,f=e.tag,g=e.result;else if(S)d(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=a,e.anchor=h,!0}else if(S)d(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=a,e.anchor=h,!0}if((e.line===s||e.lineIndent>t)&&(F&&(n=e.line,o=e.lineStart,l=e.position),he(e,t,Me,!0,u)&&(F?g=e.result:b=e.result),F||(ce(e,c,D,f,g,b,n,o,l),f=g=b=null),O(e,!0,-1),x=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&x!==0)d(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return F&&ce(e,c,D,f,g,null,n,o,l),S&&(e.tag=a,e.anchor=h,e.kind="mapping",e.result=c),S}function io(e){var t,i=!1,r=!1,u,s,n;if(n=e.input.charCodeAt(e.position),n!==33)return!1;if(e.tag!==null&&d(e,"duplication of a tag property"),n=e.input.charCodeAt(++e.position),n===60?(i=!0,n=e.input.charCodeAt(++e.position)):n===33?(r=!0,u="!!",n=e.input.charCodeAt(++e.position)):u="!",t=e.position,i){do n=e.input.charCodeAt(++e.position);while(n!==0&&n!==62);e.position<e.length?(s=e.input.slice(t,e.position),n=e.input.charCodeAt(++e.position)):d(e,"unexpected end of the stream within a verbatim tag")}else{for(;n!==0&&!M(n);)n===33&&(r?d(e,"tag suffix cannot contain exclamation marks"):(u=e.input.slice(t-1,e.position+1),xn.test(u)||d(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),n=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Gs.test(s)&&d(e,"tag suffix cannot contain flow indicator characters")}s&&!vn.test(s)&&d(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{d(e,"tag name is malformed: "+s)}return i?e.tag=s:Q.call(e.tagMap,u)?e.tag=e.tagMap[u]+s:u==="!"?e.tag="!"+s:u==="!!"?e.tag="tag:yaml.org,2002:"+s:d(e,'undeclared tag handle "'+u+'"'),!0}function uo(e){var t,i;if(i=e.input.charCodeAt(e.position),i!==38)return!1;for(e.anchor!==null&&d(e,"duplication of an anchor property"),i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!M(i)&&!ae(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&d(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function so(e){var t,i,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!M(r)&&!ae(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&d(e,"name of an alias node must contain at least one character"),i=e.input.slice(t,e.position),Q.call(e.anchorMap,i)||d(e,'unidentified alias "'+i+'"'),e.result=e.anchorMap[i],O(e,!0,-1),!0}function he(e,t,i,r,u){var s,n,o,l=1,a=!1,h=!1,c,D,f,g,b,F;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=n=o=Me===i||bn===i,r&&O(e,!0,-1)&&(a=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;io(e)||uo(e);)O(e,!0,-1)?(a=!0,o=s,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):o=!1;if(o&&(o=a||u),(l===1||Me===i)&&(Pe===i||yn===i?b=t:b=t+1,F=e.position-e.lineStart,l===1?o&&(Yr(e,F)||no(e,F,b))||to(e,b)?h=!0:(n&&ro(e,b)||Xs(e,b)||eo(e,b)?h=!0:so(e)?(h=!0,(e.tag!==null||e.anchor!==null)&&d(e,"alias node should not have any properties")):Zs(e,b,Pe===i)&&(h=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(h=o&&Yr(e,F))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&d(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,D=e.implicitTypes.length;c<D;c+=1)if(g=e.implicitTypes[c],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Q.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,f=e.typeMap.multi[e.kind||"fallback"],c=0,D=f.length;c<D;c+=1)if(e.tag.slice(0,f[c].tag.length)===f[c].tag){g=f[c];break}g||d(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&d(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):d(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||h}function oo(e){var t=e.position,i,r,u,s=!1,n;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(n=e.input.charCodeAt(e.position))!==0&&(O(e,!0,-1),n=e.input.charCodeAt(e.position),!(e.lineIndent>0||n!==37));){for(s=!0,n=e.input.charCodeAt(++e.position),i=e.position;n!==0&&!M(n);)n=e.input.charCodeAt(++e.position);for(r=e.input.slice(i,e.position),u=[],r.length<1&&d(e,"directive name must not be less than one character in length");n!==0;){for(;te(n);)n=e.input.charCodeAt(++e.position);if(n===35){do n=e.input.charCodeAt(++e.position);while(n!==0&&!G(n));break}if(G(n))break;for(i=e.position;n!==0&&!M(n);)n=e.input.charCodeAt(++e.position);u.push(e.input.slice(i,e.position))}n!==0&&$t(e),Q.call(Wr,r)?Wr[r](e,r,u):je(e,'unknown document directive "'+r+'"')}if(O(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,O(e,!0,-1)):s&&d(e,"directives end mark is expected"),he(e,e.lineIndent-1,Me,!1,!0),O(e,!0,-1),e.checkLineBreaks&&Ys.test(e.input.slice(t,e.position))&&je(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ve(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,O(e,!0,-1));return}if(e.position<e.length-1)d(e,"end of the stream or a document separator is expected");else return}function Sn(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
76
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var i=new Qs(e,t),r=e.indexOf("\0");for(r!==-1&&(i.position=r,d(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)oo(i);return i.documents}function lo(e,t,i){t!==null&&typeof t=="object"&&typeof i>"u"&&(i=t,t=null);var r=Sn(e,i);if(typeof t!="function")return r;for(var u=0,s=r.length;u<s;u+=1)t(r[u])}function ao(e,t){var i=Sn(e,t);if(i.length!==0){if(i.length===1)return i[0];throw new P("expected a single document in the stream, but found more")}}var co=lo,ho=ao,Bn={loadAll:co,load:ho},On=Object.prototype.toString,Rn=Object.prototype.hasOwnProperty,Pt=65279,Do=9,ye=10,fo=13,po=32,mo=33,go=34,Ot=35,Co=37,Fo=38,Eo=39,Ao=42,In=44,yo=45,Ue=58,bo=61,xo=62,vo=63,wo=64,Ln=91,Nn=93,_o=96,kn=123,To=124,$n=125,H={};H[0]="\\0";H[7]="\\a";H[8]="\\b";H[9]="\\t";H[10]="\\n";H[11]="\\v";H[12]="\\f";H[13]="\\r";H[27]="\\e";H[34]='\\"';H[92]="\\\\";H[133]="\\N";H[160]="\\_";H[8232]="\\L";H[8233]="\\P";var So=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Bo=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Oo(e,t){var i,r,u,s,n,o,l;if(t===null)return{};for(i={},r=Object.keys(t),u=0,s=r.length;u<s;u+=1)n=r[u],o=String(t[n]),n.slice(0,2)==="!!"&&(n="tag:yaml.org,2002:"+n.slice(2)),l=e.compiledTypeMap.fallback[n],l&&Rn.call(l.styleAliases,o)&&(o=l.styleAliases[o]),i[n]=o;return i}function Ro(e){var t,i,r;if(t=e.toString(16).toUpperCase(),e<=255)i="x",r=2;else if(e<=65535)i="u",r=4;else if(e<=4294967295)i="U",r=8;else throw new P("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+i+L.repeat("0",r-t.length)+t}var Io=1,be=2;function Lo(e){this.schema=e.schema||kt,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=L.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Oo(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?be:Io,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Gr(e,t){for(var i=L.repeat(" ",t),r=0,u=-1,s="",n,o=e.length;r<o;)u=e.indexOf(`
77
+ `,r),u===-1?(n=e.slice(r),r=o):(n=e.slice(r,u+1),r=u+1),n.length&&n!==`
78
+ `&&(s+=i),s+=n;return s}function Rt(e,t){return`
79
+ `+L.repeat(" ",e.indent*t)}function No(e,t){var i,r,u;for(i=0,r=e.implicitTypes.length;i<r;i+=1)if(u=e.implicitTypes[i],u.resolve(t))return!0;return!1}function We(e){return e===po||e===Do}function xe(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Pt||65536<=e&&e<=1114111}function Kr(e){return xe(e)&&e!==Pt&&e!==fo&&e!==ye}function qr(e,t,i){var r=Kr(e),u=r&&!We(e);return(i?r:r&&e!==In&&e!==Ln&&e!==Nn&&e!==kn&&e!==$n)&&e!==Ot&&!(t===Ue&&!u)||Kr(t)&&!We(t)&&e===Ot||t===Ue&&u}function ko(e){return xe(e)&&e!==Pt&&!We(e)&&e!==yo&&e!==vo&&e!==Ue&&e!==In&&e!==Ln&&e!==Nn&&e!==kn&&e!==$n&&e!==Ot&&e!==Fo&&e!==Ao&&e!==mo&&e!==To&&e!==bo&&e!==xo&&e!==Eo&&e!==go&&e!==Co&&e!==wo&&e!==_o}function $o(e){return!We(e)&&e!==Ue}function Ee(e,t){var i=e.charCodeAt(t),r;return i>=55296&&i<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(i-55296)*1024+r-56320+65536:i}function Hn(e){var t=/^\n* /;return t.test(e)}var Pn=1,It=2,Mn=3,jn=4,le=5;function Ho(e,t,i,r,u,s,n,o){var l,a=0,h=null,c=!1,D=!1,f=r!==-1,g=-1,b=ko(Ee(e,0))&&$o(Ee(e,e.length-1));if(t||n)for(l=0;l<e.length;a>=65536?l+=2:l++){if(a=Ee(e,l),!xe(a))return le;b=b&&qr(a,h,o),h=a}else{for(l=0;l<e.length;a>=65536?l+=2:l++){if(a=Ee(e,l),a===ye)c=!0,f&&(D=D||l-g-1>r&&e[g+1]!==" ",g=l);else if(!xe(a))return le;b=b&&qr(a,h,o),h=a}D=D||f&&l-g-1>r&&e[g+1]!==" "}return!c&&!D?b&&!n&&!u(e)?Pn:s===be?le:It:i>9&&Hn(e)?le:n?s===be?le:It:D?jn:Mn}function Po(e,t,i,r,u){e.dump=(function(){if(t.length===0)return e.quotingType===be?'""':"''";if(!e.noCompatMode&&(So.indexOf(t)!==-1||Bo.test(t)))return e.quotingType===be?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,i),n=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),o=r||e.flowLevel>-1&&i>=e.flowLevel;function l(a){return No(e,a)}switch(Ho(t,o,e.indent,n,l,e.quotingType,e.forceQuotes&&!r,u)){case Pn:return t;case It:return"'"+t.replace(/'/g,"''")+"'";case Mn:return"|"+Jr(t,e.indent)+zr(Gr(t,s));case jn:return">"+Jr(t,e.indent)+zr(Gr(Mo(t,n),s));case le:return'"'+jo(t)+'"';default:throw new P("impossible error: invalid scalar style")}})()}function Jr(e,t){var i=Hn(e)?String(t):"",r=e[e.length-1]===`
80
+ `,u=r&&(e[e.length-2]===`
81
+ `||e===`
82
+ `),s=u?"+":r?"":"-";return i+s+`
83
+ `}function zr(e){return e[e.length-1]===`
84
+ `?e.slice(0,-1):e}function Mo(e,t){for(var i=/(\n+)([^\n]*)/g,r=(function(){var a=e.indexOf(`
85
+ `);return a=a!==-1?a:e.length,i.lastIndex=a,Qr(e.slice(0,a),t)})(),u=e[0]===`
86
+ `||e[0]===" ",s,n;n=i.exec(e);){var o=n[1],l=n[2];s=l[0]===" ",r+=o+(!u&&!s&&l!==""?`
87
+ `:"")+Qr(l,t),u=s}return r}function Qr(e,t){if(e===""||e[0]===" ")return e;for(var i=/ [^ ]/g,r,u=0,s,n=0,o=0,l="";r=i.exec(e);)o=r.index,o-u>t&&(s=n>u?n:o,l+=`
88
+ `+e.slice(u,s),u=s+1),n=o;return l+=`
89
+ `,e.length-u>t&&n>u?l+=e.slice(u,n)+`
90
+ `+e.slice(n+1):l+=e.slice(u),l.slice(1)}function jo(e){for(var t="",i=0,r,u=0;u<e.length;i>=65536?u+=2:u++)i=Ee(e,u),r=H[i],!r&&xe(i)?(t+=e[u],i>=65536&&(t+=e[u+1])):t+=r||Ro(i);return t}function Uo(e,t,i){var r="",u=e.tag,s,n,o;for(s=0,n=i.length;s<n;s+=1)o=i[s],e.replacer&&(o=e.replacer.call(i,String(s),o)),(q(e,t,o,!1,!1)||typeof o>"u"&&q(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=u,e.dump="["+r+"]"}function Zr(e,t,i,r){var u="",s=e.tag,n,o,l;for(n=0,o=i.length;n<o;n+=1)l=i[n],e.replacer&&(l=e.replacer.call(i,String(n),l)),(q(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&q(e,t+1,null,!0,!0,!1,!0))&&((!r||u!=="")&&(u+=Rt(e,t)),e.dump&&ye===e.dump.charCodeAt(0)?u+="-":u+="- ",u+=e.dump);e.tag=s,e.dump=u||"[]"}function Wo(e,t,i){var r="",u=e.tag,s=Object.keys(i),n,o,l,a,h;for(n=0,o=s.length;n<o;n+=1)h="",r!==""&&(h+=", "),e.condenseFlow&&(h+='"'),l=s[n],a=i[l],e.replacer&&(a=e.replacer.call(i,l,a)),q(e,t,l,!1,!1)&&(e.dump.length>1024&&(h+="? "),h+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),q(e,t,a,!1,!1)&&(h+=e.dump,r+=h));e.tag=u,e.dump="{"+r+"}"}function Vo(e,t,i,r){var u="",s=e.tag,n=Object.keys(i),o,l,a,h,c,D;if(e.sortKeys===!0)n.sort();else if(typeof e.sortKeys=="function")n.sort(e.sortKeys);else if(e.sortKeys)throw new P("sortKeys must be a boolean or a function");for(o=0,l=n.length;o<l;o+=1)D="",(!r||u!=="")&&(D+=Rt(e,t)),a=n[o],h=i[a],e.replacer&&(h=e.replacer.call(i,a,h)),q(e,t+1,a,!0,!0,!0)&&(c=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,c&&(e.dump&&ye===e.dump.charCodeAt(0)?D+="?":D+="? "),D+=e.dump,c&&(D+=Rt(e,t)),q(e,t+1,h,!0,c)&&(e.dump&&ye===e.dump.charCodeAt(0)?D+=":":D+=": ",D+=e.dump,u+=D));e.tag=s,e.dump=u||"{}"}function Xr(e,t,i){var r,u,s,n,o,l;for(u=i?e.explicitTypes:e.implicitTypes,s=0,n=u.length;s<n;s+=1)if(o=u[s],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(i?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(l=e.styleMap[o.tag]||o.defaultStyle,On.call(o.represent)==="[object Function]")r=o.represent(t,l);else if(Rn.call(o.represent,l))r=o.represent[l](t,l);else throw new P("!<"+o.tag+'> tag resolver accepts not "'+l+'" style');e.dump=r}return!0}return!1}function q(e,t,i,r,u,s,n){e.tag=null,e.dump=i,Xr(e,i,!1)||Xr(e,i,!0);var o=On.call(e.dump),l=r,a;r&&(r=e.flowLevel<0||e.flowLevel>t);var h=o==="[object Object]"||o==="[object Array]",c,D;if(h&&(c=e.duplicates.indexOf(i),D=c!==-1),(e.tag!==null&&e.tag!=="?"||D||e.indent!==2&&t>0)&&(u=!1),D&&e.usedDuplicates[c])e.dump="*ref_"+c;else{if(h&&D&&!e.usedDuplicates[c]&&(e.usedDuplicates[c]=!0),o==="[object Object]")r&&Object.keys(e.dump).length!==0?(Vo(e,t,e.dump,u),D&&(e.dump="&ref_"+c+e.dump)):(Wo(e,t,e.dump),D&&(e.dump="&ref_"+c+" "+e.dump));else if(o==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!n&&t>0?Zr(e,t-1,e.dump,u):Zr(e,t,e.dump,u),D&&(e.dump="&ref_"+c+e.dump)):(Uo(e,t,e.dump),D&&(e.dump="&ref_"+c+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&Po(e,e.dump,t,s,l);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new P("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(a=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?a="!"+a:a.slice(0,18)==="tag:yaml.org,2002:"?a="!!"+a.slice(18):a="!<"+a+">",e.dump=a+" "+e.dump)}return!0}function Yo(e,t){var i=[],r=[],u,s;for(Lt(e,i,r),u=0,s=r.length;u<s;u+=1)t.duplicates.push(i[r[u]]);t.usedDuplicates=new Array(s)}function Lt(e,t,i){var r,u,s;if(e!==null&&typeof e=="object")if(u=t.indexOf(e),u!==-1)i.indexOf(u)===-1&&i.push(u);else if(t.push(e),Array.isArray(e))for(u=0,s=e.length;u<s;u+=1)Lt(e[u],t,i);else for(r=Object.keys(e),u=0,s=r.length;u<s;u+=1)Lt(e[r[u]],t,i)}function Go(e,t){t=t||{};var i=new Lo(t);i.noRefs||Yo(e,i);var r=e;return i.replacer&&(r=i.replacer.call({"":r},"",r)),q(i,0,r,!0,!0)?i.dump+`
91
+ `:""}var Ko=Go,qo={dump:Ko};function Mt(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var Jo=k,zo=rn,Qo=on,Zo=Dn,Xo=fn,el=kt,tl=Bn.load,rl=Bn.loadAll,nl=qo.dump,il=P,ul={binary:Cn,float:hn,map:sn,null:ln,pairs:En,set:An,timestamp:mn,bool:an,int:cn,merge:gn,omap:Fn,seq:un,str:nn},sl=Mt("safeLoad","load"),ol=Mt("safeLoadAll","loadAll"),ll=Mt("safeDump","dump"),al={Type:Jo,Schema:zo,FAILSAFE_SCHEMA:Qo,JSON_SCHEMA:Zo,CORE_SCHEMA:Xo,DEFAULT_SCHEMA:el,load:tl,loadAll:rl,dump:nl,YAMLException:il,types:ul,safeLoad:sl,safeLoadAll:ol,safeDump:ll},Ye=al;var _e=Se(Ci(),1);import{readFileSync as sa,writeFileSync as Si,existsSync as it,mkdirSync as oa}from"fs";import{dirname as la}from"path";import{existsSync as rr,mkdirSync as Ii,readFileSync as da,writeFileSync as ma}from"fs";import{homedir as ga}from"os";import{join as Jt,dirname as Li,isAbsolute as Zc,relative as Xc,sep as eh}from"path";var T=$l();function Hl(){let e=process.platform;if(e==="win32"){let t=process.env.APPDATA||E(T,"AppData","Roaming");return{appSupport:t,vscodePath:E(t,"Code","User"),gooseConfigPath:E(t,"Block","goose","config","config.yaml")}}else{if(e==="darwin")return{appSupport:E(T,"Library","Application Support"),vscodePath:E(T,"Library","Application Support","Code","User"),gooseConfigPath:E(T,".config","goose","config.yaml")};{let t=process.env.XDG_CONFIG_HOME||E(T,".config");return{appSupport:t,vscodePath:E(t,"Code","User"),gooseConfigPath:E(t,"goose","config.yaml")}}}}var{appSupport:fe,vscodePath:qt,gooseConfigPath:Fi}=Hl(),Pl=E(T,".gemini","config","mcp_config.json"),Ei=E(process.env.CLINE_DIR||E(T,".cline"),"data","settings","cline_mcp_settings.json"),Ai=E(qt,"globalStorage","saoudrizwan.claude-dev","settings","cline_mcp_settings.json"),yi=E(process.env.XDG_CONFIG_HOME||E(T,".copilot"),"mcp-config.json"),Ml=E(T,".codeium","windsurf","mcp_config.json");function wi(e){let t={};return e.type&&(t.type=e.type),e.url&&(t.url=e.url),e.headers&&Object.keys(e.headers).length>0&&(t.headers=e.headers),typeof e.timeout=="number"&&(t.timeout=e.timeout),t}function zt(e){let t={command:e.command,args:e.args||[]};return e.env&&Object.keys(e.env).length>0&&(t.env=e.env),t}function Xe(e,t){return t.url?wi(t):zt(t)}function jl(e,t){if(!t.url)return zt(t);let i=wi(t);return t.oauthScopes&&t.oauthScopes.length>0&&(i.oauth={scopes:t.oauthScopes}),i}function Ul(e,t){if(t.url){let i=t.type==="sse"?"sse":"streamable_http";return{name:e,description:"",type:i,uri:t.url,headers:t.headers||{},enabled:!0,timeout:300}}return{name:e,description:"",cmd:t.command,args:t.args||[],enabled:!0,envs:t.env||{},type:"stdio",timeout:300}}function Wl(e,t){return t.url?{source:"custom",type:t.type||"http",url:t.url,headers:t.headers||{}}:{source:"custom",command:t.command,args:t.args||[],env:t.env||{}}}function Vl(e,t){return t.url?{type:"remote",url:t.url,enabled:!0,headers:t.headers}:{type:"local",command:[t.command,...t.args||[]],enabled:!0,environment:t.env||{}}}function bi(e,t){return t?t.length===0?(e.default_tools_approval_mode="approve",e):(e.tools=Object.fromEntries(t.map(i=>[i,{approval_mode:"approve"}])),e):e}function Yl(e,t){if(t.url){let i={type:t.type||"http",url:t.url};return t.headers&&Object.keys(t.headers).length>0&&(i.http_headers=t.headers),bi(i,t.autoApproveTools)}return bi({command:t.command,args:t.args||[],env:t.env},t.autoApproveTools)}function Gl(e,t){if(t.url){let i={url:t.url};return t.headers&&Object.keys(t.headers).length>0&&(i.headers=t.headers),t.oauthScopes&&t.oauthScopes.length>0&&(i.auth={scopes:t.oauthScopes}),i}return zt(t)}function xi(e,t){if(t.url){let r={url:t.url,type:t.type==="sse"?"sse":"streamableHttp",disabled:!1};return t.headers&&Object.keys(t.headers).length>0&&(r.headers=t.headers),r}let i={command:t.command,args:t.args||[],disabled:!1};return t.env&&Object.keys(t.env).length>0&&(i.env=t.env),i}function vi(e,t){if(t.url){let r={serverUrl:t.url};return t.headers&&Object.keys(t.headers).length>0&&(r.headers=t.headers),r}let i={command:t.command,args:t.args||[]};return t.env&&Object.keys(t.env).length>0&&(i.env=t.env),i}function Kl(e,t,i){if(i?.local)return t;if(t.url){let u={type:t.type||"http",url:t.url,tools:["*"]};return t.headers&&Object.keys(t.headers).length>0&&(u.headers=t.headers),u}let r={type:"stdio",command:t.command,args:t.args||[],tools:["*"]};return t.env&&Object.keys(t.env).length>0&&(r.env=t.env),r}function ql(e,t){if(t.local&&e.localConfigPath)return E(t.cwd,e.localConfigPath);let i=e.configPath,r=E(et(i),"mcporter.jsonc");return N(i)?i:N(r)?r:i}var R={antigravity:{name:"antigravity",displayName:"Antigravity",configPath:Pl,projectDetectPaths:[],configKey:"mcpServers",format:"json",supportedTransports:["stdio","http","sse"],supportedFields:[],detectGlobalInstall:async()=>N(E(T,".gemini","config")),transformConfig:vi},cline:{name:"cline",displayName:"Cline VSCode Extension",configPath:Ai,projectDetectPaths:[],configKey:"mcpServers",format:"json",supportedTransports:["stdio","http","sse"],supportedFields:[],detectGlobalInstall:async()=>N(et(Ai)),transformConfig:xi},"cline-cli":{name:"cline-cli",displayName:"Cline CLI",configPath:Ei,projectDetectPaths:[],configKey:"mcpServers",format:"json",supportedTransports:["stdio","http","sse"],supportedFields:[],detectGlobalInstall:async()=>N(et(Ei)),transformConfig:xi},"claude-code":{name:"claude-code",displayName:"Claude Code",configPath:E(T,".claude.json"),localConfigPath:".mcp.json",projectDetectPaths:[".mcp.json",".claude"],configKey:"mcpServers",format:"json",supportedTransports:["stdio","http","sse"],supportedFields:["timeout","autoApprove"],detectGlobalInstall:async()=>N(E(T,".claude")),transformConfig:Xe},"claude-desktop":{name:"claude-desktop",displayName:"Claude Desktop",configPath:E(fe,"Claude","claude_desktop_config.json"),projectDetectPaths:[],configKey:"mcpServers",format:"json",supportedTransports:["stdio"],supportedFields:[],unsupportedTransportMessage:"Claude Desktop only supports local (stdio) servers via its config file. Add remote servers through Settings \u2192 Connectors in the app instead.",detectGlobalInstall:async()=>N(E(fe,"Claude")),transformConfig:Xe},codex:{name:"codex",displayName:"Codex",configPath:E(process.env.CODEX_HOME||E(T,".codex"),"config.toml"),localConfigPath:".codex/config.toml",projectDetectPaths:[".codex"],configKey:"mcp_servers",format:"toml",supportedTransports:["stdio","http","sse"],supportedFields:["autoApprove"],detectGlobalInstall:async()=>N(E(T,".codex")),transformConfig:Yl},cursor:{name:"cursor",displayName:"Cursor",configPath:E(T,".cursor","mcp.json"),localConfigPath:".cursor/mcp.json",projectDetectPaths:[".cursor"],configKey:"mcpServers",format:"json",supportedTransports:["stdio","http","sse"],supportedFields:["scopes"],detectGlobalInstall:async()=>N(E(T,".cursor")),transformConfig:Gl},"gemini-cli":{name:"gemini-cli",displayName:"Gemini CLI",configPath:E(T,".gemini","settings.json"),localConfigPath:".gemini/settings.json",projectDetectPaths:[".gemini"],configKey:"mcpServers",format:"json",supportedTransports:["stdio","http","sse"],supportedFields:["timeout","scopes"],detectGlobalInstall:async()=>N(E(T,".gemini")),transformConfig:jl},goose:{name:"goose",displayName:"Goose",configPath:Fi,projectDetectPaths:[],configKey:"extensions",format:"yaml",supportedTransports:["stdio","http","sse"],supportedFields:[],detectGlobalInstall:async()=>N(Fi),transformConfig:Ul},"github-copilot-cli":{name:"github-copilot-cli",displayName:"GitHub Copilot CLI",configPath:yi,localConfigPath:".vscode/mcp.json",projectDetectPaths:[".vscode"],configKey:"mcpServers",localConfigKey:"servers",format:"json",supportedTransports:["stdio","http","sse"],supportedFields:[],detectGlobalInstall:async()=>N(et(yi)),transformConfig:Kl},mcporter:{name:"mcporter",displayName:"MCPorter",configPath:E(T,".mcporter","mcporter.json"),localConfigPath:"config/mcporter.json",projectDetectPaths:["config/mcporter.json"],configKey:"mcpServers",format:"json",supportedTransports:["stdio","http","sse"],supportedFields:[],detectGlobalInstall:async()=>N(E(T,".mcporter")),resolveConfigPath:ql,transformConfig:Xe},opencode:{name:"opencode",displayName:"OpenCode",configPath:E(T,".config","opencode","opencode.json"),localConfigPath:"opencode.json",projectDetectPaths:["opencode.json",".opencode"],configKey:"mcp",format:"json",supportedTransports:["stdio","http","sse"],supportedFields:[],detectGlobalInstall:async()=>N(E(T,".config","opencode")),transformConfig:Vl},vscode:{name:"vscode",displayName:"VS Code",configPath:E(qt,"mcp.json"),localConfigPath:".vscode/mcp.json",projectDetectPaths:[".vscode"],configKey:"servers",format:"json",supportedTransports:["stdio","http","sse"],supportedFields:[],detectGlobalInstall:async()=>N(qt),transformConfig:Xe},windsurf:{name:"windsurf",displayName:"Windsurf",configPath:Ml,projectDetectPaths:[],configKey:"mcpServers",format:"json",supportedTransports:["stdio","http","sse"],supportedFields:[],detectGlobalInstall:async()=>N(E(T,".codeium","windsurf")),transformConfig:vi},zed:{name:"zed",displayName:"Zed",configPath:process.platform==="darwin"||process.platform==="win32"?E(fe,"Zed","settings.json"):E(fe,"zed","settings.json"),localConfigPath:".zed/settings.json",projectDetectPaths:[".zed"],configKey:"context_servers",format:"json",supportedTransports:["stdio","http","sse"],supportedFields:[],detectGlobalInstall:async()=>{let e=process.platform==="darwin"||process.platform==="win32"?E(fe,"Zed"):E(fe,"zed");return N(e)},transformConfig:Wl}};function Z(){return Object.keys(R)}function Qt(e){let t=e||process.cwd(),i=[];for(let[r,u]of Object.entries(R))if(u.localConfigPath){for(let s of u.projectDetectPaths)if(N(E(t,s))){i.push(r);break}}return i}async function Zt(){let e=[];for(let[t,i]of Object.entries(R))await i.detectGlobalInstall()&&e.push(t);return e}function ut(e,t){let i={...e};for(let r in t){let u=t[r],s=i[r];u&&typeof u=="object"&&!Array.isArray(u)?i[r]=ut(s&&typeof s=="object"?s:{},u):i[r]=u}return i}function st(e,t){let i=t.split("."),r=e;for(let u of i)if(r&&typeof r=="object"&&u in r)r=r[u];else return;return r}function _i(e){let t=null;return Hr(e,{onObjectProperty:(i,r,u,s,n)=>{if(t===null&&s>0&&n>0){let o=e.lastIndexOf(`
92
+ `,r-1)+1,l=e.slice(o,r);t={tabSize:n,insertSpaces:!l.includes(" ")}}}}),t||{tabSize:2,insertSpaces:!0}}function Ql(e){if(!rt(e))return{};let t=Xt(e,"utf-8");return He(t)}function Zl(e,t,i){let r=zl(e);rt(r)||Jl(r,{recursive:!0});let u="",s={};rt(e)&&(u=Xt(e,"utf-8"),s=He(u));let n=ut(s,t);if(u)try{let o=i.split("."),l=st(n,i),a=vt(u,o,l,{formattingOptions:_i(u)}),h=wt(u,a);tt(e,h);return}catch{}tt(e,JSON.stringify(n,null,2))}function Xl(e,t,i){if(!rt(e))return;let r=Xt(e,"utf-8"),u=t.split(".");try{let o=vt(r,[...u,i],void 0,{formattingOptions:_i(r)}),l=wt(r,o);tt(e,l);return}catch{}let s=He(r),n=st(s,t);n&&typeof n=="object"&&i in n&&delete n[i],tt(e,JSON.stringify(s,null,2))}function ea(e,t,i){let r=t.split("."),u=r.pop();if(!u)return;let s=e;for(let n of r)(!s[n]||typeof s[n]!="object")&&(s[n]={}),s=s[n];s[u]=i}function er(e){if(!nt(e))return{};let t=ta(e,"utf-8");return Ye.load(t)||{}}function ia(e,t,i){if(!nt(e))return;let r=er(e),u=t.split("."),s=r;for(let o of u)if(s&&typeof s=="object"&&o in s)s=s[o];else return;s&&typeof s=="object"&&i in s&&delete s[i];let n=Ye.dump(r,{indent:2,lineWidth:-1,noRefs:!0});Ti(e,n)}function ua(e,t){let i=na(e);nt(i)||ra(i,{recursive:!0});let r={};nt(e)&&(r=er(e));let u=ut(r,t),s=Ye.dump(u,{indent:2,lineWidth:-1,noRefs:!0});Ti(e,s)}function tr(e){if(!it(e))return{};let t=sa(e,"utf-8");return _e.parse(t)}function aa(e,t,i){if(!it(e))return;let r=tr(e),u=t.split("."),s=r;for(let o of u)if(s&&typeof s=="object"&&o in s)s=s[o];else return;s&&typeof s=="object"&&i in s&&delete s[i];let n=_e.stringify(r);Si(e,n)}function ca(e,t){let i=la(e);it(i)||oa(i,{recursive:!0});let r={};it(e)&&(r=tr(e));let u=ut(r,t),s=_e.stringify(u);Si(e,s)}function Bi(e,t){switch(t){case"json":return Ql(e);case"yaml":return er(e);case"toml":return tr(e);default:throw new Error(`Unsupported config format: ${t}`)}}function Oi(e,t,i,r){switch(t){case"json":Xl(e,i,r);break;case"yaml":ia(e,i,r);break;case"toml":aa(e,i,r);break;default:throw new Error(`Unsupported config format: ${t}`)}}function ha(e,t,i,r){switch(i){case"json":Zl(e,t,r);break;case"yaml":ua(e,t);break;case"toml":ca(e,t);break;default:throw new Error(`Unsupported config format: ${i}`)}}function Da(e,t,i){let r={},u={};return u[t]=i,ea(r,e,u),r}var Ri={timeout:{label:"request timeout",isSet:e=>typeof e.timeout=="number",clear:e=>{delete e.timeout}},scopes:{label:"OAuth scopes",isSet:e=>Array.isArray(e.oauthScopes)&&e.oauthScopes.length>0,clear:e=>{delete e.oauthScopes}},autoApprove:{label:"tool auto-approval",isSet:e=>Array.isArray(e.autoApproveTools),clear:e=>{delete e.autoApproveTools}}},fa=Object.keys(Ri);function pa(e,t){let i=new Set(t),r={...e};r.oauthScopes&&(r.oauthScopes=[...r.oauthScopes]),r.autoApproveTools&&(r.autoApproveTools=[...r.autoApproveTools]);let u=[];for(let s of fa){let n=Ri[s];n.isSet(r)&&!i.has(s)&&(n.clear(r),u.push(s))}return{config:r,dropped:u}}var Ca=ga();function Fa(e){if(!rr(e))return{};let t=JSON.parse(da(e,"utf-8"));return t&&typeof t=="object"&&!Array.isArray(t)?t:{}}function Ea(e,t){let i=Li(e);rr(i)||Ii(i,{recursive:!0}),ma(e,`${JSON.stringify(t,null,2)}
93
+ `,"utf-8")}function Aa(e,t){let i=Array.isArray(e)?e.filter(r=>typeof r=="string"):[];for(let r of t)i.includes(r)||i.push(r);return i}function ya(e,t){return t.length===0?[`mcp__${e}`]:t.map(i=>`mcp__${e}__${i}`)}function ba(e={}){let t=!!e.local,i=e.cwd||process.cwd();return t?Jt(i,".claude","settings.local.json"):Jt(Ca,".claude","settings.json")}function xa(e,t,i={}){let r=ba(i);try{let u=Fa(r),s=u.permissions&&typeof u.permissions=="object"&&!Array.isArray(u.permissions)?u.permissions:{};return s.allow=Aa(s.allow,ya(e,t)),u.permissions=s,Ea(r,u),{success:!0,path:r}}catch(u){return{success:!1,path:r,error:u instanceof Error?u.message:"Unknown error"}}}function ot(e,t={}){let i=!!t.local,r=t.cwd||process.cwd();return e.resolveConfigPath?e.resolveConfigPath(e,{local:i,cwd:r}):i&&e.localConfigPath?Jt(r,e.localConfigPath):e.configPath}function nr(e,t={}){return t.local&&e.localConfigKey?e.localConfigKey:e.configKey}function Ni(e,t,i,r={}){let u=R[i],s=ot(u,r);try{let n=Li(s);rr(n)||Ii(n,{recursive:!0});let{config:o,dropped:l}=pa(t,u.supportedFields),a=u.transformConfig(e,o,{local:!!r.local}),h=nr(u,r),c=Da(h,e,a);ha(s,c,u.format,h);let D=[];if(i==="claude-code"&&o.autoApproveTools){let f=xa(e,o.autoApproveTools,r);if(!f.success)return{success:!1,path:f.path,error:f.error};D.push(f.path)}return{success:!0,path:s,...l.length>0?{droppedFields:l}:{},...D.length>0?{extraPaths:D}:{}}}catch(n){return{success:!1,path:s,error:n instanceof Error?n.message:"Unknown error"}}}import{existsSync as va}from"fs";function wa(e){return Object.prototype.hasOwnProperty.call(R,e)}function ki(e,t){return wa(e)?t&&!R[e].localConfigPath?`${e} does not support project-level config`:null:`Unknown agent type: ${String(e)}`}function $i(e,t,i,r={}){let u=ki(e,r.local);return u?{success:!1,path:"",error:u}:Ni(t,i,e,r)}function _a(e,t){return!!e&&typeof e=="object"&&!Array.isArray(e)&&Object.prototype.hasOwnProperty.call(e,t)}function Ta(e,t,i){let r=R[e],u=ot(r,i),s=nr(r,i);if(!va(u))return{success:!0,path:u,removed:!1};let n=Bi(u,r.format);return _a(st(n,s),t)?(Oi(u,r.format,s,t),{success:!0,path:u,removed:!0}):{success:!0,path:u,removed:!1}}function Hi(e,t,i={}){let r=ki(e,i.local);if(r)return{success:!1,path:"",removed:!1,error:r};let u=e;try{return Ta(u,t,i)}catch(s){return{success:!1,path:ot(R[u],i),removed:!1,error:s instanceof Error?s.message:"Unknown error"}}}var Sa="https://shaders.com/mcp",ir="shaders",Pi="https://shaders.com/docs/guide/mcp";function Mi(){let e=Z().join(", ");console.log(`shaders \u2014 Shaders CLI (https://shaders.com)
94
+
95
+ Usage:
96
+ npx shaders install-mcp [options] Add the Shaders MCP server to your coding agents
97
+ npx shaders uninstall-mcp [options] Remove the Shaders MCP server from your coding agents
98
+
99
+ Options:
100
+ -a, --agent <name> Target specific agent(s), repeatable (e.g. -a cursor -a claude-code)
101
+ -g, --global Use global (user-level) config instead of project config
102
+ -y, --yes Skip prompts and use auto-detected agents
103
+ -h, --help Show this help
104
+ -v, --version Show version
105
+
106
+ Supported agents:
107
+ ${e}
108
+
109
+ Docs: ${Pi}`)}function Ba(e){let t={global:!1,yes:!1,agents:[]},i;for(let r=0;r<e.length;r++){let u=e[r];switch(u){case"-g":case"--global":t.global=!0;break;case"-y":case"--yes":t.yes=!0;break;case"-a":case"--agent":{let s=e[++r];s||ie(`Missing value for ${u}`),t.agents.push(...s.split(",").map(n=>n.trim()).filter(Boolean));break}case"-h":case"--help":Mi(),process.exit(0);break;case"-v":case"--version":console.log("2.5.135"),process.exit(0);break;default:u.startsWith("-")&&ie(`Unknown option: ${u} (see npx shaders --help)`),i&&ie(`Unexpected argument: ${u}`),i=u}}return{command:i,flags:t}}function ie(e){console.error(`\u2717 ${e}`),process.exit(1)}function ji(e){let t=new Set(Z());for(let i of e)t.has(i)||ie(`Unknown agent "${i}". Supported agents: ${Z().join(", ")}`);return e}async function Oa(e,t){if(e.agents.length>0)return{targets:ji(e.agents),scope:e.global?"global":"project"};let i=e.global?[]:Qt(t),r=e.global||i.length===0?"global":"project",u=r==="project"?i:await Zt();if(!(!e.yes&&process.stdout.isTTY&&process.stdin.isTTY))return u.length===0&&ie(`No coding agents detected. Pass one explicitly, e.g. npx shaders install-mcp -a cursor
110
+ Supported agents: ${Z().join(", ")}`),{targets:u,scope:r};let n=await Et({message:`Install the Shaders MCP server to which agents? (${r} config)`,options:Z().map(o=>({value:o,label:R[o].displayName,hint:r==="project"&&R[o].localConfigPath?R[o].localConfigPath:R[o].configPath.replace(/^\/Users\/[^/]+|^\/home\/[^/]+|^C:\\Users\\[^\\]+/,"~")})),initialValues:u,required:!0});return de(n)&&(console.log("Cancelled \u2014 nothing was changed."),process.exit(0)),{targets:n,scope:r}}async function Ra(e){let t=process.cwd(),{targets:i,scope:r}=await Oa(e,t),u=0;for(let s of i){let n=r==="project"&&!!R[s].localConfigPath,o=$i(s,ir,{type:"http",url:Sa},{local:n,cwd:t});o.success?console.log(`\u2713 ${R[s].displayName} \u2014 ${o.path}`):(u++,console.error(`\u2717 ${R[s].displayName} \u2014 ${o.error}`))}u===i.length&&process.exit(1),console.log(`
111
+ Done! Open your agent and connect to the "${ir}" MCP server \u2014 you'll be
112
+ prompted to sign in to your Shaders account (Pro) the first time it connects.
113
+
114
+ Docs: ${Pi}`)}async function Ia(e){let t=process.cwd(),i=e.agents.length>0?ji(e.agents):Z(),r=0,u=0,s=0;for(let n of i){let o=e.global||!R[n].localConfigPath?[!1]:[!0,!1];for(let l of o){u++;let a=Hi(n,ir,{local:l,cwd:t});a.success&&a.removed?(r++,console.log(`\u2713 Removed from ${R[n].displayName} \u2014 ${a.path}`)):a.success||(s++,console.error(`\u2717 ${R[n].displayName} \u2014 ${a.error}`))}}u>0&&s===u&&process.exit(1),r===0&&s===0&&console.log("No Shaders MCP server entries found.")}async function La(){let{command:e,flags:t}=Ba(process.argv.slice(2));switch(e){case"install-mcp":await Ra(t);break;case"uninstall-mcp":await Ia(t);break;case void 0:case"help":Mi();break;default:ie(`Unknown command "${e}" (see npx shaders --help)`)}}La().catch(e=>{ie(e instanceof Error?e.message:String(e))});
@@ -639,7 +639,7 @@ function createUniformsMap(component, reactiveProps, instanceId) {
639
639
  });
640
640
  uniformValue = 0;
641
641
  }
642
- const uniformNode = uniform(uniformValue).setName(`${propName}_${instanceId}`);
642
+ const uniformNode = uniform(uniformValue).setName(`${propName}_${instanceId}`.replace(/[^a-zA-Z0-9_]/g, "_"));
643
643
  if (typeof uniformValue === "string" && uniformNode.value === null) uniformNode.value = uniformValue;
644
644
  uniformsMap[propName] = {
645
645
  uniform: uniformNode,
@@ -2583,7 +2583,7 @@ function createRendererFromJSON(preset, options) {
2583
2583
  console.warn(`[createRendererFromJSON] Unknown component type: ${component.type}`);
2584
2584
  return;
2585
2585
  }
2586
- const nodeId = component.id || `${component.type}_${Date.now()}_${Math.random()}`;
2586
+ const nodeId = component.id || `${component.type}_${Date.now()}_${Math.random().toString(36).slice(2, 9)}`;
2587
2587
  nodeIdMap.set(nodeId, component.type);
2588
2588
  const uniforms = createUniformsMap(componentDef, Object.fromEntries(Object.entries(componentDef.props).map(([key, propConfig]) => [key, component.props?.[key] !== void 0 ? component.props[key] : propConfig.default])), nodeId);
2589
2589
  const metadata = {
@@ -1 +1 @@
1
- {"version":3,"file":"uniforms.d.ts","sourceRoot":"","sources":["../../src/utilities/uniforms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAUhE,wBAAgB,iBAAiB,CAC7B,SAAS,EAAE,mBAAmB,EAC9B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAClC,UAAU,EAAE,MAAM,GACnB,WAAW,CAuDb;AAED,wBAAgB,kBAAkB,CAC9B,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,EAC5B,QAAQ,EAAE,GAAG,GACd,IAAI,CA6BN"}
1
+ {"version":3,"file":"uniforms.d.ts","sourceRoot":"","sources":["../../src/utilities/uniforms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAUhE,wBAAgB,iBAAiB,CAC7B,SAAS,EAAE,mBAAmB,EAC9B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAClC,UAAU,EAAE,MAAM,GACnB,WAAW,CAyDb;AAED,wBAAgB,kBAAkB,CAC9B,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,EAC5B,QAAQ,EAAE,GAAG,GACd,IAAI,CA6BN"}