UNPKG

@angular/fire

Version:
7 lines (5 loc) 972 kB
var aC=Object.create;var ei=Object.defineProperty,uC=Object.defineProperties,cC=Object.getOwnPropertyDescriptor,lC=Object.getOwnPropertyDescriptors,fC=Object.getOwnPropertyNames,B2=Object.getOwnPropertySymbols,hC=Object.getPrototypeOf,I2=Object.prototype.hasOwnProperty,xC=Object.prototype.propertyIsEnumerable;var R2=(e,t,r)=>t in e?ei(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ee=(e,t)=>{for(var r in t||(t={}))I2.call(t,r)&&R2(e,r,t[r]);if(B2)for(var r of B2(t))xC.call(t,r)&&R2(e,r,t[r]);return e},Te=(e,t)=>uC(e,lC(t));var c=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),dC=(e,t)=>{for(var r in t)ei(e,r,{get:t[r],enumerable:!0})},M2=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of fC(t))!I2.call(e,i)&&i!==r&&ei(e,i,{get:()=>t[i],enumerable:!(n=cC(t,i))||n.enumerable});return e};var jr=(e,t,r)=>(r=e!=null?aC(hC(e)):{},M2(t||!e||!e.__esModule?ei(r,"default",{value:e,enumerable:!0}):r,e)),pC=e=>M2(ei({},"__esModule",{value:!0}),e);var Ve=(e,t,r)=>new Promise((n,i)=>{var s=u=>{try{a(r.next(u))}catch(l){i(l)}},o=u=>{try{a(r.throw(u))}catch(l){i(l)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,o);a((r=r.apply(e,t)).next())});var ke=c(Xa=>{"use strict";Xa.fromCallback=function(e){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")e.apply(this,arguments);else return new Promise((t,r)=>{arguments[arguments.length]=(n,i)=>{if(n)return r(n);t(i)},arguments.length++,e.apply(this,arguments)})},"name",{value:e.name})};Xa.fromPromise=function(e){return Object.defineProperty(function(){let t=arguments[arguments.length-1];if(typeof t!="function")return e.apply(this,arguments);e.apply(this,arguments).then(r=>t(null,r),t)},"name",{value:e.name})}});var k2=c((kZ,P2)=>{var Nt=require("constants"),gC=process.cwd,Ns=null,mC=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Ns||(Ns=gC.call(process)),Ns};try{process.cwd()}catch(e){}typeof process.chdir=="function"&&(Ja=process.chdir,process.chdir=function(e){Ns=null,Ja.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ja));var Ja;P2.exports=yC;function yC(e){Nt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(f,h,d){d&&process.nextTick(d)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(f,h,d,x){x&&process.nextTick(x)},e.lchownSync=function(){}),mC==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(f){function h(d,x,p){var g=Date.now(),y=0;f(d,x,function E(D){if(D&&(D.code==="EACCES"||D.code==="EPERM"||D.code==="EBUSY")&&Date.now()-g<6e4){setTimeout(function(){e.stat(x,function(v,B){v&&v.code==="ENOENT"?f(d,x,E):p(D)})},y),y<100&&(y+=10);return}p&&p(D)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h}(e.rename)),e.read=typeof e.read!="function"?e.read:function(f){function h(d,x,p,g,y,E){var D;if(E&&typeof E=="function"){var v=0;D=function(B,I,G){if(B&&B.code==="EAGAIN"&&v<10)return v++,f.call(e,d,x,p,g,y,D);E.apply(this,arguments)}}return f.call(e,d,x,p,g,y,D)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(f){return function(h,d,x,p,g){for(var y=0;;)try{return f.call(e,h,d,x,p,g)}catch(E){if(E.code==="EAGAIN"&&y<10){y++;continue}throw E}}}(e.readSync);function t(f){f.lchmod=function(h,d,x){f.open(h,Nt.O_WRONLY|Nt.O_SYMLINK,d,function(p,g){if(p){x&&x(p);return}f.fchmod(g,d,function(y){f.close(g,function(E){x&&x(y||E)})})})},f.lchmodSync=function(h,d){var x=f.openSync(h,Nt.O_WRONLY|Nt.O_SYMLINK,d),p=!0,g;try{g=f.fchmodSync(x,d),p=!1}finally{if(p)try{f.closeSync(x)}catch(y){}else f.closeSync(x)}return g}}function r(f){Nt.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(h,d,x,p){f.open(h,Nt.O_SYMLINK,function(g,y){if(g){p&&p(g);return}f.futimes(y,d,x,function(E){f.close(y,function(D){p&&p(E||D)})})})},f.lutimesSync=function(h,d,x){var p=f.openSync(h,Nt.O_SYMLINK),g,y=!0;try{g=f.futimesSync(p,d,x),y=!1}finally{if(y)try{f.closeSync(p)}catch(E){}else f.closeSync(p)}return g}):f.futimes&&(f.lutimes=function(h,d,x,p){p&&process.nextTick(p)},f.lutimesSync=function(){})}function n(f){return f&&function(h,d,x){return f.call(e,h,d,function(p){l(p)&&(p=null),x&&x.apply(this,arguments)})}}function i(f){return f&&function(h,d){try{return f.call(e,h,d)}catch(x){if(!l(x))throw x}}}function s(f){return f&&function(h,d,x,p){return f.call(e,h,d,x,function(g){l(g)&&(g=null),p&&p.apply(this,arguments)})}}function o(f){return f&&function(h,d,x){try{return f.call(e,h,d,x)}catch(p){if(!l(p))throw p}}}function a(f){return f&&function(h,d,x){typeof d=="function"&&(x=d,d=null);function p(g,y){y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),x&&x.apply(this,arguments)}return d?f.call(e,h,d,p):f.call(e,h,p)}}function u(f){return f&&function(h,d){var x=d?f.call(e,h,d):f.call(e,h);return x&&(x.uid<0&&(x.uid+=4294967296),x.gid<0&&(x.gid+=4294967296)),x}}function l(f){if(!f||f.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var N2=c((LZ,j2)=>{var L2=require("stream").Stream;j2.exports=EC;function EC(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);L2.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),a=0,u=o.length;a<u;a++){var l=o[a];this[l]=i[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}e.open(this.path,this.flags,this.mode,function(f,h){if(f){s.emit("error",f),s.readable=!1;return}s.fd=h,s.emit("open",h),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);L2.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var u=s[o];this[u]=i[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var U2=c((jZ,$2)=>{"use strict";$2.exports=DC;var bC=Object.getPrototypeOf||function(e){return e.__proto__};function DC(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:bC(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var de=c((NZ,eu)=>{var ue=require("fs"),vC=k2(),wC=N2(),FC=U2(),$s=require("util"),De,Gs;typeof Symbol=="function"&&typeof Symbol.for=="function"?(De=Symbol.for("graceful-fs.queue"),Gs=Symbol.for("graceful-fs.previous")):(De="___graceful-fs.queue",Gs="___graceful-fs.previous");function _C(){}function z2(e,t){Object.defineProperty(e,De,{get:function(){return t}})}var or=_C;$s.debuglog?or=$s.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(or=function(){var e=$s.format.apply($s,arguments);e="GFS4: "+e.split(/\n/).join(` GFS4: `),console.error(e)});ue[De]||(G2=global[De]||[],z2(ue,G2),ue.close=function(e){function t(r,n){return e.call(ue,r,function(i){i||W2(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,Gs,{value:e}),t}(ue.close),ue.closeSync=function(e){function t(r){e.apply(ue,arguments),W2()}return Object.defineProperty(t,Gs,{value:e}),t}(ue.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){or(ue[De]),require("assert").equal(ue[De].length,0)}));var G2;global[De]||z2(global,ue[De]);eu.exports=Qa(FC(ue));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ue.__patched&&(eu.exports=Qa(ue),ue.__patched=!0);function Qa(e){vC(e),e.gracefulify=Qa,e.createReadStream=I,e.createWriteStream=G;var t=e.readFile;e.readFile=r;function r(F,R,w){return typeof R=="function"&&(w=R,R=null),W(F,R,w);function W($,H,Z,m){return t($,H,function(b){b&&(b.code==="EMFILE"||b.code==="ENFILE")?Nr([W,[$,H,Z],b,m||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(F,R,w,W){return typeof w=="function"&&(W=w,w=null),$(F,R,w,W);function $(H,Z,m,b,P){return n(H,Z,m,function(j){j&&(j.code==="EMFILE"||j.code==="ENFILE")?Nr([$,[H,Z,m,b],j,P||Date.now(),Date.now()]):typeof b=="function"&&b.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(F,R,w,W){return typeof w=="function"&&(W=w,w=null),$(F,R,w,W);function $(H,Z,m,b,P){return s(H,Z,m,function(j){j&&(j.code==="EMFILE"||j.code==="ENFILE")?Nr([$,[H,Z,m,b],j,P||Date.now(),Date.now()]):typeof b=="function"&&b.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=u);function u(F,R,w,W){return typeof w=="function"&&(W=w,w=0),$(F,R,w,W);function $(H,Z,m,b,P){return a(H,Z,m,function(j){j&&(j.code==="EMFILE"||j.code==="ENFILE")?Nr([$,[H,Z,m,b],j,P||Date.now(),Date.now()]):typeof b=="function"&&b.apply(this,arguments)})}}var l=e.readdir;e.readdir=h;var f=/^v[0-5]\./;function h(F,R,w){typeof R=="function"&&(w=R,R=null);var W=f.test(process.version)?function(Z,m,b,P){return l(Z,$(Z,m,b,P))}:function(Z,m,b,P){return l(Z,m,$(Z,m,b,P))};return W(F,R,w);function $(H,Z,m,b){return function(P,j){P&&(P.code==="EMFILE"||P.code==="ENFILE")?Nr([W,[H,Z,m],P,b||Date.now(),Date.now()]):(j&&j.sort&&j.sort(),typeof m=="function"&&m.call(this,P,j))}}}if(process.version.substr(0,4)==="v0.8"){var d=wC(e);E=d.ReadStream,v=d.WriteStream}var x=e.ReadStream;x&&(E.prototype=Object.create(x.prototype),E.prototype.open=D);var p=e.WriteStream;p&&(v.prototype=Object.create(p.prototype),v.prototype.open=B),Object.defineProperty(e,"ReadStream",{get:function(){return E},set:function(F){E=F},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return v},set:function(F){v=F},enumerable:!0,configurable:!0});var g=E;Object.defineProperty(e,"FileReadStream",{get:function(){return g},set:function(F){g=F},enumerable:!0,configurable:!0});var y=v;Object.defineProperty(e,"FileWriteStream",{get:function(){return y},set:function(F){y=F},enumerable:!0,configurable:!0});function E(F,R){return this instanceof E?(x.apply(this,arguments),this):E.apply(Object.create(E.prototype),arguments)}function D(){var F=this;L(F.path,F.flags,F.mode,function(R,w){R?(F.autoClose&&F.destroy(),F.emit("error",R)):(F.fd=w,F.emit("open",w),F.read())})}function v(F,R){return this instanceof v?(p.apply(this,arguments),this):v.apply(Object.create(v.prototype),arguments)}function B(){var F=this;L(F.path,F.flags,F.mode,function(R,w){R?(F.destroy(),F.emit("error",R)):(F.fd=w,F.emit("open",w))})}function I(F,R){return new e.ReadStream(F,R)}function G(F,R){return new e.WriteStream(F,R)}var Q=e.open;e.open=L;function L(F,R,w,W){return typeof w=="function"&&(W=w,w=null),$(F,R,w,W);function $(H,Z,m,b,P){return Q(H,Z,m,function(j,M){j&&(j.code==="EMFILE"||j.code==="ENFILE")?Nr([$,[H,Z,m,b],j,P||Date.now(),Date.now()]):typeof b=="function"&&b.apply(this,arguments)})}}return e}function Nr(e){or("ENQUEUE",e[0].name,e[1]),ue[De].push(e),Za()}var Us;function W2(){for(var e=Date.now(),t=0;t<ue[De].length;++t)ue[De][t].length>2&&(ue[De][t][3]=e,ue[De][t][4]=e);Za()}function Za(){if(clearTimeout(Us),Us=void 0,ue[De].length!==0){var e=ue[De].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)or("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){or("TIMEOUT",t.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,u=Math.max(s-i,1),l=Math.min(u*1.2,100);a>=l?(or("RETRY",t.name,r),t.apply(null,r.concat([i]))):ue[De].push(e)}Us===void 0&&(Us=setTimeout(Za,0))}}});var tu=c(ar=>{"use strict";var V2=ke().fromCallback,He=de(),CC=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof He[e]=="function");Object.keys(He).forEach(e=>{e!=="promises"&&(ar[e]=He[e])});CC.forEach(e=>{ar[e]=V2(He[e])});ar.exists=function(e,t){return typeof t=="function"?He.exists(e,t):new Promise(r=>He.exists(e,r))};ar.read=function(e,t,r,n,i,s){return typeof s=="function"?He.read(e,t,r,n,i,s):new Promise((o,a)=>{He.read(e,t,r,n,i,(u,l,f)=>{if(u)return a(u);o({bytesRead:l,buffer:f})})})};ar.write=function(e,t,...r){return typeof r[r.length-1]=="function"?He.write(e,t,...r):new Promise((n,i)=>{He.write(e,t,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof He.realpath.native=="function"&&(ar.realpath.native=V2(He.realpath.native))});var nu=c((UZ,K2)=>{"use strict";var ru=require("path");function H2(e){return e=ru.normalize(ru.resolve(e)).split(ru.sep),e.length>0?e[0]:null}var SC=/[<>:"|?*]/;function AC(e){let t=H2(e);return e=e.replace(t,""),SC.test(e)}K2.exports={getRootPath:H2,invalidWin32Path:AC}});var X2=c((GZ,Y2)=>{"use strict";var OC=de(),iu=require("path"),qC=nu().invalidWin32Path,TC=parseInt("0777",8);function su(e,t,r,n){if(typeof t=="function"?(r=t,t={}):(!t||typeof t!="object")&&(t={mode:t}),process.platform==="win32"&&qC(e)){let o=new Error(e+" contains invalid WIN32 path characters.");return o.code="EINVAL",r(o)}let i=t.mode,s=t.fs||OC;i===void 0&&(i=TC&~process.umask()),n||(n=null),r=r||function(){},e=iu.resolve(e),s.mkdir(e,i,o=>{if(!o)return n=n||e,r(null,n);switch(o.code){case"ENOENT":if(iu.dirname(e)===e)return r(o);su(iu.dirname(e),t,(a,u)=>{a?r(a,u):su(e,t,r,u)});break;default:s.stat(e,(a,u)=>{a||!u.isDirectory()?r(o,n):r(null,n)});break}})}Y2.exports=su});var Q2=c((WZ,J2)=>{"use strict";var BC=de(),ou=require("path"),RC=nu().invalidWin32Path,IC=parseInt("0777",8);function au(e,t,r){(!t||typeof t!="object")&&(t={mode:t});let n=t.mode,i=t.fs||BC;if(process.platform==="win32"&&RC(e)){let s=new Error(e+" contains invalid WIN32 path characters.");throw s.code="EINVAL",s}n===void 0&&(n=IC&~process.umask()),r||(r=null),e=ou.resolve(e);try{i.mkdirSync(e,n),r=r||e}catch(s){if(s.code==="ENOENT"){if(ou.dirname(e)===e)throw s;r=au(ou.dirname(e),t,r),au(e,t,r)}else{let o;try{o=i.statSync(e)}catch(a){throw s}if(!o.isDirectory())throw s}}return r}J2.exports=au});var Ge=c((zZ,Z2)=>{"use strict";var MC=ke().fromCallback,uu=MC(X2()),cu=Q2();Z2.exports={mkdirs:uu,mkdirsSync:cu,mkdirp:uu,mkdirpSync:cu,ensureDir:uu,ensureDirSync:cu}});var lu=c((VZ,tx)=>{"use strict";var Se=de(),ex=require("os"),Ws=require("path");function PC(){let e=Ws.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));e=Ws.join(ex.tmpdir(),e);let t=new Date(1435410243862);Se.writeFileSync(e,"https://github.com/jprichardson/node-fs-extra/pull/141");let r=Se.openSync(e,"r+");return Se.futimesSync(r,t,t),Se.closeSync(r),Se.statSync(e).mtime>1435410243e3}function kC(e){let t=Ws.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));t=Ws.join(ex.tmpdir(),t);let r=new Date(1435410243862);Se.writeFile(t,"https://github.com/jprichardson/node-fs-extra/pull/141",n=>{if(n)return e(n);Se.open(t,"r+",(i,s)=>{if(i)return e(i);Se.futimes(s,r,r,o=>{if(o)return e(o);Se.close(s,a=>{if(a)return e(a);Se.stat(t,(u,l)=>{if(u)return e(u);e(null,l.mtime>1435410243e3)})})})})})}function LC(e){if(typeof e=="number")return Math.floor(e/1e3)*1e3;if(e instanceof Date)return new Date(Math.floor(e.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function jC(e,t,r,n){Se.open(e,"r+",(i,s)=>{if(i)return n(i);Se.futimes(s,t,r,o=>{Se.close(s,a=>{n&&n(o||a)})})})}function NC(e,t,r){let n=Se.openSync(e,"r+");return Se.futimesSync(n,t,r),Se.closeSync(n)}tx.exports={hasMillisRes:kC,hasMillisResSync:PC,timeRemoveMillis:LC,utimesMillis:jC,utimesMillisSync:NC}});var ni=c((HZ,ax)=>{"use strict";var Ke=de(),Le=require("path"),rx=10,nx=5,$C=0,hu=process.versions.node.split("."),ix=Number.parseInt(hu[0],10),sx=Number.parseInt(hu[1],10),UC=Number.parseInt(hu[2],10);function ti(){if(ix>rx)return!0;if(ix===rx){if(sx>nx)return!0;if(sx===nx&&UC>=$C)return!0}return!1}function GC(e,t,r){ti()?Ke.stat(e,{bigint:!0},(n,i)=>{if(n)return r(n);Ke.stat(t,{bigint:!0},(s,o)=>s?s.code==="ENOENT"?r(null,{srcStat:i,destStat:null}):r(s):r(null,{srcStat:i,destStat:o}))}):Ke.stat(e,(n,i)=>{if(n)return r(n);Ke.stat(t,(s,o)=>s?s.code==="ENOENT"?r(null,{srcStat:i,destStat:null}):r(s):r(null,{srcStat:i,destStat:o}))})}function WC(e,t){let r,n;ti()?r=Ke.statSync(e,{bigint:!0}):r=Ke.statSync(e);try{ti()?n=Ke.statSync(t,{bigint:!0}):n=Ke.statSync(t)}catch(i){if(i.code==="ENOENT")return{srcStat:r,destStat:null};throw i}return{srcStat:r,destStat:n}}function zC(e,t,r,n){GC(e,t,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;return a&&a.ino&&a.dev&&a.ino===o.ino&&a.dev===o.dev?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&xu(e,t)?n(new Error(ri(e,t,r))):n(null,{srcStat:o,destStat:a})})}function VC(e,t,r){let{srcStat:n,destStat:i}=WC(e,t);if(i&&i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev)throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&xu(e,t))throw new Error(ri(e,t,r));return{srcStat:n,destStat:i}}function fu(e,t,r,n,i){let s=Le.resolve(Le.dirname(e)),o=Le.resolve(Le.dirname(r));if(o===s||o===Le.parse(o).root)return i();ti()?Ke.stat(o,{bigint:!0},(a,u)=>a?a.code==="ENOENT"?i():i(a):u.ino&&u.dev&&u.ino===t.ino&&u.dev===t.dev?i(new Error(ri(e,r,n))):fu(e,t,o,n,i)):Ke.stat(o,(a,u)=>a?a.code==="ENOENT"?i():i(a):u.ino&&u.dev&&u.ino===t.ino&&u.dev===t.dev?i(new Error(ri(e,r,n))):fu(e,t,o,n,i))}function ox(e,t,r,n){let i=Le.resolve(Le.dirname(e)),s=Le.resolve(Le.dirname(r));if(s===i||s===Le.parse(s).root)return;let o;try{ti()?o=Ke.statSync(s,{bigint:!0}):o=Ke.statSync(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(o.ino&&o.dev&&o.ino===t.ino&&o.dev===t.dev)throw new Error(ri(e,r,n));return ox(e,t,s,n)}function xu(e,t){let r=Le.resolve(e).split(Le.sep).filter(i=>i),n=Le.resolve(t).split(Le.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function ri(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}ax.exports={checkPaths:zC,checkPathsSync:VC,checkParentPaths:fu,checkParentPathsSync:ox,isSrcSubdir:xu}});var cx=c((KZ,ux)=>{"use strict";ux.exports=function(e){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(e)}catch(t){return new Buffer(e)}return new Buffer(e)}});var dx=c((YZ,xx)=>{"use strict";var oe=de(),ii=require("path"),HC=Ge().mkdirsSync,KC=lu().utimesMillisSync,si=ni();function YC(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended; see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=si.checkPathsSync(e,t,"copy");return si.checkParentPathsSync(e,n,t,"copy"),XC(i,e,t,r)}function XC(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=ii.dirname(r);return oe.existsSync(i)||HC(i),lx(e,t,r,n)}function lx(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return JC(e,t,r,n)}function JC(e,t,r,n){let s=(n.dereference?oe.statSync:oe.lstatSync)(t);if(s.isDirectory())return tS(s,e,t,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return QC(s,e,t,r,n);if(s.isSymbolicLink())return iS(e,t,r,n)}function QC(e,t,r,n,i){return t?ZC(e,r,n,i):fx(e,r,n,i)}function ZC(e,t,r,n){if(n.overwrite)return oe.unlinkSync(r),fx(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function fx(e,t,r,n){return typeof oe.copyFileSync=="function"?(oe.copyFileSync(t,r),oe.chmodSync(r,e.mode),n.preserveTimestamps?KC(r,e.atime,e.mtime):void 0):eS(e,t,r,n)}function eS(e,t,r,n){let s=cx()(65536),o=oe.openSync(t,"r"),a=oe.openSync(r,"w",e.mode),u=0;for(;u<e.size;){let l=oe.readSync(o,s,0,65536,u);oe.writeSync(a,s,0,l),u+=l}n.preserveTimestamps&&oe.futimesSync(a,e.atime,e.mtime),oe.closeSync(o),oe.closeSync(a)}function tS(e,t,r,n,i){if(!t)return rS(e,r,n,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return hx(r,n,i)}function rS(e,t,r,n){return oe.mkdirSync(r),hx(t,r,n),oe.chmodSync(r,e.mode)}function hx(e,t,r){oe.readdirSync(e).forEach(n=>nS(n,e,t,r))}function nS(e,t,r,n){let i=ii.join(t,e),s=ii.join(r,e),{destStat:o}=si.checkPathsSync(i,s,"copy");return lx(o,i,s,n)}function iS(e,t,r,n){let i=oe.readlinkSync(t);if(n.dereference&&(i=ii.resolve(process.cwd(),i)),e){let s;try{s=oe.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return oe.symlinkSync(i,r);throw o}if(n.dereference&&(s=ii.resolve(process.cwd(),s)),si.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(oe.statSync(r).isDirectory()&&si.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return sS(i,r)}else return oe.symlinkSync(i,r)}function sS(e,t){return oe.unlinkSync(t),oe.symlinkSync(e,t)}xx.exports=YC});var du=c((XZ,px)=>{"use strict";px.exports={copySync:dx()}});var mt=c((JZ,mx)=>{"use strict";var oS=ke().fromPromise,gx=tu();function aS(e){return gx.access(e).then(()=>!0).catch(()=>!1)}mx.exports={pathExists:oS(aS),pathExistsSync:gx.existsSync}});var Cx=c((QZ,_x)=>{"use strict";var ve=de(),oi=require("path"),uS=Ge().mkdirs,cS=mt().pathExists,lS=lu().utimesMillis,ai=ni();function fS(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended; see https://github.com/jprichardson/node-fs-extra/issues/269`),ai.checkPaths(e,t,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;ai.checkParentPaths(e,o,t,"copy",u=>u?n(u):r.filter?bx(yx,a,e,t,r,n):yx(a,e,t,r,n))})}function yx(e,t,r,n,i){let s=oi.dirname(r);cS(s,(o,a)=>{if(o)return i(o);if(a)return pu(e,t,r,n,i);uS(s,u=>u?i(u):pu(e,t,r,n,i))})}function bx(e,t,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?e(t,r,n,i,s):s(),o=>s(o))}function pu(e,t,r,n,i){return n.filter?bx(Ex,e,t,r,n,i):Ex(e,t,r,n,i)}function Ex(e,t,r,n,i){(n.dereference?ve.stat:ve.lstat)(t,(o,a)=>{if(o)return i(o);if(a.isDirectory())return pS(a,e,t,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return hS(a,e,t,r,n,i);if(a.isSymbolicLink())return yS(e,t,r,n,i)})}function hS(e,t,r,n,i,s){return t?xS(e,r,n,i,s):Dx(e,r,n,i,s)}function xS(e,t,r,n,i){if(n.overwrite)ve.unlink(r,s=>s?i(s):Dx(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function Dx(e,t,r,n,i){return typeof ve.copyFile=="function"?ve.copyFile(t,r,s=>s?i(s):vx(e,r,n,i)):dS(e,t,r,n,i)}function dS(e,t,r,n,i){let s=ve.createReadStream(t);s.on("error",o=>i(o)).once("open",()=>{let o=ve.createWriteStream(r,{mode:e.mode});o.on("error",a=>i(a)).on("open",()=>s.pipe(o)).once("close",()=>vx(e,r,n,i))})}function vx(e,t,r,n){ve.chmod(t,e.mode,i=>i?n(i):r.preserveTimestamps?lS(t,e.atime,e.mtime,n):n())}function pS(e,t,r,n,i,s){return t?t&&!t.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):wx(r,n,i,s):gS(e,r,n,i,s)}function gS(e,t,r,n,i){ve.mkdir(r,s=>{if(s)return i(s);wx(t,r,n,o=>o?i(o):ve.chmod(r,e.mode,i))})}function wx(e,t,r,n){ve.readdir(e,(i,s)=>i?n(i):Fx(s,e,t,r,n))}function Fx(e,t,r,n,i){let s=e.pop();return s?mS(e,s,t,r,n,i):i()}function mS(e,t,r,n,i,s){let o=oi.join(r,t),a=oi.join(n,t);ai.checkPaths(o,a,"copy",(u,l)=>{if(u)return s(u);let{destStat:f}=l;pu(f,o,a,i,h=>h?s(h):Fx(e,r,n,i,s))})}function yS(e,t,r,n,i){ve.readlink(t,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=oi.resolve(process.cwd(),o)),e)ve.readlink(r,(a,u)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?ve.symlink(o,r,i):i(a):(n.dereference&&(u=oi.resolve(process.cwd(),u)),ai.isSrcSubdir(o,u)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${u}'.`)):e.isDirectory()&&ai.isSrcSubdir(u,o)?i(new Error(`Cannot overwrite '${u}' with '${o}'.`)):ES(o,r,i)));else return ve.symlink(o,r,i)})}function ES(e,t,r){ve.unlink(t,n=>n?r(n):ve.symlink(e,t,r))}_x.exports=fS});var gu=c((ZZ,Sx)=>{"use strict";var bS=ke().fromCallback;Sx.exports={copy:bS(Cx())}});var Px=c((eee,Mx)=>{"use strict";var Ax=de(),Bx=require("path"),K=require("assert"),ui=process.platform==="win32";function Rx(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||Ax[r],r=r+"Sync",e[r]=e[r]||Ax[r]}),e.maxBusyTries=e.maxBusyTries||3}function mu(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),K(e,"rimraf: missing path"),K.strictEqual(typeof e,"string","rimraf: path should be a string"),K.strictEqual(typeof r,"function","rimraf: callback function required"),K(t,"rimraf: invalid options argument provided"),K.strictEqual(typeof t,"object","rimraf: options should be object"),Rx(t),Ox(e,t,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<t.maxBusyTries){n++;let o=n*100;return setTimeout(()=>Ox(e,t,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function Ox(e,t,r){K(e),K(t),K(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&ui)return qx(e,t,n,r);if(i&&i.isDirectory())return zs(e,t,n,r);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return ui?qx(e,t,s,r):zs(e,t,s,r);if(s.code==="EISDIR")return zs(e,t,s,r)}return r(s)})})}function qx(e,t,r,n){K(e),K(t),K(typeof n=="function"),r&&K(r instanceof Error),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?zs(e,t,r,n):t.unlink(e,n)})})}function Tx(e,t,r){let n;K(e),K(t),r&&K(r instanceof Error);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?Vs(e,t,r):t.unlinkSync(e)}function zs(e,t,r,n){K(e),K(t),r&&K(r instanceof Error),K(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?DS(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function DS(e,t,r){K(e),K(t),K(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return t.rmdir(e,r);i.forEach(a=>{mu(Bx.join(e,a),t,u=>{if(!o){if(u)return r(o=u);--s===0&&t.rmdir(e,r)}})})})}function Ix(e,t){let r;t=t||{},Rx(t),K(e,"rimraf: missing path"),K.strictEqual(typeof e,"string","rimraf: path should be a string"),K(t,"rimraf: missing options"),K.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&ui&&Tx(e,t,n)}try{r&&r.isDirectory()?Vs(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return ui?Tx(e,t,n):Vs(e,t,n);if(n.code!=="EISDIR")throw n;Vs(e,t,n)}}function Vs(e,t,r){K(e),K(t),r&&K(r instanceof Error);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")vS(e,t);else if(n.code!=="ENOENT")throw n}}function vS(e,t){if(K(e),K(t),t.readdirSync(e).forEach(r=>Ix(Bx.join(e,r),t)),ui){let r=Date.now();do try{return t.rmdirSync(e,t)}catch(n){}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}Mx.exports=mu;mu.sync=Ix});var ci=c((tee,Lx)=>{"use strict";var wS=ke().fromCallback,kx=Px();Lx.exports={remove:wS(kx),removeSync:kx.sync}});var Vx=c((ree,zx)=>{"use strict";var FS=ke().fromCallback,$x=de(),Ux=require("path"),Gx=Ge(),Wx=ci(),jx=FS(function(t,r){r=r||function(){},$x.readdir(t,(n,i)=>{if(n)return Gx.mkdirs(t,r);i=i.map(o=>Ux.join(t,o)),s();function s(){let o=i.pop();if(!o)return r();Wx.remove(o,a=>{if(a)return r(a);s()})}})});function Nx(e){let t;try{t=$x.readdirSync(e)}catch(r){return Gx.mkdirsSync(e)}t.forEach(r=>{r=Ux.join(e,r),Wx.removeSync(r)})}zx.exports={emptyDirSync:Nx,emptydirSync:Nx,emptyDir:jx,emptydir:jx}});var Xx=c((nee,Yx)=>{"use strict";var _S=ke().fromCallback,Hx=require("path"),li=de(),Kx=Ge(),CS=mt().pathExists;function SS(e,t){function r(){li.writeFile(e,"",n=>{if(n)return t(n);t()})}li.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let s=Hx.dirname(e);CS(s,(o,a)=>{if(o)return t(o);if(a)return r();Kx.mkdirs(s,u=>{if(u)return t(u);r()})})})}function AS(e){let t;try{t=li.statSync(e)}catch(n){}if(t&&t.isFile())return;let r=Hx.dirname(e);li.existsSync(r)||Kx.mkdirsSync(r),li.writeFileSync(e,"")}Yx.exports={createFile:_S(SS),createFileSync:AS}});var t1=c((iee,e1)=>{"use strict";var OS=ke().fromCallback,Qx=require("path"),ur=de(),Zx=Ge(),Jx=mt().pathExists;function qS(e,t,r){function n(i,s){ur.link(i,s,o=>{if(o)return r(o);r(null)})}Jx(t,(i,s)=>{if(i)return r(i);if(s)return r(null);ur.lstat(e,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);let a=Qx.dirname(t);Jx(a,(u,l)=>{if(u)return r(u);if(l)return n(e,t);Zx.mkdirs(a,f=>{if(f)return r(f);n(e,t)})})})})}function TS(e,t){if(ur.existsSync(t))return;try{ur.lstatSync(e)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=Qx.dirname(t);return ur.existsSync(n)||Zx.mkdirsSync(n),ur.linkSync(e,t)}e1.exports={createLink:OS(qS),createLinkSync:TS}});var n1=c((see,r1)=>{"use strict";var $t=require("path"),fi=de(),BS=mt().pathExists;function RS(e,t,r){if($t.isAbsolute(e))return fi.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=$t.dirname(t),i=$t.join(n,e);return BS(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:e}):fi.lstat(e,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:e,toDst:$t.relative(n,e)})))}}function IS(e,t){let r;if($t.isAbsolute(e)){if(r=fi.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=$t.dirname(t),i=$t.join(n,e);if(r=fi.existsSync(i),r)return{toCwd:i,toDst:e};if(r=fi.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:$t.relative(n,e)}}}r1.exports={symlinkPaths:RS,symlinkPathsSync:IS}});var o1=c((oee,s1)=>{"use strict";var i1=de();function MS(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);i1.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function PS(e,t){let r;if(t)return t;try{r=i1.lstatSync(e)}catch(n){return"file"}return r&&r.isDirectory()?"dir":"file"}s1.exports={symlinkType:MS,symlinkTypeSync:PS}});var x1=c((aee,h1)=>{"use strict";var kS=ke().fromCallback,u1=require("path"),$r=de(),c1=Ge(),LS=c1.mkdirs,jS=c1.mkdirsSync,l1=n1(),NS=l1.symlinkPaths,$S=l1.symlinkPathsSync,f1=o1(),US=f1.symlinkType,GS=f1.symlinkTypeSync,a1=mt().pathExists;function WS(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,a1(t,(i,s)=>{if(i)return n(i);if(s)return n(null);NS(e,t,(o,a)=>{if(o)return n(o);e=a.toDst,US(a.toCwd,r,(u,l)=>{if(u)return n(u);let f=u1.dirname(t);a1(f,(h,d)=>{if(h)return n(h);if(d)return $r.symlink(e,t,l,n);LS(f,x=>{if(x)return n(x);$r.symlink(e,t,l,n)})})})})})}function zS(e,t,r){if($r.existsSync(t))return;let i=$S(e,t);e=i.toDst,r=GS(i.toCwd,r);let s=u1.dirname(t);return $r.existsSync(s)||jS(s),$r.symlinkSync(e,t,r)}h1.exports={createSymlink:kS(WS),createSymlinkSync:zS}});var p1=c((uee,d1)=>{"use strict";var Hs=Xx(),Ks=t1(),Ys=x1();d1.exports={createFile:Hs.createFile,createFileSync:Hs.createFileSync,ensureFile:Hs.createFile,ensureFileSync:Hs.createFileSync,createLink:Ks.createLink,createLinkSync:Ks.createLinkSync,ensureLink:Ks.createLink,ensureLinkSync:Ks.createLinkSync,createSymlink:Ys.createSymlink,createSymlinkSync:Ys.createSymlinkSync,ensureSymlink:Ys.createSymlink,ensureSymlinkSync:Ys.createSymlinkSync}});var E1=c((cee,y1)=>{var Ur;try{Ur=de()}catch(e){Ur=require("fs")}function VS(e,t,r){r==null&&(r=t,t={}),typeof t=="string"&&(t={encoding:t}),t=t||{};var n=t.fs||Ur,i=!0;"throws"in t&&(i=t.throws),n.readFile(e,t,function(s,o){if(s)return r(s);o=m1(o);var a;try{a=JSON.parse(o,t?t.reviver:null)}catch(u){return i?(u.message=e+": "+u.message,r(u)):r(null,null)}r(null,a)})}function HS(e,t){t=t||{},typeof t=="string"&&(t={encoding:t});var r=t.fs||Ur,n=!0;"throws"in t&&(n=t.throws);try{var i=r.readFileSync(e,t);return i=m1(i),JSON.parse(i,t.reviver)}catch(s){if(n)throw s.message=e+": "+s.message,s;return null}}function g1(e,t){var r,n=` `;typeof t=="object"&&t!==null&&(t.spaces&&(r=t.spaces),t.EOL&&(n=t.EOL));var i=JSON.stringify(e,t?t.replacer:null,r);return i.replace(/\n/g,n)+n}function KS(e,t,r,n){n==null&&(n=r,r={}),r=r||{};var i=r.fs||Ur,s="";try{s=g1(t,r)}catch(o){n&&n(o,null);return}i.writeFile(e,s,r,n)}function YS(e,t,r){r=r||{};var n=r.fs||Ur,i=g1(t,r);return n.writeFileSync(e,i,r)}function m1(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e=e.replace(/^\uFEFF/,""),e}var XS={readFile:VS,readFileSync:HS,writeFile:KS,writeFileSync:YS};y1.exports=XS});var Js=c((lee,D1)=>{"use strict";var b1=ke().fromCallback,Xs=E1();D1.exports={readJson:b1(Xs.readFile),readJsonSync:Xs.readFileSync,writeJson:b1(Xs.writeFile),writeJsonSync:Xs.writeFileSync}});var F1=c((fee,w1)=>{"use strict";var JS=require("path"),QS=Ge(),ZS=mt().pathExists,v1=Js();function eA(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=JS.dirname(e);ZS(i,(s,o)=>{if(s)return n(s);if(o)return v1.writeJson(e,t,r,n);QS.mkdirs(i,a=>{if(a)return n(a);v1.writeJson(e,t,r,n)})})}w1.exports=eA});var C1=c((hee,_1)=>{"use strict";var tA=de(),rA=require("path"),nA=Ge(),iA=Js();function sA(e,t,r){let n=rA.dirname(e);tA.existsSync(n)||nA.mkdirsSync(n),iA.writeJsonSync(e,t,r)}_1.exports=sA});var A1=c((xee,S1)=>{"use strict";var oA=ke().fromCallback,Be=Js();Be.outputJson=oA(F1());Be.outputJsonSync=C1();Be.outputJSON=Be.outputJson;Be.outputJSONSync=Be.outputJsonSync;Be.writeJSON=Be.writeJson;Be.writeJSONSync=Be.writeJsonSync;Be.readJSON=Be.readJson;Be.readJSONSync=Be.readJsonSync;S1.exports=Be});var I1=c((dee,R1)=>{"use strict";var T1=de(),aA=require("path"),uA=du().copySync,B1=ci().removeSync,cA=Ge().mkdirpSync,O1=ni();function lA(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=O1.checkPathsSync(e,t,"move");return O1.checkParentPathsSync(e,i,t,"move"),cA(aA.dirname(t)),fA(e,t,n)}function fA(e,t,r){if(r)return B1(t),q1(e,t,r);if(T1.existsSync(t))throw new Error("dest already exists.");return q1(e,t,r)}function q1(e,t,r){try{T1.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return hA(e,t,r)}}function hA(e,t,r){return uA(e,t,{overwrite:r,errorOnExist:!0}),B1(e)}R1.exports=lA});var P1=c((pee,M1)=>{"use strict";M1.exports={moveSync:I1()}});var $1=c((gee,N1)=>{"use strict";var xA=de(),dA=require("path"),pA=gu().copy,j1=ci().remove,gA=Ge().mkdirp,mA=mt().pathExists,k1=ni();function yA(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;k1.checkPaths(e,t,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;k1.checkParentPaths(e,a,t,"move",u=>{if(u)return n(u);gA(dA.dirname(t),l=>l?n(l):EA(e,t,i,n))})})}function EA(e,t,r,n){if(r)return j1(t,i=>i?n(i):L1(e,t,r,n));mA(t,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):L1(e,t,r,n))}function L1(e,t,r,n){xA.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):bA(e,t,r,n):n())}function bA(e,t,r,n){pA(e,t,{overwrite:r,errorOnExist:!0},s=>s?n(s):j1(e,n))}N1.exports=yA});var G1=c((mee,U1)=>{"use strict";var DA=ke().fromCallback;U1.exports={move:DA($1())}});var H1=c((yee,V1)=>{"use strict";var vA=ke().fromCallback,hi=de(),W1=require("path"),z1=Ge(),wA=mt().pathExists;function FA(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=W1.dirname(e);wA(i,(s,o)=>{if(s)return n(s);if(o)return hi.writeFile(e,t,r,n);z1.mkdirs(i,a=>{if(a)return n(a);hi.writeFile(e,t,r,n)})})}function _A(e,...t){let r=W1.dirname(e);if(hi.existsSync(r))return hi.writeFileSync(e,...t);z1.mkdirsSync(r),hi.writeFileSync(e,...t)}V1.exports={outputFile:vA(FA),outputFileSync:_A}});var Y1=c((Eee,yu)=>{"use strict";yu.exports=Object.assign({},tu(),du(),gu(),Vx(),p1(),A1(),Ge(),P1(),G1(),H1(),mt(),ci());var K1=require("fs");Object.getOwnPropertyDescriptor(K1,"promises")&&Object.defineProperty(yu.exports,"promises",{get(){return K1.promises}})});var J1=c((bee,X1)=>{"use strict";X1.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Eu=c((Dee,Z1)=>{var xi=J1(),Q1={};for(let e of Object.keys(xi))Q1[xi[e]]=e;var S={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};Z1.exports=S;for(let e of Object.keys(S)){if(!("channels"in S[e]))throw new Error("missing channels property: "+e);if(!("labels"in S[e]))throw new Error("missing channel labels property: "+e);if(S[e].labels.length!==S[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=S[e];delete S[e].channels,delete S[e].labels,Object.defineProperty(S[e],"channels",{value:t}),Object.defineProperty(S[e],"labels",{value:r})}S.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,a,u;s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let l=(i+s)/2;return s===i?u=0:l<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,l*100]};S.rgb.hsv=function(e){let t,r,n,i,s,o=e[0]/255,a=e[1]/255,u=e[2]/255,l=Math.max(o,a,u),f=l-Math.min(o,a,u),h=function(d){return(l-d)/6/f+1/2};return f===0?(i=0,s=0):(s=f/l,t=h(o),r=h(a),n=h(u),o===l?i=n-r:a===l?i=1/3+t-n:u===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,l*100]};S.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],i=S.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};S.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),s=(1-t-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function CA(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}S.rgb.keyword=function(e){let t=Q1[e];if(t)return t;let r=1/0,n;for(let i of Object.keys(xi)){let s=xi[i],o=CA(e,s);o<r&&(r=o,n=i)}return n};S.keyword.rgb=function(e){return xi[e]};S.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};S.rgb.lab=function(e){let t=S.rgb.xyz(e),r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};S.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,u=[0,0,0];for(let l=0;l<3;l++)s=t+1/3*-(l-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,u[l]=o*255;return u};S.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[t,a*100,o*100]};S.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};S.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[t,s*100,o*100]};S.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*t),a=1-n;s=6*t-o,o&1&&(s=1-s);let u=r+s*(a-r),l,f,h;switch(o){default:case 6:case 0:l=a,f=u,h=r;break;case 1:l=u,f=a,h=r;break;case 2:l=r,f=a,h=u;break;case 3:l=r,f=u,h=a;break;case 4:l=u,f=r,h=a;break;case 5:l=a,f=r,h=u;break}return[l*255,f*255,h*255]};S.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};S.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};S.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(t-r),o=200*(r-n);return[i,s,o]};S.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;let a=s**3,u=i**3,l=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};S.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[t,o,i]};S.lch.lab=function(e){let t=e[0],r=e[1],i=e[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[t,s,o]};S.rgb.ansi16=function(e,t=null){let[r,n,i]=e,s=t===null?S.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};S.hsv.ansi16=function(e){return S.rgb.ansi16(S.hsv.rgb(e),e[2])};S.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};S.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};S.ansi256.rgb=function(e){if(e>=232){let s=(e-232)*10+8;return[s,s,s]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};S.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};S.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};S.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===t?u=(r-n)/o%6:i===r?u=2+(n-t)/o:u=4+(t-r)/o,u/=6,u%=1,[u*360,o*100,a*100]};S.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};S.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};S.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=t%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};S.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};S.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};S.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};S.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};S.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};S.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};S.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};S.gray.hsl=function(e){return[0,0,e[0]]};S.gray.hsv=S.gray.hsl;S.gray.hwb=function(e){return[0,100,e[0]]};S.gray.cmyk=function(e){return[0,0,0,e[0]]};S.gray.lab=function(e){return[e[0],0,0]};S.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};S.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var td=c((vee,ed)=>{var Qs=Eu();function SA(){let e={},t=Object.keys(Qs);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function AA(e){let t=SA(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),i=Object.keys(Qs[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],u=t[a];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(a))}}return t}function OA(e,t){return function(r){return t(e(r))}}function qA(e,t){let r=[t[e].parent,e],n=Qs[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=OA(Qs[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}ed.exports=function(e){let t=AA(e),r={},n=Object.keys(t);for(let i=n.length,s=0;s<i;s++){let o=n[s];t[o].parent!==null&&(r[o]=qA(o,t))}return r}});var nd=c((wee,rd)=>{var bu=Eu(),TA=td(),Gr={},BA=Object.keys(bu);function RA(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function IA(e){let t=function(...r){let n=r[0];if(n==null)return