@griddo/cx 10.3.19 → 10.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/build/download-data.js +17 -17
  2. package/build/index.js +17 -17
  3. package/exporter/adapters/gatsby/index.ts +3 -1
  4. package/exporter/adapters/gatsby/utils.ts +39 -20
  5. package/exporter/services/distributors.ts +1 -1
  6. package/exporter/services/store.ts +2 -2
  7. package/exporter/utils/download-build-data.ts +2 -2
  8. package/exporter/utils/sites.ts +2 -7
  9. package/gatsby-browser.tsx +43 -41
  10. package/gatsby-node.ts +3 -2
  11. package/package.json +3 -3
  12. package/static/README.md +3 -0
  13. package/static/fonts/dm-sans/dm-sans-v14-latin-500.woff2 +0 -0
  14. package/static/fonts/dm-sans/dm-sans-v14-latin-500italic.woff2 +0 -0
  15. package/static/fonts/dm-sans/dm-sans-v14-latin-600.woff2 +0 -0
  16. package/static/fonts/dm-sans/dm-sans-v14-latin-600italic.woff2 +0 -0
  17. package/static/fonts/dm-sans/dm-sans-v14-latin-700.woff2 +0 -0
  18. package/static/fonts/dm-sans/dm-sans-v14-latin-700italic.woff2 +0 -0
  19. package/static/fonts/dm-sans/dm-sans-v14-latin-800.woff2 +0 -0
  20. package/static/fonts/dm-sans/dm-sans-v14-latin-800italic.woff2 +0 -0
  21. package/static/fonts/dm-sans/dm-sans-v14-latin-900.woff2 +0 -0
  22. package/static/fonts/dm-sans/dm-sans-v14-latin-900italic.woff2 +0 -0
  23. package/static/fonts/dm-sans/dm-sans-v14-latin-italic.woff2 +0 -0
  24. package/static/fonts/dm-sans/dm-sans-v14-latin-regular.woff2 +0 -0
  25. package/static/fonts/dm-serif-display/dm-serif-display-v15-latin-italic.woff2 +0 -0
  26. package/static/fonts/dm-serif-display/dm-serif-display-v15-latin-regular.woff2 +0 -0
  27. package/static/fonts/gilroy/Gilroy-Black.woff2 +0 -0
  28. package/static/fonts/gilroy/Gilroy-BlackItalic.woff2 +0 -0
  29. package/static/fonts/gilroy/Gilroy-Bold.woff2 +0 -0
  30. package/static/fonts/gilroy/Gilroy-BoldItalic.woff2 +0 -0
  31. package/static/fonts/gilroy/Gilroy-ExtraBold.woff2 +0 -0
  32. package/static/fonts/gilroy/Gilroy-ExtraBoldItalic.woff2 +0 -0
  33. package/static/fonts/gilroy/Gilroy-Heavy.woff2 +0 -0
  34. package/static/fonts/gilroy/Gilroy-HeavyItalic.woff2 +0 -0
  35. package/static/fonts/gilroy/Gilroy-Light.woff2 +0 -0
  36. package/static/fonts/gilroy/Gilroy-LightItalic.woff2 +0 -0
  37. package/static/fonts/gilroy/Gilroy-Medium.woff2 +0 -0
  38. package/static/fonts/gilroy/Gilroy-MediumItalic.woff2 +0 -0
  39. package/static/fonts/gilroy/Gilroy-Regular.woff2 +0 -0
  40. package/static/fonts/gilroy/Gilroy-RegularItalic.woff2 +0 -0
  41. package/static/fonts/gilroy/Gilroy-SemiBold.woff2 +0 -0
  42. package/static/fonts/gilroy/Gilroy-SemiBoldItalic.woff2 +0 -0
  43. package/static/fonts/gilroy/Gilroy-Thin.woff2 +0 -0
  44. package/static/fonts/gilroy/Gilroy-ThinItalic.woff2 +0 -0
  45. package/static/fonts/gilroy/Gilroy-UltraLight.woff2 +0 -0
  46. package/static/fonts/gilroy/Gilroy-UltraLightItalic.woff2 +0 -0
  47. package/static/fonts/work-sans/work-sans-v17-latin-700.woff +0 -0
  48. package/static/fonts/work-sans/work-sans-v17-latin-700.woff2 +0 -0
  49. package/static/fonts/work-sans/work-sans-v17-latin-regular.woff +0 -0
  50. package/static/fonts/work-sans/work-sans-v17-latin-regular.woff2 +0 -0
  51. package/static/grisso.css +1 -0
  52. package/static/webfonts.css +115 -0
@@ -1,32 +1,32 @@
1
- "use strict";var Ud=Object.create;var lo=Object.defineProperty;var Xd=Object.getOwnPropertyDescriptor;var Hd=Object.getOwnPropertyNames;var Gd=Object.getPrototypeOf,zd=Object.prototype.hasOwnProperty;var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Wd=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Hd(e))!zd.call(t,i)&&i!==r&&lo(t,i,{get:()=>e[i],enumerable:!(n=Xd(e,i))||n.enumerable});return t};var $=(t,e,r)=>(r=t!=null?Ud(Gd(t)):{},Wd(e||!t||!t.__esModule?lo(r,"default",{value:t,enumerable:!0}):r,t));var _e=y(Bn=>{"use strict";Bn.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((r,n)=>{t.call(this,...e,(i,s)=>i!=null?n(i):r(s))})},"name",{value:t.name})};Bn.fromPromise=function(t){return Object.defineProperty(function(...e){let r=e[e.length-1];if(typeof r!="function")return t.apply(this,e);t.apply(this,e.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:t.name})}});var ho=y((bv,fo)=>{var Ue=require("constants"),Jd=process.cwd,br=null,Vd=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return br||(br=Jd.call(process)),br};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Un=process.chdir,process.chdir=function(t){br=null,Un.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Un));var Un;fo.exports=Yd;function Yd(t){Ue.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,p,g){g&&process.nextTick(g)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,p,g,m){m&&process.nextTick(m)},t.lchownSync=function(){}),Vd==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(c){function p(g,m,b){var S=Date.now(),O=0;c(g,m,function R(L){if(L&&(L.code==="EACCES"||L.code==="EPERM")&&Date.now()-S<6e4){setTimeout(function(){t.stat(m,function(B,G){B&&B.code==="ENOENT"?c(g,m,R):b(L)})},O),O<100&&(O+=10);return}b&&b(L)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.rename)),t.read=typeof t.read!="function"?t.read:function(c){function p(g,m,b,S,O,R){var L;if(R&&typeof R=="function"){var B=0;L=function(G,Y,de){if(G&&G.code==="EAGAIN"&&B<10)return B++,c.call(t,g,m,b,S,O,L);R.apply(this,arguments)}}return c.call(t,g,m,b,S,O,L)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(c){return function(p,g,m,b,S){for(var O=0;;)try{return c.call(t,p,g,m,b,S)}catch(R){if(R.code==="EAGAIN"&&O<10){O++;continue}throw R}}}(t.readSync);function e(c){c.lchmod=function(p,g,m){c.open(p,Ue.O_WRONLY|Ue.O_SYMLINK,g,function(b,S){if(b){m&&m(b);return}c.fchmod(S,g,function(O){c.close(S,function(R){m&&m(O||R)})})})},c.lchmodSync=function(p,g){var m=c.openSync(p,Ue.O_WRONLY|Ue.O_SYMLINK,g),b=!0,S;try{S=c.fchmodSync(m,g),b=!1}finally{if(b)try{c.closeSync(m)}catch{}else c.closeSync(m)}return S}}function r(c){Ue.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(p,g,m,b){c.open(p,Ue.O_SYMLINK,function(S,O){if(S){b&&b(S);return}c.futimes(O,g,m,function(R){c.close(O,function(L){b&&b(R||L)})})})},c.lutimesSync=function(p,g,m){var b=c.openSync(p,Ue.O_SYMLINK),S,O=!0;try{S=c.futimesSync(b,g,m),O=!1}finally{if(O)try{c.closeSync(b)}catch{}else c.closeSync(b)}return S}):c.futimes&&(c.lutimes=function(p,g,m,b){b&&process.nextTick(b)},c.lutimesSync=function(){})}function n(c){return c&&function(p,g,m){return c.call(t,p,g,function(b){h(b)&&(b=null),m&&m.apply(this,arguments)})}}function i(c){return c&&function(p,g){try{return c.call(t,p,g)}catch(m){if(!h(m))throw m}}}function s(c){return c&&function(p,g,m,b){return c.call(t,p,g,m,function(S){h(S)&&(S=null),b&&b.apply(this,arguments)})}}function o(c){return c&&function(p,g,m){try{return c.call(t,p,g,m)}catch(b){if(!h(b))throw b}}}function a(c){return c&&function(p,g,m){typeof g=="function"&&(m=g,g=null);function b(S,O){O&&(O.uid<0&&(O.uid+=4294967296),O.gid<0&&(O.gid+=4294967296)),m&&m.apply(this,arguments)}return g?c.call(t,p,g,b):c.call(t,p,b)}}function u(c){return c&&function(p,g){var m=g?c.call(t,p,g):c.call(t,p);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function h(c){if(!c||c.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var go=y((_v,mo)=>{var po=require("stream").Stream;mo.exports=Kd;function Kd(t){return{ReadStream:e,WriteStream:r};function e(n,i){if(!(this instanceof e))return new e(n,i);po.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 h=o[a];this[h]=i[h]}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}t.open(this.path,this.flags,this.mode,function(c,p){if(c){s.emit("error",c),s.readable=!1;return}s.fd=p,s.emit("open",p),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);po.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=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var vo=y((wv,yo)=>{"use strict";yo.exports=Zd;var Qd=Object.getPrototypeOf||function(t){return t.__proto__};function Zd(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:Qd(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var ue=y((xv,Gn)=>{var z=require("fs"),eh=ho(),th=go(),rh=vo(),_r=require("util"),ne,xr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ne=Symbol.for("graceful-fs.queue"),xr=Symbol.for("graceful-fs.previous")):(ne="___graceful-fs.queue",xr="___graceful-fs.previous");function nh(){}function wo(t,e){Object.defineProperty(t,ne,{get:function(){return e}})}var et=nh;_r.debuglog?et=_r.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(et=function(){var t=_r.format.apply(_r,arguments);t="GFS4: "+t.split(/\n/).join(`
2
- GFS4: `),console.error(t)});z[ne]||(bo=global[ne]||[],wo(z,bo),z.close=function(t){function e(r,n){return t.call(z,r,function(i){i||_o(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,xr,{value:t}),e}(z.close),z.closeSync=function(t){function e(r){t.apply(z,arguments),_o()}return Object.defineProperty(e,xr,{value:t}),e}(z.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){et(z[ne]),require("assert").equal(z[ne].length,0)}));var bo;global[ne]||wo(global,z[ne]);Gn.exports=Xn(rh(z));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!z.__patched&&(Gn.exports=Xn(z),z.__patched=!0);function Xn(t){eh(t),t.gracefulify=Xn,t.createReadStream=Y,t.createWriteStream=de;var e=t.readFile;t.readFile=r;function r(D,q,k){return typeof q=="function"&&(k=q,q=null),U(D,q,k);function U(I,j,P,T){return e(I,j,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?dt([U,[I,j,P],A,T||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=i;function i(D,q,k,U){return typeof k=="function"&&(U=k,k=null),I(D,q,k,U);function I(j,P,T,A,x){return n(j,P,T,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?dt([I,[j,P,T,A],F,x||Date.now(),Date.now()]):typeof A=="function"&&A.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(D,q,k,U){return typeof k=="function"&&(U=k,k=null),I(D,q,k,U);function I(j,P,T,A,x){return s(j,P,T,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?dt([I,[j,P,T,A],F,x||Date.now(),Date.now()]):typeof A=="function"&&A.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=u);function u(D,q,k,U){return typeof k=="function"&&(U=k,k=0),I(D,q,k,U);function I(j,P,T,A,x){return a(j,P,T,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?dt([I,[j,P,T,A],F,x||Date.now(),Date.now()]):typeof A=="function"&&A.apply(this,arguments)})}}var h=t.readdir;t.readdir=p;var c=/^v[0-5]\./;function p(D,q,k){typeof q=="function"&&(k=q,q=null);var U=c.test(process.version)?function(P,T,A,x){return h(P,I(P,T,A,x))}:function(P,T,A,x){return h(P,T,I(P,T,A,x))};return U(D,q,k);function I(j,P,T,A){return function(x,F){x&&(x.code==="EMFILE"||x.code==="ENFILE")?dt([U,[j,P,T],x,A||Date.now(),Date.now()]):(F&&F.sort&&F.sort(),typeof T=="function"&&T.call(this,x,F))}}}if(process.version.substr(0,4)==="v0.8"){var g=th(t);R=g.ReadStream,B=g.WriteStream}var m=t.ReadStream;m&&(R.prototype=Object.create(m.prototype),R.prototype.open=L);var b=t.WriteStream;b&&(B.prototype=Object.create(b.prototype),B.prototype.open=G),Object.defineProperty(t,"ReadStream",{get:function(){return R},set:function(D){R=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return B},set:function(D){B=D},enumerable:!0,configurable:!0});var S=R;Object.defineProperty(t,"FileReadStream",{get:function(){return S},set:function(D){S=D},enumerable:!0,configurable:!0});var O=B;Object.defineProperty(t,"FileWriteStream",{get:function(){return O},set:function(D){O=D},enumerable:!0,configurable:!0});function R(D,q){return this instanceof R?(m.apply(this,arguments),this):R.apply(Object.create(R.prototype),arguments)}function L(){var D=this;te(D.path,D.flags,D.mode,function(q,k){q?(D.autoClose&&D.destroy(),D.emit("error",q)):(D.fd=k,D.emit("open",k),D.read())})}function B(D,q){return this instanceof B?(b.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function G(){var D=this;te(D.path,D.flags,D.mode,function(q,k){q?(D.destroy(),D.emit("error",q)):(D.fd=k,D.emit("open",k))})}function Y(D,q){return new t.ReadStream(D,q)}function de(D,q){return new t.WriteStream(D,q)}var De=t.open;t.open=te;function te(D,q,k,U){return typeof k=="function"&&(U=k,k=null),I(D,q,k,U);function I(j,P,T,A,x){return De(j,P,T,function(F,Ce){F&&(F.code==="EMFILE"||F.code==="ENFILE")?dt([I,[j,P,T,A],F,x||Date.now(),Date.now()]):typeof A=="function"&&A.apply(this,arguments)})}}return t}function dt(t){et("ENQUEUE",t[0].name,t[1]),z[ne].push(t),Hn()}var wr;function _o(){for(var t=Date.now(),e=0;e<z[ne].length;++e)z[ne][e].length>2&&(z[ne][e][3]=t,z[ne][e][4]=t);Hn()}function Hn(){if(clearTimeout(wr),wr=void 0,z[ne].length!==0){var t=z[ne].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)et("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){et("TIMEOUT",e.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),h=Math.min(u*1.2,100);a>=h?(et("RETRY",e.name,r),e.apply(null,r.concat([i]))):z[ne].push(t)}wr===void 0&&(wr=setTimeout(Hn,0))}}});var $t=y(Xe=>{"use strict";var xo=_e().fromCallback,he=ue(),ih=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof he[t]=="function");Object.keys(he).forEach(t=>{t!=="promises"&&(Xe[t]=he[t])});ih.forEach(t=>{Xe[t]=xo(he[t])});Xe.exists=function(t,e){return typeof e=="function"?he.exists(t,e):new Promise(r=>he.exists(t,r))};Xe.read=function(t,e,r,n,i,s){return typeof s=="function"?he.read(t,e,r,n,i,s):new Promise((o,a)=>{he.read(t,e,r,n,i,(u,h,c)=>{if(u)return a(u);o({bytesRead:h,buffer:c})})})};Xe.write=function(t,e,...r){return typeof r[r.length-1]=="function"?he.write(t,e,...r):new Promise((n,i)=>{he.write(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof he.writev=="function"&&(Xe.writev=function(t,e,...r){return typeof r[r.length-1]=="function"?he.writev(t,e,...r):new Promise((n,i)=>{he.writev(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffers:a})})})});typeof he.realpath.native=="function"&&(Xe.realpath.native=xo(he.realpath.native))});var zn=y((Ev,So)=>{So.exports=t=>{let e=process.versions.node.split(".").map(r=>parseInt(r,10));return t=t.split(".").map(r=>parseInt(r,10)),e[0]>t[0]||e[0]===t[0]&&(e[1]>t[1]||e[1]===t[1]&&e[2]>=t[2])}});var Do=y((Cv,Wn)=>{"use strict";var ht=$t(),$e=require("path"),sh=zn(),Eo=sh("10.12.0"),Co=t=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace($e.parse(t).root,""))){let r=new Error(`Path contains invalid characters: ${t}`);throw r.code="EINVAL",r}},Po=t=>{let e={mode:511};return typeof t=="number"&&(t={mode:t}),{...e,...t}},Oo=t=>{let e=new Error(`operation not permitted, mkdir '${t}'`);return e.code="EPERM",e.errno=-4048,e.path=t,e.syscall="mkdir",e};Wn.exports.makeDir=async(t,e)=>{if(Co(t),e=Po(e),Eo){let n=$e.resolve(t);return ht.mkdir(n,{mode:e.mode,recursive:!0})}let r=async n=>{try{await ht.mkdir(n,e.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if($e.dirname(n)===n)throw Oo(n);if(i.message.includes("null bytes"))throw i;return await r($e.dirname(n)),r(n)}try{if(!(await ht.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r($e.resolve(t))};Wn.exports.makeDirSync=(t,e)=>{if(Co(t),e=Po(e),Eo){let n=$e.resolve(t);return ht.mkdirSync(n,{mode:e.mode,recursive:!0})}let r=n=>{try{ht.mkdirSync(n,e.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if($e.dirname(n)===n)throw Oo(n);if(i.message.includes("null bytes"))throw i;return r($e.dirname(n)),r(n)}try{if(!ht.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r($e.resolve(t))}});var ke=y((Pv,Io)=>{"use strict";var oh=_e().fromPromise,{makeDir:ah,makeDirSync:Jn}=Do(),Vn=oh(ah);Io.exports={mkdirs:Vn,mkdirsSync:Jn,mkdirp:Vn,mkdirpSync:Jn,ensureDir:Vn,ensureDirSync:Jn}});var Yn=y((Ov,Fo)=>{"use strict";var pt=ue();function uh(t,e,r,n){pt.open(t,"r+",(i,s)=>{if(i)return n(i);pt.futimes(s,e,r,o=>{pt.close(s,a=>{n&&n(o||a)})})})}function ch(t,e,r){let n=pt.openSync(t,"r+");return pt.futimesSync(n,e,r),pt.closeSync(n)}Fo.exports={utimesMillis:uh,utimesMillisSync:ch}});var Bt=y((Dv,Mo)=>{"use strict";var mt=$t(),we=require("path"),lh=require("util"),fh=zn(),Sr=fh("10.5.0"),Ro=t=>Sr?mt.stat(t,{bigint:!0}):mt.stat(t),Kn=t=>Sr?mt.statSync(t,{bigint:!0}):mt.statSync(t);function dh(t,e){return Promise.all([Ro(t),Ro(e).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function hh(t,e){let r,n=Kn(t);try{r=Kn(e)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function ph(t,e,r,n){lh.callbackify(dh)(t,e,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;return a&&Er(o,a)?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&Qn(t,e)?n(new Error(Cr(t,e,r))):n(null,{srcStat:o,destStat:a})})}function mh(t,e,r){let{srcStat:n,destStat:i}=hh(t,e);if(i&&Er(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&Qn(t,e))throw new Error(Cr(t,e,r));return{srcStat:n,destStat:i}}function Ao(t,e,r,n,i){let s=we.resolve(we.dirname(t)),o=we.resolve(we.dirname(r));if(o===s||o===we.parse(o).root)return i();let a=(u,h)=>u?u.code==="ENOENT"?i():i(u):Er(e,h)?i(new Error(Cr(t,r,n))):Ao(t,e,o,n,i);Sr?mt.stat(o,{bigint:!0},a):mt.stat(o,a)}function ko(t,e,r,n){let i=we.resolve(we.dirname(t)),s=we.resolve(we.dirname(r));if(s===i||s===we.parse(s).root)return;let o;try{o=Kn(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(Er(e,o))throw new Error(Cr(t,r,n));return ko(t,e,s,n)}function Er(t,e){return!!(e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev&&(Sr||e.ino<Number.MAX_SAFE_INTEGER||e.size===t.size&&e.mode===t.mode&&e.nlink===t.nlink&&e.atimeMs===t.atimeMs&&e.mtimeMs===t.mtimeMs&&e.ctimeMs===t.ctimeMs&&e.birthtimeMs===t.birthtimeMs))}function Qn(t,e){let r=we.resolve(t).split(we.sep).filter(i=>i),n=we.resolve(e).split(we.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function Cr(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}Mo.exports={checkPaths:ph,checkPathsSync:mh,checkParentPaths:Ao,checkParentPathsSync:ko,isSrcSubdir:Qn}});var Lo=y((Iv,jo)=>{"use strict";var ce=ue(),Ut=require("path"),gh=ke().mkdirsSync,yh=Yn().utimesMillisSync,Xt=Bt();function vh(t,e,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;
1
+ "use strict";var Ud=Object.create;var lo=Object.defineProperty;var Xd=Object.getOwnPropertyDescriptor;var Hd=Object.getOwnPropertyNames;var Gd=Object.getPrototypeOf,zd=Object.prototype.hasOwnProperty;var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Wd=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Hd(e))!zd.call(t,i)&&i!==r&&lo(t,i,{get:()=>e[i],enumerable:!(n=Xd(e,i))||n.enumerable});return t};var $=(t,e,r)=>(r=t!=null?Ud(Gd(t)):{},Wd(e||!t||!t.__esModule?lo(r,"default",{value:t,enumerable:!0}):r,t));var _e=y(Bn=>{"use strict";Bn.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((r,n)=>{t.call(this,...e,(i,s)=>i!=null?n(i):r(s))})},"name",{value:t.name})};Bn.fromPromise=function(t){return Object.defineProperty(function(...e){let r=e[e.length-1];if(typeof r!="function")return t.apply(this,e);t.apply(this,e.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:t.name})}});var ho=y((bv,fo)=>{var Xe=require("constants"),Jd=process.cwd,br=null,Vd=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return br||(br=Jd.call(process)),br};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Un=process.chdir,process.chdir=function(t){br=null,Un.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Un));var Un;fo.exports=Yd;function Yd(t){Xe.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,p,g){g&&process.nextTick(g)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,p,g,m){m&&process.nextTick(m)},t.lchownSync=function(){}),Vd==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(c){function p(g,m,b){var S=Date.now(),O=0;c(g,m,function R(L){if(L&&(L.code==="EACCES"||L.code==="EPERM")&&Date.now()-S<6e4){setTimeout(function(){t.stat(m,function(B,G){B&&B.code==="ENOENT"?c(g,m,R):b(L)})},O),O<100&&(O+=10);return}b&&b(L)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.rename)),t.read=typeof t.read!="function"?t.read:function(c){function p(g,m,b,S,O,R){var L;if(R&&typeof R=="function"){var B=0;L=function(G,K,de){if(G&&G.code==="EAGAIN"&&B<10)return B++,c.call(t,g,m,b,S,O,L);R.apply(this,arguments)}}return c.call(t,g,m,b,S,O,L)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(c){return function(p,g,m,b,S){for(var O=0;;)try{return c.call(t,p,g,m,b,S)}catch(R){if(R.code==="EAGAIN"&&O<10){O++;continue}throw R}}}(t.readSync);function e(c){c.lchmod=function(p,g,m){c.open(p,Xe.O_WRONLY|Xe.O_SYMLINK,g,function(b,S){if(b){m&&m(b);return}c.fchmod(S,g,function(O){c.close(S,function(R){m&&m(O||R)})})})},c.lchmodSync=function(p,g){var m=c.openSync(p,Xe.O_WRONLY|Xe.O_SYMLINK,g),b=!0,S;try{S=c.fchmodSync(m,g),b=!1}finally{if(b)try{c.closeSync(m)}catch{}else c.closeSync(m)}return S}}function r(c){Xe.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(p,g,m,b){c.open(p,Xe.O_SYMLINK,function(S,O){if(S){b&&b(S);return}c.futimes(O,g,m,function(R){c.close(O,function(L){b&&b(R||L)})})})},c.lutimesSync=function(p,g,m){var b=c.openSync(p,Xe.O_SYMLINK),S,O=!0;try{S=c.futimesSync(b,g,m),O=!1}finally{if(O)try{c.closeSync(b)}catch{}else c.closeSync(b)}return S}):c.futimes&&(c.lutimes=function(p,g,m,b){b&&process.nextTick(b)},c.lutimesSync=function(){})}function n(c){return c&&function(p,g,m){return c.call(t,p,g,function(b){h(b)&&(b=null),m&&m.apply(this,arguments)})}}function i(c){return c&&function(p,g){try{return c.call(t,p,g)}catch(m){if(!h(m))throw m}}}function s(c){return c&&function(p,g,m,b){return c.call(t,p,g,m,function(S){h(S)&&(S=null),b&&b.apply(this,arguments)})}}function o(c){return c&&function(p,g,m){try{return c.call(t,p,g,m)}catch(b){if(!h(b))throw b}}}function a(c){return c&&function(p,g,m){typeof g=="function"&&(m=g,g=null);function b(S,O){O&&(O.uid<0&&(O.uid+=4294967296),O.gid<0&&(O.gid+=4294967296)),m&&m.apply(this,arguments)}return g?c.call(t,p,g,b):c.call(t,p,b)}}function u(c){return c&&function(p,g){var m=g?c.call(t,p,g):c.call(t,p);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function h(c){if(!c||c.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var go=y((_v,mo)=>{var po=require("stream").Stream;mo.exports=Kd;function Kd(t){return{ReadStream:e,WriteStream:r};function e(n,i){if(!(this instanceof e))return new e(n,i);po.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 h=o[a];this[h]=i[h]}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}t.open(this.path,this.flags,this.mode,function(c,p){if(c){s.emit("error",c),s.readable=!1;return}s.fd=p,s.emit("open",p),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);po.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=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var vo=y((wv,yo)=>{"use strict";yo.exports=Zd;var Qd=Object.getPrototypeOf||function(t){return t.__proto__};function Zd(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:Qd(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var ue=y((xv,Gn)=>{var z=require("fs"),eh=ho(),th=go(),rh=vo(),_r=require("util"),ie,xr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ie=Symbol.for("graceful-fs.queue"),xr=Symbol.for("graceful-fs.previous")):(ie="___graceful-fs.queue",xr="___graceful-fs.previous");function nh(){}function wo(t,e){Object.defineProperty(t,ie,{get:function(){return e}})}var et=nh;_r.debuglog?et=_r.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(et=function(){var t=_r.format.apply(_r,arguments);t="GFS4: "+t.split(/\n/).join(`
2
+ GFS4: `),console.error(t)});z[ie]||(bo=global[ie]||[],wo(z,bo),z.close=function(t){function e(r,n){return t.call(z,r,function(i){i||_o(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,xr,{value:t}),e}(z.close),z.closeSync=function(t){function e(r){t.apply(z,arguments),_o()}return Object.defineProperty(e,xr,{value:t}),e}(z.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){et(z[ie]),require("assert").equal(z[ie].length,0)}));var bo;global[ie]||wo(global,z[ie]);Gn.exports=Xn(rh(z));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!z.__patched&&(Gn.exports=Xn(z),z.__patched=!0);function Xn(t){eh(t),t.gracefulify=Xn,t.createReadStream=K,t.createWriteStream=de;var e=t.readFile;t.readFile=r;function r(D,q,A){return typeof q=="function"&&(A=q,q=null),U(D,q,A);function U(I,j,P,T){return e(I,j,function(M){M&&(M.code==="EMFILE"||M.code==="ENFILE")?dt([U,[I,j,P],M,T||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=i;function i(D,q,A,U){return typeof A=="function"&&(U=A,A=null),I(D,q,A,U);function I(j,P,T,M,x){return n(j,P,T,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?dt([I,[j,P,T,M],F,x||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(D,q,A,U){return typeof A=="function"&&(U=A,A=null),I(D,q,A,U);function I(j,P,T,M,x){return s(j,P,T,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?dt([I,[j,P,T,M],F,x||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=u);function u(D,q,A,U){return typeof A=="function"&&(U=A,A=0),I(D,q,A,U);function I(j,P,T,M,x){return a(j,P,T,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?dt([I,[j,P,T,M],F,x||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var h=t.readdir;t.readdir=p;var c=/^v[0-5]\./;function p(D,q,A){typeof q=="function"&&(A=q,q=null);var U=c.test(process.version)?function(P,T,M,x){return h(P,I(P,T,M,x))}:function(P,T,M,x){return h(P,T,I(P,T,M,x))};return U(D,q,A);function I(j,P,T,M){return function(x,F){x&&(x.code==="EMFILE"||x.code==="ENFILE")?dt([U,[j,P,T],x,M||Date.now(),Date.now()]):(F&&F.sort&&F.sort(),typeof T=="function"&&T.call(this,x,F))}}}if(process.version.substr(0,4)==="v0.8"){var g=th(t);R=g.ReadStream,B=g.WriteStream}var m=t.ReadStream;m&&(R.prototype=Object.create(m.prototype),R.prototype.open=L);var b=t.WriteStream;b&&(B.prototype=Object.create(b.prototype),B.prototype.open=G),Object.defineProperty(t,"ReadStream",{get:function(){return R},set:function(D){R=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return B},set:function(D){B=D},enumerable:!0,configurable:!0});var S=R;Object.defineProperty(t,"FileReadStream",{get:function(){return S},set:function(D){S=D},enumerable:!0,configurable:!0});var O=B;Object.defineProperty(t,"FileWriteStream",{get:function(){return O},set:function(D){O=D},enumerable:!0,configurable:!0});function R(D,q){return this instanceof R?(m.apply(this,arguments),this):R.apply(Object.create(R.prototype),arguments)}function L(){var D=this;re(D.path,D.flags,D.mode,function(q,A){q?(D.autoClose&&D.destroy(),D.emit("error",q)):(D.fd=A,D.emit("open",A),D.read())})}function B(D,q){return this instanceof B?(b.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function G(){var D=this;re(D.path,D.flags,D.mode,function(q,A){q?(D.destroy(),D.emit("error",q)):(D.fd=A,D.emit("open",A))})}function K(D,q){return new t.ReadStream(D,q)}function de(D,q){return new t.WriteStream(D,q)}var Oe=t.open;t.open=re;function re(D,q,A,U){return typeof A=="function"&&(U=A,A=null),I(D,q,A,U);function I(j,P,T,M,x){return Oe(j,P,T,function(F,ne){F&&(F.code==="EMFILE"||F.code==="ENFILE")?dt([I,[j,P,T,M],F,x||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}return t}function dt(t){et("ENQUEUE",t[0].name,t[1]),z[ie].push(t),Hn()}var wr;function _o(){for(var t=Date.now(),e=0;e<z[ie].length;++e)z[ie][e].length>2&&(z[ie][e][3]=t,z[ie][e][4]=t);Hn()}function Hn(){if(clearTimeout(wr),wr=void 0,z[ie].length!==0){var t=z[ie].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)et("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){et("TIMEOUT",e.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),h=Math.min(u*1.2,100);a>=h?(et("RETRY",e.name,r),e.apply(null,r.concat([i]))):z[ie].push(t)}wr===void 0&&(wr=setTimeout(Hn,0))}}});var $t=y(He=>{"use strict";var xo=_e().fromCallback,me=ue(),ih=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof me[t]=="function");Object.keys(me).forEach(t=>{t!=="promises"&&(He[t]=me[t])});ih.forEach(t=>{He[t]=xo(me[t])});He.exists=function(t,e){return typeof e=="function"?me.exists(t,e):new Promise(r=>me.exists(t,r))};He.read=function(t,e,r,n,i,s){return typeof s=="function"?me.read(t,e,r,n,i,s):new Promise((o,a)=>{me.read(t,e,r,n,i,(u,h,c)=>{if(u)return a(u);o({bytesRead:h,buffer:c})})})};He.write=function(t,e,...r){return typeof r[r.length-1]=="function"?me.write(t,e,...r):new Promise((n,i)=>{me.write(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof me.writev=="function"&&(He.writev=function(t,e,...r){return typeof r[r.length-1]=="function"?me.writev(t,e,...r):new Promise((n,i)=>{me.writev(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffers:a})})})});typeof me.realpath.native=="function"&&(He.realpath.native=xo(me.realpath.native))});var zn=y((Ev,So)=>{So.exports=t=>{let e=process.versions.node.split(".").map(r=>parseInt(r,10));return t=t.split(".").map(r=>parseInt(r,10)),e[0]>t[0]||e[0]===t[0]&&(e[1]>t[1]||e[1]===t[1]&&e[2]>=t[2])}});var Do=y((Cv,Wn)=>{"use strict";var ht=$t(),$e=require("path"),sh=zn(),Eo=sh("10.12.0"),Co=t=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace($e.parse(t).root,""))){let r=new Error(`Path contains invalid characters: ${t}`);throw r.code="EINVAL",r}},Po=t=>{let e={mode:511};return typeof t=="number"&&(t={mode:t}),{...e,...t}},Oo=t=>{let e=new Error(`operation not permitted, mkdir '${t}'`);return e.code="EPERM",e.errno=-4048,e.path=t,e.syscall="mkdir",e};Wn.exports.makeDir=async(t,e)=>{if(Co(t),e=Po(e),Eo){let n=$e.resolve(t);return ht.mkdir(n,{mode:e.mode,recursive:!0})}let r=async n=>{try{await ht.mkdir(n,e.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if($e.dirname(n)===n)throw Oo(n);if(i.message.includes("null bytes"))throw i;return await r($e.dirname(n)),r(n)}try{if(!(await ht.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r($e.resolve(t))};Wn.exports.makeDirSync=(t,e)=>{if(Co(t),e=Po(e),Eo){let n=$e.resolve(t);return ht.mkdirSync(n,{mode:e.mode,recursive:!0})}let r=n=>{try{ht.mkdirSync(n,e.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if($e.dirname(n)===n)throw Oo(n);if(i.message.includes("null bytes"))throw i;return r($e.dirname(n)),r(n)}try{if(!ht.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r($e.resolve(t))}});var ke=y((Pv,Io)=>{"use strict";var oh=_e().fromPromise,{makeDir:ah,makeDirSync:Jn}=Do(),Vn=oh(ah);Io.exports={mkdirs:Vn,mkdirsSync:Jn,mkdirp:Vn,mkdirpSync:Jn,ensureDir:Vn,ensureDirSync:Jn}});var Yn=y((Ov,Fo)=>{"use strict";var pt=ue();function uh(t,e,r,n){pt.open(t,"r+",(i,s)=>{if(i)return n(i);pt.futimes(s,e,r,o=>{pt.close(s,a=>{n&&n(o||a)})})})}function ch(t,e,r){let n=pt.openSync(t,"r+");return pt.futimesSync(n,e,r),pt.closeSync(n)}Fo.exports={utimesMillis:uh,utimesMillisSync:ch}});var Bt=y((Dv,qo)=>{"use strict";var mt=$t(),we=require("path"),lh=require("util"),fh=zn(),Sr=fh("10.5.0"),Ro=t=>Sr?mt.stat(t,{bigint:!0}):mt.stat(t),Kn=t=>Sr?mt.statSync(t,{bigint:!0}):mt.statSync(t);function dh(t,e){return Promise.all([Ro(t),Ro(e).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function hh(t,e){let r,n=Kn(t);try{r=Kn(e)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function ph(t,e,r,n){lh.callbackify(dh)(t,e,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;return a&&Er(o,a)?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&Qn(t,e)?n(new Error(Cr(t,e,r))):n(null,{srcStat:o,destStat:a})})}function mh(t,e,r){let{srcStat:n,destStat:i}=hh(t,e);if(i&&Er(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&Qn(t,e))throw new Error(Cr(t,e,r));return{srcStat:n,destStat:i}}function Ao(t,e,r,n,i){let s=we.resolve(we.dirname(t)),o=we.resolve(we.dirname(r));if(o===s||o===we.parse(o).root)return i();let a=(u,h)=>u?u.code==="ENOENT"?i():i(u):Er(e,h)?i(new Error(Cr(t,r,n))):Ao(t,e,o,n,i);Sr?mt.stat(o,{bigint:!0},a):mt.stat(o,a)}function ko(t,e,r,n){let i=we.resolve(we.dirname(t)),s=we.resolve(we.dirname(r));if(s===i||s===we.parse(s).root)return;let o;try{o=Kn(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(Er(e,o))throw new Error(Cr(t,r,n));return ko(t,e,s,n)}function Er(t,e){return!!(e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev&&(Sr||e.ino<Number.MAX_SAFE_INTEGER||e.size===t.size&&e.mode===t.mode&&e.nlink===t.nlink&&e.atimeMs===t.atimeMs&&e.mtimeMs===t.mtimeMs&&e.ctimeMs===t.ctimeMs&&e.birthtimeMs===t.birthtimeMs))}function Qn(t,e){let r=we.resolve(t).split(we.sep).filter(i=>i),n=we.resolve(e).split(we.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function Cr(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}qo.exports={checkPaths:ph,checkPathsSync:mh,checkParentPaths:Ao,checkParentPathsSync:ko,isSrcSubdir:Qn}});var Lo=y((Iv,jo)=>{"use strict";var ce=ue(),Ut=require("path"),gh=ke().mkdirsSync,yh=Yn().utimesMillisSync,Xt=Bt();function vh(t,e,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;
3
3
 
4
- see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=Xt.checkPathsSync(t,e,"copy");return Xt.checkParentPathsSync(t,n,e,"copy"),bh(i,t,e,r)}function bh(t,e,r,n){if(n.filter&&!n.filter(e,r))return;let i=Ut.dirname(r);return ce.existsSync(i)||gh(i),qo(t,e,r,n)}function qo(t,e,r,n){if(!(n.filter&&!n.filter(e,r)))return _h(t,e,r,n)}function _h(t,e,r,n){let s=(n.dereference?ce.statSync:ce.lstatSync)(e);if(s.isDirectory())return Oh(s,t,e,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return wh(s,t,e,r,n);if(s.isSymbolicLink())return Fh(t,e,r,n)}function wh(t,e,r,n,i){return e?xh(t,r,n,i):To(t,r,n,i)}function xh(t,e,r,n){if(n.overwrite)return ce.unlinkSync(r),To(t,e,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function To(t,e,r,n){return ce.copyFileSync(e,r),n.preserveTimestamps&&Sh(t.mode,e,r),Zn(r,t.mode)}function Sh(t,e,r){return Eh(t)&&Ch(r,t),Ph(e,r)}function Eh(t){return(t&128)===0}function Ch(t,e){return Zn(t,e|128)}function Zn(t,e){return ce.chmodSync(t,e)}function Ph(t,e){let r=ce.statSync(t);return yh(e,r.atime,r.mtime)}function Oh(t,e,r,n,i){if(!e)return Dh(t.mode,r,n,i);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return No(r,n,i)}function Dh(t,e,r,n){return ce.mkdirSync(r),No(e,r,n),Zn(r,t)}function No(t,e,r){ce.readdirSync(t).forEach(n=>Ih(n,t,e,r))}function Ih(t,e,r,n){let i=Ut.join(e,t),s=Ut.join(r,t),{destStat:o}=Xt.checkPathsSync(i,s,"copy");return qo(o,i,s,n)}function Fh(t,e,r,n){let i=ce.readlinkSync(e);if(n.dereference&&(i=Ut.resolve(process.cwd(),i)),t){let s;try{s=ce.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return ce.symlinkSync(i,r);throw o}if(n.dereference&&(s=Ut.resolve(process.cwd(),s)),Xt.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(ce.statSync(r).isDirectory()&&Xt.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return Rh(i,r)}else return ce.symlinkSync(i,r)}function Rh(t,e){return ce.unlinkSync(e),ce.symlinkSync(t,e)}jo.exports=vh});var ei=y((Fv,$o)=>{"use strict";$o.exports={copySync:Lo()}});var He=y((Rv,Uo)=>{"use strict";var Ah=_e().fromPromise,Bo=$t();function kh(t){return Bo.access(t).then(()=>!0).catch(()=>!1)}Uo.exports={pathExists:Ah(kh),pathExistsSync:Bo.existsSync}});var Ko=y((Av,Yo)=>{"use strict";var xe=ue(),Ht=require("path"),Mh=ke().mkdirs,qh=He().pathExists,Th=Yn().utimesMillis,Gt=Bt();function Nh(t,e,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;
4
+ see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=Xt.checkPathsSync(t,e,"copy");return Xt.checkParentPathsSync(t,n,e,"copy"),bh(i,t,e,r)}function bh(t,e,r,n){if(n.filter&&!n.filter(e,r))return;let i=Ut.dirname(r);return ce.existsSync(i)||gh(i),Mo(t,e,r,n)}function Mo(t,e,r,n){if(!(n.filter&&!n.filter(e,r)))return _h(t,e,r,n)}function _h(t,e,r,n){let s=(n.dereference?ce.statSync:ce.lstatSync)(e);if(s.isDirectory())return Oh(s,t,e,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return wh(s,t,e,r,n);if(s.isSymbolicLink())return Fh(t,e,r,n)}function wh(t,e,r,n,i){return e?xh(t,r,n,i):To(t,r,n,i)}function xh(t,e,r,n){if(n.overwrite)return ce.unlinkSync(r),To(t,e,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function To(t,e,r,n){return ce.copyFileSync(e,r),n.preserveTimestamps&&Sh(t.mode,e,r),Zn(r,t.mode)}function Sh(t,e,r){return Eh(t)&&Ch(r,t),Ph(e,r)}function Eh(t){return(t&128)===0}function Ch(t,e){return Zn(t,e|128)}function Zn(t,e){return ce.chmodSync(t,e)}function Ph(t,e){let r=ce.statSync(t);return yh(e,r.atime,r.mtime)}function Oh(t,e,r,n,i){if(!e)return Dh(t.mode,r,n,i);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return No(r,n,i)}function Dh(t,e,r,n){return ce.mkdirSync(r),No(e,r,n),Zn(r,t)}function No(t,e,r){ce.readdirSync(t).forEach(n=>Ih(n,t,e,r))}function Ih(t,e,r,n){let i=Ut.join(e,t),s=Ut.join(r,t),{destStat:o}=Xt.checkPathsSync(i,s,"copy");return Mo(o,i,s,n)}function Fh(t,e,r,n){let i=ce.readlinkSync(e);if(n.dereference&&(i=Ut.resolve(process.cwd(),i)),t){let s;try{s=ce.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return ce.symlinkSync(i,r);throw o}if(n.dereference&&(s=Ut.resolve(process.cwd(),s)),Xt.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(ce.statSync(r).isDirectory()&&Xt.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return Rh(i,r)}else return ce.symlinkSync(i,r)}function Rh(t,e){return ce.unlinkSync(e),ce.symlinkSync(t,e)}jo.exports=vh});var ei=y((Fv,$o)=>{"use strict";$o.exports={copySync:Lo()}});var Ge=y((Rv,Uo)=>{"use strict";var Ah=_e().fromPromise,Bo=$t();function kh(t){return Bo.access(t).then(()=>!0).catch(()=>!1)}Uo.exports={pathExists:Ah(kh),pathExistsSync:Bo.existsSync}});var Ko=y((Av,Yo)=>{"use strict";var xe=ue(),Ht=require("path"),qh=ke().mkdirs,Mh=Ge().pathExists,Th=Yn().utimesMillis,Gt=Bt();function Nh(t,e,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;
5
5
 
6
- see https://github.com/jprichardson/node-fs-extra/issues/269`),Gt.checkPaths(t,e,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;Gt.checkParentPaths(t,o,e,"copy",u=>u?n(u):r.filter?zo(Xo,a,t,e,r,n):Xo(a,t,e,r,n))})}function Xo(t,e,r,n,i){let s=Ht.dirname(r);qh(s,(o,a)=>{if(o)return i(o);if(a)return ti(t,e,r,n,i);Mh(s,u=>u?i(u):ti(t,e,r,n,i))})}function zo(t,e,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?t(e,r,n,i,s):s(),o=>s(o))}function ti(t,e,r,n,i){return n.filter?zo(Ho,t,e,r,n,i):Ho(t,e,r,n,i)}function Ho(t,e,r,n,i){(n.dereference?xe.stat:xe.lstat)(e,(o,a)=>{if(o)return i(o);if(a.isDirectory())return Hh(a,t,e,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return jh(a,t,e,r,n,i);if(a.isSymbolicLink())return Wh(t,e,r,n,i)})}function jh(t,e,r,n,i,s){return e?Lh(t,r,n,i,s):Wo(t,r,n,i,s)}function Lh(t,e,r,n,i){if(n.overwrite)xe.unlink(r,s=>s?i(s):Wo(t,e,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function Wo(t,e,r,n,i){xe.copyFile(e,r,s=>s?i(s):n.preserveTimestamps?$h(t.mode,e,r,i):Pr(r,t.mode,i))}function $h(t,e,r,n){return Bh(t)?Uh(r,t,i=>i?n(i):Go(t,e,r,n)):Go(t,e,r,n)}function Bh(t){return(t&128)===0}function Uh(t,e,r){return Pr(t,e|128,r)}function Go(t,e,r,n){Xh(e,r,i=>i?n(i):Pr(r,t,n))}function Pr(t,e,r){return xe.chmod(t,e,r)}function Xh(t,e,r){xe.stat(t,(n,i)=>n?r(n):Th(e,i.atime,i.mtime,r))}function Hh(t,e,r,n,i,s){return e?e&&!e.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):Jo(r,n,i,s):Gh(t.mode,r,n,i,s)}function Gh(t,e,r,n,i){xe.mkdir(r,s=>{if(s)return i(s);Jo(e,r,n,o=>o?i(o):Pr(r,t,i))})}function Jo(t,e,r,n){xe.readdir(t,(i,s)=>i?n(i):Vo(s,t,e,r,n))}function Vo(t,e,r,n,i){let s=t.pop();return s?zh(t,s,e,r,n,i):i()}function zh(t,e,r,n,i,s){let o=Ht.join(r,e),a=Ht.join(n,e);Gt.checkPaths(o,a,"copy",(u,h)=>{if(u)return s(u);let{destStat:c}=h;ti(c,o,a,i,p=>p?s(p):Vo(t,r,n,i,s))})}function Wh(t,e,r,n,i){xe.readlink(e,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=Ht.resolve(process.cwd(),o)),t)xe.readlink(r,(a,u)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?xe.symlink(o,r,i):i(a):(n.dereference&&(u=Ht.resolve(process.cwd(),u)),Gt.isSrcSubdir(o,u)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${u}'.`)):t.isDirectory()&&Gt.isSrcSubdir(u,o)?i(new Error(`Cannot overwrite '${u}' with '${o}'.`)):Jh(o,r,i)));else return xe.symlink(o,r,i)})}function Jh(t,e,r){xe.unlink(e,n=>n?r(n):xe.symlink(t,e,r))}Yo.exports=Nh});var ri=y((kv,Qo)=>{"use strict";var Vh=_e().fromCallback;Qo.exports={copy:Vh(Ko())}});var aa=y((Mv,oa)=>{"use strict";var Zo=ue(),na=require("path"),H=require("assert"),zt=process.platform==="win32";function ia(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||Zo[r],r=r+"Sync",t[r]=t[r]||Zo[r]}),t.maxBusyTries=t.maxBusyTries||3}function ni(t,e,r){let n=0;typeof e=="function"&&(r=e,e={}),H(t,"rimraf: missing path"),H.strictEqual(typeof t,"string","rimraf: path should be a string"),H.strictEqual(typeof r,"function","rimraf: callback function required"),H(e,"rimraf: invalid options argument provided"),H.strictEqual(typeof e,"object","rimraf: options should be object"),ia(e),ea(t,e,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<e.maxBusyTries){n++;let o=n*100;return setTimeout(()=>ea(t,e,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function ea(t,e,r){H(t),H(e),H(typeof r=="function"),e.lstat(t,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&zt)return ta(t,e,n,r);if(i&&i.isDirectory())return Or(t,e,n,r);e.unlink(t,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return zt?ta(t,e,s,r):Or(t,e,s,r);if(s.code==="EISDIR")return Or(t,e,s,r)}return r(s)})})}function ta(t,e,r,n){H(t),H(e),H(typeof n=="function"),e.chmod(t,438,i=>{i?n(i.code==="ENOENT"?null:r):e.stat(t,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?Or(t,e,r,n):e.unlink(t,n)})})}function ra(t,e,r){let n;H(t),H(e);try{e.chmodSync(t,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=e.statSync(t)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?Dr(t,e,r):e.unlinkSync(t)}function Or(t,e,r,n){H(t),H(e),H(typeof n=="function"),e.rmdir(t,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?Yh(t,e,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function Yh(t,e,r){H(t),H(e),H(typeof r=="function"),e.readdir(t,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return e.rmdir(t,r);i.forEach(a=>{ni(na.join(t,a),e,u=>{if(!o){if(u)return r(o=u);--s===0&&e.rmdir(t,r)}})})})}function sa(t,e){let r;e=e||{},ia(e),H(t,"rimraf: missing path"),H.strictEqual(typeof t,"string","rimraf: path should be a string"),H(e,"rimraf: missing options"),H.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&zt&&ra(t,e,n)}try{r&&r.isDirectory()?Dr(t,e,null):e.unlinkSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return zt?ra(t,e,n):Dr(t,e,n);if(n.code!=="EISDIR")throw n;Dr(t,e,n)}}function Dr(t,e,r){H(t),H(e);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")Kh(t,e);else if(n.code!=="ENOENT")throw n}}function Kh(t,e){if(H(t),H(e),e.readdirSync(t).forEach(r=>sa(na.join(t,r),e)),zt){let r=Date.now();do try{return e.rmdirSync(t,e)}catch{}while(Date.now()-r<500)}else return e.rmdirSync(t,e)}oa.exports=ni;ni.sync=sa});var Wt=y((qv,ca)=>{"use strict";var Qh=_e().fromCallback,ua=aa();ca.exports={remove:Qh(ua),removeSync:ua.sync}});var ya=y((Tv,ga)=>{"use strict";var Zh=_e().fromCallback,da=ue(),ha=require("path"),pa=ke(),ma=Wt(),la=Zh(function(e,r){r=r||function(){},da.readdir(e,(n,i)=>{if(n)return pa.mkdirs(e,r);i=i.map(o=>ha.join(e,o)),s();function s(){let o=i.pop();if(!o)return r();ma.remove(o,a=>{if(a)return r(a);s()})}})});function fa(t){let e;try{e=da.readdirSync(t)}catch{return pa.mkdirsSync(t)}e.forEach(r=>{r=ha.join(t,r),ma.removeSync(r)})}ga.exports={emptyDirSync:fa,emptydirSync:fa,emptyDir:la,emptydir:la}});var wa=y((Nv,_a)=>{"use strict";var e0=_e().fromCallback,va=require("path"),Ge=ue(),ba=ke();function t0(t,e){function r(){Ge.writeFile(t,"",n=>{if(n)return e(n);e()})}Ge.stat(t,(n,i)=>{if(!n&&i.isFile())return e();let s=va.dirname(t);Ge.stat(s,(o,a)=>{if(o)return o.code==="ENOENT"?ba.mkdirs(s,u=>{if(u)return e(u);r()}):e(o);a.isDirectory()?r():Ge.readdir(s,u=>{if(u)return e(u)})})})}function r0(t){let e;try{e=Ge.statSync(t)}catch{}if(e&&e.isFile())return;let r=va.dirname(t);try{Ge.statSync(r).isDirectory()||Ge.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")ba.mkdirsSync(r);else throw n}Ge.writeFileSync(t,"")}_a.exports={createFile:e0(t0),createFileSync:r0}});var Pa=y((jv,Ca)=>{"use strict";var n0=_e().fromCallback,Sa=require("path"),tt=ue(),Ea=ke(),xa=He().pathExists;function i0(t,e,r){function n(i,s){tt.link(i,s,o=>{if(o)return r(o);r(null)})}xa(e,(i,s)=>{if(i)return r(i);if(s)return r(null);tt.lstat(t,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);let a=Sa.dirname(e);xa(a,(u,h)=>{if(u)return r(u);if(h)return n(t,e);Ea.mkdirs(a,c=>{if(c)return r(c);n(t,e)})})})})}function s0(t,e){if(tt.existsSync(e))return;try{tt.lstatSync(t)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=Sa.dirname(e);return tt.existsSync(n)||Ea.mkdirsSync(n),tt.linkSync(t,e)}Ca.exports={createLink:n0(i0),createLinkSync:s0}});var Da=y((Lv,Oa)=>{"use strict";var ze=require("path"),Jt=ue(),o0=He().pathExists;function a0(t,e,r){if(ze.isAbsolute(t))return Jt.lstat(t,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:t,toDst:t}));{let n=ze.dirname(e),i=ze.join(n,t);return o0(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:t}):Jt.lstat(t,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:t,toDst:ze.relative(n,t)})))}}function u0(t,e){let r;if(ze.isAbsolute(t)){if(r=Jt.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}else{let n=ze.dirname(e),i=ze.join(n,t);if(r=Jt.existsSync(i),r)return{toCwd:i,toDst:t};if(r=Jt.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:ze.relative(n,t)}}}Oa.exports={symlinkPaths:a0,symlinkPathsSync:u0}});var Ra=y(($v,Fa)=>{"use strict";var Ia=ue();function c0(t,e,r){if(r=typeof e=="function"?e:r,e=typeof e=="function"?!1:e,e)return r(null,e);Ia.lstat(t,(n,i)=>{if(n)return r(null,"file");e=i&&i.isDirectory()?"dir":"file",r(null,e)})}function l0(t,e){let r;if(e)return e;try{r=Ia.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Fa.exports={symlinkType:c0,symlinkTypeSync:l0}});var ja=y((Bv,Na)=>{"use strict";var f0=_e().fromCallback,ka=require("path"),gt=ue(),Ma=ke(),d0=Ma.mkdirs,h0=Ma.mkdirsSync,qa=Da(),p0=qa.symlinkPaths,m0=qa.symlinkPathsSync,Ta=Ra(),g0=Ta.symlinkType,y0=Ta.symlinkTypeSync,Aa=He().pathExists;function v0(t,e,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,Aa(e,(i,s)=>{if(i)return n(i);if(s)return n(null);p0(t,e,(o,a)=>{if(o)return n(o);t=a.toDst,g0(a.toCwd,r,(u,h)=>{if(u)return n(u);let c=ka.dirname(e);Aa(c,(p,g)=>{if(p)return n(p);if(g)return gt.symlink(t,e,h,n);d0(c,m=>{if(m)return n(m);gt.symlink(t,e,h,n)})})})})})}function b0(t,e,r){if(gt.existsSync(e))return;let i=m0(t,e);t=i.toDst,r=y0(i.toCwd,r);let s=ka.dirname(e);return gt.existsSync(s)||h0(s),gt.symlinkSync(t,e,r)}Na.exports={createSymlink:f0(v0),createSymlinkSync:b0}});var $a=y((Uv,La)=>{"use strict";var Ir=wa(),Fr=Pa(),Rr=ja();La.exports={createFile:Ir.createFile,createFileSync:Ir.createFileSync,ensureFile:Ir.createFile,ensureFileSync:Ir.createFileSync,createLink:Fr.createLink,createLinkSync:Fr.createLinkSync,ensureLink:Fr.createLink,ensureLinkSync:Fr.createLinkSync,createSymlink:Rr.createSymlink,createSymlinkSync:Rr.createSymlinkSync,ensureSymlink:Rr.createSymlink,ensureSymlinkSync:Rr.createSymlinkSync}});var Ar=y((Xv,Ba)=>{function _0(t,{EOL:e=`
7
- `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?e:"";return JSON.stringify(t,n,i).replace(/\n/g,e)+s}function w0(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}Ba.exports={stringify:_0,stripBom:w0}});var Ga=y((Hv,Ha)=>{var yt;try{yt=ue()}catch{yt=require("fs")}var kr=_e(),{stringify:Ua,stripBom:Xa}=Ar();async function x0(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||yt,n="throws"in e?e.throws:!0,i=await kr.fromCallback(r.readFile)(t,e);i=Xa(i);let s;try{s=JSON.parse(i,e?e.reviver:null)}catch(o){if(n)throw o.message=`${t}: ${o.message}`,o;return null}return s}var S0=kr.fromPromise(x0);function E0(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||yt,n="throws"in e?e.throws:!0;try{let i=r.readFileSync(t,e);return i=Xa(i),JSON.parse(i,e.reviver)}catch(i){if(n)throw i.message=`${t}: ${i.message}`,i;return null}}async function C0(t,e,r={}){let n=r.fs||yt,i=Ua(e,r);await kr.fromCallback(n.writeFile)(t,i,r)}var P0=kr.fromPromise(C0);function O0(t,e,r={}){let n=r.fs||yt,i=Ua(e,r);return n.writeFileSync(t,i,r)}var D0={readFile:S0,readFileSync:E0,writeFile:P0,writeFileSync:O0};Ha.exports=D0});var Wa=y((Gv,za)=>{"use strict";var Mr=Ga();za.exports={readJson:Mr.readFile,readJsonSync:Mr.readFileSync,writeJson:Mr.writeFile,writeJsonSync:Mr.writeFileSync}});var qr=y((zv,Ya)=>{"use strict";var I0=_e().fromCallback,Vt=ue(),Ja=require("path"),Va=ke(),F0=He().pathExists;function R0(t,e,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Ja.dirname(t);F0(i,(s,o)=>{if(s)return n(s);if(o)return Vt.writeFile(t,e,r,n);Va.mkdirs(i,a=>{if(a)return n(a);Vt.writeFile(t,e,r,n)})})}function A0(t,...e){let r=Ja.dirname(t);if(Vt.existsSync(r))return Vt.writeFileSync(t,...e);Va.mkdirsSync(r),Vt.writeFileSync(t,...e)}Ya.exports={outputFile:I0(R0),outputFileSync:A0}});var Qa=y((Wv,Ka)=>{"use strict";var{stringify:k0}=Ar(),{outputFile:M0}=qr();async function q0(t,e,r={}){let n=k0(e,r);await M0(t,n,r)}Ka.exports=q0});var eu=y((Jv,Za)=>{"use strict";var{stringify:T0}=Ar(),{outputFileSync:N0}=qr();function j0(t,e,r){let n=T0(e,r);N0(t,n,r)}Za.exports=j0});var ru=y((Vv,tu)=>{"use strict";var L0=_e().fromPromise,pe=Wa();pe.outputJson=L0(Qa());pe.outputJsonSync=eu();pe.outputJSON=pe.outputJson;pe.outputJSONSync=pe.outputJsonSync;pe.writeJSON=pe.writeJson;pe.writeJSONSync=pe.writeJsonSync;pe.readJSON=pe.readJson;pe.readJSONSync=pe.readJsonSync;tu.exports=pe});var uu=y((Yv,au)=>{"use strict";var su=ue(),$0=require("path"),B0=ei().copySync,ou=Wt().removeSync,U0=ke().mkdirpSync,nu=Bt();function X0(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=nu.checkPathsSync(t,e,"move");return nu.checkParentPathsSync(t,i,e,"move"),U0($0.dirname(e)),H0(t,e,n)}function H0(t,e,r){if(r)return ou(e),iu(t,e,r);if(su.existsSync(e))throw new Error("dest already exists.");return iu(t,e,r)}function iu(t,e,r){try{su.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return G0(t,e,r)}}function G0(t,e,r){return B0(t,e,{overwrite:r,errorOnExist:!0}),ou(t)}au.exports=X0});var lu=y((Kv,cu)=>{"use strict";cu.exports={moveSync:uu()}});var mu=y((Qv,pu)=>{"use strict";var z0=ue(),W0=require("path"),J0=ri().copy,hu=Wt().remove,V0=ke().mkdirp,Y0=He().pathExists,fu=Bt();function K0(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;fu.checkPaths(t,e,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;fu.checkParentPaths(t,a,e,"move",u=>{if(u)return n(u);V0(W0.dirname(e),h=>h?n(h):Q0(t,e,i,n))})})}function Q0(t,e,r,n){if(r)return hu(e,i=>i?n(i):du(t,e,r,n));Y0(e,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):du(t,e,r,n))}function du(t,e,r,n){z0.rename(t,e,i=>i?i.code!=="EXDEV"?n(i):Z0(t,e,r,n):n())}function Z0(t,e,r,n){J0(t,e,{overwrite:r,errorOnExist:!0},s=>s?n(s):hu(t,n))}pu.exports=K0});var yu=y((Zv,gu)=>{"use strict";var ep=_e().fromCallback;gu.exports={move:ep(mu())}});var vt=y((eb,ii)=>{"use strict";ii.exports={...$t(),...ei(),...ri(),...ya(),...$a(),...ru(),...ke(),...lu(),...yu(),...qr(),...He(),...Wt()};var vu=require("fs");Object.getOwnPropertyDescriptor(vu,"promises")&&Object.defineProperty(ii.exports,"promises",{get(){return vu.promises}})});var Ou=y((rb,Pu)=>{"use strict";var rp=/[|\\{}()[\]^$+*?.]/g;Pu.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(rp,"\\$&")}});var Iu=y((nb,Du)=>{"use strict";Du.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 ai=y((ib,ku)=>{var nt=Iu(),Au={};for(jr in nt)nt.hasOwnProperty(jr)&&(Au[nt[jr]]=jr);var jr,E=ku.exports={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"]}};for(me in E)if(E.hasOwnProperty(me)){if(!("channels"in E[me]))throw new Error("missing channels property: "+me);if(!("labels"in E[me]))throw new Error("missing channel labels property: "+me);if(E[me].labels.length!==E[me].channels)throw new Error("channel and label counts mismatch: "+me);Fu=E[me].channels,Ru=E[me].labels,delete E[me].channels,delete E[me].labels,Object.defineProperty(E[me],"channels",{value:Fu}),Object.defineProperty(E[me],"labels",{value:Ru})}var Fu,Ru,me;E.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,u,h;return s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),h=(i+s)/2,s===i?u=0:h<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,h*100]};E.rgb.hsv=function(t){var e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,h=Math.max(o,a,u),c=h-Math.min(o,a,u),p=function(g){return(h-g)/6/c+1/2};return c===0?i=s=0:(s=c/h,e=p(o),r=p(a),n=p(u),o===h?i=n-r:a===h?i=1/3+e-n:u===h&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,h*100]};E.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=E.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};E.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i,s,o,a;return a=Math.min(1-e,1-r,1-n),i=(1-e-a)/(1-a)||0,s=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[i*100,s*100,o*100,a*100]};function np(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}E.rgb.keyword=function(t){var e=Au[t];if(e)return e;var r=1/0,n;for(var i in nt)if(nt.hasOwnProperty(i)){var s=nt[i],o=np(t,s);o<r&&(r=o,n=i)}return n};E.keyword.rgb=function(t){return nt[t]};E.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};E.rgb.lab=function(t){var e=E.rgb.xyz(t),r=e[0],n=e[1],i=e[2],s,o,a;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),a=200*(n-i),[s,o,a]};E.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o,a,u;if(r===0)return u=n*255,[u,u,u];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var h=0;h<3;h++)o=e+1/3*-(h-1),o<0&&o++,o>1&&o--,6*o<1?u=i+(s-i)*6*o:2*o<1?u=s:3*o<2?u=i+(s-i)*(2/3-o)*6:u=i,a[h]=u*255;return a};E.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[e,o*100,a*100]};E.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),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]}};E.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o,a;return a=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[e,o*100,a*100]};E.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s,o,a,u;i>1&&(r/=i,n/=i),s=Math.floor(6*e),o=1-n,a=6*e-s,s&1&&(a=1-a),u=r+a*(o-r);var h,c,p;switch(s){default:case 6:case 0:h=o,c=u,p=r;break;case 1:h=u,c=o,p=r;break;case 2:h=r,c=o,p=u;break;case 3:h=r,c=u,p=o;break;case 4:h=u,c=r,p=o;break;case 5:h=o,c=r,p=u;break}return[h*255,c*255,p*255]};E.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s,o,a;return s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};E.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(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]};E.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(e-r),o=200*(r-n),[i,s,o]};E.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),u=Math.pow(i,3),h=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=h>.008856?h:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};E.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[e,o,s]};E.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[e,i,s]};E.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:E.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return i===2&&(s+=60),s};E.hsv.ansi16=function(t){return E.rgb.ansi16(E.hsv.rgb(t),t[2])};E.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};E.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};E.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};E.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};E.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};E.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===e?u=(r-n)/o%6:i===r?u=2+(n-e)/o:u=4+(e-r)/o+4,u/=6,u%=1,[u*360,o*100,a*100]};E.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};E.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};E.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=e%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]};E.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};E.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};E.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};E.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};E.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};E.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};E.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};E.gray.hsl=E.gray.hsv=function(t){return[0,0,t[0]]};E.gray.hwb=function(t){return[0,100,t[0]]};E.gray.cmyk=function(t){return[0,0,0,t[0]]};E.gray.lab=function(t){return[t[0],0,0]};E.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};E.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var qu=y((sb,Mu)=>{var Lr=ai();function ip(){for(var t={},e=Object.keys(Lr),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function sp(t){var e=ip(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Lr[n]),s=i.length,o=0;o<s;o++){var a=i[o],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}return e}function op(t,e){return function(r){return e(t(r))}}function ap(t,e){for(var r=[e[t].parent,t],n=Lr[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=op(Lr[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}Mu.exports=function(t){for(var e=sp(t),r={},n=Object.keys(e),i=n.length,s=0;s<i;s++){var o=n[s],a=e[o];a.parent!==null&&(r[o]=ap(o,e))}return r}});var Nu=y((ob,Tu)=>{var ui=ai(),up=qu(),bt={},cp=Object.keys(ui);function lp(t){var e=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function fp(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}cp.forEach(function(t){bt[t]={},Object.defineProperty(bt[t],"channels",{value:ui[t].channels}),Object.defineProperty(bt[t],"labels",{value:ui[t].labels});var e=up(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];bt[t][n]=fp(i),bt[t][n].raw=lp(i)})});Tu.exports=bt});var Lu=y((ab,ju)=>{"use strict";var _t=Nu(),$r=(t,e)=>function(){return`\x1B[${t.apply(_t,arguments)+e}m`},Br=(t,e)=>function(){let r=t.apply(_t,arguments);return`\x1B[${38+e};5;${r}m`},Ur=(t,e)=>function(){let r=t.apply(_t,arguments);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function dp(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.grey=e.color.gray;for(let i of Object.keys(e)){let s=e[i];for(let o of Object.keys(s)){let a=s[o];e[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},s[o]=e[o],t.set(a[0],a[1])}Object.defineProperty(e,i,{value:s,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:$r(r,0)},e.color.ansi256={ansi256:Br(r,0)},e.color.ansi16m={rgb:Ur(n,0)},e.bgColor.ansi={ansi:$r(r,10)},e.bgColor.ansi256={ansi256:Br(r,10)},e.bgColor.ansi16m={rgb:Ur(n,10)};for(let i of Object.keys(_t)){if(typeof _t[i]!="object")continue;let s=_t[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(e.color.ansi[i]=$r(s.ansi16,0),e.bgColor.ansi[i]=$r(s.ansi16,10)),"ansi256"in s&&(e.color.ansi256[i]=Br(s.ansi256,0),e.bgColor.ansi256[i]=Br(s.ansi256,10)),"rgb"in s&&(e.color.ansi16m[i]=Ur(s.rgb,0),e.bgColor.ansi16m[i]=Ur(s.rgb,10))}return e}Object.defineProperty(ju,"exports",{enumerable:!0,get:dp})});var Bu=y((ub,$u)=>{"use strict";$u.exports=(t,e)=>{e=e||process.argv;let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var Xu=y((cb,Uu)=>{"use strict";var hp=require("os"),Me=Bu(),le=process.env,wt;Me("no-color")||Me("no-colors")||Me("color=false")?wt=!1:(Me("color")||Me("colors")||Me("color=true")||Me("color=always"))&&(wt=!0);"FORCE_COLOR"in le&&(wt=le.FORCE_COLOR.length===0||parseInt(le.FORCE_COLOR,10)!==0);function pp(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function mp(t){if(wt===!1)return 0;if(Me("color=16m")||Me("color=full")||Me("color=truecolor"))return 3;if(Me("color=256"))return 2;if(t&&!t.isTTY&&wt!==!0)return 0;let e=wt?1:0;if(process.platform==="win32"){let r=hp.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in le)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in le)||le.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in le)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(le.TEAMCITY_VERSION)?1:0;if(le.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in le){let r=parseInt((le.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(le.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(le.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(le.TERM)||"COLORTERM"in le?1:(le.TERM==="dumb",e)}function ci(t){let e=mp(t);return pp(e)}Uu.exports={supportsColor:ci,stdout:ci(process.stdout),stderr:ci(process.stderr)}});var Ju=y((lb,Wu)=>{"use strict";var gp=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Hu=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,yp=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,vp=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,bp=new Map([["n",`
8
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function zu(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):bp.get(t)||t}function _p(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(yp))r.push(i[2].replace(vp,(o,a,u)=>a?zu(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`);return r}function wp(t){Hu.lastIndex=0;let e=[],r;for(;(r=Hu.exec(t))!==null;){let n=r[1];if(r[2]){let i=_p(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function Gu(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}Wu.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(gp,(s,o,a,u,h,c)=>{if(o)i.push(zu(o));else if(u){let p=i.join("");i=[],n.push(r.length===0?p:Gu(t,r)(p)),r.push({inverse:a,styles:wp(u)})}else if(h){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Gu(t,r)(i.join(""))),i=[],r.pop()}else i.push(c)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var Hr=y((fb,Kt)=>{"use strict";var fi=Ou(),V=Lu(),li=Xu().stdout,xp=Ju(),Yu=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),Ku=["ansi","ansi","ansi256","ansi16m"],Qu=new Set(["gray"]),xt=Object.create(null);function Vu(t,e){e=e||{};let r=li?li.level:0;t.level=e.level===void 0?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function Yt(t){if(!this||!(this instanceof Yt)||this.template){let e={};return Vu(e,t),e.template=function(){let r=[].slice.call(arguments);return Cp.apply(null,[e.template].concat(r))},Object.setPrototypeOf(e,Yt.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=Yt,e.template}Vu(this,t)}Yu&&(V.blue.open="\x1B[94m");for(let t of Object.keys(V))V[t].closeRe=new RegExp(fi(V[t].close),"g"),xt[t]={get(){let e=V[t];return Xr.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};xt.visible={get(){return Xr.call(this,this._styles||[],!0,"visible")}};V.color.closeRe=new RegExp(fi(V.color.close),"g");for(let t of Object.keys(V.color.ansi))Qu.has(t)||(xt[t]={get(){let e=this.level;return function(){let n={open:V.color[Ku[e]][t].apply(null,arguments),close:V.color.close,closeRe:V.color.closeRe};return Xr.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}});V.bgColor.closeRe=new RegExp(fi(V.bgColor.close),"g");for(let t of Object.keys(V.bgColor.ansi)){if(Qu.has(t))continue;let e="bg"+t[0].toUpperCase()+t.slice(1);xt[e]={get(){let r=this.level;return function(){let i={open:V.bgColor[Ku[r]][t].apply(null,arguments),close:V.bgColor.close,closeRe:V.bgColor.closeRe};return Xr.call(this,this._styles?this._styles.concat(i):[i],this._empty,t)}}}}var Sp=Object.defineProperties(()=>{},xt);function Xr(t,e,r){let n=function(){return Ep.apply(n,arguments)};n._styles=t,n._empty=e;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=Sp,n}function Ep(){let t=arguments,e=t.length,r=String(arguments[0]);if(e===0)return"";if(e>1)for(let i=1;i<e;i++)r+=" "+t[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=V.dim.open;Yu&&this.hasGrey&&(V.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return V.dim.open=n,r}function Cp(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[e.raw[0]];for(let i=1;i<e.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(e.raw[i]));return xp(t,n.join(""))}Object.defineProperties(Yt.prototype,xt);Kt.exports=Yt();Kt.exports.supportsColor=li;Kt.exports.default=Kt.exports});var St=y((db,di)=>{var Pp=require("fs"),Op=require("path");function Zu(t){console.log(`[dotenv][DEBUG] ${t}`)}var Dp=`
9
- `,Ip=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,Fp=/\\n/g,Rp=/\n|\r|\r\n/;function ec(t,e){let r=!!(e&&e.debug),n={};return t.toString().split(Rp).forEach(function(i,s){let o=i.match(Ip);if(o!=null){let a=o[1],u=o[2]||"",h=u.length-1,c=u[0]==='"'&&u[h]==='"';u[0]==="'"&&u[h]==="'"||c?(u=u.substring(1,h),c&&(u=u.replace(Fp,Dp))):u=u.trim(),n[a]=u}else r&&Zu(`did not match key and value when parsing line ${s+1}: ${i}`)}),n}function Ap(t){let e=Op.resolve(process.cwd(),".env"),r="utf8",n=!1;t&&(t.path!=null&&(e=t.path),t.encoding!=null&&(r=t.encoding),t.debug!=null&&(n=!0));try{let i=ec(Pp.readFileSync(e,{encoding:r}),{debug:n});return Object.keys(i).forEach(function(s){Object.prototype.hasOwnProperty.call(process.env,s)?n&&Zu(`"${s}" is already defined in \`process.env\` and will not be overwritten`):process.env[s]=i[s]}),{parsed:i}}catch(i){return{error:i}}}di.exports.config=Ap;di.exports.parse=ec});var rc=y((hb,tc)=>{"use strict";tc.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 hi=y((pb,ic)=>{var Qt=rc(),nc={};for(let t of Object.keys(Qt))nc[Qt[t]]=t;var C={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"]}};ic.exports=C;for(let t of Object.keys(C)){if(!("channels"in C[t]))throw new Error("missing channels property: "+t);if(!("labels"in C[t]))throw new Error("missing channel labels property: "+t);if(C[t].labels.length!==C[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=C[t];delete C[t].channels,delete C[t].labels,Object.defineProperty(C[t],"channels",{value:e}),Object.defineProperty(C[t],"labels",{value:r})}C.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,u;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let h=(i+s)/2;return s===i?u=0:h<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,h*100]};C.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,h=Math.max(o,a,u),c=h-Math.min(o,a,u),p=function(g){return(h-g)/6/c+1/2};return c===0?(i=0,s=0):(s=c/h,e=p(o),r=p(a),n=p(u),o===h?i=n-r:a===h?i=1/3+e-n:u===h&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,h*100]};C.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=C.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};C.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-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 kp(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}C.rgb.keyword=function(t){let e=nc[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(Qt)){let s=Qt[i],o=kp(t,s);o<r&&(r=o,n=i)}return n};C.keyword.rgb=function(t){return Qt[t]};C.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/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=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};C.rgb.lab=function(t){let e=C.rgb.xyz(t),r=e[0],n=e[1],i=e[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]};C.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[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 h=0;h<3;h++)s=e+1/3*-(h-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[h]=o*255;return u};C.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[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[e,a*100,o*100]};C.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),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]}};C.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[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,[e,s*100,o*100]};C.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,o&1&&(s=1-s);let u=r+s*(a-r),h,c,p;switch(o){default:case 6:case 0:h=a,c=u,p=r;break;case 1:h=u,c=a,p=r;break;case 2:h=r,c=a,p=u;break;case 3:h=r,c=u,p=a;break;case 4:h=u,c=r,p=a;break;case 5:h=a,c=r,p=u;break}return[h*255,c*255,p*255]};C.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(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]};C.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.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]};C.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+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*(e-r),o=200*(r-n);return[i,s,o]};C.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let a=s**3,u=i**3,h=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=h>.008856?h:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};C.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};C.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};C.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?C.rgb.hsv(t)[2]:e;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};C.hsv.ansi16=function(t){return C.rgb.ansi16(C.hsv.rgb(t),t[2])};C.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};C.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};C.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};C.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};C.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[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]};C.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===e?u=(r-n)/o%6:i===r?u=2+(n-e)/o:u=4+(e-r)/o,u/=6,u%=1,[u*360,o*100,a*100]};C.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};C.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};C.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%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]};C.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};C.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};C.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};C.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};C.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};C.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};C.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};C.gray.hsl=function(t){return[0,0,t[0]]};C.gray.hsv=C.gray.hsl;C.gray.hwb=function(t){return[0,100,t[0]]};C.gray.cmyk=function(t){return[0,0,0,t[0]]};C.gray.lab=function(t){return[t[0],0,0]};C.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};C.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var oc=y((mb,sc)=>{var Gr=hi();function Mp(){let t={},e=Object.keys(Gr);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function qp(t){let e=Mp(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(Gr[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}}return e}function Tp(t,e){return function(r){return e(t(r))}}function Np(t,e){let r=[e[t].parent,t],n=Gr[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=Tp(Gr[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}sc.exports=function(t){let e=qp(t),r={},n=Object.keys(e);for(let i=n.length,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=Np(o,e))}return r}});var uc=y((gb,ac)=>{var pi=hi(),jp=oc(),Et={},Lp=Object.keys(pi);function $p(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function Bp(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}Lp.forEach(t=>{Et[t]={},Object.defineProperty(Et[t],"channels",{value:pi[t].channels}),Object.defineProperty(Et[t],"labels",{value:pi[t].labels});let e=jp(t);Object.keys(e).forEach(n=>{let i=e[n];Et[t][n]=Bp(i),Et[t][n].raw=$p(i)})});ac.exports=Et});var pc=y((yb,hc)=>{"use strict";var cc=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,lc=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},fc=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},zr=t=>t,dc=(t,e,r)=>[t,e,r],Ct=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},mi,Pt=(t,e,r,n)=>{mi===void 0&&(mi=uc());let i=n?10:0,s={};for(let[o,a]of Object.entries(mi)){let u=o==="ansi16"?"ansi":o;o===e?s[u]=t(r,i):typeof a=="object"&&(s[u]=t(a[e],i))}return s};function Up(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",Ct(e.color,"ansi",()=>Pt(cc,"ansi16",zr,!1)),Ct(e.color,"ansi256",()=>Pt(lc,"ansi256",zr,!1)),Ct(e.color,"ansi16m",()=>Pt(fc,"rgb",dc,!1)),Ct(e.bgColor,"ansi",()=>Pt(cc,"ansi16",zr,!0)),Ct(e.bgColor,"ansi256",()=>Pt(lc,"ansi256",zr,!0)),Ct(e.bgColor,"ansi16m",()=>Pt(fc,"rgb",dc,!0)),e}Object.defineProperty(hc,"exports",{enumerable:!0,get:Up})});var gc=y((vb,mc)=>{"use strict";mc.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var vi=y((bb,vc)=>{"use strict";var Xp=require("os"),yc=require("tty"),Fe=gc(),{env:Q}=process,We;Fe("no-color")||Fe("no-colors")||Fe("color=false")||Fe("color=never")?We=0:(Fe("color")||Fe("colors")||Fe("color=true")||Fe("color=always"))&&(We=1);"FORCE_COLOR"in Q&&(Q.FORCE_COLOR==="true"?We=1:Q.FORCE_COLOR==="false"?We=0:We=Q.FORCE_COLOR.length===0?1:Math.min(parseInt(Q.FORCE_COLOR,10),3));function gi(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function yi(t,e){if(We===0)return 0;if(Fe("color=16m")||Fe("color=full")||Fe("color=truecolor"))return 3;if(Fe("color=256"))return 2;if(t&&!e&&We===void 0)return 0;let r=We||0;if(Q.TERM==="dumb")return r;if(process.platform==="win32"){let n=Xp.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Q)||Q.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Q.TEAMCITY_VERSION)?1:0;if(Q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Q){let n=parseInt((Q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Q.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Q.TERM)||"COLORTERM"in Q?1:r}function Hp(t){let e=yi(t,t&&t.isTTY);return gi(e)}vc.exports={supportsColor:Hp,stdout:gi(yi(!0,yc.isatty(1))),stderr:gi(yi(!0,yc.isatty(2)))}});var _c=y((_b,bc)=>{"use strict";var Gp=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},zp=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
6
+ see https://github.com/jprichardson/node-fs-extra/issues/269`),Gt.checkPaths(t,e,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;Gt.checkParentPaths(t,o,e,"copy",u=>u?n(u):r.filter?zo(Xo,a,t,e,r,n):Xo(a,t,e,r,n))})}function Xo(t,e,r,n,i){let s=Ht.dirname(r);Mh(s,(o,a)=>{if(o)return i(o);if(a)return ti(t,e,r,n,i);qh(s,u=>u?i(u):ti(t,e,r,n,i))})}function zo(t,e,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?t(e,r,n,i,s):s(),o=>s(o))}function ti(t,e,r,n,i){return n.filter?zo(Ho,t,e,r,n,i):Ho(t,e,r,n,i)}function Ho(t,e,r,n,i){(n.dereference?xe.stat:xe.lstat)(e,(o,a)=>{if(o)return i(o);if(a.isDirectory())return Hh(a,t,e,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return jh(a,t,e,r,n,i);if(a.isSymbolicLink())return Wh(t,e,r,n,i)})}function jh(t,e,r,n,i,s){return e?Lh(t,r,n,i,s):Wo(t,r,n,i,s)}function Lh(t,e,r,n,i){if(n.overwrite)xe.unlink(r,s=>s?i(s):Wo(t,e,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function Wo(t,e,r,n,i){xe.copyFile(e,r,s=>s?i(s):n.preserveTimestamps?$h(t.mode,e,r,i):Pr(r,t.mode,i))}function $h(t,e,r,n){return Bh(t)?Uh(r,t,i=>i?n(i):Go(t,e,r,n)):Go(t,e,r,n)}function Bh(t){return(t&128)===0}function Uh(t,e,r){return Pr(t,e|128,r)}function Go(t,e,r,n){Xh(e,r,i=>i?n(i):Pr(r,t,n))}function Pr(t,e,r){return xe.chmod(t,e,r)}function Xh(t,e,r){xe.stat(t,(n,i)=>n?r(n):Th(e,i.atime,i.mtime,r))}function Hh(t,e,r,n,i,s){return e?e&&!e.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):Jo(r,n,i,s):Gh(t.mode,r,n,i,s)}function Gh(t,e,r,n,i){xe.mkdir(r,s=>{if(s)return i(s);Jo(e,r,n,o=>o?i(o):Pr(r,t,i))})}function Jo(t,e,r,n){xe.readdir(t,(i,s)=>i?n(i):Vo(s,t,e,r,n))}function Vo(t,e,r,n,i){let s=t.pop();return s?zh(t,s,e,r,n,i):i()}function zh(t,e,r,n,i,s){let o=Ht.join(r,e),a=Ht.join(n,e);Gt.checkPaths(o,a,"copy",(u,h)=>{if(u)return s(u);let{destStat:c}=h;ti(c,o,a,i,p=>p?s(p):Vo(t,r,n,i,s))})}function Wh(t,e,r,n,i){xe.readlink(e,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=Ht.resolve(process.cwd(),o)),t)xe.readlink(r,(a,u)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?xe.symlink(o,r,i):i(a):(n.dereference&&(u=Ht.resolve(process.cwd(),u)),Gt.isSrcSubdir(o,u)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${u}'.`)):t.isDirectory()&&Gt.isSrcSubdir(u,o)?i(new Error(`Cannot overwrite '${u}' with '${o}'.`)):Jh(o,r,i)));else return xe.symlink(o,r,i)})}function Jh(t,e,r){xe.unlink(e,n=>n?r(n):xe.symlink(t,e,r))}Yo.exports=Nh});var ri=y((kv,Qo)=>{"use strict";var Vh=_e().fromCallback;Qo.exports={copy:Vh(Ko())}});var aa=y((qv,oa)=>{"use strict";var Zo=ue(),na=require("path"),H=require("assert"),zt=process.platform==="win32";function ia(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||Zo[r],r=r+"Sync",t[r]=t[r]||Zo[r]}),t.maxBusyTries=t.maxBusyTries||3}function ni(t,e,r){let n=0;typeof e=="function"&&(r=e,e={}),H(t,"rimraf: missing path"),H.strictEqual(typeof t,"string","rimraf: path should be a string"),H.strictEqual(typeof r,"function","rimraf: callback function required"),H(e,"rimraf: invalid options argument provided"),H.strictEqual(typeof e,"object","rimraf: options should be object"),ia(e),ea(t,e,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<e.maxBusyTries){n++;let o=n*100;return setTimeout(()=>ea(t,e,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function ea(t,e,r){H(t),H(e),H(typeof r=="function"),e.lstat(t,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&zt)return ta(t,e,n,r);if(i&&i.isDirectory())return Or(t,e,n,r);e.unlink(t,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return zt?ta(t,e,s,r):Or(t,e,s,r);if(s.code==="EISDIR")return Or(t,e,s,r)}return r(s)})})}function ta(t,e,r,n){H(t),H(e),H(typeof n=="function"),e.chmod(t,438,i=>{i?n(i.code==="ENOENT"?null:r):e.stat(t,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?Or(t,e,r,n):e.unlink(t,n)})})}function ra(t,e,r){let n;H(t),H(e);try{e.chmodSync(t,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=e.statSync(t)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?Dr(t,e,r):e.unlinkSync(t)}function Or(t,e,r,n){H(t),H(e),H(typeof n=="function"),e.rmdir(t,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?Yh(t,e,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function Yh(t,e,r){H(t),H(e),H(typeof r=="function"),e.readdir(t,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return e.rmdir(t,r);i.forEach(a=>{ni(na.join(t,a),e,u=>{if(!o){if(u)return r(o=u);--s===0&&e.rmdir(t,r)}})})})}function sa(t,e){let r;e=e||{},ia(e),H(t,"rimraf: missing path"),H.strictEqual(typeof t,"string","rimraf: path should be a string"),H(e,"rimraf: missing options"),H.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&zt&&ra(t,e,n)}try{r&&r.isDirectory()?Dr(t,e,null):e.unlinkSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return zt?ra(t,e,n):Dr(t,e,n);if(n.code!=="EISDIR")throw n;Dr(t,e,n)}}function Dr(t,e,r){H(t),H(e);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")Kh(t,e);else if(n.code!=="ENOENT")throw n}}function Kh(t,e){if(H(t),H(e),e.readdirSync(t).forEach(r=>sa(na.join(t,r),e)),zt){let r=Date.now();do try{return e.rmdirSync(t,e)}catch{}while(Date.now()-r<500)}else return e.rmdirSync(t,e)}oa.exports=ni;ni.sync=sa});var Wt=y((Mv,ca)=>{"use strict";var Qh=_e().fromCallback,ua=aa();ca.exports={remove:Qh(ua),removeSync:ua.sync}});var ya=y((Tv,ga)=>{"use strict";var Zh=_e().fromCallback,da=ue(),ha=require("path"),pa=ke(),ma=Wt(),la=Zh(function(e,r){r=r||function(){},da.readdir(e,(n,i)=>{if(n)return pa.mkdirs(e,r);i=i.map(o=>ha.join(e,o)),s();function s(){let o=i.pop();if(!o)return r();ma.remove(o,a=>{if(a)return r(a);s()})}})});function fa(t){let e;try{e=da.readdirSync(t)}catch{return pa.mkdirsSync(t)}e.forEach(r=>{r=ha.join(t,r),ma.removeSync(r)})}ga.exports={emptyDirSync:fa,emptydirSync:fa,emptyDir:la,emptydir:la}});var wa=y((Nv,_a)=>{"use strict";var e0=_e().fromCallback,va=require("path"),ze=ue(),ba=ke();function t0(t,e){function r(){ze.writeFile(t,"",n=>{if(n)return e(n);e()})}ze.stat(t,(n,i)=>{if(!n&&i.isFile())return e();let s=va.dirname(t);ze.stat(s,(o,a)=>{if(o)return o.code==="ENOENT"?ba.mkdirs(s,u=>{if(u)return e(u);r()}):e(o);a.isDirectory()?r():ze.readdir(s,u=>{if(u)return e(u)})})})}function r0(t){let e;try{e=ze.statSync(t)}catch{}if(e&&e.isFile())return;let r=va.dirname(t);try{ze.statSync(r).isDirectory()||ze.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")ba.mkdirsSync(r);else throw n}ze.writeFileSync(t,"")}_a.exports={createFile:e0(t0),createFileSync:r0}});var Pa=y((jv,Ca)=>{"use strict";var n0=_e().fromCallback,Sa=require("path"),tt=ue(),Ea=ke(),xa=Ge().pathExists;function i0(t,e,r){function n(i,s){tt.link(i,s,o=>{if(o)return r(o);r(null)})}xa(e,(i,s)=>{if(i)return r(i);if(s)return r(null);tt.lstat(t,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);let a=Sa.dirname(e);xa(a,(u,h)=>{if(u)return r(u);if(h)return n(t,e);Ea.mkdirs(a,c=>{if(c)return r(c);n(t,e)})})})})}function s0(t,e){if(tt.existsSync(e))return;try{tt.lstatSync(t)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=Sa.dirname(e);return tt.existsSync(n)||Ea.mkdirsSync(n),tt.linkSync(t,e)}Ca.exports={createLink:n0(i0),createLinkSync:s0}});var Da=y((Lv,Oa)=>{"use strict";var We=require("path"),Jt=ue(),o0=Ge().pathExists;function a0(t,e,r){if(We.isAbsolute(t))return Jt.lstat(t,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:t,toDst:t}));{let n=We.dirname(e),i=We.join(n,t);return o0(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:t}):Jt.lstat(t,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:t,toDst:We.relative(n,t)})))}}function u0(t,e){let r;if(We.isAbsolute(t)){if(r=Jt.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}else{let n=We.dirname(e),i=We.join(n,t);if(r=Jt.existsSync(i),r)return{toCwd:i,toDst:t};if(r=Jt.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:We.relative(n,t)}}}Oa.exports={symlinkPaths:a0,symlinkPathsSync:u0}});var Ra=y(($v,Fa)=>{"use strict";var Ia=ue();function c0(t,e,r){if(r=typeof e=="function"?e:r,e=typeof e=="function"?!1:e,e)return r(null,e);Ia.lstat(t,(n,i)=>{if(n)return r(null,"file");e=i&&i.isDirectory()?"dir":"file",r(null,e)})}function l0(t,e){let r;if(e)return e;try{r=Ia.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Fa.exports={symlinkType:c0,symlinkTypeSync:l0}});var ja=y((Bv,Na)=>{"use strict";var f0=_e().fromCallback,ka=require("path"),gt=ue(),qa=ke(),d0=qa.mkdirs,h0=qa.mkdirsSync,Ma=Da(),p0=Ma.symlinkPaths,m0=Ma.symlinkPathsSync,Ta=Ra(),g0=Ta.symlinkType,y0=Ta.symlinkTypeSync,Aa=Ge().pathExists;function v0(t,e,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,Aa(e,(i,s)=>{if(i)return n(i);if(s)return n(null);p0(t,e,(o,a)=>{if(o)return n(o);t=a.toDst,g0(a.toCwd,r,(u,h)=>{if(u)return n(u);let c=ka.dirname(e);Aa(c,(p,g)=>{if(p)return n(p);if(g)return gt.symlink(t,e,h,n);d0(c,m=>{if(m)return n(m);gt.symlink(t,e,h,n)})})})})})}function b0(t,e,r){if(gt.existsSync(e))return;let i=m0(t,e);t=i.toDst,r=y0(i.toCwd,r);let s=ka.dirname(e);return gt.existsSync(s)||h0(s),gt.symlinkSync(t,e,r)}Na.exports={createSymlink:f0(v0),createSymlinkSync:b0}});var $a=y((Uv,La)=>{"use strict";var Ir=wa(),Fr=Pa(),Rr=ja();La.exports={createFile:Ir.createFile,createFileSync:Ir.createFileSync,ensureFile:Ir.createFile,ensureFileSync:Ir.createFileSync,createLink:Fr.createLink,createLinkSync:Fr.createLinkSync,ensureLink:Fr.createLink,ensureLinkSync:Fr.createLinkSync,createSymlink:Rr.createSymlink,createSymlinkSync:Rr.createSymlinkSync,ensureSymlink:Rr.createSymlink,ensureSymlinkSync:Rr.createSymlinkSync}});var Ar=y((Xv,Ba)=>{function _0(t,{EOL:e=`
7
+ `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?e:"";return JSON.stringify(t,n,i).replace(/\n/g,e)+s}function w0(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}Ba.exports={stringify:_0,stripBom:w0}});var Ga=y((Hv,Ha)=>{var yt;try{yt=ue()}catch{yt=require("fs")}var kr=_e(),{stringify:Ua,stripBom:Xa}=Ar();async function x0(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||yt,n="throws"in e?e.throws:!0,i=await kr.fromCallback(r.readFile)(t,e);i=Xa(i);let s;try{s=JSON.parse(i,e?e.reviver:null)}catch(o){if(n)throw o.message=`${t}: ${o.message}`,o;return null}return s}var S0=kr.fromPromise(x0);function E0(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||yt,n="throws"in e?e.throws:!0;try{let i=r.readFileSync(t,e);return i=Xa(i),JSON.parse(i,e.reviver)}catch(i){if(n)throw i.message=`${t}: ${i.message}`,i;return null}}async function C0(t,e,r={}){let n=r.fs||yt,i=Ua(e,r);await kr.fromCallback(n.writeFile)(t,i,r)}var P0=kr.fromPromise(C0);function O0(t,e,r={}){let n=r.fs||yt,i=Ua(e,r);return n.writeFileSync(t,i,r)}var D0={readFile:S0,readFileSync:E0,writeFile:P0,writeFileSync:O0};Ha.exports=D0});var Wa=y((Gv,za)=>{"use strict";var qr=Ga();za.exports={readJson:qr.readFile,readJsonSync:qr.readFileSync,writeJson:qr.writeFile,writeJsonSync:qr.writeFileSync}});var Mr=y((zv,Ya)=>{"use strict";var I0=_e().fromCallback,Vt=ue(),Ja=require("path"),Va=ke(),F0=Ge().pathExists;function R0(t,e,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Ja.dirname(t);F0(i,(s,o)=>{if(s)return n(s);if(o)return Vt.writeFile(t,e,r,n);Va.mkdirs(i,a=>{if(a)return n(a);Vt.writeFile(t,e,r,n)})})}function A0(t,...e){let r=Ja.dirname(t);if(Vt.existsSync(r))return Vt.writeFileSync(t,...e);Va.mkdirsSync(r),Vt.writeFileSync(t,...e)}Ya.exports={outputFile:I0(R0),outputFileSync:A0}});var Qa=y((Wv,Ka)=>{"use strict";var{stringify:k0}=Ar(),{outputFile:q0}=Mr();async function M0(t,e,r={}){let n=k0(e,r);await q0(t,n,r)}Ka.exports=M0});var eu=y((Jv,Za)=>{"use strict";var{stringify:T0}=Ar(),{outputFileSync:N0}=Mr();function j0(t,e,r){let n=T0(e,r);N0(t,n,r)}Za.exports=j0});var ru=y((Vv,tu)=>{"use strict";var L0=_e().fromPromise,ge=Wa();ge.outputJson=L0(Qa());ge.outputJsonSync=eu();ge.outputJSON=ge.outputJson;ge.outputJSONSync=ge.outputJsonSync;ge.writeJSON=ge.writeJson;ge.writeJSONSync=ge.writeJsonSync;ge.readJSON=ge.readJson;ge.readJSONSync=ge.readJsonSync;tu.exports=ge});var uu=y((Yv,au)=>{"use strict";var su=ue(),$0=require("path"),B0=ei().copySync,ou=Wt().removeSync,U0=ke().mkdirpSync,nu=Bt();function X0(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=nu.checkPathsSync(t,e,"move");return nu.checkParentPathsSync(t,i,e,"move"),U0($0.dirname(e)),H0(t,e,n)}function H0(t,e,r){if(r)return ou(e),iu(t,e,r);if(su.existsSync(e))throw new Error("dest already exists.");return iu(t,e,r)}function iu(t,e,r){try{su.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return G0(t,e,r)}}function G0(t,e,r){return B0(t,e,{overwrite:r,errorOnExist:!0}),ou(t)}au.exports=X0});var lu=y((Kv,cu)=>{"use strict";cu.exports={moveSync:uu()}});var mu=y((Qv,pu)=>{"use strict";var z0=ue(),W0=require("path"),J0=ri().copy,hu=Wt().remove,V0=ke().mkdirp,Y0=Ge().pathExists,fu=Bt();function K0(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;fu.checkPaths(t,e,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;fu.checkParentPaths(t,a,e,"move",u=>{if(u)return n(u);V0(W0.dirname(e),h=>h?n(h):Q0(t,e,i,n))})})}function Q0(t,e,r,n){if(r)return hu(e,i=>i?n(i):du(t,e,r,n));Y0(e,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):du(t,e,r,n))}function du(t,e,r,n){z0.rename(t,e,i=>i?i.code!=="EXDEV"?n(i):Z0(t,e,r,n):n())}function Z0(t,e,r,n){J0(t,e,{overwrite:r,errorOnExist:!0},s=>s?n(s):hu(t,n))}pu.exports=K0});var yu=y((Zv,gu)=>{"use strict";var ep=_e().fromCallback;gu.exports={move:ep(mu())}});var vt=y((eb,ii)=>{"use strict";ii.exports={...$t(),...ei(),...ri(),...ya(),...$a(),...ru(),...ke(),...lu(),...yu(),...Mr(),...Ge(),...Wt()};var vu=require("fs");Object.getOwnPropertyDescriptor(vu,"promises")&&Object.defineProperty(ii.exports,"promises",{get(){return vu.promises}})});var Ou=y((rb,Pu)=>{"use strict";var rp=/[|\\{}()[\]^$+*?.]/g;Pu.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(rp,"\\$&")}});var Iu=y((nb,Du)=>{"use strict";Du.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 ai=y((ib,ku)=>{var nt=Iu(),Au={};for(jr in nt)nt.hasOwnProperty(jr)&&(Au[nt[jr]]=jr);var jr,E=ku.exports={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"]}};for(ye in E)if(E.hasOwnProperty(ye)){if(!("channels"in E[ye]))throw new Error("missing channels property: "+ye);if(!("labels"in E[ye]))throw new Error("missing channel labels property: "+ye);if(E[ye].labels.length!==E[ye].channels)throw new Error("channel and label counts mismatch: "+ye);Fu=E[ye].channels,Ru=E[ye].labels,delete E[ye].channels,delete E[ye].labels,Object.defineProperty(E[ye],"channels",{value:Fu}),Object.defineProperty(E[ye],"labels",{value:Ru})}var Fu,Ru,ye;E.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,u,h;return s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),h=(i+s)/2,s===i?u=0:h<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,h*100]};E.rgb.hsv=function(t){var e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,h=Math.max(o,a,u),c=h-Math.min(o,a,u),p=function(g){return(h-g)/6/c+1/2};return c===0?i=s=0:(s=c/h,e=p(o),r=p(a),n=p(u),o===h?i=n-r:a===h?i=1/3+e-n:u===h&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,h*100]};E.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=E.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};E.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i,s,o,a;return a=Math.min(1-e,1-r,1-n),i=(1-e-a)/(1-a)||0,s=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[i*100,s*100,o*100,a*100]};function np(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}E.rgb.keyword=function(t){var e=Au[t];if(e)return e;var r=1/0,n;for(var i in nt)if(nt.hasOwnProperty(i)){var s=nt[i],o=np(t,s);o<r&&(r=o,n=i)}return n};E.keyword.rgb=function(t){return nt[t]};E.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};E.rgb.lab=function(t){var e=E.rgb.xyz(t),r=e[0],n=e[1],i=e[2],s,o,a;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),a=200*(n-i),[s,o,a]};E.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o,a,u;if(r===0)return u=n*255,[u,u,u];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var h=0;h<3;h++)o=e+1/3*-(h-1),o<0&&o++,o>1&&o--,6*o<1?u=i+(s-i)*6*o:2*o<1?u=s:3*o<2?u=i+(s-i)*(2/3-o)*6:u=i,a[h]=u*255;return a};E.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[e,o*100,a*100]};E.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),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]}};E.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o,a;return a=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[e,o*100,a*100]};E.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s,o,a,u;i>1&&(r/=i,n/=i),s=Math.floor(6*e),o=1-n,a=6*e-s,s&1&&(a=1-a),u=r+a*(o-r);var h,c,p;switch(s){default:case 6:case 0:h=o,c=u,p=r;break;case 1:h=u,c=o,p=r;break;case 2:h=r,c=o,p=u;break;case 3:h=r,c=u,p=o;break;case 4:h=u,c=r,p=o;break;case 5:h=o,c=r,p=u;break}return[h*255,c*255,p*255]};E.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s,o,a;return s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};E.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(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]};E.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(e-r),o=200*(r-n),[i,s,o]};E.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),u=Math.pow(i,3),h=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=h>.008856?h:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};E.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[e,o,s]};E.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[e,i,s]};E.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:E.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return i===2&&(s+=60),s};E.hsv.ansi16=function(t){return E.rgb.ansi16(E.hsv.rgb(t),t[2])};E.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};E.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};E.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};E.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};E.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};E.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===e?u=(r-n)/o%6:i===r?u=2+(n-e)/o:u=4+(e-r)/o+4,u/=6,u%=1,[u*360,o*100,a*100]};E.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};E.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};E.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=e%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]};E.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};E.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};E.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};E.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};E.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};E.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};E.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};E.gray.hsl=E.gray.hsv=function(t){return[0,0,t[0]]};E.gray.hwb=function(t){return[0,100,t[0]]};E.gray.cmyk=function(t){return[0,0,0,t[0]]};E.gray.lab=function(t){return[t[0],0,0]};E.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};E.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var Mu=y((sb,qu)=>{var Lr=ai();function ip(){for(var t={},e=Object.keys(Lr),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function sp(t){var e=ip(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Lr[n]),s=i.length,o=0;o<s;o++){var a=i[o],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}return e}function op(t,e){return function(r){return e(t(r))}}function ap(t,e){for(var r=[e[t].parent,t],n=Lr[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=op(Lr[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}qu.exports=function(t){for(var e=sp(t),r={},n=Object.keys(e),i=n.length,s=0;s<i;s++){var o=n[s],a=e[o];a.parent!==null&&(r[o]=ap(o,e))}return r}});var Nu=y((ob,Tu)=>{var ui=ai(),up=Mu(),bt={},cp=Object.keys(ui);function lp(t){var e=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function fp(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}cp.forEach(function(t){bt[t]={},Object.defineProperty(bt[t],"channels",{value:ui[t].channels}),Object.defineProperty(bt[t],"labels",{value:ui[t].labels});var e=up(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];bt[t][n]=fp(i),bt[t][n].raw=lp(i)})});Tu.exports=bt});var Lu=y((ab,ju)=>{"use strict";var _t=Nu(),$r=(t,e)=>function(){return`\x1B[${t.apply(_t,arguments)+e}m`},Br=(t,e)=>function(){let r=t.apply(_t,arguments);return`\x1B[${38+e};5;${r}m`},Ur=(t,e)=>function(){let r=t.apply(_t,arguments);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function dp(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.grey=e.color.gray;for(let i of Object.keys(e)){let s=e[i];for(let o of Object.keys(s)){let a=s[o];e[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},s[o]=e[o],t.set(a[0],a[1])}Object.defineProperty(e,i,{value:s,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:$r(r,0)},e.color.ansi256={ansi256:Br(r,0)},e.color.ansi16m={rgb:Ur(n,0)},e.bgColor.ansi={ansi:$r(r,10)},e.bgColor.ansi256={ansi256:Br(r,10)},e.bgColor.ansi16m={rgb:Ur(n,10)};for(let i of Object.keys(_t)){if(typeof _t[i]!="object")continue;let s=_t[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(e.color.ansi[i]=$r(s.ansi16,0),e.bgColor.ansi[i]=$r(s.ansi16,10)),"ansi256"in s&&(e.color.ansi256[i]=Br(s.ansi256,0),e.bgColor.ansi256[i]=Br(s.ansi256,10)),"rgb"in s&&(e.color.ansi16m[i]=Ur(s.rgb,0),e.bgColor.ansi16m[i]=Ur(s.rgb,10))}return e}Object.defineProperty(ju,"exports",{enumerable:!0,get:dp})});var Bu=y((ub,$u)=>{"use strict";$u.exports=(t,e)=>{e=e||process.argv;let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var Xu=y((cb,Uu)=>{"use strict";var hp=require("os"),qe=Bu(),le=process.env,wt;qe("no-color")||qe("no-colors")||qe("color=false")?wt=!1:(qe("color")||qe("colors")||qe("color=true")||qe("color=always"))&&(wt=!0);"FORCE_COLOR"in le&&(wt=le.FORCE_COLOR.length===0||parseInt(le.FORCE_COLOR,10)!==0);function pp(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function mp(t){if(wt===!1)return 0;if(qe("color=16m")||qe("color=full")||qe("color=truecolor"))return 3;if(qe("color=256"))return 2;if(t&&!t.isTTY&&wt!==!0)return 0;let e=wt?1:0;if(process.platform==="win32"){let r=hp.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in le)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in le)||le.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in le)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(le.TEAMCITY_VERSION)?1:0;if(le.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in le){let r=parseInt((le.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(le.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(le.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(le.TERM)||"COLORTERM"in le?1:(le.TERM==="dumb",e)}function ci(t){let e=mp(t);return pp(e)}Uu.exports={supportsColor:ci,stdout:ci(process.stdout),stderr:ci(process.stderr)}});var Ju=y((lb,Wu)=>{"use strict";var gp=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Hu=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,yp=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,vp=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,bp=new Map([["n",`
8
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function zu(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):bp.get(t)||t}function _p(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(yp))r.push(i[2].replace(vp,(o,a,u)=>a?zu(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`);return r}function wp(t){Hu.lastIndex=0;let e=[],r;for(;(r=Hu.exec(t))!==null;){let n=r[1];if(r[2]){let i=_p(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function Gu(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}Wu.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(gp,(s,o,a,u,h,c)=>{if(o)i.push(zu(o));else if(u){let p=i.join("");i=[],n.push(r.length===0?p:Gu(t,r)(p)),r.push({inverse:a,styles:wp(u)})}else if(h){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Gu(t,r)(i.join(""))),i=[],r.pop()}else i.push(c)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var Hr=y((fb,Kt)=>{"use strict";var fi=Ou(),Y=Lu(),li=Xu().stdout,xp=Ju(),Yu=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),Ku=["ansi","ansi","ansi256","ansi16m"],Qu=new Set(["gray"]),xt=Object.create(null);function Vu(t,e){e=e||{};let r=li?li.level:0;t.level=e.level===void 0?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function Yt(t){if(!this||!(this instanceof Yt)||this.template){let e={};return Vu(e,t),e.template=function(){let r=[].slice.call(arguments);return Cp.apply(null,[e.template].concat(r))},Object.setPrototypeOf(e,Yt.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=Yt,e.template}Vu(this,t)}Yu&&(Y.blue.open="\x1B[94m");for(let t of Object.keys(Y))Y[t].closeRe=new RegExp(fi(Y[t].close),"g"),xt[t]={get(){let e=Y[t];return Xr.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};xt.visible={get(){return Xr.call(this,this._styles||[],!0,"visible")}};Y.color.closeRe=new RegExp(fi(Y.color.close),"g");for(let t of Object.keys(Y.color.ansi))Qu.has(t)||(xt[t]={get(){let e=this.level;return function(){let n={open:Y.color[Ku[e]][t].apply(null,arguments),close:Y.color.close,closeRe:Y.color.closeRe};return Xr.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}});Y.bgColor.closeRe=new RegExp(fi(Y.bgColor.close),"g");for(let t of Object.keys(Y.bgColor.ansi)){if(Qu.has(t))continue;let e="bg"+t[0].toUpperCase()+t.slice(1);xt[e]={get(){let r=this.level;return function(){let i={open:Y.bgColor[Ku[r]][t].apply(null,arguments),close:Y.bgColor.close,closeRe:Y.bgColor.closeRe};return Xr.call(this,this._styles?this._styles.concat(i):[i],this._empty,t)}}}}var Sp=Object.defineProperties(()=>{},xt);function Xr(t,e,r){let n=function(){return Ep.apply(n,arguments)};n._styles=t,n._empty=e;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=Sp,n}function Ep(){let t=arguments,e=t.length,r=String(arguments[0]);if(e===0)return"";if(e>1)for(let i=1;i<e;i++)r+=" "+t[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=Y.dim.open;Yu&&this.hasGrey&&(Y.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return Y.dim.open=n,r}function Cp(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[e.raw[0]];for(let i=1;i<e.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(e.raw[i]));return xp(t,n.join(""))}Object.defineProperties(Yt.prototype,xt);Kt.exports=Yt();Kt.exports.supportsColor=li;Kt.exports.default=Kt.exports});var St=y((db,di)=>{var Pp=require("fs"),Op=require("path");function Zu(t){console.log(`[dotenv][DEBUG] ${t}`)}var Dp=`
9
+ `,Ip=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,Fp=/\\n/g,Rp=/\n|\r|\r\n/;function ec(t,e){let r=!!(e&&e.debug),n={};return t.toString().split(Rp).forEach(function(i,s){let o=i.match(Ip);if(o!=null){let a=o[1],u=o[2]||"",h=u.length-1,c=u[0]==='"'&&u[h]==='"';u[0]==="'"&&u[h]==="'"||c?(u=u.substring(1,h),c&&(u=u.replace(Fp,Dp))):u=u.trim(),n[a]=u}else r&&Zu(`did not match key and value when parsing line ${s+1}: ${i}`)}),n}function Ap(t){let e=Op.resolve(process.cwd(),".env"),r="utf8",n=!1;t&&(t.path!=null&&(e=t.path),t.encoding!=null&&(r=t.encoding),t.debug!=null&&(n=!0));try{let i=ec(Pp.readFileSync(e,{encoding:r}),{debug:n});return Object.keys(i).forEach(function(s){Object.prototype.hasOwnProperty.call(process.env,s)?n&&Zu(`"${s}" is already defined in \`process.env\` and will not be overwritten`):process.env[s]=i[s]}),{parsed:i}}catch(i){return{error:i}}}di.exports.config=Ap;di.exports.parse=ec});var rc=y((hb,tc)=>{"use strict";tc.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 hi=y((pb,ic)=>{var Qt=rc(),nc={};for(let t of Object.keys(Qt))nc[Qt[t]]=t;var C={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"]}};ic.exports=C;for(let t of Object.keys(C)){if(!("channels"in C[t]))throw new Error("missing channels property: "+t);if(!("labels"in C[t]))throw new Error("missing channel labels property: "+t);if(C[t].labels.length!==C[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=C[t];delete C[t].channels,delete C[t].labels,Object.defineProperty(C[t],"channels",{value:e}),Object.defineProperty(C[t],"labels",{value:r})}C.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,u;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let h=(i+s)/2;return s===i?u=0:h<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,h*100]};C.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,h=Math.max(o,a,u),c=h-Math.min(o,a,u),p=function(g){return(h-g)/6/c+1/2};return c===0?(i=0,s=0):(s=c/h,e=p(o),r=p(a),n=p(u),o===h?i=n-r:a===h?i=1/3+e-n:u===h&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,h*100]};C.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=C.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};C.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-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 kp(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}C.rgb.keyword=function(t){let e=nc[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(Qt)){let s=Qt[i],o=kp(t,s);o<r&&(r=o,n=i)}return n};C.keyword.rgb=function(t){return Qt[t]};C.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/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=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};C.rgb.lab=function(t){let e=C.rgb.xyz(t),r=e[0],n=e[1],i=e[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]};C.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[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 h=0;h<3;h++)s=e+1/3*-(h-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[h]=o*255;return u};C.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[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[e,a*100,o*100]};C.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),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]}};C.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[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,[e,s*100,o*100]};C.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,o&1&&(s=1-s);let u=r+s*(a-r),h,c,p;switch(o){default:case 6:case 0:h=a,c=u,p=r;break;case 1:h=u,c=a,p=r;break;case 2:h=r,c=a,p=u;break;case 3:h=r,c=u,p=a;break;case 4:h=u,c=r,p=a;break;case 5:h=a,c=r,p=u;break}return[h*255,c*255,p*255]};C.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(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]};C.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.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]};C.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+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*(e-r),o=200*(r-n);return[i,s,o]};C.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let a=s**3,u=i**3,h=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=h>.008856?h:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};C.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};C.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};C.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?C.rgb.hsv(t)[2]:e;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};C.hsv.ansi16=function(t){return C.rgb.ansi16(C.hsv.rgb(t),t[2])};C.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};C.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};C.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};C.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};C.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[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]};C.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===e?u=(r-n)/o%6:i===r?u=2+(n-e)/o:u=4+(e-r)/o,u/=6,u%=1,[u*360,o*100,a*100]};C.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};C.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};C.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%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]};C.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};C.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};C.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};C.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};C.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};C.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};C.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};C.gray.hsl=function(t){return[0,0,t[0]]};C.gray.hsv=C.gray.hsl;C.gray.hwb=function(t){return[0,100,t[0]]};C.gray.cmyk=function(t){return[0,0,0,t[0]]};C.gray.lab=function(t){return[t[0],0,0]};C.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};C.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var oc=y((mb,sc)=>{var Gr=hi();function qp(){let t={},e=Object.keys(Gr);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function Mp(t){let e=qp(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(Gr[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}}return e}function Tp(t,e){return function(r){return e(t(r))}}function Np(t,e){let r=[e[t].parent,t],n=Gr[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=Tp(Gr[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}sc.exports=function(t){let e=Mp(t),r={},n=Object.keys(e);for(let i=n.length,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=Np(o,e))}return r}});var uc=y((gb,ac)=>{var pi=hi(),jp=oc(),Et={},Lp=Object.keys(pi);function $p(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function Bp(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}Lp.forEach(t=>{Et[t]={},Object.defineProperty(Et[t],"channels",{value:pi[t].channels}),Object.defineProperty(Et[t],"labels",{value:pi[t].labels});let e=jp(t);Object.keys(e).forEach(n=>{let i=e[n];Et[t][n]=Bp(i),Et[t][n].raw=$p(i)})});ac.exports=Et});var pc=y((yb,hc)=>{"use strict";var cc=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,lc=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},fc=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},zr=t=>t,dc=(t,e,r)=>[t,e,r],Ct=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},mi,Pt=(t,e,r,n)=>{mi===void 0&&(mi=uc());let i=n?10:0,s={};for(let[o,a]of Object.entries(mi)){let u=o==="ansi16"?"ansi":o;o===e?s[u]=t(r,i):typeof a=="object"&&(s[u]=t(a[e],i))}return s};function Up(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",Ct(e.color,"ansi",()=>Pt(cc,"ansi16",zr,!1)),Ct(e.color,"ansi256",()=>Pt(lc,"ansi256",zr,!1)),Ct(e.color,"ansi16m",()=>Pt(fc,"rgb",dc,!1)),Ct(e.bgColor,"ansi",()=>Pt(cc,"ansi16",zr,!0)),Ct(e.bgColor,"ansi256",()=>Pt(lc,"ansi256",zr,!0)),Ct(e.bgColor,"ansi16m",()=>Pt(fc,"rgb",dc,!0)),e}Object.defineProperty(hc,"exports",{enumerable:!0,get:Up})});var gc=y((vb,mc)=>{"use strict";mc.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var vi=y((bb,vc)=>{"use strict";var Xp=require("os"),yc=require("tty"),Fe=gc(),{env:Z}=process,Je;Fe("no-color")||Fe("no-colors")||Fe("color=false")||Fe("color=never")?Je=0:(Fe("color")||Fe("colors")||Fe("color=true")||Fe("color=always"))&&(Je=1);"FORCE_COLOR"in Z&&(Z.FORCE_COLOR==="true"?Je=1:Z.FORCE_COLOR==="false"?Je=0:Je=Z.FORCE_COLOR.length===0?1:Math.min(parseInt(Z.FORCE_COLOR,10),3));function gi(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function yi(t,e){if(Je===0)return 0;if(Fe("color=16m")||Fe("color=full")||Fe("color=truecolor"))return 3;if(Fe("color=256"))return 2;if(t&&!e&&Je===void 0)return 0;let r=Je||0;if(Z.TERM==="dumb")return r;if(process.platform==="win32"){let n=Xp.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Z)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Z)||Z.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Z)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Z.TEAMCITY_VERSION)?1:0;if(Z.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Z){let n=parseInt((Z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Z.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Z.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Z.TERM)||"COLORTERM"in Z?1:r}function Hp(t){let e=yi(t,t&&t.isTTY);return gi(e)}vc.exports={supportsColor:Hp,stdout:gi(yi(!0,yc.isatty(1))),stderr:gi(yi(!0,yc.isatty(2)))}});var _c=y((_b,bc)=>{"use strict";var Gp=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},zp=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
10
10
  `:`
11
11
  `)+r,i=n+1,n=t.indexOf(`
12
12
  `,i)}while(n!==-1);return s+=t.substr(i),s};bc.exports={stringReplaceAll:Gp,stringEncaseCRLFWithFirstIndex:zp}});var Cc=y((wb,Ec)=>{"use strict";var Wp=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,wc=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Jp=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Vp=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Yp=new Map([["n",`
13
13
  `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Sc(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):Yp.get(t)||t}function Kp(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(Jp))r.push(i[2].replace(Vp,(a,u,h)=>u?Sc(u):h));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function Qp(t){wc.lastIndex=0;let e=[],r;for(;(r=wc.exec(t))!==null;){let n=r[1];if(r[2]){let i=Kp(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function xc(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let[i,s]of Object.entries(r))if(Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}Ec.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(Wp,(s,o,a,u,h,c)=>{if(o)i.push(Sc(o));else if(u){let p=i.join("");i=[],n.push(r.length===0?p:xc(t,r)(p)),r.push({inverse:a,styles:Qp(u)})}else if(h){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(xc(t,r)(i.join(""))),i=[],r.pop()}else i.push(c)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var Ac=y((xb,Rc)=>{"use strict";var Zt=pc(),{stdout:_i,stderr:wi}=vi(),{stringReplaceAll:Zp,stringEncaseCRLFWithFirstIndex:em}=_c(),{isArray:Wr}=Array,Oc=["ansi","ansi","ansi256","ansi16m"],Ot=Object.create(null),tm=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=_i?_i.level:0;t.level=e.level===void 0?r:e.level},xi=class{constructor(e){return Dc(e)}},Dc=t=>{let e={};return tm(e,t),e.template=(...r)=>Fc(e.template,...r),Object.setPrototypeOf(e,Jr.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=xi,e.template};function Jr(t){return Dc(t)}for(let[t,e]of Object.entries(Zt))Ot[t]={get(){let r=Vr(this,Si(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};Ot.visible={get(){let t=Vr(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Ic=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of Ic)Ot[t]={get(){let{level:e}=this;return function(...r){let n=Si(Zt.color[Oc[e]][t](...r),Zt.color.close,this._styler);return Vr(this,n,this._isEmpty)}}};for(let t of Ic){let e="bg"+t[0].toUpperCase()+t.slice(1);Ot[e]={get(){let{level:r}=this;return function(...n){let i=Si(Zt.bgColor[Oc[r]][t](...n),Zt.bgColor.close,this._styler);return Vr(this,i,this._isEmpty)}}}}var rm=Object.defineProperties(()=>{},{...Ot,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),Si=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},Vr=(t,e,r)=>{let n=(...i)=>Wr(i[0])&&Wr(i[0].raw)?Pc(n,Fc(n,...i)):Pc(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,rm),n._generator=t,n._styler=e,n._isEmpty=r,n},Pc=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=Zp(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
14
- `);return s!==-1&&(e=em(e,i,n,s)),n+e+i},bi,Fc=(t,...e)=>{let[r]=e;if(!Wr(r)||!Wr(r.raw))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return bi===void 0&&(bi=Cc()),bi(t,i.join(""))};Object.defineProperties(Jr.prototype,Ot);var Yr=Jr();Yr.supportsColor=_i;Yr.stderr=Jr({level:wi?wi.level:0});Yr.stderr.supportsColor=wi;Rc.exports=Yr});var kc=y((Ei,Ci)=>{(function(t,e){typeof Ei=="object"&&typeof Ci<"u"?Ci.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.tinycolor=e())})(Ei,function(){"use strict";function t(l){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},t(l)}var e=/^\s+/,r=/\s+$/;function n(l,d){if(l=l||"",d=d||{},l instanceof n)return l;if(!(this instanceof n))return new n(l,d);var f=i(l);this._originalInput=l,this._r=f.r,this._g=f.g,this._b=f.b,this._a=f.a,this._roundA=Math.round(100*this._a)/100,this._format=d.format||f.format,this._gradientType=d.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=f.ok}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var d=this.toRgb();return(d.r*299+d.g*587+d.b*114)/1e3},getLuminance:function(){var d=this.toRgb(),f,v,w,_,N,X;return f=d.r/255,v=d.g/255,w=d.b/255,f<=.03928?_=f/12.92:_=Math.pow((f+.055)/1.055,2.4),v<=.03928?N=v/12.92:N=Math.pow((v+.055)/1.055,2.4),w<=.03928?X=w/12.92:X=Math.pow((w+.055)/1.055,2.4),.2126*_+.7152*N+.0722*X},setAlpha:function(d){return this._a=U(d),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var d=u(this._r,this._g,this._b);return{h:d.h*360,s:d.s,v:d.v,a:this._a}},toHsvString:function(){var d=u(this._r,this._g,this._b),f=Math.round(d.h*360),v=Math.round(d.s*100),w=Math.round(d.v*100);return this._a==1?"hsv("+f+", "+v+"%, "+w+"%)":"hsva("+f+", "+v+"%, "+w+"%, "+this._roundA+")"},toHsl:function(){var d=o(this._r,this._g,this._b);return{h:d.h*360,s:d.s,l:d.l,a:this._a}},toHslString:function(){var d=o(this._r,this._g,this._b),f=Math.round(d.h*360),v=Math.round(d.s*100),w=Math.round(d.l*100);return this._a==1?"hsl("+f+", "+v+"%, "+w+"%)":"hsla("+f+", "+v+"%, "+w+"%, "+this._roundA+")"},toHex:function(d){return c(this._r,this._g,this._b,d)},toHexString:function(d){return"#"+this.toHex(d)},toHex8:function(d){return p(this._r,this._g,this._b,this._a,d)},toHex8String:function(d){return"#"+this.toHex8(d)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(I(this._r,255)*100)+"%",g:Math.round(I(this._g,255)*100)+"%",b:Math.round(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(I(this._r,255)*100)+"%, "+Math.round(I(this._g,255)*100)+"%, "+Math.round(I(this._b,255)*100)+"%)":"rgba("+Math.round(I(this._r,255)*100)+"%, "+Math.round(I(this._g,255)*100)+"%, "+Math.round(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:q[c(this._r,this._g,this._b,!0)]||!1},toFilter:function(d){var f="#"+g(this._r,this._g,this._b,this._a),v=f,w=this._gradientType?"GradientType = 1, ":"";if(d){var _=n(d);v="#"+g(_._r,_._g,_._b,_._a)}return"progid:DXImageTransform.Microsoft.gradient("+w+"startColorstr="+f+",endColorstr="+v+")"},toString:function(d){var f=!!d;d=d||this._format;var v=!1,w=this._a<1&&this._a>=0,_=!f&&w&&(d==="hex"||d==="hex6"||d==="hex3"||d==="hex4"||d==="hex8"||d==="name");return _?d==="name"&&this._a===0?this.toName():this.toRgbString():(d==="rgb"&&(v=this.toRgbString()),d==="prgb"&&(v=this.toPercentageRgbString()),(d==="hex"||d==="hex6")&&(v=this.toHexString()),d==="hex3"&&(v=this.toHexString(!0)),d==="hex4"&&(v=this.toHex8String(!0)),d==="hex8"&&(v=this.toHex8String()),d==="name"&&(v=this.toName()),d==="hsl"&&(v=this.toHslString()),d==="hsv"&&(v=this.toHsvString()),v||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(d,f){var v=d.apply(null,[this].concat([].slice.call(f)));return this._r=v._r,this._g=v._g,this._b=v._b,this.setAlpha(v._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(R,arguments)},darken:function(){return this._applyModification(L,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(S,arguments)},spin:function(){return this._applyModification(B,arguments)},_applyCombination:function(d,f){return d.apply(null,[this].concat([].slice.call(f)))},analogous:function(){return this._applyCombination(De,arguments)},complement:function(){return this._applyCombination(G,arguments)},monochromatic:function(){return this._applyCombination(te,arguments)},splitcomplement:function(){return this._applyCombination(de,arguments)},triad:function(){return this._applyCombination(Y,[3])},tetrad:function(){return this._applyCombination(Y,[4])}},n.fromRatio=function(l,d){if(t(l)=="object"){var f={};for(var v in l)l.hasOwnProperty(v)&&(v==="a"?f[v]=l[v]:f[v]=F(l[v]));l=f}return n(l,d)};function i(l){var d={r:0,g:0,b:0},f=1,v=null,w=null,_=null,N=!1,X=!1;return typeof l=="string"&&(l=Ze(l)),t(l)=="object"&&(ae(l.r)&&ae(l.g)&&ae(l.b)?(d=s(l.r,l.g,l.b),N=!0,X=String(l.r).substr(-1)==="%"?"prgb":"rgb"):ae(l.h)&&ae(l.s)&&ae(l.v)?(v=F(l.s),w=F(l.v),d=h(l.h,v,w),N=!0,X="hsv"):ae(l.h)&&ae(l.s)&&ae(l.l)&&(v=F(l.s),_=F(l.l),d=a(l.h,v,_),N=!0,X="hsl"),l.hasOwnProperty("a")&&(f=l.a)),f=U(f),{ok:N,format:l.format||X,r:Math.min(255,Math.max(d.r,0)),g:Math.min(255,Math.max(d.g,0)),b:Math.min(255,Math.max(d.b,0)),a:f}}function s(l,d,f){return{r:I(l,255)*255,g:I(d,255)*255,b:I(f,255)*255}}function o(l,d,f){l=I(l,255),d=I(d,255),f=I(f,255);var v=Math.max(l,d,f),w=Math.min(l,d,f),_,N,X=(v+w)/2;if(v==w)_=N=0;else{var W=v-w;switch(N=X>.5?W/(2-v-w):W/(v+w),v){case l:_=(d-f)/W+(d<f?6:0);break;case d:_=(f-l)/W+2;break;case f:_=(l-d)/W+4;break}_/=6}return{h:_,s:N,l:X}}function a(l,d,f){var v,w,_;l=I(l,360),d=I(d,100),f=I(f,100);function N(Ie,Lt,Ae){return Ae<0&&(Ae+=1),Ae>1&&(Ae-=1),Ae<1/6?Ie+(Lt-Ie)*6*Ae:Ae<1/2?Lt:Ae<2/3?Ie+(Lt-Ie)*(2/3-Ae)*6:Ie}if(d===0)v=w=_=f;else{var X=f<.5?f*(1+d):f+d-f*d,W=2*f-X;v=N(W,X,l+1/3),w=N(W,X,l),_=N(W,X,l-1/3)}return{r:v*255,g:w*255,b:_*255}}function u(l,d,f){l=I(l,255),d=I(d,255),f=I(f,255);var v=Math.max(l,d,f),w=Math.min(l,d,f),_,N,X=v,W=v-w;if(N=v===0?0:W/v,v==w)_=0;else{switch(v){case l:_=(d-f)/W+(d<f?6:0);break;case d:_=(f-l)/W+2;break;case f:_=(l-d)/W+4;break}_/=6}return{h:_,s:N,v:X}}function h(l,d,f){l=I(l,360)*6,d=I(d,100),f=I(f,100);var v=Math.floor(l),w=l-v,_=f*(1-d),N=f*(1-w*d),X=f*(1-(1-w)*d),W=v%6,Ie=[f,N,_,_,X,f][W],Lt=[X,f,f,N,_,_][W],Ae=[_,_,X,f,f,N][W];return{r:Ie*255,g:Lt*255,b:Ae*255}}function c(l,d,f,v){var w=[x(Math.round(l).toString(16)),x(Math.round(d).toString(16)),x(Math.round(f).toString(16))];return v&&w[0].charAt(0)==w[0].charAt(1)&&w[1].charAt(0)==w[1].charAt(1)&&w[2].charAt(0)==w[2].charAt(1)?w[0].charAt(0)+w[1].charAt(0)+w[2].charAt(0):w.join("")}function p(l,d,f,v,w){var _=[x(Math.round(l).toString(16)),x(Math.round(d).toString(16)),x(Math.round(f).toString(16)),x(Ce(v))];return w&&_[0].charAt(0)==_[0].charAt(1)&&_[1].charAt(0)==_[1].charAt(1)&&_[2].charAt(0)==_[2].charAt(1)&&_[3].charAt(0)==_[3].charAt(1)?_[0].charAt(0)+_[1].charAt(0)+_[2].charAt(0)+_[3].charAt(0):_.join("")}function g(l,d,f,v){var w=[x(Ce(v)),x(Math.round(l).toString(16)),x(Math.round(d).toString(16)),x(Math.round(f).toString(16))];return w.join("")}n.equals=function(l,d){return!l||!d?!1:n(l).toRgbString()==n(d).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function m(l,d){d=d===0?0:d||10;var f=n(l).toHsl();return f.s-=d/100,f.s=j(f.s),n(f)}function b(l,d){d=d===0?0:d||10;var f=n(l).toHsl();return f.s+=d/100,f.s=j(f.s),n(f)}function S(l){return n(l).desaturate(100)}function O(l,d){d=d===0?0:d||10;var f=n(l).toHsl();return f.l+=d/100,f.l=j(f.l),n(f)}function R(l,d){d=d===0?0:d||10;var f=n(l).toRgb();return f.r=Math.max(0,Math.min(255,f.r-Math.round(255*-(d/100)))),f.g=Math.max(0,Math.min(255,f.g-Math.round(255*-(d/100)))),f.b=Math.max(0,Math.min(255,f.b-Math.round(255*-(d/100)))),n(f)}function L(l,d){d=d===0?0:d||10;var f=n(l).toHsl();return f.l-=d/100,f.l=j(f.l),n(f)}function B(l,d){var f=n(l).toHsl(),v=(f.h+d)%360;return f.h=v<0?360+v:v,n(f)}function G(l){var d=n(l).toHsl();return d.h=(d.h+180)%360,n(d)}function Y(l,d){if(isNaN(d)||d<=0)throw new Error("Argument to polyad must be a positive number");for(var f=n(l).toHsl(),v=[n(l)],w=360/d,_=1;_<d;_++)v.push(n({h:(f.h+_*w)%360,s:f.s,l:f.l}));return v}function de(l){var d=n(l).toHsl(),f=d.h;return[n(l),n({h:(f+72)%360,s:d.s,l:d.l}),n({h:(f+216)%360,s:d.s,l:d.l})]}function De(l,d,f){d=d||6,f=f||30;var v=n(l).toHsl(),w=360/f,_=[n(l)];for(v.h=(v.h-(w*d>>1)+720)%360;--d;)v.h=(v.h+w)%360,_.push(n(v));return _}function te(l,d){d=d||6;for(var f=n(l).toHsv(),v=f.h,w=f.s,_=f.v,N=[],X=1/d;d--;)N.push(n({h:v,s:w,v:_})),_=(_+X)%1;return N}n.mix=function(l,d,f){f=f===0?0:f||50;var v=n(l).toRgb(),w=n(d).toRgb(),_=f/100,N={r:(w.r-v.r)*_+v.r,g:(w.g-v.g)*_+v.g,b:(w.b-v.b)*_+v.b,a:(w.a-v.a)*_+v.a};return n(N)},n.readability=function(l,d){var f=n(l),v=n(d);return(Math.max(f.getLuminance(),v.getLuminance())+.05)/(Math.min(f.getLuminance(),v.getLuminance())+.05)},n.isReadable=function(l,d,f){var v=n.readability(l,d),w,_;switch(_=!1,w=be(f),w.level+w.size){case"AAsmall":case"AAAlarge":_=v>=4.5;break;case"AAlarge":_=v>=3;break;case"AAAsmall":_=v>=7;break}return _},n.mostReadable=function(l,d,f){var v=null,w=0,_,N,X,W;f=f||{},N=f.includeFallbackColors,X=f.level,W=f.size;for(var Ie=0;Ie<d.length;Ie++)_=n.readability(l,d[Ie]),_>w&&(w=_,v=n(d[Ie]));return n.isReadable(l,v,{level:X,size:W})||!N?v:(f.includeFallbackColors=!1,n.mostReadable(l,["#fff","#000"],f))};var D=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},q=n.hexNames=k(D);function k(l){var d={};for(var f in l)l.hasOwnProperty(f)&&(d[l[f]]=f);return d}function U(l){return l=parseFloat(l),(isNaN(l)||l<0||l>1)&&(l=1),l}function I(l,d){T(l)&&(l="100%");var f=A(l);return l=Math.min(d,Math.max(0,parseFloat(l))),f&&(l=parseInt(l*d,10)/100),Math.abs(l-d)<1e-6?1:l%d/parseFloat(d)}function j(l){return Math.min(1,Math.max(0,l))}function P(l){return parseInt(l,16)}function T(l){return typeof l=="string"&&l.indexOf(".")!=-1&&parseFloat(l)===1}function A(l){return typeof l=="string"&&l.indexOf("%")!=-1}function x(l){return l.length==1?"0"+l:""+l}function F(l){return l<=1&&(l=l*100+"%"),l}function Ce(l){return Math.round(parseFloat(l)*255).toString(16)}function ve(l){return P(l)/255}var re=function(){var l="[-\\+]?\\d+%?",d="[-\\+]?\\d*\\.\\d+%?",f="(?:"+d+")|(?:"+l+")",v="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?",w="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?";return{CSS_UNIT:new RegExp(f),rgb:new RegExp("rgb"+v),rgba:new RegExp("rgba"+w),hsl:new RegExp("hsl"+v),hsla:new RegExp("hsla"+w),hsv:new RegExp("hsv"+v),hsva:new RegExp("hsva"+w),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ae(l){return!!re.CSS_UNIT.exec(l)}function Ze(l){l=l.replace(e,"").replace(r,"").toLowerCase();var d=!1;if(D[l])l=D[l],d=!0;else if(l=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var f;return(f=re.rgb.exec(l))?{r:f[1],g:f[2],b:f[3]}:(f=re.rgba.exec(l))?{r:f[1],g:f[2],b:f[3],a:f[4]}:(f=re.hsl.exec(l))?{h:f[1],s:f[2],l:f[3]}:(f=re.hsla.exec(l))?{h:f[1],s:f[2],l:f[3],a:f[4]}:(f=re.hsv.exec(l))?{h:f[1],s:f[2],v:f[3]}:(f=re.hsva.exec(l))?{h:f[1],s:f[2],v:f[3],a:f[4]}:(f=re.hex8.exec(l))?{r:P(f[1]),g:P(f[2]),b:P(f[3]),a:ve(f[4]),format:d?"name":"hex8"}:(f=re.hex6.exec(l))?{r:P(f[1]),g:P(f[2]),b:P(f[3]),format:d?"name":"hex"}:(f=re.hex4.exec(l))?{r:P(f[1]+""+f[1]),g:P(f[2]+""+f[2]),b:P(f[3]+""+f[3]),a:ve(f[4]+""+f[4]),format:d?"name":"hex8"}:(f=re.hex3.exec(l))?{r:P(f[1]+""+f[1]),g:P(f[2]+""+f[2]),b:P(f[3]+""+f[3]),format:d?"name":"hex"}:!1}function be(l){var d,f;return l=l||{level:"AA",size:"small"},d=(l.level||"AA").toUpperCase(),f=(l.size||"small").toLowerCase(),d!=="AA"&&d!=="AAA"&&(d="AA"),f!=="small"&&f!=="large"&&(f="small"),{level:d,size:f}}return n})});var $c=y((Sb,Lc)=>{var er=kc(),Nc={r:256,g:256,b:256,a:1},jc={h:360,s:1,v:1,a:1};function Oi(t,e,r){let n={};for(let i in t)t.hasOwnProperty(i)&&(n[i]=r===0?0:(e[i]-t[i])/r);return n}function Di(t,e,r,n){let i={};for(let s in e)e.hasOwnProperty(s)&&(i[s]=t[s]*r+e[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function Pi(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=Oi(n,i,r),o=[t.color];for(let a=1;a<r;a++){let u=Di(s,n,a,Nc);o.push(er(u))}return o}function Mc(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return Pi(t,e,r);let o;if(typeof n=="boolean")o=n;else{let c=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&c||n==="short"&&!c}let a=Oi(i,s,r),u=[t.color],h;i.h<=s.h&&!o||i.h>=s.h&&o?h=s.h-i.h:o?h=360-s.h+i.h:h=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(h)/r;for(let c=1;c<r;c++){let p=Di(a,i,c,jc);u.push(er(p))}return u}function qc(t,e){let r=t.length;if(e=parseInt(e,10),isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==e;)if(i<e){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function Tc(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let u=0,h=t.length;u<h-1;u++)if(e>=t[u].pos&&e<t[u+1].pos){i=t[u],s=t[u+1];break}i||(i=s=t[t.length-1]);let o=Oi(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=Di(o,i.color[r](),(e-i.pos)*100,n);return er(a)}var Dt=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,n=e.length,i=-1,s=!1;this.stops=e.map((o,a)=>{let u=o.pos!==void 0;if(r^u)throw new Error("Cannot mix positionned and not posionned color stops");if(u){let h=o.color!==void 0;if(!h&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!h,o={color:h?er(o.color):null,colorLess:!h,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:er(o.color!==void 0?o.color:o),pos:a/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new Dt(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(n=>{e.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new Dt(e.concat(r.reverse()))}rgb(e){let r=qc(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Pi(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=Pi(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(e,r){let n=qc(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=Mc(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let a=Mc(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let n=e+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(e){return Tc(this.stops,e,"toRgb",Nc)}hsvAt(e){return Tc(this.stops,e,"toHsv",jc)}};Lc.exports=function(t){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');t=arguments[0]}else t=Array.prototype.slice.call(arguments);return new Dt(t)}});var Gc=y((Eb,Kr)=>{"use strict";var Uc=Ac(),nm=$c(),Bc=/\s/g;function Ii(...t){let e=nm.apply(this,t),r=(n,i)=>im(n?n.toString():"",e,i);return r.multiline=(n,i)=>sm(n?n.toString():"",e,i),r}var Xc=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function im(t,e,r){let n=Hc(r),i=Math.max(t.replace(Bc,"").length,e.stops.length),s=Xc(e,n,i),o="";for(let a of t)o+=a.match(Bc)?a:Uc.hex(s.shift().toHex())(a);return o}function sm(t,e,r){let n=Hc(r),i=t.split(`
14
+ `);return s!==-1&&(e=em(e,i,n,s)),n+e+i},bi,Fc=(t,...e)=>{let[r]=e;if(!Wr(r)||!Wr(r.raw))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return bi===void 0&&(bi=Cc()),bi(t,i.join(""))};Object.defineProperties(Jr.prototype,Ot);var Yr=Jr();Yr.supportsColor=_i;Yr.stderr=Jr({level:wi?wi.level:0});Yr.stderr.supportsColor=wi;Rc.exports=Yr});var kc=y((Ei,Ci)=>{(function(t,e){typeof Ei=="object"&&typeof Ci<"u"?Ci.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.tinycolor=e())})(Ei,function(){"use strict";function t(l){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},t(l)}var e=/^\s+/,r=/\s+$/;function n(l,f){if(l=l||"",f=f||{},l instanceof n)return l;if(!(this instanceof n))return new n(l,f);var d=i(l);this._originalInput=l,this._r=d.r,this._g=d.g,this._b=d.b,this._a=d.a,this._roundA=Math.round(100*this._a)/100,this._format=f.format||d.format,this._gradientType=f.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=d.ok}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var f=this.toRgb();return(f.r*299+f.g*587+f.b*114)/1e3},getLuminance:function(){var f=this.toRgb(),d,v,w,_,N,X;return d=f.r/255,v=f.g/255,w=f.b/255,d<=.03928?_=d/12.92:_=Math.pow((d+.055)/1.055,2.4),v<=.03928?N=v/12.92:N=Math.pow((v+.055)/1.055,2.4),w<=.03928?X=w/12.92:X=Math.pow((w+.055)/1.055,2.4),.2126*_+.7152*N+.0722*X},setAlpha:function(f){return this._a=U(f),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var f=u(this._r,this._g,this._b);return{h:f.h*360,s:f.s,v:f.v,a:this._a}},toHsvString:function(){var f=u(this._r,this._g,this._b),d=Math.round(f.h*360),v=Math.round(f.s*100),w=Math.round(f.v*100);return this._a==1?"hsv("+d+", "+v+"%, "+w+"%)":"hsva("+d+", "+v+"%, "+w+"%, "+this._roundA+")"},toHsl:function(){var f=o(this._r,this._g,this._b);return{h:f.h*360,s:f.s,l:f.l,a:this._a}},toHslString:function(){var f=o(this._r,this._g,this._b),d=Math.round(f.h*360),v=Math.round(f.s*100),w=Math.round(f.l*100);return this._a==1?"hsl("+d+", "+v+"%, "+w+"%)":"hsla("+d+", "+v+"%, "+w+"%, "+this._roundA+")"},toHex:function(f){return c(this._r,this._g,this._b,f)},toHexString:function(f){return"#"+this.toHex(f)},toHex8:function(f){return p(this._r,this._g,this._b,this._a,f)},toHex8String:function(f){return"#"+this.toHex8(f)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(I(this._r,255)*100)+"%",g:Math.round(I(this._g,255)*100)+"%",b:Math.round(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(I(this._r,255)*100)+"%, "+Math.round(I(this._g,255)*100)+"%, "+Math.round(I(this._b,255)*100)+"%)":"rgba("+Math.round(I(this._r,255)*100)+"%, "+Math.round(I(this._g,255)*100)+"%, "+Math.round(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:q[c(this._r,this._g,this._b,!0)]||!1},toFilter:function(f){var d="#"+g(this._r,this._g,this._b,this._a),v=d,w=this._gradientType?"GradientType = 1, ":"";if(f){var _=n(f);v="#"+g(_._r,_._g,_._b,_._a)}return"progid:DXImageTransform.Microsoft.gradient("+w+"startColorstr="+d+",endColorstr="+v+")"},toString:function(f){var d=!!f;f=f||this._format;var v=!1,w=this._a<1&&this._a>=0,_=!d&&w&&(f==="hex"||f==="hex6"||f==="hex3"||f==="hex4"||f==="hex8"||f==="name");return _?f==="name"&&this._a===0?this.toName():this.toRgbString():(f==="rgb"&&(v=this.toRgbString()),f==="prgb"&&(v=this.toPercentageRgbString()),(f==="hex"||f==="hex6")&&(v=this.toHexString()),f==="hex3"&&(v=this.toHexString(!0)),f==="hex4"&&(v=this.toHex8String(!0)),f==="hex8"&&(v=this.toHex8String()),f==="name"&&(v=this.toName()),f==="hsl"&&(v=this.toHslString()),f==="hsv"&&(v=this.toHsvString()),v||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(f,d){var v=f.apply(null,[this].concat([].slice.call(d)));return this._r=v._r,this._g=v._g,this._b=v._b,this.setAlpha(v._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(R,arguments)},darken:function(){return this._applyModification(L,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(S,arguments)},spin:function(){return this._applyModification(B,arguments)},_applyCombination:function(f,d){return f.apply(null,[this].concat([].slice.call(d)))},analogous:function(){return this._applyCombination(Oe,arguments)},complement:function(){return this._applyCombination(G,arguments)},monochromatic:function(){return this._applyCombination(re,arguments)},splitcomplement:function(){return this._applyCombination(de,arguments)},triad:function(){return this._applyCombination(K,[3])},tetrad:function(){return this._applyCombination(K,[4])}},n.fromRatio=function(l,f){if(t(l)=="object"){var d={};for(var v in l)l.hasOwnProperty(v)&&(v==="a"?d[v]=l[v]:d[v]=F(l[v]));l=d}return n(l,f)};function i(l){var f={r:0,g:0,b:0},d=1,v=null,w=null,_=null,N=!1,X=!1;return typeof l=="string"&&(l=Ue(l)),t(l)=="object"&&(he(l.r)&&he(l.g)&&he(l.b)?(f=s(l.r,l.g,l.b),N=!0,X=String(l.r).substr(-1)==="%"?"prgb":"rgb"):he(l.h)&&he(l.s)&&he(l.v)?(v=F(l.s),w=F(l.v),f=h(l.h,v,w),N=!0,X="hsv"):he(l.h)&&he(l.s)&&he(l.l)&&(v=F(l.s),_=F(l.l),f=a(l.h,v,_),N=!0,X="hsl"),l.hasOwnProperty("a")&&(d=l.a)),d=U(d),{ok:N,format:l.format||X,r:Math.min(255,Math.max(f.r,0)),g:Math.min(255,Math.max(f.g,0)),b:Math.min(255,Math.max(f.b,0)),a:d}}function s(l,f,d){return{r:I(l,255)*255,g:I(f,255)*255,b:I(d,255)*255}}function o(l,f,d){l=I(l,255),f=I(f,255),d=I(d,255);var v=Math.max(l,f,d),w=Math.min(l,f,d),_,N,X=(v+w)/2;if(v==w)_=N=0;else{var J=v-w;switch(N=X>.5?J/(2-v-w):J/(v+w),v){case l:_=(f-d)/J+(f<d?6:0);break;case f:_=(d-l)/J+2;break;case d:_=(l-f)/J+4;break}_/=6}return{h:_,s:N,l:X}}function a(l,f,d){var v,w,_;l=I(l,360),f=I(f,100),d=I(d,100);function N(Ie,Lt,Ae){return Ae<0&&(Ae+=1),Ae>1&&(Ae-=1),Ae<1/6?Ie+(Lt-Ie)*6*Ae:Ae<1/2?Lt:Ae<2/3?Ie+(Lt-Ie)*(2/3-Ae)*6:Ie}if(f===0)v=w=_=d;else{var X=d<.5?d*(1+f):d+f-d*f,J=2*d-X;v=N(J,X,l+1/3),w=N(J,X,l),_=N(J,X,l-1/3)}return{r:v*255,g:w*255,b:_*255}}function u(l,f,d){l=I(l,255),f=I(f,255),d=I(d,255);var v=Math.max(l,f,d),w=Math.min(l,f,d),_,N,X=v,J=v-w;if(N=v===0?0:J/v,v==w)_=0;else{switch(v){case l:_=(f-d)/J+(f<d?6:0);break;case f:_=(d-l)/J+2;break;case d:_=(l-f)/J+4;break}_/=6}return{h:_,s:N,v:X}}function h(l,f,d){l=I(l,360)*6,f=I(f,100),d=I(d,100);var v=Math.floor(l),w=l-v,_=d*(1-f),N=d*(1-w*f),X=d*(1-(1-w)*f),J=v%6,Ie=[d,N,_,_,X,d][J],Lt=[X,d,d,N,_,_][J],Ae=[_,_,X,d,d,N][J];return{r:Ie*255,g:Lt*255,b:Ae*255}}function c(l,f,d,v){var w=[x(Math.round(l).toString(16)),x(Math.round(f).toString(16)),x(Math.round(d).toString(16))];return v&&w[0].charAt(0)==w[0].charAt(1)&&w[1].charAt(0)==w[1].charAt(1)&&w[2].charAt(0)==w[2].charAt(1)?w[0].charAt(0)+w[1].charAt(0)+w[2].charAt(0):w.join("")}function p(l,f,d,v,w){var _=[x(Math.round(l).toString(16)),x(Math.round(f).toString(16)),x(Math.round(d).toString(16)),x(ne(v))];return w&&_[0].charAt(0)==_[0].charAt(1)&&_[1].charAt(0)==_[1].charAt(1)&&_[2].charAt(0)==_[2].charAt(1)&&_[3].charAt(0)==_[3].charAt(1)?_[0].charAt(0)+_[1].charAt(0)+_[2].charAt(0)+_[3].charAt(0):_.join("")}function g(l,f,d,v){var w=[x(ne(v)),x(Math.round(l).toString(16)),x(Math.round(f).toString(16)),x(Math.round(d).toString(16))];return w.join("")}n.equals=function(l,f){return!l||!f?!1:n(l).toRgbString()==n(f).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function m(l,f){f=f===0?0:f||10;var d=n(l).toHsl();return d.s-=f/100,d.s=j(d.s),n(d)}function b(l,f){f=f===0?0:f||10;var d=n(l).toHsl();return d.s+=f/100,d.s=j(d.s),n(d)}function S(l){return n(l).desaturate(100)}function O(l,f){f=f===0?0:f||10;var d=n(l).toHsl();return d.l+=f/100,d.l=j(d.l),n(d)}function R(l,f){f=f===0?0:f||10;var d=n(l).toRgb();return d.r=Math.max(0,Math.min(255,d.r-Math.round(255*-(f/100)))),d.g=Math.max(0,Math.min(255,d.g-Math.round(255*-(f/100)))),d.b=Math.max(0,Math.min(255,d.b-Math.round(255*-(f/100)))),n(d)}function L(l,f){f=f===0?0:f||10;var d=n(l).toHsl();return d.l-=f/100,d.l=j(d.l),n(d)}function B(l,f){var d=n(l).toHsl(),v=(d.h+f)%360;return d.h=v<0?360+v:v,n(d)}function G(l){var f=n(l).toHsl();return f.h=(f.h+180)%360,n(f)}function K(l,f){if(isNaN(f)||f<=0)throw new Error("Argument to polyad must be a positive number");for(var d=n(l).toHsl(),v=[n(l)],w=360/f,_=1;_<f;_++)v.push(n({h:(d.h+_*w)%360,s:d.s,l:d.l}));return v}function de(l){var f=n(l).toHsl(),d=f.h;return[n(l),n({h:(d+72)%360,s:f.s,l:f.l}),n({h:(d+216)%360,s:f.s,l:f.l})]}function Oe(l,f,d){f=f||6,d=d||30;var v=n(l).toHsl(),w=360/d,_=[n(l)];for(v.h=(v.h-(w*f>>1)+720)%360;--f;)v.h=(v.h+w)%360,_.push(n(v));return _}function re(l,f){f=f||6;for(var d=n(l).toHsv(),v=d.h,w=d.s,_=d.v,N=[],X=1/f;f--;)N.push(n({h:v,s:w,v:_})),_=(_+X)%1;return N}n.mix=function(l,f,d){d=d===0?0:d||50;var v=n(l).toRgb(),w=n(f).toRgb(),_=d/100,N={r:(w.r-v.r)*_+v.r,g:(w.g-v.g)*_+v.g,b:(w.b-v.b)*_+v.b,a:(w.a-v.a)*_+v.a};return n(N)},n.readability=function(l,f){var d=n(l),v=n(f);return(Math.max(d.getLuminance(),v.getLuminance())+.05)/(Math.min(d.getLuminance(),v.getLuminance())+.05)},n.isReadable=function(l,f,d){var v=n.readability(l,f),w,_;switch(_=!1,w=pe(d),w.level+w.size){case"AAsmall":case"AAAlarge":_=v>=4.5;break;case"AAlarge":_=v>=3;break;case"AAAsmall":_=v>=7;break}return _},n.mostReadable=function(l,f,d){var v=null,w=0,_,N,X,J;d=d||{},N=d.includeFallbackColors,X=d.level,J=d.size;for(var Ie=0;Ie<f.length;Ie++)_=n.readability(l,f[Ie]),_>w&&(w=_,v=n(f[Ie]));return n.isReadable(l,v,{level:X,size:J})||!N?v:(d.includeFallbackColors=!1,n.mostReadable(l,["#fff","#000"],d))};var D=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},q=n.hexNames=A(D);function A(l){var f={};for(var d in l)l.hasOwnProperty(d)&&(f[l[d]]=d);return f}function U(l){return l=parseFloat(l),(isNaN(l)||l<0||l>1)&&(l=1),l}function I(l,f){T(l)&&(l="100%");var d=M(l);return l=Math.min(f,Math.max(0,parseFloat(l))),d&&(l=parseInt(l*f,10)/100),Math.abs(l-f)<1e-6?1:l%f/parseFloat(f)}function j(l){return Math.min(1,Math.max(0,l))}function P(l){return parseInt(l,16)}function T(l){return typeof l=="string"&&l.indexOf(".")!=-1&&parseFloat(l)===1}function M(l){return typeof l=="string"&&l.indexOf("%")!=-1}function x(l){return l.length==1?"0"+l:""+l}function F(l){return l<=1&&(l=l*100+"%"),l}function ne(l){return Math.round(parseFloat(l)*255).toString(16)}function De(l){return P(l)/255}var W=function(){var l="[-\\+]?\\d+%?",f="[-\\+]?\\d*\\.\\d+%?",d="(?:"+f+")|(?:"+l+")",v="[\\s|\\(]+("+d+")[,|\\s]+("+d+")[,|\\s]+("+d+")\\s*\\)?",w="[\\s|\\(]+("+d+")[,|\\s]+("+d+")[,|\\s]+("+d+")[,|\\s]+("+d+")\\s*\\)?";return{CSS_UNIT:new RegExp(d),rgb:new RegExp("rgb"+v),rgba:new RegExp("rgba"+w),hsl:new RegExp("hsl"+v),hsla:new RegExp("hsla"+w),hsv:new RegExp("hsv"+v),hsva:new RegExp("hsva"+w),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function he(l){return!!W.CSS_UNIT.exec(l)}function Ue(l){l=l.replace(e,"").replace(r,"").toLowerCase();var f=!1;if(D[l])l=D[l],f=!0;else if(l=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var d;return(d=W.rgb.exec(l))?{r:d[1],g:d[2],b:d[3]}:(d=W.rgba.exec(l))?{r:d[1],g:d[2],b:d[3],a:d[4]}:(d=W.hsl.exec(l))?{h:d[1],s:d[2],l:d[3]}:(d=W.hsla.exec(l))?{h:d[1],s:d[2],l:d[3],a:d[4]}:(d=W.hsv.exec(l))?{h:d[1],s:d[2],v:d[3]}:(d=W.hsva.exec(l))?{h:d[1],s:d[2],v:d[3],a:d[4]}:(d=W.hex8.exec(l))?{r:P(d[1]),g:P(d[2]),b:P(d[3]),a:De(d[4]),format:f?"name":"hex8"}:(d=W.hex6.exec(l))?{r:P(d[1]),g:P(d[2]),b:P(d[3]),format:f?"name":"hex"}:(d=W.hex4.exec(l))?{r:P(d[1]+""+d[1]),g:P(d[2]+""+d[2]),b:P(d[3]+""+d[3]),a:De(d[4]+""+d[4]),format:f?"name":"hex8"}:(d=W.hex3.exec(l))?{r:P(d[1]+""+d[1]),g:P(d[2]+""+d[2]),b:P(d[3]+""+d[3]),format:f?"name":"hex"}:!1}function pe(l){var f,d;return l=l||{level:"AA",size:"small"},f=(l.level||"AA").toUpperCase(),d=(l.size||"small").toLowerCase(),f!=="AA"&&f!=="AAA"&&(f="AA"),d!=="small"&&d!=="large"&&(d="small"),{level:f,size:d}}return n})});var $c=y((Sb,Lc)=>{var er=kc(),Nc={r:256,g:256,b:256,a:1},jc={h:360,s:1,v:1,a:1};function Oi(t,e,r){let n={};for(let i in t)t.hasOwnProperty(i)&&(n[i]=r===0?0:(e[i]-t[i])/r);return n}function Di(t,e,r,n){let i={};for(let s in e)e.hasOwnProperty(s)&&(i[s]=t[s]*r+e[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function Pi(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=Oi(n,i,r),o=[t.color];for(let a=1;a<r;a++){let u=Di(s,n,a,Nc);o.push(er(u))}return o}function qc(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return Pi(t,e,r);let o;if(typeof n=="boolean")o=n;else{let c=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&c||n==="short"&&!c}let a=Oi(i,s,r),u=[t.color],h;i.h<=s.h&&!o||i.h>=s.h&&o?h=s.h-i.h:o?h=360-s.h+i.h:h=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(h)/r;for(let c=1;c<r;c++){let p=Di(a,i,c,jc);u.push(er(p))}return u}function Mc(t,e){let r=t.length;if(e=parseInt(e,10),isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==e;)if(i<e){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function Tc(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let u=0,h=t.length;u<h-1;u++)if(e>=t[u].pos&&e<t[u+1].pos){i=t[u],s=t[u+1];break}i||(i=s=t[t.length-1]);let o=Oi(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=Di(o,i.color[r](),(e-i.pos)*100,n);return er(a)}var Dt=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,n=e.length,i=-1,s=!1;this.stops=e.map((o,a)=>{let u=o.pos!==void 0;if(r^u)throw new Error("Cannot mix positionned and not posionned color stops");if(u){let h=o.color!==void 0;if(!h&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!h,o={color:h?er(o.color):null,colorLess:!h,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:er(o.color!==void 0?o.color:o),pos:a/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new Dt(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(n=>{e.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new Dt(e.concat(r.reverse()))}rgb(e){let r=Mc(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Pi(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=Pi(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(e,r){let n=Mc(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=qc(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let a=qc(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let n=e+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(e){return Tc(this.stops,e,"toRgb",Nc)}hsvAt(e){return Tc(this.stops,e,"toHsv",jc)}};Lc.exports=function(t){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');t=arguments[0]}else t=Array.prototype.slice.call(arguments);return new Dt(t)}});var Gc=y((Eb,Kr)=>{"use strict";var Uc=Ac(),nm=$c(),Bc=/\s/g;function Ii(...t){let e=nm.apply(this,t),r=(n,i)=>im(n?n.toString():"",e,i);return r.multiline=(n,i)=>sm(n?n.toString():"",e,i),r}var Xc=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function im(t,e,r){let n=Hc(r),i=Math.max(t.replace(Bc,"").length,e.stops.length),s=Xc(e,n,i),o="";for(let a of t)o+=a.match(Bc)?a:Uc.hex(s.shift().toHex())(a);return o}function sm(t,e,r){let n=Hc(r),i=t.split(`
15
15
  `),s=Math.max.apply(null,i.map(u=>u.length).concat([e.stops.length])),o=Xc(e,n,s),a=[];for(let u of i){let h=o.slice(0),c="";for(let p of u)c+=Uc.hex(h.shift().toHex())(p);a.push(c)}return a.join(`
16
- `)}function Hc(t){let e={interpolation:"rgb",hsvSpin:"short",...t};if(t!==void 0&&typeof t!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof t}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof e.hsvSpin}\``);return e}var tr={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};Kr.exports=Ii;for(let t in tr)Kr.exports[t]=e=>new Ii(tr[t].colors)(e,tr[t].options),Kr.exports[t].multiline=e=>new Ii(tr[t].colors).multiline(e,tr[t].options)});var Wc=y((Cb,zc)=>{var Fi=class{constructor(e){this.value=e,this.next=void 0}},Ri=class{constructor(){this.clear()}enqueue(e){let r=new Fi(e);this._head?(this._tail.next=r,this._tail=r):(this._head=r,this._tail=r),this._size++}dequeue(){let e=this._head;if(e)return this._head=this._head.next,this._size--,e.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let e=this._head;for(;e;)yield e.value,e=e.next}};zc.exports=Ri});var Ai=y((Pb,Jc)=>{"use strict";var om=Wc(),am=t=>{if(!((Number.isInteger(t)||t===1/0)&&t>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let e=new om,r=0,n=()=>{r--,e.size>0&&e.dequeue()()},i=async(a,u,...h)=>{r++;let c=(async()=>a(...h))();u(c);try{await c}catch{}n()},s=(a,u,...h)=>{e.enqueue(i.bind(null,a,u,...h)),(async()=>(await Promise.resolve(),r<t&&e.size>0&&e.dequeue()()))()},o=(a,...u)=>new Promise(h=>{s(a,h,...u)});return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),o};Jc.exports=am});var Kc=y((Ob,Yc)=>{"use strict";var Vc=Ai(),Qr=class extends Error{constructor(e){super(),this.value=e}},um=async(t,e)=>e(await t),cm=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new Qr(e[0]);return!1},lm=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=Vc(r.concurrency),i=[...t].map(o=>[o,n(um,o,e)]),s=Vc(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(cm,o)))}catch(o){if(o instanceof Qr)return o.value;throw o}};Yc.exports=lm});var nl=y((Db,ki)=>{"use strict";var Qc=require("path"),Zr=require("fs"),{promisify:Zc}=require("util"),fm=Kc(),dm=Zc(Zr.stat),hm=Zc(Zr.lstat),el={directory:"isDirectory",file:"isFile"};function tl({type:t}){if(!(t in el))throw new Error(`Invalid type specified: ${t}`)}var rl=(t,e)=>t===void 0||e[el[t]]();ki.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},tl(e);let r=e.allowSymlinks?dm:hm;return fm(t,async n=>{try{let i=await r(Qc.resolve(e.cwd,n));return rl(e.type,i)}catch{return!1}},e)};ki.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},tl(e);let r=e.allowSymlinks?Zr.statSync:Zr.lstatSync;for(let n of t)try{let i=r(Qc.resolve(e.cwd,n));if(rl(e.type,i))return n}catch{}}});var sl=y((Ib,Mi)=>{"use strict";var il=require("fs"),{promisify:pm}=require("util"),mm=pm(il.access);Mi.exports=async t=>{try{return await mm(t),!0}catch{return!1}};Mi.exports.sync=t=>{try{return il.accessSync(t),!0}catch{return!1}}});var al=y((Fb,It)=>{"use strict";var Je=require("path"),en=nl(),ol=sl(),qi=Symbol("findUp.stop");It.exports=async(t,e={})=>{let r=Je.resolve(e.cwd||""),{root:n}=Je.parse(r),i=[].concat(t),s=async o=>{if(typeof t!="function")return en(i,o);let a=await t(o.cwd);return typeof a=="string"?en([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===qi)return;if(o)return Je.resolve(r,o);if(r===n)return;r=Je.dirname(r)}};It.exports.sync=(t,e={})=>{let r=Je.resolve(e.cwd||""),{root:n}=Je.parse(r),i=[].concat(t),s=o=>{if(typeof t!="function")return en.sync(i,o);let a=t(o.cwd);return typeof a=="string"?en.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===qi)return;if(o)return Je.resolve(r,o);if(r===n)return;r=Je.dirname(r)}};It.exports.exists=ol;It.exports.sync.exists=ol.sync;It.exports.stop=qi});var ll=y((Rb,Ti)=>{"use strict";var ul=require("path"),cl=al(),gm=async t=>{let e=await cl("package.json",{cwd:t});return e&&ul.dirname(e)};Ti.exports=gm;Ti.exports.sync=t=>{let e=cl.sync("package.json",{cwd:t});return e&&ul.dirname(e)}});var Xi=y((Tb,ml)=>{"use strict";ml.exports=function(e,r){return function(){for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];return e.apply(r,i)}}});var ge=y((Nb,vl)=>{"use strict";var wm=Xi(),it=Object.prototype.toString;function zi(t){return it.call(t)==="[object Array]"}function Hi(t){return typeof t>"u"}function xm(t){return t!==null&&!Hi(t)&&t.constructor!==null&&!Hi(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function Sm(t){return it.call(t)==="[object ArrayBuffer]"}function Em(t){return typeof FormData<"u"&&t instanceof FormData}function Cm(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function Pm(t){return typeof t=="string"}function Om(t){return typeof t=="number"}function gl(t){return t!==null&&typeof t=="object"}function tn(t){if(it.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function Dm(t){return it.call(t)==="[object Date]"}function Im(t){return it.call(t)==="[object File]"}function Fm(t){return it.call(t)==="[object Blob]"}function yl(t){return it.call(t)==="[object Function]"}function Rm(t){return gl(t)&&yl(t.pipe)}function Am(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function km(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Mm(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Wi(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),zi(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function Gi(){var t={};function e(i,s){tn(t[s])&&tn(i)?t[s]=Gi(t[s],i):tn(i)?t[s]=Gi({},i):zi(i)?t[s]=i.slice():t[s]=i}for(var r=0,n=arguments.length;r<n;r++)Wi(arguments[r],e);return t}function qm(t,e,r){return Wi(e,function(i,s){r&&typeof i=="function"?t[s]=wm(i,r):t[s]=i}),t}function Tm(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}vl.exports={isArray:zi,isArrayBuffer:Sm,isBuffer:xm,isFormData:Em,isArrayBufferView:Cm,isString:Pm,isNumber:Om,isObject:gl,isPlainObject:tn,isUndefined:Hi,isDate:Dm,isFile:Im,isBlob:Fm,isFunction:yl,isStream:Rm,isURLSearchParams:Am,isStandardBrowserEnv:Mm,forEach:Wi,merge:Gi,extend:qm,trim:km,stripBOM:Tm}});var rn=y((jb,_l)=>{"use strict";var Ft=ge();function bl(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}_l.exports=function(e,r,n){if(!r)return e;var i;if(n)i=n(r);else if(Ft.isURLSearchParams(r))i=r.toString();else{var s=[];Ft.forEach(r,function(u,h){u===null||typeof u>"u"||(Ft.isArray(u)?h=h+"[]":u=[u],Ft.forEach(u,function(p){Ft.isDate(p)?p=p.toISOString():Ft.isObject(p)&&(p=JSON.stringify(p)),s.push(bl(h)+"="+bl(p))}))}),i=s.join("&")}if(i){var o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}});var xl=y((Lb,wl)=>{"use strict";var Nm=ge();function nn(){this.handlers=[]}nn.prototype.use=function(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};nn.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};nn.prototype.forEach=function(e){Nm.forEach(this.handlers,function(n){n!==null&&e(n)})};wl.exports=nn});var El=y(($b,Sl)=>{"use strict";var jm=ge();Sl.exports=function(e,r){jm.forEach(e,function(i,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(e[r]=i,delete e[s])})}});var sn=y((Bb,Cl)=>{"use strict";Cl.exports=function(e,r,n,i,s){return e.config=r,n&&(e.code=n),e.request=i,e.response=s,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}});var on=y((Ub,Pl)=>{"use strict";var Lm=sn();Pl.exports=function(e,r,n,i,s){var o=new Error(e);return Lm(o,r,n,i,s)}});var Ji=y((Xb,Ol)=>{"use strict";var $m=on();Ol.exports=function(e,r,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):r($m("Request failed with status code "+n.status,n.config,null,n.request,n))}});var Il=y((Hb,Dl)=>{"use strict";var an=ge();Dl.exports=an.isStandardBrowserEnv()?function(){return{write:function(r,n,i,s,o,a){var u=[];u.push(r+"="+encodeURIComponent(n)),an.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),an.isString(s)&&u.push("path="+s),an.isString(o)&&u.push("domain="+o),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var Rl=y((Gb,Fl)=>{"use strict";Fl.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}});var kl=y((zb,Al)=>{"use strict";Al.exports=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}});var Vi=y((Wb,Ml)=>{"use strict";var Bm=Rl(),Um=kl();Ml.exports=function(e,r){return e&&!Bm(r)?Um(e,r):r}});var Tl=y((Jb,ql)=>{"use strict";var Yi=ge(),Xm=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];ql.exports=function(e){var r={},n,i,s;return e&&Yi.forEach(e.split(`
17
- `),function(a){if(s=a.indexOf(":"),n=Yi.trim(a.substr(0,s)).toLowerCase(),i=Yi.trim(a.substr(s+1)),n){if(r[n]&&Xm.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([i]):r[n]=r[n]?r[n]+", "+i:i}}),r}});var Ll=y((Vb,jl)=>{"use strict";var Nl=ge();jl.exports=Nl.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(s){var o=s;return e&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(o){var a=Nl.isString(o)?i(o):o;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}()});var Bl=y((Yb,$l)=>{"use strict";var un=ge(),Hm=Ji(),Gm=Il(),zm=rn(),Wm=Vi(),Jm=Tl(),Vm=Ll(),Ki=on();$l.exports=function(e){return new Promise(function(n,i){var s=e.data,o=e.headers,a=e.responseType;un.isFormData(s)&&delete o["Content-Type"];var u=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",c=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(h+":"+c)}var p=Wm(e.baseURL,e.url);u.open(e.method.toUpperCase(),zm(p,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function g(){if(u){var b="getAllResponseHeaders"in u?Jm(u.getAllResponseHeaders()):null,S=!a||a==="text"||a==="json"?u.responseText:u.response,O={data:S,status:u.status,statusText:u.statusText,headers:b,config:e,request:u};Hm(n,i,O),u=null}}if("onloadend"in u?u.onloadend=g:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(g)},u.onabort=function(){u&&(i(Ki("Request aborted",e,"ECONNABORTED",u)),u=null)},u.onerror=function(){i(Ki("Network Error",e,null,u)),u=null},u.ontimeout=function(){var S="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),i(Ki(S,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",u)),u=null},un.isStandardBrowserEnv()){var m=(e.withCredentials||Vm(p))&&e.xsrfCookieName?Gm.read(e.xsrfCookieName):void 0;m&&(o[e.xsrfHeaderName]=m)}"setRequestHeader"in u&&un.forEach(o,function(S,O){typeof s>"u"&&O.toLowerCase()==="content-type"?delete o[O]:u.setRequestHeader(O,S)}),un.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&a!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(S){u&&(u.abort(),i(S),u=null)}),s||(s=null),u.send(s)})}});var Xl=y((Kb,Ul)=>{var Rt=1e3,At=Rt*60,kt=At*60,st=kt*24,Ym=st*7,Km=st*365.25;Ul.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Qm(t);if(r==="number"&&isFinite(t))return e.long?eg(t):Zm(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Qm(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Km;case"weeks":case"week":case"w":return r*Ym;case"days":case"day":case"d":return r*st;case"hours":case"hour":case"hrs":case"hr":case"h":return r*kt;case"minutes":case"minute":case"mins":case"min":case"m":return r*At;case"seconds":case"second":case"secs":case"sec":case"s":return r*Rt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Zm(t){var e=Math.abs(t);return e>=st?Math.round(t/st)+"d":e>=kt?Math.round(t/kt)+"h":e>=At?Math.round(t/At)+"m":e>=Rt?Math.round(t/Rt)+"s":t+"ms"}function eg(t){var e=Math.abs(t);return e>=st?cn(t,e,st,"day"):e>=kt?cn(t,e,kt,"hour"):e>=At?cn(t,e,At,"minute"):e>=Rt?cn(t,e,Rt,"second"):t+" ms"}function cn(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var Qi=y((Qb,Hl)=>{function tg(t){r.debug=r,r.default=r,r.coerce=u,r.disable=s,r.enable=i,r.enabled=o,r.humanize=Xl(),r.destroy=h,Object.keys(t).forEach(c=>{r[c]=t[c]}),r.names=[],r.skips=[],r.formatters={};function e(c){let p=0;for(let g=0;g<c.length;g++)p=(p<<5)-p+c.charCodeAt(g),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(c){let p,g=null,m,b;function S(...O){if(!S.enabled)return;let R=S,L=Number(new Date),B=L-(p||L);R.diff=B,R.prev=p,R.curr=L,p=L,O[0]=r.coerce(O[0]),typeof O[0]!="string"&&O.unshift("%O");let G=0;O[0]=O[0].replace(/%([a-zA-Z%])/g,(de,De)=>{if(de==="%%")return"%";G++;let te=r.formatters[De];if(typeof te=="function"){let D=O[G];de=te.call(R,D),O.splice(G,1),G--}return de}),r.formatArgs.call(R,O),(R.log||r.log).apply(R,O)}return S.namespace=c,S.useColors=r.useColors(),S.color=r.selectColor(c),S.extend=n,S.destroy=r.destroy,Object.defineProperty(S,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(m!==r.namespaces&&(m=r.namespaces,b=r.enabled(c)),b),set:O=>{g=O}}),typeof r.init=="function"&&r.init(S),S}function n(c,p){let g=r(this.namespace+(typeof p>"u"?":":p)+c);return g.log=this.log,g}function i(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let p,g=(typeof c=="string"?c:"").split(/[\s,]+/),m=g.length;for(p=0;p<m;p++)g[p]&&(c=g[p].replace(/\*/g,".*?"),c[0]==="-"?r.skips.push(new RegExp("^"+c.slice(1)+"$")):r.names.push(new RegExp("^"+c+"$")))}function s(){let c=[...r.names.map(a),...r.skips.map(a).map(p=>"-"+p)].join(",");return r.enable(""),c}function o(c){if(c[c.length-1]==="*")return!0;let p,g;for(p=0,g=r.skips.length;p<g;p++)if(r.skips[p].test(c))return!1;for(p=0,g=r.names.length;p<g;p++)if(r.names[p].test(c))return!0;return!1}function a(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function u(c){return c instanceof Error?c.stack||c.message:c}function h(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Hl.exports=tg});var Gl=y((Pe,ln)=>{Pe.formatArgs=ng;Pe.save=ig;Pe.load=sg;Pe.useColors=rg;Pe.storage=og();Pe.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Pe.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function rg(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function ng(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+ln.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}Pe.log=console.debug||console.log||(()=>{});function ig(t){try{t?Pe.storage.setItem("debug",t):Pe.storage.removeItem("debug")}catch{}}function sg(){let t;try{t=Pe.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function og(){try{return localStorage}catch{}}ln.exports=Qi()(Pe);var{formatters:ag}=ln.exports;ag.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Wl=y((ie,dn)=>{var ug=require("tty"),fn=require("util");ie.init=mg;ie.log=dg;ie.formatArgs=lg;ie.save=hg;ie.load=pg;ie.useColors=cg;ie.destroy=fn.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ie.colors=[6,2,3,4,5,1];try{let t=vi();t&&(t.stderr||t).level>=2&&(ie.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}ie.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function cg(){return"colors"in ie.inspectOpts?!!ie.inspectOpts.colors:ug.isatty(process.stderr.fd)}function lg(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${e} \x1B[0m`;t[0]=s+t[0].split(`
16
+ `)}function Hc(t){let e={interpolation:"rgb",hsvSpin:"short",...t};if(t!==void 0&&typeof t!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof t}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof e.hsvSpin}\``);return e}var tr={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};Kr.exports=Ii;for(let t in tr)Kr.exports[t]=e=>new Ii(tr[t].colors)(e,tr[t].options),Kr.exports[t].multiline=e=>new Ii(tr[t].colors).multiline(e,tr[t].options)});var Wc=y((Cb,zc)=>{var Fi=class{constructor(e){this.value=e,this.next=void 0}},Ri=class{constructor(){this.clear()}enqueue(e){let r=new Fi(e);this._head?(this._tail.next=r,this._tail=r):(this._head=r,this._tail=r),this._size++}dequeue(){let e=this._head;if(e)return this._head=this._head.next,this._size--,e.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let e=this._head;for(;e;)yield e.value,e=e.next}};zc.exports=Ri});var Ai=y((Pb,Jc)=>{"use strict";var om=Wc(),am=t=>{if(!((Number.isInteger(t)||t===1/0)&&t>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let e=new om,r=0,n=()=>{r--,e.size>0&&e.dequeue()()},i=async(a,u,...h)=>{r++;let c=(async()=>a(...h))();u(c);try{await c}catch{}n()},s=(a,u,...h)=>{e.enqueue(i.bind(null,a,u,...h)),(async()=>(await Promise.resolve(),r<t&&e.size>0&&e.dequeue()()))()},o=(a,...u)=>new Promise(h=>{s(a,h,...u)});return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),o};Jc.exports=am});var Kc=y((Ob,Yc)=>{"use strict";var Vc=Ai(),Qr=class extends Error{constructor(e){super(),this.value=e}},um=async(t,e)=>e(await t),cm=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new Qr(e[0]);return!1},lm=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=Vc(r.concurrency),i=[...t].map(o=>[o,n(um,o,e)]),s=Vc(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(cm,o)))}catch(o){if(o instanceof Qr)return o.value;throw o}};Yc.exports=lm});var nl=y((Db,ki)=>{"use strict";var Qc=require("path"),Zr=require("fs"),{promisify:Zc}=require("util"),fm=Kc(),dm=Zc(Zr.stat),hm=Zc(Zr.lstat),el={directory:"isDirectory",file:"isFile"};function tl({type:t}){if(!(t in el))throw new Error(`Invalid type specified: ${t}`)}var rl=(t,e)=>t===void 0||e[el[t]]();ki.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},tl(e);let r=e.allowSymlinks?dm:hm;return fm(t,async n=>{try{let i=await r(Qc.resolve(e.cwd,n));return rl(e.type,i)}catch{return!1}},e)};ki.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},tl(e);let r=e.allowSymlinks?Zr.statSync:Zr.lstatSync;for(let n of t)try{let i=r(Qc.resolve(e.cwd,n));if(rl(e.type,i))return n}catch{}}});var sl=y((Ib,qi)=>{"use strict";var il=require("fs"),{promisify:pm}=require("util"),mm=pm(il.access);qi.exports=async t=>{try{return await mm(t),!0}catch{return!1}};qi.exports.sync=t=>{try{return il.accessSync(t),!0}catch{return!1}}});var al=y((Fb,It)=>{"use strict";var Ve=require("path"),en=nl(),ol=sl(),Mi=Symbol("findUp.stop");It.exports=async(t,e={})=>{let r=Ve.resolve(e.cwd||""),{root:n}=Ve.parse(r),i=[].concat(t),s=async o=>{if(typeof t!="function")return en(i,o);let a=await t(o.cwd);return typeof a=="string"?en([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===Mi)return;if(o)return Ve.resolve(r,o);if(r===n)return;r=Ve.dirname(r)}};It.exports.sync=(t,e={})=>{let r=Ve.resolve(e.cwd||""),{root:n}=Ve.parse(r),i=[].concat(t),s=o=>{if(typeof t!="function")return en.sync(i,o);let a=t(o.cwd);return typeof a=="string"?en.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===Mi)return;if(o)return Ve.resolve(r,o);if(r===n)return;r=Ve.dirname(r)}};It.exports.exists=ol;It.exports.sync.exists=ol.sync;It.exports.stop=Mi});var ll=y((Rb,Ti)=>{"use strict";var ul=require("path"),cl=al(),gm=async t=>{let e=await cl("package.json",{cwd:t});return e&&ul.dirname(e)};Ti.exports=gm;Ti.exports.sync=t=>{let e=cl.sync("package.json",{cwd:t});return e&&ul.dirname(e)}});var Xi=y((Tb,ml)=>{"use strict";ml.exports=function(e,r){return function(){for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];return e.apply(r,i)}}});var ve=y((Nb,vl)=>{"use strict";var wm=Xi(),it=Object.prototype.toString;function zi(t){return it.call(t)==="[object Array]"}function Hi(t){return typeof t>"u"}function xm(t){return t!==null&&!Hi(t)&&t.constructor!==null&&!Hi(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function Sm(t){return it.call(t)==="[object ArrayBuffer]"}function Em(t){return typeof FormData<"u"&&t instanceof FormData}function Cm(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function Pm(t){return typeof t=="string"}function Om(t){return typeof t=="number"}function gl(t){return t!==null&&typeof t=="object"}function tn(t){if(it.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function Dm(t){return it.call(t)==="[object Date]"}function Im(t){return it.call(t)==="[object File]"}function Fm(t){return it.call(t)==="[object Blob]"}function yl(t){return it.call(t)==="[object Function]"}function Rm(t){return gl(t)&&yl(t.pipe)}function Am(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function km(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function qm(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Wi(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),zi(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function Gi(){var t={};function e(i,s){tn(t[s])&&tn(i)?t[s]=Gi(t[s],i):tn(i)?t[s]=Gi({},i):zi(i)?t[s]=i.slice():t[s]=i}for(var r=0,n=arguments.length;r<n;r++)Wi(arguments[r],e);return t}function Mm(t,e,r){return Wi(e,function(i,s){r&&typeof i=="function"?t[s]=wm(i,r):t[s]=i}),t}function Tm(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}vl.exports={isArray:zi,isArrayBuffer:Sm,isBuffer:xm,isFormData:Em,isArrayBufferView:Cm,isString:Pm,isNumber:Om,isObject:gl,isPlainObject:tn,isUndefined:Hi,isDate:Dm,isFile:Im,isBlob:Fm,isFunction:yl,isStream:Rm,isURLSearchParams:Am,isStandardBrowserEnv:qm,forEach:Wi,merge:Gi,extend:Mm,trim:km,stripBOM:Tm}});var rn=y((jb,_l)=>{"use strict";var Ft=ve();function bl(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}_l.exports=function(e,r,n){if(!r)return e;var i;if(n)i=n(r);else if(Ft.isURLSearchParams(r))i=r.toString();else{var s=[];Ft.forEach(r,function(u,h){u===null||typeof u>"u"||(Ft.isArray(u)?h=h+"[]":u=[u],Ft.forEach(u,function(p){Ft.isDate(p)?p=p.toISOString():Ft.isObject(p)&&(p=JSON.stringify(p)),s.push(bl(h)+"="+bl(p))}))}),i=s.join("&")}if(i){var o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}});var xl=y((Lb,wl)=>{"use strict";var Nm=ve();function nn(){this.handlers=[]}nn.prototype.use=function(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};nn.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};nn.prototype.forEach=function(e){Nm.forEach(this.handlers,function(n){n!==null&&e(n)})};wl.exports=nn});var El=y(($b,Sl)=>{"use strict";var jm=ve();Sl.exports=function(e,r){jm.forEach(e,function(i,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(e[r]=i,delete e[s])})}});var sn=y((Bb,Cl)=>{"use strict";Cl.exports=function(e,r,n,i,s){return e.config=r,n&&(e.code=n),e.request=i,e.response=s,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}});var on=y((Ub,Pl)=>{"use strict";var Lm=sn();Pl.exports=function(e,r,n,i,s){var o=new Error(e);return Lm(o,r,n,i,s)}});var Ji=y((Xb,Ol)=>{"use strict";var $m=on();Ol.exports=function(e,r,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):r($m("Request failed with status code "+n.status,n.config,null,n.request,n))}});var Il=y((Hb,Dl)=>{"use strict";var an=ve();Dl.exports=an.isStandardBrowserEnv()?function(){return{write:function(r,n,i,s,o,a){var u=[];u.push(r+"="+encodeURIComponent(n)),an.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),an.isString(s)&&u.push("path="+s),an.isString(o)&&u.push("domain="+o),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var Rl=y((Gb,Fl)=>{"use strict";Fl.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}});var kl=y((zb,Al)=>{"use strict";Al.exports=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}});var Vi=y((Wb,ql)=>{"use strict";var Bm=Rl(),Um=kl();ql.exports=function(e,r){return e&&!Bm(r)?Um(e,r):r}});var Tl=y((Jb,Ml)=>{"use strict";var Yi=ve(),Xm=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];Ml.exports=function(e){var r={},n,i,s;return e&&Yi.forEach(e.split(`
17
+ `),function(a){if(s=a.indexOf(":"),n=Yi.trim(a.substr(0,s)).toLowerCase(),i=Yi.trim(a.substr(s+1)),n){if(r[n]&&Xm.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([i]):r[n]=r[n]?r[n]+", "+i:i}}),r}});var Ll=y((Vb,jl)=>{"use strict";var Nl=ve();jl.exports=Nl.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(s){var o=s;return e&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(o){var a=Nl.isString(o)?i(o):o;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}()});var Bl=y((Yb,$l)=>{"use strict";var un=ve(),Hm=Ji(),Gm=Il(),zm=rn(),Wm=Vi(),Jm=Tl(),Vm=Ll(),Ki=on();$l.exports=function(e){return new Promise(function(n,i){var s=e.data,o=e.headers,a=e.responseType;un.isFormData(s)&&delete o["Content-Type"];var u=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",c=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(h+":"+c)}var p=Wm(e.baseURL,e.url);u.open(e.method.toUpperCase(),zm(p,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function g(){if(u){var b="getAllResponseHeaders"in u?Jm(u.getAllResponseHeaders()):null,S=!a||a==="text"||a==="json"?u.responseText:u.response,O={data:S,status:u.status,statusText:u.statusText,headers:b,config:e,request:u};Hm(n,i,O),u=null}}if("onloadend"in u?u.onloadend=g:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(g)},u.onabort=function(){u&&(i(Ki("Request aborted",e,"ECONNABORTED",u)),u=null)},u.onerror=function(){i(Ki("Network Error",e,null,u)),u=null},u.ontimeout=function(){var S="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),i(Ki(S,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",u)),u=null},un.isStandardBrowserEnv()){var m=(e.withCredentials||Vm(p))&&e.xsrfCookieName?Gm.read(e.xsrfCookieName):void 0;m&&(o[e.xsrfHeaderName]=m)}"setRequestHeader"in u&&un.forEach(o,function(S,O){typeof s>"u"&&O.toLowerCase()==="content-type"?delete o[O]:u.setRequestHeader(O,S)}),un.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&a!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(S){u&&(u.abort(),i(S),u=null)}),s||(s=null),u.send(s)})}});var Xl=y((Kb,Ul)=>{var Rt=1e3,At=Rt*60,kt=At*60,st=kt*24,Ym=st*7,Km=st*365.25;Ul.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Qm(t);if(r==="number"&&isFinite(t))return e.long?eg(t):Zm(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Qm(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Km;case"weeks":case"week":case"w":return r*Ym;case"days":case"day":case"d":return r*st;case"hours":case"hour":case"hrs":case"hr":case"h":return r*kt;case"minutes":case"minute":case"mins":case"min":case"m":return r*At;case"seconds":case"second":case"secs":case"sec":case"s":return r*Rt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Zm(t){var e=Math.abs(t);return e>=st?Math.round(t/st)+"d":e>=kt?Math.round(t/kt)+"h":e>=At?Math.round(t/At)+"m":e>=Rt?Math.round(t/Rt)+"s":t+"ms"}function eg(t){var e=Math.abs(t);return e>=st?cn(t,e,st,"day"):e>=kt?cn(t,e,kt,"hour"):e>=At?cn(t,e,At,"minute"):e>=Rt?cn(t,e,Rt,"second"):t+" ms"}function cn(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var Qi=y((Qb,Hl)=>{function tg(t){r.debug=r,r.default=r,r.coerce=u,r.disable=s,r.enable=i,r.enabled=o,r.humanize=Xl(),r.destroy=h,Object.keys(t).forEach(c=>{r[c]=t[c]}),r.names=[],r.skips=[],r.formatters={};function e(c){let p=0;for(let g=0;g<c.length;g++)p=(p<<5)-p+c.charCodeAt(g),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(c){let p,g=null,m,b;function S(...O){if(!S.enabled)return;let R=S,L=Number(new Date),B=L-(p||L);R.diff=B,R.prev=p,R.curr=L,p=L,O[0]=r.coerce(O[0]),typeof O[0]!="string"&&O.unshift("%O");let G=0;O[0]=O[0].replace(/%([a-zA-Z%])/g,(de,Oe)=>{if(de==="%%")return"%";G++;let re=r.formatters[Oe];if(typeof re=="function"){let D=O[G];de=re.call(R,D),O.splice(G,1),G--}return de}),r.formatArgs.call(R,O),(R.log||r.log).apply(R,O)}return S.namespace=c,S.useColors=r.useColors(),S.color=r.selectColor(c),S.extend=n,S.destroy=r.destroy,Object.defineProperty(S,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(m!==r.namespaces&&(m=r.namespaces,b=r.enabled(c)),b),set:O=>{g=O}}),typeof r.init=="function"&&r.init(S),S}function n(c,p){let g=r(this.namespace+(typeof p>"u"?":":p)+c);return g.log=this.log,g}function i(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let p,g=(typeof c=="string"?c:"").split(/[\s,]+/),m=g.length;for(p=0;p<m;p++)g[p]&&(c=g[p].replace(/\*/g,".*?"),c[0]==="-"?r.skips.push(new RegExp("^"+c.slice(1)+"$")):r.names.push(new RegExp("^"+c+"$")))}function s(){let c=[...r.names.map(a),...r.skips.map(a).map(p=>"-"+p)].join(",");return r.enable(""),c}function o(c){if(c[c.length-1]==="*")return!0;let p,g;for(p=0,g=r.skips.length;p<g;p++)if(r.skips[p].test(c))return!1;for(p=0,g=r.names.length;p<g;p++)if(r.names[p].test(c))return!0;return!1}function a(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function u(c){return c instanceof Error?c.stack||c.message:c}function h(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Hl.exports=tg});var Gl=y((Ce,ln)=>{Ce.formatArgs=ng;Ce.save=ig;Ce.load=sg;Ce.useColors=rg;Ce.storage=og();Ce.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Ce.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function rg(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function ng(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+ln.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}Ce.log=console.debug||console.log||(()=>{});function ig(t){try{t?Ce.storage.setItem("debug",t):Ce.storage.removeItem("debug")}catch{}}function sg(){let t;try{t=Ce.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function og(){try{return localStorage}catch{}}ln.exports=Qi()(Ce);var{formatters:ag}=ln.exports;ag.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Wl=y((se,dn)=>{var ug=require("tty"),fn=require("util");se.init=mg;se.log=dg;se.formatArgs=lg;se.save=hg;se.load=pg;se.useColors=cg;se.destroy=fn.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");se.colors=[6,2,3,4,5,1];try{let t=vi();t&&(t.stderr||t).level>=2&&(se.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}se.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function cg(){return"colors"in se.inspectOpts?!!se.inspectOpts.colors:ug.isatty(process.stderr.fd)}function lg(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${e} \x1B[0m`;t[0]=s+t[0].split(`
18
18
  `).join(`
19
- `+s),t.push(i+"m+"+dn.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=fg()+e+" "+t[0]}function fg(){return ie.inspectOpts.hideDate?"":new Date().toISOString()+" "}function dg(...t){return process.stderr.write(fn.format(...t)+`
20
- `)}function hg(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function pg(){return process.env.DEBUG}function mg(t){t.inspectOpts={};let e=Object.keys(ie.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ie.inspectOpts[e[r]]}dn.exports=Qi()(ie);var{formatters:zl}=dn.exports;zl.o=function(t){return this.inspectOpts.colors=this.useColors,fn.inspect(t,this.inspectOpts).split(`
21
- `).map(e=>e.trim()).join(" ")};zl.O=function(t){return this.inspectOpts.colors=this.useColors,fn.inspect(t,this.inspectOpts)}});var Jl=y((Zb,Zi)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Zi.exports=Gl():Zi.exports=Wl()});var Yl=y((e2,Vl)=>{var rr;Vl.exports=function(){if(!rr){try{rr=Jl()("follow-redirects")}catch{}typeof rr!="function"&&(rr=function(){})}rr.apply(null,arguments)}});var ss=y((t2,is)=>{var ot=require("url"),es=ot.URL,gg=require("http"),yg=require("https"),Zl=require("stream").Writable,ef=require("assert"),tf=Yl(),rs=["abort","aborted","connect","error","socket","timeout"],ns=Object.create(null);rs.forEach(function(t){ns[t]=function(e,r,n){this._redirectable.emit(t,e,r,n)}});var vg=ir("ERR_INVALID_URL","Invalid URL",TypeError),Kl=ir("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),bg=ir("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),_g=ir("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),wg=ir("ERR_STREAM_WRITE_AFTER_END","write after end");function Oe(t,e){Zl.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}Oe.prototype=Object.create(Zl.prototype);Oe.prototype.abort=function(){nf(this._currentRequest),this.emit("abort")};Oe.prototype.write=function(t,e,r){if(this._ending)throw new wg;if(!at(t)&&!Eg(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(nr(e)&&(r=e,e=null),t.length===0){r&&r();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,r)):(this.emit("error",new _g),this.abort())};Oe.prototype.end=function(t,e,r){if(nr(t)?(r=t,t=e=null):nr(e)&&(r=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(t,e,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};Oe.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};Oe.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};Oe.prototype.setTimeout=function(t,e){var r=this;function n(o){o.setTimeout(t),o.removeListener("timeout",o.destroy),o.addListener("timeout",o.destroy)}function i(o){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},t),n(o)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),e&&r.removeListener("timeout",e),r.socket||r._currentRequest.removeListener("socket",i)}return e&&this.on("timeout",e),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){Oe.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(Oe.prototype,t,{get:function(){return this._currentRequest[t]}})});Oe.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};Oe.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e){this.emit("error",new TypeError("Unsupported protocol "+t));return}if(this._options.agents){var r=t.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of rs)n.on(i,ns[i]);if(this._currentUrl=/^\//.test(this._options.path)?ot.format(this._options):this._options.path,this._isRedirect){var s=0,o=this,a=this._requestBodyBuffers;(function u(h){if(n===o._currentRequest)if(h)o.emit("error",h);else if(s<a.length){var c=a[s++];n.finished||n.write(c.data,c.encoding,u)}else o._ended&&n.end()})()}};Oe.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var r=t.headers.location;if(!r||this._options.followRedirects===!1||e<300||e>=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(nf(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new bg);return}var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var s=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],ts(/^content-/i,this._options.headers));var o=ts(/^host$/i,this._options.headers),a=ot.parse(this._currentUrl),u=o||a.host,h=/^\w+:/.test(r)?this._currentUrl:ot.format(Object.assign(a,{host:u})),c;try{c=ot.resolve(h,r)}catch(b){this.emit("error",new Kl({cause:b}));return}tf("redirecting to",c),this._isRedirect=!0;var p=ot.parse(c);if(Object.assign(this._options,p),(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==u&&!Sg(p.host,u))&&ts(/^(?:authorization|cookie)$/i,this._options.headers),nr(i)){var g={headers:t.headers,statusCode:e},m={url:h,method:s,headers:n};try{i(this._options,g,m)}catch(b){this.emit("error",b);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(b){this.emit("error",new Kl({cause:b}))}};function rf(t){var e={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(t).forEach(function(n){var i=n+":",s=r[i]=t[n],o=e[n]=Object.create(s);function a(h,c,p){if(at(h)){var g;try{g=Ql(new es(h))}catch{g=ot.parse(h)}if(!at(g.protocol))throw new vg({input:h});h=g}else es&&h instanceof es?h=Ql(h):(p=c,c=h,h={protocol:i});return nr(c)&&(p=c,c=null),c=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},h,c),c.nativeProtocols=r,!at(c.host)&&!at(c.hostname)&&(c.hostname="::1"),ef.equal(c.protocol,i,"protocol mismatch"),tf("options",c),new Oe(c,p)}function u(h,c,p){var g=o.request(h,c,p);return g.end(),g}Object.defineProperties(o,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:u,configurable:!0,enumerable:!0,writable:!0}})}),e}function xg(){}function Ql(t){var e={protocol:t.protocol,hostname:t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,hash:t.hash,search:t.search,pathname:t.pathname,path:t.pathname+t.search,href:t.href};return t.port!==""&&(e.port=Number(t.port)),e}function ts(t,e){var r;for(var n in e)t.test(n)&&(r=e[n],delete e[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function ir(t,e,r){function n(i){Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+t+"]",n}function nf(t){for(var e of rs)t.removeListener(e,ns[e]);t.on("error",xg),t.abort()}function Sg(t,e){ef(at(t)&&at(e));var r=t.length-e.length-1;return r>0&&t[r]==="."&&t.endsWith(e)}function at(t){return typeof t=="string"||t instanceof String}function nr(t){return typeof t=="function"}function Eg(t){return typeof t=="object"&&"length"in t}is.exports=rf({http:gg,https:yg});is.exports.wrap=rf});var os=y((r2,Cg)=>{Cg.exports={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]}});var lf=y((n2,cf)=>{"use strict";var sr=ge(),sf=Ji(),Pg=Vi(),Og=rn(),Dg=require("http"),Ig=require("https"),Fg=ss().http,Rg=ss().https,of=require("url"),Ag=require("zlib"),kg=os(),hn=on(),as=sn(),af=/https:?/;function uf(t,e,r){if(t.hostname=e.host,t.host=e.host,t.port=e.port,t.path=r,e.auth){var n=Buffer.from(e.auth.username+":"+e.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+n}t.beforeRedirect=function(s){s.headers.host=s.host,uf(s,e,s.href)}}cf.exports=function(e){return new Promise(function(n,i){var s=function(x){n(x)},o=function(x){i(x)},a=e.data,u=e.headers;if("User-Agent"in u||"user-agent"in u?!u["User-Agent"]&&!u["user-agent"]&&(delete u["User-Agent"],delete u["user-agent"]):u["User-Agent"]="axios/"+kg.version,a&&!sr.isStream(a)){if(!Buffer.isBuffer(a))if(sr.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(sr.isString(a))a=Buffer.from(a,"utf-8");else return o(hn("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));u["Content-Length"]=a.length}var h=void 0;if(e.auth){var c=e.auth.username||"",p=e.auth.password||"";h=c+":"+p}var g=Pg(e.baseURL,e.url),m=of.parse(g),b=m.protocol||"http:";if(!h&&m.auth){var S=m.auth.split(":"),O=S[0]||"",R=S[1]||"";h=O+":"+R}h&&delete u.Authorization;var L=af.test(b),B=L?e.httpsAgent:e.httpAgent,G={path:Og(m.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:u,agent:B,agents:{http:e.httpAgent,https:e.httpsAgent},auth:h};e.socketPath?G.socketPath=e.socketPath:(G.hostname=m.hostname,G.port=m.port);var Y=e.proxy;if(!Y&&Y!==!1){var de=b.slice(0,-1)+"_proxy",De=process.env[de]||process.env[de.toUpperCase()];if(De){var te=of.parse(De),D=process.env.no_proxy||process.env.NO_PROXY,q=!0;if(D){var k=D.split(",").map(function(x){return x.trim()});q=!k.some(function(x){return x?x==="*"||x[0]==="."&&m.hostname.substr(m.hostname.length-x.length)===x?!0:m.hostname===x:!1})}if(q&&(Y={host:te.hostname,port:te.port,protocol:te.protocol},te.auth)){var U=te.auth.split(":");Y.auth={username:U[0],password:U[1]}}}}Y&&(G.headers.host=m.hostname+(m.port?":"+m.port:""),uf(G,Y,b+"//"+m.hostname+(m.port?":"+m.port:"")+G.path));var I,j=L&&(Y?af.test(Y.protocol):!0);e.transport?I=e.transport:e.maxRedirects===0?I=j?Ig:Dg:(e.maxRedirects&&(G.maxRedirects=e.maxRedirects),I=j?Rg:Fg),e.maxBodyLength>-1&&(G.maxBodyLength=e.maxBodyLength);var P=I.request(G,function(x){if(!P.aborted){var F=x,Ce=x.req||P;if(x.statusCode!==204&&Ce.method!=="HEAD"&&e.decompress!==!1)switch(x.headers["content-encoding"]){case"gzip":case"compress":case"deflate":F=F.pipe(Ag.createUnzip()),delete x.headers["content-encoding"];break}var ve={status:x.statusCode,statusText:x.statusMessage,headers:x.headers,config:e,request:Ce};if(e.responseType==="stream")ve.data=F,sf(s,o,ve);else{var re=[],ae=0;F.on("data",function(be){re.push(be),ae+=be.length,e.maxContentLength>-1&&ae>e.maxContentLength&&(F.destroy(),o(hn("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,Ce)))}),F.on("error",function(be){P.aborted||o(as(be,e,null,Ce))}),F.on("end",function(){var be=Buffer.concat(re);e.responseType!=="arraybuffer"&&(be=be.toString(e.responseEncoding),(!e.responseEncoding||e.responseEncoding==="utf8")&&(be=sr.stripBOM(be))),ve.data=be,sf(s,o,ve)})}}});if(P.on("error",function(x){P.aborted&&x.code!=="ERR_FR_TOO_MANY_REDIRECTS"||o(as(x,e,null,P))}),e.timeout){var T=parseInt(e.timeout,10);if(isNaN(T)){o(hn("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",P));return}P.setTimeout(T,function(){P.abort(),o(hn("timeout of "+T+"ms exceeded",e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",P))})}e.cancelToken&&e.cancelToken.promise.then(function(x){P.aborted||(P.abort(),o(x))}),sr.isStream(a)?a.on("error",function(x){o(as(x,e,null,P))}).pipe(P):P.end(a)})}});var mn=y((i2,hf)=>{"use strict";var se=ge(),ff=El(),Mg=sn(),qg={"Content-Type":"application/x-www-form-urlencoded"};function df(t,e){!se.isUndefined(t)&&se.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function Tg(){var t;return typeof XMLHttpRequest<"u"?t=Bl():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(t=lf()),t}function Ng(t,e,r){if(se.isString(t))try{return(e||JSON.parse)(t),se.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var pn={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:Tg(),transformRequest:[function(e,r){return ff(r,"Accept"),ff(r,"Content-Type"),se.isFormData(e)||se.isArrayBuffer(e)||se.isBuffer(e)||se.isStream(e)||se.isFile(e)||se.isBlob(e)?e:se.isArrayBufferView(e)?e.buffer:se.isURLSearchParams(e)?(df(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):se.isObject(e)||r&&r["Content-Type"]==="application/json"?(df(r,"application/json"),Ng(e)):e}],transformResponse:[function(e){var r=this.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,s=!n&&this.responseType==="json";if(s||i&&se.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?Mg(o,this,"E_JSON_PARSE"):o}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};pn.headers={common:{Accept:"application/json, text/plain, */*"}};se.forEach(["delete","get","head"],function(e){pn.headers[e]={}});se.forEach(["post","put","patch"],function(e){pn.headers[e]=se.merge(qg)});hf.exports=pn});var mf=y((s2,pf)=>{"use strict";var jg=ge(),Lg=mn();pf.exports=function(e,r,n){var i=this||Lg;return jg.forEach(n,function(o){e=o.call(i,e,r)}),e}});var us=y((o2,gf)=>{"use strict";gf.exports=function(e){return!!(e&&e.__CANCEL__)}});var bf=y((a2,vf)=>{"use strict";var yf=ge(),cs=mf(),$g=us(),Bg=mn();function ls(t){t.cancelToken&&t.cancelToken.throwIfRequested()}vf.exports=function(e){ls(e),e.headers=e.headers||{},e.data=cs.call(e,e.data,e.headers,e.transformRequest),e.headers=yf.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),yf.forEach(["delete","get","head","post","put","patch","common"],function(i){delete e.headers[i]});var r=e.adapter||Bg.adapter;return r(e).then(function(i){return ls(e),i.data=cs.call(e,i.data,i.headers,e.transformResponse),i},function(i){return $g(i)||(ls(e),i&&i.response&&(i.response.data=cs.call(e,i.response.data,i.response.headers,e.transformResponse))),Promise.reject(i)})}});var fs=y((u2,_f)=>{"use strict";var fe=ge();_f.exports=function(e,r){r=r||{};var n={},i=["url","method","data"],s=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function u(g,m){return fe.isPlainObject(g)&&fe.isPlainObject(m)?fe.merge(g,m):fe.isPlainObject(m)?fe.merge({},m):fe.isArray(m)?m.slice():m}function h(g){fe.isUndefined(r[g])?fe.isUndefined(e[g])||(n[g]=u(void 0,e[g])):n[g]=u(e[g],r[g])}fe.forEach(i,function(m){fe.isUndefined(r[m])||(n[m]=u(void 0,r[m]))}),fe.forEach(s,h),fe.forEach(o,function(m){fe.isUndefined(r[m])?fe.isUndefined(e[m])||(n[m]=u(void 0,e[m])):n[m]=u(void 0,r[m])}),fe.forEach(a,function(m){m in r?n[m]=u(e[m],r[m]):m in e&&(n[m]=u(void 0,e[m]))});var c=i.concat(s).concat(o).concat(a),p=Object.keys(e).concat(Object.keys(r)).filter(function(m){return c.indexOf(m)===-1});return fe.forEach(p,h),n}});var Cf=y((c2,Ef)=>{"use strict";var xf=os(),ds={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){ds[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var wf={},Ug=xf.version.split(".");function Sf(t,e){for(var r=e?e.split("."):Ug,n=t.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}ds.transitional=function(e,r,n){var i=r&&Sf(r);function s(o,a){return"[Axios v"+xf.version+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,u){if(e===!1)throw new Error(s(a," has been removed in "+r));return i&&!wf[a]&&(wf[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,a,u):!0}};function Xg(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var n=Object.keys(t),i=n.length;i-- >0;){var s=n[i],o=e[s];if(o){var a=t[s],u=a===void 0||o(a,s,t);if(u!==!0)throw new TypeError("option "+s+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+s)}}Ef.exports={isOlderVersion:Sf,assertOptions:Xg,validators:ds}});var Rf=y((l2,Ff)=>{"use strict";var Df=ge(),Hg=rn(),Pf=xl(),Of=bf(),gn=fs(),If=Cf(),Mt=If.validators;function or(t){this.defaults=t,this.interceptors={request:new Pf,response:new Pf}}or.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=gn(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;r!==void 0&&If.assertOptions(r,{silentJSONParsing:Mt.transitional(Mt.boolean,"1.0.0"),forcedJSONParsing:Mt.transitional(Mt.boolean,"1.0.0"),clarifyTimeoutError:Mt.transitional(Mt.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(e)===!1||(i=i&&g.synchronous,n.unshift(g.fulfilled,g.rejected))});var s=[];this.interceptors.response.forEach(function(g){s.push(g.fulfilled,g.rejected)});var o;if(!i){var a=[Of,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(s),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var u=e;n.length;){var h=n.shift(),c=n.shift();try{u=h(u)}catch(p){c(p);break}}try{o=Of(u)}catch(p){return Promise.reject(p)}for(;s.length;)o=o.then(s.shift(),s.shift());return o};or.prototype.getUri=function(e){return e=gn(this.defaults,e),Hg(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};Df.forEach(["delete","get","head","options"],function(e){or.prototype[e]=function(r,n){return this.request(gn(n||{},{method:e,url:r,data:(n||{}).data}))}});Df.forEach(["post","put","patch"],function(e){or.prototype[e]=function(r,n,i){return this.request(gn(i||{},{method:e,url:r,data:n}))}});Ff.exports=or});var ps=y((f2,Af)=>{"use strict";function hs(t){this.message=t}hs.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};hs.prototype.__CANCEL__=!0;Af.exports=hs});var Mf=y((d2,kf)=>{"use strict";var Gg=ps();function yn(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(i){e=i});var r=this;t(function(i){r.reason||(r.reason=new Gg(i),e(r.reason))})}yn.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};yn.source=function(){var e,r=new yn(function(i){e=i});return{token:r,cancel:e}};kf.exports=yn});var Tf=y((h2,qf)=>{"use strict";qf.exports=function(e){return function(n){return e.apply(null,n)}}});var jf=y((p2,Nf)=>{"use strict";Nf.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}});var Bf=y((m2,ms)=>{"use strict";var Lf=ge(),zg=Xi(),vn=Rf(),Wg=fs(),Jg=mn();function $f(t){var e=new vn(t),r=zg(vn.prototype.request,e);return Lf.extend(r,vn.prototype,e),Lf.extend(r,e),r}var Te=$f(Jg);Te.Axios=vn;Te.create=function(e){return $f(Wg(Te.defaults,e))};Te.Cancel=ps();Te.CancelToken=Mf();Te.isCancel=us();Te.all=function(e){return Promise.all(e)};Te.spread=Tf();Te.isAxiosError=jf();ms.exports=Te;ms.exports.default=Te});var gs=y((g2,Uf)=>{Uf.exports=Bf()});var K=y(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.isUndefined=Se.fixName=Se.validateName=Se.validateSingleChar=Se.fixChar=Se.validateChar=void 0;function fy(t){for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(!(r===9||r===10||r===13||r>=32&&r<=55295||r>=57344&&r<=65533)){if(e+1===t.length)return!1;var n=t.charCodeAt(e+1);if(r>=55296&&r<=56319&&n>=56320&&n<=57343){e++;continue}return!1}}return!0}Se.validateChar=fy;function dy(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r);if(n===9||n===10||n===13||n>=32&&n<=55295||n>=57344&&n<=65533){e+=t[r];continue}if(r+1===t.length)return e+="\uFFFD",e;var i=t.charCodeAt(r+1);if(n>=55296&&n<=56319&&i>=56320&&i<=57343){e+=t[r]+t[r+1],r++;continue}e+="\uFFFD"}return e}Se.fixChar=dy;function hy(t){if(t.length===0)return!1;var e=t.charCodeAt(0);if(t.length===1)return e===9||e===10||e===13||e>=32&&e<=55295||e>=57344&&e<=65533;if(t.length!==2)return!1;var r=t.charCodeAt(1);return e>=55296&&e<=56319&&r>=56320&&r<=57343}Se.validateSingleChar=hy;function py(t){if(t.length===0)return!1;var e=t.charCodeAt(0),r=e===58||e===95||e>=65&&e<=90||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533;if(t.length===1)return r;var n=t.charCodeAt(1),i=e>=55296&&e<=56191&&n>=56320&&n<=57343;if(!r&&!i)return!1;for(var s=i?2:1,o=s;o<t.length;o++){var a=t.charCodeAt(o);if(!(a===58||a===95||a===45||a===46||a===183||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=767||a>=768&&a<=879||a>=880&&a<=893||a>=895&&a<=8191||a>=8204&&a<=8205||a>=8255&&a<=8256||a>=8304&&a<=8591||a>=11264&&a<=12271||a>=12289&&a<=55295||a>=63744&&a<=64975||a>=65008&&a<=65533)){if(o+1===t.length)return!1;var u=t.charCodeAt(o+1);if(a>=55296&&a<=56191&&u>=56320&&u<=57343){o++;continue}return!1}}return!0}Se.validateName=py;function my(t){var e="";if(t.length===0)return e;var r=t.charCodeAt(0),n=r===58||r===95||r>=65&&r<=90||r>=97&&r<=122||r>=192&&r<=214||r>=216&&r<=246||r>=248&&r<=767||r>=880&&r<=893||r>=895&&r<=8191||r>=8204&&r<=8205||r>=8304&&r<=8591||r>=11264&&r<=12271||r>=12289&&r<=55295||r>=63744&&r<=64975||r>=65008&&r<=65533;if(t.length===1)return n?e=t[0]:e="\uFFFD",e;var i=t.charCodeAt(1),s=r>=55296&&r<=56191&&i>=56320&&i<=57343;s?e=t[0]+t[1]:n?e=t[0]:e="\uFFFD";for(var o=s?2:1,a=o;a<t.length;a++){var u=t.charCodeAt(a);if(u===58||u===95||u===45||u===46||u===183||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||u>=192&&u<=214||u>=216&&u<=246||u>=248&&u<=767||u>=768&&u<=879||u>=880&&u<=893||u>=895&&u<=8191||u>=8204&&u<=8205||u>=8255&&u<=8256||u>=8304&&u<=8591||u>=11264&&u<=12271||u>=12289&&u<=55295||u>=63744&&u<=64975||u>=65008&&u<=65533){e+=t[a];continue}if(a+1===t.length)return e+="\uFFFD",e;var h=t.charCodeAt(a+1);if(u>=55296&&u<=56191&&h>=56320&&h<=57343){e+=t[a]+t[a+1],a++;continue}e+="\uFFFD"}return e}Se.fixName=my;function gy(t){return Object.prototype.toString.call(t)==="[object Undefined]"}Se.isUndefined=gy});var qt=y(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.StringOptions=void 0;var Sn=K(),yy=function(){function t(e){this.doubleQuotes=!1,this.indent=" ",this.newline=`
22
- `,this.pretty=!0,(0,Sn.isUndefined)(e.doubleQuotes)||(this.doubleQuotes=e.doubleQuotes),(0,Sn.isUndefined)(e.indent)||(this.indent=e.indent),(0,Sn.isUndefined)(e.newline)||(this.newline=e.newline),(0,Sn.isUndefined)(e.pretty)||(this.pretty=e.pretty)}return t}();En.StringOptions=yy});var Cn=y(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.escapeDoubleQuotes=Re.escapeSingleQuotes=Re.escapeRightAngleBracketsInCdataTerminator=Re.escapeLeftAngleBrackets=Re.escapeAmpersands=void 0;function vy(t){return t.replace(/&/g,"&amp;")}Re.escapeAmpersands=vy;function by(t){return t.replace(/</g,"&lt;")}Re.escapeLeftAngleBrackets=by;function _y(t){return t.replace(/]]>/g,"]]&gt;")}Re.escapeRightAngleBracketsInCdataTerminator=_y;function wy(t){return t.replace(/'/g,"&apos;")}Re.escapeSingleQuotes=wy;function xy(t){return t.replace(/"/g,"&quot;")}Re.escapeDoubleQuotes=xy});var Is=y(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});var Sy=oe(),od=Cn(),Os=K(),Ey=function(){function t(e,r,n){this._validation=r,(0,Os.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Os.fixChar)(e);else if(this._validation&&!(0,Os.validateChar)(e))throw new Error((0,Sy.getContext)(this.up())+": attribute text"+(' "'+e+'" should not contain characters not')+" allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this._charData;return e=(0,od.escapeAmpersands)(e),e=(0,od.escapeLeftAngleBrackets)(e),e},t.prototype.up=function(){return this._parent},t}();Ds.default=Ey});var Pn=y(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});var ad=oe(),ud=K(),Cy=function(){function t(e,r,n){this._hex=!1,this._validation=r,this._parent=e,this.char=n.char,(0,ud.isUndefined)(n.hex)||(this.hex=n.hex)}return Object.defineProperty(t.prototype,"char",{get:function(){return this._char},set:function(e){if(this._validation&&!(0,ud.validateSingleChar)(e))throw new Error((0,ad.getContext)(this.up())+": character reference"+(' "'+e+'" should reference a single character,')+" and this character should be allowed in XML");this._char=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hex",{get:function(){return this._hex},set:function(e){this._hex=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e;if(this._char.length===1)e=this._char.charCodeAt(0);else{var r=this._char.charCodeAt(0);if(r>=55296&&r<=56319&&this._char.length>1){var n=this._char.charCodeAt(1);if(n>=56320&&n<=57343)e=(r-55296)*1024+n-56320+65536;else throw new Error((0,ad.getContext)(this.up())+": character"+(' reference "'+this.char+'" should')+" reference a valid Unicode character")}else e=r}return this._hex?"&#x"+e.toString(16)+";":"&#"+e+";"},t.prototype.up=function(){return this._parent},t}();Fs.default=Cy});var On=y(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});var Py=oe(),Oy=K(),Dy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,Oy.validateName)(e))throw new Error((0,Py.getContext)(this.up())+": entity reference name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"&"+this._name+";"},t.prototype.up=function(){return this._parent},t}();Rs.default=Dy});var Dn=y(ur=>{"use strict";var Ms=ur&&ur.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ur,"__esModule",{value:!0});var As=oe(),cd=Cn(),Iy=qt(),ks=K(),Fy=Ms(Is()),Ry=Ms(Pn()),Ay=Ms(On()),ky=function(){function t(e,r,n){this._validation=r,(0,ks.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,this._children=[],this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._replaceInvalidCharsInName){if(e=(0,ks.fixName)(e),e.length===0)throw new Error((0,As.getContext)(this.up())+": attribute name should not be empty")}else if(this._validation&&!(0,ks.validateName)(e))throw e.length===0?new Error((0,As.getContext)(this.up())+": attribute name should not be empty"):new Error((0,As.getContext)(this.up())+": attribute name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.charRef=function(e){var r=new Ry.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new Ay.default(this,this._validation,e);return this._children.push(r),r},t.prototype.text=function(e){var r=new Fy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});for(var r=new Iy.StringOptions(e),n=r.doubleQuotes?'"':"'",i=this._name+"="+n,s=0,o=this._children;s<o.length;s++){var a=o[s];r.doubleQuotes?i+=(0,cd.escapeDoubleQuotes)(a.toString()):i+=(0,cd.escapeSingleQuotes)(a.toString())}return i+=n,i},t.prototype.up=function(){return this._parent},t}();ur.default=ky});var Ts=y(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});var My=oe(),qy=K(),Ty=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,qy.validateChar)(e))throw new Error((0,My.getContext)(this.up())+": attribute-list"+(' declaration "'+e+'" should not contain')+" characters not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ATTLIST "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();qs.default=Ty});var js=y(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});var Ny=oe(),jy=K(),Ly=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,jy.validateChar)(e))throw new Error((0,Ny.getContext)(this.up())+": element declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ELEMENT "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Ns.default=Ly});var $s=y(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});var $y=oe(),By=K(),Uy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,By.validateChar)(e))throw new Error((0,$y.getContext)(this.up())+": entity declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ENTITY "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Ls.default=Uy});var Us=y(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});var Xy=oe(),Hy=K(),Gy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,Hy.validateChar)(e))throw new Error((0,Xy.getContext)(this.up())+": notation declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!NOTATION "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Bs.default=Gy});var Hs=y(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});var zy=oe(),Wy=K(),Jy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,Wy.validateName)(e))throw new Error((0,zy.getContext)(this.up())+": parameter entity"+(' reference name "'+e+'" should not contain')+" characters not allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"%"+this._name+";"},t.prototype.up=function(){return this._parent},t}();Xs.default=Jy});var cr=y(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});var In=oe(),Fn=K(),Vy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.content=n.content,this.target=n.target}return Object.defineProperty(t.prototype,"content",{get:function(){return this._content},set:function(e){if(!(0,Fn.isUndefined)(e)){if(this._validation&&!(0,Fn.validateChar)(e))throw new Error((0,In.getContext)(this.up())+": processing"+(' instruction content "'+e+'" should')+" not contain characters not allowed in XML");if(this._validation&&e.indexOf("?>")!==-1)throw new Error((0,In.getContext)(this.up())+": processing"+(' instruction content "'+e+'" should')+" not contain the string '?>'")}this._content=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){return this._target},set:function(e){if(this._validation&&!(0,Fn.validateName)(e))throw new Error((0,In.getContext)(this.up())+": processing"+(' instruction target "'+e+'" should')+" not contain characters not allowed in XML names");if(this._validation&&e==="xml")throw new Error((0,In.getContext)(this.up())+": processing"+(' instruction target "'+e+'" should')+" not be the string 'xml'");this._target=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return(0,Fn.isUndefined)(this._content)?"<?"+this._target+"?>":"<?"+this._target+" "+this._content+"?>"},t.prototype.up=function(){return this._parent},t}();Gs.default=Vy});var Rn=y(ct=>{"use strict";var lt=ct&&ct.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ct,"__esModule",{value:!0});ct.validatePubId=void 0;var Ke=oe(),Yy=qt(),Le=K(),Ky=lt(lr()),Qy=lt(Ts()),Zy=lt(js()),e1=lt($s()),t1=lt(Us()),r1=lt(Hs()),n1=lt(cr()),i1=function(){function t(e,r,n){this._pubId=void 0,this._sysId=void 0,this._validation=r,this._children=[],this._parent=e,this.name=n.name,(0,Le.isUndefined)(n.sysId)||(this.sysId=n.sysId),(0,Le.isUndefined)(n.pubId)||(this.pubId=n.pubId)}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,Le.validateName)(e))throw new Error((0,Ke.getContext)(this.up())+': DTD name "'+e+'" should not contain characters not allowed in XML names');this._name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pubId",{get:function(){return this._pubId},set:function(e){if(!(0,Le.isUndefined)(e)){if(this._validation&&!ld(e))throw new Error((0,Ke.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not contain')+" characters not allowed in public identifiers");if(this._validation&&(0,Le.isUndefined)(this._sysId))throw new Error((0,Ke.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not be defined')+" if system identifier is undefined")}this._pubId=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sysId",{get:function(){return this._sysId},set:function(e){if(!(0,Le.isUndefined)(e)){if(this._validation&&!(0,Le.validateChar)(e))throw new Error((0,Ke.getContext)(this.up())+": DTD system"+(' identifier "'+e+'" should not contain')+" characters not allowed in XML");if(this._validation&&e.indexOf("'")!==-1&&e.indexOf('"')!==-1)throw new Error((0,Ke.getContext)(this.up())+": DTD system"+(' identifier "'+e+'" should not contain')+" both single quotes and double quotes")}this._sysId=e},enumerable:!1,configurable:!0}),t.prototype.attlist=function(e){var r=new Qy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new Ky.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new Zy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entity=function(e){var r=new e1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.notation=function(e){var r=new t1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.paramEntityRef=function(e){var r=new r1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new n1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=new Yy.StringOptions(e),n="<!DOCTYPE "+this._name;if((0,Le.isUndefined)(this._pubId))(0,Le.isUndefined)(this._sysId)||(n+=" ",n=this.appendId("SYSTEM",this._sysId,n,r));else{if((0,Le.isUndefined)(this._sysId))throw new Error((0,Ke.getContext)(this.up())+": DTD system identifier is not undefined");n+=" ",n=this.appendId("PUBLIC",this._pubId,n,r),n=this.appendId("",this._sysId,n,r)}if(this._children.length!==0){n+=" [";for(var i=0,s=this._children;i<s.length;i++){var o=s[i];r.pretty&&(n+=r.newline+r.indent),n+=o.toString()}r.pretty&&(n+=r.newline),n+="]>"}else n+=">";return n},t.prototype.up=function(){return this._parent},t.prototype.appendId=function(e,r,n,i){if(n+=e+" ",i.doubleQuotes){if(this._validation&&r.indexOf('"')!==-1)throw new Error((0,Ke.getContext)(this.up())+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+='"'+r+'"'}else{if(this._validation&&r.indexOf("'")!==-1)throw new Error((0,Ke.getContext)(this)+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+="'"+r+"'"}return n},t}();ct.default=i1;function ld(t){for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(!(r===10||r===13||r===32||r===33||r>=35&&r<=37||r>=39&&r<=47||r>=48&&r<=57||r===58||r===59||r===61||r===63||r>=64&&r<=90||r===95||r>=97&&r<=122))return e+1===t.length,!1}return!0}ct.validatePubId=ld});var Js=y(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});var fd=oe(),zs=K(),s1=function(){function t(e,r,n){this._validation=r,(0,zs.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,zs.fixChar)(e);else if(this._validation&&!(0,zs.validateChar)(e))throw new Error((0,fd.getContext)(this.up())+": CDATA section"+(' "'+e+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)e=e.replace("]]>","\uFFFD\uFFFD\uFFFD");else if(this._validation&&e.indexOf("]]>")!==-1)throw new Error((0,fd.getContext)(this.up())+": CDATA section"+(' "'+e+'" should not contain the string')+" ']]>'");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<![CDATA["+this._charData+"]]>"},t.prototype.up=function(){return this._parent},t}();Ws.default=s1});var Qs=y(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});var o1=oe(),Vs=Cn(),Ys=K(),a1=function(){function t(e,r,n){this._validation=r,(0,Ys.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Ys.fixChar)(e);else if(this._validation&&!(0,Ys.validateChar)(e))throw new Error((0,o1.getContext)(this.up())+": character data"+('"'+e+'" should not contain characters not')+" allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this._charData;return e=(0,Vs.escapeAmpersands)(e),e=(0,Vs.escapeLeftAngleBrackets)(e),e=(0,Vs.escapeRightAngleBracketsInCdataTerminator)(e),e},t.prototype.up=function(){return this._parent},t}();Ks.default=a1});var qn=y(hr=>{"use strict";var ft=hr&&hr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hr,"__esModule",{value:!0});var An=oe(),u1=qt(),fr=K(),dd=ft(Dn()),c1=ft(Js()),dr=ft(Qs()),kn=ft(Pn()),l1=ft(lr()),Mn=ft(On()),f1=ft(cr()),d1=function(){function t(e,r,n){this._validation=r,(0,fr.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,(0,fr.isUndefined)(n.useSelfClosingTagIfEmpty)?this._useSelfClosingTagIfEmpty=!0:this._useSelfClosingTagIfEmpty=n.useSelfClosingTagIfEmpty,this._children=[],this._attributeNames=[],this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._replaceInvalidCharsInName){if(e=(0,fr.fixName)(e),e.length===0)throw new Error((0,An.getContext)(this.up())+": element name should not be empty")}else if(this._validation&&!(0,fr.validateName)(e))throw e.length===0?new Error((0,An.getContext)(this.up())+": element name should not be empty"):new Error((0,An.getContext)(this.up())+": element name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.attribute=function(e){if(this._validation&&this._attributeNames.indexOf(e.name)!==-1)throw new Error((0,An.getContext)(this.up())+': element "'+this.name+'" already contains an attribute with the'+(' name "'+e.name+'"'));var r=new dd.default(this,this._validation,e);return this._children.push(r),this._attributeNames.push(e.name),r},t.prototype.cdata=function(e){var r=new c1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charData=function(e){var r=new dr.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charRef=function(e){var r=new kn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new l1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new t(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new Mn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new f1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){return e===void 0&&(e={}),this.toStringWithIndent(e,"")},t.prototype.up=function(){return this._parent},t.prototype.toStringWithIndent=function(e,r){for(var n=new u1.StringOptions(e),i=r+n.indent,s="<"+this._name,o=[],a=0,u=this._children;a<u.length;a++){var h=u[a];h instanceof dd.default?s+=" "+h.toString(e):o.push(h)}if(o.length>0){for(var c="",p=0;p<o.length;p++){var g=o[p],m="";g instanceof t?m+=g.toStringWithIndent(n,i):m+=g.toString();var b=p>0?o[p-1]:void 0;g instanceof dr.default&&g.toString()===""||(n.pretty&&(this.allSameLineNodes(o)||p>0&&this.onSameLine(g,b)||(m=n.newline+i+m)),c+=m)}n.pretty&&(this.allSameLineNodes(o)||(c+=n.newline+r)),c.length===0&&this._useSelfClosingTagIfEmpty?s+="/>":s+=">"+c+"</"+this._name+">"}else this._useSelfClosingTagIfEmpty?s+="/>":s+="></"+this._name+">";return s},t.prototype.allSameLineNodes=function(e){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!(i instanceof kn.default||i instanceof Mn.default||i instanceof dr.default))return!1}return!0},t.prototype.onSameLine=function(e,r){return(e instanceof kn.default||e instanceof Mn.default||e instanceof dr.default)&&!(0,fr.isUndefined)(r)&&(r instanceof kn.default||r instanceof Mn.default||r instanceof dr.default)},t}();hr.default=d1});var oe=y(Tt=>{"use strict";var Nn=Tt&&Tt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tt,"__esModule",{value:!0});Tt.getContext=void 0;var h1=Nn(Dn()),p1=Nn(jn()),m1=Nn(Rn()),g1=Nn(qn());function Tn(t){if(t instanceof h1.default)return Tn(t.up())+(' > attribute "'+t.name+'"');if(t instanceof p1.default)return"in XML document";if(t instanceof m1.default)return Tn(t.up())+" > DTD";if(t instanceof g1.default)return Tn(t.up())+(' > element "'+t.name+'"');throw new Error("Unrecognized object of type "+Object.prototype.toString.call(t))}Tt.getContext=Tn});var lr=y(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});var Zs=oe(),eo=K(),y1=function(){function t(e,r,n){this._validation=r,(0,eo.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,eo.fixChar)(e);else if(this._validation&&!(0,eo.validateChar)(e))throw new Error((0,Zs.getContext)(this.up())+": comment content"+(' "'+e+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)e=e.replace("--","\uFFFD\uFFFD");else if(this._validation&&e.indexOf("--")!==-1)throw new Error((0,Zs.getContext)(this.up())+": comment content"+(' "'+e+'" should not contain the string')+" '--'");if(this._replaceInvalidCharsInCharData)e.lastIndexOf("-")===e.length-1&&(e=e.substr(0,e.length-1)+"\uFFFD");else if(this._validation&&e.lastIndexOf("-")===e.length-1)throw new Error((0,Zs.getContext)(this.up())+": comment content"+(' "'+e+'" should not end with the string')+" '-'");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!--"+this._charData+"-->"},t.prototype.up=function(){return this._parent},t}();to.default=y1});var io=y(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});var ro=oe(),v1=qt(),pr=K(),b1=function(){function t(e,r,n){this._version="1.0",this._validation=r,this._parent=e,this.encoding=n.encoding,this.standalone=n.standalone,(0,pr.isUndefined)(n.version)||(this.version=n.version)}return Object.defineProperty(t.prototype,"encoding",{get:function(){return this._encoding},set:function(e){if(this._validation&&!(0,pr.isUndefined)(e)&&!_1(e))throw new Error((0,ro.getContext)(this.up())+": declaration"+(" encoding attribute "+e+" should be a")+" valid encoding");this._encoding=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"standalone",{get:function(){return this._standalone},set:function(e){if(this._validation&&!(0,pr.isUndefined)(e)&&e!=="yes"&&e!=="no")throw new Error((0,ro.getContext)(this.up())+": declaration"+(" standalone attribute "+e+" should")+" be the string 'yes' or the string 'no'");this._standalone=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},set:function(e){if(this._validation&&!w1(e))throw new Error((0,ro.getContext)(this.up())+": declaration version"+(" attribute "+e+" should be a valid XML")+" version");this._version=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){e===void 0&&(e={});var r=new v1.StringOptions(e),n=r.doubleQuotes?'"':"'",i="<?xml version="+n+this._version+n;return(0,pr.isUndefined)(this._encoding)||(i+=" encoding="+n+this._encoding+n),(0,pr.isUndefined)(this._standalone)||(i+=" standalone="+n+this._standalone+n),i+="?>",i},t.prototype.up=function(){return this._parent},t}();no.default=b1;function _1(t){if(t.length===0)return!1;var e=t.charCodeAt(0);if(!(e>=65&&e<=90||e>=97&&e<=122))return!1;for(var r=1;r<t.length;r++){var n=t.charCodeAt(r);if(!(n===95||n===45||n===46||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122))return r+1===t.length,!1}return!0}function w1(t){for(var e=0;e<=9;e++)if(t==="1."+e)return!0;return!1}});var jn=y(gr=>{"use strict";var yr=gr&&gr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gr,"__esModule",{value:!0});var x1=qt(),S1=K(),E1=yr(lr()),hd=yr(io()),pd=yr(Rn()),mr=yr(qn()),C1=yr(cr()),P1=function(){function t(e){this._children=[],this._validation=(0,S1.isUndefined)(e.validation)?!0:e.validation}return t.prototype.comment=function(e){var r=new E1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.decl=function(e){if(e===void 0&&(e={}),this._validation&&this._children.length!==0)throw new Error("in XML document: declaration must be the first child");var r=new hd.default(this,this._validation,e);return this._children.push(r),r},t.prototype.dtd=function(e){var r=this._children.filter(function(i){return i instanceof mr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: DTD must precede the root element");var n=new pd.default(this,this._validation,e);return this._children.push(n),n},t.prototype.element=function(e){var r=this._children.filter(function(i){return i instanceof mr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: only one root element is permitted");var n=new mr.default(this,this._validation,e);return this._children.push(n),n},t.prototype.procInst=function(e){var r=new C1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=this._children.filter(function(h){return h instanceof mr.default});if(this._validation&&r.length!==1)throw new Error("in XML document: no more than one root element is permitted");for(var n=new x1.StringOptions(e),i="",s=0,o=this._children;s<o.length;s++){var a=o[s];a instanceof hd.default||a instanceof pd.default||a instanceof mr.default?i+=a.toString(e):i+=a.toString(),n.pretty&&(i+=n.newline)}var u=i.length-n.newline.length;return i.substr(u)===n.newline&&(i=i.substr(0,u)),i},t}();gr.default=P1});var md=y(M=>{"use strict";var Z=M&&M.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(M,"__esModule",{value:!0});M.document=M.XmlProcInst=M.XmlEntityRef=M.XmlElement=M.XmlDtdParamEntityRef=M.XmlDtdNotation=M.XmlDtdEntity=M.XmlDtdElement=M.XmlDtdAttlist=M.XmlDtd=M.XmlDocument=M.XmlDecl=M.XmlComment=M.XmlCharRef=M.XmlCharData=M.XmlCdata=M.XmlAttributeText=M.XmlAttribute=void 0;var O1=Z(jn()),D1=Dn();Object.defineProperty(M,"XmlAttribute",{enumerable:!0,get:function(){return Z(D1).default}});var I1=Is();Object.defineProperty(M,"XmlAttributeText",{enumerable:!0,get:function(){return Z(I1).default}});var F1=Js();Object.defineProperty(M,"XmlCdata",{enumerable:!0,get:function(){return Z(F1).default}});var R1=Qs();Object.defineProperty(M,"XmlCharData",{enumerable:!0,get:function(){return Z(R1).default}});var A1=Pn();Object.defineProperty(M,"XmlCharRef",{enumerable:!0,get:function(){return Z(A1).default}});var k1=lr();Object.defineProperty(M,"XmlComment",{enumerable:!0,get:function(){return Z(k1).default}});var M1=io();Object.defineProperty(M,"XmlDecl",{enumerable:!0,get:function(){return Z(M1).default}});var q1=jn();Object.defineProperty(M,"XmlDocument",{enumerable:!0,get:function(){return Z(q1).default}});var T1=Rn();Object.defineProperty(M,"XmlDtd",{enumerable:!0,get:function(){return Z(T1).default}});var N1=Ts();Object.defineProperty(M,"XmlDtdAttlist",{enumerable:!0,get:function(){return Z(N1).default}});var j1=js();Object.defineProperty(M,"XmlDtdElement",{enumerable:!0,get:function(){return Z(j1).default}});var L1=$s();Object.defineProperty(M,"XmlDtdEntity",{enumerable:!0,get:function(){return Z(L1).default}});var $1=Us();Object.defineProperty(M,"XmlDtdNotation",{enumerable:!0,get:function(){return Z($1).default}});var B1=Hs();Object.defineProperty(M,"XmlDtdParamEntityRef",{enumerable:!0,get:function(){return Z(B1).default}});var U1=qn();Object.defineProperty(M,"XmlElement",{enumerable:!0,get:function(){return Z(U1).default}});var X1=On();Object.defineProperty(M,"XmlEntityRef",{enumerable:!0,get:function(){return Z(X1).default}});var H1=cr();Object.defineProperty(M,"XmlProcInst",{enumerable:!0,get:function(){return Z(H1).default}});function G1(t){return t===void 0&&(t={}),new O1.default(t)}M.document=G1});var so=y(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.stringify=ee.isMap=ee.isSet=ee.isFunction=ee.isArray=ee.isObject=ee.isNull=ee.isUndefined=void 0;function gd(t){return Object.prototype.toString.call(t)==="[object Undefined]"}ee.isUndefined=gd;function yd(t){return Object.prototype.toString.call(t)==="[object Null]"}ee.isNull=yd;function z1(t){return Object.prototype.toString.call(t)==="[object Object]"}ee.isObject=z1;function W1(t){return Object.prototype.toString.call(t)==="[object Array]"}ee.isArray=W1;function vd(t){return Object.prototype.toString.call(t)==="[object Function]"}ee.isFunction=vd;function J1(t){return Object.prototype.toString.call(t)==="[object Set]"}ee.isSet=J1;function V1(t){return Object.prototype.toString.call(t)==="[object Map]"}ee.isMap=V1;function Y1(t){return!gd(t)&&!yd(t)&&vd(t?.toString)&&(t=t.toString()),String(t)}ee.stringify=Y1});var Ed=y(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.WrapHandlers=Ee.TypeHandlers=Ee.FormatOptions=Ee.DtdOptions=Ee.DeclarationOptions=Ee.Options=void 0;var Ne=so(),K1=function(){function t(e){e===void 0&&(e={}),this.aliasString="=",this.attributeString="@",this.cdataInvalidChars=!1,this.cdataKeys=[],this.replaceInvalidChars=!1,this.useSelfClosingTagIfEmpty=!0,this.validation=!0,this.valueString="#",(0,Ne.isUndefined)(e.validation)||(this.validation=e.validation),(0,Ne.isUndefined)(e.aliasString)||(this.aliasString=e.aliasString),(0,Ne.isUndefined)(e.attributeString)||(this.attributeString=e.attributeString),(0,Ne.isUndefined)(e.cdataInvalidChars)||(this.cdataInvalidChars=e.cdataInvalidChars),(0,Ne.isUndefined)(e.cdataKeys)||(this.cdataKeys=e.cdataKeys),this.declaration=new bd(e.declaration),this.dtd=new _d(this.validation,e.dtd),this.format=new wd(e.format),(0,Ne.isUndefined)(e.replaceInvalidChars)||(this.replaceInvalidChars=e.replaceInvalidChars),this.typeHandlers=new xd(e.typeHandlers),(0,Ne.isUndefined)(e.useSelfClosingTagIfEmpty)||(this.useSelfClosingTagIfEmpty=e.useSelfClosingTagIfEmpty),(0,Ne.isUndefined)(e.valueString)||(this.valueString=e.valueString),this.wrapHandlers=new Sd(e.wrapHandlers)}return t}();Ee.Options=K1;var bd=function(){function t(e){e===void 0&&(e={}),this.include=!0,(0,Ne.isUndefined)(e.include)||(this.include=e.include),this.encoding=e.encoding,this.standalone=e.standalone,this.version=e.version}return t}();Ee.DeclarationOptions=bd;var _d=function(){function t(e,r){if(r===void 0&&(r={}),this.include=!1,(0,Ne.isUndefined)(r.include)||(this.include=r.include),e&&(0,Ne.isUndefined)(r.name)&&this.include)throw new Error("options.dtd.name should be defined if options.dtd.include is true");this.name=r.name,this.sysId=r.sysId,this.pubId=r.pubId}return t}();Ee.DtdOptions=_d;var wd=function(){function t(e){e===void 0&&(e={}),this.doubleQuotes=e.doubleQuotes,this.indent=e.indent,this.newline=e.newline,this.pretty=e.pretty}return t}();Ee.FormatOptions=wd;var xd=function(){function t(e){e===void 0&&(e={});for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this[r]=e[r])}return t}();Ee.TypeHandlers=xd;var Sd=function(){function t(e){e===void 0&&(e={});for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this[r]=e[r])}return t}();Ee.WrapHandlers=Sd});var Fd=y(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.parse=Qe.parseToExistingElement=Qe.Absent=void 0;var Pd=md(),Od=Ed(),J=so(),oo=function(){function t(){}return Object.defineProperty(t,"instance",{get:function(){return t._instance},enumerable:!1,configurable:!0}),t._instance=new t,t}();Qe.Absent=oo;function ao(t,e){var r=Object.prototype.toString.call(t),n;return Object.prototype.hasOwnProperty.call(e.typeHandlers,"*")&&(n=e.typeHandlers["*"]),Object.prototype.hasOwnProperty.call(e.typeHandlers,r)&&(n=e.typeHandlers[r]),n}function Dd(t,e,r){var n=function(o){return r.cdataInvalidChars&&(o.indexOf("<")!==-1||o.indexOf("&")!==-1)||r.cdataKeys.indexOf(e.name)!==-1||r.cdataKeys.indexOf("*")!==-1};if(e instanceof Pd.XmlElement)if(n(t))for(var i=t.split("]]>"),s=0;s<i.length;s++)n(i[s])?e.cdata({charData:i[s],replaceInvalidCharsInCharData:r.replaceInvalidChars}):e.charData({charData:i[s],replaceInvalidCharsInCharData:r.replaceInvalidChars}),s<i.length-1&&e.charData({charData:"]]>",replaceInvalidCharsInCharData:r.replaceInvalidChars});else e.charData({charData:t,replaceInvalidCharsInCharData:r.replaceInvalidChars});else e.text({charData:t,replaceInvalidCharsInCharData:r.replaceInvalidChars})}function Q1(t,e,r,n){var i=r.attribute({name:t,replaceInvalidCharsInName:n.replaceInvalidChars});Dd((0,J.stringify)(e),i,n)}function Cd(t,e,r,n){if(t===n.aliasString){r.name=(0,J.stringify)(e);return}if(t.indexOf(n.attributeString)===0&&(0,J.isObject)(e)){for(var i=0,s=Object.keys(e);i<s.length;i++){var o=s[i];Q1(o,(0,J.stringify)(e[o]),r,n)}return}if(t.indexOf(n.valueString)===0){Ln(t,(0,J.stringify)(e),r,n);return}var a=r;if(!(0,J.isArray)(e)&&!(0,J.isSet)(e)){var u=ao(e,n);if(!(0,J.isUndefined)(u)&&u(e)===oo.instance)return;a=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}Ln(t,e,a,n)}function Z1(t,e,r){if((0,J.isMap)(t))t.forEach(function(o,a){Cd((0,J.stringify)(a),o,e,r)});else for(var n=0,i=Object.keys(t);n<i.length;n++){var s=i[n];Cd(s,t[s],e,r)}}function ev(t,e,r,n){var i;Object.prototype.hasOwnProperty.call(n.wrapHandlers,"*")&&(i=n.wrapHandlers["*"]),Object.prototype.hasOwnProperty.call(n.wrapHandlers,t)&&(i=n.wrapHandlers[t]);var s=t,o=r;if(!(0,J.isUndefined)(i)){var a=i(s,e);(0,J.isNull)(a)||(s=a,o=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty}))}e.forEach(function(u){var h=o;if(!(0,J.isArray)(u)&&!(0,J.isSet)(u)){var c=ao(u,n);if(!(0,J.isUndefined)(c)&&c(u)===oo.instance)return;h=o.element({name:s,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}Ln(s,u,h,n)})}function Ln(t,e,r,n){var i=ao(e,n);if((0,J.isUndefined)(i)||(e=i(e)),(0,J.isObject)(e)||(0,J.isMap)(e)){Z1(e,r,n);return}if((0,J.isArray)(e)||(0,J.isSet)(e)){ev(t,e,r,n);return}Dd((0,J.stringify)(e),r,n)}function Id(t,e,r){var n=new Od.Options(r);Ln(t.name,e,t,n)}Qe.parseToExistingElement=Id;function tv(t,e,r){var n=new Od.Options(r),i=new Pd.XmlDocument({validation:n.validation});n.declaration.include&&i.decl(n.declaration),n.dtd.include&&i.dtd({name:n.dtd.name,pubId:n.dtd.pubId,sysId:n.dtd.sysId});var s=i.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty});return Id(s,e,r),i.toString(n.format)}Qe.parse=tv});var co=$(require("node:path"));var Tr=$(require("node:crypto")),rt=$(require("node:fs")),si=$(require("node:path")),oi=$(vt()),Nr=si.default.resolve(__dirname,"./../apiCache"),bu=`${Nr}/siteHash.json`;function _u(){rt.default.existsSync(Nr)||rt.default.mkdirSync(Nr),console.info("Cache initialized")}function wu(t){let e=Tr.default.createHash("sha256");return e.update(JSON.stringify(t)),`${Nr}/${e.digest("hex")}`}function xu(t){let e=Tr.default.randomBytes(16).toString("hex"),r=Tr.default.createHash("sha256");return r.update(`${t}${e}`),r.digest("hex")}function Su(t,e){let r=typeof e=="string"?e:JSON.stringify(e),n=wu(t),i=si.default.dirname(n);rt.default.existsSync(i)||rt.default.mkdirSync(i,{recursive:!0}),rt.default.writeFileSync(n,r,"utf8")}function Eu(t){try{let e=wu(t);return oi.default.readJSONSync(e,{encoding:"utf-8"})}catch{return null}}function tp(){try{return oi.default.readJSONSync(bu,{encoding:"utf-8"})||{}}catch{return{}}}function Cu(t,e){let r=tp(),n=r[t],i=e||n||new Date().valueOf();return i!==n&&(r[t]=i,rt.default.writeFileSync(bu,JSON.stringify(r),{encoding:"utf-8"})),i.toString()}var vm=$(Hr()),dl=$(St()),Ve=$(vt()),bm=$(Gc()),Ni=$(ll());var fl="10.3.19";dl.default.config();var _m=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS),kb=Ni.default.sync(__dirname),Mb=Ni.default.sync();function ji(t){let e=t.length,r=t.length+2,n=" ".repeat(Math.floor((r-e)/2)),i=`\u256D${"\u2500".repeat(r)}\u256E
19
+ `+s),t.push(i+"m+"+dn.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=fg()+e+" "+t[0]}function fg(){return se.inspectOpts.hideDate?"":new Date().toISOString()+" "}function dg(...t){return process.stderr.write(fn.format(...t)+`
20
+ `)}function hg(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function pg(){return process.env.DEBUG}function mg(t){t.inspectOpts={};let e=Object.keys(se.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=se.inspectOpts[e[r]]}dn.exports=Qi()(se);var{formatters:zl}=dn.exports;zl.o=function(t){return this.inspectOpts.colors=this.useColors,fn.inspect(t,this.inspectOpts).split(`
21
+ `).map(e=>e.trim()).join(" ")};zl.O=function(t){return this.inspectOpts.colors=this.useColors,fn.inspect(t,this.inspectOpts)}});var Jl=y((Zb,Zi)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Zi.exports=Gl():Zi.exports=Wl()});var Yl=y((e2,Vl)=>{var rr;Vl.exports=function(){if(!rr){try{rr=Jl()("follow-redirects")}catch{}typeof rr!="function"&&(rr=function(){})}rr.apply(null,arguments)}});var ss=y((t2,is)=>{var ot=require("url"),es=ot.URL,gg=require("http"),yg=require("https"),Zl=require("stream").Writable,ef=require("assert"),tf=Yl(),rs=["abort","aborted","connect","error","socket","timeout"],ns=Object.create(null);rs.forEach(function(t){ns[t]=function(e,r,n){this._redirectable.emit(t,e,r,n)}});var vg=ir("ERR_INVALID_URL","Invalid URL",TypeError),Kl=ir("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),bg=ir("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),_g=ir("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),wg=ir("ERR_STREAM_WRITE_AFTER_END","write after end");function Pe(t,e){Zl.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}Pe.prototype=Object.create(Zl.prototype);Pe.prototype.abort=function(){nf(this._currentRequest),this.emit("abort")};Pe.prototype.write=function(t,e,r){if(this._ending)throw new wg;if(!at(t)&&!Eg(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(nr(e)&&(r=e,e=null),t.length===0){r&&r();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,r)):(this.emit("error",new _g),this.abort())};Pe.prototype.end=function(t,e,r){if(nr(t)?(r=t,t=e=null):nr(e)&&(r=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(t,e,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};Pe.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};Pe.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};Pe.prototype.setTimeout=function(t,e){var r=this;function n(o){o.setTimeout(t),o.removeListener("timeout",o.destroy),o.addListener("timeout",o.destroy)}function i(o){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},t),n(o)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),e&&r.removeListener("timeout",e),r.socket||r._currentRequest.removeListener("socket",i)}return e&&this.on("timeout",e),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){Pe.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(Pe.prototype,t,{get:function(){return this._currentRequest[t]}})});Pe.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};Pe.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e){this.emit("error",new TypeError("Unsupported protocol "+t));return}if(this._options.agents){var r=t.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of rs)n.on(i,ns[i]);if(this._currentUrl=/^\//.test(this._options.path)?ot.format(this._options):this._options.path,this._isRedirect){var s=0,o=this,a=this._requestBodyBuffers;(function u(h){if(n===o._currentRequest)if(h)o.emit("error",h);else if(s<a.length){var c=a[s++];n.finished||n.write(c.data,c.encoding,u)}else o._ended&&n.end()})()}};Pe.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var r=t.headers.location;if(!r||this._options.followRedirects===!1||e<300||e>=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(nf(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new bg);return}var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var s=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],ts(/^content-/i,this._options.headers));var o=ts(/^host$/i,this._options.headers),a=ot.parse(this._currentUrl),u=o||a.host,h=/^\w+:/.test(r)?this._currentUrl:ot.format(Object.assign(a,{host:u})),c;try{c=ot.resolve(h,r)}catch(b){this.emit("error",new Kl({cause:b}));return}tf("redirecting to",c),this._isRedirect=!0;var p=ot.parse(c);if(Object.assign(this._options,p),(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==u&&!Sg(p.host,u))&&ts(/^(?:authorization|cookie)$/i,this._options.headers),nr(i)){var g={headers:t.headers,statusCode:e},m={url:h,method:s,headers:n};try{i(this._options,g,m)}catch(b){this.emit("error",b);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(b){this.emit("error",new Kl({cause:b}))}};function rf(t){var e={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(t).forEach(function(n){var i=n+":",s=r[i]=t[n],o=e[n]=Object.create(s);function a(h,c,p){if(at(h)){var g;try{g=Ql(new es(h))}catch{g=ot.parse(h)}if(!at(g.protocol))throw new vg({input:h});h=g}else es&&h instanceof es?h=Ql(h):(p=c,c=h,h={protocol:i});return nr(c)&&(p=c,c=null),c=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},h,c),c.nativeProtocols=r,!at(c.host)&&!at(c.hostname)&&(c.hostname="::1"),ef.equal(c.protocol,i,"protocol mismatch"),tf("options",c),new Pe(c,p)}function u(h,c,p){var g=o.request(h,c,p);return g.end(),g}Object.defineProperties(o,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:u,configurable:!0,enumerable:!0,writable:!0}})}),e}function xg(){}function Ql(t){var e={protocol:t.protocol,hostname:t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,hash:t.hash,search:t.search,pathname:t.pathname,path:t.pathname+t.search,href:t.href};return t.port!==""&&(e.port=Number(t.port)),e}function ts(t,e){var r;for(var n in e)t.test(n)&&(r=e[n],delete e[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function ir(t,e,r){function n(i){Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+t+"]",n}function nf(t){for(var e of rs)t.removeListener(e,ns[e]);t.on("error",xg),t.abort()}function Sg(t,e){ef(at(t)&&at(e));var r=t.length-e.length-1;return r>0&&t[r]==="."&&t.endsWith(e)}function at(t){return typeof t=="string"||t instanceof String}function nr(t){return typeof t=="function"}function Eg(t){return typeof t=="object"&&"length"in t}is.exports=rf({http:gg,https:yg});is.exports.wrap=rf});var os=y((r2,Cg)=>{Cg.exports={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]}});var lf=y((n2,cf)=>{"use strict";var sr=ve(),sf=Ji(),Pg=Vi(),Og=rn(),Dg=require("http"),Ig=require("https"),Fg=ss().http,Rg=ss().https,of=require("url"),Ag=require("zlib"),kg=os(),hn=on(),as=sn(),af=/https:?/;function uf(t,e,r){if(t.hostname=e.host,t.host=e.host,t.port=e.port,t.path=r,e.auth){var n=Buffer.from(e.auth.username+":"+e.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+n}t.beforeRedirect=function(s){s.headers.host=s.host,uf(s,e,s.href)}}cf.exports=function(e){return new Promise(function(n,i){var s=function(x){n(x)},o=function(x){i(x)},a=e.data,u=e.headers;if("User-Agent"in u||"user-agent"in u?!u["User-Agent"]&&!u["user-agent"]&&(delete u["User-Agent"],delete u["user-agent"]):u["User-Agent"]="axios/"+kg.version,a&&!sr.isStream(a)){if(!Buffer.isBuffer(a))if(sr.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(sr.isString(a))a=Buffer.from(a,"utf-8");else return o(hn("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));u["Content-Length"]=a.length}var h=void 0;if(e.auth){var c=e.auth.username||"",p=e.auth.password||"";h=c+":"+p}var g=Pg(e.baseURL,e.url),m=of.parse(g),b=m.protocol||"http:";if(!h&&m.auth){var S=m.auth.split(":"),O=S[0]||"",R=S[1]||"";h=O+":"+R}h&&delete u.Authorization;var L=af.test(b),B=L?e.httpsAgent:e.httpAgent,G={path:Og(m.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:u,agent:B,agents:{http:e.httpAgent,https:e.httpsAgent},auth:h};e.socketPath?G.socketPath=e.socketPath:(G.hostname=m.hostname,G.port=m.port);var K=e.proxy;if(!K&&K!==!1){var de=b.slice(0,-1)+"_proxy",Oe=process.env[de]||process.env[de.toUpperCase()];if(Oe){var re=of.parse(Oe),D=process.env.no_proxy||process.env.NO_PROXY,q=!0;if(D){var A=D.split(",").map(function(x){return x.trim()});q=!A.some(function(x){return x?x==="*"||x[0]==="."&&m.hostname.substr(m.hostname.length-x.length)===x?!0:m.hostname===x:!1})}if(q&&(K={host:re.hostname,port:re.port,protocol:re.protocol},re.auth)){var U=re.auth.split(":");K.auth={username:U[0],password:U[1]}}}}K&&(G.headers.host=m.hostname+(m.port?":"+m.port:""),uf(G,K,b+"//"+m.hostname+(m.port?":"+m.port:"")+G.path));var I,j=L&&(K?af.test(K.protocol):!0);e.transport?I=e.transport:e.maxRedirects===0?I=j?Ig:Dg:(e.maxRedirects&&(G.maxRedirects=e.maxRedirects),I=j?Rg:Fg),e.maxBodyLength>-1&&(G.maxBodyLength=e.maxBodyLength);var P=I.request(G,function(x){if(!P.aborted){var F=x,ne=x.req||P;if(x.statusCode!==204&&ne.method!=="HEAD"&&e.decompress!==!1)switch(x.headers["content-encoding"]){case"gzip":case"compress":case"deflate":F=F.pipe(Ag.createUnzip()),delete x.headers["content-encoding"];break}var De={status:x.statusCode,statusText:x.statusMessage,headers:x.headers,config:e,request:ne};if(e.responseType==="stream")De.data=F,sf(s,o,De);else{var W=[],he=0;F.on("data",function(pe){W.push(pe),he+=pe.length,e.maxContentLength>-1&&he>e.maxContentLength&&(F.destroy(),o(hn("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,ne)))}),F.on("error",function(pe){P.aborted||o(as(pe,e,null,ne))}),F.on("end",function(){var pe=Buffer.concat(W);e.responseType!=="arraybuffer"&&(pe=pe.toString(e.responseEncoding),(!e.responseEncoding||e.responseEncoding==="utf8")&&(pe=sr.stripBOM(pe))),De.data=pe,sf(s,o,De)})}}});if(P.on("error",function(x){P.aborted&&x.code!=="ERR_FR_TOO_MANY_REDIRECTS"||o(as(x,e,null,P))}),e.timeout){var T=parseInt(e.timeout,10);if(isNaN(T)){o(hn("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",P));return}P.setTimeout(T,function(){P.abort(),o(hn("timeout of "+T+"ms exceeded",e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",P))})}e.cancelToken&&e.cancelToken.promise.then(function(x){P.aborted||(P.abort(),o(x))}),sr.isStream(a)?a.on("error",function(x){o(as(x,e,null,P))}).pipe(P):P.end(a)})}});var mn=y((i2,hf)=>{"use strict";var oe=ve(),ff=El(),qg=sn(),Mg={"Content-Type":"application/x-www-form-urlencoded"};function df(t,e){!oe.isUndefined(t)&&oe.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function Tg(){var t;return typeof XMLHttpRequest<"u"?t=Bl():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(t=lf()),t}function Ng(t,e,r){if(oe.isString(t))try{return(e||JSON.parse)(t),oe.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var pn={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:Tg(),transformRequest:[function(e,r){return ff(r,"Accept"),ff(r,"Content-Type"),oe.isFormData(e)||oe.isArrayBuffer(e)||oe.isBuffer(e)||oe.isStream(e)||oe.isFile(e)||oe.isBlob(e)?e:oe.isArrayBufferView(e)?e.buffer:oe.isURLSearchParams(e)?(df(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):oe.isObject(e)||r&&r["Content-Type"]==="application/json"?(df(r,"application/json"),Ng(e)):e}],transformResponse:[function(e){var r=this.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,s=!n&&this.responseType==="json";if(s||i&&oe.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?qg(o,this,"E_JSON_PARSE"):o}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};pn.headers={common:{Accept:"application/json, text/plain, */*"}};oe.forEach(["delete","get","head"],function(e){pn.headers[e]={}});oe.forEach(["post","put","patch"],function(e){pn.headers[e]=oe.merge(Mg)});hf.exports=pn});var mf=y((s2,pf)=>{"use strict";var jg=ve(),Lg=mn();pf.exports=function(e,r,n){var i=this||Lg;return jg.forEach(n,function(o){e=o.call(i,e,r)}),e}});var us=y((o2,gf)=>{"use strict";gf.exports=function(e){return!!(e&&e.__CANCEL__)}});var bf=y((a2,vf)=>{"use strict";var yf=ve(),cs=mf(),$g=us(),Bg=mn();function ls(t){t.cancelToken&&t.cancelToken.throwIfRequested()}vf.exports=function(e){ls(e),e.headers=e.headers||{},e.data=cs.call(e,e.data,e.headers,e.transformRequest),e.headers=yf.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),yf.forEach(["delete","get","head","post","put","patch","common"],function(i){delete e.headers[i]});var r=e.adapter||Bg.adapter;return r(e).then(function(i){return ls(e),i.data=cs.call(e,i.data,i.headers,e.transformResponse),i},function(i){return $g(i)||(ls(e),i&&i.response&&(i.response.data=cs.call(e,i.response.data,i.response.headers,e.transformResponse))),Promise.reject(i)})}});var fs=y((u2,_f)=>{"use strict";var fe=ve();_f.exports=function(e,r){r=r||{};var n={},i=["url","method","data"],s=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function u(g,m){return fe.isPlainObject(g)&&fe.isPlainObject(m)?fe.merge(g,m):fe.isPlainObject(m)?fe.merge({},m):fe.isArray(m)?m.slice():m}function h(g){fe.isUndefined(r[g])?fe.isUndefined(e[g])||(n[g]=u(void 0,e[g])):n[g]=u(e[g],r[g])}fe.forEach(i,function(m){fe.isUndefined(r[m])||(n[m]=u(void 0,r[m]))}),fe.forEach(s,h),fe.forEach(o,function(m){fe.isUndefined(r[m])?fe.isUndefined(e[m])||(n[m]=u(void 0,e[m])):n[m]=u(void 0,r[m])}),fe.forEach(a,function(m){m in r?n[m]=u(e[m],r[m]):m in e&&(n[m]=u(void 0,e[m]))});var c=i.concat(s).concat(o).concat(a),p=Object.keys(e).concat(Object.keys(r)).filter(function(m){return c.indexOf(m)===-1});return fe.forEach(p,h),n}});var Cf=y((c2,Ef)=>{"use strict";var xf=os(),ds={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){ds[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var wf={},Ug=xf.version.split(".");function Sf(t,e){for(var r=e?e.split("."):Ug,n=t.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}ds.transitional=function(e,r,n){var i=r&&Sf(r);function s(o,a){return"[Axios v"+xf.version+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,u){if(e===!1)throw new Error(s(a," has been removed in "+r));return i&&!wf[a]&&(wf[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,a,u):!0}};function Xg(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var n=Object.keys(t),i=n.length;i-- >0;){var s=n[i],o=e[s];if(o){var a=t[s],u=a===void 0||o(a,s,t);if(u!==!0)throw new TypeError("option "+s+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+s)}}Ef.exports={isOlderVersion:Sf,assertOptions:Xg,validators:ds}});var Rf=y((l2,Ff)=>{"use strict";var Df=ve(),Hg=rn(),Pf=xl(),Of=bf(),gn=fs(),If=Cf(),qt=If.validators;function or(t){this.defaults=t,this.interceptors={request:new Pf,response:new Pf}}or.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=gn(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;r!==void 0&&If.assertOptions(r,{silentJSONParsing:qt.transitional(qt.boolean,"1.0.0"),forcedJSONParsing:qt.transitional(qt.boolean,"1.0.0"),clarifyTimeoutError:qt.transitional(qt.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(e)===!1||(i=i&&g.synchronous,n.unshift(g.fulfilled,g.rejected))});var s=[];this.interceptors.response.forEach(function(g){s.push(g.fulfilled,g.rejected)});var o;if(!i){var a=[Of,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(s),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var u=e;n.length;){var h=n.shift(),c=n.shift();try{u=h(u)}catch(p){c(p);break}}try{o=Of(u)}catch(p){return Promise.reject(p)}for(;s.length;)o=o.then(s.shift(),s.shift());return o};or.prototype.getUri=function(e){return e=gn(this.defaults,e),Hg(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};Df.forEach(["delete","get","head","options"],function(e){or.prototype[e]=function(r,n){return this.request(gn(n||{},{method:e,url:r,data:(n||{}).data}))}});Df.forEach(["post","put","patch"],function(e){or.prototype[e]=function(r,n,i){return this.request(gn(i||{},{method:e,url:r,data:n}))}});Ff.exports=or});var ps=y((f2,Af)=>{"use strict";function hs(t){this.message=t}hs.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};hs.prototype.__CANCEL__=!0;Af.exports=hs});var qf=y((d2,kf)=>{"use strict";var Gg=ps();function yn(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(i){e=i});var r=this;t(function(i){r.reason||(r.reason=new Gg(i),e(r.reason))})}yn.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};yn.source=function(){var e,r=new yn(function(i){e=i});return{token:r,cancel:e}};kf.exports=yn});var Tf=y((h2,Mf)=>{"use strict";Mf.exports=function(e){return function(n){return e.apply(null,n)}}});var jf=y((p2,Nf)=>{"use strict";Nf.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}});var Bf=y((m2,ms)=>{"use strict";var Lf=ve(),zg=Xi(),vn=Rf(),Wg=fs(),Jg=mn();function $f(t){var e=new vn(t),r=zg(vn.prototype.request,e);return Lf.extend(r,vn.prototype,e),Lf.extend(r,e),r}var Te=$f(Jg);Te.Axios=vn;Te.create=function(e){return $f(Wg(Te.defaults,e))};Te.Cancel=ps();Te.CancelToken=qf();Te.isCancel=us();Te.all=function(e){return Promise.all(e)};Te.spread=Tf();Te.isAxiosError=jf();ms.exports=Te;ms.exports.default=Te});var gs=y((g2,Uf)=>{Uf.exports=Bf()});var Q=y(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.isUndefined=Se.fixName=Se.validateName=Se.validateSingleChar=Se.fixChar=Se.validateChar=void 0;function fy(t){for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(!(r===9||r===10||r===13||r>=32&&r<=55295||r>=57344&&r<=65533)){if(e+1===t.length)return!1;var n=t.charCodeAt(e+1);if(r>=55296&&r<=56319&&n>=56320&&n<=57343){e++;continue}return!1}}return!0}Se.validateChar=fy;function dy(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r);if(n===9||n===10||n===13||n>=32&&n<=55295||n>=57344&&n<=65533){e+=t[r];continue}if(r+1===t.length)return e+="\uFFFD",e;var i=t.charCodeAt(r+1);if(n>=55296&&n<=56319&&i>=56320&&i<=57343){e+=t[r]+t[r+1],r++;continue}e+="\uFFFD"}return e}Se.fixChar=dy;function hy(t){if(t.length===0)return!1;var e=t.charCodeAt(0);if(t.length===1)return e===9||e===10||e===13||e>=32&&e<=55295||e>=57344&&e<=65533;if(t.length!==2)return!1;var r=t.charCodeAt(1);return e>=55296&&e<=56319&&r>=56320&&r<=57343}Se.validateSingleChar=hy;function py(t){if(t.length===0)return!1;var e=t.charCodeAt(0),r=e===58||e===95||e>=65&&e<=90||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533;if(t.length===1)return r;var n=t.charCodeAt(1),i=e>=55296&&e<=56191&&n>=56320&&n<=57343;if(!r&&!i)return!1;for(var s=i?2:1,o=s;o<t.length;o++){var a=t.charCodeAt(o);if(!(a===58||a===95||a===45||a===46||a===183||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=767||a>=768&&a<=879||a>=880&&a<=893||a>=895&&a<=8191||a>=8204&&a<=8205||a>=8255&&a<=8256||a>=8304&&a<=8591||a>=11264&&a<=12271||a>=12289&&a<=55295||a>=63744&&a<=64975||a>=65008&&a<=65533)){if(o+1===t.length)return!1;var u=t.charCodeAt(o+1);if(a>=55296&&a<=56191&&u>=56320&&u<=57343){o++;continue}return!1}}return!0}Se.validateName=py;function my(t){var e="";if(t.length===0)return e;var r=t.charCodeAt(0),n=r===58||r===95||r>=65&&r<=90||r>=97&&r<=122||r>=192&&r<=214||r>=216&&r<=246||r>=248&&r<=767||r>=880&&r<=893||r>=895&&r<=8191||r>=8204&&r<=8205||r>=8304&&r<=8591||r>=11264&&r<=12271||r>=12289&&r<=55295||r>=63744&&r<=64975||r>=65008&&r<=65533;if(t.length===1)return n?e=t[0]:e="\uFFFD",e;var i=t.charCodeAt(1),s=r>=55296&&r<=56191&&i>=56320&&i<=57343;s?e=t[0]+t[1]:n?e=t[0]:e="\uFFFD";for(var o=s?2:1,a=o;a<t.length;a++){var u=t.charCodeAt(a);if(u===58||u===95||u===45||u===46||u===183||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||u>=192&&u<=214||u>=216&&u<=246||u>=248&&u<=767||u>=768&&u<=879||u>=880&&u<=893||u>=895&&u<=8191||u>=8204&&u<=8205||u>=8255&&u<=8256||u>=8304&&u<=8591||u>=11264&&u<=12271||u>=12289&&u<=55295||u>=63744&&u<=64975||u>=65008&&u<=65533){e+=t[a];continue}if(a+1===t.length)return e+="\uFFFD",e;var h=t.charCodeAt(a+1);if(u>=55296&&u<=56191&&h>=56320&&h<=57343){e+=t[a]+t[a+1],a++;continue}e+="\uFFFD"}return e}Se.fixName=my;function gy(t){return Object.prototype.toString.call(t)==="[object Undefined]"}Se.isUndefined=gy});var Mt=y(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.StringOptions=void 0;var Sn=Q(),yy=function(){function t(e){this.doubleQuotes=!1,this.indent=" ",this.newline=`
22
+ `,this.pretty=!0,(0,Sn.isUndefined)(e.doubleQuotes)||(this.doubleQuotes=e.doubleQuotes),(0,Sn.isUndefined)(e.indent)||(this.indent=e.indent),(0,Sn.isUndefined)(e.newline)||(this.newline=e.newline),(0,Sn.isUndefined)(e.pretty)||(this.pretty=e.pretty)}return t}();En.StringOptions=yy});var Cn=y(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.escapeDoubleQuotes=Re.escapeSingleQuotes=Re.escapeRightAngleBracketsInCdataTerminator=Re.escapeLeftAngleBrackets=Re.escapeAmpersands=void 0;function vy(t){return t.replace(/&/g,"&amp;")}Re.escapeAmpersands=vy;function by(t){return t.replace(/</g,"&lt;")}Re.escapeLeftAngleBrackets=by;function _y(t){return t.replace(/]]>/g,"]]&gt;")}Re.escapeRightAngleBracketsInCdataTerminator=_y;function wy(t){return t.replace(/'/g,"&apos;")}Re.escapeSingleQuotes=wy;function xy(t){return t.replace(/"/g,"&quot;")}Re.escapeDoubleQuotes=xy});var Is=y(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});var Sy=ae(),od=Cn(),Os=Q(),Ey=function(){function t(e,r,n){this._validation=r,(0,Os.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Os.fixChar)(e);else if(this._validation&&!(0,Os.validateChar)(e))throw new Error((0,Sy.getContext)(this.up())+": attribute text"+(' "'+e+'" should not contain characters not')+" allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this._charData;return e=(0,od.escapeAmpersands)(e),e=(0,od.escapeLeftAngleBrackets)(e),e},t.prototype.up=function(){return this._parent},t}();Ds.default=Ey});var Pn=y(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});var ad=ae(),ud=Q(),Cy=function(){function t(e,r,n){this._hex=!1,this._validation=r,this._parent=e,this.char=n.char,(0,ud.isUndefined)(n.hex)||(this.hex=n.hex)}return Object.defineProperty(t.prototype,"char",{get:function(){return this._char},set:function(e){if(this._validation&&!(0,ud.validateSingleChar)(e))throw new Error((0,ad.getContext)(this.up())+": character reference"+(' "'+e+'" should reference a single character,')+" and this character should be allowed in XML");this._char=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hex",{get:function(){return this._hex},set:function(e){this._hex=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e;if(this._char.length===1)e=this._char.charCodeAt(0);else{var r=this._char.charCodeAt(0);if(r>=55296&&r<=56319&&this._char.length>1){var n=this._char.charCodeAt(1);if(n>=56320&&n<=57343)e=(r-55296)*1024+n-56320+65536;else throw new Error((0,ad.getContext)(this.up())+": character"+(' reference "'+this.char+'" should')+" reference a valid Unicode character")}else e=r}return this._hex?"&#x"+e.toString(16)+";":"&#"+e+";"},t.prototype.up=function(){return this._parent},t}();Fs.default=Cy});var On=y(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});var Py=ae(),Oy=Q(),Dy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,Oy.validateName)(e))throw new Error((0,Py.getContext)(this.up())+": entity reference name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"&"+this._name+";"},t.prototype.up=function(){return this._parent},t}();Rs.default=Dy});var Dn=y(ur=>{"use strict";var qs=ur&&ur.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ur,"__esModule",{value:!0});var As=ae(),cd=Cn(),Iy=Mt(),ks=Q(),Fy=qs(Is()),Ry=qs(Pn()),Ay=qs(On()),ky=function(){function t(e,r,n){this._validation=r,(0,ks.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,this._children=[],this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._replaceInvalidCharsInName){if(e=(0,ks.fixName)(e),e.length===0)throw new Error((0,As.getContext)(this.up())+": attribute name should not be empty")}else if(this._validation&&!(0,ks.validateName)(e))throw e.length===0?new Error((0,As.getContext)(this.up())+": attribute name should not be empty"):new Error((0,As.getContext)(this.up())+": attribute name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.charRef=function(e){var r=new Ry.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new Ay.default(this,this._validation,e);return this._children.push(r),r},t.prototype.text=function(e){var r=new Fy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});for(var r=new Iy.StringOptions(e),n=r.doubleQuotes?'"':"'",i=this._name+"="+n,s=0,o=this._children;s<o.length;s++){var a=o[s];r.doubleQuotes?i+=(0,cd.escapeDoubleQuotes)(a.toString()):i+=(0,cd.escapeSingleQuotes)(a.toString())}return i+=n,i},t.prototype.up=function(){return this._parent},t}();ur.default=ky});var Ts=y(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});var qy=ae(),My=Q(),Ty=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,My.validateChar)(e))throw new Error((0,qy.getContext)(this.up())+": attribute-list"+(' declaration "'+e+'" should not contain')+" characters not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ATTLIST "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Ms.default=Ty});var js=y(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});var Ny=ae(),jy=Q(),Ly=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,jy.validateChar)(e))throw new Error((0,Ny.getContext)(this.up())+": element declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ELEMENT "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Ns.default=Ly});var $s=y(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});var $y=ae(),By=Q(),Uy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,By.validateChar)(e))throw new Error((0,$y.getContext)(this.up())+": entity declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ENTITY "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Ls.default=Uy});var Us=y(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});var Xy=ae(),Hy=Q(),Gy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,Hy.validateChar)(e))throw new Error((0,Xy.getContext)(this.up())+": notation declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!NOTATION "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Bs.default=Gy});var Hs=y(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});var zy=ae(),Wy=Q(),Jy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,Wy.validateName)(e))throw new Error((0,zy.getContext)(this.up())+": parameter entity"+(' reference name "'+e+'" should not contain')+" characters not allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"%"+this._name+";"},t.prototype.up=function(){return this._parent},t}();Xs.default=Jy});var cr=y(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});var In=ae(),Fn=Q(),Vy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.content=n.content,this.target=n.target}return Object.defineProperty(t.prototype,"content",{get:function(){return this._content},set:function(e){if(!(0,Fn.isUndefined)(e)){if(this._validation&&!(0,Fn.validateChar)(e))throw new Error((0,In.getContext)(this.up())+": processing"+(' instruction content "'+e+'" should')+" not contain characters not allowed in XML");if(this._validation&&e.indexOf("?>")!==-1)throw new Error((0,In.getContext)(this.up())+": processing"+(' instruction content "'+e+'" should')+" not contain the string '?>'")}this._content=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){return this._target},set:function(e){if(this._validation&&!(0,Fn.validateName)(e))throw new Error((0,In.getContext)(this.up())+": processing"+(' instruction target "'+e+'" should')+" not contain characters not allowed in XML names");if(this._validation&&e==="xml")throw new Error((0,In.getContext)(this.up())+": processing"+(' instruction target "'+e+'" should')+" not be the string 'xml'");this._target=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return(0,Fn.isUndefined)(this._content)?"<?"+this._target+"?>":"<?"+this._target+" "+this._content+"?>"},t.prototype.up=function(){return this._parent},t}();Gs.default=Vy});var Rn=y(ct=>{"use strict";var lt=ct&&ct.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ct,"__esModule",{value:!0});ct.validatePubId=void 0;var Qe=ae(),Yy=Mt(),Le=Q(),Ky=lt(lr()),Qy=lt(Ts()),Zy=lt(js()),e1=lt($s()),t1=lt(Us()),r1=lt(Hs()),n1=lt(cr()),i1=function(){function t(e,r,n){this._pubId=void 0,this._sysId=void 0,this._validation=r,this._children=[],this._parent=e,this.name=n.name,(0,Le.isUndefined)(n.sysId)||(this.sysId=n.sysId),(0,Le.isUndefined)(n.pubId)||(this.pubId=n.pubId)}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,Le.validateName)(e))throw new Error((0,Qe.getContext)(this.up())+': DTD name "'+e+'" should not contain characters not allowed in XML names');this._name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pubId",{get:function(){return this._pubId},set:function(e){if(!(0,Le.isUndefined)(e)){if(this._validation&&!ld(e))throw new Error((0,Qe.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not contain')+" characters not allowed in public identifiers");if(this._validation&&(0,Le.isUndefined)(this._sysId))throw new Error((0,Qe.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not be defined')+" if system identifier is undefined")}this._pubId=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sysId",{get:function(){return this._sysId},set:function(e){if(!(0,Le.isUndefined)(e)){if(this._validation&&!(0,Le.validateChar)(e))throw new Error((0,Qe.getContext)(this.up())+": DTD system"+(' identifier "'+e+'" should not contain')+" characters not allowed in XML");if(this._validation&&e.indexOf("'")!==-1&&e.indexOf('"')!==-1)throw new Error((0,Qe.getContext)(this.up())+": DTD system"+(' identifier "'+e+'" should not contain')+" both single quotes and double quotes")}this._sysId=e},enumerable:!1,configurable:!0}),t.prototype.attlist=function(e){var r=new Qy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new Ky.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new Zy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entity=function(e){var r=new e1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.notation=function(e){var r=new t1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.paramEntityRef=function(e){var r=new r1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new n1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=new Yy.StringOptions(e),n="<!DOCTYPE "+this._name;if((0,Le.isUndefined)(this._pubId))(0,Le.isUndefined)(this._sysId)||(n+=" ",n=this.appendId("SYSTEM",this._sysId,n,r));else{if((0,Le.isUndefined)(this._sysId))throw new Error((0,Qe.getContext)(this.up())+": DTD system identifier is not undefined");n+=" ",n=this.appendId("PUBLIC",this._pubId,n,r),n=this.appendId("",this._sysId,n,r)}if(this._children.length!==0){n+=" [";for(var i=0,s=this._children;i<s.length;i++){var o=s[i];r.pretty&&(n+=r.newline+r.indent),n+=o.toString()}r.pretty&&(n+=r.newline),n+="]>"}else n+=">";return n},t.prototype.up=function(){return this._parent},t.prototype.appendId=function(e,r,n,i){if(n+=e+" ",i.doubleQuotes){if(this._validation&&r.indexOf('"')!==-1)throw new Error((0,Qe.getContext)(this.up())+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+='"'+r+'"'}else{if(this._validation&&r.indexOf("'")!==-1)throw new Error((0,Qe.getContext)(this)+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+="'"+r+"'"}return n},t}();ct.default=i1;function ld(t){for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(!(r===10||r===13||r===32||r===33||r>=35&&r<=37||r>=39&&r<=47||r>=48&&r<=57||r===58||r===59||r===61||r===63||r>=64&&r<=90||r===95||r>=97&&r<=122))return e+1===t.length,!1}return!0}ct.validatePubId=ld});var Js=y(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});var fd=ae(),zs=Q(),s1=function(){function t(e,r,n){this._validation=r,(0,zs.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,zs.fixChar)(e);else if(this._validation&&!(0,zs.validateChar)(e))throw new Error((0,fd.getContext)(this.up())+": CDATA section"+(' "'+e+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)e=e.replace("]]>","\uFFFD\uFFFD\uFFFD");else if(this._validation&&e.indexOf("]]>")!==-1)throw new Error((0,fd.getContext)(this.up())+": CDATA section"+(' "'+e+'" should not contain the string')+" ']]>'");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<![CDATA["+this._charData+"]]>"},t.prototype.up=function(){return this._parent},t}();Ws.default=s1});var Qs=y(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});var o1=ae(),Vs=Cn(),Ys=Q(),a1=function(){function t(e,r,n){this._validation=r,(0,Ys.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Ys.fixChar)(e);else if(this._validation&&!(0,Ys.validateChar)(e))throw new Error((0,o1.getContext)(this.up())+": character data"+('"'+e+'" should not contain characters not')+" allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this._charData;return e=(0,Vs.escapeAmpersands)(e),e=(0,Vs.escapeLeftAngleBrackets)(e),e=(0,Vs.escapeRightAngleBracketsInCdataTerminator)(e),e},t.prototype.up=function(){return this._parent},t}();Ks.default=a1});var Mn=y(hr=>{"use strict";var ft=hr&&hr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hr,"__esModule",{value:!0});var An=ae(),u1=Mt(),fr=Q(),dd=ft(Dn()),c1=ft(Js()),dr=ft(Qs()),kn=ft(Pn()),l1=ft(lr()),qn=ft(On()),f1=ft(cr()),d1=function(){function t(e,r,n){this._validation=r,(0,fr.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,(0,fr.isUndefined)(n.useSelfClosingTagIfEmpty)?this._useSelfClosingTagIfEmpty=!0:this._useSelfClosingTagIfEmpty=n.useSelfClosingTagIfEmpty,this._children=[],this._attributeNames=[],this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._replaceInvalidCharsInName){if(e=(0,fr.fixName)(e),e.length===0)throw new Error((0,An.getContext)(this.up())+": element name should not be empty")}else if(this._validation&&!(0,fr.validateName)(e))throw e.length===0?new Error((0,An.getContext)(this.up())+": element name should not be empty"):new Error((0,An.getContext)(this.up())+": element name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.attribute=function(e){if(this._validation&&this._attributeNames.indexOf(e.name)!==-1)throw new Error((0,An.getContext)(this.up())+': element "'+this.name+'" already contains an attribute with the'+(' name "'+e.name+'"'));var r=new dd.default(this,this._validation,e);return this._children.push(r),this._attributeNames.push(e.name),r},t.prototype.cdata=function(e){var r=new c1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charData=function(e){var r=new dr.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charRef=function(e){var r=new kn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new l1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new t(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new qn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new f1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){return e===void 0&&(e={}),this.toStringWithIndent(e,"")},t.prototype.up=function(){return this._parent},t.prototype.toStringWithIndent=function(e,r){for(var n=new u1.StringOptions(e),i=r+n.indent,s="<"+this._name,o=[],a=0,u=this._children;a<u.length;a++){var h=u[a];h instanceof dd.default?s+=" "+h.toString(e):o.push(h)}if(o.length>0){for(var c="",p=0;p<o.length;p++){var g=o[p],m="";g instanceof t?m+=g.toStringWithIndent(n,i):m+=g.toString();var b=p>0?o[p-1]:void 0;g instanceof dr.default&&g.toString()===""||(n.pretty&&(this.allSameLineNodes(o)||p>0&&this.onSameLine(g,b)||(m=n.newline+i+m)),c+=m)}n.pretty&&(this.allSameLineNodes(o)||(c+=n.newline+r)),c.length===0&&this._useSelfClosingTagIfEmpty?s+="/>":s+=">"+c+"</"+this._name+">"}else this._useSelfClosingTagIfEmpty?s+="/>":s+="></"+this._name+">";return s},t.prototype.allSameLineNodes=function(e){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!(i instanceof kn.default||i instanceof qn.default||i instanceof dr.default))return!1}return!0},t.prototype.onSameLine=function(e,r){return(e instanceof kn.default||e instanceof qn.default||e instanceof dr.default)&&!(0,fr.isUndefined)(r)&&(r instanceof kn.default||r instanceof qn.default||r instanceof dr.default)},t}();hr.default=d1});var ae=y(Tt=>{"use strict";var Nn=Tt&&Tt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tt,"__esModule",{value:!0});Tt.getContext=void 0;var h1=Nn(Dn()),p1=Nn(jn()),m1=Nn(Rn()),g1=Nn(Mn());function Tn(t){if(t instanceof h1.default)return Tn(t.up())+(' > attribute "'+t.name+'"');if(t instanceof p1.default)return"in XML document";if(t instanceof m1.default)return Tn(t.up())+" > DTD";if(t instanceof g1.default)return Tn(t.up())+(' > element "'+t.name+'"');throw new Error("Unrecognized object of type "+Object.prototype.toString.call(t))}Tt.getContext=Tn});var lr=y(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});var Zs=ae(),eo=Q(),y1=function(){function t(e,r,n){this._validation=r,(0,eo.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,eo.fixChar)(e);else if(this._validation&&!(0,eo.validateChar)(e))throw new Error((0,Zs.getContext)(this.up())+": comment content"+(' "'+e+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)e=e.replace("--","\uFFFD\uFFFD");else if(this._validation&&e.indexOf("--")!==-1)throw new Error((0,Zs.getContext)(this.up())+": comment content"+(' "'+e+'" should not contain the string')+" '--'");if(this._replaceInvalidCharsInCharData)e.lastIndexOf("-")===e.length-1&&(e=e.substr(0,e.length-1)+"\uFFFD");else if(this._validation&&e.lastIndexOf("-")===e.length-1)throw new Error((0,Zs.getContext)(this.up())+": comment content"+(' "'+e+'" should not end with the string')+" '-'");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!--"+this._charData+"-->"},t.prototype.up=function(){return this._parent},t}();to.default=y1});var io=y(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});var ro=ae(),v1=Mt(),pr=Q(),b1=function(){function t(e,r,n){this._version="1.0",this._validation=r,this._parent=e,this.encoding=n.encoding,this.standalone=n.standalone,(0,pr.isUndefined)(n.version)||(this.version=n.version)}return Object.defineProperty(t.prototype,"encoding",{get:function(){return this._encoding},set:function(e){if(this._validation&&!(0,pr.isUndefined)(e)&&!_1(e))throw new Error((0,ro.getContext)(this.up())+": declaration"+(" encoding attribute "+e+" should be a")+" valid encoding");this._encoding=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"standalone",{get:function(){return this._standalone},set:function(e){if(this._validation&&!(0,pr.isUndefined)(e)&&e!=="yes"&&e!=="no")throw new Error((0,ro.getContext)(this.up())+": declaration"+(" standalone attribute "+e+" should")+" be the string 'yes' or the string 'no'");this._standalone=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},set:function(e){if(this._validation&&!w1(e))throw new Error((0,ro.getContext)(this.up())+": declaration version"+(" attribute "+e+" should be a valid XML")+" version");this._version=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){e===void 0&&(e={});var r=new v1.StringOptions(e),n=r.doubleQuotes?'"':"'",i="<?xml version="+n+this._version+n;return(0,pr.isUndefined)(this._encoding)||(i+=" encoding="+n+this._encoding+n),(0,pr.isUndefined)(this._standalone)||(i+=" standalone="+n+this._standalone+n),i+="?>",i},t.prototype.up=function(){return this._parent},t}();no.default=b1;function _1(t){if(t.length===0)return!1;var e=t.charCodeAt(0);if(!(e>=65&&e<=90||e>=97&&e<=122))return!1;for(var r=1;r<t.length;r++){var n=t.charCodeAt(r);if(!(n===95||n===45||n===46||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122))return r+1===t.length,!1}return!0}function w1(t){for(var e=0;e<=9;e++)if(t==="1."+e)return!0;return!1}});var jn=y(gr=>{"use strict";var yr=gr&&gr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gr,"__esModule",{value:!0});var x1=Mt(),S1=Q(),E1=yr(lr()),hd=yr(io()),pd=yr(Rn()),mr=yr(Mn()),C1=yr(cr()),P1=function(){function t(e){this._children=[],this._validation=(0,S1.isUndefined)(e.validation)?!0:e.validation}return t.prototype.comment=function(e){var r=new E1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.decl=function(e){if(e===void 0&&(e={}),this._validation&&this._children.length!==0)throw new Error("in XML document: declaration must be the first child");var r=new hd.default(this,this._validation,e);return this._children.push(r),r},t.prototype.dtd=function(e){var r=this._children.filter(function(i){return i instanceof mr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: DTD must precede the root element");var n=new pd.default(this,this._validation,e);return this._children.push(n),n},t.prototype.element=function(e){var r=this._children.filter(function(i){return i instanceof mr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: only one root element is permitted");var n=new mr.default(this,this._validation,e);return this._children.push(n),n},t.prototype.procInst=function(e){var r=new C1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=this._children.filter(function(h){return h instanceof mr.default});if(this._validation&&r.length!==1)throw new Error("in XML document: no more than one root element is permitted");for(var n=new x1.StringOptions(e),i="",s=0,o=this._children;s<o.length;s++){var a=o[s];a instanceof hd.default||a instanceof pd.default||a instanceof mr.default?i+=a.toString(e):i+=a.toString(),n.pretty&&(i+=n.newline)}var u=i.length-n.newline.length;return i.substr(u)===n.newline&&(i=i.substr(0,u)),i},t}();gr.default=P1});var md=y(k=>{"use strict";var ee=k&&k.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(k,"__esModule",{value:!0});k.document=k.XmlProcInst=k.XmlEntityRef=k.XmlElement=k.XmlDtdParamEntityRef=k.XmlDtdNotation=k.XmlDtdEntity=k.XmlDtdElement=k.XmlDtdAttlist=k.XmlDtd=k.XmlDocument=k.XmlDecl=k.XmlComment=k.XmlCharRef=k.XmlCharData=k.XmlCdata=k.XmlAttributeText=k.XmlAttribute=void 0;var O1=ee(jn()),D1=Dn();Object.defineProperty(k,"XmlAttribute",{enumerable:!0,get:function(){return ee(D1).default}});var I1=Is();Object.defineProperty(k,"XmlAttributeText",{enumerable:!0,get:function(){return ee(I1).default}});var F1=Js();Object.defineProperty(k,"XmlCdata",{enumerable:!0,get:function(){return ee(F1).default}});var R1=Qs();Object.defineProperty(k,"XmlCharData",{enumerable:!0,get:function(){return ee(R1).default}});var A1=Pn();Object.defineProperty(k,"XmlCharRef",{enumerable:!0,get:function(){return ee(A1).default}});var k1=lr();Object.defineProperty(k,"XmlComment",{enumerable:!0,get:function(){return ee(k1).default}});var q1=io();Object.defineProperty(k,"XmlDecl",{enumerable:!0,get:function(){return ee(q1).default}});var M1=jn();Object.defineProperty(k,"XmlDocument",{enumerable:!0,get:function(){return ee(M1).default}});var T1=Rn();Object.defineProperty(k,"XmlDtd",{enumerable:!0,get:function(){return ee(T1).default}});var N1=Ts();Object.defineProperty(k,"XmlDtdAttlist",{enumerable:!0,get:function(){return ee(N1).default}});var j1=js();Object.defineProperty(k,"XmlDtdElement",{enumerable:!0,get:function(){return ee(j1).default}});var L1=$s();Object.defineProperty(k,"XmlDtdEntity",{enumerable:!0,get:function(){return ee(L1).default}});var $1=Us();Object.defineProperty(k,"XmlDtdNotation",{enumerable:!0,get:function(){return ee($1).default}});var B1=Hs();Object.defineProperty(k,"XmlDtdParamEntityRef",{enumerable:!0,get:function(){return ee(B1).default}});var U1=Mn();Object.defineProperty(k,"XmlElement",{enumerable:!0,get:function(){return ee(U1).default}});var X1=On();Object.defineProperty(k,"XmlEntityRef",{enumerable:!0,get:function(){return ee(X1).default}});var H1=cr();Object.defineProperty(k,"XmlProcInst",{enumerable:!0,get:function(){return ee(H1).default}});function G1(t){return t===void 0&&(t={}),new O1.default(t)}k.document=G1});var so=y(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.stringify=te.isMap=te.isSet=te.isFunction=te.isArray=te.isObject=te.isNull=te.isUndefined=void 0;function gd(t){return Object.prototype.toString.call(t)==="[object Undefined]"}te.isUndefined=gd;function yd(t){return Object.prototype.toString.call(t)==="[object Null]"}te.isNull=yd;function z1(t){return Object.prototype.toString.call(t)==="[object Object]"}te.isObject=z1;function W1(t){return Object.prototype.toString.call(t)==="[object Array]"}te.isArray=W1;function vd(t){return Object.prototype.toString.call(t)==="[object Function]"}te.isFunction=vd;function J1(t){return Object.prototype.toString.call(t)==="[object Set]"}te.isSet=J1;function V1(t){return Object.prototype.toString.call(t)==="[object Map]"}te.isMap=V1;function Y1(t){return!gd(t)&&!yd(t)&&vd(t?.toString)&&(t=t.toString()),String(t)}te.stringify=Y1});var Ed=y(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.WrapHandlers=Ee.TypeHandlers=Ee.FormatOptions=Ee.DtdOptions=Ee.DeclarationOptions=Ee.Options=void 0;var Ne=so(),K1=function(){function t(e){e===void 0&&(e={}),this.aliasString="=",this.attributeString="@",this.cdataInvalidChars=!1,this.cdataKeys=[],this.replaceInvalidChars=!1,this.useSelfClosingTagIfEmpty=!0,this.validation=!0,this.valueString="#",(0,Ne.isUndefined)(e.validation)||(this.validation=e.validation),(0,Ne.isUndefined)(e.aliasString)||(this.aliasString=e.aliasString),(0,Ne.isUndefined)(e.attributeString)||(this.attributeString=e.attributeString),(0,Ne.isUndefined)(e.cdataInvalidChars)||(this.cdataInvalidChars=e.cdataInvalidChars),(0,Ne.isUndefined)(e.cdataKeys)||(this.cdataKeys=e.cdataKeys),this.declaration=new bd(e.declaration),this.dtd=new _d(this.validation,e.dtd),this.format=new wd(e.format),(0,Ne.isUndefined)(e.replaceInvalidChars)||(this.replaceInvalidChars=e.replaceInvalidChars),this.typeHandlers=new xd(e.typeHandlers),(0,Ne.isUndefined)(e.useSelfClosingTagIfEmpty)||(this.useSelfClosingTagIfEmpty=e.useSelfClosingTagIfEmpty),(0,Ne.isUndefined)(e.valueString)||(this.valueString=e.valueString),this.wrapHandlers=new Sd(e.wrapHandlers)}return t}();Ee.Options=K1;var bd=function(){function t(e){e===void 0&&(e={}),this.include=!0,(0,Ne.isUndefined)(e.include)||(this.include=e.include),this.encoding=e.encoding,this.standalone=e.standalone,this.version=e.version}return t}();Ee.DeclarationOptions=bd;var _d=function(){function t(e,r){if(r===void 0&&(r={}),this.include=!1,(0,Ne.isUndefined)(r.include)||(this.include=r.include),e&&(0,Ne.isUndefined)(r.name)&&this.include)throw new Error("options.dtd.name should be defined if options.dtd.include is true");this.name=r.name,this.sysId=r.sysId,this.pubId=r.pubId}return t}();Ee.DtdOptions=_d;var wd=function(){function t(e){e===void 0&&(e={}),this.doubleQuotes=e.doubleQuotes,this.indent=e.indent,this.newline=e.newline,this.pretty=e.pretty}return t}();Ee.FormatOptions=wd;var xd=function(){function t(e){e===void 0&&(e={});for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this[r]=e[r])}return t}();Ee.TypeHandlers=xd;var Sd=function(){function t(e){e===void 0&&(e={});for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this[r]=e[r])}return t}();Ee.WrapHandlers=Sd});var Fd=y(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.parse=Ze.parseToExistingElement=Ze.Absent=void 0;var Pd=md(),Od=Ed(),V=so(),oo=function(){function t(){}return Object.defineProperty(t,"instance",{get:function(){return t._instance},enumerable:!1,configurable:!0}),t._instance=new t,t}();Ze.Absent=oo;function ao(t,e){var r=Object.prototype.toString.call(t),n;return Object.prototype.hasOwnProperty.call(e.typeHandlers,"*")&&(n=e.typeHandlers["*"]),Object.prototype.hasOwnProperty.call(e.typeHandlers,r)&&(n=e.typeHandlers[r]),n}function Dd(t,e,r){var n=function(o){return r.cdataInvalidChars&&(o.indexOf("<")!==-1||o.indexOf("&")!==-1)||r.cdataKeys.indexOf(e.name)!==-1||r.cdataKeys.indexOf("*")!==-1};if(e instanceof Pd.XmlElement)if(n(t))for(var i=t.split("]]>"),s=0;s<i.length;s++)n(i[s])?e.cdata({charData:i[s],replaceInvalidCharsInCharData:r.replaceInvalidChars}):e.charData({charData:i[s],replaceInvalidCharsInCharData:r.replaceInvalidChars}),s<i.length-1&&e.charData({charData:"]]>",replaceInvalidCharsInCharData:r.replaceInvalidChars});else e.charData({charData:t,replaceInvalidCharsInCharData:r.replaceInvalidChars});else e.text({charData:t,replaceInvalidCharsInCharData:r.replaceInvalidChars})}function Q1(t,e,r,n){var i=r.attribute({name:t,replaceInvalidCharsInName:n.replaceInvalidChars});Dd((0,V.stringify)(e),i,n)}function Cd(t,e,r,n){if(t===n.aliasString){r.name=(0,V.stringify)(e);return}if(t.indexOf(n.attributeString)===0&&(0,V.isObject)(e)){for(var i=0,s=Object.keys(e);i<s.length;i++){var o=s[i];Q1(o,(0,V.stringify)(e[o]),r,n)}return}if(t.indexOf(n.valueString)===0){Ln(t,(0,V.stringify)(e),r,n);return}var a=r;if(!(0,V.isArray)(e)&&!(0,V.isSet)(e)){var u=ao(e,n);if(!(0,V.isUndefined)(u)&&u(e)===oo.instance)return;a=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}Ln(t,e,a,n)}function Z1(t,e,r){if((0,V.isMap)(t))t.forEach(function(o,a){Cd((0,V.stringify)(a),o,e,r)});else for(var n=0,i=Object.keys(t);n<i.length;n++){var s=i[n];Cd(s,t[s],e,r)}}function ev(t,e,r,n){var i;Object.prototype.hasOwnProperty.call(n.wrapHandlers,"*")&&(i=n.wrapHandlers["*"]),Object.prototype.hasOwnProperty.call(n.wrapHandlers,t)&&(i=n.wrapHandlers[t]);var s=t,o=r;if(!(0,V.isUndefined)(i)){var a=i(s,e);(0,V.isNull)(a)||(s=a,o=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty}))}e.forEach(function(u){var h=o;if(!(0,V.isArray)(u)&&!(0,V.isSet)(u)){var c=ao(u,n);if(!(0,V.isUndefined)(c)&&c(u)===oo.instance)return;h=o.element({name:s,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}Ln(s,u,h,n)})}function Ln(t,e,r,n){var i=ao(e,n);if((0,V.isUndefined)(i)||(e=i(e)),(0,V.isObject)(e)||(0,V.isMap)(e)){Z1(e,r,n);return}if((0,V.isArray)(e)||(0,V.isSet)(e)){ev(t,e,r,n);return}Dd((0,V.stringify)(e),r,n)}function Id(t,e,r){var n=new Od.Options(r);Ln(t.name,e,t,n)}Ze.parseToExistingElement=Id;function tv(t,e,r){var n=new Od.Options(r),i=new Pd.XmlDocument({validation:n.validation});n.declaration.include&&i.decl(n.declaration),n.dtd.include&&i.dtd({name:n.dtd.name,pubId:n.dtd.pubId,sysId:n.dtd.sysId});var s=i.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty});return Id(s,e,r),i.toString(n.format)}Ze.parse=tv});var co=$(require("node:path"));var Tr=$(require("node:crypto")),rt=$(require("node:fs")),si=$(require("node:path")),oi=$(vt()),Nr=si.default.resolve(__dirname,"./../apiCache"),bu=`${Nr}/siteHash.json`;function _u(){rt.default.existsSync(Nr)||rt.default.mkdirSync(Nr),console.info("Cache initialized")}function wu(t){let e=Tr.default.createHash("sha256");return e.update(JSON.stringify(t)),`${Nr}/${e.digest("hex")}`}function xu(t){let e=Tr.default.randomBytes(16).toString("hex"),r=Tr.default.createHash("sha256");return r.update(`${t}${e}`),r.digest("hex")}function Su(t,e){let r=typeof e=="string"?e:JSON.stringify(e),n=wu(t),i=si.default.dirname(n);rt.default.existsSync(i)||rt.default.mkdirSync(i,{recursive:!0}),rt.default.writeFileSync(n,r,"utf8")}function Eu(t){try{let e=wu(t);return oi.default.readJSONSync(e,{encoding:"utf-8"})}catch{return null}}function tp(){try{return oi.default.readJSONSync(bu,{encoding:"utf-8"})||{}}catch{return{}}}function Cu(t,e){let r=tp(),n=r[t],i=e||n||new Date().valueOf();return i!==n&&(r[t]=i,rt.default.writeFileSync(bu,JSON.stringify(r),{encoding:"utf-8"})),i.toString()}var vm=$(Hr()),dl=$(St()),Ye=$(vt()),bm=$(Gc()),Ni=$(ll());var fl="10.3.21";dl.default.config();var _m=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS),kb=Ni.default.sync(__dirname),qb=Ni.default.sync();function ji(t){let e=t.length,r=t.length+2,n=" ".repeat(Math.floor((r-e)/2)),i=`\u256D${"\u2500".repeat(r)}\u256E
23
23
  `,s=`
24
- \u2570${"\u2500".repeat(r)}\u256F`,o=`\u2502${n}${t}${n}\u2502`;console.log(`${i}${o}${s}`)}function qe(t){_m&&console.info(t.replace(/(\s)\s+/g,"$1"))}function hl(t){return new Promise(e=>setTimeout(e,t))}function Li(t,e=3){return(t/1e3).toFixed(e)}function $i(t){return"site"in t&&t.site?t?.site:void 0}function Bi(t,e){for(let r in t)e.includes(r)?delete t[r]:typeof t[r]=="object"&&Bi(t[r],e)}function Ui(t){return t.map(({name:e,id:r})=>`${e} (${r})`).join(", ")}function pl(t){let e=Ve.default.readdirSync(t),r={},n=e.filter(s=>{let o=`${t}/${s}`,a=Ve.default.readJSONSync(o,"utf-8"),{id:u,entity:h,fullUrl:c}=a;return!!(u&&h&&c)});for(let s of n){let o=`${t}/${s}`,a=Ve.default.readJSONSync(o,"utf-8"),u=Ve.default.statSync(o).mtimeMs,{id:h}=a;(!r[h]||u>Ve.default.statSync(`${t}/${r[h]}`).mtimeMs)&&(r[h]=s)}let i=0;for(let s of n){let o=`${t}/${s}`,a=Ve.default.readJSONSync(o,"utf-8"),{id:u}=a;s!==r[u]&&(Ve.default.unlinkSync(o),i++)}console.log(`Sanitize apiCache folder for ${i} files`)}var vr=$(require("node:fs")),Nd=$(require("node:fs/promises")),jt=$(require("node:path")),jd=$(St()),$n=$(vt()),Ld=$(Ai());var Vf=$(St());var zf=$(gs()),Wf=$(Hr()),Jf=$(St());var Xf=$(gs()),Hf=$(Hr()),ys=class{user;password;baseUrl;headers;constructor(){this.user=process.env.botEmail,this.password=process.env.botPassword,this.baseUrl=process.env.API_URL}async login(){try{let e=await(0,Xf.default)({url:`${this.baseUrl}/login_check`,method:"POST",headers:{"Content-Type":"application/json"},data:{username:this.user,password:this.password}});if(e.status===200){let{data:{token:r}}=e;this.headers={Authorization:"bearer "+r,"Cache-Control":"no-store"}}return this.headers}catch{console.error(Hf.default.red(`
24
+ \u2570${"\u2500".repeat(r)}\u256F`,o=`\u2502${n}${t}${n}\u2502`;console.log(`${i}${o}${s}`)}function Me(t){_m&&console.info(t.replace(/(\s)\s+/g,"$1"))}function hl(t){return new Promise(e=>setTimeout(e,t))}function Li(t,e=3){return(t/1e3).toFixed(e)}function $i(t){return"site"in t&&t.site?t?.site:void 0}function Bi(t,e){for(let r in t)e.includes(r)?delete t[r]:typeof t[r]=="object"&&Bi(t[r],e)}function Ui(t){return t.map(({name:e,id:r})=>`${e} (${r})`).join(", ")}function pl(t){let e=Ye.default.readdirSync(t),r={},n=e.filter(s=>{let o=`${t}/${s}`,a=Ye.default.readJSONSync(o,"utf-8"),{id:u,entity:h,fullUrl:c}=a;return!!(u&&h&&c)});for(let s of n){let o=`${t}/${s}`,a=Ye.default.readJSONSync(o,"utf-8"),u=Ye.default.statSync(o).mtimeMs,{id:h}=a;(!r[h]||u>Ye.default.statSync(`${t}/${r[h]}`).mtimeMs)&&(r[h]=s)}let i=0;for(let s of n){let o=`${t}/${s}`,a=Ye.default.readJSONSync(o,"utf-8"),{id:u}=a;s!==r[u]&&(Ye.default.unlinkSync(o),i++)}console.log(`Sanitize apiCache folder for ${i} files`)}var vr=$(require("node:fs")),Nd=$(require("node:fs/promises")),jt=$(require("node:path")),jd=$(St()),$n=$(vt()),Ld=$(Ai());var Vf=$(St());var zf=$(gs()),Wf=$(Hr()),Jf=$(St());var Xf=$(gs()),Hf=$(Hr()),ys=class{user;password;baseUrl;headers;constructor(){this.user=process.env.botEmail,this.password=process.env.botPassword,this.baseUrl=process.env.API_URL}async login(){try{let e=await(0,Xf.default)({url:`${this.baseUrl}/login_check`,method:"POST",headers:{"Content-Type":"application/json"},data:{username:this.user,password:this.password}});if(e.status===200){let{data:{token:r}}=e;this.headers={Authorization:"bearer "+r,"Cache-Control":"no-store"}}return this.headers}catch{console.error(Hf.default.red(`
25
25
  \u256D\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256E
26
26
  \u2502 Access credentials failure \u2502
27
27
  \u2502 Check that the login details are correct in your .env file \u2502
28
28
  \u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256F
29
- `)),process.exit(1)}}},bn=new ys;Jf.default.config();var{env:{RETRY_WAIT_SECONDS:Vg="4",RETRY_ATTEMPTS:Gf="4"}}=process;async function vs(t,e,r=""){let{endpoint:n,body:i,cacheKey:s="",attempt:o=1,headers:a}=t,u={endpoint:n,body:i,headers:a,cacheKey:s};if(s){let h=new Date,c=Eu(u);if(c){let p=$i(c),g=p?`site: ${p}`:"",m=Li(new Date().getTime()-h.getTime());return qe(`${e} (cache) ${g} ${n} - ${m}s ${r}`),c}}try{let h=new Date,{data:c}=await(0,zf.default)({url:n,method:e,headers:Object.assign({},a,bn.headers),data:i}),p=$i(c),g=p?`site: ${p}`:"",m=Li(new Date().getTime()-h.getTime());return qe(`${e} (fetch) ${g} ${n} - ${m}s ${r}`),Su(u,c),c}catch(h){let c=h;return c.response?.status===404?null:(o>parseInt(Gf)&&(console.log(`
29
+ `)),process.exit(1)}}},bn=new ys;Jf.default.config();var{env:{RETRY_WAIT_SECONDS:Vg="4",RETRY_ATTEMPTS:Gf="4"}}=process;async function vs(t,e,r=""){let{endpoint:n,body:i,cacheKey:s="",attempt:o=1,headers:a}=t,u={endpoint:n,body:i,headers:a,cacheKey:s};if(s){let h=new Date,c=Eu(u);if(c){let p=$i(c),g=p?`site: ${p}`:"",m=Li(new Date().getTime()-h.getTime());return Me(`${e} (cache) ${g} ${n} - ${m}s ${r}`),c}}try{let h=new Date,{data:c}=await(0,zf.default)({url:n,method:e,headers:Object.assign({},a,bn.headers),data:i}),p=$i(c),g=p?`site: ${p}`:"",m=Li(new Date().getTime()-h.getTime());return Me(`${e} (fetch) ${g} ${n} - ${m}s ${r}`),Su(u,c),c}catch(h){let c=h;return c.response?.status===404?null:(o>parseInt(Gf)&&(console.log(`
30
30
  Max attempts ${Gf} reached
31
31
  --------------------------------------
32
32
  - ${e.toUpperCase()} ${n}
@@ -50,4 +50,4 @@ ${p}
50
50
  ${g}
51
51
 
52
52
  =============
53
- `))}Vf.default.config();var bs=process.env.API_URL,Ye=`${bs}/site/`,Be={GET_ALL:`${bs}/sites/all`,GET_PAGE:[`${bs}/page/`,""],INFO:[`${Ye}`,"/all"],LANGUAGES:[`${Ye}`,"/languages"],BUILD_START:[`${Ye}`,"/build/start"],BUILD_END:[`${Ye}`,"/build/end"],GET_DISTRIBUTOR_DATA:[`${Ye}`,"/distributor"],GET_SITEMAP:[`${Ye}`,"/sitemap"],SOCIALS:[`${Ye}`,"/socials"],GET_PAGES:[`${Ye}`,"/pages?pagination=false"]},ye=class{static async getAll(){let{GET_ALL:e}=Be;return await je({endpoint:e})}static async getPage(e,r){let{GET_PAGE:[n,i]}=Be;return await je({endpoint:`${n}${e}${i}`,cacheKey:r})}static async getInfo(e,r=""){let{INFO:[n,i]}=Be;return await je({endpoint:`${n}${e}${i}`,cacheKey:r})}static async getLanguages(e,r=""){let{LANGUAGES:[n,i]}=Be;return await je({endpoint:`${n}${e}${i}`,cacheKey:r})}static async startSiteRender(e){let{BUILD_START:[r,n]}=Be;return await je({endpoint:`${r}${e}${n}`})}static async endSiteRender(e,r){let{BUILD_END:[n,i]}=Be;return await ut({endpoint:`${n}${e}${i}`,body:r})}static async getDistributorData(e,r,n,i,s){let{GET_DISTRIBUTOR_DATA:[o,a]}=Be,u=i||e.site,h=s||e.language;return await ut({endpoint:`${o}${u}${a}`,body:r,headers:{lang:h},cacheKey:n})}static async getSitemap(e){let{GET_SITEMAP:[r,n]}=Be;return await je({endpoint:`${r}${e}${n}`})}static async getSocials(e,r=""){let{SOCIALS:[n,i]}=Be;return await je({endpoint:`${n}${e}${i}`,cacheKey:r})}};var _n=class{static getBody(e,r){let{order:n,sources:i,quantity:s,mode:o,fixed:a,fullRelations:u=!1,allLanguages:h=!1,preferenceLanguage:c=!1,referenceId:p}=e;return o==="auto"?{mode:o,order:n,sources:i,quantity:s,fullRelations:u,allLanguages:h,preferenceLanguage:c}:o==="manual"?{mode:o,fixed:a,fullRelations:u}:o==="navigation"?{mode:o,order:n,quantity:s,fullRelations:u,referenceId:p||r?.structuredDataContent?.id}:(console.log(`Error: Distribuidor mode: ${o} is not recognized on page ${r?.id}.`),e)}static async fetchContentTypeData(e){let{page:r,component:{data:n},cacheKey:i}=e;if(!n)return ji(`Error: Page ${r.id} has \`hasDistributorData: true\` but it doesn't have a \`data\` prop`),[];if(Array.isArray(n.sources)&&n.sources.length<1)return ji(`Warning: Page with id: ${r.id} has a ReferenceField with empty \`data.sources\``),[];let{site:s,lang:o}=n,a=this.getBody(n,r);return await ye.getDistributorData(r,a,i,s,o)}static async getDistributorData({page:e,cacheKey:r=""}){try{let{template:n}=e,i=async(a,u=1)=>{if(!(!a||typeof a!="object")&&JSON.stringify(a).includes('"hasDistributorData":true'))for(let h in a){if(h==="queriedItems")continue;let p=a[h];!p||typeof p!="object"||(p.hasDistributorData&&(p.queriedItems=await this.fetchContentTypeData({page:e,cacheKey:r,component:p})),await i(p,u+1))}};return await(async a=>(await i([a]),a))(n)}catch(n){console.error(`Error en get distributor ${n}`),process.exit(1)}}};var wn=class{_defaultHeaders;_defaultFooters;_navigations;constructor(){this._navigations={footers:[],headers:[]},this._defaultHeaders={},this._defaultFooters={}}set navigations(e){this._navigations=e,this._defaultFooters=this.getDefaultFooters(),this._defaultHeaders=this.getDefaultHeaders()}get navigations(){return this._navigations}getDefaultFooters(){return[...this.navigations.footers].filter(i=>!!i.setAsDefault).reduce((i,s)=>{let{language:o}=s;return{...i,[o]:s}},{})}getDefaultHeaders(){return[...this.navigations.headers].filter(i=>!!i.setAsDefault).reduce((i,s)=>{let{language:o}=s;return{...i,[o]:s}},{})}getRightLanguage(e,r,n){if(!e||!r)return null;let s=e.find(o=>o.language===n&&o.navigationLanguages?.find(a=>a.navigationId===r))||e.find(o=>o.id===r);return s?{...s}:null}getPageHeader(e,r){return this.getRightLanguage(this.navigations.headers,e,r)}getPageFooter(e,r){return this.getRightLanguage(this.navigations.footers,e,r)}getPageNavigations(e){let{header:r,footer:n,language:i,template:{templateType:s},templateConfig:{defaultHeader:o,defaultFooter:a,templates:u}}=e,h=b=>{let S=b.find(O=>typeof O=="number");return typeof S=="number"?S:null},c=h([r,u?.[s]?.defaultHeader,o]),p=h([n,u?.[s]?.defaultFooter,a]),g=c?this.getPageHeader(c,i):c===0?null:this._defaultHeaders[i],m=p?this.getPageFooter(p,i):p===0?null:this._defaultFooters[i];return{header:g,footer:m}}};var _s=class{baseURL;settings;ENDPOINTS;constructor(){this.baseURL=process.env.API_URL,this.settings={cloudinaryName:"",useMetaTitle:!1,useMetaKeywords:!1,showBasicMetaRobots:!1,avoidHrefLangsOnCanonicals:!1,avoidSelfReferenceCanonicals:!1,avoidHrefLangXDefault:!1,avoidDebugMetas:!1},this.ENDPOINTS={settings:`${this.baseURL}/settings`,resetRender:`${this.baseURL}/debug/reset-render`}}async getAll(){let{settings:e}=this.ENDPOINTS,r=await je({endpoint:e});this.settings=r}async resetRender(){let{resetRender:e}=this.ENDPOINTS;await ut({endpoint:e})}},ws=new _s;var xs=$(require("node:path")),ar=$(vt());async function xn(t){for await(let e of t)for(let r of e.domains){let n=Object.values(r)[0],i=xs.default.resolve(__dirname,`../../dist${n}`),s=xs.default.resolve(__dirname,`../../assets/page-data${n}`);if(qe(`Site dir ${i}`),qe(`Page data dir ${s}`),!ar.default.existsSync(i))return;try{await ar.default.rm(i,{recursive:!0}),qe(`${i} is deleted!`)}catch(o){console.log(o)}if(!ar.default.existsSync(s))return;try{await ar.default.rm(s,{recursive:!0}),console.info(`${s} is deleted!`)}catch(o){console.log(o)}}}var Cs=$(require("node:fs")),Zf=$(require("node:path")),ed=$(St());var Kg=process.env.API_URL;async function Yf(t){let{title:e,description:r,image:n,pageId:i,languageId:s,siteId:o,url:a,content:u,template:h}=t;return await ut({endpoint:`${Kg}/search`,body:{title:e,description:r,image:n,pageId:i,languageId:s,siteId:o,url:a,template:h,content:Qg(u)}})}function Qg(t){let e=Zg(["meta","link","style","script","noscript","nav","header","footer"],t),r=ey(e);return ty(r)}function Zg(t,e){let r=e;return t.forEach(n=>{r=r.replace(new RegExp(`<${n}.*?>.*?</${n}>`,"gis")," ").replace(new RegExp(`(<${n}([^>]+)>)`,"gis")," ")}),r}function ey(t){return t.replace(/(<([^>]+)>)/gis," ")}function ty(t){return t.replace(/\s+/g," ")}function Ss(t,e,r,n="jpg"){let i=typeof t=="string"?t:t?.url;return i?i.split("/")[2].includes("cloudinary.com")?ny(i,`c_fill,w_${e},h_${r}`):ry(i,`f/${n}/w/${e}/h/${r}`):null}function ry(t,e){let r=t.split("/"),n=r.slice(0,-1).join("/"),i=r.slice(-1)[0];return`${n}/${e}/${i}`}function ny(t,e){let r=t.replace("https://",""),n=r.split("/").slice(0,4).join("/"),i=r.replace(n,"");return`https://${n}/${e}${i}`}ed.default.config();var iy=!!JSON.parse(process.env.GRIDDO_SEARCH_FEATURE||"false"),sy=JSON.parse(process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH||"false"),oy=25;function ay({socialTitle:t,socialDescription:e,socialImage:r}){return{type:"website",title:t,description:e,image:r?Ss(r,1280,768):"",twitterImage:r?Ss(r,1280,768):""}}function uy(t){let{title:e,metaTitle:r,metaDescription:n,canonicalURL:i,locale:s,url:o,isIndexed:a,follow:u,metasAdvanced:h,pageLanguages:c,fullUrl:p,metaKeywords:g}=t,m=h?.split(",").filter(Boolean).map(b=>b.trim().toLowerCase())||[];return{title:(r||e||"").trim(),description:n,canonical:i&&i.trim()&&i!==p?i.trim():a?p:void 0,locale:s,url:o,index:a?"index":"noindex",follow:u?"follow":"nofollow",translate:m.includes("notranslate")?"notranslate":"",metasAdvanced:m.filter(b=>b!=="notranslate").join(),pageLanguages:c,metaKeywords:g?.filter(Boolean).map(b=>b.replace(/"/g,"'")).join(", ")}}async function Ps(t,e,r=!1){let{id:n,title:i,fullPath:s,language:o,breadcrumb:a,socialDescription:u,socialImage:h,socialTitle:c}=t,{baseUrl:p,BUILD_MODE:g,cloudinaryName:m,griddoVersion:b,siteLangs:S,siteMetadata:O,siteOptions:R,siteScript:L,siteSlug:B,socials:G,theme:Y,navigations:{header:de,footer:De}}=e;t.breadcrumb=a,t.siteSlug=B,t.apiUrl=p,t.publicApiUrl=e.publicBaseUrl,t.instance=e.instance;let D=S.find(({id:P})=>P===t?.language)?.locale.replace(/_/g,"-"),q=uy(t),k=ay({socialDescription:u,socialImage:h,socialTitle:c}),U=sy?s.compose:`${s.domain}${s.compose}`,I=new Date().toString(),j={path:U,size:void 0,context:{id:n,title:i,fullPath:s,locale:D,languageId:o,theme:Y,siteMetadata:O,pageMetadata:q,openGraph:k,socials:G,siteLangs:S,cloudinaryName:m,siteOptions:R,BUILD_MODE:g,griddoVersion:b,renderDate:I,siteScript:L,header:de,footer:De,page:t}};if(iy&&!r){let P=Zf.default.resolve(__dirname,"../../dist/",`./${U}index.html`),T=Cs.default.existsSync(P)?Cs.default.readFileSync(P).toString():"";await Yf({title:i,description:k.description||"",image:k.image||"",pageId:n,languageId:o,template:t?.template?.templateType||t?.templateId||null,siteId:t.site,url:t.fullUrl,content:T})}return j}async function td(t,e){return await Ps(t,e)}async function rd({page:t,pages:e,isRoot:r=!1,defaultLang:n,template:i,totalQueriedItems:s},o){let a=e.map(async(u,h)=>{let c=h===0,p=h+1,{domainUrl:g,compose:m}=t.fullPath,b={...t,fullPath:{...t.fullPath,compose:Es(m,p,{addEndingSlash:!0})},fullUrl:Es(t.fullUrl,p,{addEndingSlash:!0}),slug:Es(t.slug,p),title:Qf(t.title,p),metaTitle:Qf(t.metaTitle||"",p),disableHrefLangs:p>1,template:{...i,isFirstPage:c,pageNumber:p,totalPages:e.length,baseLink:`${g}${m}`,queriedItems:u,totalQueriedItems:s?.length},isRoot:r,defaultLang:n};return await Ps(b,o,!c)});return Promise.all(a)}function nd(t,e){let{multiPageElements:r,...n}=t,i=JSON.parse(JSON.stringify(r));i.find(({sectionSlug:o})=>o==="/")||i.push({});let s=i.map(async o=>{let a=JSON.parse(JSON.stringify(n)),{sectionSlug:u="/",title:h="",metaTitle:c="",metaDescription:p=""}=o,g=typeof h=="string"?h:h.content,m=a.fullPath.compose||"",b=a.fullUrl.endsWith("/")?a.fullUrl.slice(0,-1):a.fullUrl,S=u?.replace(/\//g,""),R=u==="/"?S:S+"/",L=m.endsWith("/")?"":"/",B=`${m}${L}${R}`;return g.trim()&&(a.title=g),p.trim()&&(a.metaDescription=p),a.fullUrl=`${b}/${R}`,a.fullPath.compose=B,a.slug=B,a.template.activeSectionSlug=u,a.template.activeSectionBase=b,a.metaTitle=c.trim()||g.trim()||a.metaTitle,await Ps(a,e)});return Promise.all(s)}function id(t){return new Promise(r=>{let n=(i,s=0)=>{if(!(!i||typeof i!="object")){for(let o in i){let a=i[o],u=a||typeof a=="object",h=JSON.stringify(a).includes('"hasGriddoMultiPage":true');if(!u||!h)continue;let{component:c,hasGriddoMultiPage:p,elements:g}=a;c&&p&&r(g||[]),n(a,s+1)}s||r(null)}};n([t])})}function cy(t,e,r){return e?.slice(t*(r-1),t*r)}function ly(t,e){let r=Math.ceil(e.length/t)||1;return Array.from({length:r},(i,s)=>s+1)?.map(i=>cy(t,e,i))}function sd(t){let e=t.queriedItems||[],r=t?.itemsPerPage||oy;return ly(r,e)}function Kf(t){return t.replace(/\/+$/,"/")}function Es(t,e,r){let n=t.endsWith("/")?"":"/",i=r?.addEndingSlash?"/":"";return e<=1?Kf(`${t}${i}`):Kf(`${t}${n}${e}${i}`)}function Qf(t,e){return!t||e<=1?t:`${t} - ${e}`}var rv=$(vt()),nv=$(Fd());var iv=process.env.API_URL,sv=!!process.env.GRIDDO_RENDER_ALL_SITES||!!process.env.updateAllSites,Nt=process.env.GRIDDO_RENDER_SITE&&parseInt(process.env.GRIDDO_RENDER_SITE)||process.env.testSite&&parseInt(process.env.testSite),Rd=(process.env.GRIDDO_RENDER_PAGES||process.env.testPage||"").split(",").map(t=>parseInt(t)).filter(Boolean),h_=JSON.parse(process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH||"false");async function Ad(){console.info(`API URL ${iv}`),await bn.login();let t=await ye.getAll(),e=sv?t.filter(i=>!Nt||i.id===Nt):t.filter(i=>Nt?i.id===Nt:!!i.shouldBeUpdated);if(e.length){let i=e.map(async s=>{let o=await ye.getLanguages(s.id);return s.domains=o.items.filter(a=>a.domain&&(!process.env.DOMAIN||a.domain.slug.indexOf(process.env.DOMAIN)>0)).map(a=>({[a.id]:`${a.domain.slug}${a.path}`}))});await Promise.all(i)}let r=e.filter(i=>Nt?i.id===Nt:!!i.isPublished&&i.domains.length>0),n=e.filter(i=>!i.isPublished&&i.shouldBeUpdated);return{sitesToPublish:r,sitesToUnpublish:n}}async function kd(t){for(let e of t){let r=await ye.startSiteRender(e.id),{siteHash:n}=r,i={siteHash:n,publishHashes:[],unpublishHashes:[]};qe(`Unpublish site(s): ${r.publishIds}`),await ye.endSiteRender(e.id,i)}await xn(t)}async function Md(t){let e=await ye.startSiteRender(t),r=await ye.getInfo(t),n=await ye.getLanguages(t),i=await ye.getSocials(t),s=n.items,o=s.find(b=>b.isDefault),{siteHash:a,unpublishHashes:u,publishIds:h}=e,{headers:c,footers:p}=r,g=Rd.length?Rd.filter(b=>h.includes(b)):h;return{siteInfo:r,validPagesIds:g,siteHash:a,unpublishHashes:u,siteLangs:s,defaultLang:o,headers:c,footers:p,socials:i}}jd.default.config();var ov=process.env.API_URL,av=process.env.CXBRANCH,uv=process.env.GRIDDO_REACT_APP_INSTANCE||process.env.REACT_APP_INSTANCE,qd=parseInt(process.env.GRIDDO_API_CONCURRENCY_COUNT||"")||10,cv=process.env.PUBLIC_API_URL,lv=process.env.GRIDDO_RENDERID||new Date().valueOf().toString(),Td=[],uo={};async function $d(t){console.info(`API calls with ${qd} threads`),vr.default.existsSync(t)&&vr.default.rmSync(t,{recursive:!0}),vr.default.mkdirSync(t),vr.default.mkdirSync(jt.default.resolve(t,"metadata"));try{let{sitesToPublish:e,sitesToUnpublish:r}=await Ad();await ws.getAll(),e.length||r.length||(console.warn("There are no sites to update"),process.exit(0)),console.info(`Sites to publish: ${Ui(e)}`),console.info(`Sites to unpublish: ${Ui(r)}`),await kd(r),await xn([...e]);for(let n of e){let{id:i,slug:s,theme:o,favicon:a}=n,{siteInfo:u,validPagesIds:h,siteHash:c,unpublishHashes:p,siteLangs:g,defaultLang:m,headers:b,footers:S,socials:O}=await Md(i),{cloudinaryName:R,useMetaTitle:L,useMetaKeywords:B,showBasicMetaRobots:G,avoidHrefLangsOnCanonicals:Y,avoidSelfReferenceCanonicals:de,avoidHrefLangXDefault:De,avoidDebugMetas:te}=ws.settings;uo[i]={siteHash:c,unpublishHashes:p,publishHashes:[]};let D=new wn;D.navigations={headers:b,footers:S},n.languages=g;let q=Cu(i,c),k=u.siteScript,U={siteUrl:u.slug,title:u.name,favicon:a},I={baseUrl:ov,publicBaseUrl:cv,instance:uv,siteSlug:s,theme:o,siteMetadata:U,socials:O,siteLangs:g,cloudinaryName:R,griddoVersion:fl,siteOptions:{useMetaTitle:L,useMetaKeywords:B,showBasicMetaRobots:G,avoidHrefLangsOnCanonicals:Y,avoidSelfReferenceCanonicals:de,avoidHrefLangXDefault:De,avoidDebugMetas:te},BUILD_MODE:av,siteScript:k};qe(`${n.name} site`);let j=async A=>{let x=[],F=await ye.getPage(A,q);if(!F)return;Td.push(A);let Ce=JSON.parse(JSON.stringify(I));Ce.navigations=D.getPageNavigations(F);let ve=await _n.getDistributorData({page:F,cacheKey:lv}),re=await id(ve),ae=F?.mode==="list",Ze=!ae&&re,be=!Ze&&!ae;if(ae){let l={page:F,pages:sd(ve),isRoot:!1,defaultLang:m,template:ve,totalQueriedItems:ve.queriedItems};x=await rd(l,Ce)}if(Ze){let l=F;l.template=ve,l.multiPageElements=re,l.defaultLang=m,x=await nd(l,Ce)}if(be){let l=F;l.template=ve,l.defaultLang=m,x=[await td(l,Ce)]}uo[i].publishHashes.push(F.hash),await pv(t,x),hv(t,e),fv(t,uo),dv(t,Td)},P=(0,Ld.default)(qd),T=h.map(A=>P(()=>j(A)));await Promise.all(T)}}catch(e){console.error(e.message),process.exit(1)}}function fv(t,e){$n.default.writeJSONSync(jt.default.resolve(t,"metadata","buildProcessData.json"),e)}function dv(t,e){$n.default.writeJSONSync(jt.default.resolve(t,"metadata","createdPages.json"),e)}function hv(t,e){$n.default.writeJSONSync(jt.default.resolve(t,"metadata","sitesToPublish.json"),e)}async function pv(t,e){e.forEach(n=>Bi(n,["editorID","parentEditorID"]));let r=e.map(async n=>{let i=`${xu(n.path)}.json`,s=JSON.stringify(n),o=jt.default.resolve(t,i);await Nd.default.writeFile(o,s)});await Promise.all(r)}var mv=co.default.resolve(__dirname,"../store/"),gv=co.default.resolve(__dirname,"../apiCache");async function Bd(){_u(),await $d(mv),pl(gv)}Bd().catch(t=>{console.error("Error",t?.stdout?.toString()||t),process.exit(1)});
53
+ `))}Vf.default.config();var bs=process.env.API_URL,Ke=`${bs}/site/`,Be={GET_ALL:`${bs}/sites/all`,GET_PAGE:[`${bs}/page/`,""],INFO:[`${Ke}`,"/all"],LANGUAGES:[`${Ke}`,"/languages"],BUILD_START:[`${Ke}`,"/build/start"],BUILD_END:[`${Ke}`,"/build/end"],GET_DISTRIBUTOR_DATA:[`${Ke}`,"/distributor"],GET_SITEMAP:[`${Ke}`,"/sitemap"],SOCIALS:[`${Ke}`,"/socials"],GET_PAGES:[`${Ke}`,"/pages?pagination=false"]},be=class{static async getAll(){let{GET_ALL:e}=Be;return await je({endpoint:e})}static async getPage(e,r){let{GET_PAGE:[n,i]}=Be;return await je({endpoint:`${n}${e}${i}`,cacheKey:r})}static async getInfo(e,r=""){let{INFO:[n,i]}=Be;return await je({endpoint:`${n}${e}${i}`,cacheKey:r})}static async getLanguages(e,r=""){let{LANGUAGES:[n,i]}=Be;return await je({endpoint:`${n}${e}${i}`,cacheKey:r})}static async startSiteRender(e){let{BUILD_START:[r,n]}=Be;return await je({endpoint:`${r}${e}${n}`})}static async endSiteRender(e,r){let{BUILD_END:[n,i]}=Be;return await ut({endpoint:`${n}${e}${i}`,body:r})}static async getDistributorData(e,r,n,i,s){let{GET_DISTRIBUTOR_DATA:[o,a]}=Be,u=i||e.site,h=s||e.language;return await ut({endpoint:`${o}${u}${a}`,body:r,headers:{lang:h},cacheKey:n})}static async getSitemap(e){let{GET_SITEMAP:[r,n]}=Be;return await je({endpoint:`${r}${e}${n}`})}static async getSocials(e,r=""){let{SOCIALS:[n,i]}=Be;return await je({endpoint:`${n}${e}${i}`,cacheKey:r})}};var _n=class{static getBody(e,r){let{order:n,sources:i,quantity:s,mode:o,fixed:a,fullRelations:u=!1,allLanguages:h=!1,preferenceLanguage:c=!1,referenceId:p}=e;return o==="auto"?{mode:o,order:n,sources:i,quantity:s,fullRelations:u,allLanguages:h,preferenceLanguage:c}:o==="manual"?{mode:o,fixed:a,fullRelations:u}:o==="navigation"?{mode:o,order:n,quantity:s,fullRelations:u,referenceId:p||r?.structuredDataContent?.id}:(console.log(`Error: Distribuidor mode: ${o} is not recognized on page ${r?.id}.`),e)}static async fetchContentTypeData(e){let{page:r,component:{data:n},cacheKey:i}=e;if(!n)return ji(`Error: Page ${r.id} has \`hasDistributorData: true\` but it doesn't have a \`data\` prop`),[];if(Array.isArray(n.sources)&&n.sources.length<1)return ji(`Warning: Page with id: ${r.id} has a ReferenceField with empty \`data.sources\``),[];let{site:s,lang:o}=n,a=this.getBody(n,r);return await be.getDistributorData(r,a,i,s,o)}static async getDistributorData({page:e,cacheKey:r=""}){try{let{template:n}=e,i=async(a,u=1)=>{if(!(!a||typeof a!="object")&&JSON.stringify(a).includes('"hasDistributorData":true'))for(let h in a){if(h==="queriedItems")continue;let p=a[h];!p||typeof p!="object"||(p.hasDistributorData&&(p.queriedItems=await this.fetchContentTypeData({page:e,cacheKey:r,component:p})),await i(p,u+1))}};return await(async a=>(await i([a]),a))(n)}catch(n){console.error(`Error en get distributor ${n}`),process.exit(1)}}};var wn=class{_defaultHeaders;_defaultFooters;_navigations;constructor(){this._navigations={footers:[],headers:[]},this._defaultHeaders={},this._defaultFooters={}}set navigations(e){this._navigations=e,this._defaultFooters=this.getDefaultFooters(),this._defaultHeaders=this.getDefaultHeaders()}get navigations(){return this._navigations}getDefaultFooters(){return[...this.navigations.footers].filter(i=>!!i.setAsDefault).reduce((i,s)=>{let{language:o}=s;return{...i,[o]:s}},{})}getDefaultHeaders(){return[...this.navigations.headers].filter(i=>!!i.setAsDefault).reduce((i,s)=>{let{language:o}=s;return{...i,[o]:s}},{})}getRightLanguage(e,r,n){if(!e||!r)return null;let s=e.find(o=>o.language===n&&o.navigationLanguages?.find(a=>a.navigationId===r))||e.find(o=>o.id===r);return s?{...s}:null}getPageHeader(e,r){return this.getRightLanguage(this.navigations.headers,e,r)}getPageFooter(e,r){return this.getRightLanguage(this.navigations.footers,e,r)}getPageNavigations(e){let{header:r,footer:n,language:i,template:{templateType:s},templateConfig:{defaultHeader:o,defaultFooter:a,templates:u}}=e,h=b=>{let S=b.find(O=>typeof O=="number");return typeof S=="number"?S:null},c=h([r,u?.[s]?.defaultHeader,o]),p=h([n,u?.[s]?.defaultFooter,a]),g=c?this.getPageHeader(c,i):c===0?null:this._defaultHeaders[i],m=p?this.getPageFooter(p,i):p===0?null:this._defaultFooters[i];return{header:g,footer:m}}};var _s=class{baseURL;settings;ENDPOINTS;constructor(){this.baseURL=process.env.API_URL,this.settings={cloudinaryName:"",useMetaTitle:!1,useMetaKeywords:!1,showBasicMetaRobots:!1,avoidHrefLangsOnCanonicals:!1,avoidSelfReferenceCanonicals:!1,avoidHrefLangXDefault:!1,avoidDebugMetas:!1},this.ENDPOINTS={settings:`${this.baseURL}/settings`,resetRender:`${this.baseURL}/debug/reset-render`}}async getAll(){let{settings:e}=this.ENDPOINTS,r=await je({endpoint:e});this.settings=r}async resetRender(){let{resetRender:e}=this.ENDPOINTS;await ut({endpoint:e})}},ws=new _s;var xs=$(require("node:path")),ar=$(vt());async function xn(t){for await(let e of t)for(let r of e.domains){let n=Object.values(r)[0],i=xs.default.resolve(__dirname,`../../dist${n}`),s=xs.default.resolve(__dirname,`../../assets/page-data${n}`);if(Me(`Site dir ${i}`),Me(`Page data dir ${s}`),!ar.default.existsSync(i))return;try{await ar.default.rm(i,{recursive:!0}),Me(`${i} is deleted!`)}catch(o){console.log(o)}if(!ar.default.existsSync(s))return;try{await ar.default.rm(s,{recursive:!0}),console.info(`${s} is deleted!`)}catch(o){console.log(o)}}}var Cs=$(require("node:fs")),Zf=$(require("node:path")),ed=$(St());var Kg=process.env.API_URL;async function Yf(t){let{title:e,description:r,image:n,pageId:i,languageId:s,siteId:o,url:a,content:u,template:h}=t;return await ut({endpoint:`${Kg}/search`,body:{title:e,description:r,image:n,pageId:i,languageId:s,siteId:o,url:a,template:h,content:Qg(u)}})}function Qg(t){let e=Zg(["meta","link","style","script","noscript","nav","header","footer"],t),r=ey(e);return ty(r)}function Zg(t,e){let r=e;return t.forEach(n=>{r=r.replace(new RegExp(`<${n}.*?>.*?</${n}>`,"gis")," ").replace(new RegExp(`(<${n}([^>]+)>)`,"gis")," ")}),r}function ey(t){return t.replace(/(<([^>]+)>)/gis," ")}function ty(t){return t.replace(/\s+/g," ")}function Ss(t,e,r,n="jpg"){let i=typeof t=="string"?t:t?.url;return i?i.split("/")[2].includes("cloudinary.com")?ny(i,`c_fill,w_${e},h_${r}`):ry(i,`f/${n}/w/${e}/h/${r}`):null}function ry(t,e){let r=t.split("/"),n=r.slice(0,-1).join("/"),i=r.slice(-1)[0];return`${n}/${e}/${i}`}function ny(t,e){let r=t.replace("https://",""),n=r.split("/").slice(0,4).join("/"),i=r.replace(n,"");return`https://${n}/${e}${i}`}ed.default.config();var iy=!!JSON.parse(process.env.GRIDDO_SEARCH_FEATURE||"false"),sy=JSON.parse(process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH||"false"),oy=25;function ay({socialTitle:t,socialDescription:e,socialImage:r}){return{type:"website",title:t,description:e,image:r?Ss(r,1280,768):"",twitterImage:r?Ss(r,1280,768):""}}function uy(t){let{title:e,metaTitle:r,metaDescription:n,canonicalURL:i,locale:s,url:o,isIndexed:a,follow:u,metasAdvanced:h,pageLanguages:c,fullUrl:p,metaKeywords:g}=t,m=h?.split(",").filter(Boolean).map(b=>b.trim().toLowerCase())||[];return{title:(r||e||"").trim(),description:n,canonical:i&&i.trim()&&i!==p?i.trim():a?p:void 0,locale:s,url:o,index:a?"index":"noindex",follow:u?"follow":"nofollow",translate:m.includes("notranslate")?"notranslate":"",metasAdvanced:m.filter(b=>b!=="notranslate").join(),pageLanguages:c,metaKeywords:g?.filter(Boolean).map(b=>b.replace(/"/g,"'")).join(", ")}}async function Ps(t,e,r=!1){let{id:n,title:i,fullPath:s,language:o,breadcrumb:a,socialDescription:u,socialImage:h,socialTitle:c}=t,{baseUrl:p,BUILD_MODE:g,cloudinaryName:m,griddoVersion:b,siteLangs:S,siteMetadata:O,siteOptions:R,siteScript:L,siteSlug:B,socials:G,theme:K,navigations:{header:de,footer:Oe}}=e;t.breadcrumb=a,t.siteSlug=B,t.apiUrl=p,t.publicApiUrl=e.publicBaseUrl,t.instance=e.instance;let D=S.find(({id:P})=>P===t?.language)?.locale.replace(/_/g,"-"),q=uy(t),A=ay({socialDescription:u,socialImage:h,socialTitle:c}),U=sy?s.compose:`${s.domain}${s.compose}`,I=new Date().toString(),j={path:U,size:void 0,context:{id:n,title:i,fullPath:s,locale:D,languageId:o,theme:K,siteMetadata:O,pageMetadata:q,openGraph:A,socials:G,siteLangs:S,cloudinaryName:m,siteOptions:R,BUILD_MODE:g,griddoVersion:b,renderDate:I,siteScript:L,header:de,footer:Oe,page:t}};if(iy&&!r){let P=Zf.default.resolve(__dirname,"../../dist/",`./${U}index.html`),T=Cs.default.existsSync(P)?Cs.default.readFileSync(P).toString():"";await Yf({title:i,description:A.description||"",image:A.image||"",pageId:n,languageId:o,template:t?.template?.templateType||t?.templateId||null,siteId:t.site,url:t.fullUrl,content:T})}return j}async function td(t,e){return await Ps(t,e)}async function rd({page:t,pages:e,isRoot:r=!1,defaultLang:n,template:i,totalQueriedItems:s},o){let a=e.map(async(u,h)=>{let c=h===0,p=h+1,{domainUrl:g,compose:m}=t.fullPath,b={...t,fullPath:{...t.fullPath,compose:Es(m,p,{addEndingSlash:!0})},fullUrl:Es(t.fullUrl,p,{addEndingSlash:!0}),slug:Es(t.slug,p),title:Qf(t.title,p),metaTitle:Qf(t.metaTitle||"",p),disableHrefLangs:p>1,template:{...i,isFirstPage:c,pageNumber:p,totalPages:e.length,baseLink:`${g}${m}`,queriedItems:u,totalQueriedItems:s?.length},isRoot:r,defaultLang:n};return await Ps(b,o,!c)});return Promise.all(a)}function nd(t,e){let{multiPageElements:r,...n}=t,i=JSON.parse(JSON.stringify(r));i.find(({sectionSlug:o})=>o==="/")||i.push({});let s=i.map(async o=>{let a=JSON.parse(JSON.stringify(n)),{sectionSlug:u="/",title:h="",metaTitle:c="",metaDescription:p=""}=o,g=typeof h=="string"?h:h.content,m=a.fullPath.compose||"",b=a.fullUrl.endsWith("/")?a.fullUrl.slice(0,-1):a.fullUrl,S=u?.replace(/\//g,""),R=u==="/"?S:S+"/",L=m.endsWith("/")?"":"/",B=`${m}${L}${R}`;return g.trim()&&(a.title=g),p.trim()&&(a.metaDescription=p),a.fullUrl=`${b}/${R}`,a.fullPath.compose=B,a.slug=B,a.template.activeSectionSlug=u,a.template.activeSectionBase=b,a.metaTitle=c.trim()||g.trim()||a.metaTitle,await Ps(a,e)});return Promise.all(s)}function id(t){return new Promise(r=>{let n=(i,s=0)=>{if(!(!i||typeof i!="object")){for(let o in i){let a=i[o],u=a||typeof a=="object",h=JSON.stringify(a).includes('"hasGriddoMultiPage":true');if(!u||!h)continue;let{component:c,hasGriddoMultiPage:p,elements:g}=a;c&&p&&r(g||[]),n(a,s+1)}s||r(null)}};n([t])})}function cy(t,e,r){return e?.slice(t*(r-1),t*r)}function ly(t,e){let r=Math.ceil(e.length/t)||1;return Array.from({length:r},(i,s)=>s+1)?.map(i=>cy(t,e,i))}function sd(t){let e=t.queriedItems||[],r=t?.itemsPerPage||oy;return ly(r,e)}function Kf(t){return t.replace(/\/+$/,"/")}function Es(t,e,r){let n=t.endsWith("/")?"":"/",i=r?.addEndingSlash?"/":"";return e<=1?Kf(`${t}${i}`):Kf(`${t}${n}${e}${i}`)}function Qf(t,e){return!t||e<=1?t:`${t} - ${e}`}var rv=$(vt()),nv=$(Fd());var iv=process.env.API_URL,sv=!!process.env.GRIDDO_RENDER_ALL_SITES||!!process.env.updateAllSites,Nt=process.env.GRIDDO_RENDER_SITE&&parseInt(process.env.GRIDDO_RENDER_SITE)||process.env.testSite&&parseInt(process.env.testSite),Rd=(process.env.GRIDDO_RENDER_PAGES||process.env.testPage||"").split(",").map(t=>parseInt(t)).filter(Boolean),h_=JSON.parse(process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH||"false");async function Ad(t){console.info(`API URL ${iv}`),await bn.login();let e=await be.getAll(),r=sv?e.filter(s=>!Nt||s.id===Nt):e.filter(s=>Nt?s.id===Nt:!!s.shouldBeUpdated);if(r.length){let s=r.map(async o=>{let a=await be.getLanguages(o.id);return o.domains=a.items.filter(u=>u.domain&&u.domain.slug.indexOf(t)>0).map(u=>({[u.id]:`${u.domain.slug}${u.path}`}))});await Promise.all(s)}let n=r.filter(s=>Nt?s.id===Nt:!!s.isPublished&&s.domains.length>0),i=r.filter(s=>!s.isPublished&&s.shouldBeUpdated);return{sitesToPublish:n,sitesToUnpublish:i}}async function kd(t){for(let e of t){let r=await be.startSiteRender(e.id),{siteHash:n}=r,i={siteHash:n,publishHashes:[],unpublishHashes:[]};Me(`Unpublish site(s): ${r.publishIds}`),await be.endSiteRender(e.id,i)}await xn(t)}async function qd(t){let e=await be.startSiteRender(t),r=await be.getInfo(t),n=await be.getLanguages(t),i=await be.getSocials(t),s=n.items,o=s.find(b=>b.isDefault),{siteHash:a,unpublishHashes:u,publishIds:h}=e,{headers:c,footers:p}=r,g=Rd.length?Rd.filter(b=>h.includes(b)):h;return{siteInfo:r,validPagesIds:g,siteHash:a,unpublishHashes:u,siteLangs:s,defaultLang:o,headers:c,footers:p,socials:i}}jd.default.config();var ov=process.env.API_URL,av=process.env.CXBRANCH,uv=process.env.GRIDDO_REACT_APP_INSTANCE||process.env.REACT_APP_INSTANCE,Md=parseInt(process.env.GRIDDO_API_CONCURRENCY_COUNT||"")||10,cv=process.env.PUBLIC_API_URL,lv=process.env.GRIDDO_RENDERID||new Date().valueOf().toString(),Td=[],uo={};async function $d(t,e){console.info(`API calls with ${Md} threads`),vr.default.existsSync(t)&&vr.default.rmSync(t,{recursive:!0}),vr.default.mkdirSync(t),vr.default.mkdirSync(jt.default.resolve(t,"metadata"));try{let{sitesToPublish:r,sitesToUnpublish:n}=await Ad(e);await ws.getAll(),r.length||n.length||(console.warn("There are no sites to update"),process.exit(0)),console.info(`Sites to publish: ${Ui(r)}`),console.info(`Sites to unpublish: ${Ui(n)}`),await kd(n),await xn([...r]);for(let i of r){let{id:s,slug:o,theme:a,favicon:u}=i,{siteInfo:h,validPagesIds:c,siteHash:p,unpublishHashes:g,siteLangs:m,defaultLang:b,headers:S,footers:O,socials:R}=await qd(s),{cloudinaryName:L,useMetaTitle:B,useMetaKeywords:G,showBasicMetaRobots:K,avoidHrefLangsOnCanonicals:de,avoidSelfReferenceCanonicals:Oe,avoidHrefLangXDefault:re,avoidDebugMetas:D}=ws.settings;uo[s]={siteHash:p,unpublishHashes:g,publishHashes:[]};let q=new wn;q.navigations={headers:S,footers:O},i.languages=m;let A=Cu(s,p),U=h.siteScript,I={siteUrl:h.slug,title:h.name,favicon:u},j={baseUrl:ov,publicBaseUrl:cv,instance:uv,siteSlug:o,theme:a,siteMetadata:I,socials:R,siteLangs:m,cloudinaryName:L,griddoVersion:fl,siteOptions:{useMetaTitle:B,useMetaKeywords:G,showBasicMetaRobots:K,avoidHrefLangsOnCanonicals:de,avoidSelfReferenceCanonicals:Oe,avoidHrefLangXDefault:re,avoidDebugMetas:D},BUILD_MODE:av,siteScript:U};Me(`${i.name} site`);let P=async x=>{let F=[],ne=await be.getPage(x,A);if(!ne)return;Td.push(x);let De=JSON.parse(JSON.stringify(j));De.navigations=q.getPageNavigations(ne);let W=await _n.getDistributorData({page:ne,cacheKey:lv}),he=await id(W),Ue=ne?.mode==="list",pe=!Ue&&he,l=!pe&&!Ue;if(Ue){let f={page:ne,pages:sd(W),isRoot:!1,defaultLang:b,template:W,totalQueriedItems:W.queriedItems};F=await rd(f,De)}if(pe){let f=ne;f.template=W,f.multiPageElements=he,f.defaultLang=b,F=await nd(f,De)}if(l){let f=ne;f.template=W,f.defaultLang=b,F=[await td(f,De)]}uo[s].publishHashes.push(ne.hash),await pv(t,F),hv(t,r),fv(t,uo),dv(t,Td)},T=(0,Ld.default)(Md),M=c.map(x=>T(()=>P(x)));await Promise.all(M)}}catch(r){console.error(r.message),process.exit(1)}}function fv(t,e){$n.default.writeJSONSync(jt.default.resolve(t,"metadata","buildProcessData.json"),e)}function dv(t,e){$n.default.writeJSONSync(jt.default.resolve(t,"metadata","createdPages.json"),e)}function hv(t,e){$n.default.writeJSONSync(jt.default.resolve(t,"metadata","sitesToPublish.json"),e)}async function pv(t,e){e.forEach(n=>Bi(n,["editorID","parentEditorID"]));let r=e.map(async n=>{let i=`${xu(n.path)}.json`,s=JSON.stringify(n),o=jt.default.resolve(t,i);await Nd.default.writeFile(o,s)});await Promise.all(r)}var mv=co.default.resolve(__dirname,"../store/"),gv=co.default.resolve(__dirname,"../apiCache");async function Bd(t){_u(),await $d(mv,t),pl(gv)}Bd().catch(t=>{console.error("Error",t?.stdout?.toString()||t),process.exit(1)});