UNPKG

prisma

Version:

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.

2 lines • 2.66 MB
#!/usr/bin/env node "use strict";var Nnt=Object.create;var iO=Object.defineProperty;var $nt=Object.getOwnPropertyDescriptor;var Lnt=Object.getOwnPropertyNames;var Bnt=Object.getPrototypeOf,jnt=Object.prototype.hasOwnProperty;var pt=(e,r)=>()=>(e&&(r=e(e=0)),r);var C=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),oc=(e,r)=>{for(var n in r)iO(e,n,{get:r[n],enumerable:!0})},oO=(e,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Lnt(r))!jnt.call(e,i)&&i!==n&&iO(e,i,{get:()=>r[i],enumerable:!(o=$nt(r,i))||o.enumerable});return e},sO=(e,r,n)=>(oO(e,r,"default"),n&&oO(n,r,"default")),W=(e,r,n)=>(n=e!=null?Nnt(Bnt(e)):{},oO(r||!e||!e.__esModule?iO(n,"default",{value:e,enumerable:!0}):n,e)),aO=e=>oO(iO({},"__esModule",{value:!0}),e);var Ppe,Ipe=pt(()=>{"use strict";Ppe=typeof globalThis=="object"?globalThis:global});var Ope=pt(()=>{"use strict";Ipe()});var Rpe=pt(()=>{"use strict";Ope()});var zf,Xj=pt(()=>{"use strict";zf="1.9.0"});function Unt(e){var r=new Set([e]),n=new Set,o=e.match(Fpe);if(!o)return function(){return!1};var i={major:+o[1],minor:+o[2],patch:+o[3],prerelease:o[4]};if(i.prerelease!=null)return function(l){return l===e};function a(u){return n.add(u),!1}function c(u){return r.add(u),!0}return function(l){if(r.has(l))return!0;if(n.has(l))return!1;var p=l.match(Fpe);if(!p)return a(l);var f={major:+p[1],minor:+p[2],patch:+p[3],prerelease:p[4]};return f.prerelease!=null||i.major!==f.major?a(l):i.major===0?i.minor===f.minor&&i.patch<=f.patch?c(l):a(l):i.minor<=f.minor?c(l):a(l)}}var Fpe,Mpe,kpe=pt(()=>{"use strict";Xj();Fpe=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;Mpe=Unt(zf)});function xp(e,r,n,o){var i;o===void 0&&(o=!1);var a=H1[G1]=(i=H1[G1])!==null&&i!==void 0?i:{version:zf};if(!o&&a[e]){var c=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(c.stack||c.message),!1}if(a.version!==zf){var c=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+zf);return n.error(c.stack||c.message),!1}return a[e]=r,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+zf+"."),!0}function ic(e){var r,n,o=(r=H1[G1])===null||r===void 0?void 0:r.version;if(!(!o||!Mpe(o)))return(n=H1[G1])===null||n===void 0?void 0:n[e]}function bp(e,r){r.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+zf+".");var n=H1[G1];n&&delete n[e]}var qnt,G1,H1,J0=pt(()=>{"use strict";Rpe();Xj();kpe();qnt=zf.split(".")[0],G1=Symbol.for("opentelemetry.js.api."+qnt),H1=Ppe});function W1(e,r,n){var o=ic("diag");if(o)return n.unshift(r),o[e].apply(o,Hnt([],Gnt(n),!1))}var Gnt,Hnt,Npe,$pe=pt(()=>{"use strict";J0();Gnt=function(e,r){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),i,a=[],c;try{for(;(r===void 0||r-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(u){c={error:u}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(c)throw c.error}}return a},Hnt=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))},Npe=function(){function e(r){this._namespace=r.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return W1("debug",this._namespace,r)},e.prototype.error=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return W1("error",this._namespace,r)},e.prototype.info=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return W1("info",this._namespace,r)},e.prototype.warn=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return W1("warn",this._namespace,r)},e.prototype.verbose=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return W1("verbose",this._namespace,r)},e}()});var Ki,cO=pt(()=>{"use strict";(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(Ki||(Ki={}))});function Lpe(e,r){e<Ki.NONE?e=Ki.NONE:e>Ki.ALL&&(e=Ki.ALL),r=r||{};function n(o,i){var a=r[o];return typeof a=="function"&&e>=i?a.bind(r):function(){}}return{error:n("error",Ki.ERROR),warn:n("warn",Ki.WARN),info:n("info",Ki.INFO),debug:n("debug",Ki.DEBUG),verbose:n("verbose",Ki.VERBOSE)}}var Bpe=pt(()=>{"use strict";cO()});var Wnt,Vnt,znt,bs,Y0=pt(()=>{"use strict";$pe();Bpe();cO();J0();Wnt=function(e,r){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),i,a=[],c;try{for(;(r===void 0||r-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(u){c={error:u}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(c)throw c.error}}return a},Vnt=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))},znt="diag",bs=function(){function e(){function r(i){return function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];var u=ic("diag");if(u)return u[i].apply(u,Vnt([],Wnt(a),!1))}}var n=this,o=function(i,a){var c,u,l;if(a===void 0&&(a={logLevel:Ki.INFO}),i===n){var p=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((c=p.stack)!==null&&c!==void 0?c:p.message),!1}typeof a=="number"&&(a={logLevel:a});var f=ic("diag"),g=Lpe((u=a.logLevel)!==null&&u!==void 0?u:Ki.INFO,i);if(f&&!a.suppressOverrideMessage){var x=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";f.warn("Current logger will be overwritten from "+x),g.warn("Current logger will overwrite one already registered from "+x)}return xp("diag",g,n,!0)};n.setLogger=o,n.disable=function(){bp(znt,n)},n.createComponentLogger=function(i){return new Npe(i)},n.verbose=r("verbose"),n.debug=r("debug"),n.info=r("info"),n.warn=r("warn"),n.error=r("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()});var Knt,Jnt,jpe,Upe=pt(()=>{"use strict";Knt=function(e,r){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),i,a=[],c;try{for(;(r===void 0||r-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(u){c={error:u}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(c)throw c.error}}return a},Jnt=function(e){var r=typeof Symbol=="function"&&Symbol.iterator,n=r&&e[r],o=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},jpe=function(){function e(r){this._entries=r?new Map(r):new Map}return e.prototype.getEntry=function(r){var n=this._entries.get(r);if(n)return Object.assign({},n)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(r){var n=Knt(r,2),o=n[0],i=n[1];return[o,i]})},e.prototype.setEntry=function(r,n){var o=new e(this._entries);return o._entries.set(r,n),o},e.prototype.removeEntry=function(r){var n=new e(this._entries);return n._entries.delete(r),n},e.prototype.removeEntries=function(){for(var r,n,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var a=new e(this._entries);try{for(var c=Jnt(o),u=c.next();!u.done;u=c.next()){var l=u.value;a._entries.delete(l)}}catch(p){r={error:p}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return a},e.prototype.clear=function(){return new e},e}()});var qpe,Gpe=pt(()=>{"use strict";qpe=Symbol("BaggageEntryMetadata")});function Hpe(e){return e===void 0&&(e={}),new jpe(new Map(Object.entries(e)))}function Wpe(e){return typeof e!="string"&&(Ynt.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:qpe,toString:function(){return e}}}var Ynt,eU=pt(()=>{"use strict";Y0();Upe();Gpe();Ynt=bs.instance()});function ih(e){return Symbol.for(e)}var Znt,uO,V1=pt(()=>{"use strict";Znt=function(){function e(r){var n=this;n._currentContext=r?new Map(r):new Map,n.getValue=function(o){return n._currentContext.get(o)},n.setValue=function(o,i){var a=new e(n._currentContext);return a._currentContext.set(o,i),a},n.deleteValue=function(o){var i=new e(n._currentContext);return i._currentContext.delete(o),i}}return e}(),uO=new Znt});var tU,Vpe,zpe=pt(()=>{"use strict";tU=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],Vpe=function(){function e(){function r(o){return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(console){var c=console[o];if(typeof c!="function"&&(c=console.log),typeof c=="function")return c.apply(console,i)}}}for(var n=0;n<tU.length;n++)this[tU[n].n]=r(tU[n].c)}return e}()});function Kpe(){return nU}var Z0,Qnt,lO,Xnt,eot,tot,rot,rU,not,oot,iot,nU,sot,aot,cot,uot,lot,pot,fot,oU=pt(()=>{"use strict";Z0=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},e(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(r,n);function o(){this.constructor=r}r.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qnt=function(){function e(){}return e.prototype.createGauge=function(r,n){return aot},e.prototype.createHistogram=function(r,n){return cot},e.prototype.createCounter=function(r,n){return sot},e.prototype.createUpDownCounter=function(r,n){return uot},e.prototype.createObservableGauge=function(r,n){return pot},e.prototype.createObservableCounter=function(r,n){return lot},e.prototype.createObservableUpDownCounter=function(r,n){return fot},e.prototype.addBatchObservableCallback=function(r,n){},e.prototype.removeBatchObservableCallback=function(r){},e}(),lO=function(){function e(){}return e}(),Xnt=function(e){Z0(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.add=function(n,o){},r}(lO),eot=function(e){Z0(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.add=function(n,o){},r}(lO),tot=function(e){Z0(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.record=function(n,o){},r}(lO),rot=function(e){Z0(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.record=function(n,o){},r}(lO),rU=function(){function e(){}return e.prototype.addCallback=function(r){},e.prototype.removeCallback=function(r){},e}(),not=function(e){Z0(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r}(rU),oot=function(e){Z0(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r}(rU),iot=function(e){Z0(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r}(rU),nU=new Qnt,sot=new Xnt,aot=new tot,cot=new rot,uot=new eot,lot=new not,pot=new oot,fot=new iot});var pO,Jpe=pt(()=>{"use strict";(function(e){e[e.INT=0]="INT",e[e.DOUBLE=1]="DOUBLE"})(pO||(pO={}))});var fO,dO,iU=pt(()=>{"use strict";fO={get:function(e,r){if(e!=null)return e[r]},keys:function(e){return e==null?[]:Object.keys(e)}},dO={set:function(e,r,n){e!=null&&(e[r]=n)}}});var dot,mot,Ype,Zpe=pt(()=>{"use strict";V1();dot=function(e,r){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),i,a=[],c;try{for(;(r===void 0||r-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(u){c={error:u}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(c)throw c.error}}return a},mot=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))},Ype=function(){function e(){}return e.prototype.active=function(){return uO},e.prototype.with=function(r,n,o){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];return n.call.apply(n,mot([o],dot(i),!1))},e.prototype.bind=function(r,n){return n},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}()});var hot,got,sU,yot,sh,z1=pt(()=>{"use strict";Zpe();J0();Y0();hot=function(e,r){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),i,a=[],c;try{for(;(r===void 0||r-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(u){c={error:u}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(c)throw c.error}}return a},got=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))},sU="context",yot=new Ype,sh=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(r){return xp(sU,r,bs.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(r,n,o){for(var i,a=[],c=3;c<arguments.length;c++)a[c-3]=arguments[c];return(i=this._getContextManager()).with.apply(i,got([r,n,o],hot(a),!1))},e.prototype.bind=function(r,n){return this._getContextManager().bind(r,n)},e.prototype._getContextManager=function(){return ic(sU)||yot},e.prototype.disable=function(){this._getContextManager().disable(),bp(sU,bs.instance())},e}()});var Jc,aU=pt(()=>{"use strict";(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Jc||(Jc={}))});var K1,J1,LE,mO=pt(()=>{"use strict";aU();K1="0000000000000000",J1="00000000000000000000000000000000",LE={traceId:J1,spanId:K1,traceFlags:Jc.NONE}});var ah,hO=pt(()=>{"use strict";mO();ah=function(){function e(r){r===void 0&&(r=LE),this._spanContext=r}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(r,n){return this},e.prototype.setAttributes=function(r){return this},e.prototype.addEvent=function(r,n){return this},e.prototype.addLink=function(r){return this},e.prototype.addLinks=function(r){return this},e.prototype.setStatus=function(r){return this},e.prototype.updateName=function(r){return this},e.prototype.end=function(r){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(r,n){},e}()});function gO(e){return e.getValue(cU)||void 0}function Qpe(){return gO(sh.getInstance().active())}function Y1(e,r){return e.setValue(cU,r)}function Xpe(e){return e.deleteValue(cU)}function efe(e,r){return Y1(e,new ah(r))}function yO(e){var r;return(r=gO(e))===null||r===void 0?void 0:r.spanContext()}var cU,uU=pt(()=>{"use strict";V1();hO();z1();cU=ih("OpenTelemetry Context Key SPAN")});function Z1(e){return xot.test(e)&&e!==J1}function lU(e){return bot.test(e)&&e!==K1}function ch(e){return Z1(e.traceId)&&lU(e.spanId)}function tfe(e){return new ah(e)}var xot,bot,xO=pt(()=>{"use strict";mO();hO();xot=/^([0-9a-f]{32})$/i,bot=/^[0-9a-f]{16}$/i});function Eot(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var pU,bO,fU=pt(()=>{"use strict";z1();uU();hO();xO();pU=sh.getInstance(),bO=function(){function e(){}return e.prototype.startSpan=function(r,n,o){o===void 0&&(o=pU.active());var i=!!n?.root;if(i)return new ah;var a=o&&yO(o);return Eot(a)&&ch(a)?new ah(a):new ah},e.prototype.startActiveSpan=function(r,n,o,i){var a,c,u;if(!(arguments.length<2)){arguments.length===2?u=n:arguments.length===3?(a=n,u=o):(a=n,c=o,u=i);var l=c??pU.active(),p=this.startSpan(r,a,l),f=Y1(l,p);return pU.with(f,u,void 0,p)}},e}()});var vot,EO,dU=pt(()=>{"use strict";fU();vot=new bO,EO=function(){function e(r,n,o,i){this._provider=r,this.name=n,this.version=o,this.options=i}return e.prototype.startSpan=function(r,n,o){return this._getTracer().startSpan(r,n,o)},e.prototype.startActiveSpan=function(r,n,o,i){var a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var r=this._provider.getDelegateTracer(this.name,this.version,this.options);return r?(this._delegate=r,this._delegate):vot},e}()});var rfe,nfe=pt(()=>{"use strict";fU();rfe=function(){function e(){}return e.prototype.getTracer=function(r,n,o){return new bO},e}()});var Sot,Q1,mU=pt(()=>{"use strict";dU();nfe();Sot=new rfe,Q1=function(){function e(){}return e.prototype.getTracer=function(r,n,o){var i;return(i=this.getDelegateTracer(r,n,o))!==null&&i!==void 0?i:new EO(this,r,n,o)},e.prototype.getDelegate=function(){var r;return(r=this._delegate)!==null&&r!==void 0?r:Sot},e.prototype.setDelegate=function(r){this._delegate=r},e.prototype.getDelegateTracer=function(r,n,o){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(r,n,o)},e}()});var Q0,ofe=pt(()=>{"use strict";(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Q0||(Q0={}))});var BE,ife=pt(()=>{"use strict";(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(BE||(BE={}))});var jE,sfe=pt(()=>{"use strict";(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(jE||(jE={}))});function afe(e){return Tot.test(e)}function cfe(e){return Dot.test(e)&&!Aot.test(e)}var hU,wot,_ot,Tot,Dot,Aot,ufe=pt(()=>{"use strict";hU="[_0-9a-z-*/]",wot="[a-z]"+hU+"{0,255}",_ot="[a-z0-9]"+hU+"{0,240}@[a-z]"+hU+"{0,13}",Tot=new RegExp("^(?:"+wot+"|"+_ot+")$"),Dot=/^[ -~]{0,255}[!-~]$/,Aot=/,|=/});var lfe,Cot,pfe,ffe,dfe,mfe=pt(()=>{"use strict";ufe();lfe=32,Cot=512,pfe=",",ffe="=",dfe=function(){function e(r){this._internalState=new Map,r&&this._parse(r)}return e.prototype.set=function(r,n){var o=this._clone();return o._internalState.has(r)&&o._internalState.delete(r),o._internalState.set(r,n),o},e.prototype.unset=function(r){var n=this._clone();return n._internalState.delete(r),n},e.prototype.get=function(r){return this._internalState.get(r)},e.prototype.serialize=function(){var r=this;return this._keys().reduce(function(n,o){return n.push(o+ffe+r.get(o)),n},[]).join(pfe)},e.prototype._parse=function(r){r.length>Cot||(this._internalState=r.split(pfe).reverse().reduce(function(n,o){var i=o.trim(),a=i.indexOf(ffe);if(a!==-1){var c=i.slice(0,a),u=i.slice(a+1,o.length);afe(c)&&cfe(u)&&n.set(c,u)}return n},new Map),this._internalState.size>lfe&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,lfe))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var r=new e;return r._internalState=new Map(this._internalState),r},e}()});function hfe(e){return new dfe(e)}var gfe=pt(()=>{"use strict";mfe()});var Kf,yfe=pt(()=>{"use strict";z1();Kf=sh.getInstance()});var yr,xfe=pt(()=>{"use strict";Y0();yr=bs.instance()});var Pot,bfe,Efe=pt(()=>{"use strict";oU();Pot=function(){function e(){}return e.prototype.getMeter=function(r,n,o){return nU},e}(),bfe=new Pot});var gU,vfe,Sfe=pt(()=>{"use strict";Efe();J0();Y0();gU="metrics",vfe=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(r){return xp(gU,r,bs.instance())},e.prototype.getMeterProvider=function(){return ic(gU)||bfe},e.prototype.getMeter=function(r,n,o){return this.getMeterProvider().getMeter(r,n,o)},e.prototype.disable=function(){bp(gU,bs.instance())},e}()});var yU,wfe=pt(()=>{"use strict";Sfe();yU=vfe.getInstance()});var _fe,Tfe=pt(()=>{"use strict";_fe=function(){function e(){}return e.prototype.inject=function(r,n){},e.prototype.extract=function(r,n){return r},e.prototype.fields=function(){return[]},e}()});function bU(e){return e.getValue(xU)||void 0}function Dfe(){return bU(sh.getInstance().active())}function Afe(e,r){return e.setValue(xU,r)}function Cfe(e){return e.deleteValue(xU)}var xU,Pfe=pt(()=>{"use strict";z1();V1();xU=ih("OpenTelemetry Baggage Key")});var EU,Iot,Ife,Ofe=pt(()=>{"use strict";J0();Tfe();iU();Pfe();eU();Y0();EU="propagation",Iot=new _fe,Ife=function(){function e(){this.createBaggage=Hpe,this.getBaggage=bU,this.getActiveBaggage=Dfe,this.setBaggage=Afe,this.deleteBaggage=Cfe}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(r){return xp(EU,r,bs.instance())},e.prototype.inject=function(r,n,o){return o===void 0&&(o=dO),this._getGlobalPropagator().inject(r,n,o)},e.prototype.extract=function(r,n,o){return o===void 0&&(o=fO),this._getGlobalPropagator().extract(r,n,o)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){bp(EU,bs.instance())},e.prototype._getGlobalPropagator=function(){return ic(EU)||Iot},e}()});var vU,Rfe=pt(()=>{"use strict";Ofe();vU=Ife.getInstance()});var SU,Ffe,Mfe=pt(()=>{"use strict";J0();mU();xO();uU();Y0();SU="trace",Ffe=function(){function e(){this._proxyTracerProvider=new Q1,this.wrapSpanContext=tfe,this.isSpanContextValid=ch,this.deleteSpan=Xpe,this.getSpan=gO,this.getActiveSpan=Qpe,this.getSpanContext=yO,this.setSpan=Y1,this.setSpanContext=efe}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(r){var n=xp(SU,this._proxyTracerProvider,bs.instance());return n&&this._proxyTracerProvider.setDelegate(r),n},e.prototype.getTracerProvider=function(){return ic(SU)||this._proxyTracerProvider},e.prototype.getTracer=function(r,n){return this.getTracerProvider().getTracer(r,n)},e.prototype.disable=function(){bp(SU,bs.instance()),this._proxyTracerProvider=new Q1},e}()});var ha,kfe=pt(()=>{"use strict";Mfe();ha=Ffe.getInstance()});var vO={};oc(vO,{DiagConsoleLogger:()=>Vpe,DiagLogLevel:()=>Ki,INVALID_SPANID:()=>K1,INVALID_SPAN_CONTEXT:()=>LE,INVALID_TRACEID:()=>J1,ProxyTracer:()=>EO,ProxyTracerProvider:()=>Q1,ROOT_CONTEXT:()=>uO,SamplingDecision:()=>Q0,SpanKind:()=>BE,SpanStatusCode:()=>jE,TraceFlags:()=>Jc,ValueType:()=>pO,baggageEntryMetadataFromString:()=>Wpe,context:()=>Kf,createContextKey:()=>ih,createNoopMeter:()=>Kpe,createTraceState:()=>hfe,default:()=>Oot,defaultTextMapGetter:()=>fO,defaultTextMapSetter:()=>dO,diag:()=>yr,isSpanContextValid:()=>ch,isValidSpanId:()=>lU,isValidTraceId:()=>Z1,metrics:()=>yU,propagation:()=>vU,trace:()=>ha});var Oot,ga=pt(()=>{"use strict";eU();V1();zpe();cO();oU();Jpe();iU();dU();mU();ofe();ife();sfe();aU();gfe();xO();mO();yfe();xfe();wfe();Rfe();kfe();Oot={context:Kf,diag:yr,metrics:yU,propagation:vU,trace:ha}});var _U=C(SO=>{"use strict";Object.defineProperty(SO,"__esModule",{value:!0});SO.AbstractAsyncHooksContextManager=void 0;var Rot=require("events"),Fot=["addListener","on","once","prependListener","prependOnceListener"],wU=class{bind(r,n){return n instanceof Rot.EventEmitter?this._bindEventEmitter(r,n):typeof n=="function"?this._bindFunction(r,n):n}_bindFunction(r,n){let o=this,i=function(...a){return o.with(r,()=>n.apply(this,a))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),i}_bindEventEmitter(r,n){return this._getPatchMap(n)!==void 0||(this._createPatchMap(n),Fot.forEach(i=>{n[i]!==void 0&&(n[i]=this._patchAddListener(n,n[i],r))}),typeof n.removeListener=="function"&&(n.removeListener=this._patchRemoveListener(n,n.removeListener)),typeof n.off=="function"&&(n.off=this._patchRemoveListener(n,n.off)),typeof n.removeAllListeners=="function"&&(n.removeAllListeners=this._patchRemoveAllListeners(n,n.removeAllListeners))),n}_patchRemoveListener(r,n){let o=this;return function(i,a){let c=o._getPatchMap(r)?.[i];if(c===void 0)return n.call(this,i,a);let u=c.get(a);return n.call(this,i,u||a)}}_patchRemoveAllListeners(r,n){let o=this;return function(i){let a=o._getPatchMap(r);return a!==void 0&&(arguments.length===0?o._createPatchMap(r):a[i]!==void 0&&delete a[i]),n.apply(this,arguments)}}_patchAddListener(r,n,o){let i=this;return function(a,c){if(i._wrapped)return n.call(this,a,c);let u=i._getPatchMap(r);u===void 0&&(u=i._createPatchMap(r));let l=u[a];l===void 0&&(l=new WeakMap,u[a]=l);let p=i.bind(o,c);l.set(c,p),i._wrapped=!0;try{return n.call(this,a,p)}finally{i._wrapped=!1}}}_createPatchMap(r){let n=Object.create(null);return r[this._kOtListeners]=n,n}_getPatchMap(r){return r[this._kOtListeners]}_kOtListeners=Symbol("OtListeners");_wrapped=!1};SO.AbstractAsyncHooksContextManager=wU});var Nfe=C(wO=>{"use strict";Object.defineProperty(wO,"__esModule",{value:!0});wO.AsyncHooksContextManager=void 0;var Mot=(ga(),aO(vO)),kot=require("async_hooks"),Not=_U(),TU=class extends Not.AbstractAsyncHooksContextManager{_asyncHook;_contexts=new Map;_stack=[];constructor(){super(),this._asyncHook=kot.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){return this._stack[this._stack.length-1]??Mot.ROOT_CONTEXT}with(r,n,o,...i){this._enterContext(r);try{return n.call(o,...i)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(r,n){if(n==="TIMERWRAP")return;let o=this._stack[this._stack.length-1];o!==void 0&&this._contexts.set(r,o)}_destroy(r){this._contexts.delete(r)}_before(r){let n=this._contexts.get(r);n!==void 0&&this._enterContext(n)}_after(){this._exitContext()}_enterContext(r){this._stack.push(r)}_exitContext(){this._stack.pop()}};wO.AsyncHooksContextManager=TU});var $fe=C(_O=>{"use strict";Object.defineProperty(_O,"__esModule",{value:!0});_O.AsyncLocalStorageContextManager=void 0;var $ot=(ga(),aO(vO)),Lot=require("async_hooks"),Bot=_U(),DU=class extends Bot.AbstractAsyncHooksContextManager{_asyncLocalStorage;constructor(){super(),this._asyncLocalStorage=new Lot.AsyncLocalStorage}active(){return this._asyncLocalStorage.getStore()??$ot.ROOT_CONTEXT}with(r,n,o,...i){let a=o==null?n:n.bind(o);return this._asyncLocalStorage.run(r,a,...i)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};_O.AsyncLocalStorageContextManager=DU});var Lfe=C(UE=>{"use strict";Object.defineProperty(UE,"__esModule",{value:!0});UE.AsyncLocalStorageContextManager=UE.AsyncHooksContextManager=void 0;var jot=Nfe();Object.defineProperty(UE,"AsyncHooksContextManager",{enumerable:!0,get:function(){return jot.AsyncHooksContextManager}});var Uot=$fe();Object.defineProperty(UE,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return Uot.AsyncLocalStorageContextManager}})});var YU=C((olr,Rde)=>{"use strict";Rde.exports=(e,r=process.argv)=>{let n=e.startsWith("-")?"":e.length===1?"-":"--",o=r.indexOf(n+e),i=r.indexOf("--");return o!==-1&&(i===-1||o<i)}});var kde=C((ilr,Mde)=>{"use strict";var Rst=require("os"),Fde=require("tty"),Zc=YU(),{env:Ri}=process,hh;Zc("no-color")||Zc("no-colors")||Zc("color=false")||Zc("color=never")?hh=0:(Zc("color")||Zc("colors")||Zc("color=true")||Zc("color=always"))&&(hh=1);"FORCE_COLOR"in Ri&&(Ri.FORCE_COLOR==="true"?hh=1:Ri.FORCE_COLOR==="false"?hh=0:hh=Ri.FORCE_COLOR.length===0?1:Math.min(parseInt(Ri.FORCE_COLOR,10),3));function ZU(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function QU(e,r){if(hh===0)return 0;if(Zc("color=16m")||Zc("color=full")||Zc("color=truecolor"))return 3;if(Zc("color=256"))return 2;if(e&&!r&&hh===void 0)return 0;let n=hh||0;if(Ri.TERM==="dumb")return n;if(process.platform==="win32"){let o=Rst.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in Ri)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(o=>o in Ri)||Ri.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in Ri)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ri.TEAMCITY_VERSION)?1:0;if(Ri.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ri){let o=parseInt((Ri.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ri.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ri.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ri.TERM)||"COLORTERM"in Ri?1:n}function Fst(e){let r=QU(e,e&&e.isTTY);return ZU(r)}Mde.exports={supportsColor:Fst,stdout:ZU(QU(!0,Fde.isatty(1))),stderr:ZU(QU(!0,Fde.isatty(2)))}});var Lde=C((slr,$de)=>{"use strict";var Mst=kde(),WE=YU();function Nde(e){if(/^\d{3,4}$/.test(e)){let n=/(\d{1,2})(\d{2})/.exec(e)||[];return{major:0,minor:parseInt(n[1],10),patch:parseInt(n[2],10)}}let r=(e||"").split(".").map(n=>parseInt(n,10));return{major:r[0],minor:r[1],patch:r[2]}}function XU(e){let{CI:r,FORCE_HYPERLINK:n,NETLIFY:o,TEAMCITY_VERSION:i,TERM_PROGRAM:a,TERM_PROGRAM_VERSION:c,VTE_VERSION:u,TERM:l}=process.env;if(n)return!(n.length>0&&parseInt(n,10)===0);if(WE("no-hyperlink")||WE("no-hyperlinks")||WE("hyperlink=false")||WE("hyperlink=never"))return!1;if(WE("hyperlink=true")||WE("hyperlink=always")||o)return!0;if(!Mst.supportsColor(e)||e&&!e.isTTY)return!1;if("WT_SESSION"in process.env)return!0;if(process.platform==="win32"||r||i)return!1;if(a){let p=Nde(c||"");switch(a){case"iTerm.app":return p.major===3?p.minor>=1:p.major>3;case"WezTerm":return p.major>=20200620;case"vscode":return p.major>1||p.major===1&&p.minor>=72;case"ghostty":return!0}}if(u){if(u==="0.50.0")return!1;let p=Nde(u);return p.major>0||p.minor>=50}switch(l){case"alacritty":return!0}return!1}$de.exports={supportsHyperlink:XU,stdout:XU(process.stdout),stderr:XU(process.stderr)}});var Gde=C((ulr,qde)=>{"use strict";qde.exports=Ude;Ude.sync=Nst;var Bde=require("fs");function kst(e,r){var n=r.pathExt!==void 0?r.pathExt:process.env.PATHEXT;if(!n||(n=n.split(";"),n.indexOf("")!==-1))return!0;for(var o=0;o<n.length;o++){var i=n[o].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function jde(e,r,n){return!e.isSymbolicLink()&&!e.isFile()?!1:kst(r,n)}function Ude(e,r,n){Bde.stat(e,function(o,i){n(o,o?!1:jde(i,e,r))})}function Nst(e,r){return jde(Bde.statSync(e),e,r)}});var Kde=C((llr,zde)=>{"use strict";zde.exports=Wde;Wde.sync=$st;var Hde=require("fs");function Wde(e,r,n){Hde.stat(e,function(o,i){n(o,o?!1:Vde(i,r))})}function $st(e,r){return Vde(Hde.statSync(e),r)}function Vde(e,r){return e.isFile()&&Lst(e,r)}function Lst(e,r){var n=e.mode,o=e.uid,i=e.gid,a=r.uid!==void 0?r.uid:process.getuid&&process.getuid(),c=r.gid!==void 0?r.gid:process.getgid&&process.getgid(),u=parseInt("100",8),l=parseInt("010",8),p=parseInt("001",8),f=u|l,g=n&p||n&l&&i===c||n&u&&o===a||n&f&&a===0;return g}});var Yde=C((flr,Jde)=>{"use strict";var plr=require("fs"),ZO;process.platform==="win32"||global.TESTING_WINDOWS?ZO=Gde():ZO=Kde();Jde.exports=e9;e9.sync=Bst;function e9(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){e9(e,r||{},function(a,c){a?i(a):o(c)})})}ZO(e,r||{},function(o,i){o&&(o.code==="EACCES"||r&&r.ignoreErrors)&&(o=null,i=!1),n(o,i)})}function Bst(e,r){try{return ZO.sync(e,r||{})}catch(n){if(r&&r.ignoreErrors||n.code==="EACCES")return!1;throw n}}});var nme=C((dlr,rme)=>{"use strict";var VE=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Zde=require("path"),jst=VE?";":":",Qde=Yde(),Xde=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),eme=(e,r)=>{let n=r.colon||jst,o=e.match(/\//)||VE&&e.match(/\\/)?[""]:[...VE?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(n)],i=VE?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=VE?i.split(n):[""];return VE&&e.indexOf(".")!==-1&&a[0]!==""&&a.unshift(""),{pathEnv:o,pathExt:a,pathExtExe:i}},tme=(e,r,n)=>{typeof r=="function"&&(n=r,r={}),r||(r={});let{pathEnv:o,pathExt:i,pathExtExe:a}=eme(e,r),c=[],u=p=>new Promise((f,g)=>{if(p===o.length)return r.all&&c.length?f(c):g(Xde(e));let x=o[p],b=/^".*"$/.test(x)?x.slice(1,-1):x,E=Zde.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];Qde(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)},Ust=(e,r)=>{r=r||{};let{pathEnv:n,pathExt:o,pathExtExe:i}=eme(e,r),a=[];for(let c=0;c<n.length;c++){let u=n[c],l=/^".*"$/.test(u)?u.slice(1,-1):u,p=Zde.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(Qde.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 Xde(e)};rme.exports=tme;tme.sync=Ust});var r9=C((mlr,t9)=>{"use strict";var ome=(e={})=>{let r=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(r).reverse().find(o=>o.toUpperCase()==="PATH")||"Path"};t9.exports=ome;t9.exports.default=ome});var cme=C((hlr,ame)=>{"use strict";var ime=require("path"),qst=nme(),Gst=r9();function sme(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=qst.sync(e.command,{path:n[Gst({env:n})],pathExt:r?ime.delimiter:void 0})}catch{}finally{a&&process.chdir(o)}return c&&(c=ime.resolve(i?e.options.cwd:"",c)),c}function Hst(e){return sme(e)||sme(e,!0)}ame.exports=Hst});var ume=C((glr,o9)=>{"use strict";var n9=/([()\][%!^"`<>&|;, *?])/g;function Wst(e){return e=e.replace(n9,"^$1"),e}function Vst(e,r){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(n9,"^$1"),r&&(e=e.replace(n9,"^$1")),e}o9.exports.command=Wst;o9.exports.argument=Vst});var pme=C((ylr,lme)=>{"use strict";lme.exports=/^#!(.*)/});var dme=C((xlr,fme)=>{"use strict";var zst=pme();fme.exports=(e="")=>{let r=e.match(zst);if(!r)return null;let[n,o]=r[0].replace(/#! ?/,"").split(" "),i=n.split("/").pop();return i==="env"?o:o?`${i} ${o}`:i}});var hme=C((blr,mme)=>{"use strict";var i9=require("fs"),Kst=dme();function Jst(e){let n=Buffer.alloc(150),o;try{o=i9.openSync(e,"r"),i9.readSync(o,n,0,150,0),i9.closeSync(o)}catch{}return Kst(n.toString())}mme.exports=Jst});var bme=C((Elr,xme)=>{"use strict";var Yst=require("path"),gme=cme(),yme=ume(),Zst=hme(),Qst=process.platform==="win32",Xst=/\.(?:com|exe)$/i,eat=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function tat(e){e.file=gme(e);let r=e.file&&Zst(e.file);return r?(e.args.unshift(e.file),e.command=r,gme(e)):e.file}function rat(e){if(!Qst)return e;let r=tat(e),n=!Xst.test(r);if(e.options.forceShell||n){let o=eat.test(r);e.command=Yst.normalize(e.command),e.command=yme.command(e.command),e.args=e.args.map(a=>yme.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 nat(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:rat(o)}xme.exports=nat});var Sme=C((vlr,vme)=>{"use strict";var s9=process.platform==="win32";function a9(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 oat(e,r){if(!s9)return;let n=e.emit;e.emit=function(o,i){if(o==="exit"){let a=Eme(i,r);if(a)return n.call(e,"error",a)}return n.apply(e,arguments)}}function Eme(e,r){return s9&&e===1&&!r.file?a9(r.original,"spawn"):null}function iat(e,r){return s9&&e===1&&!r.file?a9(r.original,"spawnSync"):null}vme.exports={hookChildProcess:oat,verifyENOENT:Eme,verifyENOENTSync:iat,notFoundError:a9}});var QO=C((Slr,zE)=>{"use strict";var wme=require("child_process"),c9=bme(),u9=Sme();function _me(e,r,n){let o=c9(e,r,n),i=wme.spawn(o.command,o.args,o.options);return u9.hookChildProcess(i,o),i}function sat(e,r,n){let o=c9(e,r,n),i=wme.spawnSync(o.command,o.args,o.options);return i.error=i.error||u9.verifyENOENTSync(i.status,o),i}zE.exports=_me;zE.exports.spawn=_me;zE.exports.sync=sat;zE.exports._parse=c9;zE.exports._enoent=u9});var A9=C((ypr,the)=>{"use strict";var{PassThrough:Qat}=require("stream");the.exports=function(){var e=[],r=new Qat({objectMode:!0});return r.setMaxListeners(0),r.add=n,r.isEmpty=o,r.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(n),r;function n(a){return Array.isArray(a)?(a.forEach(n),this):(e.push(a),a.once("end",i.bind(null,a)),a.once("error",r.emit.bind(r,"error")),a.pipe(r,{end:!1}),this)}function o(){return e.length==0}function i(a){e=e.filter(function(c){return c!==a}),!e.length&&r.readable&&r.end()}}});var Che=C((Lpr,Ahe)=>{"use strict";Ahe.exports=e=>function(){let r=arguments.length,n=new Array(r);for(let o=0;o<r;o+=1)n[o]=arguments[o];return new Promise((o,i)=>{n.push((a,c)=>{a?i(a):o(c)}),e.apply(null,n)})}});var ba=C((Bpr,Phe)=>{"use strict";var dR=require("fs"),fct=Che(),dct=e=>[typeof dR[e]=="function",!e.match(/Sync$/),!e.match(/^[A-Z]/),!e.match(/^create/),!e.match(/^(un)?watch/)].every(Boolean),mct=e=>{let r=dR[e];return fct(r)},hct=()=>{let e={};return Object.keys(dR).forEach(r=>{dct(r)?r==="exists"?e.exists=()=>{throw new Error("fs.exists() is deprecated")}:e[r]=mct(r):e[r]=dR[r]}),e};Phe.exports=hct()});var Zi=C((jpr,Fhe)=>{"use strict";var gct=e=>{let r=n=>["a","e","i","o","u"].indexOf(n[0])!==-1?`an ${n}`:`a ${n}`;return e.map(r).join(" or ")},Ihe=e=>/array of /.test(e),Ohe=e=>e.split(" of ")[1],Rhe=e=>Ihe(e)?Rhe(Ohe(e)):["string","number","boolean","array","object","buffer","null","undefined","function"].some(r=>r===e),ET=e=>e===null?"null":Array.isArray(e)?"array":Buffer.isBuffer(e)?"buffer":typeof e,yct=(e,r,n)=>n.indexOf(e)===r,xct=e=>{let r=ET(e),n;return r==="array"&&(n=e.map(o=>ET(o)).filter(yct),r+=` of ${n.join(", ")}`),r},bct=(e,r)=>{let n=Ohe(r);return ET(e)!=="array"?!1:e.every(o=>ET(o)===n)},k9=(e,r,n,o)=>{if(!o.some(a=>{if(!Rhe(a))throw new Error(`Unknown type "${a}"`);return Ihe(a)?bct(n,a):a===ET(n)}))throw new Error(`Argument "${r}" passed to ${e} must be ${gct(o)}. Received ${xct(n)}`)},Ect=(e,r,n,o)=>{n!==void 0&&(k9(e,r,n,["object"]),Object.keys(n).forEach(i=>{let a=`${r}.${i}`;if(o[i]!==void 0)k9(e,a,n[i],o[i]);else throw new Error(`Unknown argument "${a}" passed to ${e}`)}))};Fhe.exports={argument:k9,options:Ect}});var mR=C(Mhe=>{"use strict";Mhe.normalizeFileMode=e=>{let r;return typeof e=="number"?r=e.toString(8):r=e,r.substring(r.length-3)}});var gR=C(hR=>{"use strict";var khe=ba(),vct=Zi(),Sct=(e,r)=>{let n=`${e}([path])`;vct.argument(n,"path",r,["string","undefined"])},wct=e=>{khe.rmSync(e,{recursive:!0,force:!0,maxRetries:3})},_ct=e=>khe.rm(e,{recursive:!0,force:!0,maxRetries:3});hR.validateInput=Sct;hR.sync=wct;hR.async=_ct});var cy=C(YE=>{"use strict";var yR=require("path"),_p=ba(),N9=mR(),Nhe=Zi(),$he=gR(),Tct=(e,r,n)=>{let o=`${e}(path, [criteria])`;Nhe.argument(o,"path",r,["string"]),Nhe.options(o,"criteria",n,{empty:["boolean"],mode:["string","number"]})},Lhe=e=>{let r=e||{};return typeof r.empty!="boolean"&&(r.empty=!1),r.mode!==void 0&&(r.mode=N9.normalizeFileMode(r.mode)),r},Bhe=e=>new Error(`Path ${e} exists but is not a directory. Halting jetpack.dir() call for safety reasons.`),Dct=e=>{let r;try{r=_p.statSync(e)}catch(n){if(n.code!=="ENOENT")throw n}if(r&&!r.isDirectory())throw Bhe(e);return r},$9=(e,r)=>{let n=r||{};try{_p.mkdirSync(e,n.mode)}catch(o){if(o.code==="ENOENT")$9(yR.dirname(e),n),_p.mkdirSync(e,n.mode);else if(o.code!=="EEXIST")throw o}},Act=(e,r,n)=>{let o=()=>{let a=N9.normalizeFileMode(r.mode);n.mode!==void 0&&n.mode!==a&&_p.chmodSync(e,n.mode)},i=()=>{n.empty&&_p.readdirSync(e).forEach(c=>{$he.sync(yR.resolve(e,c))})};o(),i()},Cct=(e,r)=>{let n=Lhe(r),o=Dct(e);o?Act(e,o,n):$9(e,n)},Pct=e=>new Promise((r,n)=>{_p.stat(e).then(o=>{o.isDirectory()?r(o):n(Bhe(e))}).catch(o=>{o.code==="ENOENT"?r(void 0):n(o)})}),Ict=e=>new Promise((r,n)=>{_p.readdir(e).then(o=>{let i=a=>{if(a===o.length)r();else{let c=yR.resolve(e,o[a]);$he.async(c).then(()=>{i(a+1)})}};i(0)}).catch(n)}),Oct=(e,r,n)=>new Promise((o,i)=>{let a=()=>{let u=N9.normalizeFileMode(r.mode);return n.mode!==void 0&&n.mode!==u?_p.chmod(e,n.mode):Promise.resolve()},c=()=>n.empty?Ict(e):Promise.resolve();a().then(c).then(o,i)}),L9=(e,r)=>{let n=r||{};return new Promise((o,i)=>{_p.mkdir(e,n.mode).then(o).catch(a=>{a.code==="ENOENT"?L9(yR.dirname(e),n).then(()=>_p.mkdir(e,n.mode)).then(o).catch(c=>{c.code==="EEXIST"?o():i(c)}):a.code==="EEXIST"?o():i(a)})})},Rct=(e,r)=>new Promise((n,o)=>{let i=Lhe(r);Pct(e).then(a=>a!==void 0?Oct(e,a,i):L9(e,i)).then(n,o)});YE.validateInput=Tct;YE.sync=Cct;YE.createSync=$9;YE.async=Rct;YE.createAsync=L9});var vT=C(bR=>{"use strict";var jhe=require("path"),ZE=ba(),B9=Zi(),Uhe=cy(),Fct=(e,r,n,o)=>{let i=`${e}(path, data, [options])`;B9.argument(i,"path",r,["string"]),B9.argument(i,"data",n,["string","buffer","object","array"]),B9.options(i,"options",o,{mode:["string","number"],atomic:["boolean"],jsonIndent:["number"]})},xR=".__new__",qhe=(e,r)=>{let n=r;return typeof n!="number"&&(n=2),typeof e=="object"&&!Buffer.isBuffer(e)&&e!==null?JSON.stringify(e,null,n):e},Ghe=(e,r,n)=>{try{ZE.writeFileSync(e,r,n)}catch(o){if(o.code==="ENOENT")Uhe.createSync(jhe.dirname(e)),ZE.writeFileSync(e,r,n);else throw o}},Mct=(e,r,n)=>{Ghe(e+xR,r,n),ZE.renameSync(e+xR,e)},kct=(e,r,n)=>{let o=n||{},i=qhe(r,o.jsonIndent),a=Ghe;o.atomic&&(a=Mct),a(e,i,{mode:o.mode})},Hhe=(e,r,n)=>new Promise((o,i)=>{ZE.writeFile(e,r,n).then(o).catch(a=>{a.code==="ENOENT"?Uhe.createAsync(jhe.dirname(e)).then(()=>ZE.writeFile(e,r,n)).then(o,i):i(a)})}),Nct=(e,r,n)=>new Promise((o,i)=>{Hhe(e+xR,r,n).then(()=>ZE.rename(e+xR,e)).then(o,i)}),$ct=(e,r,n)=>{let o=n||{},i=qhe(r,o.jsonIndent),a=Hhe;return o.atomic&&(a=Nct),a(e,i,{mode:o.mode})};bR.validateInput=Fct;bR.sync=kct;bR.async=$ct});var zhe=C(ER=>{"use strict";var Whe=ba(),Vhe=vT(),j9=Zi(),Lct=(e,r,n,o)=>{let i=`${e}(path, data, [options])`;j9.argument(i,"path",r,["string"]),j9.argument(i,"data",n,["string","buffer"]),j9.options(i,"options",o,{mode:["string","number"]})},Bct=(e,r,n)=>{try{Whe.appendFileSync(e,r,n)}catch(o){if(o.code==="ENOENT")Vhe.sync(e,r,n);else throw o}},jct=(e,r,n)=>new Promise((o,i)=>{Whe.appendFile(e,r,n).then(o).catch(a=>{a.code==="ENOENT"?Vhe.async(e,r,n).then(o,i):i(a)})});ER.validateInput=Lct;ER.sync=Bct;ER.async=jct});var Zhe=C(wR=>{"use strict";var vR=ba(),U9=mR(),Khe=Zi(),SR=vT(),Uct=(e,r,n)=>{let o=`${e}(path, [criteria])`;Khe.argument(o,"path",r,["string"]),Khe.options(o,"criteria",n,{content:["string","buffer","object","array"],jsonIndent:["number"],mode:["string","number"]})},Jhe=e=>{let r=e||{};return r.mode!==void 0&&(r.mode=U9.normalizeFileMode(r.mode)),r},Yhe=e=>new Error(`Path ${e} exists but is not a file. Halting jetpack.file() call for safety reasons.`),qct=e=>{let r;try{r=vR.statSync(e)}catch(n){if(n.code!=="ENOENT")throw n}if(r&&!r.isFile())throw Yhe(e);return r},Gct=(e,r,n)=>{let o=U9.normalizeFileMode(r.mode),i=()=>n.content!==void 0?(SR.sync(e,n.content,{mode:o,jsonIndent:n.jsonIndent}),!0):!1,a=()=>{n.mode!==void 0&&n.mode!==o&&vR.chmodSync(e,n.mode)};i()||a()},Hct=(e,r)=>{let n="";r.content!==void 0&&(n=r.content),SR.sync(e,n,{mode:r.mode,jsonIndent:r.jsonIndent})},Wct=(e,r)=>{let n=Jhe(r),o=qct(e);o!==void 0?Gct(e,o,n):Hct(e,n)},Vct=e=>new Promise((r,n)=>{vR.stat(e).then(o=>{o.isFile()?r(o):n(Yhe(e))}).catch(o=>{o.code==="ENOENT"?r(void 0):n(o)})}),zct=(e,r,n)=>{let o=U9.normalizeFileMode(r.mode),i=()=>new Promise((c,u)=>{n.content!==void 0?SR.async(e,n.content,{mode:o,jsonIndent:n.jsonIndent}).then(()=>{c(!0)}).catch(u):c(!1)}),a=()=>{if(n.mode!==void 0&&n.mode!==o)return vR.chmod(e,n.mode)};return i().then(c=>{if(!c)return a()})},Kct=(e,r)=>{let n="";return r.content!==void 0&&(n=r.content),SR.async(e,n,{mode:r.mode,jsonIndent:r.jsonIndent})},Jct=(e,r)=>new Promise((n,o)=>{let i=Jhe(r);Vct(e).then(a=>a!==void 0?zct(e,a,i):Kct(e,i)).then(n,o)});wR.validateInput=Uct;wR.sync=Wct;wR.async=Jct});var XE=C(QE=>{"use strict";var Xhe=require("crypto"),Yct=require("path"),yh=ba(),Qhe=Zi(),q9=["md5","sha1","sha256","sha512"],G9=["report","follow"],Zct=(e,r,n)=>{let o=`${e}(path, [options])`;if(Qhe.argument(o,"path",r,["string"]),Qhe.options(o,"options",n,{checksum:["string"],mode:["boolean"],times:["boolean"],absolutePath:["boolean"],symlinks:["string"]}),n&&n.checksum!==void 0&&q9.indexOf(n.checksum)===-1)throw new Error(`Argument "options.checksum" passed to ${o} must have one of values: ${q9.join(", ")}`);if(n&&n.symlinks!==void 0&&G9.indexOf(n.symlinks)===-1)throw new Error(`Argument "options.symlinks" passed to ${o} must have one of values: ${G9.join(", ")}`)},ege=(e,r,n)=>{let o={};return o.name=Yct.basename(e),n.isFile()?(o.type="file",o.size=n.size):n.isDirectory()?o.type="dir":n.isSymbolicLink()?o.type="symlink":o.type="other",r.mode&&(o.mode=n.mode),r.times&&(o.accessTime=n.atime,o.modifyTime=n.mtime,o.changeTime=n.ctime,o.birthTime=n.birthtime),r.absolutePath&&(o.absolutePath=e),o},Qct=(e,r)=>{let n=Xhe.createHash(r),o=yh.readFileSync(e);return n.update(o),n.digest("hex")},Xct=(e,r,n)=>{r.type==="file"&&n.checksum?r[n.checksum]=Qct(e,n.checksum):r.type==="symlink"&&(r.pointsAt=yh.readlinkSync(e))},eut=(e,r)=>{let n=yh.lstatSync,o,i=r||{};i.symlinks==="follow"&&(n=yh.statSync);try{o=n(e)}catch(c){if(c.code==="ENOENT")return;throw c}let a=ege(e,i,o);return Xct(e,a,i),a},tut=(e,r)=>new Promise((n,o)=>{let i=Xhe.createHash(r),a=yh.createReadStream(e);a.on("data",c=>{i.update(c)}),a.on("end",()=>{n(i.digest("hex"))}),a.on("error",o)}),rut=(e,r,n)=>r.type==="file"&&n.checksum?tut(e,n.checksum).then(o=>(r[n.checksum]=o,r)):r.type==="symlink"?yh.readlink(e).then(o=>(r.pointsAt=o,r)):Promise.resolve(r),nut=(e,r)=>new Promise((n,o)=>{let i=yh.lstat,a=r||{};a.symlinks==="follow"&&(i=yh.stat),i(e).then(c=>{let u=ege(e,a,c);rut(e,u,a).then(n,o)}).catch(c=>{c.code==="ENOENT"?n(void 0):o(c)})});QE.supportedChecksumAlgorithms=q9;QE.symlinkOptions=G9;QE.validateInput=Zct;QE.sync=eut;QE.async=nut});var TR=C(_R=>{"use strict";var tge=ba(),out=Zi(),iut=(e,r)=>{let n=`${e}(path)`;out.argument(n,"path",r,["string","undefined"])},sut=e=>{try{return tge.readdirSync(e)}catch(r){if(r.code==="ENOENT")return;throw r}},aut=e=>new Promise((r,n)=>{tge.readdir(e).then(o=>{r(o)}).catch(o=>{o.code==="ENOENT"?r(void 0):n(o)})});_R.validateInput=iut;_R.sync=sut;_R.async=aut});var PR=C(H9=>{"use strict";var DR=require("fs"),AR=require("path"),ST=XE(),Jpr=TR(),CR=e=>e.isDirectory()?"dir":e.isFile()?"file":e.isSymbolicLink()?"symlink":"other",cut=(e,r,n)=>{r.maxLevelsDeep===void 0&&(r.maxLevelsDeep=1/0);let o=r.inspectOptions!==void 0;r.symlinks&&(r.inspectOptions===void 0?r.inspectOptions={symlinks:r.symlinks}:r.inspectOptions.symlinks=r.symlinks);let i=(c,u)=>{DR.readdirSync(c,{withFileTypes:!0}).forEach(l=>{let p=typeof l=="string",f;p?f=AR.join(c,l):f=AR.join(c,l.name);let g;if(o)g=ST.sync(f,r.inspectOptions);else if(p){let x=ST.sync(f,r.inspectOptions);g={name:x.name,type:x.type}}else{let x=CR(l);if(x==="symlink"&&r.symlinks==="follow"){let b=DR.statSync(f);g={name:l.name,type:CR(b)}}else g={name:l.name,type:x}}g!==void 0&&(n(f,g),g.type==="dir"&&u<r.maxLevelsDeep&&i(f,u+1))})},a=ST.sync(e,r.inspectOptions);a?(o?n(e,a):n(e,{name:a.name,type:a.type}),a.type==="dir"&&i(e,1)):n(e,void 0)},uut=5,lut=(e,r,n,o)=>{r.maxLevelsDeep===void 0&&(r.maxLevelsDeep=1/0);let i=r.inspectOptions!==void 0;r.symlinks&&(r.inspectOptions===void 0?r.inspectOptions={symlinks:r.symlinks}:r.inspectOptions.symlinks=r.symlinks);let a=[],c=0,u=()=>{if(a.length===0&&c===0)o();else if(a.length>0&&c<uut){let g=a.pop();c+=1,g()}},l=g=>{a.push(g),u()},p=()=>{c-=1,u()},f=(g,x)=>{let b=(E,S)=>{S.type==="dir"&&x<r.maxLevelsDeep&&f(E,x+1)};l(()=>{DR.readdir(g,{withFileTypes:!0},(E,S)=>{E?o(E):(S.forEach(_=>{let D=typeof _=="string",I;if(D?I=AR.join(g,_):I=AR.join(g,_.name),i||D)l(()=>{ST.async(I,r.inspectOptions).then(A=>{A!==void 0&&(i?n(I,A):n(I,{name:A.name,type:A.type}),b(I,A)),p()}).catch(A=>{o(A)})});else{let A=CR(_);if(A==="symlink"&&r.symlinks==="follow")l(()=>{DR.stat(I,(R,O)=>{if(R)o(R);else{let k={name:_.name,type:CR(O)};n(I,k),b(I,k),p()}})});else{let R={name:_.name,type:A};n(I,R),b(I,R)}}}),p())})})};ST.async(e,r.inspectOptions).then(g=>{g?(i?n(e,g):n(e,{name:g.name,type:g.type}),g.type==="dir"?f(e,1):o()):(n(e,void 0),o())}).catch(g=>{o(g)})};H9.sync=cut;H9.async=lut});var nge=C((Zpr,rge)=>{"use strict";var put=typeof process=="object"&&process&&process.platform==="win32";rge.exports=put?{sep:"\\"}:{sep:"/"}});var W9=C((Qpr,age)=>{"use strict";age.exports=ige;function ige(e,r,n){e instanceof RegExp&&(e=oge(e,n)),r instanceof RegExp&&(r=oge(r,n));var o=sge(e,r,n);return o&&{start:o[0],end:o[1],pre:n.slice(0,o[0]),body:n.slice(o[0]+e.length,o[1]),post:n.slice(o[1]+r.length)}}function oge(e,r){var n=r.match(e);return n?n[0]:null}ige.range=sge;function sge(e,r,n){var o,i,a,c,u,l=n.indexOf(e),p=n.indexOf(r,l+1),f=l;if(l>=0&&p>0){if(e===r)return[l,p];for(o=[],a=n.length;f>=0&&!u;)f==l?(o.push(f),l=n.indexOf(e,f+1)):o.length==1?u=[o.pop(),p]:(i=o.pop(),i<a&&(a=i,c=p),p=n.indexOf(r,f+1)),f=l<p&&l>=0?l:p;o.length&&(u=[a,c])}return u}});var hge=C((Xpr,mge)=>{"use strict";var cge=W9();mge.exports=mut;var uge="\0SLASH"+Math.random()+"\0",lge="\0OPEN"+Math.random()+"\0",z9="\0CLOSE"+Math.random()+"\0",pge="\0COMMA"+Math.random()+"\0",fge="\0PERIOD"+Math.random()+"\0";function V9(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function fut(e){return e.split("\\\\").join(uge).split("\\{").join(lge).split("\\}").join(z9).split("\\,").join(pge).split("\\.").join(fge)}function dut(e){return e.split(uge).join("\\").split(lge).join("{").split(z9).join("}").split(pge).join(",").split(fge).join(".")}function dge(e){if(!e)return[""];var r=[],n=cge("{","}",e);if(!n)return e.split(",");var o=n.pre,i=n.body,a=n.