coze-coding-dev-sdk 0.7.11 → 0.7.13

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.
@@ -64,10 +64,10 @@ ${t}`)}boxWrap(n,e){if(e<this.minWidthToWrap)return n;let i=n.split(/\r\n|\n/),a
64
64
  - too many long flags`);throw Error(`${i}
65
65
  - unrecognised flag format`)}if(void 0===e&&void 0===i)throw Error(`option creation failed due to no flags found in '${n}'.`);return{shortFlag:e,longFlag:i}}(n);this.short=i.shortFlag,this.long=i.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(n,e){return this.defaultValue=n,this.defaultValueDescription=e,this}preset(n){return this.presetArg=n,this}conflicts(n){return this.conflictsWith=this.conflictsWith.concat(n),this}implies(n){let e=n;return"string"==typeof n&&(e={[n]:!0}),this.implied=Object.assign(this.implied||{},e),this}env(n){return this.envVar=n,this}argParser(n){return this.parseArg=n,this}makeOptionMandatory(n=!0){return this.mandatory=!!n,this}hideHelp(n=!0){return this.hidden=!!n,this}_collectValue(n,e){return e!==this.defaultValue&&Array.isArray(e)?(e.push(n),e):[n]}choices(n){return this.argChoices=n.slice(),this.parseArg=(n,e)=>{if(!this.argChoices.includes(n))throw new a(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(n,e):n},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?u(this.name().replace(/^no-/,"")):u(this.name())}helpGroup(n){return this.helpGroupHeading=n,this}is(n){return this.short===n||this.long===n}isBoolean(){return!this.required&&!this.optional&&!this.negate}},e.DualOptions=class{constructor(n){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,n.forEach(n=>{n.negate?this.negativeOptions.set(n.attributeName(),n):this.positiveOptions.set(n.attributeName(),n)}),this.negativeOptions.forEach((n,e)=>{this.positiveOptions.has(e)&&this.dualOptions.add(e)})}valueFromOption(n,e){let i=e.attributeName();if(!this.dualOptions.has(i))return!0;let a=this.negativeOptions.get(i).presetArg;return e.negate===((void 0!==a&&a)===n)}}},"./node_modules/commander/lib/suggestSimilar.js"(n,e){e.suggestSimilar=function(n,e){if(!e||0===e.length)return"";e=Array.from(new Set(e));let i=n.startsWith("--");i&&(n=n.slice(2),e=e.map(n=>n.slice(2)));let a=[],u=3;return(e.forEach(e=>{if(e.length<=1)return;let i=function(n,e){if(Math.abs(n.length-e.length)>3)return Math.max(n.length,e.length);let i=[];for(let e=0;e<=n.length;e++)i[e]=[e];for(let n=0;n<=e.length;n++)i[0][n]=n;for(let a=1;a<=e.length;a++)for(let u=1;u<=n.length;u++){let t=1;t=+(n[u-1]!==e[a-1]),i[u][a]=Math.min(i[u-1][a]+1,i[u][a-1]+1,i[u-1][a-1]+t),u>1&&a>1&&n[u-1]===e[a-2]&&n[u-2]===e[a-1]&&(i[u][a]=Math.min(i[u][a],i[u-2][a-2]+1))}return i[n.length][e.length]}(n,e),t=Math.max(n.length,e.length);(t-i)/t>.4&&(i<u?(u=i,a=[e]):i===u&&a.push(e))}),a.sort((n,e)=>n.localeCompare(e)),i&&(a=a.map(n=>`--${n}`)),a.length>1)?`
66
66
  (Did you mean one of ${a.join(", ")}?)`:1===a.length?`
67
- (Did you mean ${a[0]}?)`:""}},"./node_modules/tslib/tslib.es6.mjs"(n,e,i){"use strict";i.d(e,{Ju:()=>t,YH:()=>u,sH:()=>a});function a(n,e,i,a){return new(i||(i=Promise))(function(u,t){function o(n){try{r(a.next(n))}catch(n){t(n)}}function l(n){try{r(a.throw(n))}catch(n){t(n)}}function r(n){var e;n.done?u(n.value):((e=n.value)instanceof i?e:new i(function(n){n(e)})).then(o,l)}r((a=a.apply(n,e||[])).next())})}function u(n,e){var i,a,u,t={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(r){var s=[l,r];if(i)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(t=0)),t;)try{if(i=1,a&&(u=2&s[0]?a.return:s[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,s[1])).done)return u;switch(a=0,u&&(s=[2&s[0],u.value]),s[0]){case 0:case 1:u=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,a=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(!(u=(u=t.trys).length>0&&u[u.length-1])&&(6===s[0]||2===s[0])){t=0;continue}if(3===s[0]&&(!u||s[1]>u[0]&&s[1]<u[3])){t.label=s[1];break}if(6===s[0]&&t.label<u[1]){t.label=u[1],u=s;break}if(u&&t.label<u[2]){t.label=u[2],t.ops.push(s);break}u[2]&&t.ops.pop(),t.trys.pop();continue}s=e.call(n,t)}catch(n){s=[6,n],a=0}finally{i=u=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}function t(n){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&n[e],a=0;if(i)return i.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&a>=n.length&&(n=void 0),{value:n&&n[a++],done:!n}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}},"./node_modules/dotenv/package.json"(n){"use strict";n.exports=JSON.parse('{"name":"dotenv","version":"17.2.3","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","pretest":"npm run lint && npm run dts-check","test":"tap run tests/**/*.js --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run tests/**/*.js --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"homepage":"https://github.com/motdotla/dotenv#readme","funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@types/node":"^18.11.3","decache":"^4.6.2","sinon":"^14.0.1","standard":"^17.0.0","standard-version":"^9.5.0","tap":"^19.2.0","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')}},__webpack_module_cache__={};function __webpack_require__(n){var e=__webpack_module_cache__[n];if(void 0!==e)return e.exports;var i=__webpack_module_cache__[n]={exports:{}};return __webpack_modules__[n](i,i.exports,__webpack_require__),i.exports}__webpack_require__.n=n=>{var e=n&&n.__esModule?()=>n.default:()=>n;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(n,e)=>{for(var i in e)__webpack_require__.o(e,i)&&!__webpack_require__.o(n,i)&&Object.defineProperty(n,i,{enumerable:!0,get:e[i]})},__webpack_require__.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e);var __webpack_exports__={};for(var __rspack_i in(()=>{"use strict";let n,e,{program:i,createCommand:a,createArgument:u,createOption:t,CommanderError:o,InvalidArgumentError:l,InvalidOptionArgumentError:r,Command:s,Argument:h,Option:g,Help:d}=__webpack_require__("./node_modules/commander/index.js");var c=__webpack_require__("./src/index.ts");let p=(n=0)=>e=>`\u001B[${e+n}m`,m=(n=0)=>e=>`\u001B[${38+n};5;${e}m`,f=(n=0)=>(e,i,a)=>`\u001B[${38+n};2;${e};${i};${a}m`,C={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(C.modifier);let S=Object.keys(C.color);[...S,...Object.keys(C.bgColor)];let Y=function(){let n=new Map;for(let[e,i]of Object.entries(C)){for(let[e,a]of Object.entries(i))C[e]={open:`\u001B[${a[0]}m`,close:`\u001B[${a[1]}m`},i[e]=C[e],n.set(a[0],a[1]);Object.defineProperty(C,e,{value:i,enumerable:!1})}return Object.defineProperty(C,"codes",{value:n,enumerable:!1}),C.color.close="\x1b[39m",C.bgColor.close="\x1b[49m",C.color.ansi=p(),C.color.ansi256=m(),C.color.ansi16m=f(),C.bgColor.ansi=p(10),C.bgColor.ansi256=m(10),C.bgColor.ansi16m=f(10),Object.defineProperties(C,{rgbToAnsi256:{value:(n,e,i)=>n===e&&e===i?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(e/255*5)+Math.round(i/255*5),enumerable:!1},hexToRgb:{value(n){let e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(n.toString(16));if(!e)return[0,0,0];let[i]=e;3===i.length&&(i=[...i].map(n=>n+n).join(""));let a=Number.parseInt(i,16);return[a>>16&255,a>>8&255,255&a]},enumerable:!1},hexToAnsi256:{value:n=>C.rgbToAnsi256(...C.hexToRgb(n)),enumerable:!1},ansi256ToAnsi:{value(n){let e,i,a;if(n<8)return 30+n;if(n<16)return 90+(n-8);if(n>=232)i=e=((n-232)*10+8)/255,a=e;else{let u=(n-=16)%36;e=Math.floor(n/36)/5,i=Math.floor(u/6)/5,a=u%6/5}let u=2*Math.max(e,i,a);if(0===u)return 30;let t=30+(Math.round(a)<<2|Math.round(i)<<1|Math.round(e));return 2===u&&(t+=60),t},enumerable:!1},rgbToAnsi:{value:(n,e,i)=>C.ansi256ToAnsi(C.rgbToAnsi256(n,e,i)),enumerable:!1},hexToAnsi:{value:n=>C.ansi256ToAnsi(C.hexToAnsi256(n)),enumerable:!1}}),C}();var y=__webpack_require__("node:process");let L=require("node:os"),b=require("node:tty");function x(n,e=globalThis.Deno?globalThis.Deno.args:y.argv){let i=n.startsWith("-")?"":1===n.length?"-":"--",a=e.indexOf(i+n),u=e.indexOf("--");return -1!==a&&(-1===u||a<u)}let{env:T}=y;function Z(e,i={}){var a;return 0!==(a=function(e,{streamIsTTY:i,sniffFlags:a=!0}={}){let u=function(){if("FORCE_COLOR"in T)return"true"===T.FORCE_COLOR?1:"false"===T.FORCE_COLOR?0:0===T.FORCE_COLOR.length?1:Math.min(Number.parseInt(T.FORCE_COLOR,10),3)}();void 0!==u&&(n=u);let t=a?n:u;if(0===t)return 0;if(a){if(x("color=16m")||x("color=full")||x("color=truecolor"))return 3;if(x("color=256"))return 2}if("TF_BUILD"in T&&"AGENT_NAME"in T)return 1;if(e&&!i&&void 0===t)return 0;let o=t||0;if("dumb"===T.TERM)return o;if("win32"===y.platform){let n=L.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in T)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(n=>n in T)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(n=>n in T)||"codeship"===T.CI_NAME?1:o;if("TEAMCITY_VERSION"in T)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(T.TEAMCITY_VERSION);if("truecolor"===T.COLORTERM||"xterm-kitty"===T.TERM||"xterm-ghostty"===T.TERM||"wezterm"===T.TERM)return 3;if("TERM_PROGRAM"in T){let n=Number.parseInt((T.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(T.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(T.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(T.TERM)||"COLORTERM"in T?1:o}(e,{streamIsTTY:e&&e.isTTY,...i}))&&{level:a,hasBasic:!0,has256:a>=2,has16m:a>=3}}x("no-color")||x("no-colors")||x("color=false")||x("color=never")?n=0:(x("color")||x("colors")||x("color=true")||x("color=always"))&&(n=1);let _={stdout:Z({isTTY:b.isatty(1)}),stderr:Z({isTTY:b.isatty(2)})},{stdout:J,stderr:D}=_,H=Symbol("GENERATOR"),X=Symbol("STYLER"),E=Symbol("IS_EMPTY"),w=["ansi","ansi","ansi256","ansi16m"],M=Object.create(null);function B(n){var e;let i;return e=n,((n,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let i=J?J.level:0;n.level=void 0===e.level?i:e.level})(i=(...n)=>n.join(" "),e),Object.setPrototypeOf(i,B.prototype),i}for(let[n,e]of(Object.setPrototypeOf(B.prototype,Function.prototype),Object.entries(Y)))M[n]={get(){let i=A(this,F(e.open,e.close,this[X]),this[E]);return Object.defineProperty(this,n,{value:i}),i}};M.visible={get(){let n=A(this,this[X],!0);return Object.defineProperty(this,"visible",{value:n}),n}};let v=(n,e,i,...a)=>"rgb"===n?"ansi16m"===e?Y[i].ansi16m(...a):"ansi256"===e?Y[i].ansi256(Y.rgbToAnsi256(...a)):Y[i].ansi(Y.rgbToAnsi(...a)):"hex"===n?v("rgb",e,i,...Y.hexToRgb(...a)):Y[i][n](...a);for(let n of["rgb","hex","ansi256"])M[n]={get(){let{level:e}=this;return function(...i){return A(this,F(v(n,w[e],"color",...i),Y.color.close,this[X]),this[E])}}},M["bg"+n[0].toUpperCase()+n.slice(1)]={get(){let{level:e}=this;return function(...i){return A(this,F(v(n,w[e],"bgColor",...i),Y.bgColor.close,this[X]),this[E])}}};let P=Object.defineProperties(()=>{},{...M,level:{enumerable:!0,get(){return this[H].level},set(n){this[H].level=n}}}),F=(n,e,i)=>{let a,u;return void 0===i?(a=n,u=e):(a=i.openAll+n,u=e+i.closeAll),{open:n,close:e,openAll:a,closeAll:u,parent:i}},A=(n,e,i)=>{let a=(...n)=>N(a,1===n.length?""+n[0]:n.join(" "));return Object.setPrototypeOf(a,P),a[H]=n,a[X]=e,a[E]=i,a},N=(n,e)=>{if(n.level<=0||!e)return n[E]?"":e;let i=n[X];if(void 0===i)return e;let{openAll:a,closeAll:u}=i;if(e.includes("\x1b"))for(;void 0!==i;)e=function(n,e,i){let a=n.indexOf(e);if(-1===a)return n;let u=e.length,t=0,o="";do o+=n.slice(t,a)+e+i,t=a+u,a=n.indexOf(e,t);while(-1!==a);return o+=n.slice(t)}(e,i.close,i.open),i=i.parent;let t=e.indexOf("\n");return -1!==t&&(e=function(n,e,i,a){let u=0,t="";do{let o="\r"===n[a-1];t+=n.slice(u,o?a-1:a)+e+(o?"\r\n":"\n")+i,u=a+1,a=n.indexOf("\n",u)}while(-1!==a);return t+=n.slice(u)}(e,u,a,t)),a+e+u};Object.defineProperties(B.prototype,M);let Q=B();B({level:D?D.level:0});let G=(n,e,i,a)=>{if("length"===i||"prototype"===i||"arguments"===i||"caller"===i)return;let u=Object.getOwnPropertyDescriptor(n,i),t=Object.getOwnPropertyDescriptor(e,i);(R(u,t)||!a)&&Object.defineProperty(n,i,t)},R=function(n,e){return void 0===n||n.configurable||n.writable===e.writable&&n.enumerable===e.enumerable&&n.configurable===e.configurable&&(n.writable||n.value===e.value)},O=(n,e)=>`/* Wrapped ${n}*/
68
- ${e}`,k=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),K=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),W=new WeakMap,I=(n,e={})=>{let i;if("function"!=typeof n)throw TypeError("Expected a function");let a=0,u=n.displayName||n.name||"<anonymous>",t=function(...o){if(W.set(t,++a),1===a)i=n.apply(this,o),n=void 0;else if(!0===e.throw)throw Error(`Function \`${u}\` can only be called once`);return i};return!function(n,e,{ignoreNonConfigurable:i=!1}={}){var a;let u,{name:t}=n;for(let a of Reflect.ownKeys(e))G(n,e,a,i);a=n,(u=Object.getPrototypeOf(e))!==Object.getPrototypeOf(a)&&Object.setPrototypeOf(a,u),((n,e,i)=>{let a=""===i?"":`with ${i.trim()}() `,u=O.bind(null,a,e.toString());Object.defineProperty(u,"name",K);let{writable:t,enumerable:o,configurable:l}=k;Object.defineProperty(n,"toString",{value:u,writable:t,enumerable:o,configurable:l})})(n,e,t)}(t,n),W.set(t,a),t};I.callCount=n=>{if(!W.has(n))throw Error(`The given function \`${n.name}\` is not wrapped by the \`onetime\` package`);return W.get(n)};let j=[];j.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&j.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&j.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");let U=n=>!!n&&"object"==typeof n&&"function"==typeof n.removeListener&&"function"==typeof n.emit&&"function"==typeof n.reallyExit&&"function"==typeof n.listeners&&"function"==typeof n.kill&&"number"==typeof n.pid&&"function"==typeof n.on,z=Symbol.for("signal-exit emitter"),$=globalThis,q=Object.defineProperty.bind(Object);class V{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if($[z])return $[z];q($,z,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(n,e){this.listeners[n].push(e)}removeListener(n,e){let i=this.listeners[n],a=i.indexOf(e);-1!==a&&(0===a&&1===i.length?i.length=0:i.splice(a,1))}emit(n,e,i){if(this.emitted[n])return!1;this.emitted[n]=!0;let a=!1;for(let u of this.listeners[n])a=!0===u(e,i)||a;return"exit"===n&&(a=this.emit("afterExit",e,i)||a),a}}class nn{}class ne extends nn{#n="win32"===ni.platform?"SIGINT":"SIGHUP";#e=new V;#i;#a;#u;#t={};#o=!1;constructor(n){for(const e of(super(),this.#i=n,this.#t={},j))this.#t[e]=()=>{let i=this.#i.listeners(e),{count:a}=this.#e;if("object"==typeof n.__signal_exit_emitter__&&"number"==typeof n.__signal_exit_emitter__.count&&(a+=n.__signal_exit_emitter__.count),i.length===a){this.unload();let i=this.#e.emit("exit",null,e),a="SIGHUP"===e?this.#n:e;i||n.kill(n.pid,a)}};this.#u=n.reallyExit,this.#a=n.emit}onExit(n,e){if(!U(this.#i))return()=>{};!1===this.#o&&this.load();let i=e?.alwaysLast?"afterExit":"exit";return this.#e.on(i,n),()=>{this.#e.removeListener(i,n),0===this.#e.listeners.exit.length&&0===this.#e.listeners.afterExit.length&&this.unload()}}load(){if(!this.#o){for(let n of(this.#o=!0,this.#e.count+=1,j))try{let e=this.#t[n];e&&this.#i.on(n,e)}catch(n){}this.#i.emit=(n,...e)=>this.#l(n,...e),this.#i.reallyExit=n=>this.#r(n)}}unload(){this.#o&&(this.#o=!1,j.forEach(n=>{let e=this.#t[n];if(!e)throw Error("Listener not defined for signal: "+n);try{this.#i.removeListener(n,e)}catch(n){}}),this.#i.emit=this.#a,this.#i.reallyExit=this.#u,this.#e.count-=1)}#r(n){return U(this.#i)?(this.#i.exitCode=n||0,this.#e.emit("exit",this.#i.exitCode,null),this.#u.call(this.#i,this.#i.exitCode)):0}#l(n,...e){let i=this.#a;if(!("exit"===n&&U(this.#i)))return i.call(this.#i,n,...e);{"number"==typeof e[0]&&(this.#i.exitCode=e[0]);let a=i.call(this.#i,n,...e);return this.#e.emit("exit",this.#i.exitCode,null),a}}}let ni=globalThis.process,{onExit:na,load:nu,unload:nt}=(e=U(ni)?new ne(ni):new class extends nn{onExit(){return()=>{}}load(){}unload(){}},{onExit:(n,i)=>e.onExit(n,i),load:()=>e.load(),unload:()=>e.unload()}),no=y.stderr.isTTY?y.stderr:y.stdout.isTTY?y.stdout:void 0,nl=no?I(()=>{na(()=>{no.write("\x1b[?25h")},{alwaysLast:!0})}):()=>{},nr=!1,ns={};ns.show=(n=y.stderr)=>{n.isTTY&&(nr=!1,n.write("\x1b[?25h"))},ns.hide=(n=y.stderr)=>{n.isTTY&&(nl(),nr=!0,n.write("\x1b[?25l"))},ns.toggle=(n,e)=>{void 0!==n&&(nr=n),nr?ns.show(e):ns.hide(e)};var nh=JSON.parse('{"dots":{"interval":80,"frames":["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},"dots2":{"interval":80,"frames":["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},"dots3":{"interval":80,"frames":["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},"dots4":{"interval":80,"frames":["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},"dots5":{"interval":80,"frames":["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},"dots6":{"interval":80,"frames":["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},"dots7":{"interval":80,"frames":["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},"dots8":{"interval":80,"frames":["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},"dots9":{"interval":80,"frames":["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},"dots10":{"interval":80,"frames":["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},"dots11":{"interval":100,"frames":["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},"dots12":{"interval":80,"frames":["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},"dots13":{"interval":80,"frames":["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},"dots14":{"interval":80,"frames":["⠉⠉","⠈⠙","⠀⠹","⠀⢸","⠀⣰","⢀⣠","⣀⣀","⣄⡀","⣆⠀","⡇⠀","⠏⠀","⠋⠁"]},"dots8Bit":{"interval":80,"frames":["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},"dotsCircle":{"interval":80,"frames":["⢎ ","⠎⠁","⠊⠑","⠈⠱"," ⡱","⢀⡰","⢄⡠","⢆⡀"]},"sand":{"interval":80,"frames":["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["⠂","-","–","—","–","-"]},"rollingLine":{"interval":80,"frames":["/ "," - "," \\\\ "," |"," |"," \\\\ "," - ","/ "]},"pipe":{"interval":100,"frames":["┤","┘","┴","└","├","┌","┬","┐"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["✶","✸","✹","✺","✹","✷"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","\'","\xb4","-","_","_","_"]},"hamburger":{"interval":100,"frames":["☱","☲","☴"]},"growVertical":{"interval":120,"frames":["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},"growHorizontal":{"interval":120,"frames":["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","\xb0","O","o","."]},"noise":{"interval":100,"frames":["▓","▒","░"]},"bounce":{"interval":120,"frames":["⠁","⠂","⠄","⠂"]},"boxBounce":{"interval":120,"frames":["▖","▘","▝","▗"]},"boxBounce2":{"interval":100,"frames":["▌","▀","▐","▄"]},"triangle":{"interval":50,"frames":["◢","◣","◤","◥"]},"binary":{"interval":80,"frames":["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},"arc":{"interval":100,"frames":["◜","◠","◝","◞","◡","◟"]},"circle":{"interval":120,"frames":["◡","⊙","◠"]},"squareCorners":{"interval":180,"frames":["◰","◳","◲","◱"]},"circleQuarters":{"interval":120,"frames":["◴","◷","◶","◵"]},"circleHalves":{"interval":50,"frames":["◐","◓","◑","◒"]},"squish":{"interval":100,"frames":["╫","╪"]},"toggle":{"interval":250,"frames":["⊶","⊷"]},"toggle2":{"interval":80,"frames":["▫","▪"]},"toggle3":{"interval":120,"frames":["□","■"]},"toggle4":{"interval":100,"frames":["■","□","▪","▫"]},"toggle5":{"interval":100,"frames":["▮","▯"]},"toggle6":{"interval":300,"frames":["ဝ","၀"]},"toggle7":{"interval":80,"frames":["⦾","⦿"]},"toggle8":{"interval":100,"frames":["◍","◌"]},"toggle9":{"interval":100,"frames":["◉","◎"]},"toggle10":{"interval":100,"frames":["㊂","㊀","㊁"]},"toggle11":{"interval":50,"frames":["⧇","⧆"]},"toggle12":{"interval":120,"frames":["☗","☖"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["←","↖","↑","↗","→","↘","↓","↙"]},"arrow2":{"interval":80,"frames":["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},"arrow3":{"interval":120,"frames":["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},"smiley":{"interval":200,"frames":["\uD83D\uDE04 ","\uD83D\uDE1D "]},"monkey":{"interval":300,"frames":["\uD83D\uDE48 ","\uD83D\uDE48 ","\uD83D\uDE49 ","\uD83D\uDE4A "]},"hearts":{"interval":100,"frames":["\uD83D\uDC9B ","\uD83D\uDC99 ","\uD83D\uDC9C ","\uD83D\uDC9A ","\uD83D\uDC97 "]},"clock":{"interval":100,"frames":["\uD83D\uDD5B ","\uD83D\uDD50 ","\uD83D\uDD51 ","\uD83D\uDD52 ","\uD83D\uDD53 ","\uD83D\uDD54 ","\uD83D\uDD55 ","\uD83D\uDD56 ","\uD83D\uDD57 ","\uD83D\uDD58 ","\uD83D\uDD59 ","\uD83D\uDD5A "]},"earth":{"interval":180,"frames":["\uD83C\uDF0D ","\uD83C\uDF0E ","\uD83C\uDF0F "]},"material":{"interval":17,"frames":["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},"moon":{"interval":80,"frames":["\uD83C\uDF11 ","\uD83C\uDF12 ","\uD83C\uDF13 ","\uD83C\uDF14 ","\uD83C\uDF15 ","\uD83C\uDF16 ","\uD83C\uDF17 ","\uD83C\uDF18 "]},"runner":{"interval":140,"frames":["\uD83D\uDEB6 ","\uD83C\uDFC3 "]},"pong":{"interval":80,"frames":["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},"shark":{"interval":120,"frames":["▐|\\\\____________▌","▐_|\\\\___________▌","▐__|\\\\__________▌","▐___|\\\\_________▌","▐____|\\\\________▌","▐_____|\\\\_______▌","▐______|\\\\______▌","▐_______|\\\\_____▌","▐________|\\\\____▌","▐_________|\\\\___▌","▐__________|\\\\__▌","▐___________|\\\\_▌","▐____________|\\\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["☀️ ","☀️ ","☀️ ","\uD83C\uDF24 ","⛅️ ","\uD83C\uDF25 ","☁️ ","\uD83C\uDF27 ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","⛈ ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","☁️ ","\uD83C\uDF25 ","⛅️ ","\uD83C\uDF24 ","☀️ ","☀️ "]},"christmas":{"interval":400,"frames":["\uD83C\uDF32","\uD83C\uDF84"]},"grenade":{"interval":80,"frames":["، ","′ "," \xb4 "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},"point":{"interval":125,"frames":["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},"layer":{"interval":150,"frames":["-","=","≡"]},"betaWave":{"interval":80,"frames":["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},"fingerDance":{"interval":160,"frames":["\uD83E\uDD18 ","\uD83E\uDD1F ","\uD83D\uDD96 ","✋ ","\uD83E\uDD1A ","\uD83D\uDC46 "]},"fistBump":{"interval":80,"frames":["\uD83E\uDD1C    \uD83E\uDD1B ","\uD83E\uDD1C    \uD83E\uDD1B ","\uD83E\uDD1C    \uD83E\uDD1B "," \uD83E\uDD1C  \uD83E\uDD1B  ","  \uD83E\uDD1C\uD83E\uDD1B   "," \uD83E\uDD1C✨\uD83E\uDD1B   ","\uD83E\uDD1C ✨ \uD83E\uDD1B  "]},"soccerHeader":{"interval":80,"frames":[" \uD83E\uDDD1⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️\uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 "]},"mindblown":{"interval":160,"frames":["\uD83D\uDE10 ","\uD83D\uDE10 ","\uD83D\uDE2E ","\uD83D\uDE2E ","\uD83D\uDE26 ","\uD83D\uDE26 ","\uD83D\uDE27 ","\uD83D\uDE27 ","\uD83E\uDD2F ","\uD83D\uDCA5 ","✨ ","  ","  ","  "]},"speaker":{"interval":160,"frames":["\uD83D\uDD08 ","\uD83D\uDD09 ","\uD83D\uDD0A ","\uD83D\uDD09 "]},"orangePulse":{"interval":100,"frames":["\uD83D\uDD38 ","\uD83D\uDD36 ","\uD83D\uDFE0 ","\uD83D\uDFE0 ","\uD83D\uDD36 "]},"bluePulse":{"interval":100,"frames":["\uD83D\uDD39 ","\uD83D\uDD37 ","\uD83D\uDD35 ","\uD83D\uDD35 ","\uD83D\uDD37 "]},"orangeBluePulse":{"interval":100,"frames":["\uD83D\uDD38 ","\uD83D\uDD36 ","\uD83D\uDFE0 ","\uD83D\uDFE0 ","\uD83D\uDD36 ","\uD83D\uDD39 ","\uD83D\uDD37 ","\uD83D\uDD35 ","\uD83D\uDD35 ","\uD83D\uDD37 "]},"timeTravel":{"interval":100,"frames":["\uD83D\uDD5B ","\uD83D\uDD5A ","\uD83D\uDD59 ","\uD83D\uDD58 ","\uD83D\uDD57 ","\uD83D\uDD56 ","\uD83D\uDD55 ","\uD83D\uDD54 ","\uD83D\uDD53 ","\uD83D\uDD52 ","\uD83D\uDD51 ","\uD83D\uDD50 "]},"aesthetic":{"interval":80,"frames":["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]},"dwarfFortress":{"interval":80,"frames":[" ██████\xa3\xa3\xa3 ","☺██████\xa3\xa3\xa3 ","☺██████\xa3\xa3\xa3 ","☺▓█████\xa3\xa3\xa3 ","☺▓█████\xa3\xa3\xa3 ","☺▒█████\xa3\xa3\xa3 ","☺▒█████\xa3\xa3\xa3 ","☺░█████\xa3\xa3\xa3 ","☺░█████\xa3\xa3\xa3 ","☺ █████\xa3\xa3\xa3 "," ☺█████\xa3\xa3\xa3 "," ☺█████\xa3\xa3\xa3 "," ☺▓████\xa3\xa3\xa3 "," ☺▓████\xa3\xa3\xa3 "," ☺▒████\xa3\xa3\xa3 "," ☺▒████\xa3\xa3\xa3 "," ☺░████\xa3\xa3\xa3 "," ☺░████\xa3\xa3\xa3 "," ☺ ████\xa3\xa3\xa3 "," ☺████\xa3\xa3\xa3 "," ☺████\xa3\xa3\xa3 "," ☺▓███\xa3\xa3\xa3 "," ☺▓███\xa3\xa3\xa3 "," ☺▒███\xa3\xa3\xa3 "," ☺▒███\xa3\xa3\xa3 "," ☺░███\xa3\xa3\xa3 "," ☺░███\xa3\xa3\xa3 "," ☺ ███\xa3\xa3\xa3 "," ☺███\xa3\xa3\xa3 "," ☺███\xa3\xa3\xa3 "," ☺▓██\xa3\xa3\xa3 "," ☺▓██\xa3\xa3\xa3 "," ☺▒██\xa3\xa3\xa3 "," ☺▒██\xa3\xa3\xa3 "," ☺░██\xa3\xa3\xa3 "," ☺░██\xa3\xa3\xa3 "," ☺ ██\xa3\xa3\xa3 "," ☺██\xa3\xa3\xa3 "," ☺██\xa3\xa3\xa3 "," ☺▓█\xa3\xa3\xa3 "," ☺▓█\xa3\xa3\xa3 "," ☺▒█\xa3\xa3\xa3 "," ☺▒█\xa3\xa3\xa3 "," ☺░█\xa3\xa3\xa3 "," ☺░█\xa3\xa3\xa3 "," ☺ █\xa3\xa3\xa3 "," ☺█\xa3\xa3\xa3 "," ☺█\xa3\xa3\xa3 "," ☺▓\xa3\xa3\xa3 "," ☺▓\xa3\xa3\xa3 "," ☺▒\xa3\xa3\xa3 "," ☺▒\xa3\xa3\xa3 "," ☺░\xa3\xa3\xa3 "," ☺░\xa3\xa3\xa3 "," ☺ \xa3\xa3\xa3 "," ☺\xa3\xa3\xa3 "," ☺\xa3\xa3\xa3 "," ☺▓\xa3\xa3 "," ☺▓\xa3\xa3 "," ☺▒\xa3\xa3 "," ☺▒\xa3\xa3 "," ☺░\xa3\xa3 "," ☺░\xa3\xa3 "," ☺ \xa3\xa3 "," ☺\xa3\xa3 "," ☺\xa3\xa3 "," ☺▓\xa3 "," ☺▓\xa3 "," ☺▒\xa3 "," ☺▒\xa3 "," ☺░\xa3 "," ☺░\xa3 "," ☺ \xa3 "," ☺\xa3 "," ☺\xa3 "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & \xa3 "," & ░\xa3 "," & ▒\xa3 "," & ▓\xa3 "," & \xa3\xa3 "," & ░\xa3\xa3 "," & ▒\xa3\xa3 ","& ▓\xa3\xa3 ","& \xa3\xa3\xa3 "," ░\xa3\xa3\xa3 "," ▒\xa3\xa3\xa3 "," ▓\xa3\xa3\xa3 "," █\xa3\xa3\xa3 "," ░█\xa3\xa3\xa3 "," ▒█\xa3\xa3\xa3 "," ▓█\xa3\xa3\xa3 "," ██\xa3\xa3\xa3 "," ░██\xa3\xa3\xa3 "," ▒██\xa3\xa3\xa3 "," ▓██\xa3\xa3\xa3 "," ███\xa3\xa3\xa3 "," ░███\xa3\xa3\xa3 "," ▒███\xa3\xa3\xa3 "," ▓███\xa3\xa3\xa3 "," ████\xa3\xa3\xa3 "," ░████\xa3\xa3\xa3 "," ▒████\xa3\xa3\xa3 "," ▓████\xa3\xa3\xa3 "," █████\xa3\xa3\xa3 "," ░█████\xa3\xa3\xa3 "," ▒█████\xa3\xa3\xa3 "," ▓█████\xa3\xa3\xa3 "," ██████\xa3\xa3\xa3 "," ██████\xa3\xa3\xa3 "]}}');Object.keys(nh);let ng=b?.WriteStream?.prototype?.hasColors?.()??!1,nd=(n,e)=>{if(!ng)return n=>n;let i=`\u001B[${n}m`,a=`\u001B[${e}m`;return n=>{let u=n+"",t=u.indexOf(a);if(-1===t)return i+u+a;let o=i,l=0,r=(22===e?a:"")+i;for(;-1!==t;)o+=u.slice(l,t)+r,l=t+a.length,t=u.indexOf(a,l);return o+=u.slice(l)+a}};nd(0,0),nd(1,22),nd(2,22),nd(3,23),nd(4,24),nd(53,55),nd(7,27),nd(8,28),nd(9,29),nd(30,39);let nc=nd(31,39),np=nd(32,39),nm=nd(33,39),nf=nd(34,39);function nC(){let{env:n}=y,{TERM:e,TERM_PROGRAM:i}=n;return"win32"!==y.platform?"linux"!==e:!!n.WT_SESSION||!!n.TERMINUS_SUBLIME||"{cmd::Cmder}"===n.ConEmuTask||"Terminus-Sublime"===i||"vscode"===i||"xterm-256color"===e||"alacritty"===e||"rxvt-unicode"===e||"rxvt-unicode-256color"===e||"JetBrains-JediTerm"===n.TERMINAL_EMULATOR}nd(35,39),nd(36,39),nd(37,39),nd(90,39),nd(40,49),nd(41,49),nd(42,49),nd(43,49),nd(44,49),nd(45,49),nd(46,49),nd(47,49),nd(100,49),nd(91,39),nd(92,39),nd(93,39),nd(94,39),nd(95,39),nd(96,39),nd(97,39),nd(101,49),nd(102,49),nd(103,49),nd(104,49),nd(105,49),nd(106,49),nd(107,49);let nS=nC(),nY=nf(nS?"ℹ":"i"),ny=np(nS?"✔":"√"),nL=nm(nS?"⚠":"‼"),nb=nc(nS?"✖":"\xd7"),nx=function({onlyFirst:n=!1}={}){let e="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))";return RegExp(`${e}|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]`,n?void 0:"g")}();function nT(n){if("string"!=typeof n)throw TypeError(`Expected a \`string\`, got \`${typeof n}\``);return n.replace(nx,"")}function nZ(n,{ambiguousAsWide:e=!1}={}){var i,a,u,t=n;if(!Number.isSafeInteger(t))throw TypeError(`Expected a code point, got \`${typeof t}\`.`);return 12288===(i=n)||i>=65281&&i<=65376||i>=65504&&i<=65510||(a=n)>=4352&&a<=4447||8986===a||8987===a||9001===a||9002===a||a>=9193&&a<=9196||9200===a||9203===a||9725===a||9726===a||9748===a||9749===a||a>=9776&&a<=9783||a>=9800&&a<=9811||9855===a||a>=9866&&a<=9871||9875===a||9889===a||9898===a||9899===a||9917===a||9918===a||9924===a||9925===a||9934===a||9940===a||9962===a||9970===a||9971===a||9973===a||9978===a||9981===a||9989===a||9994===a||9995===a||10024===a||10060===a||10062===a||a>=10067&&a<=10069||10071===a||a>=10133&&a<=10135||10160===a||10175===a||11035===a||11036===a||11088===a||11093===a||a>=11904&&a<=11929||a>=11931&&a<=12019||a>=12032&&a<=12245||a>=12272&&a<=12287||a>=12289&&a<=12350||a>=12353&&a<=12438||a>=12441&&a<=12543||a>=12549&&a<=12591||a>=12593&&a<=12686||a>=12688&&a<=12773||a>=12783&&a<=12830||a>=12832&&a<=12871||a>=12880&&a<=42124||a>=42128&&a<=42182||a>=43360&&a<=43388||a>=44032&&a<=55203||a>=63744&&a<=64255||a>=65040&&a<=65049||a>=65072&&a<=65106||a>=65108&&a<=65126||a>=65128&&a<=65131||a>=94176&&a<=94180||a>=94192&&a<=94198||a>=94208&&a<=101589||a>=101631&&a<=101662||a>=101760&&a<=101874||a>=110576&&a<=110579||a>=110581&&a<=110587||110589===a||110590===a||a>=110592&&a<=110882||110898===a||a>=110928&&a<=110930||110933===a||a>=110948&&a<=110951||a>=110960&&a<=111355||a>=119552&&a<=119638||a>=119648&&a<=119670||126980===a||127183===a||127374===a||a>=127377&&a<=127386||a>=127488&&a<=127490||a>=127504&&a<=127547||a>=127552&&a<=127560||127568===a||127569===a||a>=127584&&a<=127589||a>=127744&&a<=127776||a>=127789&&a<=127797||a>=127799&&a<=127868||a>=127870&&a<=127891||a>=127904&&a<=127946||a>=127951&&a<=127955||a>=127968&&a<=127984||127988===a||a>=127992&&a<=128062||128064===a||a>=128066&&a<=128252||a>=128255&&a<=128317||a>=128331&&a<=128334||a>=128336&&a<=128359||128378===a||128405===a||128406===a||128420===a||a>=128507&&a<=128591||a>=128640&&a<=128709||128716===a||a>=128720&&a<=128722||a>=128725&&a<=128728||a>=128732&&a<=128735||128747===a||128748===a||a>=128756&&a<=128764||a>=128992&&a<=129003||129008===a||a>=129292&&a<=129338||a>=129340&&a<=129349||a>=129351&&a<=129535||a>=129648&&a<=129660||a>=129664&&a<=129674||a>=129678&&a<=129734||129736===a||a>=129741&&a<=129756||a>=129759&&a<=129770||a>=129775&&a<=129784||a>=131072&&a<=196605||a>=196608&&a<=262141||e&&(161===(u=n)||164===u||167===u||168===u||170===u||173===u||174===u||u>=176&&u<=180||u>=182&&u<=186||u>=188&&u<=191||198===u||208===u||215===u||216===u||u>=222&&u<=225||230===u||u>=232&&u<=234||236===u||237===u||240===u||242===u||243===u||u>=247&&u<=250||252===u||254===u||257===u||273===u||275===u||283===u||294===u||295===u||299===u||u>=305&&u<=307||312===u||u>=319&&u<=322||324===u||u>=328&&u<=331||333===u||338===u||339===u||358===u||359===u||363===u||462===u||464===u||466===u||468===u||470===u||472===u||474===u||476===u||593===u||609===u||708===u||711===u||u>=713&&u<=715||717===u||720===u||u>=728&&u<=731||733===u||735===u||u>=768&&u<=879||u>=913&&u<=929||u>=931&&u<=937||u>=945&&u<=961||u>=963&&u<=969||1025===u||u>=1040&&u<=1103||1105===u||8208===u||u>=8211&&u<=8214||8216===u||8217===u||8220===u||8221===u||u>=8224&&u<=8226||u>=8228&&u<=8231||8240===u||8242===u||8243===u||8245===u||8251===u||8254===u||8308===u||8319===u||u>=8321&&u<=8324||8364===u||8451===u||8453===u||8457===u||8467===u||8470===u||8481===u||8482===u||8486===u||8491===u||8531===u||8532===u||u>=8539&&u<=8542||u>=8544&&u<=8555||u>=8560&&u<=8569||8585===u||u>=8592&&u<=8601||8632===u||8633===u||8658===u||8660===u||8679===u||8704===u||8706===u||8707===u||8711===u||8712===u||8715===u||8719===u||8721===u||8725===u||8730===u||u>=8733&&u<=8736||8739===u||8741===u||u>=8743&&u<=8748||8750===u||u>=8756&&u<=8759||8764===u||8765===u||8776===u||8780===u||8786===u||8800===u||8801===u||u>=8804&&u<=8807||8810===u||8811===u||8814===u||8815===u||8834===u||8835===u||8838===u||8839===u||8853===u||8857===u||8869===u||8895===u||8978===u||u>=9312&&u<=9449||u>=9451&&u<=9547||u>=9552&&u<=9587||u>=9600&&u<=9615||u>=9618&&u<=9621||9632===u||9633===u||u>=9635&&u<=9641||9650===u||9651===u||9654===u||9655===u||9660===u||9661===u||9664===u||9665===u||u>=9670&&u<=9672||9675===u||u>=9678&&u<=9681||u>=9698&&u<=9701||9711===u||9733===u||9734===u||9737===u||9742===u||9743===u||9756===u||9758===u||9792===u||9794===u||9824===u||9825===u||u>=9827&&u<=9829||u>=9831&&u<=9834||9836===u||9837===u||9839===u||9886===u||9887===u||9919===u||u>=9926&&u<=9933||u>=9935&&u<=9939||u>=9941&&u<=9953||9955===u||9960===u||9961===u||u>=9963&&u<=9969||9972===u||u>=9974&&u<=9977||9979===u||9980===u||9982===u||9983===u||10045===u||u>=10102&&u<=10111||u>=11094&&u<=11097||u>=12872&&u<=12879||u>=57344&&u<=63743||u>=65024&&u<=65039||65533===u||u>=127232&&u<=127242||u>=127248&&u<=127277||u>=127280&&u<=127337||u>=127344&&u<=127373||127375===u||127376===u||u>=127387&&u<=127404||u>=917760&&u<=917999||u>=983040&&u<=1048573||u>=1048576&&u<=1114109)?2:1}let n_=new Intl.Segmenter,nJ=/^(?:\p{Default_Ignorable_Code_Point}|\p{Control}|\p{Mark}|\p{Surrogate})+$/v,nD=/^[\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Mark}\p{Surrogate}]+/v,nH=/^\p{RGI_Emoji}$/v,nX=new class{#s=0;start(){this.#s++,1===this.#s&&this.#h()}stop(){if(this.#s<=0)throw Error("`stop` called more times than `start`");this.#s--,0===this.#s&&this.#g()}#h(){"win32"!==y.platform&&y.stdin.isTTY&&(y.stdin.setRawMode(!0),y.stdin.on("data",this.#d),y.stdin.resume())}#g(){y.stdin.isTTY&&(y.stdin.off("data",this.#d),y.stdin.pause(),y.stdin.setRawMode(!1))}#d(n){3===n[0]&&y.emit("SIGINT")}};class nE{#c=0;#p=!1;#m=0;#f=-1;#C=0;#S=0;#Y;#y;#L;#b;#x;#T;#Z;#_;#J;#D;#H;color;constructor(n){"string"==typeof n&&(n={text:n}),this.#Y={color:"cyan",stream:y.stderr,discardStdin:!0,hideCursor:!0,...n},this.color=this.#Y.color,this.spinner=this.#Y.spinner,this.#x=this.#Y.interval,this.#L=this.#Y.stream,this.#T="boolean"==typeof this.#Y.isEnabled?this.#Y.isEnabled:function({stream:n=process.stdout}={}){return!!(n&&n.isTTY&&"dumb"!==process.env.TERM&&!("CI"in process.env))}({stream:this.#L}),this.#Z="boolean"==typeof this.#Y.isSilent&&this.#Y.isSilent,this.text=this.#Y.text,this.prefixText=this.#Y.prefixText,this.suffixText=this.#Y.suffixText,this.indent=this.#Y.indent,"test"===y.env.NODE_ENV&&(this._stream=this.#L,this._isEnabled=this.#T,Object.defineProperty(this,"_linesToClear",{get(){return this.#c},set(n){this.#c=n}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#f}}),Object.defineProperty(this,"_lineCount",{get(){return this.#m}}))}get indent(){return this.#_}set indent(n=0){if(!(n>=0&&Number.isInteger(n)))throw Error("The `indent` option must be an integer from 0 and up");this.#_=n,this.#X()}get interval(){return this.#x??this.#y.interval??100}get spinner(){return this.#y}set spinner(n){if(this.#f=-1,this.#x=void 0,"object"==typeof n){if(!Array.isArray(n.frames)||0===n.frames.length||n.frames.some(n=>"string"!=typeof n))throw Error("The given spinner must have a non-empty `frames` array of strings");if(void 0!==n.interval&&!(Number.isInteger(n.interval)&&n.interval>0))throw Error("`spinner.interval` must be a positive integer if provided");this.#y=n}else if(nC())if(void 0===n)this.#y=nh.dots;else if("default"!==n&&nh[n])this.#y=nh[n];else throw Error(`There is no built-in spinner named '${n}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);else this.#y=nh.line}get text(){return this.#J}set text(n=""){this.#J=n,this.#X()}get prefixText(){return this.#D}set prefixText(n=""){this.#D=n,this.#X()}get suffixText(){return this.#H}set suffixText(n=""){this.#H=n,this.#X()}get isSpinning(){return void 0!==this.#b}#E(n,e,i=!1){let a="function"==typeof n?n():n;return"string"==typeof a&&""!==a?i?e+a:a+e:""}#w(n=this.#D,e=" "){return this.#E(n,e,!1)}#M(n=this.#H,e=" "){return this.#E(n,e,!0)}#B(n,e){let i=0;for(let a of nT(n).split("\n"))i+=Math.max(1,Math.ceil(function(n,e={}){if("string"!=typeof n||0===n.length)return 0;let{ambiguousIsNarrow:i=!0,countAnsiEscapeCodes:a=!1}=e,u=n;if(a||(u=nT(u)),0===u.length)return 0;let t=0,o={ambiguousAsWide:!i};for(let{segment:n}of n_.segment(u)){var l;if(l=n,!nJ.test(l)){if(nH.test(n)){t+=2;continue}t+=nZ(n.replace(nD,"").codePointAt(0),o),t+=function(n,e){let i=0;if(n.length>1)for(let a of n.slice(1))a>="＀"&&a<="￯"&&(i+=nZ(a.codePointAt(0),e));return i}(n,o)}}return t}(a)/e));return i}#X(){let n=this.#L.columns??80,e="function"==typeof this.#D?"":this.#D,i="function"==typeof this.#H?"":this.#H,a=" ".repeat(this.#_)+("string"==typeof e&&""!==e?e+" ":"")+"-"+("string"==typeof this.#J?" "+this.#J:"")+("string"==typeof i&&""!==i?" "+i:"");this.#m=this.#B(a,n)}get isEnabled(){return this.#T&&!this.#Z}set isEnabled(n){if("boolean"!=typeof n)throw TypeError("The `isEnabled` option must be a boolean");this.#T=n}get isSilent(){return this.#Z}set isSilent(n){if("boolean"!=typeof n)throw TypeError("The `isSilent` option must be a boolean");this.#Z=n}frame(){let n=Date.now();(-1===this.#f||n-this.#C>=this.interval)&&(this.#f=++this.#f%this.#y.frames.length,this.#C=n);let{frames:e}=this.#y,i=e[this.#f];this.color&&(i=Q[this.color](i));let a=this.#w(this.#D," "),u="string"==typeof this.text?" "+this.text:"";return a+i+u+this.#M(this.#H," ")}clear(){if(!this.#T||!this.#L.isTTY)return this;this.#L.cursorTo(0);for(let n=0;n<this.#c;n++)n>0&&this.#L.moveCursor(0,-1),this.#L.clearLine(1);return(this.#_||this.#S!==this.#_)&&this.#L.cursorTo(this.#_),this.#S=this.#_,this.#c=0,this}render(){if(!this.#T||this.#Z)return this;this.clear();let n=this.frame(),e=this.#L.columns??80,i=this.#B(n,e),a=this.#L.rows;if(a&&a>1&&i>a){let e=n.split("\n");n=[...e.slice(0,a-1),"... (content truncated to fit terminal)"].join("\n")}return this.#L.write(n),this.#c=this.#B(n,e),this}start(n){if(n&&(this.text=n),this.#Z)return this;if(!this.#T){let n=" ".repeat(this.#_)+this.#w(this.#D," ")+(this.text?`- ${this.text}`:"")+this.#M(this.#H," ");return""!==n.trim()&&this.#L.write(n+"\n"),this}return this.isSpinning||(this.#Y.hideCursor&&ns.hide(this.#L),this.#Y.discardStdin&&y.stdin.isTTY&&(this.#p=!0,nX.start()),this.render(),this.#b=setInterval(this.render.bind(this),this.interval)),this}stop(){return clearInterval(this.#b),this.#b=void 0,this.#f=0,this.#T&&(this.clear(),this.#Y.hideCursor&&ns.show(this.#L)),this.#Y.discardStdin&&y.stdin.isTTY&&this.#p&&(nX.stop(),this.#p=!1),this}succeed(n){return this.stopAndPersist({symbol:ny,text:n})}fail(n){return this.stopAndPersist({symbol:nb,text:n})}warn(n){return this.stopAndPersist({symbol:nL,text:n})}info(n){return this.stopAndPersist({symbol:nY,text:n})}stopAndPersist(n={}){if(this.#Z)return this;let e=n.prefixText??this.#D,i=this.#w(e," "),a=n.symbol??" ",u=n.text??this.text,t=n.suffixText??this.#H,o=i+a+("string"==typeof u?(a?" ":"")+u:"")+this.#M(t," ")+"\n";return this.stop(),this.#L.write(o),this}}function nw(n){return new nE(n)}var nM=__webpack_require__("fs"),nB=__webpack_require__("path"),nv=__webpack_require__("axios"),nP=__webpack_require__.n(nv);let nF="x-run-mode",nA="test_run";function nN(n){if(!n||0===n.length)return;let e={};for(let i of n){let n,a;if(i.includes(": ")){let e=i.split(": ");n=e[0],a=e.slice(1).join(": ")}else if(i.includes("=")){let e=i.split("=");n=e[0],a=e.slice(1).join("=")}else throw Error(`Invalid header format: '${i}'. Use 'Key: Value' or 'Key=Value'`);e[n.trim()]=a.trim()}return Object.keys(e).length>0?e:void 0}let nQ=new s("image").description("Generate images using AI").requiredOption("-p, --prompt <text>","Image generation prompt").option("-o, --output <path>","Output file path (optional)").option("--size <size>","Image size (2K, 4K, or WIDTHxHEIGHT)","2K").option("--mock","Use mock mode (test run)").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(n,e)=>e.concat([n]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async n=>{let e=nw("Generating image...").start();try{let i=new c.Config,a={},u=nN(n.header);u&&Object.assign(a,u),n.mock&&(a[nF]=nA,console.log(Q.yellow("\uD83E\uDDEA Mock mode enabled (test run)")));let t=new c.ImageGenerationClient(i,Object.keys(a).length>0?a:void 0,n.verbose),o=await t.generate({prompt:n.prompt,size:n.size});if(e.succeed(Q.green("Image generated successfully!")),o.data&&o.data.length>0&&o.data[0].url&&(console.log(Q.cyan(`
69
- Image URL: ${o.data[0].url}`)),n.output)){e.start("Downloading image...");let i=await nP().get(o.data[0].url,{responseType:"arraybuffer"}),a=nB.resolve(n.output);nM.writeFileSync(a,i.data),e.succeed(Q.green(`Image saved to ${a}`))}}catch(n){e.fail(Q.red("Failed to generate image")),console.error(Q.red(n.message)),process.exit(1)}}),nG=new s("video").description("Generate video using AI (synchronous - waits for completion)").option("-p, --prompt <text>","Text prompt").option("-i, --image-url <url>","Image URL (single or comma-separated two URLs)").option("-s, --size <size>","Video resolution (e.g., 1920x1080)").option("-d, --duration <seconds>","Video duration (5-10 seconds)","5").option("-m, --model <model>","Model name","doubao-seedance-1-0-pro-fast-251015").option("--callback-url <url>","Callback URL").option("--return-last-frame","Return last frame image",!1).option("--watermark","Add watermark",!1).option("--seed <number>","Random seed").option("--camerafixed","Fixed camera",!1).option("-o, --output <path>","Output file path (JSON)").option("--mock","Use mock mode (test run)",!1).option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(n,e)=>e.concat([n]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async n=>{let e=nw("Generating video...").start();try{let i=new c.Config,a={},u=nN(n.header);u&&Object.assign(a,u),n.mock&&(a[nF]=nA,console.log(Q.yellow("\uD83E\uDDEA Mock mode enabled (test run)")));let t=new c.VideoGenerationClient(i,Object.keys(a).length>0?a:void 0,n.verbose),o=n.imageUrl?n.imageUrl.split(",").map(n=>n.trim()):null,{ratio:l,resolution:r}=function(n){if(!n)return{};let[e,i]=n.split("x"),a=parseInt(e),u=parseInt(i);return a===u?{ratio:"1:1",resolution:a<=1024?"720p":"1080p"}:a>u?{ratio:"16:9",resolution:a<=1440?"720p":"1080p"}:{ratio:"9:16",resolution:u<=1440?"720p":"1080p"}}(n.size),s=[];if(n.prompt&&s.push({type:"text",text:n.prompt}),o)if(1===o.length)s.push({type:"image_url",image_url:{url:o[0]},role:"first_frame"});else if(2===o.length)s.push({type:"image_url",image_url:{url:o[0]},role:"first_frame"}),s.push({type:"image_url",image_url:{url:o[1]},role:"last_frame"});else throw Error("Only 1 or 2 images are supported");if(0===s.length)throw Error("Either --prompt or --image-url must be provided");let h=await t.videoGeneration(s,{model:n.model,resolution:r||"720p",ratio:l||"16:9",duration:parseInt(n.duration),watermark:n.watermark,seed:n.seed?parseInt(n.seed):void 0,camerafixed:n.camerafixed,callbackUrl:n.callbackUrl,returnLastFrame:n.returnLastFrame});e.succeed(Q.green("✓ Video generation completed!")),console.log(Q.cyan("\n=== Video Generation Result ===")),console.log(Q.white("Task ID:"),Q.green(h.response.id)),console.log(Q.white("Status:"),Q.green(h.response.status)),h.videoUrl&&console.log(Q.white("Video URL:"),Q.green(h.videoUrl)),n.returnLastFrame&&h.lastFrameUrl&&console.log(Q.white("Last Frame URL:"),Q.green(h.lastFrameUrl)),h.response.error_message&&console.log(Q.white("Error:"),Q.red(h.response.error_message)),h.videoUrl&&(console.log(Q.cyan("\nComplete Video URL:")),console.log(Q.green(h.videoUrl))),n.returnLastFrame&&h.lastFrameUrl&&(console.log(Q.cyan("\nComplete Last Frame URL:")),console.log(Q.green(h.lastFrameUrl))),n.output&&(nM.writeFileSync(n.output,JSON.stringify(h.response,null,2)),console.log(Q.green(`
70
- ✓ Result saved to: ${n.output}`)))}catch(n){e.fail(Q.red("✗ Video generation failed")),console.error(Q.red(`Error: ${n.message}`)),process.exit(1)}}),nR=new s("search").description("Search the web using AI").requiredOption("-q, --query <text>","Search query").option("--type <type>","Search type (web or image)","web").option("--count <number>","Number of results","10").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(n,e)=>e.concat([n]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async n=>{let e=nw("Searching...").start();try{let i,a=new c.Config,u=nN(n.header),t=new c.SearchClient(a,u,n.verbose);i="image"===n.type?await t.imageSearch(n.query,parseInt(n.count)):await t.webSearch(n.query,parseInt(n.count)),e.succeed(Q.green("Search completed!")),"image"===n.type&&i.image_items?i.image_items.forEach((n,e)=>{console.log(Q.cyan(`
71
- [${e+1}] ${n.title||"Image"}`)),console.log(Q.gray(n.url||"")),console.log(Q.yellow(`Image URL: ${n.image.url}`))}):i.web_items&&i.web_items.forEach((n,e)=>{console.log(Q.cyan(`
72
- [${e+1}] ${n.title}`)),console.log(Q.gray(n.url||"")),n.snippet&&console.log(n.snippet)})}catch(n){e.fail(Q.red("Search failed")),console.error(Q.red(n.message)),process.exit(1)}}),nO=new s("tts").description("Text-to-speech conversion").requiredOption("-t, --text <text>","Text to convert to speech").option("--speaker <speaker>","Speaker voice to use","zh_female_xiaohe_uranus_bigtts").option("--mock","Use mock mode (test run)").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(n,e)=>e.concat([n]),[]).action(async n=>{let e=nw("Converting text to speech...").start();try{let i=new c.Config,a={},u=nN(n.header);u&&Object.assign(a,u),n.mock&&(a[nF]=nA,console.log(Q.yellow("\uD83E\uDDEA Mock mode enabled (test run)")));let t=new c.TTSClient(i,Object.keys(a).length>0?a:void 0),o=await t.synthesize({uid:"cli-user",text:n.text,speaker:n.speaker});e.succeed(Q.green("Text-to-speech conversion completed!")),console.log(Q.cyan(`Audio URL: ${o.audioUri}`)),console.log(Q.cyan(`Audio Size: ${o.audioSize} bytes`))}catch(n){e.fail(Q.red("Text-to-speech conversion failed")),console.error(Q.red(n.message)),process.exit(1)}}),nk=new s("asr").description("Automatic speech recognition").option("-u, --url <url>","Audio file URL").option("-f, --file <path>","Local audio file path (will be base64 encoded)").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(n,e)=>e.concat([n]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async n=>{let e=nw("Recognizing speech...").start();try{n.url||n.file||(e.fail(Q.red("Please provide either --url or --file")),process.exit(1));let i=new c.Config,a=nN(n.header),u=new c.ASRClient(i,a,n.verbose),t=n.url?{url:n.url}:{base64Data:nM.readFileSync(nB.resolve(n.file)).toString("base64")},o=await u.recognize(t);e.succeed(Q.green("Speech recognition completed!")),console.log(Q.cyan("\nRecognized text:")),console.log(o.text)}catch(n){e.fail(Q.red("Speech recognition failed")),console.error(Q.red(n.message)),process.exit(1)}}),nK=new s("chat").description("Chat with AI using LLM").requiredOption("-p, --prompt <text>","User prompt").option("-s, --system <text>","System prompt").option("--model <model>","Model to use","doubao-seed-1-6-251015").option("--temperature <number>","Temperature (0-2)","0.7").option("--stream","Enable streaming output",!1).option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(n,e)=>e.concat([n]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async n=>{try{let e=new c.Config,i=new c.LLMClient(e),a=nN(n.header),u=[];n.system&&u.push({role:"system",content:n.system}),u.push({role:"user",content:n.prompt});let t={model:n.model,temperature:parseFloat(n.temperature)};if(n.stream){for await(let n of(console.log(Q.cyan("\nAI Response:")),i.stream(u,t,void 0,a)))n.content&&process.stdout.write(n.content.toString());console.log("\n")}else{let n=nw("Generating response...").start(),e=await i.invoke(u,t,void 0,a);n.succeed(Q.green("Response generated!")),console.log(Q.cyan("\nAI Response:")),console.log(e.content)}}catch(n){console.error(Q.red("Chat failed")),console.error(Q.red(n.message)),process.exit(1)}}),nW="wechat_mini_program"===process.env.COZE_PROJECT_TYPE,nI="app"===process.env.COZE_PROJECT_TYPE,nj=nW||nI?"server/src/storage/database/shared/schema.ts":"src/storage/database/shared/schema.ts",nU=new s("db").description("Database operations");nU.command("generate-models").description("Generate ORM models from database schema").option("-o, --output <path>","Output file path",nj).option("-v, --verbose","Enable verbose output").action(async n=>{let e=nw("Generating models from database...").start();try{let{generateModels:i}=await Promise.resolve().then(__webpack_require__.bind(__webpack_require__,"./src/database/index.ts")),a=nB.resolve(n.output);await i({outputPath:a,verbose:n.verbose}),e.succeed(Q.green(`Models generated at ${a}`))}catch(n){e.fail(Q.red("Failed to generate models")),console.error(Q.red(n.message)),process.exit(1)}}),nU.command("upgrade").description("Push schema changes to database").option("-s, --schema <path>","Schema file path",nj).option("-p, --project <path>","Project root path",process.cwd()).option("-v, --verbose","Enable verbose output").action(async n=>{let e=nw("Pushing schema to database...").start();try{let{upgrade:i}=await Promise.resolve().then(__webpack_require__.bind(__webpack_require__,"./src/database/index.ts"));await i({schemaPath:n.schema,projectPath:n.project,verbose:n.verbose}),e.succeed(Q.green("Database schema updated successfully"))}catch(n){e.fail(Q.red("Failed to upgrade database")),console.error(Q.red(n.message)),process.exit(1)}});let nz=new s("embedding").description("Generate embeddings for text, images, or videos using AI").option("-t, --text <text>","Text to embed (can be used multiple times)",(n,e)=>e.concat([n]),[]).option("--image-url <url>","Image URL to embed (can be used multiple times)",(n,e)=>e.concat([n]),[]).option("--video-url <url>","Video URL to embed (can be used multiple times)",(n,e)=>e.concat([n]),[]).option("-d, --dimensions <number>","Output embedding dimensions",parseInt).option("--instructions <text>","Instructions for embedding generation").option("--multi-embedding","Enable multi-embedding mode").option("--sparse-embedding","Enable sparse embedding mode").option("-o, --output <path>","Output file path for embedding JSON").option("--mock","Use mock mode (test run)").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(n,e)=>e.concat([n]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async n=>{let e=n.text&&n.text.length>0,i=n.imageUrl&&n.imageUrl.length>0,a=n.videoUrl&&n.videoUrl.length>0;e||i||a||(console.error(Q.red("Error: At least one of --text, --image-url, or --video-url is required")),process.exit(1));let u=nw("Generating embeddings...").start();try{let t=new c.Config,o={},l=nN(n.header);l&&Object.assign(o,l),n.mock&&(o[nF]=nA,console.log(Q.yellow("\uD83E\uDDEA Mock mode enabled (test run)")));let r=new c.EmbeddingClient(t,Object.keys(o).length>0?o:void 0,n.verbose),s=await r.embed(e?n.text:void 0,i?n.imageUrl:void 0,a?n.videoUrl:void 0,{dimensions:n.dimensions,instructions:n.instructions,multiEmbedding:n.multiEmbedding,sparseEmbedding:n.sparseEmbedding});if(u.succeed(Q.green("Embeddings generated successfully!")),console.log(Q.cyan(`Model: ${s.model}`)),s.data?.embedding&&(console.log(Q.cyan(`Embedding dimensions: ${s.data.embedding.length}`)),console.log(Q.gray(`First 5 values: [${s.data.embedding.slice(0,5).join(", ")}...]`))),s.data?.multi_embedding&&console.log(Q.cyan(`Multi-embedding vectors: ${s.data.multi_embedding.length}`)),s.data?.sparse_embedding&&console.log(Q.cyan(`Sparse embedding items: ${s.data.sparse_embedding.length}`)),s.usage&&console.log(Q.gray(`Tokens used: ${s.usage.total_tokens}`)),n.output){let e=nB.resolve(n.output);nM.writeFileSync(e,JSON.stringify(s,null,2)),console.log(Q.green(`Embedding saved to ${e}`))}}catch(n){u.fail(Q.red("Failed to generate embeddings")),console.error(Q.red(n.message)),process.exit(1)}}),n$=new s("knowledge").description("Knowledge Base tools");n$.command("search").description("Search for knowledge chunks").requiredOption("-q, --query <text>","Search query").option("-d, --dataset <name>","Dataset names (tables) to search in (can be used multiple times)",(n,e)=>e.concat([n]),[]).option("-k, --top-k <number>","Number of results to return","5").option("-m, --min-score <number>","Minimum similarity score","0.0").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(n,e)=>e.concat([n]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async n=>{let e=nw("Searching...").start();try{let i=new c.Config,a=nN(n.header),u=new c.KnowledgeClient(i,a,n.verbose),t=await u.search(n.query,n.dataset.length>0?n.dataset:void 0,parseInt(n.topK),parseFloat(n.minScore));if(0!==t.code)return void e.fail(Q.red(`Error ${t.code}: ${t.msg}`));e.succeed(Q.green("Search completed!")),console.log(Q.bold("\nSearch Results:")),console.log("────────────────────────────────────────────────────────────────────────────────"),0===t.chunks.length&&console.log(Q.yellow("No matching chunks found.")),t.chunks.forEach((n,e)=>{console.log(Q.cyan(`[${e+1}] Score: ${n.score.toFixed(4)}`)),n.doc_id&&console.log(Q.dim(`Doc ID: ${n.doc_id}`)),n.chunk_id&&console.log(Q.dim(`Chunk ID: ${n.chunk_id}`)),console.log(Q.green("Content:")),console.log(n.content),console.log("────────────────────────────────────────────────────────────────────────────────")})}catch(n){e.fail(Q.red("Search failed")),console.error(Q.red(n.message)),process.exit(1)}}),n$.command("add").description("Add documents to knowledge base").requiredOption("-d, --dataset <name>","Dataset name (table) to add to").option("-c, --content <text>","Raw text content to add (can be used multiple times)",(n,e)=>e.concat([n]),[]).option("-u, --url <url>","Web URL to add (can be used multiple times)",(n,e)=>e.concat([n]),[]).option("--chunk-separator <char>","Chunk separator","\\n").option("--max-tokens <number>","Max tokens per chunk","500").option("--remove-extra-spaces","Normalize extra spaces",!1).option("--remove-urls-emails","Strip URLs and emails",!1).option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(n,e)=>e.concat([n]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async n=>{let e=nw("Adding documents...").start();try{let i=new c.Config,a=nN(n.header),u=new c.KnowledgeClient(i,a,n.verbose),t=[];if(n.content&&n.content.forEach(n=>{t.push({source:c.DataSourceType.TEXT,raw_data:n})}),n.url&&n.url.forEach(n=>{t.push({source:c.DataSourceType.URL,url:n})}),0===t.length)return void e.fail(Q.red("No content or URL provided to add."));let o={separator:n.chunkSeparator.replace(/\\n/g,"\n"),max_tokens:parseInt(n.maxTokens),remove_extra_spaces:n.removeExtraSpaces,remove_urls_emails:n.removeUrlsEmails},l=await u.addDocuments(t,n.dataset,o);if(0!==l.code)return void e.fail(Q.red(`Error ${l.code}: ${l.msg}`));e.succeed(Q.green("Documents added successfully!")),l.doc_ids&&l.doc_ids.length>0&&(console.log(Q.cyan(`
73
- Added ${l.doc_ids.length} documents.`)),console.log(Q.dim(`Doc IDs: ${l.doc_ids.join(", ")}`)))}catch(n){e.fail(Q.red("Add documents failed")),console.error(Q.red(n.message)),process.exit(1)}});let nq=new s;nq.name("coze-coding-ai").description("Coze Coding CLI - AI-powered tools for image generation, video generation, search, voice, chat, embedding, and knowledge").version("0.3.0"),nq.addCommand(nQ),nq.addCommand(nG),nq.addCommand(nR),nq.addCommand(nO),nq.addCommand(nk),nq.addCommand(nK),nq.addCommand(nU),nq.addCommand(nz),nq.addCommand(n$),nq.parse(process.argv)})(),__webpack_exports__)exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:!0});
67
+ (Did you mean ${a[0]}?)`:""}},"./node_modules/tslib/tslib.es6.mjs"(n,e,i){"use strict";i.d(e,{Ju:()=>t,YH:()=>u,sH:()=>a});function a(n,e,i,a){return new(i||(i=Promise))(function(u,t){function o(n){try{r(a.next(n))}catch(n){t(n)}}function l(n){try{r(a.throw(n))}catch(n){t(n)}}function r(n){var e;n.done?u(n.value):((e=n.value)instanceof i?e:new i(function(n){n(e)})).then(o,l)}r((a=a.apply(n,e||[])).next())})}function u(n,e){var i,a,u,t={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(r){var s=[l,r];if(i)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(t=0)),t;)try{if(i=1,a&&(u=2&s[0]?a.return:s[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,s[1])).done)return u;switch(a=0,u&&(s=[2&s[0],u.value]),s[0]){case 0:case 1:u=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,a=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(!(u=(u=t.trys).length>0&&u[u.length-1])&&(6===s[0]||2===s[0])){t=0;continue}if(3===s[0]&&(!u||s[1]>u[0]&&s[1]<u[3])){t.label=s[1];break}if(6===s[0]&&t.label<u[1]){t.label=u[1],u=s;break}if(u&&t.label<u[2]){t.label=u[2],t.ops.push(s);break}u[2]&&t.ops.pop(),t.trys.pop();continue}s=e.call(n,t)}catch(n){s=[6,n],a=0}finally{i=u=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}function t(n){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&n[e],a=0;if(i)return i.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&a>=n.length&&(n=void 0),{value:n&&n[a++],done:!n}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}},"./node_modules/dotenv/package.json"(n){"use strict";n.exports=JSON.parse('{"name":"dotenv","version":"17.2.3","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","pretest":"npm run lint && npm run dts-check","test":"tap run tests/**/*.js --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run tests/**/*.js --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"homepage":"https://github.com/motdotla/dotenv#readme","funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@types/node":"^18.11.3","decache":"^4.6.2","sinon":"^14.0.1","standard":"^17.0.0","standard-version":"^9.5.0","tap":"^19.2.0","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')}},__webpack_module_cache__={};function __webpack_require__(n){var e=__webpack_module_cache__[n];if(void 0!==e)return e.exports;var i=__webpack_module_cache__[n]={exports:{}};return __webpack_modules__[n](i,i.exports,__webpack_require__),i.exports}__webpack_require__.n=n=>{var e=n&&n.__esModule?()=>n.default:()=>n;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(n,e)=>{for(var i in e)__webpack_require__.o(e,i)&&!__webpack_require__.o(n,i)&&Object.defineProperty(n,i,{enumerable:!0,get:e[i]})},__webpack_require__.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e);var __webpack_exports__={};for(var __rspack_i in(()=>{"use strict";let n,e,i,a,{program:u,createCommand:t,createArgument:o,createOption:l,CommanderError:r,InvalidArgumentError:s,InvalidOptionArgumentError:h,Command:g,Argument:d,Option:c,Help:p}=__webpack_require__("./node_modules/commander/index.js");var m=__webpack_require__("./src/index.ts");let f=(n=0)=>e=>`\u001B[${e+n}m`,C=(n=0)=>e=>`\u001B[${38+n};5;${e}m`,S=(n=0)=>(e,i,a)=>`\u001B[${38+n};2;${e};${i};${a}m`,Y={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(Y.modifier);let y=Object.keys(Y.color);[...y,...Object.keys(Y.bgColor)];let L=function(){let n=new Map;for(let[e,i]of Object.entries(Y)){for(let[e,a]of Object.entries(i))Y[e]={open:`\u001B[${a[0]}m`,close:`\u001B[${a[1]}m`},i[e]=Y[e],n.set(a[0],a[1]);Object.defineProperty(Y,e,{value:i,enumerable:!1})}return Object.defineProperty(Y,"codes",{value:n,enumerable:!1}),Y.color.close="\x1b[39m",Y.bgColor.close="\x1b[49m",Y.color.ansi=f(),Y.color.ansi256=C(),Y.color.ansi16m=S(),Y.bgColor.ansi=f(10),Y.bgColor.ansi256=C(10),Y.bgColor.ansi16m=S(10),Object.defineProperties(Y,{rgbToAnsi256:{value:(n,e,i)=>n===e&&e===i?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(e/255*5)+Math.round(i/255*5),enumerable:!1},hexToRgb:{value(n){let e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(n.toString(16));if(!e)return[0,0,0];let[i]=e;3===i.length&&(i=[...i].map(n=>n+n).join(""));let a=Number.parseInt(i,16);return[a>>16&255,a>>8&255,255&a]},enumerable:!1},hexToAnsi256:{value:n=>Y.rgbToAnsi256(...Y.hexToRgb(n)),enumerable:!1},ansi256ToAnsi:{value(n){let e,i,a;if(n<8)return 30+n;if(n<16)return 90+(n-8);if(n>=232)i=e=((n-232)*10+8)/255,a=e;else{let u=(n-=16)%36;e=Math.floor(n/36)/5,i=Math.floor(u/6)/5,a=u%6/5}let u=2*Math.max(e,i,a);if(0===u)return 30;let t=30+(Math.round(a)<<2|Math.round(i)<<1|Math.round(e));return 2===u&&(t+=60),t},enumerable:!1},rgbToAnsi:{value:(n,e,i)=>Y.ansi256ToAnsi(Y.rgbToAnsi256(n,e,i)),enumerable:!1},hexToAnsi:{value:n=>Y.ansi256ToAnsi(Y.hexToAnsi256(n)),enumerable:!1}}),Y}();var b=__webpack_require__("node:process");let x=require("node:os"),T=require("node:tty");function Z(n,e=globalThis.Deno?globalThis.Deno.args:b.argv){let i=n.startsWith("-")?"":1===n.length?"-":"--",a=e.indexOf(i+n),u=e.indexOf("--");return -1!==a&&(-1===u||a<u)}let{env:_}=b;function J(e,i={}){var a;return 0!==(a=function(e,{streamIsTTY:i,sniffFlags:a=!0}={}){let u=function(){if("FORCE_COLOR"in _)return"true"===_.FORCE_COLOR?1:"false"===_.FORCE_COLOR?0:0===_.FORCE_COLOR.length?1:Math.min(Number.parseInt(_.FORCE_COLOR,10),3)}();void 0!==u&&(n=u);let t=a?n:u;if(0===t)return 0;if(a){if(Z("color=16m")||Z("color=full")||Z("color=truecolor"))return 3;if(Z("color=256"))return 2}if("TF_BUILD"in _&&"AGENT_NAME"in _)return 1;if(e&&!i&&void 0===t)return 0;let o=t||0;if("dumb"===_.TERM)return o;if("win32"===b.platform){let n=x.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in _)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(n=>n in _)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(n=>n in _)||"codeship"===_.CI_NAME?1:o;if("TEAMCITY_VERSION"in _)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(_.TEAMCITY_VERSION);if("truecolor"===_.COLORTERM||"xterm-kitty"===_.TERM||"xterm-ghostty"===_.TERM||"wezterm"===_.TERM)return 3;if("TERM_PROGRAM"in _){let n=Number.parseInt((_.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(_.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(_.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(_.TERM)||"COLORTERM"in _?1:o}(e,{streamIsTTY:e&&e.isTTY,...i}))&&{level:a,hasBasic:!0,has256:a>=2,has16m:a>=3}}Z("no-color")||Z("no-colors")||Z("color=false")||Z("color=never")?n=0:(Z("color")||Z("colors")||Z("color=true")||Z("color=always"))&&(n=1);let D={stdout:J({isTTY:T.isatty(1)}),stderr:J({isTTY:T.isatty(2)})},{stdout:H,stderr:X}=D,E=Symbol("GENERATOR"),w=Symbol("STYLER"),M=Symbol("IS_EMPTY"),B=["ansi","ansi","ansi256","ansi16m"],v=Object.create(null);function P(n){var e;let i;return e=n,((n,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let i=H?H.level:0;n.level=void 0===e.level?i:e.level})(i=(...n)=>n.join(" "),e),Object.setPrototypeOf(i,P.prototype),i}for(let[n,e]of(Object.setPrototypeOf(P.prototype,Function.prototype),Object.entries(L)))v[n]={get(){let i=Q(this,N(e.open,e.close,this[w]),this[M]);return Object.defineProperty(this,n,{value:i}),i}};v.visible={get(){let n=Q(this,this[w],!0);return Object.defineProperty(this,"visible",{value:n}),n}};let F=(n,e,i,...a)=>"rgb"===n?"ansi16m"===e?L[i].ansi16m(...a):"ansi256"===e?L[i].ansi256(L.rgbToAnsi256(...a)):L[i].ansi(L.rgbToAnsi(...a)):"hex"===n?F("rgb",e,i,...L.hexToRgb(...a)):L[i][n](...a);for(let n of["rgb","hex","ansi256"])v[n]={get(){let{level:e}=this;return function(...i){return Q(this,N(F(n,B[e],"color",...i),L.color.close,this[w]),this[M])}}},v["bg"+n[0].toUpperCase()+n.slice(1)]={get(){let{level:e}=this;return function(...i){return Q(this,N(F(n,B[e],"bgColor",...i),L.bgColor.close,this[w]),this[M])}}};let A=Object.defineProperties(()=>{},{...v,level:{enumerable:!0,get(){return this[E].level},set(n){this[E].level=n}}}),N=(n,e,i)=>{let a,u;return void 0===i?(a=n,u=e):(a=i.openAll+n,u=e+i.closeAll),{open:n,close:e,openAll:a,closeAll:u,parent:i}},Q=(n,e,i)=>{let a=(...n)=>G(a,1===n.length?""+n[0]:n.join(" "));return Object.setPrototypeOf(a,A),a[E]=n,a[w]=e,a[M]=i,a},G=(n,e)=>{if(n.level<=0||!e)return n[M]?"":e;let i=n[w];if(void 0===i)return e;let{openAll:a,closeAll:u}=i;if(e.includes("\x1b"))for(;void 0!==i;)e=function(n,e,i){let a=n.indexOf(e);if(-1===a)return n;let u=e.length,t=0,o="";do o+=n.slice(t,a)+e+i,t=a+u,a=n.indexOf(e,t);while(-1!==a);return o+=n.slice(t)}(e,i.close,i.open),i=i.parent;let t=e.indexOf("\n");return -1!==t&&(e=function(n,e,i,a){let u=0,t="";do{let o="\r"===n[a-1];t+=n.slice(u,o?a-1:a)+e+(o?"\r\n":"\n")+i,u=a+1,a=n.indexOf("\n",u)}while(-1!==a);return t+=n.slice(u)}(e,u,a,t)),a+e+u};Object.defineProperties(P.prototype,v);let R=P();P({level:X?X.level:0});let O=(n,e,i,a)=>{if("length"===i||"prototype"===i||"arguments"===i||"caller"===i)return;let u=Object.getOwnPropertyDescriptor(n,i),t=Object.getOwnPropertyDescriptor(e,i);(k(u,t)||!a)&&Object.defineProperty(n,i,t)},k=function(n,e){return void 0===n||n.configurable||n.writable===e.writable&&n.enumerable===e.enumerable&&n.configurable===e.configurable&&(n.writable||n.value===e.value)},K=(n,e)=>`/* Wrapped ${n}*/
68
+ ${e}`,W=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),I=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),j=new WeakMap,U=(n,e={})=>{let i;if("function"!=typeof n)throw TypeError("Expected a function");let a=0,u=n.displayName||n.name||"<anonymous>",t=function(...o){if(j.set(t,++a),1===a)i=n.apply(this,o),n=void 0;else if(!0===e.throw)throw Error(`Function \`${u}\` can only be called once`);return i};return!function(n,e,{ignoreNonConfigurable:i=!1}={}){var a;let u,{name:t}=n;for(let a of Reflect.ownKeys(e))O(n,e,a,i);a=n,(u=Object.getPrototypeOf(e))!==Object.getPrototypeOf(a)&&Object.setPrototypeOf(a,u),((n,e,i)=>{let a=""===i?"":`with ${i.trim()}() `,u=K.bind(null,a,e.toString());Object.defineProperty(u,"name",I);let{writable:t,enumerable:o,configurable:l}=W;Object.defineProperty(n,"toString",{value:u,writable:t,enumerable:o,configurable:l})})(n,e,t)}(t,n),j.set(t,a),t};U.callCount=n=>{if(!j.has(n))throw Error(`The given function \`${n.name}\` is not wrapped by the \`onetime\` package`);return j.get(n)};let z=[];z.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&z.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&z.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");let $=n=>!!n&&"object"==typeof n&&"function"==typeof n.removeListener&&"function"==typeof n.emit&&"function"==typeof n.reallyExit&&"function"==typeof n.listeners&&"function"==typeof n.kill&&"number"==typeof n.pid&&"function"==typeof n.on,q=Symbol.for("signal-exit emitter"),V=globalThis,nn=Object.defineProperty.bind(Object);class ne{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(V[q])return V[q];nn(V,q,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(n,e){this.listeners[n].push(e)}removeListener(n,e){let i=this.listeners[n],a=i.indexOf(e);-1!==a&&(0===a&&1===i.length?i.length=0:i.splice(a,1))}emit(n,e,i){if(this.emitted[n])return!1;this.emitted[n]=!0;let a=!1;for(let u of this.listeners[n])a=!0===u(e,i)||a;return"exit"===n&&(a=this.emit("afterExit",e,i)||a),a}}class ni{}class na extends ni{#n="win32"===nu.platform?"SIGINT":"SIGHUP";#e=new ne;#i;#a;#u;#t={};#o=!1;constructor(n){for(const e of(super(),this.#i=n,this.#t={},z))this.#t[e]=()=>{let i=this.#i.listeners(e),{count:a}=this.#e;if("object"==typeof n.__signal_exit_emitter__&&"number"==typeof n.__signal_exit_emitter__.count&&(a+=n.__signal_exit_emitter__.count),i.length===a){this.unload();let i=this.#e.emit("exit",null,e),a="SIGHUP"===e?this.#n:e;i||n.kill(n.pid,a)}};this.#u=n.reallyExit,this.#a=n.emit}onExit(n,e){if(!$(this.#i))return()=>{};!1===this.#o&&this.load();let i=e?.alwaysLast?"afterExit":"exit";return this.#e.on(i,n),()=>{this.#e.removeListener(i,n),0===this.#e.listeners.exit.length&&0===this.#e.listeners.afterExit.length&&this.unload()}}load(){if(!this.#o){for(let n of(this.#o=!0,this.#e.count+=1,z))try{let e=this.#t[n];e&&this.#i.on(n,e)}catch(n){}this.#i.emit=(n,...e)=>this.#l(n,...e),this.#i.reallyExit=n=>this.#r(n)}}unload(){this.#o&&(this.#o=!1,z.forEach(n=>{let e=this.#t[n];if(!e)throw Error("Listener not defined for signal: "+n);try{this.#i.removeListener(n,e)}catch(n){}}),this.#i.emit=this.#a,this.#i.reallyExit=this.#u,this.#e.count-=1)}#r(n){return $(this.#i)?(this.#i.exitCode=n||0,this.#e.emit("exit",this.#i.exitCode,null),this.#u.call(this.#i,this.#i.exitCode)):0}#l(n,...e){let i=this.#a;if(!("exit"===n&&$(this.#i)))return i.call(this.#i,n,...e);{"number"==typeof e[0]&&(this.#i.exitCode=e[0]);let a=i.call(this.#i,n,...e);return this.#e.emit("exit",this.#i.exitCode,null),a}}}let nu=globalThis.process,{onExit:nt,load:no,unload:nl}=(e=$(nu)?new na(nu):new class extends ni{onExit(){return()=>{}}load(){}unload(){}},{onExit:(n,i)=>e.onExit(n,i),load:()=>e.load(),unload:()=>e.unload()}),nr=b.stderr.isTTY?b.stderr:b.stdout.isTTY?b.stdout:void 0,ns=nr?U(()=>{nt(()=>{nr.write("\x1b[?25h")},{alwaysLast:!0})}):()=>{},nh=!1,ng={};ng.show=(n=b.stderr)=>{n.isTTY&&(nh=!1,n.write("\x1b[?25h"))},ng.hide=(n=b.stderr)=>{n.isTTY&&(ns(),nh=!0,n.write("\x1b[?25l"))},ng.toggle=(n,e)=>{void 0!==n&&(nh=n),nh?ng.show(e):ng.hide(e)};var nd=JSON.parse('{"dots":{"interval":80,"frames":["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},"dots2":{"interval":80,"frames":["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},"dots3":{"interval":80,"frames":["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},"dots4":{"interval":80,"frames":["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},"dots5":{"interval":80,"frames":["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},"dots6":{"interval":80,"frames":["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},"dots7":{"interval":80,"frames":["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},"dots8":{"interval":80,"frames":["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},"dots9":{"interval":80,"frames":["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},"dots10":{"interval":80,"frames":["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},"dots11":{"interval":100,"frames":["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},"dots12":{"interval":80,"frames":["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},"dots13":{"interval":80,"frames":["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},"dots14":{"interval":80,"frames":["⠉⠉","⠈⠙","⠀⠹","⠀⢸","⠀⣰","⢀⣠","⣀⣀","⣄⡀","⣆⠀","⡇⠀","⠏⠀","⠋⠁"]},"dots8Bit":{"interval":80,"frames":["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},"dotsCircle":{"interval":80,"frames":["⢎ ","⠎⠁","⠊⠑","⠈⠱"," ⡱","⢀⡰","⢄⡠","⢆⡀"]},"sand":{"interval":80,"frames":["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["⠂","-","–","—","–","-"]},"rollingLine":{"interval":80,"frames":["/ "," - "," \\\\ "," |"," |"," \\\\ "," - ","/ "]},"pipe":{"interval":100,"frames":["┤","┘","┴","└","├","┌","┬","┐"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["✶","✸","✹","✺","✹","✷"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","\'","\xb4","-","_","_","_"]},"hamburger":{"interval":100,"frames":["☱","☲","☴"]},"growVertical":{"interval":120,"frames":["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},"growHorizontal":{"interval":120,"frames":["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","\xb0","O","o","."]},"noise":{"interval":100,"frames":["▓","▒","░"]},"bounce":{"interval":120,"frames":["⠁","⠂","⠄","⠂"]},"boxBounce":{"interval":120,"frames":["▖","▘","▝","▗"]},"boxBounce2":{"interval":100,"frames":["▌","▀","▐","▄"]},"triangle":{"interval":50,"frames":["◢","◣","◤","◥"]},"binary":{"interval":80,"frames":["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},"arc":{"interval":100,"frames":["◜","◠","◝","◞","◡","◟"]},"circle":{"interval":120,"frames":["◡","⊙","◠"]},"squareCorners":{"interval":180,"frames":["◰","◳","◲","◱"]},"circleQuarters":{"interval":120,"frames":["◴","◷","◶","◵"]},"circleHalves":{"interval":50,"frames":["◐","◓","◑","◒"]},"squish":{"interval":100,"frames":["╫","╪"]},"toggle":{"interval":250,"frames":["⊶","⊷"]},"toggle2":{"interval":80,"frames":["▫","▪"]},"toggle3":{"interval":120,"frames":["□","■"]},"toggle4":{"interval":100,"frames":["■","□","▪","▫"]},"toggle5":{"interval":100,"frames":["▮","▯"]},"toggle6":{"interval":300,"frames":["ဝ","၀"]},"toggle7":{"interval":80,"frames":["⦾","⦿"]},"toggle8":{"interval":100,"frames":["◍","◌"]},"toggle9":{"interval":100,"frames":["◉","◎"]},"toggle10":{"interval":100,"frames":["㊂","㊀","㊁"]},"toggle11":{"interval":50,"frames":["⧇","⧆"]},"toggle12":{"interval":120,"frames":["☗","☖"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["←","↖","↑","↗","→","↘","↓","↙"]},"arrow2":{"interval":80,"frames":["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},"arrow3":{"interval":120,"frames":["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},"smiley":{"interval":200,"frames":["\uD83D\uDE04 ","\uD83D\uDE1D "]},"monkey":{"interval":300,"frames":["\uD83D\uDE48 ","\uD83D\uDE48 ","\uD83D\uDE49 ","\uD83D\uDE4A "]},"hearts":{"interval":100,"frames":["\uD83D\uDC9B ","\uD83D\uDC99 ","\uD83D\uDC9C ","\uD83D\uDC9A ","\uD83D\uDC97 "]},"clock":{"interval":100,"frames":["\uD83D\uDD5B ","\uD83D\uDD50 ","\uD83D\uDD51 ","\uD83D\uDD52 ","\uD83D\uDD53 ","\uD83D\uDD54 ","\uD83D\uDD55 ","\uD83D\uDD56 ","\uD83D\uDD57 ","\uD83D\uDD58 ","\uD83D\uDD59 ","\uD83D\uDD5A "]},"earth":{"interval":180,"frames":["\uD83C\uDF0D ","\uD83C\uDF0E ","\uD83C\uDF0F "]},"material":{"interval":17,"frames":["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},"moon":{"interval":80,"frames":["\uD83C\uDF11 ","\uD83C\uDF12 ","\uD83C\uDF13 ","\uD83C\uDF14 ","\uD83C\uDF15 ","\uD83C\uDF16 ","\uD83C\uDF17 ","\uD83C\uDF18 "]},"runner":{"interval":140,"frames":["\uD83D\uDEB6 ","\uD83C\uDFC3 "]},"pong":{"interval":80,"frames":["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},"shark":{"interval":120,"frames":["▐|\\\\____________▌","▐_|\\\\___________▌","▐__|\\\\__________▌","▐___|\\\\_________▌","▐____|\\\\________▌","▐_____|\\\\_______▌","▐______|\\\\______▌","▐_______|\\\\_____▌","▐________|\\\\____▌","▐_________|\\\\___▌","▐__________|\\\\__▌","▐___________|\\\\_▌","▐____________|\\\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["☀️ ","☀️ ","☀️ ","\uD83C\uDF24 ","⛅️ ","\uD83C\uDF25 ","☁️ ","\uD83C\uDF27 ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","⛈ ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","☁️ ","\uD83C\uDF25 ","⛅️ ","\uD83C\uDF24 ","☀️ ","☀️ "]},"christmas":{"interval":400,"frames":["\uD83C\uDF32","\uD83C\uDF84"]},"grenade":{"interval":80,"frames":["، ","′ "," \xb4 "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},"point":{"interval":125,"frames":["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},"layer":{"interval":150,"frames":["-","=","≡"]},"betaWave":{"interval":80,"frames":["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},"fingerDance":{"interval":160,"frames":["\uD83E\uDD18 ","\uD83E\uDD1F ","\uD83D\uDD96 ","✋ ","\uD83E\uDD1A ","\uD83D\uDC46 "]},"fistBump":{"interval":80,"frames":["\uD83E\uDD1C    \uD83E\uDD1B ","\uD83E\uDD1C    \uD83E\uDD1B ","\uD83E\uDD1C    \uD83E\uDD1B "," \uD83E\uDD1C  \uD83E\uDD1B  ","  \uD83E\uDD1C\uD83E\uDD1B   "," \uD83E\uDD1C✨\uD83E\uDD1B   ","\uD83E\uDD1C ✨ \uD83E\uDD1B  "]},"soccerHeader":{"interval":80,"frames":[" \uD83E\uDDD1⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️\uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 "]},"mindblown":{"interval":160,"frames":["\uD83D\uDE10 ","\uD83D\uDE10 ","\uD83D\uDE2E ","\uD83D\uDE2E ","\uD83D\uDE26 ","\uD83D\uDE26 ","\uD83D\uDE27 ","\uD83D\uDE27 ","\uD83E\uDD2F ","\uD83D\uDCA5 ","✨ ","  ","  ","  "]},"speaker":{"interval":160,"frames":["\uD83D\uDD08 ","\uD83D\uDD09 ","\uD83D\uDD0A ","\uD83D\uDD09 "]},"orangePulse":{"interval":100,"frames":["\uD83D\uDD38 ","\uD83D\uDD36 ","\uD83D\uDFE0 ","\uD83D\uDFE0 ","\uD83D\uDD36 "]},"bluePulse":{"interval":100,"frames":["\uD83D\uDD39 ","\uD83D\uDD37 ","\uD83D\uDD35 ","\uD83D\uDD35 ","\uD83D\uDD37 "]},"orangeBluePulse":{"interval":100,"frames":["\uD83D\uDD38 ","\uD83D\uDD36 ","\uD83D\uDFE0 ","\uD83D\uDFE0 ","\uD83D\uDD36 ","\uD83D\uDD39 ","\uD83D\uDD37 ","\uD83D\uDD35 ","\uD83D\uDD35 ","\uD83D\uDD37 "]},"timeTravel":{"interval":100,"frames":["\uD83D\uDD5B ","\uD83D\uDD5A ","\uD83D\uDD59 ","\uD83D\uDD58 ","\uD83D\uDD57 ","\uD83D\uDD56 ","\uD83D\uDD55 ","\uD83D\uDD54 ","\uD83D\uDD53 ","\uD83D\uDD52 ","\uD83D\uDD51 ","\uD83D\uDD50 "]},"aesthetic":{"interval":80,"frames":["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]},"dwarfFortress":{"interval":80,"frames":[" ██████\xa3\xa3\xa3 ","☺██████\xa3\xa3\xa3 ","☺██████\xa3\xa3\xa3 ","☺▓█████\xa3\xa3\xa3 ","☺▓█████\xa3\xa3\xa3 ","☺▒█████\xa3\xa3\xa3 ","☺▒█████\xa3\xa3\xa3 ","☺░█████\xa3\xa3\xa3 ","☺░█████\xa3\xa3\xa3 ","☺ █████\xa3\xa3\xa3 "," ☺█████\xa3\xa3\xa3 "," ☺█████\xa3\xa3\xa3 "," ☺▓████\xa3\xa3\xa3 "," ☺▓████\xa3\xa3\xa3 "," ☺▒████\xa3\xa3\xa3 "," ☺▒████\xa3\xa3\xa3 "," ☺░████\xa3\xa3\xa3 "," ☺░████\xa3\xa3\xa3 "," ☺ ████\xa3\xa3\xa3 "," ☺████\xa3\xa3\xa3 "," ☺████\xa3\xa3\xa3 "," ☺▓███\xa3\xa3\xa3 "," ☺▓███\xa3\xa3\xa3 "," ☺▒███\xa3\xa3\xa3 "," ☺▒███\xa3\xa3\xa3 "," ☺░███\xa3\xa3\xa3 "," ☺░███\xa3\xa3\xa3 "," ☺ ███\xa3\xa3\xa3 "," ☺███\xa3\xa3\xa3 "," ☺███\xa3\xa3\xa3 "," ☺▓██\xa3\xa3\xa3 "," ☺▓██\xa3\xa3\xa3 "," ☺▒██\xa3\xa3\xa3 "," ☺▒██\xa3\xa3\xa3 "," ☺░██\xa3\xa3\xa3 "," ☺░██\xa3\xa3\xa3 "," ☺ ██\xa3\xa3\xa3 "," ☺██\xa3\xa3\xa3 "," ☺██\xa3\xa3\xa3 "," ☺▓█\xa3\xa3\xa3 "," ☺▓█\xa3\xa3\xa3 "," ☺▒█\xa3\xa3\xa3 "," ☺▒█\xa3\xa3\xa3 "," ☺░█\xa3\xa3\xa3 "," ☺░█\xa3\xa3\xa3 "," ☺ █\xa3\xa3\xa3 "," ☺█\xa3\xa3\xa3 "," ☺█\xa3\xa3\xa3 "," ☺▓\xa3\xa3\xa3 "," ☺▓\xa3\xa3\xa3 "," ☺▒\xa3\xa3\xa3 "," ☺▒\xa3\xa3\xa3 "," ☺░\xa3\xa3\xa3 "," ☺░\xa3\xa3\xa3 "," ☺ \xa3\xa3\xa3 "," ☺\xa3\xa3\xa3 "," ☺\xa3\xa3\xa3 "," ☺▓\xa3\xa3 "," ☺▓\xa3\xa3 "," ☺▒\xa3\xa3 "," ☺▒\xa3\xa3 "," ☺░\xa3\xa3 "," ☺░\xa3\xa3 "," ☺ \xa3\xa3 "," ☺\xa3\xa3 "," ☺\xa3\xa3 "," ☺▓\xa3 "," ☺▓\xa3 "," ☺▒\xa3 "," ☺▒\xa3 "," ☺░\xa3 "," ☺░\xa3 "," ☺ \xa3 "," ☺\xa3 "," ☺\xa3 "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & \xa3 "," & ░\xa3 "," & ▒\xa3 "," & ▓\xa3 "," & \xa3\xa3 "," & ░\xa3\xa3 "," & ▒\xa3\xa3 ","& ▓\xa3\xa3 ","& \xa3\xa3\xa3 "," ░\xa3\xa3\xa3 "," ▒\xa3\xa3\xa3 "," ▓\xa3\xa3\xa3 "," █\xa3\xa3\xa3 "," ░█\xa3\xa3\xa3 "," ▒█\xa3\xa3\xa3 "," ▓█\xa3\xa3\xa3 "," ██\xa3\xa3\xa3 "," ░██\xa3\xa3\xa3 "," ▒██\xa3\xa3\xa3 "," ▓██\xa3\xa3\xa3 "," ███\xa3\xa3\xa3 "," ░███\xa3\xa3\xa3 "," ▒███\xa3\xa3\xa3 "," ▓███\xa3\xa3\xa3 "," ████\xa3\xa3\xa3 "," ░████\xa3\xa3\xa3 "," ▒████\xa3\xa3\xa3 "," ▓████\xa3\xa3\xa3 "," █████\xa3\xa3\xa3 "," ░█████\xa3\xa3\xa3 "," ▒█████\xa3\xa3\xa3 "," ▓█████\xa3\xa3\xa3 "," ██████\xa3\xa3\xa3 "," ██████\xa3\xa3\xa3 "]}}');Object.keys(nd);let nc=T?.WriteStream?.prototype?.hasColors?.()??!1,np=(n,e)=>{if(!nc)return n=>n;let i=`\u001B[${n}m`,a=`\u001B[${e}m`;return n=>{let u=n+"",t=u.indexOf(a);if(-1===t)return i+u+a;let o=i,l=0,r=(22===e?a:"")+i;for(;-1!==t;)o+=u.slice(l,t)+r,l=t+a.length,t=u.indexOf(a,l);return o+=u.slice(l)+a}};np(0,0),np(1,22),np(2,22),np(3,23),np(4,24),np(53,55),np(7,27),np(8,28),np(9,29),np(30,39);let nm=np(31,39),nf=np(32,39),nC=np(33,39),nS=np(34,39);function nY(){let{env:n}=b,{TERM:e,TERM_PROGRAM:i}=n;return"win32"!==b.platform?"linux"!==e:!!n.WT_SESSION||!!n.TERMINUS_SUBLIME||"{cmd::Cmder}"===n.ConEmuTask||"Terminus-Sublime"===i||"vscode"===i||"xterm-256color"===e||"alacritty"===e||"rxvt-unicode"===e||"rxvt-unicode-256color"===e||"JetBrains-JediTerm"===n.TERMINAL_EMULATOR}np(35,39),np(36,39),np(37,39),np(90,39),np(40,49),np(41,49),np(42,49),np(43,49),np(44,49),np(45,49),np(46,49),np(47,49),np(100,49),np(91,39),np(92,39),np(93,39),np(94,39),np(95,39),np(96,39),np(97,39),np(101,49),np(102,49),np(103,49),np(104,49),np(105,49),np(106,49),np(107,49);let ny=nY(),nL=nS(ny?"ℹ":"i"),nb=nf(ny?"✔":"√"),nx=nC(ny?"⚠":"‼"),nT=nm(ny?"✖":"\xd7"),nZ=function({onlyFirst:n=!1}={}){let e="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))";return RegExp(`${e}|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]`,n?void 0:"g")}();function n_(n){if("string"!=typeof n)throw TypeError(`Expected a \`string\`, got \`${typeof n}\``);return n.replace(nZ,"")}function nJ(n,{ambiguousAsWide:e=!1}={}){var i,a,u,t=n;if(!Number.isSafeInteger(t))throw TypeError(`Expected a code point, got \`${typeof t}\`.`);return 12288===(i=n)||i>=65281&&i<=65376||i>=65504&&i<=65510||(a=n)>=4352&&a<=4447||8986===a||8987===a||9001===a||9002===a||a>=9193&&a<=9196||9200===a||9203===a||9725===a||9726===a||9748===a||9749===a||a>=9776&&a<=9783||a>=9800&&a<=9811||9855===a||a>=9866&&a<=9871||9875===a||9889===a||9898===a||9899===a||9917===a||9918===a||9924===a||9925===a||9934===a||9940===a||9962===a||9970===a||9971===a||9973===a||9978===a||9981===a||9989===a||9994===a||9995===a||10024===a||10060===a||10062===a||a>=10067&&a<=10069||10071===a||a>=10133&&a<=10135||10160===a||10175===a||11035===a||11036===a||11088===a||11093===a||a>=11904&&a<=11929||a>=11931&&a<=12019||a>=12032&&a<=12245||a>=12272&&a<=12287||a>=12289&&a<=12350||a>=12353&&a<=12438||a>=12441&&a<=12543||a>=12549&&a<=12591||a>=12593&&a<=12686||a>=12688&&a<=12773||a>=12783&&a<=12830||a>=12832&&a<=12871||a>=12880&&a<=42124||a>=42128&&a<=42182||a>=43360&&a<=43388||a>=44032&&a<=55203||a>=63744&&a<=64255||a>=65040&&a<=65049||a>=65072&&a<=65106||a>=65108&&a<=65126||a>=65128&&a<=65131||a>=94176&&a<=94180||a>=94192&&a<=94198||a>=94208&&a<=101589||a>=101631&&a<=101662||a>=101760&&a<=101874||a>=110576&&a<=110579||a>=110581&&a<=110587||110589===a||110590===a||a>=110592&&a<=110882||110898===a||a>=110928&&a<=110930||110933===a||a>=110948&&a<=110951||a>=110960&&a<=111355||a>=119552&&a<=119638||a>=119648&&a<=119670||126980===a||127183===a||127374===a||a>=127377&&a<=127386||a>=127488&&a<=127490||a>=127504&&a<=127547||a>=127552&&a<=127560||127568===a||127569===a||a>=127584&&a<=127589||a>=127744&&a<=127776||a>=127789&&a<=127797||a>=127799&&a<=127868||a>=127870&&a<=127891||a>=127904&&a<=127946||a>=127951&&a<=127955||a>=127968&&a<=127984||127988===a||a>=127992&&a<=128062||128064===a||a>=128066&&a<=128252||a>=128255&&a<=128317||a>=128331&&a<=128334||a>=128336&&a<=128359||128378===a||128405===a||128406===a||128420===a||a>=128507&&a<=128591||a>=128640&&a<=128709||128716===a||a>=128720&&a<=128722||a>=128725&&a<=128728||a>=128732&&a<=128735||128747===a||128748===a||a>=128756&&a<=128764||a>=128992&&a<=129003||129008===a||a>=129292&&a<=129338||a>=129340&&a<=129349||a>=129351&&a<=129535||a>=129648&&a<=129660||a>=129664&&a<=129674||a>=129678&&a<=129734||129736===a||a>=129741&&a<=129756||a>=129759&&a<=129770||a>=129775&&a<=129784||a>=131072&&a<=196605||a>=196608&&a<=262141||e&&(161===(u=n)||164===u||167===u||168===u||170===u||173===u||174===u||u>=176&&u<=180||u>=182&&u<=186||u>=188&&u<=191||198===u||208===u||215===u||216===u||u>=222&&u<=225||230===u||u>=232&&u<=234||236===u||237===u||240===u||242===u||243===u||u>=247&&u<=250||252===u||254===u||257===u||273===u||275===u||283===u||294===u||295===u||299===u||u>=305&&u<=307||312===u||u>=319&&u<=322||324===u||u>=328&&u<=331||333===u||338===u||339===u||358===u||359===u||363===u||462===u||464===u||466===u||468===u||470===u||472===u||474===u||476===u||593===u||609===u||708===u||711===u||u>=713&&u<=715||717===u||720===u||u>=728&&u<=731||733===u||735===u||u>=768&&u<=879||u>=913&&u<=929||u>=931&&u<=937||u>=945&&u<=961||u>=963&&u<=969||1025===u||u>=1040&&u<=1103||1105===u||8208===u||u>=8211&&u<=8214||8216===u||8217===u||8220===u||8221===u||u>=8224&&u<=8226||u>=8228&&u<=8231||8240===u||8242===u||8243===u||8245===u||8251===u||8254===u||8308===u||8319===u||u>=8321&&u<=8324||8364===u||8451===u||8453===u||8457===u||8467===u||8470===u||8481===u||8482===u||8486===u||8491===u||8531===u||8532===u||u>=8539&&u<=8542||u>=8544&&u<=8555||u>=8560&&u<=8569||8585===u||u>=8592&&u<=8601||8632===u||8633===u||8658===u||8660===u||8679===u||8704===u||8706===u||8707===u||8711===u||8712===u||8715===u||8719===u||8721===u||8725===u||8730===u||u>=8733&&u<=8736||8739===u||8741===u||u>=8743&&u<=8748||8750===u||u>=8756&&u<=8759||8764===u||8765===u||8776===u||8780===u||8786===u||8800===u||8801===u||u>=8804&&u<=8807||8810===u||8811===u||8814===u||8815===u||8834===u||8835===u||8838===u||8839===u||8853===u||8857===u||8869===u||8895===u||8978===u||u>=9312&&u<=9449||u>=9451&&u<=9547||u>=9552&&u<=9587||u>=9600&&u<=9615||u>=9618&&u<=9621||9632===u||9633===u||u>=9635&&u<=9641||9650===u||9651===u||9654===u||9655===u||9660===u||9661===u||9664===u||9665===u||u>=9670&&u<=9672||9675===u||u>=9678&&u<=9681||u>=9698&&u<=9701||9711===u||9733===u||9734===u||9737===u||9742===u||9743===u||9756===u||9758===u||9792===u||9794===u||9824===u||9825===u||u>=9827&&u<=9829||u>=9831&&u<=9834||9836===u||9837===u||9839===u||9886===u||9887===u||9919===u||u>=9926&&u<=9933||u>=9935&&u<=9939||u>=9941&&u<=9953||9955===u||9960===u||9961===u||u>=9963&&u<=9969||9972===u||u>=9974&&u<=9977||9979===u||9980===u||9982===u||9983===u||10045===u||u>=10102&&u<=10111||u>=11094&&u<=11097||u>=12872&&u<=12879||u>=57344&&u<=63743||u>=65024&&u<=65039||65533===u||u>=127232&&u<=127242||u>=127248&&u<=127277||u>=127280&&u<=127337||u>=127344&&u<=127373||127375===u||127376===u||u>=127387&&u<=127404||u>=917760&&u<=917999||u>=983040&&u<=1048573||u>=1048576&&u<=1114109)?2:1}let nD=new Intl.Segmenter,nH=/^(?:\p{Default_Ignorable_Code_Point}|\p{Control}|\p{Mark}|\p{Surrogate})+$/v,nX=/^[\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Mark}\p{Surrogate}]+/v,nE=/^\p{RGI_Emoji}$/v,nw=new class{#s=0;start(){this.#s++,1===this.#s&&this.#h()}stop(){if(this.#s<=0)throw Error("`stop` called more times than `start`");this.#s--,0===this.#s&&this.#g()}#h(){"win32"!==b.platform&&b.stdin.isTTY&&(b.stdin.setRawMode(!0),b.stdin.on("data",this.#d),b.stdin.resume())}#g(){b.stdin.isTTY&&(b.stdin.off("data",this.#d),b.stdin.pause(),b.stdin.setRawMode(!1))}#d(n){3===n[0]&&b.emit("SIGINT")}};class nM{#c=0;#p=!1;#m=0;#f=-1;#C=0;#S=0;#Y;#y;#L;#b;#x;#T;#Z;#_;#J;#D;#H;color;constructor(n){"string"==typeof n&&(n={text:n}),this.#Y={color:"cyan",stream:b.stderr,discardStdin:!0,hideCursor:!0,...n},this.color=this.#Y.color,this.spinner=this.#Y.spinner,this.#x=this.#Y.interval,this.#L=this.#Y.stream,this.#T="boolean"==typeof this.#Y.isEnabled?this.#Y.isEnabled:function({stream:n=process.stdout}={}){return!!(n&&n.isTTY&&"dumb"!==process.env.TERM&&!("CI"in process.env))}({stream:this.#L}),this.#Z="boolean"==typeof this.#Y.isSilent&&this.#Y.isSilent,this.text=this.#Y.text,this.prefixText=this.#Y.prefixText,this.suffixText=this.#Y.suffixText,this.indent=this.#Y.indent,"test"===b.env.NODE_ENV&&(this._stream=this.#L,this._isEnabled=this.#T,Object.defineProperty(this,"_linesToClear",{get(){return this.#c},set(n){this.#c=n}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#f}}),Object.defineProperty(this,"_lineCount",{get(){return this.#m}}))}get indent(){return this.#_}set indent(n=0){if(!(n>=0&&Number.isInteger(n)))throw Error("The `indent` option must be an integer from 0 and up");this.#_=n,this.#X()}get interval(){return this.#x??this.#y.interval??100}get spinner(){return this.#y}set spinner(n){if(this.#f=-1,this.#x=void 0,"object"==typeof n){if(!Array.isArray(n.frames)||0===n.frames.length||n.frames.some(n=>"string"!=typeof n))throw Error("The given spinner must have a non-empty `frames` array of strings");if(void 0!==n.interval&&!(Number.isInteger(n.interval)&&n.interval>0))throw Error("`spinner.interval` must be a positive integer if provided");this.#y=n}else if(nY())if(void 0===n)this.#y=nd.dots;else if("default"!==n&&nd[n])this.#y=nd[n];else throw Error(`There is no built-in spinner named '${n}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);else this.#y=nd.line}get text(){return this.#J}set text(n=""){this.#J=n,this.#X()}get prefixText(){return this.#D}set prefixText(n=""){this.#D=n,this.#X()}get suffixText(){return this.#H}set suffixText(n=""){this.#H=n,this.#X()}get isSpinning(){return void 0!==this.#b}#E(n,e,i=!1){let a="function"==typeof n?n():n;return"string"==typeof a&&""!==a?i?e+a:a+e:""}#w(n=this.#D,e=" "){return this.#E(n,e,!1)}#M(n=this.#H,e=" "){return this.#E(n,e,!0)}#B(n,e){let i=0;for(let a of n_(n).split("\n"))i+=Math.max(1,Math.ceil(function(n,e={}){if("string"!=typeof n||0===n.length)return 0;let{ambiguousIsNarrow:i=!0,countAnsiEscapeCodes:a=!1}=e,u=n;if(a||(u=n_(u)),0===u.length)return 0;let t=0,o={ambiguousAsWide:!i};for(let{segment:n}of nD.segment(u)){var l;if(l=n,!nH.test(l)){if(nE.test(n)){t+=2;continue}t+=nJ(n.replace(nX,"").codePointAt(0),o),t+=function(n,e){let i=0;if(n.length>1)for(let a of n.slice(1))a>="＀"&&a<="￯"&&(i+=nJ(a.codePointAt(0),e));return i}(n,o)}}return t}(a)/e));return i}#X(){let n=this.#L.columns??80,e="function"==typeof this.#D?"":this.#D,i="function"==typeof this.#H?"":this.#H,a=" ".repeat(this.#_)+("string"==typeof e&&""!==e?e+" ":"")+"-"+("string"==typeof this.#J?" "+this.#J:"")+("string"==typeof i&&""!==i?" "+i:"");this.#m=this.#B(a,n)}get isEnabled(){return this.#T&&!this.#Z}set isEnabled(n){if("boolean"!=typeof n)throw TypeError("The `isEnabled` option must be a boolean");this.#T=n}get isSilent(){return this.#Z}set isSilent(n){if("boolean"!=typeof n)throw TypeError("The `isSilent` option must be a boolean");this.#Z=n}frame(){let n=Date.now();(-1===this.#f||n-this.#C>=this.interval)&&(this.#f=++this.#f%this.#y.frames.length,this.#C=n);let{frames:e}=this.#y,i=e[this.#f];this.color&&(i=R[this.color](i));let a=this.#w(this.#D," "),u="string"==typeof this.text?" "+this.text:"";return a+i+u+this.#M(this.#H," ")}clear(){if(!this.#T||!this.#L.isTTY)return this;this.#L.cursorTo(0);for(let n=0;n<this.#c;n++)n>0&&this.#L.moveCursor(0,-1),this.#L.clearLine(1);return(this.#_||this.#S!==this.#_)&&this.#L.cursorTo(this.#_),this.#S=this.#_,this.#c=0,this}render(){if(!this.#T||this.#Z)return this;this.clear();let n=this.frame(),e=this.#L.columns??80,i=this.#B(n,e),a=this.#L.rows;if(a&&a>1&&i>a){let e=n.split("\n");n=[...e.slice(0,a-1),"... (content truncated to fit terminal)"].join("\n")}return this.#L.write(n),this.#c=this.#B(n,e),this}start(n){if(n&&(this.text=n),this.#Z)return this;if(!this.#T){let n=" ".repeat(this.#_)+this.#w(this.#D," ")+(this.text?`- ${this.text}`:"")+this.#M(this.#H," ");return""!==n.trim()&&this.#L.write(n+"\n"),this}return this.isSpinning||(this.#Y.hideCursor&&ng.hide(this.#L),this.#Y.discardStdin&&b.stdin.isTTY&&(this.#p=!0,nw.start()),this.render(),this.#b=setInterval(this.render.bind(this),this.interval)),this}stop(){return clearInterval(this.#b),this.#b=void 0,this.#f=0,this.#T&&(this.clear(),this.#Y.hideCursor&&ng.show(this.#L)),this.#Y.discardStdin&&b.stdin.isTTY&&this.#p&&(nw.stop(),this.#p=!1),this}succeed(n){return this.stopAndPersist({symbol:nb,text:n})}fail(n){return this.stopAndPersist({symbol:nT,text:n})}warn(n){return this.stopAndPersist({symbol:nx,text:n})}info(n){return this.stopAndPersist({symbol:nL,text:n})}stopAndPersist(n={}){if(this.#Z)return this;let e=n.prefixText??this.#D,i=this.#w(e," "),a=n.symbol??" ",u=n.text??this.text,t=n.suffixText??this.#H,o=i+a+("string"==typeof u?(a?" ":"")+u:"")+this.#M(t," ")+"\n";return this.stop(),this.#L.write(o),this}}function nB(n){return new nM(n)}var nv=__webpack_require__("fs"),nP=__webpack_require__("path"),nF=__webpack_require__("axios"),nA=__webpack_require__.n(nF);let nN="x-run-mode",nQ="test_run";function nG(n){if(!n||0===n.length)return;let e={};for(let i of n){let n,a;if(i.includes(": ")){let e=i.split(": ");n=e[0],a=e.slice(1).join(": ")}else if(i.includes("=")){let e=i.split("=");n=e[0],a=e.slice(1).join("=")}else throw Error(`Invalid header format: '${i}'. Use 'Key: Value' or 'Key=Value'`);e[n.trim()]=a.trim()}return Object.keys(e).length>0?e:void 0}let nR=new g("image").description("Generate images using AI").requiredOption("-p, --prompt <text>","Image generation prompt").option("-o, --output <path>","Output file path (optional)").option("--size <size>","Image size (2K, 4K, or WIDTHxHEIGHT)","2K").option("--mock","Use mock mode (test run)").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(n,e)=>e.concat([n]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async n=>{let e=nB("Generating image...").start();try{let i=new m.Config,a={},u=nG(n.header);u&&Object.assign(a,u),n.mock&&(a[nN]=nQ,console.log(R.yellow("\uD83E\uDDEA Mock mode enabled (test run)")));let t=new m.ImageGenerationClient(i,Object.keys(a).length>0?a:void 0,n.verbose),o=await t.generate({prompt:n.prompt,size:n.size});if(e.succeed(R.green("Image generated successfully!")),o.data&&o.data.length>0&&o.data[0].url&&(console.log(R.cyan(`
69
+ Image URL: ${o.data[0].url}`)),n.output)){e.start("Downloading image...");let i=await nA().get(o.data[0].url,{responseType:"arraybuffer"}),a=nP.resolve(n.output);nv.writeFileSync(a,i.data),e.succeed(R.green(`Image saved to ${a}`))}}catch(n){e.fail(R.red("Failed to generate image")),console.error(R.red(n.message)),process.exit(1)}}),nO=new g("video").description("Generate video using AI (synchronous - waits for completion)").option("-p, --prompt <text>","Text prompt").option("-i, --image-url <url>","Image URL (single or comma-separated two URLs)").option("-s, --size <size>","Video resolution (e.g., 1920x1080)").option("-d, --duration <seconds>","Video duration (5-10 seconds)","5").option("-m, --model <model>","Model name","doubao-seedance-1-0-pro-fast-251015").option("--callback-url <url>","Callback URL").option("--return-last-frame","Return last frame image",!1).option("--watermark","Add watermark",!1).option("--seed <number>","Random seed").option("--camerafixed","Fixed camera",!1).option("-o, --output <path>","Output file path (JSON)").option("--mock","Use mock mode (test run)",!1).option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(n,e)=>e.concat([n]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async n=>{let e=nB("Generating video...").start();try{let i=new m.Config,a={},u=nG(n.header);u&&Object.assign(a,u),n.mock&&(a[nN]=nQ,console.log(R.yellow("\uD83E\uDDEA Mock mode enabled (test run)")));let t=new m.VideoGenerationClient(i,Object.keys(a).length>0?a:void 0,n.verbose),o=n.imageUrl?n.imageUrl.split(",").map(n=>n.trim()):null,{ratio:l,resolution:r}=function(n){if(!n)return{};let[e,i]=n.split("x"),a=parseInt(e),u=parseInt(i);return a===u?{ratio:"1:1",resolution:a<=1024?"720p":"1080p"}:a>u?{ratio:"16:9",resolution:a<=1440?"720p":"1080p"}:{ratio:"9:16",resolution:u<=1440?"720p":"1080p"}}(n.size),s=[];if(n.prompt&&s.push({type:"text",text:n.prompt}),o)if(1===o.length)s.push({type:"image_url",image_url:{url:o[0]},role:"first_frame"});else if(2===o.length)s.push({type:"image_url",image_url:{url:o[0]},role:"first_frame"}),s.push({type:"image_url",image_url:{url:o[1]},role:"last_frame"});else throw Error("Only 1 or 2 images are supported");if(0===s.length)throw Error("Either --prompt or --image-url must be provided");let h=await t.videoGeneration(s,{model:n.model,resolution:r||"720p",ratio:l||"16:9",duration:parseInt(n.duration),watermark:n.watermark,seed:n.seed?parseInt(n.seed):void 0,camerafixed:n.camerafixed,callbackUrl:n.callbackUrl,returnLastFrame:n.returnLastFrame});e.succeed(R.green("✓ Video generation completed!")),console.log(R.cyan("\n=== Video Generation Result ===")),console.log(R.white("Task ID:"),R.green(h.response.id)),console.log(R.white("Status:"),R.green(h.response.status)),h.videoUrl&&console.log(R.white("Video URL:"),R.green(h.videoUrl)),n.returnLastFrame&&h.lastFrameUrl&&console.log(R.white("Last Frame URL:"),R.green(h.lastFrameUrl)),h.response.error_message&&console.log(R.white("Error:"),R.red(h.response.error_message)),h.videoUrl&&(console.log(R.cyan("\nComplete Video URL:")),console.log(R.green(h.videoUrl))),n.returnLastFrame&&h.lastFrameUrl&&(console.log(R.cyan("\nComplete Last Frame URL:")),console.log(R.green(h.lastFrameUrl))),n.output&&(nv.writeFileSync(n.output,JSON.stringify(h.response,null,2)),console.log(R.green(`
70
+ ✓ Result saved to: ${n.output}`)))}catch(n){e.fail(R.red("✗ Video generation failed")),console.error(R.red(`Error: ${n.message}`)),process.exit(1)}}),nk=new g("search").description("Search the web using AI").requiredOption("-q, --query <text>","Search query").option("--type <type>","Search type (web or image)","web").option("--count <number>","Number of results","10").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(n,e)=>e.concat([n]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async n=>{let e=nB("Searching...").start();try{let i,a=new m.Config,u=nG(n.header),t=new m.SearchClient(a,u,n.verbose);i="image"===n.type?await t.imageSearch(n.query,parseInt(n.count)):await t.webSearch(n.query,parseInt(n.count)),e.succeed(R.green("Search completed!")),"image"===n.type&&i.image_items?i.image_items.forEach((n,e)=>{console.log(R.cyan(`
71
+ [${e+1}] ${n.title||"Image"}`)),console.log(R.gray(n.url||"")),console.log(R.yellow(`Image URL: ${n.image.url}`))}):i.web_items&&i.web_items.forEach((n,e)=>{console.log(R.cyan(`
72
+ [${e+1}] ${n.title}`)),console.log(R.gray(n.url||"")),n.snippet&&console.log(n.snippet)})}catch(n){e.fail(R.red("Search failed")),console.error(R.red(n.message)),process.exit(1)}}),nK=new g("tts").description("Text-to-speech conversion").requiredOption("-t, --text <text>","Text to convert to speech").option("--speaker <speaker>","Speaker voice to use","zh_female_xiaohe_uranus_bigtts").option("--mock","Use mock mode (test run)").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(n,e)=>e.concat([n]),[]).action(async n=>{let e=nB("Converting text to speech...").start();try{let i=new m.Config,a={},u=nG(n.header);u&&Object.assign(a,u),n.mock&&(a[nN]=nQ,console.log(R.yellow("\uD83E\uDDEA Mock mode enabled (test run)")));let t=new m.TTSClient(i,Object.keys(a).length>0?a:void 0),o=await t.synthesize({uid:"cli-user",text:n.text,speaker:n.speaker});e.succeed(R.green("Text-to-speech conversion completed!")),console.log(R.cyan(`Audio URL: ${o.audioUri}`)),console.log(R.cyan(`Audio Size: ${o.audioSize} bytes`))}catch(n){e.fail(R.red("Text-to-speech conversion failed")),console.error(R.red(n.message)),process.exit(1)}}),nW=new g("asr").description("Automatic speech recognition").option("-u, --url <url>","Audio file URL").option("-f, --file <path>","Local audio file path (will be base64 encoded)").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(n,e)=>e.concat([n]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async n=>{let e=nB("Recognizing speech...").start();try{n.url||n.file||(e.fail(R.red("Please provide either --url or --file")),process.exit(1));let i=new m.Config,a=nG(n.header),u=new m.ASRClient(i,a,n.verbose),t=n.url?{url:n.url}:{base64Data:nv.readFileSync(nP.resolve(n.file)).toString("base64")},o=await u.recognize(t);e.succeed(R.green("Speech recognition completed!")),console.log(R.cyan("\nRecognized text:")),console.log(o.text)}catch(n){e.fail(R.red("Speech recognition failed")),console.error(R.red(n.message)),process.exit(1)}}),nI=new g("chat").description("Chat with AI using LLM").requiredOption("-p, --prompt <text>","User prompt").option("-s, --system <text>","System prompt").option("--model <model>","Model to use","doubao-seed-1-6-251015").option("--temperature <number>","Temperature (0-2)","0.7").option("--stream","Enable streaming output",!1).option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(n,e)=>e.concat([n]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async n=>{try{let e=new m.Config,i=new m.LLMClient(e),a=nG(n.header),u=[];n.system&&u.push({role:"system",content:n.system}),u.push({role:"user",content:n.prompt});let t={model:n.model,temperature:parseFloat(n.temperature)};if(n.stream){for await(let n of(console.log(R.cyan("\nAI Response:")),i.stream(u,t,void 0,a)))n.content&&process.stdout.write(n.content.toString());console.log("\n")}else{let n=nB("Generating response...").start(),e=await i.invoke(u,t,void 0,a);n.succeed(R.green("Response generated!")),console.log(R.cyan("\nAI Response:")),console.log(e.content)}}catch(n){console.error(R.red("Chat failed")),console.error(R.red(n.message)),process.exit(1)}}),nj=process.env.COZE_PROJECT_TYPE,nU="wechat_mini_program"===nj,nz="app"===nj,n$=(i=process.cwd(),a="server"===nP.basename(i),nU||nz?a?"src/storage/database/shared/schema.ts":"server/src/storage/database/shared/schema.ts":"src/storage/database/shared/schema.ts"),nq=new g("db").description("Database operations");nq.command("generate-models").description("Generate ORM models from database schema").option("-o, --output <path>","Output file path",n$).option("-v, --verbose","Enable verbose output").action(async n=>{let e=nB("Generating models from database...").start();try{let{generateModels:i}=await Promise.resolve().then(__webpack_require__.bind(__webpack_require__,"./src/database/index.ts")),a=nP.resolve(n.output);await i({outputPath:a,verbose:n.verbose}),e.succeed(R.green(`Models generated at ${a}`))}catch(n){e.fail(R.red("Failed to generate models")),console.error(R.red(n.message)),process.exit(1)}}),nq.command("upgrade").description("Push schema changes to database").option("-s, --schema <path>","Schema file path",n$).option("-p, --project <path>","Project root path",process.cwd()).option("-v, --verbose","Enable verbose output").action(async n=>{let e=nB("Pushing schema to database...").start();try{let{upgrade:i}=await Promise.resolve().then(__webpack_require__.bind(__webpack_require__,"./src/database/index.ts"));await i({schemaPath:n.schema,projectPath:n.project,verbose:n.verbose}),e.succeed(R.green("Database schema updated successfully"))}catch(n){e.fail(R.red("Failed to upgrade database")),console.error(R.red(n.message)),process.exit(1)}});let nV=new g("embedding").description("Generate embeddings for text, images, or videos using AI").option("-t, --text <text>","Text to embed (can be used multiple times)",(n,e)=>e.concat([n]),[]).option("--image-url <url>","Image URL to embed (can be used multiple times)",(n,e)=>e.concat([n]),[]).option("--video-url <url>","Video URL to embed (can be used multiple times)",(n,e)=>e.concat([n]),[]).option("-d, --dimensions <number>","Output embedding dimensions",parseInt).option("--instructions <text>","Instructions for embedding generation").option("--multi-embedding","Enable multi-embedding mode").option("--sparse-embedding","Enable sparse embedding mode").option("-o, --output <path>","Output file path for embedding JSON").option("--mock","Use mock mode (test run)").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(n,e)=>e.concat([n]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async n=>{let e=n.text&&n.text.length>0,i=n.imageUrl&&n.imageUrl.length>0,a=n.videoUrl&&n.videoUrl.length>0;e||i||a||(console.error(R.red("Error: At least one of --text, --image-url, or --video-url is required")),process.exit(1));let u=nB("Generating embeddings...").start();try{let t=new m.Config,o={},l=nG(n.header);l&&Object.assign(o,l),n.mock&&(o[nN]=nQ,console.log(R.yellow("\uD83E\uDDEA Mock mode enabled (test run)")));let r=new m.EmbeddingClient(t,Object.keys(o).length>0?o:void 0,n.verbose),s=await r.embed(e?n.text:void 0,i?n.imageUrl:void 0,a?n.videoUrl:void 0,{dimensions:n.dimensions,instructions:n.instructions,multiEmbedding:n.multiEmbedding,sparseEmbedding:n.sparseEmbedding});if(u.succeed(R.green("Embeddings generated successfully!")),console.log(R.cyan(`Model: ${s.model}`)),s.data?.embedding&&(console.log(R.cyan(`Embedding dimensions: ${s.data.embedding.length}`)),console.log(R.gray(`First 5 values: [${s.data.embedding.slice(0,5).join(", ")}...]`))),s.data?.multi_embedding&&console.log(R.cyan(`Multi-embedding vectors: ${s.data.multi_embedding.length}`)),s.data?.sparse_embedding&&console.log(R.cyan(`Sparse embedding items: ${s.data.sparse_embedding.length}`)),s.usage&&console.log(R.gray(`Tokens used: ${s.usage.total_tokens}`)),n.output){let e=nP.resolve(n.output);nv.writeFileSync(e,JSON.stringify(s,null,2)),console.log(R.green(`Embedding saved to ${e}`))}}catch(n){u.fail(R.red("Failed to generate embeddings")),console.error(R.red(n.message)),process.exit(1)}}),n0=new g("knowledge").description("Knowledge Base tools");n0.command("search").description("Search for knowledge chunks").requiredOption("-q, --query <text>","Search query").option("-d, --dataset <name>","Dataset names (tables) to search in (can be used multiple times)",(n,e)=>e.concat([n]),[]).option("-k, --top-k <number>","Number of results to return","5").option("-m, --min-score <number>","Minimum similarity score","0.0").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(n,e)=>e.concat([n]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async n=>{let e=nB("Searching...").start();try{let i=new m.Config,a=nG(n.header),u=new m.KnowledgeClient(i,a,n.verbose),t=await u.search(n.query,n.dataset.length>0?n.dataset:void 0,parseInt(n.topK),parseFloat(n.minScore));if(0!==t.code)return void e.fail(R.red(`Error ${t.code}: ${t.msg}`));e.succeed(R.green("Search completed!")),console.log(R.bold("\nSearch Results:")),console.log("────────────────────────────────────────────────────────────────────────────────"),0===t.chunks.length&&console.log(R.yellow("No matching chunks found.")),t.chunks.forEach((n,e)=>{console.log(R.cyan(`[${e+1}] Score: ${n.score.toFixed(4)}`)),n.doc_id&&console.log(R.dim(`Doc ID: ${n.doc_id}`)),n.chunk_id&&console.log(R.dim(`Chunk ID: ${n.chunk_id}`)),console.log(R.green("Content:")),console.log(n.content),console.log("────────────────────────────────────────────────────────────────────────────────")})}catch(n){e.fail(R.red("Search failed")),console.error(R.red(n.message)),process.exit(1)}}),n0.command("add").description("Add documents to knowledge base").requiredOption("-d, --dataset <name>","Dataset name (table) to add to").option("-c, --content <text>","Raw text content to add (can be used multiple times)",(n,e)=>e.concat([n]),[]).option("-u, --url <url>","Web URL to add (can be used multiple times)",(n,e)=>e.concat([n]),[]).option("--chunk-separator <char>","Chunk separator","\\n").option("--max-tokens <number>","Max tokens per chunk","500").option("--remove-extra-spaces","Normalize extra spaces",!1).option("--remove-urls-emails","Strip URLs and emails",!1).option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(n,e)=>e.concat([n]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async n=>{let e=nB("Adding documents...").start();try{let i=new m.Config,a=nG(n.header),u=new m.KnowledgeClient(i,a,n.verbose),t=[];if(n.content&&n.content.forEach(n=>{t.push({source:m.DataSourceType.TEXT,raw_data:n})}),n.url&&n.url.forEach(n=>{t.push({source:m.DataSourceType.URL,url:n})}),0===t.length)return void e.fail(R.red("No content or URL provided to add."));let o={separator:n.chunkSeparator.replace(/\\n/g,"\n"),max_tokens:parseInt(n.maxTokens),remove_extra_spaces:n.removeExtraSpaces,remove_urls_emails:n.removeUrlsEmails},l=await u.addDocuments(t,n.dataset,o);if(0!==l.code)return void e.fail(R.red(`Error ${l.code}: ${l.msg}`));e.succeed(R.green("Documents added successfully!")),l.doc_ids&&l.doc_ids.length>0&&(console.log(R.cyan(`
73
+ Added ${l.doc_ids.length} documents.`)),console.log(R.dim(`Doc IDs: ${l.doc_ids.join(", ")}`)))}catch(n){e.fail(R.red("Add documents failed")),console.error(R.red(n.message)),process.exit(1)}});let n1=new g;n1.name("coze-coding-ai").description("Coze Coding CLI - AI-powered tools for image generation, video generation, search, voice, chat, embedding, and knowledge").version("0.3.0"),n1.addCommand(nR),n1.addCommand(nO),n1.addCommand(nk),n1.addCommand(nK),n1.addCommand(nW),n1.addCommand(nI),n1.addCommand(nq),n1.addCommand(nV),n1.addCommand(n0),n1.parse(process.argv)})(),__webpack_exports__)exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1,4 +1,4 @@
1
- let e,t;import*as i from"node:child_process";import*as r from"node:events";import*as s from"node:process";import{__webpack_require__ as o}from"../rslib-runtime.mjs";import n from"node:tty";import{Config as a,VideoGenerationClient as l,axios as h,EmbeddingClient as u,ImageGenerationClient as d,TTSClient as m,ASRClient as p,LLMClient as c,KnowledgeClient as g,DataSourceType as f,SearchClient as _}from"../131.mjs";import{node_os as b}from"../57.mjs";o.add({"node:child_process"(e){e.exports=i},"node:events"(e){e.exports=r},"node:process"(e){e.exports=s},"./node_modules/commander/index.js"(e,t,i){let{Argument:r}=i("./node_modules/commander/lib/argument.js"),{Command:s}=i("./node_modules/commander/lib/command.js"),{CommanderError:o,InvalidArgumentError:n}=i("./node_modules/commander/lib/error.js"),{Help:a}=i("./node_modules/commander/lib/help.js"),{Option:l}=i("./node_modules/commander/lib/option.js");t.program=new s,t.createCommand=e=>new s(e),t.createOption=(e,t)=>new l(e,t),t.createArgument=(e,t)=>new r(e,t),t.Command=s,t.Option=l,t.Argument=r,t.Help=a,t.CommanderError=o,t.InvalidArgumentError=n,t.InvalidOptionArgumentError=n},"./node_modules/commander/lib/argument.js"(e,t,i){let{InvalidArgumentError:r}=i("./node_modules/commander/lib/error.js");t.Argument=class{constructor(e,t){switch(this.description=t||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e}this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(e,t){return t!==this.defaultValue&&Array.isArray(t)?(t.push(e),t):[e]}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,t)=>{if(!this.argChoices.includes(e))throw new r(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(e,t):e},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}},t.humanReadableArgName=function(e){let t=e.name()+(!0===e.variadic?"...":"");return e.required?"<"+t+">":"["+t+"]"}},"./node_modules/commander/lib/command.js"(e,t,i){let r=i("node:events").EventEmitter,s=i("node:child_process"),o=i("node:path"),n=i("node:fs"),a=i("node:process"),{Argument:l,humanReadableArgName:h}=i("./node_modules/commander/lib/argument.js"),{CommanderError:u}=i("./node_modules/commander/lib/error.js"),{Help:d,stripColor:m}=i("./node_modules/commander/lib/help.js"),{Option:p,DualOptions:c}=i("./node_modules/commander/lib/option.js"),{suggestSimilar:g}=i("./node_modules/commander/lib/suggestSimilar.js");class f extends r{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:e=>a.stdout.write(e),writeErr:e=>a.stderr.write(e),outputError:(e,t)=>t(e),getOutHelpWidth:()=>a.stdout.isTTY?a.stdout.columns:void 0,getErrHelpWidth:()=>a.stderr.isTTY?a.stderr.columns:void 0,getOutHasColors:()=>b()??(a.stdout.isTTY&&a.stdout.hasColors?.()),getErrHasColors:()=>b()??(a.stderr.isTTY&&a.stderr.hasColors?.()),stripColor:e=>m(e)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let t=this;t;t=t.parent)e.push(t);return e}command(e,t,i){let r=t,s=i;"object"==typeof r&&null!==r&&(s=r,r=null),s=s||{};let[,o,n]=e.match(/([^ ]+) *(.*)/),a=this.createCommand(o);return(r&&(a.description(r),a._executableHandler=!0),s.isDefault&&(this._defaultCommandName=a._name),a._hidden=!!(s.noHelp||s.hidden),a._executableFile=s.executableFile||null,n&&a.arguments(n),this._registerCommand(a),a.parent=this,a.copyInheritedSettings(this),r)?this:a}createCommand(e){return new f(e)}createHelp(){return Object.assign(new d,this.configureHelp())}configureHelp(e){return void 0===e?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return void 0===e?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...e},this)}showHelpAfterError(e=!0){return"string"!=typeof e&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,t){if(!e._name)throw Error(`Command passed to .addCommand() must have a name
1
+ let e,t,i,r;import*as s from"node:child_process";import*as o from"node:events";import*as n from"node:process";import{__webpack_require__ as a}from"../rslib-runtime.mjs";import l from"node:tty";import{Config as h,VideoGenerationClient as u,axios as d,EmbeddingClient as m,ImageGenerationClient as p,TTSClient as c,ASRClient as g,LLMClient as f,KnowledgeClient as _,DataSourceType as b,SearchClient as v}from"../131.mjs";import{node_os as y}from"../57.mjs";a.add({"node:child_process"(e){e.exports=s},"node:events"(e){e.exports=o},"node:process"(e){e.exports=n},"./node_modules/commander/index.js"(e,t,i){let{Argument:r}=i("./node_modules/commander/lib/argument.js"),{Command:s}=i("./node_modules/commander/lib/command.js"),{CommanderError:o,InvalidArgumentError:n}=i("./node_modules/commander/lib/error.js"),{Help:a}=i("./node_modules/commander/lib/help.js"),{Option:l}=i("./node_modules/commander/lib/option.js");t.program=new s,t.createCommand=e=>new s(e),t.createOption=(e,t)=>new l(e,t),t.createArgument=(e,t)=>new r(e,t),t.Command=s,t.Option=l,t.Argument=r,t.Help=a,t.CommanderError=o,t.InvalidArgumentError=n,t.InvalidOptionArgumentError=n},"./node_modules/commander/lib/argument.js"(e,t,i){let{InvalidArgumentError:r}=i("./node_modules/commander/lib/error.js");t.Argument=class{constructor(e,t){switch(this.description=t||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e}this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(e,t){return t!==this.defaultValue&&Array.isArray(t)?(t.push(e),t):[e]}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,t)=>{if(!this.argChoices.includes(e))throw new r(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(e,t):e},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}},t.humanReadableArgName=function(e){let t=e.name()+(!0===e.variadic?"...":"");return e.required?"<"+t+">":"["+t+"]"}},"./node_modules/commander/lib/command.js"(e,t,i){let r=i("node:events").EventEmitter,s=i("node:child_process"),o=i("node:path"),n=i("node:fs"),a=i("node:process"),{Argument:l,humanReadableArgName:h}=i("./node_modules/commander/lib/argument.js"),{CommanderError:u}=i("./node_modules/commander/lib/error.js"),{Help:d,stripColor:m}=i("./node_modules/commander/lib/help.js"),{Option:p,DualOptions:c}=i("./node_modules/commander/lib/option.js"),{suggestSimilar:g}=i("./node_modules/commander/lib/suggestSimilar.js");class f extends r{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:e=>a.stdout.write(e),writeErr:e=>a.stderr.write(e),outputError:(e,t)=>t(e),getOutHelpWidth:()=>a.stdout.isTTY?a.stdout.columns:void 0,getErrHelpWidth:()=>a.stderr.isTTY?a.stderr.columns:void 0,getOutHasColors:()=>b()??(a.stdout.isTTY&&a.stdout.hasColors?.()),getErrHasColors:()=>b()??(a.stderr.isTTY&&a.stderr.hasColors?.()),stripColor:e=>m(e)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let t=this;t;t=t.parent)e.push(t);return e}command(e,t,i){let r=t,s=i;"object"==typeof r&&null!==r&&(s=r,r=null),s=s||{};let[,o,n]=e.match(/([^ ]+) *(.*)/),a=this.createCommand(o);return(r&&(a.description(r),a._executableHandler=!0),s.isDefault&&(this._defaultCommandName=a._name),a._hidden=!!(s.noHelp||s.hidden),a._executableFile=s.executableFile||null,n&&a.arguments(n),this._registerCommand(a),a.parent=this,a.copyInheritedSettings(this),r)?this:a}createCommand(e){return new f(e)}createHelp(){return Object.assign(new d,this.configureHelp())}configureHelp(e){return void 0===e?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return void 0===e?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...e},this)}showHelpAfterError(e=!0){return"string"!=typeof e&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,t){if(!e._name)throw Error(`Command passed to .addCommand() must have a name
2
2
  - specify the name in Command constructor or using .name()`);return(t=t||{}).isDefault&&(this._defaultCommandName=e._name),(t.noHelp||t.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,t){return new l(e,t)}argument(e,t,i,r){let s=this.createArgument(e,t);return"function"==typeof i?s.default(r).argParser(i):s.default(i),this.addArgument(s),this}arguments(e){return e.trim().split(/ +/).forEach(e=>{this.argument(e)}),this}addArgument(e){let t=this.registeredArguments.slice(-1)[0];if(t?.variadic)throw Error(`only the last argument can be variadic '${t.name()}'`);if(e.required&&void 0!==e.defaultValue&&void 0===e.parseArg)throw Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}helpCommand(e,t){if("boolean"==typeof e)return this._addImplicitHelpCommand=e,e&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;let[,i,r]=(e??"help [command]").match(/([^ ]+) *(.*)/),s=t??"display help for command",o=this.createCommand(i);return o.helpOption(!1),r&&o.arguments(r),s&&o.description(s),this._addImplicitHelpCommand=!0,this._helpCommand=o,(e||t)&&this._initCommandGroup(o),this}addHelpCommand(e,t){return"object"!=typeof e?this.helpCommand(e,t):(this._addImplicitHelpCommand=!0,this._helpCommand=e,this._initCommandGroup(e)),this}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(void 0===this._helpCommand&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(e,t){let i=["preSubcommand","preAction","postAction"];if(!i.includes(e))throw Error(`Unexpected value for event passed to hook : '${e}'.
3
3
  Expecting one of '${i.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(t):this._lifeCycleHooks[e]=[t],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=e=>{if("commander.executeSubCommandAsync"!==e.code)throw e},this}_exit(e,t,i){this._exitCallback&&this._exitCallback(new u(e,t,i)),a.exit(e)}action(e){let t=t=>{let i=this.registeredArguments.length,r=t.slice(0,i);return this._storeOptionsAsProperties?r[i]=this:r[i]=this.opts(),r.push(this),e.apply(this,r)};return this._actionHandler=t,this}createOption(e,t){return new p(e,t)}_callParseArg(e,t,i,r){try{return e.parseArg(t,i)}catch(e){if("commander.invalidArgument"===e.code){let t=`${r} ${e.message}`;this.error(t,{exitCode:e.exitCode,code:e.code})}throw e}}_registerOption(e){let t=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(t){let i=e.long&&this._findOption(e.long)?e.long:e.short;throw Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${i}'
4
4
  - already used by option '${t.flags}'`)}this._initOptionGroup(e),this.options.push(e)}_registerCommand(e){let t=e=>[e.name()].concat(e.aliases()),i=t(e).find(e=>this._findCommand(e));if(i){let r=t(this._findCommand(i)).join("|"),s=t(e).join("|");throw Error(`cannot add command '${s}' as already have command '${r}'`)}this._initCommandGroup(e),this.commands.push(e)}addOption(e){this._registerOption(e);let t=e.name(),i=e.attributeName();if(e.negate){let t=e.long.replace(/^--no-/,"--");this._findOption(t)||this.setOptionValueWithSource(i,void 0===e.defaultValue||e.defaultValue,"default")}else void 0!==e.defaultValue&&this.setOptionValueWithSource(i,e.defaultValue,"default");let r=(t,r,s)=>{null==t&&void 0!==e.presetArg&&(t=e.presetArg);let o=this.getOptionValue(i);null!==t&&e.parseArg?t=this._callParseArg(e,t,o,r):null!==t&&e.variadic&&(t=e._collectValue(t,o)),null==t&&(t=!e.negate&&(!!e.isBoolean()||!!e.optional||"")),this.setOptionValueWithSource(i,t,s)};return this.on("option:"+t,t=>{let i=`error: option '${e.flags}' argument '${t}' is invalid.`;r(t,i,"cli")}),e.envVar&&this.on("optionEnv:"+t,t=>{let i=`error: option '${e.flags}' value '${t}' from env '${e.envVar}' is invalid.`;r(t,i,"env")}),this}_optionEx(e,t,i,r,s){if("object"==typeof t&&t instanceof p)throw Error("To add an Option object use addOption() instead of option() or requiredOption()");let o=this.createOption(t,i);if(o.makeOptionMandatory(!!e.mandatory),"function"==typeof r)o.default(s).argParser(r);else if(r instanceof RegExp){let e=r;r=(t,i)=>{let r=e.exec(t);return r?r[0]:i},o.default(s).argParser(r)}else o.default(r);return this.addOption(o)}option(e,t,i,r){return this._optionEx({},e,t,i,r)}requiredOption(e,t,i,r){return this._optionEx({mandatory:!0},e,t,i,r)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){return this._passThroughOptions=!!e,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(e=!0){if(this.options.length)throw Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,t){return this.setOptionValueWithSource(e,t,void 0)}setOptionValueWithSource(e,t,i){return this._storeOptionsAsProperties?this[e]=t:this._optionValues[e]=t,this._optionValueSources[e]=i,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let t;return this._getCommandAndAncestors().forEach(i=>{void 0!==i.getOptionValueSource(e)&&(t=i.getOptionValueSource(e))}),t}_prepareUserArgs(e,t){let i;if(void 0!==e&&!Array.isArray(e))throw Error("first parameter to parse must be array or undefined");if(t=t||{},void 0===e&&void 0===t.from){a.versions?.electron&&(t.from="electron");let e=a.execArgv??[];(e.includes("-e")||e.includes("--eval")||e.includes("-p")||e.includes("--print"))&&(t.from="eval")}switch(void 0===e&&(e=a.argv),this.rawArgs=e.slice(),t.from){case void 0:case"node":this._scriptPath=e[1],i=e.slice(2);break;case"electron":a.defaultApp?(this._scriptPath=e[1],i=e.slice(2)):i=e.slice(1);break;case"user":i=e.slice(0);break;case"eval":i=e.slice(1);break;default:throw Error(`unexpected parse option { from: '${t.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",i}parse(e,t){this._prepareForParse();let i=this._prepareUserArgs(e,t);return this._parseCommand([],i),this}async parseAsync(e,t){this._prepareForParse();let i=this._prepareUserArgs(e,t);return await this._parseCommand([],i),this}_prepareForParse(){null===this._savedState?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw Error(`Can not call parse again when storeOptionsAsProperties is true.
@@ -19,10 +19,10 @@ ${o}`)}boxWrap(e,t){if(t<this.minWidthToWrap)return e;let i=e.split(/\r\n|\n/),r
19
19
  - too many long flags`);throw Error(`${i}
20
20
  - unrecognised flag format`)}if(void 0===t&&void 0===i)throw Error(`option creation failed due to no flags found in '${e}'.`);return{shortFlag:t,longFlag:i}}(e);this.short=i.shortFlag,this.long=i.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let t=e;return"string"==typeof e&&(t={[e]:!0}),this.implied=Object.assign(this.implied||{},t),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_collectValue(e,t){return t!==this.defaultValue&&Array.isArray(t)?(t.push(e),t):[e]}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,t)=>{if(!this.argChoices.includes(e))throw new r(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(e,t):e},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?s(this.name().replace(/^no-/,"")):s(this.name())}helpGroup(e){return this.helpGroupHeading=e,this}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},t.DualOptions=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(e=>{e.negate?this.negativeOptions.set(e.attributeName(),e):this.positiveOptions.set(e.attributeName(),e)}),this.negativeOptions.forEach((e,t)=>{this.positiveOptions.has(t)&&this.dualOptions.add(t)})}valueFromOption(e,t){let i=t.attributeName();if(!this.dualOptions.has(i))return!0;let r=this.negativeOptions.get(i).presetArg;return t.negate===((void 0!==r&&r)===e)}}},"./node_modules/commander/lib/suggestSimilar.js"(e,t){t.suggestSimilar=function(e,t){if(!t||0===t.length)return"";t=Array.from(new Set(t));let i=e.startsWith("--");i&&(e=e.slice(2),t=t.map(e=>e.slice(2)));let r=[],s=3;return(t.forEach(t=>{if(t.length<=1)return;let i=function(e,t){if(Math.abs(e.length-t.length)>3)return Math.max(e.length,t.length);let i=[];for(let t=0;t<=e.length;t++)i[t]=[t];for(let e=0;e<=t.length;e++)i[0][e]=e;for(let r=1;r<=t.length;r++)for(let s=1;s<=e.length;s++){let o=1;o=+(e[s-1]!==t[r-1]),i[s][r]=Math.min(i[s-1][r]+1,i[s][r-1]+1,i[s-1][r-1]+o),s>1&&r>1&&e[s-1]===t[r-2]&&e[s-2]===t[r-1]&&(i[s][r]=Math.min(i[s][r],i[s-2][r-2]+1))}return i[e.length][t.length]}(e,t),o=Math.max(e.length,t.length);(o-i)/o>.4&&(i<s?(s=i,r=[t]):i===s&&r.push(t))}),r.sort((e,t)=>e.localeCompare(t)),i&&(r=r.map(e=>`--${e}`)),r.length>1)?`
21
21
  (Did you mean one of ${r.join(", ")}?)`:1===r.length?`
22
- (Did you mean ${r[0]}?)`:""}}});let{program:v,createCommand:y,createArgument:O,createOption:x,CommanderError:C,InvalidArgumentError:T,InvalidOptionArgumentError:w,Command:E,Argument:A,Option:S,Help:k}=o("./node_modules/commander/index.js"),$=(e=0)=>t=>`\u001B[${t+e}m`,I=(e=0)=>t=>`\u001B[${38+e};5;${t}m`,P=(e=0)=>(t,i,r)=>`\u001B[${38+e};2;${t};${i};${r}m`,H={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(H.modifier),[...Object.keys(H.color),...Object.keys(H.bgColor)];let V=function(){let e=new Map;for(let[t,i]of Object.entries(H)){for(let[t,r]of Object.entries(i))H[t]={open:`\u001B[${r[0]}m`,close:`\u001B[${r[1]}m`},i[t]=H[t],e.set(r[0],r[1]);Object.defineProperty(H,t,{value:i,enumerable:!1})}return Object.defineProperty(H,"codes",{value:e,enumerable:!1}),H.color.close="\x1b[39m",H.bgColor.close="\x1b[49m",H.color.ansi=$(),H.color.ansi256=I(),H.color.ansi16m=P(),H.bgColor.ansi=$(10),H.bgColor.ansi256=I(10),H.bgColor.ansi16m=P(10),Object.defineProperties(H,{rgbToAnsi256:{value:(e,t,i)=>e===t&&t===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(i/255*5),enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[i]=t;3===i.length&&(i=[...i].map(e=>e+e).join(""));let r=Number.parseInt(i,16);return[r>>16&255,r>>8&255,255&r]},enumerable:!1},hexToAnsi256:{value:e=>H.rgbToAnsi256(...H.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){let t,i,r;if(e<8)return 30+e;if(e<16)return 90+(e-8);if(e>=232)i=t=((e-232)*10+8)/255,r=t;else{let s=(e-=16)%36;t=Math.floor(e/36)/5,i=Math.floor(s/6)/5,r=s%6/5}let s=2*Math.max(t,i,r);if(0===s)return 30;let o=30+(Math.round(r)<<2|Math.round(i)<<1|Math.round(t));return 2===s&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,t,i)=>H.ansi256ToAnsi(H.rgbToAnsi256(e,t,i)),enumerable:!1},hexToAnsi:{value:e=>H.ansi256ToAnsi(H.hexToAnsi256(e)),enumerable:!1}}),H}(),R=o("node:process");function j(e,t=globalThis.Deno?globalThis.Deno.args:R.default.argv){let i=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(i+e),s=t.indexOf("--");return -1!==r&&(-1===s||r<s)}let{env:M}=R.default;function G(t,i={}){var r;return 0!==(r=function(t,{streamIsTTY:i,sniffFlags:r=!0}={}){let s=function(){if("FORCE_COLOR"in M)return"true"===M.FORCE_COLOR?1:"false"===M.FORCE_COLOR?0:0===M.FORCE_COLOR.length?1:Math.min(Number.parseInt(M.FORCE_COLOR,10),3)}();void 0!==s&&(e=s);let o=r?e:s;if(0===o)return 0;if(r){if(j("color=16m")||j("color=full")||j("color=truecolor"))return 3;if(j("color=256"))return 2}if("TF_BUILD"in M&&"AGENT_NAME"in M)return 1;if(t&&!i&&void 0===o)return 0;let n=o||0;if("dumb"===M.TERM)return n;if("win32"===R.default.platform){let e=b.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in M)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(e=>e in M)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(e=>e in M)||"codeship"===M.CI_NAME?1:n;if("TEAMCITY_VERSION"in M)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(M.TEAMCITY_VERSION);if("truecolor"===M.COLORTERM||"xterm-kitty"===M.TERM||"xterm-ghostty"===M.TERM||"wezterm"===M.TERM)return 3;if("TERM_PROGRAM"in M){let e=Number.parseInt((M.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(M.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(M.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(M.TERM)||"COLORTERM"in M?1:n}(t,{streamIsTTY:t&&t.isTTY,...i}))&&{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}j("no-color")||j("no-colors")||j("color=false")||j("color=never")?e=0:(j("color")||j("colors")||j("color=true")||j("color=always"))&&(e=1);let{stdout:F,stderr:L}={stdout:G({isTTY:n.isatty(1)}),stderr:G({isTTY:n.isatty(2)})},N=Symbol("GENERATOR"),D=Symbol("STYLER"),U=Symbol("IS_EMPTY"),W=["ansi","ansi","ansi256","ansi16m"],B=Object.create(null);function q(e){let t;return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let i=F?F.level:0;e.level=void 0===t.level?i:t.level})(t=(...e)=>e.join(" "),e),Object.setPrototypeOf(t,q.prototype),t}for(let[e,t]of(Object.setPrototypeOf(q.prototype,Function.prototype),Object.entries(V)))B[e]={get(){let i=J(this,z(t.open,t.close,this[D]),this[U]);return Object.defineProperty(this,e,{value:i}),i}};B.visible={get(){let e=J(this,this[D],!0);return Object.defineProperty(this,"visible",{value:e}),e}};let K=(e,t,i,...r)=>"rgb"===e?"ansi16m"===t?V[i].ansi16m(...r):"ansi256"===t?V[i].ansi256(V.rgbToAnsi256(...r)):V[i].ansi(V.rgbToAnsi(...r)):"hex"===e?K("rgb",t,i,...V.hexToRgb(...r)):V[i][e](...r);for(let e of["rgb","hex","ansi256"])B[e]={get(){let{level:t}=this;return function(...i){return J(this,z(K(e,W[t],"color",...i),V.color.close,this[D]),this[U])}}},B["bg"+e[0].toUpperCase()+e.slice(1)]={get(){let{level:t}=this;return function(...i){return J(this,z(K(e,W[t],"bgColor",...i),V.bgColor.close,this[D]),this[U])}}};let Y=Object.defineProperties(()=>{},{...B,level:{enumerable:!0,get(){return this[N].level},set(e){this[N].level=e}}}),z=(e,t,i)=>{let r,s;return void 0===i?(r=e,s=t):(r=i.openAll+e,s=t+i.closeAll),{open:e,close:t,openAll:r,closeAll:s,parent:i}},J=(e,t,i)=>{let r=(...e)=>Z(r,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(r,Y),r[N]=e,r[D]=t,r[U]=i,r},Z=(e,t)=>{if(e.level<=0||!t)return e[U]?"":t;let i=e[D];if(void 0===i)return t;let{openAll:r,closeAll:s}=i;if(t.includes("\x1b"))for(;void 0!==i;)t=function(e,t,i){let r=e.indexOf(t);if(-1===r)return e;let s=t.length,o=0,n="";do n+=e.slice(o,r)+t+i,o=r+s,r=e.indexOf(t,o);while(-1!==r);return n+e.slice(o)}(t,i.close,i.open),i=i.parent;let o=t.indexOf("\n");return -1!==o&&(t=function(e,t,i,r){let s=0,o="";do{let n="\r"===e[r-1];o+=e.slice(s,n?r-1:r)+t+(n?"\r\n":"\n")+i,s=r+1,r=e.indexOf("\n",s)}while(-1!==r);return o+e.slice(s)}(t,s,r,o)),r+t+s};Object.defineProperties(q.prototype,B);let X=q();q({level:L?L.level:0});let Q=(e,t,i,r)=>{if("length"===i||"prototype"===i||"arguments"===i||"caller"===i)return;let s=Object.getOwnPropertyDescriptor(e,i),o=Object.getOwnPropertyDescriptor(t,i);(ee(s,o)||!r)&&Object.defineProperty(e,i,o)},ee=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},et=(e,t)=>`/* Wrapped ${e}*/
23
- ${t}`,ei=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),er=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),es=new WeakMap,eo=(e,t={})=>{let i;if("function"!=typeof e)throw TypeError("Expected a function");let r=0,s=e.displayName||e.name||"<anonymous>",o=function(...n){if(es.set(o,++r),1===r)i=e.apply(this,n),e=void 0;else if(!0===t.throw)throw Error(`Function \`${s}\` can only be called once`);return i};return!function(e,t,{ignoreNonConfigurable:i=!1}={}){let r,{name:s}=e;for(let r of Reflect.ownKeys(t))Q(e,t,r,i);(r=Object.getPrototypeOf(t))!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r),((e,t,i)=>{let r=""===i?"":`with ${i.trim()}() `,s=et.bind(null,r,t.toString());Object.defineProperty(s,"name",er);let{writable:o,enumerable:n,configurable:a}=ei;Object.defineProperty(e,"toString",{value:s,writable:o,enumerable:n,configurable:a})})(e,t,s)}(o,e),es.set(o,r),o};eo.callCount=e=>{if(!es.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return es.get(e)};let en=[];en.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&en.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&en.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");let ea=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,el=Symbol.for("signal-exit emitter"),eh=globalThis,eu=Object.defineProperty.bind(Object);class ed{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(eh[el])return eh[el];eu(eh,el,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){let i=this.listeners[e],r=i.indexOf(t);-1!==r&&(0===r&&1===i.length?i.length=0:i.splice(r,1))}emit(e,t,i){if(this.emitted[e])return!1;this.emitted[e]=!0;let r=!1;for(let s of this.listeners[e])r=!0===s(t,i)||r;return"exit"===e&&(r=this.emit("afterExit",t,i)||r),r}}class em{}class ep extends em{#e="win32"===ec.platform?"SIGINT":"SIGHUP";#t=new ed;#i;#r;#s;#o={};#n=!1;constructor(e){for(let t of(super(),this.#i=e,this.#o={},en))this.#o[t]=()=>{let i=this.#i.listeners(t),{count:r}=this.#t;if("object"==typeof e.__signal_exit_emitter__&&"number"==typeof e.__signal_exit_emitter__.count&&(r+=e.__signal_exit_emitter__.count),i.length===r){this.unload();let i=this.#t.emit("exit",null,t),r="SIGHUP"===t?this.#e:t;i||e.kill(e.pid,r)}};this.#s=e.reallyExit,this.#r=e.emit}onExit(e,t){if(!ea(this.#i))return()=>{};!1===this.#n&&this.load();let i=t?.alwaysLast?"afterExit":"exit";return this.#t.on(i,e),()=>{this.#t.removeListener(i,e),0===this.#t.listeners.exit.length&&0===this.#t.listeners.afterExit.length&&this.unload()}}load(){if(!this.#n){for(let e of(this.#n=!0,this.#t.count+=1,en))try{let t=this.#o[e];t&&this.#i.on(e,t)}catch(e){}this.#i.emit=(e,...t)=>this.#a(e,...t),this.#i.reallyExit=e=>this.#l(e)}}unload(){this.#n&&(this.#n=!1,en.forEach(e=>{let t=this.#o[e];if(!t)throw Error("Listener not defined for signal: "+e);try{this.#i.removeListener(e,t)}catch(e){}}),this.#i.emit=this.#r,this.#i.reallyExit=this.#s,this.#t.count-=1)}#l(e){return ea(this.#i)?(this.#i.exitCode=e||0,this.#t.emit("exit",this.#i.exitCode,null),this.#s.call(this.#i,this.#i.exitCode)):0}#a(e,...t){let i=this.#r;if(!("exit"===e&&ea(this.#i)))return i.call(this.#i,e,...t);{"number"==typeof t[0]&&(this.#i.exitCode=t[0]);let r=i.call(this.#i,e,...t);return this.#t.emit("exit",this.#i.exitCode,null),r}}}let ec=globalThis.process,{onExit:eg,load:ef,unload:e_}=(t=ea(ec)?new ep(ec):new class extends em{onExit(){return()=>{}}load(){}unload(){}},{onExit:(e,i)=>t.onExit(e,i),load:()=>t.load(),unload:()=>t.unload()}),eb=R.default.stderr.isTTY?R.default.stderr:R.default.stdout.isTTY?R.default.stdout:void 0,ev=eb?eo(()=>{eg(()=>{eb.write("\x1b[?25h")},{alwaysLast:!0})}):()=>{},ey=!1,eO={};eO.show=(e=R.default.stderr)=>{e.isTTY&&(ey=!1,e.write("\x1b[?25h"))},eO.hide=(e=R.default.stderr)=>{e.isTTY&&(ev(),ey=!0,e.write("\x1b[?25l"))},eO.toggle=(e,t)=>{void 0!==e&&(ey=e),ey?eO.show(t):eO.hide(t)};var ex=JSON.parse('{"dots":{"interval":80,"frames":["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},"dots2":{"interval":80,"frames":["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},"dots3":{"interval":80,"frames":["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},"dots4":{"interval":80,"frames":["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},"dots5":{"interval":80,"frames":["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},"dots6":{"interval":80,"frames":["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},"dots7":{"interval":80,"frames":["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},"dots8":{"interval":80,"frames":["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},"dots9":{"interval":80,"frames":["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},"dots10":{"interval":80,"frames":["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},"dots11":{"interval":100,"frames":["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},"dots12":{"interval":80,"frames":["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},"dots13":{"interval":80,"frames":["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},"dots14":{"interval":80,"frames":["⠉⠉","⠈⠙","⠀⠹","⠀⢸","⠀⣰","⢀⣠","⣀⣀","⣄⡀","⣆⠀","⡇⠀","⠏⠀","⠋⠁"]},"dots8Bit":{"interval":80,"frames":["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},"dotsCircle":{"interval":80,"frames":["⢎ ","⠎⠁","⠊⠑","⠈⠱"," ⡱","⢀⡰","⢄⡠","⢆⡀"]},"sand":{"interval":80,"frames":["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["⠂","-","–","—","–","-"]},"rollingLine":{"interval":80,"frames":["/ "," - "," \\\\ "," |"," |"," \\\\ "," - ","/ "]},"pipe":{"interval":100,"frames":["┤","┘","┴","└","├","┌","┬","┐"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["✶","✸","✹","✺","✹","✷"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","\'","\xb4","-","_","_","_"]},"hamburger":{"interval":100,"frames":["☱","☲","☴"]},"growVertical":{"interval":120,"frames":["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},"growHorizontal":{"interval":120,"frames":["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","\xb0","O","o","."]},"noise":{"interval":100,"frames":["▓","▒","░"]},"bounce":{"interval":120,"frames":["⠁","⠂","⠄","⠂"]},"boxBounce":{"interval":120,"frames":["▖","▘","▝","▗"]},"boxBounce2":{"interval":100,"frames":["▌","▀","▐","▄"]},"triangle":{"interval":50,"frames":["◢","◣","◤","◥"]},"binary":{"interval":80,"frames":["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},"arc":{"interval":100,"frames":["◜","◠","◝","◞","◡","◟"]},"circle":{"interval":120,"frames":["◡","⊙","◠"]},"squareCorners":{"interval":180,"frames":["◰","◳","◲","◱"]},"circleQuarters":{"interval":120,"frames":["◴","◷","◶","◵"]},"circleHalves":{"interval":50,"frames":["◐","◓","◑","◒"]},"squish":{"interval":100,"frames":["╫","╪"]},"toggle":{"interval":250,"frames":["⊶","⊷"]},"toggle2":{"interval":80,"frames":["▫","▪"]},"toggle3":{"interval":120,"frames":["□","■"]},"toggle4":{"interval":100,"frames":["■","□","▪","▫"]},"toggle5":{"interval":100,"frames":["▮","▯"]},"toggle6":{"interval":300,"frames":["ဝ","၀"]},"toggle7":{"interval":80,"frames":["⦾","⦿"]},"toggle8":{"interval":100,"frames":["◍","◌"]},"toggle9":{"interval":100,"frames":["◉","◎"]},"toggle10":{"interval":100,"frames":["㊂","㊀","㊁"]},"toggle11":{"interval":50,"frames":["⧇","⧆"]},"toggle12":{"interval":120,"frames":["☗","☖"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["←","↖","↑","↗","→","↘","↓","↙"]},"arrow2":{"interval":80,"frames":["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},"arrow3":{"interval":120,"frames":["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},"smiley":{"interval":200,"frames":["\uD83D\uDE04 ","\uD83D\uDE1D "]},"monkey":{"interval":300,"frames":["\uD83D\uDE48 ","\uD83D\uDE48 ","\uD83D\uDE49 ","\uD83D\uDE4A "]},"hearts":{"interval":100,"frames":["\uD83D\uDC9B ","\uD83D\uDC99 ","\uD83D\uDC9C ","\uD83D\uDC9A ","\uD83D\uDC97 "]},"clock":{"interval":100,"frames":["\uD83D\uDD5B ","\uD83D\uDD50 ","\uD83D\uDD51 ","\uD83D\uDD52 ","\uD83D\uDD53 ","\uD83D\uDD54 ","\uD83D\uDD55 ","\uD83D\uDD56 ","\uD83D\uDD57 ","\uD83D\uDD58 ","\uD83D\uDD59 ","\uD83D\uDD5A "]},"earth":{"interval":180,"frames":["\uD83C\uDF0D ","\uD83C\uDF0E ","\uD83C\uDF0F "]},"material":{"interval":17,"frames":["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},"moon":{"interval":80,"frames":["\uD83C\uDF11 ","\uD83C\uDF12 ","\uD83C\uDF13 ","\uD83C\uDF14 ","\uD83C\uDF15 ","\uD83C\uDF16 ","\uD83C\uDF17 ","\uD83C\uDF18 "]},"runner":{"interval":140,"frames":["\uD83D\uDEB6 ","\uD83C\uDFC3 "]},"pong":{"interval":80,"frames":["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},"shark":{"interval":120,"frames":["▐|\\\\____________▌","▐_|\\\\___________▌","▐__|\\\\__________▌","▐___|\\\\_________▌","▐____|\\\\________▌","▐_____|\\\\_______▌","▐______|\\\\______▌","▐_______|\\\\_____▌","▐________|\\\\____▌","▐_________|\\\\___▌","▐__________|\\\\__▌","▐___________|\\\\_▌","▐____________|\\\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["☀️ ","☀️ ","☀️ ","\uD83C\uDF24 ","⛅️ ","\uD83C\uDF25 ","☁️ ","\uD83C\uDF27 ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","⛈ ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","☁️ ","\uD83C\uDF25 ","⛅️ ","\uD83C\uDF24 ","☀️ ","☀️ "]},"christmas":{"interval":400,"frames":["\uD83C\uDF32","\uD83C\uDF84"]},"grenade":{"interval":80,"frames":["، ","′ "," \xb4 "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},"point":{"interval":125,"frames":["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},"layer":{"interval":150,"frames":["-","=","≡"]},"betaWave":{"interval":80,"frames":["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},"fingerDance":{"interval":160,"frames":["\uD83E\uDD18 ","\uD83E\uDD1F ","\uD83D\uDD96 ","✋ ","\uD83E\uDD1A ","\uD83D\uDC46 "]},"fistBump":{"interval":80,"frames":["\uD83E\uDD1C    \uD83E\uDD1B ","\uD83E\uDD1C    \uD83E\uDD1B ","\uD83E\uDD1C    \uD83E\uDD1B "," \uD83E\uDD1C  \uD83E\uDD1B  ","  \uD83E\uDD1C\uD83E\uDD1B   "," \uD83E\uDD1C✨\uD83E\uDD1B   ","\uD83E\uDD1C ✨ \uD83E\uDD1B  "]},"soccerHeader":{"interval":80,"frames":[" \uD83E\uDDD1⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️\uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 "]},"mindblown":{"interval":160,"frames":["\uD83D\uDE10 ","\uD83D\uDE10 ","\uD83D\uDE2E ","\uD83D\uDE2E ","\uD83D\uDE26 ","\uD83D\uDE26 ","\uD83D\uDE27 ","\uD83D\uDE27 ","\uD83E\uDD2F ","\uD83D\uDCA5 ","✨ ","  ","  ","  "]},"speaker":{"interval":160,"frames":["\uD83D\uDD08 ","\uD83D\uDD09 ","\uD83D\uDD0A ","\uD83D\uDD09 "]},"orangePulse":{"interval":100,"frames":["\uD83D\uDD38 ","\uD83D\uDD36 ","\uD83D\uDFE0 ","\uD83D\uDFE0 ","\uD83D\uDD36 "]},"bluePulse":{"interval":100,"frames":["\uD83D\uDD39 ","\uD83D\uDD37 ","\uD83D\uDD35 ","\uD83D\uDD35 ","\uD83D\uDD37 "]},"orangeBluePulse":{"interval":100,"frames":["\uD83D\uDD38 ","\uD83D\uDD36 ","\uD83D\uDFE0 ","\uD83D\uDFE0 ","\uD83D\uDD36 ","\uD83D\uDD39 ","\uD83D\uDD37 ","\uD83D\uDD35 ","\uD83D\uDD35 ","\uD83D\uDD37 "]},"timeTravel":{"interval":100,"frames":["\uD83D\uDD5B ","\uD83D\uDD5A ","\uD83D\uDD59 ","\uD83D\uDD58 ","\uD83D\uDD57 ","\uD83D\uDD56 ","\uD83D\uDD55 ","\uD83D\uDD54 ","\uD83D\uDD53 ","\uD83D\uDD52 ","\uD83D\uDD51 ","\uD83D\uDD50 "]},"aesthetic":{"interval":80,"frames":["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]},"dwarfFortress":{"interval":80,"frames":[" ██████\xa3\xa3\xa3 ","☺██████\xa3\xa3\xa3 ","☺██████\xa3\xa3\xa3 ","☺▓█████\xa3\xa3\xa3 ","☺▓█████\xa3\xa3\xa3 ","☺▒█████\xa3\xa3\xa3 ","☺▒█████\xa3\xa3\xa3 ","☺░█████\xa3\xa3\xa3 ","☺░█████\xa3\xa3\xa3 ","☺ █████\xa3\xa3\xa3 "," ☺█████\xa3\xa3\xa3 "," ☺█████\xa3\xa3\xa3 "," ☺▓████\xa3\xa3\xa3 "," ☺▓████\xa3\xa3\xa3 "," ☺▒████\xa3\xa3\xa3 "," ☺▒████\xa3\xa3\xa3 "," ☺░████\xa3\xa3\xa3 "," ☺░████\xa3\xa3\xa3 "," ☺ ████\xa3\xa3\xa3 "," ☺████\xa3\xa3\xa3 "," ☺████\xa3\xa3\xa3 "," ☺▓███\xa3\xa3\xa3 "," ☺▓███\xa3\xa3\xa3 "," ☺▒███\xa3\xa3\xa3 "," ☺▒███\xa3\xa3\xa3 "," ☺░███\xa3\xa3\xa3 "," ☺░███\xa3\xa3\xa3 "," ☺ ███\xa3\xa3\xa3 "," ☺███\xa3\xa3\xa3 "," ☺███\xa3\xa3\xa3 "," ☺▓██\xa3\xa3\xa3 "," ☺▓██\xa3\xa3\xa3 "," ☺▒██\xa3\xa3\xa3 "," ☺▒██\xa3\xa3\xa3 "," ☺░██\xa3\xa3\xa3 "," ☺░██\xa3\xa3\xa3 "," ☺ ██\xa3\xa3\xa3 "," ☺██\xa3\xa3\xa3 "," ☺██\xa3\xa3\xa3 "," ☺▓█\xa3\xa3\xa3 "," ☺▓█\xa3\xa3\xa3 "," ☺▒█\xa3\xa3\xa3 "," ☺▒█\xa3\xa3\xa3 "," ☺░█\xa3\xa3\xa3 "," ☺░█\xa3\xa3\xa3 "," ☺ █\xa3\xa3\xa3 "," ☺█\xa3\xa3\xa3 "," ☺█\xa3\xa3\xa3 "," ☺▓\xa3\xa3\xa3 "," ☺▓\xa3\xa3\xa3 "," ☺▒\xa3\xa3\xa3 "," ☺▒\xa3\xa3\xa3 "," ☺░\xa3\xa3\xa3 "," ☺░\xa3\xa3\xa3 "," ☺ \xa3\xa3\xa3 "," ☺\xa3\xa3\xa3 "," ☺\xa3\xa3\xa3 "," ☺▓\xa3\xa3 "," ☺▓\xa3\xa3 "," ☺▒\xa3\xa3 "," ☺▒\xa3\xa3 "," ☺░\xa3\xa3 "," ☺░\xa3\xa3 "," ☺ \xa3\xa3 "," ☺\xa3\xa3 "," ☺\xa3\xa3 "," ☺▓\xa3 "," ☺▓\xa3 "," ☺▒\xa3 "," ☺▒\xa3 "," ☺░\xa3 "," ☺░\xa3 "," ☺ \xa3 "," ☺\xa3 "," ☺\xa3 "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & \xa3 "," & ░\xa3 "," & ▒\xa3 "," & ▓\xa3 "," & \xa3\xa3 "," & ░\xa3\xa3 "," & ▒\xa3\xa3 ","& ▓\xa3\xa3 ","& \xa3\xa3\xa3 "," ░\xa3\xa3\xa3 "," ▒\xa3\xa3\xa3 "," ▓\xa3\xa3\xa3 "," █\xa3\xa3\xa3 "," ░█\xa3\xa3\xa3 "," ▒█\xa3\xa3\xa3 "," ▓█\xa3\xa3\xa3 "," ██\xa3\xa3\xa3 "," ░██\xa3\xa3\xa3 "," ▒██\xa3\xa3\xa3 "," ▓██\xa3\xa3\xa3 "," ███\xa3\xa3\xa3 "," ░███\xa3\xa3\xa3 "," ▒███\xa3\xa3\xa3 "," ▓███\xa3\xa3\xa3 "," ████\xa3\xa3\xa3 "," ░████\xa3\xa3\xa3 "," ▒████\xa3\xa3\xa3 "," ▓████\xa3\xa3\xa3 "," █████\xa3\xa3\xa3 "," ░█████\xa3\xa3\xa3 "," ▒█████\xa3\xa3\xa3 "," ▓█████\xa3\xa3\xa3 "," ██████\xa3\xa3\xa3 "," ██████\xa3\xa3\xa3 "]}}');Object.keys(ex);let eC=n?.WriteStream?.prototype?.hasColors?.()??!1,eT=(e,t)=>{if(!eC)return e=>e;let i=`\u001B[${e}m`,r=`\u001B[${t}m`;return e=>{let s=e+"",o=s.indexOf(r);if(-1===o)return i+s+r;let n=i,a=0,l=(22===t?r:"")+i;for(;-1!==o;)n+=s.slice(a,o)+l,a=o+r.length,o=s.indexOf(r,a);return n+(s.slice(a)+r)}};eT(0,0),eT(1,22),eT(2,22),eT(3,23),eT(4,24),eT(53,55),eT(7,27),eT(8,28),eT(9,29),eT(30,39);let ew=eT(31,39),eE=eT(32,39),eA=eT(33,39),eS=eT(34,39);function ek(){let{env:e}=R.default,{TERM:t,TERM_PROGRAM:i}=e;return"win32"!==R.default.platform?"linux"!==t:!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||"{cmd::Cmder}"===e.ConEmuTask||"Terminus-Sublime"===i||"vscode"===i||"xterm-256color"===t||"alacritty"===t||"rxvt-unicode"===t||"rxvt-unicode-256color"===t||"JetBrains-JediTerm"===e.TERMINAL_EMULATOR}eT(35,39),eT(36,39),eT(37,39),eT(90,39),eT(40,49),eT(41,49),eT(42,49),eT(43,49),eT(44,49),eT(45,49),eT(46,49),eT(47,49),eT(100,49),eT(91,39),eT(92,39),eT(93,39),eT(94,39),eT(95,39),eT(96,39),eT(97,39),eT(101,49),eT(102,49),eT(103,49),eT(104,49),eT(105,49),eT(106,49),eT(107,49);let e$=ek(),eI=eS(e$?"ℹ":"i"),eP=eE(e$?"✔":"√"),eH=eA(e$?"⚠":"‼"),eV=ew(e$?"✖":"\xd7"),eR=function({onlyFirst:e=!1}={}){return RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",e?void 0:"g")}();function ej(e){if("string"!=typeof e)throw TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(eR,"")}function eM(e,{ambiguousAsWide:t=!1}={}){var i;if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`);return 12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510||(i=e)>=4352&&i<=4447||8986===i||8987===i||9001===i||9002===i||i>=9193&&i<=9196||9200===i||9203===i||9725===i||9726===i||9748===i||9749===i||i>=9776&&i<=9783||i>=9800&&i<=9811||9855===i||i>=9866&&i<=9871||9875===i||9889===i||9898===i||9899===i||9917===i||9918===i||9924===i||9925===i||9934===i||9940===i||9962===i||9970===i||9971===i||9973===i||9978===i||9981===i||9989===i||9994===i||9995===i||10024===i||10060===i||10062===i||i>=10067&&i<=10069||10071===i||i>=10133&&i<=10135||10160===i||10175===i||11035===i||11036===i||11088===i||11093===i||i>=11904&&i<=11929||i>=11931&&i<=12019||i>=12032&&i<=12245||i>=12272&&i<=12287||i>=12289&&i<=12350||i>=12353&&i<=12438||i>=12441&&i<=12543||i>=12549&&i<=12591||i>=12593&&i<=12686||i>=12688&&i<=12773||i>=12783&&i<=12830||i>=12832&&i<=12871||i>=12880&&i<=42124||i>=42128&&i<=42182||i>=43360&&i<=43388||i>=44032&&i<=55203||i>=63744&&i<=64255||i>=65040&&i<=65049||i>=65072&&i<=65106||i>=65108&&i<=65126||i>=65128&&i<=65131||i>=94176&&i<=94180||i>=94192&&i<=94198||i>=94208&&i<=101589||i>=101631&&i<=101662||i>=101760&&i<=101874||i>=110576&&i<=110579||i>=110581&&i<=110587||110589===i||110590===i||i>=110592&&i<=110882||110898===i||i>=110928&&i<=110930||110933===i||i>=110948&&i<=110951||i>=110960&&i<=111355||i>=119552&&i<=119638||i>=119648&&i<=119670||126980===i||127183===i||127374===i||i>=127377&&i<=127386||i>=127488&&i<=127490||i>=127504&&i<=127547||i>=127552&&i<=127560||127568===i||127569===i||i>=127584&&i<=127589||i>=127744&&i<=127776||i>=127789&&i<=127797||i>=127799&&i<=127868||i>=127870&&i<=127891||i>=127904&&i<=127946||i>=127951&&i<=127955||i>=127968&&i<=127984||127988===i||i>=127992&&i<=128062||128064===i||i>=128066&&i<=128252||i>=128255&&i<=128317||i>=128331&&i<=128334||i>=128336&&i<=128359||128378===i||128405===i||128406===i||128420===i||i>=128507&&i<=128591||i>=128640&&i<=128709||128716===i||i>=128720&&i<=128722||i>=128725&&i<=128728||i>=128732&&i<=128735||128747===i||128748===i||i>=128756&&i<=128764||i>=128992&&i<=129003||129008===i||i>=129292&&i<=129338||i>=129340&&i<=129349||i>=129351&&i<=129535||i>=129648&&i<=129660||i>=129664&&i<=129674||i>=129678&&i<=129734||129736===i||i>=129741&&i<=129756||i>=129759&&i<=129770||i>=129775&&i<=129784||i>=131072&&i<=196605||i>=196608&&i<=262141||t&&(161===e||164===e||167===e||168===e||170===e||173===e||174===e||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||198===e||208===e||215===e||216===e||e>=222&&e<=225||230===e||e>=232&&e<=234||236===e||237===e||240===e||242===e||243===e||e>=247&&e<=250||252===e||254===e||257===e||273===e||275===e||283===e||294===e||295===e||299===e||e>=305&&e<=307||312===e||e>=319&&e<=322||324===e||e>=328&&e<=331||333===e||338===e||339===e||358===e||359===e||363===e||462===e||464===e||466===e||468===e||470===e||472===e||474===e||476===e||593===e||609===e||708===e||711===e||e>=713&&e<=715||717===e||720===e||e>=728&&e<=731||733===e||735===e||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||1025===e||e>=1040&&e<=1103||1105===e||8208===e||e>=8211&&e<=8214||8216===e||8217===e||8220===e||8221===e||e>=8224&&e<=8226||e>=8228&&e<=8231||8240===e||8242===e||8243===e||8245===e||8251===e||8254===e||8308===e||8319===e||e>=8321&&e<=8324||8364===e||8451===e||8453===e||8457===e||8467===e||8470===e||8481===e||8482===e||8486===e||8491===e||8531===e||8532===e||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||8585===e||e>=8592&&e<=8601||8632===e||8633===e||8658===e||8660===e||8679===e||8704===e||8706===e||8707===e||8711===e||8712===e||8715===e||8719===e||8721===e||8725===e||8730===e||e>=8733&&e<=8736||8739===e||8741===e||e>=8743&&e<=8748||8750===e||e>=8756&&e<=8759||8764===e||8765===e||8776===e||8780===e||8786===e||8800===e||8801===e||e>=8804&&e<=8807||8810===e||8811===e||8814===e||8815===e||8834===e||8835===e||8838===e||8839===e||8853===e||8857===e||8869===e||8895===e||8978===e||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||9632===e||9633===e||e>=9635&&e<=9641||9650===e||9651===e||9654===e||9655===e||9660===e||9661===e||9664===e||9665===e||e>=9670&&e<=9672||9675===e||e>=9678&&e<=9681||e>=9698&&e<=9701||9711===e||9733===e||9734===e||9737===e||9742===e||9743===e||9756===e||9758===e||9792===e||9794===e||9824===e||9825===e||e>=9827&&e<=9829||e>=9831&&e<=9834||9836===e||9837===e||9839===e||9886===e||9887===e||9919===e||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||9955===e||9960===e||9961===e||e>=9963&&e<=9969||9972===e||e>=9974&&e<=9977||9979===e||9980===e||9982===e||9983===e||10045===e||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||65533===e||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||127375===e||127376===e||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109)?2:1}let eG=new Intl.Segmenter,eF=/^(?:\p{Default_Ignorable_Code_Point}|\p{Control}|\p{Mark}|\p{Surrogate})+$/v,eL=/^[\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Mark}\p{Surrogate}]+/v,eN=/^\p{RGI_Emoji}$/v,eD=new class{#h=0;start(){this.#h++,1===this.#h&&this.#u()}stop(){if(this.#h<=0)throw Error("`stop` called more times than `start`");this.#h--,0===this.#h&&this.#d()}#u(){"win32"!==R.default.platform&&R.default.stdin.isTTY&&(R.default.stdin.setRawMode(!0),R.default.stdin.on("data",this.#m),R.default.stdin.resume())}#d(){R.default.stdin.isTTY&&(R.default.stdin.off("data",this.#m),R.default.stdin.pause(),R.default.stdin.setRawMode(!1))}#m(e){3===e[0]&&R.default.emit("SIGINT")}};class eU{#p=0;#c=!1;#g=0;#f=-1;#_=0;#b=0;#v;#y;#O;#x;#C;#T;#w;#E;#A;#S;#k;color;constructor(e){"string"==typeof e&&(e={text:e}),this.#v={color:"cyan",stream:R.default.stderr,discardStdin:!0,hideCursor:!0,...e},this.color=this.#v.color,this.spinner=this.#v.spinner,this.#C=this.#v.interval,this.#O=this.#v.stream,this.#T="boolean"==typeof this.#v.isEnabled?this.#v.isEnabled:function({stream:e=process.stdout}={}){return!!(e&&e.isTTY&&"dumb"!==process.env.TERM&&!("CI"in process.env))}({stream:this.#O}),this.#w="boolean"==typeof this.#v.isSilent&&this.#v.isSilent,this.text=this.#v.text,this.prefixText=this.#v.prefixText,this.suffixText=this.#v.suffixText,this.indent=this.#v.indent,"test"===R.default.env.NODE_ENV&&(this._stream=this.#O,this._isEnabled=this.#T,Object.defineProperty(this,"_linesToClear",{get(){return this.#p},set(e){this.#p=e}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#f}}),Object.defineProperty(this,"_lineCount",{get(){return this.#g}}))}get indent(){return this.#E}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw Error("The `indent` option must be an integer from 0 and up");this.#E=e,this.#$()}get interval(){return this.#C??this.#y.interval??100}get spinner(){return this.#y}set spinner(e){if(this.#f=-1,this.#C=void 0,"object"==typeof e){if(!Array.isArray(e.frames)||0===e.frames.length||e.frames.some(e=>"string"!=typeof e))throw Error("The given spinner must have a non-empty `frames` array of strings");if(void 0!==e.interval&&!(Number.isInteger(e.interval)&&e.interval>0))throw Error("`spinner.interval` must be a positive integer if provided");this.#y=e}else if(ek())if(void 0===e)this.#y=ex.dots;else if("default"!==e&&ex[e])this.#y=ex[e];else throw Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);else this.#y=ex.line}get text(){return this.#A}set text(e=""){this.#A=e,this.#$()}get prefixText(){return this.#S}set prefixText(e=""){this.#S=e,this.#$()}get suffixText(){return this.#k}set suffixText(e=""){this.#k=e,this.#$()}get isSpinning(){return void 0!==this.#x}#I(e,t,i=!1){let r="function"==typeof e?e():e;return"string"==typeof r&&""!==r?i?t+r:r+t:""}#P(e=this.#S,t=" "){return this.#I(e,t,!1)}#H(e=this.#k,t=" "){return this.#I(e,t,!0)}#V(e,t){let i=0;for(let r of ej(e).split("\n"))i+=Math.max(1,Math.ceil(function(e,t={}){if("string"!=typeof e||0===e.length)return 0;let{ambiguousIsNarrow:i=!0,countAnsiEscapeCodes:r=!1}=t,s=e;if(r||(s=ej(s)),0===s.length)return 0;let o=0,n={ambiguousAsWide:!i};for(let{segment:e}of eG.segment(s))if(!eF.test(e)){if(eN.test(e)){o+=2;continue}o+=eM(e.replace(eL,"").codePointAt(0),n),o+=function(e,t){let i=0;if(e.length>1)for(let r of e.slice(1))r>="＀"&&r<="￯"&&(i+=eM(r.codePointAt(0),t));return i}(e,n)}return o}(r)/t));return i}#$(){let e=this.#O.columns??80,t="function"==typeof this.#S?"":this.#S,i="function"==typeof this.#k?"":this.#k,r=" ".repeat(this.#E)+("string"==typeof t&&""!==t?t+" ":"")+"-"+("string"==typeof this.#A?" "+this.#A:"")+("string"==typeof i&&""!==i?" "+i:"");this.#g=this.#V(r,e)}get isEnabled(){return this.#T&&!this.#w}set isEnabled(e){if("boolean"!=typeof e)throw TypeError("The `isEnabled` option must be a boolean");this.#T=e}get isSilent(){return this.#w}set isSilent(e){if("boolean"!=typeof e)throw TypeError("The `isSilent` option must be a boolean");this.#w=e}frame(){let e=Date.now();(-1===this.#f||e-this.#_>=this.interval)&&(this.#f=++this.#f%this.#y.frames.length,this.#_=e);let{frames:t}=this.#y,i=t[this.#f];return this.color&&(i=X[this.color](i)),this.#P(this.#S," ")+i+("string"==typeof this.text?" "+this.text:"")+this.#H(this.#k," ")}clear(){if(!this.#T||!this.#O.isTTY)return this;this.#O.cursorTo(0);for(let e=0;e<this.#p;e++)e>0&&this.#O.moveCursor(0,-1),this.#O.clearLine(1);return(this.#E||this.#b!==this.#E)&&this.#O.cursorTo(this.#E),this.#b=this.#E,this.#p=0,this}render(){if(!this.#T||this.#w)return this;this.clear();let e=this.frame(),t=this.#O.columns??80,i=this.#V(e,t),r=this.#O.rows;return r&&r>1&&i>r&&(e=[...e.split("\n").slice(0,r-1),"... (content truncated to fit terminal)"].join("\n")),this.#O.write(e),this.#p=this.#V(e,t),this}start(e){if(e&&(this.text=e),this.#w)return this;if(!this.#T){let e=" ".repeat(this.#E)+this.#P(this.#S," ")+(this.text?`- ${this.text}`:"")+this.#H(this.#k," ");return""!==e.trim()&&this.#O.write(e+"\n"),this}return this.isSpinning||(this.#v.hideCursor&&eO.hide(this.#O),this.#v.discardStdin&&R.default.stdin.isTTY&&(this.#c=!0,eD.start()),this.render(),this.#x=setInterval(this.render.bind(this),this.interval)),this}stop(){return clearInterval(this.#x),this.#x=void 0,this.#f=0,this.#T&&(this.clear(),this.#v.hideCursor&&eO.show(this.#O)),this.#v.discardStdin&&R.default.stdin.isTTY&&this.#c&&(eD.stop(),this.#c=!1),this}succeed(e){return this.stopAndPersist({symbol:eP,text:e})}fail(e){return this.stopAndPersist({symbol:eV,text:e})}warn(e){return this.stopAndPersist({symbol:eH,text:e})}info(e){return this.stopAndPersist({symbol:eI,text:e})}stopAndPersist(e={}){if(this.#w)return this;let t=e.prefixText??this.#S,i=this.#P(t," "),r=e.symbol??" ",s=e.text??this.text,o=e.suffixText??this.#k,n=i+r+("string"==typeof s?(r?" ":"")+s:"")+this.#H(o," ")+"\n";return this.stop(),this.#O.write(n),this}}function eW(e){return new eU(e)}let eB="x-run-mode",eq="test_run";function eK(e){if(!e||0===e.length)return;let t={};for(let i of e){let e,r;if(i.includes(": ")){let t=i.split(": ");e=t[0],r=t.slice(1).join(": ")}else if(i.includes("=")){let t=i.split("=");e=t[0],r=t.slice(1).join("=")}else throw Error(`Invalid header format: '${i}'. Use 'Key: Value' or 'Key=Value'`);t[e.trim()]=r.trim()}return Object.keys(t).length>0?t:void 0}let eY=o("fs"),ez=o("path"),eJ=new E("image").description("Generate images using AI").requiredOption("-p, --prompt <text>","Image generation prompt").option("-o, --output <path>","Output file path (optional)").option("--size <size>","Image size (2K, 4K, or WIDTHxHEIGHT)","2K").option("--mock","Use mock mode (test run)").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=eW("Generating image...").start();try{let i=new a,r={},s=eK(e.header);s&&Object.assign(r,s),e.mock&&(r[eB]=eq,console.log(X.yellow("\uD83E\uDDEA Mock mode enabled (test run)")));let o=new d(i,Object.keys(r).length>0?r:void 0,e.verbose),n=await o.generate({prompt:e.prompt,size:e.size});if(t.succeed(X.green("Image generated successfully!")),n.data&&n.data.length>0&&n.data[0].url&&(console.log(X.cyan(`
24
- Image URL: ${n.data[0].url}`)),e.output)){t.start("Downloading image...");let i=await h.get(n.data[0].url,{responseType:"arraybuffer"}),r=ez.resolve(e.output);eY.writeFileSync(r,i.data),t.succeed(X.green(`Image saved to ${r}`))}}catch(e){t.fail(X.red("Failed to generate image")),console.error(X.red(e.message)),process.exit(1)}}),eZ=new E("video").description("Generate video using AI (synchronous - waits for completion)").option("-p, --prompt <text>","Text prompt").option("-i, --image-url <url>","Image URL (single or comma-separated two URLs)").option("-s, --size <size>","Video resolution (e.g., 1920x1080)").option("-d, --duration <seconds>","Video duration (5-10 seconds)","5").option("-m, --model <model>","Model name","doubao-seedance-1-0-pro-fast-251015").option("--callback-url <url>","Callback URL").option("--return-last-frame","Return last frame image",!1).option("--watermark","Add watermark",!1).option("--seed <number>","Random seed").option("--camerafixed","Fixed camera",!1).option("-o, --output <path>","Output file path (JSON)").option("--mock","Use mock mode (test run)",!1).option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=eW("Generating video...").start();try{let i=new a,r={},s=eK(e.header);s&&Object.assign(r,s),e.mock&&(r[eB]=eq,console.log(X.yellow("\uD83E\uDDEA Mock mode enabled (test run)")));let o=new l(i,Object.keys(r).length>0?r:void 0,e.verbose),n=e.imageUrl?e.imageUrl.split(",").map(e=>e.trim()):null,{ratio:h,resolution:u}=function(e){if(!e)return{};let[t,i]=e.split("x"),r=parseInt(t),s=parseInt(i);return r===s?{ratio:"1:1",resolution:r<=1024?"720p":"1080p"}:r>s?{ratio:"16:9",resolution:r<=1440?"720p":"1080p"}:{ratio:"9:16",resolution:s<=1440?"720p":"1080p"}}(e.size),d=[];if(e.prompt&&d.push({type:"text",text:e.prompt}),n)if(1===n.length)d.push({type:"image_url",image_url:{url:n[0]},role:"first_frame"});else if(2===n.length)d.push({type:"image_url",image_url:{url:n[0]},role:"first_frame"}),d.push({type:"image_url",image_url:{url:n[1]},role:"last_frame"});else throw Error("Only 1 or 2 images are supported");if(0===d.length)throw Error("Either --prompt or --image-url must be provided");let m=await o.videoGeneration(d,{model:e.model,resolution:u||"720p",ratio:h||"16:9",duration:parseInt(e.duration),watermark:e.watermark,seed:e.seed?parseInt(e.seed):void 0,camerafixed:e.camerafixed,callbackUrl:e.callbackUrl,returnLastFrame:e.returnLastFrame});t.succeed(X.green("✓ Video generation completed!")),console.log(X.cyan("\n=== Video Generation Result ===")),console.log(X.white("Task ID:"),X.green(m.response.id)),console.log(X.white("Status:"),X.green(m.response.status)),m.videoUrl&&console.log(X.white("Video URL:"),X.green(m.videoUrl)),e.returnLastFrame&&m.lastFrameUrl&&console.log(X.white("Last Frame URL:"),X.green(m.lastFrameUrl)),m.response.error_message&&console.log(X.white("Error:"),X.red(m.response.error_message)),m.videoUrl&&(console.log(X.cyan("\nComplete Video URL:")),console.log(X.green(m.videoUrl))),e.returnLastFrame&&m.lastFrameUrl&&(console.log(X.cyan("\nComplete Last Frame URL:")),console.log(X.green(m.lastFrameUrl))),e.output&&(eY.writeFileSync(e.output,JSON.stringify(m.response,null,2)),console.log(X.green(`
25
- ✓ Result saved to: ${e.output}`)))}catch(e){t.fail(X.red("✗ Video generation failed")),console.error(X.red(`Error: ${e.message}`)),process.exit(1)}}),eX=new E("search").description("Search the web using AI").requiredOption("-q, --query <text>","Search query").option("--type <type>","Search type (web or image)","web").option("--count <number>","Number of results","10").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=eW("Searching...").start();try{let i,r=new a,s=eK(e.header),o=new _(r,s,e.verbose);i="image"===e.type?await o.imageSearch(e.query,parseInt(e.count)):await o.webSearch(e.query,parseInt(e.count)),t.succeed(X.green("Search completed!")),"image"===e.type&&i.image_items?i.image_items.forEach((e,t)=>{console.log(X.cyan(`
26
- [${t+1}] ${e.title||"Image"}`)),console.log(X.gray(e.url||"")),console.log(X.yellow(`Image URL: ${e.image.url}`))}):i.web_items&&i.web_items.forEach((e,t)=>{console.log(X.cyan(`
27
- [${t+1}] ${e.title}`)),console.log(X.gray(e.url||"")),e.snippet&&console.log(e.snippet)})}catch(e){t.fail(X.red("Search failed")),console.error(X.red(e.message)),process.exit(1)}}),eQ=new E("tts").description("Text-to-speech conversion").requiredOption("-t, --text <text>","Text to convert to speech").option("--speaker <speaker>","Speaker voice to use","zh_female_xiaohe_uranus_bigtts").option("--mock","Use mock mode (test run)").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).action(async e=>{let t=eW("Converting text to speech...").start();try{let i=new a,r={},s=eK(e.header);s&&Object.assign(r,s),e.mock&&(r[eB]=eq,console.log(X.yellow("\uD83E\uDDEA Mock mode enabled (test run)")));let o=new m(i,Object.keys(r).length>0?r:void 0),n=await o.synthesize({uid:"cli-user",text:e.text,speaker:e.speaker});t.succeed(X.green("Text-to-speech conversion completed!")),console.log(X.cyan(`Audio URL: ${n.audioUri}`)),console.log(X.cyan(`Audio Size: ${n.audioSize} bytes`))}catch(e){t.fail(X.red("Text-to-speech conversion failed")),console.error(X.red(e.message)),process.exit(1)}}),e0=new E("asr").description("Automatic speech recognition").option("-u, --url <url>","Audio file URL").option("-f, --file <path>","Local audio file path (will be base64 encoded)").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=eW("Recognizing speech...").start();try{e.url||e.file||(t.fail(X.red("Please provide either --url or --file")),process.exit(1));let i=new a,r=eK(e.header),s=new p(i,r,e.verbose),o=e.url?{url:e.url}:{base64Data:eY.readFileSync(ez.resolve(e.file)).toString("base64")},n=await s.recognize(o);t.succeed(X.green("Speech recognition completed!")),console.log(X.cyan("\nRecognized text:")),console.log(n.text)}catch(e){t.fail(X.red("Speech recognition failed")),console.error(X.red(e.message)),process.exit(1)}}),e1=new E("chat").description("Chat with AI using LLM").requiredOption("-p, --prompt <text>","User prompt").option("-s, --system <text>","System prompt").option("--model <model>","Model to use","doubao-seed-1-6-251015").option("--temperature <number>","Temperature (0-2)","0.7").option("--stream","Enable streaming output",!1).option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{try{let t=new a,i=new c(t),r=eK(e.header),s=[];e.system&&s.push({role:"system",content:e.system}),s.push({role:"user",content:e.prompt});let o={model:e.model,temperature:parseFloat(e.temperature)};if(e.stream){for await(let e of(console.log(X.cyan("\nAI Response:")),i.stream(s,o,void 0,r)))e.content&&process.stdout.write(e.content.toString());console.log("\n")}else{let e=eW("Generating response...").start(),t=await i.invoke(s,o,void 0,r);e.succeed(X.green("Response generated!")),console.log(X.cyan("\nAI Response:")),console.log(t.content)}}catch(e){console.error(X.red("Chat failed")),console.error(X.red(e.message)),process.exit(1)}}),e2="wechat_mini_program"===process.env.COZE_PROJECT_TYPE,e9="app"===process.env.COZE_PROJECT_TYPE,e8=e2||e9?"server/src/storage/database/shared/schema.ts":"src/storage/database/shared/schema.ts",e3=new E("db").description("Database operations");e3.command("generate-models").description("Generate ORM models from database schema").option("-o, --output <path>","Output file path",e8).option("-v, --verbose","Enable verbose output").action(async e=>{let t=eW("Generating models from database...").start();try{let{generateModels:i}=await import("../131.mjs").then(e=>({generateModels:e.generateModels})),r=ez.resolve(e.output);await i({outputPath:r,verbose:e.verbose}),t.succeed(X.green(`Models generated at ${r}`))}catch(e){t.fail(X.red("Failed to generate models")),console.error(X.red(e.message)),process.exit(1)}}),e3.command("upgrade").description("Push schema changes to database").option("-s, --schema <path>","Schema file path",e8).option("-p, --project <path>","Project root path",process.cwd()).option("-v, --verbose","Enable verbose output").action(async e=>{let t=eW("Pushing schema to database...").start();try{let{upgrade:i}=await import("../131.mjs").then(e=>({upgrade:e.upgrade}));await i({schemaPath:e.schema,projectPath:e.project,verbose:e.verbose}),t.succeed(X.green("Database schema updated successfully"))}catch(e){t.fail(X.red("Failed to upgrade database")),console.error(X.red(e.message)),process.exit(1)}});let e7=new E("embedding").description("Generate embeddings for text, images, or videos using AI").option("-t, --text <text>","Text to embed (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("--image-url <url>","Image URL to embed (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("--video-url <url>","Video URL to embed (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("-d, --dimensions <number>","Output embedding dimensions",parseInt).option("--instructions <text>","Instructions for embedding generation").option("--multi-embedding","Enable multi-embedding mode").option("--sparse-embedding","Enable sparse embedding mode").option("-o, --output <path>","Output file path for embedding JSON").option("--mock","Use mock mode (test run)").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=e.text&&e.text.length>0,i=e.imageUrl&&e.imageUrl.length>0,r=e.videoUrl&&e.videoUrl.length>0;t||i||r||(console.error(X.red("Error: At least one of --text, --image-url, or --video-url is required")),process.exit(1));let s=eW("Generating embeddings...").start();try{let o=new a,n={},l=eK(e.header);l&&Object.assign(n,l),e.mock&&(n[eB]=eq,console.log(X.yellow("\uD83E\uDDEA Mock mode enabled (test run)")));let h=new u(o,Object.keys(n).length>0?n:void 0,e.verbose),d=await h.embed(t?e.text:void 0,i?e.imageUrl:void 0,r?e.videoUrl:void 0,{dimensions:e.dimensions,instructions:e.instructions,multiEmbedding:e.multiEmbedding,sparseEmbedding:e.sparseEmbedding});if(s.succeed(X.green("Embeddings generated successfully!")),console.log(X.cyan(`Model: ${d.model}`)),d.data?.embedding&&(console.log(X.cyan(`Embedding dimensions: ${d.data.embedding.length}`)),console.log(X.gray(`First 5 values: [${d.data.embedding.slice(0,5).join(", ")}...]`))),d.data?.multi_embedding&&console.log(X.cyan(`Multi-embedding vectors: ${d.data.multi_embedding.length}`)),d.data?.sparse_embedding&&console.log(X.cyan(`Sparse embedding items: ${d.data.sparse_embedding.length}`)),d.usage&&console.log(X.gray(`Tokens used: ${d.usage.total_tokens}`)),e.output){let t=ez.resolve(e.output);eY.writeFileSync(t,JSON.stringify(d,null,2)),console.log(X.green(`Embedding saved to ${t}`))}}catch(e){s.fail(X.red("Failed to generate embeddings")),console.error(X.red(e.message)),process.exit(1)}}),e4=new E("knowledge").description("Knowledge Base tools");e4.command("search").description("Search for knowledge chunks").requiredOption("-q, --query <text>","Search query").option("-d, --dataset <name>","Dataset names (tables) to search in (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("-k, --top-k <number>","Number of results to return","5").option("-m, --min-score <number>","Minimum similarity score","0.0").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=eW("Searching...").start();try{let i=new a,r=eK(e.header),s=new g(i,r,e.verbose),o=await s.search(e.query,e.dataset.length>0?e.dataset:void 0,parseInt(e.topK),parseFloat(e.minScore));if(0!==o.code)return void t.fail(X.red(`Error ${o.code}: ${o.msg}`));t.succeed(X.green("Search completed!")),console.log(X.bold("\nSearch Results:")),console.log("────────────────────────────────────────────────────────────────────────────────"),0===o.chunks.length&&console.log(X.yellow("No matching chunks found.")),o.chunks.forEach((e,t)=>{console.log(X.cyan(`[${t+1}] Score: ${e.score.toFixed(4)}`)),e.doc_id&&console.log(X.dim(`Doc ID: ${e.doc_id}`)),e.chunk_id&&console.log(X.dim(`Chunk ID: ${e.chunk_id}`)),console.log(X.green("Content:")),console.log(e.content),console.log("────────────────────────────────────────────────────────────────────────────────")})}catch(e){t.fail(X.red("Search failed")),console.error(X.red(e.message)),process.exit(1)}}),e4.command("add").description("Add documents to knowledge base").requiredOption("-d, --dataset <name>","Dataset name (table) to add to").option("-c, --content <text>","Raw text content to add (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("-u, --url <url>","Web URL to add (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("--chunk-separator <char>","Chunk separator","\\n").option("--max-tokens <number>","Max tokens per chunk","500").option("--remove-extra-spaces","Normalize extra spaces",!1).option("--remove-urls-emails","Strip URLs and emails",!1).option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=eW("Adding documents...").start();try{let i=new a,r=eK(e.header),s=new g(i,r,e.verbose),o=[];if(e.content&&e.content.forEach(e=>{o.push({source:f.TEXT,raw_data:e})}),e.url&&e.url.forEach(e=>{o.push({source:f.URL,url:e})}),0===o.length)return void t.fail(X.red("No content or URL provided to add."));let n={separator:e.chunkSeparator.replace(/\\n/g,"\n"),max_tokens:parseInt(e.maxTokens),remove_extra_spaces:e.removeExtraSpaces,remove_urls_emails:e.removeUrlsEmails},l=await s.addDocuments(o,e.dataset,n);if(0!==l.code)return void t.fail(X.red(`Error ${l.code}: ${l.msg}`));t.succeed(X.green("Documents added successfully!")),l.doc_ids&&l.doc_ids.length>0&&(console.log(X.cyan(`
28
- Added ${l.doc_ids.length} documents.`)),console.log(X.dim(`Doc IDs: ${l.doc_ids.join(", ")}`)))}catch(e){t.fail(X.red("Add documents failed")),console.error(X.red(e.message)),process.exit(1)}});let e5=new E;e5.name("coze-coding-ai").description("Coze Coding CLI - AI-powered tools for image generation, video generation, search, voice, chat, embedding, and knowledge").version("0.3.0"),e5.addCommand(eJ),e5.addCommand(eZ),e5.addCommand(eX),e5.addCommand(eQ),e5.addCommand(e0),e5.addCommand(e1),e5.addCommand(e3),e5.addCommand(e7),e5.addCommand(e4),e5.parse(process.argv);
22
+ (Did you mean ${r[0]}?)`:""}}});let{program:O,createCommand:x,createArgument:C,createOption:w,CommanderError:T,InvalidArgumentError:E,InvalidOptionArgumentError:A,Command:S,Argument:k,Option:$,Help:I}=a("./node_modules/commander/index.js"),P=(e=0)=>t=>`\u001B[${t+e}m`,H=(e=0)=>t=>`\u001B[${38+e};5;${t}m`,V=(e=0)=>(t,i,r)=>`\u001B[${38+e};2;${t};${i};${r}m`,R={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(R.modifier),[...Object.keys(R.color),...Object.keys(R.bgColor)];let j=function(){let e=new Map;for(let[t,i]of Object.entries(R)){for(let[t,r]of Object.entries(i))R[t]={open:`\u001B[${r[0]}m`,close:`\u001B[${r[1]}m`},i[t]=R[t],e.set(r[0],r[1]);Object.defineProperty(R,t,{value:i,enumerable:!1})}return Object.defineProperty(R,"codes",{value:e,enumerable:!1}),R.color.close="\x1b[39m",R.bgColor.close="\x1b[49m",R.color.ansi=P(),R.color.ansi256=H(),R.color.ansi16m=V(),R.bgColor.ansi=P(10),R.bgColor.ansi256=H(10),R.bgColor.ansi16m=V(10),Object.defineProperties(R,{rgbToAnsi256:{value:(e,t,i)=>e===t&&t===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(i/255*5),enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[i]=t;3===i.length&&(i=[...i].map(e=>e+e).join(""));let r=Number.parseInt(i,16);return[r>>16&255,r>>8&255,255&r]},enumerable:!1},hexToAnsi256:{value:e=>R.rgbToAnsi256(...R.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){let t,i,r;if(e<8)return 30+e;if(e<16)return 90+(e-8);if(e>=232)i=t=((e-232)*10+8)/255,r=t;else{let s=(e-=16)%36;t=Math.floor(e/36)/5,i=Math.floor(s/6)/5,r=s%6/5}let s=2*Math.max(t,i,r);if(0===s)return 30;let o=30+(Math.round(r)<<2|Math.round(i)<<1|Math.round(t));return 2===s&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,t,i)=>R.ansi256ToAnsi(R.rgbToAnsi256(e,t,i)),enumerable:!1},hexToAnsi:{value:e=>R.ansi256ToAnsi(R.hexToAnsi256(e)),enumerable:!1}}),R}(),M=a("node:process");function G(e,t=globalThis.Deno?globalThis.Deno.args:M.default.argv){let i=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(i+e),s=t.indexOf("--");return -1!==r&&(-1===s||r<s)}let{env:F}=M.default;function L(t,i={}){var r;return 0!==(r=function(t,{streamIsTTY:i,sniffFlags:r=!0}={}){let s=function(){if("FORCE_COLOR"in F)return"true"===F.FORCE_COLOR?1:"false"===F.FORCE_COLOR?0:0===F.FORCE_COLOR.length?1:Math.min(Number.parseInt(F.FORCE_COLOR,10),3)}();void 0!==s&&(e=s);let o=r?e:s;if(0===o)return 0;if(r){if(G("color=16m")||G("color=full")||G("color=truecolor"))return 3;if(G("color=256"))return 2}if("TF_BUILD"in F&&"AGENT_NAME"in F)return 1;if(t&&!i&&void 0===o)return 0;let n=o||0;if("dumb"===F.TERM)return n;if("win32"===M.default.platform){let e=y.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in F)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(e=>e in F)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(e=>e in F)||"codeship"===F.CI_NAME?1:n;if("TEAMCITY_VERSION"in F)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(F.TEAMCITY_VERSION);if("truecolor"===F.COLORTERM||"xterm-kitty"===F.TERM||"xterm-ghostty"===F.TERM||"wezterm"===F.TERM)return 3;if("TERM_PROGRAM"in F){let e=Number.parseInt((F.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(F.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(F.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(F.TERM)||"COLORTERM"in F?1:n}(t,{streamIsTTY:t&&t.isTTY,...i}))&&{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}G("no-color")||G("no-colors")||G("color=false")||G("color=never")?e=0:(G("color")||G("colors")||G("color=true")||G("color=always"))&&(e=1);let{stdout:N,stderr:D}={stdout:L({isTTY:l.isatty(1)}),stderr:L({isTTY:l.isatty(2)})},U=Symbol("GENERATOR"),W=Symbol("STYLER"),B=Symbol("IS_EMPTY"),q=["ansi","ansi","ansi256","ansi16m"],K=Object.create(null);function Y(e){let t;return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let i=N?N.level:0;e.level=void 0===t.level?i:t.level})(t=(...e)=>e.join(" "),e),Object.setPrototypeOf(t,Y.prototype),t}for(let[e,t]of(Object.setPrototypeOf(Y.prototype,Function.prototype),Object.entries(j)))K[e]={get(){let i=Z(this,X(t.open,t.close,this[W]),this[B]);return Object.defineProperty(this,e,{value:i}),i}};K.visible={get(){let e=Z(this,this[W],!0);return Object.defineProperty(this,"visible",{value:e}),e}};let z=(e,t,i,...r)=>"rgb"===e?"ansi16m"===t?j[i].ansi16m(...r):"ansi256"===t?j[i].ansi256(j.rgbToAnsi256(...r)):j[i].ansi(j.rgbToAnsi(...r)):"hex"===e?z("rgb",t,i,...j.hexToRgb(...r)):j[i][e](...r);for(let e of["rgb","hex","ansi256"])K[e]={get(){let{level:t}=this;return function(...i){return Z(this,X(z(e,q[t],"color",...i),j.color.close,this[W]),this[B])}}},K["bg"+e[0].toUpperCase()+e.slice(1)]={get(){let{level:t}=this;return function(...i){return Z(this,X(z(e,q[t],"bgColor",...i),j.bgColor.close,this[W]),this[B])}}};let J=Object.defineProperties(()=>{},{...K,level:{enumerable:!0,get(){return this[U].level},set(e){this[U].level=e}}}),X=(e,t,i)=>{let r,s;return void 0===i?(r=e,s=t):(r=i.openAll+e,s=t+i.closeAll),{open:e,close:t,openAll:r,closeAll:s,parent:i}},Z=(e,t,i)=>{let r=(...e)=>Q(r,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(r,J),r[U]=e,r[W]=t,r[B]=i,r},Q=(e,t)=>{if(e.level<=0||!t)return e[B]?"":t;let i=e[W];if(void 0===i)return t;let{openAll:r,closeAll:s}=i;if(t.includes("\x1b"))for(;void 0!==i;)t=function(e,t,i){let r=e.indexOf(t);if(-1===r)return e;let s=t.length,o=0,n="";do n+=e.slice(o,r)+t+i,o=r+s,r=e.indexOf(t,o);while(-1!==r);return n+e.slice(o)}(t,i.close,i.open),i=i.parent;let o=t.indexOf("\n");return -1!==o&&(t=function(e,t,i,r){let s=0,o="";do{let n="\r"===e[r-1];o+=e.slice(s,n?r-1:r)+t+(n?"\r\n":"\n")+i,s=r+1,r=e.indexOf("\n",s)}while(-1!==r);return o+e.slice(s)}(t,s,r,o)),r+t+s};Object.defineProperties(Y.prototype,K);let ee=Y();Y({level:D?D.level:0});let et=(e,t,i,r)=>{if("length"===i||"prototype"===i||"arguments"===i||"caller"===i)return;let s=Object.getOwnPropertyDescriptor(e,i),o=Object.getOwnPropertyDescriptor(t,i);(ei(s,o)||!r)&&Object.defineProperty(e,i,o)},ei=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},er=(e,t)=>`/* Wrapped ${e}*/
23
+ ${t}`,es=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),eo=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),en=new WeakMap,ea=(e,t={})=>{let i;if("function"!=typeof e)throw TypeError("Expected a function");let r=0,s=e.displayName||e.name||"<anonymous>",o=function(...n){if(en.set(o,++r),1===r)i=e.apply(this,n),e=void 0;else if(!0===t.throw)throw Error(`Function \`${s}\` can only be called once`);return i};return!function(e,t,{ignoreNonConfigurable:i=!1}={}){let r,{name:s}=e;for(let r of Reflect.ownKeys(t))et(e,t,r,i);(r=Object.getPrototypeOf(t))!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r),((e,t,i)=>{let r=""===i?"":`with ${i.trim()}() `,s=er.bind(null,r,t.toString());Object.defineProperty(s,"name",eo);let{writable:o,enumerable:n,configurable:a}=es;Object.defineProperty(e,"toString",{value:s,writable:o,enumerable:n,configurable:a})})(e,t,s)}(o,e),en.set(o,r),o};ea.callCount=e=>{if(!en.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return en.get(e)};let el=[];el.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&el.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&el.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");let eh=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,eu=Symbol.for("signal-exit emitter"),ed=globalThis,em=Object.defineProperty.bind(Object);class ep{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(ed[eu])return ed[eu];em(ed,eu,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){let i=this.listeners[e],r=i.indexOf(t);-1!==r&&(0===r&&1===i.length?i.length=0:i.splice(r,1))}emit(e,t,i){if(this.emitted[e])return!1;this.emitted[e]=!0;let r=!1;for(let s of this.listeners[e])r=!0===s(t,i)||r;return"exit"===e&&(r=this.emit("afterExit",t,i)||r),r}}class ec{}class eg extends ec{#e="win32"===ef.platform?"SIGINT":"SIGHUP";#t=new ep;#i;#r;#s;#o={};#n=!1;constructor(e){for(let t of(super(),this.#i=e,this.#o={},el))this.#o[t]=()=>{let i=this.#i.listeners(t),{count:r}=this.#t;if("object"==typeof e.__signal_exit_emitter__&&"number"==typeof e.__signal_exit_emitter__.count&&(r+=e.__signal_exit_emitter__.count),i.length===r){this.unload();let i=this.#t.emit("exit",null,t),r="SIGHUP"===t?this.#e:t;i||e.kill(e.pid,r)}};this.#s=e.reallyExit,this.#r=e.emit}onExit(e,t){if(!eh(this.#i))return()=>{};!1===this.#n&&this.load();let i=t?.alwaysLast?"afterExit":"exit";return this.#t.on(i,e),()=>{this.#t.removeListener(i,e),0===this.#t.listeners.exit.length&&0===this.#t.listeners.afterExit.length&&this.unload()}}load(){if(!this.#n){for(let e of(this.#n=!0,this.#t.count+=1,el))try{let t=this.#o[e];t&&this.#i.on(e,t)}catch(e){}this.#i.emit=(e,...t)=>this.#a(e,...t),this.#i.reallyExit=e=>this.#l(e)}}unload(){this.#n&&(this.#n=!1,el.forEach(e=>{let t=this.#o[e];if(!t)throw Error("Listener not defined for signal: "+e);try{this.#i.removeListener(e,t)}catch(e){}}),this.#i.emit=this.#r,this.#i.reallyExit=this.#s,this.#t.count-=1)}#l(e){return eh(this.#i)?(this.#i.exitCode=e||0,this.#t.emit("exit",this.#i.exitCode,null),this.#s.call(this.#i,this.#i.exitCode)):0}#a(e,...t){let i=this.#r;if(!("exit"===e&&eh(this.#i)))return i.call(this.#i,e,...t);{"number"==typeof t[0]&&(this.#i.exitCode=t[0]);let r=i.call(this.#i,e,...t);return this.#t.emit("exit",this.#i.exitCode,null),r}}}let ef=globalThis.process,{onExit:e_,load:eb,unload:ev}=(t=eh(ef)?new eg(ef):new class extends ec{onExit(){return()=>{}}load(){}unload(){}},{onExit:(e,i)=>t.onExit(e,i),load:()=>t.load(),unload:()=>t.unload()}),ey=M.default.stderr.isTTY?M.default.stderr:M.default.stdout.isTTY?M.default.stdout:void 0,eO=ey?ea(()=>{e_(()=>{ey.write("\x1b[?25h")},{alwaysLast:!0})}):()=>{},ex=!1,eC={};eC.show=(e=M.default.stderr)=>{e.isTTY&&(ex=!1,e.write("\x1b[?25h"))},eC.hide=(e=M.default.stderr)=>{e.isTTY&&(eO(),ex=!0,e.write("\x1b[?25l"))},eC.toggle=(e,t)=>{void 0!==e&&(ex=e),ex?eC.show(t):eC.hide(t)};var ew=JSON.parse('{"dots":{"interval":80,"frames":["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},"dots2":{"interval":80,"frames":["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},"dots3":{"interval":80,"frames":["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},"dots4":{"interval":80,"frames":["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},"dots5":{"interval":80,"frames":["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},"dots6":{"interval":80,"frames":["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},"dots7":{"interval":80,"frames":["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},"dots8":{"interval":80,"frames":["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},"dots9":{"interval":80,"frames":["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},"dots10":{"interval":80,"frames":["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},"dots11":{"interval":100,"frames":["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},"dots12":{"interval":80,"frames":["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},"dots13":{"interval":80,"frames":["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},"dots14":{"interval":80,"frames":["⠉⠉","⠈⠙","⠀⠹","⠀⢸","⠀⣰","⢀⣠","⣀⣀","⣄⡀","⣆⠀","⡇⠀","⠏⠀","⠋⠁"]},"dots8Bit":{"interval":80,"frames":["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},"dotsCircle":{"interval":80,"frames":["⢎ ","⠎⠁","⠊⠑","⠈⠱"," ⡱","⢀⡰","⢄⡠","⢆⡀"]},"sand":{"interval":80,"frames":["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["⠂","-","–","—","–","-"]},"rollingLine":{"interval":80,"frames":["/ "," - "," \\\\ "," |"," |"," \\\\ "," - ","/ "]},"pipe":{"interval":100,"frames":["┤","┘","┴","└","├","┌","┬","┐"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["✶","✸","✹","✺","✹","✷"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","\'","\xb4","-","_","_","_"]},"hamburger":{"interval":100,"frames":["☱","☲","☴"]},"growVertical":{"interval":120,"frames":["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},"growHorizontal":{"interval":120,"frames":["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","\xb0","O","o","."]},"noise":{"interval":100,"frames":["▓","▒","░"]},"bounce":{"interval":120,"frames":["⠁","⠂","⠄","⠂"]},"boxBounce":{"interval":120,"frames":["▖","▘","▝","▗"]},"boxBounce2":{"interval":100,"frames":["▌","▀","▐","▄"]},"triangle":{"interval":50,"frames":["◢","◣","◤","◥"]},"binary":{"interval":80,"frames":["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},"arc":{"interval":100,"frames":["◜","◠","◝","◞","◡","◟"]},"circle":{"interval":120,"frames":["◡","⊙","◠"]},"squareCorners":{"interval":180,"frames":["◰","◳","◲","◱"]},"circleQuarters":{"interval":120,"frames":["◴","◷","◶","◵"]},"circleHalves":{"interval":50,"frames":["◐","◓","◑","◒"]},"squish":{"interval":100,"frames":["╫","╪"]},"toggle":{"interval":250,"frames":["⊶","⊷"]},"toggle2":{"interval":80,"frames":["▫","▪"]},"toggle3":{"interval":120,"frames":["□","■"]},"toggle4":{"interval":100,"frames":["■","□","▪","▫"]},"toggle5":{"interval":100,"frames":["▮","▯"]},"toggle6":{"interval":300,"frames":["ဝ","၀"]},"toggle7":{"interval":80,"frames":["⦾","⦿"]},"toggle8":{"interval":100,"frames":["◍","◌"]},"toggle9":{"interval":100,"frames":["◉","◎"]},"toggle10":{"interval":100,"frames":["㊂","㊀","㊁"]},"toggle11":{"interval":50,"frames":["⧇","⧆"]},"toggle12":{"interval":120,"frames":["☗","☖"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["←","↖","↑","↗","→","↘","↓","↙"]},"arrow2":{"interval":80,"frames":["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},"arrow3":{"interval":120,"frames":["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},"smiley":{"interval":200,"frames":["\uD83D\uDE04 ","\uD83D\uDE1D "]},"monkey":{"interval":300,"frames":["\uD83D\uDE48 ","\uD83D\uDE48 ","\uD83D\uDE49 ","\uD83D\uDE4A "]},"hearts":{"interval":100,"frames":["\uD83D\uDC9B ","\uD83D\uDC99 ","\uD83D\uDC9C ","\uD83D\uDC9A ","\uD83D\uDC97 "]},"clock":{"interval":100,"frames":["\uD83D\uDD5B ","\uD83D\uDD50 ","\uD83D\uDD51 ","\uD83D\uDD52 ","\uD83D\uDD53 ","\uD83D\uDD54 ","\uD83D\uDD55 ","\uD83D\uDD56 ","\uD83D\uDD57 ","\uD83D\uDD58 ","\uD83D\uDD59 ","\uD83D\uDD5A "]},"earth":{"interval":180,"frames":["\uD83C\uDF0D ","\uD83C\uDF0E ","\uD83C\uDF0F "]},"material":{"interval":17,"frames":["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},"moon":{"interval":80,"frames":["\uD83C\uDF11 ","\uD83C\uDF12 ","\uD83C\uDF13 ","\uD83C\uDF14 ","\uD83C\uDF15 ","\uD83C\uDF16 ","\uD83C\uDF17 ","\uD83C\uDF18 "]},"runner":{"interval":140,"frames":["\uD83D\uDEB6 ","\uD83C\uDFC3 "]},"pong":{"interval":80,"frames":["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},"shark":{"interval":120,"frames":["▐|\\\\____________▌","▐_|\\\\___________▌","▐__|\\\\__________▌","▐___|\\\\_________▌","▐____|\\\\________▌","▐_____|\\\\_______▌","▐______|\\\\______▌","▐_______|\\\\_____▌","▐________|\\\\____▌","▐_________|\\\\___▌","▐__________|\\\\__▌","▐___________|\\\\_▌","▐____________|\\\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["☀️ ","☀️ ","☀️ ","\uD83C\uDF24 ","⛅️ ","\uD83C\uDF25 ","☁️ ","\uD83C\uDF27 ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","⛈ ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","☁️ ","\uD83C\uDF25 ","⛅️ ","\uD83C\uDF24 ","☀️ ","☀️ "]},"christmas":{"interval":400,"frames":["\uD83C\uDF32","\uD83C\uDF84"]},"grenade":{"interval":80,"frames":["، ","′ "," \xb4 "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},"point":{"interval":125,"frames":["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},"layer":{"interval":150,"frames":["-","=","≡"]},"betaWave":{"interval":80,"frames":["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},"fingerDance":{"interval":160,"frames":["\uD83E\uDD18 ","\uD83E\uDD1F ","\uD83D\uDD96 ","✋ ","\uD83E\uDD1A ","\uD83D\uDC46 "]},"fistBump":{"interval":80,"frames":["\uD83E\uDD1C    \uD83E\uDD1B ","\uD83E\uDD1C    \uD83E\uDD1B ","\uD83E\uDD1C    \uD83E\uDD1B "," \uD83E\uDD1C  \uD83E\uDD1B  ","  \uD83E\uDD1C\uD83E\uDD1B   "," \uD83E\uDD1C✨\uD83E\uDD1B   ","\uD83E\uDD1C ✨ \uD83E\uDD1B  "]},"soccerHeader":{"interval":80,"frames":[" \uD83E\uDDD1⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️\uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 "]},"mindblown":{"interval":160,"frames":["\uD83D\uDE10 ","\uD83D\uDE10 ","\uD83D\uDE2E ","\uD83D\uDE2E ","\uD83D\uDE26 ","\uD83D\uDE26 ","\uD83D\uDE27 ","\uD83D\uDE27 ","\uD83E\uDD2F ","\uD83D\uDCA5 ","✨ ","  ","  ","  "]},"speaker":{"interval":160,"frames":["\uD83D\uDD08 ","\uD83D\uDD09 ","\uD83D\uDD0A ","\uD83D\uDD09 "]},"orangePulse":{"interval":100,"frames":["\uD83D\uDD38 ","\uD83D\uDD36 ","\uD83D\uDFE0 ","\uD83D\uDFE0 ","\uD83D\uDD36 "]},"bluePulse":{"interval":100,"frames":["\uD83D\uDD39 ","\uD83D\uDD37 ","\uD83D\uDD35 ","\uD83D\uDD35 ","\uD83D\uDD37 "]},"orangeBluePulse":{"interval":100,"frames":["\uD83D\uDD38 ","\uD83D\uDD36 ","\uD83D\uDFE0 ","\uD83D\uDFE0 ","\uD83D\uDD36 ","\uD83D\uDD39 ","\uD83D\uDD37 ","\uD83D\uDD35 ","\uD83D\uDD35 ","\uD83D\uDD37 "]},"timeTravel":{"interval":100,"frames":["\uD83D\uDD5B ","\uD83D\uDD5A ","\uD83D\uDD59 ","\uD83D\uDD58 ","\uD83D\uDD57 ","\uD83D\uDD56 ","\uD83D\uDD55 ","\uD83D\uDD54 ","\uD83D\uDD53 ","\uD83D\uDD52 ","\uD83D\uDD51 ","\uD83D\uDD50 "]},"aesthetic":{"interval":80,"frames":["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]},"dwarfFortress":{"interval":80,"frames":[" ██████\xa3\xa3\xa3 ","☺██████\xa3\xa3\xa3 ","☺██████\xa3\xa3\xa3 ","☺▓█████\xa3\xa3\xa3 ","☺▓█████\xa3\xa3\xa3 ","☺▒█████\xa3\xa3\xa3 ","☺▒█████\xa3\xa3\xa3 ","☺░█████\xa3\xa3\xa3 ","☺░█████\xa3\xa3\xa3 ","☺ █████\xa3\xa3\xa3 "," ☺█████\xa3\xa3\xa3 "," ☺█████\xa3\xa3\xa3 "," ☺▓████\xa3\xa3\xa3 "," ☺▓████\xa3\xa3\xa3 "," ☺▒████\xa3\xa3\xa3 "," ☺▒████\xa3\xa3\xa3 "," ☺░████\xa3\xa3\xa3 "," ☺░████\xa3\xa3\xa3 "," ☺ ████\xa3\xa3\xa3 "," ☺████\xa3\xa3\xa3 "," ☺████\xa3\xa3\xa3 "," ☺▓███\xa3\xa3\xa3 "," ☺▓███\xa3\xa3\xa3 "," ☺▒███\xa3\xa3\xa3 "," ☺▒███\xa3\xa3\xa3 "," ☺░███\xa3\xa3\xa3 "," ☺░███\xa3\xa3\xa3 "," ☺ ███\xa3\xa3\xa3 "," ☺███\xa3\xa3\xa3 "," ☺███\xa3\xa3\xa3 "," ☺▓██\xa3\xa3\xa3 "," ☺▓██\xa3\xa3\xa3 "," ☺▒██\xa3\xa3\xa3 "," ☺▒██\xa3\xa3\xa3 "," ☺░██\xa3\xa3\xa3 "," ☺░██\xa3\xa3\xa3 "," ☺ ██\xa3\xa3\xa3 "," ☺██\xa3\xa3\xa3 "," ☺██\xa3\xa3\xa3 "," ☺▓█\xa3\xa3\xa3 "," ☺▓█\xa3\xa3\xa3 "," ☺▒█\xa3\xa3\xa3 "," ☺▒█\xa3\xa3\xa3 "," ☺░█\xa3\xa3\xa3 "," ☺░█\xa3\xa3\xa3 "," ☺ █\xa3\xa3\xa3 "," ☺█\xa3\xa3\xa3 "," ☺█\xa3\xa3\xa3 "," ☺▓\xa3\xa3\xa3 "," ☺▓\xa3\xa3\xa3 "," ☺▒\xa3\xa3\xa3 "," ☺▒\xa3\xa3\xa3 "," ☺░\xa3\xa3\xa3 "," ☺░\xa3\xa3\xa3 "," ☺ \xa3\xa3\xa3 "," ☺\xa3\xa3\xa3 "," ☺\xa3\xa3\xa3 "," ☺▓\xa3\xa3 "," ☺▓\xa3\xa3 "," ☺▒\xa3\xa3 "," ☺▒\xa3\xa3 "," ☺░\xa3\xa3 "," ☺░\xa3\xa3 "," ☺ \xa3\xa3 "," ☺\xa3\xa3 "," ☺\xa3\xa3 "," ☺▓\xa3 "," ☺▓\xa3 "," ☺▒\xa3 "," ☺▒\xa3 "," ☺░\xa3 "," ☺░\xa3 "," ☺ \xa3 "," ☺\xa3 "," ☺\xa3 "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & \xa3 "," & ░\xa3 "," & ▒\xa3 "," & ▓\xa3 "," & \xa3\xa3 "," & ░\xa3\xa3 "," & ▒\xa3\xa3 ","& ▓\xa3\xa3 ","& \xa3\xa3\xa3 "," ░\xa3\xa3\xa3 "," ▒\xa3\xa3\xa3 "," ▓\xa3\xa3\xa3 "," █\xa3\xa3\xa3 "," ░█\xa3\xa3\xa3 "," ▒█\xa3\xa3\xa3 "," ▓█\xa3\xa3\xa3 "," ██\xa3\xa3\xa3 "," ░██\xa3\xa3\xa3 "," ▒██\xa3\xa3\xa3 "," ▓██\xa3\xa3\xa3 "," ███\xa3\xa3\xa3 "," ░███\xa3\xa3\xa3 "," ▒███\xa3\xa3\xa3 "," ▓███\xa3\xa3\xa3 "," ████\xa3\xa3\xa3 "," ░████\xa3\xa3\xa3 "," ▒████\xa3\xa3\xa3 "," ▓████\xa3\xa3\xa3 "," █████\xa3\xa3\xa3 "," ░█████\xa3\xa3\xa3 "," ▒█████\xa3\xa3\xa3 "," ▓█████\xa3\xa3\xa3 "," ██████\xa3\xa3\xa3 "," ██████\xa3\xa3\xa3 "]}}');Object.keys(ew);let eT=l?.WriteStream?.prototype?.hasColors?.()??!1,eE=(e,t)=>{if(!eT)return e=>e;let i=`\u001B[${e}m`,r=`\u001B[${t}m`;return e=>{let s=e+"",o=s.indexOf(r);if(-1===o)return i+s+r;let n=i,a=0,l=(22===t?r:"")+i;for(;-1!==o;)n+=s.slice(a,o)+l,a=o+r.length,o=s.indexOf(r,a);return n+(s.slice(a)+r)}};eE(0,0),eE(1,22),eE(2,22),eE(3,23),eE(4,24),eE(53,55),eE(7,27),eE(8,28),eE(9,29),eE(30,39);let eA=eE(31,39),eS=eE(32,39),ek=eE(33,39),e$=eE(34,39);function eI(){let{env:e}=M.default,{TERM:t,TERM_PROGRAM:i}=e;return"win32"!==M.default.platform?"linux"!==t:!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||"{cmd::Cmder}"===e.ConEmuTask||"Terminus-Sublime"===i||"vscode"===i||"xterm-256color"===t||"alacritty"===t||"rxvt-unicode"===t||"rxvt-unicode-256color"===t||"JetBrains-JediTerm"===e.TERMINAL_EMULATOR}eE(35,39),eE(36,39),eE(37,39),eE(90,39),eE(40,49),eE(41,49),eE(42,49),eE(43,49),eE(44,49),eE(45,49),eE(46,49),eE(47,49),eE(100,49),eE(91,39),eE(92,39),eE(93,39),eE(94,39),eE(95,39),eE(96,39),eE(97,39),eE(101,49),eE(102,49),eE(103,49),eE(104,49),eE(105,49),eE(106,49),eE(107,49);let eP=eI(),eH=e$(eP?"ℹ":"i"),eV=eS(eP?"✔":"√"),eR=ek(eP?"⚠":"‼"),ej=eA(eP?"✖":"\xd7"),eM=function({onlyFirst:e=!1}={}){return RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",e?void 0:"g")}();function eG(e){if("string"!=typeof e)throw TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(eM,"")}function eF(e,{ambiguousAsWide:t=!1}={}){var i;if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`);return 12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510||(i=e)>=4352&&i<=4447||8986===i||8987===i||9001===i||9002===i||i>=9193&&i<=9196||9200===i||9203===i||9725===i||9726===i||9748===i||9749===i||i>=9776&&i<=9783||i>=9800&&i<=9811||9855===i||i>=9866&&i<=9871||9875===i||9889===i||9898===i||9899===i||9917===i||9918===i||9924===i||9925===i||9934===i||9940===i||9962===i||9970===i||9971===i||9973===i||9978===i||9981===i||9989===i||9994===i||9995===i||10024===i||10060===i||10062===i||i>=10067&&i<=10069||10071===i||i>=10133&&i<=10135||10160===i||10175===i||11035===i||11036===i||11088===i||11093===i||i>=11904&&i<=11929||i>=11931&&i<=12019||i>=12032&&i<=12245||i>=12272&&i<=12287||i>=12289&&i<=12350||i>=12353&&i<=12438||i>=12441&&i<=12543||i>=12549&&i<=12591||i>=12593&&i<=12686||i>=12688&&i<=12773||i>=12783&&i<=12830||i>=12832&&i<=12871||i>=12880&&i<=42124||i>=42128&&i<=42182||i>=43360&&i<=43388||i>=44032&&i<=55203||i>=63744&&i<=64255||i>=65040&&i<=65049||i>=65072&&i<=65106||i>=65108&&i<=65126||i>=65128&&i<=65131||i>=94176&&i<=94180||i>=94192&&i<=94198||i>=94208&&i<=101589||i>=101631&&i<=101662||i>=101760&&i<=101874||i>=110576&&i<=110579||i>=110581&&i<=110587||110589===i||110590===i||i>=110592&&i<=110882||110898===i||i>=110928&&i<=110930||110933===i||i>=110948&&i<=110951||i>=110960&&i<=111355||i>=119552&&i<=119638||i>=119648&&i<=119670||126980===i||127183===i||127374===i||i>=127377&&i<=127386||i>=127488&&i<=127490||i>=127504&&i<=127547||i>=127552&&i<=127560||127568===i||127569===i||i>=127584&&i<=127589||i>=127744&&i<=127776||i>=127789&&i<=127797||i>=127799&&i<=127868||i>=127870&&i<=127891||i>=127904&&i<=127946||i>=127951&&i<=127955||i>=127968&&i<=127984||127988===i||i>=127992&&i<=128062||128064===i||i>=128066&&i<=128252||i>=128255&&i<=128317||i>=128331&&i<=128334||i>=128336&&i<=128359||128378===i||128405===i||128406===i||128420===i||i>=128507&&i<=128591||i>=128640&&i<=128709||128716===i||i>=128720&&i<=128722||i>=128725&&i<=128728||i>=128732&&i<=128735||128747===i||128748===i||i>=128756&&i<=128764||i>=128992&&i<=129003||129008===i||i>=129292&&i<=129338||i>=129340&&i<=129349||i>=129351&&i<=129535||i>=129648&&i<=129660||i>=129664&&i<=129674||i>=129678&&i<=129734||129736===i||i>=129741&&i<=129756||i>=129759&&i<=129770||i>=129775&&i<=129784||i>=131072&&i<=196605||i>=196608&&i<=262141||t&&(161===e||164===e||167===e||168===e||170===e||173===e||174===e||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||198===e||208===e||215===e||216===e||e>=222&&e<=225||230===e||e>=232&&e<=234||236===e||237===e||240===e||242===e||243===e||e>=247&&e<=250||252===e||254===e||257===e||273===e||275===e||283===e||294===e||295===e||299===e||e>=305&&e<=307||312===e||e>=319&&e<=322||324===e||e>=328&&e<=331||333===e||338===e||339===e||358===e||359===e||363===e||462===e||464===e||466===e||468===e||470===e||472===e||474===e||476===e||593===e||609===e||708===e||711===e||e>=713&&e<=715||717===e||720===e||e>=728&&e<=731||733===e||735===e||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||1025===e||e>=1040&&e<=1103||1105===e||8208===e||e>=8211&&e<=8214||8216===e||8217===e||8220===e||8221===e||e>=8224&&e<=8226||e>=8228&&e<=8231||8240===e||8242===e||8243===e||8245===e||8251===e||8254===e||8308===e||8319===e||e>=8321&&e<=8324||8364===e||8451===e||8453===e||8457===e||8467===e||8470===e||8481===e||8482===e||8486===e||8491===e||8531===e||8532===e||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||8585===e||e>=8592&&e<=8601||8632===e||8633===e||8658===e||8660===e||8679===e||8704===e||8706===e||8707===e||8711===e||8712===e||8715===e||8719===e||8721===e||8725===e||8730===e||e>=8733&&e<=8736||8739===e||8741===e||e>=8743&&e<=8748||8750===e||e>=8756&&e<=8759||8764===e||8765===e||8776===e||8780===e||8786===e||8800===e||8801===e||e>=8804&&e<=8807||8810===e||8811===e||8814===e||8815===e||8834===e||8835===e||8838===e||8839===e||8853===e||8857===e||8869===e||8895===e||8978===e||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||9632===e||9633===e||e>=9635&&e<=9641||9650===e||9651===e||9654===e||9655===e||9660===e||9661===e||9664===e||9665===e||e>=9670&&e<=9672||9675===e||e>=9678&&e<=9681||e>=9698&&e<=9701||9711===e||9733===e||9734===e||9737===e||9742===e||9743===e||9756===e||9758===e||9792===e||9794===e||9824===e||9825===e||e>=9827&&e<=9829||e>=9831&&e<=9834||9836===e||9837===e||9839===e||9886===e||9887===e||9919===e||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||9955===e||9960===e||9961===e||e>=9963&&e<=9969||9972===e||e>=9974&&e<=9977||9979===e||9980===e||9982===e||9983===e||10045===e||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||65533===e||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||127375===e||127376===e||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109)?2:1}let eL=new Intl.Segmenter,eN=/^(?:\p{Default_Ignorable_Code_Point}|\p{Control}|\p{Mark}|\p{Surrogate})+$/v,eD=/^[\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Mark}\p{Surrogate}]+/v,eU=/^\p{RGI_Emoji}$/v,eW=new class{#h=0;start(){this.#h++,1===this.#h&&this.#u()}stop(){if(this.#h<=0)throw Error("`stop` called more times than `start`");this.#h--,0===this.#h&&this.#d()}#u(){"win32"!==M.default.platform&&M.default.stdin.isTTY&&(M.default.stdin.setRawMode(!0),M.default.stdin.on("data",this.#m),M.default.stdin.resume())}#d(){M.default.stdin.isTTY&&(M.default.stdin.off("data",this.#m),M.default.stdin.pause(),M.default.stdin.setRawMode(!1))}#m(e){3===e[0]&&M.default.emit("SIGINT")}};class eB{#p=0;#c=!1;#g=0;#f=-1;#_=0;#b=0;#v;#y;#O;#x;#C;#w;#T;#E;#A;#S;#k;color;constructor(e){"string"==typeof e&&(e={text:e}),this.#v={color:"cyan",stream:M.default.stderr,discardStdin:!0,hideCursor:!0,...e},this.color=this.#v.color,this.spinner=this.#v.spinner,this.#C=this.#v.interval,this.#O=this.#v.stream,this.#w="boolean"==typeof this.#v.isEnabled?this.#v.isEnabled:function({stream:e=process.stdout}={}){return!!(e&&e.isTTY&&"dumb"!==process.env.TERM&&!("CI"in process.env))}({stream:this.#O}),this.#T="boolean"==typeof this.#v.isSilent&&this.#v.isSilent,this.text=this.#v.text,this.prefixText=this.#v.prefixText,this.suffixText=this.#v.suffixText,this.indent=this.#v.indent,"test"===M.default.env.NODE_ENV&&(this._stream=this.#O,this._isEnabled=this.#w,Object.defineProperty(this,"_linesToClear",{get(){return this.#p},set(e){this.#p=e}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#f}}),Object.defineProperty(this,"_lineCount",{get(){return this.#g}}))}get indent(){return this.#E}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw Error("The `indent` option must be an integer from 0 and up");this.#E=e,this.#$()}get interval(){return this.#C??this.#y.interval??100}get spinner(){return this.#y}set spinner(e){if(this.#f=-1,this.#C=void 0,"object"==typeof e){if(!Array.isArray(e.frames)||0===e.frames.length||e.frames.some(e=>"string"!=typeof e))throw Error("The given spinner must have a non-empty `frames` array of strings");if(void 0!==e.interval&&!(Number.isInteger(e.interval)&&e.interval>0))throw Error("`spinner.interval` must be a positive integer if provided");this.#y=e}else if(eI())if(void 0===e)this.#y=ew.dots;else if("default"!==e&&ew[e])this.#y=ew[e];else throw Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);else this.#y=ew.line}get text(){return this.#A}set text(e=""){this.#A=e,this.#$()}get prefixText(){return this.#S}set prefixText(e=""){this.#S=e,this.#$()}get suffixText(){return this.#k}set suffixText(e=""){this.#k=e,this.#$()}get isSpinning(){return void 0!==this.#x}#I(e,t,i=!1){let r="function"==typeof e?e():e;return"string"==typeof r&&""!==r?i?t+r:r+t:""}#P(e=this.#S,t=" "){return this.#I(e,t,!1)}#H(e=this.#k,t=" "){return this.#I(e,t,!0)}#V(e,t){let i=0;for(let r of eG(e).split("\n"))i+=Math.max(1,Math.ceil(function(e,t={}){if("string"!=typeof e||0===e.length)return 0;let{ambiguousIsNarrow:i=!0,countAnsiEscapeCodes:r=!1}=t,s=e;if(r||(s=eG(s)),0===s.length)return 0;let o=0,n={ambiguousAsWide:!i};for(let{segment:e}of eL.segment(s))if(!eN.test(e)){if(eU.test(e)){o+=2;continue}o+=eF(e.replace(eD,"").codePointAt(0),n),o+=function(e,t){let i=0;if(e.length>1)for(let r of e.slice(1))r>="＀"&&r<="￯"&&(i+=eF(r.codePointAt(0),t));return i}(e,n)}return o}(r)/t));return i}#$(){let e=this.#O.columns??80,t="function"==typeof this.#S?"":this.#S,i="function"==typeof this.#k?"":this.#k,r=" ".repeat(this.#E)+("string"==typeof t&&""!==t?t+" ":"")+"-"+("string"==typeof this.#A?" "+this.#A:"")+("string"==typeof i&&""!==i?" "+i:"");this.#g=this.#V(r,e)}get isEnabled(){return this.#w&&!this.#T}set isEnabled(e){if("boolean"!=typeof e)throw TypeError("The `isEnabled` option must be a boolean");this.#w=e}get isSilent(){return this.#T}set isSilent(e){if("boolean"!=typeof e)throw TypeError("The `isSilent` option must be a boolean");this.#T=e}frame(){let e=Date.now();(-1===this.#f||e-this.#_>=this.interval)&&(this.#f=++this.#f%this.#y.frames.length,this.#_=e);let{frames:t}=this.#y,i=t[this.#f];return this.color&&(i=ee[this.color](i)),this.#P(this.#S," ")+i+("string"==typeof this.text?" "+this.text:"")+this.#H(this.#k," ")}clear(){if(!this.#w||!this.#O.isTTY)return this;this.#O.cursorTo(0);for(let e=0;e<this.#p;e++)e>0&&this.#O.moveCursor(0,-1),this.#O.clearLine(1);return(this.#E||this.#b!==this.#E)&&this.#O.cursorTo(this.#E),this.#b=this.#E,this.#p=0,this}render(){if(!this.#w||this.#T)return this;this.clear();let e=this.frame(),t=this.#O.columns??80,i=this.#V(e,t),r=this.#O.rows;return r&&r>1&&i>r&&(e=[...e.split("\n").slice(0,r-1),"... (content truncated to fit terminal)"].join("\n")),this.#O.write(e),this.#p=this.#V(e,t),this}start(e){if(e&&(this.text=e),this.#T)return this;if(!this.#w){let e=" ".repeat(this.#E)+this.#P(this.#S," ")+(this.text?`- ${this.text}`:"")+this.#H(this.#k," ");return""!==e.trim()&&this.#O.write(e+"\n"),this}return this.isSpinning||(this.#v.hideCursor&&eC.hide(this.#O),this.#v.discardStdin&&M.default.stdin.isTTY&&(this.#c=!0,eW.start()),this.render(),this.#x=setInterval(this.render.bind(this),this.interval)),this}stop(){return clearInterval(this.#x),this.#x=void 0,this.#f=0,this.#w&&(this.clear(),this.#v.hideCursor&&eC.show(this.#O)),this.#v.discardStdin&&M.default.stdin.isTTY&&this.#c&&(eW.stop(),this.#c=!1),this}succeed(e){return this.stopAndPersist({symbol:eV,text:e})}fail(e){return this.stopAndPersist({symbol:ej,text:e})}warn(e){return this.stopAndPersist({symbol:eR,text:e})}info(e){return this.stopAndPersist({symbol:eH,text:e})}stopAndPersist(e={}){if(this.#T)return this;let t=e.prefixText??this.#S,i=this.#P(t," "),r=e.symbol??" ",s=e.text??this.text,o=e.suffixText??this.#k,n=i+r+("string"==typeof s?(r?" ":"")+s:"")+this.#H(o," ")+"\n";return this.stop(),this.#O.write(n),this}}function eq(e){return new eB(e)}let eK="x-run-mode",eY="test_run";function ez(e){if(!e||0===e.length)return;let t={};for(let i of e){let e,r;if(i.includes(": ")){let t=i.split(": ");e=t[0],r=t.slice(1).join(": ")}else if(i.includes("=")){let t=i.split("=");e=t[0],r=t.slice(1).join("=")}else throw Error(`Invalid header format: '${i}'. Use 'Key: Value' or 'Key=Value'`);t[e.trim()]=r.trim()}return Object.keys(t).length>0?t:void 0}let eJ=a("fs"),eX=a("path"),eZ=new S("image").description("Generate images using AI").requiredOption("-p, --prompt <text>","Image generation prompt").option("-o, --output <path>","Output file path (optional)").option("--size <size>","Image size (2K, 4K, or WIDTHxHEIGHT)","2K").option("--mock","Use mock mode (test run)").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=eq("Generating image...").start();try{let i=new h,r={},s=ez(e.header);s&&Object.assign(r,s),e.mock&&(r[eK]=eY,console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled (test run)")));let o=new p(i,Object.keys(r).length>0?r:void 0,e.verbose),n=await o.generate({prompt:e.prompt,size:e.size});if(t.succeed(ee.green("Image generated successfully!")),n.data&&n.data.length>0&&n.data[0].url&&(console.log(ee.cyan(`
24
+ Image URL: ${n.data[0].url}`)),e.output)){t.start("Downloading image...");let i=await d.get(n.data[0].url,{responseType:"arraybuffer"}),r=eX.resolve(e.output);eJ.writeFileSync(r,i.data),t.succeed(ee.green(`Image saved to ${r}`))}}catch(e){t.fail(ee.red("Failed to generate image")),console.error(ee.red(e.message)),process.exit(1)}}),eQ=new S("video").description("Generate video using AI (synchronous - waits for completion)").option("-p, --prompt <text>","Text prompt").option("-i, --image-url <url>","Image URL (single or comma-separated two URLs)").option("-s, --size <size>","Video resolution (e.g., 1920x1080)").option("-d, --duration <seconds>","Video duration (5-10 seconds)","5").option("-m, --model <model>","Model name","doubao-seedance-1-0-pro-fast-251015").option("--callback-url <url>","Callback URL").option("--return-last-frame","Return last frame image",!1).option("--watermark","Add watermark",!1).option("--seed <number>","Random seed").option("--camerafixed","Fixed camera",!1).option("-o, --output <path>","Output file path (JSON)").option("--mock","Use mock mode (test run)",!1).option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=eq("Generating video...").start();try{let i=new h,r={},s=ez(e.header);s&&Object.assign(r,s),e.mock&&(r[eK]=eY,console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled (test run)")));let o=new u(i,Object.keys(r).length>0?r:void 0,e.verbose),n=e.imageUrl?e.imageUrl.split(",").map(e=>e.trim()):null,{ratio:a,resolution:l}=function(e){if(!e)return{};let[t,i]=e.split("x"),r=parseInt(t),s=parseInt(i);return r===s?{ratio:"1:1",resolution:r<=1024?"720p":"1080p"}:r>s?{ratio:"16:9",resolution:r<=1440?"720p":"1080p"}:{ratio:"9:16",resolution:s<=1440?"720p":"1080p"}}(e.size),d=[];if(e.prompt&&d.push({type:"text",text:e.prompt}),n)if(1===n.length)d.push({type:"image_url",image_url:{url:n[0]},role:"first_frame"});else if(2===n.length)d.push({type:"image_url",image_url:{url:n[0]},role:"first_frame"}),d.push({type:"image_url",image_url:{url:n[1]},role:"last_frame"});else throw Error("Only 1 or 2 images are supported");if(0===d.length)throw Error("Either --prompt or --image-url must be provided");let m=await o.videoGeneration(d,{model:e.model,resolution:l||"720p",ratio:a||"16:9",duration:parseInt(e.duration),watermark:e.watermark,seed:e.seed?parseInt(e.seed):void 0,camerafixed:e.camerafixed,callbackUrl:e.callbackUrl,returnLastFrame:e.returnLastFrame});t.succeed(ee.green("✓ Video generation completed!")),console.log(ee.cyan("\n=== Video Generation Result ===")),console.log(ee.white("Task ID:"),ee.green(m.response.id)),console.log(ee.white("Status:"),ee.green(m.response.status)),m.videoUrl&&console.log(ee.white("Video URL:"),ee.green(m.videoUrl)),e.returnLastFrame&&m.lastFrameUrl&&console.log(ee.white("Last Frame URL:"),ee.green(m.lastFrameUrl)),m.response.error_message&&console.log(ee.white("Error:"),ee.red(m.response.error_message)),m.videoUrl&&(console.log(ee.cyan("\nComplete Video URL:")),console.log(ee.green(m.videoUrl))),e.returnLastFrame&&m.lastFrameUrl&&(console.log(ee.cyan("\nComplete Last Frame URL:")),console.log(ee.green(m.lastFrameUrl))),e.output&&(eJ.writeFileSync(e.output,JSON.stringify(m.response,null,2)),console.log(ee.green(`
25
+ ✓ Result saved to: ${e.output}`)))}catch(e){t.fail(ee.red("✗ Video generation failed")),console.error(ee.red(`Error: ${e.message}`)),process.exit(1)}}),e0=new S("search").description("Search the web using AI").requiredOption("-q, --query <text>","Search query").option("--type <type>","Search type (web or image)","web").option("--count <number>","Number of results","10").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=eq("Searching...").start();try{let i,r=new h,s=ez(e.header),o=new v(r,s,e.verbose);i="image"===e.type?await o.imageSearch(e.query,parseInt(e.count)):await o.webSearch(e.query,parseInt(e.count)),t.succeed(ee.green("Search completed!")),"image"===e.type&&i.image_items?i.image_items.forEach((e,t)=>{console.log(ee.cyan(`
26
+ [${t+1}] ${e.title||"Image"}`)),console.log(ee.gray(e.url||"")),console.log(ee.yellow(`Image URL: ${e.image.url}`))}):i.web_items&&i.web_items.forEach((e,t)=>{console.log(ee.cyan(`
27
+ [${t+1}] ${e.title}`)),console.log(ee.gray(e.url||"")),e.snippet&&console.log(e.snippet)})}catch(e){t.fail(ee.red("Search failed")),console.error(ee.red(e.message)),process.exit(1)}}),e1=new S("tts").description("Text-to-speech conversion").requiredOption("-t, --text <text>","Text to convert to speech").option("--speaker <speaker>","Speaker voice to use","zh_female_xiaohe_uranus_bigtts").option("--mock","Use mock mode (test run)").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).action(async e=>{let t=eq("Converting text to speech...").start();try{let i=new h,r={},s=ez(e.header);s&&Object.assign(r,s),e.mock&&(r[eK]=eY,console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled (test run)")));let o=new c(i,Object.keys(r).length>0?r:void 0),n=await o.synthesize({uid:"cli-user",text:e.text,speaker:e.speaker});t.succeed(ee.green("Text-to-speech conversion completed!")),console.log(ee.cyan(`Audio URL: ${n.audioUri}`)),console.log(ee.cyan(`Audio Size: ${n.audioSize} bytes`))}catch(e){t.fail(ee.red("Text-to-speech conversion failed")),console.error(ee.red(e.message)),process.exit(1)}}),e2=new S("asr").description("Automatic speech recognition").option("-u, --url <url>","Audio file URL").option("-f, --file <path>","Local audio file path (will be base64 encoded)").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=eq("Recognizing speech...").start();try{e.url||e.file||(t.fail(ee.red("Please provide either --url or --file")),process.exit(1));let i=new h,r=ez(e.header),s=new g(i,r,e.verbose),o=e.url?{url:e.url}:{base64Data:eJ.readFileSync(eX.resolve(e.file)).toString("base64")},n=await s.recognize(o);t.succeed(ee.green("Speech recognition completed!")),console.log(ee.cyan("\nRecognized text:")),console.log(n.text)}catch(e){t.fail(ee.red("Speech recognition failed")),console.error(ee.red(e.message)),process.exit(1)}}),e9=new S("chat").description("Chat with AI using LLM").requiredOption("-p, --prompt <text>","User prompt").option("-s, --system <text>","System prompt").option("--model <model>","Model to use","doubao-seed-1-6-251015").option("--temperature <number>","Temperature (0-2)","0.7").option("--stream","Enable streaming output",!1).option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{try{let t=new h,i=new f(t),r=ez(e.header),s=[];e.system&&s.push({role:"system",content:e.system}),s.push({role:"user",content:e.prompt});let o={model:e.model,temperature:parseFloat(e.temperature)};if(e.stream){for await(let e of(console.log(ee.cyan("\nAI Response:")),i.stream(s,o,void 0,r)))e.content&&process.stdout.write(e.content.toString());console.log("\n")}else{let e=eq("Generating response...").start(),t=await i.invoke(s,o,void 0,r);e.succeed(ee.green("Response generated!")),console.log(ee.cyan("\nAI Response:")),console.log(t.content)}}catch(e){console.error(ee.red("Chat failed")),console.error(ee.red(e.message)),process.exit(1)}}),e8=process.env.COZE_PROJECT_TYPE,e3=(i=process.cwd(),r="server"===eX.basename(i),"wechat_mini_program"===e8||"app"===e8?r?"src/storage/database/shared/schema.ts":"server/src/storage/database/shared/schema.ts":"src/storage/database/shared/schema.ts"),e7=new S("db").description("Database operations");e7.command("generate-models").description("Generate ORM models from database schema").option("-o, --output <path>","Output file path",e3).option("-v, --verbose","Enable verbose output").action(async e=>{let t=eq("Generating models from database...").start();try{let{generateModels:i}=await import("../131.mjs").then(e=>({generateModels:e.generateModels})),r=eX.resolve(e.output);await i({outputPath:r,verbose:e.verbose}),t.succeed(ee.green(`Models generated at ${r}`))}catch(e){t.fail(ee.red("Failed to generate models")),console.error(ee.red(e.message)),process.exit(1)}}),e7.command("upgrade").description("Push schema changes to database").option("-s, --schema <path>","Schema file path",e3).option("-p, --project <path>","Project root path",process.cwd()).option("-v, --verbose","Enable verbose output").action(async e=>{let t=eq("Pushing schema to database...").start();try{let{upgrade:i}=await import("../131.mjs").then(e=>({upgrade:e.upgrade}));await i({schemaPath:e.schema,projectPath:e.project,verbose:e.verbose}),t.succeed(ee.green("Database schema updated successfully"))}catch(e){t.fail(ee.red("Failed to upgrade database")),console.error(ee.red(e.message)),process.exit(1)}});let e4=new S("embedding").description("Generate embeddings for text, images, or videos using AI").option("-t, --text <text>","Text to embed (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("--image-url <url>","Image URL to embed (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("--video-url <url>","Video URL to embed (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("-d, --dimensions <number>","Output embedding dimensions",parseInt).option("--instructions <text>","Instructions for embedding generation").option("--multi-embedding","Enable multi-embedding mode").option("--sparse-embedding","Enable sparse embedding mode").option("-o, --output <path>","Output file path for embedding JSON").option("--mock","Use mock mode (test run)").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=e.text&&e.text.length>0,i=e.imageUrl&&e.imageUrl.length>0,r=e.videoUrl&&e.videoUrl.length>0;t||i||r||(console.error(ee.red("Error: At least one of --text, --image-url, or --video-url is required")),process.exit(1));let s=eq("Generating embeddings...").start();try{let o=new h,n={},a=ez(e.header);a&&Object.assign(n,a),e.mock&&(n[eK]=eY,console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled (test run)")));let l=new m(o,Object.keys(n).length>0?n:void 0,e.verbose),u=await l.embed(t?e.text:void 0,i?e.imageUrl:void 0,r?e.videoUrl:void 0,{dimensions:e.dimensions,instructions:e.instructions,multiEmbedding:e.multiEmbedding,sparseEmbedding:e.sparseEmbedding});if(s.succeed(ee.green("Embeddings generated successfully!")),console.log(ee.cyan(`Model: ${u.model}`)),u.data?.embedding&&(console.log(ee.cyan(`Embedding dimensions: ${u.data.embedding.length}`)),console.log(ee.gray(`First 5 values: [${u.data.embedding.slice(0,5).join(", ")}...]`))),u.data?.multi_embedding&&console.log(ee.cyan(`Multi-embedding vectors: ${u.data.multi_embedding.length}`)),u.data?.sparse_embedding&&console.log(ee.cyan(`Sparse embedding items: ${u.data.sparse_embedding.length}`)),u.usage&&console.log(ee.gray(`Tokens used: ${u.usage.total_tokens}`)),e.output){let t=eX.resolve(e.output);eJ.writeFileSync(t,JSON.stringify(u,null,2)),console.log(ee.green(`Embedding saved to ${t}`))}}catch(e){s.fail(ee.red("Failed to generate embeddings")),console.error(ee.red(e.message)),process.exit(1)}}),e5=new S("knowledge").description("Knowledge Base tools");e5.command("search").description("Search for knowledge chunks").requiredOption("-q, --query <text>","Search query").option("-d, --dataset <name>","Dataset names (tables) to search in (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("-k, --top-k <number>","Number of results to return","5").option("-m, --min-score <number>","Minimum similarity score","0.0").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=eq("Searching...").start();try{let i=new h,r=ez(e.header),s=new _(i,r,e.verbose),o=await s.search(e.query,e.dataset.length>0?e.dataset:void 0,parseInt(e.topK),parseFloat(e.minScore));if(0!==o.code)return void t.fail(ee.red(`Error ${o.code}: ${o.msg}`));t.succeed(ee.green("Search completed!")),console.log(ee.bold("\nSearch Results:")),console.log("────────────────────────────────────────────────────────────────────────────────"),0===o.chunks.length&&console.log(ee.yellow("No matching chunks found.")),o.chunks.forEach((e,t)=>{console.log(ee.cyan(`[${t+1}] Score: ${e.score.toFixed(4)}`)),e.doc_id&&console.log(ee.dim(`Doc ID: ${e.doc_id}`)),e.chunk_id&&console.log(ee.dim(`Chunk ID: ${e.chunk_id}`)),console.log(ee.green("Content:")),console.log(e.content),console.log("────────────────────────────────────────────────────────────────────────────────")})}catch(e){t.fail(ee.red("Search failed")),console.error(ee.red(e.message)),process.exit(1)}}),e5.command("add").description("Add documents to knowledge base").requiredOption("-d, --dataset <name>","Dataset name (table) to add to").option("-c, --content <text>","Raw text content to add (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("-u, --url <url>","Web URL to add (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("--chunk-separator <char>","Chunk separator","\\n").option("--max-tokens <number>","Max tokens per chunk","500").option("--remove-extra-spaces","Normalize extra spaces",!1).option("--remove-urls-emails","Strip URLs and emails",!1).option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=eq("Adding documents...").start();try{let i=new h,r=ez(e.header),s=new _(i,r,e.verbose),o=[];if(e.content&&e.content.forEach(e=>{o.push({source:b.TEXT,raw_data:e})}),e.url&&e.url.forEach(e=>{o.push({source:b.URL,url:e})}),0===o.length)return void t.fail(ee.red("No content or URL provided to add."));let n={separator:e.chunkSeparator.replace(/\\n/g,"\n"),max_tokens:parseInt(e.maxTokens),remove_extra_spaces:e.removeExtraSpaces,remove_urls_emails:e.removeUrlsEmails},a=await s.addDocuments(o,e.dataset,n);if(0!==a.code)return void t.fail(ee.red(`Error ${a.code}: ${a.msg}`));t.succeed(ee.green("Documents added successfully!")),a.doc_ids&&a.doc_ids.length>0&&(console.log(ee.cyan(`
28
+ Added ${a.doc_ids.length} documents.`)),console.log(ee.dim(`Doc IDs: ${a.doc_ids.join(", ")}`)))}catch(e){t.fail(ee.red("Add documents failed")),console.error(ee.red(e.message)),process.exit(1)}});let e6=new S;e6.name("coze-coding-ai").description("Coze Coding CLI - AI-powered tools for image generation, video generation, search, voice, chat, embedding, and knowledge").version("0.3.0"),e6.addCommand(eZ),e6.addCommand(eQ),e6.addCommand(e0),e6.addCommand(e1),e6.addCommand(e2),e6.addCommand(e9),e6.addCommand(e7),e6.addCommand(e4),e6.addCommand(e5),e6.parse(process.argv);
@@ -1 +1 @@
1
- {"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/db.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,eAAO,MAAM,SAAS,SACe,CAAC"}
1
+ {"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/db.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA0BpC,eAAO,MAAM,SAAS,SACe,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coze-coding-dev-sdk",
3
- "version": "0.7.11",
3
+ "version": "0.7.13",
4
4
  "description": "Coze Coding Dev SDK - 优雅的多功能 AI SDK,支持图片生成、视频生成、语音合成、语音识别、大语言模型和联网搜索",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",