require('./sourcemap-register.js');module.exports=function(e,t){"use strict";var n={};function __webpack_require__(t){if(n[t]){return n[t].exports}var r=n[t]={i:t,l:false,exports:{}};var i=true;try{e[t].call(r.exports,r,r.exports,__webpack_require__);i=false}finally{if(i)delete n[t]}r.l=true;return r.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(839)}t(__webpack_require__);return startup()}({7:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.externalToInternalDmmf=void 0;const i=r(n(635));const s=n(414);const o=n(704);function transformFieldKind(e){return{...e,fields:e.fields.map(e=>({...e,kind:e.kind==="relation"?"object":e.kind}))}}function transformDatamodel(e){return{enums:e.enums.map(e=>({...e,values:e.values.map(e=>e.name)})),models:e.models.map(transformFieldKind)}}function externalToInternalDmmf(e){const t=transformDatamodel(e.datamodel);return{datamodel:t,mappings:getMappings(e.mappings,t),schema:transformSchema(e.schema)}}t.externalToInternalDmmf=externalToInternalDmmf;function transformSchema(e){return{enums:e.enums,inputTypes:e.inputTypes.map(e=>({...e,fields:o.uniqueBy(transformArgs(e.fields),e=>e.name)})),outputTypes:e.outputTypes.map(e=>({...e,fields:e.fields.map(e=>({...e,args:transformArgs(e.args)}))}))}}function transformArgs(e){return e.map(transformArg)}function fixOrderByEnum(e){if(e.name==="orderBy"&&e.inputType.type.endsWith("OrderByInput")){return{name:e.name,inputType:{isList:e.inputType.isList,isRequired:e.inputType.isRequired,isNullable:e.inputType.isNullable,type:e.inputType.type,kind:"object"}}}return e}function transformArg(e){const t=fixOrderByEnum(e);return{name:t.name,inputType:[t.inputType]}}function getMappings(e,t){return e.filter(e=>{const n=t.models.find(t=>t.name===e.model);if(!n){throw new Error(`Mapping without model ${e.model}`)}return n.fields.some(e=>e.kind!=="object")}).map(e=>({model:e.model,plural:i.default(s.lowerCase(e.model)),findOne:e.findSingle||e.findOne,findMany:e.findMany,create:e.createOne||e.createSingle||e.create,delete:e.deleteOne||e.deleteSingle||e.delete,update:e.updateOne||e.updateSingle||e.update,deleteMany:e.deleteMany,updateMany:e.updateMany,upsert:e.upsertOne||e.upsertSingle||e.upsert,aggregate:e.aggregate}))}},8:function(__unusedmodule,exports,__webpack_require__){"use strict";var __awaiter=this&&this.__awaiter||function(e,t,n,r){function adopt(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())})};var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:true});exports.resolveBinary=void 0;const fs_1=__importDefault(__webpack_require__(747));const path_1=__importDefault(__webpack_require__(622));const temp_dir_1=__importDefault(__webpack_require__(327));const make_dir_1=__importDefault(__webpack_require__(919));const util_1=__webpack_require__(669);const get_platform_1=__webpack_require__(270);const util_2=__webpack_require__(471);const readFile=util_1.promisify(fs_1.default.readFile);const writeFile=util_1.promisify(fs_1.default.writeFile);const engineEnvVarMap={"query-engine":"PRISMA_QUERY_ENGINE_BINARY","migration-engine":"PRISMA_MIGRATION_ENGINE_BINARY","introspection-engine":"PRISMA_INTROSPECTION_ENGINE_BINARY","prisma-fmt":"PRISMA_FMT_BINARY"};function resolveBinary(name){return __awaiter(this,void 0,void 0,function*(){const envVar=engineEnvVarMap[name];if(process.env[envVar]){if(!fs_1.default.existsSync(process.env[envVar])){throw new Error(`Env var ${envVar} is provided, but provided path ${process.env[envVar]} can't be resolved.`)}return process.env[envVar]}const dir=eval("__dirname");const platform=yield get_platform_1.getPlatform();const extension=platform==="windows"?".exe":"";const binaryName=`${name}-${platform}${extension}`;let prismaPath=path_1.default.join(dir,"..",binaryName);if(fs_1.default.existsSync(prismaPath)){return maybeCopyToTmp(prismaPath)}prismaPath=path_1.default.join(dir,"../..",binaryName);if(fs_1.default.existsSync(prismaPath)){return maybeCopyToTmp(prismaPath)}prismaPath=path_1.default.join(__dirname,"..",binaryName);if(fs_1.default.existsSync(prismaPath)){return maybeCopyToTmp(prismaPath)}prismaPath=path_1.default.join(__dirname,"../..",binaryName);if(fs_1.default.existsSync(prismaPath)){return maybeCopyToTmp(prismaPath)}prismaPath=path_1.default.join(__dirname,"../runtime",binaryName);if(fs_1.default.existsSync(prismaPath)){return maybeCopyToTmp(prismaPath)}throw new Error(`Could not find ${name} binary. Searched in ${path_1.default.join(dir,"..",binaryName)} and ${path_1.default.join(dir,"../..",binaryName)}`)})}exports.resolveBinary=resolveBinary;function maybeCopyToTmp(file){return __awaiter(this,void 0,void 0,function*(){const dir=eval("__dirname");if(dir.startsWith("/snapshot/")){const e=path_1.default.join(temp_dir_1.default,"prisma-binaries");yield make_dir_1.default(e);const t=path_1.default.join(e,path_1.default.basename(file));const n=yield readFile(file);yield writeFile(t,n);util_2.plusX(t);return t}return file})}},11:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.absolutizeRelativePath=t.resolveDatasources=void 0;const i=r(n(622));function resolveDatasources(e,t,n,r){return e.map(e=>{if(e.connectorType==="sqlite"){if(e.url.fromEnvVar===null){return{...e,url:{fromEnvVar:null,value:absolutizeRelativePath(e.url.value,t,n,r)}}}else{return e}}return e})}t.resolveDatasources=resolveDatasources;function absolutizeRelativePath(e,t,n,r){let s=e;if(s.startsWith("file:")){s=s.slice(5)}const o=i.default.resolve(t,s);if(r){return o}return`${i.default.relative(n,o)}`}t.absolutizeRelativePath=absolutizeRelativePath},19:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DMMFClass=void 0;const r=n(414);function getLogger(){return(...e)=>{}}class DMMFClass{constructor({datamodel:e,schema:t,mappings:n}){this.outputTypeMap={};this.outputTypeToMergedOutputType=(e=>{const t=this.modelMap[e.name];return{...e,isEmbedded:t?t.isEmbedded:false,fields:e.fields}});this.datamodel=e;this.schema=t;this.mappings=n;const r=getLogger();r(`starting`);this.enumMap=this.getEnumMap();r(`enumMap`);this.queryType=this.getQueryType();r(`queryType`);this.mutationType=this.getMutationType();r(`mutationType`);this.modelMap=this.getModelMap();r(`modelMap`);this.outputTypes=this.getOutputTypes();r(`outputTypes`);this.outputTypeMap=this.getMergedOutputTypeMap();r(`outputTypes map`);this.resolveOutputTypes(this.outputTypes);r(`resolve Output Types`);this.inputTypes=this.schema.inputTypes;this.inputTypeMap=this.getInputTypeMap();r(`input type map`);this.resolveInputTypes(this.inputTypes);r(`input types`);this.resolveFieldArgumentTypes(this.outputTypes,this.inputTypeMap);r(`resolve fields `);r(`merge things...`);this.queryType=this.outputTypeMap.Query;this.mutationType=this.outputTypeMap.Mutation;this.outputTypes=this.outputTypes;r(`done`)}getField(e){return this.queryType.fields.find(t=>t.name===e)||this.mutationType.fields.find(t=>t.name===e)}resolveOutputTypes(e){for(const t of e){for(const e of t.fields){if(typeof e.outputType.type==="string"&&!r.ScalarTypeTable[e.outputType.type]){e.outputType.type=this.outputTypeMap[e.outputType.type]||this.enumMap[e.outputType.type]||e.outputType.type}}}}resolveInputTypes(e){for(const t of e){for(const e of t.fields){const t=e.inputType[0].type;if(typeof t==="string"&&!r.ScalarTypeTable[t]&&(this.inputTypeMap[t]||this.enumMap[t])){e.inputType[0].type=this.inputTypeMap[t]||this.enumMap[t]||e.inputType[0].type}const n=e.inputType[1]&&e.inputType[1].type;if(typeof n==="string"&&!r.ScalarTypeTable[n]&&(this.inputTypeMap[n]||this.enumMap[n])){e.inputType[1].type=this.inputTypeMap[n]||this.enumMap[n]||e.inputType[1].type}}}}resolveFieldArgumentTypes(e,t){for(const n of e){for(const e of n.fields){for(const n of e.args){const e=n.inputType[0].type;if(typeof e==="string"&&!r.ScalarTypeTable[e]){n.inputType[0].type=t[e]||this.enumMap[e]||n.inputType[0].type}const i=n.inputType[1]&&n.inputType[1].type;if(i&&typeof i==="string"&&!r.ScalarTypeTable[i]){n.inputType[1].type=t[i]||this.enumMap[i]||n.inputType[1].type}}}}}getQueryType(){return this.schema.outputTypes.find(e=>e.name==="Query")}getMutationType(){return this.schema.outputTypes.find(e=>e.name==="Mutation")}getOutputTypes(){return this.schema.outputTypes.map(this.outputTypeToMergedOutputType)}getEnumMap(){return r.keyBy(this.schema.enums,e=>e.name)}getModelMap(){return r.keyBy(this.datamodel.models,e=>e.name)}getMergedOutputTypeMap(){return r.keyBy(this.outputTypes,e=>e.name)}getInputTypeMap(){return r.keyBy(this.schema.inputTypes,e=>e.name)}}t.DMMFClass=DMMFClass},23:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extractSqliteSources=void 0;const r=n(11);function extractSqliteSources(e,t,n,i){const s=[];const o=e.split("\n").filter(e=>!e.trim().startsWith("//"));const a=/\s*url\s+=\s*"(file:[^\/].*)"/;const c=/\s*datasource\s*(\w+)\s*{/;o.forEach((e,u)=>{const l=a.exec(e);if(l){let e;let a=u-1;while(!e&&a>=0){const t=o[a];const n=t.indexOf("//");const r=t.indexOf("{");if(r>-1){if(n===-1){e=t}if(n>r){e=t}}a--}if(!e){throw new Error(`Could not parse datamodel, invalid datasource block without opening \`{\``)}const f=c.exec(e);if(f){s.push({name:f[1],url:r.absolutizeRelativePath(l[1],t,n,i)})}else{throw new Error(`Could not parse datamodel, line ${a+1}: \`${e}\` is not parseable`)}}});return s}t.extractSqliteSources=extractSqliteSources},38:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){if(r===undefined)r=n;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,r){if(r===undefined)r=n;e[r]=t[n]});var i=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!t.hasOwnProperty(n))r(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});var s=n(353);Object.defineProperty(t,"GeneratorProcess",{enumerable:true,get:function(){return s.GeneratorProcess}});Object.defineProperty(t,"GeneratorError",{enumerable:true,get:function(){return s.GeneratorError}});var o=n(286);Object.defineProperty(t,"generatorHandler",{enumerable:true,get:function(){return o.generatorHandler}});i(n(815),t)},45:function(e,t,n){t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0;let i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{if(e==="%%"){return}r++;if(e==="%c"){i=r}});t.splice(i,0,n)}function log(...e){return typeof console==="object"&&console.log&&console.log(...e)}function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=n(782)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},51:function(e,t,n){const{dirname:r}=n(622);const{findMade:i,findMadeSync:s}=n(887);const{mkdirpManual:o,mkdirpManualSync:a}=n(159);const c=(e,t)=>{t.recursive=true;const n=r(e);if(n===e)return t.mkdirAsync(e,t);return i(t,e).then(n=>t.mkdirAsync(e,t).then(()=>n).catch(n=>{if(n.code==="ENOENT")return o(e,t);else throw n}))};const u=(e,t)=>{t.recursive=true;const n=r(e);if(n===e)return t.mkdirSync(e,t);const i=s(t,e);try{t.mkdirSync(e,t);return i}catch(n){if(n.code==="ENOENT")return a(e,t);else throw n}};e.exports={mkdirpNative:c,mkdirpNativeSync:u}},68:function(e,t,n){"use strict";const r=n(747);const i=n(87);const s="__RESOLVED_TMP_DIR__";if(!global[s]){Object.defineProperty(global,s,{value:r.realpathSync(i.tmpdir())})}e.exports=global[s]},71:function(e,t,n){"use strict";const{PassThrough:r}=n(413);e.exports=function(){var e=[];var t=new r({objectMode:true});t.setMaxListeners(0);t.add=add;t.isEmpty=isEmpty;t.on("unpipe",remove);Array.prototype.slice.call(arguments).forEach(add);return t;function add(n){if(Array.isArray(n)){n.forEach(add);return this}e.push(n);n.once("end",remove.bind(null,n));n.once("error",t.emit.bind(t,"error"));n.pipe(t,{end:false});return this}function isEmpty(){return e.length==0}function remove(n){e=e.filter(function(e){return e!==n});if(!e.length&&t.readable){t.end()}}}},78:function(e,t,n){"use strict";const{PassThrough:r}=n(413);e.exports=(e=>{e={...e};const{array:t}=e;let{encoding:n}=e;const i=n==="buffer";let s=false;if(t){s=!(n||i)}else{n=n||"utf8"}if(i){n=null}const o=new r({objectMode:s});if(n){o.setEncoding(n)}let a=0;const c=[];o.on("data",e=>{c.push(e);if(s){a=c.length}else{a+=e.length}});o.getBufferedValue=(()=>{if(t){return c}return i?Buffer.concat(c,a):c.join("")});o.getBufferedLength=(()=>a);return o})},81:function(e,t,n){"use strict";const r=n(87);const i=n(228);const s=1e3*5;const o=(e,t="SIGTERM",n={})=>{const r=e(t);a(e,t,n,r);return r};const a=(e,t,n,r)=>{if(!c(t,n,r)){return}const i=l(n);const s=setTimeout(()=>{e("SIGKILL")},i);if(s.unref){s.unref()}};const c=(e,{forceKillAfterTimeout:t},n)=>{return u(e)&&t!==false&&n};const u=e=>{return e===r.constants.signals.SIGTERM||typeof e==="string"&&e.toUpperCase()==="SIGTERM"};const l=({forceKillAfterTimeout:e=true})=>{if(e===true){return s}if(!Number.isInteger(e)||e<0){throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)}return e};const f=(e,t)=>{const n=e.kill();if(n){t.isCanceled=true}};const p=(e,t,n)=>{e.kill(t);n(Object.assign(new Error("Timed out"),{timedOut:true,signal:t}))};const d=(e,{timeout:t,killSignal:n="SIGTERM"},r)=>{if(t===0||t===undefined){return r}if(!Number.isInteger(t)||t<0){throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)}let i;const s=new Promise((r,s)=>{i=setTimeout(()=>{p(e,n,s)},t)});const o=r.finally(()=>{clearTimeout(i)});return Promise.race([s,o])};const m=async(e,{cleanup:t,detached:n},r)=>{if(!t||n){return r}const s=i(()=>{e.kill()});return r.finally(()=>{s()})};e.exports={spawnedKill:o,spawnedCancel:f,setupTimeout:d,setExitHandler:m}},87:function(e){e.exports=require("os")},90:function(e,t,n){"use strict";const r=n(622);const i=n(265);const s=n(889);e.exports=((e,t)=>{t=Object.assign({cwd:process.cwd()},t);return s(e,e=>i(r.resolve(t.cwd,e)),t)});e.exports.sync=((e,t)=>{t=Object.assign({cwd:process.cwd()},t);for(const n of e){if(i.sync(r.resolve(t.cwd,n))){return n}}})},96:function(e,t,n){"use strict";e=n.nmd(e);const r=(e,t)=>(...n)=>{const r=e(...n);return`[${r+t}m`};const i=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};5;${r}m`};const s=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};const o=e=>e;const a=(e,t,n)=>[e,t,n];const c=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true});return r},enumerable:true,configurable:true})};let u;const l=(e,t,r,i)=>{if(u===undefined){u=n(707)}const s=i?10:0;const o={};for(const[n,i]of Object.entries(u)){const a=n==="ansi16"?"ansi":n;if(n===t){o[a]=e(r,s)}else if(typeof i==="object"){o[a]=e(i[t],s)}}return o};function assembleStyles(){const e=new Map;const t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],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],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],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright;t.bgColor.bgGray=t.bgColor.bgBlackBright;t.color.grey=t.color.blackBright;t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[n,r]of Object.entries(t)){for(const[n,i]of Object.entries(r)){t[n]={open:`[${i[0]}m`,close:`[${i[1]}m`};r[n]=t[n];e.set(i[0],i[1])}Object.defineProperty(t,n,{value:r,enumerable:false})}Object.defineProperty(t,"codes",{value:e,enumerable:false});t.color.close="[39m";t.bgColor.close="[49m";c(t.color,"ansi",()=>l(r,"ansi16",o,false));c(t.color,"ansi256",()=>l(i,"ansi256",o,false));c(t.color,"ansi16m",()=>l(s,"rgb",a,false));c(t.bgColor,"ansi",()=>l(r,"ansi16",o,true));c(t.bgColor,"ansi256",()=>l(i,"ansi256",o,true));c(t.bgColor,"ansi16m",()=>l(s,"rgb",a,true));return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},105:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},121:function(e,t,n){var r=n(267);e.exports=r(once);e.exports.strict=r(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(e){var t=function(){if(t.called)return t.value;t.called=true;return t.value=e.apply(this,arguments)};t.called=false;return t}function onceStrict(e){var t=function(){if(t.called)throw new Error(t.onceError);t.called=true;return t.value=e.apply(this,arguments)};var n=e.name||"Function wrapped with `once`";t.onceError=n+" shouldn't be called more than once";t.called=false;return t}},128:function(e,t,n){"use strict";const r=n(87);const i=n(867);const s=n(425);const{env:o}=process;let a;if(s("no-color")||s("no-colors")||s("color=false")||s("color=never")){a=0}else if(s("color")||s("colors")||s("color=true")||s("color=always")){a=1}if("FORCE_COLOR"in o){if(o.FORCE_COLOR==="true"){a=1}else if(o.FORCE_COLOR==="false"){a=0}else{a=o.FORCE_COLOR.length===0?1:Math.min(parseInt(o.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const n=a||0;if(o.TERM==="dumb"){return n}if(process.platform==="win32"){const e=r.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in o)||o.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}if("GITHUB_ACTIONS"in o){return 1}if(o.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)){return 1}if("COLORTERM"in o){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},129:function(e){e.exports=require("child_process")},130:function(e){var t=[];for(var n=0;n<256;++n){t[n]=(n+256).toString(16).substr(1)}function bytesToUuid(e,n){var r=n||0;var i=t;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}e.exports=bytesToUuid},159:function(e,t,n){const{dirname:r}=n(622);const i=(e,t,n)=>{t.recursive=false;const s=r(e);if(s===e){return t.mkdirAsync(e,t).catch(e=>{if(e.code!=="EISDIR")throw e})}return t.mkdirAsync(e,t).then(()=>n||e,r=>{if(r.code==="ENOENT")return i(s,t).then(n=>i(e,t,n));if(r.code!=="EEXIST"&&r.code!=="EROFS")throw r;return t.statAsync(e).then(e=>{if(e.isDirectory())return n;else throw r},()=>{throw r})})};const s=(e,t,n)=>{const i=r(e);t.recursive=false;if(i===e){try{return t.mkdirSync(e,t)}catch(e){if(e.code!=="EISDIR")throw e;else return}}try{t.mkdirSync(e,t);return n||e}catch(r){if(r.code==="ENOENT")return s(e,t,s(i,t,n));if(r.code!=="EEXIST"&&r.code!=="EROFS")throw r;try{if(!t.statSync(e).isDirectory())throw r}catch(e){throw r}}};e.exports={mkdirpManual:i,mkdirpManualSync:s}},161:function(e){"use strict";e.exports=((e,t=1,n)=>{n={indent:" ",includeEmptyLines:false,...n};if(typeof e!=="string"){throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``)}if(typeof t!=="number"){throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``)}if(typeof n.indent!=="string"){throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``)}if(t===0){return e}const r=n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(r,n.indent.repeat(t))})},163:function(e,t,n){var r=n(679);var i=n(130);var s;var o;var a=0;var c=0;function v1(e,t,n){var u=t&&n||0;var l=t||[];e=e||{};var f=e.node||s;var p=e.clockseq!==undefined?e.clockseq:o;if(f==null||p==null){var d=r();if(f==null){f=s=[d[0]|1,d[1],d[2],d[3],d[4],d[5]]}if(p==null){p=o=(d[6]<<8|d[7])&16383}}var m=e.msecs!==undefined?e.msecs:(new Date).getTime();var h=e.nsecs!==undefined?e.nsecs:c+1;var y=m-a+(h-c)/1e4;if(y<0&&e.clockseq===undefined){p=p+1&16383}if((y<0||m>a)&&e.nsecs===undefined){h=0}if(h>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=m;c=h;o=p;m+=122192928e5;var g=((m&268435455)*1e4+h)%4294967296;l[u++]=g>>>24&255;l[u++]=g>>>16&255;l[u++]=g>>>8&255;l[u++]=g&255;var b=m/4294967296*1e4&268435455;l[u++]=b>>>8&255;l[u++]=b&255;l[u++]=b>>>24&15|16;l[u++]=b>>>16&255;l[u++]=p>>>8|128;l[u++]=p&255;for(var v=0;v<6;++v){l[u+v]=f[v]}return t?t:i(l)}e.exports=v1},200:function(e){"use strict";const t=(e,t,n)=>{const r=typeof t==="function"?(...e)=>t()[n](...e):t[n].bind(t);Object.defineProperty(e,n,{value:r,writable:true,enumerable:false,configurable:true})};const n=(e,n)=>{t(e,n,"then");t(e,n,"catch");t(e,n,"finally");return e};const r=e=>{return new Promise((t,n)=>{e.on("exit",(e,n)=>{t({exitCode:e,signal:n})});e.on("error",e=>{n(e)});if(e.stdin){e.stdin.on("error",e=>{n(e)})}})};e.exports={mergePromise:n,getSpawnedPromise:r}},209:function(e){"use strict";var t=setTimeout;function createSleepPromise(e,n){var r=n.useCachedSetTimeout,i=r?t:setTimeout;return new Promise(function(t){i(t,e)})}function sleep(e){function b(e){return r.then(function(){return e})}var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=t.useCachedSetTimeout,r=createSleepPromise(e,{useCachedSetTimeout:n});return b.then=function(){return r.then.apply(r,arguments)},b.catch=Promise.resolve().catch,b}e.exports=sleep},228:function(e,t,n){var r=n(357);var i=n(549);var s=/^win/i.test(process.platform);var o=n(614);if(typeof o!=="function"){o=o.EventEmitter}var a;if(process.__signal_exit_emitter__){a=process.__signal_exit_emitter__}else{a=process.__signal_exit_emitter__=new o;a.count=0;a.emitted={}}if(!a.infinite){a.setMaxListeners(Infinity);a.infinite=true}e.exports=function(e,t){r.equal(typeof e,"function","a callback must be provided for exit handler");if(u===false){load()}var n="exit";if(t&&t.alwaysLast){n="afterexit"}var i=function(){a.removeListener(n,e);if(a.listeners("exit").length===0&&a.listeners("afterexit").length===0){unload()}};a.on(n,e);return i};e.exports.unload=unload;function unload(){if(!u){return}u=false;i.forEach(function(e){try{process.removeListener(e,c[e])}catch(e){}});process.emit=f;process.reallyExit=l;a.count-=1}function emit(e,t,n){if(a.emitted[e]){return}a.emitted[e]=true;a.emit(e,t,n)}var c={};i.forEach(function(e){c[e]=function listener(){var t=process.listeners(e);if(t.length===a.count){unload();emit("exit",null,e);emit("afterexit",null,e);if(s&&e==="SIGHUP"){e="SIGINT"}process.kill(process.pid,e)}}});e.exports.signals=function(){return i};e.exports.load=load;var u=false;function load(){if(u){return}u=true;a.count+=1;i=i.filter(function(e){try{process.on(e,c[e]);return true}catch(e){return false}});process.emit=processEmit;process.reallyExit=processReallyExit}var l=process.reallyExit;function processReallyExit(e){process.exitCode=e||0;emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);l.call(process,process.exitCode)}var f=process.emit;function processEmit(e,t){if(e==="exit"){if(t!==undefined){process.exitCode=t}var n=f.apply(this,arguments);emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);return n}else{return f.apply(this,arguments)}}},230:function(e){"use strict";e.exports=(e=>{const t=typeof e==="string"?"\n":"\n".charCodeAt();const n=typeof e==="string"?"\r":"\r".charCodeAt();if(e[e.length-1]===t){e=e.slice(0,e.length-1)}if(e[e.length-1]===n){e=e.slice(0,e.length-1)}return e})},238:function(e,t,n){var r=n(679);var i=n(130);function v4(e,t,n){var s=t&&n||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var o=e.random||(e.rng||r)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){for(var a=0;a<16;++a){t[s+a]=o[a]}}return t||i(o)}e.exports=v4},248:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createLineStream=void 0;const r=n(413),i=n(669);function byline(t,n){return e.exports.createStream(t,n)}t.default=byline;e.exports.createStream=function(e,t){if(e){return createLineStream(e,t)}else{return new LineStream(t)}};function createLineStream(e,t){if(!e){throw new Error("expected readStream")}if(!e.readable){throw new Error("readStream must be readable")}const n=new LineStream(t);e.pipe(n);return n}t.createLineStream=createLineStream;e.exports.LineStream=LineStream;function LineStream(e){r.Transform.call(this,e);e=e||{};this._readableState.objectMode=true;this._lineBuffer=[];this._keepEmptyLines=e.keepEmptyLines||false;this._lastChunkEndedWithCR=false;this.on("pipe",function(e){if(!this.encoding){if(e instanceof r.Readable){this.encoding=e._readableState.encoding}}})}i.inherits(LineStream,r.Transform);LineStream.prototype._transform=function(e,t,n){t=t||"utf8";if(Buffer.isBuffer(e)){if(t=="buffer"){e=e.toString();t="utf8"}else{e=e.toString(t)}}this._chunkEncoding=t;const r=e.split(/\r\n|\r|\n/g);if(this._lastChunkEndedWithCR&&e[0]=="\n"){r.shift()}if(this._lineBuffer.length>0){this._lineBuffer[this._lineBuffer.length-1]+=r[0];r.shift()}this._lastChunkEndedWithCR=e[e.length-1]=="\r";this._lineBuffer=this._lineBuffer.concat(r);this._pushBuffer(t,1,n)};LineStream.prototype._pushBuffer=function(e,t,n){while(this._lineBuffer.length>t){const r=this._lineBuffer.shift();if(this._keepEmptyLines||r.length>0){if(!this.push(this._reencode(r,e))){const r=this;setImmediate(function(){r._pushBuffer(e,t,n)});return}}}n()};LineStream.prototype._flush=function(e){this._pushBuffer(this._chunkEncoding,0,e)};LineStream.prototype._reencode=function(e,t){if(this.encoding&&this.encoding!=t){return Buffer.from(e,t).toString(this.encoding)}else if(this.encoding){return e}else{return Buffer.from(e,t)}}},250:function(e,t,n){"use strict";const r=n(593);const i=e=>{if(!((Number.isInteger(e)||e===Infinity)&&e>0)){return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"))}const t=[];let n=0;const i=()=>{n--;if(t.length>0){t.shift()()}};const s=(e,t,...s)=>{n++;const o=r(e,...s);t(o);o.then(i,i)};const o=(r,i,...o)=>{if(n<e){s(r,i,...o)}else{t.push(s.bind(null,r,i,...o))}};const a=(e,...t)=>new Promise(n=>o(e,n,...t));Object.defineProperties(a,{activeCount:{get:()=>n},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}});return a};e.exports=i;e.exports.default=i},264:function(e,t,n){const r=n(867);const i=n(669);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.colors=[6,2,3,4,5,1];try{const e=n(128);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>{return/^debug_/i.test(e)}).reduce((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>{return t.toUpperCase()});let r=process.env[t];if(/^(yes|on|true|enabled)$/i.test(r)){r=true}else if(/^(no|off|false|disabled)$/i.test(r)){r=false}else if(r==="null"){r=null}else{r=Number(r)}e[n]=r;return e},{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):r.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:n,useColors:r}=this;if(r){const r=this.color;const i="[3"+(r<8?r:"8;5;"+r);const s=`  ${i};1m${n} [0m`;t[0]=s+t[0].split("\n").join("\n"+s);t.push(i+"m+"+e.exports.humanize(this.diff)+"[0m")}else{t[0]=getDate()+n+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(i.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let r=0;r<n.length;r++){e.inspectOpts[n[r]]=t.inspectOpts[n[r]]}}e.exports=n(782)(t);const{formatters:s}=e.exports;s.o=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts).replace(/\s*\n\s*/g," ")};s.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)}},265:function(e,t,n){"use strict";const r=n(747);e.exports=(e=>new Promise(t=>{r.access(e,e=>{t(!e)})}));e.exports.sync=(e=>{try{r.accessSync(e);return true}catch(e){return false}})},267:function(e){e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var n=0;n<t.length;n++){t[n]=arguments[n]}var r=e.apply(this,t);var i=t[t.length-1];if(typeof r==="function"&&r!==i){Object.keys(i).forEach(function(e){r[e]=i[e]})}return r}}},270:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(749);Object.defineProperty(t,"getPlatform",{enumerable:true,get:function(){return r.getPlatform}});Object.defineProperty(t,"getos",{enumerable:true,get:function(){return r.getos}});var i=n(492);Object.defineProperty(t,"mayBeCompatible",{enumerable:true,get:function(){return i.mayBeCompatible}});var s=n(492);Object.defineProperty(t,"platforms",{enumerable:true,get:function(){return s.platforms}})},286:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){function adopt(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())})};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.generatorHandler=void 0;const s=i(n(248));function generatorHandler(e){s.default(process.stdin).on("data",t=>r(this,void 0,void 0,function*(){const n=JSON.parse(String(t));if(n.method==="generate"&&n.params){try{const t=yield e.onGenerate(n.params);respond({jsonrpc:"2.0",result:t,id:n.id})}catch(e){respond({jsonrpc:"2.0",error:{code:-32e3,message:e.stack||e.message,data:null},id:n.id})}}if(n.method==="getManifest"){if(e.onManifest){try{const t=e.onManifest();respond({jsonrpc:"2.0",result:{manifest:t},id:n.id})}catch(e){respond({jsonrpc:"2.0",error:{code:-32e3,message:e.stack||e.message,data:null},id:n.id})}}else{respond({jsonrpc:"2.0",result:{manifest:null},id:n.id})}}}));process.stdin.resume()}t.generatorHandler=generatorHandler;function respond(e){console.error(JSON.stringify(e))}},287:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=flattenIntoArray;function flattenIntoArray(e,t,n,r,i,s){var o=i!==undefined;var a=n;var c=0;var u=t.length;while(c<u){var l=c;var f=!!t[l];if(f===true){var p=t[l];if(p){if(o){p=i.call(s,p,c,e)}var d=Object.getOwnPropertySymbols(p).includes(Symbol.isConcatSpreadable)||Array.isArray(p);if(d===true&&r>0){var m=flattenIntoArray(e,p,a,r-1);a=m}else{if(!Number.isSafeInteger(a)){throw TypeError()}e[a]=p}}}a+=1;c+=1}return a}},295:function(e,t,n){var r=n(747);var i=n(296);var s=n(589);var o=n(602);var a=n(669);var c;var u;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){c=Symbol.for("graceful-fs.queue");u=Symbol.for("graceful-fs.previous")}else{c="___graceful-fs.queue";u="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,c,{get:function(){return t}})}var l=noop;if(a.debuglog)l=a.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))l=function(){var e=a.format.apply(a,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!r[c]){var f=global[c]||[];publishQueue(r,f);r.close=function(e){function close(t,n){return e.call(r,t,function(e){if(!e){retry()}if(typeof n==="function")n.apply(this,arguments)})}Object.defineProperty(close,u,{value:e});return close}(r.close);r.closeSync=function(e){function closeSync(t){e.apply(r,arguments);retry()}Object.defineProperty(closeSync,u,{value:e});return closeSync}(r.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",function(){l(r[c]);n(357).equal(r[c].length,0)})}}if(!global[c]){publishQueue(global,r[c])}e.exports=patch(o(r));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched){e.exports=patch(r);r.__patched=true}function patch(e){i(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,n,r){if(typeof n==="function")r=n,n=null;return go$readFile(e,n,r);function go$readFile(e,n,r){return t(e,n,function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,n,r]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}})}}var n=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,r,i){if(typeof r==="function")i=r,r=null;return go$writeFile(e,t,r,i);function go$writeFile(e,t,r,i){return n(e,t,r,function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$writeFile,[e,t,r,i]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}})}}var r=e.appendFile;if(r)e.appendFile=appendFile;function appendFile(e,t,n,i){if(typeof n==="function")i=n,n=null;return go$appendFile(e,t,n,i);function go$appendFile(e,t,n,i){return r(e,t,n,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$appendFile,[e,t,n,i]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}})}}var o=e.readdir;e.readdir=readdir;function readdir(e,t,n){var r=[e];if(typeof t!=="function"){r.push(t)}else{n=t}r.push(go$readdir$cb);return go$readdir(r);function go$readdir$cb(e,t){if(t&&t.sort)t.sort();if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))enqueue([go$readdir,[r]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}}}function go$readdir(t){return o.apply(e,t)}if(process.version.substr(0,4)==="v0.8"){var a=s(e);ReadStream=a.ReadStream;WriteStream=a.WriteStream}var c=e.ReadStream;if(c){ReadStream.prototype=Object.create(c.prototype);ReadStream.prototype.open=ReadStream$open}var u=e.WriteStream;if(u){WriteStream.prototype=Object.create(u.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var l=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return l},set:function(e){l=e},enumerable:true,configurable:true});var f=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return f},set:function(e){f=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return c.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,n){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=n;e.emit("open",n);e.read()}})}function WriteStream(e,t){if(this instanceof WriteStream)return u.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,n){if(t){e.destroy();e.emit("error",t)}else{e.fd=n;e.emit("open",n)}})}function createReadStream(t,n){return new e.ReadStream(t,n)}function createWriteStream(t,n){return new e.WriteStream(t,n)}var p=e.open;e.open=open;function open(e,t,n,r){if(typeof n==="function")r=n,n=null;return go$open(e,t,n,r);function go$open(e,t,n,r){return p(e,t,n,function(i,s){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$open,[e,t,n,r]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}})}}return e}function enqueue(e){l("ENQUEUE",e[0].name,e[1]);r[c].push(e)}function retry(){var e=r[c].shift();if(e){l("RETRY",e[0].name,e[1]);e[0].apply(null,e[1])}}},296:function(e,t,n){var r=n(721);var i=process.cwd;var s=null;var o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!s)s=i.call(process);return s};try{process.cwd()}catch(e){}var a=process.chdir;process.chdir=function(e){s=null;a.call(process,e)};e.exports=patch;function patch(e){if(r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(!e.lchmod){e.lchmod=function(e,t,n){if(n)process.nextTick(n)};e.lchmodSync=function(){}}if(!e.lchown){e.lchown=function(e,t,n,r){if(r)process.nextTick(r)};e.lchownSync=function(){}}if(o==="win32"){e.rename=function(t){return function(n,r,i){var s=Date.now();var o=0;t(n,r,function CB(a){if(a&&(a.code==="EACCES"||a.code==="EPERM")&&Date.now()-s<6e4){setTimeout(function(){e.stat(r,function(e,s){if(e&&e.code==="ENOENT")t(n,r,CB);else i(a)})},o);if(o<100)o+=10;return}if(i)i(a)})}}(e.rename)}e.read=function(t){function read(n,r,i,s,o,a){var c;if(a&&typeof a==="function"){var u=0;c=function(l,f,p){if(l&&l.code==="EAGAIN"&&u<10){u++;return t.call(e,n,r,i,s,o,c)}a.apply(this,arguments)}}return t.call(e,n,r,i,s,o,c)}read.__proto__=t;return read}(e.read);e.readSync=function(t){return function(n,r,i,s,o){var a=0;while(true){try{return t.call(e,n,r,i,s,o)}catch(e){if(e.code==="EAGAIN"&&a<10){a++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,n,i){e.open(t,r.O_WRONLY|r.O_SYMLINK,n,function(t,r){if(t){if(i)i(t);return}e.fchmod(r,n,function(t){e.close(r,function(e){if(i)i(t||e)})})})};e.lchmodSync=function(t,n){var i=e.openSync(t,r.O_WRONLY|r.O_SYMLINK,n);var s=true;var o;try{o=e.fchmodSync(i,n);s=false}finally{if(s){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return o}}function patchLutimes(e){if(r.hasOwnProperty("O_SYMLINK")){e.lutimes=function(t,n,i,s){e.open(t,r.O_SYMLINK,function(t,r){if(t){if(s)s(t);return}e.futimes(r,n,i,function(t){e.close(r,function(e){if(s)s(t||e)})})})};e.lutimesSync=function(t,n,i){var s=e.openSync(t,r.O_SYMLINK);var o;var a=true;try{o=e.futimesSync(s,n,i);a=false}finally{if(a){try{e.closeSync(s)}catch(e){}}else{e.closeSync(s)}}return o}}else{e.lutimes=function(e,t,n,r){if(r)process.nextTick(r)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(n,r,i){return t.call(e,n,r,function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)})}}function chmodFixSync(t){if(!t)return t;return function(n,r){try{return t.call(e,n,r)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(n,r,i,s){return t.call(e,n,r,i,function(e){if(chownErOk(e))e=null;if(s)s.apply(this,arguments)})}}function chownFixSync(t){if(!t)return t;return function(n,r,i){try{return t.call(e,n,r,i)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(n,r,i){if(typeof r==="function"){i=r;r=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(i)i.apply(this,arguments)}return r?t.call(e,n,r,callback):t.call(e,n,callback)}}function statFixSync(t){if(!t)return t;return function(n,r){var i=r?t.call(e,n,r):t.call(e,n);if(i.uid<0)i.uid+=4294967296;if(i.gid<0)i.gid+=4294967296;return i}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},297:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SIGRTMAX=t.getRealtimeSignals=void 0;const n=function(){const e=s-i+1;return Array.from({length:e},r)};t.getRealtimeSignals=n;const r=function(e,t){return{name:`SIGRT${t+1}`,number:i+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}};const i=34;const s=64;t.SIGRTMAX=s},304:function(e){"use strict";const t=["stdin","stdout","stderr"];const n=e=>t.some(t=>e[t]!==undefined);const r=e=>{if(!e){return}const{stdio:r}=e;if(r===undefined){return t.map(t=>e[t])}if(n(e)){throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map(e=>`\`${e}\``).join(", ")}`)}if(typeof r==="string"){return r}if(!Array.isArray(r)){throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof r}\``)}const i=Math.max(r.length,t.length);return Array.from({length:i},(e,t)=>r[t])};e.exports=r;e.exports.node=(e=>{const t=r(e);if(t==="ipc"){return"ipc"}if(t===undefined||typeof t==="string"){return[t,t,t,"ipc"]}if(t.includes("ipc")){return t}return[...t,"ipc"]})},311:function(e,t){t=e.exports=SemVer;var n;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){n=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{n=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var r=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var s=16;var o=t.re=[];var a=t.src=[];var c=t.tokens={};var u=0;function tok(e){c[e]=u++}tok("NUMERICIDENTIFIER");a[c.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");a[c.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");a[c.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");a[c.MAINVERSION]="("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");a[c.MAINVERSIONLOOSE]="("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");a[c.PRERELEASEIDENTIFIER]="(?:"+a[c.NUMERICIDENTIFIER]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");a[c.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[c.NUMERICIDENTIFIERLOOSE]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");a[c.PRERELEASE]="(?:-("+a[c.PRERELEASEIDENTIFIER]+"(?:\\."+a[c.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");a[c.PRERELEASELOOSE]="(?:-?("+a[c.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[c.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");a[c.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");a[c.BUILD]="(?:\\+("+a[c.BUILDIDENTIFIER]+"(?:\\."+a[c.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");a[c.FULLPLAIN]="v?"+a[c.MAINVERSION]+a[c.PRERELEASE]+"?"+a[c.BUILD]+"?";a[c.FULL]="^"+a[c.FULLPLAIN]+"$";tok("LOOSEPLAIN");a[c.LOOSEPLAIN]="[v=\\s]*"+a[c.MAINVERSIONLOOSE]+a[c.PRERELEASELOOSE]+"?"+a[c.BUILD]+"?";tok("LOOSE");a[c.LOOSE]="^"+a[c.LOOSEPLAIN]+"$";tok("GTLT");a[c.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");a[c.XRANGEIDENTIFIERLOOSE]=a[c.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");a[c.XRANGEIDENTIFIER]=a[c.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");a[c.XRANGEPLAIN]="[v=\\s]*("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:"+a[c.PRERELEASE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");a[c.XRANGEPLAINLOOSE]="[v=\\s]*("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+a[c.PRERELEASELOOSE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGE");a[c.XRANGE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAIN]+"$";tok("XRANGELOOSE");a[c.XRANGELOOSE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAINLOOSE]+"$";tok("COERCE");a[c.COERCE]="(^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");o[c.COERCERTL]=new RegExp(a[c.COERCE],"g");tok("LONETILDE");a[c.LONETILDE]="(?:~>?)";tok("TILDETRIM");a[c.TILDETRIM]="(\\s*)"+a[c.LONETILDE]+"\\s+";o[c.TILDETRIM]=new RegExp(a[c.TILDETRIM],"g");var l="$1~";tok("TILDE");a[c.TILDE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAIN]+"$";tok("TILDELOOSE");a[c.TILDELOOSE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAINLOOSE]+"$";tok("LONECARET");a[c.LONECARET]="(?:\\^)";tok("CARETTRIM");a[c.CARETTRIM]="(\\s*)"+a[c.LONECARET]+"\\s+";o[c.CARETTRIM]=new RegExp(a[c.CARETTRIM],"g");var f="$1^";tok("CARET");a[c.CARET]="^"+a[c.LONECARET]+a[c.XRANGEPLAIN]+"$";tok("CARETLOOSE");a[c.CARETLOOSE]="^"+a[c.LONECARET]+a[c.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");a[c.COMPARATORLOOSE]="^"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");a[c.COMPARATOR]="^"+a[c.GTLT]+"\\s*("+a[c.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");a[c.COMPARATORTRIM]="(\\s*)"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+"|"+a[c.XRANGEPLAIN]+")";o[c.COMPARATORTRIM]=new RegExp(a[c.COMPARATORTRIM],"g");var p="$1$2$3";tok("HYPHENRANGE");a[c.HYPHENRANGE]="^\\s*("+a[c.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");a[c.HYPHENRANGELOOSE]="^\\s*("+a[c.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");a[c.STAR]="(<|>)?=?\\s*\\*";for(var d=0;d<u;d++){n(d,a[d]);if(!o[d]){o[d]=new RegExp(a[d])}}t.parse=parse;function parse(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}if(e.length>r){return null}var n=t.loose?o[c.LOOSE]:o[c.FULL];if(!n.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var n=parse(e,t);return n?n.version:null}t.clean=clean;function clean(e,t){var n=parse(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>r){throw new TypeError("version is longer than "+r+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;var s=e.trim().match(t.loose?o[c.LOOSE]:o[c.FULL]);if(!s){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i){return t}}return e})}this.build=s[5]?s[5].split("."):[];this.format()}SemVer.prototype.format=function(){this.version=this.major+"."+this.minor+"."+this.patch;if(this.prerelease.length){this.version+="-"+this.prerelease.join(".")}return this.version};SemVer.prototype.toString=function(){return this.version};SemVer.prototype.compare=function(e){n("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return this.compareMain(e)||this.comparePre(e)};SemVer.prototype.compareMain=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return compareIdentifiers(this.major,e.major)||compareIdentifiers(this.minor,e.minor)||compareIdentifiers(this.patch,e.patch)};SemVer.prototype.comparePre=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}var t=0;do{var r=this.prerelease[t];var i=e.prerelease[t];n("prerelease compare",t,r,i);if(r===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(r===undefined){return-1}else if(r===i){continue}else{return compareIdentifiers(r,i)}}while(++t)};SemVer.prototype.compareBuild=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}var t=0;do{var r=this.build[t];var i=e.build[t];n("prerelease compare",t,r,i);if(r===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(r===undefined){return-1}else if(r===i){continue}else{return compareIdentifiers(r,i)}}while(++t)};SemVer.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t);this.inc("pre",t);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t)}this.inc("pre",t);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{var n=this.prerelease.length;while(--n>=0){if(typeof this.prerelease[n]==="number"){this.prerelease[n]++;n=-2}}if(n===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,n,r){if(typeof n==="string"){r=n;n=undefined}try{return new SemVer(e,n).inc(t,r).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var n=parse(e);var r=parse(t);var i="";if(n.prerelease.length||r.prerelease.length){i="pre";var s="prerelease"}for(var o in n){if(o==="major"||o==="minor"||o==="patch"){if(n[o]!==r[o]){return i+o}}}return s}}t.compareIdentifiers=compareIdentifiers;var m=/^[0-9]+$/;function compareIdentifiers(e,t){var n=m.test(e);var r=m.test(t);if(n&&r){e=+e;t=+t}return e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}t.rcompareIdentifiers=rcompareIdentifiers;function rcompareIdentifiers(e,t){return compareIdentifiers(t,e)}t.major=major;function major(e,t){return new SemVer(e,t).major}t.minor=minor;function minor(e,t){return new SemVer(e,t).minor}t.patch=patch;function patch(e,t){return new SemVer(e,t).patch}t.compare=compare;function compare(e,t,n){return new SemVer(e,n).compare(new SemVer(t,n))}t.compareLoose=compareLoose;function compareLoose(e,t){return compare(e,t,true)}t.compareBuild=compareBuild;function compareBuild(e,t,n){var r=new SemVer(e,n);var i=new SemVer(t,n);return r.compare(i)||r.compareBuild(i)}t.rcompare=rcompare;function rcompare(e,t,n){return compare(t,e,n)}t.sort=sort;function sort(e,n){return e.sort(function(e,r){return t.compareBuild(e,r,n)})}t.rsort=rsort;function rsort(e,n){return e.sort(function(e,r){return t.compareBuild(r,e,n)})}t.gt=gt;function gt(e,t,n){return compare(e,t,n)>0}t.lt=lt;function lt(e,t,n){return compare(e,t,n)<0}t.eq=eq;function eq(e,t,n){return compare(e,t,n)===0}t.neq=neq;function neq(e,t,n){return compare(e,t,n)!==0}t.gte=gte;function gte(e,t,n){return compare(e,t,n)>=0}t.lte=lte;function lte(e,t,n){return compare(e,t,n)<=0}t.cmp=cmp;function cmp(e,t,n,r){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e===n;case"!==":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e!==n;case"":case"=":case"==":return eq(e,n,r);case"!=":return neq(e,n,r);case">":return gt(e,n,r);case">=":return gte(e,n,r);case"<":return lt(e,n,r);case"<=":return lte(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}n("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===h){this.value=""}else{this.value=this.operator+this.semver.version}n("comp",this)}var h={};Comparator.prototype.parse=function(e){var t=this.options.loose?o[c.COMPARATORLOOSE]:o[c.COMPARATOR];var n=e.match(t);if(!n){throw new TypeError("Invalid comparator: "+e)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=h}else{this.semver=new SemVer(n[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){n("Comparator.test",e,this.options.loose);if(this.semver===h||e===h){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var n;if(this.operator===""){if(this.value===""){return true}n=new Range(e.value,t);return satisfies(this.value,n,t)}else if(e.operator===""){if(e.value===""){return true}n=new Range(this.value,t);return satisfies(e.semver,n,t)}var r=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var s=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return r||i||s&&o||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[c.HYPHENRANGELOOSE]:o[c.HYPHENRANGE];e=e.replace(r,hyphenReplace);n("hyphen replace",e);e=e.replace(o[c.COMPARATORTRIM],p);n("comparator trim",e,o[c.COMPARATORTRIM]);e=e.replace(o[c.TILDETRIM],l);e=e.replace(o[c.CARETTRIM],f);e=e.split(/\s+/).join(" ");var i=t?o[c.COMPARATORLOOSE]:o[c.COMPARATOR];var s=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){s=s.filter(function(e){return!!e.match(i)})}s=s.map(function(e){return new Comparator(e,this.options)},this);return s};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(n){return isSatisfiable(n,t)&&e.set.some(function(e){return isSatisfiable(e,t)&&n.every(function(n){return e.every(function(e){return n.intersects(e,t)})})})})};function isSatisfiable(e,t){var n=true;var r=e.slice();var i=r.pop();while(n&&r.length){n=r.every(function(e){return i.intersects(e,t)});i=r.pop()}return n}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){n("comp",e,t);e=replaceCarets(e,t);n("caret",e);e=replaceTildes(e,t);n("tildes",e);e=replaceXRanges(e,t);n("xrange",e);e=replaceStars(e,t);n("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var r=t.loose?o[c.TILDELOOSE]:o[c.TILDE];return e.replace(r,function(t,r,i,s,o){n("tilde",e,t,r,i,s,o);var a;if(isX(r)){a=""}else if(isX(i)){a=">="+r+".0.0 <"+(+r+1)+".0.0"}else if(isX(s)){a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0"}else if(o){n("replaceTilde pr",o);a=">="+r+"."+i+"."+s+"-"+o+" <"+r+"."+(+i+1)+".0"}else{a=">="+r+"."+i+"."+s+" <"+r+"."+(+i+1)+".0"}n("tilde return",a);return a})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){n("caret",e,t);var r=t.loose?o[c.CARETLOOSE]:o[c.CARET];return e.replace(r,function(t,r,i,s,o){n("caret",e,t,r,i,s,o);var a;if(isX(r)){a=""}else if(isX(i)){a=">="+r+".0.0 <"+(+r+1)+".0.0"}else if(isX(s)){if(r==="0"){a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0"}else{a=">="+r+"."+i+".0 <"+(+r+1)+".0.0"}}else if(o){n("replaceCaret pr",o);if(r==="0"){if(i==="0"){a=">="+r+"."+i+"."+s+"-"+o+" <"+r+"."+i+"."+(+s+1)}else{a=">="+r+"."+i+"."+s+"-"+o+" <"+r+"."+(+i+1)+".0"}}else{a=">="+r+"."+i+"."+s+"-"+o+" <"+(+r+1)+".0.0"}}else{n("no pr");if(r==="0"){if(i==="0"){a=">="+r+"."+i+"."+s+" <"+r+"."+i+"."+(+s+1)}else{a=">="+r+"."+i+"."+s+" <"+r+"."+(+i+1)+".0"}}else{a=">="+r+"."+i+"."+s+" <"+(+r+1)+".0.0"}}n("caret return",a);return a})}function replaceXRanges(e,t){n("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var r=t.loose?o[c.XRANGELOOSE]:o[c.XRANGE];return e.replace(r,function(r,i,s,o,a,c){n("xRange",e,r,i,s,o,a,c);var u=isX(s);var l=u||isX(o);var f=l||isX(a);var p=f;if(i==="="&&p){i=""}c=t.includePrerelease?"-0":"";if(u){if(i===">"||i==="<"){r="<0.0.0-0"}else{r="*"}}else if(i&&p){if(l){o=0}a=0;if(i===">"){i=">=";if(l){s=+s+1;o=0;a=0}else{o=+o+1;a=0}}else if(i==="<="){i="<";if(l){s=+s+1}else{o=+o+1}}r=i+s+"."+o+"."+a+c}else if(l){r=">="+s+".0.0"+c+" <"+(+s+1)+".0.0"+c}else if(f){r=">="+s+"."+o+".0"+c+" <"+s+"."+(+o+1)+".0"+c}n("xRange return",r);return r})}function replaceStars(e,t){n("replaceStars",e,t);return e.trim().replace(o[c.STAR],"")}function hyphenReplace(e,t,n,r,i,s,o,a,c,u,l,f,p){if(isX(n)){t=""}else if(isX(r)){t=">="+n+".0.0"}else if(isX(i)){t=">="+n+"."+r+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(u)){a="<"+(+c+1)+".0.0"}else if(isX(l)){a="<"+c+"."+(+u+1)+".0"}else if(f){a="<="+c+"."+u+"."+l+"-"+f}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false};function testSet(e,t,r){for(var i=0;i<e.length;i++){if(!e[i].test(t)){return false}}if(t.prerelease.length&&!r.includePrerelease){for(i=0;i<e.length;i++){n(e[i].semver);if(e[i].semver===h){continue}if(e[i].semver.prerelease.length>0){var s=e[i].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,n){try{t=new Range(t,n)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,n){var r=null;var i=null;try{var s=new Range(t,n)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!r||i.compare(e)===-1){r=e;i=new SemVer(r,n)}}});return r}t.minSatisfying=minSatisfying;function minSatisfying(e,t,n){var r=null;var i=null;try{var s=new Range(t,n)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!r||i.compare(e)===1){r=e;i=new SemVer(r,n)}}});return r}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var n=new SemVer("0.0.0");if(e.test(n)){return n}n=new SemVer("0.0.0-0");if(e.test(n)){return n}n=null;for(var r=0;r<e.set.length;++r){var i=e.set[r];i.forEach(function(e){var t=new SemVer(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!n||gt(n,t)){n=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(n&&e.test(n)){return n}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,n){return outside(e,t,"<",n)}t.gtr=gtr;function gtr(e,t,n){return outside(e,t,">",n)}t.outside=outside;function outside(e,t,n,r){e=new SemVer(e,r);t=new Range(t,r);var i,s,o,a,c;switch(n){case">":i=gt;s=lte;o=lt;a=">";c=">=";break;case"<":i=lt;s=gte;o=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,r)){return false}for(var u=0;u<t.set.length;++u){var l=t.set[u];var f=null;var p=null;l.forEach(function(e){if(e.semver===h){e=new Comparator(">=0.0.0")}f=f||e;p=p||e;if(i(e.semver,f.semver,r)){f=e}else if(o(e.semver,p.semver,r)){p=e}});if(f.operator===a||f.operator===c){return false}if((!p.operator||p.operator===a)&&s(e,p.semver)){return false}else if(p.operator===c&&o(e,p.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var n=parse(e,t);return n&&n.prerelease.length?n.prerelease:null}t.intersects=intersects;function intersects(e,t,n){e=new Range(e,n);t=new Range(t,n);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var n=null;if(!t.rtl){n=e.match(o[c.COERCE])}else{var r;while((r=o[c.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||r.index+r[0].length!==n.index+n[0].length){n=r}o[c.COERCERTL].lastIndex=r.index+r[1].length+r[2].length}o[c.COERCERTL].lastIndex=-1}if(n===null){return null}return parse(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},325:function(e,t,n){var r=n(163);var i=n(238);var s=i;s.v1=r;s.v4=i;e.exports=s},327:function(e,t,n){"use strict";const r=n(747);const i=n(87);const s=Symbol.for("__RESOLVED_TEMP_DIRECTORY__");if(!global[s]){Object.defineProperty(global,s,{value:r.realpathSync(i.tmpdir())})}e.exports=global[s]},353:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){function adopt(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())})};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.GeneratorProcess=t.GeneratorError=void 0;const s=n(583);const o=i(n(248));const a=i(n(584));const c=i(n(599));const u=c.default("GeneratorProcess");let l=1;class GeneratorError extends Error{constructor(e,t,n){super(e);this.code=t;this.data=n}}t.GeneratorError=GeneratorError;class GeneratorProcess{constructor(e){this.executablePath=e;this.listeners={};this.exitCode=null;this.stderrLogs=""}init(){return r(this,void 0,void 0,function*(){if(!this.initPromise){this.initPromise=this.initSingleton()}return this.initPromise})}initSingleton(){return new Promise((e,t)=>{try{this.child=s.spawn(this.executablePath,{stdio:["pipe","inherit","pipe"],env:Object.assign(Object.assign({},process.env),{PRISMA_GENERATOR_INVOCATION:"true"}),shell:true});this.child.on("exit",e=>{this.exitCode=e});this.child.on("error",e=>{u(e);if(e.message.includes("EACCES")){t(new Error(`The executable at ${this.executablePath} lacks the right chmod. Please use ${a.default.bold(`chmod +x ${this.executablePath}`)}`))}else{t(e)}});o.default(this.child.stderr).on("data",e=>{const t=String(e);this.stderrLogs+=t+"\n";let n;try{n=JSON.parse(t)}catch(e){u(t)}if(n){this.handleResponse(n)}});setTimeout(()=>{if(this.exitCode&&this.exitCode>0){t(new Error(`Generator at ${this.executablePath} could not start:\n\n${this.stderrLogs}`))}else{e()}},200)}catch(e){t(e)}})}handleResponse(e){if(e.jsonrpc&&e.id){if(typeof e.id!=="number"){throw new Error(`message.id has to be a number. Found value ${e.id}`)}if(this.listeners[e.id]){if(e.error){const t=new GeneratorError(e.error.message,e.error.code,e.error.data);this.listeners[e.id](null,t)}else{this.listeners[e.id](e.result)}delete this.listeners[e.id]}}}registerListener(e,t){this.listeners[e]=t}sendMessage(e){this.child.stdin.write(JSON.stringify(e)+"\n")}getMessageId(){return l++}stop(){if(!this.child.killed){this.child.kill()}}getManifest(){return new Promise((e,t)=>{const n=this.getMessageId();this.registerListener(n,(n,r)=>{if(r){return t(r)}if(n.manifest){e(n.manifest)}else{e(null)}});this.sendMessage({jsonrpc:"2.0",method:"getManifest",params:{},id:n})})}generate(e){return new Promise((t,n)=>{const r=this.getMessageId();this.registerListener(r,(e,r)=>{if(r){return n(r)}t(e)});this.sendMessage({jsonrpc:"2.0",method:"generate",params:e,id:r})})}}t.GeneratorProcess=GeneratorProcess},357:function(e){e.exports=require("assert")},369:function(e){"use strict";e.exports=((e={})=>{let t;if(e.repoUrl){t=e.repoUrl}else if(e.user&&e.repo){t=`https://github.com/${e.user}/${e.repo}`}else{throw new Error("You need to specify either the `repoUrl` option or both the `user` and `repo` options")}const n=new URL(`${t}/issues/new`);const r=["body","title","labels","template","milestone","assignee","projects"];for(const t of r){let r=e[t];if(r===undefined){continue}if(t==="labels"||t==="projects"){if(!Array.isArray(r)){throw new TypeError(`The \`${t}\` option should be an array`)}r=r.join(",")}n.searchParams.set(t,r)}return n.toString()});e.exports.default=e.exports},374:function(e,t,n){"use strict";const r=n(612);const i=n(78);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}async function getStream(e,t){if(!e){return Promise.reject(new Error("Expected a stream"))}t={maxBuffer:Infinity,...t};const{maxBuffer:n}=t;let s;await new Promise((o,a)=>{const c=e=>{if(e){e.bufferedData=s.getBufferedValue()}a(e)};s=r(e,i(t),e=>{if(e){c(e);return}o()});s.on("data",()=>{if(s.getBufferedLength()>n){c(new MaxBufferError)}})});return s.getBufferedValue()}e.exports=getStream;e.exports.default=getStream;e.exports.buffer=((e,t)=>getStream(e,{...t,encoding:"buffer"}));e.exports.array=((e,t)=>getStream(e,{...t,array:true}));e.exports.MaxBufferError=MaxBufferError},387:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DMMF=void 0;var n;(function(e){let t;(function(e){e["findOne"]="findOne";e["findMany"]="findMany";e["create"]="create";e["update"]="update";e["updateMany"]="updateMany";e["upsert"]="upsert";e["delete"]="delete";e["deleteMany"]="deleteMany"})(t=e.ModelAction||(e.ModelAction={}))})(n=t.DMMF||(t.DMMF={}))},392:function(e,t,n){var r=n(121);var i=function(){};var s=function(e){return e.setHeader&&typeof e.abort==="function"};var o=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var a=function(e,t,n){if(typeof t==="function")return a(e,null,t);if(!t)t={};n=r(n||i);var c=e._writableState;var u=e._readableState;var l=t.readable||t.readable!==false&&e.readable;var f=t.writable||t.writable!==false&&e.writable;var p=false;var d=function(){if(!e.writable)m()};var m=function(){f=false;if(!l)n.call(e)};var h=function(){l=false;if(!f)n.call(e)};var y=function(t){n.call(e,t?new Error("exited with error code: "+t):null)};var g=function(t){n.call(e,t)};var b=function(){process.nextTick(v)};var v=function(){if(p)return;if(l&&!(u&&(u.ended&&!u.destroyed)))return n.call(e,new Error("premature close"));if(f&&!(c&&(c.ended&&!c.destroyed)))return n.call(e,new Error("premature close"))};var w=function(){e.req.on("finish",m)};if(s(e)){e.on("complete",m);e.on("abort",b);if(e.req)w();else e.on("request",w)}else if(f&&!c){e.on("end",d);e.on("close",d)}if(o(e))e.on("exit",y);e.on("end",h);e.on("finish",m);if(t.error!==false)e.on("error",g);e.on("close",b);return function(){p=true;e.removeListener("complete",m);e.removeListener("abort",b);e.removeListener("request",w);if(e.req)e.req.removeListener("finish",m);e.removeListener("end",d);e.removeListener("close",d);e.removeListener("finish",m);e.removeListener("exit",y);e.removeListener("end",h);e.removeListener("error",g);e.removeListener("close",b)}};e.exports=a},401:function(e,t,n){"use strict";var r=n(287);var i=_interopRequireDefault(r);var s=n(420);var o=_interopRequireDefault(s);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}if(!Object.prototype.hasOwnProperty.call(Array.prototype,"flatMap")){Array.prototype.flatMap=function flatMap(e,t){var n=Object(this);if(!e||typeof e.call!=="function"){throw TypeError("callbackFn must be callable.")}var r=t!==undefined?t:undefined;var s=(0,o.default)(n,n.length);(0,i.default)(s,n,0,1,e,r);return s.filter(function(e){return e!==undefined},s)}}},413:function(e){e.exports=require("stream")},414:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.lowerCase=t.capitalize=t.uniqBy=t.unionBy=t.destroyCircular=t.inputTypeToJson=t.getOutputTypeName=t.getInputTypeName=t.stringifyInputType=t.getSuggestion=t.graphQLToJSType=t.getGraphQLType=t.wrapWithList=t.stringifyGraphQLType=t.JSTypeToGraphQLType=t.GraphQLScalarToJSTypeTable=t.isScalar=t.ScalarTypeTable=t.keyBy=void 0;const i=r(n(584));const s=r(n(161));const o=r(n(667));t.keyBy=((e,t)=>{return e.reduce((e,n)=>{e[t(n)]=n;return e},{})});t.ScalarTypeTable={String:true,Int:true,Float:true,Boolean:true,Long:true,DateTime:true,ID:true,UUID:true,Json:true};function isScalar(e){if(typeof e!=="string"){return false}return t.ScalarTypeTable[e]||false}t.isScalar=isScalar;t.GraphQLScalarToJSTypeTable={String:"string",Int:"number",Float:"number",Boolean:"boolean",Long:"number",DateTime:["Date","string"],ID:"string",UUID:"string",Json:"JsonValue"};t.JSTypeToGraphQLType={string:"String",boolean:"Boolean",object:"Json"};function stringifyGraphQLType(e){if(typeof e==="string"){return e}return e.name}t.stringifyGraphQLType=stringifyGraphQLType;function wrapWithList(e,t){if(t){return`List<${e}>`}return e}t.wrapWithList=wrapWithList;function getGraphQLType(e,n){if(e===null){return"null"}if(Array.isArray(e)){let t=e.reduce((e,t)=>{const r=getGraphQLType(t,n);if(!e.includes(r)){e.push(r)}return e},[]);if(t.includes("Float")&&t.includes("Int")){t=["Float"]}return`List<${t.join(" | ")}>`}const r=typeof e;if(r==="number"){if(Math.trunc(e)===e){return"Int"}else{return"Float"}}if(Object.prototype.toString.call(e)==="[object Date]"){return"DateTime"}if(r==="string"){if(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)){return"UUID"}const t=new Date(e);if(n&&typeof n==="object"&&n.values&&n.values.includes(e)){return n.name}if(t.toString()==="Invalid Date"){return"String"}if(/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/.test(e)){return"DateTime"}}return t.JSTypeToGraphQLType[r]}t.getGraphQLType=getGraphQLType;function graphQLToJSType(e){return t.GraphQLScalarToJSTypeTable[e]}t.graphQLToJSType=graphQLToJSType;function getSuggestion(e,t){const n=t.reduce((t,n)=>{const r=o.default(e,n);if(r<t.distance){return{distance:r,str:n}}return t},{distance:Math.min(Math.floor(e.length)*1.1,...t.map(e=>e.length*3)),str:null});return n.str}t.getSuggestion=getSuggestion;function stringifyInputType(e,t=false){if(typeof e==="string"){return e}if(e.values){return`enum ${e.name} {\n${s.default(e.values.join(", "),2)}\n}`}else{const n=s.default(e.fields.map(e=>{const n=e.inputType[0];const r=`${e.name}`;const s=`${t?i.default.green(r):r}${n.isRequired?"":"?"}: ${i.default.white(e.inputType.map(e=>argIsInputType(e.type)?e.type.name:wrapWithList(stringifyGraphQLType(e.type),e.isList)).join(" | "))}`;if(!n.isRequired){return i.default.dim(s)}return s}).join("\n"),2);return`${i.default.dim("type")} ${i.default.bold.dim(e.name)} ${i.default.dim("{")}\n${n}\n${i.default.dim("}")}`}}t.stringifyInputType=stringifyInputType;function argIsInputType(e){if(typeof e==="string"){return false}return true}function getInputTypeName(e){if(typeof e==="string"){return e}return e.name}t.getInputTypeName=getInputTypeName;function getOutputTypeName(e){if(typeof e==="string"){return e}return e.name}t.getOutputTypeName=getOutputTypeName;function inputTypeToJson(e,t,n=false){if(typeof e==="string"){return e}if(e.values){return e.values.join(" | ")}const r=e;const i=t&&r.fields.every(e=>e.inputType[0].kind==="object")&&!r.isWhereType&&!r.atLeastOne;if(n){return getInputTypeName(e)}return r.fields.reduce((e,t)=>{const n=t.inputType[0];e[t.name+(n.isRequired?"":"?")]=t.isRelationFilter&&!i&&!n.isRequired?getInputTypeName(n.type):inputTypeToJson(n.type,n.isRequired,true);return e},{})}t.inputTypeToJson=inputTypeToJson;function destroyCircular(e,t=[]){const n=Array.isArray(e)?[]:{};t.push(e);for(const r of Object.keys(e)){const i=e[r];if(typeof i==="function"){continue}if(!i||typeof i!=="object"){n[r]=i;continue}if(t.indexOf(e[r])===-1){n[r]=destroyCircular(e[r],t.slice(0));continue}n[r]="[Circular]"}if(typeof e.name==="string"){n.name=e.name}if(typeof e.message==="string"){n.message=e.message}if(typeof e.stack==="string"){n.stack=e.stack}return n}t.destroyCircular=destroyCircular;function unionBy(e,t,n){const r={};for(const t of e){r[n(t)]=t}for(const e of t){const t=n(e);if(!r[t]){r[t]=e}}return Object.values(r)}t.unionBy=unionBy;function uniqBy(e,t){const n={};for(const r of e){n[t(r)]=r}return Object.values(n)}t.uniqBy=uniqBy;function capitalize(e){return e[0].toUpperCase()+e.slice(1)}t.capitalize=capitalize;function lowerCase(e){return e.substring(0,1).toLowerCase()+e.substring(1)}t.lowerCase=lowerCase},417:function(e){e.exports=require("crypto")},420:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=arraySpeciesCreate;function arraySpeciesCreate(e,t){var r=Array.isArray(e);if(!r){return Array(t)}var i=Object.getPrototypeOf(e).constructor;if(i){if((typeof i==="undefined"?"undefined":n(i))==="object"||typeof i==="function"){i=i[Symbol.species.toString()];i=i!==null?i:undefined}if(i===undefined){return Array(t)}if(typeof i!=="function"){throw TypeError("invalid constructor")}var s=new i(t);return s}}},425:function(e){"use strict";e.exports=((e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const r=t.indexOf(n+e);const i=t.indexOf("--");return r!==-1&&(i===-1||r<i)})},454:function(e){"use strict";const t=(e={})=>{const t=e.env||process.env;const n=e.platform||process.platform;if(n!=="win32"){return"PATH"}return Object.keys(t).reverse().find(e=>e.toUpperCase()==="PATH")||"Path"};e.exports=t;e.exports.default=t},461:function(e,t,n){"use strict";const r=n(796);const i=n(374);const s=n(71);const o=(e,t)=>{if(t===undefined||e.stdin===undefined){return}if(r(t)){t.pipe(e.stdin)}else{e.stdin.end(t)}};const a=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr){return}const n=s();if(e.stdout){n.add(e.stdout)}if(e.stderr){n.add(e.stderr)}return n};const c=async(e,t)=>{if(!e){return}e.destroy();try{return await t}catch(e){return e.bufferedData}};const u=(e,{encoding:t,buffer:n,maxBuffer:r})=>{if(!e||!n){return}if(t){return i(e,{encoding:t,maxBuffer:r})}return i.buffer(e,{maxBuffer:r})};const l=async({stdout:e,stderr:t,all:n},{encoding:r,buffer:i,maxBuffer:s},o)=>{const a=u(e,{encoding:r,buffer:i,maxBuffer:s});const l=u(t,{encoding:r,buffer:i,maxBuffer:s});const f=u(n,{encoding:r,buffer:i,maxBuffer:s*2});try{return await Promise.all([o,a,l,f])}catch(r){return Promise.all([{error:r,signal:r.signal,timedOut:r.timedOut},c(e,a),c(t,l),c(n,f)])}};const f=({input:e})=>{if(r(e)){throw new TypeError("The `input` option cannot be a stream in sync mode")}};e.exports={handleInput:o,makeAllStream:a,getSpawnedResult:l,validateInputSync:f}},471:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getGithubIssueUrl=t.link=t.fixBinaryTargets=t.plusX=void 0;const i=r(n(747));const s=r(n(982));const o=r(n(369));const a=r(n(584));const c=r(n(531));const u=c.default("plusX");function plusX(e){const t=i.default.statSync(e);const n=t.mode|64|8|1;if(t.mode===n){u(`Execution permissions of ${e} are fine`);return}const r=n.toString(8).slice(-3);u(`Have to call plusX on ${e}`);i.default.chmodSync(e,r)}t.plusX=plusX;function fixBinaryTargets(e,t){e=e||[];if(!e.includes("native")){return["native",...e]}return[...e,t]}t.fixBinaryTargets=fixBinaryTargets;function link(e){return s.default(e,e,{fallback:e=>a.default.underline(e)})}t.link=link;function getGithubIssueUrl({title:e,user:t="prisma",repo:n="prisma-client-js",template:r="bug_report.md",body:i}){return o.default({user:t,repo:n,template:r,title:e,body:i})}t.getGithubIssueUrl=getGithubIssueUrl},479:function(e){"use strict";const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const i=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi;const s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){const t=e[0]==="u";const n=e[1]==="{";if(t&&!n&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}if(t&&n){return String.fromCodePoint(parseInt(e.slice(2,-1),16))}return s.get(e)||e}function parseArguments(e,t){const n=[];const s=t.trim().split(/\s*,\s*/g);let o;for(const t of s){const s=Number(t);if(!Number.isNaN(s)){n.push(s)}else if(o=t.match(r)){n.push(o[2].replace(i,(e,t,n)=>t?unescape(t):n))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return n}function parseStyle(e){n.lastIndex=0;const t=[];let r;while((r=n.exec(e))!==null){const e=r[1];if(r[2]){const n=parseArguments(e,r[2]);t.push([e].concat(n))}else{t.push([e])}}return t}function buildStyle(e,t){const n={};for(const e of t){for(const t of e.styles){n[t[0]]=e.inverse?null:t.slice(1)}}let r=e;for(const[e,t]of Object.entries(n)){if(!Array.isArray(t)){continue}if(!(e in r)){throw new Error(`Unknown Chalk style: ${e}`)}r=t.length>0?r[e](...t):r[e]}return r}e.exports=((e,n)=>{const r=[];const i=[];let s=[];n.replace(t,(t,n,o,a,c,u)=>{if(n){s.push(unescape(n))}else if(a){const t=s.join("");s=[];i.push(r.length===0?t:buildStyle(e,r)(t));r.push({inverse:o,styles:parseStyle(a)})}else if(c){if(r.length===0){throw new Error("Found extraneous } in Chalk template literal")}i.push(buildStyle(e,r)(s.join("")));s=[];r.pop()}else{s.push(u)}});i.push(s.join(""));if(r.length>0){const e=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return i.join("")})},485:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.flatMap=t.getRelativePathResolveStatement=t.indentAllButFirstLine=t.capitalize=t.isQueryAction=t.getSelectReturnType=t.getFieldType=t.getType=t.getFieldTypeName=t.renderInitialClientArgs=t.getOperation=t.getDefaultArgName=t.getModelArgName=t.getArgName=t.getFieldArgName=t.getDefaultName=t.getIncludeName=t.getSelectName=t.getPayloadName=t.getScalarsName=t.Projection=void 0;const i=r(n(161));const s=r(n(622));const o=n(387);var a;(function(e){e["select"]="select";e["include"]="include"})(a=t.Projection||(t.Projection={}));function getScalarsName(e){return`${e}Scalars`}t.getScalarsName=getScalarsName;function getPayloadName(e){return`${e}GetPayload`}t.getPayloadName=getPayloadName;function getSelectName(e){return`${e}Select`}t.getSelectName=getSelectName;function getIncludeName(e){return`${e}Include`}t.getIncludeName=getIncludeName;function getDefaultName(e){return`${e}Default`}t.getDefaultName=getDefaultName;function getFieldArgName(e){return getArgName(e.outputType.type.name,e.outputType.isList)}t.getFieldArgName=getFieldArgName;function getArgName(e,t){if(!t){return`${e}Args`}return`FindMany${e}Args`}t.getArgName=getArgName;function getModelArgName(e,t){if(!t){return`${e}Args`}switch(t){case o.DMMF.ModelAction.findMany:return`FindMany${e}Args`;case o.DMMF.ModelAction.findOne:return`FindOne${e}Args`;case o.DMMF.ModelAction.upsert:return`${e}UpsertArgs`;case o.DMMF.ModelAction.update:return`${e}UpdateArgs`;case o.DMMF.ModelAction.updateMany:return`${e}UpdateManyArgs`;case o.DMMF.ModelAction.delete:return`${e}DeleteArgs`;case o.DMMF.ModelAction.create:return`${e}CreateArgs`;case o.DMMF.ModelAction.deleteMany:return`${e}DeleteManyArgs`}}t.getModelArgName=getModelArgName;function getDefaultArgName(e,t,n){const r=e.mappings.find(e=>e.model===t);const i=r[n];const s=getOperation(n);const o=s==="query"?e.queryType:e.mutationType;const a=o.fields.find(e=>e.name===i);return a.args[0].inputType[0].type.name}t.getDefaultArgName=getDefaultArgName;function getOperation(e){if(e===o.DMMF.ModelAction.findMany||e===o.DMMF.ModelAction.findOne){return"query"}return"mutation"}t.getOperation=getOperation;function renderInitialClientArgs(e,t,n){return`\n  dmmf,\n  fetcher,\n  '${getOperation(e)}',\n  '${t}',\n  '${n.plural}.${e}',\n  args || {},\n  [],\n  errorFormat,\n  measurePerformance\n`}t.renderInitialClientArgs=renderInitialClientArgs;function getFieldTypeName(e){if(typeof e.outputType.type==="string"){return e.outputType.type}return e.outputType.type.name}t.getFieldTypeName=getFieldTypeName;function getType(e,t,n){return e+(t?"[]":"")+(n?" | null":"")}t.getType=getType;function getFieldType(e){return getType(getFieldTypeName(e),e.outputType.isList)}t.getFieldType=getFieldType;function getSelectReturnType({name:e,actionName:t,renderPromise:n=true,hideCondition:r=false,isField:i=false}){const s=t===o.DMMF.ModelAction.findMany;if(t==="deleteMany"||t==="updateMany"){return`Promise<BatchPayload>`}if(s||r){const t=s?"Array<":"";const r=s?">":"";const i=n?"Promise<":"";const o=n?">":"";return`CheckSelect<T, ${i}${t}${e}${r}${o}, ${i}${t}${getPayloadName(e)}<T>${r}${o}>`}return`CheckSelect<T, ${e}Client<${getType(e,s)}${t==="findOne"?" | null":""}>, ${e}Client<${getType(getPayloadName(e)+"<T>",s)}${t==="findOne"?" | null":""}>>`}t.getSelectReturnType=getSelectReturnType;function isQueryAction(e,t){if(!(e in o.DMMF.ModelAction)){return false}const n=e===o.DMMF.ModelAction.findOne||e===o.DMMF.ModelAction.findMany;return t==="query"?n:!n}t.isQueryAction=isQueryAction;function capitalize(e){return e[0].toUpperCase()+e.slice(1)}t.capitalize=capitalize;function indentAllButFirstLine(e,t){const n=e.split("\n");return n[0]+"\n"+i.default(n.slice(1).join("\n"),t)}t.indentAllButFirstLine=indentAllButFirstLine;function getRelativePathResolveStatement(e,t){if(!t){return"undefined"}return`path.resolve(__dirname, ${JSON.stringify(s.default.relative(e,t))})`}t.getRelativePathResolveStatement=getRelativePathResolveStatement;function flatten(e){return Array.prototype.concat.apply([],e)}function flatMap(e,t,n){return flatten(e.map(t,n))}t.flatMap=flatMap},490:function(e,t,n){"use strict";const r=n(622);const i=n(687);const s=n(454)();function resolveCommandAttempt(e,t){const n=process.cwd();const o=e.options.cwd!=null;const a=o&&process.chdir!==undefined&&!process.chdir.disabled;if(a){try{process.chdir(e.options.cwd)}catch(e){}}let c;try{c=i.sync(e.command,{path:(e.options.env||process.env)[s],pathExt:t?r.delimiter:undefined})}catch(e){}finally{if(a){process.chdir(n)}}if(c){c=r.resolve(o?e.options.cwd:"",c)}return c}function resolveCommand(e){return resolveCommandAttempt(e)||resolveCommandAttempt(e,true)}e.exports=resolveCommand},492:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mayBeCompatible=t.platforms=void 0;t.platforms=["darwin","debian-openssl-1.0.x","debian-openssl-1.1.x","rhel-openssl-1.0.x","rhel-openssl-1.1.x","linux-musl","linux-nixos","windows","freebsd","openbsd","netbsd","arm"];function mayBeCompatible(e,t){if(e==="native"||t==="native"){return true}if(e==="darwin"||t==="darwin"){return false}if(e==="windows"||t==="windows"){return false}return true}t.mayBeCompatible=mayBeCompatible},503:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSignals=void 0;var r=n(87);var i=n(730);var s=n(297);const o=function(){const e=(0,s.getRealtimeSignals)();const t=[...i.SIGNALS,...e].map(a);return t};t.getSignals=o;const a=function({name:e,number:t,description:n,action:i,forced:s=false,standard:o}){const{signals:{[e]:a}}=r.constants;const c=a!==undefined;const u=c?a:t;return{name:e,number:u,description:n,supported:c,action:i,forced:s,standard:o}}},505:function(e,t,n){e.exports=isexe;isexe.sync=sync;var r=n(747);function checkPathExt(e,t){var n=t.pathExt!==undefined?t.pathExt:process.env.PATHEXT;if(!n){return true}n=n.split(";");if(n.indexOf("")!==-1){return true}for(var r=0;r<n.length;r++){var i=n[r].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i){return true}}return false}function checkStat(e,t,n){if(!e.isSymbolicLink()&&!e.isFile()){return false}return checkPathExt(t,n)}function isexe(e,t,n){r.stat(e,function(r,i){n(r,r?false:checkStat(i,e,t))})}function sync(e,t){return checkStat(r.statSync(e),e,t)}},520:function(e,t,n){"use strict";const r=n(622);const i=n(129);const s=n(583);const o=n(230);const a=n(805);const c=n(633);const u=n(619);const l=n(304);const{spawnedKill:f,spawnedCancel:p,setupTimeout:d,setExitHandler:m}=n(81);const{handleInput:h,getSpawnedResult:y,makeAllStream:g,validateInputSync:b}=n(461);const{mergePromise:v,getSpawnedPromise:w}=n(200);const{joinCommand:E,parseCommand:T}=n(574);const S=1e3*1e3*100;const x=({env:e,extendEnv:t,preferLocal:n,localDir:r,execPath:i})=>{const s=t?{...process.env,...e}:e;if(n){return a.env({env:s,cwd:r,execPath:i})}return s};const _=(e,t,n={})=>{const i=s._parse(e,t,n);e=i.command;t=i.args;n=i.options;n={maxBuffer:S,buffer:true,stripFinalNewline:true,extendEnv:true,preferLocal:false,localDir:n.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:true,cleanup:true,all:false,windowsHide:true,...n};n.env=x(n);n.stdio=l(n);if(process.platform==="win32"&&r.basename(e,".exe")==="cmd"){t.unshift("/q")}return{file:e,args:t,options:n,parsed:i}};const C=(e,t,n)=>{if(typeof t!=="string"&&!Buffer.isBuffer(t)){return n===undefined?undefined:""}if(e.stripFinalNewline){return o(t)}return t};const O=(e,t,n)=>{const r=_(e,t,n);const o=E(e,t);let a;try{a=i.spawn(r.file,r.args,r.options)}catch(e){const t=new i.ChildProcess;const n=Promise.reject(u({error:e,stdout:"",stderr:"",all:"",command:o,parsed:r,timedOut:false,isCanceled:false,killed:false}));return v(t,n)}const l=w(a);const b=d(a,r.options,l);const T=m(a,r.options,b);const S={isCanceled:false};a.kill=f.bind(null,a.kill.bind(a));a.cancel=p.bind(null,a,S);const x=async()=>{const[{error:e,exitCode:t,signal:n,timedOut:i},s,c,l]=await y(a,r.options,T);const f=C(r.options,s);const p=C(r.options,c);const d=C(r.options,l);if(e||t!==0||n!==null){const s=u({error:e,exitCode:t,signal:n,stdout:f,stderr:p,all:d,command:o,parsed:r,timedOut:i,isCanceled:S.isCanceled,killed:a.killed});if(!r.options.reject){return s}throw s}return{command:o,exitCode:0,stdout:f,stderr:p,all:d,failed:false,timedOut:false,isCanceled:false,killed:false}};const O=c(x);s._enoent.hookChildProcess(a,r.parsed);h(a,r.options.input);a.all=g(a,r.options);return v(a,O)};e.exports=O;e.exports.sync=((e,t,n)=>{const r=_(e,t,n);const s=E(e,t);b(r.options);let o;try{o=i.spawnSync(r.file,r.args,r.options)}catch(e){throw u({error:e,stdout:"",stderr:"",all:"",command:s,parsed:r,timedOut:false,isCanceled:false,killed:false})}const a=C(r.options,o.stdout,o.error);const c=C(r.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){const e=u({stdout:a,stderr:c,error:o.error,signal:o.signal,exitCode:o.status,command:s,parsed:r,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:false,killed:o.signal!==null});if(!r.options.reject){return e}throw e}return{command:s,exitCode:0,stdout:a,stderr:c,failed:false,timedOut:false,isCanceled:false,killed:false}});e.exports.command=((e,t)=>{const[n,...r]=T(e);return O(n,r,t)});e.exports.commandSync=((e,t)=>{const[n,...r]=T(e);return O.sync(n,r,t)});e.exports.node=((e,t,n={})=>{if(t&&!Array.isArray(t)&&typeof t==="object"){n=t;t=[]}const r=l.node(n);const{nodePath:i=process.execPath,nodeOptions:s=process.execArgv}=n;return O(i,[...s,e,...Array.isArray(t)?t:[]],{...n,stdin:undefined,stdout:undefined,stderr:undefined,stdio:r,shell:false})})},531:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getLogs=void 0;const i=r(n(599));const s=[];const o=100;const a=[];const c=new Map;const u=process.env.DEBUG?process.env.DEBUG+",":"";const l=i.default.skips.slice();const f=i.default.names.slice();function isEnabledByEnvVar(e){if(e[e.length-1]==="*"){return true}for(const t of l){if(t.test(e)){return false}}for(const t of f){if(t.test(e)){return true}}return false}function Debug(e){const t=i.default(e);a.push(e);i.default.enable(u+a.join(","));if(isEnabledByEnvVar(e)){c.set(e,true)}const n=(e,...n)=>{return t(e,...n)};n.log=console.error.bind(console);n.color=t.color;n.namespace=t.namespace;n.enabled=t.enabled;n.destroy=t.destroy;n.extend=t.extend;t.log=((...t)=>{s.push(t);if(s.length>o){s.shift()}if(c.has(e)){n.log(...t)}});return n}t.default=Debug;Debug.enable=(e=>{c.set(e,true)});Debug.enabled=(e=>c.has(e));function getLogs(e=7500){let t=s.map(e=>e.join("  ")).join("\n");if(t.length<e){return t}return t.slice(-e)}t.getLogs=getLogs},538:function(e,t,n){e.exports=isexe;isexe.sync=sync;var r=n(747);function isexe(e,t,n){r.stat(e,function(e,r){n(e,e?false:checkStat(r,t))})}function sync(e,t){return checkStat(r.statSync(e),t)}function checkStat(e,t){return e.isFile()&&checkMode(e,t)}function checkMode(e,t){var n=e.mode;var r=e.uid;var i=e.gid;var s=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var o=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var a=parseInt("100",8);var c=parseInt("010",8);var u=parseInt("001",8);var l=a|c;var f=n&u||n&c&&i===o||n&a&&r===s||n&l&&s===0;return f}},540:function(e){"use strict";const t=(e,t,n)=>{let r=e.indexOf(t);if(r===-1){return e}const i=t.length;let s=0;let o="";do{o+=e.substr(s,r-s)+t+n;s=r+i;r=e.indexOf(t,s)}while(r!==-1);o+=e.substr(s);return o};const n=(e,t,n,r)=>{let i=0;let s="";do{const o=e[r-1]==="\r";s+=e.substr(i,(o?r-1:r)-i)+t+(o?"\r\n":"\n")+n;i=r+1;r=e.indexOf("\n",i)}while(r!==-1);s+=e.substr(i);return s};e.exports={stringReplaceAll:t,stringEncaseCRLFWithFirstIndex:n}},544:function(e,t,n){const r=n(758);const i=n(984);const{mkdirpNative:s,mkdirpNativeSync:o}=n(51);const{mkdirpManual:a,mkdirpManualSync:c}=n(159);const{useNative:u,useNativeSync:l}=n(767);const f=(e,t)=>{e=i(e);t=r(t);return u(t)?s(e,t):a(e,t)};const p=(e,t)=>{e=i(e);t=r(t);return l(t)?o(e,t):c(e,t)};f.sync=p;f.native=((e,t)=>s(i(e),r(t)));f.manual=((e,t)=>a(i(e),r(t)));f.nativeSync=((e,t)=>o(i(e),r(t)));f.manualSync=((e,t)=>c(i(e),r(t)));e.exports=f},549:function(e){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},563:function(e){e.exports={name:"@prisma/client",version:"2.0.0",description:"Prisma Client is an auto-generated and type-safe query builder for Node.js & TypeScript that's tailored to your data.",keywords:["prisma2","prisma","client","query","database","sql","postgresql","mysql","sqlite","mariadb","typescript","orm","query-builder"],main:"index.js",types:"index.d.ts",license:"Apache-2.0",engines:{node:">=10"},scripts:{tsc:"tsc -d",build:"pnpm run cleanup && pnpm run tsc && pnpm run ncc:runtime && pnpm run ncc:generator && cp scripts/backup-index.js index.js && cp scripts/backup-index.d.ts index.d.ts &&  cp scripts/any-index.js runtime/index.d.ts",test:"jest",format:"prettier --write .",lint:"eslint --fix --ext .js,.ts .",download:"node scripts/download.js",generate:"node scripts/postinstall.js",postinstall:"node scripts/postinstall.js","ncc:runtime":"node scripts/build-runtime.js",cleanup:"rm -f index.d.ts && cp scripts/backup-index.js index.js && cp scripts/backup-index.d.ts index.d.ts","ncc:generator":"rm -rf generator-build && ncc build dist/generator.js -o generator-build --minify --source-map && rm -f generator-build/index.js.bak && chmod +x generator-build/index.js",prepare:'pnpm run cleanup && cp scripts/backup-index.js index.js && cp scripts/backup-index.d.ts index.d.ts && node scripts/download.js || echo ""',prepublishOnly:"pnpm run build"},prisma:{version:"latest"},files:["runtime","scripts","generator-build","index.js","index.d.ts"],devDependencies:{"@apexearth/copy":"1.4.5","@prisma/debug":"2.0.0","@prisma/engine-core":"2.0.0-1","@prisma/fetch-engine":"2.0.0","@prisma/generator-helper":"2.0.0","@prisma/get-platform":"2.0.0","@prisma/sdk":"2.0.0","@types/debug":"4.1.5","@types/fs-extra":"8.1.1","@types/jest":"25.2.3","@types/js-levenshtein":"1.1.0","@types/node":"12.12.43","@types/node-fetch":"2.5.7","@types/pg":"7.14.3","@typescript-eslint/eslint-plugin":"2.34.0","@typescript-eslint/parser":"2.34.0","@zeit/ncc":"0.22.3",arg:"4.1.3",benchmark:"2.1.4",chalk:"3.0.0",del:"5.1.0",dotenv:"8.2.0",eslint:"6.8.0","eslint-config-prettier":"6.11.0","eslint-plugin-eslint-comments":"3.2.0","eslint-plugin-jest":"23.13.2","eslint-plugin-prettier":"3.1.3",execa:"4.0.2","fast-clone":"1.5.13","fast-copy":"2.0.5","flat-map-polyfill":"0.3.8","fs-monkey":"1.0.1","get-own-enumerable-property-symbols":"3.0.2","get-port":"5.1.1",husky:"4.2.5","indent-string":"4.0.0","is-obj":"2.0.0","is-regexp":"2.1.0",jest:"25.5.4","js-levenshtein":"1.1.6",klona:"1.1.1","lint-staged":"10.2.7","make-dir":"3.1.0","node-fetch":"2.6.0","node-tcp-proxy":"0.0.15",packwatch:"2.0.0",pg:"7.18.2",pluralize:"8.0.0",prettier:"2.0.5",rimraf:"3.0.2","set-value":"3.0.2","sql-template-tag":"3.4.0","stacktrace-parser":"0.1.10","strip-ansi":"6.0.0","strip-indent":"3.0.0","ts-jest":"25.5.1","ts-loader":"6.2.2","ts-node":"8.10.2",typescript:"3.9.3"},peerDependencies:{"@prisma/cli":"*"},peerDependenciesMeta:{"@prisma/cli":{optional:true}},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,ts,css,json,md}":["prettier --write","git add"],"*.{js,ts}":["eslint"]},dependencies:{"pkg-up":"^3.1.0"}}},574:function(e){"use strict";const t=/ +/g;const n=(e,t=[])=>{if(!Array.isArray(t)){return e}return[e,...t].join(" ")};const r=(e,t,n)=>{if(n===0){return[t]}const r=e[e.length-1];if(r.endsWith("\\")){return[...e.slice(0,-1),`${r.slice(0,-1)} ${t}`]}return[...e,t]};const i=e=>{return e.trim().split(t).reduce(r,[])};e.exports={joinCommand:n,parseCommand:i}},582:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){function adopt(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())})};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getVersion=t.formatSchema=t.getConfig=t.getDMMF=void 0;const s=i(n(584));const o=i(n(520));const a=i(n(622));const c=i(n(922));const u=i(n(747));const l=n(669);const f=i(n(531));const p=n(8);const d=f.default("engineCommands");const m=l.promisify(u.default.unlink);const h=1e3*1e3*1e3;a.default.join(__dirname,"../query-engine-darwin");a.default.join(__dirname,"../introspection-engine-darwin");a.default.join(__dirname,"../query-engine-debian-openssl-1.0.x");a.default.join(__dirname,"../introspection-engine-debian-openssl-1.0.x");a.default.join(__dirname,"../query-engine-debian-openssl-1.1.x");a.default.join(__dirname,"../introspection-engine-debian-openssl-1.1.x");a.default.join(__dirname,"../query-engine-rhel-openssl-1.0.x");a.default.join(__dirname,"../introspection-engine-rhel-openssl-1.0.x");a.default.join(__dirname,"../query-engine-rhel-openssl-1.0.x");a.default.join(__dirname,"../introspection-engine-rhel-openssl-1.0.x");function getDMMF({datamodel:e,cwd:t=process.cwd(),prismaPath:n,datamodelPath:i,retry:a=4}){return r(this,void 0,void 0,function*(){n=n||(yield p.resolveBinary("query-engine"));let r;try{let u=i;if(!u){try{u=yield c.default(e)}catch(e){throw new Error(s.default.redBright.bold("Get DMMF ")+"unable to write temp data model path")}}const l={cwd:t,env:Object.assign(Object.assign(Object.assign({},process.env),{PRISMA_DML_PATH:u,RUST_BACKTRACE:"1"}),process.env.NO_COLOR?{}:{CLICOLOR_FORCE:"1"}),maxBuffer:h};r=yield o.default(n,["--enable-raw-queries","cli","dmmf"],l);if(!i){yield m(u)}if(r.stdout.includes("Please wait until the")&&a>0){d('Retrying after "Please wait until"');yield new Promise(e=>setTimeout(e,5e3));return getDMMF({datamodel:e,cwd:t,prismaPath:n,datamodelPath:i,retry:a-1})}const f=r.stdout.indexOf("{");const p=r.stdout.slice(f);return JSON.parse(p)}catch(o){d("getDMMF failed",o);if(o.message.includes("Command failed with exit code 26 (ETXTBSY)")&&a>0){yield new Promise(e=>setTimeout(e,500));d("Retrying after ETXTBSY");return getDMMF({datamodel:e,cwd:t,prismaPath:n,datamodelPath:i,retry:a-1})}const c=o.stderr||o.stdout;if(c){let e;try{e=JSON.parse(c)}catch(e){}let t=e&&e.message||c;if(t.includes("debian-openssl-1.1.x: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory")||t.includes("debian-openssl-1.0.x: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory")){t+=`\n${s.default.green(`Your linux installation misses the openssl package. You can install it like so:\n`)}${s.default.green.bold("apt-get -qy update && apt-get -qy install openssl")}`}throw new Error(s.default.redBright.bold("Schema parsing\n")+t)}if(o.message.includes("in JSON at position")){throw new Error(`Problem while parsing the query engine response at ${n}. ${r.stdout}\n${o.stack}`)}throw new Error(o)}})}t.getDMMF=getDMMF;function getConfig({datamodel:e,cwd:t=process.cwd(),prismaPath:n,datamodelPath:i,ignoreEnvVarErrors:a}){return r(this,void 0,void 0,function*(){n=n||(yield p.resolveBinary("query-engine"));let r=i;if(!r){try{r=yield c.default(e)}catch(e){throw new Error(s.default.redBright.bold("Get DMMF ")+"unable to write temp data model path")}}const u=a?["--ignoreEnvVarErrors"]:[];try{const e=yield o.default(n,["cli","get-config",...u],{cwd:t,env:Object.assign(Object.assign({},process.env),{PRISMA_DML_PATH:r,RUST_BACKTRACE:"1"}),maxBuffer:h});if(!i){yield m(r)}return JSON.parse(e.stdout)}catch(e){if(e.stderr){throw new Error(s.default.redBright.bold("Get config ")+e.stderr)}if(e.stdout){throw new Error(s.default.redBright.bold("Get config ")+e.stdout)}throw new Error(s.default.redBright.bold("Get config ")+e)}})}t.getConfig=getConfig;function formatSchema({schemaPath:e}){return r(this,void 0,void 0,function*(){if(!u.default.existsSync(e)){throw new Error(`Schema at ${e} does not exist.`)}const t=yield p.resolveBinary("prisma-fmt");const n=!process.env.NO_COLOR&&process.stdout.isTTY;const r={env:Object.assign(Object.assign(Object.assign({},process.env),{RUST_BACKTRACE:"1"}),n?{CLICOLOR_FORCE:"1"}:{}),maxBuffer:h};const i=yield o.default(t,["format","-i",e],r);return i.stdout})}t.formatSchema=formatSchema;function getVersion(e){return r(this,void 0,void 0,function*(){e=e||(yield p.resolveBinary("query-engine"));const t=yield o.default(e,["--version"],{env:Object.assign({},process.env),maxBuffer:h});return t.stdout})}t.getVersion=getVersion},583:function(e,t,n){"use strict";const r=n(129);const i=n(877);const s=n(709);function spawn(e,t,n){const o=i(e,t,n);const a=r.spawn(o.command,o.args,o.options);s.hookChildProcess(a,o);return a}function spawnSync(e,t,n){const o=i(e,t,n);const a=r.spawnSync(o.command,o.args,o.options);a.error=a.error||s.verifyENOENTSync(a.status,o);return a}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=i;e.exports._enoent=s},584:function(e,t,n){"use strict";const r=n(96);const{stdout:i,stderr:s}=n(128);const{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:a}=n(540);const c=["ansi","ansi","ansi256","ansi16m"];const u=Object.create(null);const l=(e,t={})=>{if(t.level>3||t.level<0){throw new Error("The `level` option should be an integer from 0 to 3")}const n=i?i.level:0;e.level=t.level===undefined?n:t.level};class ChalkClass{constructor(e){return f(e)}}const f=e=>{const t={};l(t,e);t.template=((...e)=>b(t.template,...e));Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=(()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")});t.template.Instance=ChalkClass;return t.template};function Chalk(e){return f(e)}for(const[e,t]of Object.entries(r)){u[e]={get(){const n=h(this,m(t.open,t.close,this._styler),this._isEmpty);Object.defineProperty(this,e,{value:n});return n}}}u.visible={get(){const e=h(this,this._styler,true);Object.defineProperty(this,"visible",{value:e});return e}};const p=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of p){u[e]={get(){const{level:t}=this;return function(...n){const i=m(r.color[c[t]][e](...n),r.color.close,this._styler);return h(this,i,this._isEmpty)}}}}for(const e of p){const t="bg"+e[0].toUpperCase()+e.slice(1);u[t]={get(){const{level:t}=this;return function(...n){const i=m(r.bgColor[c[t]][e](...n),r.bgColor.close,this._styler);return h(this,i,this._isEmpty)}}}}const d=Object.defineProperties(()=>{},{...u,level:{enumerable:true,get(){return this._generator.level},set(e){this._generator.level=e}}});const m=(e,t,n)=>{let r;let i;if(n===undefined){r=e;i=t}else{r=n.openAll+e;i=t+n.closeAll}return{open:e,close:t,openAll:r,closeAll:i,parent:n}};const h=(e,t,n)=>{const r=(...e)=>{return y(r,e.length===1?""+e[0]:e.join(" "))};r.__proto__=d;r._generator=e;r._styler=t;r._isEmpty=n;return r};const y=(e,t)=>{if(e.level<=0||!t){return e._isEmpty?"":t}let n=e._styler;if(n===undefined){return t}const{openAll:r,closeAll:i}=n;if(t.indexOf("")!==-1){while(n!==undefined){t=o(t,n.close,n.open);n=n.parent}}const s=t.indexOf("\n");if(s!==-1){t=a(t,i,r,s)}return r+t+i};let g;const b=(e,...t)=>{const[r]=t;if(!Array.isArray(r)){return t.join(" ")}const i=t.slice(1);const s=[r.raw[0]];for(let e=1;e<r.length;e++){s.push(String(i[e-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[e]))}if(g===undefined){g=n(479)}return g(e,s.join(""))};Object.defineProperties(Chalk.prototype,u);const v=Chalk();v.supportsColor=i;v.stderr=Chalk({level:s?s.level:0});v.stderr.supportsColor=s;v.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};e.exports=v},589:function(e,t,n){var r=n(413).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,n){if(!(this instanceof ReadStream))return new ReadStream(t,n);r.call(this);var i=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;n=n||{};var s=Object.keys(n);for(var o=0,a=s.length;o<a;o++){var c=s[o];this[c]=n[c]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick(function(){i._read()});return}e.open(this.path,this.flags,this.mode,function(e,t){if(e){i.emit("error",e);i.readable=false;return}i.fd=t;i.emit("open",t);i._read()})}function WriteStream(t,n){if(!(this instanceof WriteStream))return new WriteStream(t,n);r.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;n=n||{};var i=Object.keys(n);for(var s=0,o=i.length;s<o;s++){var a=i[s];this[a]=n[a]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},593:function(e){"use strict";const t=(e,...t)=>new Promise(n=>{n(e(...t))});e.exports=t;e.exports.default=t},599:function(e,t,n){if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=n(45)}else{e.exports=n(264)}},602:function(e){"use strict";e.exports=clone;function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var t={__proto__:e.__proto__};else var t=Object.create(null);Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))});return t}},612:function(e,t,n){var r=n(121);var i=n(392);var s=n(747);var o=function(){};var a=/^v?\.0/.test(process.version);var c=function(e){return typeof e==="function"};var u=function(e){if(!a)return false;if(!s)return false;return(e instanceof(s.ReadStream||o)||e instanceof(s.WriteStream||o))&&c(e.close)};var l=function(e){return e.setHeader&&c(e.abort)};var f=function(e,t,n,s){s=r(s);var a=false;e.on("close",function(){a=true});i(e,{readable:t,writable:n},function(e){if(e)return s(e);a=true;s()});var f=false;return function(t){if(a)return;if(f)return;f=true;if(u(e))return e.close(o);if(l(e))return e.abort();if(c(e.destroy))return e.destroy();s(t||new Error("stream was destroyed"))}};var p=function(e){e()};var d=function(e,t){return e.pipe(t)};var m=function(){var e=Array.prototype.slice.call(arguments);var t=c(e[e.length-1]||o)&&e.pop()||o;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var n;var r=e.map(function(i,s){var o=s<e.length-1;var a=s>0;return f(i,o,a,function(e){if(!n)n=e;if(e)r.forEach(p);if(o)return;r.forEach(p);t(n)})});return e.reduce(d)};e.exports=m},614:function(e){e.exports=require("events")},619:function(e,t,n){"use strict";const{signalsByName:r}=n(629);const i=({timedOut:e,timeout:t,errorCode:n,signal:r,signalDescription:i,exitCode:s,isCanceled:o})=>{if(e){return`timed out after ${t} milliseconds`}if(o){return"was canceled"}if(n!==undefined){return`failed with ${n}`}if(r!==undefined){return`was killed with ${r} (${i})`}if(s!==undefined){return`failed with exit code ${s}`}return"failed"};const s=({stdout:e,stderr:t,all:n,error:s,signal:o,exitCode:a,command:c,timedOut:u,isCanceled:l,killed:f,parsed:{options:{timeout:p}}})=>{a=a===null?undefined:a;o=o===null?undefined:o;const d=o===undefined?undefined:r[o].description;const m=s&&s.code;const h=i({timedOut:u,timeout:p,errorCode:m,signal:o,signalDescription:d,exitCode:a,isCanceled:l});const y=`Command ${h}: ${c}`;const g=s instanceof Error?`${y}\n${s.message}`:y;const b=[g,t,e].filter(Boolean).join("\n");if(s instanceof Error){s.originalMessage=s.message;s.message=b}else{s=new Error(b)}s.shortMessage=g;s.command=c;s.exitCode=a;s.signal=o;s.signalDescription=d;s.stdout=e;s.stderr=t;if(n!==undefined){s.all=n}if("bufferedData"in s){delete s.bufferedData}s.failed=true;s.timedOut=Boolean(u);s.isCanceled=l;s.killed=f&&!u;return s};e.exports=s},622:function(e){e.exports=require("path")},626:function(e){"use strict";const t=e.exports;e.exports.default=t;const n="[";const r="]";const i="";const s=";";const o=process.env.TERM_PROGRAM==="Apple_Terminal";t.cursorTo=((e,t)=>{if(typeof e!=="number"){throw new TypeError("The `x` argument is required")}if(typeof t!=="number"){return n+(e+1)+"G"}return n+(t+1)+";"+(e+1)+"H"});t.cursorMove=((e,t)=>{if(typeof e!=="number"){throw new TypeError("The `x` argument is required")}let r="";if(e<0){r+=n+-e+"D"}else if(e>0){r+=n+e+"C"}if(t<0){r+=n+-t+"A"}else if(t>0){r+=n+t+"B"}return r});t.cursorUp=((e=1)=>n+e+"A");t.cursorDown=((e=1)=>n+e+"B");t.cursorForward=((e=1)=>n+e+"C");t.cursorBackward=((e=1)=>n+e+"D");t.cursorLeft=n+"G";t.cursorSavePosition=o?"7":n+"s";t.cursorRestorePosition=o?"8":n+"u";t.cursorGetPosition=n+"6n";t.cursorNextLine=n+"E";t.cursorPrevLine=n+"F";t.cursorHide=n+"?25l";t.cursorShow=n+"?25h";t.eraseLines=(e=>{let n="";for(let r=0;r<e;r++){n+=t.eraseLine+(r<e-1?t.cursorUp():"")}if(e){n+=t.cursorLeft}return n});t.eraseEndLine=n+"K";t.eraseStartLine=n+"1K";t.eraseLine=n+"2K";t.eraseDown=n+"J";t.eraseUp=n+"1J";t.eraseScreen=n+"2J";t.scrollUp=n+"S";t.scrollDown=n+"T";t.clearScreen="c";t.clearTerminal=process.platform==="win32"?`${t.eraseScreen}${n}0f`:`${t.eraseScreen}${n}3J${n}H`;t.beep=i;t.link=((e,t)=>{return[r,"8",s,s,t,i,e,r,"8",s,s,i].join("")});t.image=((e,t={})=>{let n=`${r}1337;File=inline=1`;if(t.width){n+=`;width=${t.width}`}if(t.height){n+=`;height=${t.height}`}if(t.preserveAspectRatio===false){n+=";preserveAspectRatio=0"}return n+":"+e.toString("base64")+i});t.iTerm={setCwd:(e=process.cwd())=>`${r}50;CurrentDir=${e}${i}`,annotation:(e,t={})=>{let n=`${r}1337;`;const s=typeof t.x!=="undefined";const o=typeof t.y!=="undefined";if((s||o)&&!(s&&o&&typeof t.length!=="undefined")){throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined")}e=e.replace(/\|/g,"");n+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=";if(t.length>0){n+=(s?[e,t.length,t.x,t.y]:[t.length,e]).join("|")}else{n+=e}return n+i}}},629:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.signalsByNumber=t.signalsByName=void 0;var r=n(87);var i=n(503);var s=n(297);const o=function(){const e=(0,i.getSignals)();return e.reduce(a,{})};const a=function(e,{name:t,number:n,description:r,supported:i,action:s,forced:o,standard:a}){return{...e,[t]:{name:t,number:n,description:r,supported:i,action:s,forced:o,standard:a}}};const c=o();t.signalsByName=c;const u=function(){const e=(0,i.getSignals)();const t=s.SIGRTMAX+1;const n=Array.from({length:t},(t,n)=>l(n,e));return Object.assign({},...n)};const l=function(e,t){const n=f(e,t);if(n===undefined){return{}}const{name:r,description:i,supported:s,action:o,forced:a,standard:c}=n;return{[e]:{name:r,number:e,description:i,supported:s,action:o,forced:a,standard:c}}};const f=function(e,t){const n=t.find(({name:t})=>r.constants.signals[t]===e);if(n!==undefined){return n}return t.find(t=>t.number===e)};const p=u();t.signalsByNumber=p},631:function(e){"use strict";e.exports=/^#!(.*)/},633:function(e,t,n){"use strict";const r=n(932);const i=new WeakMap;const s=(e,t={})=>{if(typeof e!=="function"){throw new TypeError("Expected a function")}let n;let s=false;let o=0;const a=e.displayName||e.name||"<anonymous>";const c=function(...r){i.set(c,++o);if(s){if(t.throw===true){throw new Error(`Function \`${a}\` can only be called once`)}return n}s=true;n=e.apply(this,r);e=null;return n};r(c,e);i.set(c,o);return c};e.exports=s;e.exports.default=s;e.exports.callCount=(e=>{if(!i.has(e)){throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`)}return i.get(e)})},635:function(e){(function(t,n){if(true){e.exports=n()}else{}})(this,function(){var e=[];var t=[];var n={};var r={};var i={};function sanitizeRule(e){if(typeof e==="string"){return new RegExp("^"+e+"$","i")}return e}function restoreCase(e,t){if(e===t)return t;if(e===e.toLowerCase())return t.toLowerCase();if(e===e.toUpperCase())return t.toUpperCase();if(e[0]===e[0].toUpperCase()){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}return t.toLowerCase()}function interpolate(e,t){return e.replace(/\$(\d{1,2})/g,function(e,n){return t[n]||""})}function replace(e,t){return e.replace(t[0],function(n,r){var i=interpolate(t[1],arguments);if(n===""){return restoreCase(e[r-1],i)}return restoreCase(n,i)})}function sanitizeWord(e,t,r){if(!e.length||n.hasOwnProperty(e)){return t}var i=r.length;while(i--){var s=r[i];if(s[0].test(t))return replace(t,s)}return t}function replaceWord(e,t,n){return function(r){var i=r.toLowerCase();if(t.hasOwnProperty(i)){return restoreCase(r,i)}if(e.hasOwnProperty(i)){return restoreCase(r,e[i])}return sanitizeWord(i,r,n)}}function checkWord(e,t,n,r){return function(r){var i=r.toLowerCase();if(t.hasOwnProperty(i))return true;if(e.hasOwnProperty(i))return false;return sanitizeWord(i,i,n)===i}}function pluralize(e,t,n){var r=t===1?pluralize.singular(e):pluralize.plural(e);return(n?t+" ":"")+r}pluralize.plural=replaceWord(i,r,e);pluralize.isPlural=checkWord(i,r,e);pluralize.singular=replaceWord(r,i,t);pluralize.isSingular=checkWord(r,i,t);pluralize.addPluralRule=function(t,n){e.push([sanitizeRule(t),n])};pluralize.addSingularRule=function(e,n){t.push([sanitizeRule(e),n])};pluralize.addUncountableRule=function(e){if(typeof e==="string"){n[e.toLowerCase()]=true;return}pluralize.addPluralRule(e,"$0");pluralize.addSingularRule(e,"$0")};pluralize.addIrregularRule=function(e,t){t=t.toLowerCase();e=e.toLowerCase();i[e]=t;r[t]=e};[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(e){return pluralize.addIrregularRule(e[0],e[1])});[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return pluralize.addPluralRule(e[0],e[1])});[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return pluralize.addSingularRule(e[0],e[1])});["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(pluralize.addUncountableRule);return pluralize})},638:function(e){var t=1e3;var n=t*60;var r=n*60;var i=r*24;var s=i*7;var o=i*365.25;e.exports=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0){return parse(e)}else if(n==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var c=parseFloat(a[1]);var u=(a[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*s;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var s=Math.abs(e);if(s>=i){return Math.round(e/i)+"d"}if(s>=r){return Math.round(e/r)+"h"}if(s>=n){return Math.round(e/n)+"m"}if(s>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var s=Math.abs(e);if(s>=i){return plural(e,s,i,"day")}if(s>=r){return plural(e,s,r,"hour")}if(s>=n){return plural(e,s,n,"minute")}if(s>=t){return plural(e,s,t,"second")}return e+" ms"}function plural(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+" "+r+(i?"s":"")}},645:function(e,t,n){"use strict";const r=n(747);const i=n(622);const{promisify:s}=n(669);const o=n(311);const a=o.satisfies(process.version,">=10.12.0");const c=e=>{if(process.platform==="win32"){const t=/[<>:"|?*]/.test(e.replace(i.parse(e).root,""));if(t){const t=new Error(`Path contains invalid characters: ${e}`);t.code="EINVAL";throw t}}};const u=e=>{const t={mode:511,fs:r};return{...t,...e}};const l=e=>{const t=new Error(`operation not permitted, mkdir '${e}'`);t.code="EPERM";t.errno=-4048;t.path=e;t.syscall="mkdir";return t};const f=async(e,t)=>{c(e);t=u(t);const n=s(t.fs.mkdir);const o=s(t.fs.stat);if(a&&t.fs.mkdir===r.mkdir){const r=i.resolve(e);await n(r,{mode:t.mode,recursive:true});return r}const f=async e=>{try{await n(e,t.mode);return e}catch(t){if(t.code==="EPERM"){throw t}if(t.code==="ENOENT"){if(i.dirname(e)===e){throw l(e)}if(t.message.includes("null bytes")){throw t}await f(i.dirname(e));return f(e)}try{const n=await o(e);if(!n.isDirectory()){throw new Error("The path is not a directory")}}catch(e){throw t}return e}};return f(i.resolve(e))};e.exports=f;e.exports.sync=((e,t)=>{c(e);t=u(t);if(a&&t.fs.mkdirSync===r.mkdirSync){const n=i.resolve(e);r.mkdirSync(n,{mode:t.mode,recursive:true});return n}const n=e=>{try{t.fs.mkdirSync(e,t.mode)}catch(r){if(r.code==="EPERM"){throw r}if(r.code==="ENOENT"){if(i.dirname(e)===e){throw l(e)}if(r.message.includes("null bytes")){throw r}n(i.dirname(e));return n(e)}try{if(!t.fs.statSync(e).isDirectory()){throw new Error("The path is not a directory")}}catch(e){throw r}}return e};return n(i.resolve(e))})},658:function(e,t,n){"use strict";var r=n(420);var i=_interopRequireDefault(r);var s=n(287);var o=_interopRequireDefault(s);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}if(!Object.prototype.hasOwnProperty.call(Array.prototype,"flatten")){Array.prototype.flatten=function flatten(e){var t=Object(this);var n=(0,i.default)(t,this.length);var r=e!==undefined?Number(e):Infinity;(0,o.default)(n,t,0,r);return n.filter(function(e){return e!==undefined})}}},667:function(e){"use strict";e.exports=function(){function _min(e,t,n,r,i){return e<t||n<t?e>n?n+1:e+1:r===i?t:t+1}return function(e,t){if(e===t){return 0}if(e.length>t.length){var n=e;e=t;t=n}var r=e.length;var i=t.length;while(r>0&&e.charCodeAt(r-1)===t.charCodeAt(i-1)){r--;i--}var s=0;while(s<r&&e.charCodeAt(s)===t.charCodeAt(s)){s++}r-=s;i-=s;if(r===0||i<3){return i}var o=0;var a;var c;var u;var l;var f;var p;var d;var m;var h;var y;var g;var b;var v=[];for(a=0;a<r;a++){v.push(a+1);v.push(e.charCodeAt(s+a))}var w=v.length-1;for(;o<i-3;){h=t.charCodeAt(s+(c=o));y=t.charCodeAt(s+(u=o+1));g=t.charCodeAt(s+(l=o+2));b=t.charCodeAt(s+(f=o+3));p=o+=4;for(a=0;a<w;a+=2){d=v[a];m=v[a+1];c=_min(d,c,u,h,m);u=_min(c,u,l,y,m);l=_min(u,l,f,g,m);p=_min(l,f,p,b,m);v[a]=p;f=l;l=u;u=c;c=d}}for(;o<i;){h=t.charCodeAt(s+(c=o));p=++o;for(a=0;a<w;a+=2){d=v[a];v[a]=p=_min(d,c,p,h,v[a+1]);c=d}}return p}}()},668:function(e){"use strict";var t=["Bytes","kB","MB","GB","TB","PB","EB"];e.exports=function(e,n,r,i,s){if(typeof n==="object"){var o=n;n=o.nospace;r=o.one;i=o.places||1;s=o.numOnly}else{i=i||1}var a;for(var c=0;c<t.length;++c){var u=t[c];if(r){u=u.slice(0,1)}var l=Math.pow(1024,c);var f;if(e>=l){f=String((e/l).toFixed(i));if(f.indexOf(".0")===f.length-2){f=f.slice(0,-2)}a=f+(n?"":" ")+u}}if(!a){var p=r?t[0].slice(0,1):t[0];a="0"+(n?"":" ")+p}if(s){a=Number.parseFloat(a)}return a}},669:function(e){e.exports=require("util")},679:function(e,t,n){var r=n(417);e.exports=function nodeRNG(){return r.randomBytes(16)}},687:function(e,t,n){const r=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";const i=n(622);const s=r?";":":";const o=n(766);const a=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"});const c=(e,t)=>{const n=t.colon||s;const i=e.match(/\//)||r&&e.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(n)];const o=r?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"";const a=r?o.split(n):[""];if(r){if(e.indexOf(".")!==-1&&a[0]!=="")a.unshift("")}return{pathEnv:i,pathExt:a,pathExtExe:o}};const u=(e,t,n)=>{if(typeof t==="function"){n=t;t={}}if(!t)t={};const{pathEnv:r,pathExt:s,pathExtExe:u}=c(e,t);const l=[];const f=n=>new Promise((s,o)=>{if(n===r.length)return t.all&&l.length?s(l):o(a(e));const c=r[n];const u=/^".*"$/.test(c)?c.slice(1,-1):c;const f=i.join(u,e);const d=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;s(p(d,n,0))});const p=(e,n,r)=>new Promise((i,a)=>{if(r===s.length)return i(f(n+1));const c=s[r];o(e+c,{pathExt:u},(s,o)=>{if(!s&&o){if(t.all)l.push(e+c);else return i(e+c)}return i(p(e,n,r+1))})});return n?f(0).then(e=>n(null,e),n):f(0)};const l=(e,t)=>{t=t||{};const{pathEnv:n,pathExt:r,pathExtExe:s}=c(e,t);const u=[];for(let a=0;a<n.length;a++){const c=n[a];const l=/^".*"$/.test(c)?c.slice(1,-1):c;const f=i.join(l,e);const p=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;for(let e=0;e<r.length;e++){const n=p+r[e];try{const e=o.sync(n,{pathExt:s});if(e){if(t.all)u.push(n);else return n}}catch(e){}}}if(t.all&&u.length)return u;if(t.nothrow)return null;throw a(e)};e.exports=u;u.sync=l},704:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.uniqueBy=void 0;function uniqueBy(e,t){const n={};for(const r of e){const e=t(r);if(!n[e]){n[e]=r}}return Object.values(n)}t.uniqueBy=uniqueBy},707:function(e,t,n){const r=n(899);const i=n(902);const s={};const o=Object.keys(r);function wrapRaw(e){const t=function(...t){const n=t[0];if(n===undefined||n===null){return n}if(n.length>1){t=n}return e(t)};if("conversion"in e){t.conversion=e.conversion}return t}function wrapRounded(e){const t=function(...t){const n=t[0];if(n===undefined||n===null){return n}if(n.length>1){t=n}const r=e(t);if(typeof r==="object"){for(let e=r.length,t=0;t<e;t++){r[t]=Math.round(r[t])}}return r};if("conversion"in e){t.conversion=e.conversion}return t}o.forEach(e=>{s[e]={};Object.defineProperty(s[e],"channels",{value:r[e].channels});Object.defineProperty(s[e],"labels",{value:r[e].labels});const t=i(e);const n=Object.keys(t);n.forEach(n=>{const r=t[n];s[e][n]=wrapRounded(r);s[e][n].raw=wrapRaw(r)})});e.exports=s},708:function(e,t,n){"use strict";const r=n(743);e.exports=(async({cwd:e}={})=>r("package.json",{cwd:e}));e.exports.sync=(({cwd:e}={})=>r.sync("package.json",{cwd:e}))},709:function(e){"use strict";const t=process.platform==="win32";function notFoundError(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function hookChildProcess(e,n){if(!t){return}const r=e.emit;e.emit=function(t,i){if(t==="exit"){const t=verifyENOENT(i,n,"spawn");if(t){return r.call(e,"error",t)}}return r.apply(e,arguments)}}function verifyENOENT(e,n){if(t&&e===1&&!n.file){return notFoundError(n.original,"spawn")}return null}function verifyENOENTSync(e,n){if(t&&e===1&&!n.file){return notFoundError(n.original,"spawnSync")}return null}e.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},715:function(__unusedmodule,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:true});exports.generateClient=exports.buildClient=exports.DenylistError=void 0;const copy_1=__importDefault(__webpack_require__(836));const debug_1=__importDefault(__webpack_require__(531));const fs_1=__importDefault(__webpack_require__(747));const make_dir_1=__importDefault(__webpack_require__(645));const path_1=__importDefault(__webpack_require__(622));const chalk_1=__importDefault(__webpack_require__(584));const util_1=__webpack_require__(669);const getDMMF_1=__webpack_require__(918);const resolveDatasources_1=__webpack_require__(11);const extractSqliteSources_1=__webpack_require__(23);const TSClient_1=__webpack_require__(781);const engineCommands_1=__webpack_require__(582);const pkg_up_1=__importDefault(__webpack_require__(708));const debug=debug_1.default("generateClient");debug.log=console.log.bind(console);const remove=util_1.promisify(fs_1.default.unlink);const writeFile=util_1.promisify(fs_1.default.writeFile);const exists=util_1.promisify(fs_1.default.exists);const copyFile=util_1.promisify(fs_1.default.copyFile);const stat=util_1.promisify(fs_1.default.stat);class DenylistError extends Error{constructor(e){super(e);this.name="DenylistError";this.stack=undefined}}exports.DenylistError=DenylistError;async function buildClient({datamodel:e,schemaDir:t=process.cwd(),runtimePath:n="@prisma/client/runtime",browser:r=false,binaryPaths:i,outputDir:s,generator:o,dmmf:a,datasources:c,engineVersion:u,clientVersion:l}){const f=getDMMF_1.getPrismaClientDMMF(a);const p=new TSClient_1.TSClient({document:f,runtimePath:n,browser:r,datasources:resolveDatasources_1.resolveDatasources(c,t,s),sqliteDatasourceOverrides:extractSqliteSources_1.extractSqliteSources(e,t,s),generator:o,platforms:Object.keys(i.queryEngine),schemaDir:t,outputDir:s,clientVersion:l,engineVersion:u});const d={"index.d.ts":TSClient_1.TS(p),"index.js":TSClient_1.JS(p)};return{fileMap:d,prismaClientDmmf:f}}exports.buildClient=buildClient;async function getDotPrismaDir(e){var t;if(process.env.INIT_CWD&&process.env.npm_lifecycle_event==="postinstall"&&!((t=process.env.PWD)===null||t===void 0?void 0:t.includes(".pnpm"))){if(fs_1.default.existsSync(path_1.default.join(process.env.INIT_CWD,"package.json"))){return path_1.default.join(process.env.INIT_CWD,"node_modules/.prisma/client")}const e=await pkg_up_1.default({cwd:process.env.INIT_CWD});if(e){return path_1.default.join(path_1.default.dirname(e),"node_modules/.prisma/client")}}return path_1.default.join(e,"../../.prisma/client")}async function generateClient({datamodel:datamodel,datamodelPath:datamodelPath,schemaDir:schemaDir=(datamodelPath?path_1.default.dirname(datamodelPath):process.cwd()),outputDir:outputDir,transpile:transpile,runtimePath:runtimePath,browser:browser,generator:generator,dmmf:dmmf,datasources:datasources,binaryPaths:binaryPaths,testMode:testMode,copyRuntime:copyRuntime,clientVersion:clientVersion,engineVersion:engineVersion}){const useDotPrisma=testMode?!runtimePath:!(generator===null||generator===void 0?void 0:generator.isCustomOutput);runtimePath=runtimePath||(useDotPrisma?"@prisma/client/runtime":"./runtime");const finalOutputDir=useDotPrisma?await getDotPrismaDir(outputDir):outputDir;debug({finalOutputDir:finalOutputDir,runtimePath:runtimePath});if(testMode){debug_1.default.enable("generateClient")}const{prismaClientDmmf:prismaClientDmmf,fileMap:fileMap}=await buildClient({datamodel:datamodel,datamodelPath:datamodelPath,schemaDir:schemaDir,transpile:transpile,runtimePath:runtimePath,browser:browser,outputDir:finalOutputDir,generator:generator,dmmf:dmmf,datasources:datasources,binaryPaths:binaryPaths,clientVersion:clientVersion,engineVersion:engineVersion});const denylistsErrors=validateDmmfAgainstDenylists(prismaClientDmmf);if(denylistsErrors){let e=`${chalk_1.default.redBright.bold("Error: ")}The schema at "${datamodelPath}" contains reserved keywords.\n       Rename the following items:`;for(const t of denylistsErrors){e+="\n         - "+t.message}throw new DenylistError(e)}await make_dir_1.default(finalOutputDir);await make_dir_1.default(path_1.default.join(outputDir,"runtime"));await Promise.all(Object.entries(fileMap).map(async([e,t])=>{const n=path_1.default.join(finalOutputDir,e);if(await exists(n)){await remove(n)}await writeFile(n,t)}));const runtimeSourceDir=testMode?eval(`require('path').join(__dirname, '../../runtime')`):eval(`require('path').join(__dirname, '../runtime')`);if(copyRuntime||!path_1.default.resolve(outputDir).endsWith(`@prisma${path_1.default.sep}client`)){const e=path_1.default.join(outputDir,"runtime");await make_dir_1.default(e);if(runtimeSourceDir!==e){await copy_1.default({from:runtimeSourceDir,to:e,recursive:true,parallelJobs:process.platform==="win32"?1:20,overwrite:true})}}if(!binaryPaths.queryEngine){throw new Error(`Prisma Client needs \`queryEngine\` in the \`binaryPaths\` object.`)}if(transpile){for(const e of Object.values(binaryPaths.queryEngine)){const t=path_1.default.basename(e);const n=path_1.default.join(finalOutputDir,t);const[r,i]=await Promise.all([fileSize(e),fileSize(n)]);if(!i){await copyFile(e,n);continue}if(i&&r&&i!==r){await copyFile(e,n);continue}const[s,o]=await Promise.all([engineCommands_1.getVersion(e).catch(()=>null),engineCommands_1.getVersion(n).catch(()=>null)]);if(s&&o&&s===o){}else{await copyFile(e,n)}}}const datamodelTargetPath=path_1.default.join(finalOutputDir,"schema.prisma");if(datamodelPath!==datamodelTargetPath){await copyFile(datamodelPath,datamodelTargetPath)}const packageJsonTargetPath=path_1.default.join(finalOutputDir,"package.json");const pkgJson=JSON.stringify({name:".prisma/client",main:"index.js",types:"index.d.ts"},null,2);await writeFile(packageJsonTargetPath,pkgJson);if(process.env.INIT_CWD){const e=path_1.default.join(process.env.INIT_CWD,"node_modules/.prisma/client");if(finalOutputDir!==e){await copy_1.default({from:finalOutputDir,to:e,recursive:true,parallelJobs:process.platform==="win32"?1:20,overwrite:true})}}if(transpile){await writeFile(path_1.default.join(outputDir,"runtime/index.d.ts"),backup)}const proxyIndexJsPath=path_1.default.join(outputDir,"index.js");const proxyIndexDTSPath=path_1.default.join(outputDir,"index.d.ts");if(!fs_1.default.existsSync(proxyIndexJsPath)){await copyFile(path_1.default.join(__dirname,"../../index.js"),proxyIndexJsPath)}if(!fs_1.default.existsSync(proxyIndexDTSPath)){await copyFile(path_1.default.join(__dirname,"../../index.d.ts"),proxyIndexDTSPath)}return{prismaClientDmmf:prismaClientDmmf,fileMap:fileMap}}exports.generateClient=generateClient;const backup=`/// <reference types="node" />\n\nexport { DMMF } from './dmmf-types'\nimport { inspect } from "util";\nexport declare type Value = string | number | boolean | object | null | undefined;\nexport declare type RawValue = Value | Sql;\n\n/**\n * A SQL instance can be nested within each other to build SQL strings.\n */\nexport declare class Sql {\n    values: Value[];\n    strings: string[];\n    rawStrings: ReadonlyArray<string>;\n    rawValues: ReadonlyArray<RawValue>;\n    constructor(rawStrings: ReadonlyArray<string>, rawValues: ReadonlyArray<RawValue>);\n    readonly text: string;\n    readonly sql: string;\n    [inspect.custom](): {\n        text: string;\n        sql: string;\n        values: Value[];\n    };\n}\n/**\n * Create a SQL query for a list of values.\n */\nexport declare function join(values: RawValue[], separator?: string): Sql;\n/**\n * Create raw SQL statement.\n */\nexport declare function raw(value: string): Sql;\n/**\n * Placeholder value for "no text".\n */\nexport declare const empty: Sql;\n/**\n * Create a SQL object from a template string.\n */\nexport declare function sqltag(strings: TemplateStringsArray, ...values: RawValue[]): Sql;\n/**\n * Standard \`sql\` tag.\n */\n\n\nexport declare var Engine: any\nexport declare type Engine = any\n\n// export declare var DMMF: any\n// export declare type DMMF = any\n\nexport declare var DMMFClass: any\nexport declare type DMMFClass = any\n\nexport declare var deepGet: any\nexport declare type deepGet = any\n\nexport declare var chalk: any\nexport declare type chalk = any\n\nexport declare var deepSet: any\nexport declare type deepSet = any\n\nexport declare var makeDocument: any\nexport declare type makeDocument = any\n\nexport declare var transformDocument: any\nexport declare type transformDocument = any\n\nexport declare var debug: any\nexport declare type debug = any\n\nexport declare var debugLib: any\nexport declare type debugLib = any\n\nexport declare var InternalDatasource: any\nexport declare type InternalDatasource = any\n\nexport declare var Datasource: any\nexport declare type Datasource = any\n\nexport declare var printDatasources: any\nexport declare type printDatasources = any\n\nexport declare var printStack: any\nexport declare type printStack = any\n\nexport declare var mergeBy: any\nexport declare type mergeBy = any\n\nexport declare var unpack: any\nexport declare type unpack = any\n\nexport declare var getDMMF: any\nexport declare type getDMMF = any\n\nexport declare var stripAnsi: any\nexport declare type stripAnsi = any\n\nexport declare var parseDotenv: any\nexport declare type parseDotenv = any\n\nexport declare var sqlTemplateTag: any\nexport declare type sqlTemplateTag = any\n\nexport declare class PrismaClientKnownRequestError extends Error {\n  code: string;\n  meta?: object;\n  constructor(message: string, code: string, meta?: any);\n}\n\nexport declare class PrismaClientUnknownRequestError extends Error {\n  constructor(message: string);\n}\n\nexport declare class PrismaClientRustPanicError extends Error {\n    constructor(message: string);\n}\n\nexport declare class PrismaClientInitializationError extends Error {\n    constructor(message: string);\n}\n\nexport declare class PrismaClientValidationError extends Error {\n    constructor(message: string);\n}\n`;async function fileSize(e){try{const t=await stat(e);return t.size}catch(e){return null}}function validateDmmfAgainstDenylists(e){const t=[];const n={models:["dmmf","PromiseType","PromiseReturnType","Enumerable","MergeTruthyValues","CleanupNever","Subset","AtLeastOne","atMostOne","OnlyOne","StringFilter","IDFilter","FloatFilter","IntFilter","BooleanFilter","DateTimeFilter","NullableStringFilter","NullableIDFilter","NullableFloatFilter","NullableIntFilter","NullableBooleanFilter","NullableDateTimeFilter","PrismaClientFetcher","PrismaClient","Engine","BatchPayload","Datasources","ErrorFormat","Hooks","LogLevel","LogDefinition","GetLogType","GetEvents","QueryEvent","LogEvent","ModelDelegate","QueryDelegate","missingArg","ArgError","InvalidFieldError","InvalidFieldNameError","InvalidFieldTypeError","EmptySelectError","NoTrueSelectError","IncludeAndSelectError","EmptyIncludeError","InvalidArgError","InvalidArgNameError","MissingArgError","InvalidArgTypeError","AtLeastOneError","AtMostOneError","PrismaClientRequestError","PrismaClientOptions","PrismaClientKnownRequestError","PrismaClientUnknownRequestError","PrismaClientInitializationError","PrismaClientRustPanicError","PrismaVersion","await","async","break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","implements","import","in","instanceof","interface","let","new","null","package","private","protected","public","return","super","switch","this","throw","true","try","typeof","var","void","while","with","yield"],fields:["AND","OR","NOT"],dynamic:[]};for(const t of e.datamodel.models){n.dynamic.push(...[`${t.name}Select`,`${t.name}Include`,`${t.name}Default`,`${t.name}Client`,`${t.name}Delegate`,`${t.name}GetPayload`,`${t.name}Filter`,`${t.name}Args`,`${t.name}ArgsFilter`,`${t.name}ArgsRequired`,`${t.name}WhereInput`,`${t.name}WhereUniqueInput`,`${t.name}CreateInput`,`${t.name}UpdateInput`,`${t.name}UpdateManyMutationInput`,`${t.name}OrderByInput`,`${t.name}CreateArgs`,`${t.name}UpsertArgs`,`${t.name}UpdateArgs`,`${t.name}UpdateManyArgs`,`${t.name}DeleteArgs`,`${t.name}DeleteManyArgs`,`Extract${t.name}SelectDeleteArgs`,`Extract${t.name}IncludeDeleteArgs`,`FindOne${t.name}Args`,`FindMany${t.name}Args`])}if(e.datamodel.enums){for(const r of e.datamodel.enums){if(n.models.includes(r.name)||n.fields.includes(r.name)||n.dynamic.includes(r.name)){t.push(Error(`"enum ${r.name}"`))}}}if(e.datamodel.models){for(const r of e.datamodel.models){if(n.models.includes(r.name)||n.fields.includes(r.name)||n.dynamic.includes(r.name)){t.push(Error(`"model ${r.name}"`))}}}return t.length>0?t:null}},721:function(e){e.exports=require("constants")},730:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SIGNALS=void 0;const n=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:true},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:true},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:true},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];t.SIGNALS=n},737:function(e,t,n){"use strict";const r=n(128);const i=n(425);function parseVersion(e){if(/^\d{3,4}$/.test(e)){const t=/(\d{1,2})(\d{2})/.exec(e);return{major:0,minor:parseInt(t[1],10),patch:parseInt(t[2],10)}}const t=(e||"").split(".").map(e=>parseInt(e,10));return{major:t[0],minor:t[1],patch:t[2]}}function supportsHyperlink(e){const{env:t}=process;if("FORCE_HYPERLINK"in t){return!(t.FORCE_HYPERLINK.length>0&&parseInt(t.FORCE_HYPERLINK,10)===0)}if(i("no-hyperlink")||i("no-hyperlinks")||i("hyperlink=false")||i("hyperlink=never")){return false}if(i("hyperlink=true")||i("hyperlink=always")){return true}if(!r.supportsColor(e)){return false}if(e&&!e.isTTY){return false}if(process.platform==="win32"){return false}if("CI"in t){return false}if("TEAMCITY_VERSION"in t){return false}if("TERM_PROGRAM"in t){const e=parseVersion(t.TERM_PROGRAM_VERSION);switch(t.TERM_PROGRAM){case"iTerm.app":if(e.major===3){return e.minor>=1}return e.major>3}}if("VTE_VERSION"in t){if(t.VTE_VERSION==="0.50.0"){return false}const e=parseVersion(t.VTE_VERSION);return e.major>0||e.minor>=50}return false}e.exports={supportsHyperlink:supportsHyperlink,stdout:supportsHyperlink(process.stdout),stderr:supportsHyperlink(process.stderr)}},743:function(e,t,n){"use strict";const r=n(622);const i=n(90);e.exports=((e,t={})=>{const n=r.resolve(t.cwd||"");const{root:s}=r.parse(n);const o=[].concat(e);return new Promise(e=>{(function find(t){i(o,{cwd:t}).then(n=>{if(n){e(r.join(t,n))}else if(t===s){e(null)}else{find(r.dirname(t))}})})(n)})});e.exports.sync=((e,t={})=>{let n=r.resolve(t.cwd||"");const{root:s}=r.parse(n);const o=[].concat(e);while(true){const e=i.sync(o,{cwd:n});if(e){return r.join(n,e)}if(n===s){return null}n=r.dirname(n)}})},747:function(e){e.exports=require("fs")},749:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getPlatform=t.getOpenSSLVersion=t.parseOpenSSLVersion=t.resolveDistro=t.parseDistro=t.getos=void 0;const i=r(n(87));const s=r(n(747));const o=n(669);const a=n(129);const c=o.promisify(s.default.readFile);const u=o.promisify(s.default.exists);async function getos(){const e=i.default.platform();if(e!=="linux"){return{platform:e}}return{platform:"linux",libssl:await getOpenSSLVersion(),distro:await resolveDistro()}}t.getos=getos;function parseDistro(e){const t=/^ID="?([^"\n]*)"?$/im;const n=/^ID_LIKE="?([^"\n]*)"?$/im;const r=t.exec(e);const i=r&&r[1]&&r[1].toLowerCase()||"";const s=n.exec(e);const o=s&&s[1]&&s[1].toLowerCase()||"";if(i==="raspbian"){return"arm"}if(i==="nixos"){return"nixos"}if(o.includes("centos")||o.includes("fedora")||o.includes("rhel")||i==="fedora"){return"rhel"}if(o.includes("debian")||o.includes("ubuntu")||i==="debian"){return"debian"}return}t.parseDistro=parseDistro;async function resolveDistro(){const e="/etc/os-release";const t="/etc/alpine-release";if(await u(t)){return"musl"}else if(await u(e)){return parseDistro(await c(e,"utf-8"))}else{return}}t.resolveDistro=resolveDistro;function parseOpenSSLVersion(e){const t=/^OpenSSL\s(\d+\.\d+)\.\d+/.exec(e);if(t){return t[1]+".x"}return}t.parseOpenSSLVersion=parseOpenSSLVersion;async function getOpenSSLVersion(){const[e,t]=await Promise.all([gracefulExec(`openssl version -v`),gracefulExec(`\n      ls -l /lib64 | grep ssl;\n      ls -l /usr/lib64 | grep ssl;\n    `)]);if(e){const t=parseOpenSSLVersion(e);if(t){return t}}if(t){const e=/libssl\.so\.(\d+\.\d+)\.\d+/.exec(t);if(e){return e[1]+".x"}}return undefined}t.getOpenSSLVersion=getOpenSSLVersion;async function gracefulExec(e){return new Promise(t=>{try{a.exec(e,(e,n)=>{t(String(n))})}catch(e){t(undefined);return undefined}})}async function getPlatform(){const{platform:e,libssl:t,distro:n}=await getos();if(e==="darwin"){return"darwin"}if(e==="win32"){return"windows"}if(e==="freebsd"){return"freebsd"}if(e==="openbsd"){return"openbsd"}if(e==="netbsd"){return"netbsd"}if(e==="linux"&&n==="nixos"){return"linux-nixos"}if(e==="linux"&&n==="musl"){return"linux-musl"}if(e==="linux"&&n&&t){return n+"-openssl-"+t}if(t){return"debian-openssl-"+t}if(n){return n+"-openssl-1.1.x"}return"debian-openssl-1.1.x"}t.getPlatform=getPlatform},758:function(e,t,n){const{promisify:r}=n(669);const i=n(747);const s=e=>{if(!e)e={mode:511,fs:i};else if(typeof e==="object")e={mode:511,fs:i,...e};else if(typeof e==="number")e={mode:e,fs:i};else if(typeof e==="string")e={mode:parseInt(e,8),fs:i};else throw new TypeError("invalid options argument");e.mkdir=e.mkdir||e.fs.mkdir||i.mkdir;e.mkdirAsync=r(e.mkdir);e.stat=e.stat||e.fs.stat||i.stat;e.statAsync=r(e.stat);e.statSync=e.statSync||e.fs.statSync||i.statSync;e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||i.mkdirSync;return e};e.exports=s},766:function(e,t,n){var r=n(747);var i;if(process.platform==="win32"||global.TESTING_WINDOWS){i=n(505)}else{i=n(538)}e.exports=isexe;isexe.sync=sync;function isexe(e,t,n){if(typeof t==="function"){n=t;t={}}if(!n){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise(function(n,r){isexe(e,t||{},function(e,t){if(e){r(e)}else{n(t)}})})}i(e,t||{},function(e,r){if(e){if(e.code==="EACCES"||t&&t.ignoreErrors){e=null;r=false}}n(e,r)})}function sync(e,t){try{return i.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},767:function(e,t,n){const r=n(747);const i=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version;const s=i.replace(/^v/,"").split(".");const o=+s[0]>10||+s[0]===10&&+s[1]>=12;const a=!o?()=>false:e=>e.mkdir===r.mkdir;const c=!o?()=>false:e=>e.mkdirSync===r.mkdirSync;e.exports={useNative:a,useNativeSync:c}},781:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Enum=t.InputType=t.ArgsType=t.MinimalArgsType=t.OutputType=t.OutputField=t.InputField=t.ModelDelegate=t.Model=t.TSClient=t.TS=t.JS=void 0;n(998);const i=r(n(161));const s=r(n(622));const o=n(19);const a=n(387);const c=r(n(635));const u=n(414);const l=n(485);const f=n(704);const p=r(n(974));const d=2;function JS(e){if(e.toJS){return e.toJS()}return""}t.JS=JS;function TS(e){return e.toTS()}t.TS=TS;const m=({runtimePath:e,clientVersion:t,engineVersion:n})=>`\nObject.defineProperty(exports, "__esModule", { value: true });\n\nconst {\n  PrismaClientKnownRequestError,\n  PrismaClientUnknownRequestError,\n  PrismaClientRustPanicError,\n  PrismaClientInitializationError,\n  PrismaClientValidationError,\n  getPrismaClient,\n  debugLib,\n  sqltag\n} = require('${e}')\n\nconst path = require('path')\nconst debug = debugLib('prisma-client')\n\ndebug("Client Version ${t}")\ndebug("Engine Version ${n}")\n\n/**\n * Prisma Client JS version: ${t}\n * Query Engine version: ${n}\n */\nexports.prismaVersion = {\n  client: "${t}",\n  engine: "${n}"\n}\n\nexports.PrismaClientKnownRequestError = PrismaClientKnownRequestError;\nexports.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError;\nexports.PrismaClientRustPanicError = PrismaClientRustPanicError;\nexports.PrismaClientInitializationError = PrismaClientInitializationError;\nexports.PrismaClientValidationError = PrismaClientValidationError;\n\n/**\n * Re-export of sql-template-tag\n */\n\nexports.sql = sqltag.sqltag\nexports.empty = sqltag.empty\nexports.join = sqltag.join\nexports.raw = sqltag.raw\n`;const h=({runtimePath:e,clientVersion:t,engineVersion:n})=>`import {\n  DMMF,\n  DMMFClass,\n  Engine,\n  PrismaClientKnownRequestError,\n  PrismaClientUnknownRequestError,\n  PrismaClientRustPanicError,\n  PrismaClientInitializationError,\n  PrismaClientValidationError,\n  sqltag as sql,\n  empty,\n  join,\n  raw,\n} from '${e}';\n\nexport { PrismaClientKnownRequestError }\nexport { PrismaClientUnknownRequestError }\nexport { PrismaClientRustPanicError }\nexport { PrismaClientInitializationError }\nexport { PrismaClientValidationError }\n\n/**\n * Re-export of sql-template-tag\n */\nexport { sql, empty, join, raw }\n\n/**\n * Prisma Client JS version: ${t}\n * Query Engine version: ${n}\n */\nexport declare type PrismaVersion = {\n  client: string\n}\n\nexport declare const prismaVersion: PrismaVersion \n\n/**\n * Utility Types\n */\n\n/**\n * From https://github.com/sindresorhus/type-fest/\n * Matches a JSON object.\n * This type can be useful to enforce some input to be JSON-compatible or as a super-type to be extended from. \n */\ndeclare type JsonObject = {[Key in string]?: JsonValue}\n \n/**\n * From https://github.com/sindresorhus/type-fest/\n * Matches a JSON array.\n */\ndeclare interface JsonArray extends Array<JsonValue> {}\n \n/**\n * From https://github.com/sindresorhus/type-fest/\n * Matches any valid JSON value.\n */\ndeclare type JsonValue = string | number | boolean | null | JsonObject | JsonArray\n\ndeclare type SelectAndInclude = {\n  select: any\n  include: any\n}\n\ndeclare type HasSelect = {\n  select: any\n}\n\ndeclare type HasInclude = {\n  include: any\n}\n\ndeclare type CheckSelect<T, S, U> = T extends SelectAndInclude\n  ? 'Please either choose \`select\` or \`include\`'\n  : T extends HasSelect\n  ? U\n  : T extends HasInclude\n  ? U\n  : S\n\n/**\n * Get the type of the value, that the Promise holds.\n */\nexport declare type PromiseType<T extends PromiseLike<any>> = T extends PromiseLike<infer U> ? U : T;\n\n/**\n * Get the return type of a function which returns a Promise.\n */\nexport declare type PromiseReturnType<T extends (...args: any) => Promise<any>> = PromiseType<ReturnType<T>>\n\n\nexport declare type Enumerable<T> = T | Array<T>;\n\nexport declare type TrueKeys<T> = {\n  [key in keyof T]: T[key] extends false | undefined | null ? never : key\n}[keyof T]\n\n/**\n * Subset\n * @desc From \`T\` pick properties that exist in \`U\`. Simple version of Intersection\n */\nexport declare type Subset<T, U> = {\n  [key in keyof T]: key extends keyof U ? T[key] : never;\n};\ndeclare class PrismaClientFetcher {\n  private readonly prisma;\n  private readonly debug;\n  private readonly hooks?;\n  constructor(prisma: PrismaClient<any, any>, debug?: boolean, hooks?: Hooks | undefined);\n  request<T>(document: any, dataPath?: string[], rootField?: string, typeName?: string, isList?: boolean, callsite?: string, collectTimestamps?: any): Promise<T>;\n  sanitizeMessage(message: string): string;\n  protected unpack(document: any, data: any, path: string[], rootField?: string, isList?: boolean): any;\n}\n`;class TSClient{constructor(e){this.options=e;this.dmmfString=escapeJson(JSON.stringify(e.document));this.dmmf=new o.DMMFClass(p.default(e.document))}toJS(){const{generator:e,sqliteDatasourceOverrides:t,outputDir:n,schemaDir:r,datasources:i}=this.options;const o={generator:e,sqliteDatasourceOverrides:t,relativePath:s.default.relative(n,r),internalDatasources:i,clientVersion:this.options.clientVersion};return`${m(this.options)}\n\n/**\n * Build tool annotations\n * In order to make \`ncc\` and \`node-file-trace\` happy.\n**/\n\n${this.options.platforms?this.options.platforms.map(e=>`path.join(__dirname, 'query-engine-${e}');`).join("\n"):""}\n\n/**\n * Annotation for Vercel\n**/\npath.join(__dirname, 'schema.prisma');\n\n/**\n * Enums\n */\n// Based on\n// https://github.com/microsoft/TypeScript/issues/3192#issuecomment-261720275\nfunction makeEnum(x) { return x; }\n\n${this.dmmf.schema.enums.map(e=>new Enum(e).toJS()).join("\n\n")}\n\n\n/**\n * DMMF\n */\nconst dmmfString = ${JSON.stringify(this.dmmfString)}\n\n// We are parsing 2 times, as we want independent objects, because\n// DMMFClass introduces circular references in the dmmf object\nconst dmmf = JSON.parse(dmmfString)\nexports.dmmf = JSON.parse(dmmfString)\n\n/**\n * Create the Client\n */\n\nconst config = ${JSON.stringify(o,null,2)}\nconfig.document = dmmf\nconfig.dirname = __dirname\n\nconst PrismaClient = getPrismaClient(config)\nexports.PrismaClient = PrismaClient`}toTS(){return`${h(this.options)}\n\n/**\n * Client\n**/\n\n${new PrismaClientClass(this.dmmf,this.options.datasources,this.options.outputDir,this.options.browser,this.options.generator,this.options.sqliteDatasourceOverrides,this.options.schemaDir).toTS()}\n\n${""}\n\n/**\n * Enums\n */\n\n// Based on\n// https://github.com/microsoft/TypeScript/issues/3192#issuecomment-261720275\n\n${this.dmmf.schema.enums.map(e=>new Enum(e).toTS()).join("\n\n")}\n\n${Object.values(this.dmmf.modelMap).map(e=>new Model(e,this.dmmf).toTS()).join("\n")}\n\n/**\n * Deep Input Types\n */\n\n${this.dmmf.inputTypes.map(e=>new InputType(e).toTS()).join("\n")}\n\n/**\n * Batch Payload for updateMany & deleteMany\n */\n\nexport type BatchPayload = {\n  count: number\n}\n\n/**\n * DMMF\n */\nexport declare const dmmf: DMMF.Document;\nexport {};\n`}}t.TSClient=TSClient;class Datasources{constructor(e){this.internalDatasources=e}toTS(){const e=this.internalDatasources;return`export type Datasources = {\n${i.default(e.map(e=>`${e.name}?: string`).join("\n"),2)}\n}`}}class PrismaClientClass{constructor(e,t,n,r,i,s,o){this.dmmf=e;this.internalDatasources=t;this.outputDir=n;this.browser=r;this.generator=i;this.sqliteDatasourceOverrides=s;this.cwd=o}get jsDoc(){const{dmmf:e}=this;const t=e.mappings[0];return`/**\n * ##  Prisma Client ʲˢ\n * \n * Type-safe database client for TypeScript & Node.js (ORM replacement)\n * @example\n * \`\`\`\n * const prisma = new PrismaClient()\n * // Fetch zero or more ${u.capitalize(t.plural)}\n * const ${u.lowerCase(t.plural)} = await prisma.${u.lowerCase(t.model)}.findMany()\n * \`\`\`\n *\n * \n * Read more in our [docs](https://github.com/prisma/prisma/blob/master/docs/prisma-client-js/api.md).\n */`}toTS(){const{dmmf:e}=this;return`\n${new Datasources(this.internalDatasources).toTS()}\n\nexport type ErrorFormat = 'pretty' | 'colorless' | 'minimal'\n\nexport interface PrismaClientOptions {\n  /**\n   * Overwrites the datasource url from your prisma.schema file\n   */\n  datasources?: Datasources\n\n  /**\n   * @default "colorless"\n   */\n  errorFormat?: ErrorFormat\n\n  /**\n   * @example\n   * \`\`\`\n   * // Defaults to stdout\n   * log: ['query', 'info', 'warn', 'error']\n   * \n   * // Emit as events\n   * log: [\n   *  { emit: 'stdout', level: 'query' },\n   *  { emit: 'stdout', level: 'info' },\n   *  { emit: 'stdout', level: 'warn' }\n   *  { emit: 'stdout', level: 'error' }\n   * ]\n   * \`\`\`\n   * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).\n   */\n  log?: Array<LogLevel | LogDefinition>\n\n  /**\n   * You probably don't want to use this. \`__internal\` is used by internal tooling.\n   */\n  __internal?: {\n    debug?: boolean\n    hooks?: Hooks\n    engine?: {\n      cwd?: string\n      binaryPath?: string\n    }\n    measurePerformance?: boolean\n  }\n}\n\nexport type Hooks = {\n  beforeRequest?: (options: {query: string, path: string[], rootField?: string, typeName?: string, document: any}) => any\n}\n\n/* Types for Logging */\nexport type LogLevel = 'info' | 'query' | 'warn' | 'error'\nexport type LogDefinition = {\n  level: LogLevel\n  emit: 'stdout' | 'event'\n}\n\nexport type GetLogType<T extends LogLevel | LogDefinition> = T extends LogDefinition ? T['emit'] extends 'event' ? T['level'] : never : never\nexport type GetEvents<T extends Array<LogLevel | LogDefinition>> = GetLogType<T[0]> | GetLogType<T[1]> | GetLogType<T[2]> | GetLogType<T[3]> \n\nexport type QueryEvent = {\n  timestamp: Date\n  query: string\n  params: string\n  duration: number\n  target: string\n}\n\nexport type LogEvent = {\n  timestamp: Date\n  message: string\n  target: string\n}\n/* End Types for Logging */\n\n// tested in getLogLevel.test.ts\nexport declare function getLogLevel(log: Array<LogLevel | LogDefinition>): LogLevel | undefined;\n\n${this.jsDoc}\nexport declare class PrismaClient<\n  T extends PrismaClientOptions = PrismaClientOptions,\n  U = keyof T extends 'log' ? T['log'] extends Array<LogLevel | LogDefinition> ? GetEvents<T['log']> : never : never\n> {\n  /**\n   * @private\n   */\n  private fetcher;\n  /**\n   * @private\n   */\n  private readonly dmmf;\n  /**\n   * @private\n   */\n  private connectionPromise?;\n  /**\n   * @private\n   */\n  private disconnectionPromise?;\n  /**\n   * @private\n   */\n  private readonly engineConfig;\n  /**\n   * @private\n   */\n  private readonly measurePerformance;\n  /**\n   * @private\n   */\n  private engine: Engine;\n  /**\n   * @private\n   */\n  private errorFormat: ErrorFormat;\n\n${i.default(this.jsDoc,d)}\n  constructor(optionsArg?: T);\n  on<V extends U>(eventType: V, callback: (event: V extends 'query' ? QueryEvent : LogEvent) => void): void;\n  /**\n   * Connect with the database\n   */\n  connect(): Promise<void>;\n  /**\n   * @private\n   */\n  private runDisconnect;\n  /**\n   * Disconnect from the database\n   */\n  disconnect(): Promise<any>;\n\n  /**\n   * Executes a raw query and returns the number of affected rows\n   * @example\n   * \`\`\`\n   * // With parameters use prisma.executeRaw\`\`, values will be escaped automatically\n   * const result = await prisma.executeRaw\`UPDATE User SET cool = \${true} WHERE id = \${1};\`\n   * // Or\n   * const result = await prisma.executeRaw('UPDATE User SET cool = $1 WHERE id = $2 ;', true, 1)\n  * \`\`\`\n  * \n  * Read more in our [docs](https://github.com/prisma/prisma/blob/master/docs/prisma-client-js/api.md#raw-database-access).\n  */\n  executeRaw<T = any>(query: string | TemplateStringsArray, ...values: any[]): Promise<number>;\n\n  /**\n   * Performs a raw query and returns the SELECT data\n   * @example\n   * \`\`\`\n   * // With parameters use prisma.queryRaw\`\`, values will be escaped automatically\n   * const result = await prisma.queryRaw\`SELECT * FROM User WHERE id = \${1} OR email = \${'ema.il'};\`\n   * // Or\n   * const result = await prisma.queryRaw('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'ema.il')\n  * \`\`\`\n  * \n  * Read more in our [docs](https://github.com/prisma/prisma/blob/master/docs/prisma-client-js/api.md#raw-database-access).\n  */\n  queryRaw<T = any>(query: string | TemplateStringsArray, ...values: any[]): Promise<T>;\n\n${i.default(e.mappings.filter(e=>e.findMany).map(e=>{const t=u.lowerCase(e.model);return`/**\n * \`prisma.${t}\`: Exposes CRUD operations for the **${e.model}** model.\n  * Example usage:\n  * \`\`\`ts\n  * // Fetch zero or more ${u.capitalize(e.plural)}\n  * const ${u.lowerCase(e.plural)} = await prisma.${t}.findMany()\n  * \`\`\`\n  */\nget ${t}(): ${e.model}Delegate;`}).join("\n\n"),2)}\n}`}}class PayloadType{constructor(e){this.type=e}toTS(){const{type:e}=this;const{name:t}=e;const n=l.getArgName(t,false);const r=this.renderRelations(l.Projection.include);const i=this.renderRelations(l.Projection.select);return`export type ${l.getPayloadName(t)}<\n  S extends boolean | null | undefined | ${n},\n  U = keyof S\n> = S extends true\n  ? ${t}\n  : S extends undefined\n  ? never\n  : S extends ${n} | ${l.getModelArgName(t,a.DMMF.ModelAction.findMany)}\n  ? 'include' extends U\n    ? ${t} ${r.length>0?` & ${r}`:""}\n  : 'select' extends U\n    ? ${i}\n  : ${t}\n: ${t}\n`}renderRelations(e){const{type:t}=this;const n=t.fields.filter(e=>e.outputType.kind==="object");if(n.length===0&&e===l.Projection.include){return""}const r=e===l.Projection.select?`P extends keyof ${t.name} ? ${t.name}[P]\n: `:"";return`{\n      [P in TrueKeys<S['${e}']>]:${r}\n${i.default(n.map(t=>`P extends '${t.name}'\n? ${this.wrapType(t,`${l.getPayloadName(t.outputType.type.name)}<S['${e}'][P]>`)} :`).join("\n"),6)} never\n    }`}wrapType(e,t){const{outputType:n}=e;if(n.isRequired&&!n.isList){return t}if(n.isList){return`Array<${t}>`}if(!n.isRequired){return`${t} | null`}return t}}class Model{constructor(e,t){this.model=e;this.dmmf=t;const n=t.outputTypeMap[e.name];this.outputType=new OutputType(n);this.mapping=t.mappings.find(t=>t.model===e.name)}get argsTypes(){const{mapping:e,model:t}=this;if(!e){return[]}const n=[];for(const r in a.DMMF.ModelAction){const i=e[r];if(!i){continue}const s=this.dmmf.getField(i);if(!s){throw new Error(`Oops this must not happen. Could not find field ${i} on either Query or Mutation`)}if(r==="updateMany"||r==="deleteMany"){n.push(new MinimalArgsType(s.args,t,r))}else{n.push(new ArgsType(s.args,t,r))}}n.push(new ArgsType([],t));return n}toTS(){const{model:e,outputType:t}=this;if(!t){return""}const n=e.fields.some(e=>e.kind==="object");const r=n?`\nexport type ${l.getIncludeName(e.name)} = {\n${i.default(t.fields.filter(e=>e.outputType.kind==="object").map(e=>`${e.name}?: boolean`+(e.outputType.kind==="object"?` | ${l.getFieldArgName(e)}`:"")).join("\n"),d)}\n}\n`:"";return`\n/**\n * Model ${e.name}\n */\n\nexport type ${e.name} = {\n${i.default(e.fields.filter(e=>e.kind!=="object").map(e=>new OutputField(e).toTS()).join("\n"),d)}\n}\n\nexport type ${l.getSelectName(e.name)} = {\n${i.default(t.fields.map(e=>`${e.name}?: boolean`+(e.outputType.kind==="object"?` | ${l.getFieldArgName(e)}`:"")).join("\n"),d)}\n}\n${r}\n${new PayloadType(this.outputType).toTS()}\n\n${new ModelDelegate(this.outputType,this.dmmf).toTS()}\n\n// Custom InputTypes\n${this.argsTypes.map(TS).join("\n")}\n`}}t.Model=Model;function getMethodJSDocBody(e,t,n){const r=u.capitalize(t.model);const i=u.capitalize(t.plural);const s=n.fields.find(e=>e.kind==="scalar");const o=`prisma.${u.lowerCase(t.model)}.${e}`;switch(e){case a.DMMF.ModelAction.create:return`Create a ${r}.\n@param {${l.getModelArgName(n.name,e)}} args - Arguments to create a ${r}.\n@example\n// Create one ${r}\nconst user = await ${o}({\n  data: {\n    // ... data to create a ${r}\n  }\n})\n`;case a.DMMF.ModelAction.delete:return`Delete a ${r}.\n@param {${l.getModelArgName(n.name,e)}} args - Arguments to delete one ${r}.\n@example\n// Delete one ${r}\nconst user = await ${o}({\n  where: {\n    // ... filter to delete one ${r}\n  }\n})\n`;case a.DMMF.ModelAction.deleteMany:return`Delete zero or more ${i}.\n@param {${l.getModelArgName(n.name,e)}} args - Arguments to filter ${i} to delete.\n@example\n// Delete a few ${i}\nconst { count } = await ${o}({\n  where: {\n    // ... provide filter here\n  }\n})\n`;case a.DMMF.ModelAction.findMany:{const r=s?`\n// Only select the \`${s.name}\`\nconst ${u.lowerCase(t.model)}With${u.capitalize(s.name)}Only = await ${o}({ select: { ${s.name}: true } })`:"";return`Find zero or more ${i}.\n@param {${l.getModelArgName(n.name,e)}=} args - Arguments to filter and select certain fields only.\n@example\n// Get all ${i}\nconst ${t.plural} = await ${o}()\n\n// Get first 10 ${i}\nconst ${t.plural} = await ${o}({ take: 10 })\n${r}\n`}case a.DMMF.ModelAction.findOne:{return`Find zero or one ${r}.\n@param {${l.getModelArgName(n.name,e)}} args - Arguments to find a ${r}\n@example\n// Get one ${r}\nconst ${u.lowerCase(t.model)} = await ${o}({\n  where: {\n    // ... provide filter here\n  }\n})`}case a.DMMF.ModelAction.update:return`Update one ${r}.\n@param {${l.getModelArgName(n.name,e)}} args - Arguments to update one ${r}.\n@example\n// Update one ${r}\nconst ${u.lowerCase(t.model)} = await ${o}({\n  where: {\n    // ... provide filter here\n  },\n  data: {\n    // ... provide data here\n  }\n})\n`;case a.DMMF.ModelAction.updateMany:return`Update zero or more ${i}.\n@param {${l.getModelArgName(n.name,e)}} args - Arguments to update one or more rows.\n@example\n// Update many ${i}\nconst ${u.lowerCase(t.model)} = await ${o}({\n  where: {\n    // ... provide filter here\n  },\n  data: {\n    // ... provide data here\n  }\n})\n`;case a.DMMF.ModelAction.upsert:return`Create or update one ${r}.\n@param {${l.getModelArgName(n.name,e)}} args - Arguments to update or create a ${r}.\n@example\n// Update or create a ${r}\nconst ${u.lowerCase(t.model)} = await ${o}({\n  create: {\n    // ... data to create a ${r}\n  },\n  update: {\n    // ... in case it already exists, update\n  },\n  where: {\n    // ... the filter for the ${r} we want to update\n  }\n})`}}function getMethodJSDoc(e,t,n){return wrapComment(getMethodJSDocBody(e,t,n))}function wrapComment(e){return`/**\n${e.split("\n").map(e=>" * "+e).join("\n")}\n**/`}class ModelDelegate{constructor(e,t){this.outputType=e;this.dmmf=t}toTS(){const{fields:e,name:t}=this.outputType;const n=this.dmmf.mappings.find(e=>e.model===t);if(!n){return""}const r=this.dmmf.modelMap[t];const s=Object.entries(n).filter(([e,t])=>e!=="model"&&e!=="plural"&&e!=="aggregate"&&t);return`export interface ${t}Delegate {\n${i.default(s.map(([e])=>`${getMethodJSDoc(e,n,r)}\n${e}<T extends ${l.getModelArgName(t,e)}>(\n  args${e===a.DMMF.ModelAction.findMany?"?":""}: Subset<T, ${l.getModelArgName(t,e)}>\n): ${l.getSelectReturnType({name:t,actionName:e,projection:l.Projection.select})}`).join("\n"),d)}\n  /**\n   * \n   */\n  count(args?: Omit<${l.getModelArgName(t,a.DMMF.ModelAction.findMany)}, 'select' | 'include'>): Promise<number>\n}\n\nexport declare class ${t}Client<T> implements Promise<T> {\n  private readonly _dmmf;\n  private readonly _fetcher;\n  private readonly _queryType;\n  private readonly _rootField;\n  private readonly _clientMethod;\n  private readonly _args;\n  private readonly _dataPath;\n  private readonly _errorFormat;\n  private readonly _measurePerformance?;\n  private _isList;\n  private _callsite;\n  private _requestPromise?;\n  private _collectTimestamps?;\n  constructor(_dmmf: DMMFClass, _fetcher: PrismaClientFetcher, _queryType: 'query' | 'mutation', _rootField: string, _clientMethod: string, _args: any, _dataPath: string[], _errorFormat: ErrorFormat, _measurePerformance?: boolean | undefined, _isList?: boolean);\n  readonly [Symbol.toStringTag]: 'PrismaClientPromise';\n${i.default(e.filter(e=>e.outputType.kind==="object").map(e=>{const t=e.outputType.type.name;return`\n${e.name}<T extends ${l.getFieldArgName(e)} = {}>(args?: Subset<T, ${l.getFieldArgName(e)}>): ${l.getSelectReturnType({name:t,actionName:e.outputType.isList?a.DMMF.ModelAction.findMany:a.DMMF.ModelAction.findOne,hideCondition:false,isField:true,renderPromise:true,fieldName:e.name,projection:l.Projection.select})};`}).join("\n"),2)}\n\n  private get _document();\n  /**\n   * Attaches callbacks for the resolution and/or rejection of the Promise.\n   * @param onfulfilled The callback to execute when the Promise is resolved.\n   * @param onrejected The callback to execute when the Promise is rejected.\n   * @returns A Promise for the completion of which ever callback is executed.\n   */\n  then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | Promise<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | Promise<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;\n  /**\n   * Attaches a callback for only the rejection of the Promise.\n   * @param onrejected The callback to execute when the Promise is rejected.\n   * @returns A Promise for the completion of the callback.\n   */\n  catch<TResult = never>(onrejected?: ((reason: any) => TResult | Promise<TResult>) | undefined | null): Promise<T | TResult>;\n  /**\n   * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The\n   * resolved value cannot be modified from the callback.\n   * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).\n   * @returns A Promise for the completion of the callback.\n   */\n  finally(onfinally?: (() => void) | undefined | null): Promise<T>;\n}`}}t.ModelDelegate=ModelDelegate;class InputField{constructor(e,t=false){this.field=e;this.prefixFilter=t}toTS(){const{field:e}=this;let t;let n=false;if(Array.isArray(e.inputType)){t=l.flatMap(e.inputType,e=>{const t=typeof e.type==="string"?u.GraphQLScalarToJSTypeTable[e.type]||e.type:this.prefixFilter?`Base${e.type.name}`:e.type.name;if(t==="null"){n=true}return t}).join(" | ")}const r=e.inputType[0];const i=r.isRequired?"":"?";if(r.isList){if(e.name==="OR"){t=`Array<${t}>`}else{t=`Enumerable<${t}>`}}const s=!r.isRequired&&!n&&r.isNullable?" | null":"";const o=e.comment?wrapComment(e.comment)+"\n":"";return`${o}${e.name}${i}: ${t}${s}`}}t.InputField=InputField;class OutputField{constructor(e){this.field=e}toTS(){const{field:e}=this;let t=typeof e.type==="string"?u.GraphQLScalarToJSTypeTable[e.type]||e.type:e.type[0].name;if(Array.isArray(t)){t=t[0]}const n=e.isList?`[]`:"";const r=!e.isRequired&&!e.isList?" | null":"";return`${e.name}: ${t}${n}${r}`}}t.OutputField=OutputField;class OutputType{constructor(e){this.type=e;this.name=e.name;this.fields=e.fields}toTS(){const{type:e}=this;return`\nexport type ${e.name} = {\n${i.default(e.fields.map(e=>new OutputField({...e,...e.outputType}).toTS()).join("\n"),d)}\n}`}}t.OutputType=OutputType;class MinimalArgsType{constructor(e,t,n){this.args=e;this.model=t;this.action=n}toTS(){const{action:e,args:t}=this;const{name:n}=this.model;return`\n/**\n * ${n} ${e?e:"without action"}\n */\nexport type ${l.getModelArgName(n,e)} = {\n${i.default(t.map(e=>new InputField(e).toTS()).join("\n"),d)}\n}\n`}}t.MinimalArgsType=MinimalArgsType;const y={findOne:{where:(e,t)=>`Filter, which ${e} to fetch.`},findMany:{where:(e,t)=>`Filter, which ${t} to fetch.`,orderBy:(e,t)=>`Determine the order of the ${t} to fetch.`,skip:(e,t)=>`Skip the first \`n\` ${t}.`,cursor:(e,t)=>`Sets the position for listing ${t}.`,take:(e,t)=>`The number of ${t} to fetch. If negative number, it will take ${t} before the \`cursor\`.`},create:{data:(e,t)=>`The data needed to create a ${e}.`},update:{data:(e,t)=>`The data needed to update a ${e}.`,where:(e,t)=>`Choose, which ${e} to update.`},upsert:{where:(e,t)=>`The filter to search for the ${e} to update in case it exists.`,create:(e,t)=>`In case the ${e} found by the \`where\` argument doesn't exist, create a new ${e} with this data.`,update:(e,t)=>`In case the ${e} was found with the provided \`where\` argument, update it with this data.`},delete:{where:(e,t)=>`Filter which ${e} to delete.`}};class ArgsType{constructor(e,t,n){this.args=e;this.model=t;this.action=n}toTS(){const{action:e,args:t}=this;const{name:n}=this.model;const r=n;const s=c.default(n);for(const n of t){if(e&&y[e][n.name]){const t=y[e][n.name](r,s);n.comment=t}}const o=[{name:"select",inputType:[{type:l.getSelectName(n),kind:"object",isList:false,isRequired:false,isNullable:true}],comment:`Select specific fields to fetch from the ${n}`}];const a=this.model.fields.some(e=>e.kind==="object");if(a){o.push({name:"include",inputType:[{type:l.getIncludeName(n),kind:"object",isList:false,isRequired:false,isNullable:true}],comment:`Choose, which related nodes to fetch as well.`})}o.push(...t);return`\n/**\n * ${n} ${e?e:"without action"}\n */\nexport type ${l.getModelArgName(n,e)} = {\n${i.default(o.map(e=>new InputField(e).toTS()).join("\n"),d)}\n}\n`}}t.ArgsType=ArgsType;class InputType{constructor(e){this.type=e}toTS(){const{type:e}=this;const t=f.uniqueBy(e.fields,e=>e.name);const n=`{\n${i.default(t.map(e=>new InputField(e).toTS()).join("\n"),d)}\n}`;return`\nexport type ${e.name} = ${n}`}}t.InputType=InputType;class Enum{constructor(e){this.type=e}toJS(){const{type:e}=this;return`exports.${e.name} = makeEnum({\n${i.default(e.values.map(e=>`${e}: '${e}'`).join(",\n"),d)}\n});`}toTS(){const{type:e}=this;return`export declare const ${e.name}: {\n${i.default(e.values.map(e=>`${e}: '${e}'`).join(",\n"),d)}\n};\n\nexport declare type ${e.name} = (typeof ${e.name})[keyof typeof ${e.name}]\n`}}t.Enum=Enum;function escapeJson(e){return e.replace(/\\n/g,"\\\\n").replace(/\\r/g,"\\\\r").replace(/\\t/g,"\\\\t")}},782:function(e,t,n){function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=n(638);Object.keys(e).forEach(t=>{createDebug[t]=e[t]});createDebug.instances=[];createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n);t|=0}return createDebug.colors[Math.abs(t)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(e){let t;function debug(...e){if(!debug.enabled){return}const n=debug;const r=Number(new Date);const i=r-(t||r);n.diff=i;n.prev=t;n.curr=r;t=r;e[0]=createDebug.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,r)=>{if(t==="%%"){return t}s++;const i=createDebug.formatters[r];if(typeof i==="function"){const r=e[s];t=i.call(n,r);e.splice(s,1);s--}return t});createDebug.formatArgs.call(n,e);const o=n.log||createDebug.log;o.apply(n,e)}debug.namespace=e;debug.enabled=createDebug.enabled(e);debug.useColors=createDebug.useColors();debug.color=selectColor(e);debug.destroy=destroy;debug.extend=extend;if(typeof createDebug.init==="function"){createDebug.init(debug)}createDebug.instances.push(debug);return debug}function destroy(){const e=createDebug.instances.indexOf(this);if(e!==-1){createDebug.instances.splice(e,1);return true}return false}function extend(e,t){const n=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);n.log=this.log;return n}function enable(e){createDebug.save(e);createDebug.names=[];createDebug.skips=[];let t;const n=(typeof e==="string"?e:"").split(/[\s,]+/);const r=n.length;for(t=0;t<r;t++){if(!n[t]){continue}e=n[t].replace(/\*/g,".*?");if(e[0]==="-"){createDebug.skips.push(new RegExp("^"+e.substr(1)+"$"))}else{createDebug.names.push(new RegExp("^"+e+"$"))}}for(t=0;t<createDebug.instances.length;t++){const e=createDebug.instances[t];e.enabled=createDebug.enabled(e.namespace)}}function disable(){const e=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map(e=>"-"+e)].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let n;for(t=0,n=createDebug.skips.length;t<n;t++){if(createDebug.skips[t].test(e)){return false}}for(t=0,n=createDebug.names.length;t<n;t++){if(createDebug.names[t].test(e)){return true}}return false}function toNamespace(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},796:function(e){"use strict";const t=e=>e!==null&&typeof e==="object"&&typeof e.pipe==="function";t.writable=(e=>t(e)&&e.writable!==false&&typeof e._write==="function"&&typeof e._writableState==="object");t.readable=(e=>t(e)&&e.readable!==false&&typeof e._read==="function"&&typeof e._readableState==="object");t.duplex=(e=>t.writable(e)&&t.readable(e));t.transform=(e=>t.duplex(e)&&typeof e._transform==="function"&&typeof e._transformState==="object");e.exports=t},805:function(e,t,n){"use strict";const r=n(622);const i=n(454);const s=e=>{e={cwd:process.cwd(),path:process.env[i()],execPath:process.execPath,...e};let t;let n=r.resolve(e.cwd);const s=[];while(t!==n){s.push(r.join(n,"node_modules/.bin"));t=n;n=r.resolve(n,"..")}const o=r.resolve(e.cwd,e.execPath,"..");s.push(o);return s.concat(e.path).join(r.delimiter)};e.exports=s;e.exports.default=s;e.exports.env=(t=>{t={env:process.env,...t};const n={...t.env};const r=i({env:n});t.path=n[r];n[r]=e.exports(t);return n})},815:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DMMF=void 0;var n;(function(e){let t;(function(e){e["findOne"]="findOne";e["findMany"]="findMany";e["create"]="create";e["update"]="update";e["updateMany"]="updateMany";e["upsert"]="upsert";e["delete"]="delete";e["deleteMany"]="deleteMany"})(t=e.ModelAction||(e.ModelAction={}))})(n=t.DMMF||(t.DMMF={}))},836:function(e,t,n){const r=n(747);const i=n(622);const{promisify:s}=n(669);const o=s(r.readFile);const a=s(r.writeFile);const c=s(r.mkdir);const u=n(544);const l=n(668);const f=n(209);const p=n(357);class Copy{constructor(e={}){this.from=i.normalize(e.from);this.to=i.normalize(e.to);this.recursive=e.recursive||false;this.overwrite=e.overwrite||false;this.overwriteMismatches=e.overwriteMismatches||false;this.verbose=e.verbose||false;this.json=e.json||false;this.ignoreErrors=e.ignoreErrors||false;this.parallelJobs=e.parallelJobs||1;this.stateFile=e.state;this.stateFrequency=e.stateFrequency||100;this.fns={stat:s(e.stat||r.stat),readdir:s(e.readdir||r.readdir),copyFile:s(e.copyFile||r.copyFile)};this.stateCatchUp=0;this.state={wip:[],counts:{directories:0,files:0,copies:0}};this.pending=[];this.errors=[];p.equal(typeof this.from,"string","from should be a string");p.equal(typeof this.to,"string","to should be a string");p.equal(typeof this.parallelJobs,"number","parallelJobs should be a number");p.equal(typeof this.stateFrequency,"number","stateFrequency should be a number");p.equal(typeof this.fns.stat,"function","stat should be a function");p.equal(typeof this.fns.readdir,"function","readdir should be a function");p.equal(typeof this.fns.copyFile,"function","copyFile should be a function")}async start(){try{await this.loadState();if((await this.fns.stat(this.from)).isDirectory()){await u(this.to)}else{const e=i.dirname(this.to);await u(e)}await this.copy(this.from,this.to);while(this.pending.length>0){await f(10)}await this.processJobErrors();await this.saveState();if(this.state.wip.length){throw new Error("Incomplete `wip` found. Copy likely incomplete.")}return this.state}catch(e){e.state=this.state;throw e}}async loadState(){if(!this.stateFile)return;try{await this.fns.stat(this.stateFile);this.state=JSON.parse(await o(this.stateFile));this.stateCatchUp=this.state.wip.length}catch(e){if(e.code!=="ENOENT"){throw e}}}async saveState(){if(!this.stateFile)return;await a(this.stateFile,JSON.stringify(this.state,null,2))}async processJobErrors(){let e=this.errors.shift();while(e){this.handleError(e);e=this.errors.shift()}}async copy(e,t){let n=this.stateCatchUp>0;if(n){if(this.state.wip.includes(e)){this.stateCatchUp-=1}else if(!this.state.wip.some(t=>t.startsWith(e))){return}}try{await this.processJobErrors();const r=await this.fns.stat(e);const i=r.isDirectory();if(i&&this.recursive){await this.copyDirectory(e,t)}else if(!i){if(!n){this.state.wip.push(e)}await this.queueAction(()=>this.copyFile(e,t,r));if(this.state.counts.files%this.stateFrequency===0){await this.saveState()}}}catch(e){this.handleError(e)}}async copyDirectory(e,t){try{try{await this.fns.stat(t)}catch(e){if(e.code==="ENOENT"){await c(t)}else{throw e}}const n=await this.fns.readdir(e);for(let r of n){await this.copy(i.join(e,r),i.join(t,r))}}catch(e){this.handleError(e)}finally{this.state.counts.directories++}}async queueAction(e){while(this.pending.length>=this.parallelJobs){await f(10)}const t=async()=>{try{await e()}finally{this.pending.splice(this.pending.indexOf(e),1)}};this.pending.push(t);t().catch(e=>this.errors.push(e))}async copyFile(e,t,n){this.logCopyAction(t,"start");try{const r=await this.fns.stat(t);if(this.overwrite){await this.doCopy(e,t,n)}else if(this.overwriteMismatches){if(n.size!==r.size||n.mtimeMs>r.mtimeMs){this.logCopyAction(t,"stats mismatch",{fromStat:{size:n.size,mtimeMs:n.mtimeMs},toStat:{size:r.size,mtimeMs:r.mtimeMs}});await this.doCopy(e,t,n)}else{this.logCopyAction(t,"skipped, stats match")}}else{this.logCopyAction(t,"skipped")}this.removeWip(e)}catch(r){if(r.code==="ENOENT"){await this.doCopy(e,t,n);this.removeWip(e)}else{throw r}}this.state.counts.files++}async doCopy(e,t,n){try{if(this.verbose||this.json){const r=Date.now();await this.fns.copyFile(e,t);const i=n.size/((Date.now()-r)/1e3);this.logCopyAction(t,"complete",{speed:i})}else{await this.fns.copyFile(e,t)}this.state.counts.copies++}catch(e){this.logCopyAction(t,"error");this.handleError(e)}}removeWip(e){let t=this.state.wip.indexOf(e);if(t>=0){this.state.wip.splice(t,1)}}log(e){if(this.verbose||this.json){if(this.json==="pretty"){console.log(JSON.stringify({message:e,state:this.state},null,2)+"\n")}else if(this.json){console.log(JSON.stringify({message:e,state:this.state}))}else{console.log(`Count: ${this.state.counts.directories}d ${this.state.counts.files}f Jobs: ${this.pending.length} ${e}`)}}}logCopyAction(e,t,n){if(this.json){let r={file:e,action:t};if(n){Object.assign(r,n)}this.log(r)}else{let r=`Copying: '${e}' (${t})`;if(n&&n.speed!==undefined){r+=` (${l(n.speed)}/s)`}this.log(r)}}handleError(e){if(this.ignoreErrors){console.error(e)}else{throw e}}}e.exports=(e=>{const t=new Copy(e);return t.start()});e.exports.Copy=Copy},839:function(__unusedmodule,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:true});exports.getDMMF=void 0;const generator_helper_1=__webpack_require__(38);const debug_1=__importDefault(__webpack_require__(531));const generateClient_1=__webpack_require__(715);const getDMMF_1=__webpack_require__(918);Object.defineProperty(exports,"getDMMF",{enumerable:true,get:function(){return getDMMF_1.getDMMF}});const debugEnabled=debug_1.default.enabled("prisma-client:generator");const clientVersion=__webpack_require__(563).version;generator_helper_1.generatorHandler({onManifest(){return{defaultOutput:"@prisma/client",prettyName:"Prisma Client",requiresEngines:["queryEngine"],version:clientVersion}},async onGenerate(options){if(debugEnabled){console.log("__dirname",__dirname);console.log(eval(`__dirname`))}return generateClient_1.generateClient({datamodel:options.datamodel,datamodelPath:options.schemaPath,binaryPaths:options.binaryPaths,datasources:options.datasources,outputDir:options.generator.output,copyRuntime:Boolean(options.generator.config.copyRuntime),dmmf:options.dmmf,generator:options.generator,engineVersion:options.version,clientVersion:clientVersion,transpile:true})}})},867:function(e){e.exports=require("tty")},877:function(e,t,n){"use strict";const r=n(622);const i=n(490);const s=n(940);const o=n(972);const a=process.platform==="win32";const c=/\.(?:com|exe)$/i;const u=/node_modules[\\\/].bin[\\\/][^\\\/]+\.cmd$/i;function detectShebang(e){e.file=i(e);const t=e.file&&o(e.file);if(t){e.args.unshift(e.file);e.command=t;return i(e)}return e.file}function parseNonShell(e){if(!a){return e}const t=detectShebang(e);const n=!c.test(t);if(e.options.forceShell||n){const n=u.test(t);e.command=r.normalize(e.command);e.command=s.command(e.command);e.args=e.args.map(e=>s.argument(e,n));const i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`];e.command=process.env.comspec||"cmd.exe";e.options.windowsVerbatimArguments=true}return e}function parse(e,t,n){if(t&&!Array.isArray(t)){n=t;t=null}t=t?t.slice(0):[];n=Object.assign({},n);const r={command:e,args:t,options:n,file:undefined,original:{command:e,args:t}};return n.shell?r:parseNonShell(r)}e.exports=parse},884:function(e,t,n){"use strict";const r=n(631);e.exports=((e="")=>{const t=e.match(r);if(!t){return null}const[n,i]=t[0].replace(/#! ?/,"").split(" ");const s=n.split("/").pop();if(s==="env"){return i}return i?`${s} ${i}`:s})},887:function(e,t,n){const{dirname:r}=n(622);const i=(e,t,n=undefined)=>{if(n===t)return Promise.resolve();return e.statAsync(t).then(e=>e.isDirectory()?n:undefined,n=>n.code==="ENOENT"?i(e,r(t),t):undefined)};const s=(e,t,n=undefined)=>{if(n===t)return undefined;try{return e.statSync(t).isDirectory()?n:undefined}catch(n){return n.code==="ENOENT"?s(e,r(t),t):undefined}};e.exports={findMade:i,findMadeSync:s}},889:function(e,t,n){"use strict";const r=n(250);class EndError extends Error{constructor(e){super();this.value=e}}const i=(e,t)=>Promise.resolve(e).then(t);const s=e=>Promise.all(e).then(e=>e[1]===true&&Promise.reject(new EndError(e[0])));e.exports=((e,t,n)=>{n=Object.assign({concurrency:Infinity,preserveOrder:true},n);const o=r(n.concurrency);const a=[...e].map(e=>[e,o(i,e,t)]);const c=r(n.preserveOrder?1:Infinity);return Promise.all(a.map(e=>c(s,e))).then(()=>{}).catch(e=>e instanceof EndError?e.value:Promise.reject(e))})},899:function(e,t,n){const r=n(105);const i={};for(const e of Object.keys(r)){i[r[e]]=e}const s={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=s;for(const e of Object.keys(s)){if(!("channels"in s[e])){throw new Error("missing channels property: "+e)}if(!("labels"in s[e])){throw new Error("missing channel labels property: "+e)}if(s[e].labels.length!==s[e].channels){throw new Error("channel and label counts mismatch: "+e)}const{channels:t,labels:n}=s[e];delete s[e].channels;delete s[e].labels;Object.defineProperty(s[e],"channels",{value:t});Object.defineProperty(s[e],"labels",{value:n})}s.rgb.hsl=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const i=Math.min(t,n,r);const s=Math.max(t,n,r);const o=s-i;let a;let c;if(s===i){a=0}else if(t===s){a=(n-r)/o}else if(n===s){a=2+(r-t)/o}else if(r===s){a=4+(t-n)/o}a=Math.min(a*60,360);if(a<0){a+=360}const u=(i+s)/2;if(s===i){c=0}else if(u<=.5){c=o/(s+i)}else{c=o/(2-s-i)}return[a,c*100,u*100]};s.rgb.hsv=function(e){let t;let n;let r;let i;let s;const o=e[0]/255;const a=e[1]/255;const c=e[2]/255;const u=Math.max(o,a,c);const l=u-Math.min(o,a,c);const f=function(e){return(u-e)/6/l+1/2};if(l===0){i=0;s=0}else{s=l/u;t=f(o);n=f(a);r=f(c);if(o===u){i=r-n}else if(a===u){i=1/3+t-r}else if(c===u){i=2/3+n-t}if(i<0){i+=1}else if(i>1){i-=1}}return[i*360,s*100,u*100]};s.rgb.hwb=function(e){const t=e[0];const n=e[1];let r=e[2];const i=s.rgb.hsl(e)[0];const o=1/255*Math.min(t,Math.min(n,r));r=1-1/255*Math.max(t,Math.max(n,r));return[i,o*100,r*100]};s.rgb.cmyk=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const i=Math.min(1-t,1-n,1-r);const s=(1-t-i)/(1-i)||0;const o=(1-n-i)/(1-i)||0;const a=(1-r-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function comparativeDistance(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}s.rgb.keyword=function(e){const t=i[e];if(t){return t}let n=Infinity;let s;for(const t of Object.keys(r)){const i=r[t];const o=comparativeDistance(e,i);if(o<n){n=o;s=t}}return s};s.keyword.rgb=function(e){return r[e]};s.rgb.xyz=function(e){let t=e[0]/255;let n=e[1]/255;let r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=t*.4124+n*.3576+r*.1805;const s=t*.2126+n*.7152+r*.0722;const o=t*.0193+n*.1192+r*.9505;return[i*100,s*100,o*100]};s.rgb.lab=function(e){const t=s.rgb.xyz(e);let n=t[0];let r=t[1];let i=t[2];n/=95.047;r/=100;i/=108.883;n=n>.008856?n**(1/3):7.787*n+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;i=i>.008856?i**(1/3):7.787*i+16/116;const o=116*r-16;const a=500*(n-r);const c=200*(r-i);return[o,a,c]};s.hsl.rgb=function(e){const t=e[0]/360;const n=e[1]/100;const r=e[2]/100;let i;let s;let o;if(n===0){o=r*255;return[o,o,o]}if(r<.5){i=r*(1+n)}else{i=r+n-r*n}const a=2*r-i;const c=[0,0,0];for(let e=0;e<3;e++){s=t+1/3*-(e-1);if(s<0){s++}if(s>1){s--}if(6*s<1){o=a+(i-a)*6*s}else if(2*s<1){o=i}else if(3*s<2){o=a+(i-a)*(2/3-s)*6}else{o=a}c[e]=o*255}return c};s.hsl.hsv=function(e){const t=e[0];let n=e[1]/100;let r=e[2]/100;let i=n;const s=Math.max(r,.01);r*=2;n*=r<=1?r:2-r;i*=s<=1?s:2-s;const o=(r+n)/2;const a=r===0?2*i/(s+i):2*n/(r+n);return[t,a*100,o*100]};s.hsv.rgb=function(e){const t=e[0]/60;const n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6;const s=t-Math.floor(t);const o=255*r*(1-n);const a=255*r*(1-n*s);const c=255*r*(1-n*(1-s));r*=255;switch(i){case 0:return[r,c,o];case 1:return[a,r,o];case 2:return[o,r,c];case 3:return[o,a,r];case 4:return[c,o,r];case 5:return[r,o,a]}};s.hsv.hsl=function(e){const t=e[0];const n=e[1]/100;const r=e[2]/100;const i=Math.max(r,.01);let s;let o;o=(2-n)*r;const a=(2-n)*i;s=n*i;s/=a<=1?a:2-a;s=s||0;o/=2;return[t,s*100,o*100]};s.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100;let r=e[2]/100;const i=n+r;let s;if(i>1){n/=i;r/=i}const o=Math.floor(6*t);const a=1-r;s=6*t-o;if((o&1)!==0){s=1-s}const c=n+s*(a-n);let u;let l;let f;switch(o){default:case 6:case 0:u=a;l=c;f=n;break;case 1:u=c;l=a;f=n;break;case 2:u=n;l=a;f=c;break;case 3:u=n;l=c;f=a;break;case 4:u=c;l=n;f=a;break;case 5:u=a;l=n;f=c;break}return[u*255,l*255,f*255]};s.cmyk.rgb=function(e){const t=e[0]/100;const n=e[1]/100;const r=e[2]/100;const i=e[3]/100;const s=1-Math.min(1,t*(1-i)+i);const o=1-Math.min(1,n*(1-i)+i);const a=1-Math.min(1,r*(1-i)+i);return[s*255,o*255,a*255]};s.xyz.rgb=function(e){const t=e[0]/100;const n=e[1]/100;const r=e[2]/100;let i;let s;let o;i=t*3.2406+n*-1.5372+r*-.4986;s=t*-.9689+n*1.8758+r*.0415;o=t*.0557+n*-.204+r*1.057;i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92;s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92;o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92;i=Math.min(Math.max(0,i),1);s=Math.min(Math.max(0,s),1);o=Math.min(Math.max(0,o),1);return[i*255,s*255,o*255]};s.xyz.lab=function(e){let t=e[0];let n=e[1];let r=e[2];t/=95.047;n/=100;r/=108.883;t=t>.008856?t**(1/3):7.787*t+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*n-16;const s=500*(t-n);const o=200*(n-r);return[i,s,o]};s.lab.xyz=function(e){const t=e[0];const n=e[1];const r=e[2];let i;let s;let o;s=(t+16)/116;i=n/500+s;o=s-r/200;const a=s**3;const c=i**3;const u=o**3;s=a>.008856?a:(s-16/116)/7.787;i=c>.008856?c:(i-16/116)/7.787;o=u>.008856?u:(o-16/116)/7.787;i*=95.047;s*=100;o*=108.883;return[i,s,o]};s.lab.lch=function(e){const t=e[0];const n=e[1];const r=e[2];let i;const s=Math.atan2(r,n);i=s*360/2/Math.PI;if(i<0){i+=360}const o=Math.sqrt(n*n+r*r);return[t,o,i]};s.lch.lab=function(e){const t=e[0];const n=e[1];const r=e[2];const i=r/360*2*Math.PI;const s=n*Math.cos(i);const o=n*Math.sin(i);return[t,s,o]};s.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let o=t===null?s.rgb.hsv(e)[2]:t;o=Math.round(o/50);if(o===0){return 30}let a=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));if(o===2){a+=60}return a};s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])};s.rgb.ansi256=function(e){const t=e[0];const n=e[1];const r=e[2];if(t===n&&n===r){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}const i=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return i};s.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}const n=(~~(e>50)+1)*.5;const r=(t&1)*n*255;const i=(t>>1&1)*n*255;const s=(t>>2&1)*n*255;return[r,i,s]};s.ansi256.rgb=function(e){if(e>=232){const t=(e-232)*10+8;return[t,t,t]}e-=16;let t;const n=Math.floor(e/36)/5*255;const r=Math.floor((t=e%36)/6)/5*255;const i=t%6/5*255;return[n,r,i]};s.rgb.hex=function(e){const t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);const n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n};s.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}let n=t[0];if(t[0].length===3){n=n.split("").map(e=>{return e+e}).join("")}const r=parseInt(n,16);const i=r>>16&255;const s=r>>8&255;const o=r&255;return[i,s,o]};s.rgb.hcg=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const i=Math.max(Math.max(t,n),r);const s=Math.min(Math.min(t,n),r);const o=i-s;let a;let c;if(o<1){a=s/(1-o)}else{a=0}if(o<=0){c=0}else if(i===t){c=(n-r)/o%6}else if(i===n){c=2+(r-t)/o}else{c=4+(t-n)/o}c/=6;c%=1;return[c*360,o*100,a*100]};s.hsl.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=n<.5?2*t*n:2*t*(1-n);let i=0;if(r<1){i=(n-.5*r)/(1-r)}return[e[0],r*100,i*100]};s.hsv.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=t*n;let i=0;if(r<1){i=(n-r)/(1-r)}return[e[0],r*100,i*100]};s.hcg.rgb=function(e){const t=e[0]/360;const n=e[1]/100;const r=e[2]/100;if(n===0){return[r*255,r*255,r*255]}const i=[0,0,0];const s=t%1*6;const o=s%1;const a=1-o;let c=0;switch(Math.floor(s)){case 0:i[0]=1;i[1]=o;i[2]=0;break;case 1:i[0]=a;i[1]=1;i[2]=0;break;case 2:i[0]=0;i[1]=1;i[2]=o;break;case 3:i[0]=0;i[1]=a;i[2]=1;break;case 4:i[0]=o;i[1]=0;i[2]=1;break;default:i[0]=1;i[1]=0;i[2]=a}c=(1-n)*r;return[(n*i[0]+c)*255,(n*i[1]+c)*255,(n*i[2]+c)*255]};s.hcg.hsv=function(e){const t=e[1]/100;const n=e[2]/100;const r=t+n*(1-t);let i=0;if(r>0){i=t/r}return[e[0],i*100,r*100]};s.hcg.hsl=function(e){const t=e[1]/100;const n=e[2]/100;const r=n*(1-t)+.5*t;let i=0;if(r>0&&r<.5){i=t/(2*r)}else if(r>=.5&&r<1){i=t/(2*(1-r))}return[e[0],i*100,r*100]};s.hcg.hwb=function(e){const t=e[1]/100;const n=e[2]/100;const r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};s.hwb.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=1-n;const i=r-t;let s=0;if(i<1){s=(r-i)/(1-i)}return[e[0],i*100,s*100]};s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};s.gray.hsl=function(e){return[0,0,e[0]]};s.gray.hsv=s.gray.hsl;s.gray.hwb=function(e){return[0,100,e[0]]};s.gray.cmyk=function(e){return[0,0,0,e[0]]};s.gray.lab=function(e){return[e[0],0,0]};s.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255;const n=(t<<16)+(t<<8)+t;const r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r};s.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},902:function(e,t,n){const r=n(899);function buildGraph(){const e={};const t=Object.keys(r);for(let n=t.length,r=0;r<n;r++){e[t[r]]={distance:-1,parent:null}}return e}function deriveBFS(e){const t=buildGraph();const n=[e];t[e].distance=0;while(n.length){const e=n.pop();const i=Object.keys(r[e]);for(let r=i.length,s=0;s<r;s++){const r=i[s];const o=t[r];if(o.distance===-1){o.distance=t[e].distance+1;o.parent=e;n.unshift(r)}}}return t}function link(e,t){return function(n){return t(e(n))}}function wrapConversion(e,t){const n=[t[e].parent,e];let i=r[t[e].parent][e];let s=t[e].parent;while(t[s].parent){n.unshift(t[s].parent);i=link(r[t[s].parent][s],i);s=t[s].parent}i.conversion=n;return i}e.exports=function(e){const t=deriveBFS(e);const n={};const r=Object.keys(t);for(let e=r.length,i=0;i<e;i++){const e=r[i];const s=t[e];if(s.parent===null){continue}n[e]=wrapConversion(e,t)}return n}},918:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDMMF=t.getPrismaClientDMMF=void 0;const r=n(582);const i=n(7);const s=n(958);function getPrismaClientDMMF(e){return s.transformDmmf(i.externalToInternalDmmf(e))}t.getPrismaClientDMMF=getPrismaClientDMMF;async function getDMMF(e){const t=await r.getDMMF(e);return getPrismaClientDMMF(t)}t.getDMMF=getDMMF},919:function(e,t,n){"use strict";const r=n(747);const i=n(622);const{promisify:s}=n(669);const o=n(311);const a=o.satisfies(process.version,">=10.12.0");const c=e=>{if(process.platform==="win32"){const t=/[<>:"|?*]/.test(e.replace(i.parse(e).root,""));if(t){const t=new Error(`Path contains invalid characters: ${e}`);t.code="EINVAL";throw t}}};const u=e=>{const t={mode:511&~process.umask(),fs:r};return{...t,...e}};const l=e=>{const t=new Error(`operation not permitted, mkdir '${e}'`);t.code="EPERM";t.errno=-4048;t.path=e;t.syscall="mkdir";return t};const f=async(e,t)=>{c(e);t=u(t);const n=s(t.fs.mkdir);const o=s(t.fs.stat);if(a&&t.fs.mkdir===r.mkdir){const r=i.resolve(e);await n(r,{mode:t.mode,recursive:true});return r}const f=async e=>{try{await n(e,t.mode);return e}catch(t){if(t.code==="EPERM"){throw t}if(t.code==="ENOENT"){if(i.dirname(e)===e){throw l(e)}if(t.message.includes("null bytes")){throw t}await f(i.dirname(e));return f(e)}try{const n=await o(e);if(!n.isDirectory()){throw new Error("The path is not a directory")}}catch(e){throw t}return e}};return f(i.resolve(e))};e.exports=f;e.exports.sync=((e,t)=>{c(e);t=u(t);if(a&&t.fs.mkdirSync===r.mkdirSync){const n=i.resolve(e);r.mkdirSync(n,{mode:t.mode,recursive:true});return n}const n=e=>{try{t.fs.mkdirSync(e,t.mode)}catch(r){if(r.code==="EPERM"){throw r}if(r.code==="ENOENT"){if(i.dirname(e)===e){throw l(e)}if(r.message.includes("null bytes")){throw r}n(i.dirname(e));return n(e)}try{if(!t.fs.statSync(e).isDirectory()){throw new Error("The path is not a directory")}}catch(e){throw r}}return e};return n(i.resolve(e))})},922:function(e,t,n){"use strict";const{promisify:r}=n(669);const i=n(622);const s=n(295);const o=n(796);const a=n(645);const c=n(325);const u=n(68);const l=r(s.writeFile);const f=e=>i.join(u,c.v4(),e||"");const p=async(e,t)=>new Promise((n,r)=>{const i=s.createWriteStream(e);t.on("error",e=>{r(e);t.unpipe(i);i.end()}).pipe(i).on("error",r).on("finish",n)});e.exports=(async(e,t)=>{const n=f(t);const r=o(e)?p:l;await a(i.dirname(n));await r(n,e);return n});e.exports.sync=((e,t)=>{const n=f(t);a.sync(i.dirname(n));s.writeFileSync(n,e);return n})},932:function(e){"use strict";const t=(e,t)=>{for(const n of Reflect.ownKeys(t)){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}return e};e.exports=t;e.exports.default=t},940:function(e){"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(e){e=e.replace(t,"^$1");return e}function escapeArgument(e,n){e=`${e}`;e=e.replace(/(\\*)"/g,'$1$1\\"');e=e.replace(/(\\*)$/,"$1$1");e=`"${e}"`;e=e.replace(t,"^$1");if(n){e=e.replace(t,"^$1")}return e}e.exports.command=escapeCommand;e.exports.argument=escapeArgument},958:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.transformDmmf=void 0;const r=n(414);function transformDmmf(e){const t=transformOrderInputTypes(transformWhereInputTypes(e));return{datamodel:t.datamodel,mappings:t.mappings,schema:{enums:t.schema.enums,rootMutationType:t.schema.rootMutationType,rootQueryType:t.schema.rootQueryType,outputTypes:filterOutputTypes(t.schema.outputTypes),inputTypes:makeWhereUniqueInputsRequired(filterInputTypes(t.schema.inputTypes))}}}t.transformDmmf=transformDmmf;function filterInputTypes(e){return r.uniqBy(e,e=>e.name)}function filterOutputTypes(e){return r.uniqBy(e,e=>e.name)}function transformOrderInputTypes(e){const t=e.schema.inputTypes;const n=[{name:"OrderByArg",values:["asc","desc"]}];for(const r of e.schema.enums){if(!r.name.endsWith("OrderByInput")){n.push(r);continue}const e=r.values.reduce((e,t)=>{if(t.endsWith("ASC")){const n=t.lastIndexOf("_ASC");e.push(t.slice(0,n))}return e},[]);const i={name:r.name,atLeastOne:true,atMostOne:true,isOrderType:true,fields:e.map(e=>({name:e,inputType:[{type:"OrderByArg",isList:false,isRequired:false,isNullable:true,kind:"enum"}],isRelationFilter:false}))};t.push(i)}return{datamodel:e.datamodel,mappings:e.mappings,schema:{...e.schema,inputTypes:t,enums:n}}}function makeWhereUniqueInputsRequired(e){return e.map(e=>{if(e.name.endsWith("WhereUniqueInput")){e.atLeastOne=true}return e})}function getFieldType(e){if(e.default){if(typeof e.default==="string"){if(e.default==="uuid"){return"UUID"}}else if(typeof e.default==="boolean"||typeof e.default==="number"){return e.type}else if(e.default.name==="uuid"){return"UUID"}}return e.type}function transformWhereInputTypes(e){const t=e.schema.inputTypes;const n=[];const r={};for(const i of t){if(!i.name.endsWith("WhereInput")){n.push(i);continue}let t=i.name.lastIndexOf("WhereInput");let s=i.name.slice(0,t);let o=e.datamodel.models.find(e=>e.name===s);if(!o){t=i.name.lastIndexOf("ScalarWhereInput");s=i.name.slice(0,t);o=e.datamodel.models.find(e=>e.name===s)}if(!o){n.push(i);continue}const a=["AND","OR","NOT"];a.push(...o.fields.filter(e=>e.kind==="object"&&!e.isList).map(e=>e.name));const c=i.fields.filter(e=>a.includes(e.name)).map(e=>({...e,isRelationFilter:true}));const u=o.fields.filter(e=>e.kind==="object"?e.isList:!e.isList).map(e=>{if(!r[getFilterName(getFieldType(e),e.isRequired||e.kind==="object")]){r[getFilterName(getFieldType(e),e.isRequired||e.kind==="object")]=makeFilterType(getFieldType(e),e.isRequired,e.kind!=="object",e.kind==="enum")}const t=[];if(e.kind!=="object"){t.push({isList:e.isList,isRequired:false,isNullable:!e.isRequired,kind:e.kind,type:getFieldType(e)})}const n=getFilterName(getFieldType(e),e.isRequired||e.kind==="object");t.push({type:n,isList:false,isRequired:false,isNullable:!e.isRequired,kind:"object"});if(!e.isRequired&&e.kind!=="object"){t.push({type:"null",isList:false,isRequired:false,isNullable:!e.isRequired,kind:"scalar"})}const i=e.isList&&e.kind==="object"?true:undefined;return{name:e.name,inputType:t,isRelationFilter:false,nullEqualsUndefined:i}});c.unshift(...u);const l={name:i.name,fields:c,isWhereType:true,atLeastOne:false};n.push(l)}const i=Object.values(r);n.push(...i);return{datamodel:e.datamodel,mappings:e.mappings,schema:{...e.schema,inputTypes:n}}}function getFilterName(e,t){return`${t?"":"Nullable"}${e}Filter`}function getWhereInputName(e){return`${e}WhereInput`}function makeFilterType(e,t,n,r){const i=getFilterName(e,t||!n);const s=!t&&n;return{name:i,fields:n?getScalarFilterArgs(e,t,r,s):getRelationFilterArgs(e),atLeastOne:false}}function getRelationFilterArgs(e){return getScalarArgs(["every","some","none"],[getWhereInputName(e)],undefined,"object",false)}function getScalarFilterArgs(e,t,n=false,r){if(n){return[...getBaseFilters(e,t,n,r),...getInclusionFilters(e,n,r)]}switch(e){case"String":case"ID":case"UUID":return[...getBaseFilters(e,t,n,r),...getInclusionFilters(e,n,r),...getAlphanumericFilters(e,n,r),...getStringFilters(e,n,r)];case"Int":case"Float":case"DateTime":return[...getBaseFilters(e,t,n,r),...getInclusionFilters(e,n,r),...getAlphanumericFilters(e,n,r)];case"Boolean":return[...getBaseFilters(e,t,n,r)]}return[]}function getBaseFilters(e,t,n,r){const i=getFilterName(e,t);const s=t?[]:["null"];return[...getScalarArgs(["equals"],[e,...s],undefined,n?"enum":"scalar",r),...getScalarArgs(["not"],[e,...s,i],undefined,n?"enum":"scalar",r)]}function getStringFilters(e,t,n){return getScalarArgs(["contains","startsWith","endsWith"],[e],undefined,t?"enum":"scalar",n)}function getAlphanumericFilters(e,t,n){return getScalarArgs(["lt","lte","gt","gte"],[e],undefined,t?"enum":"scalar",n)}function getInclusionFilters(e,t,n){return getScalarArgs(["in","notIn"],[e],true,t?"enum":"scalar",n)}function getScalarArgs(e,t,n=false,r="scalar",i){return e.map(e=>getScalarArg(e,t,n,r,i))}function getScalarArg(e,t,n,r="scalar",i){return{name:e,isRelationFilter:r==="object",inputType:t.map(e=>({isList:n,isRequired:false,isNullable:i,kind:r,type:e}))}}},972:function(e,t,n){"use strict";const r=n(747);const i=n(884);function readShebang(e){const t=150;const n=Buffer.alloc(t);let s;try{s=r.openSync(e,"r");r.readSync(s,n,0,t,0);r.closeSync(s)}catch(e){}return i(n.toString())}e.exports=readShebang},974:function(e){e.exports=function klona(e){if(typeof e!=="object")return e;var t,n,r=Object.prototype.toString.call(e);if(r==="[object Object]"){n={};for(t in e){if(t==="__proto__"){Object.defineProperty(n,t,{value:klona(e[t]),configurable:1,enumerable:1,writable:1})}else{n[t]=klona(e[t])}}return n}if(r==="[object Array]"){t=e.length;for(n=new Array(t);t--;){n[t]=klona(e[t])}return n}if(r==="[object Set]"){n=new Set;e.forEach(function(e){n.add(klona(e))});return n}if(r==="[object Map]"){n=new Map;e.forEach(function(e,t){n.set(klona(t),klona(e))});return n}if(r==="[object Date]"){return new Date(+e)}if(r==="[object RegExp]"){n=new RegExp(e.source,e.flags);n.lastIndex=e.lastIndex;return n}if(r.slice(-6)==="Array]"){return new e.constructor(e)}return e}},982:function(e,t,n){"use strict";const r=n(626);const i=n(737);const s=(e,t,{target:n="stdout",...s}={})=>{if(!i[n]){if(s.fallback===false){return e}return typeof s.fallback==="function"?s.fallback(e,t):`${e} (​${t}​)`}return r.link(e,t)};e.exports=((e,t,n={})=>s(e,t,n));e.exports.stderr=((e,t,n={})=>s(e,t,{target:"stderr",...n}));e.exports.isSupported=i.stdout;e.exports.stderr.isSupported=i.stderr},984:function(e,t,n){const r=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform;const{resolve:i,parse:s}=n(622);const o=e=>{if(/\0/.test(e)){throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"})}e=i(e);if(r==="win32"){const t=/[*|"<>?:]/;const{root:n}=s(e);if(t.test(e.substr(n.length))){throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}}return e};e.exports=o},998:function(e,t,n){"use strict";n(658);n(401)}},function(e){"use strict";!function(){e.nmd=function(e){e.paths=[];if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});return e}}()});
//# sourceMappingURL=index.js.map