@prisma/cli-dev 0.8.3 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-4QNO2WQL.js +31 -0
- package/dist/chunk-FON2L4R6.js +3 -0
- package/dist/chunk-M6TFCQLD.js +2 -0
- package/dist/chunk-OE4BCZ2F.js +11 -0
- package/dist/chunk-SZYQ5TDI.js +15 -0
- package/dist/chunk-ZPUL6EAC.js +30 -0
- package/dist/index.js +5 -30
- package/dist/list-URPVLN6C.js +5 -0
- package/dist/prompt-KJRFDAR5.js +46 -0
- package/dist/remove-LXPTJUNN.js +9 -0
- package/dist/start-M7MH244V.js +13 -0
- package/dist/stop-LEO7ZSSO.js +5 -0
- package/package.json +9 -8
- package/dist/chunk-D5MRRGDK.js +0 -12
- package/dist/chunk-XOIFSEIB.js +0 -2
- package/dist/chunk-ZKMEOIRF.js +0 -2
- package/dist/list-K5DAVLAS.js +0 -3
- package/dist/remove-6QJTZ5SK.js +0 -9
- package/dist/stop-CRL2UWAK.js +0 -5
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
var B={silent:Number.NEGATIVE_INFINITY,fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,ready:3,start:3,box:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},P={silent:{level:-1},fatal:{level:B.fatal},error:{level:B.error},warn:{level:B.warn},log:{level:B.log},info:{level:B.info},success:{level:B.success},fail:{level:B.fail},ready:{level:B.info},start:{level:B.info},box:{level:B.info},debug:{level:B.debug},trace:{level:B.trace},verbose:{level:B.verbose}};function x(u){if(u===null||typeof u!="object")return!1;let D=Object.getPrototypeOf(u);return D!==null&&D!==Object.prototype&&Object.getPrototypeOf(D)!==null||Symbol.iterator in u?!1:Symbol.toStringTag in u?Object.prototype.toString.call(u)==="[object Module]":!0}function M(u,D,e=".",F){if(!x(D))return M(u,{},e,F);let t=Object.assign({},D);for(let r in u){if(r==="__proto__"||r==="constructor")continue;let o=u[r];o!=null&&(F&&F(t,r,o,e)||(Array.isArray(o)&&Array.isArray(t[r])?t[r]=[...o,...t[r]]:x(o)&&x(t[r])?t[r]=M(o,t[r],(e?`${e}.`:"")+r.toString(),F):t[r]=o))}return t}function cu(u){return(...D)=>D.reduce((e,F)=>M(e,F,"",u),{})}var fu=cu();function Bu(u){return Object.prototype.toString.call(u)==="[object Object]"}function Au(u){return!(!Bu(u)||!u.message&&!u.args||u.stack)}var N=!1,Z=[],f=class u{options;_lastLog;_mockFn;constructor(D={}){let e=D.types||P;this.options=fu({...D,defaults:{...D.defaults},level:$(D.level,e),reporters:[...D.reporters||[]]},{types:P,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(let F in e){let t={type:F,...this.options.defaults,...e[F]};this[F]=this._wrapLogFn(t),this[F].raw=this._wrapLogFn(t,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(D){this.options.level=$(D,this.options.types,this.options.level)}prompt(D,e){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(D,e)}create(D){let e=new u({...this.options,...D});return this._mockFn&&e.mockTypes(this._mockFn),e}withDefaults(D){return this.create({...this.options,defaults:{...this.options.defaults,...D}})}withTag(D){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+D:D})}addReporter(D){return this.options.reporters.push(D),this}removeReporter(D){if(D){let e=this.options.reporters.indexOf(D);if(e!==-1)return this.options.reporters.splice(e,1)}else this.options.reporters.splice(0);return this}setReporters(D){return this.options.reporters=Array.isArray(D)?D:[D],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(let D in this.options.types)console["__"+D]||(console["__"+D]=console[D]),console[D]=this[D].raw}restoreConsole(){for(let D in this.options.types)console["__"+D]&&(console[D]=console["__"+D],delete console["__"+D])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(D,e){D&&(D.__write||(D.__write=D.write),D.write=F=>{this[e].raw(String(F).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(D){D&&D.__write&&(D.write=D.__write,delete D.__write)}pauseLogs(){N=!0}resumeLogs(){N=!1;let D=Z.splice(0);for(let e of D)e[0]._logFn(e[1],e[2])}mockTypes(D){let e=D||this.options.mockFn;if(this._mockFn=e,typeof e=="function")for(let F in this.options.types)this[F]=e(F,this.options.types[F])||this[F],this[F].raw=this[F]}_wrapLogFn(D,e){return(...F)=>{if(N){Z.push([this,D,F,e]);return}return this._logFn(D,F,e)}}_logFn(D,e,F){if((D.level||0)>this.level)return!1;let t={date:new Date,args:[],...D,level:$(D.level,this.options.types)};!F&&e.length===1&&Au(e[0])?Object.assign(t,e[0]):t.args=[...e],t.message&&(t.args.unshift(t.message),delete t.message),t.additional&&(Array.isArray(t.additional)||(t.additional=t.additional.split(`
|
|
3
|
+
`)),t.args.push(`
|
|
4
|
+
`+t.additional.join(`
|
|
5
|
+
`)),delete t.additional),t.type=typeof t.type=="string"?t.type.toLowerCase():"log",t.tag=typeof t.tag=="string"?t.tag:"";let r=(n=!1)=>{let s=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&s>0){let a=[...this._lastLog.object.args];s>1&&a.push(`(repeated ${s} times)`),this._log({...this._lastLog.object,args:a}),this._lastLog.count=1}n&&(this._lastLog.object=t,this._log(t))};clearTimeout(this._lastLog.timeout);let o=this._lastLog.time&&t.date?t.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=t.date,o<this.options.throttle)try{let n=JSON.stringify([t.type,t.tag,t.args]),s=this._lastLog.serialized===n;if(this._lastLog.serialized=n,s&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin)){this._lastLog.timeout=setTimeout(r,this.options.throttle);return}}catch{}r(!0)}_log(D){for(let e of this.options.reporters)e.log(D,{options:this.options})}};function $(u,D={},e=3){return u===void 0?e:typeof u=="number"?u:D[u]&&D[u].level!==void 0?D[u].level:e}f.prototype.add=f.prototype.addReporter;f.prototype.remove=f.prototype.removeReporter;f.prototype.clear=f.prototype.removeReporter;f.prototype.withScope=f.prototype.withTag;f.prototype.mock=f.prototype.mockTypes;f.prototype.pause=f.prototype.pauseLogs;f.prototype.resume=f.prototype.resumeLogs;function K(u={}){return new f(u)}import{formatWithOptions as J}from"util";import{sep as pu}from"path";function k(u,D){let e=process.cwd()+pu;return u.split(`
|
|
6
|
+
`).splice(D.split(`
|
|
7
|
+
`).length).map(t=>t.trim().replace("file://","").replace(e,""))}function gu(u,D){return(D.__write||D.write).call(D,u)}var U=u=>u?`[${u}]`:"",I=class{formatStack(D,e,F){let t=" ".repeat((F?.errorLevel||0)+1);return t+k(D,e).join(`
|
|
8
|
+
${t}`)}formatError(D,e){let F=D.message??J(e,D),t=D.stack?this.formatStack(D.stack,F,e):"",r=e?.errorLevel||0,o=r>0?`${" ".repeat(r)}[cause]: `:"",n=D.cause?`
|
|
9
|
+
|
|
10
|
+
`+this.formatError(D.cause,{...e,errorLevel:r+1}):"";return o+F+`
|
|
11
|
+
`+t+n}formatArgs(D,e){let F=D.map(t=>t&&typeof t.stack=="string"?this.formatError(t,e):t);return J(e,...F)}formatDate(D,e){return e.date?D.toLocaleTimeString():""}filterAndJoin(D){return D.filter(Boolean).join(" ")}formatLogObj(D,e){let F=this.formatArgs(D.args,e);return D.type==="box"?`
|
|
12
|
+
`+[U(D.tag),D.title&&D.title,...F.split(`
|
|
13
|
+
`)].filter(Boolean).map(t=>" > "+t).join(`
|
|
14
|
+
`)+`
|
|
15
|
+
`:this.filterAndJoin([U(D.type),U(D.tag),F])}log(D,e){let F=this.formatLogObj(D,{columns:e.options.stdout.columns||0,...e.options.formatOptions});return gu(F+`
|
|
16
|
+
`,D.level<2?e.options.stderr||process.stderr:e.options.stdout||process.stdout)}};import tu from"process";import*as v from"tty";var{env:y={},argv:uu=[],platform:hu=""}=typeof process>"u"?{}:process,du="NO_COLOR"in y||uu.includes("--no-color"),mu="FORCE_COLOR"in y||uu.includes("--color"),_u=hu==="win32",Du=y.TERM==="dumb",yu=v&&v.isatty&&v.isatty(1)&&y.TERM&&!Du,bu="CI"in y&&("GITHUB_ACTIONS"in y||"GITLAB_CI"in y||"CIRCLECI"in y),Lu=!du&&(mu||_u&&!Du||yu||bu);function eu(u,D,e,F,t=D.slice(0,Math.max(0,u))+F,r=D.slice(Math.max(0,u+e.length)),o=r.indexOf(e)){return t+(o<0?r:eu(o,r,e,F))}function wu(u,D,e,F,t){return u<0?e+D+F:e+eu(u,D,F,t)+F}function Tu(u,D,e=u,F=u.length+1){return t=>t||!(t===""||t===void 0)?wu((""+t).indexOf(D,F),t,u,D,e):""}function E(u,D,e){return Tu(`\x1B[${u}m`,`\x1B[${D}m`,e)}var X={reset:E(0,0),bold:E(1,22,"\x1B[22m\x1B[1m"),dim:E(2,22,"\x1B[22m\x1B[2m"),italic:E(3,23),underline:E(4,24),inverse:E(7,27),hidden:E(8,28),strikethrough:E(9,29),black:E(30,39),red:E(31,39),green:E(32,39),yellow:E(33,39),blue:E(34,39),magenta:E(35,39),cyan:E(36,39),white:E(37,39),gray:E(90,39),bgBlack:E(40,49),bgRed:E(41,49),bgGreen:E(42,49),bgYellow:E(43,49),bgBlue:E(44,49),bgMagenta:E(45,49),bgCyan:E(46,49),bgWhite:E(47,49),blackBright:E(90,39),redBright:E(91,39),greenBright:E(92,39),yellowBright:E(93,39),blueBright:E(94,39),magentaBright:E(95,39),cyanBright:E(96,39),whiteBright:E(97,39),bgBlackBright:E(100,49),bgRedBright:E(101,49),bgGreenBright:E(102,49),bgYellowBright:E(103,49),bgBlueBright:E(104,49),bgMagentaBright:E(105,49),bgCyanBright:E(106,49),bgWhiteBright:E(107,49)};function Iu(u=Lu){return u?X:Object.fromEntries(Object.keys(X).map(D=>[D,String]))}var l=Iu();function j(u,D="reset"){return l[u]||l[D]}function Su(u,D){return j(u)(D)}var vu=[String.raw`[\u001B\u009B][[\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\d\/#&.:=?%@~_]+)*|[a-zA-Z\d]+(?:;[-a-zA-Z\d\/#&.:=?%@~_]*)*)?\u0007)`,String.raw`(?:(?:\d{1,4}(?:;\d{0,4})*)?[\dA-PR-TZcf-nq-uy=><~]))`].join("|");function _(u){return u.replace(new RegExp(vu,"g"),"")}var Q={solid:{tl:"\u250C",tr:"\u2510",bl:"\u2514",br:"\u2518",h:"\u2500",v:"\u2502"},double:{tl:"\u2554",tr:"\u2557",bl:"\u255A",br:"\u255D",h:"\u2550",v:"\u2551"},doubleSingle:{tl:"\u2553",tr:"\u2556",bl:"\u2559",br:"\u255C",h:"\u2500",v:"\u2551"},doubleSingleRounded:{tl:"\u256D",tr:"\u256E",bl:"\u2570",br:"\u256F",h:"\u2500",v:"\u2551"},singleThick:{tl:"\u250F",tr:"\u2513",bl:"\u2517",br:"\u251B",h:"\u2501",v:"\u2503"},singleDouble:{tl:"\u2552",tr:"\u2555",bl:"\u2558",br:"\u255B",h:"\u2550",v:"\u2502"},singleDoubleRounded:{tl:"\u256D",tr:"\u256E",bl:"\u2570",br:"\u256F",h:"\u2550",v:"\u2502"},rounded:{tl:"\u256D",tr:"\u256E",bl:"\u2570",br:"\u256F",h:"\u2500",v:"\u2502"}},Ru={borderColor:"white",borderStyle:"rounded",valign:"center",padding:2,marginLeft:1,marginTop:1,marginBottom:1};function W(u,D={}){let e={...D,style:{...Ru,...D.style}},F=u.split(`
|
|
17
|
+
`),t=[],r=j(e.style.borderColor),o={...typeof e.style.borderStyle=="string"?Q[e.style.borderStyle]||Q.solid:e.style.borderStyle};if(r)for(let i in o)o[i]=r(o[i]);let n=e.style.padding%2===0?e.style.padding:e.style.padding+1,s=F.length+n,a=Math.max(...F.map(i=>_(i).length),e.title?_(e.title).length:0)+n,C=a+n,A=e.style.marginLeft>0?" ".repeat(e.style.marginLeft):"";if(e.style.marginTop>0&&t.push("".repeat(e.style.marginTop)),e.title){let i=r?r(e.title):e.title,c=o.h.repeat(Math.floor((a-_(e.title).length)/2)),p=o.h.repeat(a-_(e.title).length-_(c).length+n);t.push(`${A}${o.tl}${c}${i}${p}${o.tr}`)}else t.push(`${A}${o.tl}${o.h.repeat(C)}${o.tr}`);let g=e.style.valign==="center"?Math.floor((s-F.length)/2):e.style.valign==="top"?s-F.length-n:s-F.length;for(let i=0;i<s;i++)if(i<g||i>=g+F.length)t.push(`${A}${o.v}${" ".repeat(C)}${o.v}`);else{let c=F[i-g],p=" ".repeat(n),m=" ".repeat(a-_(c).length);t.push(`${A}${o.v}${p}${c}${m}${o.v}`)}return t.push(`${A}${o.bl}${o.h.repeat(C)}${o.br}`),e.style.marginBottom>0&&t.push("".repeat(e.style.marginBottom)),t.join(`
|
|
18
|
+
`)}import"util";import"path";import"tty";var O=Object.create(null),S=u=>globalThis.process?.env||import.meta.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(u?O:globalThis),b=new Proxy(O,{get(u,D){return S()[D]??O[D]},has(u,D){let e=S();return D in e||D in O},set(u,D,e){let F=S(!0);return F[D]=e,!0},deleteProperty(u,D){if(!D)return!1;let e=S(!0);return delete e[D],!0},ownKeys(){let u=S(!0);return Object.keys(u)}}),Ou=typeof process<"u"&&process.env&&process.env.NODE_ENV||"",xu=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}]];function Nu(){if(globalThis.process?.env)for(let u of xu){let D=u[1]||u[0];if(globalThis.process?.env[D])return{name:u[0].toLowerCase(),...u[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}}var ou=Nu();ou.name;function w(u){return u?u!=="false":!1}var $u=globalThis.process?.platform||"",Y=w(b.CI)||ou.ci!==!1,su=w(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY),Pu=w(b.DEBUG),V=Ou==="test"||w(b.TEST);w(b.MINIMAL);var Mu=/^win/i.test($u);!w(b.NO_COLOR)&&(w(b.FORCE_COLOR)||(su||Mu)&&b.TERM);var Uu=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null;Number(Uu?.split(".")[0]);var ku=globalThis.process||Object.create(null),Fu={versions:{}};new Proxy(ku,{get(u,D){if(D==="env")return b;if(D in u)return u[D];if(D in Fu)return Fu[D]}});var ju=globalThis.process?.release?.name==="node",Wu=!!globalThis.Bun||!!globalThis.process?.versions?.bun,Gu=!!globalThis.Deno,Yu=!!globalThis.fastly,Vu=!!globalThis.Netlify,Hu=!!globalThis.EdgeRuntime,qu=globalThis.navigator?.userAgent==="Cloudflare-Workers",zu=[[Vu,"netlify"],[Hu,"edge-light"],[qu,"workerd"],[Yu,"fastly"],[Gu,"deno"],[Wu,"bun"],[ju,"node"]];function Zu(){let u=zu.find(D=>D[0]);if(u)return{name:u[1]}}var Ku=Zu();Ku?.name;function Ju({onlyFirst:u=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(e,u?void 0:"g")}var Xu=Ju();function Qu(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(Xu,"")}function uD(u){return u===161||u===164||u===167||u===168||u===170||u===173||u===174||u>=176&&u<=180||u>=182&&u<=186||u>=188&&u<=191||u===198||u===208||u===215||u===216||u>=222&&u<=225||u===230||u>=232&&u<=234||u===236||u===237||u===240||u===242||u===243||u>=247&&u<=250||u===252||u===254||u===257||u===273||u===275||u===283||u===294||u===295||u===299||u>=305&&u<=307||u===312||u>=319&&u<=322||u===324||u>=328&&u<=331||u===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>=713&&u<=715||u===717||u===720||u>=728&&u<=731||u===733||u===735||u>=768&&u<=879||u>=913&&u<=929||u>=931&&u<=937||u>=945&&u<=961||u>=963&&u<=969||u===1025||u>=1040&&u<=1103||u===1105||u===8208||u>=8211&&u<=8214||u===8216||u===8217||u===8220||u===8221||u>=8224&&u<=8226||u>=8228&&u<=8231||u===8240||u===8242||u===8243||u===8245||u===8251||u===8254||u===8308||u===8319||u>=8321&&u<=8324||u===8364||u===8451||u===8453||u===8457||u===8467||u===8470||u===8481||u===8482||u===8486||u===8491||u===8531||u===8532||u>=8539&&u<=8542||u>=8544&&u<=8555||u>=8560&&u<=8569||u===8585||u>=8592&&u<=8601||u===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>=8733&&u<=8736||u===8739||u===8741||u>=8743&&u<=8748||u===8750||u>=8756&&u<=8759||u===8764||u===8765||u===8776||u===8780||u===8786||u===8800||u===8801||u>=8804&&u<=8807||u===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>=9312&&u<=9449||u>=9451&&u<=9547||u>=9552&&u<=9587||u>=9600&&u<=9615||u>=9618&&u<=9621||u===9632||u===9633||u>=9635&&u<=9641||u===9650||u===9651||u===9654||u===9655||u===9660||u===9661||u===9664||u===9665||u>=9670&&u<=9672||u===9675||u>=9678&&u<=9681||u>=9698&&u<=9701||u===9711||u===9733||u===9734||u===9737||u===9742||u===9743||u===9756||u===9758||u===9792||u===9794||u===9824||u===9825||u>=9827&&u<=9829||u>=9831&&u<=9834||u===9836||u===9837||u===9839||u===9886||u===9887||u===9919||u>=9926&&u<=9933||u>=9935&&u<=9939||u>=9941&&u<=9953||u===9955||u===9960||u===9961||u>=9963&&u<=9969||u===9972||u>=9974&&u<=9977||u===9979||u===9980||u===9982||u===9983||u===10045||u>=10102&&u<=10111||u>=11094&&u<=11097||u>=12872&&u<=12879||u>=57344&&u<=63743||u>=65024&&u<=65039||u===65533||u>=127232&&u<=127242||u>=127248&&u<=127277||u>=127280&&u<=127337||u>=127344&&u<=127373||u===127375||u===127376||u>=127387&&u<=127404||u>=917760&&u<=917999||u>=983040&&u<=1048573||u>=1048576&&u<=1114109}function DD(u){return u===12288||u>=65281&&u<=65376||u>=65504&&u<=65510}function eD(u){return u>=4352&&u<=4447||u===8986||u===8987||u===9001||u===9002||u>=9193&&u<=9196||u===9200||u===9203||u===9725||u===9726||u===9748||u===9749||u>=9776&&u<=9783||u>=9800&&u<=9811||u===9855||u>=9866&&u<=9871||u===9875||u===9889||u===9898||u===9899||u===9917||u===9918||u===9924||u===9925||u===9934||u===9940||u===9962||u===9970||u===9971||u===9973||u===9978||u===9981||u===9989||u===9994||u===9995||u===10024||u===10060||u===10062||u>=10067&&u<=10069||u===10071||u>=10133&&u<=10135||u===10160||u===10175||u===11035||u===11036||u===11088||u===11093||u>=11904&&u<=11929||u>=11931&&u<=12019||u>=12032&&u<=12245||u>=12272&&u<=12287||u>=12289&&u<=12350||u>=12353&&u<=12438||u>=12441&&u<=12543||u>=12549&&u<=12591||u>=12593&&u<=12686||u>=12688&&u<=12773||u>=12783&&u<=12830||u>=12832&&u<=12871||u>=12880&&u<=42124||u>=42128&&u<=42182||u>=43360&&u<=43388||u>=44032&&u<=55203||u>=63744&&u<=64255||u>=65040&&u<=65049||u>=65072&&u<=65106||u>=65108&&u<=65126||u>=65128&&u<=65131||u>=94176&&u<=94180||u===94192||u===94193||u>=94208&&u<=100343||u>=100352&&u<=101589||u>=101631&&u<=101640||u>=110576&&u<=110579||u>=110581&&u<=110587||u===110589||u===110590||u>=110592&&u<=110882||u===110898||u>=110928&&u<=110930||u===110933||u>=110948&&u<=110951||u>=110960&&u<=111355||u>=119552&&u<=119638||u>=119648&&u<=119670||u===126980||u===127183||u===127374||u>=127377&&u<=127386||u>=127488&&u<=127490||u>=127504&&u<=127547||u>=127552&&u<=127560||u===127568||u===127569||u>=127584&&u<=127589||u>=127744&&u<=127776||u>=127789&&u<=127797||u>=127799&&u<=127868||u>=127870&&u<=127891||u>=127904&&u<=127946||u>=127951&&u<=127955||u>=127968&&u<=127984||u===127988||u>=127992&&u<=128062||u===128064||u>=128066&&u<=128252||u>=128255&&u<=128317||u>=128331&&u<=128334||u>=128336&&u<=128359||u===128378||u===128405||u===128406||u===128420||u>=128507&&u<=128591||u>=128640&&u<=128709||u===128716||u>=128720&&u<=128722||u>=128725&&u<=128727||u>=128732&&u<=128735||u===128747||u===128748||u>=128756&&u<=128764||u>=128992&&u<=129003||u===129008||u>=129292&&u<=129338||u>=129340&&u<=129349||u>=129351&&u<=129535||u>=129648&&u<=129660||u>=129664&&u<=129673||u>=129679&&u<=129734||u>=129742&&u<=129756||u>=129759&&u<=129769||u>=129776&&u<=129784||u>=131072&&u<=196605||u>=196608&&u<=262141}function tD(u){if(!Number.isSafeInteger(u))throw new TypeError(`Expected a code point, got \`${typeof u}\`.`)}function FD(u,{ambiguousAsWide:D=!1}={}){return tD(u),DD(u)||eD(u)||D&&uD(u)?2:1}var nD=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,rD=globalThis.Intl?.Segmenter?new Intl.Segmenter:{segment:u=>u.split("")},oD=/^\p{Default_Ignorable_Code_Point}$/u;function sD(u,D={}){if(typeof u!="string"||u.length===0)return 0;let{ambiguousIsNarrow:e=!0,countAnsiEscapeCodes:F=!1}=D;if(F||(u=Qu(u)),u.length===0)return 0;let t=0,r={ambiguousAsWide:!e};for(let{segment:o}of rD.segment(u)){let n=o.codePointAt(0);if(!(n<=31||n>=127&&n<=159)&&!(n>=8203&&n<=8207||n===65279)&&!(n>=768&&n<=879||n>=6832&&n<=6911||n>=7616&&n<=7679||n>=8400&&n<=8447||n>=65056&&n<=65071)&&!(n>=55296&&n<=57343)&&!(n>=65024&&n<=65039)&&!oD.test(o)){if(nD().test(o)){t+=2;continue}t+=FD(n,r)}}return t}function iD(){let{env:u}=tu,{TERM:D,TERM_PROGRAM:e}=u;return tu.platform!=="win32"?D!=="linux":!!u.WT_SESSION||!!u.TERMINUS_SUBLIME||u.ConEmuTask==="{cmd::Cmder}"||e==="Terminus-Sublime"||e==="vscode"||D==="xterm-256color"||D==="alacritty"||D==="rxvt-unicode"||D==="rxvt-unicode-256color"||u.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var aD={info:"cyan",fail:"red",success:"green",ready:"green",start:"magenta"},ED={0:"red",1:"yellow"},CD=iD(),d=(u,D)=>CD?u:D,nu={error:d("\u2716","\xD7"),fatal:d("\u2716","\xD7"),ready:d("\u2714","\u221A"),warn:d("\u26A0","\u203C"),info:d("\u2139","i"),success:d("\u2714","\u221A"),debug:d("\u2699","D"),trace:d("\u2192","\u2192"),fail:d("\u2716","\xD7"),start:d("\u25D0","o"),log:""};function ru(u){return!(typeof Intl=="object")||!Intl.Segmenter?_(u).length:sD(u)}var G=class extends I{formatStack(D,e,F){let t=" ".repeat((F?.errorLevel||0)+1);return`
|
|
19
|
+
${t}`+k(D,e).map(r=>" "+r.replace(/^at +/,o=>l.gray(o)).replace(/\((.+)\)/,(o,n)=>`(${l.cyan(n)})`)).join(`
|
|
20
|
+
${t}`)}formatType(D,e,F){let t=aD[D.type]||ED[D.level]||"gray";if(e)return cD(t)(l.black(` ${D.type.toUpperCase()} `));let r=typeof nu[D.type]=="string"?nu[D.type]:D.icon||D.type;return r?lD(t)(r):""}formatLogObj(D,e){let[F,...t]=this.formatArgs(D.args,e).split(`
|
|
21
|
+
`);if(D.type==="box")return W(R(F+(t.length>0?`
|
|
22
|
+
`+t.join(`
|
|
23
|
+
`):"")),{title:D.title?R(D.title):void 0,style:D.style});let r=this.formatDate(D.date,e),o=r&&l.gray(r),n=D.badge??D.level<2,s=this.formatType(D,n,e),a=D.tag?l.gray(D.tag):"",C,A=this.filterAndJoin([s,R(F)]),g=this.filterAndJoin(e.columns?[a,o]:[a]),i=(e.columns||0)-ru(A)-ru(g)-2;if(C=i>0&&(e.columns||0)>=80?A+" ".repeat(i)+g:(g?`${l.gray(`[${g}]`)} `:"")+A,C+=R(t.length>0?`
|
|
24
|
+
`+t.join(`
|
|
25
|
+
`):""),D.type==="trace"){let c=new Error("Trace: "+D.message);C+=this.formatStack(c.stack||"",c.message)}return n?`
|
|
26
|
+
`+C+`
|
|
27
|
+
`:C}};function R(u){return u.replace(/`([^`]+)`/gm,(D,e)=>l.cyan(e)).replace(/\s+_([^_]+)_\s+/gm,(D,e)=>` ${l.underline(e)} `)}function lD(u="white"){return l[u]||l.white}function cD(u="bgWhite"){return l[`bg${u[0].toUpperCase()}${u.slice(1)}`]||l.bgWhite}function fD(u={}){let D=BD();return process.env.CONSOLA_LEVEL&&(D=Number.parseInt(process.env.CONSOLA_LEVEL)??D),K({level:D,defaults:{level:D},stdout:process.stdout,stderr:process.stderr,prompt:(...F)=>import("./prompt-KJRFDAR5.js").then(t=>t.prompt(...F)),reporters:u.reporters||[u.fancy??!(Y||V)?new G:new I],...u})}function BD(){return Pu?B.debug:V?B.warn:B.info}var T=fD();import"tty";function AD(u){return Array.isArray(u)?u:u===void 0?[]:[u]}function H(u,D=""){let e=[];for(let F of u)for(let[t,r]of F.entries())e[t]=Math.max(e[t]||0,r.length);return u.map(F=>F.map((t,r)=>D+t[r===0?"padStart":"padEnd"](e[r])).join(" ")).join(`
|
|
28
|
+
`)}function h(u){return typeof u=="function"?u():u}var L=class extends Error{constructor(D,e){super(D),this.code=e,this.name="CLIError"}},pD=/\d/,gD=["-","_","/","."];function hD(u=""){if(!pD.test(u))return u!==u.toLowerCase()}function iu(u,D){let e=D??gD,F=[];if(!u||typeof u!="string")return F;let t="",r,o;for(let n of u){let s=e.includes(n);if(s===!0){F.push(t),t="",r=void 0;continue}let a=hD(n);if(o===!1){if(r===!1&&a===!0){F.push(t),t=n,r=a;continue}if(r===!0&&a===!1&&t.length>1){let C=t.at(-1);F.push(t.slice(0,Math.max(0,t.length-1))),t=C+n,r=a;continue}}t+=n,r=a,o=s}return F.push(t),F}function dD(u){return u?u[0].toUpperCase()+u.slice(1):""}function mD(u){return u?u[0].toLowerCase()+u.slice(1):""}function _D(u,D){return u?(Array.isArray(u)?u:iu(u)).map(e=>dD(D?.normalize?e.toLowerCase():e)).join(""):""}function yD(u,D){return mD(_D(u||"",D))}function bD(u,D){return u?(Array.isArray(u)?u:iu(u)).map(e=>e.toLowerCase()).join(D??"-"):""}function q(u){return u==null?[]:Array.isArray(u)?u:[u]}function LD(u,D,e,F){let t,r=u[D],o=~F.string.indexOf(D)?e==null||e===!0?"":String(e):typeof e=="boolean"?e:~F.boolean.indexOf(D)?e==="false"?!1:e==="true"||(u._.push((t=+e,t*0===0?t:e)),!!e):(t=+e,t*0===0?t:e);u[D]=r==null?o:Array.isArray(r)?r.concat(o):[r,o]}function wD(u=[],D={}){let e,F,t,r,o,n={_:[]},s=0,a=0,C=0,A=u.length,g=D.alias!==void 0,i=D.unknown!==void 0,c=D.default!==void 0;if(D.alias=D.alias||{},D.string=q(D.string),D.boolean=q(D.boolean),g)for(e in D.alias)for(F=D.alias[e]=q(D.alias[e]),s=0;s<F.length;s++)(D.alias[F[s]]=F.concat(e)).splice(s,1);for(s=D.boolean.length;s-- >0;)for(F=D.alias[D.boolean[s]]||[],a=F.length;a-- >0;)D.boolean.push(F[a]);for(s=D.string.length;s-- >0;)for(F=D.alias[D.string[s]]||[],a=F.length;a-- >0;)D.string.push(F[a]);if(c){for(e in D.default)if(r=typeof D.default[e],F=D.alias[e]=D.alias[e]||[],D[r]!==void 0)for(D[r].push(e),s=0;s<F.length;s++)D[r].push(F[s])}let p=i?Object.keys(D.alias):[];for(s=0;s<A;s++){if(t=u[s],t==="--"){n._=n._.concat(u.slice(++s));break}for(a=0;a<t.length&&t.charCodeAt(a)===45;a++);if(a===0)n._.push(t);else if(t.substring(a,a+3)==="no-"){if(r=t.slice(Math.max(0,a+3)),i&&!~p.indexOf(r))return D.unknown(t);n[r]=!1}else{for(C=a+1;C<t.length&&t.charCodeAt(C)!==61;C++);for(r=t.substring(a,C),o=t.slice(Math.max(0,++C))||s+1===A||(""+u[s+1]).charCodeAt(0)===45||u[++s],F=a===2?[r]:r,C=0;C<F.length;C++){if(r=F[C],i&&!~p.indexOf(r))return D.unknown("-".repeat(a)+r);LD(n,r,C+1<F.length||o,D)}}}if(c)for(e in D.default)n[e]===void 0&&(n[e]=D.default[e]);if(g)for(e in n)for(F=D.alias[e]||[];F.length>0;)n[F.shift()]=n[e];return n}function TD(u,D){let e={boolean:[],string:[],mixed:[],alias:{},default:{}},F=au(D);for(let n of F)n.type!=="positional"&&(n.type==="string"?e.string.push(n.name):n.type==="boolean"&&e.boolean.push(n.name),n.default!==void 0&&(e.default[n.name]=n.default),n.alias&&(e.alias[n.name]=n.alias));let t=wD(u,e),[...r]=t._,o=new Proxy(t,{get(n,s){return n[s]??n[yD(s)]??n[bD(s)]}});for(let[,n]of F.entries())if(n.type==="positional"){let s=r.shift();if(s!==void 0)o[n.name]=s;else{if(n.default===void 0&&n.required!==!1)throw new L(`Missing required positional argument: ${n.name.toUpperCase()}`,"EARG");o[n.name]=n.default}}else if(n.required&&o[n.name]===void 0)throw new L(`Missing required argument: --${n.name}`,"EARG");return o}function au(u){let D=[];for(let[e,F]of Object.entries(u||{}))D.push({...F,name:e,alias:AD(F.alias)});return D}async function Eu(u,D){let e=await h(u.args||{}),F=TD(D.rawArgs,e),t={rawArgs:D.rawArgs,args:F,data:D.data,cmd:u};typeof u.setup=="function"&&await u.setup(t);let r;try{let o=await h(u.subCommands);if(o&&Object.keys(o).length>0){let n=D.rawArgs.findIndex(a=>!a.startsWith("-")),s=D.rawArgs[n];if(s){if(!o[s])throw new L(`Unknown command \`${s}\``,"E_UNKNOWN_COMMAND");let a=await h(o[s]);a&&await Eu(a,{rawArgs:D.rawArgs.slice(n+1)})}else if(!u.run)throw new L("No command specified.","E_NO_COMMAND")}typeof u.run=="function"&&(r=await u.run(t))}finally{typeof u.cleanup=="function"&&await u.cleanup(t)}return{result:r}}async function z(u,D,e){let F=await h(u.subCommands);if(F&&Object.keys(F).length>0){let t=D.findIndex(n=>!n.startsWith("-")),r=D[t],o=await h(F[r]);if(o)return z(o,D.slice(t+1),u)}return[u,e]}async function ID(u,D){try{T.log(await SD(u,D)+`
|
|
29
|
+
`)}catch(e){T.error(e)}}async function SD(u,D){let e=await h(u.meta||{}),F=au(await h(u.args||{})),t=await h(D?.meta||{}),r=`${t.name?`${t.name} `:""}`+(e.name||process.argv[1]),o=[],n=[],s=[],a=[];for(let i of F)if(i.type==="positional"){let c=i.name.toUpperCase(),p=i.required!==!1&&i.default===void 0,m=i.default?`="${i.default}"`:"";n.push(["`"+c+m+"`",i.description||"",i.valueHint?`<${i.valueHint}>`:""]),a.push(p?`<${c}>`:`[${c}]`)}else{let c=i.required===!0&&i.default===void 0,p=(i.type==="boolean"&&i.default===!0?[...(i.alias||[]).map(m=>`--no-${m}`),`--no-${i.name}`].join(", "):[...(i.alias||[]).map(m=>`-${m}`),`--${i.name}`].join(", "))+(i.type==="string"&&(i.valueHint||i.default)?`=${i.valueHint?`<${i.valueHint}>`:`"${i.default||""}"`}`:"");o.push(["`"+p+(c?" (required)":"")+"`",i.description||""]),c&&a.push(p)}if(u.subCommands){let i=[],c=await h(u.subCommands);for(let[p,m]of Object.entries(c)){let Cu=await h(m),lu=await h(Cu?.meta);s.push([`\`${p}\``,lu?.description||""]),i.push(p)}a.push(i.join("|"))}let C=[],A=e.version||t.version;C.push(l.gray(`${e.description} (${r+(A?` v${A}`:"")})`),"");let g=o.length>0||n.length>0;return C.push(`${l.underline(l.bold("USAGE"))} \`${r}${g?" [OPTIONS]":""} ${a.join(" ")}\``,""),n.length>0&&(C.push(l.underline(l.bold("ARGUMENTS")),""),C.push(H(n," ")),C.push("")),o.length>0&&(C.push(l.underline(l.bold("OPTIONS")),""),C.push(H(o," ")),C.push("")),s.length>0&&(C.push(l.underline(l.bold("COMMANDS")),""),C.push(H(s," ")),C.push("",`Use \`${r} <command> --help\` for more information about a command.`)),C.filter(i=>typeof i=="string").join(`
|
|
30
|
+
`)}async function De(u,D={}){let e=D.rawArgs||process.argv.slice(2),F=D.showUsage||ID;try{if(e.includes("--help")||e.includes("-h"))await F(...await z(u,e)),process.exit(0);else if(e.length===1&&e[0]==="--version"){let t=typeof u.meta=="function"?await u.meta():await u.meta;if(!t?.version)throw new L("No version specified","E_NO_VERSION");T.log(t.version)}else await Eu(u,{rawArgs:e})}catch(t){let r=t instanceof L;r||T.error(t,`
|
|
31
|
+
`),r&&await F(...await z(u,e)),T.error(t.message),process.exit(1)}}var te={debug:{default:!1,description:"Enable debug logging. Defaults to `false`.",required:!1,type:"boolean"}};export{B as a,Su as b,W as c,T as d,De as e,te as f};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
var g=Object.create;var e=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(b,a)=>()=>(a||b((a={exports:{}}).exports,a),a.exports),n=(b,a)=>{for(var c in a)e(b,c,{get:a[c],enumerable:!0})},l=(b,a,c,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of i(a))!k.call(b,d)&&d!==c&&e(b,d,{get:()=>a[d],enumerable:!(f=h(a,d))||f.enumerable});return b};var o=(b,a,c)=>(c=b!=null?g(j(b)):{},l(a||!b||!b.__esModule?e(c,"default",{value:b,enumerable:!0}):c,b));export{m as a,n as b,o as c};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{d as o,h as a,k as c}from"./chunk-SZYQ5TDI.js";import{b as r}from"./chunk-4QNO2WQL.js";async function T(e){let{confirmationText:t,debug:h}=e;return a?typeof await new c({debug:h,render(){switch(this.state){case"active":case"error":case"initial":{let s=`
|
|
3
|
+
\u{1F9F7} To confirm, type ${o(t)} and press ${r("inverse"," \u23CE ")}:`,l=this.value?.length<=t.length&&t.startsWith(this.value),i=!this.error&&u(this.value,t),n=t.charAt(this.cursor)?r("inverse",t.charAt(this.cursor)):this.valueWithCursor.charAt(this.cursor),m=r("dim",t.slice(this.valueWithCursor.length)),p=i?`${t}${r("reset",r("strikethrough",r("dim",this.value.slice(t.length))))}${n}`:`${this.value}${n}`;return`${s}
|
|
4
|
+
|
|
5
|
+
${r(i?"greenBright":l?"reset":"redBright",`${r("hidden","_")}> ${p}`)}${m}
|
|
6
|
+
`}case"cancel":return`
|
|
7
|
+
Aborted!
|
|
8
|
+
|
|
9
|
+
`;case"submit":return`
|
|
10
|
+
`;default:return this.state,`
|
|
11
|
+
`}},validate:s=>u(s,t)?void 0:"!"}).prompt()=="string":!0}function u(e,t){return typeof e=="string"&&e.startsWith(t)}export{T as a};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{b as B}from"./chunk-4QNO2WQL.js";import{a as V,c as U}from"./chunk-M6TFCQLD.js";var H=V((yu,z)=>{"use strict";var L="\x1B",o=`${L}[`,RD="\x07",$={to(t,u){return u?`${o}${u+1};${t+1}H`:`${o}${t+1}G`},move(t,u){let e="";return t<0?e+=`${o}${-t}D`:t>0&&(e+=`${o}${t}C`),u<0?e+=`${o}${-u}A`:u>0&&(e+=`${o}${u}B`),e},up:(t=1)=>`${o}${t}A`,down:(t=1)=>`${o}${t}B`,forward:(t=1)=>`${o}${t}C`,backward:(t=1)=>`${o}${t}D`,nextLine:(t=1)=>`${o}E`.repeat(t),prevLine:(t=1)=>`${o}F`.repeat(t),left:`${o}G`,hide:`${o}?25l`,show:`${o}?25h`,save:`${L}7`,restore:`${L}8`},LD={up:(t=1)=>`${o}S`.repeat(t),down:(t=1)=>`${o}T`.repeat(t)},$D={screen:`${o}2J`,up:(t=1)=>`${o}1J`.repeat(t),down:(t=1)=>`${o}J`.repeat(t),line:`${o}2K`,lineEnd:`${o}K`,lineStart:`${o}1K`,lines(t){let u="";for(let e=0;e<t;e++)u+=this.line+(e<t-1?$.up():"");return t&&(u+=$.left),u}};z.exports={cursor:$,scroll:LD,erase:$D,beep:RD}});var X=V((Ru,P)=>{"use strict";var w=process||{},Z=w.argv||[],_=w.env||{},PD=!(_.NO_COLOR||Z.includes("--no-color"))&&(!!_.FORCE_COLOR||Z.includes("--color")||w.platform==="win32"||(w.stdout||{}).isTTY&&_.TERM!=="dumb"||!!_.CI),ND=(t,u,e=t)=>s=>{let r=""+s,i=r.indexOf(u,t.length);return~i?t+kD(r,u,e,i)+u:t+r+u},kD=(t,u,e,s)=>{let r="",i=0;do r+=t.substring(i,s)+e,i=s+u.length,s=t.indexOf(u,i);while(~s);return r+t.substring(i)},J=(t=PD)=>{let u=t?ND:()=>String;return{isColorSupported:t,reset:u("\x1B[0m","\x1B[0m"),bold:u("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:u("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:u("\x1B[3m","\x1B[23m"),underline:u("\x1B[4m","\x1B[24m"),inverse:u("\x1B[7m","\x1B[27m"),hidden:u("\x1B[8m","\x1B[28m"),strikethrough:u("\x1B[9m","\x1B[29m"),black:u("\x1B[30m","\x1B[39m"),red:u("\x1B[31m","\x1B[39m"),green:u("\x1B[32m","\x1B[39m"),yellow:u("\x1B[33m","\x1B[39m"),blue:u("\x1B[34m","\x1B[39m"),magenta:u("\x1B[35m","\x1B[39m"),cyan:u("\x1B[36m","\x1B[39m"),white:u("\x1B[37m","\x1B[39m"),gray:u("\x1B[90m","\x1B[39m"),bgBlack:u("\x1B[40m","\x1B[49m"),bgRed:u("\x1B[41m","\x1B[49m"),bgGreen:u("\x1B[42m","\x1B[49m"),bgYellow:u("\x1B[43m","\x1B[49m"),bgBlue:u("\x1B[44m","\x1B[49m"),bgMagenta:u("\x1B[45m","\x1B[49m"),bgCyan:u("\x1B[46m","\x1B[49m"),bgWhite:u("\x1B[47m","\x1B[49m"),blackBright:u("\x1B[90m","\x1B[39m"),redBright:u("\x1B[91m","\x1B[39m"),greenBright:u("\x1B[92m","\x1B[39m"),yellowBright:u("\x1B[93m","\x1B[39m"),blueBright:u("\x1B[94m","\x1B[39m"),magentaBright:u("\x1B[95m","\x1B[39m"),cyanBright:u("\x1B[96m","\x1B[39m"),whiteBright:u("\x1B[97m","\x1B[39m"),bgBlackBright:u("\x1B[100m","\x1B[49m"),bgRedBright:u("\x1B[101m","\x1B[49m"),bgGreenBright:u("\x1B[102m","\x1B[49m"),bgYellowBright:u("\x1B[103m","\x1B[49m"),bgBlueBright:u("\x1B[104m","\x1B[49m"),bgMagentaBright:u("\x1B[105m","\x1B[49m"),bgCyanBright:u("\x1B[106m","\x1B[49m"),bgWhiteBright:u("\x1B[107m","\x1B[49m")}};P.exports=J();P.exports.createColors=J});var d=Object.create(null),m=t=>globalThis.process?.env||import.meta.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(t?d:globalThis),p=new Proxy(d,{get(t,u){return m()[u]??d[u]},has(t,u){let e=m();return u in e||u in d},set(t,u,e){let s=m(!0);return s[u]=e,!0},deleteProperty(t,u){if(!u)return!1;let e=m(!0);return delete e[u],!0},ownKeys(){let t=m(!0);return Object.keys(t)}}),cD=typeof process<"u"&&process.env&&process.env.NODE_ENV||"",BD=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CLOUDFLARE_WORKERS","WORKERS_CI",{ci:!0}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}]];function pD(){if(globalThis.process?.env)for(let t of BD){let u=t[1]||t[0];if(globalThis.process?.env[u])return{name:t[0].toLowerCase(),...t[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}}var Y=pD(),nu=Y.name;function A(t){return t?t!=="false":!1}var R=globalThis.process?.platform||"",v=A(p.CI)||Y.ci!==!1,x=A(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY);var Eu=A(p.DEBUG),bD=cD==="test"||A(p.TEST);var au=A(p.MINIMAL)||v||bD||!x,AD=/^win/i.test(R),lu=/^linux/i.test(R),hu=/^darwin/i.test(R),cu=!A(p.NO_COLOR)&&(A(p.FORCE_COLOR)||(x||AD)&&p.TERM!=="dumb"||v),mD=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null,Bu=Number(mD?.split(".")[0])||null,gD=globalThis.process||Object.create(null),G={versions:{}},pu=new Proxy(gD,{get(t,u){if(u==="env")return p;if(u in t)return t[u];if(u in G)return G[u]}}),fD=globalThis.process?.release?.name==="node",dD=!!globalThis.Bun||!!globalThis.process?.versions?.bun,vD=!!globalThis.Deno,xD=!!globalThis.fastly,_D=!!globalThis.Netlify,wD=!!globalThis.EdgeRuntime,TD=globalThis.navigator?.userAgent==="Cloudflare-Workers",ID=[[_D,"netlify"],[wD,"edge-light"],[TD,"workerd"],[xD,"fastly"],[vD,"deno"],[dD,"bun"],[fD,"node"]];function OD(){let t=ID.find(u=>u[0]);if(t)return{name:t[1]}}var SD=OD(),bu=SD?.name||"";function gu(t){return B("cyan",t)}function fu(t){return B("magenta",t)}function du(t){return B("yellow",t)}function vu(t){return B("white",t)}var wu=yD();function yD(t){return B("inverse",`${K()}prisma dev${t?` ${t}`:""}${K()}`)}function K(t=1){return t<1?"":B("hidden","_".repeat(t))}var Ou=!v&&x;var h=U(H(),1),CD=U(X(),1);import{stdin as MD,stdout as WD}from"process";import*as S from"readline";import q from"readline";import{Writable as jD}from"stream";function VD({onlyFirst:t=!1}={}){let u=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(u,t?void 0:"g")}var UD=VD();function oD(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(UD,"")}function nD(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ED={exports:{}};(function(t){var u={};t.exports=u,u.eastAsianWidth=function(s){var r=s.charCodeAt(0),i=s.length==2?s.charCodeAt(1):0,D=r;return 55296<=r&&r<=56319&&56320<=i&&i<=57343&&(r&=1023,i&=1023,D=r<<10|i,D+=65536),D==12288||65281<=D&&D<=65376||65504<=D&&D<=65510?"F":D==8361||65377<=D&&D<=65470||65474<=D&&D<=65479||65482<=D&&D<=65487||65490<=D&&D<=65495||65498<=D&&D<=65500||65512<=D&&D<=65518?"H":4352<=D&&D<=4447||4515<=D&&D<=4519||4602<=D&&D<=4607||9001<=D&&D<=9002||11904<=D&&D<=11929||11931<=D&&D<=12019||12032<=D&&D<=12245||12272<=D&&D<=12283||12289<=D&&D<=12350||12353<=D&&D<=12438||12441<=D&&D<=12543||12549<=D&&D<=12589||12593<=D&&D<=12686||12688<=D&&D<=12730||12736<=D&&D<=12771||12784<=D&&D<=12830||12832<=D&&D<=12871||12880<=D&&D<=13054||13056<=D&&D<=19903||19968<=D&&D<=42124||42128<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||55216<=D&&D<=55238||55243<=D&&D<=55291||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65106||65108<=D&&D<=65126||65128<=D&&D<=65131||110592<=D&&D<=110593||127488<=D&&D<=127490||127504<=D&&D<=127546||127552<=D&&D<=127560||127568<=D&&D<=127569||131072<=D&&D<=194367||177984<=D&&D<=196605||196608<=D&&D<=262141?"W":32<=D&&D<=126||162<=D&&D<=163||165<=D&&D<=166||D==172||D==175||10214<=D&&D<=10221||10629<=D&&D<=10630?"Na":D==161||D==164||167<=D&&D<=168||D==170||173<=D&&D<=174||176<=D&&D<=180||182<=D&&D<=186||188<=D&&D<=191||D==198||D==208||215<=D&&D<=216||222<=D&&D<=225||D==230||232<=D&&D<=234||236<=D&&D<=237||D==240||242<=D&&D<=243||247<=D&&D<=250||D==252||D==254||D==257||D==273||D==275||D==283||294<=D&&D<=295||D==299||305<=D&&D<=307||D==312||319<=D&&D<=322||D==324||328<=D&&D<=331||D==333||338<=D&&D<=339||358<=D&&D<=359||D==363||D==462||D==464||D==466||D==468||D==470||D==472||D==474||D==476||D==593||D==609||D==708||D==711||713<=D&&D<=715||D==717||D==720||728<=D&&D<=731||D==733||D==735||768<=D&&D<=879||913<=D&&D<=929||931<=D&&D<=937||945<=D&&D<=961||963<=D&&D<=969||D==1025||1040<=D&&D<=1103||D==1105||D==8208||8211<=D&&D<=8214||8216<=D&&D<=8217||8220<=D&&D<=8221||8224<=D&&D<=8226||8228<=D&&D<=8231||D==8240||8242<=D&&D<=8243||D==8245||D==8251||D==8254||D==8308||D==8319||8321<=D&&D<=8324||D==8364||D==8451||D==8453||D==8457||D==8467||D==8470||8481<=D&&D<=8482||D==8486||D==8491||8531<=D&&D<=8532||8539<=D&&D<=8542||8544<=D&&D<=8555||8560<=D&&D<=8569||D==8585||8592<=D&&D<=8601||8632<=D&&D<=8633||D==8658||D==8660||D==8679||D==8704||8706<=D&&D<=8707||8711<=D&&D<=8712||D==8715||D==8719||D==8721||D==8725||D==8730||8733<=D&&D<=8736||D==8739||D==8741||8743<=D&&D<=8748||D==8750||8756<=D&&D<=8759||8764<=D&&D<=8765||D==8776||D==8780||D==8786||8800<=D&&D<=8801||8804<=D&&D<=8807||8810<=D&&D<=8811||8814<=D&&D<=8815||8834<=D&&D<=8835||8838<=D&&D<=8839||D==8853||D==8857||D==8869||D==8895||D==8978||9312<=D&&D<=9449||9451<=D&&D<=9547||9552<=D&&D<=9587||9600<=D&&D<=9615||9618<=D&&D<=9621||9632<=D&&D<=9633||9635<=D&&D<=9641||9650<=D&&D<=9651||9654<=D&&D<=9655||9660<=D&&D<=9661||9664<=D&&D<=9665||9670<=D&&D<=9672||D==9675||9678<=D&&D<=9681||9698<=D&&D<=9701||D==9711||9733<=D&&D<=9734||D==9737||9742<=D&&D<=9743||9748<=D&&D<=9749||D==9756||D==9758||D==9792||D==9794||9824<=D&&D<=9825||9827<=D&&D<=9829||9831<=D&&D<=9834||9836<=D&&D<=9837||D==9839||9886<=D&&D<=9887||9918<=D&&D<=9919||9924<=D&&D<=9933||9935<=D&&D<=9953||D==9955||9960<=D&&D<=9983||D==10045||D==10071||10102<=D&&D<=10111||11093<=D&&D<=11097||12872<=D&&D<=12879||57344<=D&&D<=63743||65024<=D&&D<=65039||D==65533||127232<=D&&D<=127242||127248<=D&&D<=127277||127280<=D&&D<=127337||127344<=D&&D<=127386||917760<=D&&D<=917999||983040<=D&&D<=1048573||1048576<=D&&D<=1114109?"A":"N"},u.characterLength=function(s){var r=this.eastAsianWidth(s);return r=="F"||r=="W"||r=="A"?2:1};function e(s){return s.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}u.length=function(s){for(var r=e(s),i=0,D=0;D<r.length;D++)i=i+this.characterLength(r[D]);return i},u.slice=function(s,r,i){textLen=u.length(s),r=r||0,i=i||1,r<0&&(r=textLen+r),i<0&&(i=textLen+i);for(var D="",F=0,a=e(s),n=0;n<a.length;n++){var c=a[n],E=u.length(c);if(F>=r-(E==2?1:0))if(F+E<=i)D+=c;else break;F+=E}return D}})(ED);var GD=ED.exports,YD=nD(GD),KD=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},zD=nD(KD);function g(t,u={}){if(typeof t!="string"||t.length===0||(u={ambiguousIsNarrow:!0,...u},t=oD(t),t.length===0))return 0;t=t.replace(zD()," ");let e=u.ambiguousIsNarrow?1:2,s=0;for(let r of t){let i=r.codePointAt(0);if(!(i<=31||i>=127&&i<=159||i>=768&&i<=879))switch(YD.eastAsianWidth(r)){case"F":case"W":s+=2;break;case"A":s+=e;break;default:s+=1}}return s}var N=10,Q=(t=0)=>u=>`\x1B[${u+t}m`,DD=(t=0)=>u=>`\x1B[${38+t};5;${u}m`,uD=(t=0)=>(u,e,s)=>`\x1B[${38+t};2;${u};${e};${s}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);var HD=Object.keys(C.color),ZD=Object.keys(C.bgColor);[...HD,...ZD];function JD(){let t=new Map;for(let[u,e]of Object.entries(C)){for(let[s,r]of Object.entries(e))C[s]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[s]=C[s],t.set(r[0],r[1]);Object.defineProperty(C,u,{value:e,enumerable:!1})}return Object.defineProperty(C,"codes",{value:t,enumerable:!1}),C.color.close="\x1B[39m",C.bgColor.close="\x1B[49m",C.color.ansi=Q(),C.color.ansi256=DD(),C.color.ansi16m=uD(),C.bgColor.ansi=Q(N),C.bgColor.ansi256=DD(N),C.bgColor.ansi16m=uD(N),Object.defineProperties(C,{rgbToAnsi256:{value:(u,e,s)=>u===e&&e===s?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(e/255*5)+Math.round(s/255*5),enumerable:!1},hexToRgb:{value:u=>{let e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!e)return[0,0,0];let[s]=e;s.length===3&&(s=[...s].map(i=>i+i).join(""));let r=Number.parseInt(s,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:u=>C.rgbToAnsi256(...C.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value:u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let e,s,r;if(u>=232)e=((u-232)*10+8)/255,s=e,r=e;else{u-=16;let F=u%36;e=Math.floor(u/36)/5,s=Math.floor(F/6)/5,r=F%6/5}let i=Math.max(e,s,r)*2;if(i===0)return 30;let D=30+(Math.round(r)<<2|Math.round(s)<<1|Math.round(e));return i===2&&(D+=60),D},enumerable:!1},rgbToAnsi:{value:(u,e,s)=>C.ansi256ToAnsi(C.rgbToAnsi256(u,e,s)),enumerable:!1},hexToAnsi:{value:u=>C.ansi256ToAnsi(C.hexToAnsi256(u)),enumerable:!1}}),C}var XD=JD(),y=new Set(["\x1B","\x9B"]),qD=39,W="\x07",aD="[",QD="]",lD="m",j=`${QD}8;;`,tD=t=>`${y.values().next().value}${aD}${t}${lD}`,eD=t=>`${y.values().next().value}${j}${t}${W}`,Du=t=>t.split(" ").map(u=>g(u)),k=(t,u,e)=>{let s=[...u],r=!1,i=!1,D=g(oD(t[t.length-1]));for(let[F,a]of s.entries()){let n=g(a);if(D+n<=e?t[t.length-1]+=a:(t.push(a),D=0),y.has(a)&&(r=!0,i=s.slice(F+1).join("").startsWith(j)),r){i?a===W&&(r=!1,i=!1):a===lD&&(r=!1);continue}D+=n,D===e&&F<s.length-1&&(t.push(""),D=0)}!D&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},uu=t=>{let u=t.split(" "),e=u.length;for(;e>0&&!(g(u[e-1])>0);)e--;return e===u.length?t:u.slice(0,e).join(" ")+u.slice(e).join("")},tu=(t,u,e={})=>{if(e.trim!==!1&&t.trim()==="")return"";let s="",r,i,D=Du(t),F=[""];for(let[n,c]of t.split(" ").entries()){e.trim!==!1&&(F[F.length-1]=F[F.length-1].trimStart());let E=g(F[F.length-1]);if(n!==0&&(E>=u&&(e.wordWrap===!1||e.trim===!1)&&(F.push(""),E=0),(E>0||e.trim===!1)&&(F[F.length-1]+=" ",E++)),e.hard&&D[n]>u){let b=u-E,f=1+Math.floor((D[n]-b-1)/u);Math.floor((D[n]-1)/u)<f&&F.push(""),k(F,c,u);continue}if(E+D[n]>u&&E>0&&D[n]>0){if(e.wordWrap===!1&&E<u){k(F,c,u);continue}F.push("")}if(E+D[n]>u&&e.wordWrap===!1){k(F,c,u);continue}F[F.length-1]+=c}e.trim!==!1&&(F=F.map(n=>uu(n)));let a=[...F.join(`
|
|
3
|
+
`)];for(let[n,c]of a.entries()){if(s+=c,y.has(c)){let{groups:b}=new RegExp(`(?:\\${aD}(?<code>\\d+)m|\\${j}(?<uri>.*)${W})`).exec(a.slice(n).join(""))||{groups:{}};if(b.code!==void 0){let f=Number.parseFloat(b.code);r=f===qD?void 0:f}else b.uri!==void 0&&(i=b.uri.length===0?void 0:b.uri)}let E=XD.codes.get(Number(r));a[n+1]===`
|
|
4
|
+
`?(i&&(s+=eD("")),r&&E&&(s+=tD(E))):c===`
|
|
5
|
+
`&&(r&&E&&(s+=tD(r)),i&&(s+=eD(i)))}return s};function sD(t,u,e){return String(t).normalize().replace(/\r\n/g,`
|
|
6
|
+
`).split(`
|
|
7
|
+
`).map(s=>tu(s,u,e)).join(`
|
|
8
|
+
`)}var eu=["up","down","left","right","space","enter","cancel"],I={actions:new Set(eu),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["","cancel"],["escape","cancel"]])};function hD(t,u){if(typeof t=="string")return I.aliases.get(t)===u;for(let e of t)if(e!==void 0&&hD(e,u))return!0;return!1}function su(t,u){if(t===u)return;let e=t.split(`
|
|
9
|
+
`),s=u.split(`
|
|
10
|
+
`),r=[];for(let i=0;i<Math.max(e.length,s.length);i++)e[i]!==s[i]&&r.push(i);return r}var Nu=globalThis.process.platform.startsWith("win"),M=Symbol("clack:cancel");function ku(t){return t===M}function T(t,u){let e=t;e.isTTY&&e.setRawMode(u)}var ru=Object.defineProperty,iu=(t,u,e)=>u in t?ru(t,u,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[u]=e,l=(t,u,e)=>(iu(t,typeof u!="symbol"?u+"":u,e),e),O=class{constructor(u,e=!0){l(this,"input"),l(this,"output"),l(this,"_abortSignal"),l(this,"rl"),l(this,"opts"),l(this,"_render"),l(this,"_track",!1),l(this,"_prevFrame",""),l(this,"_subscribers",new Map),l(this,"_cursor",0),l(this,"state","initial"),l(this,"error",""),l(this,"value");let{input:s=MD,output:r=WD,render:i,signal:D,...F}=u;this.opts=F,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=i.bind(this),this._track=e,this._abortSignal=D,this.input=s,this.output=r}unsubscribe(){this._subscribers.clear()}setSubscriber(u,e){let s=this._subscribers.get(u)??[];s.push(e),this._subscribers.set(u,s)}on(u,e){this.setSubscriber(u,{cb:e})}once(u,e){this.setSubscriber(u,{cb:e,once:!0})}emit(u,...e){let s=this._subscribers.get(u)??[],r=[];for(let i of s)i.cb(...e),i.once&&r.push(()=>s.splice(s.indexOf(i),1));for(let i of r)i()}prompt(){return new Promise((u,e)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),u(M);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}let s=new jD;s._write=(r,i,D)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),D()},this.input.pipe(s),this.rl=q.createInterface({input:this.input,output:s,tabSize:2,prompt:"",escapeCodeTimeout:50,terminal:!0}),q.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),T(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(h.cursor.show),this.output.off("resize",this.render),T(this.input,!1),u(this.value)}),this.once("cancel",()=>{this.output.write(h.cursor.show),this.output.off("resize",this.render),T(this.input,!1),u(M)})})}onKeypress(u,e){if(this.state==="error"&&(this.state="active"),e?.name&&(!this._track&&I.aliases.has(e.name)&&this.emit("cursor",I.aliases.get(e.name)),I.actions.has(e.name)&&this.emit("cursor",e.name)),u&&(u.toLowerCase()==="y"||u.toLowerCase()==="n")&&this.emit("confirm",u.toLowerCase()==="y"),u===" "&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),u&&this.emit("key",u.toLowerCase()),e?.name==="return"){if(this.opts.validate){let s=this.opts.validate(this.value);s&&(this.error=s instanceof Error?s.message:s,this.state="error",this.rl?.write(this.value))}this.state!=="error"&&(this.state="submit")}hD([u,e?.name,e?.sequence],"cancel")&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
|
|
11
|
+
`),T(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let u=sD(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
|
|
12
|
+
`).length-1;this.output.write(h.cursor.move(-999,u*-1))}render(){let u=sD(this._render(this)??"",process.stdout.columns,{hard:!0});if(u!==this._prevFrame){if(this.state==="initial")this.output.write(h.cursor.hide);else{let e=su(this._prevFrame,u);if(this.restoreCursor(),e&&e?.length===1){let s=e[0];this.output.write(h.cursor.move(0,s)),this.output.write(h.erase.lines(1));let r=u.split(`
|
|
13
|
+
`);this.output.write(r[s]),this._prevFrame=u,this.output.write(h.cursor.move(0,r.length-s-1));return}if(e&&e?.length>1){let s=e[0];this.output.write(h.cursor.move(0,s)),this.output.write(h.erase.down());let r=u.split(`
|
|
14
|
+
`).slice(s);this.output.write(r.join(`
|
|
15
|
+
`)),this._prevFrame=u;return}this.output.write(h.erase.down())}this.output.write(u),this.state==="initial"&&(this.state="active"),this._prevFrame=u}}};var Fu;Fu=new WeakMap;var Cu=Object.defineProperty,ou=(t,u,e)=>u in t?Cu(t,u,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[u]=e,rD=(t,u,e)=>(ou(t,typeof u!="symbol"?u+"":u,e),e),iD=class extends O{constructor(u){super(u,!1),rD(this,"options"),rD(this,"cursor",0),this.options=u.options;let e=this.options.map(({value:[s]})=>s?.toLowerCase());this.cursor=Math.max(e.indexOf(u.initialValue),0),this.on("key",s=>{if(!e.includes(s))return;let r=this.options.find(({value:[i]})=>i?.toLowerCase()===s);r&&(this.value=r.value,this.state="submit",this.emit("submit"))})}},FD=class extends O{get valueWithCursor(){if(this.state==="submit")return this.value;if(this.cursor>=this.value.length)return`${this.value}\u2588`;let u=this.value.slice(0,this.cursor),[e,...s]=this.value.slice(this.cursor);return`${u}${CD.default.inverse(e)}${s.join("")}`}get cursor(){return this._cursor}constructor(u){super(u),this.on("finalize",()=>{this.value||(this.value=u.defaultValue)})}};export{pu as a,gu as b,fu as c,du as d,vu as e,wu as f,yD as g,Ou as h,ku as i,iD as j,FD as k};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as x,b as n,c as v,e as h,f as b,h as S,i as w,j as C}from"./chunk-SZYQ5TDI.js";import{b as m,c as R,d}from"./chunk-4QNO2WQL.js";import{b as _}from"./chunk-M6TFCQLD.js";import{setTimeout as Gt}from"timers/promises";import c from"process";import{stripVTControlCharacters as Rt}from"util";var p={};_(p,{bgBlack:()=>rt,bgBlue:()=>st,bgBlueBright:()=>yt,bgCyan:()=>ct,bgCyanBright:()=>$t,bgGray:()=>lt,bgGreen:()=>nt,bgGreenBright:()=>vt,bgMagenta:()=>at,bgMagentaBright:()=>Pt,bgRed:()=>ot,bgRedBright:()=>bt,bgWhite:()=>pt,bgWhiteBright:()=>Tt,bgYellow:()=>it,bgYellowBright:()=>St,black:()=>F,blue:()=>z,blueBright:()=>dt,bold:()=>N,cyan:()=>Z,cyanBright:()=>ft,dim:()=>H,gray:()=>et,green:()=>V,greenBright:()=>ut,hidden:()=>j,inverse:()=>Q,italic:()=>k,magenta:()=>J,magentaBright:()=>gt,overline:()=>Y,red:()=>K,redBright:()=>ht,reset:()=>D,strikethrough:()=>q,underline:()=>W,white:()=>tt,whiteBright:()=>xt,yellow:()=>X,yellowBright:()=>mt});import L from"tty";var U=L?.WriteStream?.prototype?.hasColors?.()??!1,r=(e,t)=>{if(!U)return a=>a;let o=`\x1B[${e}m`,s=`\x1B[${t}m`;return a=>{let i=a+"",l=i.indexOf(s);if(l===-1)return o+i+s;let g=o,u=0;for(;l!==-1;)g+=i.slice(u,l)+o,u=l+s.length,l=i.indexOf(s,u);return g+=i.slice(u)+s,g}},D=r(0,0),N=r(1,22),H=r(2,22),k=r(3,23),W=r(4,24),Y=r(53,55),Q=r(7,27),j=r(8,28),q=r(9,29),F=r(30,39),K=r(31,39),V=r(32,39),X=r(33,39),z=r(34,39),J=r(35,39),Z=r(36,39),tt=r(37,39),et=r(90,39),rt=r(40,49),ot=r(41,49),nt=r(42,49),it=r(43,49),st=r(44,49),at=r(45,49),ct=r(46,49),pt=r(47,49),lt=r(100,49),ht=r(91,39),ut=r(92,39),mt=r(93,39),dt=r(94,39),gt=r(95,39),ft=r(96,39),xt=r(97,39),bt=r(101,49),vt=r(102,49),St=r(103,49),yt=r(104,49),Pt=r(105,49),$t=r(106,49),Tt=r(107,49);var f=c.platform!=="win32"||!!c.env.WT_SESSION||c.env.TERM_PROGRAM==="vscode",wt=e=>!!(e.isTTY&&c.env.TERM!=="dumb"&&!("CI"in c.env)),Ct=p.blue(f?"\u2139":"i"),Bt=p.green(f?"\u2714":"\u221A"),Ot=p.yellow(f?"\u26A0":"\u203C"),It=p.red(f?"\u2716":"\xD7"),Et={frames:f?["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]:["-","\\","|","/"],interval:80},y=class{#p;#l;#n=-1;#i;#r;#t;#s;#h=0;#o;#e;#d=0;#u=!1;constructor(t={}){let o=t.spinner??Et;this.#p=o.frames,this.#l=o.interval,this.#r=t.text??"",this.#t=t.stream??c.stderr,this.#s=t.color??"cyan",this.#e=wt(this.#t),this.#o=this.#S.bind(this)}start(t){return t&&(this.#r=t),this.isSpinning?this:(this.#u=!0,this.#f(),this.#c(),this.#b(),this.#e&&(this.#i=setInterval(()=>{this.#c()},this.#l)),this)}stop(t){return this.isSpinning?(this.#u=!1,this.#i&&(clearInterval(this.#i),this.#i=void 0),this.#x(),this.clear(),this.#v(),t&&this.#t.write(`${t}
|
|
3
|
+
`),this):this}#a(t,o){return this.stop(`${t} ${o??this.#r}`)}success(t){return this.#a(Bt,t)}error(t){return this.#a(It,t)}warning(t){return this.#a(Ot,t)}info(t){return this.#a(Ct,t)}get isSpinning(){return this.#u}get text(){return this.#r}set text(t){this.#r=t??"",this.#c()}get color(){return this.#s}set color(t){this.#s=t,this.#c()}clear(){if(!this.#e)return this;this.#t.cursorTo(0);for(let t=0;t<this.#h;t++)t>0&&this.#t.moveCursor(0,-1),this.#t.clearLine(1);return this.#h=0,this}#c(){let t=Date.now();(this.#n===-1||t-this.#d>=this.#l)&&(this.#n=++this.#n%this.#p.length,this.#d=t);let o=p[this.#s]??p.cyan,s=this.#p[this.#n],a=`${o(s)} ${this.#r}`;this.#e||(a+=`
|
|
4
|
+
`),this.clear(),this.#m(a),this.#e&&(this.#h=this.#g(a))}#m(t){this.#t.write(t)}#g(t){let o=this.#t.columns??80,s=Rt(t).split(`
|
|
5
|
+
`),a=0;for(let i of s)a+=Math.max(1,Math.ceil(i.length/o));return a}#f(){this.#e&&this.#m("\x1B[?25l")}#x(){this.#e&&this.#m("\x1B[?25h")}#b(){c.once("SIGINT",this.#o),c.once("SIGTERM",this.#o)}#v(){c.off("SIGINT",this.#o),c.off("SIGTERM",this.#o)}#S(t){this.isSpinning&&this.stop();let o=t==="SIGINT"?130:t==="SIGTERM"?143:1;c.exit(o)}};function P(e){return new y(e)}var At=[{value:"h",label:"print http url"},{value:"t",label:"print tcp urls"},{value:"q",label:"quit"}],$=6;function B(e){let t=new C({debug:e?.debug,options:At,render:Mt,signal:e?.abortSignal});return{clearPrompt(){x.stdout.moveCursor(0,-$),x.stdout.cursorTo(0),x.stdout.clearScreenDown()},prompt:t,respond:async o=>{if(w(o)||o==="q")return await e?.onQuit?.();await e?.onOption?.[o]?.()}}}function Mt(){let e=`${this.options.map(t=>`${m("inverse",` ${t.value} `)} ${t.label}`).join(" ")}`;return R(e,{style:{borderColor:"blackBright",borderStyle:"solid"},title:" \u25B3 press a key \u25B3 "})}function ie(e){let t=P();return{renderContent:_t,renderIntro:()=>Lt(e,t),renderOutro:()=>Promise.resolve(Ut(e)),spinner:t}}async function _t(e){let{abortSignal:t,debug:o,isClosed:s,onQuit:a,server:i,spinner:l}=e;if(l.success(` Great Success! \u{1F609}\u{1F44D}
|
|
6
|
+
|
|
7
|
+
Your ${b} server ${n(i.name)} is ready and listening on ports ${Dt([new URL(i.http.url).port,new URL(i.database.connectionString).port,new URL(i.shadowDatabase.connectionString).port])}.`),!S){d.log(O(i)),d.log(I(i));return}for(;!s();){let{clearPrompt:g,prompt:u,respond:M}=B({abortSignal:t,debug:o,onOption:{h:()=>d.log(O(i)),t:()=>d.log(I(i))},onQuit:a}),G=await u.prompt();g(),t.aborted||await M(G)}}async function Lt(e,t){t.start(` Starting ${b} server ${n(e)}...${`
|
|
8
|
+
`.repeat($+3)}`),S&&await Gt(250)}function Ut(e){d.log(`\u{1F44B} Buh Bye!
|
|
9
|
+
|
|
10
|
+
Your ${b} server ${n(e)} has been closed successfully.
|
|
11
|
+
`)}function O(e){return`\u{1F50C} To connect to your local Prisma Postgres database via HTTP + Prisma ORM
|
|
12
|
+
use the following connection string:
|
|
13
|
+
|
|
14
|
+
${A("\u{1F4C4} .env:")}
|
|
15
|
+
|
|
16
|
+
${T("DATABASE_URL",Nt(e.ppg.url))}
|
|
17
|
+
|
|
18
|
+
\u2728 The ${n("api_key")} above does not contain any sensitive information.`}function I(e){return`\u{1F50C} To connect to your local Prisma Postgres database via TCP + Prisma ORM
|
|
19
|
+
use the following connection strings:
|
|
20
|
+
|
|
21
|
+
${A("\u{1F4C4} .env:")}
|
|
22
|
+
|
|
23
|
+
${T("DATABASE_URL",E(e.database.prismaORMConnectionString))}
|
|
24
|
+
|
|
25
|
+
${T("SHADOW_DATABASE_URL",E(e.shadowDatabase.prismaORMConnectionString))}
|
|
26
|
+
|
|
27
|
+
\u{1F418} You can also use the TCP ${n("DATABASE_URL")} with the ${n("pg")} or ${n("postgres.js")} JavaScript drivers!
|
|
28
|
+
|
|
29
|
+
Set the maximum number of connections to ${n(1)}, connect timeout to ${n(0)} and
|
|
30
|
+
idle timeout to the smallest positive value supported.`}function Dt(e){if(e.length===0)return"";let t=[...e].map(Number).sort();return t.length>1&&t.every((o,s)=>s===0||o===t[s-1]+1)?`${n(t[0])}-${n(t.at(-1))}`:e.map(n).join(", ")}function T(e,t){return`${n(e)}="${t}"`}function Nt(e){return e=new URL(e),`${v(e.protocol)}//${n(e.hostname)}:${n(e.port)}${h(e.pathname)}${h(e.search)}`}function E(e){return e=new URL(e),`${v(e.protocol)}${h(`//${e.username}:${e.password}@`)}${n(e.hostname)}${h(":")}${n(e.port)}${h(e.pathname)}${h(e.search)}`}function A(e){return m("italic",m("dim",m("green",`# ${e}`)))}export{ie as a,O as b,I as c,Dt as d};
|
package/dist/index.js
CHANGED
|
@@ -1,34 +1,9 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as
|
|
2
|
+
import{a as R,d as E}from"./chunk-ZPUL6EAC.js";import{a as l,b as u,f as x}from"./chunk-SZYQ5TDI.js";import{a as y,d,e as P,f as C}from"./chunk-4QNO2WQL.js";import"./chunk-M6TFCQLD.js";import{unstable_startServer as H}from"@prisma/dev";function N(e){let o,r,t=new Promise((n,p)=>{o=n,r=p}),s=n=>{s=i=null,r(n),e?.onRejected?.(n),e?.onFulfilled?.()},i=n=>{i=s=null,o(n),e?.onResolved?.(n),e?.onFulfilled?.()};return{isFulfilled:()=>i===s,promise:t,reject:n=>s?.(n),resolve:n=>i?.(n)}}var I="0.10.0";var a={database:"db-port",server:"port",shadow_database:"shadow-db-port"},A={...C,[a.database]:{alias:"P",description:"Port number the database server will listen on.",required:!1,type:"string"},name:{alias:"n",default:"default",description:"Name of the server. Helps keep state isolated between different projects. Defaults to `default`.",required:!1,type:"string"},[a.server]:{alias:"p",description:"Main port number the Prisma Dev server will listen on.",required:!1,type:"string"},[a.shadow_database]:{description:"Port number the shadow database server will listen on.",required:!1,type:"string"}},j=/^[a-zA-Z0-9-_]+$/;function T(e){let{[a.server]:o,[a.database]:r,[a.shadow_database]:t,debug:s,name:i}=e.args,n=r?Number(r):void 0,p=o?Number(o):void 0,c=t?Number(t):void 0;return o&&Number.isNaN(p)?(console.error(`Invalid server port number provided. Please provide a valid port number in \`--${a.server}\`.`),process.exit(1)):r&&Number.isNaN(n)?(console.error(`Invalid database port number provided. Please provide a valid port number in \`--${a.database}\`.`),process.exit(1)):t&&Number.isNaN(c)?(console.error(`Invalid shadow database port number provided. Please provide a valid port number in \`--${a.shadow_database}\`.`),process.exit(1)):p!=null&&p===n?(console.error(`The server port and database port cannot be the same. Please provide different port numbers in \`--${a.server}\` and/or \`--${a.database}\`.`),process.exit(1)):n!=null&&n===c?(console.error(`The database port and shadow database port cannot be the same. Please provide different port numbers in \`--${a.database}\` and/or \`--${a.shadow_database}\`.`),process.exit(1)):p!=null&&p===c?(console.error(`The server port and shadow database port cannot be the same. Please provide different port numbers in \`--${a.server}\` and/or \`--${a.shadow_database}\`.`),process.exit(1)):j.test(i)?{databasePort:n,debug:s,name:i,serverPort:p,shadowDatabasePort:c}:(console.error("Invalid name provided. The name can only contain letters, numbers, dashes, and underscores. Please provide a valid name in `--name`."),process.exit(1))}import{PortNotAvailableError as F,ServerAlreadyRunningError as L}from"@prisma/dev";async function f(e,o,r){if(e instanceof L)try{let s=await e.server;if(!s)return await f("Something went wrong, try again!",o,r);o.warning(` Skipped! \u{1F60C}
|
|
3
3
|
|
|
4
|
-
Your ${
|
|
5
|
-
`.repeat($+3)}`),w&&await se(250)}function pe(e){f.log(`\u{1F44B} Buh Bye!
|
|
6
|
-
|
|
7
|
-
Your ${u} server ${s(e)} has been closed successfully.
|
|
8
|
-
`)}function L(e){return`\u{1F50C} To connect to your local Prisma Postgres database via HTTP + Prisma ORM
|
|
9
|
-
use the following connection string:
|
|
10
|
-
|
|
11
|
-
${H("\u{1F4C4} .env:")}
|
|
12
|
-
|
|
13
|
-
${T("DATABASE_URL",le(e.ppg.url))}
|
|
14
|
-
|
|
15
|
-
\u2728 The ${s("api_key")} above does not contain any sensitive information.`}function U(e){return`\u{1F50C} To connect to your local Prisma Postgres database via TCP + Prisma ORM
|
|
16
|
-
use the following connection strings:
|
|
17
|
-
|
|
18
|
-
${H("\u{1F4C4} .env:")}
|
|
19
|
-
|
|
20
|
-
${T("DATABASE_URL",j(e.database.prismaORMConnectionString))}
|
|
21
|
-
|
|
22
|
-
${T("SHADOW_DATABASE_URL",j(e.shadowDatabase.prismaORMConnectionString))}
|
|
23
|
-
|
|
24
|
-
\u{1F418} You can also use the TCP ${s("DATABASE_URL")} with the ${s("pg")} or ${s("postgres.js")} JavaScript drivers!
|
|
25
|
-
|
|
26
|
-
Set the maximum number of connections to ${s(1)}, connect timeout to ${s(0)} and
|
|
27
|
-
idle timeout to the smallest positive value supported.`}function x(e){if(e.length===0)return"";let r=[...e].map(Number).sort();return r.length>1&&r.every((o,t)=>t===0||o===r[t-1]+1)?`${s(r[0])}-${s(r.at(-1))}`:e.map(s).join(", ")}function T(e,r){return`${s(e)}="${r}"`}function le(e){return e=new URL(e),`${y(e.protocol)}//${s(e.hostname)}:${s(e.port)}${c(e.pathname)}${c(e.search)}`}function j(e){return e=new URL(e),`${y(e.protocol)}${c(`//${e.username}:${e.password}@`)}${s(e.hostname)}${c(":")}${s(e.port)}${c(e.pathname)}${c(e.search)}`}function H(e){return C("italic",C("dim",C("green",`# ${e}`)))}async function g(e,r,o){if(e instanceof ce)try{let i=await e.server;if(!i)return await g("Something went wrong, try again!",r,o);r.warning(` Skipped! \u{1F60C}
|
|
28
|
-
|
|
29
|
-
Your ${u} server ${s(i.name)} is already running and listening on ports ${x([i.port,i.databasePort,i.shadowDatabasePort])}.
|
|
4
|
+
Your ${x} server ${u(s.name)} is already running and listening on ports ${E([s.port,s.databasePort,s.shadowDatabasePort])}.
|
|
30
5
|
|
|
31
|
-
To start a different server, use the ${`${
|
|
32
|
-
`);return}catch(
|
|
6
|
+
To start a different server, use the ${`${u("-n")}/${u("--name")}`} flag with another name.
|
|
7
|
+
`);return}catch(s){return await f(s,o,r)}let{args:t}=r;throw d.error(e instanceof F?`Prisma Dev Error: port number \`${e.port}\` is already in use. Please pass a different port number in the \`--${t.port===String(e.port)?"port":t.databasePort===String(e.port)?"database":"shadow_database"}\` option.`:e),l.exitCode||=1,e}function _(e){l.on?.("uncaughtException",o=>{if("code"in o&&o.code==="ECONNRESET"){e?.debug&&d.error("uncaught ECONNRESET");return}e?.onError?.(o)})}function k(e){let o={shutdownAlreadyStarted:!1};l.once?.("SIGINT",O("SIGINT",e,o)),l.once?.("SIGTERM",O("SIGTERM",e,o))}function O(e,o,r){let{debug:t,onFailure:s,onSuccess:i,server:n}=o;return()=>{if(r.shutdownAlreadyStarted){t&&d.debug(`Received ${e} signal, ignoring.`);return}r.shutdownAlreadyStarted=!0,t&&d.debug(`${e} signal receieved.`),t&&d.log(`
|
|
33
8
|
Closing Prisma Dev...
|
|
34
|
-
`),
|
|
9
|
+
`),l.exitCode=e==="SIGINT"?130:143,n.close().then(()=>{t&&d.debug("Prisma Dev server closed."),e==="SIGINT"&&(l.exitCode=0),i()}).catch(s)}}var B={description:"Spin up a local Prisma Postgres database",name:"prisma dev",version:I},v="\v",b={args:A,meta:B,run:async e=>{let{subCommands:o}=e.cmd,r=o?e.rawArgs.find(m=>!m.startsWith("-")):void 0;if(r&&r!==v&&r in o)return;let{debug:t,name:s,serverPort:i,...n}=T(e),{renderContent:p,renderIntro:c,renderOutro:$,spinner:h}=R(s);try{let m=await U({...n,debug:t,name:s,port:i,renderIntro:c}),g=new AbortController,{isFulfilled:M,promise:G,reject:w,resolve:S}=N({onFulfilled:()=>g.abort()});k({debug:t,onFailure:w,onSuccess:S,server:m}),_({debug:t,onError:w}),await p({abortSignal:g.signal,debug:t,isClosed:M,onQuit:async()=>{await m.close(),S()},server:m,spinner:h}),await G,await $(),l.exitCode||=0}catch(m){await f(m,h,e)}},setup(e){e.args.debug&&(d.level=y.debug),d.options.formatOptions.date=!1},subCommands:{[v]:{},ls:()=>import("./list-URPVLN6C.js").then(e=>e.ListCommand),rm:()=>import("./remove-LXPTJUNN.js").then(e=>e.RemoveCommand),start:()=>import("./start-M7MH244V.js").then(e=>e.StartCommand),stop:()=>import("./stop-LEO7ZSSO.js").then(e=>e.StopCommand)}};async function U(e){let{renderIntro:o,...r}=e,[,t]=await Promise.allSettled([e.renderIntro(),H({...r,persistenceMode:"stateful"})]);if(t.status==="rejected")throw t.reason;return t.value}async function be(e,o){let[r]=e;r==="-v"&&(e[0]="--version"),r&&!(r in b.subCommands)&&r!=="--help"&&r!=="-h"&&r!=="--version"&&r!=="-v"&&e.unshift(v),await P(b,{rawArgs:e})}export{be as run};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{d as v,f as M}from"./chunk-4QNO2WQL.js";import"./chunk-M6TFCQLD.js";import{ServerState as I}from"@prisma/dev/internal/state";function u(i,t=i){return`\x1B]8;;${i.toString()}\x07${t.toString()}\x1B]8;;\x07`}function q(i){return typeof i=="object"&&i!==null}function B(i){return q(i)&&typeof i.length=="number"}function G(i){return Array.isArray(i)?i:i===void 0?[]:B(i)||i instanceof Set?Array.from(i):[i]}var h=G;var R=new WeakMap,A=new WeakMap,g=class{constructor(t,e){this.value=t,A.set(this,e)}set value(t){R.set(this,t)}get value(){let t=R.get(this),e=A.get(this);return e.get&&(t=e.get(t)),t===void 0?t="":t=String(t),t}},p=g;var W=class{constructor(t,e){this.list=[],this.load(t,e)}load(t,e){for(let n of h(t)){let r=new Map(e.list.map(s=>[s,new p(n[s.name],s)]));this.list.push(r)}}},$=W;var x=class{constructor(t){this.left=t.left,this.right=t.right}length(){return this.left.length+this.right.length}},E=x;var T=new WeakMap,b=class{constructor(t={}){this.name=t.name,this.width=t.width,this.maxWidth=t.maxWidth,this.minWidth=t.minWidth,this.noWrap=t.noWrap,this.break=t.break,this.contentWrappable=t.contentWrappable,this.contentWidth=t.contentWidth,this.minContentWidth=t.minContentWidth,this.padding=t.padding||{left:" ",right:" "},this.generatedWidth=null}set padding(t){T.set(this,new E(t))}get padding(){return T.get(this)}get wrappedContentWidth(){return Math.max(this.generatedWidth-this.padding.length(),0)}isResizable(){return!this.isFixed()}isFixed(){return this.width!==void 0||this.noWrap||!this.contentWrappable}generateWidth(){this.generatedWidth=this.width||this.contentWidth+this.padding.length()}generateMinWidth(){this.minWidth=this.minContentWidth+this.padding.length()}},w=b;var y=new WeakMap,k=class i{constructor(t){this.list=[];for(let e of h(t))this.add(e)}totalWidth(){return this.list.length?this.list.map(t=>t.generatedWidth).reduce((t,e)=>t+e):0}totalFixedWidth(){return this.getFixed().map(t=>t.generatedWidth).reduce((t,e)=>t+e,0)}get(t){return this.list.find(e=>e.name===t)}getResizable(){return this.list.filter(t=>t.isResizable())}getFixed(){return this.list.filter(t=>t.isFixed())}add(t){let e=t instanceof w?t:new w(t);return this.list.push(e),e}get maxWidth(){y.get(this)}set maxWidth(t){y.set(this,t)}autoSize(){let t=y.get(this);for(let n of this.list)n.generateWidth(),n.generateMinWidth();for(let n of this.list)n.maxWidth!==void 0&&n.generatedWidth>n.maxWidth&&(n.generatedWidth=n.maxWidth),n.minWidth!==void 0&&n.generatedWidth<n.minWidth&&(n.generatedWidth=n.minWidth);let e={total:this.totalWidth(),view:t,diff:this.totalWidth()-t,totalFixed:this.totalFixedWidth(),totalResizable:Math.max(t-this.totalFixedWidth(),0)};if(e.diff>0){let n=this.getResizable();for(let o of n)o.generatedWidth=Math.floor(e.totalResizable/n.length);let r=this.list.filter(o=>o.generatedWidth>o.contentWidth),s=this.list.filter(o=>o.generatedWidth<o.contentWidth),a=0;for(let o of r){let c=o.generatedWidth;o.generateWidth(),a+=c-o.generatedWidth}for(let o of s)o.generatedWidth+=Math.floor(a/s.length)}return this}static getColumns(t){let e=new i;for(let n of h(t))for(let r in n){let s=e.get(r);s||(s=e.add({name:r,contentWidth:0,minContentWidth:0}))}return e}},z=k;var m={chunk:/[^\s-]+?-\b|\S+|\s+|\r\n?|\n/g,ansiEscapeSequence:/\u001b.*?m/g},C=class{constructor(t="",e={}){this._lines=String(t).split(/\r\n|\n/g),this.options={eol:`
|
|
3
|
+
`,width:30,...e}}lines(){return this._lines.map(j,this).map(t=>t.match(m.chunk)||["~~empty~~"]).map(t=>this.options.break?t.map(N,this):t).map(t=>t.flat()).map(t=>t.reduce((e,n)=>{let r=e[e.length-1];return S(n).length+S(r).length>this.options.width?e.push(n):e[e.length-1]+=n,e},[""])).flat().map(j,this).filter(t=>t.trim()).map(t=>t.replace("~~empty~~",""))}wrap(){return this.lines().join(this.options.eol)}toString(){return this.wrap()}static wrap(t,e){return new this(t,e).wrap()}static lines(t,e){return new this(t,e).lines()}static isWrappable(t=""){let e=String(t).match(m.chunk);return e?e.length>1:!1}static getChunks(t){return t.match(m.chunk)||[]}};function j(i){return this.options.noTrim?i:i.trim()}function S(i){return i.replace(m.ansiEscapeSequence,"")}function N(i){if(S(i).length>this.options.width){let t=i.split(""),e,n=[];for(;(e=t.splice(0,this.options.width)).length;)n.push(e.join(""));return n}else return i}var d=C;var F=/\u001b.*?m/g;function f(i){return i.replace(F,"")}function U(i){return F.test(i)}function _(i){let t=i.map(e=>e.length);return Math.max(...t)}function V(i,t,e){let n=i.length-f(i).length;return i=i||"",(t.left||"")+i.padEnd(e-t.length()+n)+(t.right||"")}function H(i){return d.getChunks(i).reduce((e,n)=>Math.max(n.length,e),0)}function O(i){let e=i.reduce((n,r)=>{for(let s of Object.keys(r))n.includes(s)||n.push(s);return n},[]).filter(n=>!i.some(s=>{let a=s[n];return a!==void 0&&typeof a!="string"||typeof a=="string"&&/\S+/.test(a)}));return i.map(n=>{for(let r of e)delete n[r];return n})}function D(i={},t={}){let e=Object.assign({},i);return typeof e.padding=="object"?(e.padding.left===void 0&&(e.padding.left=t.padding.left),e.padding.right===void 0&&(e.padding.right=t.padding.right)):e.padding=t.padding,e.maxWidth===void 0&&(e.maxWidth=t.maxWidth),e.columns===void 0&&(e.columns=t.columns),e.eol===void 0&&(e.eol=t.eol),e}var L=class{constructor(t,e={}){let n={padding:{left:" ",right:" "},maxWidth:80,columns:[],eol:`
|
|
4
|
+
`};this.options=D(e,n),this.rows=null,this.columns=null,this.load(t)}load(t){let e=this.options;e.ignoreEmptyColumns&&(t=O(t)),this.columns=z.getColumns(t),this.columns.maxWidth=e.maxWidth;for(let n of this.columns.list)n.padding=e.padding,n.noWrap=e.noWrap,n.break=e.break,e.break&&(n.contentWrappable=!0);for(let n of e.columns){let r=this.columns.get(n.name);r&&(n.padding&&(r.padding.left=n.padding.left,r.padding.right=n.padding.right),r.width=n.width,r.maxWidth=n.maxWidth,r.minWidth=n.minWidth,r.noWrap=n.noWrap,r.break=n.break,n.break&&(r.contentWrappable=!0),r.get=n.get)}for(let n of h(t))for(let r in n){let s=this.columns.get(r),o=new p(n[r],s).value;U(o)&&(o=f(o)),o.length>s.contentWidth&&(s.contentWidth=o.length);let c=H(o);c>s.minContentWidth&&(s.minContentWidth=c),s.contentWrappable||(s.contentWrappable=d.isWrappable(o))}return this.columns.autoSize(),this.rows=new $(t,this.columns),this}getWrapped(){return this.columns.autoSize(),this.rows.list.map(t=>{let e=[];for(let[n,r]of t.entries())n.noWrap?e.push(r.value.split(/\r\n?|\n/)):e.push(d.lines(r.value,{width:n.wrappedContentWidth,break:n.break,noTrim:this.options.noTrim}));return e})}getLines(){let t=this.getWrapped(),e=[];return t.forEach(n=>{let r=_(n);for(let s=0;s<r;s++){let a=[];n.forEach(o=>{a.push(o[s]||"")}),e.push(a)}}),e}renderLines(){return this.getLines().map(e=>e.reduce((n,r,s)=>{let a=this.columns.list[s];return n+V(r,a.padding,a.generatedWidth)},""))}toString(){return this.renderLines().join(this.options.eol)+this.options.eol}},P=L;var J={...M},Q={description:"List available servers",name:"ls"},$t={args:J,meta:Q,run:async i=>{let t=await I.scan({debug:i.args.debug}),e=new P([{name:l("name"),status:l("status"),urls:l("urls")},...t.map(n=>({name:n.name,status:n.status,urls:X(n)}))]);v.log(e.toString())}};function l(i){return`\x1B[1m${i}\x1B[0m`}function X(i){if(i.status!=="running")return"";let t=Y(i),e=Z(i),n=tt(i);return[t?`${l("DATABASE_URL")}: ${t}`:null,e?`${l("TCP")}: ${e}`:null,n?`${l("Terminal")}: ${n}`:null].filter(Boolean).join(`
|
|
5
|
+
`)}function Y(i){let{url:t}=i.exports?.ppg||{};if(!t)return"";let e=new URL(t),n=e.searchParams.get("api_key");return e.searchParams.set("api_key",`${n.slice(0,4)}...${n.slice(-4)}`),u(t,e)}function Z(i){let{connectionString:t,prismaORMConnectionString:e}=i.exports?.database||{};if(!e&&!t)return"";let n=new URL(e||t);return u(n,`${n.protocol}//...@${n.host}/...`)}function tt(i){let{connectionString:t,terminalCommand:e}=i.exports?.database||{};if(!t||!e)return"";let n=new URL(t);return u(e,`...psql -h ${n.hostname} -p ${n.port} ...`)}export{$t as ListCommand};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import"./chunk-M6TFCQLD.js";import"util";import m,{stdin as iD,stdout as sD}from"process";import P from"readline";import{WriteStream as CD}from"tty";function nD(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _,L;function aD(){if(L)return _;L=1;let t="\x1B",u=`${t}[`,e="\x07",r={to(D,n){return n?`${u}${n+1};${D+1}H`:`${u}${D+1}G`},move(D,n){let s="";return D<0?s+=`${u}${-D}D`:D>0&&(s+=`${u}${D}C`),n<0?s+=`${u}${-n}A`:n>0&&(s+=`${u}${n}B`),s},up:(D=1)=>`${u}${D}A`,down:(D=1)=>`${u}${D}B`,forward:(D=1)=>`${u}${D}C`,backward:(D=1)=>`${u}${D}D`,nextLine:(D=1)=>`${u}E`.repeat(D),prevLine:(D=1)=>`${u}F`.repeat(D),left:`${u}G`,hide:`${u}?25l`,show:`${u}?25h`,save:`${t}7`,restore:`${t}8`},F={up:(D=1)=>`${u}S`.repeat(D),down:(D=1)=>`${u}T`.repeat(D)},C={screen:`${u}2J`,up:(D=1)=>`${u}1J`.repeat(D),down:(D=1)=>`${u}J`.repeat(D),line:`${u}2K`,lineEnd:`${u}K`,lineStart:`${u}1K`,lines(D){let n="";for(let s=0;s<D;s++)n+=this.line+(s<D-1?r.up():"");return D&&(n+=r.left),n}};return _={cursor:r,scroll:F,erase:C,beep:e},_}var b=aD(),$={exports:{}},N;function oD(){if(N)return $.exports;N=1;let t=process||{},u=t.argv||[],e=t.env||{},r=!(e.NO_COLOR||u.includes("--no-color"))&&(!!e.FORCE_COLOR||u.includes("--color")||t.platform==="win32"||(t.stdout||{}).isTTY&&e.TERM!=="dumb"||!!e.CI),F=(n,s,E=n)=>c=>{let a=""+c,h=a.indexOf(s,n.length);return~h?n+C(a,s,E,h)+s:n+a+s},C=(n,s,E,c)=>{let a="",h=0;do a+=n.substring(h,c)+E,h=c+s.length,c=n.indexOf(s,h);while(~c);return a+n.substring(h)},D=(n=r)=>{let s=n?F:()=>String;return{isColorSupported:n,reset:s("\x1B[0m","\x1B[0m"),bold:s("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:s("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:s("\x1B[3m","\x1B[23m"),underline:s("\x1B[4m","\x1B[24m"),inverse:s("\x1B[7m","\x1B[27m"),hidden:s("\x1B[8m","\x1B[28m"),strikethrough:s("\x1B[9m","\x1B[29m"),black:s("\x1B[30m","\x1B[39m"),red:s("\x1B[31m","\x1B[39m"),green:s("\x1B[32m","\x1B[39m"),yellow:s("\x1B[33m","\x1B[39m"),blue:s("\x1B[34m","\x1B[39m"),magenta:s("\x1B[35m","\x1B[39m"),cyan:s("\x1B[36m","\x1B[39m"),white:s("\x1B[37m","\x1B[39m"),gray:s("\x1B[90m","\x1B[39m"),bgBlack:s("\x1B[40m","\x1B[49m"),bgRed:s("\x1B[41m","\x1B[49m"),bgGreen:s("\x1B[42m","\x1B[49m"),bgYellow:s("\x1B[43m","\x1B[49m"),bgBlue:s("\x1B[44m","\x1B[49m"),bgMagenta:s("\x1B[45m","\x1B[49m"),bgCyan:s("\x1B[46m","\x1B[49m"),bgWhite:s("\x1B[47m","\x1B[49m"),blackBright:s("\x1B[90m","\x1B[39m"),redBright:s("\x1B[91m","\x1B[39m"),greenBright:s("\x1B[92m","\x1B[39m"),yellowBright:s("\x1B[93m","\x1B[39m"),blueBright:s("\x1B[94m","\x1B[39m"),magentaBright:s("\x1B[95m","\x1B[39m"),cyanBright:s("\x1B[96m","\x1B[39m"),whiteBright:s("\x1B[97m","\x1B[39m"),bgBlackBright:s("\x1B[100m","\x1B[49m"),bgRedBright:s("\x1B[101m","\x1B[49m"),bgGreenBright:s("\x1B[102m","\x1B[49m"),bgYellowBright:s("\x1B[103m","\x1B[49m"),bgBlueBright:s("\x1B[104m","\x1B[49m"),bgMagentaBright:s("\x1B[105m","\x1B[49m"),bgCyanBright:s("\x1B[106m","\x1B[49m"),bgWhiteBright:s("\x1B[107m","\x1B[49m")}};return $.exports=D(),$.exports.createColors=D,$.exports}var ED=oD(),i=nD(ED);function lD({onlyFirst:t=!1}={}){let u=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(u,t?void 0:"g")}var cD=lD();function X(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(cD,"")}function DD(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var uD={exports:{}};(function(t){var u={};t.exports=u,u.eastAsianWidth=function(r){var F=r.charCodeAt(0),C=r.length==2?r.charCodeAt(1):0,D=F;return 55296<=F&&F<=56319&&56320<=C&&C<=57343&&(F&=1023,C&=1023,D=F<<10|C,D+=65536),D==12288||65281<=D&&D<=65376||65504<=D&&D<=65510?"F":D==8361||65377<=D&&D<=65470||65474<=D&&D<=65479||65482<=D&&D<=65487||65490<=D&&D<=65495||65498<=D&&D<=65500||65512<=D&&D<=65518?"H":4352<=D&&D<=4447||4515<=D&&D<=4519||4602<=D&&D<=4607||9001<=D&&D<=9002||11904<=D&&D<=11929||11931<=D&&D<=12019||12032<=D&&D<=12245||12272<=D&&D<=12283||12289<=D&&D<=12350||12353<=D&&D<=12438||12441<=D&&D<=12543||12549<=D&&D<=12589||12593<=D&&D<=12686||12688<=D&&D<=12730||12736<=D&&D<=12771||12784<=D&&D<=12830||12832<=D&&D<=12871||12880<=D&&D<=13054||13056<=D&&D<=19903||19968<=D&&D<=42124||42128<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||55216<=D&&D<=55238||55243<=D&&D<=55291||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65106||65108<=D&&D<=65126||65128<=D&&D<=65131||110592<=D&&D<=110593||127488<=D&&D<=127490||127504<=D&&D<=127546||127552<=D&&D<=127560||127568<=D&&D<=127569||131072<=D&&D<=194367||177984<=D&&D<=196605||196608<=D&&D<=262141?"W":32<=D&&D<=126||162<=D&&D<=163||165<=D&&D<=166||D==172||D==175||10214<=D&&D<=10221||10629<=D&&D<=10630?"Na":D==161||D==164||167<=D&&D<=168||D==170||173<=D&&D<=174||176<=D&&D<=180||182<=D&&D<=186||188<=D&&D<=191||D==198||D==208||215<=D&&D<=216||222<=D&&D<=225||D==230||232<=D&&D<=234||236<=D&&D<=237||D==240||242<=D&&D<=243||247<=D&&D<=250||D==252||D==254||D==257||D==273||D==275||D==283||294<=D&&D<=295||D==299||305<=D&&D<=307||D==312||319<=D&&D<=322||D==324||328<=D&&D<=331||D==333||338<=D&&D<=339||358<=D&&D<=359||D==363||D==462||D==464||D==466||D==468||D==470||D==472||D==474||D==476||D==593||D==609||D==708||D==711||713<=D&&D<=715||D==717||D==720||728<=D&&D<=731||D==733||D==735||768<=D&&D<=879||913<=D&&D<=929||931<=D&&D<=937||945<=D&&D<=961||963<=D&&D<=969||D==1025||1040<=D&&D<=1103||D==1105||D==8208||8211<=D&&D<=8214||8216<=D&&D<=8217||8220<=D&&D<=8221||8224<=D&&D<=8226||8228<=D&&D<=8231||D==8240||8242<=D&&D<=8243||D==8245||D==8251||D==8254||D==8308||D==8319||8321<=D&&D<=8324||D==8364||D==8451||D==8453||D==8457||D==8467||D==8470||8481<=D&&D<=8482||D==8486||D==8491||8531<=D&&D<=8532||8539<=D&&D<=8542||8544<=D&&D<=8555||8560<=D&&D<=8569||D==8585||8592<=D&&D<=8601||8632<=D&&D<=8633||D==8658||D==8660||D==8679||D==8704||8706<=D&&D<=8707||8711<=D&&D<=8712||D==8715||D==8719||D==8721||D==8725||D==8730||8733<=D&&D<=8736||D==8739||D==8741||8743<=D&&D<=8748||D==8750||8756<=D&&D<=8759||8764<=D&&D<=8765||D==8776||D==8780||D==8786||8800<=D&&D<=8801||8804<=D&&D<=8807||8810<=D&&D<=8811||8814<=D&&D<=8815||8834<=D&&D<=8835||8838<=D&&D<=8839||D==8853||D==8857||D==8869||D==8895||D==8978||9312<=D&&D<=9449||9451<=D&&D<=9547||9552<=D&&D<=9587||9600<=D&&D<=9615||9618<=D&&D<=9621||9632<=D&&D<=9633||9635<=D&&D<=9641||9650<=D&&D<=9651||9654<=D&&D<=9655||9660<=D&&D<=9661||9664<=D&&D<=9665||9670<=D&&D<=9672||D==9675||9678<=D&&D<=9681||9698<=D&&D<=9701||D==9711||9733<=D&&D<=9734||D==9737||9742<=D&&D<=9743||9748<=D&&D<=9749||D==9756||D==9758||D==9792||D==9794||9824<=D&&D<=9825||9827<=D&&D<=9829||9831<=D&&D<=9834||9836<=D&&D<=9837||D==9839||9886<=D&&D<=9887||9918<=D&&D<=9919||9924<=D&&D<=9933||9935<=D&&D<=9953||D==9955||9960<=D&&D<=9983||D==10045||D==10071||10102<=D&&D<=10111||11093<=D&&D<=11097||12872<=D&&D<=12879||57344<=D&&D<=63743||65024<=D&&D<=65039||D==65533||127232<=D&&D<=127242||127248<=D&&D<=127277||127280<=D&&D<=127337||127344<=D&&D<=127386||917760<=D&&D<=917999||983040<=D&&D<=1048573||1048576<=D&&D<=1114109?"A":"N"},u.characterLength=function(r){var F=this.eastAsianWidth(r);return F=="F"||F=="W"||F=="A"?2:1};function e(r){return r.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}u.length=function(r){for(var F=e(r),C=0,D=0;D<F.length;D++)C=C+this.characterLength(F[D]);return C},u.slice=function(r,F,C){textLen=u.length(r),F=F||0,C=C||1,F<0&&(F=textLen+F),C<0&&(C=textLen+C);for(var D="",n=0,s=e(r),E=0;E<s.length;E++){var c=s[E],a=u.length(c);if(n>=F-(a==2?1:0))if(n+a<=C)D+=c;else break;n+=a}return D}})(uD);var hD=uD.exports,BD=DD(hD),mD=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},bD=DD(mD);function f(t,u={}){if(typeof t!="string"||t.length===0||(u={ambiguousIsNarrow:!0,...u},t=X(t),t.length===0))return 0;t=t.replace(bD()," ");let e=u.ambiguousIsNarrow?1:2,r=0;for(let F of t){let C=F.codePointAt(0);if(!(C<=31||C>=127&&C<=159||C>=768&&C<=879))switch(BD.eastAsianWidth(F)){case"F":case"W":r+=2;break;case"A":r+=e;break;default:r+=1}}return r}var k=10,q=(t=0)=>u=>`\x1B[${u+t}m`,z=(t=0)=>u=>`\x1B[${38+t};5;${u}m`,G=(t=0)=>(u,e,r)=>`\x1B[${38+t};2;${u};${e};${r}m`,l={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(l.modifier);var pD=Object.keys(l.color),gD=Object.keys(l.bgColor);[...pD,...gD];function AD(){let t=new Map;for(let[u,e]of Object.entries(l)){for(let[r,F]of Object.entries(e))l[r]={open:`\x1B[${F[0]}m`,close:`\x1B[${F[1]}m`},e[r]=l[r],t.set(F[0],F[1]);Object.defineProperty(l,u,{value:e,enumerable:!1})}return Object.defineProperty(l,"codes",{value:t,enumerable:!1}),l.color.close="\x1B[39m",l.bgColor.close="\x1B[49m",l.color.ansi=q(),l.color.ansi256=z(),l.color.ansi16m=G(),l.bgColor.ansi=q(k),l.bgColor.ansi256=z(k),l.bgColor.ansi16m=G(k),Object.defineProperties(l,{rgbToAnsi256:{value:(u,e,r)=>u===e&&e===r?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(e/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value:u=>{let e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!e)return[0,0,0];let[r]=e;r.length===3&&(r=[...r].map(C=>C+C).join(""));let F=Number.parseInt(r,16);return[F>>16&255,F>>8&255,F&255]},enumerable:!1},hexToAnsi256:{value:u=>l.rgbToAnsi256(...l.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value:u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let e,r,F;if(u>=232)e=((u-232)*10+8)/255,r=e,F=e;else{u-=16;let n=u%36;e=Math.floor(u/36)/5,r=Math.floor(n/6)/5,F=n%6/5}let C=Math.max(e,r,F)*2;if(C===0)return 30;let D=30+(Math.round(F)<<2|Math.round(r)<<1|Math.round(e));return C===2&&(D+=60),D},enumerable:!1},rgbToAnsi:{value:(u,e,r)=>l.ansi256ToAnsi(l.rgbToAnsi256(u,e,r)),enumerable:!1},hexToAnsi:{value:u=>l.ansi256ToAnsi(l.hexToAnsi256(u)),enumerable:!1}}),l}var dD=AD(),y=new Set(["\x1B","\x9B"]),fD=39,I="\x07",eD="[",$D="]",tD="m",W=`${$D}8;;`,K=t=>`${y.values().next().value}${eD}${t}${tD}`,Y=t=>`${y.values().next().value}${W}${t}${I}`,vD=t=>t.split(" ").map(u=>f(u)),M=(t,u,e)=>{let r=[...u],F=!1,C=!1,D=f(X(t[t.length-1]));for(let[n,s]of r.entries()){let E=f(s);if(D+E<=e?t[t.length-1]+=s:(t.push(s),D=0),y.has(s)&&(F=!0,C=r.slice(n+1).join("").startsWith(W)),F){C?s===I&&(F=!1,C=!1):s===tD&&(F=!1);continue}D+=E,D===e&&n<r.length-1&&(t.push(""),D=0)}!D&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},xD=t=>{let u=t.split(" "),e=u.length;for(;e>0&&!(f(u[e-1])>0);)e--;return e===u.length?t:u.slice(0,e).join(" ")+u.slice(e).join("")},yD=(t,u,e={})=>{if(e.trim!==!1&&t.trim()==="")return"";let r="",F,C,D=vD(t),n=[""];for(let[E,c]of t.split(" ").entries()){e.trim!==!1&&(n[n.length-1]=n[n.length-1].trimStart());let a=f(n[n.length-1]);if(E!==0&&(a>=u&&(e.wordWrap===!1||e.trim===!1)&&(n.push(""),a=0),(a>0||e.trim===!1)&&(n[n.length-1]+=" ",a++)),e.hard&&D[E]>u){let h=u-a,g=1+Math.floor((D[E]-h-1)/u);Math.floor((D[E]-1)/u)<g&&n.push(""),M(n,c,u);continue}if(a+D[E]>u&&a>0&&D[E]>0){if(e.wordWrap===!1&&a<u){M(n,c,u);continue}n.push("")}if(a+D[E]>u&&e.wordWrap===!1){M(n,c,u);continue}n[n.length-1]+=c}e.trim!==!1&&(n=n.map(E=>xD(E)));let s=[...n.join(`
|
|
3
|
+
`)];for(let[E,c]of s.entries()){if(r+=c,y.has(c)){let{groups:h}=new RegExp(`(?:\\${eD}(?<code>\\d+)m|\\${W}(?<uri>.*)${I})`).exec(s.slice(E).join(""))||{groups:{}};if(h.code!==void 0){let g=Number.parseFloat(h.code);F=g===fD?void 0:g}else h.uri!==void 0&&(C=h.uri.length===0?void 0:h.uri)}let a=dD.codes.get(Number(F));s[E+1]===`
|
|
4
|
+
`?(C&&(r+=Y("")),F&&a&&(r+=K(a))):c===`
|
|
5
|
+
`&&(F&&a&&(r+=K(F)),C&&(r+=Y(C)))}return r};function J(t,u,e){return String(t).normalize().replace(/\r\n/g,`
|
|
6
|
+
`).split(`
|
|
7
|
+
`).map(r=>yD(r,u,e)).join(`
|
|
8
|
+
`)}var wD=["up","down","left","right","space","enter","cancel"],x={actions:new Set(wD),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["","cancel"],["escape","cancel"]])};function rD(t,u){if(typeof t=="string")return x.aliases.get(t)===u;for(let e of t)if(e!==void 0&&rD(e,u))return!0;return!1}function _D(t,u){if(t===u)return;let e=t.split(`
|
|
9
|
+
`),r=u.split(`
|
|
10
|
+
`),F=[];for(let C=0;C<Math.max(e.length,r.length);C++)e[C]!==r[C]&&F.push(C);return F}globalThis.process.platform.startsWith("win");var U=Symbol("clack:cancel");function v(t,u){let e=t;e.isTTY&&e.setRawMode(u)}var kD=Object.defineProperty,MD=(t,u,e)=>u in t?kD(t,u,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[u]=e,B=(t,u,e)=>(MD(t,typeof u!="symbol"?u+"":u,e),e),A=class{constructor(u,e=!0){B(this,"input"),B(this,"output"),B(this,"_abortSignal"),B(this,"rl"),B(this,"opts"),B(this,"_render"),B(this,"_track",!1),B(this,"_prevFrame",""),B(this,"_subscribers",new Map),B(this,"_cursor",0),B(this,"state","initial"),B(this,"error",""),B(this,"value");let{input:r=iD,output:F=sD,render:C,signal:D,...n}=u;this.opts=n,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=C.bind(this),this._track=e,this._abortSignal=D,this.input=r,this.output=F}unsubscribe(){this._subscribers.clear()}setSubscriber(u,e){let r=this._subscribers.get(u)??[];r.push(e),this._subscribers.set(u,r)}on(u,e){this.setSubscriber(u,{cb:e})}once(u,e){this.setSubscriber(u,{cb:e,once:!0})}emit(u,...e){let r=this._subscribers.get(u)??[],F=[];for(let C of r)C.cb(...e),C.once&&F.push(()=>r.splice(r.indexOf(C),1));for(let C of F)C()}prompt(){return new Promise((u,e)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),u(U);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}let r=new CD(0);r._write=(F,C,D)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),D()},this.input.pipe(r),this.rl=P.createInterface({input:this.input,output:r,tabSize:2,prompt:"",escapeCodeTimeout:50}),P.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),v(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(b.cursor.show),this.output.off("resize",this.render),v(this.input,!1),u(this.value)}),this.once("cancel",()=>{this.output.write(b.cursor.show),this.output.off("resize",this.render),v(this.input,!1),u(U)})})}onKeypress(u,e){if(this.state==="error"&&(this.state="active"),e?.name&&(!this._track&&x.aliases.has(e.name)&&this.emit("cursor",x.aliases.get(e.name)),x.actions.has(e.name)&&this.emit("cursor",e.name)),u&&(u.toLowerCase()==="y"||u.toLowerCase()==="n")&&this.emit("confirm",u.toLowerCase()==="y"),u===" "&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),u&&this.emit("key",u.toLowerCase()),e?.name==="return"){if(this.opts.validate){let r=this.opts.validate(this.value);r&&(this.error=r instanceof Error?r.message:r,this.state="error",this.rl?.write(this.value))}this.state!=="error"&&(this.state="submit")}rD([u,e?.name,e?.sequence],"cancel")&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
|
|
11
|
+
`),v(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let u=J(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
|
|
12
|
+
`).length-1;this.output.write(b.cursor.move(-999,u*-1))}render(){let u=J(this._render(this)??"",process.stdout.columns,{hard:!0});if(u!==this._prevFrame){if(this.state==="initial")this.output.write(b.cursor.hide);else{let e=_D(this._prevFrame,u);if(this.restoreCursor(),e&&e?.length===1){let r=e[0];this.output.write(b.cursor.move(0,r)),this.output.write(b.erase.lines(1));let F=u.split(`
|
|
13
|
+
`);this.output.write(F[r]),this._prevFrame=u,this.output.write(b.cursor.move(0,F.length-r-1));return}if(e&&e?.length>1){let r=e[0];this.output.write(b.cursor.move(0,r)),this.output.write(b.erase.down());let F=u.split(`
|
|
14
|
+
`).slice(r);this.output.write(F.join(`
|
|
15
|
+
`)),this._prevFrame=u;return}this.output.write(b.erase.down())}this.output.write(u),this.state==="initial"&&(this.state="active"),this._prevFrame=u}}},S=class extends A{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(u){super(u,!1),this.value=!!u.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",e=>{this.output.write(b.cursor.move(0,-1)),this.value=e,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}},SD=Object.defineProperty,TD=(t,u,e)=>u in t?SD(t,u,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[u]=e,Z=(t,u,e)=>(TD(t,typeof u!="symbol"?u+"":u,e),e),jD=class extends A{constructor(t){super(t,!1),Z(this,"options"),Z(this,"cursor",0),this.options=t.options,this.value=[...t.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:u})=>u===t.cursorAt),0),this.on("key",u=>{u==="a"&&this.toggleAll()}),this.on("cursor",u=>{switch(u){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break;case"space":this.toggleValue();break}})}get _value(){return this.options[this.cursor].value}toggleAll(){let t=this.value.length===this.options.length;this.value=t?[]:this.options.map(u=>u.value)}toggleValue(){let t=this.value.includes(this._value);this.value=t?this.value.filter(u=>u!==this._value):[...this.value,this._value]}},OD=Object.defineProperty,RD=(t,u,e)=>u in t?OD(t,u,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[u]=e,H=(t,u,e)=>(RD(t,typeof u!="symbol"?u+"":u,e),e),T=class extends A{constructor(u){super(u,!1),H(this,"options"),H(this,"cursor",0),this.options=u.options,this.cursor=this.options.findIndex(({value:e})=>e===u.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on("cursor",e=>{switch(e){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}},j=class extends A{get valueWithCursor(){if(this.state==="submit")return this.value;if(this.cursor>=this.value.length)return`${this.value}\u2588`;let u=this.value.slice(0,this.cursor),[e,...r]=this.value.slice(this.cursor);return`${u}${i.inverse(e)}${r.join("")}`}get cursor(){return this._cursor}constructor(u){super(u),this.on("finalize",()=>{this.value||(this.value=u.defaultValue)})}};function VD(){return m.platform!=="win32"?m.env.TERM!=="linux":!!m.env.CI||!!m.env.WT_SESSION||!!m.env.TERMINUS_SUBLIME||m.env.ConEmuTask==="{cmd::Cmder}"||m.env.TERM_PROGRAM==="Terminus-Sublime"||m.env.TERM_PROGRAM==="vscode"||m.env.TERM==="xterm-256color"||m.env.TERM==="alacritty"||m.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var ID=VD(),p=(t,u)=>ID?t:u,WD=p("\u276F",">"),PD=p("\u25A0","x"),LD=p("\u25B2","x"),ND=p("\u2714","\u221A"),o=p(""),d=p(""),O=p("\u25CF",">"),R=p("\u25CB"," "),qD=p("\u25FB","[\u2022]"),Q=p("\u25FC","[+]"),zD=p("\u25FB","[ ]"),w=t=>{switch(t){case"initial":case"active":return i.cyan(WD);case"cancel":return i.red(PD);case"error":return i.yellow(LD);case"submit":return i.green(ND)}},V=t=>{let{cursor:u,options:e,style:r}=t,F=t.maxItems??Number.POSITIVE_INFINITY,C=Math.max(process.stdout.rows-4,0),D=Math.min(C,Math.max(F,5)),n=0;u>=n+D-3?n=Math.max(Math.min(u-D+3,e.length-D),0):u<n+2&&(n=Math.max(u-2,0));let s=D<e.length&&n>0,E=D<e.length&&n+D<e.length;return e.slice(n,n+D).map((c,a,h)=>{let g=a===0&&s,FD=a===h.length-1&&E;return g||FD?i.dim("..."):r(c,a+n===u)})},GD=t=>new j({validate:t.validate,placeholder:t.placeholder,defaultValue:t.defaultValue,initialValue:t.initialValue,render(){let u=`${i.gray(o)}
|
|
16
|
+
${w(this.state)} ${t.message}
|
|
17
|
+
`,e=t.placeholder?i.inverse(t.placeholder[0])+i.dim(t.placeholder.slice(1)):i.inverse(i.hidden("_")),r=this.value?this.valueWithCursor:e;switch(this.state){case"error":return`${u.trim()}
|
|
18
|
+
${i.yellow(o)} ${r}
|
|
19
|
+
${i.yellow(d)} ${i.yellow(this.error)}
|
|
20
|
+
`;case"submit":return`${u}${i.gray(o)} ${i.dim(this.value||t.placeholder)}`;case"cancel":return`${u}${i.gray(o)} ${i.strikethrough(i.dim(this.value??""))}${this.value?.trim()?`
|
|
21
|
+
${i.gray(o)}`:""}`;default:return`${u}${i.cyan(o)} ${r}
|
|
22
|
+
${i.cyan(d)}
|
|
23
|
+
`}}}).prompt(),KD=t=>{let u=t.active??"Yes",e=t.inactive??"No";return new S({active:u,inactive:e,initialValue:t.initialValue??!0,render(){let r=`${i.gray(o)}
|
|
24
|
+
${w(this.state)} ${t.message}
|
|
25
|
+
`,F=this.value?u:e;switch(this.state){case"submit":return`${r}${i.gray(o)} ${i.dim(F)}`;case"cancel":return`${r}${i.gray(o)} ${i.strikethrough(i.dim(F))}
|
|
26
|
+
${i.gray(o)}`;default:return`${r}${i.cyan(o)} ${this.value?`${i.green(O)} ${u}`:`${i.dim(R)} ${i.dim(u)}`} ${i.dim("/")} ${this.value?`${i.dim(R)} ${i.dim(e)}`:`${i.green(O)} ${e}`}
|
|
27
|
+
${i.cyan(d)}
|
|
28
|
+
`}}}).prompt()},YD=t=>{let u=(e,r)=>{let F=e.label??String(e.value);switch(r){case"selected":return`${i.dim(F)}`;case"active":return`${i.green(O)} ${F} ${e.hint?i.dim(`(${e.hint})`):""}`;case"cancelled":return`${i.strikethrough(i.dim(F))}`;default:return`${i.dim(R)} ${i.dim(F)}`}};return new T({options:t.options,initialValue:t.initialValue,render(){let e=`${i.gray(o)}
|
|
29
|
+
${w(this.state)} ${t.message}
|
|
30
|
+
`;switch(this.state){case"submit":return`${e}${i.gray(o)} ${u(this.options[this.cursor],"selected")}`;case"cancel":return`${e}${i.gray(o)} ${u(this.options[this.cursor],"cancelled")}
|
|
31
|
+
${i.gray(o)}`;default:return`${e}${i.cyan(o)} ${V({cursor:this.cursor,options:this.options,maxItems:t.maxItems,style:(r,F)=>u(r,F?"active":"inactive")}).join(`
|
|
32
|
+
${i.cyan(o)} `)}
|
|
33
|
+
${i.cyan(d)}
|
|
34
|
+
`}}}).prompt()},JD=t=>{let u=(e,r)=>{let F=e.label??String(e.value);return r==="active"?`${i.cyan(qD)} ${F} ${e.hint?i.dim(`(${e.hint})`):""}`:r==="selected"?`${i.green(Q)} ${i.dim(F)}`:r==="cancelled"?`${i.strikethrough(i.dim(F))}`:r==="active-selected"?`${i.green(Q)} ${F} ${e.hint?i.dim(`(${e.hint})`):""}`:r==="submitted"?`${i.dim(F)}`:`${i.dim(zD)} ${i.dim(F)}`};return new jD({options:t.options,initialValues:t.initialValues,required:t.required??!0,cursorAt:t.cursorAt,validate(e){if(this.required&&e.length===0)return`Please select at least one option.
|
|
35
|
+
${i.reset(i.dim(`Press ${i.gray(i.bgWhite(i.inverse(" space ")))} to select, ${i.gray(i.bgWhite(i.inverse(" enter ")))} to submit`))}`},render(){let e=`${i.gray(o)}
|
|
36
|
+
${w(this.state)} ${t.message}
|
|
37
|
+
`,r=(F,C)=>{let D=this.value.includes(F.value);return C&&D?u(F,"active-selected"):D?u(F,"selected"):u(F,C?"active":"inactive")};switch(this.state){case"submit":return`${e}${i.gray(o)} ${this.options.filter(({value:F})=>this.value.includes(F)).map(F=>u(F,"submitted")).join(i.dim(", "))||i.dim("none")}`;case"cancel":{let F=this.options.filter(({value:C})=>this.value.includes(C)).map(C=>u(C,"cancelled")).join(i.dim(", "));return`${e}${i.gray(o)} ${F.trim()?`${F}
|
|
38
|
+
${i.gray(o)}`:""}`}case"error":{let F=this.error.split(`
|
|
39
|
+
`).map((C,D)=>D===0?`${i.yellow(d)} ${i.yellow(C)}`:` ${C}`).join(`
|
|
40
|
+
`);return`${e+i.yellow(o)} ${V({options:this.options,cursor:this.cursor,maxItems:t.maxItems,style:r}).join(`
|
|
41
|
+
${i.yellow(o)} `)}
|
|
42
|
+
${F}
|
|
43
|
+
`}default:return`${e}${i.cyan(o)} ${V({options:this.options,cursor:this.cursor,maxItems:t.maxItems,style:r}).join(`
|
|
44
|
+
${i.cyan(o)} `)}
|
|
45
|
+
${i.cyan(d)}
|
|
46
|
+
`}}}).prompt()};`${i.gray(o)}`;var UD=Symbol.for("cancel");async function ZD(t,u={}){let e=r=>{if(typeof r!="symbol"||r.toString()!=="Symbol(clack:cancel)")return r;switch(u.cancel){case"reject":{let F=new Error("Prompt cancelled.");throw F.name="ConsolaPromptCancelledError",Error.captureStackTrace&&Error.captureStackTrace(F,ZD),F}case"undefined":return;case"null":return null;case"symbol":return UD;default:case"default":return u.default??u.initial}};if(!u.type||u.type==="text")return await GD({message:t,defaultValue:u.default,placeholder:u.placeholder,initialValue:u.initial}).then(e);if(u.type==="confirm")return await KD({message:t,initialValue:u.initial}).then(e);if(u.type==="select")return await YD({message:t,options:u.options.map(r=>typeof r=="string"?{value:r,label:r}:r),initialValue:u.initial}).then(e);if(u.type==="multiselect")return await JD({message:t,options:u.options.map(r=>typeof r=="string"?{value:r,label:r}:r),required:u.required,initialValues:u.initial}).then(e);throw new Error(`Unknown prompt type: ${u.type}`)}export{UD as kCancel,ZD as prompt};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as d}from"./chunk-OE4BCZ2F.js";import{a as n}from"./chunk-FON2L4R6.js";import{a as s,b as l,c as f,f as r}from"./chunk-SZYQ5TDI.js";import{d as e,f as m}from"./chunk-4QNO2WQL.js";import"./chunk-M6TFCQLD.js";import{deleteServer as u,isServerRunning as c,ServerState as C}from"@prisma/dev/internal/state";var y={...m,force:{default:!1,description:"Stops any running servers before removing them. Default is `false`, which would fail the command if any server is running.",required:!1,type:"boolean"},name:{description:"Name(s)/pattern(s) of the server(s) to remove",required:!0,type:"positional",valueHint:"glob"}},S={description:"Remove servers",name:"rm"},E={args:y,meta:S,run:async i=>{let{debug:a,force:p,name:g}=i.args,v=g.split(","),o=await C.scan({debug:a,globs:v});if(o.length===0)return e.log(`\u26A0\uFE0F No ${r} servers found to remove.
|
|
3
|
+
`);if(!p&&o.some(c)){e.log(`\u{1F6AB} Some ${r} servers are currently running:
|
|
4
|
+
|
|
5
|
+
${n(o.filter(c))}
|
|
6
|
+
|
|
7
|
+
Use the ${f("--force")} flag to stop and remove them.`),s.exitCode||=1;return}if(e.log(`\u{1F5D1}\uFE0F Removing the following ${r} servers:
|
|
8
|
+
|
|
9
|
+
${n(o)}`),!await d({confirmationText:"i will lose local data",debug:i.args.debug}))return;(await Promise.allSettled(o.map(async t=>{await u(t,a),e.log(`\u{1F9F9} Removed ${r} server ${l(t.name)}.`)}))).some(t=>t.status==="rejected")&&(e.error(`Potentially failed to remove some ${r} servers.`),s.exitCode||=1),e.log("")}};export{E as RemoveCommand};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{b as S,c as y,d as h}from"./chunk-ZPUL6EAC.js";import{a as d}from"./chunk-FON2L4R6.js";import{b as u,f as n,g,h as v}from"./chunk-SZYQ5TDI.js";import{d as t,f as p}from"./chunk-4QNO2WQL.js";import"./chunk-M6TFCQLD.js";import{fork as w}from"child_process";import{createRequire as P}from"module";import{setTimeout as $}from"timers/promises";import{isServerRunning as C,ServerState as R}from"@prisma/dev/internal/state";var A={...p,name:{description:"Name(s)/pattern(s) of the server(s) to start",required:!0,type:"positional",valueHint:"glob"}},D={description:"Start servers",name:"start"},M=P(import.meta.url).resolve("@prisma/dev/internal/daemon"),H={args:A,meta:D,run:async a=>{let{debug:i,name:m}=a.args,c=m.split(","),s=await R.scan({debug:i,globs:c}),e=[],o=[];for(let r of s)(C(r)?o:e).push(r);if(o.length>0&&t.log(`\u{1F45F} The following ${n} servers are already running and won't be affected:
|
|
3
|
+
|
|
4
|
+
${d(o)}
|
|
5
|
+
`),e.length===0)return t.log(`\u26A0\uFE0F No ${n} servers found to start.
|
|
6
|
+
`);t.log(`\u{1F56F}\uFE0F Starting the following ${n} servers:
|
|
7
|
+
|
|
8
|
+
${d(e)}
|
|
9
|
+
`);let l=await Promise.allSettled(e.map(async r=>{let T=await b(r);return t.log(`\u{1F525} Started ${n} server ${u(r.name)}! Listening on ports ${h([r.port,r.databasePort,r.shadowDatabasePort])}.`),T})),f=l.filter(r=>r.status==="fulfilled");if(f.length===1){let{value:r}=f[0];t.log(`
|
|
10
|
+
`),t.log(S(r)),v&&await $(1e3),t.log(`
|
|
11
|
+
`),t.log(y(r))}else f.length>1&&t.log(`
|
|
12
|
+
|
|
13
|
+
\u{1F4DC} Run ${g("ls")} to see all running ${n} servers and their URLs.`);f.length!==l.length&&(process.exitCode||=1),t.log("")}};async function b(a){let i,m,c=new Promise((e,o)=>{i=e,m=o}),s=w(M,[a.name],{detached:!0,stdio:"ignore"});s.once("error",e=>{t.error(e)}),s.once("message",e=>{let{type:o}=e;if(o==="error"){let{error:l}=e;return l.includes("is already running")?i({...a.exports,name:a.name}):m(e.error)}if(o==="started")return i(e.server);m(`Unknown message type: "${o}"`)});try{return await c}finally{s.disconnect(),s.unref(),s.removeAllListeners()}}export{H as StartCommand};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as m}from"./chunk-OE4BCZ2F.js";import{a}from"./chunk-FON2L4R6.js";import{b as n,f as o}from"./chunk-SZYQ5TDI.js";import{d as e,f as i}from"./chunk-4QNO2WQL.js";import"./chunk-M6TFCQLD.js";import{isServerRunning as c,killServer as d,ServerState as g}from"@prisma/dev/internal/state";var S={...i,name:{description:"Name(s)/pattern(s) of the server(s) to stop",required:!0,type:"positional",valueHint:"glob"}},u={description:"Stop servers",name:"stop"},h={args:S,meta:u,run:async p=>{let{debug:t,name:l}=p.args,f=l.split(","),s=(await g.scan({debug:t,globs:f})).filter(c);if(s.length===0)return e.log(`\u26A0\uFE0F No ${o} servers found to stop.
|
|
3
|
+
`);if(e.log(`\u26B0\uFE0F Stopping the following ${o} servers:
|
|
4
|
+
|
|
5
|
+
${a(s)}`),!await m({confirmationText:"i will interrupt sessions",debug:t}))return;(await Promise.allSettled(s.map(async r=>{await d(r,t),e.log(`\u{1F480} Stopped ${o} server ${n(r.name)}.`)}))).some(r=>r.status==="rejected")&&(e.error(`Potentially failed to stop some ${o} servers.`),process.exitCode||=1),e.log("")}};export{h as StopCommand};
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/cli-dev",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Dev CLI for Prisma",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
+
"author": "Igal Klebanov <igalklebanov@gmail.com>",
|
|
7
8
|
"main": "./dist/index.js",
|
|
8
9
|
"module": "./dist/index.js",
|
|
9
10
|
"types": "./dist/index.d.ts",
|
|
@@ -31,22 +32,22 @@
|
|
|
31
32
|
],
|
|
32
33
|
"devDependencies": {
|
|
33
34
|
"@arethetypeswrong/cli": "0.18.1",
|
|
35
|
+
"@clack/core": "0.5.0",
|
|
34
36
|
"@prisma/config": "6.8.2",
|
|
35
37
|
"@types/node": "22.15.21",
|
|
38
|
+
"citty": "0.1.6",
|
|
39
|
+
"consola": "3.4.2",
|
|
40
|
+
"std-env": "3.9.0",
|
|
41
|
+
"table-layout": "4.1.1",
|
|
36
42
|
"tsup": "8.5.0",
|
|
37
43
|
"typescript": "5.8.3",
|
|
38
44
|
"vitest": "3.1.4",
|
|
45
|
+
"yocto-spinner": "1.0.0",
|
|
39
46
|
"common-cli-utils": "^0.0.0",
|
|
40
47
|
"common-stuff": "^0.0.0"
|
|
41
48
|
},
|
|
42
49
|
"dependencies": {
|
|
43
|
-
"@
|
|
44
|
-
"citty": "0.1.6",
|
|
45
|
-
"consola": "3.4.2",
|
|
46
|
-
"std-env": "3.9.0",
|
|
47
|
-
"table-layout": "4.1.1",
|
|
48
|
-
"yocto-spinner": "1.0.0",
|
|
49
|
-
"@prisma/dev": "0.11.1"
|
|
50
|
+
"@prisma/dev": "0.13.0"
|
|
50
51
|
},
|
|
51
52
|
"scripts": {
|
|
52
53
|
"build": "tsup",
|
package/dist/chunk-D5MRRGDK.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as o,c as a,f as c}from"./chunk-ZKMEOIRF.js";function $(e){return` - ${e.map(t=>`${o(t.name)}`).join(`
|
|
3
|
-
- `)}`}import{TextPrompt as f}from"@clack/core";import{colorize as r}from"consola/utils";async function C(e){let{confirmationText:t,debug:m}=e;return c?typeof await new f({debug:m,render(){switch(this.state){case"active":case"error":case"initial":{let s=`
|
|
4
|
-
\u{1F9F7} To confirm, type ${a(t)} and press ${r("inverse"," \u23CE ")}:`,h=this.value?.length<=t.length&&t.startsWith(this.value),i=!this.error&&u(this.value,t),n=t.charAt(this.cursor)?r("inverse",t.charAt(this.cursor)):this.valueWithCursor.charAt(this.cursor),p=r("dim",t.slice(this.valueWithCursor.length)),l=i?`${t}${r("reset",r("strikethrough",r("dim",this.value.slice(t.length))))}${n}`:`${this.value}${n}`;return`${s}
|
|
5
|
-
|
|
6
|
-
${r(i?"greenBright":h?"reset":"redBright",`${r("hidden","_")}> ${l}`)}${p}
|
|
7
|
-
`}case"cancel":return`
|
|
8
|
-
Aborted!
|
|
9
|
-
|
|
10
|
-
`;case"submit":return`
|
|
11
|
-
`;default:return this.state,`
|
|
12
|
-
`}},validate:s=>u(s,t)?void 0:"!"}).prompt()=="string":!0}function u(e,t){return typeof e=="string"&&e.startsWith(t)}export{$ as a,C as b};
|
package/dist/chunk-XOIFSEIB.js
DELETED
package/dist/chunk-ZKMEOIRF.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{colorize as n}from"consola/utils";function u(r){return n("cyan",r)}function p(r){return n("magenta",r)}function c(r){return n("yellow",r)}function m(r){return n("white",r)}import{colorize as o}from"consola/utils";var f=o("inverse",`${t()}prisma dev${t()}`);function t(r=1){return r<1?"":o("hidden","_".repeat(r))}import{hasTTY as e,isCI as i}from"std-env";var C=!i&&e;export{u as a,p as b,c,m as d,f as e,C as f};
|
package/dist/list-K5DAVLAS.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a}from"./chunk-XOIFSEIB.js";import{ServerState as i}from"@prisma/dev/internal/state";import{defineCommand as m}from"citty";function o(t,n=t){return`\x1B]8;;${t.toString()}\x07${n.toString()}\x1B]8;;\x07`}import{consola as c}from"consola";import u from"table-layout";var l={...a},p={description:"List available servers",name:"ls"},U=m({args:l,meta:p,run:async t=>{let n=await i.scan({debug:t.args.debug}),e=new u([{name:s("name"),status:s("status"),urls:s("urls")},...n.map(r=>({name:r.name,status:r.status,urls:g(r)}))]);c.log(e.toString())}});function s(t){return`\x1B[1m${t}\x1B[0m`}function g(t){if(t.status!=="running")return"";let n=f(t),e=S(t),r=d(t);return[n?`${s("DATABASE_URL")}: ${n}`:null,e?`${s("TCP")}: ${e}`:null,r?`${s("Terminal")}: ${r}`:null].filter(Boolean).join(`
|
|
3
|
-
`)}function f(t){let{url:n}=t.exports?.ppg||{};if(!n)return"";let e=new URL(n),r=e.searchParams.get("api_key");return e.searchParams.set("api_key",`${r.slice(0,4)}...${r.slice(-4)}`),o(n,e)}function S(t){let{connectionString:n,prismaORMConnectionString:e}=t.exports?.database||{};if(!e&&!n)return"";let r=new URL(e||n);return o(r,`${r.protocol}//...@${r.host}/...`)}function d(t){let{connectionString:n,terminalCommand:e}=t.exports?.database||{};if(!n||!e)return"";let r=new URL(n);return o(e,`...psql -h ${r.hostname} -p ${r.port} ...`)}export{U as ListCommand};
|
package/dist/remove-6QJTZ5SK.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as s,b as f}from"./chunk-D5MRRGDK.js";import{a as m,b as l,e}from"./chunk-ZKMEOIRF.js";import{a}from"./chunk-XOIFSEIB.js";import{deleteServer as u,isServerRunning as d,ServerState as C}from"@prisma/dev/internal/state";import{defineCommand as y}from"citty";import{consola as r}from"consola";import{process as c}from"std-env";var S={...a,force:{default:!1,description:"Stops any running servers before removing them. Default is `false`, which would fail the command if any server is running.",required:!1,type:"boolean"},name:{description:"Name(s)/pattern(s) of the server(s) to remove",required:!0,type:"positional",valueHint:"glob"}},h={description:"Remove servers",name:"rm"},P=y({args:S,meta:h,run:async n=>{let{debug:i,force:p,name:g}=n.args,v=g.split(","),o=await C.scan({debug:i,globs:v});if(o.length===0)return r.log(`\u26A0\uFE0F No ${e} servers found to remove.
|
|
3
|
-
`);if(!p&&o.some(d)){r.log(`\u{1F6AB} Some ${e} servers are currently running:
|
|
4
|
-
|
|
5
|
-
${s(o.filter(d))}
|
|
6
|
-
|
|
7
|
-
Use the ${l("--force")} flag to stop and remove them.`),c.exitCode||=1;return}if(r.log(`\u{1F5D1}\uFE0F Removing the following ${e} servers:
|
|
8
|
-
|
|
9
|
-
${s(o)}`),!await f({confirmationText:"i will lose local data",debug:n.args.debug}))return;(await Promise.allSettled(o.map(async t=>{await u(t,i),r.log(`\u{1F9F9} Removed ${e} server ${m(t.name)}.`)}))).some(t=>t.status==="rejected")&&(r.error(`Potentially failed to remove some ${e} servers.`),c.exitCode||=1),r.log("")}});export{P as RemoveCommand};
|
package/dist/stop-CRL2UWAK.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b as m}from"./chunk-D5MRRGDK.js";import{a as n,e}from"./chunk-ZKMEOIRF.js";import{a as i}from"./chunk-XOIFSEIB.js";import{isServerRunning as c,killServer as d,ServerState as g}from"@prisma/dev/internal/state";import{defineCommand as S}from"citty";import{consola as o}from"consola";var u={...i,name:{description:"Name(s)/pattern(s) of the server(s) to stop",required:!0,type:"positional",valueHint:"glob"}},v={description:"Stop servers",name:"stop"},D=S({args:u,meta:v,run:async p=>{let{debug:t,name:l}=p.args,f=l.split(","),s=(await g.scan({debug:t,globs:f})).filter(c);if(s.length===0)return o.log(`\u26A0\uFE0F No ${e} servers found to stop.
|
|
3
|
-
`);if(o.log(`\u26B0\uFE0F Stopping the following ${e} servers:
|
|
4
|
-
|
|
5
|
-
${a(s)}`),!await m({confirmationText:"i will interrupt sessions",debug:t}))return;(await Promise.allSettled(s.map(async r=>{await d(r,t),o.log(`\u{1F480} Stopped ${e} server ${n(r.name)}.`)}))).some(r=>r.status==="rejected")&&(o.error(`Potentially failed to stop some ${e} servers.`),process.exitCode||=1),o.log("")}});export{D as StopCommand};
|