prisma 7.9.0-dev.23 → 7.9.0-dev.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +5 -5
- package/dist/cli/src/config.d.ts +1 -0
- package/package.json +16 -16
package/build/index.js
CHANGED
|
@@ -44,7 +44,7 @@ Content-Type: ${a.type||"application/octet-stream"}\r
|
|
|
44
44
|
`;let l=(0,pEt.parseProxyResponse)(i);i.write(`${u}\r
|
|
45
45
|
`);let{connect:p,buffered:f}=await l;if(r.emit("proxyConnect",p),this.emit("proxyConnect",p,r),p.statusCode===200)return r.once("socket",fEt),n.secureEndpoint?(oD("Upgrading socket connection to TLS"),s1e.connect({...c1e(a1e(n),"host","path","port"),socket:i})):i;i.destroy();let g=new KM.Socket({writable:!1});return g.readable=!0,r.once("socket",x=>{oD("Replaying proxy buffer for failed request"),(0,aEt.default)(x.listenerCount("data")>0),x.push(f),x.push(null)}),g}};JM.protocols=["http","https"];lu.HttpsProxyAgent=JM;function fEt(e){e.resume()}function c1e(e,...r){let n={},o;for(o in e)r.includes(o)||(n[o]=e[o]);return n}});var C1e=C((D1e,A1e)=>{"use strict";D1e=A1e.exports=Ov;function Ov(e,r){if(this.stream=r.stream||process.stderr,typeof r=="number"){var n=r;r={},r.total=n}else{if(r=r||{},typeof e!="string")throw new Error("format required");if(typeof r.total!="number")throw new Error("total required")}this.fmt=e,this.curr=r.curr||0,this.total=r.total,this.width=r.width||this.total,this.clear=r.clear,this.chars={complete:r.complete||"=",incomplete:r.incomplete||"-",head:r.head||r.complete||"="},this.renderThrottle=r.renderThrottle!==0?r.renderThrottle||16:0,this.lastRender=-1/0,this.callback=r.callback||function(){},this.tokens={},this.lastDraw=""}Ov.prototype.tick=function(e,r){if(e!==0&&(e=e||1),typeof e=="object"&&(r=e,e=1),r&&(this.tokens=r),this.curr==0&&(this.start=new Date),this.curr+=e,this.render(),this.curr>=this.total){this.render(void 0,!0),this.complete=!0,this.terminate(),this.callback(this);return}};Ov.prototype.render=function(e,r){if(r=r!==void 0?r:!1,e&&(this.tokens=e),!!this.stream.isTTY){var n=Date.now(),o=n-this.lastRender;if(!(!r&&o<this.renderThrottle)){this.lastRender=n;var i=this.curr/this.total;i=Math.min(Math.max(i,0),1);var a=Math.floor(i*100),c,u,l,p=new Date-this.start,f=a==100?0:p*(this.total/this.curr-1),g=this.curr/(p/1e3),x=this.fmt.replace(":current",this.curr).replace(":total",this.total).replace(":elapsed",isNaN(p)?"0.0":(p/1e3).toFixed(1)).replace(":eta",isNaN(f)||!isFinite(f)?"0.0":(f/1e3).toFixed(1)).replace(":percent",a.toFixed(0)+"%").replace(":rate",Math.round(g)),b=Math.max(0,this.stream.columns-x.replace(":bar","").length);b&&process.platform==="win32"&&(b=b-1);var E=Math.min(this.width,b);if(l=Math.round(E*i),u=Array(Math.max(0,l+1)).join(this.chars.complete),c=Array(Math.max(0,E-l+1)).join(this.chars.incomplete),l>0&&(u=u.slice(0,-1)+this.chars.head),x=x.replace(":bar",u+c),this.tokens)for(var S in this.tokens)x=x.replace(":"+S,this.tokens[S]);this.lastDraw!==x&&(this.stream.cursorTo(0),this.stream.write(x),this.stream.clearLine(1),this.lastDraw=x)}}};Ov.prototype.update=function(e,r){var n=Math.floor(e*this.total),o=n-this.curr;this.tick(o,r)};Ov.prototype.interrupt=function(e){this.stream.clearLine(),this.stream.cursorTo(0),this.stream.write(e),this.stream.write(`
|
|
46
46
|
`),this.stream.write(this.lastDraw)};Ov.prototype.terminate=function(){this.clear?this.stream.clearLine&&(this.stream.clearLine(),this.stream.cursorTo(0)):this.stream.write(`
|
|
47
|
-
`)}});var I1e=C((W0r,P1e)=>{"use strict";P1e.exports=C1e()});var F1e=C((z0r,bEt)=>{bEt.exports={name:"@prisma/fetch-engine",version:"7.9.0-dev.23",description:"This package is intended for Prisma's internal use",main:"dist/index.js",types:"dist/index.d.ts",license:"Apache-2.0",author:"Tim Suchanek <suchanek@prisma.io>",homepage:"https://www.prisma.io",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/fetch-engine"},bugs:"https://github.com/prisma/prisma/issues",enginesOverride:{},devDependencies:{"@types/node":"~20.19.24","@types/progress":"2.0.7",del:"6.1.1",execa:"8.0.1","find-cache-dir":"5.0.0","fs-extra":"11.3.0",hasha:"5.2.2","http-proxy-agent":"7.0.2","https-proxy-agent":"7.0.6",kleur:"4.1.5","node-fetch":"3.3.2","p-filter":"4.1.0","p-map":"4.0.0","p-retry":"4.6.2",progress:"2.0.3","temp-dir":"2.0.0",tempy:"1.0.1","timeout-signal":"2.0.0",typescript:"5.4.5"},dependencies:{"@prisma/debug":"workspace:*","@prisma/engines-version":"7.9.0-1.e922089b7d7502aff4249d5da3420f6fa55fc6ad","@prisma/get-platform":"workspace:*"},scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",test:"vitest run",prepublishOnly:"pnpm run build"},files:["README.md","dist"],sideEffects:!1}});var W1e=C((Dyr,H1e)=>{"use strict";var FEt=Object.create,XM=Object.defineProperty,MEt=Object.getOwnPropertyDescriptor,kEt=Object.getOwnPropertyNames,NEt=Object.getPrototypeOf,$Et=Object.prototype.hasOwnProperty,LEt=(e,r)=>{for(var n in r)XM(e,n,{get:r[n],enumerable:!0})},U1e=(e,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of kEt(r))!$Et.call(e,i)&&i!==n&&XM(e,i,{get:()=>r[i],enumerable:!(o=MEt(r,i))||o.enumerable});return e},ek=(e,r,n)=>(n=e!=null?FEt(NEt(e)):{},U1e(r||!e||!e.__esModule?XM(n,"default",{value:e,enumerable:!0}):n,e)),BEt=e=>U1e(XM({},"__esModule",{value:!0}),e),j1e={};LEt(j1e,{CompositeFilesResolver:()=>UEt,InMemoryFilesResolver:()=>qEt,ensureType:()=>zEt,loadRelatedSchemaFiles:()=>GEt,loadSchemaFiles:()=>G1e,realFsResolver:()=>XH});H1e.exports=BEt(j1e);var ZH=ek(require("node:path")),B1e=ek(require("node:path"));function q1e(e){return e.caseSensitive?r=>r:r=>r.toLocaleLowerCase()}var UEt=class{constructor(e,r,n){this.primary=e,this.secondary=r,this._fileNameToKey=q1e(n)}_fileNameToKey;async listDirContents(e){let r=await this.primary.listDirContents(e),n=await this.secondary.listDirContents(e);return jEt([...r,...n],this._fileNameToKey)}async getEntryType(e){return await this.primary.getEntryType(e)??await this.secondary.getEntryType(e)}async getFileContents(e){return await this.primary.getFileContents(e)??await this.secondary.getFileContents(e)}};function jEt(e,r){let n=new Map;for(let o of e){let i=r(o);n.has(i)||n.set(i,o)}return Array.from(n.values())}var qEt=class{_tree={};_fileNameToKey;constructor(e){this._fileNameToKey=q1e(e)}addFile(e,r){let n=e.split(/[\\/]/),o=n.pop();if(!o)throw new Error("Path is empty");let i=this._tree;for(let a of n){let c=this._fileNameToKey(a),u=i[c];if(u||(u={canonicalName:a,content:{}},i[c]=u),typeof u.content=="string")throw new Error(`${a} is a file`);i=u.content}if(typeof i[o]?.content=="object")throw new Error(`${e} is a directory`);i[this._fileNameToKey(o)]={canonicalName:o,content:r}}getInMemoryContent(e){let r=e.split(/[\\/]/).map(o=>this._fileNameToKey(o)),n=this._tree;for(let o of r){if(typeof n!="object")return;n=n[o]?.content}return n}listDirContents(e){return Promise.resolve().then(()=>{let r=this.getInMemoryContent(e);return typeof r!="object"?[]:Object.values(r).map(n=>n.canonicalName)})}getEntryType(e){return Promise.resolve().then(()=>{let r=this.getInMemoryContent(e);if(typeof r=="string")return{kind:"file"};if(typeof r=="object")return{kind:"directory"}})}getFileContents(e){return Promise.resolve().then(()=>{let r=this.getInMemoryContent(e);if(!(typeof r>"u")){if(typeof r=="object")throw new Error(`${e} is directory`);return r}})}},QM=ek(Lh()),XH={listDirContents(e){return QM.default.readdir(e)},async getEntryType(e){let r=await QM.default.lstat(e);return r.isFile()?{kind:"file"}:r.isDirectory()?{kind:"directory"}:r.isSymbolicLink()?{kind:"symlink",realPath:await QM.default.realpath(e)}:{kind:"other"}},getFileContents(e){return QM.default.readFile(e,"utf8")}};async function G1e(e,r=XH){let n=await r.getEntryType(e);return QH(e,n,r)}async function QH(e,r,n){if(!r)return[];if(r.kind==="symlink"){let o=r.realPath,i=await n.getEntryType(o);return QH(o,i,n)}if(r.kind==="file"){if(B1e.default.extname(e)!==".prisma")return[];let o=await n.getFileContents(e);return typeof o>"u"?[]:[[e,o]]}if(r.kind==="directory"){let o=await n.listDirContents(e);return(await Promise.all(o.map(async a=>{let c=B1e.default.join(e,a),u=await n.getEntryType(c);return QH(c,u,n)}))).flat()}return[]}async function GEt(e,r=XH){let n=await WEt(e,r);return n?await G1e(n,r):HEt(e,r)}async function HEt(e,r){let n=await r.getFileContents(e);return n===void 0?[]:[[e,n]]}async function WEt(e,r){let n=ZH.default.dirname(e);for(;n!==e;){let o=ZH.default.dirname(n);if((await r.listDirContents(o)).filter(c=>ZH.default.extname(c)===".prisma").length===0)return n;n=o}}var VEt=ek(require("node:fs/promises"));async function zEt(e,r){try{let n=await VEt.default.stat(e);return r==="file"&&n.isFile()||r==="directory"&&n.isDirectory()?void 0:{kind:"WrongType",path:e,expectedTypes:[r]}}catch(n){if(n.code==="ENOENT")return{kind:"NotFound",path:e,expectedType:r};throw n}}});var cW=C((mo,Q1e)=>{"use strict";var Y1e={};Y1e.__wbindgen_placeholder__=Q1e.exports;var tk=null;function uD(){return(tk===null||tk.byteLength===0)&&(tk=new Uint8Array(ke.memory.buffer)),tk}var Z1e=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Z1e.decode();function rvt(e,r){return Z1e.decode(uD().subarray(e,e+r))}function Ts(e,r){return e=e>>>0,rvt(e,r)}function Fv(e){let r=ke.__wbindgen_externrefs.get(e);return ke.__externref_table_dealloc(e),r}function nvt(e,r){return e=e>>>0,uD().subarray(e/1,e/1+r)}var Fo=0,lD=new TextEncoder;"encodeInto"in lD||(lD.encodeInto=function(e,r){let n=lD.encode(e);return r.set(n),{read:e.length,written:n.length}});function di(e,r,n){if(n===void 0){let u=lD.encode(e),l=r(u.length,1)>>>0;return uD().subarray(l,l+u.length).set(u),Fo=u.length,l}let o=e.length,i=r(o,1)>>>0,a=uD(),c=0;for(;c<o;c++){let u=e.charCodeAt(c);if(u>127)break;a[i+c]=u}if(c!==o){c!==0&&(e=e.slice(c)),i=n(i,o,o=c+e.length*3,1)>>>0;let u=uD().subarray(i+c,i+o),l=lD.encodeInto(e,u);c+=l.written,i=n(i,o,c,1)>>>0}return Fo=c,i}mo.merge_schemas=function(e){let r,n;try{let a=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),c=Fo,u=ke.merge_schemas(a,c);var o=u[0],i=u[1];if(u[3])throw o=0,i=0,Fv(u[2]);return r=o,n=i,Ts(o,i)}finally{ke.__wbindgen_free(r,n,1)}};mo.native_types=function(e){let r,n;try{let o=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=Fo,a=ke.native_types(o,i);return r=a[0],n=a[1],Ts(a[0],a[1])}finally{ke.__wbindgen_free(r,n,1)}};mo.lint=function(e){let r,n;try{let o=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=Fo,a=ke.lint(o,i);return r=a[0],n=a[1],Ts(a[0],a[1])}finally{ke.__wbindgen_free(r,n,1)}};mo.get_dmmf=function(e){let r,n;try{let a=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),c=Fo,u=ke.get_dmmf(a,c);var o=u[0],i=u[1];if(u[3])throw o=0,i=0,Fv(u[2]);return r=o,n=i,Ts(o,i)}finally{ke.__wbindgen_free(r,n,1)}};mo.references=function(e,r){let n,o;try{let i=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=Fo,c=di(r,ke.__wbindgen_malloc,ke.__wbindgen_realloc),u=Fo,l=ke.references(i,a,c,u);return n=l[0],o=l[1],Ts(l[0],l[1])}finally{ke.__wbindgen_free(n,o,1)}};mo.format=function(e,r){let n,o;try{let i=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=Fo,c=di(r,ke.__wbindgen_malloc,ke.__wbindgen_realloc),u=Fo,l=ke.format(i,a,c,u);return n=l[0],o=l[1],Ts(l[0],l[1])}finally{ke.__wbindgen_free(n,o,1)}};mo.validate=function(e){let r=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),n=Fo,o=ke.validate(r,n);if(o[1])throw Fv(o[0])};mo.debug_panic=function(){ke.debug_panic()};mo.text_document_completion=function(e,r){let n,o;try{let i=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=Fo,c=di(r,ke.__wbindgen_malloc,ke.__wbindgen_realloc),u=Fo,l=ke.text_document_completion(i,a,c,u);return n=l[0],o=l[1],Ts(l[0],l[1])}finally{ke.__wbindgen_free(n,o,1)}};mo.referential_actions=function(e){let r,n;try{let o=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=Fo,a=ke.referential_actions(o,i);return r=a[0],n=a[1],Ts(a[0],a[1])}finally{ke.__wbindgen_free(r,n,1)}};mo.get_dmmf_buffered=function(e){let r=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),n=Fo,o=ke.get_dmmf_buffered(r,n);if(o[2])throw Fv(o[1]);return Rv.__wrap(o[0])};mo.get_config=function(e){let r,n;try{let o=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=Fo,a=ke.get_config(o,i);return r=a[0],n=a[1],Ts(a[0],a[1])}finally{ke.__wbindgen_free(r,n,1)}};mo.hover=function(e,r){let n,o;try{let i=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=Fo,c=di(r,ke.__wbindgen_malloc,ke.__wbindgen_realloc),u=Fo,l=ke.hover(i,a,c,u);return n=l[0],o=l[1],Ts(l[0],l[1])}finally{ke.__wbindgen_free(n,o,1)}};mo.get_datamodel=function(e){let r,n;try{let a=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),c=Fo,u=ke.get_datamodel(a,c);var o=u[0],i=u[1];if(u[3])throw o=0,i=0,Fv(u[2]);return r=o,n=i,Ts(o,i)}finally{ke.__wbindgen_free(r,n,1)}};mo.code_actions=function(e,r){let n,o;try{let i=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=Fo,c=di(r,ke.__wbindgen_malloc,ke.__wbindgen_realloc),u=Fo,l=ke.code_actions(i,a,c,u);return n=l[0],o=l[1],Ts(l[0],l[1])}finally{ke.__wbindgen_free(n,o,1)}};mo.preview_features=function(){let e,r;try{let n=ke.preview_features();return e=n[0],r=n[1],Ts(n[0],n[1])}finally{ke.__wbindgen_free(e,r,1)}};var J1e=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_dmmfbuffer_free(e>>>0,1)),Rv=class e{static __wrap(r){r=r>>>0;let n=Object.create(e.prototype);return n.__wbg_ptr=r,J1e.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let r=this.__wbg_ptr;return this.__wbg_ptr=0,J1e.unregister(this),r}free(){let r=this.__destroy_into_raw();ke.__wbg_dmmfbuffer_free(r,0)}read_chunk(r,n){let o=ke.dmmfbuffer_read_chunk(this.__wbg_ptr,r,n);if(o[3])throw Fv(o[2]);var i=nvt(o[0],o[1]).slice();return ke.__wbindgen_free(o[0],o[1]*1,1),i}len(){return ke.dmmfbuffer_len(this.__wbg_ptr)>>>0}is_empty(){return ke.dmmfbuffer_is_empty(this.__wbg_ptr)!==0}};Symbol.dispose&&(Rv.prototype[Symbol.dispose]=Rv.prototype.free);mo.DmmfBuffer=Rv;mo.__wbg_Error_e83987f665cf5504=function(e,r){return Error(Ts(e,r))};mo.__wbg___wbindgen_throw_b855445ff6a94295=function(e,r){throw new Error(Ts(e,r))};mo.__wbg_set_message_f22ac4a6869ee695=function(e,r){global.PRISMA_WASM_PANIC_REGISTRY.set_message(Ts(e,r))};mo.__wbindgen_init_externref_table=function(){let e=ke.__wbindgen_externrefs,r=e.grow(4);e.set(0,void 0),e.set(r+0,void 0),e.set(r+1,null),e.set(r+2,!0),e.set(r+3,!1)};var ovt=`${__dirname}/prisma_schema_build_bg.wasm`,ivt=require("fs").readFileSync(ovt),svt=new WebAssembly.Module(ivt),ke=mo.__wasm=new WebAssembly.Instance(svt,Y1e).exports;ke.__wbindgen_start()});var uW=C((Uyr,avt)=>{avt.exports={name:"@prisma/internals",version:"7.9.0-dev.23",description:"This package is intended for Prisma's internal use",main:"dist/index.js",types:"dist/index.d.ts",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/internals"},homepage:"https://www.prisma.io",author:"Tim Suchanek <suchanek@prisma.io>",bugs:"https://github.com/prisma/prisma/issues",license:"Apache-2.0",scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",test:"dotenv -e ../../.db.env -- vitest run --silent",prepublishOnly:"pnpm run build"},files:["README.md","dist","!dist/get-generators/engines/*","scripts"],devDependencies:{"@babel/helper-validator-identifier":"7.25.9","@opentelemetry/api":"1.9.0","@types/babel__helper-validator-identifier":"7.15.2","@types/node":"~20.19.24","@types/resolve":"1.20.6","checkpoint-client":"1.1.33","cli-truncate":"4.0.0",empathic:"2.0.0","escape-string-regexp":"5.0.0",execa:"8.0.1","find-up":"7.0.0","fp-ts":"2.16.9","fs-extra":"11.3.0","global-directory":"4.0.0",globby:"11.1.0","identifier-regex":"1.0.0","indent-string":"4.0.0","is-windows":"1.0.2","is-wsl":"3.1.0",kleur:"4.1.5","mock-stdin":"1.0.0","new-github-issue-url":"0.2.1","node-fetch":"3.3.2","npm-packlist":"5.1.3",open:"7.4.2","p-map":"4.0.0",resolve:"1.22.10","string-width":"7.2.0","strip-indent":"4.0.0","temp-dir":"2.0.0",tempy:"1.0.1","terminal-link":"4.0.0",tmp:"0.2.3","ts-pattern":"5.6.2","ts-toolbelt":"9.6.0",typescript:"5.4.5",yarn:"1.22.22"},dependencies:{"@prisma/config":"workspace:*","@prisma/debug":"workspace:*","@prisma/dmmf":"workspace:*","@prisma/driver-adapter-utils":"workspace:*","@prisma/engines":"workspace:*","@prisma/fetch-engine":"workspace:*","@prisma/generator":"workspace:*","@prisma/generator-helper":"workspace:*","@prisma/get-dmmf":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/prisma-schema-wasm":"7.9.0-1.e922089b7d7502aff4249d5da3420f6fa55fc6ad","@prisma/schema-engine-wasm":"7.9.0-1.e922089b7d7502aff4249d5da3420f6fa55fc6ad","@prisma/schema-files-loader":"workspace:*","@streamparser/json":"0.0.22",arg:"5.0.2",prompts:"2.4.2"},peerDependencies:{typescript:">=5.4.0"},peerDependenciesMeta:{typescript:{optional:!0}},sideEffects:!1}});var bn=C(wt=>{"use strict";var _vt=wt&&wt.__spreadArray||function(e,r,n){if(n||arguments.length===2)for(var o=0,i=r.length,a;o<i;o++)(a||!(o in r))&&(a||(a=Array.prototype.slice.call(r,0,o)),a[o]=r[o]);return e.concat(a||Array.prototype.slice.call(r))};Object.defineProperty(wt,"__esModule",{value:!0});wt.dual=wt.getEndomorphismMonoid=wt.SK=wt.hole=wt.constVoid=wt.constUndefined=wt.constNull=wt.constFalse=wt.constTrue=wt.unsafeCoerce=wt.apply=wt.getRing=wt.getSemiring=wt.getMonoid=wt.getSemigroup=wt.getBooleanAlgebra=void 0;wt.identity=TW;wt.constant=hD;wt.flip=Ovt;wt.flow=mTe;wt.tuple=Rvt;wt.increment=Fvt;wt.decrement=Mvt;wt.absurd=hTe;wt.tupled=kvt;wt.untupled=Nvt;wt.pipe=$vt;wt.not=Bvt;var Tvt=function(e){return function(){return{meet:function(r,n){return function(o){return e.meet(r(o),n(o))}},join:function(r,n){return function(o){return e.join(r(o),n(o))}},zero:function(){return e.zero},one:function(){return e.one},implies:function(r,n){return function(o){return e.implies(r(o),n(o))}},not:function(r){return function(n){return e.not(r(n))}}}}};wt.getBooleanAlgebra=Tvt;var Dvt=function(e){return function(){return{concat:function(r,n){return function(o){return e.concat(r(o),n(o))}}}}};wt.getSemigroup=Dvt;var Avt=function(e){var r=(0,wt.getSemigroup)(e);return function(){return{concat:r().concat,empty:function(){return e.empty}}}};wt.getMonoid=Avt;var Cvt=function(e){return{add:function(r,n){return function(o){return e.add(r(o),n(o))}},zero:function(){return e.zero},mul:function(r,n){return function(o){return e.mul(r(o),n(o))}},one:function(){return e.one}}};wt.getSemiring=Cvt;var Pvt=function(e){var r=(0,wt.getSemiring)(e);return{add:r.add,mul:r.mul,one:r.one,zero:r.zero,sub:function(n,o){return function(i){return e.sub(n(i),o(i))}}}};wt.getRing=Pvt;var Ivt=function(e){return function(r){return r(e)}};wt.apply=Ivt;function TW(e){return e}wt.unsafeCoerce=TW;function hD(e){return function(){return e}}wt.constTrue=hD(!0);wt.constFalse=hD(!1);wt.constNull=hD(null);wt.constUndefined=hD(void 0);wt.constVoid=wt.constUndefined;function Ovt(e){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length>1?e(r[1],r[0]):function(o){return e(o)(r[0])}}}function mTe(e,r,n,o,i,a,c,u,l){switch(arguments.length){case 1:return e;case 2:return function(){return r(e.apply(this,arguments))};case 3:return function(){return n(r(e.apply(this,arguments)))};case 4:return function(){return o(n(r(e.apply(this,arguments))))};case 5:return function(){return i(o(n(r(e.apply(this,arguments)))))};case 6:return function(){return a(i(o(n(r(e.apply(this,arguments))))))};case 7:return function(){return c(a(i(o(n(r(e.apply(this,arguments)))))))};case 8:return function(){return u(c(a(i(o(n(r(e.apply(this,arguments))))))))};case 9:return function(){return l(u(c(a(i(o(n(r(e.apply(this,arguments)))))))))}}}function Rvt(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e}function Fvt(e){return e+1}function Mvt(e){return e-1}function hTe(e){throw new Error("Called `absurd` function which should be uncallable")}function kvt(e){return function(r){return e.apply(void 0,r)}}function Nvt(e){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e(r)}}function $vt(e,r,n,o,i,a,c,u,l){switch(arguments.length){case 1:return e;case 2:return r(e);case 3:return n(r(e));case 4:return o(n(r(e)));case 5:return i(o(n(r(e))));case 6:return a(i(o(n(r(e)))));case 7:return c(a(i(o(n(r(e))))));case 8:return u(c(a(i(o(n(r(e)))))));case 9:return l(u(c(a(i(o(n(r(e))))))));default:{for(var p=arguments[0],f=1;f<arguments.length;f++)p=arguments[f](p);return p}}}wt.hole=hTe;var Lvt=function(e,r){return r};wt.SK=Lvt;function Bvt(e){return function(r){return!e(r)}}var Uvt=function(){return{concat:function(e,r){return mTe(e,r)},empty:TW}};wt.getEndomorphismMonoid=Uvt;var jvt=function(e,r){var n=typeof e=="number"?function(o){return o.length>=e}:e;return function(){var o=Array.from(arguments);return n(arguments)?r.apply(this,o):function(i){return r.apply(void 0,_vt([i],o,!1))}}};wt.dual=jvt});var Ek=C((kW,NW)=>{"use strict";(function(e,r){typeof require=="function"&&typeof kW=="object"&&typeof NW=="object"?NW.exports=r():typeof define=="function"&&define.amd?define(function(){return r()}):e.pluralize=r()})(kW,function(){var e=[],r=[],n={},o={},i={};function a(b){return typeof b=="string"?new RegExp("^"+b+"$","i"):b}function c(b,E){return b===E?E:b===b.toLowerCase()?E.toLowerCase():b===b.toUpperCase()?E.toUpperCase():b[0]===b[0].toUpperCase()?E.charAt(0).toUpperCase()+E.substr(1).toLowerCase():E.toLowerCase()}function u(b,E){return b.replace(/\$(\d{1,2})/g,function(S,_){return E[_]||""})}function l(b,E){return b.replace(E[0],function(S,_){var D=u(E[1],arguments);return c(S===""?b[_-1]:S,D)})}function p(b,E,S){if(!b.length||n.hasOwnProperty(b))return E;for(var _=S.length;_--;){var D=S[_];if(D[0].test(E))return l(E,D)}return E}function f(b,E,S){return function(_){var D=_.toLowerCase();return E.hasOwnProperty(D)?c(_,D):b.hasOwnProperty(D)?c(_,b[D]):p(D,_,S)}}function g(b,E,S,_){return function(D){var I=D.toLowerCase();return E.hasOwnProperty(I)?!0:b.hasOwnProperty(I)?!1:p(I,I,S)===I}}function x(b,E,S){var _=E===1?x.singular(b):x.plural(b);return(S?E+" ":"")+_}return x.plural=f(i,o,e),x.isPlural=g(i,o,e),x.singular=f(o,i,r),x.isSingular=g(o,i,r),x.addPluralRule=function(b,E){e.push([a(b),E])},x.addSingularRule=function(b,E){r.push([a(b),E])},x.addUncountableRule=function(b){if(typeof b=="string"){n[b.toLowerCase()]=!0;return}x.addPluralRule(b,"$0"),x.addSingularRule(b,"$0")},x.addIrregularRule=function(b,E){E=E.toLowerCase(),b=b.toLowerCase(),i[b]=E,o[E]=b},[["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(b){return x.addIrregularRule(b[0],b[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(b){return x.addPluralRule(b[0],b[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(b){return x.addSingularRule(b[0],b[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(x.addUncountableRule),x})});var VW=C((jvr,dDe)=>{"use strict";var WW=Symbol("arg flag"),fu=class e extends Error{constructor(r,n){super(r),this.name="ArgError",this.code=n,Object.setPrototypeOf(this,e.prototype)}};function _D(e,{argv:r=process.argv.slice(2),permissive:n=!1,stopAtPositional:o=!1}={}){if(!e)throw new fu("argument specification object is required","ARG_CONFIG_NO_SPEC");let i={_:[]},a={},c={};for(let u of Object.keys(e)){if(!u)throw new fu("argument key cannot be an empty string","ARG_CONFIG_EMPTY_KEY");if(u[0]!=="-")throw new fu(`argument key must start with '-' but found: '${u}'`,"ARG_CONFIG_NONOPT_KEY");if(u.length===1)throw new fu(`argument key must have a name; singular '-' keys are not allowed: ${u}`,"ARG_CONFIG_NONAME_KEY");if(typeof e[u]=="string"){a[u]=e[u];continue}let l=e[u],p=!1;if(Array.isArray(l)&&l.length===1&&typeof l[0]=="function"){let[f]=l;l=(g,x,b=[])=>(b.push(f(g,x,b[b.length-1])),b),p=f===Boolean||f[WW]===!0}else if(typeof l=="function")p=l===Boolean||l[WW]===!0;else throw new fu(`type missing or not a function or valid array type: ${u}`,"ARG_CONFIG_VAD_TYPE");if(u[1]!=="-"&&u.length>2)throw new fu(`short argument keys (with a single hyphen) must have only one character: ${u}`,"ARG_CONFIG_SHORTOPT_TOOLONG");c[u]=[l,p]}for(let u=0,l=r.length;u<l;u++){let p=r[u];if(o&&i._.length>0){i._=i._.concat(r.slice(u));break}if(p==="--"){i._=i._.concat(r.slice(u+1));break}if(p.length>1&&p[0]==="-"){let f=p[1]==="-"||p.length===2?[p]:p.slice(1).split("").map(g=>`-${g}`);for(let g=0;g<f.length;g++){let x=f[g],[b,E]=x[1]==="-"?x.split(/=(.*)/,2):[x,void 0],S=b;for(;S in a;)S=a[S];if(!(S in c))if(n){i._.push(x);continue}else throw new fu(`unknown or unexpected option: ${b}`,"ARG_UNKNOWN_OPTION");let[_,D]=c[S];if(!D&&g+1<f.length)throw new fu(`option requires argument (but was followed by another short argument): ${b}`,"ARG_MISSING_REQUIRED_SHORTARG");if(D)i[S]=_(!0,S,i[S]);else if(E===void 0){if(r.length<u+2||r[u+1].length>1&&r[u+1][0]==="-"&&!(r[u+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(_===Number||typeof BigInt<"u"&&_===BigInt))){let I=b===S?"":` (alias for ${S})`;throw new fu(`option requires argument: ${b}${I}`,"ARG_MISSING_REQUIRED_LONGARG")}i[S]=_(r[u+1],S,i[S]),++u}else i[S]=_(E,S,i[S])}}else i._.push(p)}return i}_D.flag=e=>(e[WW]=!0,e);_D.COUNT=_D.flag((e,r,n)=>(n||0)+1);_D.ArgError=fu;dDe.exports=_D});var hDe=C((qvr,mDe)=>{"use strict";mDe.exports=e=>{let r=e.match(/^[ \t]*(?=\S)/gm);return r?r.reduce((n,o)=>Math.min(n,o.length),1/0):0}});var eV=C((awr,ZDe)=>{"use strict";var GSt=require("os");ZDe.exports=GSt.homedir||function(){var r=process.env.HOME,n=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||r||null:process.platform==="darwin"?r||(n?"/Users/"+n:null):process.platform==="linux"?r||(process.getuid()===0?"/root":n?"/home/"+n:null):r||null}});var tV=C((cwr,QDe)=>{"use strict";QDe.exports=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(n,o){return o};var r=new Error().stack;return Error.prepareStackTrace=e,r[2].getFileName()}});var XDe=C((uwr,DD)=>{"use strict";var HSt=process.platform==="win32",WSt=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,rV={};function VSt(e){return WSt.exec(e).slice(1)}rV.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var r=VSt(e);if(!r||r.length!==5)throw new TypeError("Invalid path '"+e+"'");return{root:r[1],dir:r[0]===r[1]?r[0]:r[0].slice(0,-1),base:r[2],ext:r[4],name:r[3]}};var zSt=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,nV={};function KSt(e){return zSt.exec(e).slice(1)}nV.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var r=KSt(e);if(!r||r.length!==5)throw new TypeError("Invalid path '"+e+"'");return{root:r[1],dir:r[0].slice(0,-1),base:r[2],ext:r[4],name:r[3]}};HSt?DD.exports=rV.parse:DD.exports=nV.parse;DD.exports.posix=nV.parse;DD.exports.win32=rV.parse});var oV=C((lwr,nAe)=>{"use strict";var rAe=require("path"),eAe=rAe.parse||XDe(),tAe=function(r,n){var o="/";/^([A-Za-z]:)/.test(r)?o="":/^\\\\/.test(r)&&(o="\\\\");for(var i=[r],a=eAe(r);a.dir!==i[i.length-1];)i.push(a.dir),a=eAe(a.dir);return i.reduce(function(c,u){return c.concat(n.map(function(l){return rAe.resolve(o,u,l)}))},[])};nAe.exports=function(r,n,o){var i=n&&n.moduleDirectory?[].concat(n.moduleDirectory):["node_modules"];if(n&&typeof n.paths=="function")return n.paths(o,r,function(){return tAe(r,i)},n);var a=tAe(r,i);return n&&n.paths?a.concat(n.paths):a}});var iV=C((pwr,oAe)=>{"use strict";oAe.exports=function(e,r){return r||{}}});var aAe=C((fwr,sAe)=>{"use strict";var JSt="Function.prototype.bind called on incompatible ",YSt=Object.prototype.toString,ZSt=Math.max,QSt="[object Function]",iAe=function(r,n){for(var o=[],i=0;i<r.length;i+=1)o[i]=r[i];for(var a=0;a<n.length;a+=1)o[a+r.length]=n[a];return o},XSt=function(r,n){for(var o=[],i=n||0,a=0;i<r.length;i+=1,a+=1)o[a]=r[i];return o},ewt=function(e,r){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=r);return n};sAe.exports=function(r){var n=this;if(typeof n!="function"||YSt.apply(n)!==QSt)throw new TypeError(JSt+n);for(var o=XSt(arguments,1),i,a=function(){if(this instanceof i){var f=n.apply(this,iAe(o,arguments));return Object(f)===f?f:this}return n.apply(r,iAe(o,arguments))},c=ZSt(0,n.length-o.length),u=[],l=0;l<c;l++)u[l]="$"+l;if(i=Function("binder","return function ("+ewt(u,",")+"){ return binder.apply(this,arguments); }")(a),n.prototype){var p=function(){};p.prototype=n.prototype,i.prototype=new p,p.prototype=null}return i}});var uAe=C((dwr,cAe)=>{"use strict";var twt=aAe();cAe.exports=Function.prototype.bind||twt});var pAe=C((mwr,lAe)=>{"use strict";var rwt=Function.prototype.call,nwt=Object.prototype.hasOwnProperty,owt=uAe();lAe.exports=owt.call(rwt,nwt)});var fAe=C((hwr,iwt)=>{iwt.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3","node:sqlite":[">= 22.13 && < 23",">= 23.4"],_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var AD=C((gwr,hAe)=>{"use strict";var swt=pAe();function awt(e,r){for(var n=e.split("."),o=r.split(" "),i=o.length>1?o[0]:"=",a=(o.length>1?o[1]:o[0]).split("."),c=0;c<3;++c){var u=parseInt(n[c]||0,10),l=parseInt(a[c]||0,10);if(u!==l)return i==="<"?u<l:i===">="?u>=l:!1}return i===">="}function dAe(e,r){var n=r.split(/ ?&& ?/);if(n.length===0)return!1;for(var o=0;o<n.length;++o)if(!awt(e,n[o]))return!1;return!0}function cwt(e,r){if(typeof r=="boolean")return r;var n=typeof e>"u"?process.versions&&process.versions.node:e;if(typeof n!="string")throw new TypeError(typeof e>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(r&&typeof r=="object"){for(var o=0;o<r.length;++o)if(dAe(n,r[o]))return!0;return!1}return dAe(n,r)}var mAe=fAe();hAe.exports=function(r,n){return swt(mAe,r)&&cwt(n,mAe[r])}});var xAe=C((ywr,yAe)=>{"use strict";var Hy=require("fs"),uwt=eV(),Ko=require("path"),lwt=tV(),pwt=oV(),fwt=iV(),dwt=AD(),mwt=process.platform!=="win32"&&Hy.realpath&&typeof Hy.realpath.native=="function"?Hy.realpath.native:Hy.realpath,gAe=uwt(),hwt=function(){return[Ko.join(gAe,".node_modules"),Ko.join(gAe,".node_libraries")]},gwt=function(r,n){Hy.stat(r,function(o,i){return o?o.code==="ENOENT"||o.code==="ENOTDIR"?n(null,!1):n(o):n(null,i.isFile()||i.isFIFO())})},ywt=function(r,n){Hy.stat(r,function(o,i){return o?o.code==="ENOENT"||o.code==="ENOTDIR"?n(null,!1):n(o):n(null,i.isDirectory())})},xwt=function(r,n){mwt(r,function(o,i){o&&o.code!=="ENOENT"?n(o):n(null,o?r:i)})},CD=function(r,n,o,i){o&&o.preserveSymlinks===!1?r(n,i):i(null,n)},bwt=function(r,n,o){r(n,function(i,a){if(i)o(i);else try{var c=JSON.parse(a);o(null,c)}catch{o(null)}})},Ewt=function(r,n,o){for(var i=pwt(n,o,r),a=0;a<i.length;a++)i[a]=Ko.join(i[a],r);return i};yAe.exports=function(r,n,o){var i=o,a=n;if(typeof n=="function"&&(i=a,a={}),typeof r!="string"){var c=new TypeError("Path must be a string.");return process.nextTick(function(){i(c)})}a=fwt(r,a);var u=a.isFile||gwt,l=a.isDirectory||ywt,p=a.readFile||Hy.readFile,f=a.realpath||xwt,g=a.readPackage||bwt;if(a.readFile&&a.readPackage){var x=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){i(x)})}var b=a.packageIterator,E=a.extensions||[".js"],S=a.includeCoreModules!==!1,_=a.basedir||Ko.dirname(lwt()),D=a.filename||_;a.paths=a.paths||hwt();var I=Ko.resolve(_);CD(f,I,a,function(F,Y){F?i(F):R(Y)});var A;function R(F){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(r))A=Ko.resolve(F,r),(r==="."||r===".."||r.slice(-1)==="/")&&(A+="/"),/\/$/.test(r)&&A===F?G(A,a.package,O):k(A,a.package,O);else{if(S&&dwt(r))return i(null,r);H(r,F,function(Y,V,Q){if(Y)i(Y);else{if(V)return CD(f,V,a,function(Z,ie){Z?i(Z):i(null,ie,Q)});var q=new Error("Cannot find module '"+r+"' from '"+D+"'");q.code="MODULE_NOT_FOUND",i(q)}})}}function O(F,Y,V){F?i(F):Y?i(null,Y,V):G(A,function(Q,q,Z){if(Q)i(Q);else if(q)CD(f,q,a,function(se,le){se?i(se):i(null,le,Z)});else{var ie=new Error("Cannot find module '"+r+"' from '"+D+"'");ie.code="MODULE_NOT_FOUND",i(ie)}})}function k(F,Y,V){var Q=Y,q=V;typeof Q=="function"&&(q=Q,Q=void 0);var Z=[""].concat(E);ie(Z,F,Q);function ie(se,le,_e){if(se.length===0)return q(null,void 0,_e);var Ge=le+se[0],Mt=_e;Mt?Zt(null,Mt):j(Ko.dirname(Ge),Zt);function Zt(Gt,Ne,Qe){if(Mt=Ne,Gt)return q(Gt);if(Qe&&Mt&&a.pathFilter){var lo=Ko.relative(Qe,Ge),xe=lo.slice(0,lo.length-se[0].length),ze=a.pathFilter(Mt,le,xe);if(ze)return ie([""].concat(E.slice()),Ko.resolve(Qe,ze),Mt)}u(Ge,kt)}function kt(Gt,Ne){if(Gt)return q(Gt);if(Ne)return q(null,Ge,Mt);ie(se.slice(1),le,Mt)}}}function j(F,Y){if(F===""||F==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(F)||/[/\\]node_modules[/\\]*$/.test(F))return Y(null);CD(f,F,a,function(V,Q){if(V)return j(Ko.dirname(F),Y);var q=Ko.join(Q,"package.json");u(q,function(Z,ie){if(!ie)return j(Ko.dirname(F),Y);g(p,q,function(se,le){se&&Y(se);var _e=le;_e&&a.packageFilter&&(_e=a.packageFilter(_e,q)),Y(null,_e,F)})})})}function G(F,Y,V){var Q=V,q=Y;typeof q=="function"&&(Q=q,q=a.package),CD(f,F,a,function(Z,ie){if(Z)return Q(Z);var se=Ko.join(ie,"package.json");u(se,function(le,_e){if(le)return Q(le);if(!_e)return k(Ko.join(F,"index"),q,Q);g(p,se,function(Ge,Mt){if(Ge)return Q(Ge);var Zt=Mt;if(Zt&&a.packageFilter&&(Zt=a.packageFilter(Zt,se)),Zt&&Zt.main){if(typeof Zt.main!="string"){var kt=new TypeError("package \u201C"+Zt.name+"\u201D `main` must be a string");return kt.code="INVALID_PACKAGE_MAIN",Q(kt)}(Zt.main==="."||Zt.main==="./")&&(Zt.main="index"),k(Ko.resolve(F,Zt.main),Zt,function(Gt,Ne,Qe){if(Gt)return Q(Gt);if(Ne)return Q(null,Ne,Qe);if(!Qe)return k(Ko.join(F,"index"),Qe,Q);var lo=Ko.resolve(F,Qe.main);G(lo,Qe,function(xe,ze,ge){if(xe)return Q(xe);if(ze)return Q(null,ze,ge);k(Ko.join(F,"index"),ge,Q)})});return}k(Ko.join(F,"/index"),Zt,Q)})})})}function L(F,Y){if(Y.length===0)return F(null,void 0);var V=Y[0];l(Ko.dirname(V),Q);function Q(ie,se){if(ie)return F(ie);if(!se)return L(F,Y.slice(1));k(V,a.package,q)}function q(ie,se,le){if(ie)return F(ie);if(se)return F(null,se,le);G(V,a.package,Z)}function Z(ie,se,le){if(ie)return F(ie);if(se)return F(null,se,le);L(F,Y.slice(1))}}function H(F,Y,V){var Q=function(){return Ewt(F,Y,a)};L(V,b?b(F,Y,Q,a):Q())}}});var bAe=C((xwr,vwt)=>{vwt.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3","node:sqlite":">= 23.4",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var wAe=C((bwr,SAe)=>{"use strict";var Swt=AD(),EAe=bAe(),vAe={};for(Fk in EAe)Object.prototype.hasOwnProperty.call(EAe,Fk)&&(vAe[Fk]=Swt(Fk));var Fk;SAe.exports=vAe});var TAe=C((Ewr,_Ae)=>{"use strict";var wwt=AD();_Ae.exports=function(r){return wwt(r)}});var CAe=C((vwr,AAe)=>{"use strict";var _wt=AD(),Wy=require("fs"),Ds=require("path"),Twt=eV(),Dwt=tV(),Awt=oV(),Cwt=iV(),Pwt=process.platform!=="win32"&&Wy.realpathSync&&typeof Wy.realpathSync.native=="function"?Wy.realpathSync.native:Wy.realpathSync,DAe=Twt(),Iwt=function(){return[Ds.join(DAe,".node_modules"),Ds.join(DAe,".node_libraries")]},Owt=function(r){try{var n=Wy.statSync(r,{throwIfNoEntry:!1})}catch(o){if(o&&(o.code==="ENOENT"||o.code==="ENOTDIR"))return!1;throw o}return!!n&&(n.isFile()||n.isFIFO())},Rwt=function(r){try{var n=Wy.statSync(r,{throwIfNoEntry:!1})}catch(o){if(o&&(o.code==="ENOENT"||o.code==="ENOTDIR"))return!1;throw o}return!!n&&n.isDirectory()},Fwt=function(r){try{return Pwt(r)}catch(n){if(n.code!=="ENOENT")throw n}return r},PD=function(r,n,o){return o&&o.preserveSymlinks===!1?r(n):n},Mwt=function(r,n){var o=r(n);try{var i=JSON.parse(o);return i}catch{}},kwt=function(r,n,o){for(var i=Awt(n,o,r),a=0;a<i.length;a++)i[a]=Ds.join(i[a],r);return i};AAe.exports=function(r,n){if(typeof r!="string")throw new TypeError("Path must be a string.");var o=Cwt(r,n),i=o.isFile||Owt,a=o.readFileSync||Wy.readFileSync,c=o.isDirectory||Rwt,u=o.realpathSync||Fwt,l=o.readPackageSync||Mwt;if(o.readFileSync&&o.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var p=o.packageIterator,f=o.extensions||[".js"],g=o.includeCoreModules!==!1,x=o.basedir||Ds.dirname(Dwt()),b=o.filename||x;o.paths=o.paths||Iwt();var E=PD(u,Ds.resolve(x),o);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(r)){var S=Ds.resolve(E,r);(r==="."||r===".."||r.slice(-1)==="/")&&(S+="/");var _=A(S)||O(S);if(_)return PD(u,_,o)}else{if(g&&_wt(r))return r;var D=k(r,E);if(D)return PD(u,D,o)}var I=new Error("Cannot find module '"+r+"' from '"+b+"'");throw I.code="MODULE_NOT_FOUND",I;function A(j){var G=R(Ds.dirname(j));if(G&&G.dir&&G.pkg&&o.pathFilter){var L=Ds.relative(G.dir,j),H=o.pathFilter(G.pkg,j,L);H&&(j=Ds.resolve(G.dir,H))}if(i(j))return j;for(var F=0;F<f.length;F++){var Y=j+f[F];if(i(Y))return Y}}function R(j){if(!(j===""||j==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(j))&&!/[/\\]node_modules[/\\]*$/.test(j)){var G=Ds.join(PD(u,j,o),"package.json");if(!i(G))return R(Ds.dirname(j));var L=l(a,G);return L&&o.packageFilter&&(L=o.packageFilter(L,j)),{pkg:L,dir:j}}}function O(j){var G=Ds.join(PD(u,j,o),"/package.json");if(i(G)){try{var L=l(a,G)}catch{}if(L&&o.packageFilter&&(L=o.packageFilter(L,j)),L&&L.main){if(typeof L.main!="string"){var H=new TypeError("package \u201C"+L.name+"\u201D `main` must be a string");throw H.code="INVALID_PACKAGE_MAIN",H}(L.main==="."||L.main==="./")&&(L.main="index");try{var F=A(Ds.resolve(j,L.main));if(F)return F;var Y=O(Ds.resolve(j,L.main));if(Y)return Y}catch{}}}return A(Ds.join(j,"/index"))}function k(j,G){for(var L=function(){return kwt(j,G,o)},H=p?p(j,G,L,o):L(),F=0;F<H.length;F++){var Y=H[F];if(c(Ds.dirname(Y))){var V=A(Y);if(V)return V;var Q=O(Y);if(Q)return Q}}}}});var IAe=C((Swr,PAe)=>{"use strict";var Mk=xAe();Mk.core=wAe();Mk.isCore=TAe();Mk.sync=CAe();PAe.exports=Mk});var NAe=C((Pwr,qwt)=>{qwt.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var BAe=C(vc=>{"use strict";var LAe=NAe(),mi=process.env;Object.defineProperty(vc,"_vendors",{value:LAe.map(function(e){return e.constant})});vc.name=null;vc.isPR=null;LAe.forEach(function(e){let n=(Array.isArray(e.env)?e.env:[e.env]).every(function(o){return $Ae(o)});if(vc[e.constant]=n,!!n)switch(vc.name=e.name,typeof e.pr){case"string":vc.isPR=!!mi[e.pr];break;case"object":"env"in e.pr?vc.isPR=e.pr.env in mi&&mi[e.pr.env]!==e.pr.ne:"any"in e.pr?vc.isPR=e.pr.any.some(function(o){return!!mi[o]}):vc.isPR=$Ae(e.pr);break;default:vc.isPR=null}});vc.isCI=!!(mi.CI!=="false"&&(mi.BUILD_ID||mi.BUILD_NUMBER||mi.CI||mi.CI_APP_ID||mi.CI_BUILD_ID||mi.CI_BUILD_NUMBER||mi.CI_NAME||mi.CONTINUOUS_INTEGRATION||mi.RUN_ID||vc.name));function $Ae(e){return typeof e=="string"?!!mi[e]:"env"in e?mi[e.env]&&mi[e.env].includes(e.includes):"any"in e?e.any.some(function(r){return!!mi[r]}):Object.keys(e).every(function(r){return mi[r]===e[r]})}});var zy=C((exports,module)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var path$2=require("path"),os$1=require("os"),require$$0=require("fs"),require$$2=require("util"),fs$1=require("fs/promises"),crypto=require("crypto"),child_process=require("child_process");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var path__default=_interopDefaultLegacy(path$2),os__default=_interopDefaultLegacy(os$1),require$$0__default=_interopDefaultLegacy(require$$0),require$$2__default=_interopDefaultLegacy(require$$2),fs__default=_interopDefaultLegacy(fs$1),crypto__default=_interopDefaultLegacy(crypto),rnds8Pool=new Uint8Array(256),poolPtr=rnds8Pool.length;function rng(){return poolPtr>rnds8Pool.length-16&&(crypto__default.default.randomFillSync(rnds8Pool),poolPtr=0),rnds8Pool.slice(poolPtr,poolPtr+=16)}var byteToHex=[];for(let e=0;e<256;++e)byteToHex.push((e+256).toString(16).slice(1));function unsafeStringify(e,r=0){return byteToHex[e[r+0]]+byteToHex[e[r+1]]+byteToHex[e[r+2]]+byteToHex[e[r+3]]+"-"+byteToHex[e[r+4]]+byteToHex[e[r+5]]+"-"+byteToHex[e[r+6]]+byteToHex[e[r+7]]+"-"+byteToHex[e[r+8]]+byteToHex[e[r+9]]+"-"+byteToHex[e[r+10]]+byteToHex[e[r+11]]+byteToHex[e[r+12]]+byteToHex[e[r+13]]+byteToHex[e[r+14]]+byteToHex[e[r+15]]}var native={randomUUID:crypto__default.default.randomUUID};function v4(e,r,n){if(native.randomUUID&&!r&&!e)return native.randomUUID();e=e||{};let o=e.random||(e.rng||rng)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,r){n=n||0;for(let i=0;i<16;++i)r[n+i]=o[i];return r}return unsafeStringify(o)}var envPaths$1={exports:{}},path$1=path__default.default,os=os__default.default,homedir=os.homedir(),tmpdir=os.tmpdir(),{env}=process,macos=e=>{let r=path$1.join(homedir,"Library");return{data:path$1.join(r,"Application Support",e),config:path$1.join(r,"Preferences",e),cache:path$1.join(r,"Caches",e),log:path$1.join(r,"Logs",e),temp:path$1.join(tmpdir,e)}},windows=e=>{let r=env.APPDATA||path$1.join(homedir,"AppData","Roaming"),n=env.LOCALAPPDATA||path$1.join(homedir,"AppData","Local");return{data:path$1.join(n,e,"Data"),config:path$1.join(r,e,"Config"),cache:path$1.join(n,e,"Cache"),log:path$1.join(n,e,"Log"),temp:path$1.join(tmpdir,e)}},linux=e=>{let r=path$1.basename(homedir);return{data:path$1.join(env.XDG_DATA_HOME||path$1.join(homedir,".local","share"),e),config:path$1.join(env.XDG_CONFIG_HOME||path$1.join(homedir,".config"),e),cache:path$1.join(env.XDG_CACHE_HOME||path$1.join(homedir,".cache"),e),log:path$1.join(env.XDG_STATE_HOME||path$1.join(homedir,".local","state"),e),temp:path$1.join(tmpdir,r,e)}},envPaths=(e,r)=>{if(typeof e!="string")throw new TypeError(`Expected string, got ${typeof e}`);return r=Object.assign({suffix:"nodejs"},r),r.suffix&&(e+=`-${r.suffix}`),process.platform==="darwin"?macos(e):process.platform==="win32"?windows(e):linux(e)};envPaths$1.exports=envPaths;envPaths$1.exports.default=envPaths;var paths=envPaths$1.exports,makeDir$2={exports:{}},debug$1=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},debug_1=debug$1,SEMVER_SPEC_VERSION="2.0.0",MAX_LENGTH$1=256,MAX_SAFE_INTEGER$1=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16,MAX_SAFE_BUILD_LENGTH=MAX_LENGTH$1-6,RELEASE_TYPES=["major","premajor","minor","preminor","patch","prepatch","prerelease"],constants={MAX_LENGTH:MAX_LENGTH$1,MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER$1,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},re$1={exports:{}};(function(e,r){let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o}=constants,i=debug_1;r=e.exports={};let a=r.re=[],c=r.safeRe=[],u=r.src=[],l=r.t={},p=0,f="[a-zA-Z0-9-]",g=[["\\s",1],["\\d",n],[f,o]],x=E=>{for(let[S,_]of g)E=E.split(`${S}*`).join(`${S}{0,${_}}`).split(`${S}+`).join(`${S}{1,${_}}`);return E},b=(E,S,_)=>{let D=x(S),I=p++;i(E,I,S),l[E]=I,u[I]=S,a[I]=new RegExp(S,_?"g":void 0),c[I]=new RegExp(D,_?"g":void 0)};b("NUMERICIDENTIFIER","0|[1-9]\\d*"),b("NUMERICIDENTIFIERLOOSE","\\d+"),b("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),b("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),b("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),b("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`),b("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`),b("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),b("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),b("BUILDIDENTIFIER",`${f}+`),b("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),b("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),b("FULL",`^${u[l.FULLPLAIN]}$`),b("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),b("LOOSE",`^${u[l.LOOSEPLAIN]}$`),b("GTLT","((?:<|>)?=?)"),b("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),b("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),b("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),b("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),b("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),b("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),b("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),b("COERCERTL",u[l.COERCE],!0),b("LONETILDE","(?:~>?)"),b("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),r.tildeTrimReplace="$1~",b("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),b("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),b("LONECARET","(?:\\^)"),b("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),r.caretTrimReplace="$1^",b("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),b("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),b("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),b("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),b("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace="$1$2$3",b("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),b("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),b("STAR","(<|>)?=?\\s*\\*"),b("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),b("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(re$1,re$1.exports);var looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions$1=e=>e?typeof e!="object"?looseOption:e:emptyOpts,parseOptions_1=parseOptions$1,numeric=/^[0-9]+$/,compareIdentifiers$1=(e,r)=>{let n=numeric.test(e),o=numeric.test(r);return n&&o&&(e=+e,r=+r),e===r?0:n&&!o?-1:o&&!n?1:e<r?-1:1},rcompareIdentifiers=(e,r)=>compareIdentifiers$1(r,e),identifiers={compareIdentifiers:compareIdentifiers$1,rcompareIdentifiers},debug=debug_1,{MAX_LENGTH,MAX_SAFE_INTEGER}=constants,{safeRe:re,t}=re$1.exports,parseOptions=parseOptions_1,{compareIdentifiers}=identifiers,SemVer$1=class e{constructor(r,n){if(n=parseOptions(n),r instanceof e){if(r.loose===!!n.loose&&r.includePrerelease===!!n.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof r}".`);if(r.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",r,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let o=r.trim().match(n.loose?re[t.LOOSE]:re[t.FULL]);if(!o)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let a=+i;if(a>=0&&a<MAX_SAFE_INTEGER)return a}return i}):this.prerelease=[],this.build=o[5]?o[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(r){if(debug("SemVer.compare",this.version,this.options,r),!(r instanceof e)){if(typeof r=="string"&&r===this.version)return 0;r=new e(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof e||(r=new e(r,this.options)),compareIdentifiers(this.major,r.major)||compareIdentifiers(this.minor,r.minor)||compareIdentifiers(this.patch,r.patch)}comparePre(r){if(r instanceof e||(r=new e(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let n=0;do{let o=this.prerelease[n],i=r.prerelease[n];if(debug("prerelease compare",n,o,i),o===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(o===void 0)return-1;if(o===i)continue;return compareIdentifiers(o,i)}while(++n)}compareBuild(r){r instanceof e||(r=new e(r,this.options));let n=0;do{let o=this.build[n],i=r.build[n];if(debug("prerelease compare",n,o,i),o===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(o===void 0)return-1;if(o===i)continue;return compareIdentifiers(o,i)}while(++n)}inc(r,n,o){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,o);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,o);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,o),this.inc("pre",n,o);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,o),this.inc("pre",n,o);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(o)?1:0;if(!n&&o===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let a=this.prerelease.length;for(;--a>=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(n===this.prerelease.join(".")&&o===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(n){let a=[n,i];o===!1&&(a=[n]),compareIdentifiers(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${r}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}},semver=SemVer$1,SemVer=semver,compare$1=(e,r,n)=>new SemVer(e,n).compare(new SemVer(r,n)),compare_1=compare$1,compare=compare_1,gte=(e,r,n)=>compare(e,r,n)>=0,gte_1=gte,fs=require$$0__default.default,path=path__default.default,{promisify}=require$$2__default.default,semverGte=gte_1,useNativeRecursiveOption=semverGte(process.version,"10.12.0"),checkPath=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(path.parse(e).root,""))){let n=new Error(`Path contains invalid characters: ${e}`);throw n.code="EINVAL",n}},processOptions=e=>({...{mode:511,fs},...e}),permissionError=e=>{let r=new Error(`operation not permitted, mkdir '${e}'`);return r.code="EPERM",r.errno=-4048,r.path=e,r.syscall="mkdir",r},makeDir=async(e,r)=>{checkPath(e),r=processOptions(r);let n=promisify(r.fs.mkdir),o=promisify(r.fs.stat);if(useNativeRecursiveOption&&r.fs.mkdir===fs.mkdir){let a=path.resolve(e);return await n(a,{mode:r.mode,recursive:!0}),a}let i=async a=>{try{return await n(a,r.mode),a}catch(c){if(c.code==="EPERM")throw c;if(c.code==="ENOENT"){if(path.dirname(a)===a)throw permissionError(a);if(c.message.includes("null bytes"))throw c;return await i(path.dirname(a)),i(a)}try{if(!(await o(a)).isDirectory())throw new Error("The path is not a directory")}catch{throw c}return a}};return i(path.resolve(e))};makeDir$2.exports=makeDir;makeDir$2.exports.sync=(e,r)=>{if(checkPath(e),r=processOptions(r),useNativeRecursiveOption&&r.fs.mkdirSync===fs.mkdirSync){let o=path.resolve(e);return fs.mkdirSync(o,{mode:r.mode,recursive:!0}),o}let n=o=>{try{r.fs.mkdirSync(o,r.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(path.dirname(o)===o)throw permissionError(o);if(i.message.includes("null bytes"))throw i;return n(path.dirname(o)),n(o)}try{if(!r.fs.statSync(o).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}return o};return n(path.resolve(e))};var makeDir$1=makeDir$2.exports,PRISMA_SIGNATURE="signature";async function getSignature(e){let r=paths("checkpoint");e=e||path__default.default.join(r.cache,PRISMA_SIGNATURE);let n=await readSignature(e);return n||await createSignatureFile(e)}function isSignatureValid(e){return typeof e=="string"&&e.length===36}async function readSignature(e){try{let r=await fs__default.default.readFile(e,"utf8"),{signature:n}=JSON.parse(r);return isSignatureValid(n)?n:""}catch{return""}}async function createSignatureFile(e,r){let n={signature:r||v4()};return await makeDir$1(path__default.default.dirname(e)),await fs__default.default.writeFile(e,JSON.stringify(n,null," ")),n.signature}async function getInfo(){let e=paths("checkpoint").cache;require$$0.existsSync(e)||await fs__default.default.mkdir(e,{recursive:!0});let r=await fs__default.default.readdir(e),n=[];for(let o of r)if(o.includes("-"))try{let i=JSON.parse(await fs__default.default.readFile(path__default.default.join(e,o),{encoding:"utf-8"}));i.output&&!i.output.cli_path_hash&&(i.output.cli_path_hash=o.split("-")[1]),n.push(i)}catch(i){console.error(i)}return{signature:await getSignature(),cachePath:e,cacheItems:n}}var defaultSchema={last_reminder:0,cached_at:0,version:"",cli_path:"",output:{client_event_id:"",previous_client_event_id:"",product:"",cli_path_hash:"",local_timestamp:"",previous_version:"",current_version:"",current_release_date:0,current_download_url:"",current_changelog_url:"",package:"",release_tag:"",install_command:"",project_website:"",outdated:!1,alerts:[]}},Config=class e{static async new(r,n=defaultSchema){return await makeDir$1(path__default.default.dirname(r.cache_file)),new e(r,n)}constructor(r,n){this.state=r,this.defaultSchema=n}async checkCache(r){let n=r.now(),o=await this.all();return o?r.version!==o.version?{cache:o,stale:!0}:n-o.cached_at>r.cache_duration?{cache:o,stale:!0}:{cache:o,stale:!1}:{cache:void 0,stale:!0}}async set(r){let n=await this.all()||{},o=Object.assign(n,r);for(let i in this.defaultSchema)typeof o[i]>"u"&&(o[i]=this.defaultSchema[i]);await fs__default.default.writeFile(this.state.cache_file,JSON.stringify(o,null," "))}async all(){try{let r=await fs__default.default.readFile(this.state.cache_file,"utf8");return JSON.parse(r)}catch{return}}async get(r){let n=await this.all();if(!(typeof n>"u"))return n[r]}async reset(){await fs__default.default.writeFile(this.state.cache_file,JSON.stringify(this.defaultSchema,null," "))}async delete(){try{await fs__default.default.unlink(this.state.cache_file);return}catch{return}}},s=1e3,m=s*60,h=m*60,d=h*24,w=d*7,y=d*365.25,ms=function(e,r){r=r||{};var n=typeof e;if(n==="string"&&e.length>0)return parse(e);if(n==="number"&&isFinite(e))return r.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){if(e=String(e),!(e.length>100)){var r=/^(-?(?:\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(r){var n=parseFloat(r[1]),o=(r[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return n*y;case"weeks":case"week":case"w":return n*w;case"days":case"day":case"d":return n*d;case"hours":case"hour":case"hrs":case"hr":case"h":return n*h;case"minutes":case"minute":case"mins":case"min":case"m":return n*m;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function fmtShort(e){var r=Math.abs(e);return r>=d?Math.round(e/d)+"d":r>=h?Math.round(e/h)+"h":r>=m?Math.round(e/m)+"m":r>=s?Math.round(e/s)+"s":e+"ms"}function fmtLong(e){var r=Math.abs(e);return r>=d?plural(e,r,d,"day"):r>=h?plural(e,r,h,"hour"):r>=m?plural(e,r,m,"minute"):r>=s?plural(e,r,s,"second"):e+" ms"}function plural(e,r,n,o){var i=r>=n*1.5;return Math.round(e/n)+" "+o+(i?"s":"")}var TELEMETRY_ENDPOINT_URL_PRODUCTION="https://checkpoint.prisma.io",childPath=path__default.default.join(eval("__dirname"),"child");async function check(e){let r=getCacheFile(e.product,e.cli_path_hash||"default"),n=BAe(),o=e.endpoint||process.env.PRISMA_TELEMETRY_ENDPOINT||TELEMETRY_ENDPOINT_URL_PRODUCTION,i={product:e.product,version:e.version,cli_install_type:e.cli_install_type||"",information:e.information||"",local_timestamp:e.local_timestamp||rfc3339(new Date),project_hash:e.project_hash,cli_path:e.cli_path||"",cli_path_hash:e.cli_path_hash||"",endpoint:o,disable:typeof e.disable>"u"?!1:e.disable,arch:e.arch||os__default.default.arch(),os:e.os||os__default.default.platform(),node_version:e.node_version||process.version,ci:typeof e.ci<"u"?e.ci:n.isCI,ci_name:typeof e.ci_name<"u"?e.ci_name||"":n.name||"",command:e.command||"",schema_providers:e.schema_providers||[],schema_preview_features:e.schema_preview_features||[],schema_generators_providers:e.schema_generators_providers||[],cache_file:e.cache_file||r,cache_duration:typeof e.cache_duration>"u"?ms("12h"):e.cache_duration,remind_duration:typeof e.remind_duration>"u"?ms("48h"):e.remind_duration,force:typeof e.force>"u"?!1:e.force,timeout:getTimeout(e.timeout),unref:typeof e.unref>"u"?!0:e.unref,child_path:e.child_path||childPath,now:()=>Date.now(),client_event_id:e.client_event_id||"",previous_client_event_id:e.previous_client_event_id||"",check_if_update_available:!1};if((process.env.CHECKPOINT_DISABLE||i.disable)&&!i.force)return{status:"disabled"};let a=await Config.new(i),c=await a.checkCache(i);i.check_if_update_available=c.stale===!0||!c.cache;let u=spawn(i);if(i.unref&&(u.unref(),u.disconnect()),c.stale===!0||!c.cache)return{status:"waiting",data:u};for(let p of Object.keys(i))i[p]&&await a.set({[p]:i[p]});return i.now()-c.cache.last_reminder<i.remind_duration?{status:"reminded",data:c.cache.output}:(await a.set({last_reminder:i.now()}),{status:"ok",data:c.cache.output})}function getCacheFile(e,r){let n=paths("checkpoint");return path__default.default.join(n.cache,`${e}-${r}`)}function getTimeout(e){if(typeof e<"u")return e;let r=process.env.CHECKPOINT_TIMEOUT;if(typeof r>"u")return 5e3;let n=parseInt(r,10);return isNaN(n)?5e3:n}function getForkOpts(e){return e.unref===!0?{detached:!0,stdio:process.env.CHECKPOINT_DEBUG_STDOUT?"inherit":"ignore",env:process.env}:{detached:!1,stdio:"pipe",env:process.env}}function spawn(e){return child_process.fork(childPath,[JSON.stringify(e)],getForkOpts(e))}function rfc3339(e){function r(o){return o<10?"0"+o:o}function n(o){let i;return o===0?"Z":(i=o>0?"-":"+",o=Math.abs(o),i+r(Math.floor(o/60))+":"+r(o%60))}return e.getFullYear()+"-"+r(e.getMonth()+1)+"-"+r(e.getDate())+"T"+r(e.getHours())+":"+r(e.getMinutes())+":"+r(e.getSeconds())+n(e.getTimezoneOffset())}exports.check=check;exports.getInfo=getInfo;exports.getSignature=getSignature});var tCe=C((Owr,yd)=>{"use strict";var Jo=require("fs"),pV=require("os"),Sc=require("path"),UAe=require("crypto"),Up={fs:Jo.constants,os:pV.constants},jAe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",GAe=/XXXXXX/,Gwt=3,HAe=(Up.O_CREAT||Up.fs.O_CREAT)|(Up.O_EXCL||Up.fs.O_EXCL)|(Up.O_RDWR||Up.fs.O_RDWR),Hwt=pV.platform()==="win32",Wwt=Up.EBADF||Up.os.errno.EBADF,Vwt=Up.ENOENT||Up.os.errno.ENOENT,WAe=448,VAe=384,zwt="exit",Wv=[],zAe=Jo.rmdirSync.bind(Jo),KAe=!1;function Kwt(e,r){return Jo.rm(e,{recursive:!0},r)}function JAe(e){return Jo.rmSync(e,{recursive:!0})}function fV(e,r){let n=Vv(e,r),o=n[0],i=n[1];try{QAe(o)}catch(c){return i(c)}let a=o.tries;(function c(){try{let u=ZAe(o);Jo.stat(u,function(l){if(!l)return a-- >0?c():i(new Error("Could not get a unique tmp filename, max tries reached "+u));i(null,u)})}catch(u){i(u)}})()}function dV(e){let r=Vv(e),n=r[0];QAe(n);let o=n.tries;do{let i=ZAe(n);try{Jo.statSync(i)}catch{return i}}while(o-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function Jwt(e,r){let n=Vv(e,r),o=n[0],i=n[1];fV(o,function(c,u){if(c)return i(c);Jo.open(u,HAe,o.mode||VAe,function(p,f){if(p)return i(p);if(o.discardDescriptor)return Jo.close(f,function(x){return i(x,u,void 0,cV(u,-1,o,!1))});{let g=o.discardDescriptor||o.detachDescriptor;i(null,u,f,cV(u,g?-1:f,o,!1))}})})}function Ywt(e){let r=Vv(e),n=r[0],o=n.discardDescriptor||n.detachDescriptor,i=dV(n);var a=Jo.openSync(i,HAe,n.mode||VAe);return n.discardDescriptor&&(Jo.closeSync(a),a=void 0),{name:i,fd:a,removeCallback:cV(i,o?-1:a,n,!0)}}function Zwt(e,r){let n=Vv(e,r),o=n[0],i=n[1];fV(o,function(c,u){if(c)return i(c);Jo.mkdir(u,o.mode||WAe,function(p){if(p)return i(p);i(null,u,YAe(u,o,!1))})})}function Qwt(e){let r=Vv(e),n=r[0],o=dV(n);return Jo.mkdirSync(o,n.mode||WAe),{name:o,removeCallback:YAe(o,n,!0)}}function Xwt(e,r){let n=function(o){if(o&&!lV(o))return r(o);r()};0<=e[0]?Jo.close(e[0],function(){Jo.unlink(e[1],n)}):Jo.unlink(e[1],n)}function e_t(e){let r=null;try{0<=e[0]&&Jo.closeSync(e[0])}catch(n){if(!n_t(n)&&!lV(n))throw n}finally{try{Jo.unlinkSync(e[1])}catch(n){lV(n)||(r=n)}}if(r!==null)throw r}function cV(e,r,n,o){let i=Nk(e_t,[r,e],o),a=Nk(Xwt,[r,e],o,i);return n.keep||Wv.unshift(i),o?i:a}function YAe(e,r,n){let o=r.unsafeCleanup?Kwt:Jo.rmdir.bind(Jo),i=r.unsafeCleanup?JAe:zAe,a=Nk(i,e,n),c=Nk(o,e,n,a);return r.keep||Wv.unshift(a),n?a:c}function Nk(e,r,n,o){let i=!1;return function a(c){if(!i){let u=o||a,l=Wv.indexOf(u);return l>=0&&Wv.splice(l,1),i=!0,n||e===zAe||e===JAe?e(r):e(r,c||function(){})}}}function t_t(){if(KAe)for(;Wv.length;)try{Wv[0]()}catch{}}function qAe(e){let r=[],n=null;try{n=UAe.randomBytes(e)}catch{n=UAe.pseudoRandomBytes(e)}for(var o=0;o<e;o++)r.push(jAe[n[o]%jAe.length]);return r.join("")}function r_t(e){return e===null||Pa(e)||!e.trim()}function Pa(e){return typeof e>"u"}function Vv(e,r){if(typeof e=="function")return[{},e];if(Pa(e))return[{},r];let n={};for(let o of Object.getOwnPropertyNames(e))n[o]=e[o];return[n,r]}function ZAe(e){let r=e.tmpdir;if(!Pa(e.name))return Sc.join(r,e.dir,e.name);if(!Pa(e.template))return Sc.join(r,e.dir,e.template).replace(GAe,qAe(6));let n=[e.prefix?e.prefix:"tmp","-",process.pid,"-",qAe(12),e.postfix?"-"+e.postfix:""].join("");return Sc.join(r,e.dir,n)}function QAe(e){e.tmpdir=eCe(e);let r=e.tmpdir;if(Pa(e.name)||aV(e.name,"name",r),Pa(e.dir)||aV(e.dir,"dir",r),!Pa(e.template)&&(aV(e.template,"template",r),!e.template.match(GAe)))throw new Error(`Invalid template, found "${e.template}".`);if(!Pa(e.tries)&&isNaN(e.tries)||e.tries<0)throw new Error(`Invalid tries, found "${e.tries}".`);e.tries=Pa(e.name)?e.tries||Gwt:1,e.keep=!!e.keep,e.detachDescriptor=!!e.detachDescriptor,e.discardDescriptor=!!e.discardDescriptor,e.unsafeCleanup=!!e.unsafeCleanup,e.dir=Pa(e.dir)?"":Sc.relative(r,uV(e.dir,r)),e.template=Pa(e.template)?void 0:Sc.relative(r,uV(e.template,r)),e.template=r_t(e.template)?void 0:Sc.relative(e.dir,e.template),e.name=Pa(e.name)?void 0:e.name,e.prefix=Pa(e.prefix)?"":e.prefix,e.postfix=Pa(e.postfix)?"":e.postfix}function uV(e,r){return e.startsWith(r)?Sc.resolve(e):Sc.resolve(Sc.join(r,e))}function aV(e,r,n){if(r==="name"){if(Sc.isAbsolute(e))throw new Error(`${r} option must not contain an absolute path, found "${e}".`);let o=Sc.basename(e);if(o===".."||o==="."||o!==e)throw new Error(`${r} option must not contain a path, found "${e}".`)}else{if(Sc.isAbsolute(e)&&!e.startsWith(n))throw new Error(`${r} option must be relative to "${n}", found "${e}".`);let o=uV(e,n);if(!o.startsWith(n))throw new Error(`${r} option must be relative to "${n}", found "${o}".`)}}function n_t(e){return XAe(e,-Wwt,"EBADF")}function lV(e){return XAe(e,-Vwt,"ENOENT")}function XAe(e,r,n){return Hwt?e.code===n:e.code===n&&e.errno===r}function o_t(){KAe=!0}function eCe(e){return Sc.resolve(e&&e.tmpdir||pV.tmpdir())}process.addListener(zwt,t_t);Object.defineProperty(yd.exports,"tmpdir",{enumerable:!0,configurable:!1,get:function(){return eCe()}});yd.exports.dir=Zwt;yd.exports.dirSync=Qwt;yd.exports.file=Jwt;yd.exports.fileSync=Ywt;yd.exports.tmpName=fV;yd.exports.tmpNameSync=dV;yd.exports.setGracefulCleanup=o_t});var ho=C((jwr,lCe)=>{"use strict";var{FORCE_COLOR:s_t,NODE_DISABLE_COLORS:a_t,TERM:c_t}=process.env,Zr={enabled:!a_t&&c_t!=="dumb"&&s_t!=="0",reset:Tn(0,0),bold:Tn(1,22),dim:Tn(2,22),italic:Tn(3,23),underline:Tn(4,24),inverse:Tn(7,27),hidden:Tn(8,28),strikethrough:Tn(9,29),black:Tn(30,39),red:Tn(31,39),green:Tn(32,39),yellow:Tn(33,39),blue:Tn(34,39),magenta:Tn(35,39),cyan:Tn(36,39),white:Tn(37,39),gray:Tn(90,39),grey:Tn(90,39),bgBlack:Tn(40,49),bgRed:Tn(41,49),bgGreen:Tn(42,49),bgYellow:Tn(43,49),bgBlue:Tn(44,49),bgMagenta:Tn(45,49),bgCyan:Tn(46,49),bgWhite:Tn(47,49)};function uCe(e,r){let n=0,o,i="",a="";for(;n<e.length;n++)o=e[n],i+=o.open,a+=o.close,r.includes(o.close)&&(r=r.replace(o.rgx,o.close+o.open));return i+r+a}function u_t(e,r){let n={has:e,keys:r};return n.reset=Zr.reset.bind(n),n.bold=Zr.bold.bind(n),n.dim=Zr.dim.bind(n),n.italic=Zr.italic.bind(n),n.underline=Zr.underline.bind(n),n.inverse=Zr.inverse.bind(n),n.hidden=Zr.hidden.bind(n),n.strikethrough=Zr.strikethrough.bind(n),n.black=Zr.black.bind(n),n.red=Zr.red.bind(n),n.green=Zr.green.bind(n),n.yellow=Zr.yellow.bind(n),n.blue=Zr.blue.bind(n),n.magenta=Zr.magenta.bind(n),n.cyan=Zr.cyan.bind(n),n.white=Zr.white.bind(n),n.gray=Zr.gray.bind(n),n.grey=Zr.grey.bind(n),n.bgBlack=Zr.bgBlack.bind(n),n.bgRed=Zr.bgRed.bind(n),n.bgGreen=Zr.bgGreen.bind(n),n.bgYellow=Zr.bgYellow.bind(n),n.bgBlue=Zr.bgBlue.bind(n),n.bgMagenta=Zr.bgMagenta.bind(n),n.bgCyan=Zr.bgCyan.bind(n),n.bgWhite=Zr.bgWhite.bind(n),n}function Tn(e,r){let n={open:`\x1B[${e}m`,close:`\x1B[${r}m`,rgx:new RegExp(`\\x1b\\[${r}m`,"g")};return function(o){return this!==void 0&&this.has!==void 0?(this.has.includes(e)||(this.has.push(e),this.keys.push(n)),o===void 0?this:Zr.enabled?uCe(this.keys,o+""):o+""):o===void 0?u_t([e],[n]):Zr.enabled?uCe([n],o+""):o+""}}lCe.exports=Zr});var fCe=C((qwr,pCe)=>{"use strict";pCe.exports=(e,r)=>{if(!(e.meta&&e.name!=="escape")){if(e.ctrl){if(e.name==="a")return"first";if(e.name==="c"||e.name==="d")return"abort";if(e.name==="e")return"last";if(e.name==="g")return"reset"}if(r){if(e.name==="j")return"down";if(e.name==="k")return"up"}return e.name==="return"||e.name==="enter"?"submit":e.name==="backspace"?"delete":e.name==="delete"?"deleteForward":e.name==="abort"?"abort":e.name==="escape"?"exit":e.name==="tab"?"next":e.name==="pagedown"?"nextPage":e.name==="pageup"?"prevPage":e.name==="home"?"home":e.name==="end"?"end":e.name==="up"?"up":e.name==="down"?"down":e.name==="right"?"right":e.name==="left"?"left":!1}}});var Lk=C((Gwr,dCe)=>{"use strict";dCe.exports=e=>{let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),n=new RegExp(r,"g");return typeof e=="string"?e.replace(n,""):e}});var yo=C((Hwr,mCe)=>{"use strict";var mV="\x1B",go=`${mV}[`,l_t="\x07",hV={to(e,r){return r?`${go}${r+1};${e+1}H`:`${go}${e+1}G`},move(e,r){let n="";return e<0?n+=`${go}${-e}D`:e>0&&(n+=`${go}${e}C`),r<0?n+=`${go}${-r}A`:r>0&&(n+=`${go}${r}B`),n},up:(e=1)=>`${go}${e}A`,down:(e=1)=>`${go}${e}B`,forward:(e=1)=>`${go}${e}C`,backward:(e=1)=>`${go}${e}D`,nextLine:(e=1)=>`${go}E`.repeat(e),prevLine:(e=1)=>`${go}F`.repeat(e),left:`${go}G`,hide:`${go}?25l`,show:`${go}?25h`,save:`${mV}7`,restore:`${mV}8`},p_t={up:(e=1)=>`${go}S`.repeat(e),down:(e=1)=>`${go}T`.repeat(e)},f_t={screen:`${go}2J`,up:(e=1)=>`${go}1J`.repeat(e),down:(e=1)=>`${go}J`.repeat(e),line:`${go}2K`,lineEnd:`${go}K`,lineStart:`${go}1K`,lines(e){let r="";for(let n=0;n<e;n++)r+=this.line+(n<e-1?hV.up():"");return e&&(r+=hV.left),r}};mCe.exports={cursor:hV,scroll:p_t,erase:f_t,beep:l_t}});var bCe=C((Wwr,xCe)=>{"use strict";function d_t(e,r){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=m_t(e))||r&&e&&typeof e.length=="number"){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(p){throw p},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
47
|
+
`)}});var I1e=C((W0r,P1e)=>{"use strict";P1e.exports=C1e()});var F1e=C((z0r,bEt)=>{bEt.exports={name:"@prisma/fetch-engine",version:"7.9.0-dev.25",description:"This package is intended for Prisma's internal use",main:"dist/index.js",types:"dist/index.d.ts",license:"Apache-2.0",author:"Tim Suchanek <suchanek@prisma.io>",homepage:"https://www.prisma.io",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/fetch-engine"},bugs:"https://github.com/prisma/prisma/issues",enginesOverride:{},devDependencies:{"@types/node":"~20.19.24","@types/progress":"2.0.7",del:"6.1.1",execa:"8.0.1","find-cache-dir":"5.0.0","fs-extra":"11.3.0",hasha:"5.2.2","http-proxy-agent":"7.0.2","https-proxy-agent":"7.0.6",kleur:"4.1.5","node-fetch":"3.3.2","p-filter":"4.1.0","p-map":"4.0.0","p-retry":"4.6.2",progress:"2.0.3","temp-dir":"2.0.0",tempy:"1.0.1","timeout-signal":"2.0.0",typescript:"5.4.5"},dependencies:{"@prisma/debug":"workspace:*","@prisma/engines-version":"7.9.0-1.e922089b7d7502aff4249d5da3420f6fa55fc6ad","@prisma/get-platform":"workspace:*"},scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",test:"vitest run",prepublishOnly:"pnpm run build"},files:["README.md","dist"],sideEffects:!1}});var W1e=C((Dyr,H1e)=>{"use strict";var FEt=Object.create,XM=Object.defineProperty,MEt=Object.getOwnPropertyDescriptor,kEt=Object.getOwnPropertyNames,NEt=Object.getPrototypeOf,$Et=Object.prototype.hasOwnProperty,LEt=(e,r)=>{for(var n in r)XM(e,n,{get:r[n],enumerable:!0})},U1e=(e,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of kEt(r))!$Et.call(e,i)&&i!==n&&XM(e,i,{get:()=>r[i],enumerable:!(o=MEt(r,i))||o.enumerable});return e},ek=(e,r,n)=>(n=e!=null?FEt(NEt(e)):{},U1e(r||!e||!e.__esModule?XM(n,"default",{value:e,enumerable:!0}):n,e)),BEt=e=>U1e(XM({},"__esModule",{value:!0}),e),j1e={};LEt(j1e,{CompositeFilesResolver:()=>UEt,InMemoryFilesResolver:()=>qEt,ensureType:()=>zEt,loadRelatedSchemaFiles:()=>GEt,loadSchemaFiles:()=>G1e,realFsResolver:()=>XH});H1e.exports=BEt(j1e);var ZH=ek(require("node:path")),B1e=ek(require("node:path"));function q1e(e){return e.caseSensitive?r=>r:r=>r.toLocaleLowerCase()}var UEt=class{constructor(e,r,n){this.primary=e,this.secondary=r,this._fileNameToKey=q1e(n)}_fileNameToKey;async listDirContents(e){let r=await this.primary.listDirContents(e),n=await this.secondary.listDirContents(e);return jEt([...r,...n],this._fileNameToKey)}async getEntryType(e){return await this.primary.getEntryType(e)??await this.secondary.getEntryType(e)}async getFileContents(e){return await this.primary.getFileContents(e)??await this.secondary.getFileContents(e)}};function jEt(e,r){let n=new Map;for(let o of e){let i=r(o);n.has(i)||n.set(i,o)}return Array.from(n.values())}var qEt=class{_tree={};_fileNameToKey;constructor(e){this._fileNameToKey=q1e(e)}addFile(e,r){let n=e.split(/[\\/]/),o=n.pop();if(!o)throw new Error("Path is empty");let i=this._tree;for(let a of n){let c=this._fileNameToKey(a),u=i[c];if(u||(u={canonicalName:a,content:{}},i[c]=u),typeof u.content=="string")throw new Error(`${a} is a file`);i=u.content}if(typeof i[o]?.content=="object")throw new Error(`${e} is a directory`);i[this._fileNameToKey(o)]={canonicalName:o,content:r}}getInMemoryContent(e){let r=e.split(/[\\/]/).map(o=>this._fileNameToKey(o)),n=this._tree;for(let o of r){if(typeof n!="object")return;n=n[o]?.content}return n}listDirContents(e){return Promise.resolve().then(()=>{let r=this.getInMemoryContent(e);return typeof r!="object"?[]:Object.values(r).map(n=>n.canonicalName)})}getEntryType(e){return Promise.resolve().then(()=>{let r=this.getInMemoryContent(e);if(typeof r=="string")return{kind:"file"};if(typeof r=="object")return{kind:"directory"}})}getFileContents(e){return Promise.resolve().then(()=>{let r=this.getInMemoryContent(e);if(!(typeof r>"u")){if(typeof r=="object")throw new Error(`${e} is directory`);return r}})}},QM=ek(Lh()),XH={listDirContents(e){return QM.default.readdir(e)},async getEntryType(e){let r=await QM.default.lstat(e);return r.isFile()?{kind:"file"}:r.isDirectory()?{kind:"directory"}:r.isSymbolicLink()?{kind:"symlink",realPath:await QM.default.realpath(e)}:{kind:"other"}},getFileContents(e){return QM.default.readFile(e,"utf8")}};async function G1e(e,r=XH){let n=await r.getEntryType(e);return QH(e,n,r)}async function QH(e,r,n){if(!r)return[];if(r.kind==="symlink"){let o=r.realPath,i=await n.getEntryType(o);return QH(o,i,n)}if(r.kind==="file"){if(B1e.default.extname(e)!==".prisma")return[];let o=await n.getFileContents(e);return typeof o>"u"?[]:[[e,o]]}if(r.kind==="directory"){let o=await n.listDirContents(e);return(await Promise.all(o.map(async a=>{let c=B1e.default.join(e,a),u=await n.getEntryType(c);return QH(c,u,n)}))).flat()}return[]}async function GEt(e,r=XH){let n=await WEt(e,r);return n?await G1e(n,r):HEt(e,r)}async function HEt(e,r){let n=await r.getFileContents(e);return n===void 0?[]:[[e,n]]}async function WEt(e,r){let n=ZH.default.dirname(e);for(;n!==e;){let o=ZH.default.dirname(n);if((await r.listDirContents(o)).filter(c=>ZH.default.extname(c)===".prisma").length===0)return n;n=o}}var VEt=ek(require("node:fs/promises"));async function zEt(e,r){try{let n=await VEt.default.stat(e);return r==="file"&&n.isFile()||r==="directory"&&n.isDirectory()?void 0:{kind:"WrongType",path:e,expectedTypes:[r]}}catch(n){if(n.code==="ENOENT")return{kind:"NotFound",path:e,expectedType:r};throw n}}});var cW=C((mo,Q1e)=>{"use strict";var Y1e={};Y1e.__wbindgen_placeholder__=Q1e.exports;var tk=null;function uD(){return(tk===null||tk.byteLength===0)&&(tk=new Uint8Array(ke.memory.buffer)),tk}var Z1e=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Z1e.decode();function rvt(e,r){return Z1e.decode(uD().subarray(e,e+r))}function Ts(e,r){return e=e>>>0,rvt(e,r)}function Fv(e){let r=ke.__wbindgen_externrefs.get(e);return ke.__externref_table_dealloc(e),r}function nvt(e,r){return e=e>>>0,uD().subarray(e/1,e/1+r)}var Fo=0,lD=new TextEncoder;"encodeInto"in lD||(lD.encodeInto=function(e,r){let n=lD.encode(e);return r.set(n),{read:e.length,written:n.length}});function di(e,r,n){if(n===void 0){let u=lD.encode(e),l=r(u.length,1)>>>0;return uD().subarray(l,l+u.length).set(u),Fo=u.length,l}let o=e.length,i=r(o,1)>>>0,a=uD(),c=0;for(;c<o;c++){let u=e.charCodeAt(c);if(u>127)break;a[i+c]=u}if(c!==o){c!==0&&(e=e.slice(c)),i=n(i,o,o=c+e.length*3,1)>>>0;let u=uD().subarray(i+c,i+o),l=lD.encodeInto(e,u);c+=l.written,i=n(i,o,c,1)>>>0}return Fo=c,i}mo.merge_schemas=function(e){let r,n;try{let a=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),c=Fo,u=ke.merge_schemas(a,c);var o=u[0],i=u[1];if(u[3])throw o=0,i=0,Fv(u[2]);return r=o,n=i,Ts(o,i)}finally{ke.__wbindgen_free(r,n,1)}};mo.native_types=function(e){let r,n;try{let o=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=Fo,a=ke.native_types(o,i);return r=a[0],n=a[1],Ts(a[0],a[1])}finally{ke.__wbindgen_free(r,n,1)}};mo.lint=function(e){let r,n;try{let o=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=Fo,a=ke.lint(o,i);return r=a[0],n=a[1],Ts(a[0],a[1])}finally{ke.__wbindgen_free(r,n,1)}};mo.get_dmmf=function(e){let r,n;try{let a=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),c=Fo,u=ke.get_dmmf(a,c);var o=u[0],i=u[1];if(u[3])throw o=0,i=0,Fv(u[2]);return r=o,n=i,Ts(o,i)}finally{ke.__wbindgen_free(r,n,1)}};mo.references=function(e,r){let n,o;try{let i=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=Fo,c=di(r,ke.__wbindgen_malloc,ke.__wbindgen_realloc),u=Fo,l=ke.references(i,a,c,u);return n=l[0],o=l[1],Ts(l[0],l[1])}finally{ke.__wbindgen_free(n,o,1)}};mo.format=function(e,r){let n,o;try{let i=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=Fo,c=di(r,ke.__wbindgen_malloc,ke.__wbindgen_realloc),u=Fo,l=ke.format(i,a,c,u);return n=l[0],o=l[1],Ts(l[0],l[1])}finally{ke.__wbindgen_free(n,o,1)}};mo.validate=function(e){let r=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),n=Fo,o=ke.validate(r,n);if(o[1])throw Fv(o[0])};mo.debug_panic=function(){ke.debug_panic()};mo.text_document_completion=function(e,r){let n,o;try{let i=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=Fo,c=di(r,ke.__wbindgen_malloc,ke.__wbindgen_realloc),u=Fo,l=ke.text_document_completion(i,a,c,u);return n=l[0],o=l[1],Ts(l[0],l[1])}finally{ke.__wbindgen_free(n,o,1)}};mo.referential_actions=function(e){let r,n;try{let o=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=Fo,a=ke.referential_actions(o,i);return r=a[0],n=a[1],Ts(a[0],a[1])}finally{ke.__wbindgen_free(r,n,1)}};mo.get_dmmf_buffered=function(e){let r=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),n=Fo,o=ke.get_dmmf_buffered(r,n);if(o[2])throw Fv(o[1]);return Rv.__wrap(o[0])};mo.get_config=function(e){let r,n;try{let o=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=Fo,a=ke.get_config(o,i);return r=a[0],n=a[1],Ts(a[0],a[1])}finally{ke.__wbindgen_free(r,n,1)}};mo.hover=function(e,r){let n,o;try{let i=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=Fo,c=di(r,ke.__wbindgen_malloc,ke.__wbindgen_realloc),u=Fo,l=ke.hover(i,a,c,u);return n=l[0],o=l[1],Ts(l[0],l[1])}finally{ke.__wbindgen_free(n,o,1)}};mo.get_datamodel=function(e){let r,n;try{let a=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),c=Fo,u=ke.get_datamodel(a,c);var o=u[0],i=u[1];if(u[3])throw o=0,i=0,Fv(u[2]);return r=o,n=i,Ts(o,i)}finally{ke.__wbindgen_free(r,n,1)}};mo.code_actions=function(e,r){let n,o;try{let i=di(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=Fo,c=di(r,ke.__wbindgen_malloc,ke.__wbindgen_realloc),u=Fo,l=ke.code_actions(i,a,c,u);return n=l[0],o=l[1],Ts(l[0],l[1])}finally{ke.__wbindgen_free(n,o,1)}};mo.preview_features=function(){let e,r;try{let n=ke.preview_features();return e=n[0],r=n[1],Ts(n[0],n[1])}finally{ke.__wbindgen_free(e,r,1)}};var J1e=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_dmmfbuffer_free(e>>>0,1)),Rv=class e{static __wrap(r){r=r>>>0;let n=Object.create(e.prototype);return n.__wbg_ptr=r,J1e.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let r=this.__wbg_ptr;return this.__wbg_ptr=0,J1e.unregister(this),r}free(){let r=this.__destroy_into_raw();ke.__wbg_dmmfbuffer_free(r,0)}read_chunk(r,n){let o=ke.dmmfbuffer_read_chunk(this.__wbg_ptr,r,n);if(o[3])throw Fv(o[2]);var i=nvt(o[0],o[1]).slice();return ke.__wbindgen_free(o[0],o[1]*1,1),i}len(){return ke.dmmfbuffer_len(this.__wbg_ptr)>>>0}is_empty(){return ke.dmmfbuffer_is_empty(this.__wbg_ptr)!==0}};Symbol.dispose&&(Rv.prototype[Symbol.dispose]=Rv.prototype.free);mo.DmmfBuffer=Rv;mo.__wbg_Error_e83987f665cf5504=function(e,r){return Error(Ts(e,r))};mo.__wbg___wbindgen_throw_b855445ff6a94295=function(e,r){throw new Error(Ts(e,r))};mo.__wbg_set_message_f22ac4a6869ee695=function(e,r){global.PRISMA_WASM_PANIC_REGISTRY.set_message(Ts(e,r))};mo.__wbindgen_init_externref_table=function(){let e=ke.__wbindgen_externrefs,r=e.grow(4);e.set(0,void 0),e.set(r+0,void 0),e.set(r+1,null),e.set(r+2,!0),e.set(r+3,!1)};var ovt=`${__dirname}/prisma_schema_build_bg.wasm`,ivt=require("fs").readFileSync(ovt),svt=new WebAssembly.Module(ivt),ke=mo.__wasm=new WebAssembly.Instance(svt,Y1e).exports;ke.__wbindgen_start()});var uW=C((Uyr,avt)=>{avt.exports={name:"@prisma/internals",version:"7.9.0-dev.25",description:"This package is intended for Prisma's internal use",main:"dist/index.js",types:"dist/index.d.ts",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/internals"},homepage:"https://www.prisma.io",author:"Tim Suchanek <suchanek@prisma.io>",bugs:"https://github.com/prisma/prisma/issues",license:"Apache-2.0",scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",test:"dotenv -e ../../.db.env -- vitest run --silent",prepublishOnly:"pnpm run build"},files:["README.md","dist","!dist/get-generators/engines/*","scripts"],devDependencies:{"@babel/helper-validator-identifier":"7.25.9","@opentelemetry/api":"1.9.0","@types/babel__helper-validator-identifier":"7.15.2","@types/node":"~20.19.24","@types/resolve":"1.20.6","checkpoint-client":"1.1.33","cli-truncate":"4.0.0",empathic:"2.0.0","escape-string-regexp":"5.0.0",execa:"8.0.1","find-up":"7.0.0","fp-ts":"2.16.9","fs-extra":"11.3.0","global-directory":"4.0.0",globby:"11.1.0","identifier-regex":"1.0.0","indent-string":"4.0.0","is-windows":"1.0.2","is-wsl":"3.1.0",kleur:"4.1.5","mock-stdin":"1.0.0","new-github-issue-url":"0.2.1","node-fetch":"3.3.2","npm-packlist":"5.1.3",open:"7.4.2","p-map":"4.0.0",resolve:"1.22.10","string-width":"7.2.0","strip-indent":"4.0.0","temp-dir":"2.0.0",tempy:"1.0.1","terminal-link":"4.0.0",tmp:"0.2.3","ts-pattern":"5.6.2","ts-toolbelt":"9.6.0",typescript:"5.4.5",yarn:"1.22.22"},dependencies:{"@prisma/config":"workspace:*","@prisma/debug":"workspace:*","@prisma/dmmf":"workspace:*","@prisma/driver-adapter-utils":"workspace:*","@prisma/engines":"workspace:*","@prisma/fetch-engine":"workspace:*","@prisma/generator":"workspace:*","@prisma/generator-helper":"workspace:*","@prisma/get-dmmf":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/prisma-schema-wasm":"7.9.0-1.e922089b7d7502aff4249d5da3420f6fa55fc6ad","@prisma/schema-engine-wasm":"7.9.0-1.e922089b7d7502aff4249d5da3420f6fa55fc6ad","@prisma/schema-files-loader":"workspace:*","@streamparser/json":"0.0.22",arg:"5.0.2",prompts:"2.4.2"},peerDependencies:{typescript:">=5.4.0"},peerDependenciesMeta:{typescript:{optional:!0}},sideEffects:!1}});var bn=C(wt=>{"use strict";var _vt=wt&&wt.__spreadArray||function(e,r,n){if(n||arguments.length===2)for(var o=0,i=r.length,a;o<i;o++)(a||!(o in r))&&(a||(a=Array.prototype.slice.call(r,0,o)),a[o]=r[o]);return e.concat(a||Array.prototype.slice.call(r))};Object.defineProperty(wt,"__esModule",{value:!0});wt.dual=wt.getEndomorphismMonoid=wt.SK=wt.hole=wt.constVoid=wt.constUndefined=wt.constNull=wt.constFalse=wt.constTrue=wt.unsafeCoerce=wt.apply=wt.getRing=wt.getSemiring=wt.getMonoid=wt.getSemigroup=wt.getBooleanAlgebra=void 0;wt.identity=TW;wt.constant=hD;wt.flip=Ovt;wt.flow=mTe;wt.tuple=Rvt;wt.increment=Fvt;wt.decrement=Mvt;wt.absurd=hTe;wt.tupled=kvt;wt.untupled=Nvt;wt.pipe=$vt;wt.not=Bvt;var Tvt=function(e){return function(){return{meet:function(r,n){return function(o){return e.meet(r(o),n(o))}},join:function(r,n){return function(o){return e.join(r(o),n(o))}},zero:function(){return e.zero},one:function(){return e.one},implies:function(r,n){return function(o){return e.implies(r(o),n(o))}},not:function(r){return function(n){return e.not(r(n))}}}}};wt.getBooleanAlgebra=Tvt;var Dvt=function(e){return function(){return{concat:function(r,n){return function(o){return e.concat(r(o),n(o))}}}}};wt.getSemigroup=Dvt;var Avt=function(e){var r=(0,wt.getSemigroup)(e);return function(){return{concat:r().concat,empty:function(){return e.empty}}}};wt.getMonoid=Avt;var Cvt=function(e){return{add:function(r,n){return function(o){return e.add(r(o),n(o))}},zero:function(){return e.zero},mul:function(r,n){return function(o){return e.mul(r(o),n(o))}},one:function(){return e.one}}};wt.getSemiring=Cvt;var Pvt=function(e){var r=(0,wt.getSemiring)(e);return{add:r.add,mul:r.mul,one:r.one,zero:r.zero,sub:function(n,o){return function(i){return e.sub(n(i),o(i))}}}};wt.getRing=Pvt;var Ivt=function(e){return function(r){return r(e)}};wt.apply=Ivt;function TW(e){return e}wt.unsafeCoerce=TW;function hD(e){return function(){return e}}wt.constTrue=hD(!0);wt.constFalse=hD(!1);wt.constNull=hD(null);wt.constUndefined=hD(void 0);wt.constVoid=wt.constUndefined;function Ovt(e){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length>1?e(r[1],r[0]):function(o){return e(o)(r[0])}}}function mTe(e,r,n,o,i,a,c,u,l){switch(arguments.length){case 1:return e;case 2:return function(){return r(e.apply(this,arguments))};case 3:return function(){return n(r(e.apply(this,arguments)))};case 4:return function(){return o(n(r(e.apply(this,arguments))))};case 5:return function(){return i(o(n(r(e.apply(this,arguments)))))};case 6:return function(){return a(i(o(n(r(e.apply(this,arguments))))))};case 7:return function(){return c(a(i(o(n(r(e.apply(this,arguments)))))))};case 8:return function(){return u(c(a(i(o(n(r(e.apply(this,arguments))))))))};case 9:return function(){return l(u(c(a(i(o(n(r(e.apply(this,arguments)))))))))}}}function Rvt(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e}function Fvt(e){return e+1}function Mvt(e){return e-1}function hTe(e){throw new Error("Called `absurd` function which should be uncallable")}function kvt(e){return function(r){return e.apply(void 0,r)}}function Nvt(e){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e(r)}}function $vt(e,r,n,o,i,a,c,u,l){switch(arguments.length){case 1:return e;case 2:return r(e);case 3:return n(r(e));case 4:return o(n(r(e)));case 5:return i(o(n(r(e))));case 6:return a(i(o(n(r(e)))));case 7:return c(a(i(o(n(r(e))))));case 8:return u(c(a(i(o(n(r(e)))))));case 9:return l(u(c(a(i(o(n(r(e))))))));default:{for(var p=arguments[0],f=1;f<arguments.length;f++)p=arguments[f](p);return p}}}wt.hole=hTe;var Lvt=function(e,r){return r};wt.SK=Lvt;function Bvt(e){return function(r){return!e(r)}}var Uvt=function(){return{concat:function(e,r){return mTe(e,r)},empty:TW}};wt.getEndomorphismMonoid=Uvt;var jvt=function(e,r){var n=typeof e=="number"?function(o){return o.length>=e}:e;return function(){var o=Array.from(arguments);return n(arguments)?r.apply(this,o):function(i){return r.apply(void 0,_vt([i],o,!1))}}};wt.dual=jvt});var Ek=C((kW,NW)=>{"use strict";(function(e,r){typeof require=="function"&&typeof kW=="object"&&typeof NW=="object"?NW.exports=r():typeof define=="function"&&define.amd?define(function(){return r()}):e.pluralize=r()})(kW,function(){var e=[],r=[],n={},o={},i={};function a(b){return typeof b=="string"?new RegExp("^"+b+"$","i"):b}function c(b,E){return b===E?E:b===b.toLowerCase()?E.toLowerCase():b===b.toUpperCase()?E.toUpperCase():b[0]===b[0].toUpperCase()?E.charAt(0).toUpperCase()+E.substr(1).toLowerCase():E.toLowerCase()}function u(b,E){return b.replace(/\$(\d{1,2})/g,function(S,_){return E[_]||""})}function l(b,E){return b.replace(E[0],function(S,_){var D=u(E[1],arguments);return c(S===""?b[_-1]:S,D)})}function p(b,E,S){if(!b.length||n.hasOwnProperty(b))return E;for(var _=S.length;_--;){var D=S[_];if(D[0].test(E))return l(E,D)}return E}function f(b,E,S){return function(_){var D=_.toLowerCase();return E.hasOwnProperty(D)?c(_,D):b.hasOwnProperty(D)?c(_,b[D]):p(D,_,S)}}function g(b,E,S,_){return function(D){var I=D.toLowerCase();return E.hasOwnProperty(I)?!0:b.hasOwnProperty(I)?!1:p(I,I,S)===I}}function x(b,E,S){var _=E===1?x.singular(b):x.plural(b);return(S?E+" ":"")+_}return x.plural=f(i,o,e),x.isPlural=g(i,o,e),x.singular=f(o,i,r),x.isSingular=g(o,i,r),x.addPluralRule=function(b,E){e.push([a(b),E])},x.addSingularRule=function(b,E){r.push([a(b),E])},x.addUncountableRule=function(b){if(typeof b=="string"){n[b.toLowerCase()]=!0;return}x.addPluralRule(b,"$0"),x.addSingularRule(b,"$0")},x.addIrregularRule=function(b,E){E=E.toLowerCase(),b=b.toLowerCase(),i[b]=E,o[E]=b},[["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(b){return x.addIrregularRule(b[0],b[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(b){return x.addPluralRule(b[0],b[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(b){return x.addSingularRule(b[0],b[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(x.addUncountableRule),x})});var VW=C((jvr,dDe)=>{"use strict";var WW=Symbol("arg flag"),fu=class e extends Error{constructor(r,n){super(r),this.name="ArgError",this.code=n,Object.setPrototypeOf(this,e.prototype)}};function _D(e,{argv:r=process.argv.slice(2),permissive:n=!1,stopAtPositional:o=!1}={}){if(!e)throw new fu("argument specification object is required","ARG_CONFIG_NO_SPEC");let i={_:[]},a={},c={};for(let u of Object.keys(e)){if(!u)throw new fu("argument key cannot be an empty string","ARG_CONFIG_EMPTY_KEY");if(u[0]!=="-")throw new fu(`argument key must start with '-' but found: '${u}'`,"ARG_CONFIG_NONOPT_KEY");if(u.length===1)throw new fu(`argument key must have a name; singular '-' keys are not allowed: ${u}`,"ARG_CONFIG_NONAME_KEY");if(typeof e[u]=="string"){a[u]=e[u];continue}let l=e[u],p=!1;if(Array.isArray(l)&&l.length===1&&typeof l[0]=="function"){let[f]=l;l=(g,x,b=[])=>(b.push(f(g,x,b[b.length-1])),b),p=f===Boolean||f[WW]===!0}else if(typeof l=="function")p=l===Boolean||l[WW]===!0;else throw new fu(`type missing or not a function or valid array type: ${u}`,"ARG_CONFIG_VAD_TYPE");if(u[1]!=="-"&&u.length>2)throw new fu(`short argument keys (with a single hyphen) must have only one character: ${u}`,"ARG_CONFIG_SHORTOPT_TOOLONG");c[u]=[l,p]}for(let u=0,l=r.length;u<l;u++){let p=r[u];if(o&&i._.length>0){i._=i._.concat(r.slice(u));break}if(p==="--"){i._=i._.concat(r.slice(u+1));break}if(p.length>1&&p[0]==="-"){let f=p[1]==="-"||p.length===2?[p]:p.slice(1).split("").map(g=>`-${g}`);for(let g=0;g<f.length;g++){let x=f[g],[b,E]=x[1]==="-"?x.split(/=(.*)/,2):[x,void 0],S=b;for(;S in a;)S=a[S];if(!(S in c))if(n){i._.push(x);continue}else throw new fu(`unknown or unexpected option: ${b}`,"ARG_UNKNOWN_OPTION");let[_,D]=c[S];if(!D&&g+1<f.length)throw new fu(`option requires argument (but was followed by another short argument): ${b}`,"ARG_MISSING_REQUIRED_SHORTARG");if(D)i[S]=_(!0,S,i[S]);else if(E===void 0){if(r.length<u+2||r[u+1].length>1&&r[u+1][0]==="-"&&!(r[u+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(_===Number||typeof BigInt<"u"&&_===BigInt))){let I=b===S?"":` (alias for ${S})`;throw new fu(`option requires argument: ${b}${I}`,"ARG_MISSING_REQUIRED_LONGARG")}i[S]=_(r[u+1],S,i[S]),++u}else i[S]=_(E,S,i[S])}}else i._.push(p)}return i}_D.flag=e=>(e[WW]=!0,e);_D.COUNT=_D.flag((e,r,n)=>(n||0)+1);_D.ArgError=fu;dDe.exports=_D});var hDe=C((qvr,mDe)=>{"use strict";mDe.exports=e=>{let r=e.match(/^[ \t]*(?=\S)/gm);return r?r.reduce((n,o)=>Math.min(n,o.length),1/0):0}});var eV=C((awr,ZDe)=>{"use strict";var GSt=require("os");ZDe.exports=GSt.homedir||function(){var r=process.env.HOME,n=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||r||null:process.platform==="darwin"?r||(n?"/Users/"+n:null):process.platform==="linux"?r||(process.getuid()===0?"/root":n?"/home/"+n:null):r||null}});var tV=C((cwr,QDe)=>{"use strict";QDe.exports=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(n,o){return o};var r=new Error().stack;return Error.prepareStackTrace=e,r[2].getFileName()}});var XDe=C((uwr,DD)=>{"use strict";var HSt=process.platform==="win32",WSt=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,rV={};function VSt(e){return WSt.exec(e).slice(1)}rV.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var r=VSt(e);if(!r||r.length!==5)throw new TypeError("Invalid path '"+e+"'");return{root:r[1],dir:r[0]===r[1]?r[0]:r[0].slice(0,-1),base:r[2],ext:r[4],name:r[3]}};var zSt=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,nV={};function KSt(e){return zSt.exec(e).slice(1)}nV.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var r=KSt(e);if(!r||r.length!==5)throw new TypeError("Invalid path '"+e+"'");return{root:r[1],dir:r[0].slice(0,-1),base:r[2],ext:r[4],name:r[3]}};HSt?DD.exports=rV.parse:DD.exports=nV.parse;DD.exports.posix=nV.parse;DD.exports.win32=rV.parse});var oV=C((lwr,nAe)=>{"use strict";var rAe=require("path"),eAe=rAe.parse||XDe(),tAe=function(r,n){var o="/";/^([A-Za-z]:)/.test(r)?o="":/^\\\\/.test(r)&&(o="\\\\");for(var i=[r],a=eAe(r);a.dir!==i[i.length-1];)i.push(a.dir),a=eAe(a.dir);return i.reduce(function(c,u){return c.concat(n.map(function(l){return rAe.resolve(o,u,l)}))},[])};nAe.exports=function(r,n,o){var i=n&&n.moduleDirectory?[].concat(n.moduleDirectory):["node_modules"];if(n&&typeof n.paths=="function")return n.paths(o,r,function(){return tAe(r,i)},n);var a=tAe(r,i);return n&&n.paths?a.concat(n.paths):a}});var iV=C((pwr,oAe)=>{"use strict";oAe.exports=function(e,r){return r||{}}});var aAe=C((fwr,sAe)=>{"use strict";var JSt="Function.prototype.bind called on incompatible ",YSt=Object.prototype.toString,ZSt=Math.max,QSt="[object Function]",iAe=function(r,n){for(var o=[],i=0;i<r.length;i+=1)o[i]=r[i];for(var a=0;a<n.length;a+=1)o[a+r.length]=n[a];return o},XSt=function(r,n){for(var o=[],i=n||0,a=0;i<r.length;i+=1,a+=1)o[a]=r[i];return o},ewt=function(e,r){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=r);return n};sAe.exports=function(r){var n=this;if(typeof n!="function"||YSt.apply(n)!==QSt)throw new TypeError(JSt+n);for(var o=XSt(arguments,1),i,a=function(){if(this instanceof i){var f=n.apply(this,iAe(o,arguments));return Object(f)===f?f:this}return n.apply(r,iAe(o,arguments))},c=ZSt(0,n.length-o.length),u=[],l=0;l<c;l++)u[l]="$"+l;if(i=Function("binder","return function ("+ewt(u,",")+"){ return binder.apply(this,arguments); }")(a),n.prototype){var p=function(){};p.prototype=n.prototype,i.prototype=new p,p.prototype=null}return i}});var uAe=C((dwr,cAe)=>{"use strict";var twt=aAe();cAe.exports=Function.prototype.bind||twt});var pAe=C((mwr,lAe)=>{"use strict";var rwt=Function.prototype.call,nwt=Object.prototype.hasOwnProperty,owt=uAe();lAe.exports=owt.call(rwt,nwt)});var fAe=C((hwr,iwt)=>{iwt.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3","node:sqlite":[">= 22.13 && < 23",">= 23.4"],_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var AD=C((gwr,hAe)=>{"use strict";var swt=pAe();function awt(e,r){for(var n=e.split("."),o=r.split(" "),i=o.length>1?o[0]:"=",a=(o.length>1?o[1]:o[0]).split("."),c=0;c<3;++c){var u=parseInt(n[c]||0,10),l=parseInt(a[c]||0,10);if(u!==l)return i==="<"?u<l:i===">="?u>=l:!1}return i===">="}function dAe(e,r){var n=r.split(/ ?&& ?/);if(n.length===0)return!1;for(var o=0;o<n.length;++o)if(!awt(e,n[o]))return!1;return!0}function cwt(e,r){if(typeof r=="boolean")return r;var n=typeof e>"u"?process.versions&&process.versions.node:e;if(typeof n!="string")throw new TypeError(typeof e>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(r&&typeof r=="object"){for(var o=0;o<r.length;++o)if(dAe(n,r[o]))return!0;return!1}return dAe(n,r)}var mAe=fAe();hAe.exports=function(r,n){return swt(mAe,r)&&cwt(n,mAe[r])}});var xAe=C((ywr,yAe)=>{"use strict";var Hy=require("fs"),uwt=eV(),Ko=require("path"),lwt=tV(),pwt=oV(),fwt=iV(),dwt=AD(),mwt=process.platform!=="win32"&&Hy.realpath&&typeof Hy.realpath.native=="function"?Hy.realpath.native:Hy.realpath,gAe=uwt(),hwt=function(){return[Ko.join(gAe,".node_modules"),Ko.join(gAe,".node_libraries")]},gwt=function(r,n){Hy.stat(r,function(o,i){return o?o.code==="ENOENT"||o.code==="ENOTDIR"?n(null,!1):n(o):n(null,i.isFile()||i.isFIFO())})},ywt=function(r,n){Hy.stat(r,function(o,i){return o?o.code==="ENOENT"||o.code==="ENOTDIR"?n(null,!1):n(o):n(null,i.isDirectory())})},xwt=function(r,n){mwt(r,function(o,i){o&&o.code!=="ENOENT"?n(o):n(null,o?r:i)})},CD=function(r,n,o,i){o&&o.preserveSymlinks===!1?r(n,i):i(null,n)},bwt=function(r,n,o){r(n,function(i,a){if(i)o(i);else try{var c=JSON.parse(a);o(null,c)}catch{o(null)}})},Ewt=function(r,n,o){for(var i=pwt(n,o,r),a=0;a<i.length;a++)i[a]=Ko.join(i[a],r);return i};yAe.exports=function(r,n,o){var i=o,a=n;if(typeof n=="function"&&(i=a,a={}),typeof r!="string"){var c=new TypeError("Path must be a string.");return process.nextTick(function(){i(c)})}a=fwt(r,a);var u=a.isFile||gwt,l=a.isDirectory||ywt,p=a.readFile||Hy.readFile,f=a.realpath||xwt,g=a.readPackage||bwt;if(a.readFile&&a.readPackage){var x=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){i(x)})}var b=a.packageIterator,E=a.extensions||[".js"],S=a.includeCoreModules!==!1,_=a.basedir||Ko.dirname(lwt()),D=a.filename||_;a.paths=a.paths||hwt();var I=Ko.resolve(_);CD(f,I,a,function(F,Y){F?i(F):R(Y)});var A;function R(F){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(r))A=Ko.resolve(F,r),(r==="."||r===".."||r.slice(-1)==="/")&&(A+="/"),/\/$/.test(r)&&A===F?G(A,a.package,O):k(A,a.package,O);else{if(S&&dwt(r))return i(null,r);H(r,F,function(Y,V,Q){if(Y)i(Y);else{if(V)return CD(f,V,a,function(Z,ie){Z?i(Z):i(null,ie,Q)});var q=new Error("Cannot find module '"+r+"' from '"+D+"'");q.code="MODULE_NOT_FOUND",i(q)}})}}function O(F,Y,V){F?i(F):Y?i(null,Y,V):G(A,function(Q,q,Z){if(Q)i(Q);else if(q)CD(f,q,a,function(se,le){se?i(se):i(null,le,Z)});else{var ie=new Error("Cannot find module '"+r+"' from '"+D+"'");ie.code="MODULE_NOT_FOUND",i(ie)}})}function k(F,Y,V){var Q=Y,q=V;typeof Q=="function"&&(q=Q,Q=void 0);var Z=[""].concat(E);ie(Z,F,Q);function ie(se,le,_e){if(se.length===0)return q(null,void 0,_e);var Ge=le+se[0],Mt=_e;Mt?Zt(null,Mt):j(Ko.dirname(Ge),Zt);function Zt(Gt,Ne,Qe){if(Mt=Ne,Gt)return q(Gt);if(Qe&&Mt&&a.pathFilter){var lo=Ko.relative(Qe,Ge),xe=lo.slice(0,lo.length-se[0].length),ze=a.pathFilter(Mt,le,xe);if(ze)return ie([""].concat(E.slice()),Ko.resolve(Qe,ze),Mt)}u(Ge,kt)}function kt(Gt,Ne){if(Gt)return q(Gt);if(Ne)return q(null,Ge,Mt);ie(se.slice(1),le,Mt)}}}function j(F,Y){if(F===""||F==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(F)||/[/\\]node_modules[/\\]*$/.test(F))return Y(null);CD(f,F,a,function(V,Q){if(V)return j(Ko.dirname(F),Y);var q=Ko.join(Q,"package.json");u(q,function(Z,ie){if(!ie)return j(Ko.dirname(F),Y);g(p,q,function(se,le){se&&Y(se);var _e=le;_e&&a.packageFilter&&(_e=a.packageFilter(_e,q)),Y(null,_e,F)})})})}function G(F,Y,V){var Q=V,q=Y;typeof q=="function"&&(Q=q,q=a.package),CD(f,F,a,function(Z,ie){if(Z)return Q(Z);var se=Ko.join(ie,"package.json");u(se,function(le,_e){if(le)return Q(le);if(!_e)return k(Ko.join(F,"index"),q,Q);g(p,se,function(Ge,Mt){if(Ge)return Q(Ge);var Zt=Mt;if(Zt&&a.packageFilter&&(Zt=a.packageFilter(Zt,se)),Zt&&Zt.main){if(typeof Zt.main!="string"){var kt=new TypeError("package \u201C"+Zt.name+"\u201D `main` must be a string");return kt.code="INVALID_PACKAGE_MAIN",Q(kt)}(Zt.main==="."||Zt.main==="./")&&(Zt.main="index"),k(Ko.resolve(F,Zt.main),Zt,function(Gt,Ne,Qe){if(Gt)return Q(Gt);if(Ne)return Q(null,Ne,Qe);if(!Qe)return k(Ko.join(F,"index"),Qe,Q);var lo=Ko.resolve(F,Qe.main);G(lo,Qe,function(xe,ze,ge){if(xe)return Q(xe);if(ze)return Q(null,ze,ge);k(Ko.join(F,"index"),ge,Q)})});return}k(Ko.join(F,"/index"),Zt,Q)})})})}function L(F,Y){if(Y.length===0)return F(null,void 0);var V=Y[0];l(Ko.dirname(V),Q);function Q(ie,se){if(ie)return F(ie);if(!se)return L(F,Y.slice(1));k(V,a.package,q)}function q(ie,se,le){if(ie)return F(ie);if(se)return F(null,se,le);G(V,a.package,Z)}function Z(ie,se,le){if(ie)return F(ie);if(se)return F(null,se,le);L(F,Y.slice(1))}}function H(F,Y,V){var Q=function(){return Ewt(F,Y,a)};L(V,b?b(F,Y,Q,a):Q())}}});var bAe=C((xwr,vwt)=>{vwt.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3","node:sqlite":">= 23.4",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var wAe=C((bwr,SAe)=>{"use strict";var Swt=AD(),EAe=bAe(),vAe={};for(Fk in EAe)Object.prototype.hasOwnProperty.call(EAe,Fk)&&(vAe[Fk]=Swt(Fk));var Fk;SAe.exports=vAe});var TAe=C((Ewr,_Ae)=>{"use strict";var wwt=AD();_Ae.exports=function(r){return wwt(r)}});var CAe=C((vwr,AAe)=>{"use strict";var _wt=AD(),Wy=require("fs"),Ds=require("path"),Twt=eV(),Dwt=tV(),Awt=oV(),Cwt=iV(),Pwt=process.platform!=="win32"&&Wy.realpathSync&&typeof Wy.realpathSync.native=="function"?Wy.realpathSync.native:Wy.realpathSync,DAe=Twt(),Iwt=function(){return[Ds.join(DAe,".node_modules"),Ds.join(DAe,".node_libraries")]},Owt=function(r){try{var n=Wy.statSync(r,{throwIfNoEntry:!1})}catch(o){if(o&&(o.code==="ENOENT"||o.code==="ENOTDIR"))return!1;throw o}return!!n&&(n.isFile()||n.isFIFO())},Rwt=function(r){try{var n=Wy.statSync(r,{throwIfNoEntry:!1})}catch(o){if(o&&(o.code==="ENOENT"||o.code==="ENOTDIR"))return!1;throw o}return!!n&&n.isDirectory()},Fwt=function(r){try{return Pwt(r)}catch(n){if(n.code!=="ENOENT")throw n}return r},PD=function(r,n,o){return o&&o.preserveSymlinks===!1?r(n):n},Mwt=function(r,n){var o=r(n);try{var i=JSON.parse(o);return i}catch{}},kwt=function(r,n,o){for(var i=Awt(n,o,r),a=0;a<i.length;a++)i[a]=Ds.join(i[a],r);return i};AAe.exports=function(r,n){if(typeof r!="string")throw new TypeError("Path must be a string.");var o=Cwt(r,n),i=o.isFile||Owt,a=o.readFileSync||Wy.readFileSync,c=o.isDirectory||Rwt,u=o.realpathSync||Fwt,l=o.readPackageSync||Mwt;if(o.readFileSync&&o.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var p=o.packageIterator,f=o.extensions||[".js"],g=o.includeCoreModules!==!1,x=o.basedir||Ds.dirname(Dwt()),b=o.filename||x;o.paths=o.paths||Iwt();var E=PD(u,Ds.resolve(x),o);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(r)){var S=Ds.resolve(E,r);(r==="."||r===".."||r.slice(-1)==="/")&&(S+="/");var _=A(S)||O(S);if(_)return PD(u,_,o)}else{if(g&&_wt(r))return r;var D=k(r,E);if(D)return PD(u,D,o)}var I=new Error("Cannot find module '"+r+"' from '"+b+"'");throw I.code="MODULE_NOT_FOUND",I;function A(j){var G=R(Ds.dirname(j));if(G&&G.dir&&G.pkg&&o.pathFilter){var L=Ds.relative(G.dir,j),H=o.pathFilter(G.pkg,j,L);H&&(j=Ds.resolve(G.dir,H))}if(i(j))return j;for(var F=0;F<f.length;F++){var Y=j+f[F];if(i(Y))return Y}}function R(j){if(!(j===""||j==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(j))&&!/[/\\]node_modules[/\\]*$/.test(j)){var G=Ds.join(PD(u,j,o),"package.json");if(!i(G))return R(Ds.dirname(j));var L=l(a,G);return L&&o.packageFilter&&(L=o.packageFilter(L,j)),{pkg:L,dir:j}}}function O(j){var G=Ds.join(PD(u,j,o),"/package.json");if(i(G)){try{var L=l(a,G)}catch{}if(L&&o.packageFilter&&(L=o.packageFilter(L,j)),L&&L.main){if(typeof L.main!="string"){var H=new TypeError("package \u201C"+L.name+"\u201D `main` must be a string");throw H.code="INVALID_PACKAGE_MAIN",H}(L.main==="."||L.main==="./")&&(L.main="index");try{var F=A(Ds.resolve(j,L.main));if(F)return F;var Y=O(Ds.resolve(j,L.main));if(Y)return Y}catch{}}}return A(Ds.join(j,"/index"))}function k(j,G){for(var L=function(){return kwt(j,G,o)},H=p?p(j,G,L,o):L(),F=0;F<H.length;F++){var Y=H[F];if(c(Ds.dirname(Y))){var V=A(Y);if(V)return V;var Q=O(Y);if(Q)return Q}}}}});var IAe=C((Swr,PAe)=>{"use strict";var Mk=xAe();Mk.core=wAe();Mk.isCore=TAe();Mk.sync=CAe();PAe.exports=Mk});var NAe=C((Pwr,qwt)=>{qwt.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var BAe=C(vc=>{"use strict";var LAe=NAe(),mi=process.env;Object.defineProperty(vc,"_vendors",{value:LAe.map(function(e){return e.constant})});vc.name=null;vc.isPR=null;LAe.forEach(function(e){let n=(Array.isArray(e.env)?e.env:[e.env]).every(function(o){return $Ae(o)});if(vc[e.constant]=n,!!n)switch(vc.name=e.name,typeof e.pr){case"string":vc.isPR=!!mi[e.pr];break;case"object":"env"in e.pr?vc.isPR=e.pr.env in mi&&mi[e.pr.env]!==e.pr.ne:"any"in e.pr?vc.isPR=e.pr.any.some(function(o){return!!mi[o]}):vc.isPR=$Ae(e.pr);break;default:vc.isPR=null}});vc.isCI=!!(mi.CI!=="false"&&(mi.BUILD_ID||mi.BUILD_NUMBER||mi.CI||mi.CI_APP_ID||mi.CI_BUILD_ID||mi.CI_BUILD_NUMBER||mi.CI_NAME||mi.CONTINUOUS_INTEGRATION||mi.RUN_ID||vc.name));function $Ae(e){return typeof e=="string"?!!mi[e]:"env"in e?mi[e.env]&&mi[e.env].includes(e.includes):"any"in e?e.any.some(function(r){return!!mi[r]}):Object.keys(e).every(function(r){return mi[r]===e[r]})}});var zy=C((exports,module)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var path$2=require("path"),os$1=require("os"),require$$0=require("fs"),require$$2=require("util"),fs$1=require("fs/promises"),crypto=require("crypto"),child_process=require("child_process");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var path__default=_interopDefaultLegacy(path$2),os__default=_interopDefaultLegacy(os$1),require$$0__default=_interopDefaultLegacy(require$$0),require$$2__default=_interopDefaultLegacy(require$$2),fs__default=_interopDefaultLegacy(fs$1),crypto__default=_interopDefaultLegacy(crypto),rnds8Pool=new Uint8Array(256),poolPtr=rnds8Pool.length;function rng(){return poolPtr>rnds8Pool.length-16&&(crypto__default.default.randomFillSync(rnds8Pool),poolPtr=0),rnds8Pool.slice(poolPtr,poolPtr+=16)}var byteToHex=[];for(let e=0;e<256;++e)byteToHex.push((e+256).toString(16).slice(1));function unsafeStringify(e,r=0){return byteToHex[e[r+0]]+byteToHex[e[r+1]]+byteToHex[e[r+2]]+byteToHex[e[r+3]]+"-"+byteToHex[e[r+4]]+byteToHex[e[r+5]]+"-"+byteToHex[e[r+6]]+byteToHex[e[r+7]]+"-"+byteToHex[e[r+8]]+byteToHex[e[r+9]]+"-"+byteToHex[e[r+10]]+byteToHex[e[r+11]]+byteToHex[e[r+12]]+byteToHex[e[r+13]]+byteToHex[e[r+14]]+byteToHex[e[r+15]]}var native={randomUUID:crypto__default.default.randomUUID};function v4(e,r,n){if(native.randomUUID&&!r&&!e)return native.randomUUID();e=e||{};let o=e.random||(e.rng||rng)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,r){n=n||0;for(let i=0;i<16;++i)r[n+i]=o[i];return r}return unsafeStringify(o)}var envPaths$1={exports:{}},path$1=path__default.default,os=os__default.default,homedir=os.homedir(),tmpdir=os.tmpdir(),{env}=process,macos=e=>{let r=path$1.join(homedir,"Library");return{data:path$1.join(r,"Application Support",e),config:path$1.join(r,"Preferences",e),cache:path$1.join(r,"Caches",e),log:path$1.join(r,"Logs",e),temp:path$1.join(tmpdir,e)}},windows=e=>{let r=env.APPDATA||path$1.join(homedir,"AppData","Roaming"),n=env.LOCALAPPDATA||path$1.join(homedir,"AppData","Local");return{data:path$1.join(n,e,"Data"),config:path$1.join(r,e,"Config"),cache:path$1.join(n,e,"Cache"),log:path$1.join(n,e,"Log"),temp:path$1.join(tmpdir,e)}},linux=e=>{let r=path$1.basename(homedir);return{data:path$1.join(env.XDG_DATA_HOME||path$1.join(homedir,".local","share"),e),config:path$1.join(env.XDG_CONFIG_HOME||path$1.join(homedir,".config"),e),cache:path$1.join(env.XDG_CACHE_HOME||path$1.join(homedir,".cache"),e),log:path$1.join(env.XDG_STATE_HOME||path$1.join(homedir,".local","state"),e),temp:path$1.join(tmpdir,r,e)}},envPaths=(e,r)=>{if(typeof e!="string")throw new TypeError(`Expected string, got ${typeof e}`);return r=Object.assign({suffix:"nodejs"},r),r.suffix&&(e+=`-${r.suffix}`),process.platform==="darwin"?macos(e):process.platform==="win32"?windows(e):linux(e)};envPaths$1.exports=envPaths;envPaths$1.exports.default=envPaths;var paths=envPaths$1.exports,makeDir$2={exports:{}},debug$1=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},debug_1=debug$1,SEMVER_SPEC_VERSION="2.0.0",MAX_LENGTH$1=256,MAX_SAFE_INTEGER$1=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16,MAX_SAFE_BUILD_LENGTH=MAX_LENGTH$1-6,RELEASE_TYPES=["major","premajor","minor","preminor","patch","prepatch","prerelease"],constants={MAX_LENGTH:MAX_LENGTH$1,MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER$1,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},re$1={exports:{}};(function(e,r){let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o}=constants,i=debug_1;r=e.exports={};let a=r.re=[],c=r.safeRe=[],u=r.src=[],l=r.t={},p=0,f="[a-zA-Z0-9-]",g=[["\\s",1],["\\d",n],[f,o]],x=E=>{for(let[S,_]of g)E=E.split(`${S}*`).join(`${S}{0,${_}}`).split(`${S}+`).join(`${S}{1,${_}}`);return E},b=(E,S,_)=>{let D=x(S),I=p++;i(E,I,S),l[E]=I,u[I]=S,a[I]=new RegExp(S,_?"g":void 0),c[I]=new RegExp(D,_?"g":void 0)};b("NUMERICIDENTIFIER","0|[1-9]\\d*"),b("NUMERICIDENTIFIERLOOSE","\\d+"),b("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),b("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),b("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),b("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`),b("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`),b("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),b("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),b("BUILDIDENTIFIER",`${f}+`),b("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),b("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),b("FULL",`^${u[l.FULLPLAIN]}$`),b("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),b("LOOSE",`^${u[l.LOOSEPLAIN]}$`),b("GTLT","((?:<|>)?=?)"),b("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),b("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),b("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),b("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),b("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),b("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),b("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),b("COERCERTL",u[l.COERCE],!0),b("LONETILDE","(?:~>?)"),b("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),r.tildeTrimReplace="$1~",b("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),b("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),b("LONECARET","(?:\\^)"),b("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),r.caretTrimReplace="$1^",b("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),b("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),b("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),b("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),b("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace="$1$2$3",b("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),b("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),b("STAR","(<|>)?=?\\s*\\*"),b("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),b("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(re$1,re$1.exports);var looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions$1=e=>e?typeof e!="object"?looseOption:e:emptyOpts,parseOptions_1=parseOptions$1,numeric=/^[0-9]+$/,compareIdentifiers$1=(e,r)=>{let n=numeric.test(e),o=numeric.test(r);return n&&o&&(e=+e,r=+r),e===r?0:n&&!o?-1:o&&!n?1:e<r?-1:1},rcompareIdentifiers=(e,r)=>compareIdentifiers$1(r,e),identifiers={compareIdentifiers:compareIdentifiers$1,rcompareIdentifiers},debug=debug_1,{MAX_LENGTH,MAX_SAFE_INTEGER}=constants,{safeRe:re,t}=re$1.exports,parseOptions=parseOptions_1,{compareIdentifiers}=identifiers,SemVer$1=class e{constructor(r,n){if(n=parseOptions(n),r instanceof e){if(r.loose===!!n.loose&&r.includePrerelease===!!n.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof r}".`);if(r.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",r,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let o=r.trim().match(n.loose?re[t.LOOSE]:re[t.FULL]);if(!o)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let a=+i;if(a>=0&&a<MAX_SAFE_INTEGER)return a}return i}):this.prerelease=[],this.build=o[5]?o[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(r){if(debug("SemVer.compare",this.version,this.options,r),!(r instanceof e)){if(typeof r=="string"&&r===this.version)return 0;r=new e(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof e||(r=new e(r,this.options)),compareIdentifiers(this.major,r.major)||compareIdentifiers(this.minor,r.minor)||compareIdentifiers(this.patch,r.patch)}comparePre(r){if(r instanceof e||(r=new e(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let n=0;do{let o=this.prerelease[n],i=r.prerelease[n];if(debug("prerelease compare",n,o,i),o===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(o===void 0)return-1;if(o===i)continue;return compareIdentifiers(o,i)}while(++n)}compareBuild(r){r instanceof e||(r=new e(r,this.options));let n=0;do{let o=this.build[n],i=r.build[n];if(debug("prerelease compare",n,o,i),o===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(o===void 0)return-1;if(o===i)continue;return compareIdentifiers(o,i)}while(++n)}inc(r,n,o){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,o);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,o);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,o),this.inc("pre",n,o);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,o),this.inc("pre",n,o);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(o)?1:0;if(!n&&o===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let a=this.prerelease.length;for(;--a>=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(n===this.prerelease.join(".")&&o===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(n){let a=[n,i];o===!1&&(a=[n]),compareIdentifiers(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${r}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}},semver=SemVer$1,SemVer=semver,compare$1=(e,r,n)=>new SemVer(e,n).compare(new SemVer(r,n)),compare_1=compare$1,compare=compare_1,gte=(e,r,n)=>compare(e,r,n)>=0,gte_1=gte,fs=require$$0__default.default,path=path__default.default,{promisify}=require$$2__default.default,semverGte=gte_1,useNativeRecursiveOption=semverGte(process.version,"10.12.0"),checkPath=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(path.parse(e).root,""))){let n=new Error(`Path contains invalid characters: ${e}`);throw n.code="EINVAL",n}},processOptions=e=>({...{mode:511,fs},...e}),permissionError=e=>{let r=new Error(`operation not permitted, mkdir '${e}'`);return r.code="EPERM",r.errno=-4048,r.path=e,r.syscall="mkdir",r},makeDir=async(e,r)=>{checkPath(e),r=processOptions(r);let n=promisify(r.fs.mkdir),o=promisify(r.fs.stat);if(useNativeRecursiveOption&&r.fs.mkdir===fs.mkdir){let a=path.resolve(e);return await n(a,{mode:r.mode,recursive:!0}),a}let i=async a=>{try{return await n(a,r.mode),a}catch(c){if(c.code==="EPERM")throw c;if(c.code==="ENOENT"){if(path.dirname(a)===a)throw permissionError(a);if(c.message.includes("null bytes"))throw c;return await i(path.dirname(a)),i(a)}try{if(!(await o(a)).isDirectory())throw new Error("The path is not a directory")}catch{throw c}return a}};return i(path.resolve(e))};makeDir$2.exports=makeDir;makeDir$2.exports.sync=(e,r)=>{if(checkPath(e),r=processOptions(r),useNativeRecursiveOption&&r.fs.mkdirSync===fs.mkdirSync){let o=path.resolve(e);return fs.mkdirSync(o,{mode:r.mode,recursive:!0}),o}let n=o=>{try{r.fs.mkdirSync(o,r.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(path.dirname(o)===o)throw permissionError(o);if(i.message.includes("null bytes"))throw i;return n(path.dirname(o)),n(o)}try{if(!r.fs.statSync(o).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}return o};return n(path.resolve(e))};var makeDir$1=makeDir$2.exports,PRISMA_SIGNATURE="signature";async function getSignature(e){let r=paths("checkpoint");e=e||path__default.default.join(r.cache,PRISMA_SIGNATURE);let n=await readSignature(e);return n||await createSignatureFile(e)}function isSignatureValid(e){return typeof e=="string"&&e.length===36}async function readSignature(e){try{let r=await fs__default.default.readFile(e,"utf8"),{signature:n}=JSON.parse(r);return isSignatureValid(n)?n:""}catch{return""}}async function createSignatureFile(e,r){let n={signature:r||v4()};return await makeDir$1(path__default.default.dirname(e)),await fs__default.default.writeFile(e,JSON.stringify(n,null," ")),n.signature}async function getInfo(){let e=paths("checkpoint").cache;require$$0.existsSync(e)||await fs__default.default.mkdir(e,{recursive:!0});let r=await fs__default.default.readdir(e),n=[];for(let o of r)if(o.includes("-"))try{let i=JSON.parse(await fs__default.default.readFile(path__default.default.join(e,o),{encoding:"utf-8"}));i.output&&!i.output.cli_path_hash&&(i.output.cli_path_hash=o.split("-")[1]),n.push(i)}catch(i){console.error(i)}return{signature:await getSignature(),cachePath:e,cacheItems:n}}var defaultSchema={last_reminder:0,cached_at:0,version:"",cli_path:"",output:{client_event_id:"",previous_client_event_id:"",product:"",cli_path_hash:"",local_timestamp:"",previous_version:"",current_version:"",current_release_date:0,current_download_url:"",current_changelog_url:"",package:"",release_tag:"",install_command:"",project_website:"",outdated:!1,alerts:[]}},Config=class e{static async new(r,n=defaultSchema){return await makeDir$1(path__default.default.dirname(r.cache_file)),new e(r,n)}constructor(r,n){this.state=r,this.defaultSchema=n}async checkCache(r){let n=r.now(),o=await this.all();return o?r.version!==o.version?{cache:o,stale:!0}:n-o.cached_at>r.cache_duration?{cache:o,stale:!0}:{cache:o,stale:!1}:{cache:void 0,stale:!0}}async set(r){let n=await this.all()||{},o=Object.assign(n,r);for(let i in this.defaultSchema)typeof o[i]>"u"&&(o[i]=this.defaultSchema[i]);await fs__default.default.writeFile(this.state.cache_file,JSON.stringify(o,null," "))}async all(){try{let r=await fs__default.default.readFile(this.state.cache_file,"utf8");return JSON.parse(r)}catch{return}}async get(r){let n=await this.all();if(!(typeof n>"u"))return n[r]}async reset(){await fs__default.default.writeFile(this.state.cache_file,JSON.stringify(this.defaultSchema,null," "))}async delete(){try{await fs__default.default.unlink(this.state.cache_file);return}catch{return}}},s=1e3,m=s*60,h=m*60,d=h*24,w=d*7,y=d*365.25,ms=function(e,r){r=r||{};var n=typeof e;if(n==="string"&&e.length>0)return parse(e);if(n==="number"&&isFinite(e))return r.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){if(e=String(e),!(e.length>100)){var r=/^(-?(?:\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(r){var n=parseFloat(r[1]),o=(r[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return n*y;case"weeks":case"week":case"w":return n*w;case"days":case"day":case"d":return n*d;case"hours":case"hour":case"hrs":case"hr":case"h":return n*h;case"minutes":case"minute":case"mins":case"min":case"m":return n*m;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function fmtShort(e){var r=Math.abs(e);return r>=d?Math.round(e/d)+"d":r>=h?Math.round(e/h)+"h":r>=m?Math.round(e/m)+"m":r>=s?Math.round(e/s)+"s":e+"ms"}function fmtLong(e){var r=Math.abs(e);return r>=d?plural(e,r,d,"day"):r>=h?plural(e,r,h,"hour"):r>=m?plural(e,r,m,"minute"):r>=s?plural(e,r,s,"second"):e+" ms"}function plural(e,r,n,o){var i=r>=n*1.5;return Math.round(e/n)+" "+o+(i?"s":"")}var TELEMETRY_ENDPOINT_URL_PRODUCTION="https://checkpoint.prisma.io",childPath=path__default.default.join(eval("__dirname"),"child");async function check(e){let r=getCacheFile(e.product,e.cli_path_hash||"default"),n=BAe(),o=e.endpoint||process.env.PRISMA_TELEMETRY_ENDPOINT||TELEMETRY_ENDPOINT_URL_PRODUCTION,i={product:e.product,version:e.version,cli_install_type:e.cli_install_type||"",information:e.information||"",local_timestamp:e.local_timestamp||rfc3339(new Date),project_hash:e.project_hash,cli_path:e.cli_path||"",cli_path_hash:e.cli_path_hash||"",endpoint:o,disable:typeof e.disable>"u"?!1:e.disable,arch:e.arch||os__default.default.arch(),os:e.os||os__default.default.platform(),node_version:e.node_version||process.version,ci:typeof e.ci<"u"?e.ci:n.isCI,ci_name:typeof e.ci_name<"u"?e.ci_name||"":n.name||"",command:e.command||"",schema_providers:e.schema_providers||[],schema_preview_features:e.schema_preview_features||[],schema_generators_providers:e.schema_generators_providers||[],cache_file:e.cache_file||r,cache_duration:typeof e.cache_duration>"u"?ms("12h"):e.cache_duration,remind_duration:typeof e.remind_duration>"u"?ms("48h"):e.remind_duration,force:typeof e.force>"u"?!1:e.force,timeout:getTimeout(e.timeout),unref:typeof e.unref>"u"?!0:e.unref,child_path:e.child_path||childPath,now:()=>Date.now(),client_event_id:e.client_event_id||"",previous_client_event_id:e.previous_client_event_id||"",check_if_update_available:!1};if((process.env.CHECKPOINT_DISABLE||i.disable)&&!i.force)return{status:"disabled"};let a=await Config.new(i),c=await a.checkCache(i);i.check_if_update_available=c.stale===!0||!c.cache;let u=spawn(i);if(i.unref&&(u.unref(),u.disconnect()),c.stale===!0||!c.cache)return{status:"waiting",data:u};for(let p of Object.keys(i))i[p]&&await a.set({[p]:i[p]});return i.now()-c.cache.last_reminder<i.remind_duration?{status:"reminded",data:c.cache.output}:(await a.set({last_reminder:i.now()}),{status:"ok",data:c.cache.output})}function getCacheFile(e,r){let n=paths("checkpoint");return path__default.default.join(n.cache,`${e}-${r}`)}function getTimeout(e){if(typeof e<"u")return e;let r=process.env.CHECKPOINT_TIMEOUT;if(typeof r>"u")return 5e3;let n=parseInt(r,10);return isNaN(n)?5e3:n}function getForkOpts(e){return e.unref===!0?{detached:!0,stdio:process.env.CHECKPOINT_DEBUG_STDOUT?"inherit":"ignore",env:process.env}:{detached:!1,stdio:"pipe",env:process.env}}function spawn(e){return child_process.fork(childPath,[JSON.stringify(e)],getForkOpts(e))}function rfc3339(e){function r(o){return o<10?"0"+o:o}function n(o){let i;return o===0?"Z":(i=o>0?"-":"+",o=Math.abs(o),i+r(Math.floor(o/60))+":"+r(o%60))}return e.getFullYear()+"-"+r(e.getMonth()+1)+"-"+r(e.getDate())+"T"+r(e.getHours())+":"+r(e.getMinutes())+":"+r(e.getSeconds())+n(e.getTimezoneOffset())}exports.check=check;exports.getInfo=getInfo;exports.getSignature=getSignature});var tCe=C((Owr,yd)=>{"use strict";var Jo=require("fs"),pV=require("os"),Sc=require("path"),UAe=require("crypto"),Up={fs:Jo.constants,os:pV.constants},jAe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",GAe=/XXXXXX/,Gwt=3,HAe=(Up.O_CREAT||Up.fs.O_CREAT)|(Up.O_EXCL||Up.fs.O_EXCL)|(Up.O_RDWR||Up.fs.O_RDWR),Hwt=pV.platform()==="win32",Wwt=Up.EBADF||Up.os.errno.EBADF,Vwt=Up.ENOENT||Up.os.errno.ENOENT,WAe=448,VAe=384,zwt="exit",Wv=[],zAe=Jo.rmdirSync.bind(Jo),KAe=!1;function Kwt(e,r){return Jo.rm(e,{recursive:!0},r)}function JAe(e){return Jo.rmSync(e,{recursive:!0})}function fV(e,r){let n=Vv(e,r),o=n[0],i=n[1];try{QAe(o)}catch(c){return i(c)}let a=o.tries;(function c(){try{let u=ZAe(o);Jo.stat(u,function(l){if(!l)return a-- >0?c():i(new Error("Could not get a unique tmp filename, max tries reached "+u));i(null,u)})}catch(u){i(u)}})()}function dV(e){let r=Vv(e),n=r[0];QAe(n);let o=n.tries;do{let i=ZAe(n);try{Jo.statSync(i)}catch{return i}}while(o-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function Jwt(e,r){let n=Vv(e,r),o=n[0],i=n[1];fV(o,function(c,u){if(c)return i(c);Jo.open(u,HAe,o.mode||VAe,function(p,f){if(p)return i(p);if(o.discardDescriptor)return Jo.close(f,function(x){return i(x,u,void 0,cV(u,-1,o,!1))});{let g=o.discardDescriptor||o.detachDescriptor;i(null,u,f,cV(u,g?-1:f,o,!1))}})})}function Ywt(e){let r=Vv(e),n=r[0],o=n.discardDescriptor||n.detachDescriptor,i=dV(n);var a=Jo.openSync(i,HAe,n.mode||VAe);return n.discardDescriptor&&(Jo.closeSync(a),a=void 0),{name:i,fd:a,removeCallback:cV(i,o?-1:a,n,!0)}}function Zwt(e,r){let n=Vv(e,r),o=n[0],i=n[1];fV(o,function(c,u){if(c)return i(c);Jo.mkdir(u,o.mode||WAe,function(p){if(p)return i(p);i(null,u,YAe(u,o,!1))})})}function Qwt(e){let r=Vv(e),n=r[0],o=dV(n);return Jo.mkdirSync(o,n.mode||WAe),{name:o,removeCallback:YAe(o,n,!0)}}function Xwt(e,r){let n=function(o){if(o&&!lV(o))return r(o);r()};0<=e[0]?Jo.close(e[0],function(){Jo.unlink(e[1],n)}):Jo.unlink(e[1],n)}function e_t(e){let r=null;try{0<=e[0]&&Jo.closeSync(e[0])}catch(n){if(!n_t(n)&&!lV(n))throw n}finally{try{Jo.unlinkSync(e[1])}catch(n){lV(n)||(r=n)}}if(r!==null)throw r}function cV(e,r,n,o){let i=Nk(e_t,[r,e],o),a=Nk(Xwt,[r,e],o,i);return n.keep||Wv.unshift(i),o?i:a}function YAe(e,r,n){let o=r.unsafeCleanup?Kwt:Jo.rmdir.bind(Jo),i=r.unsafeCleanup?JAe:zAe,a=Nk(i,e,n),c=Nk(o,e,n,a);return r.keep||Wv.unshift(a),n?a:c}function Nk(e,r,n,o){let i=!1;return function a(c){if(!i){let u=o||a,l=Wv.indexOf(u);return l>=0&&Wv.splice(l,1),i=!0,n||e===zAe||e===JAe?e(r):e(r,c||function(){})}}}function t_t(){if(KAe)for(;Wv.length;)try{Wv[0]()}catch{}}function qAe(e){let r=[],n=null;try{n=UAe.randomBytes(e)}catch{n=UAe.pseudoRandomBytes(e)}for(var o=0;o<e;o++)r.push(jAe[n[o]%jAe.length]);return r.join("")}function r_t(e){return e===null||Pa(e)||!e.trim()}function Pa(e){return typeof e>"u"}function Vv(e,r){if(typeof e=="function")return[{},e];if(Pa(e))return[{},r];let n={};for(let o of Object.getOwnPropertyNames(e))n[o]=e[o];return[n,r]}function ZAe(e){let r=e.tmpdir;if(!Pa(e.name))return Sc.join(r,e.dir,e.name);if(!Pa(e.template))return Sc.join(r,e.dir,e.template).replace(GAe,qAe(6));let n=[e.prefix?e.prefix:"tmp","-",process.pid,"-",qAe(12),e.postfix?"-"+e.postfix:""].join("");return Sc.join(r,e.dir,n)}function QAe(e){e.tmpdir=eCe(e);let r=e.tmpdir;if(Pa(e.name)||aV(e.name,"name",r),Pa(e.dir)||aV(e.dir,"dir",r),!Pa(e.template)&&(aV(e.template,"template",r),!e.template.match(GAe)))throw new Error(`Invalid template, found "${e.template}".`);if(!Pa(e.tries)&&isNaN(e.tries)||e.tries<0)throw new Error(`Invalid tries, found "${e.tries}".`);e.tries=Pa(e.name)?e.tries||Gwt:1,e.keep=!!e.keep,e.detachDescriptor=!!e.detachDescriptor,e.discardDescriptor=!!e.discardDescriptor,e.unsafeCleanup=!!e.unsafeCleanup,e.dir=Pa(e.dir)?"":Sc.relative(r,uV(e.dir,r)),e.template=Pa(e.template)?void 0:Sc.relative(r,uV(e.template,r)),e.template=r_t(e.template)?void 0:Sc.relative(e.dir,e.template),e.name=Pa(e.name)?void 0:e.name,e.prefix=Pa(e.prefix)?"":e.prefix,e.postfix=Pa(e.postfix)?"":e.postfix}function uV(e,r){return e.startsWith(r)?Sc.resolve(e):Sc.resolve(Sc.join(r,e))}function aV(e,r,n){if(r==="name"){if(Sc.isAbsolute(e))throw new Error(`${r} option must not contain an absolute path, found "${e}".`);let o=Sc.basename(e);if(o===".."||o==="."||o!==e)throw new Error(`${r} option must not contain a path, found "${e}".`)}else{if(Sc.isAbsolute(e)&&!e.startsWith(n))throw new Error(`${r} option must be relative to "${n}", found "${e}".`);let o=uV(e,n);if(!o.startsWith(n))throw new Error(`${r} option must be relative to "${n}", found "${o}".`)}}function n_t(e){return XAe(e,-Wwt,"EBADF")}function lV(e){return XAe(e,-Vwt,"ENOENT")}function XAe(e,r,n){return Hwt?e.code===n:e.code===n&&e.errno===r}function o_t(){KAe=!0}function eCe(e){return Sc.resolve(e&&e.tmpdir||pV.tmpdir())}process.addListener(zwt,t_t);Object.defineProperty(yd.exports,"tmpdir",{enumerable:!0,configurable:!1,get:function(){return eCe()}});yd.exports.dir=Zwt;yd.exports.dirSync=Qwt;yd.exports.file=Jwt;yd.exports.fileSync=Ywt;yd.exports.tmpName=fV;yd.exports.tmpNameSync=dV;yd.exports.setGracefulCleanup=o_t});var ho=C((jwr,lCe)=>{"use strict";var{FORCE_COLOR:s_t,NODE_DISABLE_COLORS:a_t,TERM:c_t}=process.env,Zr={enabled:!a_t&&c_t!=="dumb"&&s_t!=="0",reset:Tn(0,0),bold:Tn(1,22),dim:Tn(2,22),italic:Tn(3,23),underline:Tn(4,24),inverse:Tn(7,27),hidden:Tn(8,28),strikethrough:Tn(9,29),black:Tn(30,39),red:Tn(31,39),green:Tn(32,39),yellow:Tn(33,39),blue:Tn(34,39),magenta:Tn(35,39),cyan:Tn(36,39),white:Tn(37,39),gray:Tn(90,39),grey:Tn(90,39),bgBlack:Tn(40,49),bgRed:Tn(41,49),bgGreen:Tn(42,49),bgYellow:Tn(43,49),bgBlue:Tn(44,49),bgMagenta:Tn(45,49),bgCyan:Tn(46,49),bgWhite:Tn(47,49)};function uCe(e,r){let n=0,o,i="",a="";for(;n<e.length;n++)o=e[n],i+=o.open,a+=o.close,r.includes(o.close)&&(r=r.replace(o.rgx,o.close+o.open));return i+r+a}function u_t(e,r){let n={has:e,keys:r};return n.reset=Zr.reset.bind(n),n.bold=Zr.bold.bind(n),n.dim=Zr.dim.bind(n),n.italic=Zr.italic.bind(n),n.underline=Zr.underline.bind(n),n.inverse=Zr.inverse.bind(n),n.hidden=Zr.hidden.bind(n),n.strikethrough=Zr.strikethrough.bind(n),n.black=Zr.black.bind(n),n.red=Zr.red.bind(n),n.green=Zr.green.bind(n),n.yellow=Zr.yellow.bind(n),n.blue=Zr.blue.bind(n),n.magenta=Zr.magenta.bind(n),n.cyan=Zr.cyan.bind(n),n.white=Zr.white.bind(n),n.gray=Zr.gray.bind(n),n.grey=Zr.grey.bind(n),n.bgBlack=Zr.bgBlack.bind(n),n.bgRed=Zr.bgRed.bind(n),n.bgGreen=Zr.bgGreen.bind(n),n.bgYellow=Zr.bgYellow.bind(n),n.bgBlue=Zr.bgBlue.bind(n),n.bgMagenta=Zr.bgMagenta.bind(n),n.bgCyan=Zr.bgCyan.bind(n),n.bgWhite=Zr.bgWhite.bind(n),n}function Tn(e,r){let n={open:`\x1B[${e}m`,close:`\x1B[${r}m`,rgx:new RegExp(`\\x1b\\[${r}m`,"g")};return function(o){return this!==void 0&&this.has!==void 0?(this.has.includes(e)||(this.has.push(e),this.keys.push(n)),o===void 0?this:Zr.enabled?uCe(this.keys,o+""):o+""):o===void 0?u_t([e],[n]):Zr.enabled?uCe([n],o+""):o+""}}lCe.exports=Zr});var fCe=C((qwr,pCe)=>{"use strict";pCe.exports=(e,r)=>{if(!(e.meta&&e.name!=="escape")){if(e.ctrl){if(e.name==="a")return"first";if(e.name==="c"||e.name==="d")return"abort";if(e.name==="e")return"last";if(e.name==="g")return"reset"}if(r){if(e.name==="j")return"down";if(e.name==="k")return"up"}return e.name==="return"||e.name==="enter"?"submit":e.name==="backspace"?"delete":e.name==="delete"?"deleteForward":e.name==="abort"?"abort":e.name==="escape"?"exit":e.name==="tab"?"next":e.name==="pagedown"?"nextPage":e.name==="pageup"?"prevPage":e.name==="home"?"home":e.name==="end"?"end":e.name==="up"?"up":e.name==="down"?"down":e.name==="right"?"right":e.name==="left"?"left":!1}}});var Lk=C((Gwr,dCe)=>{"use strict";dCe.exports=e=>{let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),n=new RegExp(r,"g");return typeof e=="string"?e.replace(n,""):e}});var yo=C((Hwr,mCe)=>{"use strict";var mV="\x1B",go=`${mV}[`,l_t="\x07",hV={to(e,r){return r?`${go}${r+1};${e+1}H`:`${go}${e+1}G`},move(e,r){let n="";return e<0?n+=`${go}${-e}D`:e>0&&(n+=`${go}${e}C`),r<0?n+=`${go}${-r}A`:r>0&&(n+=`${go}${r}B`),n},up:(e=1)=>`${go}${e}A`,down:(e=1)=>`${go}${e}B`,forward:(e=1)=>`${go}${e}C`,backward:(e=1)=>`${go}${e}D`,nextLine:(e=1)=>`${go}E`.repeat(e),prevLine:(e=1)=>`${go}F`.repeat(e),left:`${go}G`,hide:`${go}?25l`,show:`${go}?25h`,save:`${mV}7`,restore:`${mV}8`},p_t={up:(e=1)=>`${go}S`.repeat(e),down:(e=1)=>`${go}T`.repeat(e)},f_t={screen:`${go}2J`,up:(e=1)=>`${go}1J`.repeat(e),down:(e=1)=>`${go}J`.repeat(e),line:`${go}2K`,lineEnd:`${go}K`,lineStart:`${go}1K`,lines(e){let r="";for(let n=0;n<e;n++)r+=this.line+(n<e-1?hV.up():"");return e&&(r+=hV.left),r}};mCe.exports={cursor:hV,scroll:p_t,erase:f_t,beep:l_t}});var bCe=C((Wwr,xCe)=>{"use strict";function d_t(e,r){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=m_t(e))||r&&e&&typeof e.length=="number"){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(p){throw p},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
48
48
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,c=!1,u;return{s:function(){n=n.call(e)},n:function(){var p=n.next();return a=p.done,p},e:function(p){c=!0,u=p},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(c)throw u}}}}function m_t(e,r){if(e){if(typeof e=="string")return hCe(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hCe(e,r)}}function hCe(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,o=new Array(r);n<r;n++)o[n]=e[n];return o}var h_t=Lk(),yCe=yo(),gCe=yCe.erase,g_t=yCe.cursor,y_t=e=>[...h_t(e)].length;xCe.exports=function(e,r){if(!r)return gCe.line+g_t.to(0);let n=0,o=e.split(/\r?\n/);var i=d_t(o),a;try{for(i.s();!(a=i.n()).done;){let c=a.value;n+=1+Math.floor(Math.max(y_t(c)-1,0)/r)}}catch(c){i.e(c)}finally{i.f()}return gCe.lines(n)}});var gV=C((Vwr,ECe)=>{"use strict";var OD={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},x_t={arrowUp:OD.arrowUp,arrowDown:OD.arrowDown,arrowLeft:OD.arrowLeft,arrowRight:OD.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},b_t=process.platform==="win32"?x_t:OD;ECe.exports=b_t});var SCe=C((zwr,vCe)=>{"use strict";var Kv=ho(),Ky=gV(),yV=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"\u{1F603}".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}}),E_t=e=>yV[e]||yV.default,RD=Object.freeze({aborted:Kv.red(Ky.cross),done:Kv.green(Ky.tick),exited:Kv.yellow(Ky.cross),default:Kv.cyan("?")}),v_t=(e,r,n)=>r?RD.aborted:n?RD.exited:e?RD.done:RD.default,S_t=e=>Kv.gray(e?Ky.ellipsis:Ky.pointerSmall),w_t=(e,r)=>Kv.gray(e?r?Ky.pointerSmall:"+":Ky.line);vCe.exports={styles:yV,render:E_t,symbols:RD,symbol:v_t,delimiter:S_t,item:w_t}});var _Ce=C((Kwr,wCe)=>{"use strict";var __t=Lk();wCe.exports=function(e,r){let n=String(__t(e)||"").split(/\r?\n/);return r?n.map(o=>Math.ceil(o.length/r)).reduce((o,i)=>o+i):n.length}});var DCe=C((Jwr,TCe)=>{"use strict";TCe.exports=(e,r={})=>{let n=Number.isSafeInteger(parseInt(r.margin))?new Array(parseInt(r.margin)).fill(" ").join(""):r.margin||"",o=r.width;return(e||"").split(/\r?\n/g).map(i=>i.split(/\s+/g).reduce((a,c)=>(c.length+n.length>=o||a[a.length-1].length+c.length+1<o?a[a.length-1]+=` ${c}`:a.push(`${n}${c}`),a),[n]).join(`
|
|
49
49
|
`)).join(`
|
|
50
50
|
`)}});var CCe=C((Ywr,ACe)=>{"use strict";ACe.exports=(e,r,n)=>{n=n||r;let o=Math.min(r-n,e-Math.floor(n/2));o<0&&(o=0);let i=Math.min(o+n,r);return{startIndex:o,endIndex:i}}});var xl=C((Zwr,PCe)=>{"use strict";PCe.exports={action:fCe(),clear:bCe(),style:SCe(),strip:Lk(),figures:gV(),lines:_Ce(),wrap:DCe(),entriesToDisplay:CCe()}});var xd=C((Qwr,RCe)=>{"use strict";var ICe=require("readline"),T_t=xl(),D_t=T_t.action,A_t=require("events"),OCe=yo(),C_t=OCe.beep,P_t=OCe.cursor,I_t=ho(),xV=class extends A_t{constructor(r={}){super(),this.firstRender=!0,this.in=r.stdin||process.stdin,this.out=r.stdout||process.stdout,this.onRender=(r.onRender||(()=>{})).bind(this);let n=ICe.createInterface({input:this.in,escapeCodeTimeout:50});ICe.emitKeypressEvents(this.in,n),this.in.isTTY&&this.in.setRawMode(!0);let o=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,i=(a,c)=>{let u=D_t(c,o);u===!1?this._&&this._(a,c):typeof this[u]=="function"?this[u](c):this.bell()};this.close=()=>{this.out.write(P_t.show),this.in.removeListener("keypress",i),this.in.isTTY&&this.in.setRawMode(!1),n.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",i)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(C_t)}render(){this.onRender(I_t),this.firstRender&&(this.firstRender=!1)}};RCe.exports=xV});var $Ce=C((Xwr,NCe)=>{"use strict";function FCe(e,r,n,o,i,a,c){try{var u=e[a](c),l=u.value}catch(p){n(p);return}u.done?r(l):Promise.resolve(l).then(o,i)}function MCe(e){return function(){var r=this,n=arguments;return new Promise(function(o,i){var a=e.apply(r,n);function c(l){FCe(a,o,i,c,u,"next",l)}function u(l){FCe(a,o,i,c,u,"throw",l)}c(void 0)})}}var Bk=ho(),O_t=xd(),kCe=yo(),R_t=kCe.erase,FD=kCe.cursor,Uk=xl(),bV=Uk.style,EV=Uk.clear,F_t=Uk.lines,M_t=Uk.figures,vV=class extends O_t{constructor(r={}){super(r),this.transform=bV.render(r.style),this.scale=this.transform.scale,this.msg=r.message,this.initial=r.initial||"",this.validator=r.validate||(()=>!0),this.value="",this.errorMsg=r.error||"Please Enter A Valid Value",this.cursor=+!!this.initial,this.cursorOffset=0,this.clear=EV("",this.out.columns),this.render()}set value(r){!r&&this.initial?(this.placeholder=!0,this.rendered=Bk.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(r)),this._value=r,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=+!!this.initial,this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(`
|
|
@@ -158,7 +158,7 @@ Filtered results for: ${this.inputValue?this.inputValue:_d.gray("Enter something
|
|
|
158
158
|
`),a=a.replace(/\\r/g,"\r")),r[i]=a}return r}function O8t(e){e=e||{};let r=zBe(e);e.path=r;let n=xi.configDotenv(e);if(!n.parsed){let c=new Error(`MISSING_DATA: Cannot parse ${r} for an unknown reason`);throw c.code="MISSING_DATA",c}let o=VBe(e).split(","),i=o.length,a;for(let c=0;c<i;c++)try{let u=o[c].trim(),l=F8t(n,u);a=xi.decrypt(l.ciphertext,l.key);break}catch(u){if(c+1>=i)throw u}return xi.parse(a)}function R8t(e){console.error(`[dotenv@${ree}][WARN] ${e}`)}function AC(e){console.log(`[dotenv@${ree}][DEBUG] ${e}`)}function WBe(e){console.log(`[dotenv@${ree}] ${e}`)}function VBe(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function F8t(e,r){let n;try{n=new URL(r)}catch(u){if(u.code==="ERR_INVALID_URL"){let l=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw l.code="INVALID_DOTENV_KEY",l}throw u}let o=n.password;if(!o){let u=new Error("INVALID_DOTENV_KEY: Missing key part");throw u.code="INVALID_DOTENV_KEY",u}let i=n.searchParams.get("environment");if(!i){let u=new Error("INVALID_DOTENV_KEY: Missing environment part");throw u.code="INVALID_DOTENV_KEY",u}let a=`DOTENV_VAULT_${i.toUpperCase()}`,c=e.parsed[a];if(!c){let u=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${a} in your .env.vault file.`);throw u.code="NOT_FOUND_DOTENV_ENVIRONMENT",u}return{ciphertext:c,key:o}}function zBe(e){let r=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let n of e.path)tee.existsSync(n)&&(r=n.endsWith(".vault")?n:`${n}.vault`);else r=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else r=DL.resolve(process.cwd(),".env.vault");return tee.existsSync(r)?r:null}function HBe(e){return e[0]==="~"?DL.join(w8t.homedir(),e.slice(1)):e}function M8t(e){let r=mw(process.env.DOTENV_CONFIG_DEBUG||e&&e.debug),n=mw(process.env.DOTENV_CONFIG_QUIET||e&&e.quiet);(r||!n)&&WBe("Loading env from encrypted .env.vault");let o=xi._parseVault(e),i=process.env;return e&&e.processEnv!=null&&(i=e.processEnv),xi.populate(i,o,e),{parsed:o}}function k8t(e){let r=DL.resolve(process.cwd(),".env"),n="utf8",o=process.env;e&&e.processEnv!=null&&(o=e.processEnv);let i=mw(o.DOTENV_CONFIG_DEBUG||e&&e.debug),a=mw(o.DOTENV_CONFIG_QUIET||e&&e.quiet);e&&e.encoding?n=e.encoding:i&&AC("No encoding is specified. UTF-8 is used by default");let c=[r];if(e&&e.path)if(!Array.isArray(e.path))c=[HBe(e.path)];else{c=[];for(let f of e.path)c.push(HBe(f))}let u,l={};for(let f of c)try{let g=xi.parse(tee.readFileSync(f,{encoding:n}));xi.populate(l,g,e)}catch(g){i&&AC(`Failed to load ${f} ${g.message}`),u=g}let p=xi.populate(o,l,e);if(i=mw(o.DOTENV_CONFIG_DEBUG||i),a=mw(o.DOTENV_CONFIG_QUIET||a),i||!a){let f=Object.keys(p).length,g=[];for(let x of c)try{let b=DL.relative(process.cwd(),x);g.push(b)}catch(b){i&&AC(`Failed to load ${x} ${b.message}`),u=b}WBe(`injecting env (${f}) from ${g.join(",")} ${C8t(`-- tip: ${D8t()}`)}`)}return u?{parsed:l,error:u}:{parsed:l}}function N8t(e){if(VBe(e).length===0)return xi.configDotenv(e);let r=zBe(e);return r?xi._configVault(e):(R8t(`You set DOTENV_KEY but you are missing a .env.vault file at ${r}. Did you forget to build it?`),xi.configDotenv(e))}function $8t(e,r){let n=Buffer.from(r.slice(-64),"hex"),o=Buffer.from(e,"base64"),i=o.subarray(0,12),a=o.subarray(-16);o=o.subarray(12,-16);try{let c=_8t.createDecipheriv("aes-256-gcm",n,i);return c.setAuthTag(a),`${c.update(o)}${c.final()}`}catch(c){let u=c instanceof RangeError,l=c.message==="Invalid key length",p=c.message==="Unsupported state or unable to authenticate data";if(u||l){let f=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw f.code="INVALID_DOTENV_KEY",f}else if(p){let f=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw f.code="DECRYPTION_FAILED",f}else throw c}}function L8t(e,r,n={}){let o=!!(n&&n.debug),i=!!(n&&n.override),a={};if(typeof r!="object"){let c=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw c.code="OBJECT_REQUIRED",c}for(let c of Object.keys(r))Object.prototype.hasOwnProperty.call(e,c)?(i===!0&&(e[c]=r[c],a[c]=r[c]),o&&AC(i===!0?`"${c}" is already defined and WAS overwritten`:`"${c}" is already defined and was NOT overwritten`)):(e[c]=r[c],a[c]=r[c]);return a}var xi={configDotenv:k8t,_configVault:M8t,_parseVault:O8t,config:N8t,decrypt:$8t,parse:I8t,populate:L8t};tm.exports.configDotenv=xi.configDotenv;tm.exports._configVault=xi._configVault;tm.exports._parseVault=xi._parseVault;tm.exports.config=xi.config;tm.exports.decrypt=xi.decrypt;tm.exports.parse=xi.parse;tm.exports.populate=xi.populate;tm.exports=xi});var EYe=C((Dyn,bYe)=>{"use strict";bYe.exports=e=>{let r=typeof e=="string"?`
|
|
159
159
|
`:10,n=typeof e=="string"?"\r":13;return e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e[e.length-1]===n&&(e=e.slice(0,e.length-1)),e}});var wYe=C((Ayn,cI)=>{"use strict";var aI=require("path"),vYe=s9(),SYe=e=>{e={cwd:process.cwd(),path:process.env[vYe()],execPath:process.execPath,...e};let r,n=aI.resolve(e.cwd),o=[];for(;r!==n;)o.push(aI.join(n,"node_modules/.bin")),r=n,n=aI.resolve(n,"..");let i=aI.resolve(e.cwd,e.execPath,"..");return o.push(i),o.concat(e.path).join(aI.delimiter)};cI.exports=SYe;cI.exports.default=SYe;cI.exports.env=e=>{e={env:process.env,...e};let r={...e.env},n=vYe({env:r});return e.path=r[n],r[n]=cI.exports(e),r}});var TYe=C((Cyn,pue)=>{"use strict";var _Ye=(e,r)=>{for(let n of Reflect.ownKeys(r))Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n));return e};pue.exports=_Ye;pue.exports.default=_Ye});var AYe=C((Pyn,V8)=>{"use strict";var oZt=TYe(),W8=new WeakMap,DYe=(e,r={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let n,o=0,i=e.displayName||e.name||"<anonymous>",a=function(...c){if(W8.set(a,++o),o===1)n=e.apply(this,c),e=null;else if(r.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return n};return oZt(a,e),W8.set(a,o),a};V8.exports=DYe;V8.exports.default=DYe;V8.exports.callCount=e=>{if(!W8.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return W8.get(e)}});var CYe=C(z8=>{"use strict";Object.defineProperty(z8,"__esModule",{value:!0});z8.SIGNALS=void 0;var iZt=[{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:!0},{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:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{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"}];z8.SIGNALS=iZt});var fue=C(Q_=>{"use strict";Object.defineProperty(Q_,"__esModule",{value:!0});Q_.SIGRTMAX=Q_.getRealtimeSignals=void 0;var sZt=function(){let e=IYe-PYe+1;return Array.from({length:e},aZt)};Q_.getRealtimeSignals=sZt;var aZt=function(e,r){return{name:`SIGRT${r+1}`,number:PYe+r,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},PYe=34,IYe=64;Q_.SIGRTMAX=IYe});var OYe=C(K8=>{"use strict";Object.defineProperty(K8,"__esModule",{value:!0});K8.getSignals=void 0;var cZt=require("os"),uZt=CYe(),lZt=fue(),pZt=function(){let e=(0,lZt.getRealtimeSignals)();return[...uZt.SIGNALS,...e].map(fZt)};K8.getSignals=pZt;var fZt=function({name:e,number:r,description:n,action:o,forced:i=!1,standard:a}){let{signals:{[e]:c}}=cZt.constants,u=c!==void 0;return{name:e,number:u?c:r,description:n,supported:u,action:o,forced:i,standard:a}}});var FYe=C(X_=>{"use strict";Object.defineProperty(X_,"__esModule",{value:!0});X_.signalsByNumber=X_.signalsByName=void 0;var dZt=require("os"),RYe=OYe(),mZt=fue(),hZt=function(){return(0,RYe.getSignals)().reduce(gZt,{})},gZt=function(e,{name:r,number:n,description:o,supported:i,action:a,forced:c,standard:u}){return{...e,[r]:{name:r,number:n,description:o,supported:i,action:a,forced:c,standard:u}}},yZt=hZt();X_.signalsByName=yZt;var xZt=function(){let e=(0,RYe.getSignals)(),r=mZt.SIGRTMAX+1,n=Array.from({length:r},(o,i)=>bZt(i,e));return Object.assign({},...n)},bZt=function(e,r){let n=EZt(e,r);if(n===void 0)return{};let{name:o,description:i,supported:a,action:c,forced:u,standard:l}=n;return{[e]:{name:o,number:e,description:i,supported:a,action:c,forced:u,standard:l}}},EZt=function(e,r){let n=r.find(({name:o})=>dZt.constants.signals[o]===e);return n!==void 0?n:r.find(o=>o.number===e)},vZt=xZt();X_.signalsByNumber=vZt});var kYe=C((Myn,MYe)=>{"use strict";var{signalsByName:SZt}=FYe(),wZt=({timedOut:e,timeout:r,errorCode:n,signal:o,signalDescription:i,exitCode:a,isCanceled:c})=>e?`timed out after ${r} milliseconds`:c?"was canceled":n!==void 0?`failed with ${n}`:o!==void 0?`was killed with ${o} (${i})`:a!==void 0?`failed with exit code ${a}`:"failed",_Zt=({stdout:e,stderr:r,all:n,error:o,signal:i,exitCode:a,command:c,escapedCommand:u,timedOut:l,isCanceled:p,killed:f,parsed:{options:{timeout:g}}})=>{a=a===null?void 0:a,i=i===null?void 0:i;let x=i===void 0?void 0:SZt[i].description,b=o&&o.code,S=`Command ${wZt({timedOut:l,timeout:g,errorCode:b,signal:i,signalDescription:x,exitCode:a,isCanceled:p})}: ${c}`,_=Object.prototype.toString.call(o)==="[object Error]",D=_?`${S}
|
|
160
160
|
${o.message}`:S,I=[D,r,e].filter(Boolean).join(`
|
|
161
|
-
`);return _?(o.originalMessage=o.message,o.message=I):o=new Error(I),o.shortMessage=D,o.command=c,o.escapedCommand=u,o.exitCode=a,o.signal=i,o.signalDescription=x,o.stdout=e,o.stderr=r,n!==void 0&&(o.all=n),"bufferedData"in o&&delete o.bufferedData,o.failed=!0,o.timedOut=!!l,o.isCanceled=p,o.killed=f&&!l,o};MYe.exports=_Zt});var $Ye=C((kyn,due)=>{"use strict";var J8=["stdin","stdout","stderr"],TZt=e=>J8.some(r=>e[r]!==void 0),NYe=e=>{if(!e)return;let{stdio:r}=e;if(r===void 0)return J8.map(o=>e[o]);if(TZt(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${J8.map(o=>`\`${o}\``).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}\``);let n=Math.max(r.length,J8.length);return Array.from({length:n},(o,i)=>r[i])};due.exports=NYe;due.exports.node=e=>{let r=NYe(e);return r==="ipc"?"ipc":r===void 0||typeof r=="string"?[r,r,r,"ipc"]:r.includes("ipc")?r:[...r,"ipc"]}});var LYe=C((Nyn,Y8)=>{"use strict";Y8.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Y8.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Y8.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var GYe=C(($yn,r1)=>{"use strict";var uo=global.process,oE=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};oE(uo)?(BYe=require("assert"),e1=LYe(),UYe=/^win/i.test(uo.platform),uI=require("events"),typeof uI!="function"&&(uI=uI.EventEmitter),uo.__signal_exit_emitter__?Wi=uo.__signal_exit_emitter__:(Wi=uo.__signal_exit_emitter__=new uI,Wi.count=0,Wi.emitted={}),Wi.infinite||(Wi.setMaxListeners(1/0),Wi.infinite=!0),r1.exports=function(e,r){if(!oE(global.process))return function(){};BYe.equal(typeof e,"function","a callback must be provided for exit handler"),t1===!1&&mue();var n="exit";r&&r.alwaysLast&&(n="afterexit");var o=function(){Wi.removeListener(n,e),Wi.listeners("exit").length===0&&Wi.listeners("afterexit").length===0&&Z8()};return Wi.on(n,e),o},Z8=function(){!t1||!oE(global.process)||(t1=!1,e1.forEach(function(r){try{uo.removeListener(r,Q8[r])}catch{}}),uo.emit=X8,uo.reallyExit=hue,Wi.count-=1)},r1.exports.unload=Z8,iE=function(r,n,o){Wi.emitted[r]||(Wi.emitted[r]=!0,Wi.emit(r,n,o))},Q8={},e1.forEach(function(e){Q8[e]=function(){if(oE(global.process)){var n=uo.listeners(e);n.length===Wi.count&&(Z8(),iE("exit",null,e),iE("afterexit",null,e),UYe&&e==="SIGHUP"&&(e="SIGINT"),uo.kill(uo.pid,e))}}}),r1.exports.signals=function(){return e1},t1=!1,mue=function(){t1||!oE(global.process)||(t1=!0,Wi.count+=1,e1=e1.filter(function(r){try{return uo.on(r,Q8[r]),!0}catch{return!1}}),uo.emit=qYe,uo.reallyExit=jYe)},r1.exports.load=mue,hue=uo.reallyExit,jYe=function(r){oE(global.process)&&(uo.exitCode=r||0,iE("exit",uo.exitCode,null),iE("afterexit",uo.exitCode,null),hue.call(uo,uo.exitCode))},X8=uo.emit,qYe=function(r,n){if(r==="exit"&&oE(global.process)){n!==void 0&&(uo.exitCode=n);var o=X8.apply(this,arguments);return iE("exit",uo.exitCode,null),iE("afterexit",uo.exitCode,null),o}else return X8.apply(this,arguments)}):r1.exports=function(){return function(){}};var BYe,e1,UYe,uI,Wi,Z8,iE,Q8,t1,mue,hue,jYe,X8,qYe});var WYe=C((Lyn,HYe)=>{"use strict";var DZt=require("os"),AZt=GYe(),CZt=1e3*5,PZt=(e,r="SIGTERM",n={})=>{let o=e(r);return IZt(e,r,n,o),o},IZt=(e,r,n,o)=>{if(!OZt(r,n,o))return;let i=FZt(n),a=setTimeout(()=>{e("SIGKILL")},i);a.unref&&a.unref()},OZt=(e,{forceKillAfterTimeout:r},n)=>RZt(e)&&r!==!1&&n,RZt=e=>e===DZt.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",FZt=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return CZt;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},MZt=(e,r)=>{e.kill()&&(r.isCanceled=!0)},kZt=(e,r,n)=>{e.kill(r),n(Object.assign(new Error("Timed out"),{timedOut:!0,signal:r}))},NZt=(e,{timeout:r,killSignal:n="SIGTERM"},o)=>{if(r===0||r===void 0)return o;let i,a=new Promise((u,l)=>{i=setTimeout(()=>{kZt(e,n,l)},r)}),c=o.finally(()=>{clearTimeout(i)});return Promise.race([a,c])},$Zt=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},LZt=async(e,{cleanup:r,detached:n},o)=>{if(!r||n)return o;let i=AZt(()=>{e.kill()});return o.finally(()=>{i()})};HYe.exports={spawnedKill:PZt,spawnedCancel:MZt,setupTimeout:NZt,validateTimeout:$Zt,setExitHandler:LZt}});var zYe=C((Byn,VYe)=>{"use strict";var{PassThrough:BZt}=require("stream");VYe.exports=e=>{e={...e};let{array:r}=e,{encoding:n}=e,o=n==="buffer",i=!1;r?i=!(n||o):n=n||"utf8",o&&(n=null);let a=new BZt({objectMode:i});n&&a.setEncoding(n);let c=0,u=[];return a.on("data",l=>{u.push(l),i?c=u.length:c+=l.length}),a.getBufferedValue=()=>r?u:o?Buffer.concat(u,c):u.join(""),a.getBufferedLength=()=>c,a}});var KYe=C((Uyn,lI)=>{"use strict";var{constants:UZt}=require("buffer"),jZt=require("stream"),{promisify:qZt}=require("util"),GZt=zYe(),HZt=qZt(jZt.pipeline),e5=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function gue(e,r){if(!e)throw new Error("Expected a stream");r={maxBuffer:1/0,...r};let{maxBuffer:n}=r,o=GZt(r);return await new Promise((i,a)=>{let c=u=>{u&&o.getBufferedLength()<=UZt.MAX_LENGTH&&(u.bufferedData=o.getBufferedValue()),a(u)};(async()=>{try{await HZt(e,o),i()}catch(u){c(u)}})(),o.on("data",()=>{o.getBufferedLength()>n&&c(new e5)})}),o.getBufferedValue()}lI.exports=gue;lI.exports.buffer=(e,r)=>gue(e,{...r,encoding:"buffer"});lI.exports.array=(e,r)=>gue(e,{...r,array:!0});lI.exports.MaxBufferError=e5});var QYe=C((jyn,ZYe)=>{"use strict";var YYe=gF(),JYe=KYe(),WZt=O9(),VZt=(e,r)=>{r===void 0||e.stdin===void 0||(YYe(r)?r.pipe(e.stdin):e.stdin.end(r))},zZt=(e,{all:r})=>{if(!r||!e.stdout&&!e.stderr)return;let n=WZt();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n},yue=async(e,r)=>{if(e){e.destroy();try{return await r}catch(n){return n.bufferedData}}},xue=(e,{encoding:r,buffer:n,maxBuffer:o})=>{if(!(!e||!n))return r?JYe(e,{encoding:r,maxBuffer:o}):JYe.buffer(e,{maxBuffer:o})},KZt=async({stdout:e,stderr:r,all:n},{encoding:o,buffer:i,maxBuffer:a},c)=>{let u=xue(e,{encoding:o,buffer:i,maxBuffer:a}),l=xue(r,{encoding:o,buffer:i,maxBuffer:a}),p=xue(n,{encoding:o,buffer:i,maxBuffer:a*2});try{return await Promise.all([c,u,l,p])}catch(f){return Promise.all([{error:f,signal:f.signal,timedOut:f.timedOut},yue(e,u),yue(r,l),yue(n,p)])}},JZt=({input:e})=>{if(YYe(e))throw new TypeError("The `input` option cannot be a stream in sync mode")};ZYe.exports={handleInput:VZt,makeAllStream:zZt,getSpawnedResult:KZt,validateInputSync:JZt}});var eZe=C((qyn,XYe)=>{"use strict";var YZt=(async()=>{})().constructor.prototype,ZZt=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(YZt,e)]),QZt=(e,r)=>{for(let[n,o]of ZZt){let i=typeof r=="function"?(...a)=>Reflect.apply(o.value,r(),a):o.value.bind(r);Reflect.defineProperty(e,n,{...o,value:i})}return e},XZt=e=>new Promise((r,n)=>{e.on("exit",(o,i)=>{r({exitCode:o,signal:i})}),e.on("error",o=>{n(o)}),e.stdin&&e.stdin.on("error",o=>{n(o)})});XYe.exports={mergePromise:QZt,getSpawnedPromise:XZt}});var nZe=C((Gyn,rZe)=>{"use strict";var tZe=(e,r=[])=>Array.isArray(r)?[e,...r]:[e],eQt=/^[\w.-]+$/,tQt=/"/g,rQt=e=>typeof e!="string"||eQt.test(e)?e:`"${e.replace(tQt,'\\"')}"`,nQt=(e,r)=>tZe(e,r).join(" "),oQt=(e,r)=>tZe(e,r).map(n=>rQt(n)).join(" "),iQt=/ +/g,sQt=e=>{let r=[];for(let n of e.trim().split(iQt)){let o=r[r.length-1];o&&o.endsWith("\\")?r[r.length-1]=`${o.slice(0,-1)} ${n}`:r.push(n)}return r};rZe.exports={joinCommand:nQt,getEscapedCommand:oQt,parseCommand:sQt}});var n5=C((Hyn,n1)=>{"use strict";var aQt=require("path"),bue=require("child_process"),cQt=rR(),uQt=EYe(),lQt=wYe(),pQt=AYe(),t5=kYe(),iZe=$Ye(),{spawnedKill:fQt,spawnedCancel:dQt,setupTimeout:mQt,validateTimeout:hQt,setExitHandler:gQt}=WYe(),{handleInput:yQt,getSpawnedResult:xQt,makeAllStream:bQt,validateInputSync:EQt}=QYe(),{mergePromise:oZe,getSpawnedPromise:vQt}=eZe(),{joinCommand:sZe,parseCommand:aZe,getEscapedCommand:cZe}=nZe(),SQt=1e3*1e3*100,wQt=({env:e,extendEnv:r,preferLocal:n,localDir:o,execPath:i})=>{let a=r?{...process.env,...e}:e;return n?lQt.env({env:a,cwd:o,execPath:i}):a},uZe=(e,r,n={})=>{let o=cQt._parse(e,r,n);return e=o.command,r=o.args,n=o.options,n={maxBuffer:SQt,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:n.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...n},n.env=wQt(n),n.stdio=iZe(n),process.platform==="win32"&&aQt.basename(e,".exe")==="cmd"&&r.unshift("/q"),{file:e,args:r,options:n,parsed:o}},pI=(e,r,n)=>typeof r!="string"&&!Buffer.isBuffer(r)?n===void 0?void 0:"":e.stripFinalNewline?uQt(r):r,r5=(e,r,n)=>{let o=uZe(e,r,n),i=sZe(e,r),a=cZe(e,r);hQt(o.options);let c;try{c=bue.spawn(o.file,o.args,o.options)}catch(b){let E=new bue.ChildProcess,S=Promise.reject(t5({error:b,stdout:"",stderr:"",all:"",command:i,escapedCommand:a,parsed:o,timedOut:!1,isCanceled:!1,killed:!1}));return oZe(E,S)}let u=vQt(c),l=mQt(c,o.options,u),p=gQt(c,o.options,l),f={isCanceled:!1};c.kill=fQt.bind(null,c.kill.bind(c)),c.cancel=dQt.bind(null,c,f);let x=pQt(async()=>{let[{error:b,exitCode:E,signal:S,timedOut:_},D,I,A]=await xQt(c,o.options,p),R=pI(o.options,D),O=pI(o.options,I),k=pI(o.options,A);if(b||E!==0||S!==null){let j=t5({error:b,exitCode:E,signal:S,stdout:R,stderr:O,all:k,command:i,escapedCommand:a,parsed:o,timedOut:_,isCanceled:f.isCanceled,killed:c.killed});if(!o.options.reject)return j;throw j}return{command:i,escapedCommand:a,exitCode:0,stdout:R,stderr:O,all:k,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return yQt(c,o.options.input),c.all=bQt(c,o.options),oZe(c,x)};n1.exports=r5;n1.exports.sync=(e,r,n)=>{let o=uZe(e,r,n),i=sZe(e,r),a=cZe(e,r);EQt(o.options);let c;try{c=bue.spawnSync(o.file,o.args,o.options)}catch(p){throw t5({error:p,stdout:"",stderr:"",all:"",command:i,escapedCommand:a,parsed:o,timedOut:!1,isCanceled:!1,killed:!1})}let u=pI(o.options,c.stdout,c.error),l=pI(o.options,c.stderr,c.error);if(c.error||c.status!==0||c.signal!==null){let p=t5({stdout:u,stderr:l,error:c.error,signal:c.signal,exitCode:c.status,command:i,escapedCommand:a,parsed:o,timedOut:c.error&&c.error.code==="ETIMEDOUT",isCanceled:!1,killed:c.signal!==null});if(!o.options.reject)return p;throw p}return{command:i,escapedCommand:a,exitCode:0,stdout:u,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};n1.exports.command=(e,r)=>{let[n,...o]=aZe(e);return r5(n,o,r)};n1.exports.commandSync=(e,r)=>{let[n,...o]=aZe(e);return r5.sync(n,o,r)};n1.exports.node=(e,r,n={})=>{r&&!Array.isArray(r)&&typeof r=="object"&&(n=r,r=[]);let o=iZe.node(n),i=process.execArgv.filter(u=>!u.startsWith("--inspect")),{nodePath:a=process.execPath,nodeOptions:c=i}=n;return r5(a,[...c,e,...Array.isArray(r)?r:[]],{...n,stdin:void 0,stdout:void 0,stderr:void 0,stdio:o,shell:!1})}});var DZe=C((Qyn,TZe)=>{"use strict";TZe.exports=(e,r,n)=>{let o=i=>Object.defineProperty(e,r,{value:i,enumerable:!0,writable:!0});return Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get(){let i=n();return o(i),i},set(i){o(i)}}),e}});var Aue=C((Xyn,RZe)=>{"use strict";var zQt=require("path"),KQt=require("child_process"),{promises:a5,constants:OZe}=require("fs"),s5=CK(),JQt=vN(),_ue=DZe(),AZe=zQt.join(__dirname,"xdg-open"),{platform:o1,arch:CZe}=process,YQt=()=>{try{return a5.statSync("/run/.containerenv"),!0}catch{return!1}},wue;function ZQt(){return wue===void 0&&(wue=YQt()||JQt()),wue}var QQt=(()=>{let e="/mnt/",r;return async function(){if(r)return r;let n="/etc/wsl.conf",o=!1;try{await a5.access(n,OZe.F_OK),o=!0}catch{}if(!o)return e;let i=await a5.readFile(n,{encoding:"utf8"}),a=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(i);return a?(r=a.groups.mountPoint.trim(),r=r.endsWith("/")?r:`${r}/`,r):e}})(),PZe=async(e,r)=>{let n;for(let o of e)try{return await r(o)}catch(i){n=i}throw n},c5=async e=>{if(e={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...e},Array.isArray(e.app))return PZe(e.app,u=>c5({...e,app:u}));let{name:r,arguments:n=[]}=e.app||{};if(n=[...n],Array.isArray(r))return PZe(r,u=>c5({...e,app:{name:u,arguments:n}}));let o,i=[],a={};if(o1==="darwin")o="open",e.wait&&i.push("--wait-apps"),e.background&&i.push("--background"),e.newInstance&&i.push("--new"),r&&i.push("-a",r);else if(o1==="win32"||s5&&!ZQt()&&!r){let u=await QQt();o=s5?`${u}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`,i.push("-NoProfile","-NonInteractive","\u2013ExecutionPolicy","Bypass","-EncodedCommand"),s5||(a.windowsVerbatimArguments=!0);let l=["Start"];e.wait&&l.push("-Wait"),r?(l.push(`"\`"${r}\`""`,"-ArgumentList"),e.target&&n.unshift(e.target)):e.target&&l.push(`"${e.target}"`),n.length>0&&(n=n.map(p=>`"\`"${p}\`""`),l.push(n.join(","))),e.target=Buffer.from(l.join(" "),"utf16le").toString("base64")}else{if(r)o=r;else{let u=!__dirname||__dirname==="/",l=!1;try{await a5.access(AZe,OZe.X_OK),l=!0}catch{}o=process.versions.electron||o1==="android"||u||!l?"xdg-open":AZe}n.length>0&&i.push(...n),e.wait||(a.stdio="ignore",a.detached=!0)}e.target&&i.push(e.target),o1==="darwin"&&n.length>0&&i.push("--args",...n);let c=KQt.spawn(o,i,a);return e.wait?new Promise((u,l)=>{c.once("error",l),c.once("close",p=>{if(!e.allowNonzeroExitCode&&p>0){l(new Error(`Exited with code ${p}`));return}u(c)})}):(c.unref(),c)},Tue=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a `target`");return c5({...r,target:e})},XQt=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a `name`");let{arguments:n=[]}=r||{};if(n!=null&&!Array.isArray(n))throw new TypeError("Expected `appArguments` as Array type");return c5({...r,app:{name:e,arguments:n}})};function IZe(e){if(typeof e=="string"||Array.isArray(e))return e;let{[CZe]:r}=e;if(!r)throw new Error(`${CZe} is not supported`);return r}function Due({[o1]:e},{wsl:r}){if(r&&s5)return IZe(r);if(!e)throw new Error(`${o1} is not supported`);return IZe(e)}var u5={};_ue(u5,"chrome",()=>Due({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));_ue(u5,"firefox",()=>Due({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));_ue(u5,"edge",()=>Due({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));Tue.apps=u5;Tue.openApp=XQt;RZe.exports=Tue});var FZe=C(l5=>{"use strict";l5.__esModule=!0;l5.Adapt=void 0;function eXt(e){return Cue(e)==="boolean"}function tXt(e){return Cue(e)==="object"}function rXt(e){return Cue(e)==="string"}function Cue(e){return typeof e}function nXt(e){var r=e.meta,n=e.path,o=e.xdg,i=function(){function a(c){c===void 0&&(c={});var u,l,p;function f(A){return A===void 0&&(A={}),new a(A)}var g=tXt(c)?c:{name:c},x=(u=g.suffix)!==null&&u!==void 0?u:"",b=(l=g.isolated)!==null&&l!==void 0?l:!0,E=[g.name,r.pkgMainFilename(),r.mainFilename()],S="$eval",_=n.parse(((p=E.find(function(A){return rXt(A)}))!==null&&p!==void 0?p:S)+x).name;f.$name=function(){return _},f.$isolated=function(){return b};function D(A){var R;A=A??{isolated:b};var O=eXt(A)?A:(R=A.isolated)!==null&&R!==void 0?R:b;return O}function I(A){return D(A)?_:""}return f.cache=function(R){return n.join(o.cache(),I(R))},f.config=function(R){return n.join(o.config(),I(R))},f.data=function(R){return n.join(o.data(),I(R))},f.runtime=function(R){return o.runtime()?n.join(o.runtime(),I(R)):void 0},f.state=function(R){return n.join(o.state(),I(R))},f.configDirs=function(R){return o.configDirs().map(function(O){return n.join(O,I(R))})},f.dataDirs=function(R){return o.dataDirs().map(function(O){return n.join(O,I(R))})},f}return a}();return{XDGAppPaths:new i}}l5.Adapt=nXt});var kZe=C(i1=>{"use strict";var MZe=i1&&i1.__spreadArray||function(e,r){for(var n=0,o=r.length,i=e.length;n<o;n++,i++)e[i]=r[n];return e};i1.__esModule=!0;i1.Adapt=void 0;function oXt(e){var r=e.env,n=e.osPaths,o=e.path,i=/^darwin$/i.test(e.process.platform),a=/^win/i.test(e.process.platform);function c(){return n.home()||n.temp()}function u(x,b){return x||o.join.apply(o,b)}var l=function(){var x=function(){return u(r.get("XDG_CACHE_HOME"),[c(),".cache"])},b=function(){return u(r.get("XDG_CONFIG_HOME"),[c(),".config"])},E=function(){return u(r.get("XDG_DATA_HOME"),[c(),".local","share"])},S=function(){return r.get("XDG_RUNTIME_DIR")||void 0},_=function(){return u(r.get("XDG_STATE_HOME"),[c(),".local","state"])};return{cache:x,config:b,data:E,runtime:S,state:_}},p=function(){var x=function(){return u(r.get("XDG_CACHE_HOME"),[c(),"Library","Caches"])},b=function(){return u(r.get("XDG_CONFIG_HOME"),[c(),"Library","Preferences"])},E=function(){return u(r.get("XDG_DATA_HOME"),[c(),"Library","Application Support"])},S=function(){return r.get("XDG_RUNTIME_DIR")||void 0},_=function(){return u(r.get("XDG_STATE_HOME"),[c(),"Library","State"])};return{cache:x,config:b,data:E,runtime:S,state:_}},f=function(){function x(){return u(r.get("APPDATA"),[c(),"AppData","Roaming"])}function b(){return u(r.get("LOCALAPPDATA"),[c(),"AppData","Local"])}var E=function(){return u(r.get("XDG_CACHE_HOME"),[b(),"xdg.cache"])},S=function(){return u(r.get("XDG_CONFIG_HOME"),[x(),"xdg.config"])},_=function(){return u(r.get("XDG_DATA_HOME"),[x(),"xdg.data"])},D=function(){return r.get("XDG_RUNTIME_DIR")||void 0},I=function(){return u(r.get("XDG_STATE_HOME"),[b(),"xdg.state"])};return{cache:E,config:S,data:_,runtime:D,state:I}},g=function(){function x(){function b(){return new x}var E=i?p():a?f():l();return b.cache=E.cache,b.config=E.config,b.data=E.data,b.runtime=E.runtime,b.state=E.state,b.configDirs=function(){var _=r.get("XDG_CONFIG_DIRS");return MZe([E.config()],_?_.split(o.delimiter):[])},b.dataDirs=function(){var _=r.get("XDG_DATA_DIRS");return MZe([E.data()],_?_.split(o.delimiter):[])},b}return x}();return{XDG:new g}}i1.Adapt=oXt});var NZe=C(s1=>{"use strict";var iXt=s1&&s1.__spreadArray||function(e,r){for(var n=0,o=r.length,i=e.length;n<o;n++,i++)e[i]=r[n];return e};s1.__esModule=!0;s1.Adapt=void 0;function Pue(e){return!e}function sXt(e){var r=e.env,n=e.os,o=e.path,i=/^win/i.test(e.process.platform);function a(p){return p?e.path.normalize(e.path.join(p,".")):void 0}function c(){var p=function(){return a((typeof n.homedir=="function"?n.homedir():void 0)||r.get("HOME"))},f=function(){var g=[typeof n.homedir=="function"?n.homedir():void 0,r.get("USERPROFILE"),r.get("HOME"),r.get("HOMEDRIVE")||r.get("HOMEPATH")?o.join(r.get("HOMEDRIVE")||"",r.get("HOMEPATH")||""):void 0];return a(g.find(function(x){return!Pue(x)}))};return i?f():p()}function u(){function p(x,b){return x?o.join.apply(o,iXt([x],b)):void 0}function f(){var x="/tmp",b=[typeof n.tmpdir=="function"?n.tmpdir():void 0,r.get("TMPDIR"),r.get("TEMP"),r.get("TMP")];return a(b.find(function(E){return!Pue(E)}))||x}function g(){var x="C:\\Temp",b=[typeof n.tmpdir=="function"?n.tmpdir:function(){},function(){return r.get("TEMP")},function(){return r.get("TMP")},function(){return p(r.get("LOCALAPPDATA"),["Temp"])},function(){return p(c(),["AppData","Local","Temp"])},function(){return p(r.get("ALLUSERSPROFILE"),["Temp"])},function(){return p(r.get("SystemRoot"),["Temp"])},function(){return p(r.get("windir"),["Temp"])},function(){return p(r.get("SystemDrive"),["\\","Temp"])}],E=b.find(function(S){return S&&!Pue(S())});return E&&a(E())||x}return i?g():f()}var l=function(){function p(){function f(){return new p}return f.home=c,f.temp=u,f}return p}();return{OSPaths:new l}}s1.Adapt=sXt});var LZe=C(kf=>{"use strict";var aXt=kf&&kf.__createBinding||(Object.create?function(e,r,n,o){o===void 0&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return r[n]}})}:function(e,r,n,o){o===void 0&&(o=n),e[o]=r[n]}),cXt=kf&&kf.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),$Ze=kf&&kf.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&aXt(r,e,n);return cXt(r,e),r};kf.__esModule=!0;kf.adapter=void 0;var uXt=$Ze(require("os")),lXt=$Ze(require("path"));kf.adapter={atImportPermissions:{env:!0},env:{get:function(e){return process.env[e]}},os:uXt,path:lXt,process}});var UZe=C((oxn,BZe)=>{"use strict";var pXt=NZe(),fXt=LZe();BZe.exports=pXt.Adapt(fXt.adapter).OSPaths});var jZe=C(Yu=>{"use strict";var dXt=Yu&&Yu.__createBinding||(Object.create?function(e,r,n,o){o===void 0&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return r[n]}})}:function(e,r,n,o){o===void 0&&(o=n),e[o]=r[n]}),mXt=Yu&&Yu.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),hXt=Yu&&Yu.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&dXt(r,e,n);return mXt(r,e),r},gXt=Yu&&Yu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Yu.__esModule=!0;Yu.adapter=void 0;var yXt=hXt(require("path")),xXt=gXt(UZe());Yu.adapter={atImportPermissions:{env:!0},env:{get:function(e){return process.env[e]}},osPaths:xXt.default,path:yXt,process}});var GZe=C((sxn,qZe)=>{"use strict";var bXt=kZe(),EXt=jZe();qZe.exports=bXt.Adapt(EXt.adapter).XDG});var HZe=C(Zu=>{"use strict";var vXt=Zu&&Zu.__createBinding||(Object.create?function(e,r,n,o){o===void 0&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return r[n]}})}:function(e,r,n,o){o===void 0&&(o=n),e[o]=r[n]}),SXt=Zu&&Zu.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),wXt=Zu&&Zu.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&vXt(r,e,n);return SXt(r,e),r},_Xt=Zu&&Zu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Zu.__esModule=!0;Zu.adapter=void 0;var TXt=wXt(require("path")),DXt=_Xt(GZe());Zu.adapter={atImportPermissions:{env:!0,read:!0},meta:{mainFilename:function(){var e=typeof require<"u"&&require!==null&&require.main?require.main:{filename:void 0},r=e.filename,n=(r!==process.execArgv[0]?r:void 0)||(typeof process._eval>"u"?process.argv[1]:void 0);return n},pkgMainFilename:function(){return process.pkg?process.execPath:void 0}},path:TXt,process,xdg:DXt.default}});var Iue=C((cxn,WZe)=>{"use strict";var AXt=FZe(),CXt=HZe();WZe.exports=AXt.Adapt(CXt.adapter).XDGAppPaths});var C0=C((gxn,OXt)=>{OXt.exports={version:"7.9.0-dev.23",name:"prisma",description:"Prisma is an open-source database toolkit. It includes a JavaScript/TypeScript ORM for Node.js, migrations and a modern GUI to view and edit the data in your database. You can use Prisma in new projects or add it to an existing one.",keywords:["CLI","ORM","Prisma","Prisma CLI","prisma2","database","db","JavaScript","JS","TypeScript","TS","SQL","SQLite","pg","Postgres","PostgreSQL","CockroachDB","MySQL","MariaDB","MSSQL","SQL Server","SQLServer","MongoDB","MCP"],main:"build/index.js",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/cli"},homepage:"https://www.prisma.io",author:"Tim Suchanek <suchanek@prisma.io>",bugs:"https://github.com/prisma/prisma/issues",license:"Apache-2.0",engines:{node:"^20.19 || ^22.12 || >=24.0"},prisma:{prismaCommit:"4da377494cc27bc0784d3629df21e94989abd153"},files:["README.md","build","config.js","config.d.ts","dist/cli/src/types.d.ts","install","runtime/*.js","runtime/*.d.ts","runtime/utils","runtime/dist","runtime/llhttp","prisma-client","preinstall","scripts/preinstall-entry.js"],pkg:{assets:["build/**/*","runtime/**/*","prisma-client/**/*","node_modules/@prisma/engines/**/*","node_modules/@prisma/engines/*"]},bin:{prisma:"build/index.js"},types:"./dist/cli/src/types.d.ts",exports:{"./package.json":"./package.json",".":{require:{types:"./dist/cli/src/types.d.ts",default:"./build/types.js"},import:{types:"./dist/cli/src/types.d.ts",default:"./build/types.js"},default:"./build/types.js"},"./config":{require:{types:"./config.d.ts",default:"./config.js"},import:{types:"./config.d.ts",default:"./config.js"},default:"./config.js"},"./build/index.js":{require:{types:"./dist/cli/src/types.d.ts",default:"./build/index.js"},default:"./build/index.js"}},devDependencies:{"@inquirer/prompts":"7.3.3","@libsql/client":"0.8.1","@modelcontextprotocol/sdk":"1.13.2","@opentelemetry/api":"1.9.0","@opentelemetry/context-async-hooks":"2.1.0","@opentelemetry/sdk-trace-base":"2.1.0","@prisma/adapter-libsql":"workspace:*","@prisma/client":"workspace:*","@prisma/client-generator-registry":"workspace:*","@prisma/credentials-store":"workspace:*","@prisma/debug":"workspace:*","@prisma/dmmf":"workspace:*","@prisma/driver-adapter-utils":"workspace:*","@prisma/fetch-engine":"workspace:*","@prisma/generator":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/internals":"workspace:*","@prisma/management-api-sdk":"1.12.0","@prisma/migrate":"workspace:*","@swc/core":"1.11.5","@swc/jest":"0.2.37","@types/better-sqlite3":"7.6.12","@types/fs-extra":"11.0.4","@types/jest":"29.5.14","@types/node":"~20.19.24","@types/react":"19.2.14","@types/react-dom":"19.2.3","async-listen":"3.1.0","better-sqlite3":"^11.10.0","checkpoint-client":"1.1.33",chokidar:"4.0.3",dotenv:"17.2.3",effect:"3.20.0","env-paths":"2.2.1",execa:"5.1.1","fs-extra":"11.3.0","get-port-please":"3.2.0","get-tsconfig":"4.10.0",jest:"29.7.0","jest-junit":"16.0.0",kleur:"4.1.5","line-replace":"2.0.1","log-update":"6.1.0","node-fetch":"3.3.2","npm-packlist":"5.1.3",ohash:"2.0.11",open:"8.4.2","openapi-fetch":"0.15.0","openapi-typescript":"7.10.1",ora:"8.2.0","package-up":"5.0.0",pathe:"2.0.3",react:"19.2.0","react-dom":"19.2.0","resolve-pkg":"2.0.0","std-env":"3.10.0","strip-ansi":"7.1.0","ts-pattern":"5.6.2",typescript:"5.4.5","xdg-app-paths":"8.3.0",zod:"3.24.2"},scripts:{prisma:"tsx src/bin.ts",platform:"tsx src/bin.ts platform --early-access",pm:"tsx src/bin.ts platform --early-access",dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts","generate-api-client":"openapi-typescript https://api.prisma.io/v1/doc --output ./src/management-api/openapi.d.ts && prettier --write ./src/management-api/openapi.d.ts",test:"dotenv -e ../../.db.env -- tsx helpers/run-tests.ts","test:platform":"dotenv -e ../../.db.env -- tsx helpers/run-tests.ts src/platform",tsc:"tsc -d -p tsconfig.build.json",preinstall:"node scripts/preinstall-entry.js",prepublishOnly:"pnpm run build"},dependencies:{"@prisma/config":"workspace:*","@prisma/dev":"0.24.14","@prisma/engines":"workspace:*","@prisma/studio-core":"0.33.0",mysql2:"3.15.3",postgres:"3.4.7"},peerDependencies:{"better-sqlite3":">=9.0.0",typescript:">=5.4.0"},peerDependenciesMeta:{"better-sqlite3":{optional:!0},typescript:{optional:!0}},sideEffects:!1}});var xXe=C((W5,yXe)=>{"use strict";(function(e,r){typeof W5=="object"&&typeof yXe<"u"?r(W5):typeof define=="function"&&define.amd?define(["exports"],r):r(e.URI=e.URI||{})})(W5,function(e){"use strict";function r(){for(var ee=arguments.length,K=Array(ee),oe=0;oe<ee;oe++)K[oe]=arguments[oe];if(K.length>1){K[0]=K[0].slice(0,-1);for(var ue=K.length-1,pe=1;pe<ue;++pe)K[pe]=K[pe].slice(1,-1);return K[ue]=K[ue].slice(1),K.join("")}else return K[0]}function n(ee){return"(?:"+ee+")"}function o(ee){return ee===void 0?"undefined":ee===null?"null":Object.prototype.toString.call(ee).split(" ").pop().split("]").shift().toLowerCase()}function i(ee){return ee.toUpperCase()}function a(ee){return ee!=null?ee instanceof Array?ee:typeof ee.length!="number"||ee.split||ee.setInterval||ee.call?[ee]:Array.prototype.slice.call(ee):[]}function c(ee,K){var oe=ee;if(K)for(var ue in K)oe[ue]=K[ue];return oe}function u(ee){var K="[A-Za-z]",oe="[\\x0D]",ue="[0-9]",pe="[\\x22]",je=r(ue,"[A-Fa-f]"),Ht="[\\x0A]",hr="[\\x20]",Pr=n(n("%[EFef]"+je+"%"+je+je+"%"+je+je)+"|"+n("%[89A-Fa-f]"+je+"%"+je+je)+"|"+n("%"+je+je)),$n="[\\:\\/\\?\\#\\[\\]\\@]",pr="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",cn=r($n,pr),vn=ee?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Jr=ee?"[\\uE000-\\uF8FF]":"[]",$t=r(K,ue,"[\\-\\.\\_\\~]",vn),gn=n(K+r(K,ue,"[\\+\\-\\.]")+"*"),Br=n(n(Pr+"|"+r($t,pr,"[\\:]"))+"*"),Hc=n(n("25[0-5]")+"|"+n("2[0-4]"+ue)+"|"+n("1"+ue+ue)+"|"+n("[1-9]"+ue)+"|"+ue),Ii=n(n("25[0-5]")+"|"+n("2[0-4]"+ue)+"|"+n("1"+ue+ue)+"|"+n("0?[1-9]"+ue)+"|0?0?"+ue),qs=n(Ii+"\\."+Ii+"\\."+Ii+"\\."+Ii),Yr=n(je+"{1,4}"),Gs=n(n(Yr+"\\:"+Yr)+"|"+qs),ys=n(n(Yr+"\\:")+"{6}"+Gs),xs=n("\\:\\:"+n(Yr+"\\:")+"{5}"+Gs),bp=n(n(Yr)+"?\\:\\:"+n(Yr+"\\:")+"{4}"+Gs),Wc=n(n(n(Yr+"\\:")+"{0,1}"+Yr)+"?\\:\\:"+n(Yr+"\\:")+"{3}"+Gs),q0=n(n(n(Yr+"\\:")+"{0,2}"+Yr)+"?\\:\\:"+n(Yr+"\\:")+"{2}"+Gs),G0=n(n(n(Yr+"\\:")+"{0,3}"+Yr)+"?\\:\\:"+Yr+"\\:"+Gs),th=n(n(n(Yr+"\\:")+"{0,4}"+Yr)+"?\\:\\:"+Gs),Vc=n(n(n(Yr+"\\:")+"{0,5}"+Yr)+"?\\:\\:"+Yr),da=n(n(n(Yr+"\\:")+"{0,6}"+Yr)+"?\\:\\:"),zc=n([ys,xs,bp,Wc,q0,G0,th,Vc,da].join("|")),nl=n(n($t+"|"+Pr)+"+"),Hf=n(zc+"\\%25"+nl),Kc=n(zc+n("\\%25|\\%(?!"+je+"{2})")+nl),PE=n("[vV]"+je+"+\\."+r($t,pr,"[\\:]")+"+"),qU=n("\\["+n(Kc+"|"+zc+"|"+PE)+"\\]"),LI=n(n(Pr+"|"+r($t,pr))+"*"),H0=n(qU+"|"+qs+"(?!"+LI+")|"+LI),W0=n(ue+"*"),BI=n(n(Br+"@")+"?"+H0+n("\\:"+W0)+"?"),V0=n(Pr+"|"+r($t,pr,"[\\:\\@]")),UI=n(V0+"*"),jI=n(V0+"+"),GU=n(n(Pr+"|"+r($t,pr,"[\\@]"))+"+"),ol=n(n("\\/"+UI)+"*"),Jc=n("\\/"+n(jI+ol)+"?"),IE=n(GU+ol),OE=n(jI+ol),Wf="(?!"+V0+")",z0=n(ol+"|"+Jc+"|"+IE+"|"+OE+"|"+Wf),nc=n(n(V0+"|"+r("[\\/\\?]",Jr))+"*"),Ep=n(n(V0+"|[\\/\\?]")+"*"),M1=n(n("\\/\\/"+BI+ol)+"|"+Jc+"|"+OE+"|"+Wf),HU=n(gn+"\\:"+M1+n("\\?"+nc)+"?"+n("\\#"+Ep)+"?"),k1=n(n("\\/\\/"+BI+ol)+"|"+Jc+"|"+IE+"|"+Wf),N1=n(k1+n("\\?"+nc)+"?"+n("\\#"+Ep)+"?"),qI=n(HU+"|"+N1),Xle=n(gn+"\\:"+M1+n("\\?"+nc)+"?"),epe="^("+gn+")\\:"+n(n("\\/\\/("+n("("+Br+")@")+"?("+H0+")"+n("\\:("+W0+")")+"?)")+"?("+ol+"|"+Jc+"|"+OE+"|"+Wf+")")+n("\\?("+nc+")")+"?"+n("\\#("+Ep+")")+"?$",tpe="^(){0}"+n(n("\\/\\/("+n("("+Br+")@")+"?("+H0+")"+n("\\:("+W0+")")+"?)")+"?("+ol+"|"+Jc+"|"+IE+"|"+Wf+")")+n("\\?("+nc+")")+"?"+n("\\#("+Ep+")")+"?$",rpe="^("+gn+")\\:"+n(n("\\/\\/("+n("("+Br+")@")+"?("+H0+")"+n("\\:("+W0+")")+"?)")+"?("+ol+"|"+Jc+"|"+OE+"|"+Wf+")")+n("\\?("+nc+")")+"?$",il="^"+n("\\#("+Ep+")")+"?$",npe="^"+n("("+Br+")@")+"?("+H0+")"+n("\\:("+W0+")")+"?$";return{NOT_SCHEME:new RegExp(r("[^]",K,ue,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(r("[^\\%\\:]",$t,pr),"g"),NOT_HOST:new RegExp(r("[^\\%\\[\\]\\:]",$t,pr),"g"),NOT_PATH:new RegExp(r("[^\\%\\/\\:\\@]",$t,pr),"g"),NOT_PATH_NOSCHEME:new RegExp(r("[^\\%\\/\\@]",$t,pr),"g"),NOT_QUERY:new RegExp(r("[^\\%]",$t,pr,"[\\:\\@\\/\\?]",Jr),"g"),NOT_FRAGMENT:new RegExp(r("[^\\%]",$t,pr,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(r("[^]",$t,pr),"g"),UNRESERVED:new RegExp($t,"g"),OTHER_CHARS:new RegExp(r("[^\\%]",$t,cn),"g"),PCT_ENCODED:new RegExp(Pr,"g"),IPV4ADDRESS:new RegExp("^("+qs+")$"),IPV6ADDRESS:new RegExp("^\\[?("+zc+")"+n(n("\\%25|\\%(?!"+je+"{2})")+"("+nl+")")+"?\\]?$")}}var l=u(!1),p=u(!0),f=function(){function ee(K,oe){var ue=[],pe=!0,je=!1,Ht=void 0;try{for(var hr=K[Symbol.iterator](),Pr;!(pe=(Pr=hr.next()).done)&&(ue.push(Pr.value),!(oe&&ue.length===oe));pe=!0);}catch($n){je=!0,Ht=$n}finally{try{!pe&&hr.return&&hr.return()}finally{if(je)throw Ht}}return ue}return function(K,oe){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return ee(K,oe);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(ee){if(Array.isArray(ee)){for(var K=0,oe=Array(ee.length);K<ee.length;K++)oe[K]=ee[K];return oe}else return Array.from(ee)},x=2147483647,b=36,E=1,S=26,_=38,D=700,I=72,A=128,R="-",O=/^xn--/,k=/[^\0-\x7E]/,j=/[\x2E\u3002\uFF0E\uFF61]/g,G={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=b-E,H=Math.floor,F=String.fromCharCode;function Y(ee){throw new RangeError(G[ee])}function V(ee,K){for(var oe=[],ue=ee.length;ue--;)oe[ue]=K(ee[ue]);return oe}function Q(ee,K){var oe=ee.split("@"),ue="";oe.length>1&&(ue=oe[0]+"@",ee=oe[1]),ee=ee.replace(j,".");var pe=ee.split("."),je=V(pe,K).join(".");return ue+je}function q(ee){for(var K=[],oe=0,ue=ee.length;oe<ue;){var pe=ee.charCodeAt(oe++);if(pe>=55296&&pe<=56319&&oe<ue){var je=ee.charCodeAt(oe++);(je&64512)==56320?K.push(((pe&1023)<<10)+(je&1023)+65536):(K.push(pe),oe--)}else K.push(pe)}return K}var Z=function(K){return String.fromCodePoint.apply(String,g(K))},ie=function(K){return K-48<10?K-22:K-65<26?K-65:K-97<26?K-97:b},se=function(K,oe){return K+22+75*(K<26)-((oe!=0)<<5)},le=function(K,oe,ue){var pe=0;for(K=ue?H(K/D):K>>1,K+=H(K/oe);K>L*S>>1;pe+=b)K=H(K/L);return H(pe+(L+1)*K/(K+_))},_e=function(K){var oe=[],ue=K.length,pe=0,je=A,Ht=I,hr=K.lastIndexOf(R);hr<0&&(hr=0);for(var Pr=0;Pr<hr;++Pr)K.charCodeAt(Pr)>=128&&Y("not-basic"),oe.push(K.charCodeAt(Pr));for(var $n=hr>0?hr+1:0;$n<ue;){for(var pr=pe,cn=1,vn=b;;vn+=b){$n>=ue&&Y("invalid-input");var Jr=ie(K.charCodeAt($n++));(Jr>=b||Jr>H((x-pe)/cn))&&Y("overflow"),pe+=Jr*cn;var $t=vn<=Ht?E:vn>=Ht+S?S:vn-Ht;if(Jr<$t)break;var gn=b-$t;cn>H(x/gn)&&Y("overflow"),cn*=gn}var Br=oe.length+1;Ht=le(pe-pr,Br,pr==0),H(pe/Br)>x-je&&Y("overflow"),je+=H(pe/Br),pe%=Br,oe.splice(pe++,0,je)}return String.fromCodePoint.apply(String,oe)},Ge=function(K){var oe=[];K=q(K);var ue=K.length,pe=A,je=0,Ht=I,hr=!0,Pr=!1,$n=void 0;try{for(var pr=K[Symbol.iterator](),cn;!(hr=(cn=pr.next()).done);hr=!0){var vn=cn.value;vn<128&&oe.push(F(vn))}}catch(Kc){Pr=!0,$n=Kc}finally{try{!hr&&pr.return&&pr.return()}finally{if(Pr)throw $n}}var Jr=oe.length,$t=Jr;for(Jr&&oe.push(R);$t<ue;){var gn=x,Br=!0,Hc=!1,Ii=void 0;try{for(var qs=K[Symbol.iterator](),Yr;!(Br=(Yr=qs.next()).done);Br=!0){var Gs=Yr.value;Gs>=pe&&Gs<gn&&(gn=Gs)}}catch(Kc){Hc=!0,Ii=Kc}finally{try{!Br&&qs.return&&qs.return()}finally{if(Hc)throw Ii}}var ys=$t+1;gn-pe>H((x-je)/ys)&&Y("overflow"),je+=(gn-pe)*ys,pe=gn;var xs=!0,bp=!1,Wc=void 0;try{for(var q0=K[Symbol.iterator](),G0;!(xs=(G0=q0.next()).done);xs=!0){var th=G0.value;if(th<pe&&++je>x&&Y("overflow"),th==pe){for(var Vc=je,da=b;;da+=b){var zc=da<=Ht?E:da>=Ht+S?S:da-Ht;if(Vc<zc)break;var nl=Vc-zc,Hf=b-zc;oe.push(F(se(zc+nl%Hf,0))),Vc=H(nl/Hf)}oe.push(F(se(Vc,0))),Ht=le(je,ys,$t==Jr),je=0,++$t}}}catch(Kc){bp=!0,Wc=Kc}finally{try{!xs&&q0.return&&q0.return()}finally{if(bp)throw Wc}}++je,++pe}return oe.join("")},Mt=function(K){return Q(K,function(oe){return O.test(oe)?_e(oe.slice(4).toLowerCase()):oe})},Zt=function(K){return Q(K,function(oe){return k.test(oe)?"xn--"+Ge(oe):oe})},kt={version:"2.1.0",ucs2:{decode:q,encode:Z},decode:_e,encode:Ge,toASCII:Zt,toUnicode:Mt},Gt={};function Ne(ee){var K=ee.charCodeAt(0),oe=void 0;return K<16?oe="%0"+K.toString(16).toUpperCase():K<128?oe="%"+K.toString(16).toUpperCase():K<2048?oe="%"+(K>>6|192).toString(16).toUpperCase()+"%"+(K&63|128).toString(16).toUpperCase():oe="%"+(K>>12|224).toString(16).toUpperCase()+"%"+(K>>6&63|128).toString(16).toUpperCase()+"%"+(K&63|128).toString(16).toUpperCase(),oe}function Qe(ee){for(var K="",oe=0,ue=ee.length;oe<ue;){var pe=parseInt(ee.substr(oe+1,2),16);if(pe<128)K+=String.fromCharCode(pe),oe+=3;else if(pe>=194&&pe<224){if(ue-oe>=6){var je=parseInt(ee.substr(oe+4,2),16);K+=String.fromCharCode((pe&31)<<6|je&63)}else K+=ee.substr(oe,6);oe+=6}else if(pe>=224){if(ue-oe>=9){var Ht=parseInt(ee.substr(oe+4,2),16),hr=parseInt(ee.substr(oe+7,2),16);K+=String.fromCharCode((pe&15)<<12|(Ht&63)<<6|hr&63)}else K+=ee.substr(oe,9);oe+=9}else K+=ee.substr(oe,3),oe+=3}return K}function lo(ee,K){function oe(ue){var pe=Qe(ue);return pe.match(K.UNRESERVED)?pe:ue}return ee.scheme&&(ee.scheme=String(ee.scheme).replace(K.PCT_ENCODED,oe).toLowerCase().replace(K.NOT_SCHEME,"")),ee.userinfo!==void 0&&(ee.userinfo=String(ee.userinfo).replace(K.PCT_ENCODED,oe).replace(K.NOT_USERINFO,Ne).replace(K.PCT_ENCODED,i)),ee.host!==void 0&&(ee.host=String(ee.host).replace(K.PCT_ENCODED,oe).toLowerCase().replace(K.NOT_HOST,Ne).replace(K.PCT_ENCODED,i)),ee.path!==void 0&&(ee.path=String(ee.path).replace(K.PCT_ENCODED,oe).replace(ee.scheme?K.NOT_PATH:K.NOT_PATH_NOSCHEME,Ne).replace(K.PCT_ENCODED,i)),ee.query!==void 0&&(ee.query=String(ee.query).replace(K.PCT_ENCODED,oe).replace(K.NOT_QUERY,Ne).replace(K.PCT_ENCODED,i)),ee.fragment!==void 0&&(ee.fragment=String(ee.fragment).replace(K.PCT_ENCODED,oe).replace(K.NOT_FRAGMENT,Ne).replace(K.PCT_ENCODED,i)),ee}function xe(ee){return ee.replace(/^0*(.*)/,"$1")||"0"}function ze(ee,K){var oe=ee.match(K.IPV4ADDRESS)||[],ue=f(oe,2),pe=ue[1];return pe?pe.split(".").map(xe).join("."):ee}function ge(ee,K){var oe=ee.match(K.IPV6ADDRESS)||[],ue=f(oe,3),pe=ue[1],je=ue[2];if(pe){for(var Ht=pe.toLowerCase().split("::").reverse(),hr=f(Ht,2),Pr=hr[0],$n=hr[1],pr=$n?$n.split(":").map(xe):[],cn=Pr.split(":").map(xe),vn=K.IPV4ADDRESS.test(cn[cn.length-1]),Jr=vn?7:8,$t=cn.length-Jr,gn=Array(Jr),Br=0;Br<Jr;++Br)gn[Br]=pr[Br]||cn[$t+Br]||"";vn&&(gn[Jr-1]=ze(gn[Jr-1],K));var Hc=gn.reduce(function(ys,xs,bp){if(!xs||xs==="0"){var Wc=ys[ys.length-1];Wc&&Wc.index+Wc.length===bp?Wc.length++:ys.push({index:bp,length:1})}return ys},[]),Ii=Hc.sort(function(ys,xs){return xs.length-ys.length})[0],qs=void 0;if(Ii&&Ii.length>1){var Yr=gn.slice(0,Ii.index),Gs=gn.slice(Ii.index+Ii.length);qs=Yr.join(":")+"::"+Gs.join(":")}else qs=gn.join(":");return je&&(qs+="%"+je),qs}else return ee}var ut=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Nt="".match(/(){0}/)[1]===void 0;function ht(ee){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oe={},ue=K.iri!==!1?p:l;K.reference==="suffix"&&(ee=(K.scheme?K.scheme+":":"")+"//"+ee);var pe=ee.match(ut);if(pe){Nt?(oe.scheme=pe[1],oe.userinfo=pe[3],oe.host=pe[4],oe.port=parseInt(pe[5],10),oe.path=pe[6]||"",oe.query=pe[7],oe.fragment=pe[8],isNaN(oe.port)&&(oe.port=pe[5])):(oe.scheme=pe[1]||void 0,oe.userinfo=ee.indexOf("@")!==-1?pe[3]:void 0,oe.host=ee.indexOf("//")!==-1?pe[4]:void 0,oe.port=parseInt(pe[5],10),oe.path=pe[6]||"",oe.query=ee.indexOf("?")!==-1?pe[7]:void 0,oe.fragment=ee.indexOf("#")!==-1?pe[8]:void 0,isNaN(oe.port)&&(oe.port=ee.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?pe[4]:void 0)),oe.host&&(oe.host=ge(ze(oe.host,ue),ue)),oe.scheme===void 0&&oe.userinfo===void 0&&oe.host===void 0&&oe.port===void 0&&!oe.path&&oe.query===void 0?oe.reference="same-document":oe.scheme===void 0?oe.reference="relative":oe.fragment===void 0?oe.reference="absolute":oe.reference="uri",K.reference&&K.reference!=="suffix"&&K.reference!==oe.reference&&(oe.error=oe.error||"URI is not a "+K.reference+" reference.");var je=Gt[(K.scheme||oe.scheme||"").toLowerCase()];if(!K.unicodeSupport&&(!je||!je.unicodeSupport)){if(oe.host&&(K.domainHost||je&&je.domainHost))try{oe.host=kt.toASCII(oe.host.replace(ue.PCT_ENCODED,Qe).toLowerCase())}catch(Ht){oe.error=oe.error||"Host's domain name can not be converted to ASCII via punycode: "+Ht}lo(oe,l)}else lo(oe,ue);je&&je.parse&&je.parse(oe,K)}else oe.error=oe.error||"URI can not be parsed.";return oe}function nr(ee,K){var oe=K.iri!==!1?p:l,ue=[];return ee.userinfo!==void 0&&(ue.push(ee.userinfo),ue.push("@")),ee.host!==void 0&&ue.push(ge(ze(String(ee.host),oe),oe).replace(oe.IPV6ADDRESS,function(pe,je,Ht){return"["+je+(Ht?"%25"+Ht:"")+"]"})),(typeof ee.port=="number"||typeof ee.port=="string")&&(ue.push(":"),ue.push(String(ee.port))),ue.length?ue.join(""):void 0}var Zn=/^\.\.?\//,Nn=/^\/\.(\/|$)/,yp=/^\/\.\.(\/|$)/,Io=/^\/?(?:.|\n)*?(?=\/|$)/;function Vi(ee){for(var K=[];ee.length;)if(ee.match(Zn))ee=ee.replace(Zn,"");else if(ee.match(Nn))ee=ee.replace(Nn,"/");else if(ee.match(yp))ee=ee.replace(yp,"/"),K.pop();else if(ee==="."||ee==="..")ee="";else{var oe=ee.match(Io);if(oe){var ue=oe[0];ee=ee.slice(ue.length),K.push(ue)}else throw new Error("Unexpected dot segment condition")}return K.join("")}function zi(ee){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oe=K.iri?p:l,ue=[],pe=Gt[(K.scheme||ee.scheme||"").toLowerCase()];if(pe&&pe.serialize&&pe.serialize(ee,K),ee.host&&!oe.IPV6ADDRESS.test(ee.host)){if(K.domainHost||pe&&pe.domainHost)try{ee.host=K.iri?kt.toUnicode(ee.host):kt.toASCII(ee.host.replace(oe.PCT_ENCODED,Qe).toLowerCase())}catch(hr){ee.error=ee.error||"Host's domain name can not be converted to "+(K.iri?"Unicode":"ASCII")+" via punycode: "+hr}}lo(ee,oe),K.reference!=="suffix"&&ee.scheme&&(ue.push(ee.scheme),ue.push(":"));var je=nr(ee,K);if(je!==void 0&&(K.reference!=="suffix"&&ue.push("//"),ue.push(je),ee.path&&ee.path.charAt(0)!=="/"&&ue.push("/")),ee.path!==void 0){var Ht=ee.path;!K.absolutePath&&(!pe||!pe.absolutePath)&&(Ht=Vi(Ht)),je===void 0&&(Ht=Ht.replace(/^\/\//,"/%2F")),ue.push(Ht)}return ee.query!==void 0&&(ue.push("?"),ue.push(ee.query)),ee.fragment!==void 0&&(ue.push("#"),ue.push(ee.fragment)),ue.join("")}function Oo(ee,K){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ue=arguments[3],pe={};return ue||(ee=ht(zi(ee,oe),oe),K=ht(zi(K,oe),oe)),oe=oe||{},!oe.tolerant&&K.scheme?(pe.scheme=K.scheme,pe.userinfo=K.userinfo,pe.host=K.host,pe.port=K.port,pe.path=Vi(K.path||""),pe.query=K.query):(K.userinfo!==void 0||K.host!==void 0||K.port!==void 0?(pe.userinfo=K.userinfo,pe.host=K.host,pe.port=K.port,pe.path=Vi(K.path||""),pe.query=K.query):(K.path?(K.path.charAt(0)==="/"?pe.path=Vi(K.path):((ee.userinfo!==void 0||ee.host!==void 0||ee.port!==void 0)&&!ee.path?pe.path="/"+K.path:ee.path?pe.path=ee.path.slice(0,ee.path.lastIndexOf("/")+1)+K.path:pe.path=K.path,pe.path=Vi(pe.path)),pe.query=K.query):(pe.path=ee.path,K.query!==void 0?pe.query=K.query:pe.query=ee.query),pe.userinfo=ee.userinfo,pe.host=ee.host,pe.port=ee.port),pe.scheme=ee.scheme),pe.fragment=K.fragment,pe}function ci(ee,K,oe){var ue=c({scheme:"null"},oe);return zi(Oo(ht(ee,ue),ht(K,ue),ue,!0),ue)}function ui(ee,K){return typeof ee=="string"?ee=zi(ht(ee,K),K):o(ee)==="object"&&(ee=ht(zi(ee,K),K)),ee}function jf(ee,K,oe){return typeof ee=="string"?ee=zi(ht(ee,oe),oe):o(ee)==="object"&&(ee=zi(ee,oe)),typeof K=="string"?K=zi(ht(K,oe),oe):o(K)==="object"&&(K=zi(K,oe)),ee===K}function AE(ee,K){return ee&&ee.toString().replace(!K||!K.iri?l.ESCAPE:p.ESCAPE,Ne)}function fa(ee,K){return ee&&ee.toString().replace(!K||!K.iri?l.PCT_ENCODED:p.PCT_ENCODED,Qe)}var Xm={scheme:"http",domainHost:!0,parse:function(K,oe){return K.host||(K.error=K.error||"HTTP URIs must have a host."),K},serialize:function(K,oe){var ue=String(K.scheme).toLowerCase()==="https";return(K.port===(ue?443:80)||K.port==="")&&(K.port=void 0),K.path||(K.path="/"),K}},RI={scheme:"https",domainHost:Xm.domainHost,parse:Xm.parse,serialize:Xm.serialize};function I1(ee){return typeof ee.secure=="boolean"?ee.secure:String(ee.scheme).toLowerCase()==="wss"}var eh={scheme:"ws",domainHost:!0,parse:function(K,oe){var ue=K;return ue.secure=I1(ue),ue.resourceName=(ue.path||"/")+(ue.query?"?"+ue.query:""),ue.path=void 0,ue.query=void 0,ue},serialize:function(K,oe){if((K.port===(I1(K)?443:80)||K.port==="")&&(K.port=void 0),typeof K.secure=="boolean"&&(K.scheme=K.secure?"wss":"ws",K.secure=void 0),K.resourceName){var ue=K.resourceName.split("?"),pe=f(ue,2),je=pe[0],Ht=pe[1];K.path=je&&je!=="/"?je:void 0,K.query=Ht,K.resourceName=void 0}return K.fragment=void 0,K}},O1={scheme:"wss",domainHost:eh.domainHost,parse:eh.parse,serialize:eh.serialize},L0={},FI=!0,BU="[A-Za-z0-9\\-\\.\\_\\~"+(FI?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Us="[0-9A-Fa-f]",MI=n(n("%[EFef]"+Us+"%"+Us+Us+"%"+Us+Us)+"|"+n("%[89A-Fa-f]"+Us+"%"+Us+Us)+"|"+n("%"+Us+Us)),UU="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",kI="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",R1=r(kI,'[\\"\\\\]'),F1="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",jU=new RegExp(BU,"g"),js=new RegExp(MI,"g"),B0=new RegExp(r("[^]",UU,"[\\.]",'[\\"]',R1),"g"),qf=new RegExp(r("[^]",BU,F1),"g"),Gf=qf;function U0(ee){var K=Qe(ee);return K.match(jU)?K:ee}var xp={scheme:"mailto",parse:function(K,oe){var ue=K,pe=ue.to=ue.path?ue.path.split(","):[];if(ue.path=void 0,ue.query){for(var je=!1,Ht={},hr=ue.query.split("&"),Pr=0,$n=hr.length;Pr<$n;++Pr){var pr=hr[Pr].split("=");switch(pr[0]){case"to":for(var cn=pr[1].split(","),vn=0,Jr=cn.length;vn<Jr;++vn)pe.push(cn[vn]);break;case"subject":ue.subject=fa(pr[1],oe);break;case"body":ue.body=fa(pr[1],oe);break;default:je=!0,Ht[fa(pr[0],oe)]=fa(pr[1],oe);break}}je&&(ue.headers=Ht)}ue.query=void 0;for(var $t=0,gn=pe.length;$t<gn;++$t){var Br=pe[$t].split("@");if(Br[0]=fa(Br[0]),oe.unicodeSupport)Br[1]=fa(Br[1],oe).toLowerCase();else try{Br[1]=kt.toASCII(fa(Br[1],oe).toLowerCase())}catch(Hc){ue.error=ue.error||"Email address's domain name can not be converted to ASCII via punycode: "+Hc}pe[$t]=Br.join("@")}return ue},serialize:function(K,oe){var ue=K,pe=a(K.to);if(pe){for(var je=0,Ht=pe.length;je<Ht;++je){var hr=String(pe[je]),Pr=hr.lastIndexOf("@"),$n=hr.slice(0,Pr).replace(js,U0).replace(js,i).replace(B0,Ne),pr=hr.slice(Pr+1);try{pr=oe.iri?kt.toUnicode(pr):kt.toASCII(fa(pr,oe).toLowerCase())}catch($t){ue.error=ue.error||"Email address's domain name can not be converted to "+(oe.iri?"Unicode":"ASCII")+" via punycode: "+$t}pe[je]=$n+"@"+pr}ue.path=pe.join(",")}var cn=K.headers=K.headers||{};K.subject&&(cn.subject=K.subject),K.body&&(cn.body=K.body);var vn=[];for(var Jr in cn)cn[Jr]!==L0[Jr]&&vn.push(Jr.replace(js,U0).replace(js,i).replace(qf,Ne)+"="+cn[Jr].replace(js,U0).replace(js,i).replace(Gf,Ne));return vn.length&&(ue.query=vn.join("&")),ue}},NI=/^([^\:]+)\:(.*)/,CE={scheme:"urn",parse:function(K,oe){var ue=K.path&&K.path.match(NI),pe=K;if(ue){var je=oe.scheme||pe.scheme||"urn",Ht=ue[1].toLowerCase(),hr=ue[2],Pr=je+":"+(oe.nid||Ht),$n=Gt[Pr];pe.nid=Ht,pe.nss=hr,pe.path=void 0,$n&&(pe=$n.parse(pe,oe))}else pe.error=pe.error||"URN can not be parsed.";return pe},serialize:function(K,oe){var ue=oe.scheme||K.scheme||"urn",pe=K.nid,je=ue+":"+(oe.nid||pe),Ht=Gt[je];Ht&&(K=Ht.serialize(K,oe));var hr=K,Pr=K.nss;return hr.path=(pe||oe.nid)+":"+Pr,hr}},$I=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,j0={scheme:"urn:uuid",parse:function(K,oe){var ue=K;return ue.uuid=ue.nss,ue.nss=void 0,!oe.tolerant&&(!ue.uuid||!ue.uuid.match($I))&&(ue.error=ue.error||"UUID is not valid."),ue},serialize:function(K,oe){var ue=K;return ue.nss=(K.uuid||"").toLowerCase(),ue}};Gt[Xm.scheme]=Xm,Gt[RI.scheme]=RI,Gt[eh.scheme]=eh,Gt[O1.scheme]=O1,Gt[xp.scheme]=xp,Gt[CE.scheme]=CE,Gt[j0.scheme]=j0,e.SCHEMES=Gt,e.pctEncChar=Ne,e.pctDecChars=Qe,e.parse=ht,e.removeDotSegments=Vi,e.serialize=zi,e.resolveComponents=Oo,e.resolve=ci,e.normalize=ui,e.equal=jf,e.escapeComponent=AE,e.unescapeComponent=fa,Object.defineProperty(e,"__esModule",{value:!0})})});var V5=C((xEn,bXe)=>{"use strict";bXe.exports=function e(r,n){if(r===n)return!0;if(r&&n&&typeof r=="object"&&typeof n=="object"){if(r.constructor!==n.constructor)return!1;var o,i,a;if(Array.isArray(r)){if(o=r.length,o!=n.length)return!1;for(i=o;i--!==0;)if(!e(r[i],n[i]))return!1;return!0}if(r.constructor===RegExp)return r.source===n.source&&r.flags===n.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===n.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===n.toString();if(a=Object.keys(r),o=a.length,o!==Object.keys(n).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=o;i--!==0;){var c=a[i];if(!e(r[c],n[c]))return!1}return!0}return r!==r&&n!==n}});var vXe=C((bEn,EXe)=>{"use strict";EXe.exports=function(r){for(var n=0,o=r.length,i=0,a;i<o;)n++,a=r.charCodeAt(i++),a>=55296&&a<=56319&&i<o&&(a=r.charCodeAt(i),(a&64512)==56320&&i++);return n}});var _E=C((EEn,_Xe)=>{"use strict";_Xe.exports={copy:brr,checkDataType:ile,checkDataTypes:Err,coerceToTypes:vrr,toHash:ale,getProperty:cle,escapeQuotes:ule,equal:V5(),ucs2length:vXe(),varOccurences:_rr,varReplace:Trr,schemaHasRules:Drr,schemaHasRulesExcept:Arr,schemaUnknownRules:Crr,toQuotedString:sle,getPathExpr:Prr,getPath:Irr,getData:Frr,unescapeFragment:Mrr,unescapeJsonPointer:ple,escapeFragment:krr,escapeJsonPointer:lle};function brr(e,r){r=r||{};for(var n in e)r[n]=e[n];return r}function ile(e,r,n,o){var i=o?" !== ":" === ",a=o?" || ":" && ",c=o?"!":"",u=o?"":"!";switch(e){case"null":return r+i+"null";case"array":return c+"Array.isArray("+r+")";case"object":return"("+c+r+a+"typeof "+r+i+'"object"'+a+u+"Array.isArray("+r+"))";case"integer":return"(typeof "+r+i+'"number"'+a+u+"("+r+" % 1)"+a+r+i+r+(n?a+c+"isFinite("+r+")":"")+")";case"number":return"(typeof "+r+i+'"'+e+'"'+(n?a+c+"isFinite("+r+")":"")+")";default:return"typeof "+r+i+'"'+e+'"'}}function Err(e,r,n){switch(e.length){case 1:return ile(e[0],r,n,!0);default:var o="",i=ale(e);i.array&&i.object&&(o=i.null?"(":"(!"+r+" || ",o+="typeof "+r+' !== "object")',delete i.null,delete i.array,delete i.object),i.number&&delete i.integer;for(var a in i)o+=(o?" && ":"")+ile(a,r,n,!0);return o}}var SXe=ale(["string","number","integer","boolean","null"]);function vrr(e,r){if(Array.isArray(r)){for(var n=[],o=0;o<r.length;o++){var i=r[o];(SXe[i]||e==="array"&&i==="array")&&(n[n.length]=i)}if(n.length)return n}else{if(SXe[r])return[r];if(e==="array"&&r==="array")return["array"]}}function ale(e){for(var r={},n=0;n<e.length;n++)r[e[n]]=!0;return r}var Srr=/^[a-z$_][a-z$_0-9]*$/i,wrr=/'|\\/g;function cle(e){return typeof e=="number"?"["+e+"]":Srr.test(e)?"."+e:"['"+ule(e)+"']"}function ule(e){return e.replace(wrr,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function _rr(e,r){r+="[^0-9]";var n=e.match(new RegExp(r,"g"));return n?n.length:0}function Trr(e,r,n){return r+="([^0-9])",n=n.replace(/\$/g,"$$$$"),e.replace(new RegExp(r,"g"),n+"$1")}function Drr(e,r){if(typeof e=="boolean")return!e;for(var n in e)if(r[n])return!0}function Arr(e,r,n){if(typeof e=="boolean")return!e&&n!="not";for(var o in e)if(o!=n&&r[o])return!0}function Crr(e,r){if(typeof e!="boolean"){for(var n in e)if(!r[n])return n}}function sle(e){return"'"+ule(e)+"'"}function Prr(e,r,n,o){var i=n?"'/' + "+r+(o?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):o?"'[' + "+r+" + ']'":"'[\\'' + "+r+" + '\\']'";return wXe(e,i)}function Irr(e,r,n){var o=sle(n?"/"+lle(r):cle(r));return wXe(e,o)}var Orr=/^\/(?:[^~]|~0|~1)*$/,Rrr=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Frr(e,r,n){var o,i,a,c;if(e==="")return"rootData";if(e[0]=="/"){if(!Orr.test(e))throw new Error("Invalid JSON-pointer: "+e);i=e,a="rootData"}else{if(c=e.match(Rrr),!c)throw new Error("Invalid JSON-pointer: "+e);if(o=+c[1],i=c[2],i=="#"){if(o>=r)throw new Error("Cannot access property/index "+o+" levels up, current level is "+r);return n[r-o]}if(o>r)throw new Error("Cannot access data "+o+" levels up, current level is "+r);if(a="data"+(r-o||""),!i)return a}for(var u=a,l=i.split("/"),p=0;p<l.length;p++){var f=l[p];f&&(a+=cle(ple(f)),u+=" && "+a)}return u}function wXe(e,r){return e=='""'?r:(e+" + "+r).replace(/([^\\])' \+ '/g,"$1")}function Mrr(e){return ple(decodeURIComponent(e))}function krr(e){return encodeURIComponent(lle(e))}function lle(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function ple(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}});var fle=C((vEn,TXe)=>{"use strict";var Nrr=_E();TXe.exports=$rr;function $rr(e){Nrr.copy(e,this)}});var AXe=C((SEn,DXe)=>{"use strict";var F0=DXe.exports=function(e,r,n){typeof r=="function"&&(n=r,r={}),n=r.cb||n;var o=typeof n=="function"?n:n.pre||function(){},i=n.post||function(){};z5(r,o,i,e,"",e)};F0.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};F0.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};F0.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};F0.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function z5(e,r,n,o,i,a,c,u,l,p){if(o&&typeof o=="object"&&!Array.isArray(o)){r(o,i,a,c,u,l,p);for(var f in o){var g=o[f];if(Array.isArray(g)){if(f in F0.arrayKeywords)for(var x=0;x<g.length;x++)z5(e,r,n,g[x],i+"/"+f+"/"+x,a,i,f,o,x)}else if(f in F0.propsKeywords){if(g&&typeof g=="object")for(var b in g)z5(e,r,n,g[b],i+"/"+f+"/"+Lrr(b),a,i,f,o,b)}else(f in F0.keywords||e.allKeys&&!(f in F0.skipKeywords))&&z5(e,r,n,g,i+"/"+f,a,i,f,o)}n(o,i,a,c,u,l,p)}}function Lrr(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var X5=C((wEn,OXe)=>{"use strict";var AI=xXe(),CXe=V5(),Z5=_E(),K5=fle(),Brr=AXe();OXe.exports=k0;k0.normalizeId=M0;k0.fullPath=J5;k0.url=Y5;k0.ids=Hrr;k0.inlineRef=dle;k0.schema=Q5;function k0(e,r,n){var o=this._refs[n];if(typeof o=="string")if(this._refs[o])o=this._refs[o];else return k0.call(this,e,r,o);if(o=o||this._schemas[n],o instanceof K5)return dle(o.schema,this._opts.inlineRefs)?o.schema:o.validate||this._compile(o);var i=Q5.call(this,r,n),a,c,u;return i&&(a=i.schema,r=i.root,u=i.baseId),a instanceof K5?c=a.validate||e.call(this,a.schema,r,void 0,u):a!==void 0&&(c=dle(a,this._opts.inlineRefs)?a:e.call(this,a,r,void 0,u)),c}function Q5(e,r){var n=AI.parse(r),o=IXe(n),i=J5(this._getId(e.schema));if(Object.keys(e.schema).length===0||o!==i){var a=M0(o),c=this._refs[a];if(typeof c=="string")return Urr.call(this,e,c,n);if(c instanceof K5)c.validate||this._compile(c),e=c;else if(c=this._schemas[a],c instanceof K5){if(c.validate||this._compile(c),a==M0(r))return{schema:c,root:e,baseId:i};e=c}else return;if(!e.schema)return;i=J5(this._getId(e.schema))}return PXe.call(this,n,i,e.schema,e)}function Urr(e,r,n){var o=Q5.call(this,e,r);if(o){var i=o.schema,a=o.baseId;e=o.root;var c=this._getId(i);return c&&(a=Y5(a,c)),PXe.call(this,n,a,i,e)}}var jrr=Z5.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function PXe(e,r,n,o){if(e.fragment=e.fragment||"",e.fragment.slice(0,1)=="/"){for(var i=e.fragment.split("/"),a=1;a<i.length;a++){var c=i[a];if(c){if(c=Z5.unescapeFragment(c),n=n[c],n===void 0)break;var u;if(!jrr[c]&&(u=this._getId(n),u&&(r=Y5(r,u)),n.$ref)){var l=Y5(r,n.$ref),p=Q5.call(this,o,l);p&&(n=p.schema,o=p.root,r=p.baseId)}}}if(n!==void 0&&n!==o.schema)return{schema:n,root:o,baseId:r}}}var qrr=Z5.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function dle(e,r){if(r===!1)return!1;if(r===void 0||r===!0)return mle(e);if(r)return hle(e)<=r}function mle(e){var r;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(r=e[n],typeof r=="object"&&!mle(r))return!1}else for(var o in e)if(o=="$ref"||(r=e[o],typeof r=="object"&&!mle(r)))return!1;return!0}function hle(e){var r=0,n;if(Array.isArray(e)){for(var o=0;o<e.length;o++)if(n=e[o],typeof n=="object"&&(r+=hle(n)),r==1/0)return 1/0}else for(var i in e){if(i=="$ref")return 1/0;if(qrr[i])r++;else if(n=e[i],typeof n=="object"&&(r+=hle(n)+1),r==1/0)return 1/0}return r}function J5(e,r){r!==!1&&(e=M0(e));var n=AI.parse(e);return IXe(n)}function IXe(e){return AI.serialize(e).split("#")[0]+"#"}var Grr=/#\/?$/;function M0(e){return e?e.replace(Grr,""):""}function Y5(e,r){return r=M0(r),AI.resolve(e,r)}function Hrr(e){var r=M0(this._getId(e)),n={"":r},o={"":J5(r,!1)},i={},a=this;return Brr(e,{allKeys:!0},function(c,u,l,p,f,g,x){if(u!==""){var b=a._getId(c),E=n[p],S=o[p]+"/"+f;if(x!==void 0&&(S+="/"+(typeof x=="number"?x:Z5.escapeFragment(x))),typeof b=="string"){b=E=M0(E?AI.resolve(E,b):b);var _=a._refs[b];if(typeof _=="string"&&(_=a._refs[_]),_&&_.schema){if(!CXe(c,_.schema))throw new Error('id "'+b+'" resolves to more than one schema')}else if(b!=M0(S))if(b[0]=="#"){if(i[b]&&!CXe(c,i[b]))throw new Error('id "'+b+'" resolves to more than one schema');i[b]=c}else a._refs[b]=S}n[u]=E,o[u]=S}}),i}});var eU=C((_En,FXe)=>{"use strict";var gle=X5();FXe.exports={Validation:RXe(Wrr),MissingRef:RXe(yle)};function Wrr(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0}yle.message=function(e,r){return"can't resolve reference "+r+" from id "+e};function yle(e,r,n){this.message=n||yle.message(e,r),this.missingRef=gle.url(e,r),this.missingSchema=gle.normalizeId(gle.fullPath(this.missingRef))}function RXe(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}});var xle=C((TEn,MXe)=>{"use strict";MXe.exports=function(e,r){r||(r={}),typeof r=="function"&&(r={cmp:r});var n=typeof r.cycles=="boolean"?r.cycles:!1,o=r.cmp&&function(a){return function(c){return function(u,l){var p={key:u,value:c[u]},f={key:l,value:c[l]};return a(p,f)}}}(r.cmp),i=[];return function a(c){if(c&&c.toJSON&&typeof c.toJSON=="function"&&(c=c.toJSON()),c!==void 0){if(typeof c=="number")return isFinite(c)?""+c:"null";if(typeof c!="object")return JSON.stringify(c);var u,l;if(Array.isArray(c)){for(l="[",u=0;u<c.length;u++)u&&(l+=","),l+=a(c[u])||"null";return l+"]"}if(c===null)return"null";if(i.indexOf(c)!==-1){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var p=i.push(c)-1,f=Object.keys(c).sort(o&&o(c));for(l="",u=0;u<f.length;u++){var g=f[u],x=a(c[g]);x&&(l&&(l+=","),l+=JSON.stringify(g)+":"+x)}return i.splice(p,1),"{"+l+"}"}}(e)}});var ble=C((DEn,kXe)=>{"use strict";kXe.exports=function(r,n,o){var i="",a=r.schema.$async===!0,c=r.util.schemaHasRulesExcept(r.schema,r.RULES.all,"$ref"),u=r.self._getId(r.schema);if(r.opts.strictKeywords){var l=r.util.schemaUnknownRules(r.schema,r.RULES.keywords);if(l){var p="unknown keyword: "+l;if(r.opts.strictKeywords==="log")r.logger.warn(p);else throw new Error(p)}}if(r.isTop&&(i+=" var validate = ",a&&(r.async=!0,i+="async "),i+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",u&&(r.opts.sourceCode||r.opts.processCode)&&(i+=" "+("/*# sourceURL="+u+" */")+" ")),typeof r.schema=="boolean"||!(c||r.schema.$ref)){var n="false schema",f=r.level,g=r.dataLevel,x=r.schema[n],b=r.schemaPath+r.util.getProperty(n),E=r.errSchemaPath+"/"+n,O=!r.opts.allErrors,G,S="data"+(g||""),R="valid"+f;if(r.schema===!1){r.isTop?O=!0:i+=" var "+R+" = false; ";var _=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(G||"false schema")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(E)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: 'boolean schema is false' "),r.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+r.schemaPath+" , data: "+S+" "),i+=" } "):i+=" {} ";var D=i;i=_.pop(),!r.compositeRule&&O?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else r.isTop?a?i+=" return data; ":i+=" validate.errors = null; return true; ":i+=" var "+R+" = true; ";return r.isTop&&(i+=" }; return validate; "),i}if(r.isTop){var I=r.isTop,f=r.level=0,g=r.dataLevel=0,S="data";if(r.rootId=r.resolve.fullPath(r.self._getId(r.root.schema)),r.baseId=r.baseId||r.rootId,delete r.isTop,r.dataPathArr=[""],r.schema.default!==void 0&&r.opts.useDefaults&&r.opts.strictDefaults){var A="default is ignored in the schema root";if(r.opts.strictDefaults==="log")r.logger.warn(A);else throw new Error(A)}i+=" var vErrors = null; ",i+=" var errors = 0; ",i+=" if (rootData === undefined) rootData = data; "}else{var f=r.level,g=r.dataLevel,S="data"+(g||"");if(u&&(r.baseId=r.resolve.url(r.baseId,u)),a&&!r.async)throw new Error("async schema in sync schema");i+=" var errs_"+f+" = errors;"}var R="valid"+f,O=!r.opts.allErrors,k="",j="",G,L=r.schema.type,H=Array.isArray(L);if(L&&r.opts.nullable&&r.schema.nullable===!0&&(H?L.indexOf("null")==-1&&(L=L.concat("null")):L!="null"&&(L=[L,"null"],H=!0)),H&&L.length==1&&(L=L[0],H=!1),r.schema.$ref&&c){if(r.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+r.errSchemaPath+'" (see option extendRefs)');r.opts.extendRefs!==!0&&(c=!1,r.logger.warn('$ref: keywords ignored in schema at path "'+r.errSchemaPath+'"'))}if(r.schema.$comment&&r.opts.$comment&&(i+=" "+r.RULES.all.$comment.code(r,"$comment")),L){if(r.opts.coerceTypes)var F=r.util.coerceToTypes(r.opts.coerceTypes,L);var Y=r.RULES.types[L];if(F||H||Y===!0||Y&&!Io(Y)){var b=r.schemaPath+".type",E=r.errSchemaPath+"/type",b=r.schemaPath+".type",E=r.errSchemaPath+"/type",V=H?"checkDataTypes":"checkDataType";if(i+=" if ("+r.util[V](L,S,r.opts.strictNumbers,!0)+") { ",F){var Q="dataType"+f,q="coerced"+f;i+=" var "+Q+" = typeof "+S+"; var "+q+" = undefined; ",r.opts.coerceTypes=="array"&&(i+=" if ("+Q+" == 'object' && Array.isArray("+S+") && "+S+".length == 1) { "+S+" = "+S+"[0]; "+Q+" = typeof "+S+"; if ("+r.util.checkDataType(r.schema.type,S,r.opts.strictNumbers)+") "+q+" = "+S+"; } "),i+=" if ("+q+" !== undefined) ; ";var Z=F;if(Z)for(var ie,se=-1,le=Z.length-1;se<le;)ie=Z[se+=1],ie=="string"?i+=" else if ("+Q+" == 'number' || "+Q+" == 'boolean') "+q+" = '' + "+S+"; else if ("+S+" === null) "+q+" = ''; ":ie=="number"||ie=="integer"?(i+=" else if ("+Q+" == 'boolean' || "+S+" === null || ("+Q+" == 'string' && "+S+" && "+S+" == +"+S+" ",ie=="integer"&&(i+=" && !("+S+" % 1)"),i+=")) "+q+" = +"+S+"; "):ie=="boolean"?i+=" else if ("+S+" === 'false' || "+S+" === 0 || "+S+" === null) "+q+" = false; else if ("+S+" === 'true' || "+S+" === 1) "+q+" = true; ":ie=="null"?i+=" else if ("+S+" === '' || "+S+" === 0 || "+S+" === false) "+q+" = null; ":r.opts.coerceTypes=="array"&&ie=="array"&&(i+=" else if ("+Q+" == 'string' || "+Q+" == 'number' || "+Q+" == 'boolean' || "+S+" == null) "+q+" = ["+S+"]; ");i+=" else { ";var _=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(G||"type")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(E)+" , params: { type: '",H?i+=""+L.join(","):i+=""+L,i+="' } ",r.opts.messages!==!1&&(i+=" , message: 'should be ",H?i+=""+L.join(","):i+=""+L,i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+S+" "),i+=" } "):i+=" {} ";var D=i;i=_.pop(),!r.compositeRule&&O?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } if ("+q+" !== undefined) { ";var _e=g?"data"+(g-1||""):"parentData",Ge=g?r.dataPathArr[g]:"parentDataProperty";i+=" "+S+" = "+q+"; ",g||(i+="if ("+_e+" !== undefined)"),i+=" "+_e+"["+Ge+"] = "+q+"; } "}else{var _=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(G||"type")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(E)+" , params: { type: '",H?i+=""+L.join(","):i+=""+L,i+="' } ",r.opts.messages!==!1&&(i+=" , message: 'should be ",H?i+=""+L.join(","):i+=""+L,i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+S+" "),i+=" } "):i+=" {} ";var D=i;i=_.pop(),!r.compositeRule&&O?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}i+=" } "}}if(r.schema.$ref&&!c)i+=" "+r.RULES.all.$ref.code(r,"$ref")+" ",O&&(i+=" } if (errors === ",I?i+="0":i+="errs_"+f,i+=") { ",j+="}");else{var Mt=r.RULES;if(Mt){for(var Y,Zt=-1,kt=Mt.length-1;Zt<kt;)if(Y=Mt[Zt+=1],Io(Y)){if(Y.type&&(i+=" if ("+r.util.checkDataType(Y.type,S,r.opts.strictNumbers)+") { "),r.opts.useDefaults){if(Y.type=="object"&&r.schema.properties){var x=r.schema.properties,Gt=Object.keys(x),Ne=Gt;if(Ne)for(var Qe,lo=-1,xe=Ne.length-1;lo<xe;){Qe=Ne[lo+=1];var ze=x[Qe];if(ze.default!==void 0){var ge=S+r.util.getProperty(Qe);if(r.compositeRule){if(r.opts.strictDefaults){var A="default is ignored for: "+ge;if(r.opts.strictDefaults==="log")r.logger.warn(A);else throw new Error(A)}}else i+=" if ("+ge+" === undefined ",r.opts.useDefaults=="empty"&&(i+=" || "+ge+" === null || "+ge+" === '' "),i+=" ) "+ge+" = ",r.opts.useDefaults=="shared"?i+=" "+r.useDefault(ze.default)+" ":i+=" "+JSON.stringify(ze.default)+" ",i+="; "}}}else if(Y.type=="array"&&Array.isArray(r.schema.items)){var ut=r.schema.items;if(ut){for(var ze,se=-1,Nt=ut.length-1;se<Nt;)if(ze=ut[se+=1],ze.default!==void 0){var ge=S+"["+se+"]";if(r.compositeRule){if(r.opts.strictDefaults){var A="default is ignored for: "+ge;if(r.opts.strictDefaults==="log")r.logger.warn(A);else throw new Error(A)}}else i+=" if ("+ge+" === undefined ",r.opts.useDefaults=="empty"&&(i+=" || "+ge+" === null || "+ge+" === '' "),i+=" ) "+ge+" = ",r.opts.useDefaults=="shared"?i+=" "+r.useDefault(ze.default)+" ":i+=" "+JSON.stringify(ze.default)+" ",i+="; "}}}}var ht=Y.rules;if(ht){for(var nr,Zn=-1,Nn=ht.length-1;Zn<Nn;)if(nr=ht[Zn+=1],Vi(nr)){var yp=nr.code(r,nr.keyword,Y.type);yp&&(i+=" "+yp+" ",O&&(k+="}"))}}if(O&&(i+=" "+k+" ",k=""),Y.type&&(i+=" } ",L&&L===Y.type&&!F)){i+=" else { ";var b=r.schemaPath+".type",E=r.errSchemaPath+"/type",_=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(G||"type")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(E)+" , params: { type: '",H?i+=""+L.join(","):i+=""+L,i+="' } ",r.opts.messages!==!1&&(i+=" , message: 'should be ",H?i+=""+L.join(","):i+=""+L,i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+S+" "),i+=" } "):i+=" {} ";var D=i;i=_.pop(),!r.compositeRule&&O?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } "}O&&(i+=" if (errors === ",I?i+="0":i+="errs_"+f,i+=") { ",j+="}")}}}O&&(i+=" "+j+" "),I?(a?(i+=" if (errors === 0) return data; ",i+=" else throw new ValidationError(vErrors); "):(i+=" validate.errors = vErrors; ",i+=" return errors === 0; "),i+=" }; return validate;"):i+=" var "+R+" = errors === errs_"+f+";";function Io(Oo){for(var ci=Oo.rules,ui=0;ui<ci.length;ui++)if(Vi(ci[ui]))return!0}function Vi(Oo){return r.schema[Oo.keyword]!==void 0||Oo.implements&&zi(Oo)}function zi(Oo){for(var ci=Oo.implements,ui=0;ui<ci.length;ui++)if(r.schema[ci[ui]]!==void 0)return!0}return i}});var UXe=C((AEn,BXe)=>{"use strict";var tU=X5(),nU=_E(),$Xe=eU(),Vrr=xle(),NXe=ble(),zrr=nU.ucs2length,Krr=V5(),Jrr=$Xe.Validation;BXe.exports=Ele;function Ele(e,r,n,o){var i=this,a=this._opts,c=[void 0],u={},l=[],p={},f=[],g={},x=[];r=r||{schema:e,refVal:c,refs:u};var b=Yrr.call(this,e,r,o),E=this._compilations[b.index];if(b.compiling)return E.callValidate=A;var S=this._formats,_=this.RULES;try{var D=R(e,r,n,o);E.validate=D;var I=E.callValidate;return I&&(I.schema=D.schema,I.errors=null,I.refs=D.refs,I.refVal=D.refVal,I.root=D.root,I.$async=D.$async,a.sourceCode&&(I.source=D.source)),D}finally{Zrr.call(this,e,r,o)}function A(){var V=E.validate,Q=V.apply(this,arguments);return A.errors=V.errors,Q}function R(V,Q,q,Z){var ie=!Q||Q&&Q.schema==V;if(Q.schema!=r.schema)return Ele.call(i,V,Q,q,Z);var se=V.$async===!0,le=NXe({isTop:!0,schema:V,isRoot:ie,baseId:Z,root:Q,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:$Xe.MissingRef,RULES:_,validate:NXe,util:nU,resolve:tU,resolveRef:O,usePattern:H,useDefault:F,useCustomRule:Y,opts:a,formats:S,logger:i.logger,self:i});le=rU(c,enr)+rU(l,Qrr)+rU(f,Xrr)+rU(x,tnr)+le,a.processCode&&(le=a.processCode(le,V));var _e;try{var Ge=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",le);_e=Ge(i,_,S,r,c,f,x,Krr,zrr,Jrr),c[0]=_e}catch(Mt){throw i.logger.error("Error compiling schema, function code:",le),Mt}return _e.schema=V,_e.errors=null,_e.refs=u,_e.refVal=c,_e.root=ie?_e:Q,se&&(_e.$async=!0),a.sourceCode===!0&&(_e.source={code:le,patterns:l,defaults:f}),_e}function O(V,Q,q){Q=tU.url(V,Q);var Z=u[Q],ie,se;if(Z!==void 0)return ie=c[Z],se="refVal["+Z+"]",L(ie,se);if(!q&&r.refs){var le=r.refs[Q];if(le!==void 0)return ie=r.refVal[le],se=k(Q,ie),L(ie,se)}se=k(Q);var _e=tU.call(i,R,r,Q);if(_e===void 0){var Ge=n&&n[Q];Ge&&(_e=tU.inlineRef(Ge,a.inlineRefs)?Ge:Ele.call(i,Ge,r,n,V))}if(_e===void 0)j(Q);else return G(Q,_e),L(_e,se)}function k(V,Q){var q=c.length;return c[q]=Q,u[V]=q,"refVal"+q}function j(V){delete u[V]}function G(V,Q){var q=u[V];c[q]=Q}function L(V,Q){return typeof V=="object"||typeof V=="boolean"?{code:Q,schema:V,inline:!0}:{code:Q,$async:V&&!!V.$async}}function H(V){var Q=p[V];return Q===void 0&&(Q=p[V]=l.length,l[Q]=V),"pattern"+Q}function F(V){switch(typeof V){case"boolean":case"number":return""+V;case"string":return nU.toQuotedString(V);case"object":if(V===null)return"null";var Q=Vrr(V),q=g[Q];return q===void 0&&(q=g[Q]=f.length,f[q]=V),"default"+q}}function Y(V,Q,q,Z){if(i._opts.validateSchema!==!1){var ie=V.definition.dependencies;if(ie&&!ie.every(function(Ne){return Object.prototype.hasOwnProperty.call(q,Ne)}))throw new Error("parent schema must have all required keywords: "+ie.join(","));var se=V.definition.validateSchema;if(se){var le=se(Q);if(!le){var _e="keyword schema is invalid: "+i.errorsText(se.errors);if(i._opts.validateSchema=="log")i.logger.error(_e);else throw new Error(_e)}}}var Ge=V.definition.compile,Mt=V.definition.inline,Zt=V.definition.macro,kt;if(Ge)kt=Ge.call(i,Q,q,Z);else if(Zt)kt=Zt.call(i,Q,q,Z),a.validateSchema!==!1&&i.validateSchema(kt,!0);else if(Mt)kt=Mt.call(i,Z,V.keyword,Q,q);else if(kt=V.definition.validate,!kt)return;if(kt===void 0)throw new Error('custom keyword "'+V.keyword+'"failed to compile');var Gt=x.length;return x[Gt]=kt,{code:"customRule"+Gt,validate:kt}}}function Yrr(e,r,n){var o=LXe.call(this,e,r,n);return o>=0?{index:o,compiling:!0}:(o=this._compilations.length,this._compilations[o]={schema:e,root:r,baseId:n},{index:o,compiling:!1})}function Zrr(e,r,n){var o=LXe.call(this,e,r,n);o>=0&&this._compilations.splice(o,1)}function LXe(e,r,n){for(var o=0;o<this._compilations.length;o++){var i=this._compilations[o];if(i.schema==e&&i.root==r&&i.baseId==n)return o}return-1}function Qrr(e,r){return"var pattern"+e+" = new RegExp("+nU.toQuotedString(r[e])+");"}function Xrr(e){return"var default"+e+" = defaults["+e+"];"}function enr(e,r){return r[e]===void 0?"":"var refVal"+e+" = refVal["+e+"];"}function tnr(e){return"var customRule"+e+" = customRules["+e+"];"}function rU(e,r){if(!e.length)return"";for(var n="",o=0;o<e.length;o++)n+=r(o,e);return n}});var qXe=C((CEn,jXe)=>{"use strict";var oU=jXe.exports=function(){this._cache={}};oU.prototype.put=function(r,n){this._cache[r]=n};oU.prototype.get=function(r){return this._cache[r]};oU.prototype.del=function(r){delete this._cache[r]};oU.prototype.clear=function(){this._cache={}}});var eet=C((PEn,XXe)=>{"use strict";var rnr=_E(),nnr=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,onr=[0,31,28,31,30,31,30,31,31,30,31,30,31],inr=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,GXe=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,snr=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,anr=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,HXe=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,WXe=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,VXe=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,zXe=/^(?:\/(?:[^~/]|~0|~1)*)*$/,KXe=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,JXe=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;XXe.exports=iU;function iU(e){return e=e=="full"?"full":"fast",rnr.copy(iU[e])}iU.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":HXe,url:WXe,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:GXe,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:QXe,uuid:VXe,"json-pointer":zXe,"json-pointer-uri-fragment":KXe,"relative-json-pointer":JXe};iU.full={date:YXe,time:ZXe,"date-time":lnr,uri:fnr,"uri-reference":anr,"uri-template":HXe,url:WXe,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:GXe,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:QXe,uuid:VXe,"json-pointer":zXe,"json-pointer-uri-fragment":KXe,"relative-json-pointer":JXe};function cnr(e){return e%4===0&&(e%100!==0||e%400===0)}function YXe(e){var r=e.match(nnr);if(!r)return!1;var n=+r[1],o=+r[2],i=+r[3];return o>=1&&o<=12&&i>=1&&i<=(o==2&&cnr(n)?29:onr[o])}function ZXe(e,r){var n=e.match(inr);if(!n)return!1;var o=n[1],i=n[2],a=n[3],c=n[5];return(o<=23&&i<=59&&a<=59||o==23&&i==59&&a==60)&&(!r||c)}var unr=/t|\s/i;function lnr(e){var r=e.split(unr);return r.length==2&&YXe(r[0])&&ZXe(r[1],!0)}var pnr=/\/|:/;function fnr(e){return pnr.test(e)&&snr.test(e)}var dnr=/[^\\]\\Z/;function QXe(e){if(dnr.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var ret=C((IEn,tet)=>{"use strict";tet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.errSchemaPath+"/"+n,p=!r.opts.allErrors,f="data"+(c||""),g="valid"+a,x,b;if(u=="#"||u=="#/")r.isRoot?(x=r.async,b="validate"):(x=r.root.schema.$async===!0,b="root.refVal[0]");else{var E=r.resolveRef(r.baseId,u,r.isRoot);if(E===void 0){var S=r.MissingRefError.message(r.baseId,u);if(r.opts.missingRefs=="fail"){r.logger.error(S);var _=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(l)+" , params: { ref: '"+r.util.escapeQuotes(u)+"' } ",r.opts.messages!==!1&&(i+=" , message: 'can\\'t resolve reference "+r.util.escapeQuotes(u)+"' "),r.opts.verbose&&(i+=" , schema: "+r.util.toQuotedString(u)+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var D=i;i=_.pop(),!r.compositeRule&&p?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",p&&(i+=" if (false) { ")}else if(r.opts.missingRefs=="ignore")r.logger.warn(S),p&&(i+=" if (true) { ");else throw new r.MissingRefError(r.baseId,u,S)}else if(E.inline){var I=r.util.copy(r);I.level++;var A="valid"+I.level;I.schema=E.schema,I.schemaPath="",I.errSchemaPath=u;var R=r.validate(I).replace(/validate\.schema/g,E.code);i+=" "+R+" ",p&&(i+=" if ("+A+") { ")}else x=E.$async===!0||r.async&&E.$async!==!1,b=E.code}if(b){var _=_||[];_.push(i),i="",r.opts.passContext?i+=" "+b+".call(this, ":i+=" "+b+"( ",i+=" "+f+", (dataPath || '')",r.errorPath!='""'&&(i+=" + "+r.errorPath);var O=c?"data"+(c-1||""):"parentData",k=c?r.dataPathArr[c]:"parentDataProperty";i+=" , "+O+" , "+k+", rootData) ";var j=i;if(i=_.pop(),x){if(!r.async)throw new Error("async schema referenced by sync schema");p&&(i+=" var "+g+"; "),i+=" try { await "+j+"; ",p&&(i+=" "+g+" = true; "),i+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",p&&(i+=" "+g+" = false; "),i+=" } ",p&&(i+=" if ("+g+") { ")}else i+=" if (!"+j+") { if (vErrors === null) vErrors = "+b+".errors; else vErrors = vErrors.concat("+b+".errors); errors = vErrors.length; } ",p&&(i+=" else { ")}return i}});var oet=C((OEn,net)=>{"use strict";net.exports=function(r,n,o){var i=" ",a=r.schema[n],c=r.schemaPath+r.util.getProperty(n),u=r.errSchemaPath+"/"+n,l=!r.opts.allErrors,p=r.util.copy(r),f="";p.level++;var g="valid"+p.level,x=p.baseId,b=!0,E=a;if(E)for(var S,_=-1,D=E.length-1;_<D;)S=E[_+=1],(r.opts.strictKeywords?typeof S=="object"&&Object.keys(S).length>0||S===!1:r.util.schemaHasRules(S,r.RULES.all))&&(b=!1,p.schema=S,p.schemaPath=c+"["+_+"]",p.errSchemaPath=u+"/"+_,i+=" "+r.validate(p)+" ",p.baseId=x,l&&(i+=" if ("+g+") { ",f+="}"));return l&&(b?i+=" if (true) { ":i+=" "+f.slice(0,-1)+" "),i}});var set=C((REn,iet)=>{"use strict";iet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b="errs__"+a,E=r.util.copy(r),S="";E.level++;var _="valid"+E.level,D=u.every(function(G){return r.opts.strictKeywords?typeof G=="object"&&Object.keys(G).length>0||G===!1:r.util.schemaHasRules(G,r.RULES.all)});if(D){var I=E.baseId;i+=" var "+b+" = errors; var "+x+" = false; ";var A=r.compositeRule;r.compositeRule=E.compositeRule=!0;var R=u;if(R)for(var O,k=-1,j=R.length-1;k<j;)O=R[k+=1],E.schema=O,E.schemaPath=l+"["+k+"]",E.errSchemaPath=p+"/"+k,i+=" "+r.validate(E)+" ",E.baseId=I,i+=" "+x+" = "+x+" || "+_+"; if (!"+x+") { ",S+="}";r.compositeRule=E.compositeRule=A,i+=" "+S+" if (!"+x+") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: 'should match some schema in anyOf' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&f&&(r.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } else { errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; } ",r.opts.allErrors&&(i+=" } ")}else f&&(i+=" if (true) { ");return i}});var cet=C((FEn,aet)=>{"use strict";aet.exports=function(r,n,o){var i=" ",a=r.schema[n],c=r.errSchemaPath+"/"+n,u=!r.opts.allErrors,l=r.util.toQuotedString(a);return r.opts.$comment===!0?i+=" console.log("+l+");":typeof r.opts.$comment=="function"&&(i+=" self._opts.$comment("+l+", "+r.util.toQuotedString(c)+", validate.root.schema);"),i}});var pet=C((MEn,uet)=>{"use strict";uet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b=r.opts.$data&&u&&u.$data,E;b?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",E="schema"+a):E=u,b||(i+=" var schema"+a+" = validate.schema"+l+";"),i+="var "+x+" = equal("+g+", schema"+a+"); if (!"+x+") { ";var S=S||[];S.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'const' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { allowedValue: schema"+a+" } ",r.opts.messages!==!1&&(i+=" , message: 'should be equal to constant' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var _=i;return i=S.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+_+"]); ":i+=" validate.errors = ["+_+"]; return false; ":i+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",f&&(i+=" else { "),i}});var det=C((kEn,fet)=>{"use strict";fet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b="errs__"+a,E=r.util.copy(r),S="";E.level++;var _="valid"+E.level,D="i"+a,I=E.dataLevel=r.dataLevel+1,A="data"+I,R=r.baseId,O=r.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:r.util.schemaHasRules(u,r.RULES.all);if(i+="var "+b+" = errors;var "+x+";",O){var k=r.compositeRule;r.compositeRule=E.compositeRule=!0,E.schema=u,E.schemaPath=l,E.errSchemaPath=p,i+=" var "+_+" = false; for (var "+D+" = 0; "+D+" < "+g+".length; "+D+"++) { ",E.errorPath=r.util.getPathExpr(r.errorPath,D,r.opts.jsonPointers,!0);var j=g+"["+D+"]";E.dataPathArr[I]=D;var G=r.validate(E);E.baseId=R,r.util.varOccurences(G,A)<2?i+=" "+r.util.varReplace(G,A,j)+" ":i+=" var "+A+" = "+j+"; "+G+" ",i+=" if ("+_+") break; } ",r.compositeRule=E.compositeRule=k,i+=" "+S+" if (!"+_+") {"}else i+=" if ("+g+".length == 0) {";var L=L||[];L.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: 'should contain a valid item' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var H=i;return i=L.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+H+"]); ":i+=" validate.errors = ["+H+"]; return false; ":i+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { ",O&&(i+=" errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; } "),r.opts.allErrors&&(i+=" } "),i}});var het=C((NEn,met)=>{"use strict";met.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="errs__"+a,b=r.util.copy(r),E="";b.level++;var S="valid"+b.level,_={},D={},I=r.opts.ownProperties;for(k in u)if(k!="__proto__"){var A=u[k],R=Array.isArray(A)?D:_;R[k]=A}i+="var "+x+" = errors;";var O=r.errorPath;i+="var missing"+a+";";for(var k in D)if(R=D[k],R.length){if(i+=" if ( "+g+r.util.getProperty(k)+" !== undefined ",I&&(i+=" && Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(k)+"') "),f){i+=" && ( ";var j=R;if(j)for(var G,L=-1,H=j.length-1;L<H;){G=j[L+=1],L&&(i+=" || ");var F=r.util.getProperty(G),Y=g+F;i+=" ( ( "+Y+" === undefined ",I&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(G)+"') "),i+=") && (missing"+a+" = "+r.util.toQuotedString(r.opts.jsonPointers?G:F)+") ) "}i+=")) { ";var V="missing"+a,Q="' + "+V+" + '";r.opts._errorDataPathProperty&&(r.errorPath=r.opts.jsonPointers?r.util.getPathExpr(O,V,!0):O+" + "+V);var q=q||[];q.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { property: '"+r.util.escapeQuotes(k)+"', missingProperty: '"+Q+"', depsCount: "+R.length+", deps: '"+r.util.escapeQuotes(R.length==1?R[0]:R.join(", "))+"' } ",r.opts.messages!==!1&&(i+=" , message: 'should have ",R.length==1?i+="property "+r.util.escapeQuotes(R[0]):i+="properties "+r.util.escapeQuotes(R.join(", ")),i+=" when property "+r.util.escapeQuotes(k)+" is present' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var Z=i;i=q.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+Z+"]); ":i+=" validate.errors = ["+Z+"]; return false; ":i+=" var err = "+Z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{i+=" ) { ";var ie=R;if(ie)for(var G,se=-1,le=ie.length-1;se<le;){G=ie[se+=1];var F=r.util.getProperty(G),Q=r.util.escapeQuotes(G),Y=g+F;r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPath(O,G,r.opts.jsonPointers)),i+=" if ( "+Y+" === undefined ",I&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(G)+"') "),i+=") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { property: '"+r.util.escapeQuotes(k)+"', missingProperty: '"+Q+"', depsCount: "+R.length+", deps: '"+r.util.escapeQuotes(R.length==1?R[0]:R.join(", "))+"' } ",r.opts.messages!==!1&&(i+=" , message: 'should have ",R.length==1?i+="property "+r.util.escapeQuotes(R[0]):i+="properties "+r.util.escapeQuotes(R.join(", ")),i+=" when property "+r.util.escapeQuotes(k)+" is present' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}i+=" } ",f&&(E+="}",i+=" else { ")}r.errorPath=O;var _e=b.baseId;for(var k in _){var A=_[k];(r.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:r.util.schemaHasRules(A,r.RULES.all))&&(i+=" "+S+" = true; if ( "+g+r.util.getProperty(k)+" !== undefined ",I&&(i+=" && Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(k)+"') "),i+=") { ",b.schema=A,b.schemaPath=l+r.util.getProperty(k),b.errSchemaPath=p+"/"+r.util.escapeFragment(k),i+=" "+r.validate(b)+" ",b.baseId=_e,i+=" } ",f&&(i+=" if ("+S+") { ",E+="}"))}return f&&(i+=" "+E+" if ("+x+" == errors) {"),i}});var yet=C(($En,get)=>{"use strict";get.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b=r.opts.$data&&u&&u.$data,E;b?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",E="schema"+a):E=u;var S="i"+a,_="schema"+a;b||(i+=" var "+_+" = validate.schema"+l+";"),i+="var "+x+";",b&&(i+=" if (schema"+a+" === undefined) "+x+" = true; else if (!Array.isArray(schema"+a+")) "+x+" = false; else {"),i+=""+x+" = false;for (var "+S+"=0; "+S+"<"+_+".length; "+S+"++) if (equal("+g+", "+_+"["+S+"])) { "+x+" = true; break; }",b&&(i+=" } "),i+=" if (!"+x+") { ";var D=D||[];D.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { allowedValues: schema"+a+" } ",r.opts.messages!==!1&&(i+=" , message: 'should be equal to one of the allowed values' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var I=i;return i=D.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+I+"]); ":i+=" validate.errors = ["+I+"]; return false; ":i+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",f&&(i+=" else { "),i}});var bet=C((LEn,xet)=>{"use strict";xet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||"");if(r.opts.format===!1)return f&&(i+=" if (true) { "),i;var x=r.opts.$data&&u&&u.$data,b;x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u;var E=r.opts.unknownFormats,S=Array.isArray(E);if(x){var _="format"+a,D="isObject"+a,I="formatType"+a;i+=" var "+_+" = formats["+b+"]; var "+D+" = typeof "+_+" == 'object' && !("+_+" instanceof RegExp) && "+_+".validate; var "+I+" = "+D+" && "+_+".type || 'string'; if ("+D+") { ",r.async&&(i+=" var async"+a+" = "+_+".async; "),i+=" "+_+" = "+_+".validate; } if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'string') || "),i+=" (",E!="ignore"&&(i+=" ("+b+" && !"+_+" ",S&&(i+=" && self._opts.unknownFormats.indexOf("+b+") == -1 "),i+=") || "),i+=" ("+_+" && "+I+" == '"+o+"' && !(typeof "+_+" == 'function' ? ",r.async?i+=" (async"+a+" ? await "+_+"("+g+") : "+_+"("+g+")) ":i+=" "+_+"("+g+") ",i+=" : "+_+".test("+g+"))))) {"}else{var _=r.formats[u];if(!_){if(E=="ignore")return r.logger.warn('unknown format "'+u+'" ignored in schema at path "'+r.errSchemaPath+'"'),f&&(i+=" if (true) { "),i;if(S&&E.indexOf(u)>=0)return f&&(i+=" if (true) { "),i;throw new Error('unknown format "'+u+'" is used in schema at path "'+r.errSchemaPath+'"')}var D=typeof _=="object"&&!(_ instanceof RegExp)&&_.validate,I=D&&_.type||"string";if(D){var A=_.async===!0;_=_.validate}if(I!=o)return f&&(i+=" if (true) { "),i;if(A){if(!r.async)throw new Error("async format in sync schema");var R="formats"+r.util.getProperty(u)+".validate";i+=" if (!(await "+R+"("+g+"))) { "}else{i+=" if (! ";var R="formats"+r.util.getProperty(u);D&&(R+=".validate"),typeof _=="function"?i+=" "+R+"("+g+") ":i+=" "+R+".test("+g+") ",i+=") { "}}var O=O||[];O.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'format' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { format: ",x?i+=""+b:i+=""+r.util.toQuotedString(u),i+=" } ",r.opts.messages!==!1&&(i+=` , message: 'should match format "`,x?i+="' + "+b+" + '":i+=""+r.util.escapeQuotes(u),i+=`"' `),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+r.util.toQuotedString(u),i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var k=i;return i=O.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+k+"]); ":i+=" validate.errors = ["+k+"]; return false; ":i+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",f&&(i+=" else { "),i}});var vet=C((BEn,Eet)=>{"use strict";Eet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b="errs__"+a,E=r.util.copy(r);E.level++;var S="valid"+E.level,_=r.schema.then,D=r.schema.else,I=_!==void 0&&(r.opts.strictKeywords?typeof _=="object"&&Object.keys(_).length>0||_===!1:r.util.schemaHasRules(_,r.RULES.all)),A=D!==void 0&&(r.opts.strictKeywords?typeof D=="object"&&Object.keys(D).length>0||D===!1:r.util.schemaHasRules(D,r.RULES.all)),R=E.baseId;if(I||A){var O;E.createErrors=!1,E.schema=u,E.schemaPath=l,E.errSchemaPath=p,i+=" var "+b+" = errors; var "+x+" = true; ";var k=r.compositeRule;r.compositeRule=E.compositeRule=!0,i+=" "+r.validate(E)+" ",E.baseId=R,E.createErrors=!0,i+=" errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; } ",r.compositeRule=E.compositeRule=k,I?(i+=" if ("+S+") { ",E.schema=r.schema.then,E.schemaPath=r.schemaPath+".then",E.errSchemaPath=r.errSchemaPath+"/then",i+=" "+r.validate(E)+" ",E.baseId=R,i+=" "+x+" = "+S+"; ",I&&A?(O="ifClause"+a,i+=" var "+O+" = 'then'; "):O="'then'",i+=" } ",A&&(i+=" else { ")):i+=" if (!"+S+") { ",A&&(E.schema=r.schema.else,E.schemaPath=r.schemaPath+".else",E.errSchemaPath=r.errSchemaPath+"/else",i+=" "+r.validate(E)+" ",E.baseId=R,i+=" "+x+" = "+S+"; ",I&&A?(O="ifClause"+a,i+=" var "+O+" = 'else'; "):O="'else'",i+=" } "),i+=" if (!"+x+") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'if' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { failingKeyword: "+O+" } ",r.opts.messages!==!1&&(i+=` , message: 'should match "' + `+O+` + '" schema' `),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&f&&(r.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } ",f&&(i+=" else { ")}else f&&(i+=" if (true) { ");return i}});var _et=C((UEn,wet)=>{"use strict";wet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b="errs__"+a,E=r.util.copy(r),S="";E.level++;var _="valid"+E.level,D="i"+a,I=E.dataLevel=r.dataLevel+1,A="data"+I,R=r.baseId;if(i+="var "+b+" = errors;var "+x+";",Array.isArray(u)){var O=r.schema.additionalItems;if(O===!1){i+=" "+x+" = "+g+".length <= "+u.length+"; ";var k=p;p=r.errSchemaPath+"/additionalItems",i+=" if (!"+x+") { ";var j=j||[];j.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { limit: "+u.length+" } ",r.opts.messages!==!1&&(i+=" , message: 'should NOT have more than "+u.length+" items' "),r.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var G=i;i=j.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+G+"]); ":i+=" validate.errors = ["+G+"]; return false; ":i+=" var err = "+G+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",p=k,f&&(S+="}",i+=" else { ")}var L=u;if(L){for(var H,F=-1,Y=L.length-1;F<Y;)if(H=L[F+=1],r.opts.strictKeywords?typeof H=="object"&&Object.keys(H).length>0||H===!1:r.util.schemaHasRules(H,r.RULES.all)){i+=" "+_+" = true; if ("+g+".length > "+F+") { ";var V=g+"["+F+"]";E.schema=H,E.schemaPath=l+"["+F+"]",E.errSchemaPath=p+"/"+F,E.errorPath=r.util.getPathExpr(r.errorPath,F,r.opts.jsonPointers,!0),E.dataPathArr[I]=F;var Q=r.validate(E);E.baseId=R,r.util.varOccurences(Q,A)<2?i+=" "+r.util.varReplace(Q,A,V)+" ":i+=" var "+A+" = "+V+"; "+Q+" ",i+=" } ",f&&(i+=" if ("+_+") { ",S+="}")}}if(typeof O=="object"&&(r.opts.strictKeywords?typeof O=="object"&&Object.keys(O).length>0||O===!1:r.util.schemaHasRules(O,r.RULES.all))){E.schema=O,E.schemaPath=r.schemaPath+".additionalItems",E.errSchemaPath=r.errSchemaPath+"/additionalItems",i+=" "+_+" = true; if ("+g+".length > "+u.length+") { for (var "+D+" = "+u.length+"; "+D+" < "+g+".length; "+D+"++) { ",E.errorPath=r.util.getPathExpr(r.errorPath,D,r.opts.jsonPointers,!0);var V=g+"["+D+"]";E.dataPathArr[I]=D;var Q=r.validate(E);E.baseId=R,r.util.varOccurences(Q,A)<2?i+=" "+r.util.varReplace(Q,A,V)+" ":i+=" var "+A+" = "+V+"; "+Q+" ",f&&(i+=" if (!"+_+") break; "),i+=" } } ",f&&(i+=" if ("+_+") { ",S+="}")}}else if(r.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:r.util.schemaHasRules(u,r.RULES.all)){E.schema=u,E.schemaPath=l,E.errSchemaPath=p,i+=" for (var "+D+" = 0; "+D+" < "+g+".length; "+D+"++) { ",E.errorPath=r.util.getPathExpr(r.errorPath,D,r.opts.jsonPointers,!0);var V=g+"["+D+"]";E.dataPathArr[I]=D;var Q=r.validate(E);E.baseId=R,r.util.varOccurences(Q,A)<2?i+=" "+r.util.varReplace(Q,A,V)+" ":i+=" var "+A+" = "+V+"; "+Q+" ",f&&(i+=" if (!"+_+") break; "),i+=" }"}return f&&(i+=" "+S+" if ("+b+" == errors) {"),i}});var vle=C((jEn,Tet)=>{"use strict";Tet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,R,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u;var E=n=="maximum",S=E?"exclusiveMaximum":"exclusiveMinimum",_=r.schema[S],D=r.opts.$data&&_&&_.$data,I=E?"<":">",A=E?">":"<",R=void 0;if(!(x||typeof u=="number"||u===void 0))throw new Error(n+" must be number");if(!(D||_===void 0||typeof _=="number"||typeof _=="boolean"))throw new Error(S+" must be number or boolean");if(D){var O=r.util.getData(_.$data,c,r.dataPathArr),k="exclusive"+a,j="exclType"+a,G="exclIsNumber"+a,L="op"+a,H="' + "+L+" + '";i+=" var schemaExcl"+a+" = "+O+"; ",O="schemaExcl"+a,i+=" var "+k+"; var "+j+" = typeof "+O+"; if ("+j+" != 'boolean' && "+j+" != 'undefined' && "+j+" != 'number') { ";var R=S,F=F||[];F.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(R||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: '"+S+" should be boolean' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var Y=i;i=F.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+Y+"]); ":i+=" validate.errors = ["+Y+"]; return false; ":i+=" var err = "+Y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),i+=" "+j+" == 'number' ? ( ("+k+" = "+b+" === undefined || "+O+" "+I+"= "+b+") ? "+g+" "+A+"= "+O+" : "+g+" "+A+" "+b+" ) : ( ("+k+" = "+O+" === true) ? "+g+" "+A+"= "+b+" : "+g+" "+A+" "+b+" ) || "+g+" !== "+g+") { var op"+a+" = "+k+" ? '"+I+"' : '"+I+"='; ",u===void 0&&(R=S,p=r.errSchemaPath+"/"+S,b=O,x=D)}else{var G=typeof _=="number",H=I;if(G&&x){var L="'"+H+"'";i+=" if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),i+=" ( "+b+" === undefined || "+_+" "+I+"= "+b+" ? "+g+" "+A+"= "+_+" : "+g+" "+A+" "+b+" ) || "+g+" !== "+g+") { "}else{G&&u===void 0?(k=!0,R=S,p=r.errSchemaPath+"/"+S,b=_,A+="="):(G&&(b=Math[E?"min":"max"](_,u)),_===(G?b:!0)?(k=!0,R=S,p=r.errSchemaPath+"/"+S,A+="="):(k=!1,H+="="));var L="'"+H+"'";i+=" if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),i+=" "+g+" "+A+" "+b+" || "+g+" !== "+g+") { "}}R=R||n;var F=F||[];F.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(R||"_limit")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { comparison: "+L+", limit: "+b+", exclusive: "+k+" } ",r.opts.messages!==!1&&(i+=" , message: 'should be "+H+" ",x?i+="' + "+b:i+=""+b+"'"),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var Y=i;return i=F.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+Y+"]); ":i+=" validate.errors = ["+Y+"]; return false; ":i+=" var err = "+Y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",f&&(i+=" else { "),i}});var Sle=C((qEn,Det)=>{"use strict";Det.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,S,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;if(x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u,!(x||typeof u=="number"))throw new Error(n+" must be number");var E=n=="maxItems"?">":"<";i+="if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),i+=" "+g+".length "+E+" "+b+") { ";var S=n,_=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(S||"_limitItems")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { limit: "+b+" } ",r.opts.messages!==!1&&(i+=" , message: 'should NOT have ",n=="maxItems"?i+="more":i+="fewer",i+=" than ",x?i+="' + "+b+" + '":i+=""+u,i+=" items' "),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var D=i;return i=_.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",f&&(i+=" else { "),i}});var wle=C((GEn,Aet)=>{"use strict";Aet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,S,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;if(x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u,!(x||typeof u=="number"))throw new Error(n+" must be number");var E=n=="maxLength"?">":"<";i+="if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),r.opts.unicode===!1?i+=" "+g+".length ":i+=" ucs2length("+g+") ",i+=" "+E+" "+b+") { ";var S=n,_=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(S||"_limitLength")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { limit: "+b+" } ",r.opts.messages!==!1&&(i+=" , message: 'should NOT be ",n=="maxLength"?i+="longer":i+="shorter",i+=" than ",x?i+="' + "+b+" + '":i+=""+u,i+=" characters' "),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var D=i;return i=_.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",f&&(i+=" else { "),i}});var _le=C((HEn,Cet)=>{"use strict";Cet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,S,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;if(x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u,!(x||typeof u=="number"))throw new Error(n+" must be number");var E=n=="maxProperties"?">":"<";i+="if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),i+=" Object.keys("+g+").length "+E+" "+b+") { ";var S=n,_=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(S||"_limitProperties")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { limit: "+b+" } ",r.opts.messages!==!1&&(i+=" , message: 'should NOT have ",n=="maxProperties"?i+="more":i+="fewer",i+=" than ",x?i+="' + "+b+" + '":i+=""+u,i+=" properties' "),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var D=i;return i=_.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",f&&(i+=" else { "),i}});var Iet=C((WEn,Pet)=>{"use strict";Pet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;if(x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u,!(x||typeof u=="number"))throw new Error(n+" must be number");i+="var division"+a+";if (",x&&(i+=" "+b+" !== undefined && ( typeof "+b+" != 'number' || "),i+=" (division"+a+" = "+g+" / "+b+", ",r.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+a+") - division"+a+") > 1e-"+r.opts.multipleOfPrecision+" ":i+=" division"+a+" !== parseInt(division"+a+") ",i+=" ) ",x&&(i+=" ) "),i+=" ) { ";var E=E||[];E.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { multipleOf: "+b+" } ",r.opts.messages!==!1&&(i+=" , message: 'should be multiple of ",x?i+="' + "+b:i+=""+b+"'"),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var S=i;return i=E.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+S+"]); ":i+=" validate.errors = ["+S+"]; return false; ":i+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",f&&(i+=" else { "),i}});var Ret=C((VEn,Oet)=>{"use strict";Oet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="errs__"+a,b=r.util.copy(r);b.level++;var E="valid"+b.level;if(r.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:r.util.schemaHasRules(u,r.RULES.all)){b.schema=u,b.schemaPath=l,b.errSchemaPath=p,i+=" var "+x+" = errors; ";var S=r.compositeRule;r.compositeRule=b.compositeRule=!0,b.createErrors=!1;var _;b.opts.allErrors&&(_=b.opts.allErrors,b.opts.allErrors=!1),i+=" "+r.validate(b)+" ",b.createErrors=!0,_&&(b.opts.allErrors=_),r.compositeRule=b.compositeRule=S,i+=" if ("+E+") { ";var D=D||[];D.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var I=i;i=D.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+I+"]); ":i+=" validate.errors = ["+I+"]; return false; ":i+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { errors = "+x+"; if (vErrors !== null) { if ("+x+") vErrors.length = "+x+"; else vErrors = null; } ",r.opts.allErrors&&(i+=" } ")}else i+=" var err = ",r.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",f&&(i+=" if (false) { ");return i}});var Met=C((zEn,Fet)=>{"use strict";Fet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b="errs__"+a,E=r.util.copy(r),S="";E.level++;var _="valid"+E.level,D=E.baseId,I="prevValid"+a,A="passingSchemas"+a;i+="var "+b+" = errors , "+I+" = false , "+x+" = false , "+A+" = null; ";var R=r.compositeRule;r.compositeRule=E.compositeRule=!0;var O=u;if(O)for(var k,j=-1,G=O.length-1;j<G;)k=O[j+=1],(r.opts.strictKeywords?typeof k=="object"&&Object.keys(k).length>0||k===!1:r.util.schemaHasRules(k,r.RULES.all))?(E.schema=k,E.schemaPath=l+"["+j+"]",E.errSchemaPath=p+"/"+j,i+=" "+r.validate(E)+" ",E.baseId=D):i+=" var "+_+" = true; ",j&&(i+=" if ("+_+" && "+I+") { "+x+" = false; "+A+" = ["+A+", "+j+"]; } else { ",S+="}"),i+=" if ("+_+") { "+x+" = "+I+" = true; "+A+" = "+j+"; }";return r.compositeRule=E.compositeRule=R,i+=""+S+"if (!"+x+") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { passingSchemas: "+A+" } ",r.opts.messages!==!1&&(i+=" , message: 'should match exactly one schema in oneOf' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&f&&(r.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+="} else { errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; }",r.opts.allErrors&&(i+=" } "),i}});var Net=C((KEn,ket)=>{"use strict";ket.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u;var E=x?"(new RegExp("+b+"))":r.usePattern(u);i+="if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'string') || "),i+=" !"+E+".test("+g+") ) { ";var S=S||[];S.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { pattern: ",x?i+=""+b:i+=""+r.util.toQuotedString(u),i+=" } ",r.opts.messages!==!1&&(i+=` , message: 'should match pattern "`,x?i+="' + "+b+" + '":i+=""+r.util.escapeQuotes(u),i+=`"' `),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+r.util.toQuotedString(u),i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var _=i;return i=S.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+_+"]); ":i+=" validate.errors = ["+_+"]; return false; ":i+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",f&&(i+=" else { "),i}});var Let=C((JEn,$et)=>{"use strict";$et.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="errs__"+a,b=r.util.copy(r),E="";b.level++;var S="valid"+b.level,_="key"+a,D="idx"+a,I=b.dataLevel=r.dataLevel+1,A="data"+I,R="dataProperties"+a,O=Object.keys(u||{}).filter(se),k=r.schema.patternProperties||{},j=Object.keys(k).filter(se),G=r.schema.additionalProperties,L=O.length||j.length,H=G===!1,F=typeof G=="object"&&Object.keys(G).length,Y=r.opts.removeAdditional,V=H||F||Y,Q=r.opts.ownProperties,q=r.baseId,Z=r.schema.required;if(Z&&!(r.opts.$data&&Z.$data)&&Z.length<r.opts.loopRequired)var ie=r.util.toHash(Z);function se(fa){return fa!=="__proto__"}if(i+="var "+x+" = errors;var "+S+" = true;",Q&&(i+=" var "+R+" = undefined;"),V){if(Q?i+=" "+R+" = "+R+" || Object.keys("+g+"); for (var "+D+"=0; "+D+"<"+R+".length; "+D+"++) { var "+_+" = "+R+"["+D+"]; ":i+=" for (var "+_+" in "+g+") { ",L){if(i+=" var isAdditional"+a+" = !(false ",O.length)if(O.length>8)i+=" || validate.schema"+l+".hasOwnProperty("+_+") ";else{var le=O;if(le)for(var _e,Ge=-1,Mt=le.length-1;Ge<Mt;)_e=le[Ge+=1],i+=" || "+_+" == "+r.util.toQuotedString(_e)+" "}if(j.length){var Zt=j;if(Zt)for(var kt,Gt=-1,Ne=Zt.length-1;Gt<Ne;)kt=Zt[Gt+=1],i+=" || "+r.usePattern(kt)+".test("+_+") "}i+=" ); if (isAdditional"+a+") { "}if(Y=="all")i+=" delete "+g+"["+_+"]; ";else{var Qe=r.errorPath,lo="' + "+_+" + '";if(r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPathExpr(r.errorPath,_,r.opts.jsonPointers)),H)if(Y)i+=" delete "+g+"["+_+"]; ";else{i+=" "+S+" = false; ";var xe=p;p=r.errSchemaPath+"/additionalProperties";var ze=ze||[];ze.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { additionalProperty: '"+lo+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is an invalid additional property":i+="should NOT have additional properties",i+="' "),r.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var ge=i;i=ze.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+ge+"]); ":i+=" validate.errors = ["+ge+"]; return false; ":i+=" var err = "+ge+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",p=xe,f&&(i+=" break; ")}else if(F)if(Y=="failing"){i+=" var "+x+" = errors; ";var ut=r.compositeRule;r.compositeRule=b.compositeRule=!0,b.schema=G,b.schemaPath=r.schemaPath+".additionalProperties",b.errSchemaPath=r.errSchemaPath+"/additionalProperties",b.errorPath=r.opts._errorDataPathProperty?r.errorPath:r.util.getPathExpr(r.errorPath,_,r.opts.jsonPointers);var Nt=g+"["+_+"]";b.dataPathArr[I]=_;var ht=r.validate(b);b.baseId=q,r.util.varOccurences(ht,A)<2?i+=" "+r.util.varReplace(ht,A,Nt)+" ":i+=" var "+A+" = "+Nt+"; "+ht+" ",i+=" if (!"+S+") { errors = "+x+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+g+"["+_+"]; } ",r.compositeRule=b.compositeRule=ut}else{b.schema=G,b.schemaPath=r.schemaPath+".additionalProperties",b.errSchemaPath=r.errSchemaPath+"/additionalProperties",b.errorPath=r.opts._errorDataPathProperty?r.errorPath:r.util.getPathExpr(r.errorPath,_,r.opts.jsonPointers);var Nt=g+"["+_+"]";b.dataPathArr[I]=_;var ht=r.validate(b);b.baseId=q,r.util.varOccurences(ht,A)<2?i+=" "+r.util.varReplace(ht,A,Nt)+" ":i+=" var "+A+" = "+Nt+"; "+ht+" ",f&&(i+=" if (!"+S+") break; ")}r.errorPath=Qe}L&&(i+=" } "),i+=" } ",f&&(i+=" if ("+S+") { ",E+="}")}var nr=r.opts.useDefaults&&!r.compositeRule;if(O.length){var Zn=O;if(Zn)for(var _e,Nn=-1,yp=Zn.length-1;Nn<yp;){_e=Zn[Nn+=1];var Io=u[_e];if(r.opts.strictKeywords?typeof Io=="object"&&Object.keys(Io).length>0||Io===!1:r.util.schemaHasRules(Io,r.RULES.all)){var Vi=r.util.getProperty(_e),Nt=g+Vi,zi=nr&&Io.default!==void 0;b.schema=Io,b.schemaPath=l+Vi,b.errSchemaPath=p+"/"+r.util.escapeFragment(_e),b.errorPath=r.util.getPath(r.errorPath,_e,r.opts.jsonPointers),b.dataPathArr[I]=r.util.toQuotedString(_e);var ht=r.validate(b);if(b.baseId=q,r.util.varOccurences(ht,A)<2){ht=r.util.varReplace(ht,A,Nt);var Oo=Nt}else{var Oo=A;i+=" var "+A+" = "+Nt+"; "}if(zi)i+=" "+ht+" ";else{if(ie&&ie[_e]){i+=" if ( "+Oo+" === undefined ",Q&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(_e)+"') "),i+=") { "+S+" = false; ";var Qe=r.errorPath,xe=p,ci=r.util.escapeQuotes(_e);r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPath(Qe,_e,r.opts.jsonPointers)),p=r.errSchemaPath+"/required";var ze=ze||[];ze.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+ci+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+ci+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var ge=i;i=ze.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+ge+"]); ":i+=" validate.errors = ["+ge+"]; return false; ":i+=" var err = "+ge+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",p=xe,r.errorPath=Qe,i+=" } else { "}else f?(i+=" if ( "+Oo+" === undefined ",Q&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(_e)+"') "),i+=") { "+S+" = true; } else { "):(i+=" if ("+Oo+" !== undefined ",Q&&(i+=" && Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(_e)+"') "),i+=" ) { ");i+=" "+ht+" } "}}f&&(i+=" if ("+S+") { ",E+="}")}}if(j.length){var ui=j;if(ui)for(var kt,jf=-1,AE=ui.length-1;jf<AE;){kt=ui[jf+=1];var Io=k[kt];if(r.opts.strictKeywords?typeof Io=="object"&&Object.keys(Io).length>0||Io===!1:r.util.schemaHasRules(Io,r.RULES.all)){b.schema=Io,b.schemaPath=r.schemaPath+".patternProperties"+r.util.getProperty(kt),b.errSchemaPath=r.errSchemaPath+"/patternProperties/"+r.util.escapeFragment(kt),Q?i+=" "+R+" = "+R+" || Object.keys("+g+"); for (var "+D+"=0; "+D+"<"+R+".length; "+D+"++) { var "+_+" = "+R+"["+D+"]; ":i+=" for (var "+_+" in "+g+") { ",i+=" if ("+r.usePattern(kt)+".test("+_+")) { ",b.errorPath=r.util.getPathExpr(r.errorPath,_,r.opts.jsonPointers);var Nt=g+"["+_+"]";b.dataPathArr[I]=_;var ht=r.validate(b);b.baseId=q,r.util.varOccurences(ht,A)<2?i+=" "+r.util.varReplace(ht,A,Nt)+" ":i+=" var "+A+" = "+Nt+"; "+ht+" ",f&&(i+=" if (!"+S+") break; "),i+=" } ",f&&(i+=" else "+S+" = true; "),i+=" } ",f&&(i+=" if ("+S+") { ",E+="}")}}}return f&&(i+=" "+E+" if ("+x+" == errors) {"),i}});var Uet=C((YEn,Bet)=>{"use strict";Bet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="errs__"+a,b=r.util.copy(r),E="";b.level++;var S="valid"+b.level;if(i+="var "+x+" = errors;",r.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:r.util.schemaHasRules(u,r.RULES.all)){b.schema=u,b.schemaPath=l,b.errSchemaPath=p;var _="key"+a,D="idx"+a,I="i"+a,A="' + "+_+" + '",R=b.dataLevel=r.dataLevel+1,O="data"+R,k="dataProperties"+a,j=r.opts.ownProperties,G=r.baseId;j&&(i+=" var "+k+" = undefined; "),j?i+=" "+k+" = "+k+" || Object.keys("+g+"); for (var "+D+"=0; "+D+"<"+k+".length; "+D+"++) { var "+_+" = "+k+"["+D+"]; ":i+=" for (var "+_+" in "+g+") { ",i+=" var startErrs"+a+" = errors; ";var L=_,H=r.compositeRule;r.compositeRule=b.compositeRule=!0;var F=r.validate(b);b.baseId=G,r.util.varOccurences(F,O)<2?i+=" "+r.util.varReplace(F,O,L)+" ":i+=" var "+O+" = "+L+"; "+F+" ",r.compositeRule=b.compositeRule=H,i+=" if (!"+S+") { for (var "+I+"=startErrs"+a+"; "+I+"<errors; "+I+"++) { vErrors["+I+"].propertyName = "+_+"; } var err = ",r.createErrors!==!1?(i+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { propertyName: '"+A+"' } ",r.opts.messages!==!1&&(i+=" , message: 'property name \\'"+A+"\\' is invalid' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&f&&(r.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),f&&(i+=" break; "),i+=" } }"}return f&&(i+=" "+E+" if ("+x+" == errors) {"),i}});var qet=C((ZEn,jet)=>{"use strict";jet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b=r.opts.$data&&u&&u.$data,E;b?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",E="schema"+a):E=u;var S="schema"+a;if(!b)if(u.length<r.opts.loopRequired&&r.schema.properties&&Object.keys(r.schema.properties).length){var _=[],D=u;if(D)for(var I,A=-1,R=D.length-1;A<R;){I=D[A+=1];var O=r.schema.properties[I];O&&(r.opts.strictKeywords?typeof O=="object"&&Object.keys(O).length>0||O===!1:r.util.schemaHasRules(O,r.RULES.all))||(_[_.length]=I)}}else var _=u;if(b||_.length){var k=r.errorPath,j=b||_.length>=r.opts.loopRequired,G=r.opts.ownProperties;if(f)if(i+=" var missing"+a+"; ",j){b||(i+=" var "+S+" = validate.schema"+l+"; ");var L="i"+a,H="schema"+a+"["+L+"]",F="' + "+H+" + '";r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPathExpr(k,H,r.opts.jsonPointers)),i+=" var "+x+" = true; ",b&&(i+=" if (schema"+a+" === undefined) "+x+" = true; else if (!Array.isArray(schema"+a+")) "+x+" = false; else {"),i+=" for (var "+L+" = 0; "+L+" < "+S+".length; "+L+"++) { "+x+" = "+g+"["+S+"["+L+"]] !== undefined ",G&&(i+=" && Object.prototype.hasOwnProperty.call("+g+", "+S+"["+L+"]) "),i+="; if (!"+x+") break; } ",b&&(i+=" } "),i+=" if (!"+x+") { ";var Y=Y||[];Y.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+F+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+F+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var V=i;i=Y.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+V+"]); ":i+=" validate.errors = ["+V+"]; return false; ":i+=" var err = "+V+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else{i+=" if ( ";var Q=_;if(Q)for(var q,L=-1,Z=Q.length-1;L<Z;){q=Q[L+=1],L&&(i+=" || ");var ie=r.util.getProperty(q),se=g+ie;i+=" ( ( "+se+" === undefined ",G&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(q)+"') "),i+=") && (missing"+a+" = "+r.util.toQuotedString(r.opts.jsonPointers?q:ie)+") ) "}i+=") { ";var H="missing"+a,F="' + "+H+" + '";r.opts._errorDataPathProperty&&(r.errorPath=r.opts.jsonPointers?r.util.getPathExpr(k,H,!0):k+" + "+H);var Y=Y||[];Y.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+F+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+F+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var V=i;i=Y.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+V+"]); ":i+=" validate.errors = ["+V+"]; return false; ":i+=" var err = "+V+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else if(j){b||(i+=" var "+S+" = validate.schema"+l+"; ");var L="i"+a,H="schema"+a+"["+L+"]",F="' + "+H+" + '";r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPathExpr(k,H,r.opts.jsonPointers)),b&&(i+=" if ("+S+" && !Array.isArray("+S+")) { var err = ",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+F+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+F+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+S+" !== undefined) { "),i+=" for (var "+L+" = 0; "+L+" < "+S+".length; "+L+"++) { if ("+g+"["+S+"["+L+"]] === undefined ",G&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", "+S+"["+L+"]) "),i+=") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+F+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+F+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",b&&(i+=" } ")}else{var le=_;if(le)for(var q,_e=-1,Ge=le.length-1;_e<Ge;){q=le[_e+=1];var ie=r.util.getProperty(q),F=r.util.escapeQuotes(q),se=g+ie;r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPath(k,q,r.opts.jsonPointers)),i+=" if ( "+se+" === undefined ",G&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(q)+"') "),i+=") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+F+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+F+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}r.errorPath=k}else f&&(i+=" if (true) {");return i}});var Het=C((QEn,Get)=>{"use strict";Get.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b=r.opts.$data&&u&&u.$data,E;if(b?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",E="schema"+a):E=u,(u||b)&&r.opts.uniqueItems!==!1){b&&(i+=" var "+x+"; if ("+E+" === false || "+E+" === undefined) "+x+" = true; else if (typeof "+E+" != 'boolean') "+x+" = false; else { "),i+=" var i = "+g+".length , "+x+" = true , j; if (i > 1) { ";var S=r.schema.items&&r.schema.items.type,_=Array.isArray(S);if(!S||S=="object"||S=="array"||_&&(S.indexOf("object")>=0||S.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+g+"[i], "+g+"[j])) { "+x+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+g+"[i]; ";var D="checkDataType"+(_?"s":"");i+=" if ("+r.util[D](S,"item",r.opts.strictNumbers,!0)+") continue; ",_&&(i+=` if (typeof item == 'string') item = '"' + item; `),i+=" if (typeof itemIndices[item] == 'number') { "+x+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",b&&(i+=" } "),i+=" if (!"+x+") { ";var I=I||[];I.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { i: i, j: j } ",r.opts.messages!==!1&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),r.opts.verbose&&(i+=" , schema: ",b?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var A=i;i=I.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+A+"]); ":i+=" validate.errors = ["+A+"]; return false; ":i+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",f&&(i+=" else { ")}else f&&(i+=" if (true) { ");return i}});var Vet=C((XEn,Wet)=>{"use strict";Wet.exports={$ref:ret(),allOf:oet(),anyOf:set(),$comment:cet(),const:pet(),contains:det(),dependencies:het(),enum:yet(),format:bet(),if:vet(),items:_et(),maximum:vle(),minimum:vle(),maxItems:Sle(),minItems:Sle(),maxLength:wle(),minLength:wle(),maxProperties:_le(),minProperties:_le(),multipleOf:Iet(),not:Ret(),oneOf:Met(),pattern:Net(),properties:Let(),propertyNames:Uet(),required:qet(),uniqueItems:Het(),validate:ble()}});var Jet=C((evn,Ket)=>{"use strict";var zet=Vet(),Tle=_E().toHash;Ket.exports=function(){var r=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],n=["type","$comment"],o=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],i=["number","integer","string","array","object","boolean","null"];return r.all=Tle(n),r.types=Tle(i),r.forEach(function(a){a.rules=a.rules.map(function(c){var u;if(typeof c=="object"){var l=Object.keys(c)[0];u=c[l],c=l,u.forEach(function(f){n.push(f),r.all[f]=!0})}n.push(c);var p=r.all[c]={keyword:c,code:zet[c],implements:u};return p}),r.all.$comment={keyword:"$comment",code:zet.$comment},a.type&&(r.types[a.type]=a)}),r.keywords=Tle(n.concat(o)),r.custom={},r}});var Qet=C((tvn,Zet)=>{"use strict";var Yet=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];Zet.exports=function(e,r){for(var n=0;n<r.length;n++){e=JSON.parse(JSON.stringify(e));var o=r[n].split("/"),i=e,a;for(a=1;a<o.length;a++)i=i[o[a]];for(a=0;a<Yet.length;a++){var c=Yet[a],u=i[c];u&&(i[c]={anyOf:[u,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}});var ttt=C((rvn,ett)=>{"use strict";var mnr=eU().MissingRef;ett.exports=Xet;function Xet(e,r,n){var o=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof r=="function"&&(n=r,r=void 0);var i=a(e).then(function(){var u=o._addSchema(e,void 0,r);return u.validate||c(u)});return n&&i.then(function(u){n(null,u)},n),i;function a(u){var l=u.$schema;return l&&!o.getSchema(l)?Xet.call(o,{$ref:l},!0):Promise.resolve()}function c(u){try{return o._compile(u)}catch(p){if(p instanceof mnr)return l(p);throw p}function l(p){var f=p.missingSchema;if(b(f))throw new Error("Schema "+f+" is loaded but "+p.missingRef+" cannot be resolved");var g=o._loadingSchemas[f];return g||(g=o._loadingSchemas[f]=o._opts.loadSchema(f),g.then(x,x)),g.then(function(E){if(!b(f))return a(E).then(function(){b(f)||o.addSchema(E,f,void 0,r)})}).then(function(){return c(u)});function x(){delete o._loadingSchemas[f]}function b(E){return o._refs[E]||o._schemas[E]}}}}});var ntt=C((nvn,rtt)=>{"use strict";rtt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g,x="data"+(c||""),b="valid"+a,E="errs__"+a,S=r.opts.$data&&u&&u.$data,_;S?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",_="schema"+a):_=u;var D=this,I="definition"+a,A=D.definition,R="",O,k,j,G,L;if(S&&A.$data){L="keywordValidate"+a;var H=A.validateSchema;i+=" var "+I+" = RULES.custom['"+n+"'].definition; var "+L+" = "+I+".validate;"}else{if(G=r.useCustomRule(D,u,r.schema,r),!G)return;_="validate.schema"+l,L=G.code,O=A.compile,k=A.inline,j=A.macro}var F=L+".errors",Y="i"+a,V="ruleErr"+a,Q=A.async;if(Q&&!r.async)throw new Error("async keyword in sync schema");if(k||j||(i+=""+F+" = null;"),i+="var "+E+" = errors;var "+b+";",S&&A.$data&&(R+="}",i+=" if ("+_+" === undefined) { "+b+" = true; } else { ",H&&(R+="}",i+=" "+b+" = "+I+".validateSchema("+_+"); if ("+b+") { ")),k)A.statements?i+=" "+G.validate+" ":i+=" "+b+" = "+G.validate+"; ";else if(j){var q=r.util.copy(r),R="";q.level++;var Z="valid"+q.level;q.schema=G.validate,q.schemaPath="";var ie=r.compositeRule;r.compositeRule=q.compositeRule=!0;var se=r.validate(q).replace(/validate\.schema/g,L);r.compositeRule=q.compositeRule=ie,i+=" "+se}else{var le=le||[];le.push(i),i="",i+=" "+L+".call( ",r.opts.passContext?i+="this":i+="self",O||A.schema===!1?i+=" , "+x+" ":i+=" , "+_+" , "+x+" , validate.schema"+r.schemaPath+" ",i+=" , (dataPath || '')",r.errorPath!='""'&&(i+=" + "+r.errorPath);var _e=c?"data"+(c-1||""):"parentData",Ge=c?r.dataPathArr[c]:"parentDataProperty";i+=" , "+_e+" , "+Ge+" , rootData ) ";var Mt=i;i=le.pop(),A.errors===!1?(i+=" "+b+" = ",Q&&(i+="await "),i+=""+Mt+"; "):Q?(F="customErrors"+a,i+=" var "+F+" = null; try { "+b+" = await "+Mt+"; } catch (e) { "+b+" = false; if (e instanceof ValidationError) "+F+" = e.errors; else throw e; } "):i+=" "+F+" = null; "+b+" = "+Mt+"; "}if(A.modifying&&(i+=" if ("+_e+") "+x+" = "+_e+"["+Ge+"];"),i+=""+R,A.valid)f&&(i+=" if (true) { ");else{i+=" if ( ",A.valid===void 0?(i+=" !",j?i+=""+Z:i+=""+b):i+=" "+!A.valid+" ",i+=") { ",g=D.keyword;var le=le||[];le.push(i),i="";var le=le||[];le.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(g||"custom")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { keyword: '"+D.keyword+"' } ",r.opts.messages!==!1&&(i+=` , message: 'should pass "`+D.keyword+`" keyword validation' `),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+x+" "),i+=" } "):i+=" {} ";var Zt=i;i=le.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+Zt+"]); ":i+=" validate.errors = ["+Zt+"]; return false; ":i+=" var err = "+Zt+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var kt=i;i=le.pop(),k?A.errors?A.errors!="full"&&(i+=" for (var "+Y+"="+E+"; "+Y+"<errors; "+Y+"++) { var "+V+" = vErrors["+Y+"]; if ("+V+".dataPath === undefined) "+V+".dataPath = (dataPath || '') + "+r.errorPath+"; if ("+V+".schemaPath === undefined) { "+V+'.schemaPath = "'+p+'"; } ',r.opts.verbose&&(i+=" "+V+".schema = "+_+"; "+V+".data = "+x+"; "),i+=" } "):A.errors===!1?i+=" "+kt+" ":(i+=" if ("+E+" == errors) { "+kt+" } else { for (var "+Y+"="+E+"; "+Y+"<errors; "+Y+"++) { var "+V+" = vErrors["+Y+"]; if ("+V+".dataPath === undefined) "+V+".dataPath = (dataPath || '') + "+r.errorPath+"; if ("+V+".schemaPath === undefined) { "+V+'.schemaPath = "'+p+'"; } ',r.opts.verbose&&(i+=" "+V+".schema = "+_+"; "+V+".data = "+x+"; "),i+=" } } "):j?(i+=" var err = ",r.createErrors!==!1?(i+=" { keyword: '"+(g||"custom")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { keyword: '"+D.keyword+"' } ",r.opts.messages!==!1&&(i+=` , message: 'should pass "`+D.keyword+`" keyword validation' `),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+x+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&f&&(r.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):A.errors===!1?i+=" "+kt+" ":(i+=" if (Array.isArray("+F+")) { if (vErrors === null) vErrors = "+F+"; else vErrors = vErrors.concat("+F+"); errors = vErrors.length; for (var "+Y+"="+E+"; "+Y+"<errors; "+Y+"++) { var "+V+" = vErrors["+Y+"]; if ("+V+".dataPath === undefined) "+V+".dataPath = (dataPath || '') + "+r.errorPath+"; "+V+'.schemaPath = "'+p+'"; ',r.opts.verbose&&(i+=" "+V+".schema = "+_+"; "+V+".data = "+x+"; "),i+=" } } else { "+kt+" } "),i+=" } ",f&&(i+=" else { ")}return i}});var Dle=C((ovn,hnr)=>{hnr.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var stt=C((ivn,itt)=>{"use strict";var ott=Dle();itt.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:ott.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:ott.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}});var ctt=C((svn,att)=>{"use strict";var gnr=/^[a-z_$][a-z0-9_$-]*$/i,ynr=ntt(),xnr=stt();att.exports={add:bnr,get:Enr,remove:vnr,validate:Ale};function bnr(e,r){var n=this.RULES;if(n.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!gnr.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(r){this.validateKeyword(r,!0);var o=r.type;if(Array.isArray(o))for(var i=0;i<o.length;i++)c(e,o[i],r);else c(e,o,r);var a=r.metaSchema;a&&(r.$data&&this._opts.$data&&(a={anyOf:[a,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),r.validateSchema=this.compile(a,!0))}n.keywords[e]=n.all[e]=!0;function c(u,l,p){for(var f,g=0;g<n.length;g++){var x=n[g];if(x.type==l){f=x;break}}f||(f={type:l,rules:[]},n.push(f));var b={keyword:u,definition:p,custom:!0,code:ynr,implements:p.implements};f.rules.push(b),n.custom[u]=b}return this}function Enr(e){var r=this.RULES.custom[e];return r?r.definition:this.RULES.keywords[e]||!1}function vnr(e){var r=this.RULES;delete r.keywords[e],delete r.all[e],delete r.custom[e];for(var n=0;n<r.length;n++)for(var o=r[n].rules,i=0;i<o.length;i++)if(o[i].keyword==e){o.splice(i,1);break}return this}function Ale(e,r){Ale.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(xnr,!0);if(n(e))return!0;if(Ale.errors=n.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));return!1}});var utt=C((avn,Snr)=>{Snr.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var btt=C((cvn,xtt)=>{"use strict";var ptt=UXe(),TE=X5(),wnr=qXe(),ftt=fle(),_nr=xle(),Tnr=eet(),Dnr=Jet(),dtt=Qet(),mtt=_E();xtt.exports=Po;Po.prototype.validate=Cnr;Po.prototype.compile=Pnr;Po.prototype.addSchema=Inr;Po.prototype.addMetaSchema=Onr;Po.prototype.validateSchema=Rnr;Po.prototype.getSchema=Mnr;Po.prototype.removeSchema=Nnr;Po.prototype.addFormat=Hnr;Po.prototype.errorsText=Gnr;Po.prototype._addSchema=$nr;Po.prototype._compile=Lnr;Po.prototype.compileAsync=ttt();var cU=ctt();Po.prototype.addKeyword=cU.add;Po.prototype.getKeyword=cU.get;Po.prototype.removeKeyword=cU.remove;Po.prototype.validateKeyword=cU.validate;var htt=eU();Po.ValidationError=htt.Validation;Po.MissingRefError=htt.MissingRef;Po.$dataMetaSchema=dtt;var aU="http://json-schema.org/draft-07/schema",ltt=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Anr=["/properties"];function Po(e){if(!(this instanceof Po))return new Po(e);e=this._opts=mtt.copy(e)||{},Ynr(this),this._schemas={},this._refs={},this._fragments={},this._formats=Tnr(e.format),this._cache=e.cache||new wnr,this._loadingSchemas={},this._compilations=[],this.RULES=Dnr(),this._getId=Bnr(e),e.loopRequired=e.loopRequired||1/0,e.errorDataPath=="property"&&(e._errorDataPathProperty=!0),e.serialize===void 0&&(e.serialize=_nr),this._metaOpts=Jnr(this),e.formats&&znr(this),e.keywords&&Knr(this),Wnr(this),typeof e.meta=="object"&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),Vnr(this)}function Cnr(e,r){var n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error('no schema with key or ref "'+e+'"')}else{var o=this._addSchema(e);n=o.validate||this._compile(o)}var i=n(r);return n.$async!==!0&&(this.errors=n.errors),i}function Pnr(e,r){var n=this._addSchema(e,void 0,r);return n.validate||this._compile(n)}function Inr(e,r,n,o){if(Array.isArray(e)){for(var i=0;i<e.length;i++)this.addSchema(e[i],void 0,n,o);return this}var a=this._getId(e);if(a!==void 0&&typeof a!="string")throw new Error("schema id must be string");return r=TE.normalizeId(r||a),ytt(this,r),this._schemas[r]=this._addSchema(e,n,o,!0),this}function Onr(e,r,n){return this.addSchema(e,r,n,!0),this}function Rnr(e,r){var n=e.$schema;if(n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this._opts.defaultMeta||Fnr(this),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var o=this.validate(n,e);if(!o&&r){var i="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(i);else throw new Error(i)}return o}function Fnr(e){var r=e._opts.meta;return e._opts.defaultMeta=typeof r=="object"?e._getId(r)||r:e.getSchema(aU)?aU:void 0,e._opts.defaultMeta}function Mnr(e){var r=gtt(this,e);switch(typeof r){case"object":return r.validate||this._compile(r);case"string":return this.getSchema(r);case"undefined":return knr(this,e)}}function knr(e,r){var n=TE.schema.call(e,{schema:{}},r);if(n){var o=n.schema,i=n.root,a=n.baseId,c=ptt.call(e,o,i,void 0,a);return e._fragments[r]=new ftt({ref:r,fragment:!0,schema:o,root:i,baseId:a,validate:c}),c}}function gtt(e,r){return r=TE.normalizeId(r),e._schemas[r]||e._refs[r]||e._fragments[r]}function Nnr(e){if(e instanceof RegExp)return sU(this,this._schemas,e),sU(this,this._refs,e),this;switch(typeof e){case"undefined":return sU(this,this._schemas),sU(this,this._refs),this._cache.clear(),this;case"string":var r=gtt(this,e);return r&&this._cache.del(r.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var n=this._opts.serialize,o=n?n(e):e;this._cache.del(o);var i=this._getId(e);i&&(i=TE.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this}function sU(e,r,n){for(var o in r){var i=r[o];!i.meta&&(!n||n.test(o))&&(e._cache.del(i.cacheKey),delete r[o])}}function $nr(e,r,n,o){if(typeof e!="object"&&typeof e!="boolean")throw new Error("schema should be object or boolean");var i=this._opts.serialize,a=i?i(e):e,c=this._cache.get(a);if(c)return c;o=o||this._opts.addUsedSchema!==!1;var u=TE.normalizeId(this._getId(e));u&&o&&ytt(this,u);var l=this._opts.validateSchema!==!1&&!r,p;l&&!(p=u&&u==TE.normalizeId(e.$schema))&&this.validateSchema(e,!0);var f=TE.ids.call(this,e),g=new ftt({id:u,schema:e,localRefs:f,cacheKey:a,meta:n});return u[0]!="#"&&o&&(this._refs[u]=g),this._cache.put(a,g),l&&p&&this.validateSchema(e,!0),g}function Lnr(e,r){if(e.compiling)return e.validate=i,i.schema=e.schema,i.errors=null,i.root=r||i,e.schema.$async===!0&&(i.$async=!0),i;e.compiling=!0;var n;e.meta&&(n=this._opts,this._opts=this._metaOpts);var o;try{o=ptt.call(this,e.schema,r,e.localRefs)}catch(a){throw delete e.validate,a}finally{e.compiling=!1,e.meta&&(this._opts=n)}return e.validate=o,e.refs=o.refs,e.refVal=o.refVal,e.root=o.root,o;function i(){var a=e.validate,c=a.apply(this,arguments);return i.errors=a.errors,c}}function Bnr(e){switch(e.schemaId){case"auto":return qnr;case"id":return Unr;default:return jnr}}function Unr(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function jnr(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function qnr(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function Gnr(e,r){if(e=e||this.errors,!e)return"No errors";r=r||{};for(var n=r.separator===void 0?", ":r.separator,o=r.dataVar===void 0?"data":r.dataVar,i="",a=0;a<e.length;a++){var c=e[a];c&&(i+=o+c.dataPath+" "+c.message+n)}return i.slice(0,-n.length)}function Hnr(e,r){return typeof r=="string"&&(r=new RegExp(r)),this._formats[e]=r,this}function Wnr(e){var r;if(e._opts.$data&&(r=utt(),e.addMetaSchema(r,r.$id,!0)),e._opts.meta!==!1){var n=Dle();e._opts.$data&&(n=dtt(n,Anr)),e.addMetaSchema(n,aU,!0),e._refs["http://json-schema.org/schema"]=aU}}function Vnr(e){var r=e._opts.schemas;if(r)if(Array.isArray(r))e.addSchema(r);else for(var n in r)e.addSchema(r[n],n)}function znr(e){for(var r in e._opts.formats){var n=e._opts.formats[r];e.addFormat(r,n)}}function Knr(e){for(var r in e._opts.keywords){var n=e._opts.keywords[r];e.addKeyword(r,n)}}function ytt(e,r){if(e._schemas[r]||e._refs[r])throw new Error('schema with key or id "'+r+'" already exists')}function Jnr(e){for(var r=mtt.copy(e._opts),n=0;n<ltt.length;n++)delete r[ltt[n]];return r}function Ynr(e){var r=e._opts.logger;if(r===!1)e.logger={log:Cle,warn:Cle,error:Cle};else{if(r===void 0&&(r=console),!(typeof r=="object"&&r.log&&r.warn&&r.error))throw new Error("logger must implement log, warn and error methods");e.logger=r}}function Cle(){}});var Uf=W(require("node:path"));ga();var Xrt=W(Wfe());ga();var eit=ah("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Oj(e){return e.getValue(eit)===!0}ga();function ty(e){let r={};if(typeof e!="object"||e==null)return r;for(let[n,o]of Object.entries(e)){if(!tit(n)){yr.warn(`Invalid attribute key: ${n}`);continue}if(!PO(o)){yr.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(o)?r[n]=o.slice():r[n]=o}return r}function tit(e){return typeof e=="string"&&e.length>0}function PO(e){return e==null?!0:Array.isArray(e)?rit(e):Vfe(e)}function rit(e){let r;for(let n of e)if(n!=null){if(!r){if(Vfe(n)){r=typeof n;continue}return!1}if(typeof n!==r)return!1}return!0}function Vfe(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}ga();function zfe(){return e=>{yr.error(nit(e))}}function nit(e){return typeof e=="string"?e:JSON.stringify(oit(e))}function oit(e){let r={},n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(o=>{if(r[o])return;let i=n[o];i&&(r[o]=String(i))}),n=Object.getPrototypeOf(n);return r}var iit=zfe();function X1(e){try{iit(e)}catch{}}ga();var Kfe=require("util");function Oi(e){let r=process.env[e];if(r==null||r.trim()==="")return;let n=Number(r);if(isNaN(n)){yr.warn(`Unknown value ${(0,Kfe.inspect)(r)} for ${e}, expected a number, using defaults`);return}return n}function eT(e){let r=process.env[e];if(!(r==null||r.trim()===""))return r}var Jfe=require("perf_hooks"),cl=Jfe.performance;var Yfe="2.1.0";var IO="exception.message",Zfe="exception.stacktrace",OO="exception.type";var Qfe="service.name";var tT="telemetry.sdk.language";var Xfe="nodejs";var rT="telemetry.sdk.name",nT="telemetry.sdk.version";var ede="process.runtime.name";var ry={[rT]:"opentelemetry",[ede]:"node",[tT]:Xfe,[nT]:Yfe};var cit=9,uit=6,lit=Math.pow(10,uit),Rj=Math.pow(10,cit);function ph(e){let r=e/1e3,n=Math.trunc(r),o=Math.round(e%1e3*lit);return[n,o]}function RO(){let e=cl.timeOrigin;if(typeof e!="number"){let r=cl;e=r.timing&&r.timing.fetchStart}return e}function Fj(e){let r=ph(RO()),n=ph(typeof e=="number"?e:cl.now());return kO(r,n)}function Mj(e,r){let n=r[0]-e[0],o=r[1]-e[1];return o<0&&(n-=1,o+=Rj),[n,o]}function FO(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function MO(e){return FO(e)||typeof e=="number"||e instanceof Date}function kO(e,r){let n=[e[0]+r[0],e[1]+r[1]];return n[1]>=Rj&&(n[1]-=Rj,n[0]+=1),n}var pit="[object Object]",fit="[object Null]",dit="[object Undefined]",mit=Function.prototype,nde=mit.toString,hit=nde.call(Object),git=Object.getPrototypeOf,ode=Object.prototype,ide=ode.hasOwnProperty,ny=Symbol?Symbol.toStringTag:void 0,sde=ode.toString;function kj(e){if(!yit(e)||xit(e)!==pit)return!1;let r=git(e);if(r===null)return!0;let n=ide.call(r,"constructor")&&r.constructor;return typeof n=="function"&&n instanceof n&&nde.call(n)===hit}function yit(e){return e!=null&&typeof e=="object"}function xit(e){return e==null?e===void 0?dit:fit:ny&&ny in Object(e)?bit(e):Eit(e)}function bit(e){let r=ide.call(e,ny),n=e[ny],o=!1;try{e[ny]=void 0,o=!0}catch{}let i=sde.call(e);return o&&(r?e[ny]=n:delete e[ny]),i}function Eit(e){return sde.call(e)}var vit=20;function $j(...e){let r=e.shift(),n=new WeakMap;for(;e.length>0;)r=cde(r,e.shift(),0,n);return r}function Nj(e){return $O(e)?e.slice():e}function cde(e,r,n=0,o){let i;if(!(n>vit)){if(n++,NO(e)||NO(r)||ude(r))i=Nj(r);else if($O(e)){if(i=e.slice(),$O(r))for(let a=0,c=r.length;a<c;a++)i.push(Nj(r[a]));else if(oT(r)){let a=Object.keys(r);for(let c=0,u=a.length;c<u;c++){let l=a[c];i[l]=Nj(r[l])}}}else if(oT(e))if(oT(r)){if(!Sit(e,r))return r;i=Object.assign({},e);let a=Object.keys(r);for(let c=0,u=a.length;c<u;c++){let l=a[c],p=r[l];if(NO(p))typeof p>"u"?delete i[l]:i[l]=p;else{let f=i[l],g=p;if(ade(e,l,o)||ade(r,l,o))delete i[l];else{if(oT(f)&&oT(g)){let x=o.get(f)||[],b=o.get(g)||[];x.push({obj:e,key:l}),b.push({obj:r,key:l}),o.set(f,x),o.set(g,b)}i[l]=cde(i[l],p,n,o)}}}}else i=r;return i}}function ade(e,r,n){let o=n.get(e[r])||[];for(let i=0,a=o.length;i<a;i++){let c=o[i];if(c.key===r&&c.obj===e)return!0}return!1}function $O(e){return Array.isArray(e)}function ude(e){return typeof e=="function"}function oT(e){return!NO(e)&&!$O(e)&&!ude(e)&&typeof e=="object"}function NO(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function Sit(e,r){return!(!kj(e)||!kj(r))}ga();function LO(){return`unknown_service:${process.argv0}`}var GE=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";var Lj=class e{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(r,n){let o=new e({},n);return o._rawAttributes=lde(r),o._asyncAttributesPending=r.filter(([i,a])=>GE(a)).length>0,o}constructor(r,n){let o=r.attributes??{};this._rawAttributes=Object.entries(o).map(([i,a])=>(GE(a)&&(this._asyncAttributesPending=!0),[i,a])),this._rawAttributes=lde(this._rawAttributes),this._schemaUrl=wit(n?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let r=0;r<this._rawAttributes.length;r++){let[n,o]=this._rawAttributes[r];this._rawAttributes[r]=[n,GE(o)?await o:o]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&yr.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;let r={};for(let[n,o]of this._rawAttributes){if(GE(o)){yr.debug(`Unsettled resource attribute ${n} skipped`);continue}o!=null&&(r[n]??=o)}return this._asyncAttributesPending||(this._memoizedAttributes=r),r}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(r){if(r==null)return this;let n=_it(this,r),o=n?{schemaUrl:n}:void 0;return e.FromAttributeList([...r.getRawAttributes(),...this.getRawAttributes()],o)}};function pde(e,r){return Lj.FromAttributeList(Object.entries(e),r)}function Bj(){return pde({[Qfe]:LO(),[tT]:ry[tT],[rT]:ry[rT],[nT]:ry[nT]})}function lde(e){return e.map(([r,n])=>GE(n)?[r,n.catch(o=>{yr.debug("promise rejection for resource attribute: %s - %s",r,o)})]:[r,n])}function wit(e){if(typeof e=="string"||e===void 0)return e;yr.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",e)}function _it(e,r){let n=e?.schemaUrl,o=r?.schemaUrl,i=n===void 0||n==="",a=o===void 0||o==="";if(i)return o;if(a||n===o)return n;yr.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',n,o)}ga();ga();var fde="exception";var BO=class{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:jE.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(r){let n=Date.now();this._spanContext=r.spanContext,this._performanceStartTime=cl.now(),this._performanceOffset=n-(this._performanceStartTime+RO()),this._startTimeProvided=r.startTime!=null,this._spanLimits=r.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=r.spanProcessor,this.name=r.name,this.parentSpanContext=r.parentSpanContext,this.kind=r.kind,this.links=r.links||[],this.startTime=this._getTime(r.startTime??n),this.resource=r.resource,this.instrumentationScope=r.scope,r.attributes!=null&&this.setAttributes(r.attributes),this._spanProcessor.onStart(this,r.context)}spanContext(){return this._spanContext}setAttribute(r,n){if(n==null||this._isSpanEnded())return this;if(r.length===0)return yr.warn(`Invalid attribute key: ${r}`),this;if(!PO(n))return yr.warn(`Invalid attribute value set for key: ${r}`),this;let{attributeCountLimit:o}=this._spanLimits;return o!==void 0&&Object.keys(this.attributes).length>=o&&!Object.prototype.hasOwnProperty.call(this.attributes,r)?(this._droppedAttributesCount++,this):(this.attributes[r]=this._truncateToSize(n),this)}setAttributes(r){for(let[n,o]of Object.entries(r))this.setAttribute(n,o);return this}addEvent(r,n,o){if(this._isSpanEnded())return this;let{eventCountLimit:i}=this._spanLimits;if(i===0)return yr.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&yr.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),MO(n)&&(MO(o)||(o=n),n=void 0);let a=ty(n);return this.events.push({name:r,attributes:a,time:this._getTime(o),droppedAttributesCount:0}),this}addLink(r){return this.links.push(r),this}addLinks(r){return this.links.push(...r),this}setStatus(r){return this._isSpanEnded()?this:(this.status={...r},this.status.message!=null&&typeof r.message!="string"&&(yr.warn(`Dropping invalid status.message of type '${typeof r.message}', expected 'string'`),delete this.status.message),this)}updateName(r){return this._isSpanEnded()?this:(this.name=r,this)}end(r){if(this._isSpanEnded()){yr.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(r),this._duration=Mj(this.startTime,this.endTime),this._duration[0]<0&&(yr.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&yr.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(r){if(typeof r=="number"&&r<=cl.now())return Fj(r+this._performanceOffset);if(typeof r=="number")return ph(r);if(r instanceof Date)return ph(r.getTime());if(FO(r))return r;if(this._startTimeProvided)return ph(Date.now());let n=cl.now()-this._performanceStartTime;return kO(this.startTime,ph(n))}isRecording(){return this._ended===!1}recordException(r,n){let o={};typeof r=="string"?o[IO]=r:r&&(r.code?o[OO]=r.code.toString():r.name&&(o[OO]=r.name),r.message&&(o[IO]=r.message),r.stack&&(o[Zfe]=r.stack)),o[OO]||o[IO]?this.addEvent(fde,o,n):yr.warn(`Failed to record an exception ${r}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){let r=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);yr.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,r)}return this._ended}_truncateToLimitUtil(r,n){return r.length<=n?r:r.substring(0,n)}_truncateToSize(r){let n=this._attributeValueLengthLimit;return n<=0?(yr.warn(`Attribute value limit must be positive, got ${n}`),r):typeof r=="string"?this._truncateToLimitUtil(r,n):Array.isArray(r)?r.map(o=>typeof o=="string"?this._truncateToLimitUtil(o,n):o):r}};ga();var Yf;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Yf||(Yf={}));var fh=class{shouldSample(){return{decision:Yf.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};var wp=class{shouldSample(){return{decision:Yf.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};ga();var oy=class{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(r){this._root=r.root,this._root||(X1(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new wp),this._remoteParentSampled=r.remoteParentSampled??new wp,this._remoteParentNotSampled=r.remoteParentNotSampled??new fh,this._localParentSampled=r.localParentSampled??new wp,this._localParentNotSampled=r.localParentNotSampled??new fh}shouldSample(r,n,o,i,a,c){let u=ha.getSpanContext(r);return!u||!lh(u)?this._root.shouldSample(r,n,o,i,a,c):u.isRemote?u.traceFlags&Zc.SAMPLED?this._remoteParentSampled.shouldSample(r,n,o,i,a,c):this._remoteParentNotSampled.shouldSample(r,n,o,i,a,c):u.traceFlags&Zc.SAMPLED?this._localParentSampled.shouldSample(r,n,o,i,a,c):this._localParentNotSampled.shouldSample(r,n,o,i,a,c)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};ga();var iT=class{_ratio;_upperBound;constructor(r=0){this._ratio=r,this._ratio=this._normalize(r),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(r,n){return{decision:Z1(n)&&this._accumulate(n)<this._upperBound?Yf.RECORD_AND_SAMPLED:Yf.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(r){return typeof r!="number"||isNaN(r)?0:r>=1?1:r<=0?0:r}_accumulate(r){let n=0;for(let o=0;o<r.length/8;o++){let i=o*8,a=parseInt(r.slice(i,i+8),16);n=(n^a)>>>0}return n}};var _p;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(_p||(_p={}));var UO=1;function jO(){return{sampler:Uj(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:Oi("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:Oi("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:Oi("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:Oi("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:Oi("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:Oi("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:Oi("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:Oi("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}}}function Uj(){let e=eT("OTEL_TRACES_SAMPLER")??_p.ParentBasedAlwaysOn;switch(e){case _p.AlwaysOn:return new wp;case _p.AlwaysOff:return new fh;case _p.ParentBasedAlwaysOn:return new oy({root:new wp});case _p.ParentBasedAlwaysOff:return new oy({root:new fh});case _p.TraceIdRatio:return new iT(dde());case _p.ParentBasedTraceIdRatio:return new oy({root:new iT(dde())});default:return yr.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "${_p.ParentBasedAlwaysOn}".`),new oy({root:new wp})}}function dde(){let e=Oi("OTEL_TRACES_SAMPLER_ARG");return e==null?(yr.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${UO}.`),UO):e<0||e>1?(yr.error(`OTEL_TRACES_SAMPLER_ARG=${e} was given, but it is out of range ([0..1]), defaulting to ${UO}.`),UO):e}var Tit=128,Dit=1/0;function mde(e){let r={sampler:Uj()},n=jO(),o=Object.assign({},n,r,e);return o.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),o.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),o}function hde(e){let r=Object.assign({},e.spanLimits);return r.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??Oi("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??Oi("OTEL_ATTRIBUTE_COUNT_LIMIT")??Tit,r.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??Oi("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??Oi("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??Dit,Object.assign({},e,{spanLimits:r})}var HE=class{generateTraceId=gde(16);generateSpanId=gde(8)},qO=Buffer.allocUnsafe(16);function gde(e){return function(){for(let n=0;n<e/4;n++)qO.writeUInt32BE(Math.random()*2**32>>>0,n*4);for(let n=0;n<e&&!(qO[n]>0);n++)n===e-1&&(qO[e-1]=1);return qO.toString("hex",0,e)}}var GO=class{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(r,n,o,i){let a=mde(n);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=n.idGenerator||new HE,this._resource=o,this._spanProcessor=i,this.instrumentationScope=r}startSpan(r,n={},o=Jf.active()){n.root&&(o=ha.deleteSpan(o));let i=ha.getSpan(o);if(Oj(o))return yr.debug("Instrumentation suppressed, returning Noop Span"),ha.wrapSpanContext(BE);let a=i?.spanContext(),c=this._idGenerator.generateSpanId(),u,l,p;!a||!ha.isSpanContextValid(a)?l=this._idGenerator.generateTraceId():(l=a.traceId,p=a.traceState,u=a);let f=n.kind??UE.INTERNAL,g=(n.links??[]).map(I=>({context:I.context,attributes:ty(I.attributes)})),x=ty(n.attributes),b=this._sampler.shouldSample(o,l,r,f,x,g);p=b.traceState??p;let E=b.decision===ey.RECORD_AND_SAMPLED?Zc.SAMPLED:Zc.NONE,S={traceId:l,spanId:c,traceFlags:E,traceState:p};if(b.decision===ey.NOT_RECORD)return yr.debug("Recording is off, propagating context in a non-recording span"),ha.wrapSpanContext(S);let _=ty(Object.assign(x,b.attributes));return new BO({resource:this._resource,scope:this.instrumentationScope,context:o,spanContext:S,name:r,kind:f,links:g,parentSpanContext:u,attributes:_,startTime:n.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(r,n,o,i){let a,c,u;if(arguments.length<2)return;arguments.length===2?u=n:arguments.length===3?(a=n,u=o):(a=n,c=o,u=i);let l=c??Jf.active(),p=this.startSpan(r,a,l),f=ha.setSpan(l,p);return Jf.with(f,u,void 0,p)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}};var HO=class{_spanProcessors;constructor(r){this._spanProcessors=r}forceFlush(){let r=[];for(let n of this._spanProcessors)r.push(n.forceFlush());return new Promise(n=>{Promise.all(r).then(()=>{n()}).catch(o=>{X1(o||new Error("MultiSpanProcessor: forceFlush failed")),n()})})}onStart(r,n){for(let o of this._spanProcessors)o.onStart(r,n)}onEnd(r){for(let n of this._spanProcessors)n.onEnd(r)}shutdown(){let r=[];for(let n of this._spanProcessors)r.push(n.shutdown());return new Promise((n,o)=>{Promise.all(r).then(()=>{n()},o)})}};var iy;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(iy||(iy={}));var sT=class{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(r={}){let n=$j({},jO(),hde(r));this._resource=n.resource??Bj(),this._config=Object.assign({},n,{resource:this._resource});let o=[];r.spanProcessors?.length&&o.push(...r.spanProcessors),this._activeSpanProcessor=new HO(o)}getTracer(r,n,o){let i=`${r}@${n||""}:${o?.schemaUrl||""}`;return this._tracers.has(i)||this._tracers.set(i,new GO({name:r,version:n,schemaUrl:o?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(i)}forceFlush(){let r=this._config.forceFlushTimeoutMillis,n=this._activeSpanProcessor._spanProcessors.map(o=>new Promise(i=>{let a,c=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${r} ms`)),a=iy.timeout},r);o.forceFlush().then(()=>{clearTimeout(c),a!==iy.timeout&&(a=iy.resolved,i(a))}).catch(u=>{clearTimeout(c),a=iy.error,i(u)})}));return new Promise((o,i)=>{Promise.all(n).then(a=>{let c=a.filter(u=>u!==iy.resolved);c.length>0?i(c):o()}).catch(a=>i([a]))})}shutdown(){return this._activeSpanProcessor.shutdown()}};var WO={};ic(WO,{$:()=>vde,bgBlack:()=>Fit,bgBlue:()=>Nit,bgCyan:()=>Lit,bgGreen:()=>Mit,bgMagenta:()=>$it,bgRed:()=>qj,bgWhite:()=>Bit,bgYellow:()=>kit,black:()=>Iit,blue:()=>ul,bold:()=>U,cyan:()=>Qc,dim:()=>te,gray:()=>sy,green:()=>fe,grey:()=>Zf,hidden:()=>Cit,inverse:()=>Ait,italic:()=>Ln,magenta:()=>Oit,red:()=>de,reset:()=>aT,strikethrough:()=>Pit,underline:()=>un,white:()=>Rit,yellow:()=>mt});var jj,yde,xde,bde,Ede=!0;typeof process<"u"&&({FORCE_COLOR:jj,NODE_DISABLE_COLORS:yde,NO_COLOR:xde,TERM:bde}=process.env||{},Ede=process.stdout&&process.stdout.isTTY);var vde={enabled:!yde&&xde==null&&bde!=="dumb"&&(jj!=null&&jj!=="0"||Ede)};function wn(e,r){let n=new RegExp(`\\x1b\\[${r}m`,"g"),o=`\x1B[${e}m`,i=`\x1B[${r}m`;return function(a){return!vde.enabled||a==null?a:o+(~(""+a).indexOf(i)?a.replace(n,i+o):a)+i}}var aT=wn(0,0),U=wn(1,22),te=wn(2,22),Ln=wn(3,23),un=wn(4,24),Ait=wn(7,27),Cit=wn(8,28),Pit=wn(9,29),Iit=wn(30,39),de=wn(31,39),fe=wn(32,39),mt=wn(33,39),ul=wn(34,39),Oit=wn(35,39),Qc=wn(36,39),Rit=wn(37,39),sy=wn(90,39),Zf=wn(90,39),Fit=wn(40,49),qj=wn(41,49),Mit=wn(42,49),kit=wn(43,49),Nit=wn(44,49),$it=wn(45,49),Lit=wn(46,49),Bit=wn(47,49);var Uit=100,Sde=["green","yellow","blue","magenta","cyan","red"],Gj=[],wde=Date.now(),jit=0,Hj=typeof process<"u"?process.env:{};globalThis.DEBUG??=Hj.DEBUG??"";globalThis.DEBUG_COLORS??=Hj.DEBUG_COLORS?Hj.DEBUG_COLORS==="true":!0;var cT={enable(e){typeof e=="string"&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let r=globalThis.DEBUG.split(",").map(i=>i.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),n=r.some(i=>i===""||i[0]==="-"?!1:e.match(RegExp(i.split("*").join(".*")+"$"))),o=r.some(i=>i===""||i[0]!=="-"?!1:e.match(RegExp(i.slice(1).split("*").join(".*")+"$")));return n&&!o},log:(...e)=>{let[r,n,...o]=e;(console.warn??console.log)(`${r} ${n}`,...o)},formatters:{}};function qit(e){let r={color:Sde[jit++%Sde.length],enabled:cT.enabled(e),namespace:e,log:cT.log,extend:()=>{}},n=(...o)=>{let{enabled:i,namespace:a,color:c,log:u}=r;if(o.length!==0&&Gj.push([a,...o]),Gj.length>Uit&&Gj.shift(),cT.enabled(a)||i){let l=o.map(f=>typeof f=="string"?f:Git(f)),p=`+${Date.now()-wde}ms`;wde=Date.now(),globalThis.DEBUG_COLORS?u(WO[c](U(a)),...l,WO[c](p)):u(a,...l,p)}};return new Proxy(n,{get:(o,i)=>r[i],set:(o,i,a)=>r[i]=a})}var Wo=new Proxy(qit,{get:(e,r)=>cT[r],set:(e,r,n)=>cT[r]=n});function Git(e,r=2){let n=new Set;return JSON.stringify(e,(o,i)=>{if(typeof i=="object"&&i!==null){if(n.has(i))return"[Circular *]";n.add(i)}else if(typeof i=="bigint")return i.toString();return i},r)}var gt=Wo;var ent=require("@prisma/engines");var Ta=W(require("node:fs")),Bp=W(require("node:path")),k1e=require("node:util");var uT=["darwin","darwin-arm64","debian-openssl-1.0.x","debian-openssl-1.1.x","debian-openssl-3.0.x","rhel-openssl-1.0.x","rhel-openssl-1.1.x","rhel-openssl-3.0.x","linux-arm64-openssl-1.1.x","linux-arm64-openssl-1.0.x","linux-arm64-openssl-3.0.x","linux-arm-openssl-1.1.x","linux-arm-openssl-1.0.x","linux-arm-openssl-3.0.x","linux-musl","linux-musl-openssl-3.0.x","linux-musl-arm64-openssl-1.1.x","linux-musl-arm64-openssl-3.0.x","linux-nixos","linux-static-x64","linux-static-arm64","windows","freebsd11","freebsd12","freebsd13","freebsd14","freebsd15","openbsd","netbsd","arm"];var Pde=W(require("child_process")),Zj=W(require("fs/promises")),YO=W(require("os"));var ya=Symbol.for("@ts-pattern/matcher"),_de=Symbol.for("@ts-pattern/isVariadic"),zO="@ts-pattern/anonymous-select-key",Wj=e=>!!(e&&typeof e=="object"),VO=e=>e&&!!e[ya],Ji=(e,r,n)=>{if(VO(e)){let o=e[ya](),{matched:i,selections:a}=o.match(r);return i&&a&&Object.keys(a).forEach(c=>n(c,a[c])),i}if(Wj(e)){if(!Wj(r))return!1;if(Array.isArray(e)){if(!Array.isArray(r))return!1;let o=[],i=[],a=[];for(let c of e.keys()){let u=e[c];VO(u)&&u[_de]?a.push(u):a.length?i.push(u):o.push(u)}if(a.length){if(a.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(r.length<o.length+i.length)return!1;let c=r.slice(0,o.length),u=i.length===0?[]:r.slice(-i.length),l=r.slice(o.length,i.length===0?1/0:-i.length);return o.every((p,f)=>Ji(p,c[f],n))&&i.every((p,f)=>Ji(p,u[f],n))&&(a.length===0||Ji(a[0],l,n))}return e.length===r.length&&e.every((c,u)=>Ji(c,r[u],n))}return Reflect.ownKeys(e).every(o=>{let i=e[o];return(o in r||VO(a=i)&&a[ya]().matcherType==="optional")&&Ji(i,r[o],n);var a})}return Object.is(r,e)},ac=e=>{var r,n,o;return Wj(e)?VO(e)?(r=(n=(o=e[ya]()).getSelectionKeys)==null?void 0:n.call(o))!=null?r:[]:Array.isArray(e)?lT(e,ac):lT(Object.values(e),ac):[]},lT=(e,r)=>e.reduce((n,o)=>n.concat(r(o)),[]);function Hit(...e){if(e.length===1){let[r]=e;return n=>Ji(r,n,()=>{})}if(e.length===2){let[r,n]=e;return Ji(r,n,()=>{})}throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${e.length}.`)}function Yi(e){return Object.assign(e,{optional:()=>Yj(e),and:r=>Bn(e,r),or:r=>Tde(e,r),select:r=>r===void 0?pT(e):pT(r,e)})}function Vj(e){return Object.assign((r=>Object.assign(r,{[Symbol.iterator](){let n=0,o=[{value:Object.assign(r,{[_de]:!0}),done:!1},{done:!0,value:void 0}];return{next:()=>{var i;return(i=o[n++])!=null?i:o.at(-1)}}}}))(e),{optional:()=>Vj(Yj(e)),select:r=>Vj(r===void 0?pT(e):pT(r,e))})}function Yj(e){return Yi({[ya]:()=>({match:r=>{let n={},o=(i,a)=>{n[i]=a};return r===void 0?(ac(e).forEach(i=>o(i,void 0)),{matched:!0,selections:n}):{matched:Ji(e,r,o),selections:n}},getSelectionKeys:()=>ac(e),matcherType:"optional"})})}var Wit=(e,r)=>{for(let n of e)if(!r(n))return!1;return!0},Vit=(e,r)=>{for(let[n,o]of e.entries())if(!r(o,n))return!1;return!0};function Bn(...e){return Yi({[ya]:()=>({match:r=>{let n={},o=(i,a)=>{n[i]=a};return{matched:e.every(i=>Ji(i,r,o)),selections:n}},getSelectionKeys:()=>lT(e,ac),matcherType:"and"})})}function Tde(...e){return Yi({[ya]:()=>({match:r=>{let n={},o=(i,a)=>{n[i]=a};return lT(e,ac).forEach(i=>o(i,void 0)),{matched:e.some(i=>Ji(i,r,o)),selections:n}},getSelectionKeys:()=>lT(e,ac),matcherType:"or"})})}function _r(e){return{[ya]:()=>({match:r=>({matched:!!e(r)})})}}function pT(...e){let r=typeof e[0]=="string"?e[0]:void 0,n=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return Yi({[ya]:()=>({match:o=>{let i={[r??zO]:o};return{matched:n===void 0||Ji(n,o,(a,c)=>{i[a]=c}),selections:i}},getSelectionKeys:()=>[r??zO].concat(n===void 0?[]:ac(n))})})}function Tp(e){return typeof e=="number"}function dh(e){return typeof e=="string"}function mh(e){return typeof e=="bigint"}var Dde=Yi(_r(function(e){return!0})),zit=Dde,hh=e=>Object.assign(Yi(e),{startsWith:r=>{return hh(Bn(e,(n=r,_r(o=>dh(o)&&o.startsWith(n)))));var n},endsWith:r=>{return hh(Bn(e,(n=r,_r(o=>dh(o)&&o.endsWith(n)))));var n},minLength:r=>hh(Bn(e,(n=>_r(o=>dh(o)&&o.length>=n))(r))),length:r=>hh(Bn(e,(n=>_r(o=>dh(o)&&o.length===n))(r))),maxLength:r=>hh(Bn(e,(n=>_r(o=>dh(o)&&o.length<=n))(r))),includes:r=>{return hh(Bn(e,(n=r,_r(o=>dh(o)&&o.includes(n)))));var n},regex:r=>{return hh(Bn(e,(n=r,_r(o=>dh(o)&&!!o.match(n)))));var n}}),Kit=hh(_r(dh)),Dp=e=>Object.assign(Yi(e),{between:(r,n)=>Dp(Bn(e,((o,i)=>_r(a=>Tp(a)&&o<=a&&i>=a))(r,n))),lt:r=>Dp(Bn(e,(n=>_r(o=>Tp(o)&&o<n))(r))),gt:r=>Dp(Bn(e,(n=>_r(o=>Tp(o)&&o>n))(r))),lte:r=>Dp(Bn(e,(n=>_r(o=>Tp(o)&&o<=n))(r))),gte:r=>Dp(Bn(e,(n=>_r(o=>Tp(o)&&o>=n))(r))),int:()=>Dp(Bn(e,_r(r=>Tp(r)&&Number.isInteger(r)))),finite:()=>Dp(Bn(e,_r(r=>Tp(r)&&Number.isFinite(r)))),positive:()=>Dp(Bn(e,_r(r=>Tp(r)&&r>0))),negative:()=>Dp(Bn(e,_r(r=>Tp(r)&&r<0)))}),Jit=Dp(_r(Tp)),gh=e=>Object.assign(Yi(e),{between:(r,n)=>gh(Bn(e,((o,i)=>_r(a=>mh(a)&&o<=a&&i>=a))(r,n))),lt:r=>gh(Bn(e,(n=>_r(o=>mh(o)&&o<n))(r))),gt:r=>gh(Bn(e,(n=>_r(o=>mh(o)&&o>n))(r))),lte:r=>gh(Bn(e,(n=>_r(o=>mh(o)&&o<=n))(r))),gte:r=>gh(Bn(e,(n=>_r(o=>mh(o)&&o>=n))(r))),positive:()=>gh(Bn(e,_r(r=>mh(r)&&r>0))),negative:()=>gh(Bn(e,_r(r=>mh(r)&&r<0)))}),Yit=gh(_r(mh)),Zit=Yi(_r(function(e){return typeof e=="boolean"})),Qit=Yi(_r(function(e){return typeof e=="symbol"})),Xit=Yi(_r(function(e){return e==null})),est=Yi(_r(function(e){return e!=null})),cc={__proto__:null,matcher:ya,optional:Yj,array:function(...e){return Vj({[ya]:()=>({match:r=>{if(!Array.isArray(r))return{matched:!1};if(e.length===0)return{matched:!0};let n=e[0],o={};if(r.length===0)return ac(n).forEach(a=>{o[a]=[]}),{matched:!0,selections:o};let i=(a,c)=>{o[a]=(o[a]||[]).concat([c])};return{matched:r.every(a=>Ji(n,a,i)),selections:o}},getSelectionKeys:()=>e.length===0?[]:ac(e[0])})})},set:function(...e){return Yi({[ya]:()=>({match:r=>{if(!(r instanceof Set))return{matched:!1};let n={};if(r.size===0)return{matched:!0,selections:n};if(e.length===0)return{matched:!0};let o=(a,c)=>{n[a]=(n[a]||[]).concat([c])},i=e[0];return{matched:Wit(r,a=>Ji(i,a,o)),selections:n}},getSelectionKeys:()=>e.length===0?[]:ac(e[0])})})},map:function(...e){return Yi({[ya]:()=>({match:r=>{if(!(r instanceof Map))return{matched:!1};let n={};if(r.size===0)return{matched:!0,selections:n};let o=(u,l)=>{n[u]=(n[u]||[]).concat([l])};if(e.length===0)return{matched:!0};var i;if(e.length===1)throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(i=e[0])==null?void 0:i.toString()}`);let[a,c]=e;return{matched:Vit(r,(u,l)=>{let p=Ji(a,l,o),f=Ji(c,u,o);return p&&f}),selections:n}},getSelectionKeys:()=>e.length===0?[]:[...ac(e[0]),...ac(e[1])]})})},intersection:Bn,union:Tde,not:function(e){return Yi({[ya]:()=>({match:r=>({matched:!Ji(e,r,()=>{})}),getSelectionKeys:()=>[],matcherType:"not"})})},when:_r,select:pT,any:Dde,_:zit,string:Kit,number:Jit,bigint:Yit,boolean:Zit,symbol:Qit,nullish:Xit,nonNullable:est,instanceOf:function(e){return Yi(_r(function(r){return n=>n instanceof r}(e)))},shape:function(e){return Yi(_r(Hit(e)))}},zj=class extends Error{constructor(r){let n;try{n=JSON.stringify(r)}catch{n=r}super(`Pattern matching error: no pattern matches value ${n}`),this.input=void 0,this.input=r}},Kj={matched:!1,value:void 0};function xr(e){return new Jj(e,Kj)}var Jj=class e{constructor(r,n){this.input=void 0,this.state=void 0,this.input=r,this.state=n}with(...r){if(this.state.matched)return this;let n=r[r.length-1],o=[r[0]],i;r.length===3&&typeof r[1]=="function"?i=r[1]:r.length>2&&o.push(...r.slice(1,r.length-1));let a=!1,c={},u=(p,f)=>{a=!0,c[p]=f},l=!o.some(p=>Ji(p,this.input,u))||i&&!i(this.input)?Kj:{matched:!0,value:n(a?zO in c?c[zO]:c:this.input,this.input)};return new e(this.input,l)}when(r,n){if(this.state.matched)return this;let o=!!r(this.input);return new e(this.input,o?{matched:!0,value:n(this.input,this.input)}:Kj)}otherwise(r){return this.state.matched?this.state.value:r(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new zj(this.input)}run(){return this.exhaustive()}returnType(){return this}};var Ide=require("util");var tst={warn:mt("prisma:warn")},rst={warn:()=>!process.env.PRISMA_DISABLE_WARNINGS};function KO(e,...r){rst.warn()&&console.warn(`${tst.warn} ${e}`,...r)}var nst=(0,Ide.promisify)(Pde.default.exec),Ws=gt("prisma:get-platform"),ost=["1.0.x","1.1.x","3.0.x"];async function Ode(){let e=YO.default.platform(),r=process.arch;if(e==="freebsd"){let c=await ZO("freebsd-version");if(c&&c.trim().length>0){let l=/^(\d+)\.?/.exec(c);if(l)return{platform:"freebsd",targetDistro:`freebsd${l[1]}`,arch:r}}}if(e!=="linux")return{platform:e,arch:r};let n=await sst(),o=await mst(),i=cst({arch:r,archFromUname:o,familyDistro:n.familyDistro}),{libssl:a}=await ust(i);return{platform:"linux",libssl:a,arch:r,archFromUname:o,...n}}function ist(e){let r=/^ID="?([^"\n]*)"?$/im,n=/^ID_LIKE="?([^"\n]*)"?$/im,o=r.exec(e),i=o&&o[1]&&o[1].toLowerCase()||"",a=n.exec(e),c=a&&a[1]&&a[1].toLowerCase()||"",u=xr({id:i,idLike:c}).with({id:"alpine"},({id:l})=>({targetDistro:"musl",familyDistro:l,originalDistro:l})).with({id:"raspbian"},({id:l})=>({targetDistro:"arm",familyDistro:"debian",originalDistro:l})).with({id:"nixos"},({id:l})=>({targetDistro:"nixos",originalDistro:l,familyDistro:"nixos"})).with({id:"debian"},{id:"ubuntu"},({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).with({id:"rhel"},{id:"centos"},{id:"fedora"},({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).when(({idLike:l})=>l.includes("debian")||l.includes("ubuntu"),({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).when(({idLike:l})=>i==="arch"||l.includes("arch"),({id:l})=>({targetDistro:"debian",familyDistro:"arch",originalDistro:l})).when(({idLike:l})=>l.includes("centos")||l.includes("fedora")||l.includes("rhel")||l.includes("suse"),({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).otherwise(({id:l})=>({targetDistro:void 0,familyDistro:void 0,originalDistro:l}));return Ws(`Found distro info:
|
|
161
|
+
`);return _?(o.originalMessage=o.message,o.message=I):o=new Error(I),o.shortMessage=D,o.command=c,o.escapedCommand=u,o.exitCode=a,o.signal=i,o.signalDescription=x,o.stdout=e,o.stderr=r,n!==void 0&&(o.all=n),"bufferedData"in o&&delete o.bufferedData,o.failed=!0,o.timedOut=!!l,o.isCanceled=p,o.killed=f&&!l,o};MYe.exports=_Zt});var $Ye=C((kyn,due)=>{"use strict";var J8=["stdin","stdout","stderr"],TZt=e=>J8.some(r=>e[r]!==void 0),NYe=e=>{if(!e)return;let{stdio:r}=e;if(r===void 0)return J8.map(o=>e[o]);if(TZt(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${J8.map(o=>`\`${o}\``).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}\``);let n=Math.max(r.length,J8.length);return Array.from({length:n},(o,i)=>r[i])};due.exports=NYe;due.exports.node=e=>{let r=NYe(e);return r==="ipc"?"ipc":r===void 0||typeof r=="string"?[r,r,r,"ipc"]:r.includes("ipc")?r:[...r,"ipc"]}});var LYe=C((Nyn,Y8)=>{"use strict";Y8.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Y8.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Y8.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var GYe=C(($yn,r1)=>{"use strict";var uo=global.process,oE=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};oE(uo)?(BYe=require("assert"),e1=LYe(),UYe=/^win/i.test(uo.platform),uI=require("events"),typeof uI!="function"&&(uI=uI.EventEmitter),uo.__signal_exit_emitter__?Wi=uo.__signal_exit_emitter__:(Wi=uo.__signal_exit_emitter__=new uI,Wi.count=0,Wi.emitted={}),Wi.infinite||(Wi.setMaxListeners(1/0),Wi.infinite=!0),r1.exports=function(e,r){if(!oE(global.process))return function(){};BYe.equal(typeof e,"function","a callback must be provided for exit handler"),t1===!1&&mue();var n="exit";r&&r.alwaysLast&&(n="afterexit");var o=function(){Wi.removeListener(n,e),Wi.listeners("exit").length===0&&Wi.listeners("afterexit").length===0&&Z8()};return Wi.on(n,e),o},Z8=function(){!t1||!oE(global.process)||(t1=!1,e1.forEach(function(r){try{uo.removeListener(r,Q8[r])}catch{}}),uo.emit=X8,uo.reallyExit=hue,Wi.count-=1)},r1.exports.unload=Z8,iE=function(r,n,o){Wi.emitted[r]||(Wi.emitted[r]=!0,Wi.emit(r,n,o))},Q8={},e1.forEach(function(e){Q8[e]=function(){if(oE(global.process)){var n=uo.listeners(e);n.length===Wi.count&&(Z8(),iE("exit",null,e),iE("afterexit",null,e),UYe&&e==="SIGHUP"&&(e="SIGINT"),uo.kill(uo.pid,e))}}}),r1.exports.signals=function(){return e1},t1=!1,mue=function(){t1||!oE(global.process)||(t1=!0,Wi.count+=1,e1=e1.filter(function(r){try{return uo.on(r,Q8[r]),!0}catch{return!1}}),uo.emit=qYe,uo.reallyExit=jYe)},r1.exports.load=mue,hue=uo.reallyExit,jYe=function(r){oE(global.process)&&(uo.exitCode=r||0,iE("exit",uo.exitCode,null),iE("afterexit",uo.exitCode,null),hue.call(uo,uo.exitCode))},X8=uo.emit,qYe=function(r,n){if(r==="exit"&&oE(global.process)){n!==void 0&&(uo.exitCode=n);var o=X8.apply(this,arguments);return iE("exit",uo.exitCode,null),iE("afterexit",uo.exitCode,null),o}else return X8.apply(this,arguments)}):r1.exports=function(){return function(){}};var BYe,e1,UYe,uI,Wi,Z8,iE,Q8,t1,mue,hue,jYe,X8,qYe});var WYe=C((Lyn,HYe)=>{"use strict";var DZt=require("os"),AZt=GYe(),CZt=1e3*5,PZt=(e,r="SIGTERM",n={})=>{let o=e(r);return IZt(e,r,n,o),o},IZt=(e,r,n,o)=>{if(!OZt(r,n,o))return;let i=FZt(n),a=setTimeout(()=>{e("SIGKILL")},i);a.unref&&a.unref()},OZt=(e,{forceKillAfterTimeout:r},n)=>RZt(e)&&r!==!1&&n,RZt=e=>e===DZt.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",FZt=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return CZt;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},MZt=(e,r)=>{e.kill()&&(r.isCanceled=!0)},kZt=(e,r,n)=>{e.kill(r),n(Object.assign(new Error("Timed out"),{timedOut:!0,signal:r}))},NZt=(e,{timeout:r,killSignal:n="SIGTERM"},o)=>{if(r===0||r===void 0)return o;let i,a=new Promise((u,l)=>{i=setTimeout(()=>{kZt(e,n,l)},r)}),c=o.finally(()=>{clearTimeout(i)});return Promise.race([a,c])},$Zt=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},LZt=async(e,{cleanup:r,detached:n},o)=>{if(!r||n)return o;let i=AZt(()=>{e.kill()});return o.finally(()=>{i()})};HYe.exports={spawnedKill:PZt,spawnedCancel:MZt,setupTimeout:NZt,validateTimeout:$Zt,setExitHandler:LZt}});var zYe=C((Byn,VYe)=>{"use strict";var{PassThrough:BZt}=require("stream");VYe.exports=e=>{e={...e};let{array:r}=e,{encoding:n}=e,o=n==="buffer",i=!1;r?i=!(n||o):n=n||"utf8",o&&(n=null);let a=new BZt({objectMode:i});n&&a.setEncoding(n);let c=0,u=[];return a.on("data",l=>{u.push(l),i?c=u.length:c+=l.length}),a.getBufferedValue=()=>r?u:o?Buffer.concat(u,c):u.join(""),a.getBufferedLength=()=>c,a}});var KYe=C((Uyn,lI)=>{"use strict";var{constants:UZt}=require("buffer"),jZt=require("stream"),{promisify:qZt}=require("util"),GZt=zYe(),HZt=qZt(jZt.pipeline),e5=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function gue(e,r){if(!e)throw new Error("Expected a stream");r={maxBuffer:1/0,...r};let{maxBuffer:n}=r,o=GZt(r);return await new Promise((i,a)=>{let c=u=>{u&&o.getBufferedLength()<=UZt.MAX_LENGTH&&(u.bufferedData=o.getBufferedValue()),a(u)};(async()=>{try{await HZt(e,o),i()}catch(u){c(u)}})(),o.on("data",()=>{o.getBufferedLength()>n&&c(new e5)})}),o.getBufferedValue()}lI.exports=gue;lI.exports.buffer=(e,r)=>gue(e,{...r,encoding:"buffer"});lI.exports.array=(e,r)=>gue(e,{...r,array:!0});lI.exports.MaxBufferError=e5});var QYe=C((jyn,ZYe)=>{"use strict";var YYe=gF(),JYe=KYe(),WZt=O9(),VZt=(e,r)=>{r===void 0||e.stdin===void 0||(YYe(r)?r.pipe(e.stdin):e.stdin.end(r))},zZt=(e,{all:r})=>{if(!r||!e.stdout&&!e.stderr)return;let n=WZt();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n},yue=async(e,r)=>{if(e){e.destroy();try{return await r}catch(n){return n.bufferedData}}},xue=(e,{encoding:r,buffer:n,maxBuffer:o})=>{if(!(!e||!n))return r?JYe(e,{encoding:r,maxBuffer:o}):JYe.buffer(e,{maxBuffer:o})},KZt=async({stdout:e,stderr:r,all:n},{encoding:o,buffer:i,maxBuffer:a},c)=>{let u=xue(e,{encoding:o,buffer:i,maxBuffer:a}),l=xue(r,{encoding:o,buffer:i,maxBuffer:a}),p=xue(n,{encoding:o,buffer:i,maxBuffer:a*2});try{return await Promise.all([c,u,l,p])}catch(f){return Promise.all([{error:f,signal:f.signal,timedOut:f.timedOut},yue(e,u),yue(r,l),yue(n,p)])}},JZt=({input:e})=>{if(YYe(e))throw new TypeError("The `input` option cannot be a stream in sync mode")};ZYe.exports={handleInput:VZt,makeAllStream:zZt,getSpawnedResult:KZt,validateInputSync:JZt}});var eZe=C((qyn,XYe)=>{"use strict";var YZt=(async()=>{})().constructor.prototype,ZZt=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(YZt,e)]),QZt=(e,r)=>{for(let[n,o]of ZZt){let i=typeof r=="function"?(...a)=>Reflect.apply(o.value,r(),a):o.value.bind(r);Reflect.defineProperty(e,n,{...o,value:i})}return e},XZt=e=>new Promise((r,n)=>{e.on("exit",(o,i)=>{r({exitCode:o,signal:i})}),e.on("error",o=>{n(o)}),e.stdin&&e.stdin.on("error",o=>{n(o)})});XYe.exports={mergePromise:QZt,getSpawnedPromise:XZt}});var nZe=C((Gyn,rZe)=>{"use strict";var tZe=(e,r=[])=>Array.isArray(r)?[e,...r]:[e],eQt=/^[\w.-]+$/,tQt=/"/g,rQt=e=>typeof e!="string"||eQt.test(e)?e:`"${e.replace(tQt,'\\"')}"`,nQt=(e,r)=>tZe(e,r).join(" "),oQt=(e,r)=>tZe(e,r).map(n=>rQt(n)).join(" "),iQt=/ +/g,sQt=e=>{let r=[];for(let n of e.trim().split(iQt)){let o=r[r.length-1];o&&o.endsWith("\\")?r[r.length-1]=`${o.slice(0,-1)} ${n}`:r.push(n)}return r};rZe.exports={joinCommand:nQt,getEscapedCommand:oQt,parseCommand:sQt}});var n5=C((Hyn,n1)=>{"use strict";var aQt=require("path"),bue=require("child_process"),cQt=rR(),uQt=EYe(),lQt=wYe(),pQt=AYe(),t5=kYe(),iZe=$Ye(),{spawnedKill:fQt,spawnedCancel:dQt,setupTimeout:mQt,validateTimeout:hQt,setExitHandler:gQt}=WYe(),{handleInput:yQt,getSpawnedResult:xQt,makeAllStream:bQt,validateInputSync:EQt}=QYe(),{mergePromise:oZe,getSpawnedPromise:vQt}=eZe(),{joinCommand:sZe,parseCommand:aZe,getEscapedCommand:cZe}=nZe(),SQt=1e3*1e3*100,wQt=({env:e,extendEnv:r,preferLocal:n,localDir:o,execPath:i})=>{let a=r?{...process.env,...e}:e;return n?lQt.env({env:a,cwd:o,execPath:i}):a},uZe=(e,r,n={})=>{let o=cQt._parse(e,r,n);return e=o.command,r=o.args,n=o.options,n={maxBuffer:SQt,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:n.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...n},n.env=wQt(n),n.stdio=iZe(n),process.platform==="win32"&&aQt.basename(e,".exe")==="cmd"&&r.unshift("/q"),{file:e,args:r,options:n,parsed:o}},pI=(e,r,n)=>typeof r!="string"&&!Buffer.isBuffer(r)?n===void 0?void 0:"":e.stripFinalNewline?uQt(r):r,r5=(e,r,n)=>{let o=uZe(e,r,n),i=sZe(e,r),a=cZe(e,r);hQt(o.options);let c;try{c=bue.spawn(o.file,o.args,o.options)}catch(b){let E=new bue.ChildProcess,S=Promise.reject(t5({error:b,stdout:"",stderr:"",all:"",command:i,escapedCommand:a,parsed:o,timedOut:!1,isCanceled:!1,killed:!1}));return oZe(E,S)}let u=vQt(c),l=mQt(c,o.options,u),p=gQt(c,o.options,l),f={isCanceled:!1};c.kill=fQt.bind(null,c.kill.bind(c)),c.cancel=dQt.bind(null,c,f);let x=pQt(async()=>{let[{error:b,exitCode:E,signal:S,timedOut:_},D,I,A]=await xQt(c,o.options,p),R=pI(o.options,D),O=pI(o.options,I),k=pI(o.options,A);if(b||E!==0||S!==null){let j=t5({error:b,exitCode:E,signal:S,stdout:R,stderr:O,all:k,command:i,escapedCommand:a,parsed:o,timedOut:_,isCanceled:f.isCanceled,killed:c.killed});if(!o.options.reject)return j;throw j}return{command:i,escapedCommand:a,exitCode:0,stdout:R,stderr:O,all:k,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return yQt(c,o.options.input),c.all=bQt(c,o.options),oZe(c,x)};n1.exports=r5;n1.exports.sync=(e,r,n)=>{let o=uZe(e,r,n),i=sZe(e,r),a=cZe(e,r);EQt(o.options);let c;try{c=bue.spawnSync(o.file,o.args,o.options)}catch(p){throw t5({error:p,stdout:"",stderr:"",all:"",command:i,escapedCommand:a,parsed:o,timedOut:!1,isCanceled:!1,killed:!1})}let u=pI(o.options,c.stdout,c.error),l=pI(o.options,c.stderr,c.error);if(c.error||c.status!==0||c.signal!==null){let p=t5({stdout:u,stderr:l,error:c.error,signal:c.signal,exitCode:c.status,command:i,escapedCommand:a,parsed:o,timedOut:c.error&&c.error.code==="ETIMEDOUT",isCanceled:!1,killed:c.signal!==null});if(!o.options.reject)return p;throw p}return{command:i,escapedCommand:a,exitCode:0,stdout:u,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};n1.exports.command=(e,r)=>{let[n,...o]=aZe(e);return r5(n,o,r)};n1.exports.commandSync=(e,r)=>{let[n,...o]=aZe(e);return r5.sync(n,o,r)};n1.exports.node=(e,r,n={})=>{r&&!Array.isArray(r)&&typeof r=="object"&&(n=r,r=[]);let o=iZe.node(n),i=process.execArgv.filter(u=>!u.startsWith("--inspect")),{nodePath:a=process.execPath,nodeOptions:c=i}=n;return r5(a,[...c,e,...Array.isArray(r)?r:[]],{...n,stdin:void 0,stdout:void 0,stderr:void 0,stdio:o,shell:!1})}});var DZe=C((Qyn,TZe)=>{"use strict";TZe.exports=(e,r,n)=>{let o=i=>Object.defineProperty(e,r,{value:i,enumerable:!0,writable:!0});return Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get(){let i=n();return o(i),i},set(i){o(i)}}),e}});var Aue=C((Xyn,RZe)=>{"use strict";var zQt=require("path"),KQt=require("child_process"),{promises:a5,constants:OZe}=require("fs"),s5=CK(),JQt=vN(),_ue=DZe(),AZe=zQt.join(__dirname,"xdg-open"),{platform:o1,arch:CZe}=process,YQt=()=>{try{return a5.statSync("/run/.containerenv"),!0}catch{return!1}},wue;function ZQt(){return wue===void 0&&(wue=YQt()||JQt()),wue}var QQt=(()=>{let e="/mnt/",r;return async function(){if(r)return r;let n="/etc/wsl.conf",o=!1;try{await a5.access(n,OZe.F_OK),o=!0}catch{}if(!o)return e;let i=await a5.readFile(n,{encoding:"utf8"}),a=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(i);return a?(r=a.groups.mountPoint.trim(),r=r.endsWith("/")?r:`${r}/`,r):e}})(),PZe=async(e,r)=>{let n;for(let o of e)try{return await r(o)}catch(i){n=i}throw n},c5=async e=>{if(e={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...e},Array.isArray(e.app))return PZe(e.app,u=>c5({...e,app:u}));let{name:r,arguments:n=[]}=e.app||{};if(n=[...n],Array.isArray(r))return PZe(r,u=>c5({...e,app:{name:u,arguments:n}}));let o,i=[],a={};if(o1==="darwin")o="open",e.wait&&i.push("--wait-apps"),e.background&&i.push("--background"),e.newInstance&&i.push("--new"),r&&i.push("-a",r);else if(o1==="win32"||s5&&!ZQt()&&!r){let u=await QQt();o=s5?`${u}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`,i.push("-NoProfile","-NonInteractive","\u2013ExecutionPolicy","Bypass","-EncodedCommand"),s5||(a.windowsVerbatimArguments=!0);let l=["Start"];e.wait&&l.push("-Wait"),r?(l.push(`"\`"${r}\`""`,"-ArgumentList"),e.target&&n.unshift(e.target)):e.target&&l.push(`"${e.target}"`),n.length>0&&(n=n.map(p=>`"\`"${p}\`""`),l.push(n.join(","))),e.target=Buffer.from(l.join(" "),"utf16le").toString("base64")}else{if(r)o=r;else{let u=!__dirname||__dirname==="/",l=!1;try{await a5.access(AZe,OZe.X_OK),l=!0}catch{}o=process.versions.electron||o1==="android"||u||!l?"xdg-open":AZe}n.length>0&&i.push(...n),e.wait||(a.stdio="ignore",a.detached=!0)}e.target&&i.push(e.target),o1==="darwin"&&n.length>0&&i.push("--args",...n);let c=KQt.spawn(o,i,a);return e.wait?new Promise((u,l)=>{c.once("error",l),c.once("close",p=>{if(!e.allowNonzeroExitCode&&p>0){l(new Error(`Exited with code ${p}`));return}u(c)})}):(c.unref(),c)},Tue=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a `target`");return c5({...r,target:e})},XQt=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a `name`");let{arguments:n=[]}=r||{};if(n!=null&&!Array.isArray(n))throw new TypeError("Expected `appArguments` as Array type");return c5({...r,app:{name:e,arguments:n}})};function IZe(e){if(typeof e=="string"||Array.isArray(e))return e;let{[CZe]:r}=e;if(!r)throw new Error(`${CZe} is not supported`);return r}function Due({[o1]:e},{wsl:r}){if(r&&s5)return IZe(r);if(!e)throw new Error(`${o1} is not supported`);return IZe(e)}var u5={};_ue(u5,"chrome",()=>Due({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));_ue(u5,"firefox",()=>Due({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));_ue(u5,"edge",()=>Due({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));Tue.apps=u5;Tue.openApp=XQt;RZe.exports=Tue});var FZe=C(l5=>{"use strict";l5.__esModule=!0;l5.Adapt=void 0;function eXt(e){return Cue(e)==="boolean"}function tXt(e){return Cue(e)==="object"}function rXt(e){return Cue(e)==="string"}function Cue(e){return typeof e}function nXt(e){var r=e.meta,n=e.path,o=e.xdg,i=function(){function a(c){c===void 0&&(c={});var u,l,p;function f(A){return A===void 0&&(A={}),new a(A)}var g=tXt(c)?c:{name:c},x=(u=g.suffix)!==null&&u!==void 0?u:"",b=(l=g.isolated)!==null&&l!==void 0?l:!0,E=[g.name,r.pkgMainFilename(),r.mainFilename()],S="$eval",_=n.parse(((p=E.find(function(A){return rXt(A)}))!==null&&p!==void 0?p:S)+x).name;f.$name=function(){return _},f.$isolated=function(){return b};function D(A){var R;A=A??{isolated:b};var O=eXt(A)?A:(R=A.isolated)!==null&&R!==void 0?R:b;return O}function I(A){return D(A)?_:""}return f.cache=function(R){return n.join(o.cache(),I(R))},f.config=function(R){return n.join(o.config(),I(R))},f.data=function(R){return n.join(o.data(),I(R))},f.runtime=function(R){return o.runtime()?n.join(o.runtime(),I(R)):void 0},f.state=function(R){return n.join(o.state(),I(R))},f.configDirs=function(R){return o.configDirs().map(function(O){return n.join(O,I(R))})},f.dataDirs=function(R){return o.dataDirs().map(function(O){return n.join(O,I(R))})},f}return a}();return{XDGAppPaths:new i}}l5.Adapt=nXt});var kZe=C(i1=>{"use strict";var MZe=i1&&i1.__spreadArray||function(e,r){for(var n=0,o=r.length,i=e.length;n<o;n++,i++)e[i]=r[n];return e};i1.__esModule=!0;i1.Adapt=void 0;function oXt(e){var r=e.env,n=e.osPaths,o=e.path,i=/^darwin$/i.test(e.process.platform),a=/^win/i.test(e.process.platform);function c(){return n.home()||n.temp()}function u(x,b){return x||o.join.apply(o,b)}var l=function(){var x=function(){return u(r.get("XDG_CACHE_HOME"),[c(),".cache"])},b=function(){return u(r.get("XDG_CONFIG_HOME"),[c(),".config"])},E=function(){return u(r.get("XDG_DATA_HOME"),[c(),".local","share"])},S=function(){return r.get("XDG_RUNTIME_DIR")||void 0},_=function(){return u(r.get("XDG_STATE_HOME"),[c(),".local","state"])};return{cache:x,config:b,data:E,runtime:S,state:_}},p=function(){var x=function(){return u(r.get("XDG_CACHE_HOME"),[c(),"Library","Caches"])},b=function(){return u(r.get("XDG_CONFIG_HOME"),[c(),"Library","Preferences"])},E=function(){return u(r.get("XDG_DATA_HOME"),[c(),"Library","Application Support"])},S=function(){return r.get("XDG_RUNTIME_DIR")||void 0},_=function(){return u(r.get("XDG_STATE_HOME"),[c(),"Library","State"])};return{cache:x,config:b,data:E,runtime:S,state:_}},f=function(){function x(){return u(r.get("APPDATA"),[c(),"AppData","Roaming"])}function b(){return u(r.get("LOCALAPPDATA"),[c(),"AppData","Local"])}var E=function(){return u(r.get("XDG_CACHE_HOME"),[b(),"xdg.cache"])},S=function(){return u(r.get("XDG_CONFIG_HOME"),[x(),"xdg.config"])},_=function(){return u(r.get("XDG_DATA_HOME"),[x(),"xdg.data"])},D=function(){return r.get("XDG_RUNTIME_DIR")||void 0},I=function(){return u(r.get("XDG_STATE_HOME"),[b(),"xdg.state"])};return{cache:E,config:S,data:_,runtime:D,state:I}},g=function(){function x(){function b(){return new x}var E=i?p():a?f():l();return b.cache=E.cache,b.config=E.config,b.data=E.data,b.runtime=E.runtime,b.state=E.state,b.configDirs=function(){var _=r.get("XDG_CONFIG_DIRS");return MZe([E.config()],_?_.split(o.delimiter):[])},b.dataDirs=function(){var _=r.get("XDG_DATA_DIRS");return MZe([E.data()],_?_.split(o.delimiter):[])},b}return x}();return{XDG:new g}}i1.Adapt=oXt});var NZe=C(s1=>{"use strict";var iXt=s1&&s1.__spreadArray||function(e,r){for(var n=0,o=r.length,i=e.length;n<o;n++,i++)e[i]=r[n];return e};s1.__esModule=!0;s1.Adapt=void 0;function Pue(e){return!e}function sXt(e){var r=e.env,n=e.os,o=e.path,i=/^win/i.test(e.process.platform);function a(p){return p?e.path.normalize(e.path.join(p,".")):void 0}function c(){var p=function(){return a((typeof n.homedir=="function"?n.homedir():void 0)||r.get("HOME"))},f=function(){var g=[typeof n.homedir=="function"?n.homedir():void 0,r.get("USERPROFILE"),r.get("HOME"),r.get("HOMEDRIVE")||r.get("HOMEPATH")?o.join(r.get("HOMEDRIVE")||"",r.get("HOMEPATH")||""):void 0];return a(g.find(function(x){return!Pue(x)}))};return i?f():p()}function u(){function p(x,b){return x?o.join.apply(o,iXt([x],b)):void 0}function f(){var x="/tmp",b=[typeof n.tmpdir=="function"?n.tmpdir():void 0,r.get("TMPDIR"),r.get("TEMP"),r.get("TMP")];return a(b.find(function(E){return!Pue(E)}))||x}function g(){var x="C:\\Temp",b=[typeof n.tmpdir=="function"?n.tmpdir:function(){},function(){return r.get("TEMP")},function(){return r.get("TMP")},function(){return p(r.get("LOCALAPPDATA"),["Temp"])},function(){return p(c(),["AppData","Local","Temp"])},function(){return p(r.get("ALLUSERSPROFILE"),["Temp"])},function(){return p(r.get("SystemRoot"),["Temp"])},function(){return p(r.get("windir"),["Temp"])},function(){return p(r.get("SystemDrive"),["\\","Temp"])}],E=b.find(function(S){return S&&!Pue(S())});return E&&a(E())||x}return i?g():f()}var l=function(){function p(){function f(){return new p}return f.home=c,f.temp=u,f}return p}();return{OSPaths:new l}}s1.Adapt=sXt});var LZe=C(kf=>{"use strict";var aXt=kf&&kf.__createBinding||(Object.create?function(e,r,n,o){o===void 0&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return r[n]}})}:function(e,r,n,o){o===void 0&&(o=n),e[o]=r[n]}),cXt=kf&&kf.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),$Ze=kf&&kf.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&aXt(r,e,n);return cXt(r,e),r};kf.__esModule=!0;kf.adapter=void 0;var uXt=$Ze(require("os")),lXt=$Ze(require("path"));kf.adapter={atImportPermissions:{env:!0},env:{get:function(e){return process.env[e]}},os:uXt,path:lXt,process}});var UZe=C((oxn,BZe)=>{"use strict";var pXt=NZe(),fXt=LZe();BZe.exports=pXt.Adapt(fXt.adapter).OSPaths});var jZe=C(Yu=>{"use strict";var dXt=Yu&&Yu.__createBinding||(Object.create?function(e,r,n,o){o===void 0&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return r[n]}})}:function(e,r,n,o){o===void 0&&(o=n),e[o]=r[n]}),mXt=Yu&&Yu.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),hXt=Yu&&Yu.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&dXt(r,e,n);return mXt(r,e),r},gXt=Yu&&Yu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Yu.__esModule=!0;Yu.adapter=void 0;var yXt=hXt(require("path")),xXt=gXt(UZe());Yu.adapter={atImportPermissions:{env:!0},env:{get:function(e){return process.env[e]}},osPaths:xXt.default,path:yXt,process}});var GZe=C((sxn,qZe)=>{"use strict";var bXt=kZe(),EXt=jZe();qZe.exports=bXt.Adapt(EXt.adapter).XDG});var HZe=C(Zu=>{"use strict";var vXt=Zu&&Zu.__createBinding||(Object.create?function(e,r,n,o){o===void 0&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return r[n]}})}:function(e,r,n,o){o===void 0&&(o=n),e[o]=r[n]}),SXt=Zu&&Zu.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),wXt=Zu&&Zu.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&vXt(r,e,n);return SXt(r,e),r},_Xt=Zu&&Zu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Zu.__esModule=!0;Zu.adapter=void 0;var TXt=wXt(require("path")),DXt=_Xt(GZe());Zu.adapter={atImportPermissions:{env:!0,read:!0},meta:{mainFilename:function(){var e=typeof require<"u"&&require!==null&&require.main?require.main:{filename:void 0},r=e.filename,n=(r!==process.execArgv[0]?r:void 0)||(typeof process._eval>"u"?process.argv[1]:void 0);return n},pkgMainFilename:function(){return process.pkg?process.execPath:void 0}},path:TXt,process,xdg:DXt.default}});var Iue=C((cxn,WZe)=>{"use strict";var AXt=FZe(),CXt=HZe();WZe.exports=AXt.Adapt(CXt.adapter).XDGAppPaths});var C0=C((gxn,OXt)=>{OXt.exports={version:"7.9.0-dev.25",name:"prisma",description:"Prisma is an open-source database toolkit. It includes a JavaScript/TypeScript ORM for Node.js, migrations and a modern GUI to view and edit the data in your database. You can use Prisma in new projects or add it to an existing one.",keywords:["CLI","ORM","Prisma","Prisma CLI","prisma2","database","db","JavaScript","JS","TypeScript","TS","SQL","SQLite","pg","Postgres","PostgreSQL","CockroachDB","MySQL","MariaDB","MSSQL","SQL Server","SQLServer","MongoDB","MCP"],main:"build/index.js",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/cli"},homepage:"https://www.prisma.io",author:"Tim Suchanek <suchanek@prisma.io>",bugs:"https://github.com/prisma/prisma/issues",license:"Apache-2.0",engines:{node:"^20.19 || ^22.12 || >=24.0"},prisma:{prismaCommit:"b82985029d44349849dfbb4990bb19278178ee61"},files:["README.md","build","config.js","config.d.ts","dist/cli/src/types.d.ts","install","runtime/*.js","runtime/*.d.ts","runtime/utils","runtime/dist","runtime/llhttp","prisma-client","preinstall","scripts/preinstall-entry.js"],pkg:{assets:["build/**/*","runtime/**/*","prisma-client/**/*","node_modules/@prisma/engines/**/*","node_modules/@prisma/engines/*"]},bin:{prisma:"build/index.js"},types:"./dist/cli/src/types.d.ts",exports:{"./package.json":"./package.json",".":{require:{types:"./dist/cli/src/types.d.ts",default:"./build/types.js"},import:{types:"./dist/cli/src/types.d.ts",default:"./build/types.js"},default:"./build/types.js"},"./config":{require:{types:"./config.d.ts",default:"./config.js"},import:{types:"./config.d.ts",default:"./config.js"},default:"./config.js"},"./build/index.js":{require:{types:"./dist/cli/src/types.d.ts",default:"./build/index.js"},default:"./build/index.js"}},devDependencies:{"@inquirer/prompts":"7.3.3","@libsql/client":"0.8.1","@modelcontextprotocol/sdk":"1.13.2","@opentelemetry/api":"1.9.0","@opentelemetry/context-async-hooks":"2.1.0","@opentelemetry/sdk-trace-base":"2.1.0","@prisma/adapter-libsql":"workspace:*","@prisma/client":"workspace:*","@prisma/client-generator-registry":"workspace:*","@prisma/credentials-store":"workspace:*","@prisma/debug":"workspace:*","@prisma/dmmf":"workspace:*","@prisma/driver-adapter-utils":"workspace:*","@prisma/fetch-engine":"workspace:*","@prisma/generator":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/internals":"workspace:*","@prisma/management-api-sdk":"1.12.0","@prisma/migrate":"workspace:*","@swc/core":"1.11.5","@swc/jest":"0.2.37","@types/better-sqlite3":"7.6.12","@types/fs-extra":"11.0.4","@types/jest":"29.5.14","@types/node":"~20.19.24","@types/react":"19.2.14","@types/react-dom":"19.2.3","async-listen":"3.1.0","better-sqlite3":"^11.10.0","checkpoint-client":"1.1.33",chokidar:"4.0.3",dotenv:"17.2.3",effect:"3.20.0","env-paths":"2.2.1",execa:"5.1.1","fs-extra":"11.3.0","get-port-please":"3.2.0","get-tsconfig":"4.10.0",jest:"29.7.0","jest-junit":"16.0.0",kleur:"4.1.5","line-replace":"2.0.1","log-update":"6.1.0","node-fetch":"3.3.2","npm-packlist":"5.1.3",ohash:"2.0.11",open:"8.4.2","openapi-fetch":"0.15.0","openapi-typescript":"7.10.1",ora:"8.2.0","package-up":"5.0.0",pathe:"2.0.3",react:"19.2.0","react-dom":"19.2.0","resolve-pkg":"2.0.0","std-env":"3.10.0","strip-ansi":"7.1.0","ts-pattern":"5.6.2",typescript:"5.4.5","xdg-app-paths":"8.3.0",zod:"3.24.2"},scripts:{prisma:"tsx src/bin.ts",platform:"tsx src/bin.ts platform --early-access",pm:"tsx src/bin.ts platform --early-access",dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts","generate-api-client":"openapi-typescript https://api.prisma.io/v1/doc --output ./src/management-api/openapi.d.ts && prettier --write ./src/management-api/openapi.d.ts",test:"dotenv -e ../../.db.env -- tsx helpers/run-tests.ts","test:platform":"dotenv -e ../../.db.env -- tsx helpers/run-tests.ts src/platform",tsc:"tsc -d -p tsconfig.build.json",preinstall:"node scripts/preinstall-entry.js",prepublishOnly:"pnpm run build"},dependencies:{"@prisma/config":"workspace:*","@prisma/dev":"0.24.14","@prisma/engines":"workspace:*","@prisma/studio-core":"0.33.0",mysql2:"3.15.3",postgres:"3.4.7"},peerDependencies:{"better-sqlite3":">=9.0.0",typescript:">=5.4.0"},peerDependenciesMeta:{"better-sqlite3":{optional:!0},typescript:{optional:!0}},sideEffects:!1}});var xXe=C((W5,yXe)=>{"use strict";(function(e,r){typeof W5=="object"&&typeof yXe<"u"?r(W5):typeof define=="function"&&define.amd?define(["exports"],r):r(e.URI=e.URI||{})})(W5,function(e){"use strict";function r(){for(var ee=arguments.length,K=Array(ee),oe=0;oe<ee;oe++)K[oe]=arguments[oe];if(K.length>1){K[0]=K[0].slice(0,-1);for(var ue=K.length-1,pe=1;pe<ue;++pe)K[pe]=K[pe].slice(1,-1);return K[ue]=K[ue].slice(1),K.join("")}else return K[0]}function n(ee){return"(?:"+ee+")"}function o(ee){return ee===void 0?"undefined":ee===null?"null":Object.prototype.toString.call(ee).split(" ").pop().split("]").shift().toLowerCase()}function i(ee){return ee.toUpperCase()}function a(ee){return ee!=null?ee instanceof Array?ee:typeof ee.length!="number"||ee.split||ee.setInterval||ee.call?[ee]:Array.prototype.slice.call(ee):[]}function c(ee,K){var oe=ee;if(K)for(var ue in K)oe[ue]=K[ue];return oe}function u(ee){var K="[A-Za-z]",oe="[\\x0D]",ue="[0-9]",pe="[\\x22]",je=r(ue,"[A-Fa-f]"),Ht="[\\x0A]",hr="[\\x20]",Pr=n(n("%[EFef]"+je+"%"+je+je+"%"+je+je)+"|"+n("%[89A-Fa-f]"+je+"%"+je+je)+"|"+n("%"+je+je)),$n="[\\:\\/\\?\\#\\[\\]\\@]",pr="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",cn=r($n,pr),vn=ee?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Jr=ee?"[\\uE000-\\uF8FF]":"[]",$t=r(K,ue,"[\\-\\.\\_\\~]",vn),gn=n(K+r(K,ue,"[\\+\\-\\.]")+"*"),Br=n(n(Pr+"|"+r($t,pr,"[\\:]"))+"*"),Hc=n(n("25[0-5]")+"|"+n("2[0-4]"+ue)+"|"+n("1"+ue+ue)+"|"+n("[1-9]"+ue)+"|"+ue),Ii=n(n("25[0-5]")+"|"+n("2[0-4]"+ue)+"|"+n("1"+ue+ue)+"|"+n("0?[1-9]"+ue)+"|0?0?"+ue),qs=n(Ii+"\\."+Ii+"\\."+Ii+"\\."+Ii),Yr=n(je+"{1,4}"),Gs=n(n(Yr+"\\:"+Yr)+"|"+qs),ys=n(n(Yr+"\\:")+"{6}"+Gs),xs=n("\\:\\:"+n(Yr+"\\:")+"{5}"+Gs),bp=n(n(Yr)+"?\\:\\:"+n(Yr+"\\:")+"{4}"+Gs),Wc=n(n(n(Yr+"\\:")+"{0,1}"+Yr)+"?\\:\\:"+n(Yr+"\\:")+"{3}"+Gs),q0=n(n(n(Yr+"\\:")+"{0,2}"+Yr)+"?\\:\\:"+n(Yr+"\\:")+"{2}"+Gs),G0=n(n(n(Yr+"\\:")+"{0,3}"+Yr)+"?\\:\\:"+Yr+"\\:"+Gs),th=n(n(n(Yr+"\\:")+"{0,4}"+Yr)+"?\\:\\:"+Gs),Vc=n(n(n(Yr+"\\:")+"{0,5}"+Yr)+"?\\:\\:"+Yr),da=n(n(n(Yr+"\\:")+"{0,6}"+Yr)+"?\\:\\:"),zc=n([ys,xs,bp,Wc,q0,G0,th,Vc,da].join("|")),nl=n(n($t+"|"+Pr)+"+"),Hf=n(zc+"\\%25"+nl),Kc=n(zc+n("\\%25|\\%(?!"+je+"{2})")+nl),PE=n("[vV]"+je+"+\\."+r($t,pr,"[\\:]")+"+"),qU=n("\\["+n(Kc+"|"+zc+"|"+PE)+"\\]"),LI=n(n(Pr+"|"+r($t,pr))+"*"),H0=n(qU+"|"+qs+"(?!"+LI+")|"+LI),W0=n(ue+"*"),BI=n(n(Br+"@")+"?"+H0+n("\\:"+W0)+"?"),V0=n(Pr+"|"+r($t,pr,"[\\:\\@]")),UI=n(V0+"*"),jI=n(V0+"+"),GU=n(n(Pr+"|"+r($t,pr,"[\\@]"))+"+"),ol=n(n("\\/"+UI)+"*"),Jc=n("\\/"+n(jI+ol)+"?"),IE=n(GU+ol),OE=n(jI+ol),Wf="(?!"+V0+")",z0=n(ol+"|"+Jc+"|"+IE+"|"+OE+"|"+Wf),nc=n(n(V0+"|"+r("[\\/\\?]",Jr))+"*"),Ep=n(n(V0+"|[\\/\\?]")+"*"),M1=n(n("\\/\\/"+BI+ol)+"|"+Jc+"|"+OE+"|"+Wf),HU=n(gn+"\\:"+M1+n("\\?"+nc)+"?"+n("\\#"+Ep)+"?"),k1=n(n("\\/\\/"+BI+ol)+"|"+Jc+"|"+IE+"|"+Wf),N1=n(k1+n("\\?"+nc)+"?"+n("\\#"+Ep)+"?"),qI=n(HU+"|"+N1),Xle=n(gn+"\\:"+M1+n("\\?"+nc)+"?"),epe="^("+gn+")\\:"+n(n("\\/\\/("+n("("+Br+")@")+"?("+H0+")"+n("\\:("+W0+")")+"?)")+"?("+ol+"|"+Jc+"|"+OE+"|"+Wf+")")+n("\\?("+nc+")")+"?"+n("\\#("+Ep+")")+"?$",tpe="^(){0}"+n(n("\\/\\/("+n("("+Br+")@")+"?("+H0+")"+n("\\:("+W0+")")+"?)")+"?("+ol+"|"+Jc+"|"+IE+"|"+Wf+")")+n("\\?("+nc+")")+"?"+n("\\#("+Ep+")")+"?$",rpe="^("+gn+")\\:"+n(n("\\/\\/("+n("("+Br+")@")+"?("+H0+")"+n("\\:("+W0+")")+"?)")+"?("+ol+"|"+Jc+"|"+OE+"|"+Wf+")")+n("\\?("+nc+")")+"?$",il="^"+n("\\#("+Ep+")")+"?$",npe="^"+n("("+Br+")@")+"?("+H0+")"+n("\\:("+W0+")")+"?$";return{NOT_SCHEME:new RegExp(r("[^]",K,ue,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(r("[^\\%\\:]",$t,pr),"g"),NOT_HOST:new RegExp(r("[^\\%\\[\\]\\:]",$t,pr),"g"),NOT_PATH:new RegExp(r("[^\\%\\/\\:\\@]",$t,pr),"g"),NOT_PATH_NOSCHEME:new RegExp(r("[^\\%\\/\\@]",$t,pr),"g"),NOT_QUERY:new RegExp(r("[^\\%]",$t,pr,"[\\:\\@\\/\\?]",Jr),"g"),NOT_FRAGMENT:new RegExp(r("[^\\%]",$t,pr,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(r("[^]",$t,pr),"g"),UNRESERVED:new RegExp($t,"g"),OTHER_CHARS:new RegExp(r("[^\\%]",$t,cn),"g"),PCT_ENCODED:new RegExp(Pr,"g"),IPV4ADDRESS:new RegExp("^("+qs+")$"),IPV6ADDRESS:new RegExp("^\\[?("+zc+")"+n(n("\\%25|\\%(?!"+je+"{2})")+"("+nl+")")+"?\\]?$")}}var l=u(!1),p=u(!0),f=function(){function ee(K,oe){var ue=[],pe=!0,je=!1,Ht=void 0;try{for(var hr=K[Symbol.iterator](),Pr;!(pe=(Pr=hr.next()).done)&&(ue.push(Pr.value),!(oe&&ue.length===oe));pe=!0);}catch($n){je=!0,Ht=$n}finally{try{!pe&&hr.return&&hr.return()}finally{if(je)throw Ht}}return ue}return function(K,oe){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return ee(K,oe);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(ee){if(Array.isArray(ee)){for(var K=0,oe=Array(ee.length);K<ee.length;K++)oe[K]=ee[K];return oe}else return Array.from(ee)},x=2147483647,b=36,E=1,S=26,_=38,D=700,I=72,A=128,R="-",O=/^xn--/,k=/[^\0-\x7E]/,j=/[\x2E\u3002\uFF0E\uFF61]/g,G={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=b-E,H=Math.floor,F=String.fromCharCode;function Y(ee){throw new RangeError(G[ee])}function V(ee,K){for(var oe=[],ue=ee.length;ue--;)oe[ue]=K(ee[ue]);return oe}function Q(ee,K){var oe=ee.split("@"),ue="";oe.length>1&&(ue=oe[0]+"@",ee=oe[1]),ee=ee.replace(j,".");var pe=ee.split("."),je=V(pe,K).join(".");return ue+je}function q(ee){for(var K=[],oe=0,ue=ee.length;oe<ue;){var pe=ee.charCodeAt(oe++);if(pe>=55296&&pe<=56319&&oe<ue){var je=ee.charCodeAt(oe++);(je&64512)==56320?K.push(((pe&1023)<<10)+(je&1023)+65536):(K.push(pe),oe--)}else K.push(pe)}return K}var Z=function(K){return String.fromCodePoint.apply(String,g(K))},ie=function(K){return K-48<10?K-22:K-65<26?K-65:K-97<26?K-97:b},se=function(K,oe){return K+22+75*(K<26)-((oe!=0)<<5)},le=function(K,oe,ue){var pe=0;for(K=ue?H(K/D):K>>1,K+=H(K/oe);K>L*S>>1;pe+=b)K=H(K/L);return H(pe+(L+1)*K/(K+_))},_e=function(K){var oe=[],ue=K.length,pe=0,je=A,Ht=I,hr=K.lastIndexOf(R);hr<0&&(hr=0);for(var Pr=0;Pr<hr;++Pr)K.charCodeAt(Pr)>=128&&Y("not-basic"),oe.push(K.charCodeAt(Pr));for(var $n=hr>0?hr+1:0;$n<ue;){for(var pr=pe,cn=1,vn=b;;vn+=b){$n>=ue&&Y("invalid-input");var Jr=ie(K.charCodeAt($n++));(Jr>=b||Jr>H((x-pe)/cn))&&Y("overflow"),pe+=Jr*cn;var $t=vn<=Ht?E:vn>=Ht+S?S:vn-Ht;if(Jr<$t)break;var gn=b-$t;cn>H(x/gn)&&Y("overflow"),cn*=gn}var Br=oe.length+1;Ht=le(pe-pr,Br,pr==0),H(pe/Br)>x-je&&Y("overflow"),je+=H(pe/Br),pe%=Br,oe.splice(pe++,0,je)}return String.fromCodePoint.apply(String,oe)},Ge=function(K){var oe=[];K=q(K);var ue=K.length,pe=A,je=0,Ht=I,hr=!0,Pr=!1,$n=void 0;try{for(var pr=K[Symbol.iterator](),cn;!(hr=(cn=pr.next()).done);hr=!0){var vn=cn.value;vn<128&&oe.push(F(vn))}}catch(Kc){Pr=!0,$n=Kc}finally{try{!hr&&pr.return&&pr.return()}finally{if(Pr)throw $n}}var Jr=oe.length,$t=Jr;for(Jr&&oe.push(R);$t<ue;){var gn=x,Br=!0,Hc=!1,Ii=void 0;try{for(var qs=K[Symbol.iterator](),Yr;!(Br=(Yr=qs.next()).done);Br=!0){var Gs=Yr.value;Gs>=pe&&Gs<gn&&(gn=Gs)}}catch(Kc){Hc=!0,Ii=Kc}finally{try{!Br&&qs.return&&qs.return()}finally{if(Hc)throw Ii}}var ys=$t+1;gn-pe>H((x-je)/ys)&&Y("overflow"),je+=(gn-pe)*ys,pe=gn;var xs=!0,bp=!1,Wc=void 0;try{for(var q0=K[Symbol.iterator](),G0;!(xs=(G0=q0.next()).done);xs=!0){var th=G0.value;if(th<pe&&++je>x&&Y("overflow"),th==pe){for(var Vc=je,da=b;;da+=b){var zc=da<=Ht?E:da>=Ht+S?S:da-Ht;if(Vc<zc)break;var nl=Vc-zc,Hf=b-zc;oe.push(F(se(zc+nl%Hf,0))),Vc=H(nl/Hf)}oe.push(F(se(Vc,0))),Ht=le(je,ys,$t==Jr),je=0,++$t}}}catch(Kc){bp=!0,Wc=Kc}finally{try{!xs&&q0.return&&q0.return()}finally{if(bp)throw Wc}}++je,++pe}return oe.join("")},Mt=function(K){return Q(K,function(oe){return O.test(oe)?_e(oe.slice(4).toLowerCase()):oe})},Zt=function(K){return Q(K,function(oe){return k.test(oe)?"xn--"+Ge(oe):oe})},kt={version:"2.1.0",ucs2:{decode:q,encode:Z},decode:_e,encode:Ge,toASCII:Zt,toUnicode:Mt},Gt={};function Ne(ee){var K=ee.charCodeAt(0),oe=void 0;return K<16?oe="%0"+K.toString(16).toUpperCase():K<128?oe="%"+K.toString(16).toUpperCase():K<2048?oe="%"+(K>>6|192).toString(16).toUpperCase()+"%"+(K&63|128).toString(16).toUpperCase():oe="%"+(K>>12|224).toString(16).toUpperCase()+"%"+(K>>6&63|128).toString(16).toUpperCase()+"%"+(K&63|128).toString(16).toUpperCase(),oe}function Qe(ee){for(var K="",oe=0,ue=ee.length;oe<ue;){var pe=parseInt(ee.substr(oe+1,2),16);if(pe<128)K+=String.fromCharCode(pe),oe+=3;else if(pe>=194&&pe<224){if(ue-oe>=6){var je=parseInt(ee.substr(oe+4,2),16);K+=String.fromCharCode((pe&31)<<6|je&63)}else K+=ee.substr(oe,6);oe+=6}else if(pe>=224){if(ue-oe>=9){var Ht=parseInt(ee.substr(oe+4,2),16),hr=parseInt(ee.substr(oe+7,2),16);K+=String.fromCharCode((pe&15)<<12|(Ht&63)<<6|hr&63)}else K+=ee.substr(oe,9);oe+=9}else K+=ee.substr(oe,3),oe+=3}return K}function lo(ee,K){function oe(ue){var pe=Qe(ue);return pe.match(K.UNRESERVED)?pe:ue}return ee.scheme&&(ee.scheme=String(ee.scheme).replace(K.PCT_ENCODED,oe).toLowerCase().replace(K.NOT_SCHEME,"")),ee.userinfo!==void 0&&(ee.userinfo=String(ee.userinfo).replace(K.PCT_ENCODED,oe).replace(K.NOT_USERINFO,Ne).replace(K.PCT_ENCODED,i)),ee.host!==void 0&&(ee.host=String(ee.host).replace(K.PCT_ENCODED,oe).toLowerCase().replace(K.NOT_HOST,Ne).replace(K.PCT_ENCODED,i)),ee.path!==void 0&&(ee.path=String(ee.path).replace(K.PCT_ENCODED,oe).replace(ee.scheme?K.NOT_PATH:K.NOT_PATH_NOSCHEME,Ne).replace(K.PCT_ENCODED,i)),ee.query!==void 0&&(ee.query=String(ee.query).replace(K.PCT_ENCODED,oe).replace(K.NOT_QUERY,Ne).replace(K.PCT_ENCODED,i)),ee.fragment!==void 0&&(ee.fragment=String(ee.fragment).replace(K.PCT_ENCODED,oe).replace(K.NOT_FRAGMENT,Ne).replace(K.PCT_ENCODED,i)),ee}function xe(ee){return ee.replace(/^0*(.*)/,"$1")||"0"}function ze(ee,K){var oe=ee.match(K.IPV4ADDRESS)||[],ue=f(oe,2),pe=ue[1];return pe?pe.split(".").map(xe).join("."):ee}function ge(ee,K){var oe=ee.match(K.IPV6ADDRESS)||[],ue=f(oe,3),pe=ue[1],je=ue[2];if(pe){for(var Ht=pe.toLowerCase().split("::").reverse(),hr=f(Ht,2),Pr=hr[0],$n=hr[1],pr=$n?$n.split(":").map(xe):[],cn=Pr.split(":").map(xe),vn=K.IPV4ADDRESS.test(cn[cn.length-1]),Jr=vn?7:8,$t=cn.length-Jr,gn=Array(Jr),Br=0;Br<Jr;++Br)gn[Br]=pr[Br]||cn[$t+Br]||"";vn&&(gn[Jr-1]=ze(gn[Jr-1],K));var Hc=gn.reduce(function(ys,xs,bp){if(!xs||xs==="0"){var Wc=ys[ys.length-1];Wc&&Wc.index+Wc.length===bp?Wc.length++:ys.push({index:bp,length:1})}return ys},[]),Ii=Hc.sort(function(ys,xs){return xs.length-ys.length})[0],qs=void 0;if(Ii&&Ii.length>1){var Yr=gn.slice(0,Ii.index),Gs=gn.slice(Ii.index+Ii.length);qs=Yr.join(":")+"::"+Gs.join(":")}else qs=gn.join(":");return je&&(qs+="%"+je),qs}else return ee}var ut=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Nt="".match(/(){0}/)[1]===void 0;function ht(ee){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oe={},ue=K.iri!==!1?p:l;K.reference==="suffix"&&(ee=(K.scheme?K.scheme+":":"")+"//"+ee);var pe=ee.match(ut);if(pe){Nt?(oe.scheme=pe[1],oe.userinfo=pe[3],oe.host=pe[4],oe.port=parseInt(pe[5],10),oe.path=pe[6]||"",oe.query=pe[7],oe.fragment=pe[8],isNaN(oe.port)&&(oe.port=pe[5])):(oe.scheme=pe[1]||void 0,oe.userinfo=ee.indexOf("@")!==-1?pe[3]:void 0,oe.host=ee.indexOf("//")!==-1?pe[4]:void 0,oe.port=parseInt(pe[5],10),oe.path=pe[6]||"",oe.query=ee.indexOf("?")!==-1?pe[7]:void 0,oe.fragment=ee.indexOf("#")!==-1?pe[8]:void 0,isNaN(oe.port)&&(oe.port=ee.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?pe[4]:void 0)),oe.host&&(oe.host=ge(ze(oe.host,ue),ue)),oe.scheme===void 0&&oe.userinfo===void 0&&oe.host===void 0&&oe.port===void 0&&!oe.path&&oe.query===void 0?oe.reference="same-document":oe.scheme===void 0?oe.reference="relative":oe.fragment===void 0?oe.reference="absolute":oe.reference="uri",K.reference&&K.reference!=="suffix"&&K.reference!==oe.reference&&(oe.error=oe.error||"URI is not a "+K.reference+" reference.");var je=Gt[(K.scheme||oe.scheme||"").toLowerCase()];if(!K.unicodeSupport&&(!je||!je.unicodeSupport)){if(oe.host&&(K.domainHost||je&&je.domainHost))try{oe.host=kt.toASCII(oe.host.replace(ue.PCT_ENCODED,Qe).toLowerCase())}catch(Ht){oe.error=oe.error||"Host's domain name can not be converted to ASCII via punycode: "+Ht}lo(oe,l)}else lo(oe,ue);je&&je.parse&&je.parse(oe,K)}else oe.error=oe.error||"URI can not be parsed.";return oe}function nr(ee,K){var oe=K.iri!==!1?p:l,ue=[];return ee.userinfo!==void 0&&(ue.push(ee.userinfo),ue.push("@")),ee.host!==void 0&&ue.push(ge(ze(String(ee.host),oe),oe).replace(oe.IPV6ADDRESS,function(pe,je,Ht){return"["+je+(Ht?"%25"+Ht:"")+"]"})),(typeof ee.port=="number"||typeof ee.port=="string")&&(ue.push(":"),ue.push(String(ee.port))),ue.length?ue.join(""):void 0}var Zn=/^\.\.?\//,Nn=/^\/\.(\/|$)/,yp=/^\/\.\.(\/|$)/,Io=/^\/?(?:.|\n)*?(?=\/|$)/;function Vi(ee){for(var K=[];ee.length;)if(ee.match(Zn))ee=ee.replace(Zn,"");else if(ee.match(Nn))ee=ee.replace(Nn,"/");else if(ee.match(yp))ee=ee.replace(yp,"/"),K.pop();else if(ee==="."||ee==="..")ee="";else{var oe=ee.match(Io);if(oe){var ue=oe[0];ee=ee.slice(ue.length),K.push(ue)}else throw new Error("Unexpected dot segment condition")}return K.join("")}function zi(ee){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oe=K.iri?p:l,ue=[],pe=Gt[(K.scheme||ee.scheme||"").toLowerCase()];if(pe&&pe.serialize&&pe.serialize(ee,K),ee.host&&!oe.IPV6ADDRESS.test(ee.host)){if(K.domainHost||pe&&pe.domainHost)try{ee.host=K.iri?kt.toUnicode(ee.host):kt.toASCII(ee.host.replace(oe.PCT_ENCODED,Qe).toLowerCase())}catch(hr){ee.error=ee.error||"Host's domain name can not be converted to "+(K.iri?"Unicode":"ASCII")+" via punycode: "+hr}}lo(ee,oe),K.reference!=="suffix"&&ee.scheme&&(ue.push(ee.scheme),ue.push(":"));var je=nr(ee,K);if(je!==void 0&&(K.reference!=="suffix"&&ue.push("//"),ue.push(je),ee.path&&ee.path.charAt(0)!=="/"&&ue.push("/")),ee.path!==void 0){var Ht=ee.path;!K.absolutePath&&(!pe||!pe.absolutePath)&&(Ht=Vi(Ht)),je===void 0&&(Ht=Ht.replace(/^\/\//,"/%2F")),ue.push(Ht)}return ee.query!==void 0&&(ue.push("?"),ue.push(ee.query)),ee.fragment!==void 0&&(ue.push("#"),ue.push(ee.fragment)),ue.join("")}function Oo(ee,K){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ue=arguments[3],pe={};return ue||(ee=ht(zi(ee,oe),oe),K=ht(zi(K,oe),oe)),oe=oe||{},!oe.tolerant&&K.scheme?(pe.scheme=K.scheme,pe.userinfo=K.userinfo,pe.host=K.host,pe.port=K.port,pe.path=Vi(K.path||""),pe.query=K.query):(K.userinfo!==void 0||K.host!==void 0||K.port!==void 0?(pe.userinfo=K.userinfo,pe.host=K.host,pe.port=K.port,pe.path=Vi(K.path||""),pe.query=K.query):(K.path?(K.path.charAt(0)==="/"?pe.path=Vi(K.path):((ee.userinfo!==void 0||ee.host!==void 0||ee.port!==void 0)&&!ee.path?pe.path="/"+K.path:ee.path?pe.path=ee.path.slice(0,ee.path.lastIndexOf("/")+1)+K.path:pe.path=K.path,pe.path=Vi(pe.path)),pe.query=K.query):(pe.path=ee.path,K.query!==void 0?pe.query=K.query:pe.query=ee.query),pe.userinfo=ee.userinfo,pe.host=ee.host,pe.port=ee.port),pe.scheme=ee.scheme),pe.fragment=K.fragment,pe}function ci(ee,K,oe){var ue=c({scheme:"null"},oe);return zi(Oo(ht(ee,ue),ht(K,ue),ue,!0),ue)}function ui(ee,K){return typeof ee=="string"?ee=zi(ht(ee,K),K):o(ee)==="object"&&(ee=ht(zi(ee,K),K)),ee}function jf(ee,K,oe){return typeof ee=="string"?ee=zi(ht(ee,oe),oe):o(ee)==="object"&&(ee=zi(ee,oe)),typeof K=="string"?K=zi(ht(K,oe),oe):o(K)==="object"&&(K=zi(K,oe)),ee===K}function AE(ee,K){return ee&&ee.toString().replace(!K||!K.iri?l.ESCAPE:p.ESCAPE,Ne)}function fa(ee,K){return ee&&ee.toString().replace(!K||!K.iri?l.PCT_ENCODED:p.PCT_ENCODED,Qe)}var Xm={scheme:"http",domainHost:!0,parse:function(K,oe){return K.host||(K.error=K.error||"HTTP URIs must have a host."),K},serialize:function(K,oe){var ue=String(K.scheme).toLowerCase()==="https";return(K.port===(ue?443:80)||K.port==="")&&(K.port=void 0),K.path||(K.path="/"),K}},RI={scheme:"https",domainHost:Xm.domainHost,parse:Xm.parse,serialize:Xm.serialize};function I1(ee){return typeof ee.secure=="boolean"?ee.secure:String(ee.scheme).toLowerCase()==="wss"}var eh={scheme:"ws",domainHost:!0,parse:function(K,oe){var ue=K;return ue.secure=I1(ue),ue.resourceName=(ue.path||"/")+(ue.query?"?"+ue.query:""),ue.path=void 0,ue.query=void 0,ue},serialize:function(K,oe){if((K.port===(I1(K)?443:80)||K.port==="")&&(K.port=void 0),typeof K.secure=="boolean"&&(K.scheme=K.secure?"wss":"ws",K.secure=void 0),K.resourceName){var ue=K.resourceName.split("?"),pe=f(ue,2),je=pe[0],Ht=pe[1];K.path=je&&je!=="/"?je:void 0,K.query=Ht,K.resourceName=void 0}return K.fragment=void 0,K}},O1={scheme:"wss",domainHost:eh.domainHost,parse:eh.parse,serialize:eh.serialize},L0={},FI=!0,BU="[A-Za-z0-9\\-\\.\\_\\~"+(FI?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Us="[0-9A-Fa-f]",MI=n(n("%[EFef]"+Us+"%"+Us+Us+"%"+Us+Us)+"|"+n("%[89A-Fa-f]"+Us+"%"+Us+Us)+"|"+n("%"+Us+Us)),UU="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",kI="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",R1=r(kI,'[\\"\\\\]'),F1="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",jU=new RegExp(BU,"g"),js=new RegExp(MI,"g"),B0=new RegExp(r("[^]",UU,"[\\.]",'[\\"]',R1),"g"),qf=new RegExp(r("[^]",BU,F1),"g"),Gf=qf;function U0(ee){var K=Qe(ee);return K.match(jU)?K:ee}var xp={scheme:"mailto",parse:function(K,oe){var ue=K,pe=ue.to=ue.path?ue.path.split(","):[];if(ue.path=void 0,ue.query){for(var je=!1,Ht={},hr=ue.query.split("&"),Pr=0,$n=hr.length;Pr<$n;++Pr){var pr=hr[Pr].split("=");switch(pr[0]){case"to":for(var cn=pr[1].split(","),vn=0,Jr=cn.length;vn<Jr;++vn)pe.push(cn[vn]);break;case"subject":ue.subject=fa(pr[1],oe);break;case"body":ue.body=fa(pr[1],oe);break;default:je=!0,Ht[fa(pr[0],oe)]=fa(pr[1],oe);break}}je&&(ue.headers=Ht)}ue.query=void 0;for(var $t=0,gn=pe.length;$t<gn;++$t){var Br=pe[$t].split("@");if(Br[0]=fa(Br[0]),oe.unicodeSupport)Br[1]=fa(Br[1],oe).toLowerCase();else try{Br[1]=kt.toASCII(fa(Br[1],oe).toLowerCase())}catch(Hc){ue.error=ue.error||"Email address's domain name can not be converted to ASCII via punycode: "+Hc}pe[$t]=Br.join("@")}return ue},serialize:function(K,oe){var ue=K,pe=a(K.to);if(pe){for(var je=0,Ht=pe.length;je<Ht;++je){var hr=String(pe[je]),Pr=hr.lastIndexOf("@"),$n=hr.slice(0,Pr).replace(js,U0).replace(js,i).replace(B0,Ne),pr=hr.slice(Pr+1);try{pr=oe.iri?kt.toUnicode(pr):kt.toASCII(fa(pr,oe).toLowerCase())}catch($t){ue.error=ue.error||"Email address's domain name can not be converted to "+(oe.iri?"Unicode":"ASCII")+" via punycode: "+$t}pe[je]=$n+"@"+pr}ue.path=pe.join(",")}var cn=K.headers=K.headers||{};K.subject&&(cn.subject=K.subject),K.body&&(cn.body=K.body);var vn=[];for(var Jr in cn)cn[Jr]!==L0[Jr]&&vn.push(Jr.replace(js,U0).replace(js,i).replace(qf,Ne)+"="+cn[Jr].replace(js,U0).replace(js,i).replace(Gf,Ne));return vn.length&&(ue.query=vn.join("&")),ue}},NI=/^([^\:]+)\:(.*)/,CE={scheme:"urn",parse:function(K,oe){var ue=K.path&&K.path.match(NI),pe=K;if(ue){var je=oe.scheme||pe.scheme||"urn",Ht=ue[1].toLowerCase(),hr=ue[2],Pr=je+":"+(oe.nid||Ht),$n=Gt[Pr];pe.nid=Ht,pe.nss=hr,pe.path=void 0,$n&&(pe=$n.parse(pe,oe))}else pe.error=pe.error||"URN can not be parsed.";return pe},serialize:function(K,oe){var ue=oe.scheme||K.scheme||"urn",pe=K.nid,je=ue+":"+(oe.nid||pe),Ht=Gt[je];Ht&&(K=Ht.serialize(K,oe));var hr=K,Pr=K.nss;return hr.path=(pe||oe.nid)+":"+Pr,hr}},$I=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,j0={scheme:"urn:uuid",parse:function(K,oe){var ue=K;return ue.uuid=ue.nss,ue.nss=void 0,!oe.tolerant&&(!ue.uuid||!ue.uuid.match($I))&&(ue.error=ue.error||"UUID is not valid."),ue},serialize:function(K,oe){var ue=K;return ue.nss=(K.uuid||"").toLowerCase(),ue}};Gt[Xm.scheme]=Xm,Gt[RI.scheme]=RI,Gt[eh.scheme]=eh,Gt[O1.scheme]=O1,Gt[xp.scheme]=xp,Gt[CE.scheme]=CE,Gt[j0.scheme]=j0,e.SCHEMES=Gt,e.pctEncChar=Ne,e.pctDecChars=Qe,e.parse=ht,e.removeDotSegments=Vi,e.serialize=zi,e.resolveComponents=Oo,e.resolve=ci,e.normalize=ui,e.equal=jf,e.escapeComponent=AE,e.unescapeComponent=fa,Object.defineProperty(e,"__esModule",{value:!0})})});var V5=C((xEn,bXe)=>{"use strict";bXe.exports=function e(r,n){if(r===n)return!0;if(r&&n&&typeof r=="object"&&typeof n=="object"){if(r.constructor!==n.constructor)return!1;var o,i,a;if(Array.isArray(r)){if(o=r.length,o!=n.length)return!1;for(i=o;i--!==0;)if(!e(r[i],n[i]))return!1;return!0}if(r.constructor===RegExp)return r.source===n.source&&r.flags===n.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===n.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===n.toString();if(a=Object.keys(r),o=a.length,o!==Object.keys(n).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=o;i--!==0;){var c=a[i];if(!e(r[c],n[c]))return!1}return!0}return r!==r&&n!==n}});var vXe=C((bEn,EXe)=>{"use strict";EXe.exports=function(r){for(var n=0,o=r.length,i=0,a;i<o;)n++,a=r.charCodeAt(i++),a>=55296&&a<=56319&&i<o&&(a=r.charCodeAt(i),(a&64512)==56320&&i++);return n}});var _E=C((EEn,_Xe)=>{"use strict";_Xe.exports={copy:brr,checkDataType:ile,checkDataTypes:Err,coerceToTypes:vrr,toHash:ale,getProperty:cle,escapeQuotes:ule,equal:V5(),ucs2length:vXe(),varOccurences:_rr,varReplace:Trr,schemaHasRules:Drr,schemaHasRulesExcept:Arr,schemaUnknownRules:Crr,toQuotedString:sle,getPathExpr:Prr,getPath:Irr,getData:Frr,unescapeFragment:Mrr,unescapeJsonPointer:ple,escapeFragment:krr,escapeJsonPointer:lle};function brr(e,r){r=r||{};for(var n in e)r[n]=e[n];return r}function ile(e,r,n,o){var i=o?" !== ":" === ",a=o?" || ":" && ",c=o?"!":"",u=o?"":"!";switch(e){case"null":return r+i+"null";case"array":return c+"Array.isArray("+r+")";case"object":return"("+c+r+a+"typeof "+r+i+'"object"'+a+u+"Array.isArray("+r+"))";case"integer":return"(typeof "+r+i+'"number"'+a+u+"("+r+" % 1)"+a+r+i+r+(n?a+c+"isFinite("+r+")":"")+")";case"number":return"(typeof "+r+i+'"'+e+'"'+(n?a+c+"isFinite("+r+")":"")+")";default:return"typeof "+r+i+'"'+e+'"'}}function Err(e,r,n){switch(e.length){case 1:return ile(e[0],r,n,!0);default:var o="",i=ale(e);i.array&&i.object&&(o=i.null?"(":"(!"+r+" || ",o+="typeof "+r+' !== "object")',delete i.null,delete i.array,delete i.object),i.number&&delete i.integer;for(var a in i)o+=(o?" && ":"")+ile(a,r,n,!0);return o}}var SXe=ale(["string","number","integer","boolean","null"]);function vrr(e,r){if(Array.isArray(r)){for(var n=[],o=0;o<r.length;o++){var i=r[o];(SXe[i]||e==="array"&&i==="array")&&(n[n.length]=i)}if(n.length)return n}else{if(SXe[r])return[r];if(e==="array"&&r==="array")return["array"]}}function ale(e){for(var r={},n=0;n<e.length;n++)r[e[n]]=!0;return r}var Srr=/^[a-z$_][a-z$_0-9]*$/i,wrr=/'|\\/g;function cle(e){return typeof e=="number"?"["+e+"]":Srr.test(e)?"."+e:"['"+ule(e)+"']"}function ule(e){return e.replace(wrr,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function _rr(e,r){r+="[^0-9]";var n=e.match(new RegExp(r,"g"));return n?n.length:0}function Trr(e,r,n){return r+="([^0-9])",n=n.replace(/\$/g,"$$$$"),e.replace(new RegExp(r,"g"),n+"$1")}function Drr(e,r){if(typeof e=="boolean")return!e;for(var n in e)if(r[n])return!0}function Arr(e,r,n){if(typeof e=="boolean")return!e&&n!="not";for(var o in e)if(o!=n&&r[o])return!0}function Crr(e,r){if(typeof e!="boolean"){for(var n in e)if(!r[n])return n}}function sle(e){return"'"+ule(e)+"'"}function Prr(e,r,n,o){var i=n?"'/' + "+r+(o?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):o?"'[' + "+r+" + ']'":"'[\\'' + "+r+" + '\\']'";return wXe(e,i)}function Irr(e,r,n){var o=sle(n?"/"+lle(r):cle(r));return wXe(e,o)}var Orr=/^\/(?:[^~]|~0|~1)*$/,Rrr=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Frr(e,r,n){var o,i,a,c;if(e==="")return"rootData";if(e[0]=="/"){if(!Orr.test(e))throw new Error("Invalid JSON-pointer: "+e);i=e,a="rootData"}else{if(c=e.match(Rrr),!c)throw new Error("Invalid JSON-pointer: "+e);if(o=+c[1],i=c[2],i=="#"){if(o>=r)throw new Error("Cannot access property/index "+o+" levels up, current level is "+r);return n[r-o]}if(o>r)throw new Error("Cannot access data "+o+" levels up, current level is "+r);if(a="data"+(r-o||""),!i)return a}for(var u=a,l=i.split("/"),p=0;p<l.length;p++){var f=l[p];f&&(a+=cle(ple(f)),u+=" && "+a)}return u}function wXe(e,r){return e=='""'?r:(e+" + "+r).replace(/([^\\])' \+ '/g,"$1")}function Mrr(e){return ple(decodeURIComponent(e))}function krr(e){return encodeURIComponent(lle(e))}function lle(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function ple(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}});var fle=C((vEn,TXe)=>{"use strict";var Nrr=_E();TXe.exports=$rr;function $rr(e){Nrr.copy(e,this)}});var AXe=C((SEn,DXe)=>{"use strict";var F0=DXe.exports=function(e,r,n){typeof r=="function"&&(n=r,r={}),n=r.cb||n;var o=typeof n=="function"?n:n.pre||function(){},i=n.post||function(){};z5(r,o,i,e,"",e)};F0.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};F0.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};F0.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};F0.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function z5(e,r,n,o,i,a,c,u,l,p){if(o&&typeof o=="object"&&!Array.isArray(o)){r(o,i,a,c,u,l,p);for(var f in o){var g=o[f];if(Array.isArray(g)){if(f in F0.arrayKeywords)for(var x=0;x<g.length;x++)z5(e,r,n,g[x],i+"/"+f+"/"+x,a,i,f,o,x)}else if(f in F0.propsKeywords){if(g&&typeof g=="object")for(var b in g)z5(e,r,n,g[b],i+"/"+f+"/"+Lrr(b),a,i,f,o,b)}else(f in F0.keywords||e.allKeys&&!(f in F0.skipKeywords))&&z5(e,r,n,g,i+"/"+f,a,i,f,o)}n(o,i,a,c,u,l,p)}}function Lrr(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var X5=C((wEn,OXe)=>{"use strict";var AI=xXe(),CXe=V5(),Z5=_E(),K5=fle(),Brr=AXe();OXe.exports=k0;k0.normalizeId=M0;k0.fullPath=J5;k0.url=Y5;k0.ids=Hrr;k0.inlineRef=dle;k0.schema=Q5;function k0(e,r,n){var o=this._refs[n];if(typeof o=="string")if(this._refs[o])o=this._refs[o];else return k0.call(this,e,r,o);if(o=o||this._schemas[n],o instanceof K5)return dle(o.schema,this._opts.inlineRefs)?o.schema:o.validate||this._compile(o);var i=Q5.call(this,r,n),a,c,u;return i&&(a=i.schema,r=i.root,u=i.baseId),a instanceof K5?c=a.validate||e.call(this,a.schema,r,void 0,u):a!==void 0&&(c=dle(a,this._opts.inlineRefs)?a:e.call(this,a,r,void 0,u)),c}function Q5(e,r){var n=AI.parse(r),o=IXe(n),i=J5(this._getId(e.schema));if(Object.keys(e.schema).length===0||o!==i){var a=M0(o),c=this._refs[a];if(typeof c=="string")return Urr.call(this,e,c,n);if(c instanceof K5)c.validate||this._compile(c),e=c;else if(c=this._schemas[a],c instanceof K5){if(c.validate||this._compile(c),a==M0(r))return{schema:c,root:e,baseId:i};e=c}else return;if(!e.schema)return;i=J5(this._getId(e.schema))}return PXe.call(this,n,i,e.schema,e)}function Urr(e,r,n){var o=Q5.call(this,e,r);if(o){var i=o.schema,a=o.baseId;e=o.root;var c=this._getId(i);return c&&(a=Y5(a,c)),PXe.call(this,n,a,i,e)}}var jrr=Z5.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function PXe(e,r,n,o){if(e.fragment=e.fragment||"",e.fragment.slice(0,1)=="/"){for(var i=e.fragment.split("/"),a=1;a<i.length;a++){var c=i[a];if(c){if(c=Z5.unescapeFragment(c),n=n[c],n===void 0)break;var u;if(!jrr[c]&&(u=this._getId(n),u&&(r=Y5(r,u)),n.$ref)){var l=Y5(r,n.$ref),p=Q5.call(this,o,l);p&&(n=p.schema,o=p.root,r=p.baseId)}}}if(n!==void 0&&n!==o.schema)return{schema:n,root:o,baseId:r}}}var qrr=Z5.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function dle(e,r){if(r===!1)return!1;if(r===void 0||r===!0)return mle(e);if(r)return hle(e)<=r}function mle(e){var r;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(r=e[n],typeof r=="object"&&!mle(r))return!1}else for(var o in e)if(o=="$ref"||(r=e[o],typeof r=="object"&&!mle(r)))return!1;return!0}function hle(e){var r=0,n;if(Array.isArray(e)){for(var o=0;o<e.length;o++)if(n=e[o],typeof n=="object"&&(r+=hle(n)),r==1/0)return 1/0}else for(var i in e){if(i=="$ref")return 1/0;if(qrr[i])r++;else if(n=e[i],typeof n=="object"&&(r+=hle(n)+1),r==1/0)return 1/0}return r}function J5(e,r){r!==!1&&(e=M0(e));var n=AI.parse(e);return IXe(n)}function IXe(e){return AI.serialize(e).split("#")[0]+"#"}var Grr=/#\/?$/;function M0(e){return e?e.replace(Grr,""):""}function Y5(e,r){return r=M0(r),AI.resolve(e,r)}function Hrr(e){var r=M0(this._getId(e)),n={"":r},o={"":J5(r,!1)},i={},a=this;return Brr(e,{allKeys:!0},function(c,u,l,p,f,g,x){if(u!==""){var b=a._getId(c),E=n[p],S=o[p]+"/"+f;if(x!==void 0&&(S+="/"+(typeof x=="number"?x:Z5.escapeFragment(x))),typeof b=="string"){b=E=M0(E?AI.resolve(E,b):b);var _=a._refs[b];if(typeof _=="string"&&(_=a._refs[_]),_&&_.schema){if(!CXe(c,_.schema))throw new Error('id "'+b+'" resolves to more than one schema')}else if(b!=M0(S))if(b[0]=="#"){if(i[b]&&!CXe(c,i[b]))throw new Error('id "'+b+'" resolves to more than one schema');i[b]=c}else a._refs[b]=S}n[u]=E,o[u]=S}}),i}});var eU=C((_En,FXe)=>{"use strict";var gle=X5();FXe.exports={Validation:RXe(Wrr),MissingRef:RXe(yle)};function Wrr(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0}yle.message=function(e,r){return"can't resolve reference "+r+" from id "+e};function yle(e,r,n){this.message=n||yle.message(e,r),this.missingRef=gle.url(e,r),this.missingSchema=gle.normalizeId(gle.fullPath(this.missingRef))}function RXe(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}});var xle=C((TEn,MXe)=>{"use strict";MXe.exports=function(e,r){r||(r={}),typeof r=="function"&&(r={cmp:r});var n=typeof r.cycles=="boolean"?r.cycles:!1,o=r.cmp&&function(a){return function(c){return function(u,l){var p={key:u,value:c[u]},f={key:l,value:c[l]};return a(p,f)}}}(r.cmp),i=[];return function a(c){if(c&&c.toJSON&&typeof c.toJSON=="function"&&(c=c.toJSON()),c!==void 0){if(typeof c=="number")return isFinite(c)?""+c:"null";if(typeof c!="object")return JSON.stringify(c);var u,l;if(Array.isArray(c)){for(l="[",u=0;u<c.length;u++)u&&(l+=","),l+=a(c[u])||"null";return l+"]"}if(c===null)return"null";if(i.indexOf(c)!==-1){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var p=i.push(c)-1,f=Object.keys(c).sort(o&&o(c));for(l="",u=0;u<f.length;u++){var g=f[u],x=a(c[g]);x&&(l&&(l+=","),l+=JSON.stringify(g)+":"+x)}return i.splice(p,1),"{"+l+"}"}}(e)}});var ble=C((DEn,kXe)=>{"use strict";kXe.exports=function(r,n,o){var i="",a=r.schema.$async===!0,c=r.util.schemaHasRulesExcept(r.schema,r.RULES.all,"$ref"),u=r.self._getId(r.schema);if(r.opts.strictKeywords){var l=r.util.schemaUnknownRules(r.schema,r.RULES.keywords);if(l){var p="unknown keyword: "+l;if(r.opts.strictKeywords==="log")r.logger.warn(p);else throw new Error(p)}}if(r.isTop&&(i+=" var validate = ",a&&(r.async=!0,i+="async "),i+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",u&&(r.opts.sourceCode||r.opts.processCode)&&(i+=" "+("/*# sourceURL="+u+" */")+" ")),typeof r.schema=="boolean"||!(c||r.schema.$ref)){var n="false schema",f=r.level,g=r.dataLevel,x=r.schema[n],b=r.schemaPath+r.util.getProperty(n),E=r.errSchemaPath+"/"+n,O=!r.opts.allErrors,G,S="data"+(g||""),R="valid"+f;if(r.schema===!1){r.isTop?O=!0:i+=" var "+R+" = false; ";var _=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(G||"false schema")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(E)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: 'boolean schema is false' "),r.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+r.schemaPath+" , data: "+S+" "),i+=" } "):i+=" {} ";var D=i;i=_.pop(),!r.compositeRule&&O?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else r.isTop?a?i+=" return data; ":i+=" validate.errors = null; return true; ":i+=" var "+R+" = true; ";return r.isTop&&(i+=" }; return validate; "),i}if(r.isTop){var I=r.isTop,f=r.level=0,g=r.dataLevel=0,S="data";if(r.rootId=r.resolve.fullPath(r.self._getId(r.root.schema)),r.baseId=r.baseId||r.rootId,delete r.isTop,r.dataPathArr=[""],r.schema.default!==void 0&&r.opts.useDefaults&&r.opts.strictDefaults){var A="default is ignored in the schema root";if(r.opts.strictDefaults==="log")r.logger.warn(A);else throw new Error(A)}i+=" var vErrors = null; ",i+=" var errors = 0; ",i+=" if (rootData === undefined) rootData = data; "}else{var f=r.level,g=r.dataLevel,S="data"+(g||"");if(u&&(r.baseId=r.resolve.url(r.baseId,u)),a&&!r.async)throw new Error("async schema in sync schema");i+=" var errs_"+f+" = errors;"}var R="valid"+f,O=!r.opts.allErrors,k="",j="",G,L=r.schema.type,H=Array.isArray(L);if(L&&r.opts.nullable&&r.schema.nullable===!0&&(H?L.indexOf("null")==-1&&(L=L.concat("null")):L!="null"&&(L=[L,"null"],H=!0)),H&&L.length==1&&(L=L[0],H=!1),r.schema.$ref&&c){if(r.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+r.errSchemaPath+'" (see option extendRefs)');r.opts.extendRefs!==!0&&(c=!1,r.logger.warn('$ref: keywords ignored in schema at path "'+r.errSchemaPath+'"'))}if(r.schema.$comment&&r.opts.$comment&&(i+=" "+r.RULES.all.$comment.code(r,"$comment")),L){if(r.opts.coerceTypes)var F=r.util.coerceToTypes(r.opts.coerceTypes,L);var Y=r.RULES.types[L];if(F||H||Y===!0||Y&&!Io(Y)){var b=r.schemaPath+".type",E=r.errSchemaPath+"/type",b=r.schemaPath+".type",E=r.errSchemaPath+"/type",V=H?"checkDataTypes":"checkDataType";if(i+=" if ("+r.util[V](L,S,r.opts.strictNumbers,!0)+") { ",F){var Q="dataType"+f,q="coerced"+f;i+=" var "+Q+" = typeof "+S+"; var "+q+" = undefined; ",r.opts.coerceTypes=="array"&&(i+=" if ("+Q+" == 'object' && Array.isArray("+S+") && "+S+".length == 1) { "+S+" = "+S+"[0]; "+Q+" = typeof "+S+"; if ("+r.util.checkDataType(r.schema.type,S,r.opts.strictNumbers)+") "+q+" = "+S+"; } "),i+=" if ("+q+" !== undefined) ; ";var Z=F;if(Z)for(var ie,se=-1,le=Z.length-1;se<le;)ie=Z[se+=1],ie=="string"?i+=" else if ("+Q+" == 'number' || "+Q+" == 'boolean') "+q+" = '' + "+S+"; else if ("+S+" === null) "+q+" = ''; ":ie=="number"||ie=="integer"?(i+=" else if ("+Q+" == 'boolean' || "+S+" === null || ("+Q+" == 'string' && "+S+" && "+S+" == +"+S+" ",ie=="integer"&&(i+=" && !("+S+" % 1)"),i+=")) "+q+" = +"+S+"; "):ie=="boolean"?i+=" else if ("+S+" === 'false' || "+S+" === 0 || "+S+" === null) "+q+" = false; else if ("+S+" === 'true' || "+S+" === 1) "+q+" = true; ":ie=="null"?i+=" else if ("+S+" === '' || "+S+" === 0 || "+S+" === false) "+q+" = null; ":r.opts.coerceTypes=="array"&&ie=="array"&&(i+=" else if ("+Q+" == 'string' || "+Q+" == 'number' || "+Q+" == 'boolean' || "+S+" == null) "+q+" = ["+S+"]; ");i+=" else { ";var _=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(G||"type")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(E)+" , params: { type: '",H?i+=""+L.join(","):i+=""+L,i+="' } ",r.opts.messages!==!1&&(i+=" , message: 'should be ",H?i+=""+L.join(","):i+=""+L,i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+S+" "),i+=" } "):i+=" {} ";var D=i;i=_.pop(),!r.compositeRule&&O?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } if ("+q+" !== undefined) { ";var _e=g?"data"+(g-1||""):"parentData",Ge=g?r.dataPathArr[g]:"parentDataProperty";i+=" "+S+" = "+q+"; ",g||(i+="if ("+_e+" !== undefined)"),i+=" "+_e+"["+Ge+"] = "+q+"; } "}else{var _=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(G||"type")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(E)+" , params: { type: '",H?i+=""+L.join(","):i+=""+L,i+="' } ",r.opts.messages!==!1&&(i+=" , message: 'should be ",H?i+=""+L.join(","):i+=""+L,i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+S+" "),i+=" } "):i+=" {} ";var D=i;i=_.pop(),!r.compositeRule&&O?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}i+=" } "}}if(r.schema.$ref&&!c)i+=" "+r.RULES.all.$ref.code(r,"$ref")+" ",O&&(i+=" } if (errors === ",I?i+="0":i+="errs_"+f,i+=") { ",j+="}");else{var Mt=r.RULES;if(Mt){for(var Y,Zt=-1,kt=Mt.length-1;Zt<kt;)if(Y=Mt[Zt+=1],Io(Y)){if(Y.type&&(i+=" if ("+r.util.checkDataType(Y.type,S,r.opts.strictNumbers)+") { "),r.opts.useDefaults){if(Y.type=="object"&&r.schema.properties){var x=r.schema.properties,Gt=Object.keys(x),Ne=Gt;if(Ne)for(var Qe,lo=-1,xe=Ne.length-1;lo<xe;){Qe=Ne[lo+=1];var ze=x[Qe];if(ze.default!==void 0){var ge=S+r.util.getProperty(Qe);if(r.compositeRule){if(r.opts.strictDefaults){var A="default is ignored for: "+ge;if(r.opts.strictDefaults==="log")r.logger.warn(A);else throw new Error(A)}}else i+=" if ("+ge+" === undefined ",r.opts.useDefaults=="empty"&&(i+=" || "+ge+" === null || "+ge+" === '' "),i+=" ) "+ge+" = ",r.opts.useDefaults=="shared"?i+=" "+r.useDefault(ze.default)+" ":i+=" "+JSON.stringify(ze.default)+" ",i+="; "}}}else if(Y.type=="array"&&Array.isArray(r.schema.items)){var ut=r.schema.items;if(ut){for(var ze,se=-1,Nt=ut.length-1;se<Nt;)if(ze=ut[se+=1],ze.default!==void 0){var ge=S+"["+se+"]";if(r.compositeRule){if(r.opts.strictDefaults){var A="default is ignored for: "+ge;if(r.opts.strictDefaults==="log")r.logger.warn(A);else throw new Error(A)}}else i+=" if ("+ge+" === undefined ",r.opts.useDefaults=="empty"&&(i+=" || "+ge+" === null || "+ge+" === '' "),i+=" ) "+ge+" = ",r.opts.useDefaults=="shared"?i+=" "+r.useDefault(ze.default)+" ":i+=" "+JSON.stringify(ze.default)+" ",i+="; "}}}}var ht=Y.rules;if(ht){for(var nr,Zn=-1,Nn=ht.length-1;Zn<Nn;)if(nr=ht[Zn+=1],Vi(nr)){var yp=nr.code(r,nr.keyword,Y.type);yp&&(i+=" "+yp+" ",O&&(k+="}"))}}if(O&&(i+=" "+k+" ",k=""),Y.type&&(i+=" } ",L&&L===Y.type&&!F)){i+=" else { ";var b=r.schemaPath+".type",E=r.errSchemaPath+"/type",_=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(G||"type")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(E)+" , params: { type: '",H?i+=""+L.join(","):i+=""+L,i+="' } ",r.opts.messages!==!1&&(i+=" , message: 'should be ",H?i+=""+L.join(","):i+=""+L,i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+S+" "),i+=" } "):i+=" {} ";var D=i;i=_.pop(),!r.compositeRule&&O?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } "}O&&(i+=" if (errors === ",I?i+="0":i+="errs_"+f,i+=") { ",j+="}")}}}O&&(i+=" "+j+" "),I?(a?(i+=" if (errors === 0) return data; ",i+=" else throw new ValidationError(vErrors); "):(i+=" validate.errors = vErrors; ",i+=" return errors === 0; "),i+=" }; return validate;"):i+=" var "+R+" = errors === errs_"+f+";";function Io(Oo){for(var ci=Oo.rules,ui=0;ui<ci.length;ui++)if(Vi(ci[ui]))return!0}function Vi(Oo){return r.schema[Oo.keyword]!==void 0||Oo.implements&&zi(Oo)}function zi(Oo){for(var ci=Oo.implements,ui=0;ui<ci.length;ui++)if(r.schema[ci[ui]]!==void 0)return!0}return i}});var UXe=C((AEn,BXe)=>{"use strict";var tU=X5(),nU=_E(),$Xe=eU(),Vrr=xle(),NXe=ble(),zrr=nU.ucs2length,Krr=V5(),Jrr=$Xe.Validation;BXe.exports=Ele;function Ele(e,r,n,o){var i=this,a=this._opts,c=[void 0],u={},l=[],p={},f=[],g={},x=[];r=r||{schema:e,refVal:c,refs:u};var b=Yrr.call(this,e,r,o),E=this._compilations[b.index];if(b.compiling)return E.callValidate=A;var S=this._formats,_=this.RULES;try{var D=R(e,r,n,o);E.validate=D;var I=E.callValidate;return I&&(I.schema=D.schema,I.errors=null,I.refs=D.refs,I.refVal=D.refVal,I.root=D.root,I.$async=D.$async,a.sourceCode&&(I.source=D.source)),D}finally{Zrr.call(this,e,r,o)}function A(){var V=E.validate,Q=V.apply(this,arguments);return A.errors=V.errors,Q}function R(V,Q,q,Z){var ie=!Q||Q&&Q.schema==V;if(Q.schema!=r.schema)return Ele.call(i,V,Q,q,Z);var se=V.$async===!0,le=NXe({isTop:!0,schema:V,isRoot:ie,baseId:Z,root:Q,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:$Xe.MissingRef,RULES:_,validate:NXe,util:nU,resolve:tU,resolveRef:O,usePattern:H,useDefault:F,useCustomRule:Y,opts:a,formats:S,logger:i.logger,self:i});le=rU(c,enr)+rU(l,Qrr)+rU(f,Xrr)+rU(x,tnr)+le,a.processCode&&(le=a.processCode(le,V));var _e;try{var Ge=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",le);_e=Ge(i,_,S,r,c,f,x,Krr,zrr,Jrr),c[0]=_e}catch(Mt){throw i.logger.error("Error compiling schema, function code:",le),Mt}return _e.schema=V,_e.errors=null,_e.refs=u,_e.refVal=c,_e.root=ie?_e:Q,se&&(_e.$async=!0),a.sourceCode===!0&&(_e.source={code:le,patterns:l,defaults:f}),_e}function O(V,Q,q){Q=tU.url(V,Q);var Z=u[Q],ie,se;if(Z!==void 0)return ie=c[Z],se="refVal["+Z+"]",L(ie,se);if(!q&&r.refs){var le=r.refs[Q];if(le!==void 0)return ie=r.refVal[le],se=k(Q,ie),L(ie,se)}se=k(Q);var _e=tU.call(i,R,r,Q);if(_e===void 0){var Ge=n&&n[Q];Ge&&(_e=tU.inlineRef(Ge,a.inlineRefs)?Ge:Ele.call(i,Ge,r,n,V))}if(_e===void 0)j(Q);else return G(Q,_e),L(_e,se)}function k(V,Q){var q=c.length;return c[q]=Q,u[V]=q,"refVal"+q}function j(V){delete u[V]}function G(V,Q){var q=u[V];c[q]=Q}function L(V,Q){return typeof V=="object"||typeof V=="boolean"?{code:Q,schema:V,inline:!0}:{code:Q,$async:V&&!!V.$async}}function H(V){var Q=p[V];return Q===void 0&&(Q=p[V]=l.length,l[Q]=V),"pattern"+Q}function F(V){switch(typeof V){case"boolean":case"number":return""+V;case"string":return nU.toQuotedString(V);case"object":if(V===null)return"null";var Q=Vrr(V),q=g[Q];return q===void 0&&(q=g[Q]=f.length,f[q]=V),"default"+q}}function Y(V,Q,q,Z){if(i._opts.validateSchema!==!1){var ie=V.definition.dependencies;if(ie&&!ie.every(function(Ne){return Object.prototype.hasOwnProperty.call(q,Ne)}))throw new Error("parent schema must have all required keywords: "+ie.join(","));var se=V.definition.validateSchema;if(se){var le=se(Q);if(!le){var _e="keyword schema is invalid: "+i.errorsText(se.errors);if(i._opts.validateSchema=="log")i.logger.error(_e);else throw new Error(_e)}}}var Ge=V.definition.compile,Mt=V.definition.inline,Zt=V.definition.macro,kt;if(Ge)kt=Ge.call(i,Q,q,Z);else if(Zt)kt=Zt.call(i,Q,q,Z),a.validateSchema!==!1&&i.validateSchema(kt,!0);else if(Mt)kt=Mt.call(i,Z,V.keyword,Q,q);else if(kt=V.definition.validate,!kt)return;if(kt===void 0)throw new Error('custom keyword "'+V.keyword+'"failed to compile');var Gt=x.length;return x[Gt]=kt,{code:"customRule"+Gt,validate:kt}}}function Yrr(e,r,n){var o=LXe.call(this,e,r,n);return o>=0?{index:o,compiling:!0}:(o=this._compilations.length,this._compilations[o]={schema:e,root:r,baseId:n},{index:o,compiling:!1})}function Zrr(e,r,n){var o=LXe.call(this,e,r,n);o>=0&&this._compilations.splice(o,1)}function LXe(e,r,n){for(var o=0;o<this._compilations.length;o++){var i=this._compilations[o];if(i.schema==e&&i.root==r&&i.baseId==n)return o}return-1}function Qrr(e,r){return"var pattern"+e+" = new RegExp("+nU.toQuotedString(r[e])+");"}function Xrr(e){return"var default"+e+" = defaults["+e+"];"}function enr(e,r){return r[e]===void 0?"":"var refVal"+e+" = refVal["+e+"];"}function tnr(e){return"var customRule"+e+" = customRules["+e+"];"}function rU(e,r){if(!e.length)return"";for(var n="",o=0;o<e.length;o++)n+=r(o,e);return n}});var qXe=C((CEn,jXe)=>{"use strict";var oU=jXe.exports=function(){this._cache={}};oU.prototype.put=function(r,n){this._cache[r]=n};oU.prototype.get=function(r){return this._cache[r]};oU.prototype.del=function(r){delete this._cache[r]};oU.prototype.clear=function(){this._cache={}}});var eet=C((PEn,XXe)=>{"use strict";var rnr=_E(),nnr=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,onr=[0,31,28,31,30,31,30,31,31,30,31,30,31],inr=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,GXe=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,snr=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,anr=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,HXe=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,WXe=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,VXe=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,zXe=/^(?:\/(?:[^~/]|~0|~1)*)*$/,KXe=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,JXe=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;XXe.exports=iU;function iU(e){return e=e=="full"?"full":"fast",rnr.copy(iU[e])}iU.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":HXe,url:WXe,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:GXe,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:QXe,uuid:VXe,"json-pointer":zXe,"json-pointer-uri-fragment":KXe,"relative-json-pointer":JXe};iU.full={date:YXe,time:ZXe,"date-time":lnr,uri:fnr,"uri-reference":anr,"uri-template":HXe,url:WXe,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:GXe,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:QXe,uuid:VXe,"json-pointer":zXe,"json-pointer-uri-fragment":KXe,"relative-json-pointer":JXe};function cnr(e){return e%4===0&&(e%100!==0||e%400===0)}function YXe(e){var r=e.match(nnr);if(!r)return!1;var n=+r[1],o=+r[2],i=+r[3];return o>=1&&o<=12&&i>=1&&i<=(o==2&&cnr(n)?29:onr[o])}function ZXe(e,r){var n=e.match(inr);if(!n)return!1;var o=n[1],i=n[2],a=n[3],c=n[5];return(o<=23&&i<=59&&a<=59||o==23&&i==59&&a==60)&&(!r||c)}var unr=/t|\s/i;function lnr(e){var r=e.split(unr);return r.length==2&&YXe(r[0])&&ZXe(r[1],!0)}var pnr=/\/|:/;function fnr(e){return pnr.test(e)&&snr.test(e)}var dnr=/[^\\]\\Z/;function QXe(e){if(dnr.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var ret=C((IEn,tet)=>{"use strict";tet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.errSchemaPath+"/"+n,p=!r.opts.allErrors,f="data"+(c||""),g="valid"+a,x,b;if(u=="#"||u=="#/")r.isRoot?(x=r.async,b="validate"):(x=r.root.schema.$async===!0,b="root.refVal[0]");else{var E=r.resolveRef(r.baseId,u,r.isRoot);if(E===void 0){var S=r.MissingRefError.message(r.baseId,u);if(r.opts.missingRefs=="fail"){r.logger.error(S);var _=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(l)+" , params: { ref: '"+r.util.escapeQuotes(u)+"' } ",r.opts.messages!==!1&&(i+=" , message: 'can\\'t resolve reference "+r.util.escapeQuotes(u)+"' "),r.opts.verbose&&(i+=" , schema: "+r.util.toQuotedString(u)+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var D=i;i=_.pop(),!r.compositeRule&&p?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",p&&(i+=" if (false) { ")}else if(r.opts.missingRefs=="ignore")r.logger.warn(S),p&&(i+=" if (true) { ");else throw new r.MissingRefError(r.baseId,u,S)}else if(E.inline){var I=r.util.copy(r);I.level++;var A="valid"+I.level;I.schema=E.schema,I.schemaPath="",I.errSchemaPath=u;var R=r.validate(I).replace(/validate\.schema/g,E.code);i+=" "+R+" ",p&&(i+=" if ("+A+") { ")}else x=E.$async===!0||r.async&&E.$async!==!1,b=E.code}if(b){var _=_||[];_.push(i),i="",r.opts.passContext?i+=" "+b+".call(this, ":i+=" "+b+"( ",i+=" "+f+", (dataPath || '')",r.errorPath!='""'&&(i+=" + "+r.errorPath);var O=c?"data"+(c-1||""):"parentData",k=c?r.dataPathArr[c]:"parentDataProperty";i+=" , "+O+" , "+k+", rootData) ";var j=i;if(i=_.pop(),x){if(!r.async)throw new Error("async schema referenced by sync schema");p&&(i+=" var "+g+"; "),i+=" try { await "+j+"; ",p&&(i+=" "+g+" = true; "),i+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",p&&(i+=" "+g+" = false; "),i+=" } ",p&&(i+=" if ("+g+") { ")}else i+=" if (!"+j+") { if (vErrors === null) vErrors = "+b+".errors; else vErrors = vErrors.concat("+b+".errors); errors = vErrors.length; } ",p&&(i+=" else { ")}return i}});var oet=C((OEn,net)=>{"use strict";net.exports=function(r,n,o){var i=" ",a=r.schema[n],c=r.schemaPath+r.util.getProperty(n),u=r.errSchemaPath+"/"+n,l=!r.opts.allErrors,p=r.util.copy(r),f="";p.level++;var g="valid"+p.level,x=p.baseId,b=!0,E=a;if(E)for(var S,_=-1,D=E.length-1;_<D;)S=E[_+=1],(r.opts.strictKeywords?typeof S=="object"&&Object.keys(S).length>0||S===!1:r.util.schemaHasRules(S,r.RULES.all))&&(b=!1,p.schema=S,p.schemaPath=c+"["+_+"]",p.errSchemaPath=u+"/"+_,i+=" "+r.validate(p)+" ",p.baseId=x,l&&(i+=" if ("+g+") { ",f+="}"));return l&&(b?i+=" if (true) { ":i+=" "+f.slice(0,-1)+" "),i}});var set=C((REn,iet)=>{"use strict";iet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b="errs__"+a,E=r.util.copy(r),S="";E.level++;var _="valid"+E.level,D=u.every(function(G){return r.opts.strictKeywords?typeof G=="object"&&Object.keys(G).length>0||G===!1:r.util.schemaHasRules(G,r.RULES.all)});if(D){var I=E.baseId;i+=" var "+b+" = errors; var "+x+" = false; ";var A=r.compositeRule;r.compositeRule=E.compositeRule=!0;var R=u;if(R)for(var O,k=-1,j=R.length-1;k<j;)O=R[k+=1],E.schema=O,E.schemaPath=l+"["+k+"]",E.errSchemaPath=p+"/"+k,i+=" "+r.validate(E)+" ",E.baseId=I,i+=" "+x+" = "+x+" || "+_+"; if (!"+x+") { ",S+="}";r.compositeRule=E.compositeRule=A,i+=" "+S+" if (!"+x+") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: 'should match some schema in anyOf' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&f&&(r.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } else { errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; } ",r.opts.allErrors&&(i+=" } ")}else f&&(i+=" if (true) { ");return i}});var cet=C((FEn,aet)=>{"use strict";aet.exports=function(r,n,o){var i=" ",a=r.schema[n],c=r.errSchemaPath+"/"+n,u=!r.opts.allErrors,l=r.util.toQuotedString(a);return r.opts.$comment===!0?i+=" console.log("+l+");":typeof r.opts.$comment=="function"&&(i+=" self._opts.$comment("+l+", "+r.util.toQuotedString(c)+", validate.root.schema);"),i}});var pet=C((MEn,uet)=>{"use strict";uet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b=r.opts.$data&&u&&u.$data,E;b?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",E="schema"+a):E=u,b||(i+=" var schema"+a+" = validate.schema"+l+";"),i+="var "+x+" = equal("+g+", schema"+a+"); if (!"+x+") { ";var S=S||[];S.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'const' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { allowedValue: schema"+a+" } ",r.opts.messages!==!1&&(i+=" , message: 'should be equal to constant' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var _=i;return i=S.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+_+"]); ":i+=" validate.errors = ["+_+"]; return false; ":i+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",f&&(i+=" else { "),i}});var det=C((kEn,fet)=>{"use strict";fet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b="errs__"+a,E=r.util.copy(r),S="";E.level++;var _="valid"+E.level,D="i"+a,I=E.dataLevel=r.dataLevel+1,A="data"+I,R=r.baseId,O=r.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:r.util.schemaHasRules(u,r.RULES.all);if(i+="var "+b+" = errors;var "+x+";",O){var k=r.compositeRule;r.compositeRule=E.compositeRule=!0,E.schema=u,E.schemaPath=l,E.errSchemaPath=p,i+=" var "+_+" = false; for (var "+D+" = 0; "+D+" < "+g+".length; "+D+"++) { ",E.errorPath=r.util.getPathExpr(r.errorPath,D,r.opts.jsonPointers,!0);var j=g+"["+D+"]";E.dataPathArr[I]=D;var G=r.validate(E);E.baseId=R,r.util.varOccurences(G,A)<2?i+=" "+r.util.varReplace(G,A,j)+" ":i+=" var "+A+" = "+j+"; "+G+" ",i+=" if ("+_+") break; } ",r.compositeRule=E.compositeRule=k,i+=" "+S+" if (!"+_+") {"}else i+=" if ("+g+".length == 0) {";var L=L||[];L.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: 'should contain a valid item' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var H=i;return i=L.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+H+"]); ":i+=" validate.errors = ["+H+"]; return false; ":i+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { ",O&&(i+=" errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; } "),r.opts.allErrors&&(i+=" } "),i}});var het=C((NEn,met)=>{"use strict";met.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="errs__"+a,b=r.util.copy(r),E="";b.level++;var S="valid"+b.level,_={},D={},I=r.opts.ownProperties;for(k in u)if(k!="__proto__"){var A=u[k],R=Array.isArray(A)?D:_;R[k]=A}i+="var "+x+" = errors;";var O=r.errorPath;i+="var missing"+a+";";for(var k in D)if(R=D[k],R.length){if(i+=" if ( "+g+r.util.getProperty(k)+" !== undefined ",I&&(i+=" && Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(k)+"') "),f){i+=" && ( ";var j=R;if(j)for(var G,L=-1,H=j.length-1;L<H;){G=j[L+=1],L&&(i+=" || ");var F=r.util.getProperty(G),Y=g+F;i+=" ( ( "+Y+" === undefined ",I&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(G)+"') "),i+=") && (missing"+a+" = "+r.util.toQuotedString(r.opts.jsonPointers?G:F)+") ) "}i+=")) { ";var V="missing"+a,Q="' + "+V+" + '";r.opts._errorDataPathProperty&&(r.errorPath=r.opts.jsonPointers?r.util.getPathExpr(O,V,!0):O+" + "+V);var q=q||[];q.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { property: '"+r.util.escapeQuotes(k)+"', missingProperty: '"+Q+"', depsCount: "+R.length+", deps: '"+r.util.escapeQuotes(R.length==1?R[0]:R.join(", "))+"' } ",r.opts.messages!==!1&&(i+=" , message: 'should have ",R.length==1?i+="property "+r.util.escapeQuotes(R[0]):i+="properties "+r.util.escapeQuotes(R.join(", ")),i+=" when property "+r.util.escapeQuotes(k)+" is present' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var Z=i;i=q.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+Z+"]); ":i+=" validate.errors = ["+Z+"]; return false; ":i+=" var err = "+Z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{i+=" ) { ";var ie=R;if(ie)for(var G,se=-1,le=ie.length-1;se<le;){G=ie[se+=1];var F=r.util.getProperty(G),Q=r.util.escapeQuotes(G),Y=g+F;r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPath(O,G,r.opts.jsonPointers)),i+=" if ( "+Y+" === undefined ",I&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(G)+"') "),i+=") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { property: '"+r.util.escapeQuotes(k)+"', missingProperty: '"+Q+"', depsCount: "+R.length+", deps: '"+r.util.escapeQuotes(R.length==1?R[0]:R.join(", "))+"' } ",r.opts.messages!==!1&&(i+=" , message: 'should have ",R.length==1?i+="property "+r.util.escapeQuotes(R[0]):i+="properties "+r.util.escapeQuotes(R.join(", ")),i+=" when property "+r.util.escapeQuotes(k)+" is present' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}i+=" } ",f&&(E+="}",i+=" else { ")}r.errorPath=O;var _e=b.baseId;for(var k in _){var A=_[k];(r.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:r.util.schemaHasRules(A,r.RULES.all))&&(i+=" "+S+" = true; if ( "+g+r.util.getProperty(k)+" !== undefined ",I&&(i+=" && Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(k)+"') "),i+=") { ",b.schema=A,b.schemaPath=l+r.util.getProperty(k),b.errSchemaPath=p+"/"+r.util.escapeFragment(k),i+=" "+r.validate(b)+" ",b.baseId=_e,i+=" } ",f&&(i+=" if ("+S+") { ",E+="}"))}return f&&(i+=" "+E+" if ("+x+" == errors) {"),i}});var yet=C(($En,get)=>{"use strict";get.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b=r.opts.$data&&u&&u.$data,E;b?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",E="schema"+a):E=u;var S="i"+a,_="schema"+a;b||(i+=" var "+_+" = validate.schema"+l+";"),i+="var "+x+";",b&&(i+=" if (schema"+a+" === undefined) "+x+" = true; else if (!Array.isArray(schema"+a+")) "+x+" = false; else {"),i+=""+x+" = false;for (var "+S+"=0; "+S+"<"+_+".length; "+S+"++) if (equal("+g+", "+_+"["+S+"])) { "+x+" = true; break; }",b&&(i+=" } "),i+=" if (!"+x+") { ";var D=D||[];D.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { allowedValues: schema"+a+" } ",r.opts.messages!==!1&&(i+=" , message: 'should be equal to one of the allowed values' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var I=i;return i=D.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+I+"]); ":i+=" validate.errors = ["+I+"]; return false; ":i+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",f&&(i+=" else { "),i}});var bet=C((LEn,xet)=>{"use strict";xet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||"");if(r.opts.format===!1)return f&&(i+=" if (true) { "),i;var x=r.opts.$data&&u&&u.$data,b;x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u;var E=r.opts.unknownFormats,S=Array.isArray(E);if(x){var _="format"+a,D="isObject"+a,I="formatType"+a;i+=" var "+_+" = formats["+b+"]; var "+D+" = typeof "+_+" == 'object' && !("+_+" instanceof RegExp) && "+_+".validate; var "+I+" = "+D+" && "+_+".type || 'string'; if ("+D+") { ",r.async&&(i+=" var async"+a+" = "+_+".async; "),i+=" "+_+" = "+_+".validate; } if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'string') || "),i+=" (",E!="ignore"&&(i+=" ("+b+" && !"+_+" ",S&&(i+=" && self._opts.unknownFormats.indexOf("+b+") == -1 "),i+=") || "),i+=" ("+_+" && "+I+" == '"+o+"' && !(typeof "+_+" == 'function' ? ",r.async?i+=" (async"+a+" ? await "+_+"("+g+") : "+_+"("+g+")) ":i+=" "+_+"("+g+") ",i+=" : "+_+".test("+g+"))))) {"}else{var _=r.formats[u];if(!_){if(E=="ignore")return r.logger.warn('unknown format "'+u+'" ignored in schema at path "'+r.errSchemaPath+'"'),f&&(i+=" if (true) { "),i;if(S&&E.indexOf(u)>=0)return f&&(i+=" if (true) { "),i;throw new Error('unknown format "'+u+'" is used in schema at path "'+r.errSchemaPath+'"')}var D=typeof _=="object"&&!(_ instanceof RegExp)&&_.validate,I=D&&_.type||"string";if(D){var A=_.async===!0;_=_.validate}if(I!=o)return f&&(i+=" if (true) { "),i;if(A){if(!r.async)throw new Error("async format in sync schema");var R="formats"+r.util.getProperty(u)+".validate";i+=" if (!(await "+R+"("+g+"))) { "}else{i+=" if (! ";var R="formats"+r.util.getProperty(u);D&&(R+=".validate"),typeof _=="function"?i+=" "+R+"("+g+") ":i+=" "+R+".test("+g+") ",i+=") { "}}var O=O||[];O.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'format' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { format: ",x?i+=""+b:i+=""+r.util.toQuotedString(u),i+=" } ",r.opts.messages!==!1&&(i+=` , message: 'should match format "`,x?i+="' + "+b+" + '":i+=""+r.util.escapeQuotes(u),i+=`"' `),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+r.util.toQuotedString(u),i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var k=i;return i=O.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+k+"]); ":i+=" validate.errors = ["+k+"]; return false; ":i+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",f&&(i+=" else { "),i}});var vet=C((BEn,Eet)=>{"use strict";Eet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b="errs__"+a,E=r.util.copy(r);E.level++;var S="valid"+E.level,_=r.schema.then,D=r.schema.else,I=_!==void 0&&(r.opts.strictKeywords?typeof _=="object"&&Object.keys(_).length>0||_===!1:r.util.schemaHasRules(_,r.RULES.all)),A=D!==void 0&&(r.opts.strictKeywords?typeof D=="object"&&Object.keys(D).length>0||D===!1:r.util.schemaHasRules(D,r.RULES.all)),R=E.baseId;if(I||A){var O;E.createErrors=!1,E.schema=u,E.schemaPath=l,E.errSchemaPath=p,i+=" var "+b+" = errors; var "+x+" = true; ";var k=r.compositeRule;r.compositeRule=E.compositeRule=!0,i+=" "+r.validate(E)+" ",E.baseId=R,E.createErrors=!0,i+=" errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; } ",r.compositeRule=E.compositeRule=k,I?(i+=" if ("+S+") { ",E.schema=r.schema.then,E.schemaPath=r.schemaPath+".then",E.errSchemaPath=r.errSchemaPath+"/then",i+=" "+r.validate(E)+" ",E.baseId=R,i+=" "+x+" = "+S+"; ",I&&A?(O="ifClause"+a,i+=" var "+O+" = 'then'; "):O="'then'",i+=" } ",A&&(i+=" else { ")):i+=" if (!"+S+") { ",A&&(E.schema=r.schema.else,E.schemaPath=r.schemaPath+".else",E.errSchemaPath=r.errSchemaPath+"/else",i+=" "+r.validate(E)+" ",E.baseId=R,i+=" "+x+" = "+S+"; ",I&&A?(O="ifClause"+a,i+=" var "+O+" = 'else'; "):O="'else'",i+=" } "),i+=" if (!"+x+") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'if' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { failingKeyword: "+O+" } ",r.opts.messages!==!1&&(i+=` , message: 'should match "' + `+O+` + '" schema' `),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&f&&(r.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } ",f&&(i+=" else { ")}else f&&(i+=" if (true) { ");return i}});var _et=C((UEn,wet)=>{"use strict";wet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b="errs__"+a,E=r.util.copy(r),S="";E.level++;var _="valid"+E.level,D="i"+a,I=E.dataLevel=r.dataLevel+1,A="data"+I,R=r.baseId;if(i+="var "+b+" = errors;var "+x+";",Array.isArray(u)){var O=r.schema.additionalItems;if(O===!1){i+=" "+x+" = "+g+".length <= "+u.length+"; ";var k=p;p=r.errSchemaPath+"/additionalItems",i+=" if (!"+x+") { ";var j=j||[];j.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { limit: "+u.length+" } ",r.opts.messages!==!1&&(i+=" , message: 'should NOT have more than "+u.length+" items' "),r.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var G=i;i=j.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+G+"]); ":i+=" validate.errors = ["+G+"]; return false; ":i+=" var err = "+G+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",p=k,f&&(S+="}",i+=" else { ")}var L=u;if(L){for(var H,F=-1,Y=L.length-1;F<Y;)if(H=L[F+=1],r.opts.strictKeywords?typeof H=="object"&&Object.keys(H).length>0||H===!1:r.util.schemaHasRules(H,r.RULES.all)){i+=" "+_+" = true; if ("+g+".length > "+F+") { ";var V=g+"["+F+"]";E.schema=H,E.schemaPath=l+"["+F+"]",E.errSchemaPath=p+"/"+F,E.errorPath=r.util.getPathExpr(r.errorPath,F,r.opts.jsonPointers,!0),E.dataPathArr[I]=F;var Q=r.validate(E);E.baseId=R,r.util.varOccurences(Q,A)<2?i+=" "+r.util.varReplace(Q,A,V)+" ":i+=" var "+A+" = "+V+"; "+Q+" ",i+=" } ",f&&(i+=" if ("+_+") { ",S+="}")}}if(typeof O=="object"&&(r.opts.strictKeywords?typeof O=="object"&&Object.keys(O).length>0||O===!1:r.util.schemaHasRules(O,r.RULES.all))){E.schema=O,E.schemaPath=r.schemaPath+".additionalItems",E.errSchemaPath=r.errSchemaPath+"/additionalItems",i+=" "+_+" = true; if ("+g+".length > "+u.length+") { for (var "+D+" = "+u.length+"; "+D+" < "+g+".length; "+D+"++) { ",E.errorPath=r.util.getPathExpr(r.errorPath,D,r.opts.jsonPointers,!0);var V=g+"["+D+"]";E.dataPathArr[I]=D;var Q=r.validate(E);E.baseId=R,r.util.varOccurences(Q,A)<2?i+=" "+r.util.varReplace(Q,A,V)+" ":i+=" var "+A+" = "+V+"; "+Q+" ",f&&(i+=" if (!"+_+") break; "),i+=" } } ",f&&(i+=" if ("+_+") { ",S+="}")}}else if(r.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:r.util.schemaHasRules(u,r.RULES.all)){E.schema=u,E.schemaPath=l,E.errSchemaPath=p,i+=" for (var "+D+" = 0; "+D+" < "+g+".length; "+D+"++) { ",E.errorPath=r.util.getPathExpr(r.errorPath,D,r.opts.jsonPointers,!0);var V=g+"["+D+"]";E.dataPathArr[I]=D;var Q=r.validate(E);E.baseId=R,r.util.varOccurences(Q,A)<2?i+=" "+r.util.varReplace(Q,A,V)+" ":i+=" var "+A+" = "+V+"; "+Q+" ",f&&(i+=" if (!"+_+") break; "),i+=" }"}return f&&(i+=" "+S+" if ("+b+" == errors) {"),i}});var vle=C((jEn,Tet)=>{"use strict";Tet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,R,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u;var E=n=="maximum",S=E?"exclusiveMaximum":"exclusiveMinimum",_=r.schema[S],D=r.opts.$data&&_&&_.$data,I=E?"<":">",A=E?">":"<",R=void 0;if(!(x||typeof u=="number"||u===void 0))throw new Error(n+" must be number");if(!(D||_===void 0||typeof _=="number"||typeof _=="boolean"))throw new Error(S+" must be number or boolean");if(D){var O=r.util.getData(_.$data,c,r.dataPathArr),k="exclusive"+a,j="exclType"+a,G="exclIsNumber"+a,L="op"+a,H="' + "+L+" + '";i+=" var schemaExcl"+a+" = "+O+"; ",O="schemaExcl"+a,i+=" var "+k+"; var "+j+" = typeof "+O+"; if ("+j+" != 'boolean' && "+j+" != 'undefined' && "+j+" != 'number') { ";var R=S,F=F||[];F.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(R||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: '"+S+" should be boolean' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var Y=i;i=F.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+Y+"]); ":i+=" validate.errors = ["+Y+"]; return false; ":i+=" var err = "+Y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),i+=" "+j+" == 'number' ? ( ("+k+" = "+b+" === undefined || "+O+" "+I+"= "+b+") ? "+g+" "+A+"= "+O+" : "+g+" "+A+" "+b+" ) : ( ("+k+" = "+O+" === true) ? "+g+" "+A+"= "+b+" : "+g+" "+A+" "+b+" ) || "+g+" !== "+g+") { var op"+a+" = "+k+" ? '"+I+"' : '"+I+"='; ",u===void 0&&(R=S,p=r.errSchemaPath+"/"+S,b=O,x=D)}else{var G=typeof _=="number",H=I;if(G&&x){var L="'"+H+"'";i+=" if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),i+=" ( "+b+" === undefined || "+_+" "+I+"= "+b+" ? "+g+" "+A+"= "+_+" : "+g+" "+A+" "+b+" ) || "+g+" !== "+g+") { "}else{G&&u===void 0?(k=!0,R=S,p=r.errSchemaPath+"/"+S,b=_,A+="="):(G&&(b=Math[E?"min":"max"](_,u)),_===(G?b:!0)?(k=!0,R=S,p=r.errSchemaPath+"/"+S,A+="="):(k=!1,H+="="));var L="'"+H+"'";i+=" if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),i+=" "+g+" "+A+" "+b+" || "+g+" !== "+g+") { "}}R=R||n;var F=F||[];F.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(R||"_limit")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { comparison: "+L+", limit: "+b+", exclusive: "+k+" } ",r.opts.messages!==!1&&(i+=" , message: 'should be "+H+" ",x?i+="' + "+b:i+=""+b+"'"),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var Y=i;return i=F.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+Y+"]); ":i+=" validate.errors = ["+Y+"]; return false; ":i+=" var err = "+Y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",f&&(i+=" else { "),i}});var Sle=C((qEn,Det)=>{"use strict";Det.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,S,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;if(x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u,!(x||typeof u=="number"))throw new Error(n+" must be number");var E=n=="maxItems"?">":"<";i+="if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),i+=" "+g+".length "+E+" "+b+") { ";var S=n,_=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(S||"_limitItems")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { limit: "+b+" } ",r.opts.messages!==!1&&(i+=" , message: 'should NOT have ",n=="maxItems"?i+="more":i+="fewer",i+=" than ",x?i+="' + "+b+" + '":i+=""+u,i+=" items' "),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var D=i;return i=_.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",f&&(i+=" else { "),i}});var wle=C((GEn,Aet)=>{"use strict";Aet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,S,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;if(x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u,!(x||typeof u=="number"))throw new Error(n+" must be number");var E=n=="maxLength"?">":"<";i+="if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),r.opts.unicode===!1?i+=" "+g+".length ":i+=" ucs2length("+g+") ",i+=" "+E+" "+b+") { ";var S=n,_=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(S||"_limitLength")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { limit: "+b+" } ",r.opts.messages!==!1&&(i+=" , message: 'should NOT be ",n=="maxLength"?i+="longer":i+="shorter",i+=" than ",x?i+="' + "+b+" + '":i+=""+u,i+=" characters' "),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var D=i;return i=_.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",f&&(i+=" else { "),i}});var _le=C((HEn,Cet)=>{"use strict";Cet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,S,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;if(x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u,!(x||typeof u=="number"))throw new Error(n+" must be number");var E=n=="maxProperties"?">":"<";i+="if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),i+=" Object.keys("+g+").length "+E+" "+b+") { ";var S=n,_=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(S||"_limitProperties")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { limit: "+b+" } ",r.opts.messages!==!1&&(i+=" , message: 'should NOT have ",n=="maxProperties"?i+="more":i+="fewer",i+=" than ",x?i+="' + "+b+" + '":i+=""+u,i+=" properties' "),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var D=i;return i=_.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",f&&(i+=" else { "),i}});var Iet=C((WEn,Pet)=>{"use strict";Pet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;if(x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u,!(x||typeof u=="number"))throw new Error(n+" must be number");i+="var division"+a+";if (",x&&(i+=" "+b+" !== undefined && ( typeof "+b+" != 'number' || "),i+=" (division"+a+" = "+g+" / "+b+", ",r.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+a+") - division"+a+") > 1e-"+r.opts.multipleOfPrecision+" ":i+=" division"+a+" !== parseInt(division"+a+") ",i+=" ) ",x&&(i+=" ) "),i+=" ) { ";var E=E||[];E.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { multipleOf: "+b+" } ",r.opts.messages!==!1&&(i+=" , message: 'should be multiple of ",x?i+="' + "+b:i+=""+b+"'"),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var S=i;return i=E.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+S+"]); ":i+=" validate.errors = ["+S+"]; return false; ":i+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",f&&(i+=" else { "),i}});var Ret=C((VEn,Oet)=>{"use strict";Oet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="errs__"+a,b=r.util.copy(r);b.level++;var E="valid"+b.level;if(r.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:r.util.schemaHasRules(u,r.RULES.all)){b.schema=u,b.schemaPath=l,b.errSchemaPath=p,i+=" var "+x+" = errors; ";var S=r.compositeRule;r.compositeRule=b.compositeRule=!0,b.createErrors=!1;var _;b.opts.allErrors&&(_=b.opts.allErrors,b.opts.allErrors=!1),i+=" "+r.validate(b)+" ",b.createErrors=!0,_&&(b.opts.allErrors=_),r.compositeRule=b.compositeRule=S,i+=" if ("+E+") { ";var D=D||[];D.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var I=i;i=D.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+I+"]); ":i+=" validate.errors = ["+I+"]; return false; ":i+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { errors = "+x+"; if (vErrors !== null) { if ("+x+") vErrors.length = "+x+"; else vErrors = null; } ",r.opts.allErrors&&(i+=" } ")}else i+=" var err = ",r.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",f&&(i+=" if (false) { ");return i}});var Met=C((zEn,Fet)=>{"use strict";Fet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b="errs__"+a,E=r.util.copy(r),S="";E.level++;var _="valid"+E.level,D=E.baseId,I="prevValid"+a,A="passingSchemas"+a;i+="var "+b+" = errors , "+I+" = false , "+x+" = false , "+A+" = null; ";var R=r.compositeRule;r.compositeRule=E.compositeRule=!0;var O=u;if(O)for(var k,j=-1,G=O.length-1;j<G;)k=O[j+=1],(r.opts.strictKeywords?typeof k=="object"&&Object.keys(k).length>0||k===!1:r.util.schemaHasRules(k,r.RULES.all))?(E.schema=k,E.schemaPath=l+"["+j+"]",E.errSchemaPath=p+"/"+j,i+=" "+r.validate(E)+" ",E.baseId=D):i+=" var "+_+" = true; ",j&&(i+=" if ("+_+" && "+I+") { "+x+" = false; "+A+" = ["+A+", "+j+"]; } else { ",S+="}"),i+=" if ("+_+") { "+x+" = "+I+" = true; "+A+" = "+j+"; }";return r.compositeRule=E.compositeRule=R,i+=""+S+"if (!"+x+") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { passingSchemas: "+A+" } ",r.opts.messages!==!1&&(i+=" , message: 'should match exactly one schema in oneOf' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&f&&(r.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+="} else { errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; }",r.opts.allErrors&&(i+=" } "),i}});var Net=C((KEn,ket)=>{"use strict";ket.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u;var E=x?"(new RegExp("+b+"))":r.usePattern(u);i+="if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'string') || "),i+=" !"+E+".test("+g+") ) { ";var S=S||[];S.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { pattern: ",x?i+=""+b:i+=""+r.util.toQuotedString(u),i+=" } ",r.opts.messages!==!1&&(i+=` , message: 'should match pattern "`,x?i+="' + "+b+" + '":i+=""+r.util.escapeQuotes(u),i+=`"' `),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+r.util.toQuotedString(u),i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var _=i;return i=S.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+_+"]); ":i+=" validate.errors = ["+_+"]; return false; ":i+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",f&&(i+=" else { "),i}});var Let=C((JEn,$et)=>{"use strict";$et.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="errs__"+a,b=r.util.copy(r),E="";b.level++;var S="valid"+b.level,_="key"+a,D="idx"+a,I=b.dataLevel=r.dataLevel+1,A="data"+I,R="dataProperties"+a,O=Object.keys(u||{}).filter(se),k=r.schema.patternProperties||{},j=Object.keys(k).filter(se),G=r.schema.additionalProperties,L=O.length||j.length,H=G===!1,F=typeof G=="object"&&Object.keys(G).length,Y=r.opts.removeAdditional,V=H||F||Y,Q=r.opts.ownProperties,q=r.baseId,Z=r.schema.required;if(Z&&!(r.opts.$data&&Z.$data)&&Z.length<r.opts.loopRequired)var ie=r.util.toHash(Z);function se(fa){return fa!=="__proto__"}if(i+="var "+x+" = errors;var "+S+" = true;",Q&&(i+=" var "+R+" = undefined;"),V){if(Q?i+=" "+R+" = "+R+" || Object.keys("+g+"); for (var "+D+"=0; "+D+"<"+R+".length; "+D+"++) { var "+_+" = "+R+"["+D+"]; ":i+=" for (var "+_+" in "+g+") { ",L){if(i+=" var isAdditional"+a+" = !(false ",O.length)if(O.length>8)i+=" || validate.schema"+l+".hasOwnProperty("+_+") ";else{var le=O;if(le)for(var _e,Ge=-1,Mt=le.length-1;Ge<Mt;)_e=le[Ge+=1],i+=" || "+_+" == "+r.util.toQuotedString(_e)+" "}if(j.length){var Zt=j;if(Zt)for(var kt,Gt=-1,Ne=Zt.length-1;Gt<Ne;)kt=Zt[Gt+=1],i+=" || "+r.usePattern(kt)+".test("+_+") "}i+=" ); if (isAdditional"+a+") { "}if(Y=="all")i+=" delete "+g+"["+_+"]; ";else{var Qe=r.errorPath,lo="' + "+_+" + '";if(r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPathExpr(r.errorPath,_,r.opts.jsonPointers)),H)if(Y)i+=" delete "+g+"["+_+"]; ";else{i+=" "+S+" = false; ";var xe=p;p=r.errSchemaPath+"/additionalProperties";var ze=ze||[];ze.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { additionalProperty: '"+lo+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is an invalid additional property":i+="should NOT have additional properties",i+="' "),r.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var ge=i;i=ze.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+ge+"]); ":i+=" validate.errors = ["+ge+"]; return false; ":i+=" var err = "+ge+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",p=xe,f&&(i+=" break; ")}else if(F)if(Y=="failing"){i+=" var "+x+" = errors; ";var ut=r.compositeRule;r.compositeRule=b.compositeRule=!0,b.schema=G,b.schemaPath=r.schemaPath+".additionalProperties",b.errSchemaPath=r.errSchemaPath+"/additionalProperties",b.errorPath=r.opts._errorDataPathProperty?r.errorPath:r.util.getPathExpr(r.errorPath,_,r.opts.jsonPointers);var Nt=g+"["+_+"]";b.dataPathArr[I]=_;var ht=r.validate(b);b.baseId=q,r.util.varOccurences(ht,A)<2?i+=" "+r.util.varReplace(ht,A,Nt)+" ":i+=" var "+A+" = "+Nt+"; "+ht+" ",i+=" if (!"+S+") { errors = "+x+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+g+"["+_+"]; } ",r.compositeRule=b.compositeRule=ut}else{b.schema=G,b.schemaPath=r.schemaPath+".additionalProperties",b.errSchemaPath=r.errSchemaPath+"/additionalProperties",b.errorPath=r.opts._errorDataPathProperty?r.errorPath:r.util.getPathExpr(r.errorPath,_,r.opts.jsonPointers);var Nt=g+"["+_+"]";b.dataPathArr[I]=_;var ht=r.validate(b);b.baseId=q,r.util.varOccurences(ht,A)<2?i+=" "+r.util.varReplace(ht,A,Nt)+" ":i+=" var "+A+" = "+Nt+"; "+ht+" ",f&&(i+=" if (!"+S+") break; ")}r.errorPath=Qe}L&&(i+=" } "),i+=" } ",f&&(i+=" if ("+S+") { ",E+="}")}var nr=r.opts.useDefaults&&!r.compositeRule;if(O.length){var Zn=O;if(Zn)for(var _e,Nn=-1,yp=Zn.length-1;Nn<yp;){_e=Zn[Nn+=1];var Io=u[_e];if(r.opts.strictKeywords?typeof Io=="object"&&Object.keys(Io).length>0||Io===!1:r.util.schemaHasRules(Io,r.RULES.all)){var Vi=r.util.getProperty(_e),Nt=g+Vi,zi=nr&&Io.default!==void 0;b.schema=Io,b.schemaPath=l+Vi,b.errSchemaPath=p+"/"+r.util.escapeFragment(_e),b.errorPath=r.util.getPath(r.errorPath,_e,r.opts.jsonPointers),b.dataPathArr[I]=r.util.toQuotedString(_e);var ht=r.validate(b);if(b.baseId=q,r.util.varOccurences(ht,A)<2){ht=r.util.varReplace(ht,A,Nt);var Oo=Nt}else{var Oo=A;i+=" var "+A+" = "+Nt+"; "}if(zi)i+=" "+ht+" ";else{if(ie&&ie[_e]){i+=" if ( "+Oo+" === undefined ",Q&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(_e)+"') "),i+=") { "+S+" = false; ";var Qe=r.errorPath,xe=p,ci=r.util.escapeQuotes(_e);r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPath(Qe,_e,r.opts.jsonPointers)),p=r.errSchemaPath+"/required";var ze=ze||[];ze.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+ci+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+ci+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var ge=i;i=ze.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+ge+"]); ":i+=" validate.errors = ["+ge+"]; return false; ":i+=" var err = "+ge+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",p=xe,r.errorPath=Qe,i+=" } else { "}else f?(i+=" if ( "+Oo+" === undefined ",Q&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(_e)+"') "),i+=") { "+S+" = true; } else { "):(i+=" if ("+Oo+" !== undefined ",Q&&(i+=" && Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(_e)+"') "),i+=" ) { ");i+=" "+ht+" } "}}f&&(i+=" if ("+S+") { ",E+="}")}}if(j.length){var ui=j;if(ui)for(var kt,jf=-1,AE=ui.length-1;jf<AE;){kt=ui[jf+=1];var Io=k[kt];if(r.opts.strictKeywords?typeof Io=="object"&&Object.keys(Io).length>0||Io===!1:r.util.schemaHasRules(Io,r.RULES.all)){b.schema=Io,b.schemaPath=r.schemaPath+".patternProperties"+r.util.getProperty(kt),b.errSchemaPath=r.errSchemaPath+"/patternProperties/"+r.util.escapeFragment(kt),Q?i+=" "+R+" = "+R+" || Object.keys("+g+"); for (var "+D+"=0; "+D+"<"+R+".length; "+D+"++) { var "+_+" = "+R+"["+D+"]; ":i+=" for (var "+_+" in "+g+") { ",i+=" if ("+r.usePattern(kt)+".test("+_+")) { ",b.errorPath=r.util.getPathExpr(r.errorPath,_,r.opts.jsonPointers);var Nt=g+"["+_+"]";b.dataPathArr[I]=_;var ht=r.validate(b);b.baseId=q,r.util.varOccurences(ht,A)<2?i+=" "+r.util.varReplace(ht,A,Nt)+" ":i+=" var "+A+" = "+Nt+"; "+ht+" ",f&&(i+=" if (!"+S+") break; "),i+=" } ",f&&(i+=" else "+S+" = true; "),i+=" } ",f&&(i+=" if ("+S+") { ",E+="}")}}}return f&&(i+=" "+E+" if ("+x+" == errors) {"),i}});var Uet=C((YEn,Bet)=>{"use strict";Bet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="errs__"+a,b=r.util.copy(r),E="";b.level++;var S="valid"+b.level;if(i+="var "+x+" = errors;",r.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:r.util.schemaHasRules(u,r.RULES.all)){b.schema=u,b.schemaPath=l,b.errSchemaPath=p;var _="key"+a,D="idx"+a,I="i"+a,A="' + "+_+" + '",R=b.dataLevel=r.dataLevel+1,O="data"+R,k="dataProperties"+a,j=r.opts.ownProperties,G=r.baseId;j&&(i+=" var "+k+" = undefined; "),j?i+=" "+k+" = "+k+" || Object.keys("+g+"); for (var "+D+"=0; "+D+"<"+k+".length; "+D+"++) { var "+_+" = "+k+"["+D+"]; ":i+=" for (var "+_+" in "+g+") { ",i+=" var startErrs"+a+" = errors; ";var L=_,H=r.compositeRule;r.compositeRule=b.compositeRule=!0;var F=r.validate(b);b.baseId=G,r.util.varOccurences(F,O)<2?i+=" "+r.util.varReplace(F,O,L)+" ":i+=" var "+O+" = "+L+"; "+F+" ",r.compositeRule=b.compositeRule=H,i+=" if (!"+S+") { for (var "+I+"=startErrs"+a+"; "+I+"<errors; "+I+"++) { vErrors["+I+"].propertyName = "+_+"; } var err = ",r.createErrors!==!1?(i+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { propertyName: '"+A+"' } ",r.opts.messages!==!1&&(i+=" , message: 'property name \\'"+A+"\\' is invalid' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&f&&(r.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),f&&(i+=" break; "),i+=" } }"}return f&&(i+=" "+E+" if ("+x+" == errors) {"),i}});var qet=C((ZEn,jet)=>{"use strict";jet.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b=r.opts.$data&&u&&u.$data,E;b?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",E="schema"+a):E=u;var S="schema"+a;if(!b)if(u.length<r.opts.loopRequired&&r.schema.properties&&Object.keys(r.schema.properties).length){var _=[],D=u;if(D)for(var I,A=-1,R=D.length-1;A<R;){I=D[A+=1];var O=r.schema.properties[I];O&&(r.opts.strictKeywords?typeof O=="object"&&Object.keys(O).length>0||O===!1:r.util.schemaHasRules(O,r.RULES.all))||(_[_.length]=I)}}else var _=u;if(b||_.length){var k=r.errorPath,j=b||_.length>=r.opts.loopRequired,G=r.opts.ownProperties;if(f)if(i+=" var missing"+a+"; ",j){b||(i+=" var "+S+" = validate.schema"+l+"; ");var L="i"+a,H="schema"+a+"["+L+"]",F="' + "+H+" + '";r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPathExpr(k,H,r.opts.jsonPointers)),i+=" var "+x+" = true; ",b&&(i+=" if (schema"+a+" === undefined) "+x+" = true; else if (!Array.isArray(schema"+a+")) "+x+" = false; else {"),i+=" for (var "+L+" = 0; "+L+" < "+S+".length; "+L+"++) { "+x+" = "+g+"["+S+"["+L+"]] !== undefined ",G&&(i+=" && Object.prototype.hasOwnProperty.call("+g+", "+S+"["+L+"]) "),i+="; if (!"+x+") break; } ",b&&(i+=" } "),i+=" if (!"+x+") { ";var Y=Y||[];Y.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+F+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+F+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var V=i;i=Y.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+V+"]); ":i+=" validate.errors = ["+V+"]; return false; ":i+=" var err = "+V+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else{i+=" if ( ";var Q=_;if(Q)for(var q,L=-1,Z=Q.length-1;L<Z;){q=Q[L+=1],L&&(i+=" || ");var ie=r.util.getProperty(q),se=g+ie;i+=" ( ( "+se+" === undefined ",G&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(q)+"') "),i+=") && (missing"+a+" = "+r.util.toQuotedString(r.opts.jsonPointers?q:ie)+") ) "}i+=") { ";var H="missing"+a,F="' + "+H+" + '";r.opts._errorDataPathProperty&&(r.errorPath=r.opts.jsonPointers?r.util.getPathExpr(k,H,!0):k+" + "+H);var Y=Y||[];Y.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+F+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+F+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var V=i;i=Y.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+V+"]); ":i+=" validate.errors = ["+V+"]; return false; ":i+=" var err = "+V+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else if(j){b||(i+=" var "+S+" = validate.schema"+l+"; ");var L="i"+a,H="schema"+a+"["+L+"]",F="' + "+H+" + '";r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPathExpr(k,H,r.opts.jsonPointers)),b&&(i+=" if ("+S+" && !Array.isArray("+S+")) { var err = ",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+F+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+F+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+S+" !== undefined) { "),i+=" for (var "+L+" = 0; "+L+" < "+S+".length; "+L+"++) { if ("+g+"["+S+"["+L+"]] === undefined ",G&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", "+S+"["+L+"]) "),i+=") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+F+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+F+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",b&&(i+=" } ")}else{var le=_;if(le)for(var q,_e=-1,Ge=le.length-1;_e<Ge;){q=le[_e+=1];var ie=r.util.getProperty(q),F=r.util.escapeQuotes(q),se=g+ie;r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPath(k,q,r.opts.jsonPointers)),i+=" if ( "+se+" === undefined ",G&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(q)+"') "),i+=") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+F+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+F+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}r.errorPath=k}else f&&(i+=" if (true) {");return i}});var Het=C((QEn,Get)=>{"use strict";Get.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b=r.opts.$data&&u&&u.$data,E;if(b?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",E="schema"+a):E=u,(u||b)&&r.opts.uniqueItems!==!1){b&&(i+=" var "+x+"; if ("+E+" === false || "+E+" === undefined) "+x+" = true; else if (typeof "+E+" != 'boolean') "+x+" = false; else { "),i+=" var i = "+g+".length , "+x+" = true , j; if (i > 1) { ";var S=r.schema.items&&r.schema.items.type,_=Array.isArray(S);if(!S||S=="object"||S=="array"||_&&(S.indexOf("object")>=0||S.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+g+"[i], "+g+"[j])) { "+x+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+g+"[i]; ";var D="checkDataType"+(_?"s":"");i+=" if ("+r.util[D](S,"item",r.opts.strictNumbers,!0)+") continue; ",_&&(i+=` if (typeof item == 'string') item = '"' + item; `),i+=" if (typeof itemIndices[item] == 'number') { "+x+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",b&&(i+=" } "),i+=" if (!"+x+") { ";var I=I||[];I.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { i: i, j: j } ",r.opts.messages!==!1&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),r.opts.verbose&&(i+=" , schema: ",b?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var A=i;i=I.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+A+"]); ":i+=" validate.errors = ["+A+"]; return false; ":i+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",f&&(i+=" else { ")}else f&&(i+=" if (true) { ");return i}});var Vet=C((XEn,Wet)=>{"use strict";Wet.exports={$ref:ret(),allOf:oet(),anyOf:set(),$comment:cet(),const:pet(),contains:det(),dependencies:het(),enum:yet(),format:bet(),if:vet(),items:_et(),maximum:vle(),minimum:vle(),maxItems:Sle(),minItems:Sle(),maxLength:wle(),minLength:wle(),maxProperties:_le(),minProperties:_le(),multipleOf:Iet(),not:Ret(),oneOf:Met(),pattern:Net(),properties:Let(),propertyNames:Uet(),required:qet(),uniqueItems:Het(),validate:ble()}});var Jet=C((evn,Ket)=>{"use strict";var zet=Vet(),Tle=_E().toHash;Ket.exports=function(){var r=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],n=["type","$comment"],o=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],i=["number","integer","string","array","object","boolean","null"];return r.all=Tle(n),r.types=Tle(i),r.forEach(function(a){a.rules=a.rules.map(function(c){var u;if(typeof c=="object"){var l=Object.keys(c)[0];u=c[l],c=l,u.forEach(function(f){n.push(f),r.all[f]=!0})}n.push(c);var p=r.all[c]={keyword:c,code:zet[c],implements:u};return p}),r.all.$comment={keyword:"$comment",code:zet.$comment},a.type&&(r.types[a.type]=a)}),r.keywords=Tle(n.concat(o)),r.custom={},r}});var Qet=C((tvn,Zet)=>{"use strict";var Yet=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];Zet.exports=function(e,r){for(var n=0;n<r.length;n++){e=JSON.parse(JSON.stringify(e));var o=r[n].split("/"),i=e,a;for(a=1;a<o.length;a++)i=i[o[a]];for(a=0;a<Yet.length;a++){var c=Yet[a],u=i[c];u&&(i[c]={anyOf:[u,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}});var ttt=C((rvn,ett)=>{"use strict";var mnr=eU().MissingRef;ett.exports=Xet;function Xet(e,r,n){var o=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof r=="function"&&(n=r,r=void 0);var i=a(e).then(function(){var u=o._addSchema(e,void 0,r);return u.validate||c(u)});return n&&i.then(function(u){n(null,u)},n),i;function a(u){var l=u.$schema;return l&&!o.getSchema(l)?Xet.call(o,{$ref:l},!0):Promise.resolve()}function c(u){try{return o._compile(u)}catch(p){if(p instanceof mnr)return l(p);throw p}function l(p){var f=p.missingSchema;if(b(f))throw new Error("Schema "+f+" is loaded but "+p.missingRef+" cannot be resolved");var g=o._loadingSchemas[f];return g||(g=o._loadingSchemas[f]=o._opts.loadSchema(f),g.then(x,x)),g.then(function(E){if(!b(f))return a(E).then(function(){b(f)||o.addSchema(E,f,void 0,r)})}).then(function(){return c(u)});function x(){delete o._loadingSchemas[f]}function b(E){return o._refs[E]||o._schemas[E]}}}}});var ntt=C((nvn,rtt)=>{"use strict";rtt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g,x="data"+(c||""),b="valid"+a,E="errs__"+a,S=r.opts.$data&&u&&u.$data,_;S?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",_="schema"+a):_=u;var D=this,I="definition"+a,A=D.definition,R="",O,k,j,G,L;if(S&&A.$data){L="keywordValidate"+a;var H=A.validateSchema;i+=" var "+I+" = RULES.custom['"+n+"'].definition; var "+L+" = "+I+".validate;"}else{if(G=r.useCustomRule(D,u,r.schema,r),!G)return;_="validate.schema"+l,L=G.code,O=A.compile,k=A.inline,j=A.macro}var F=L+".errors",Y="i"+a,V="ruleErr"+a,Q=A.async;if(Q&&!r.async)throw new Error("async keyword in sync schema");if(k||j||(i+=""+F+" = null;"),i+="var "+E+" = errors;var "+b+";",S&&A.$data&&(R+="}",i+=" if ("+_+" === undefined) { "+b+" = true; } else { ",H&&(R+="}",i+=" "+b+" = "+I+".validateSchema("+_+"); if ("+b+") { ")),k)A.statements?i+=" "+G.validate+" ":i+=" "+b+" = "+G.validate+"; ";else if(j){var q=r.util.copy(r),R="";q.level++;var Z="valid"+q.level;q.schema=G.validate,q.schemaPath="";var ie=r.compositeRule;r.compositeRule=q.compositeRule=!0;var se=r.validate(q).replace(/validate\.schema/g,L);r.compositeRule=q.compositeRule=ie,i+=" "+se}else{var le=le||[];le.push(i),i="",i+=" "+L+".call( ",r.opts.passContext?i+="this":i+="self",O||A.schema===!1?i+=" , "+x+" ":i+=" , "+_+" , "+x+" , validate.schema"+r.schemaPath+" ",i+=" , (dataPath || '')",r.errorPath!='""'&&(i+=" + "+r.errorPath);var _e=c?"data"+(c-1||""):"parentData",Ge=c?r.dataPathArr[c]:"parentDataProperty";i+=" , "+_e+" , "+Ge+" , rootData ) ";var Mt=i;i=le.pop(),A.errors===!1?(i+=" "+b+" = ",Q&&(i+="await "),i+=""+Mt+"; "):Q?(F="customErrors"+a,i+=" var "+F+" = null; try { "+b+" = await "+Mt+"; } catch (e) { "+b+" = false; if (e instanceof ValidationError) "+F+" = e.errors; else throw e; } "):i+=" "+F+" = null; "+b+" = "+Mt+"; "}if(A.modifying&&(i+=" if ("+_e+") "+x+" = "+_e+"["+Ge+"];"),i+=""+R,A.valid)f&&(i+=" if (true) { ");else{i+=" if ( ",A.valid===void 0?(i+=" !",j?i+=""+Z:i+=""+b):i+=" "+!A.valid+" ",i+=") { ",g=D.keyword;var le=le||[];le.push(i),i="";var le=le||[];le.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(g||"custom")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { keyword: '"+D.keyword+"' } ",r.opts.messages!==!1&&(i+=` , message: 'should pass "`+D.keyword+`" keyword validation' `),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+x+" "),i+=" } "):i+=" {} ";var Zt=i;i=le.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+Zt+"]); ":i+=" validate.errors = ["+Zt+"]; return false; ":i+=" var err = "+Zt+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var kt=i;i=le.pop(),k?A.errors?A.errors!="full"&&(i+=" for (var "+Y+"="+E+"; "+Y+"<errors; "+Y+"++) { var "+V+" = vErrors["+Y+"]; if ("+V+".dataPath === undefined) "+V+".dataPath = (dataPath || '') + "+r.errorPath+"; if ("+V+".schemaPath === undefined) { "+V+'.schemaPath = "'+p+'"; } ',r.opts.verbose&&(i+=" "+V+".schema = "+_+"; "+V+".data = "+x+"; "),i+=" } "):A.errors===!1?i+=" "+kt+" ":(i+=" if ("+E+" == errors) { "+kt+" } else { for (var "+Y+"="+E+"; "+Y+"<errors; "+Y+"++) { var "+V+" = vErrors["+Y+"]; if ("+V+".dataPath === undefined) "+V+".dataPath = (dataPath || '') + "+r.errorPath+"; if ("+V+".schemaPath === undefined) { "+V+'.schemaPath = "'+p+'"; } ',r.opts.verbose&&(i+=" "+V+".schema = "+_+"; "+V+".data = "+x+"; "),i+=" } } "):j?(i+=" var err = ",r.createErrors!==!1?(i+=" { keyword: '"+(g||"custom")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { keyword: '"+D.keyword+"' } ",r.opts.messages!==!1&&(i+=` , message: 'should pass "`+D.keyword+`" keyword validation' `),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+x+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&f&&(r.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):A.errors===!1?i+=" "+kt+" ":(i+=" if (Array.isArray("+F+")) { if (vErrors === null) vErrors = "+F+"; else vErrors = vErrors.concat("+F+"); errors = vErrors.length; for (var "+Y+"="+E+"; "+Y+"<errors; "+Y+"++) { var "+V+" = vErrors["+Y+"]; if ("+V+".dataPath === undefined) "+V+".dataPath = (dataPath || '') + "+r.errorPath+"; "+V+'.schemaPath = "'+p+'"; ',r.opts.verbose&&(i+=" "+V+".schema = "+_+"; "+V+".data = "+x+"; "),i+=" } } else { "+kt+" } "),i+=" } ",f&&(i+=" else { ")}return i}});var Dle=C((ovn,hnr)=>{hnr.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var stt=C((ivn,itt)=>{"use strict";var ott=Dle();itt.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:ott.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:ott.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}});var ctt=C((svn,att)=>{"use strict";var gnr=/^[a-z_$][a-z0-9_$-]*$/i,ynr=ntt(),xnr=stt();att.exports={add:bnr,get:Enr,remove:vnr,validate:Ale};function bnr(e,r){var n=this.RULES;if(n.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!gnr.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(r){this.validateKeyword(r,!0);var o=r.type;if(Array.isArray(o))for(var i=0;i<o.length;i++)c(e,o[i],r);else c(e,o,r);var a=r.metaSchema;a&&(r.$data&&this._opts.$data&&(a={anyOf:[a,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),r.validateSchema=this.compile(a,!0))}n.keywords[e]=n.all[e]=!0;function c(u,l,p){for(var f,g=0;g<n.length;g++){var x=n[g];if(x.type==l){f=x;break}}f||(f={type:l,rules:[]},n.push(f));var b={keyword:u,definition:p,custom:!0,code:ynr,implements:p.implements};f.rules.push(b),n.custom[u]=b}return this}function Enr(e){var r=this.RULES.custom[e];return r?r.definition:this.RULES.keywords[e]||!1}function vnr(e){var r=this.RULES;delete r.keywords[e],delete r.all[e],delete r.custom[e];for(var n=0;n<r.length;n++)for(var o=r[n].rules,i=0;i<o.length;i++)if(o[i].keyword==e){o.splice(i,1);break}return this}function Ale(e,r){Ale.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(xnr,!0);if(n(e))return!0;if(Ale.errors=n.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));return!1}});var utt=C((avn,Snr)=>{Snr.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var btt=C((cvn,xtt)=>{"use strict";var ptt=UXe(),TE=X5(),wnr=qXe(),ftt=fle(),_nr=xle(),Tnr=eet(),Dnr=Jet(),dtt=Qet(),mtt=_E();xtt.exports=Po;Po.prototype.validate=Cnr;Po.prototype.compile=Pnr;Po.prototype.addSchema=Inr;Po.prototype.addMetaSchema=Onr;Po.prototype.validateSchema=Rnr;Po.prototype.getSchema=Mnr;Po.prototype.removeSchema=Nnr;Po.prototype.addFormat=Hnr;Po.prototype.errorsText=Gnr;Po.prototype._addSchema=$nr;Po.prototype._compile=Lnr;Po.prototype.compileAsync=ttt();var cU=ctt();Po.prototype.addKeyword=cU.add;Po.prototype.getKeyword=cU.get;Po.prototype.removeKeyword=cU.remove;Po.prototype.validateKeyword=cU.validate;var htt=eU();Po.ValidationError=htt.Validation;Po.MissingRefError=htt.MissingRef;Po.$dataMetaSchema=dtt;var aU="http://json-schema.org/draft-07/schema",ltt=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Anr=["/properties"];function Po(e){if(!(this instanceof Po))return new Po(e);e=this._opts=mtt.copy(e)||{},Ynr(this),this._schemas={},this._refs={},this._fragments={},this._formats=Tnr(e.format),this._cache=e.cache||new wnr,this._loadingSchemas={},this._compilations=[],this.RULES=Dnr(),this._getId=Bnr(e),e.loopRequired=e.loopRequired||1/0,e.errorDataPath=="property"&&(e._errorDataPathProperty=!0),e.serialize===void 0&&(e.serialize=_nr),this._metaOpts=Jnr(this),e.formats&&znr(this),e.keywords&&Knr(this),Wnr(this),typeof e.meta=="object"&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),Vnr(this)}function Cnr(e,r){var n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error('no schema with key or ref "'+e+'"')}else{var o=this._addSchema(e);n=o.validate||this._compile(o)}var i=n(r);return n.$async!==!0&&(this.errors=n.errors),i}function Pnr(e,r){var n=this._addSchema(e,void 0,r);return n.validate||this._compile(n)}function Inr(e,r,n,o){if(Array.isArray(e)){for(var i=0;i<e.length;i++)this.addSchema(e[i],void 0,n,o);return this}var a=this._getId(e);if(a!==void 0&&typeof a!="string")throw new Error("schema id must be string");return r=TE.normalizeId(r||a),ytt(this,r),this._schemas[r]=this._addSchema(e,n,o,!0),this}function Onr(e,r,n){return this.addSchema(e,r,n,!0),this}function Rnr(e,r){var n=e.$schema;if(n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this._opts.defaultMeta||Fnr(this),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var o=this.validate(n,e);if(!o&&r){var i="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(i);else throw new Error(i)}return o}function Fnr(e){var r=e._opts.meta;return e._opts.defaultMeta=typeof r=="object"?e._getId(r)||r:e.getSchema(aU)?aU:void 0,e._opts.defaultMeta}function Mnr(e){var r=gtt(this,e);switch(typeof r){case"object":return r.validate||this._compile(r);case"string":return this.getSchema(r);case"undefined":return knr(this,e)}}function knr(e,r){var n=TE.schema.call(e,{schema:{}},r);if(n){var o=n.schema,i=n.root,a=n.baseId,c=ptt.call(e,o,i,void 0,a);return e._fragments[r]=new ftt({ref:r,fragment:!0,schema:o,root:i,baseId:a,validate:c}),c}}function gtt(e,r){return r=TE.normalizeId(r),e._schemas[r]||e._refs[r]||e._fragments[r]}function Nnr(e){if(e instanceof RegExp)return sU(this,this._schemas,e),sU(this,this._refs,e),this;switch(typeof e){case"undefined":return sU(this,this._schemas),sU(this,this._refs),this._cache.clear(),this;case"string":var r=gtt(this,e);return r&&this._cache.del(r.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var n=this._opts.serialize,o=n?n(e):e;this._cache.del(o);var i=this._getId(e);i&&(i=TE.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this}function sU(e,r,n){for(var o in r){var i=r[o];!i.meta&&(!n||n.test(o))&&(e._cache.del(i.cacheKey),delete r[o])}}function $nr(e,r,n,o){if(typeof e!="object"&&typeof e!="boolean")throw new Error("schema should be object or boolean");var i=this._opts.serialize,a=i?i(e):e,c=this._cache.get(a);if(c)return c;o=o||this._opts.addUsedSchema!==!1;var u=TE.normalizeId(this._getId(e));u&&o&&ytt(this,u);var l=this._opts.validateSchema!==!1&&!r,p;l&&!(p=u&&u==TE.normalizeId(e.$schema))&&this.validateSchema(e,!0);var f=TE.ids.call(this,e),g=new ftt({id:u,schema:e,localRefs:f,cacheKey:a,meta:n});return u[0]!="#"&&o&&(this._refs[u]=g),this._cache.put(a,g),l&&p&&this.validateSchema(e,!0),g}function Lnr(e,r){if(e.compiling)return e.validate=i,i.schema=e.schema,i.errors=null,i.root=r||i,e.schema.$async===!0&&(i.$async=!0),i;e.compiling=!0;var n;e.meta&&(n=this._opts,this._opts=this._metaOpts);var o;try{o=ptt.call(this,e.schema,r,e.localRefs)}catch(a){throw delete e.validate,a}finally{e.compiling=!1,e.meta&&(this._opts=n)}return e.validate=o,e.refs=o.refs,e.refVal=o.refVal,e.root=o.root,o;function i(){var a=e.validate,c=a.apply(this,arguments);return i.errors=a.errors,c}}function Bnr(e){switch(e.schemaId){case"auto":return qnr;case"id":return Unr;default:return jnr}}function Unr(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function jnr(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function qnr(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function Gnr(e,r){if(e=e||this.errors,!e)return"No errors";r=r||{};for(var n=r.separator===void 0?", ":r.separator,o=r.dataVar===void 0?"data":r.dataVar,i="",a=0;a<e.length;a++){var c=e[a];c&&(i+=o+c.dataPath+" "+c.message+n)}return i.slice(0,-n.length)}function Hnr(e,r){return typeof r=="string"&&(r=new RegExp(r)),this._formats[e]=r,this}function Wnr(e){var r;if(e._opts.$data&&(r=utt(),e.addMetaSchema(r,r.$id,!0)),e._opts.meta!==!1){var n=Dle();e._opts.$data&&(n=dtt(n,Anr)),e.addMetaSchema(n,aU,!0),e._refs["http://json-schema.org/schema"]=aU}}function Vnr(e){var r=e._opts.schemas;if(r)if(Array.isArray(r))e.addSchema(r);else for(var n in r)e.addSchema(r[n],n)}function znr(e){for(var r in e._opts.formats){var n=e._opts.formats[r];e.addFormat(r,n)}}function Knr(e){for(var r in e._opts.keywords){var n=e._opts.keywords[r];e.addKeyword(r,n)}}function ytt(e,r){if(e._schemas[r]||e._refs[r])throw new Error('schema with key or id "'+r+'" already exists')}function Jnr(e){for(var r=mtt.copy(e._opts),n=0;n<ltt.length;n++)delete r[ltt[n]];return r}function Ynr(e){var r=e._opts.logger;if(r===!1)e.logger={log:Cle,warn:Cle,error:Cle};else{if(r===void 0&&(r=console),!(typeof r=="object"&&r.log&&r.warn&&r.error))throw new Error("logger must implement log, warn and error methods");e.logger=r}}function Cle(){}});var Uf=W(require("node:path"));ga();var Xrt=W(Wfe());ga();var eit=ah("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Oj(e){return e.getValue(eit)===!0}ga();function ty(e){let r={};if(typeof e!="object"||e==null)return r;for(let[n,o]of Object.entries(e)){if(!tit(n)){yr.warn(`Invalid attribute key: ${n}`);continue}if(!PO(o)){yr.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(o)?r[n]=o.slice():r[n]=o}return r}function tit(e){return typeof e=="string"&&e.length>0}function PO(e){return e==null?!0:Array.isArray(e)?rit(e):Vfe(e)}function rit(e){let r;for(let n of e)if(n!=null){if(!r){if(Vfe(n)){r=typeof n;continue}return!1}if(typeof n!==r)return!1}return!0}function Vfe(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}ga();function zfe(){return e=>{yr.error(nit(e))}}function nit(e){return typeof e=="string"?e:JSON.stringify(oit(e))}function oit(e){let r={},n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(o=>{if(r[o])return;let i=n[o];i&&(r[o]=String(i))}),n=Object.getPrototypeOf(n);return r}var iit=zfe();function X1(e){try{iit(e)}catch{}}ga();var Kfe=require("util");function Oi(e){let r=process.env[e];if(r==null||r.trim()==="")return;let n=Number(r);if(isNaN(n)){yr.warn(`Unknown value ${(0,Kfe.inspect)(r)} for ${e}, expected a number, using defaults`);return}return n}function eT(e){let r=process.env[e];if(!(r==null||r.trim()===""))return r}var Jfe=require("perf_hooks"),cl=Jfe.performance;var Yfe="2.1.0";var IO="exception.message",Zfe="exception.stacktrace",OO="exception.type";var Qfe="service.name";var tT="telemetry.sdk.language";var Xfe="nodejs";var rT="telemetry.sdk.name",nT="telemetry.sdk.version";var ede="process.runtime.name";var ry={[rT]:"opentelemetry",[ede]:"node",[tT]:Xfe,[nT]:Yfe};var cit=9,uit=6,lit=Math.pow(10,uit),Rj=Math.pow(10,cit);function ph(e){let r=e/1e3,n=Math.trunc(r),o=Math.round(e%1e3*lit);return[n,o]}function RO(){let e=cl.timeOrigin;if(typeof e!="number"){let r=cl;e=r.timing&&r.timing.fetchStart}return e}function Fj(e){let r=ph(RO()),n=ph(typeof e=="number"?e:cl.now());return kO(r,n)}function Mj(e,r){let n=r[0]-e[0],o=r[1]-e[1];return o<0&&(n-=1,o+=Rj),[n,o]}function FO(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function MO(e){return FO(e)||typeof e=="number"||e instanceof Date}function kO(e,r){let n=[e[0]+r[0],e[1]+r[1]];return n[1]>=Rj&&(n[1]-=Rj,n[0]+=1),n}var pit="[object Object]",fit="[object Null]",dit="[object Undefined]",mit=Function.prototype,nde=mit.toString,hit=nde.call(Object),git=Object.getPrototypeOf,ode=Object.prototype,ide=ode.hasOwnProperty,ny=Symbol?Symbol.toStringTag:void 0,sde=ode.toString;function kj(e){if(!yit(e)||xit(e)!==pit)return!1;let r=git(e);if(r===null)return!0;let n=ide.call(r,"constructor")&&r.constructor;return typeof n=="function"&&n instanceof n&&nde.call(n)===hit}function yit(e){return e!=null&&typeof e=="object"}function xit(e){return e==null?e===void 0?dit:fit:ny&&ny in Object(e)?bit(e):Eit(e)}function bit(e){let r=ide.call(e,ny),n=e[ny],o=!1;try{e[ny]=void 0,o=!0}catch{}let i=sde.call(e);return o&&(r?e[ny]=n:delete e[ny]),i}function Eit(e){return sde.call(e)}var vit=20;function $j(...e){let r=e.shift(),n=new WeakMap;for(;e.length>0;)r=cde(r,e.shift(),0,n);return r}function Nj(e){return $O(e)?e.slice():e}function cde(e,r,n=0,o){let i;if(!(n>vit)){if(n++,NO(e)||NO(r)||ude(r))i=Nj(r);else if($O(e)){if(i=e.slice(),$O(r))for(let a=0,c=r.length;a<c;a++)i.push(Nj(r[a]));else if(oT(r)){let a=Object.keys(r);for(let c=0,u=a.length;c<u;c++){let l=a[c];i[l]=Nj(r[l])}}}else if(oT(e))if(oT(r)){if(!Sit(e,r))return r;i=Object.assign({},e);let a=Object.keys(r);for(let c=0,u=a.length;c<u;c++){let l=a[c],p=r[l];if(NO(p))typeof p>"u"?delete i[l]:i[l]=p;else{let f=i[l],g=p;if(ade(e,l,o)||ade(r,l,o))delete i[l];else{if(oT(f)&&oT(g)){let x=o.get(f)||[],b=o.get(g)||[];x.push({obj:e,key:l}),b.push({obj:r,key:l}),o.set(f,x),o.set(g,b)}i[l]=cde(i[l],p,n,o)}}}}else i=r;return i}}function ade(e,r,n){let o=n.get(e[r])||[];for(let i=0,a=o.length;i<a;i++){let c=o[i];if(c.key===r&&c.obj===e)return!0}return!1}function $O(e){return Array.isArray(e)}function ude(e){return typeof e=="function"}function oT(e){return!NO(e)&&!$O(e)&&!ude(e)&&typeof e=="object"}function NO(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function Sit(e,r){return!(!kj(e)||!kj(r))}ga();function LO(){return`unknown_service:${process.argv0}`}var GE=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";var Lj=class e{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(r,n){let o=new e({},n);return o._rawAttributes=lde(r),o._asyncAttributesPending=r.filter(([i,a])=>GE(a)).length>0,o}constructor(r,n){let o=r.attributes??{};this._rawAttributes=Object.entries(o).map(([i,a])=>(GE(a)&&(this._asyncAttributesPending=!0),[i,a])),this._rawAttributes=lde(this._rawAttributes),this._schemaUrl=wit(n?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let r=0;r<this._rawAttributes.length;r++){let[n,o]=this._rawAttributes[r];this._rawAttributes[r]=[n,GE(o)?await o:o]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&yr.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;let r={};for(let[n,o]of this._rawAttributes){if(GE(o)){yr.debug(`Unsettled resource attribute ${n} skipped`);continue}o!=null&&(r[n]??=o)}return this._asyncAttributesPending||(this._memoizedAttributes=r),r}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(r){if(r==null)return this;let n=_it(this,r),o=n?{schemaUrl:n}:void 0;return e.FromAttributeList([...r.getRawAttributes(),...this.getRawAttributes()],o)}};function pde(e,r){return Lj.FromAttributeList(Object.entries(e),r)}function Bj(){return pde({[Qfe]:LO(),[tT]:ry[tT],[rT]:ry[rT],[nT]:ry[nT]})}function lde(e){return e.map(([r,n])=>GE(n)?[r,n.catch(o=>{yr.debug("promise rejection for resource attribute: %s - %s",r,o)})]:[r,n])}function wit(e){if(typeof e=="string"||e===void 0)return e;yr.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",e)}function _it(e,r){let n=e?.schemaUrl,o=r?.schemaUrl,i=n===void 0||n==="",a=o===void 0||o==="";if(i)return o;if(a||n===o)return n;yr.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',n,o)}ga();ga();var fde="exception";var BO=class{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:jE.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(r){let n=Date.now();this._spanContext=r.spanContext,this._performanceStartTime=cl.now(),this._performanceOffset=n-(this._performanceStartTime+RO()),this._startTimeProvided=r.startTime!=null,this._spanLimits=r.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=r.spanProcessor,this.name=r.name,this.parentSpanContext=r.parentSpanContext,this.kind=r.kind,this.links=r.links||[],this.startTime=this._getTime(r.startTime??n),this.resource=r.resource,this.instrumentationScope=r.scope,r.attributes!=null&&this.setAttributes(r.attributes),this._spanProcessor.onStart(this,r.context)}spanContext(){return this._spanContext}setAttribute(r,n){if(n==null||this._isSpanEnded())return this;if(r.length===0)return yr.warn(`Invalid attribute key: ${r}`),this;if(!PO(n))return yr.warn(`Invalid attribute value set for key: ${r}`),this;let{attributeCountLimit:o}=this._spanLimits;return o!==void 0&&Object.keys(this.attributes).length>=o&&!Object.prototype.hasOwnProperty.call(this.attributes,r)?(this._droppedAttributesCount++,this):(this.attributes[r]=this._truncateToSize(n),this)}setAttributes(r){for(let[n,o]of Object.entries(r))this.setAttribute(n,o);return this}addEvent(r,n,o){if(this._isSpanEnded())return this;let{eventCountLimit:i}=this._spanLimits;if(i===0)return yr.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&yr.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),MO(n)&&(MO(o)||(o=n),n=void 0);let a=ty(n);return this.events.push({name:r,attributes:a,time:this._getTime(o),droppedAttributesCount:0}),this}addLink(r){return this.links.push(r),this}addLinks(r){return this.links.push(...r),this}setStatus(r){return this._isSpanEnded()?this:(this.status={...r},this.status.message!=null&&typeof r.message!="string"&&(yr.warn(`Dropping invalid status.message of type '${typeof r.message}', expected 'string'`),delete this.status.message),this)}updateName(r){return this._isSpanEnded()?this:(this.name=r,this)}end(r){if(this._isSpanEnded()){yr.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(r),this._duration=Mj(this.startTime,this.endTime),this._duration[0]<0&&(yr.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&yr.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(r){if(typeof r=="number"&&r<=cl.now())return Fj(r+this._performanceOffset);if(typeof r=="number")return ph(r);if(r instanceof Date)return ph(r.getTime());if(FO(r))return r;if(this._startTimeProvided)return ph(Date.now());let n=cl.now()-this._performanceStartTime;return kO(this.startTime,ph(n))}isRecording(){return this._ended===!1}recordException(r,n){let o={};typeof r=="string"?o[IO]=r:r&&(r.code?o[OO]=r.code.toString():r.name&&(o[OO]=r.name),r.message&&(o[IO]=r.message),r.stack&&(o[Zfe]=r.stack)),o[OO]||o[IO]?this.addEvent(fde,o,n):yr.warn(`Failed to record an exception ${r}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){let r=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);yr.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,r)}return this._ended}_truncateToLimitUtil(r,n){return r.length<=n?r:r.substring(0,n)}_truncateToSize(r){let n=this._attributeValueLengthLimit;return n<=0?(yr.warn(`Attribute value limit must be positive, got ${n}`),r):typeof r=="string"?this._truncateToLimitUtil(r,n):Array.isArray(r)?r.map(o=>typeof o=="string"?this._truncateToLimitUtil(o,n):o):r}};ga();var Yf;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Yf||(Yf={}));var fh=class{shouldSample(){return{decision:Yf.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};var wp=class{shouldSample(){return{decision:Yf.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};ga();var oy=class{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(r){this._root=r.root,this._root||(X1(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new wp),this._remoteParentSampled=r.remoteParentSampled??new wp,this._remoteParentNotSampled=r.remoteParentNotSampled??new fh,this._localParentSampled=r.localParentSampled??new wp,this._localParentNotSampled=r.localParentNotSampled??new fh}shouldSample(r,n,o,i,a,c){let u=ha.getSpanContext(r);return!u||!lh(u)?this._root.shouldSample(r,n,o,i,a,c):u.isRemote?u.traceFlags&Zc.SAMPLED?this._remoteParentSampled.shouldSample(r,n,o,i,a,c):this._remoteParentNotSampled.shouldSample(r,n,o,i,a,c):u.traceFlags&Zc.SAMPLED?this._localParentSampled.shouldSample(r,n,o,i,a,c):this._localParentNotSampled.shouldSample(r,n,o,i,a,c)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};ga();var iT=class{_ratio;_upperBound;constructor(r=0){this._ratio=r,this._ratio=this._normalize(r),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(r,n){return{decision:Z1(n)&&this._accumulate(n)<this._upperBound?Yf.RECORD_AND_SAMPLED:Yf.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(r){return typeof r!="number"||isNaN(r)?0:r>=1?1:r<=0?0:r}_accumulate(r){let n=0;for(let o=0;o<r.length/8;o++){let i=o*8,a=parseInt(r.slice(i,i+8),16);n=(n^a)>>>0}return n}};var _p;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(_p||(_p={}));var UO=1;function jO(){return{sampler:Uj(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:Oi("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:Oi("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:Oi("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:Oi("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:Oi("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:Oi("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:Oi("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:Oi("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}}}function Uj(){let e=eT("OTEL_TRACES_SAMPLER")??_p.ParentBasedAlwaysOn;switch(e){case _p.AlwaysOn:return new wp;case _p.AlwaysOff:return new fh;case _p.ParentBasedAlwaysOn:return new oy({root:new wp});case _p.ParentBasedAlwaysOff:return new oy({root:new fh});case _p.TraceIdRatio:return new iT(dde());case _p.ParentBasedTraceIdRatio:return new oy({root:new iT(dde())});default:return yr.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "${_p.ParentBasedAlwaysOn}".`),new oy({root:new wp})}}function dde(){let e=Oi("OTEL_TRACES_SAMPLER_ARG");return e==null?(yr.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${UO}.`),UO):e<0||e>1?(yr.error(`OTEL_TRACES_SAMPLER_ARG=${e} was given, but it is out of range ([0..1]), defaulting to ${UO}.`),UO):e}var Tit=128,Dit=1/0;function mde(e){let r={sampler:Uj()},n=jO(),o=Object.assign({},n,r,e);return o.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),o.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),o}function hde(e){let r=Object.assign({},e.spanLimits);return r.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??Oi("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??Oi("OTEL_ATTRIBUTE_COUNT_LIMIT")??Tit,r.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??Oi("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??Oi("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??Dit,Object.assign({},e,{spanLimits:r})}var HE=class{generateTraceId=gde(16);generateSpanId=gde(8)},qO=Buffer.allocUnsafe(16);function gde(e){return function(){for(let n=0;n<e/4;n++)qO.writeUInt32BE(Math.random()*2**32>>>0,n*4);for(let n=0;n<e&&!(qO[n]>0);n++)n===e-1&&(qO[e-1]=1);return qO.toString("hex",0,e)}}var GO=class{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(r,n,o,i){let a=mde(n);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=n.idGenerator||new HE,this._resource=o,this._spanProcessor=i,this.instrumentationScope=r}startSpan(r,n={},o=Jf.active()){n.root&&(o=ha.deleteSpan(o));let i=ha.getSpan(o);if(Oj(o))return yr.debug("Instrumentation suppressed, returning Noop Span"),ha.wrapSpanContext(BE);let a=i?.spanContext(),c=this._idGenerator.generateSpanId(),u,l,p;!a||!ha.isSpanContextValid(a)?l=this._idGenerator.generateTraceId():(l=a.traceId,p=a.traceState,u=a);let f=n.kind??UE.INTERNAL,g=(n.links??[]).map(I=>({context:I.context,attributes:ty(I.attributes)})),x=ty(n.attributes),b=this._sampler.shouldSample(o,l,r,f,x,g);p=b.traceState??p;let E=b.decision===ey.RECORD_AND_SAMPLED?Zc.SAMPLED:Zc.NONE,S={traceId:l,spanId:c,traceFlags:E,traceState:p};if(b.decision===ey.NOT_RECORD)return yr.debug("Recording is off, propagating context in a non-recording span"),ha.wrapSpanContext(S);let _=ty(Object.assign(x,b.attributes));return new BO({resource:this._resource,scope:this.instrumentationScope,context:o,spanContext:S,name:r,kind:f,links:g,parentSpanContext:u,attributes:_,startTime:n.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(r,n,o,i){let a,c,u;if(arguments.length<2)return;arguments.length===2?u=n:arguments.length===3?(a=n,u=o):(a=n,c=o,u=i);let l=c??Jf.active(),p=this.startSpan(r,a,l),f=ha.setSpan(l,p);return Jf.with(f,u,void 0,p)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}};var HO=class{_spanProcessors;constructor(r){this._spanProcessors=r}forceFlush(){let r=[];for(let n of this._spanProcessors)r.push(n.forceFlush());return new Promise(n=>{Promise.all(r).then(()=>{n()}).catch(o=>{X1(o||new Error("MultiSpanProcessor: forceFlush failed")),n()})})}onStart(r,n){for(let o of this._spanProcessors)o.onStart(r,n)}onEnd(r){for(let n of this._spanProcessors)n.onEnd(r)}shutdown(){let r=[];for(let n of this._spanProcessors)r.push(n.shutdown());return new Promise((n,o)=>{Promise.all(r).then(()=>{n()},o)})}};var iy;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(iy||(iy={}));var sT=class{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(r={}){let n=$j({},jO(),hde(r));this._resource=n.resource??Bj(),this._config=Object.assign({},n,{resource:this._resource});let o=[];r.spanProcessors?.length&&o.push(...r.spanProcessors),this._activeSpanProcessor=new HO(o)}getTracer(r,n,o){let i=`${r}@${n||""}:${o?.schemaUrl||""}`;return this._tracers.has(i)||this._tracers.set(i,new GO({name:r,version:n,schemaUrl:o?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(i)}forceFlush(){let r=this._config.forceFlushTimeoutMillis,n=this._activeSpanProcessor._spanProcessors.map(o=>new Promise(i=>{let a,c=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${r} ms`)),a=iy.timeout},r);o.forceFlush().then(()=>{clearTimeout(c),a!==iy.timeout&&(a=iy.resolved,i(a))}).catch(u=>{clearTimeout(c),a=iy.error,i(u)})}));return new Promise((o,i)=>{Promise.all(n).then(a=>{let c=a.filter(u=>u!==iy.resolved);c.length>0?i(c):o()}).catch(a=>i([a]))})}shutdown(){return this._activeSpanProcessor.shutdown()}};var WO={};ic(WO,{$:()=>vde,bgBlack:()=>Fit,bgBlue:()=>Nit,bgCyan:()=>Lit,bgGreen:()=>Mit,bgMagenta:()=>$it,bgRed:()=>qj,bgWhite:()=>Bit,bgYellow:()=>kit,black:()=>Iit,blue:()=>ul,bold:()=>U,cyan:()=>Qc,dim:()=>te,gray:()=>sy,green:()=>fe,grey:()=>Zf,hidden:()=>Cit,inverse:()=>Ait,italic:()=>Ln,magenta:()=>Oit,red:()=>de,reset:()=>aT,strikethrough:()=>Pit,underline:()=>un,white:()=>Rit,yellow:()=>mt});var jj,yde,xde,bde,Ede=!0;typeof process<"u"&&({FORCE_COLOR:jj,NODE_DISABLE_COLORS:yde,NO_COLOR:xde,TERM:bde}=process.env||{},Ede=process.stdout&&process.stdout.isTTY);var vde={enabled:!yde&&xde==null&&bde!=="dumb"&&(jj!=null&&jj!=="0"||Ede)};function wn(e,r){let n=new RegExp(`\\x1b\\[${r}m`,"g"),o=`\x1B[${e}m`,i=`\x1B[${r}m`;return function(a){return!vde.enabled||a==null?a:o+(~(""+a).indexOf(i)?a.replace(n,i+o):a)+i}}var aT=wn(0,0),U=wn(1,22),te=wn(2,22),Ln=wn(3,23),un=wn(4,24),Ait=wn(7,27),Cit=wn(8,28),Pit=wn(9,29),Iit=wn(30,39),de=wn(31,39),fe=wn(32,39),mt=wn(33,39),ul=wn(34,39),Oit=wn(35,39),Qc=wn(36,39),Rit=wn(37,39),sy=wn(90,39),Zf=wn(90,39),Fit=wn(40,49),qj=wn(41,49),Mit=wn(42,49),kit=wn(43,49),Nit=wn(44,49),$it=wn(45,49),Lit=wn(46,49),Bit=wn(47,49);var Uit=100,Sde=["green","yellow","blue","magenta","cyan","red"],Gj=[],wde=Date.now(),jit=0,Hj=typeof process<"u"?process.env:{};globalThis.DEBUG??=Hj.DEBUG??"";globalThis.DEBUG_COLORS??=Hj.DEBUG_COLORS?Hj.DEBUG_COLORS==="true":!0;var cT={enable(e){typeof e=="string"&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let r=globalThis.DEBUG.split(",").map(i=>i.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),n=r.some(i=>i===""||i[0]==="-"?!1:e.match(RegExp(i.split("*").join(".*")+"$"))),o=r.some(i=>i===""||i[0]!=="-"?!1:e.match(RegExp(i.slice(1).split("*").join(".*")+"$")));return n&&!o},log:(...e)=>{let[r,n,...o]=e;(console.warn??console.log)(`${r} ${n}`,...o)},formatters:{}};function qit(e){let r={color:Sde[jit++%Sde.length],enabled:cT.enabled(e),namespace:e,log:cT.log,extend:()=>{}},n=(...o)=>{let{enabled:i,namespace:a,color:c,log:u}=r;if(o.length!==0&&Gj.push([a,...o]),Gj.length>Uit&&Gj.shift(),cT.enabled(a)||i){let l=o.map(f=>typeof f=="string"?f:Git(f)),p=`+${Date.now()-wde}ms`;wde=Date.now(),globalThis.DEBUG_COLORS?u(WO[c](U(a)),...l,WO[c](p)):u(a,...l,p)}};return new Proxy(n,{get:(o,i)=>r[i],set:(o,i,a)=>r[i]=a})}var Wo=new Proxy(qit,{get:(e,r)=>cT[r],set:(e,r,n)=>cT[r]=n});function Git(e,r=2){let n=new Set;return JSON.stringify(e,(o,i)=>{if(typeof i=="object"&&i!==null){if(n.has(i))return"[Circular *]";n.add(i)}else if(typeof i=="bigint")return i.toString();return i},r)}var gt=Wo;var ent=require("@prisma/engines");var Ta=W(require("node:fs")),Bp=W(require("node:path")),k1e=require("node:util");var uT=["darwin","darwin-arm64","debian-openssl-1.0.x","debian-openssl-1.1.x","debian-openssl-3.0.x","rhel-openssl-1.0.x","rhel-openssl-1.1.x","rhel-openssl-3.0.x","linux-arm64-openssl-1.1.x","linux-arm64-openssl-1.0.x","linux-arm64-openssl-3.0.x","linux-arm-openssl-1.1.x","linux-arm-openssl-1.0.x","linux-arm-openssl-3.0.x","linux-musl","linux-musl-openssl-3.0.x","linux-musl-arm64-openssl-1.1.x","linux-musl-arm64-openssl-3.0.x","linux-nixos","linux-static-x64","linux-static-arm64","windows","freebsd11","freebsd12","freebsd13","freebsd14","freebsd15","openbsd","netbsd","arm"];var Pde=W(require("child_process")),Zj=W(require("fs/promises")),YO=W(require("os"));var ya=Symbol.for("@ts-pattern/matcher"),_de=Symbol.for("@ts-pattern/isVariadic"),zO="@ts-pattern/anonymous-select-key",Wj=e=>!!(e&&typeof e=="object"),VO=e=>e&&!!e[ya],Ji=(e,r,n)=>{if(VO(e)){let o=e[ya](),{matched:i,selections:a}=o.match(r);return i&&a&&Object.keys(a).forEach(c=>n(c,a[c])),i}if(Wj(e)){if(!Wj(r))return!1;if(Array.isArray(e)){if(!Array.isArray(r))return!1;let o=[],i=[],a=[];for(let c of e.keys()){let u=e[c];VO(u)&&u[_de]?a.push(u):a.length?i.push(u):o.push(u)}if(a.length){if(a.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(r.length<o.length+i.length)return!1;let c=r.slice(0,o.length),u=i.length===0?[]:r.slice(-i.length),l=r.slice(o.length,i.length===0?1/0:-i.length);return o.every((p,f)=>Ji(p,c[f],n))&&i.every((p,f)=>Ji(p,u[f],n))&&(a.length===0||Ji(a[0],l,n))}return e.length===r.length&&e.every((c,u)=>Ji(c,r[u],n))}return Reflect.ownKeys(e).every(o=>{let i=e[o];return(o in r||VO(a=i)&&a[ya]().matcherType==="optional")&&Ji(i,r[o],n);var a})}return Object.is(r,e)},ac=e=>{var r,n,o;return Wj(e)?VO(e)?(r=(n=(o=e[ya]()).getSelectionKeys)==null?void 0:n.call(o))!=null?r:[]:Array.isArray(e)?lT(e,ac):lT(Object.values(e),ac):[]},lT=(e,r)=>e.reduce((n,o)=>n.concat(r(o)),[]);function Hit(...e){if(e.length===1){let[r]=e;return n=>Ji(r,n,()=>{})}if(e.length===2){let[r,n]=e;return Ji(r,n,()=>{})}throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${e.length}.`)}function Yi(e){return Object.assign(e,{optional:()=>Yj(e),and:r=>Bn(e,r),or:r=>Tde(e,r),select:r=>r===void 0?pT(e):pT(r,e)})}function Vj(e){return Object.assign((r=>Object.assign(r,{[Symbol.iterator](){let n=0,o=[{value:Object.assign(r,{[_de]:!0}),done:!1},{done:!0,value:void 0}];return{next:()=>{var i;return(i=o[n++])!=null?i:o.at(-1)}}}}))(e),{optional:()=>Vj(Yj(e)),select:r=>Vj(r===void 0?pT(e):pT(r,e))})}function Yj(e){return Yi({[ya]:()=>({match:r=>{let n={},o=(i,a)=>{n[i]=a};return r===void 0?(ac(e).forEach(i=>o(i,void 0)),{matched:!0,selections:n}):{matched:Ji(e,r,o),selections:n}},getSelectionKeys:()=>ac(e),matcherType:"optional"})})}var Wit=(e,r)=>{for(let n of e)if(!r(n))return!1;return!0},Vit=(e,r)=>{for(let[n,o]of e.entries())if(!r(o,n))return!1;return!0};function Bn(...e){return Yi({[ya]:()=>({match:r=>{let n={},o=(i,a)=>{n[i]=a};return{matched:e.every(i=>Ji(i,r,o)),selections:n}},getSelectionKeys:()=>lT(e,ac),matcherType:"and"})})}function Tde(...e){return Yi({[ya]:()=>({match:r=>{let n={},o=(i,a)=>{n[i]=a};return lT(e,ac).forEach(i=>o(i,void 0)),{matched:e.some(i=>Ji(i,r,o)),selections:n}},getSelectionKeys:()=>lT(e,ac),matcherType:"or"})})}function _r(e){return{[ya]:()=>({match:r=>({matched:!!e(r)})})}}function pT(...e){let r=typeof e[0]=="string"?e[0]:void 0,n=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return Yi({[ya]:()=>({match:o=>{let i={[r??zO]:o};return{matched:n===void 0||Ji(n,o,(a,c)=>{i[a]=c}),selections:i}},getSelectionKeys:()=>[r??zO].concat(n===void 0?[]:ac(n))})})}function Tp(e){return typeof e=="number"}function dh(e){return typeof e=="string"}function mh(e){return typeof e=="bigint"}var Dde=Yi(_r(function(e){return!0})),zit=Dde,hh=e=>Object.assign(Yi(e),{startsWith:r=>{return hh(Bn(e,(n=r,_r(o=>dh(o)&&o.startsWith(n)))));var n},endsWith:r=>{return hh(Bn(e,(n=r,_r(o=>dh(o)&&o.endsWith(n)))));var n},minLength:r=>hh(Bn(e,(n=>_r(o=>dh(o)&&o.length>=n))(r))),length:r=>hh(Bn(e,(n=>_r(o=>dh(o)&&o.length===n))(r))),maxLength:r=>hh(Bn(e,(n=>_r(o=>dh(o)&&o.length<=n))(r))),includes:r=>{return hh(Bn(e,(n=r,_r(o=>dh(o)&&o.includes(n)))));var n},regex:r=>{return hh(Bn(e,(n=r,_r(o=>dh(o)&&!!o.match(n)))));var n}}),Kit=hh(_r(dh)),Dp=e=>Object.assign(Yi(e),{between:(r,n)=>Dp(Bn(e,((o,i)=>_r(a=>Tp(a)&&o<=a&&i>=a))(r,n))),lt:r=>Dp(Bn(e,(n=>_r(o=>Tp(o)&&o<n))(r))),gt:r=>Dp(Bn(e,(n=>_r(o=>Tp(o)&&o>n))(r))),lte:r=>Dp(Bn(e,(n=>_r(o=>Tp(o)&&o<=n))(r))),gte:r=>Dp(Bn(e,(n=>_r(o=>Tp(o)&&o>=n))(r))),int:()=>Dp(Bn(e,_r(r=>Tp(r)&&Number.isInteger(r)))),finite:()=>Dp(Bn(e,_r(r=>Tp(r)&&Number.isFinite(r)))),positive:()=>Dp(Bn(e,_r(r=>Tp(r)&&r>0))),negative:()=>Dp(Bn(e,_r(r=>Tp(r)&&r<0)))}),Jit=Dp(_r(Tp)),gh=e=>Object.assign(Yi(e),{between:(r,n)=>gh(Bn(e,((o,i)=>_r(a=>mh(a)&&o<=a&&i>=a))(r,n))),lt:r=>gh(Bn(e,(n=>_r(o=>mh(o)&&o<n))(r))),gt:r=>gh(Bn(e,(n=>_r(o=>mh(o)&&o>n))(r))),lte:r=>gh(Bn(e,(n=>_r(o=>mh(o)&&o<=n))(r))),gte:r=>gh(Bn(e,(n=>_r(o=>mh(o)&&o>=n))(r))),positive:()=>gh(Bn(e,_r(r=>mh(r)&&r>0))),negative:()=>gh(Bn(e,_r(r=>mh(r)&&r<0)))}),Yit=gh(_r(mh)),Zit=Yi(_r(function(e){return typeof e=="boolean"})),Qit=Yi(_r(function(e){return typeof e=="symbol"})),Xit=Yi(_r(function(e){return e==null})),est=Yi(_r(function(e){return e!=null})),cc={__proto__:null,matcher:ya,optional:Yj,array:function(...e){return Vj({[ya]:()=>({match:r=>{if(!Array.isArray(r))return{matched:!1};if(e.length===0)return{matched:!0};let n=e[0],o={};if(r.length===0)return ac(n).forEach(a=>{o[a]=[]}),{matched:!0,selections:o};let i=(a,c)=>{o[a]=(o[a]||[]).concat([c])};return{matched:r.every(a=>Ji(n,a,i)),selections:o}},getSelectionKeys:()=>e.length===0?[]:ac(e[0])})})},set:function(...e){return Yi({[ya]:()=>({match:r=>{if(!(r instanceof Set))return{matched:!1};let n={};if(r.size===0)return{matched:!0,selections:n};if(e.length===0)return{matched:!0};let o=(a,c)=>{n[a]=(n[a]||[]).concat([c])},i=e[0];return{matched:Wit(r,a=>Ji(i,a,o)),selections:n}},getSelectionKeys:()=>e.length===0?[]:ac(e[0])})})},map:function(...e){return Yi({[ya]:()=>({match:r=>{if(!(r instanceof Map))return{matched:!1};let n={};if(r.size===0)return{matched:!0,selections:n};let o=(u,l)=>{n[u]=(n[u]||[]).concat([l])};if(e.length===0)return{matched:!0};var i;if(e.length===1)throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(i=e[0])==null?void 0:i.toString()}`);let[a,c]=e;return{matched:Vit(r,(u,l)=>{let p=Ji(a,l,o),f=Ji(c,u,o);return p&&f}),selections:n}},getSelectionKeys:()=>e.length===0?[]:[...ac(e[0]),...ac(e[1])]})})},intersection:Bn,union:Tde,not:function(e){return Yi({[ya]:()=>({match:r=>({matched:!Ji(e,r,()=>{})}),getSelectionKeys:()=>[],matcherType:"not"})})},when:_r,select:pT,any:Dde,_:zit,string:Kit,number:Jit,bigint:Yit,boolean:Zit,symbol:Qit,nullish:Xit,nonNullable:est,instanceOf:function(e){return Yi(_r(function(r){return n=>n instanceof r}(e)))},shape:function(e){return Yi(_r(Hit(e)))}},zj=class extends Error{constructor(r){let n;try{n=JSON.stringify(r)}catch{n=r}super(`Pattern matching error: no pattern matches value ${n}`),this.input=void 0,this.input=r}},Kj={matched:!1,value:void 0};function xr(e){return new Jj(e,Kj)}var Jj=class e{constructor(r,n){this.input=void 0,this.state=void 0,this.input=r,this.state=n}with(...r){if(this.state.matched)return this;let n=r[r.length-1],o=[r[0]],i;r.length===3&&typeof r[1]=="function"?i=r[1]:r.length>2&&o.push(...r.slice(1,r.length-1));let a=!1,c={},u=(p,f)=>{a=!0,c[p]=f},l=!o.some(p=>Ji(p,this.input,u))||i&&!i(this.input)?Kj:{matched:!0,value:n(a?zO in c?c[zO]:c:this.input,this.input)};return new e(this.input,l)}when(r,n){if(this.state.matched)return this;let o=!!r(this.input);return new e(this.input,o?{matched:!0,value:n(this.input,this.input)}:Kj)}otherwise(r){return this.state.matched?this.state.value:r(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new zj(this.input)}run(){return this.exhaustive()}returnType(){return this}};var Ide=require("util");var tst={warn:mt("prisma:warn")},rst={warn:()=>!process.env.PRISMA_DISABLE_WARNINGS};function KO(e,...r){rst.warn()&&console.warn(`${tst.warn} ${e}`,...r)}var nst=(0,Ide.promisify)(Pde.default.exec),Ws=gt("prisma:get-platform"),ost=["1.0.x","1.1.x","3.0.x"];async function Ode(){let e=YO.default.platform(),r=process.arch;if(e==="freebsd"){let c=await ZO("freebsd-version");if(c&&c.trim().length>0){let l=/^(\d+)\.?/.exec(c);if(l)return{platform:"freebsd",targetDistro:`freebsd${l[1]}`,arch:r}}}if(e!=="linux")return{platform:e,arch:r};let n=await sst(),o=await mst(),i=cst({arch:r,archFromUname:o,familyDistro:n.familyDistro}),{libssl:a}=await ust(i);return{platform:"linux",libssl:a,arch:r,archFromUname:o,...n}}function ist(e){let r=/^ID="?([^"\n]*)"?$/im,n=/^ID_LIKE="?([^"\n]*)"?$/im,o=r.exec(e),i=o&&o[1]&&o[1].toLowerCase()||"",a=n.exec(e),c=a&&a[1]&&a[1].toLowerCase()||"",u=xr({id:i,idLike:c}).with({id:"alpine"},({id:l})=>({targetDistro:"musl",familyDistro:l,originalDistro:l})).with({id:"raspbian"},({id:l})=>({targetDistro:"arm",familyDistro:"debian",originalDistro:l})).with({id:"nixos"},({id:l})=>({targetDistro:"nixos",originalDistro:l,familyDistro:"nixos"})).with({id:"debian"},{id:"ubuntu"},({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).with({id:"rhel"},{id:"centos"},{id:"fedora"},({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).when(({idLike:l})=>l.includes("debian")||l.includes("ubuntu"),({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).when(({idLike:l})=>i==="arch"||l.includes("arch"),({id:l})=>({targetDistro:"debian",familyDistro:"arch",originalDistro:l})).when(({idLike:l})=>l.includes("centos")||l.includes("fedora")||l.includes("rhel")||l.includes("suse"),({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).otherwise(({id:l})=>({targetDistro:void 0,familyDistro:void 0,originalDistro:l}));return Ws(`Found distro info:
|
|
162
162
|
${JSON.stringify(u,null,2)}`),u}async function sst(){let e="/etc/os-release";try{let r=await Zj.default.readFile(e,{encoding:"utf-8"});return ist(r)}catch{return{targetDistro:void 0,familyDistro:void 0,originalDistro:void 0}}}function ast(e){let r=/^OpenSSL\s(\d+\.\d+)\.\d+/.exec(e);if(r){let n=`${r[1]}.x`;return Rde(n)}}function Ade(e){let r=/libssl\.so\.(\d)(\.\d)?/.exec(e);if(r){let n=`${r[1]}${r[2]??".0"}.x`;return Rde(n)}}function Rde(e){let r=(()=>{if(Mde(e))return e;let n=e.split(".");return n[1]="0",n.join(".")})();if(ost.includes(r))return r}function cst(e){return xr(e).with({familyDistro:"musl"},()=>(Ws('Trying platform-specific paths for "alpine"'),["/lib","/usr/lib"])).with({familyDistro:"debian"},({archFromUname:r})=>(Ws('Trying platform-specific paths for "debian" (and "ubuntu")'),[`/usr/lib/${r}-linux-gnu`,`/lib/${r}-linux-gnu`])).with({familyDistro:"rhel"},()=>(Ws('Trying platform-specific paths for "rhel"'),["/lib64","/usr/lib64"])).otherwise(({familyDistro:r,arch:n,archFromUname:o})=>(Ws(`Don't know any platform-specific paths for "${r}" on ${n} (${o})`),[]))}async function ust(e){let r='grep -v "libssl.so.0"',n=await Cde(e);if(n){Ws(`Found libssl.so file using platform-specific paths: ${n}`);let a=Ade(n);if(Ws(`The parsed libssl version is: ${a}`),a)return{libssl:a,strategy:"libssl-specific-path"}}Ws('Falling back to "ldconfig" and other generic paths');let o=await ZO(`ldconfig -p | sed "s/.*=>s*//" | sed "s|.*/||" | grep libssl | sort | ${r}`);if(o||(o=await Cde(["/lib64","/usr/lib64","/lib","/usr/lib"])),o){Ws(`Found libssl.so file using "ldconfig" or other generic paths: ${o}`);let a=Ade(o);if(Ws(`The parsed libssl version is: ${a}`),a)return{libssl:a,strategy:"ldconfig"}}let i=await ZO("openssl version -v");if(i){Ws(`Found openssl binary with version: ${i}`);let a=ast(i);if(Ws(`The parsed openssl version is: ${a}`),a)return{libssl:a,strategy:"openssl-binary"}}return Ws("Couldn't find any version of libssl or OpenSSL in the system"),{}}async function Cde(e){for(let r of e){let n=await lst(r);if(n)return n}}async function lst(e){try{return(await Zj.default.readdir(e)).find(n=>n.startsWith("libssl.so.")&&!n.startsWith("libssl.so.0"))}catch(r){if(r.code==="ENOENT")return;throw r}}async function xa(){let{binaryTarget:e}=await Fde();return e}function pst(e){return e.binaryTarget!==void 0}async function Qj(){let{memoized:e,...r}=await Fde();return r}var JO={};async function Fde(){if(pst(JO))return Promise.resolve({...JO,memoized:!0});let e=await Ode(),r=fst(e);return JO={...e,binaryTarget:r},{...JO,memoized:!1}}function fst(e){let{platform:r,arch:n,archFromUname:o,libssl:i,targetDistro:a,familyDistro:c,originalDistro:u}=e;r==="linux"&&!["x64","arm64"].includes(n)&&KO(`Prisma only officially supports Linux on amd64 (x86_64) and arm64 (aarch64) system architectures (detected "${n}" instead). If you are using your own custom Prisma engines, you can ignore this warning, as long as you've compiled the engines for your system architecture "${o}".`);let l="1.1.x";if(r==="linux"&&i===void 0){let f=xr({familyDistro:c}).with({familyDistro:"debian"},()=>"Please manually install OpenSSL via `apt-get update -y && apt-get install -y openssl` and try installing Prisma again. If you're running Prisma on Docker, add this command to your Dockerfile, or switch to an image that already has OpenSSL installed.").otherwise(()=>"Please manually install OpenSSL and try installing Prisma again.");KO(`Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-${l}".
|
|
163
163
|
${f}`)}let p="debian";if(r==="linux"&&a===void 0&&Ws(`Distro is "${u}". Falling back to Prisma engines built for "${p}".`),r==="darwin"&&n==="arm64")return"darwin-arm64";if(r==="darwin")return"darwin";if(r==="win32")return"windows";if(r==="freebsd")return a;if(r==="openbsd")return"openbsd";if(r==="netbsd")return"netbsd";if(r==="linux"&&a==="nixos")return"linux-nixos";if(r==="linux"&&n==="arm64")return`${a==="musl"?"linux-musl-arm64":"linux-arm64"}-openssl-${i||l}`;if(r==="linux"&&n==="arm")return`linux-arm-openssl-${i||l}`;if(r==="linux"&&a==="musl"){let f="linux-musl";return!i||Mde(i)?f:`${f}-openssl-${i}`}return r==="linux"&&a&&i?`${a}-openssl-${i}`:(r!=="linux"&&KO(`Prisma detected unknown OS "${r}" and may not work as expected. Defaulting to "linux".`),i?`${p}-openssl-${i}`:a?`${a}-openssl-${l}`:`${p}-openssl-${l}`)}async function dst(e){try{return await e()}catch{return}}function ZO(e){return dst(async()=>{let r=await nst(e);return Ws(`Command "${e}" successfully returned "${r.stdout}"`),r.stdout})}async function mst(){return typeof YO.default.machine=="function"?YO.default.machine():(await ZO("uname -m"))?.trim()}function Mde(e){return e.startsWith("1.")}var ay={};ic(ay,{beep:()=>Ust,clearScreen:()=>Nst,clearTerminal:()=>$st,cursorBackward:()=>vst,cursorDown:()=>bst,cursorForward:()=>Est,cursorGetPosition:()=>_st,cursorHide:()=>Ast,cursorLeft:()=>$de,cursorMove:()=>xst,cursorNextLine:()=>Tst,cursorPrevLine:()=>Dst,cursorRestorePosition:()=>wst,cursorSavePosition:()=>Sst,cursorShow:()=>Cst,cursorTo:()=>yst,cursorUp:()=>Nde,enterAlternativeScreen:()=>Lst,eraseDown:()=>Rst,eraseEndLine:()=>Ist,eraseLine:()=>Lde,eraseLines:()=>Pst,eraseScreen:()=>Xj,eraseStartLine:()=>Ost,eraseUp:()=>Fst,exitAlternativeScreen:()=>Bst,iTerm:()=>Gst,image:()=>qst,link:()=>jst,scrollDown:()=>kst,scrollUp:()=>Mst});var XO=W(require("node:process"),1);var QO=globalThis.window?.document!==void 0,llr=globalThis.process?.versions?.node!==void 0,plr=globalThis.process?.versions?.bun!==void 0,flr=globalThis.Deno?.version?.deno!==void 0,dlr=globalThis.process?.versions?.electron!==void 0,mlr=globalThis.navigator?.userAgent?.includes("jsdom")===!0,hlr=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,glr=typeof DedicatedWorkerGlobalScope<"u"&&globalThis instanceof DedicatedWorkerGlobalScope,ylr=typeof SharedWorkerGlobalScope<"u"&&globalThis instanceof SharedWorkerGlobalScope,xlr=typeof ServiceWorkerGlobalScope<"u"&&globalThis instanceof ServiceWorkerGlobalScope,fT=globalThis.navigator?.userAgentData?.platform,blr=fT==="macOS"||globalThis.navigator?.platform==="MacIntel"||globalThis.navigator?.userAgent?.includes(" Mac ")===!0||globalThis.process?.platform==="darwin",Elr=fT==="Windows"||globalThis.navigator?.platform==="Win32"||globalThis.process?.platform==="win32",vlr=fT==="Linux"||globalThis.navigator?.platform?.startsWith("Linux")===!0||globalThis.navigator?.userAgent?.includes(" Linux ")===!0||globalThis.process?.platform==="linux",Slr=fT==="iOS"||globalThis.navigator?.platform==="MacIntel"&&globalThis.navigator?.maxTouchPoints>1||/iPad|iPhone|iPod/.test(globalThis.navigator?.platform),wlr=fT==="Android"||globalThis.navigator?.platform==="Android"||globalThis.navigator?.userAgent?.includes(" Android ")===!0||globalThis.process?.platform==="android";var Ur="\x1B[",mT="\x1B]",WE="\x07",dT=";",kde=!QO&&XO.default.env.TERM_PROGRAM==="Apple_Terminal",hst=!QO&&XO.default.platform==="win32",gst=QO?()=>{throw new Error("`process.cwd()` only works in Node.js, not the browser.")}:XO.default.cwd,yst=(e,r)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof r!="number"?Ur+(e+1)+"G":Ur+(r+1)+dT+(e+1)+"H"},xst=(e,r)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let n="";return e<0?n+=Ur+-e+"D":e>0&&(n+=Ur+e+"C"),r<0?n+=Ur+-r+"A":r>0&&(n+=Ur+r+"B"),n},Nde=(e=1)=>Ur+e+"A",bst=(e=1)=>Ur+e+"B",Est=(e=1)=>Ur+e+"C",vst=(e=1)=>Ur+e+"D",$de=Ur+"G",Sst=kde?"\x1B7":Ur+"s",wst=kde?"\x1B8":Ur+"u",_st=Ur+"6n",Tst=Ur+"E",Dst=Ur+"F",Ast=Ur+"?25l",Cst=Ur+"?25h",Pst=e=>{let r="";for(let n=0;n<e;n++)r+=Lde+(n<e-1?Nde():"");return e&&(r+=$de),r},Ist=Ur+"K",Ost=Ur+"1K",Lde=Ur+"2K",Rst=Ur+"J",Fst=Ur+"1J",Xj=Ur+"2J",Mst=Ur+"S",kst=Ur+"T",Nst="\x1Bc",$st=hst?`${Xj}${Ur}0f`:`${Xj}${Ur}3J${Ur}H`,Lst=Ur+"?1049h",Bst=Ur+"?1049l",Ust=WE,jst=(e,r)=>[mT,"8",dT,dT,r,WE,e,mT,"8",dT,dT,WE].join(""),qst=(e,r={})=>{let n=`${mT}1337;File=inline=1`;return r.width&&(n+=`;width=${r.width}`),r.height&&(n+=`;height=${r.height}`),r.preserveAspectRatio===!1&&(n+=";preserveAspectRatio=0"),n+":"+Buffer.from(e).toString("base64")+WE},Gst={setCwd:(e=gst())=>`${mT}50;CurrentDir=${e}${WE}`,annotation(e,r={}){let n=`${mT}1337;`,o=r.x!==void 0,i=r.y!==void 0;if((o||i)&&!(o&&i&&r.length!==void 0))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replaceAll("|",""),n+=r.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",r.length>0?n+=(o?[e,r.length,r.x,r.y]:[r.length,e]).join("|"):n+=e,n+WE}};var eR=W(Wde(),1);function cy(e,r,{target:n="stdout",...o}={}){return eR.default[n]?ay.link(e,r):o.fallback===!1?e:typeof o.fallback=="function"?o.fallback(e,r):`${e} (\u200B${r}\u200B)`}cy.isSupported=eR.default.stdout;cy.stderr=(e,r,n={})=>cy(e,r,{target:"stderr",...n});cy.stderr.isSupported=eR.default.stderr;var Che=require("node:buffer"),Phe=W(require("node:path"),1),gR=W(require("node:child_process"),1),xT=W(require("node:process"),1),Ihe=W(rR(),1);function m9(e){let r=typeof e=="string"?`
|
|
164
164
|
`:10,n=typeof e=="string"?"\r":13;return e[e.length-1]===r&&(e=e.slice(0,-1)),e[e.length-1]===n&&(e=e.slice(0,-1)),e}var hT=W(require("node:process"),1),JE=W(require("node:path"),1),h9=require("node:url");function nR(e={}){let{env:r=process.env,platform:n=process.platform}=e;return n!=="win32"?"PATH":Object.keys(r).reverse().find(o=>o.toUpperCase()==="PATH")||"Path"}var bat=({cwd:e=hT.default.cwd(),path:r=hT.default.env[nR()],preferLocal:n=!0,execPath:o=hT.default.execPath,addExecPath:i=!0}={})=>{let a=e instanceof URL?(0,h9.fileURLToPath)(e):e,c=JE.default.resolve(a),u=[];return n&&Eat(u,c),i&&vat(u,o,c),[...u,r].join(JE.default.delimiter)},Eat=(e,r)=>{let n;for(;n!==r;)e.push(JE.default.join(r,"node_modules/.bin")),n=r,r=JE.default.resolve(r,"..")},vat=(e,r,n)=>{let o=r instanceof URL?(0,h9.fileURLToPath)(r):r;e.push(JE.default.resolve(n,o,".."))},Rme=({env:e=hT.default.env,...r}={})=>{e={...e};let n=nR({env:e});return r.path=e[n],e[n]=bat(r),e};var Sat=(e,r,n,o)=>{if(n==="length"||n==="prototype"||n==="arguments"||n==="caller")return;let i=Object.getOwnPropertyDescriptor(e,n),a=Object.getOwnPropertyDescriptor(r,n);!wat(i,a)&&o||Object.defineProperty(e,n,a)},wat=function(e,r){return e===void 0||e.configurable||e.writable===r.writable&&e.enumerable===r.enumerable&&e.configurable===r.configurable&&(e.writable||e.value===r.value)},_at=(e,r)=>{let n=Object.getPrototypeOf(r);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},Tat=(e,r)=>`/* Wrapped ${e}*/
|
|
@@ -1070,7 +1070,7 @@ ${i.style.help("(Use arrow keys)")}`);let O=fx({items:f,active:_,renderItem({ite
|
|
|
1070
1070
|
${i.style.description(I.description)}`:"";return[[E,A,j].filter(Boolean).join(" "),`${k??O}${R}${G}`]});var EY=W(lg(),1);var KNe=W(UA(),1),mMt={icon:{cursor:xu.pointer},style:{disabled:e=>EY.default.dim(`- ${e}`),description:e=>EY.default.cyan(e)},helpMode:"auto"};function TS(e){return!Ir.isSeparator(e)&&!e.disabled}function hMt(e){return e.map(r=>{if(Ir.isSeparator(r))return r;if(typeof r=="string")return{value:r,name:r,short:r,disabled:!1};let n=r.name??String(r.value);return{value:r.value,name:n,description:r.description,short:r.short??n,disabled:r.disabled??!1}})}var hg=No((e,r)=>{let{loop:n=!0,pageSize:o=7}=e,i=Eu(!0),a=xo(mMt,e.theme),[c,u]=_t("idle"),l=Mo({status:c,theme:a}),p=Eu(),f=Dc(()=>hMt(e.choices),[e.choices]),g=Dc(()=>{let O=f.findIndex(TS),k=f.findLastIndex(TS);if(O===-1)throw new ug("[select prompt] No selectable choices. All choices are disabled.");return{first:O,last:k}},[f]),x=Dc(()=>"default"in e?f.findIndex(O=>TS(O)&&O.value===e.default):-1,[e.default,f]),[b,E]=_t(x===-1?g.first:x),S=f[b];ko((O,k)=>{if(clearTimeout(p.current),ei(O))u("done"),r(S.value);else if(cg(O)||uS(O)){if(k.clearLine(0),n||cg(O)&&b!==g.first||uS(O)&&b!==g.last){let j=cg(O)?-1:1,G=b;do G=(G+j+f.length)%f.length;while(!TS(f[G]));E(G)}}else if(UN(O)){k.clearLine(0);let j=Number(O.name)-1,G=f[j];G!=null&&TS(G)&&E(j)}else if(lS(O))k.clearLine(0);else{let j=k.line.toLowerCase(),G=f.findIndex(L=>Ir.isSeparator(L)||!TS(L)?!1:L.name.toLowerCase().startsWith(j));G!==-1&&E(G),p.current=setTimeout(()=>{k.clearLine(0)},700)}}),Il(()=>()=>{clearTimeout(p.current)},[]);let _=a.style.message(e.message,c),D="",I="";(a.helpMode==="always"||a.helpMode==="auto"&&i.current)&&(i.current=!1,f.length>o?I=`
|
|
1071
1071
|
${a.style.help("(Use arrow keys to reveal more choices)")}`:D=a.style.help("(Use arrow keys)"));let A=fx({items:f,active:b,renderItem({item:O,isActive:k}){if(Ir.isSeparator(O))return` ${O.separator}`;if(O.disabled){let L=typeof O.disabled=="string"?O.disabled:"(disabled)";return a.style.disabled(`${O.name} ${L}`)}let j=k?a.style.highlight:L=>L,G=k?a.icon.cursor:" ";return j(`${G} ${O.name}`)},pageSize:o,loop:n});if(c==="done")return`${l} ${_} ${a.style.answer(S.short)}`;let R=S.description?`
|
|
1072
1072
|
${a.style.description(S.description)}`:"";return`${[l,_,D].filter(Boolean).join(" ")}
|
|
1073
|
-
${A}${I}${R}${KNe.default.cursorHide}`});var AQe=require("@prisma/config");var CQe=W(zy());var X$e=require("crypto"),e6e=W(y$()),ja=W(require("fs/promises")),MZ=W(Lh());var r$e=W(require("node:process"),1);var QNe=W(require("node:process"),1),XNe=W(require("node:fs/promises"),1),e$e=require("node:url");var Ex=W(require("node:path"),1),ZNe=e=>e instanceof URL?(0,e$e.fileURLToPath)(e):e;async function t$e(e,{cwd:r=QNe.default.cwd(),type:n="file",stopAt:o}={}){let i=Ex.default.resolve(ZNe(r)??""),{root:a}=Ex.default.parse(i);o=Ex.default.resolve(i,ZNe(o??a));let c=Ex.default.isAbsolute(e);for(;i;){let u=c?e:Ex.default.join(i,e);try{let l=await XNe.default.stat(u);if(n==="file"&&l.isFile()||n==="directory"&&l.isDirectory())return u}catch{}if(i===o||i===a)break;i=Ex.default.dirname(i)}}async function AS({cwd:e=r$e.default.cwd()}={}){return t$e("package.json",{cwd:e})}var gi=W(require("path"));var CS={name:"@prisma/client",version:"7.9.0-dev.
|
|
1073
|
+
${A}${I}${R}${KNe.default.cursorHide}`});var AQe=require("@prisma/config");var CQe=W(zy());var X$e=require("crypto"),e6e=W(y$()),ja=W(require("fs/promises")),MZ=W(Lh());var r$e=W(require("node:process"),1);var QNe=W(require("node:process"),1),XNe=W(require("node:fs/promises"),1),e$e=require("node:url");var Ex=W(require("node:path"),1),ZNe=e=>e instanceof URL?(0,e$e.fileURLToPath)(e):e;async function t$e(e,{cwd:r=QNe.default.cwd(),type:n="file",stopAt:o}={}){let i=Ex.default.resolve(ZNe(r)??""),{root:a}=Ex.default.parse(i);o=Ex.default.resolve(i,ZNe(o??a));let c=Ex.default.isAbsolute(e);for(;i;){let u=c?e:Ex.default.join(i,e);try{let l=await XNe.default.stat(u);if(n==="file"&&l.isFile()||n==="directory"&&l.isDirectory())return u}catch{}if(i===o||i===a)break;i=Ex.default.dirname(i)}}async function AS({cwd:e=r$e.default.cwd()}={}){return t$e("package.json",{cwd:e})}var gi=W(require("path"));var CS={name:"@prisma/client",version:"7.9.0-dev.25",description:"Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",keywords:["ORM","Prisma","prisma2","Prisma Client","client","query","query-builder","database","db","JavaScript","JS","TypeScript","TS","SQL","SQLite","pg","Postgres","PostgreSQL","CockroachDB","MySQL","MariaDB","MSSQL","SQL Server","SQLServer","MongoDB"],main:"default.js",types:"default.d.ts",browser:"index-browser.js",exports:{"./package.json":"./package.json",".":{require:{types:"./default.d.ts",node:"./default.js","edge-light":"./default.js",workerd:"./default.js",worker:"./default.js",browser:"./index-browser.js"},import:{types:"./default.d.ts",node:"./default.js","edge-light":"./default.js",workerd:"./default.js",worker:"./default.js",browser:"./index-browser.js"},default:"./default.js"},"./extension":{types:"./extension.d.ts",require:"./extension.js",import:"./extension.js",default:"./extension.js"},"./index-browser":{types:"./index.d.ts",require:"./index-browser.js",import:"./index-browser.js",default:"./index-browser.js"},"./index":{types:"./index.d.ts",require:"./index.js",import:"./index.js",default:"./index.js"},"./edge":{types:"./edge.d.ts",require:"./edge.js",import:"./edge.js",default:"./edge.js"},"./runtime/client":{types:"./runtime/client.d.ts",node:{require:"./runtime/client.js",default:"./runtime/client.js"},require:"./runtime/client.js",import:"./runtime/client.mjs",default:"./runtime/client.mjs"},"./runtime/wasm-compiler-edge":{types:"./runtime/wasm-compiler-edge.d.ts",require:"./runtime/wasm-compiler-edge.js",import:"./runtime/wasm-compiler-edge.mjs",default:"./runtime/wasm-compiler-edge.mjs"},"./runtime/index-browser":{types:"./runtime/index-browser.d.ts",require:"./runtime/index-browser.js",import:"./runtime/index-browser.mjs",default:"./runtime/index-browser.mjs"},"./sql":{require:{types:"./sql.d.ts",node:"./sql.js",default:"./sql.js"},import:{types:"./sql.d.ts",node:"./sql.mjs",default:"./sql.mjs"},default:"./sql.js"},"./*":"./*"},license:"Apache-2.0",engines:{node:"^20.19 || ^22.12 || >=24.0"},homepage:"https://www.prisma.io",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/client"},author:"Tim Suchanek <suchanek@prisma.io>",bugs:"https://github.com/prisma/prisma/issues",scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",test:"dotenv -e ../../.db.env -- jest --silent","test:e2e":"dotenv -e ../../.db.env -- tsx tests/e2e/_utils/run.ts","test:functional":"dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts","test:functional:client":"pnpm run test:functional --client-runtime client","test:functional:code":"dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts --no-types","test:functional:types":"dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts --types-only","test-notypes":"dotenv -e ../../.db.env -- jest --testPathIgnorePatterns src/__tests__/types/types.test.ts",prepublishOnly:"pnpm run build","new-test":"tsx ./helpers/new-test/new-test.ts"},files:["README.md","runtime","scripts","edge.js","edge.d.ts","index.js","index.d.ts","default.js","default.d.ts","index-browser.js","extension.js","extension.d.ts","sql.d.ts","sql.js","sql.mjs"],devDependencies:{"@cloudflare/workers-types":"^4.20251014.0","@codspeed/benchmark.js-plugin":"4.0.0","@faker-js/faker":"9.6.0","@fast-check/jest":"2.0.3","@hono/node-server":"^1.19.14","@inquirer/prompts":"7.3.3","@jest/create-cache-key-function":"29.7.0","@jest/globals":"29.7.0","@jest/test-sequencer":"29.7.0","@libsql/client":"0.8.1","@neondatabase/serverless":"0.10.2","@opentelemetry/api":"1.9.0","@opentelemetry/context-async-hooks":"2.1.0","@opentelemetry/instrumentation":"0.206.0","@opentelemetry/resources":"2.1.0","@opentelemetry/sdk-trace-base":"2.1.0","@opentelemetry/semantic-conventions":"1.37.0","@planetscale/database":"1.19.0","@prisma/adapter-better-sqlite3":"workspace:*","@prisma/adapter-d1":"workspace:*","@prisma/adapter-libsql":"workspace:*","@prisma/adapter-mariadb":"workspace:*","@prisma/adapter-mssql":"workspace:*","@prisma/adapter-neon":"workspace:*","@prisma/adapter-pg":"workspace:*","@prisma/adapter-planetscale":"workspace:*","@prisma/client-common":"workspace:*","@prisma/client-engine-runtime":"workspace:*","@prisma/client-generator-js":"workspace:*","@prisma/client-generator-ts":"workspace:*","@prisma/config":"workspace:*","@prisma/debug":"workspace:*","@prisma/dmmf":"workspace:*","@prisma/driver-adapter-utils":"workspace:*","@prisma/engines":"workspace:*","@prisma/engines-version":"7.9.0-1.e922089b7d7502aff4249d5da3420f6fa55fc6ad","@prisma/fetch-engine":"workspace:*","@prisma/generator":"workspace:*","@prisma/generator-helper":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/instrumentation":"workspace:*","@prisma/instrumentation-contract":"workspace:*","@prisma/internals":"workspace:*","@prisma/json-protocol":"workspace:*","@prisma/migrate":"workspace:*","@prisma/param-graph":"workspace:*","@prisma/param-graph-builder":"workspace:*","@prisma/query-compiler-wasm":"7.9.0-1.e922089b7d7502aff4249d5da3420f6fa55fc6ad","@prisma/query-plan-executor":"workspace:*","@prisma/sqlcommenter":"workspace:*","@prisma/sqlcommenter-trace-context":"workspace:*","@prisma/ts-builders":"workspace:*","@snaplet/copycat":"6.0.0","@swc-node/register":"1.10.9","@swc/core":"1.11.5","@swc/jest":"0.2.37","@timsuchanek/copy":"1.4.5","@types/debug":"4.1.12","@types/fs-extra":"11.0.4","@types/jest":"29.5.14","@types/js-levenshtein":"1.1.3","@types/mssql":"9.1.8","@types/node":"~20.19.24","@types/pg":"8.11.11",arg:"5.0.2",benchmark:"2.1.4","cookie-es":"2.0.0",execa:"8.0.1","expect-type":"1.2.2","fs-extra":"11.3.0","get-stream":"6.0.1",globby:"11.1.0","indent-string":"4.0.0",jest:"29.7.0","jest-extended":"4.0.2","jest-junit":"16.0.0","jest-serializer-ansi-escapes":"4.0.0","jest-snapshot":"29.7.0","js-levenshtein":"1.1.6",kleur:"4.1.5",klona:"2.0.6",mariadb:"3.4.5",memfs:"4.17.2",mssql:"11.0.1","new-github-issue-url":"0.2.1","p-retry":"4.6.2",pg:"8.14.1",resolve:"1.22.10","simple-statistics":"7.8.8","sort-keys":"5.1.0","source-map-support":"0.5.21","stacktrace-parser":"0.1.11","strip-ansi":"7.1.0","strip-indent":"4.0.0",tempy:"3.0.0","ts-pattern":"5.6.2",tsd:"0.31.2",typescript:"5.4.5",undici:"7.4.0",zx:"8.4.1"},dependencies:{"@prisma/client-runtime-utils":"workspace:*"},peerDependencies:{prisma:"*",typescript:">=5.4.0"},peerDependenciesMeta:{prisma:{optional:!0},typescript:{optional:!0}},sideEffects:!1};var PS=class{_map=new Map;get(r){return this._map.get(r)?.value}set(r,n){this._map.set(r,{value:n})}getOrCreate(r,n){let o=this._map.get(r);if(o)return o.value;let i=n();return this.set(r,i),i}};function dt(e){return e.length===0?e:e[0].toUpperCase()+e.slice(1)}function et(e){return e.substring(0,1).toLowerCase()+e.substring(1)}function ti(e,r){let n={};for(let o of e){let i=o[r];n[i]=o}return n}var x$=["TransactionIsolationLevel"],b$=["JsonNullValueInput","NullableJsonNullValueInput","JsonNullValueFilter"];function E$(e){return{models:wY(e.models),enums:wY(e.enums),types:wY(e.types)}}function v$({models:e}){let r={};for(let n of Object.keys(e)){r[n]={fields:[],dbName:e[n].dbName};for(let{name:o,kind:i,type:a,relationName:c,dbName:u}of e[n].fields)r[n].fields.push({name:o,kind:i,type:a,relationName:c,dbName:u})}return{models:r,enums:{},types:{}}}function wY(e){let r={};for(let{name:n,...o}of e)r[n]=o;return r}function S$(e,r){let n={};for(let o of e){let i=r(o);n[i]||(n[i]=o)}return Object.values(n)}var _Y=W(ws());var _u=class{constructor(r,n){this.type=r;this.useNamespace=n}isObjectEnum(){return this.useNamespace&&b$.includes(this.type.name)}isStrictEnum(){return this.useNamespace&&x$.includes(this.type.name)}toJS(){let{type:r}=this,n=`{
|
|
1074
1074
|
${(0,_Y.default)(r.values.map(i=>`${i}: ${this.getValueJS(i)}`).join(`,
|
|
1075
1075
|
`),2)}
|
|
1076
1076
|
}`,o=this.isStrictEnum()?`makeStrictEnum(${n})`:n;return this.useNamespace?`exports.Prisma.${r.name} = ${o};`:`exports.${r.name} = exports.$Enums.${r.name} = ${o};`}getValueJS(r){return this.isObjectEnum()?`Prisma.${r}`:`'${r}'`}toTS(){let{type:r}=this;return`export const ${r.name}: {
|
|
@@ -2534,7 +2534,7 @@ Object.assign(exports, Prisma)
|
|
|
2534
2534
|
Rename the following items:`;for(let G of O)j+=`
|
|
2535
2535
|
- `+G.message;throw j+=`
|
|
2536
2536
|
To learn more about how to rename models, check out https://pris.ly/d/naming-models`,new l6(j)}if(await(0,MZ.ensureDir)(D),await r6e(D,A),l||o.isCustomOutput===!0){let j=gi.default.join(D,"runtime");await(0,MZ.ensureDir)(j),await gkt({from:f,to:j,sourceMaps:p,runtimeName:"client"})}let k=gi.default.join(D,"schema.prisma");if(await ja.default.writeFile(k,r,{encoding:"utf-8"}),pkt(R)){let j=R==="postgres"?"postgresql":R,G=`query_compiler_${S}_bg`,L=gi.default.join(f,`${G}.${j}.wasm-base64.js`),H=require(L).wasm;await ja.default.writeFile(gi.default.join(D,`${G}.wasm`),Buffer.from(H,"base64")),await ja.default.copyFile(gi.default.join(f,`${G}.${j}.js`),gi.default.join(D,`${G}.js`)),await ja.default.copyFile(L,gi.default.join(D,`${G}.wasm-base64.js`))}try{let j=(0,e6e.default)("prisma").cache,G=gi.default.join(j,"last-generate");await ja.default.mkdir(j,{recursive:!0}),await ja.default.writeFile(G,Date.now().toString())}catch{}}function r6e(e,r){return Promise.all(Object.entries(r).map(async([n,o])=>{let i=gi.default.join(e,n);await ja.default.rm(i,{recursive:!0,force:!0}),typeof o=="string"?await ja.default.writeFile(i,o):(await ja.default.mkdir(i),await r6e(i,o))}))}function pkt(e){return e==="postgresql"||e==="postgres"||e==="cockroachdb"||e==="mysql"||e==="sqlite"||e==="sqlserver"}function fkt(e){let r=[],n={models:["PrismaClient","Prisma","async","await","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","using","typeof","var","void","while","with","yield"],fields:["AND","OR","NOT"],dynamic:[]};if(e.datamodel.enums)for(let o of e.datamodel.enums)(n.models.includes(o.name)||n.fields.includes(o.name))&&r.push(Error(`"enum ${o.name}"`));if(e.datamodel.models)for(let o of e.datamodel.models)(n.models.includes(o.name)||n.fields.includes(o.name))&&r.push(Error(`"model ${o.name}"`));return r.length>0?r:null}async function dkt({runtimeBase:e,generator:r,outputDir:n,datamodel:o,schemaPath:i,testMode:a}){let c=r.isCustomOutput===!0,u=gi.default.normalize(n),l=c?"./runtime":"@prisma/client/runtime",p=c?u:lkt(u);a&&e&&(p=n,l=Jp(e)),c&&await mkt(p,o,i);let f=await AS({cwd:gi.default.dirname(p)}),g=f?gi.default.dirname(f):process.cwd();return{runtimeBase:l,outputDir:p,projectRoot:g}}async function mkt(e,r,n){let o;try{o=await ja.default.readFile(gi.default.join(e,"package.json"),"utf8")}catch(a){if(a.code==="ENOENT")return;throw a}let{name:i}=JSON.parse(o);if(i===CS.name){let a=[`Generating client into ${U(e)} is not allowed.`];a.push("This package is used by `prisma generate` and overwriting its content is dangerous."),a.push(""),a.push("Suggestion:");let c=hkt(r);if(c&&c.content.includes(CS.name)){let l=c.content;a.push(`In ${U(n)} replace:`),a.push(""),a.push(`${te(c.lineNumber)} ${FZ(l,de(CS.name))}`),a.push("with"),a.push(`${te(c.lineNumber)} ${FZ(l,fe(".prisma/client"))}`)}else a.push(`Generate client into ${U(FZ(e,fe(".prisma/client")))} instead`);throw a.push(""),a.push("You won't need to change your imports."),a.push("Imports from `@prisma/client` will be automatically forwarded to `.prisma/client`"),new Error(a.join(`
|
|
2537
|
-
`))}}function FZ(e,r){return e.replace(CS.name,r)}function hkt(e){let r=e.split(/\r?\n/);for(let[n,o]of r.entries())if(/output\s*=/.test(o))return{lineNumber:n+1,content:o.trim()};return null}async function gkt({from:e,to:r,runtimeName:n,sourceMaps:o}){let i=["index-browser.js","index-browser.d.ts","wasm-compiler-edge.js"];i.push(`${n}.js`),i.push(`${n}.d.ts`),o&&i.push(...i.filter(a=>a.endsWith(".js")).map(a=>`${a}.map`)),await Promise.all(i.map(async a=>{let c=gi.default.join(e,a),u=gi.default.join(r,a);if(a.endsWith(".js")){let l=await ja.default.readFile(c,"utf-8");await ja.default.writeFile(u,RZ(l))}else await ja.default.copyFile(c,u)}))}function ykt(e){let r=(0,X$e.createHash)("sha256");return r.write(e),`${xkt}${r.digest().toString("hex")}`}var xkt="prisma-client-";var UQ=W(require("node:path")),c4e=W(kZ());var NZ="7.9.0-dev.
|
|
2537
|
+
`))}}function FZ(e,r){return e.replace(CS.name,r)}function hkt(e){let r=e.split(/\r?\n/);for(let[n,o]of r.entries())if(/output\s*=/.test(o))return{lineNumber:n+1,content:o.trim()};return null}async function gkt({from:e,to:r,runtimeName:n,sourceMaps:o}){let i=["index-browser.js","index-browser.d.ts","wasm-compiler-edge.js"];i.push(`${n}.js`),i.push(`${n}.d.ts`),o&&i.push(...i.filter(a=>a.endsWith(".js")).map(a=>`${a}.map`)),await Promise.all(i.map(async a=>{let c=gi.default.join(e,a),u=gi.default.join(r,a);if(a.endsWith(".js")){let l=await ja.default.readFile(c,"utf-8");await ja.default.writeFile(u,RZ(l))}else await ja.default.copyFile(c,u)}))}function ykt(e){let r=(0,X$e.createHash)("sha256");return r.write(e),`${xkt}${r.digest().toString("hex")}`}var xkt="prisma-client-";var UQ=W(require("node:path")),c4e=W(kZ());var NZ="7.9.0-dev.25";var s4e=W(require("node:fs/promises")),LQ=W(require("node:path"));var $l=W(require("node:fs"),1),ri=W(require("node:path"),1),yi=W(require("node:process"),1),rLe=require("node:buffer"),cC=W(require("node:child_process"),1),nLe=W(require("child_process"),1),fC=W(require("path"),1),KS=W(require("fs"),1),dC=W(require("node:url"),1),JS=W(require("node:os"),1),oLe=require("node:timers/promises"),iLe=W(require("stream"),1),sLe=require("node:util"),aLe=W(require("os"),1),cLe=W(require("tty"),1),uLe=W(require("readline"),1),lLe=W(require("events"),1),DQ=W(require("fs/promises"),1);function o6e(e){return r=>r.length>1?`${e} run ${r[0]} -- ${r.slice(1).join(" ")}`:`${e} run ${r[0]}`}var i6e={agent:"yarn {0}",run:"yarn run {0}",install:"yarn install {0}",frozen:"yarn install --frozen-lockfile",global:"yarn global add {0}",add:"yarn add {0}",upgrade:"yarn upgrade {0}","upgrade-interactive":"yarn upgrade-interactive {0}",execute:"npx {0}",uninstall:"yarn remove {0}",global_uninstall:"yarn global remove {0}"},s6e={agent:"pnpm {0}",run:"pnpm run {0}",install:"pnpm i {0}",frozen:"pnpm i --frozen-lockfile",global:"pnpm add -g {0}",add:"pnpm add {0}",upgrade:"pnpm update {0}","upgrade-interactive":"pnpm update -i {0}",execute:"pnpm dlx {0}",uninstall:"pnpm remove {0}",global_uninstall:"pnpm remove --global {0}"},vkt={agent:"bun {0}",run:"bun run {0}",install:"bun install {0}",frozen:"bun install --no-save",global:"bun add -g {0}",add:"bun add {0}",upgrade:"bun update {0}","upgrade-interactive":"bun update {0}",execute:"bunx {0}",uninstall:"bun remove {0}",global_uninstall:"bun remove -g {0}"},uC={npm:{agent:"npm {0}",run:o6e("npm"),install:"npm i {0}",frozen:"npm ci",global:"npm i -g {0}",add:"npm i {0}",upgrade:"npm update {0}","upgrade-interactive":null,execute:"npx {0}",uninstall:"npm uninstall {0}",global_uninstall:"npm uninstall -g {0}"},yarn:i6e,"yarn@berry":{...i6e,frozen:"yarn install --immutable",upgrade:"yarn up {0}","upgrade-interactive":"yarn up -i {0}",execute:"yarn dlx {0}",global:"npm i -g {0}",global_uninstall:"npm uninstall -g {0}"},pnpm:s6e,"pnpm@6":{...s6e,run:o6e("pnpm")},bun:vkt},Skt=Object.keys(uC),eQ={"bun.lockb":"bun","pnpm-lock.yaml":"pnpm","yarn.lock":"yarn","package-lock.json":"npm","npm-shrinkwrap.json":"npm"},pLe={bun:"https://bun.sh",pnpm:"https://pnpm.io/installation","pnpm@6":"https://pnpm.io/6.x/installation",yarn:"https://classic.yarnpkg.com/en/docs/install","yarn@berry":"https://yarnpkg.com/getting-started/install",npm:"https://docs.npmjs.com/cli/v8/configuring-npm/install"},Vd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var{hasOwnProperty:B$r}=Object.prototype;var YS={exports:{}},$Z,a6e;function wkt(){if(a6e)return $Z;a6e=1,$Z=o,o.sync=i;var e=KS.default;function r(a,c){var u=c.pathExt!==void 0?c.pathExt:process.env.PATHEXT;if(!u||(u=u.split(";"),u.indexOf("")!==-1))return!0;for(var l=0;l<u.length;l++){var p=u[l].toLowerCase();if(p&&a.substr(-p.length).toLowerCase()===p)return!0}return!1}function n(a,c,u){return!a.isSymbolicLink()&&!a.isFile()?!1:r(c,u)}function o(a,c,u){e.stat(a,function(l,p){u(l,l?!1:n(p,a,c))})}function i(a,c){return n(e.statSync(a),a,c)}return $Z}var LZ,c6e;function _kt(){if(c6e)return LZ;c6e=1,LZ=r,r.sync=n;var e=KS.default;function r(a,c,u){e.stat(a,function(l,p){u(l,l?!1:o(p,c))})}function n(a,c){return o(e.statSync(a),c)}function o(a,c){return a.isFile()&&i(a,c)}function i(a,c){var u=a.mode,l=a.uid,p=a.gid,f=c.uid!==void 0?c.uid:process.getuid&&process.getuid(),g=c.gid!==void 0?c.gid:process.getgid&&process.getgid(),x=parseInt("100",8),b=parseInt("010",8),E=parseInt("001",8),S=x|b,_=u&E||u&b&&p===g||u&x&&l===f||u&S&&f===0;return _}return LZ}var S6;process.platform==="win32"||Vd.TESTING_WINDOWS?S6=wkt():S6=_kt();var Tkt=AQ;AQ.sync=Dkt;function AQ(e,r,n){if(typeof r=="function"&&(n=r,r={}),!n){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(o,i){AQ(e,r||{},function(a,c){a?i(a):o(c)})})}S6(e,r||{},function(o,i){o&&(o.code==="EACCES"||r&&r.ignoreErrors)&&(o=null,i=!1),n(o,i)})}function Dkt(e,r){try{return S6.sync(e,r||{})}catch(n){if(r&&r.ignoreErrors||n.code==="EACCES")return!1;throw n}}var qS=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",fLe=fC.default,Akt=qS?";":":",dLe=Tkt,mLe=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),hLe=(e,r)=>{let n=r.colon||Akt,o=e.match(/\//)||qS&&e.match(/\\/)?[""]:[...qS?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(n)],i=qS?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=qS?i.split(n):[""];return qS&&e.indexOf(".")!==-1&&a[0]!==""&&a.unshift(""),{pathEnv:o,pathExt:a,pathExtExe:i}},gLe=(e,r,n)=>{typeof r=="function"&&(n=r,r={}),r||(r={});let{pathEnv:o,pathExt:i,pathExtExe:a}=hLe(e,r),c=[],u=p=>new Promise((f,g)=>{if(p===o.length)return r.all&&c.length?f(c):g(mLe(e));let x=o[p],b=/^".*"$/.test(x)?x.slice(1,-1):x,E=fLe.join(b,e),S=!b&&/^\.[\\\/]/.test(e)?e.slice(0,2)+E:E;f(l(S,p,0))}),l=(p,f,g)=>new Promise((x,b)=>{if(g===i.length)return x(u(f+1));let E=i[g];dLe(p+E,{pathExt:a},(S,_)=>{if(!S&&_)if(r.all)c.push(p+E);else return x(p+E);return x(l(p,f,g+1))})});return n?u(0).then(p=>n(null,p),n):u(0)},Ckt=(e,r)=>{r=r||{};let{pathEnv:n,pathExt:o,pathExtExe:i}=hLe(e,r),a=[];for(let c=0;c<n.length;c++){let u=n[c],l=/^".*"$/.test(u)?u.slice(1,-1):u,p=fLe.join(l,e),f=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;for(let g=0;g<o.length;g++){let x=f+o[g];try{if(dLe.sync(x,{pathExt:i}))if(r.all)a.push(x);else return x}catch{}}}if(r.all&&a.length)return a;if(r.nothrow)return null;throw mLe(e)},Pkt=gLe;gLe.sync=Ckt;var CQ={exports:{}},yLe=(e={})=>{let r=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(r).reverse().find(o=>o.toUpperCase()==="PATH")||"Path"};CQ.exports=yLe;CQ.exports.default=yLe;var Ikt=CQ.exports,u6e=fC.default,Okt=Pkt,Rkt=Ikt;function l6e(e,r){let n=e.options.env||process.env,o=process.cwd(),i=e.options.cwd!=null,a=i&&process.chdir!==void 0&&!process.chdir.disabled;if(a)try{process.chdir(e.options.cwd)}catch{}let c;try{c=Okt.sync(e.command,{path:n[Rkt({env:n})],pathExt:r?u6e.delimiter:void 0})}catch{}finally{a&&process.chdir(o)}return c&&(c=u6e.resolve(i?e.options.cwd:"",c)),c}function Fkt(e){return l6e(e)||l6e(e,!0)}var Mkt=Fkt,PQ={},tQ=/([()\][%!^"`<>&|;, *?])/g;function kkt(e){return e=e.replace(tQ,"^$1"),e}function Nkt(e,r){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(tQ,"^$1"),r&&(e=e.replace(tQ,"^$1")),e}PQ.command=kkt;PQ.argument=Nkt;var $kt=/^#!(.*)/,Lkt=$kt,Bkt=(e="")=>{let r=e.match(Lkt);if(!r)return null;let[n,o]=r[0].replace(/#! ?/,"").split(" "),i=n.split("/").pop();return i==="env"?o:o?`${i} ${o}`:i},BZ=KS.default,Ukt=Bkt;function jkt(e){let n=Buffer.alloc(150),o;try{o=BZ.openSync(e,"r"),BZ.readSync(o,n,0,150,0),BZ.closeSync(o)}catch{}return Ukt(n.toString())}var qkt=jkt,Gkt=fC.default,p6e=Mkt,f6e=PQ,Hkt=qkt,Wkt=process.platform==="win32",Vkt=/\.(?:com|exe)$/i,zkt=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Kkt(e){e.file=p6e(e);let r=e.file&&Hkt(e.file);return r?(e.args.unshift(e.file),e.command=r,p6e(e)):e.file}function Jkt(e){if(!Wkt)return e;let r=Kkt(e),n=!Vkt.test(r);if(e.options.forceShell||n){let o=zkt.test(r);e.command=Gkt.normalize(e.command),e.command=f6e.command(e.command),e.args=e.args.map(a=>f6e.argument(a,o));let i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function Ykt(e,r,n){r&&!Array.isArray(r)&&(n=r,r=null),r=r?r.slice(0):[],n=Object.assign({},n);let o={command:e,args:r,options:n,file:void 0,original:{command:e,args:r}};return n.shell?o:Jkt(o)}var Zkt=Ykt,IQ=process.platform==="win32";function OQ(e,r){return Object.assign(new Error(`${r} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${r} ${e.command}`,path:e.command,spawnargs:e.args})}function Qkt(e,r){if(!IQ)return;let n=e.emit;e.emit=function(o,i){if(o==="exit"){let a=xLe(i,r);if(a)return n.call(e,"error",a)}return n.apply(e,arguments)}}function xLe(e,r){return IQ&&e===1&&!r.file?OQ(r.original,"spawn"):null}function Xkt(e,r){return IQ&&e===1&&!r.file?OQ(r.original,"spawnSync"):null}var eNt={hookChildProcess:Qkt,verifyENOENT:xLe,verifyENOENTSync:Xkt,notFoundError:OQ},bLe=nLe.default,RQ=Zkt,FQ=eNt;function ELe(e,r,n){let o=RQ(e,r,n),i=bLe.spawn(o.command,o.args,o.options);return FQ.hookChildProcess(i,o),i}function tNt(e,r,n){let o=RQ(e,r,n),i=bLe.spawnSync(o.command,o.args,o.options);return i.error=i.error||FQ.verifyENOENTSync(i.status,o),i}YS.exports=ELe;YS.exports.spawn=ELe;YS.exports.sync=tNt;YS.exports._parse=RQ;YS.exports._enoent=FQ;var rNt=YS.exports,nNt=mC(rNt);function oNt(e){let r=typeof e=="string"?`
|
|
2538
2538
|
`:10,n=typeof e=="string"?"\r":13;return e[e.length-1]===r&&(e=e.slice(0,-1)),e[e.length-1]===n&&(e=e.slice(0,-1)),e}function vLe(e={}){let{env:r=process.env,platform:n=process.platform}=e;return n!=="win32"?"PATH":Object.keys(r).reverse().find(o=>o.toUpperCase()==="PATH")||"Path"}function iNt(e={}){let{cwd:r=yi.default.cwd(),path:n=yi.default.env[vLe()],execPath:o=yi.default.execPath}=e,i,a=r instanceof URL?dC.default.fileURLToPath(r):r,c=ri.default.resolve(a),u=[];for(;i!==c;)u.push(ri.default.join(c,"node_modules/.bin")),i=c,c=ri.default.resolve(c,"..");return u.push(ri.default.resolve(a,o,"..")),[...u,n].join(ri.default.delimiter)}function sNt({env:e=yi.default.env,...r}={}){e={...e};let n=vLe({env:e});return r.path=e[n],e[n]=iNt(r),e}var aNt=(e,r,n,o)=>{if(n==="length"||n==="prototype"||n==="arguments"||n==="caller")return;let i=Object.getOwnPropertyDescriptor(e,n),a=Object.getOwnPropertyDescriptor(r,n);!cNt(i,a)&&o||Object.defineProperty(e,n,a)},cNt=function(e,r){return e===void 0||e.configurable||e.writable===r.writable&&e.enumerable===r.enumerable&&e.configurable===r.configurable&&(e.writable||e.value===r.value)},uNt=(e,r)=>{let n=Object.getPrototypeOf(r);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},lNt=(e,r)=>`/* Wrapped ${e}*/
|
|
2539
2539
|
${r}`,pNt=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),fNt=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),dNt=(e,r,n)=>{let o=n===""?"":`with ${n.trim()}() `,i=lNt.bind(null,o,r.toString());Object.defineProperty(i,"name",fNt),Object.defineProperty(e,"toString",{...pNt,value:i})};function mNt(e,r,{ignoreNonConfigurable:n=!1}={}){let{name:o}=e;for(let i of Reflect.ownKeys(r))aNt(e,r,i,n);return uNt(e,r),dNt(e,r,o),e}var w6=new WeakMap,SLe=(e,r={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let n,o=0,i=e.displayName||e.name||"<anonymous>",a=function(...c){if(w6.set(a,++o),o===1)n=e.apply(this,c),e=null;else if(r.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return n};return mNt(a,e),w6.set(a,o),a};SLe.callCount=e=>{if(!w6.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return w6.get(e)};var hNt=()=>{let e=_Le-wLe+1;return Array.from({length:e},gNt)},gNt=(e,r)=>({name:`SIGRT${r+1}`,number:wLe+r,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),wLe=34,_Le=64,yNt=[{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:!0},{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:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{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"}],TLe=()=>{let e=hNt();return[...yNt,...e].map(xNt)},xNt=({name:e,number:r,description:n,action:o,forced:i=!1,standard:a})=>{let{signals:{[e]:c}}=JS.constants,u=c!==void 0;return{name:e,number:u?c:r,description:n,supported:u,action:o,forced:i,standard:a}},bNt=()=>{let e=TLe();return Object.fromEntries(e.map(ENt))},ENt=({name:e,number:r,description:n,supported:o,action:i,forced:a,standard:c})=>[e,{name:e,number:r,description:n,supported:o,action:i,forced:a,standard:c}],vNt=bNt(),SNt=()=>{let e=TLe(),r=_Le+1,n=Array.from({length:r},(o,i)=>wNt(i,e));return Object.assign({},...n)},wNt=(e,r)=>{let n=_Nt(e,r);if(n===void 0)return{};let{name:o,description:i,supported:a,action:c,forced:u,standard:l}=n;return{[e]:{name:o,number:e,description:i,supported:a,action:c,forced:u,standard:l}}},_Nt=(e,r)=>{let n=r.find(({name:o})=>JS.constants.signals[o]===e);return n!==void 0?n:r.find(o=>o.number===e)};SNt();var TNt=({timedOut:e,timeout:r,errorCode:n,signal:o,signalDescription:i,exitCode:a,isCanceled:c})=>e?`timed out after ${r} milliseconds`:c?"was canceled":n!==void 0?`failed with ${n}`:o!==void 0?`was killed with ${o} (${i})`:a!==void 0?`failed with exit code ${a}`:"failed",d6e=({stdout:e,stderr:r,all:n,error:o,signal:i,exitCode:a,command:c,escapedCommand:u,timedOut:l,isCanceled:p,killed:f,parsed:{options:{timeout:g,cwd:x=yi.default.cwd()}}})=>{a=a===null?void 0:a,i=i===null?void 0:i;let b=i===void 0?void 0:vNt[i].description,E=o&&o.code,_=`Command ${TNt({timedOut:l,timeout:g,errorCode:E,signal:i,signalDescription:b,exitCode:a,isCanceled:p})}: ${c}`,D=Object.prototype.toString.call(o)==="[object Error]",I=D?`${_}
|
|
2540
2540
|
${o.message}`:_,A=[I,r,e].filter(Boolean).join(`
|
|
@@ -3969,7 +3969,7 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
|
|
|
3969
3969
|
`+" ".repeat(r)),new Array(aw).fill(0).map((e,r)=>"\r"+" ".repeat(r)),new Array(aw).fill(0).map((e,r)=>`\r
|
|
3970
3970
|
`+" ".repeat(r)),new Array(aw).fill(0).map((e,r)=>`
|
|
3971
3971
|
`+" ".repeat(r)),new Array(aw).fill(0).map((e,r)=>"\r"+" ".repeat(r)),new Array(aw).fill(0).map((e,r)=>`\r
|
|
3972
|
-
`+" ".repeat(r));var aL;(function(e){e.DEFAULT={allowTrailingComma:!1}})(aL||(aL={}));function k3e(e,r=[],n=aL.DEFAULT){let o=null,i=[],a=[];function c(u){Array.isArray(i)?i.push(u):o!==null&&(i[o]=u)}return Ve(c,"onValue"),N3e(e,{onObjectBegin:Ve(()=>{let u={};c(u),a.push(i),i=u,o=null},"onObjectBegin"),onObjectProperty:Ve(u=>{o=u},"onObjectProperty"),onObjectEnd:Ve(()=>{i=a.pop()},"onObjectEnd"),onArrayBegin:Ve(()=>{let u=[];c(u),a.push(i),i=u,o=null},"onArrayBegin"),onArrayEnd:Ve(()=>{i=a.pop()},"onArrayEnd"),onLiteralValue:c,onError:Ve((u,l,p)=>{r.push({error:u,offset:l,length:p})},"onError")},n),i[0]}Ve(k3e,"parse$1");function N3e(e,r,n=aL.DEFAULT){let o=M3e(e,!1),i=[];function a(Y){return Y?()=>Y(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter()):()=>!0}Ve(a,"toNoArgVisit");function c(Y){return Y?()=>Y(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter(),()=>i.slice()):()=>!0}Ve(c,"toNoArgVisitWithPath");function u(Y){return Y?V=>Y(V,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter()):()=>!0}Ve(u,"toOneArgVisit");function l(Y){return Y?V=>Y(V,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter(),()=>i.slice()):()=>!0}Ve(l,"toOneArgVisitWithPath");let p=c(r.onObjectBegin),f=l(r.onObjectProperty),g=a(r.onObjectEnd),x=c(r.onArrayBegin),b=a(r.onArrayEnd),E=l(r.onLiteralValue),S=u(r.onSeparator),_=a(r.onComment),D=u(r.onError),I=n&&n.disallowComments,A=n&&n.allowTrailingComma;function R(){for(;;){let Y=o.scan();switch(o.getTokenError()){case 4:O(14);break;case 5:O(15);break;case 3:O(13);break;case 1:I||O(11);break;case 2:O(12);break;case 6:O(16);break}switch(Y){case 12:case 13:I?O(10):_();break;case 16:O(1);break;case 15:case 14:break;default:return Y}}}Ve(R,"scanNext");function O(Y,V=[],Q=[]){if(D(Y),V.length+Q.length>0){let q=o.getToken();for(;q!==17;){if(V.indexOf(q)!==-1){R();break}else if(Q.indexOf(q)!==-1)break;q=R()}}}Ve(O,"handleError");function k(Y){let V=o.getTokenValue();return Y?E(V):(f(V),i.push(V)),R(),!0}Ve(k,"parseString");function j(){switch(o.getToken()){case 11:let Y=o.getTokenValue(),V=Number(Y);isNaN(V)&&(O(2),V=0),E(V);break;case 7:E(null);break;case 8:E(!0);break;case 9:E(!1);break;default:return!1}return R(),!0}Ve(j,"parseLiteral");function G(){return o.getToken()!==10?(O(3,[],[2,5]),!1):(k(!1),o.getToken()===6?(S(":"),R(),F()||O(4,[],[2,5])):O(5,[],[2,5]),i.pop(),!0)}Ve(G,"parseProperty");function L(){p(),R();let Y=!1;for(;o.getToken()!==2&&o.getToken()!==17;){if(o.getToken()===5){if(Y||O(4,[],[]),S(","),R(),o.getToken()===2&&A)break}else Y&&O(6,[],[]);G()||O(4,[],[2,5]),Y=!0}return g(),o.getToken()!==2?O(7,[2],[]):R(),!0}Ve(L,"parseObject");function H(){x(),R();let Y=!0,V=!1;for(;o.getToken()!==4&&o.getToken()!==17;){if(o.getToken()===5){if(V||O(4,[],[]),S(","),R(),o.getToken()===4&&A)break}else V&&O(6,[],[]);Y?(i.push(0),Y=!1):i[i.length-1]++,F()||O(4,[],[4,5]),V=!0}return b(),Y||i.pop(),o.getToken()!==4?O(8,[4],[]):R(),!0}Ve(H,"parseArray");function F(){switch(o.getToken()){case 3:return H();case 1:return L();case 10:return k(!0);default:return j()}}return Ve(F,"parseValue"),R(),o.getToken()===17?n.allowEmptyContent?!0:(O(4,[],[]),!1):F()?(o.getToken()!==17&&O(9,[],[]),!0):(O(4,[],[]),!1)}Ve(N3e,"visit");var w3e;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(w3e||(w3e={}));var _3e;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(_3e||(_3e={}));var B3t=k3e,T3e;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(T3e||(T3e={}));var $3e=Ve((e,r)=>B3t(L3t(r,e,"utf8")),"readJsonc"),EX=Symbol("implicitBaseUrl"),Dg="${configDir}",U3t=Ve(()=>{let{findPnpApi:e}=O3e.default;return e&&e(process.cwd())},"getPnpApi"),fX=Ve((e,r,n,o)=>{let i=`resolveFromPackageJsonPath:${e}:${r}:${n}`;if(o!=null&&o.has(i))return o.get(i);let a=$3e(e,o);if(!a)return;let c=r||"tsconfig.json";if(!n&&a.exports)try{let[u]=v3e(a.exports,r,["require","types"]);c=u}catch{return!1}else!r&&a.tsconfig&&(c=a.tsconfig);return c=cr.default.join(e,"..",c),o?.set(i,c),c},"resolveFromPackageJsonPath"),dX="package.json",mX="tsconfig.json",j3t=Ve((e,r,n)=>{let o=e;if(e===".."&&(o=cr.default.join(o,mX)),e[0]==="."&&(o=cr.default.resolve(r,o)),cr.default.isAbsolute(o)){if(jl(n,o)){if(rL(n,o).isFile())return o}else if(!o.endsWith(".json")){let b=`${o}.json`;if(jl(n,b))return b}return}let[i,...a]=e.split("/"),c=i[0]==="@"?`${i}/${a.shift()}`:i,u=a.join("/"),l=U3t();if(l){let{resolveRequest:b}=l;try{if(c===e){let E=b(cr.default.join(c,dX),r);if(E){let S=fX(E,u,!1,n);if(S&&jl(n,S))return S}}else{let E;try{E=b(e,r,{extensions:[".json"]})}catch{E=b(cr.default.join(e,mX),r)}if(E)return E}}catch{}}let p=F3e(cr.default.resolve(r),cr.default.join("node_modules",c),n);if(!p||!rL(n,p).isDirectory())return;let f=cr.default.join(p,dX);if(jl(n,f)){let b=fX(f,u,!1,n);if(b===!1)return;if(b&&jl(n,b)&&rL(n,b).isFile())return b}let g=cr.default.join(p,u),x=g.endsWith(".json");if(!x){let b=`${g}.json`;if(jl(n,b))return b}if(jl(n,g)){if(rL(n,g).isDirectory()){let b=cr.default.join(g,dX);if(jl(n,b)){let S=fX(b,"",!0,n);if(S&&jl(n,S))return S}let E=cr.default.join(g,mX);if(jl(n,E))return E}else if(x)return g}},"resolveExtendsPath"),vX=Ve((e,r)=>bX(cr.default.relative(e,r)),"pathRelative"),L3e=["files","include","exclude"],q3t=Ve((e,r,n,o)=>{let i=j3t(e,r,o);if(!i)throw new Error(`File '${e}' not found.`);if(n.has(i))throw new Error(`Circularity detected while resolving configuration: ${i}`);n.add(i);let a=cr.default.dirname(i),c=B3e(i,o,n);delete c.references;let{compilerOptions:u}=c;if(u){let{baseUrl:l}=u;l&&!l.startsWith(Dg)&&(u.baseUrl=qa(cr.default.relative(r,cr.default.join(a,l)))||"./");let{outDir:p}=u;p&&(p.startsWith(Dg)||(p=cr.default.relative(r,cr.default.join(a,p))),u.outDir=qa(p)||"./")}for(let l of L3e){let p=c[l];p&&(c[l]=p.map(f=>f.startsWith(Dg)?f:qa(cr.default.relative(r,cr.default.join(a,f)))))}return c},"resolveExtends"),G3t=["outDir","declarationDir"],B3e=Ve((e,r,n=new Set)=>{let o;try{o=$3e(e,r)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${e}`)}if(typeof o!="object")throw new SyntaxError(`Failed to parse tsconfig at: ${e}`);let i=cr.default.dirname(e);if(o.compilerOptions){let{compilerOptions:a}=o;a.paths&&!a.baseUrl&&(a[EX]=i)}if(o.extends){let a=Array.isArray(o.extends)?o.extends:[o.extends];delete o.extends;for(let c of a.reverse()){let u=q3t(c,i,new Set(n),r),l={...u,...o,compilerOptions:{...u.compilerOptions,...o.compilerOptions}};u.watchOptions&&(l.watchOptions={...u.watchOptions,...o.watchOptions}),o=l}}if(o.compilerOptions){let{compilerOptions:a}=o,c=["baseUrl","rootDir"];for(let u of c){let l=a[u];if(l&&!l.startsWith(Dg)){let p=cr.default.resolve(i,l),f=vX(i,p);a[u]=f}}for(let u of G3t){let l=a[u];l&&(Array.isArray(o.exclude)||(o.exclude=[]),o.exclude.includes(l)||o.exclude.push(l),l.startsWith(Dg)||(l=bX(l)),a[u]=l)}}else o.compilerOptions={};if(o.include?(o.include=o.include.map(qa),o.files&&delete o.files):o.files&&(o.files=o.files.map(a=>a.startsWith(Dg)?a:bX(a))),o.watchOptions){let{watchOptions:a}=o;a.excludeDirectories&&(a.excludeDirectories=a.excludeDirectories.map(c=>qa(cr.default.resolve(i,c))))}return o},"_parseTsconfig"),nL=Ve((e,r)=>{if(e.startsWith(Dg))return qa(cr.default.join(r,e.slice(Dg.length)))},"interpolateConfigDir"),H3t=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],W3t=Ve(e=>{var r,n,o,i,a,c,u,l,p,f,g,x,b,E,S,_,D,I,A,R,O,k,j,G,L;if(e.strict){let H=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(let F of H)e[F]===void 0&&(e[F]=!0)}if(e.target){let H=e.target.toLowerCase();H==="es2015"&&(H="es6"),e.target=H,H==="esnext"&&((r=e.module)!=null||(e.module="es6"),(n=e.moduleResolution)!=null||(e.moduleResolution="classic"),(o=e.useDefineForClassFields)!=null||(e.useDefineForClassFields=!0)),(H==="es6"||H==="es2016"||H==="es2017"||H==="es2018"||H==="es2019"||H==="es2020"||H==="es2021"||H==="es2022"||H==="es2023"||H==="es2024")&&((i=e.module)!=null||(e.module="es6"),(a=e.moduleResolution)!=null||(e.moduleResolution="classic")),(H==="es2022"||H==="es2023"||H==="es2024")&&((c=e.useDefineForClassFields)!=null||(e.useDefineForClassFields=!0))}if(e.module){let H=e.module.toLowerCase();H==="es2015"&&(H="es6"),e.module=H,(H==="es6"||H==="es2020"||H==="es2022"||H==="esnext"||H==="none"||H==="system"||H==="umd"||H==="amd")&&((u=e.moduleResolution)!=null||(e.moduleResolution="classic")),H==="system"&&((l=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0)),(H==="node16"||H==="nodenext"||H==="preserve")&&((p=e.esModuleInterop)!=null||(e.esModuleInterop=!0),(f=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0)),(H==="node16"||H==="nodenext")&&((g=e.moduleDetection)!=null||(e.moduleDetection="force"),(x=e.useDefineForClassFields)!=null||(e.useDefineForClassFields=!0)),H==="node16"&&((b=e.target)!=null||(e.target="es2022"),(E=e.moduleResolution)!=null||(e.moduleResolution="node16")),H==="nodenext"&&((S=e.target)!=null||(e.target="esnext"),(_=e.moduleResolution)!=null||(e.moduleResolution="nodenext")),H==="preserve"&&((D=e.moduleResolution)!=null||(e.moduleResolution="bundler"))}if(e.moduleResolution){let H=e.moduleResolution.toLowerCase();H==="node"&&(H="node10"),e.moduleResolution=H,(H==="node16"||H==="nodenext"||H==="bundler")&&((I=e.resolvePackageJsonExports)!=null||(e.resolvePackageJsonExports=!0),(A=e.resolvePackageJsonImports)!=null||(e.resolvePackageJsonImports=!0)),H==="bundler"&&((R=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0),(O=e.resolveJsonModule)!=null||(e.resolveJsonModule=!0))}e.esModuleInterop&&((k=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0)),e.verbatimModuleSyntax&&((j=e.isolatedModules)!=null||(e.isolatedModules=!0),(G=e.preserveConstEnums)!=null||(e.preserveConstEnums=!0)),e.isolatedModules&&((L=e.preserveConstEnums)!=null||(e.preserveConstEnums=!0))},"normalizeCompilerOptions"),V3t=Ve((e,r=new Map)=>{let n=cr.default.resolve(e),o=B3e(n,r),i=cr.default.dirname(n),{compilerOptions:a}=o;if(a){for(let u of H3t){let l=a[u];if(l){let p=nL(l,i);a[u]=p?vX(i,p):l}}for(let u of["rootDirs","typeRoots"]){let l=a[u];l&&(a[u]=l.map(p=>{let f=nL(p,i);return f?vX(i,f):p}))}let{paths:c}=a;if(c)for(let u of Object.keys(c))c[u]=c[u].map(l=>{var p;return(p=nL(l,i))!=null?p:l});W3t(a)}for(let c of L3e){let u=o[c];u&&(o[c]=u.map(l=>{var p;return(p=nL(l,i))!=null?p:l}))}return o},"parseTsconfig"),cL=Ve((e=process.cwd(),r="tsconfig.json",n=new Map)=>{let o=F3e(qa(e),r,n);if(!o)return null;let i=V3t(o,n);return{path:o,config:i}},"getTsconfig"),z3t=/\*/g,D3e=Ve((e,r)=>{let n=e.match(z3t);if(n&&n.length>1)throw new Error(r)},"assertStarCount"),K3t=Ve(e=>{if(e.includes("*")){let[r,n]=e.split("*");return{prefix:r,suffix:n}}return e},"parsePattern"),J3t=Ve(({prefix:e,suffix:r},n)=>n.startsWith(e)&&n.endsWith(r),"isPatternMatch"),Y3t=Ve((e,r,n)=>Object.entries(e).map(([o,i])=>(D3e(o,`Pattern '${o}' can have at most one '*' character.`),{pattern:K3t(o),substitutions:i.map(a=>{if(D3e(a,`Substitution '${a}' in pattern '${o}' can have at most one '*' character.`),!r&&!wX.test(a))throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return cr.default.resolve(n,a)})})),"parsePaths"),k3r=Ve(e=>{let{compilerOptions:r}=e.config;if(!r)return null;let{baseUrl:n,paths:o}=r;if(!n&&!o)return null;let i=EX in r&&r[EX],a=cr.default.resolve(cr.default.dirname(e.path),n||i||"."),c=o?Y3t(o,n,a):[];return u=>{if(wX.test(u))return[];let l=[];for(let x of c){if(x.pattern===u)return x.substitutions.map(qa);typeof x.pattern!="string"&&l.push(x)}let p,f=-1;for(let x of l)J3t(x.pattern,u)&&x.pattern.prefix.length>f&&(f=x.pattern.prefix.length,p=x);if(!p)return n?[qa(cr.default.join(a,u))]:[];let g=u.slice(p.pattern.prefix.length,u.length-p.pattern.suffix.length);return p.substitutions.map(x=>qa(x.replace("*",g)))}},"createPathsMatcher"),A3e=Ve(e=>{let r="";for(let n=0;n<e.length;n+=1){let o=e[n],i=o.toUpperCase();r+=o===i?o.toLowerCase():i}return r},"s"),Z3t=65,Q3t=97,X3t=Ve(()=>Math.floor(Math.random()*26),"m"),eBt=Ve(e=>Array.from({length:e},()=>String.fromCodePoint(X3t()+(Math.random()>.5?Z3t:Q3t))).join(""),"S"),tBt=Ve((e=R3e.default)=>{let r=process.execPath;if(e.existsSync(r))return!e.existsSync(A3e(r));let n=`/${eBt(10)}`;e.writeFileSync(n,"");let o=!e.existsSync(A3e(n));return e.unlinkSync(n),o},"l"),{join:oL}=cr.default.posix,hX={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},rBt=Ve(e=>{let r=[...hX.ts],n=[...hX.cts],o=[...hX.mts];return e!=null&&e.allowJs&&(r.push(".js",".jsx"),n.push(".cjs"),o.push(".mjs")),[...r,...n,...o]},"getSupportedExtensions"),nBt=Ve(e=>{let r=[];if(!e)return r;let{outDir:n,declarationDir:o}=e;return n&&r.push(n),o&&r.push(o),r},"getDefaultExcludeSpec"),C3e=Ve(e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),oBt=["node_modules","bower_components","jspm_packages"],gX=`(?!(${oBt.join("|")})(/|$))`,iBt=/(?:^|\/)[^.*?]+$/,P3e="**/*",iL="[^/]",yX="[^./]",I3e=process.platform==="win32",N3r=Ve(({config:e,path:r},n=tBt())=>{if("extends"in e)throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");if(!cr.default.isAbsolute(r))throw new Error("The tsconfig path must be absolute");I3e&&(r=qa(r));let o=cr.default.dirname(r),{files:i,include:a,exclude:c,compilerOptions:u}=e,l=i?.map(E=>oL(o,E)),p=rBt(u),f=n?"":"i",g=(c||nBt(u)).map(E=>{let S=oL(o,E),_=C3e(S).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${iL}*`).replaceAll(String.raw`\?`,iL);return new RegExp(`^${_}($|/)`,f)}),x=i||a?a:[P3e],b=x?x.map(E=>{let S=oL(o,E);iBt.test(S)&&(S=oL(S,P3e));let _=C3e(S).replaceAll(String.raw`/\*\*`,`(/${gX}${yX}${iL}*)*?`).replaceAll(/(\/)?\\\*/g,(D,I)=>{let A=`(${yX}|(\\.(?!min\\.js$))?)*`;return I?`/${gX}${yX}${A}`:A}).replaceAll(/(\/)?\\\?/g,(D,I)=>{let A=iL;return I?`/${gX}${A}`:A});return new RegExp(`^${_}$`,f)}):void 0;return E=>{if(!cr.default.isAbsolute(E))throw new Error("filePath must be absolute");if(I3e&&(E=qa(E)),l!=null&&l.includes(E)||!(!p.some(S=>E.endsWith(S))||g.some(S=>S.test(E)))&&b&&b.some(S=>S.test(E)))return e}},"createFilesMatcher");var _X="7.9.0-dev.23";function aBt(e){switch(e.toLowerCase()){case"cjs":case"commonjs":return"cjs";case"esm":return"esm";default:throw new Error(`Invalid module format: "${e}", expected "esm" or "cjs"`)}}function U3e(e){if(typeof e=="string")return aBt(e);throw new Error(`Invalid module format: ${JSON.stringify(e)}, expected "esm" or "cjs"`)}function j3e({tsconfig:e,generatedFileExtension:r,importFileExtension:n}){return e?.compilerOptions?.module?cBt(e.compilerOptions.module):r==="cts"||n==="cjs"?"cjs":"esm"}function cBt(e){return e.toLowerCase()==="commonjs"?"cjs":"esm"}var uBt=["nodejs","deno","bun","workerd","cloudflare","vercel-edge","edge-light"];function lBt(e){switch(e.toLowerCase()){case"workerd":case"cloudflare":return"workerd";case"edge-light":case"vercel-edge":return"vercel-edge";case"nodejs":case"bun":return"nodejs";case"deno":return"deno";default:throw new Error(`Unknown target runtime: "${e}". The available options are: ${uBt.map(r=>`"${r}"`).join(", ")}`)}}function q3e(e){if(typeof e!="string")throw new Error(`Invalid target runtime: ${JSON.stringify(e)}. Expected a string.`);return lBt(e)}var pBt=`An output path is required for the \`prisma-client\` generator. Please provide an output path in your schema file:
|
|
3972
|
+
`+" ".repeat(r));var aL;(function(e){e.DEFAULT={allowTrailingComma:!1}})(aL||(aL={}));function k3e(e,r=[],n=aL.DEFAULT){let o=null,i=[],a=[];function c(u){Array.isArray(i)?i.push(u):o!==null&&(i[o]=u)}return Ve(c,"onValue"),N3e(e,{onObjectBegin:Ve(()=>{let u={};c(u),a.push(i),i=u,o=null},"onObjectBegin"),onObjectProperty:Ve(u=>{o=u},"onObjectProperty"),onObjectEnd:Ve(()=>{i=a.pop()},"onObjectEnd"),onArrayBegin:Ve(()=>{let u=[];c(u),a.push(i),i=u,o=null},"onArrayBegin"),onArrayEnd:Ve(()=>{i=a.pop()},"onArrayEnd"),onLiteralValue:c,onError:Ve((u,l,p)=>{r.push({error:u,offset:l,length:p})},"onError")},n),i[0]}Ve(k3e,"parse$1");function N3e(e,r,n=aL.DEFAULT){let o=M3e(e,!1),i=[];function a(Y){return Y?()=>Y(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter()):()=>!0}Ve(a,"toNoArgVisit");function c(Y){return Y?()=>Y(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter(),()=>i.slice()):()=>!0}Ve(c,"toNoArgVisitWithPath");function u(Y){return Y?V=>Y(V,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter()):()=>!0}Ve(u,"toOneArgVisit");function l(Y){return Y?V=>Y(V,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter(),()=>i.slice()):()=>!0}Ve(l,"toOneArgVisitWithPath");let p=c(r.onObjectBegin),f=l(r.onObjectProperty),g=a(r.onObjectEnd),x=c(r.onArrayBegin),b=a(r.onArrayEnd),E=l(r.onLiteralValue),S=u(r.onSeparator),_=a(r.onComment),D=u(r.onError),I=n&&n.disallowComments,A=n&&n.allowTrailingComma;function R(){for(;;){let Y=o.scan();switch(o.getTokenError()){case 4:O(14);break;case 5:O(15);break;case 3:O(13);break;case 1:I||O(11);break;case 2:O(12);break;case 6:O(16);break}switch(Y){case 12:case 13:I?O(10):_();break;case 16:O(1);break;case 15:case 14:break;default:return Y}}}Ve(R,"scanNext");function O(Y,V=[],Q=[]){if(D(Y),V.length+Q.length>0){let q=o.getToken();for(;q!==17;){if(V.indexOf(q)!==-1){R();break}else if(Q.indexOf(q)!==-1)break;q=R()}}}Ve(O,"handleError");function k(Y){let V=o.getTokenValue();return Y?E(V):(f(V),i.push(V)),R(),!0}Ve(k,"parseString");function j(){switch(o.getToken()){case 11:let Y=o.getTokenValue(),V=Number(Y);isNaN(V)&&(O(2),V=0),E(V);break;case 7:E(null);break;case 8:E(!0);break;case 9:E(!1);break;default:return!1}return R(),!0}Ve(j,"parseLiteral");function G(){return o.getToken()!==10?(O(3,[],[2,5]),!1):(k(!1),o.getToken()===6?(S(":"),R(),F()||O(4,[],[2,5])):O(5,[],[2,5]),i.pop(),!0)}Ve(G,"parseProperty");function L(){p(),R();let Y=!1;for(;o.getToken()!==2&&o.getToken()!==17;){if(o.getToken()===5){if(Y||O(4,[],[]),S(","),R(),o.getToken()===2&&A)break}else Y&&O(6,[],[]);G()||O(4,[],[2,5]),Y=!0}return g(),o.getToken()!==2?O(7,[2],[]):R(),!0}Ve(L,"parseObject");function H(){x(),R();let Y=!0,V=!1;for(;o.getToken()!==4&&o.getToken()!==17;){if(o.getToken()===5){if(V||O(4,[],[]),S(","),R(),o.getToken()===4&&A)break}else V&&O(6,[],[]);Y?(i.push(0),Y=!1):i[i.length-1]++,F()||O(4,[],[4,5]),V=!0}return b(),Y||i.pop(),o.getToken()!==4?O(8,[4],[]):R(),!0}Ve(H,"parseArray");function F(){switch(o.getToken()){case 3:return H();case 1:return L();case 10:return k(!0);default:return j()}}return Ve(F,"parseValue"),R(),o.getToken()===17?n.allowEmptyContent?!0:(O(4,[],[]),!1):F()?(o.getToken()!==17&&O(9,[],[]),!0):(O(4,[],[]),!1)}Ve(N3e,"visit");var w3e;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(w3e||(w3e={}));var _3e;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(_3e||(_3e={}));var B3t=k3e,T3e;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(T3e||(T3e={}));var $3e=Ve((e,r)=>B3t(L3t(r,e,"utf8")),"readJsonc"),EX=Symbol("implicitBaseUrl"),Dg="${configDir}",U3t=Ve(()=>{let{findPnpApi:e}=O3e.default;return e&&e(process.cwd())},"getPnpApi"),fX=Ve((e,r,n,o)=>{let i=`resolveFromPackageJsonPath:${e}:${r}:${n}`;if(o!=null&&o.has(i))return o.get(i);let a=$3e(e,o);if(!a)return;let c=r||"tsconfig.json";if(!n&&a.exports)try{let[u]=v3e(a.exports,r,["require","types"]);c=u}catch{return!1}else!r&&a.tsconfig&&(c=a.tsconfig);return c=cr.default.join(e,"..",c),o?.set(i,c),c},"resolveFromPackageJsonPath"),dX="package.json",mX="tsconfig.json",j3t=Ve((e,r,n)=>{let o=e;if(e===".."&&(o=cr.default.join(o,mX)),e[0]==="."&&(o=cr.default.resolve(r,o)),cr.default.isAbsolute(o)){if(jl(n,o)){if(rL(n,o).isFile())return o}else if(!o.endsWith(".json")){let b=`${o}.json`;if(jl(n,b))return b}return}let[i,...a]=e.split("/"),c=i[0]==="@"?`${i}/${a.shift()}`:i,u=a.join("/"),l=U3t();if(l){let{resolveRequest:b}=l;try{if(c===e){let E=b(cr.default.join(c,dX),r);if(E){let S=fX(E,u,!1,n);if(S&&jl(n,S))return S}}else{let E;try{E=b(e,r,{extensions:[".json"]})}catch{E=b(cr.default.join(e,mX),r)}if(E)return E}}catch{}}let p=F3e(cr.default.resolve(r),cr.default.join("node_modules",c),n);if(!p||!rL(n,p).isDirectory())return;let f=cr.default.join(p,dX);if(jl(n,f)){let b=fX(f,u,!1,n);if(b===!1)return;if(b&&jl(n,b)&&rL(n,b).isFile())return b}let g=cr.default.join(p,u),x=g.endsWith(".json");if(!x){let b=`${g}.json`;if(jl(n,b))return b}if(jl(n,g)){if(rL(n,g).isDirectory()){let b=cr.default.join(g,dX);if(jl(n,b)){let S=fX(b,"",!0,n);if(S&&jl(n,S))return S}let E=cr.default.join(g,mX);if(jl(n,E))return E}else if(x)return g}},"resolveExtendsPath"),vX=Ve((e,r)=>bX(cr.default.relative(e,r)),"pathRelative"),L3e=["files","include","exclude"],q3t=Ve((e,r,n,o)=>{let i=j3t(e,r,o);if(!i)throw new Error(`File '${e}' not found.`);if(n.has(i))throw new Error(`Circularity detected while resolving configuration: ${i}`);n.add(i);let a=cr.default.dirname(i),c=B3e(i,o,n);delete c.references;let{compilerOptions:u}=c;if(u){let{baseUrl:l}=u;l&&!l.startsWith(Dg)&&(u.baseUrl=qa(cr.default.relative(r,cr.default.join(a,l)))||"./");let{outDir:p}=u;p&&(p.startsWith(Dg)||(p=cr.default.relative(r,cr.default.join(a,p))),u.outDir=qa(p)||"./")}for(let l of L3e){let p=c[l];p&&(c[l]=p.map(f=>f.startsWith(Dg)?f:qa(cr.default.relative(r,cr.default.join(a,f)))))}return c},"resolveExtends"),G3t=["outDir","declarationDir"],B3e=Ve((e,r,n=new Set)=>{let o;try{o=$3e(e,r)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${e}`)}if(typeof o!="object")throw new SyntaxError(`Failed to parse tsconfig at: ${e}`);let i=cr.default.dirname(e);if(o.compilerOptions){let{compilerOptions:a}=o;a.paths&&!a.baseUrl&&(a[EX]=i)}if(o.extends){let a=Array.isArray(o.extends)?o.extends:[o.extends];delete o.extends;for(let c of a.reverse()){let u=q3t(c,i,new Set(n),r),l={...u,...o,compilerOptions:{...u.compilerOptions,...o.compilerOptions}};u.watchOptions&&(l.watchOptions={...u.watchOptions,...o.watchOptions}),o=l}}if(o.compilerOptions){let{compilerOptions:a}=o,c=["baseUrl","rootDir"];for(let u of c){let l=a[u];if(l&&!l.startsWith(Dg)){let p=cr.default.resolve(i,l),f=vX(i,p);a[u]=f}}for(let u of G3t){let l=a[u];l&&(Array.isArray(o.exclude)||(o.exclude=[]),o.exclude.includes(l)||o.exclude.push(l),l.startsWith(Dg)||(l=bX(l)),a[u]=l)}}else o.compilerOptions={};if(o.include?(o.include=o.include.map(qa),o.files&&delete o.files):o.files&&(o.files=o.files.map(a=>a.startsWith(Dg)?a:bX(a))),o.watchOptions){let{watchOptions:a}=o;a.excludeDirectories&&(a.excludeDirectories=a.excludeDirectories.map(c=>qa(cr.default.resolve(i,c))))}return o},"_parseTsconfig"),nL=Ve((e,r)=>{if(e.startsWith(Dg))return qa(cr.default.join(r,e.slice(Dg.length)))},"interpolateConfigDir"),H3t=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],W3t=Ve(e=>{var r,n,o,i,a,c,u,l,p,f,g,x,b,E,S,_,D,I,A,R,O,k,j,G,L;if(e.strict){let H=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(let F of H)e[F]===void 0&&(e[F]=!0)}if(e.target){let H=e.target.toLowerCase();H==="es2015"&&(H="es6"),e.target=H,H==="esnext"&&((r=e.module)!=null||(e.module="es6"),(n=e.moduleResolution)!=null||(e.moduleResolution="classic"),(o=e.useDefineForClassFields)!=null||(e.useDefineForClassFields=!0)),(H==="es6"||H==="es2016"||H==="es2017"||H==="es2018"||H==="es2019"||H==="es2020"||H==="es2021"||H==="es2022"||H==="es2023"||H==="es2024")&&((i=e.module)!=null||(e.module="es6"),(a=e.moduleResolution)!=null||(e.moduleResolution="classic")),(H==="es2022"||H==="es2023"||H==="es2024")&&((c=e.useDefineForClassFields)!=null||(e.useDefineForClassFields=!0))}if(e.module){let H=e.module.toLowerCase();H==="es2015"&&(H="es6"),e.module=H,(H==="es6"||H==="es2020"||H==="es2022"||H==="esnext"||H==="none"||H==="system"||H==="umd"||H==="amd")&&((u=e.moduleResolution)!=null||(e.moduleResolution="classic")),H==="system"&&((l=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0)),(H==="node16"||H==="nodenext"||H==="preserve")&&((p=e.esModuleInterop)!=null||(e.esModuleInterop=!0),(f=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0)),(H==="node16"||H==="nodenext")&&((g=e.moduleDetection)!=null||(e.moduleDetection="force"),(x=e.useDefineForClassFields)!=null||(e.useDefineForClassFields=!0)),H==="node16"&&((b=e.target)!=null||(e.target="es2022"),(E=e.moduleResolution)!=null||(e.moduleResolution="node16")),H==="nodenext"&&((S=e.target)!=null||(e.target="esnext"),(_=e.moduleResolution)!=null||(e.moduleResolution="nodenext")),H==="preserve"&&((D=e.moduleResolution)!=null||(e.moduleResolution="bundler"))}if(e.moduleResolution){let H=e.moduleResolution.toLowerCase();H==="node"&&(H="node10"),e.moduleResolution=H,(H==="node16"||H==="nodenext"||H==="bundler")&&((I=e.resolvePackageJsonExports)!=null||(e.resolvePackageJsonExports=!0),(A=e.resolvePackageJsonImports)!=null||(e.resolvePackageJsonImports=!0)),H==="bundler"&&((R=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0),(O=e.resolveJsonModule)!=null||(e.resolveJsonModule=!0))}e.esModuleInterop&&((k=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0)),e.verbatimModuleSyntax&&((j=e.isolatedModules)!=null||(e.isolatedModules=!0),(G=e.preserveConstEnums)!=null||(e.preserveConstEnums=!0)),e.isolatedModules&&((L=e.preserveConstEnums)!=null||(e.preserveConstEnums=!0))},"normalizeCompilerOptions"),V3t=Ve((e,r=new Map)=>{let n=cr.default.resolve(e),o=B3e(n,r),i=cr.default.dirname(n),{compilerOptions:a}=o;if(a){for(let u of H3t){let l=a[u];if(l){let p=nL(l,i);a[u]=p?vX(i,p):l}}for(let u of["rootDirs","typeRoots"]){let l=a[u];l&&(a[u]=l.map(p=>{let f=nL(p,i);return f?vX(i,f):p}))}let{paths:c}=a;if(c)for(let u of Object.keys(c))c[u]=c[u].map(l=>{var p;return(p=nL(l,i))!=null?p:l});W3t(a)}for(let c of L3e){let u=o[c];u&&(o[c]=u.map(l=>{var p;return(p=nL(l,i))!=null?p:l}))}return o},"parseTsconfig"),cL=Ve((e=process.cwd(),r="tsconfig.json",n=new Map)=>{let o=F3e(qa(e),r,n);if(!o)return null;let i=V3t(o,n);return{path:o,config:i}},"getTsconfig"),z3t=/\*/g,D3e=Ve((e,r)=>{let n=e.match(z3t);if(n&&n.length>1)throw new Error(r)},"assertStarCount"),K3t=Ve(e=>{if(e.includes("*")){let[r,n]=e.split("*");return{prefix:r,suffix:n}}return e},"parsePattern"),J3t=Ve(({prefix:e,suffix:r},n)=>n.startsWith(e)&&n.endsWith(r),"isPatternMatch"),Y3t=Ve((e,r,n)=>Object.entries(e).map(([o,i])=>(D3e(o,`Pattern '${o}' can have at most one '*' character.`),{pattern:K3t(o),substitutions:i.map(a=>{if(D3e(a,`Substitution '${a}' in pattern '${o}' can have at most one '*' character.`),!r&&!wX.test(a))throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return cr.default.resolve(n,a)})})),"parsePaths"),k3r=Ve(e=>{let{compilerOptions:r}=e.config;if(!r)return null;let{baseUrl:n,paths:o}=r;if(!n&&!o)return null;let i=EX in r&&r[EX],a=cr.default.resolve(cr.default.dirname(e.path),n||i||"."),c=o?Y3t(o,n,a):[];return u=>{if(wX.test(u))return[];let l=[];for(let x of c){if(x.pattern===u)return x.substitutions.map(qa);typeof x.pattern!="string"&&l.push(x)}let p,f=-1;for(let x of l)J3t(x.pattern,u)&&x.pattern.prefix.length>f&&(f=x.pattern.prefix.length,p=x);if(!p)return n?[qa(cr.default.join(a,u))]:[];let g=u.slice(p.pattern.prefix.length,u.length-p.pattern.suffix.length);return p.substitutions.map(x=>qa(x.replace("*",g)))}},"createPathsMatcher"),A3e=Ve(e=>{let r="";for(let n=0;n<e.length;n+=1){let o=e[n],i=o.toUpperCase();r+=o===i?o.toLowerCase():i}return r},"s"),Z3t=65,Q3t=97,X3t=Ve(()=>Math.floor(Math.random()*26),"m"),eBt=Ve(e=>Array.from({length:e},()=>String.fromCodePoint(X3t()+(Math.random()>.5?Z3t:Q3t))).join(""),"S"),tBt=Ve((e=R3e.default)=>{let r=process.execPath;if(e.existsSync(r))return!e.existsSync(A3e(r));let n=`/${eBt(10)}`;e.writeFileSync(n,"");let o=!e.existsSync(A3e(n));return e.unlinkSync(n),o},"l"),{join:oL}=cr.default.posix,hX={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},rBt=Ve(e=>{let r=[...hX.ts],n=[...hX.cts],o=[...hX.mts];return e!=null&&e.allowJs&&(r.push(".js",".jsx"),n.push(".cjs"),o.push(".mjs")),[...r,...n,...o]},"getSupportedExtensions"),nBt=Ve(e=>{let r=[];if(!e)return r;let{outDir:n,declarationDir:o}=e;return n&&r.push(n),o&&r.push(o),r},"getDefaultExcludeSpec"),C3e=Ve(e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),oBt=["node_modules","bower_components","jspm_packages"],gX=`(?!(${oBt.join("|")})(/|$))`,iBt=/(?:^|\/)[^.*?]+$/,P3e="**/*",iL="[^/]",yX="[^./]",I3e=process.platform==="win32",N3r=Ve(({config:e,path:r},n=tBt())=>{if("extends"in e)throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");if(!cr.default.isAbsolute(r))throw new Error("The tsconfig path must be absolute");I3e&&(r=qa(r));let o=cr.default.dirname(r),{files:i,include:a,exclude:c,compilerOptions:u}=e,l=i?.map(E=>oL(o,E)),p=rBt(u),f=n?"":"i",g=(c||nBt(u)).map(E=>{let S=oL(o,E),_=C3e(S).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${iL}*`).replaceAll(String.raw`\?`,iL);return new RegExp(`^${_}($|/)`,f)}),x=i||a?a:[P3e],b=x?x.map(E=>{let S=oL(o,E);iBt.test(S)&&(S=oL(S,P3e));let _=C3e(S).replaceAll(String.raw`/\*\*`,`(/${gX}${yX}${iL}*)*?`).replaceAll(/(\/)?\\\*/g,(D,I)=>{let A=`(${yX}|(\\.(?!min\\.js$))?)*`;return I?`/${gX}${yX}${A}`:A}).replaceAll(/(\/)?\\\?/g,(D,I)=>{let A=iL;return I?`/${gX}${A}`:A});return new RegExp(`^${_}$`,f)}):void 0;return E=>{if(!cr.default.isAbsolute(E))throw new Error("filePath must be absolute");if(I3e&&(E=qa(E)),l!=null&&l.includes(E)||!(!p.some(S=>E.endsWith(S))||g.some(S=>S.test(E)))&&b&&b.some(S=>S.test(E)))return e}},"createFilesMatcher");var _X="7.9.0-dev.25";function aBt(e){switch(e.toLowerCase()){case"cjs":case"commonjs":return"cjs";case"esm":return"esm";default:throw new Error(`Invalid module format: "${e}", expected "esm" or "cjs"`)}}function U3e(e){if(typeof e=="string")return aBt(e);throw new Error(`Invalid module format: ${JSON.stringify(e)}, expected "esm" or "cjs"`)}function j3e({tsconfig:e,generatedFileExtension:r,importFileExtension:n}){return e?.compilerOptions?.module?cBt(e.compilerOptions.module):r==="cts"||n==="cjs"?"cjs":"esm"}function cBt(e){return e.toLowerCase()==="commonjs"?"cjs":"esm"}var uBt=["nodejs","deno","bun","workerd","cloudflare","vercel-edge","edge-light"];function lBt(e){switch(e.toLowerCase()){case"workerd":case"cloudflare":return"workerd";case"edge-light":case"vercel-edge":return"vercel-edge";case"nodejs":case"bun":return"nodejs";case"deno":return"deno";default:throw new Error(`Unknown target runtime: "${e}". The available options are: ${uBt.map(r=>`"${r}"`).join(", ")}`)}}function q3e(e){if(typeof e!="string")throw new Error(`Invalid target runtime: ${JSON.stringify(e)}. Expected a string.`);return lBt(e)}var pBt=`An output path is required for the \`prisma-client\` generator. Please provide an output path in your schema file:
|
|
3973
3973
|
|
|
3974
3974
|
${te(`generator client {
|
|
3975
3975
|
provider = "prisma-client"`)}
|