@griddo/cx 1.75.215 → 1.75.217

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -25,7 +25,7 @@ GFS4: `),console.error(e)});G[Q]||(ea=global[Q]||[],ra(G,ea),G.close=function(e)
25
25
  \u2502 Access credentials failure \u2502
26
26
  \u2502 Check that the login details are correct in your .env file \u2502
27
27
  \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
28
- `)),process.exit(1)}}},hr=new On;var Yu=Y(Rn()),Xu=Y(mt()),Ku=Y(Gt());var lp=Y(mt()),Uu=Y(Gt()),fp=Y(eu()),Gu=Y($u());var Hu="1.75.215";Uu.default.config();var hp=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS);function zu(...e){hp&&console.info(...e)}function Wu(e){return new Promise(t=>setTimeout(t,e))}function ai(e,t=3){return(e/1e3).toFixed(t)}function Ju(e){return"site"in e&&e.site?e?.site:void 0}function ci(...e){let t=performance.now();return e.forEach(r=>r()),ai(performance.now()-t)}function Vu(){let e=`
28
+ `)),process.exit(1)}}},hr=new On;var Yu=Y(Rn()),Xu=Y(mt()),Ku=Y(Gt());var lp=Y(mt()),Uu=Y(Gt()),fp=Y(eu()),Gu=Y($u());var Hu="1.75.217";Uu.default.config();var hp=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS);function zu(...e){hp&&console.info(...e)}function Wu(e){return new Promise(t=>setTimeout(t,e))}function ai(e,t=3){return(e/1e3).toFixed(t)}function Ju(e){return"site"in e&&e.site?e?.site:void 0}function ci(...e){let t=performance.now();return e.forEach(r=>r()),ai(performance.now()-t)}function Vu(){let e=`
29
29
  \xB7\xB7
30
30
  \xB7\xB7
31
31
  \xB7\xB7
@@ -0,0 +1,42 @@
1
+ "use strict";var dc=Object.create;var Jn=Object.defineProperty;var pc=Object.getOwnPropertyDescriptor;var mc=Object.getOwnPropertyNames;var yc=Object.getPrototypeOf,gc=Object.prototype.hasOwnProperty;var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var vc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of mc(t))!gc.call(e,i)&&i!==r&&Jn(e,i,{get:()=>t[i],enumerable:!(n=pc(t,i))||n.enumerable});return e};var ye=(e,t,r)=>(r=e!=null?dc(yc(e)):{},vc(t||!e||!e.__esModule?Jn(r,"default",{value:e,enumerable:!0}):r,e));var xr=v((pd,Vn)=>{"use strict";Vn.exports=function(t,r){return function(){for(var i=new Array(arguments.length),o=0;o<i.length;o++)i[o]=arguments[o];return t.apply(r,i)}}});var re=v((md,Xn)=>{"use strict";var bc=xr(),Te=Object.prototype.toString;function Or(e){return Te.call(e)==="[object Array]"}function Cr(e){return typeof e>"u"}function wc(e){return e!==null&&!Cr(e)&&e.constructor!==null&&!Cr(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function _c(e){return Te.call(e)==="[object ArrayBuffer]"}function Sc(e){return typeof FormData<"u"&&e instanceof FormData}function Ec(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function xc(e){return typeof e=="string"}function Cc(e){return typeof e=="number"}function Yn(e){return e!==null&&typeof e=="object"}function Mt(e){if(Te.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function kc(e){return Te.call(e)==="[object Date]"}function Oc(e){return Te.call(e)==="[object File]"}function Rc(e){return Te.call(e)==="[object Blob]"}function Kn(e){return Te.call(e)==="[object Function]"}function Mc(e){return Yn(e)&&Kn(e.pipe)}function qc(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function Ac(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Fc(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Rr(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),Or(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function kr(){var e={};function t(i,o){Mt(e[o])&&Mt(i)?e[o]=kr(e[o],i):Mt(i)?e[o]=kr({},i):Or(i)?e[o]=i.slice():e[o]=i}for(var r=0,n=arguments.length;r<n;r++)Rr(arguments[r],t);return e}function Tc(e,t,r){return Rr(t,function(i,o){r&&typeof i=="function"?e[o]=bc(i,r):e[o]=i}),e}function Pc(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}Xn.exports={isArray:Or,isArrayBuffer:_c,isBuffer:wc,isFormData:Sc,isArrayBufferView:Ec,isString:xc,isNumber:Cc,isObject:Yn,isPlainObject:Mt,isUndefined:Cr,isDate:kc,isFile:Oc,isBlob:Rc,isFunction:Kn,isStream:Mc,isURLSearchParams:qc,isStandardBrowserEnv:Fc,forEach:Rr,merge:kr,extend:Tc,trim:Ac,stripBOM:Pc}});var qt=v((yd,Zn)=>{"use strict";var De=re();function Qn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}Zn.exports=function(t,r,n){if(!r)return t;var i;if(n)i=n(r);else if(De.isURLSearchParams(r))i=r.toString();else{var o=[];De.forEach(r,function(u,d){u===null||typeof u>"u"||(De.isArray(u)?d=d+"[]":u=[u],De.forEach(u,function(p){De.isDate(p)?p=p.toISOString():De.isObject(p)&&(p=JSON.stringify(p)),o.push(Qn(d)+"="+Qn(p))}))}),i=o.join("&")}if(i){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}});var ti=v((gd,ei)=>{"use strict";var Nc=re();function At(){this.handlers=[]}At.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};At.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};At.prototype.forEach=function(t){Nc.forEach(this.handlers,function(n){n!==null&&t(n)})};ei.exports=At});var ni=v((vd,ri)=>{"use strict";var Ic=re();ri.exports=function(t,r){Ic.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})}});var Ft=v((bd,ii)=>{"use strict";ii.exports=function(t,r,n,i,o){return t.config=r,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.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}},t}});var Tt=v((wd,oi)=>{"use strict";var jc=Ft();oi.exports=function(t,r,n,i,o){var s=new Error(t);return jc(s,r,n,i,o)}});var Mr=v((_d,si)=>{"use strict";var Lc=Tt();si.exports=function(t,r,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):r(Lc("Request failed with status code "+n.status,n.config,null,n.request,n))}});var ui=v((Sd,ai)=>{"use strict";var Pt=re();ai.exports=Pt.isStandardBrowserEnv()?function(){return{write:function(r,n,i,o,s,a){var u=[];u.push(r+"="+encodeURIComponent(n)),Pt.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),Pt.isString(o)&&u.push("path="+o),Pt.isString(s)&&u.push("domain="+s),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 li=v((Ed,ci)=>{"use strict";ci.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}});var hi=v((xd,fi)=>{"use strict";fi.exports=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}});var qr=v((Cd,di)=>{"use strict";var Bc=li(),Dc=hi();di.exports=function(t,r){return t&&!Bc(r)?Dc(t,r):r}});var mi=v((kd,pi)=>{"use strict";var Ar=re(),$c=["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"];pi.exports=function(t){var r={},n,i,o;return t&&Ar.forEach(t.split(`
2
+ `),function(a){if(o=a.indexOf(":"),n=Ar.trim(a.substr(0,o)).toLowerCase(),i=Ar.trim(a.substr(o+1)),n){if(r[n]&&$c.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 vi=v((Od,gi)=>{"use strict";var yi=re();gi.exports=yi.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(o){var s=o;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{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(s){var a=yi.isString(s)?i(s):s;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}()});var wi=v((Rd,bi)=>{"use strict";var Nt=re(),Hc=Mr(),Uc=ui(),Gc=qt(),zc=qr(),Wc=mi(),Jc=vi(),Fr=Tt();bi.exports=function(t){return new Promise(function(n,i){var o=t.data,s=t.headers,a=t.responseType;Nt.isFormData(o)&&delete s["Content-Type"];var u=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",h=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.Authorization="Basic "+btoa(d+":"+h)}var p=zc(t.baseURL,t.url);u.open(t.method.toUpperCase(),Gc(p,t.params,t.paramsSerializer),!0),u.timeout=t.timeout;function y(){if(u){var _="getAllResponseHeaders"in u?Wc(u.getAllResponseHeaders()):null,O=!a||a==="text"||a==="json"?u.responseText:u.response,R={data:O,status:u.status,statusText:u.statusText,headers:_,config:t,request:u};Hc(n,i,R),u=null}}if("onloadend"in u?u.onloadend=y:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(y)},u.onabort=function(){u&&(i(Fr("Request aborted",t,"ECONNABORTED",u)),u=null)},u.onerror=function(){i(Fr("Network Error",t,null,u)),u=null},u.ontimeout=function(){var O="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(O=t.timeoutErrorMessage),i(Fr(O,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",u)),u=null},Nt.isStandardBrowserEnv()){var m=(t.withCredentials||Jc(p))&&t.xsrfCookieName?Uc.read(t.xsrfCookieName):void 0;m&&(s[t.xsrfHeaderName]=m)}"setRequestHeader"in u&&Nt.forEach(s,function(O,R){typeof o>"u"&&R.toLowerCase()==="content-type"?delete s[R]:u.setRequestHeader(R,O)}),Nt.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),a&&a!=="json"&&(u.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&u.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(O){u&&(u.abort(),i(O),u=null)}),o||(o=null),u.send(o)})}});var Si=v((Md,_i)=>{var $e=1e3,He=$e*60,Ue=He*60,Pe=Ue*24,Vc=Pe*7,Yc=Pe*365.25;_i.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Kc(e);if(r==="number"&&isFinite(e))return t.long?Qc(e):Xc(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Kc(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Yc;case"weeks":case"week":case"w":return r*Vc;case"days":case"day":case"d":return r*Pe;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ue;case"minutes":case"minute":case"mins":case"min":case"m":return r*He;case"seconds":case"second":case"secs":case"sec":case"s":return r*$e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Xc(e){var t=Math.abs(e);return t>=Pe?Math.round(e/Pe)+"d":t>=Ue?Math.round(e/Ue)+"h":t>=He?Math.round(e/He)+"m":t>=$e?Math.round(e/$e)+"s":e+"ms"}function Qc(e){var t=Math.abs(e);return t>=Pe?It(e,t,Pe,"day"):t>=Ue?It(e,t,Ue,"hour"):t>=He?It(e,t,He,"minute"):t>=$e?It(e,t,$e,"second"):e+" ms"}function It(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var Tr=v((qd,Ei)=>{function Zc(e){r.debug=r,r.default=r,r.coerce=u,r.disable=o,r.enable=i,r.enabled=s,r.humanize=Si(),r.destroy=d,Object.keys(e).forEach(h=>{r[h]=e[h]}),r.names=[],r.skips=[],r.formatters={};function t(h){let p=0;for(let y=0;y<h.length;y++)p=(p<<5)-p+h.charCodeAt(y),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=t;function r(h){let p,y=null,m,_;function O(...R){if(!O.enabled)return;let F=O,D=Number(new Date),G=D-(p||D);F.diff=G,F.prev=p,F.curr=D,p=D,R[0]=r.coerce(R[0]),typeof R[0]!="string"&&R.unshift("%O");let U=0;R[0]=R[0].replace(/%([a-zA-Z%])/g,(ve,xe)=>{if(ve==="%%")return"%";U++;let se=r.formatters[xe];if(typeof se=="function"){let k=R[U];ve=se.call(F,k),R.splice(U,1),U--}return ve}),r.formatArgs.call(F,R),(F.log||r.log).apply(F,R)}return O.namespace=h,O.useColors=r.useColors(),O.color=r.selectColor(h),O.extend=n,O.destroy=r.destroy,Object.defineProperty(O,"enabled",{enumerable:!0,configurable:!1,get:()=>y!==null?y:(m!==r.namespaces&&(m=r.namespaces,_=r.enabled(h)),_),set:R=>{y=R}}),typeof r.init=="function"&&r.init(O),O}function n(h,p){let y=r(this.namespace+(typeof p>"u"?":":p)+h);return y.log=this.log,y}function i(h){r.save(h),r.namespaces=h,r.names=[],r.skips=[];let p,y=(typeof h=="string"?h:"").split(/[\s,]+/),m=y.length;for(p=0;p<m;p++)y[p]&&(h=y[p].replace(/\*/g,".*?"),h[0]==="-"?r.skips.push(new RegExp("^"+h.slice(1)+"$")):r.names.push(new RegExp("^"+h+"$")))}function o(){let h=[...r.names.map(a),...r.skips.map(a).map(p=>"-"+p)].join(",");return r.enable(""),h}function s(h){if(h[h.length-1]==="*")return!0;let p,y;for(p=0,y=r.skips.length;p<y;p++)if(r.skips[p].test(h))return!1;for(p=0,y=r.names.length;p<y;p++)if(r.names[p].test(h))return!0;return!1}function a(h){return h.toString().substring(2,h.toString().length-2).replace(/\.\*\?$/,"*")}function u(h){return h instanceof Error?h.stack||h.message:h}function d(){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}Ei.exports=Zc});var xi=v((fe,jt)=>{fe.formatArgs=tl;fe.save=rl;fe.load=nl;fe.useColors=el;fe.storage=il();fe.destroy=(()=>{let e=!1;return()=>{e||(e=!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`."))}})();fe.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 el(){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 tl(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+jt.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),e.splice(n,0,t)}fe.log=console.debug||console.log||(()=>{});function rl(e){try{e?fe.storage.setItem("debug",e):fe.storage.removeItem("debug")}catch{}}function nl(){let e;try{e=fe.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function il(){try{return localStorage}catch{}}jt.exports=Tr()(fe);var{formatters:ol}=jt.exports;ol.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var ki=v((Ad,Ci)=>{"use strict";Ci.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var Ir=v((Fd,Ri)=>{"use strict";var sl=require("os"),Oi=require("tty"),ge=ki(),{env:J}=process,ke;ge("no-color")||ge("no-colors")||ge("color=false")||ge("color=never")?ke=0:(ge("color")||ge("colors")||ge("color=true")||ge("color=always"))&&(ke=1);"FORCE_COLOR"in J&&(J.FORCE_COLOR==="true"?ke=1:J.FORCE_COLOR==="false"?ke=0:ke=J.FORCE_COLOR.length===0?1:Math.min(parseInt(J.FORCE_COLOR,10),3));function Pr(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Nr(e,t){if(ke===0)return 0;if(ge("color=16m")||ge("color=full")||ge("color=truecolor"))return 3;if(ge("color=256"))return 2;if(e&&!t&&ke===void 0)return 0;let r=ke||0;if(J.TERM==="dumb")return r;if(process.platform==="win32"){let n=sl.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in J)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in J)||J.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in J)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(J.TEAMCITY_VERSION)?1:0;if(J.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in J){let n=parseInt((J.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(J.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(J.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(J.TERM)||"COLORTERM"in J?1:r}function al(e){let t=Nr(e,e&&e.isTTY);return Pr(t)}Ri.exports={supportsColor:al,stdout:Pr(Nr(!0,Oi.isatty(1))),stderr:Pr(Nr(!0,Oi.isatty(2)))}});var qi=v((V,Bt)=>{var ul=require("tty"),Lt=require("util");V.init=ml;V.log=hl;V.formatArgs=ll;V.save=dl;V.load=pl;V.useColors=cl;V.destroy=Lt.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");V.colors=[6,2,3,4,5,1];try{let e=Ir();e&&(e.stderr||e).level>=2&&(V.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{}V.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,o)=>o.toUpperCase()),n=process.env[t];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),e[r]=n,e},{});function cl(){return"colors"in V.inspectOpts?!!V.inspectOpts.colors:ul.isatty(process.stderr.fd)}function ll(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${i};1m${t} \x1B[0m`;e[0]=o+e[0].split(`
3
+ `).join(`
4
+ `+o),e.push(i+"m+"+Bt.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=fl()+t+" "+e[0]}function fl(){return V.inspectOpts.hideDate?"":new Date().toISOString()+" "}function hl(...e){return process.stderr.write(Lt.format(...e)+`
5
+ `)}function dl(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function pl(){return process.env.DEBUG}function ml(e){e.inspectOpts={};let t=Object.keys(V.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=V.inspectOpts[t[r]]}Bt.exports=Tr()(V);var{formatters:Mi}=Bt.exports;Mi.o=function(e){return this.inspectOpts.colors=this.useColors,Lt.inspect(e,this.inspectOpts).split(`
6
+ `).map(t=>t.trim()).join(" ")};Mi.O=function(e){return this.inspectOpts.colors=this.useColors,Lt.inspect(e,this.inspectOpts)}});var Ai=v((Td,jr)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?jr.exports=xi():jr.exports=qi()});var Ti=v((Pd,Fi)=>{var at;Fi.exports=function(){if(!at){try{at=Ai()("follow-redirects")}catch{}typeof at!="function"&&(at=function(){})}at.apply(null,arguments)}});var Ur=v((Nd,Hr)=>{var Ne=require("url"),Lr=Ne.URL,yl=require("http"),gl=require("https"),Ii=require("stream").Writable,ji=require("assert"),Li=Ti(),Dr=["abort","aborted","connect","error","socket","timeout"],$r=Object.create(null);Dr.forEach(function(e){$r[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var vl=ct("ERR_INVALID_URL","Invalid URL",TypeError),Pi=ct("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),bl=ct("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),wl=ct("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),_l=ct("ERR_STREAM_WRITE_AFTER_END","write after end");function he(e,t){Ii.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}he.prototype=Object.create(Ii.prototype);he.prototype.abort=function(){Di(this._currentRequest),this.emit("abort")};he.prototype.write=function(e,t,r){if(this._ending)throw new _l;if(!Ie(e)&&!xl(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(ut(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new wl),this.abort())};he.prototype.end=function(e,t,r){if(ut(e)?(r=e,e=t=null):ut(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(e,t,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};he.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};he.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};he.prototype.setTimeout=function(e,t){var r=this;function n(s){s.setTimeout(e),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}function i(s){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),o()},e),n(s)}function o(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",o),r.removeListener("error",o),r.removeListener("response",o),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",o),this.on("error",o),this.on("response",o),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){he.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(he.prototype,e,{get:function(){return this._currentRequest[e]}})});he.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};he.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of Dr)n.on(i,$r[i]);if(this._currentUrl=/^\//.test(this._options.path)?Ne.format(this._options):this._options.path,this._isRedirect){var o=0,s=this,a=this._requestBodyBuffers;(function u(d){if(n===s._currentRequest)if(d)s.emit("error",d);else if(o<a.length){var h=a[o++];n.finished||n.write(h.data,h.encoding,u)}else s._ended&&n.end()})()}};he.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(Di(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new bl);return}var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Br(/^content-/i,this._options.headers));var s=Br(/^host$/i,this._options.headers),a=Ne.parse(this._currentUrl),u=s||a.host,d=/^\w+:/.test(r)?this._currentUrl:Ne.format(Object.assign(a,{host:u})),h;try{h=Ne.resolve(d,r)}catch(_){this.emit("error",new Pi({cause:_}));return}Li("redirecting to",h),this._isRedirect=!0;var p=Ne.parse(h);if(Object.assign(this._options,p),(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==u&&!El(p.host,u))&&Br(/^(?:authorization|cookie)$/i,this._options.headers),ut(i)){var y={headers:e.headers,statusCode:t},m={url:d,method:o,headers:n};try{i(this._options,y,m)}catch(_){this.emit("error",_);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(_){this.emit("error",new Pi({cause:_}))}};function Bi(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var i=n+":",o=r[i]=e[n],s=t[n]=Object.create(o);function a(d,h,p){if(Ie(d)){var y;try{y=Ni(new Lr(d))}catch{y=Ne.parse(d)}if(!Ie(y.protocol))throw new vl({input:d});d=y}else Lr&&d instanceof Lr?d=Ni(d):(p=h,h=d,d={protocol:i});return ut(h)&&(p=h,h=null),h=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},d,h),h.nativeProtocols=r,!Ie(h.host)&&!Ie(h.hostname)&&(h.hostname="::1"),ji.equal(h.protocol,i,"protocol mismatch"),Li("options",h),new he(h,p)}function u(d,h,p){var y=s.request(d,h,p);return y.end(),y}Object.defineProperties(s,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:u,configurable:!0,enumerable:!0,writable:!0}})}),t}function Sl(){}function Ni(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return e.port!==""&&(t.port=Number(e.port)),t}function Br(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function ct(e,t,r){function n(i){Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+e+"]",n}function Di(e){for(var t of Dr)e.removeListener(t,$r[t]);e.on("error",Sl),e.abort()}function El(e,t){ji(Ie(e)&&Ie(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function Ie(e){return typeof e=="string"||e instanceof String}function ut(e){return typeof e=="function"}function xl(e){return typeof e=="object"&&"length"in e}Hr.exports=Bi({http:yl,https:gl});Hr.exports.wrap=Bi});var Gr=v((Id,Cl)=>{Cl.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 Wi=v((jd,zi)=>{"use strict";var lt=re(),$i=Mr(),kl=qr(),Ol=qt(),Rl=require("http"),Ml=require("https"),ql=Ur().http,Al=Ur().https,Hi=require("url"),Fl=require("zlib"),Tl=Gr(),Dt=Tt(),zr=Ft(),Ui=/https:?/;function Gi(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(o){o.headers.host=o.host,Gi(o,t,o.href)}}zi.exports=function(t){return new Promise(function(n,i){var o=function(x){n(x)},s=function(x){i(x)},a=t.data,u=t.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/"+Tl.version,a&&!lt.isStream(a)){if(!Buffer.isBuffer(a))if(lt.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(lt.isString(a))a=Buffer.from(a,"utf-8");else return s(Dt("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",t));u["Content-Length"]=a.length}var d=void 0;if(t.auth){var h=t.auth.username||"",p=t.auth.password||"";d=h+":"+p}var y=kl(t.baseURL,t.url),m=Hi.parse(y),_=m.protocol||"http:";if(!d&&m.auth){var O=m.auth.split(":"),R=O[0]||"",F=O[1]||"";d=R+":"+F}d&&delete u.Authorization;var D=Ui.test(_),G=D?t.httpsAgent:t.httpAgent,U={path:Ol(m.path,t.params,t.paramsSerializer).replace(/^\?/,""),method:t.method.toUpperCase(),headers:u,agent:G,agents:{http:t.httpAgent,https:t.httpsAgent},auth:d};t.socketPath?U.socketPath=t.socketPath:(U.hostname=m.hostname,U.port=m.port);var te=t.proxy;if(!te&&te!==!1){var ve=_.slice(0,-1)+"_proxy",xe=process.env[ve]||process.env[ve.toUpperCase()];if(xe){var se=Hi.parse(xe),k=process.env.no_proxy||process.env.NO_PROXY,P=!0;if(k){var T=k.split(",").map(function(x){return x.trim()});P=!T.some(function(x){return x?x==="*"||x[0]==="."&&m.hostname.substr(m.hostname.length-x.length)===x?!0:m.hostname===x:!1})}if(P&&(te={host:se.hostname,port:se.port,protocol:se.protocol},se.auth)){var $=se.auth.split(":");te.auth={username:$[0],password:$[1]}}}}te&&(U.headers.host=m.hostname+(m.port?":"+m.port:""),Gi(U,te,_+"//"+m.hostname+(m.port?":"+m.port:"")+U.path));var M,B=D&&(te?Ui.test(te.protocol):!0);t.transport?M=t.transport:t.maxRedirects===0?M=B?Ml:Rl:(t.maxRedirects&&(U.maxRedirects=t.maxRedirects),M=B?Al:ql),t.maxBodyLength>-1&&(U.maxBodyLength=t.maxBodyLength);var C=M.request(U,function(x){if(!C.aborted){var q=x,Ce=x.req||C;if(x.statusCode!==204&&Ce.method!=="HEAD"&&t.decompress!==!1)switch(x.headers["content-encoding"]){case"gzip":case"compress":case"deflate":q=q.pipe(Fl.createUnzip()),delete x.headers["content-encoding"];break}var Fe={status:x.statusCode,statusText:x.statusMessage,headers:x.headers,config:t,request:Ce};if(t.responseType==="stream")Fe.data=q,$i(o,s,Fe);else{var ae=[],de=0;q.on("data",function(pe){ae.push(pe),de+=pe.length,t.maxContentLength>-1&&de>t.maxContentLength&&(q.destroy(),s(Dt("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,Ce)))}),q.on("error",function(pe){C.aborted||s(zr(pe,t,null,Ce))}),q.on("end",function(){var pe=Buffer.concat(ae);t.responseType!=="arraybuffer"&&(pe=pe.toString(t.responseEncoding),(!t.responseEncoding||t.responseEncoding==="utf8")&&(pe=lt.stripBOM(pe))),Fe.data=pe,$i(o,s,Fe)})}}});if(C.on("error",function(x){C.aborted&&x.code!=="ERR_FR_TOO_MANY_REDIRECTS"||s(zr(x,t,null,C))}),t.timeout){var I=parseInt(t.timeout,10);if(isNaN(I)){s(Dt("error trying to parse `config.timeout` to int",t,"ERR_PARSE_TIMEOUT",C));return}C.setTimeout(I,function(){C.abort(),s(Dt("timeout of "+I+"ms exceeded",t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",C))})}t.cancelToken&&t.cancelToken.promise.then(function(x){C.aborted||(C.abort(),s(x))}),lt.isStream(a)?a.on("error",function(x){s(zr(x,t,null,C))}).pipe(C):C.end(a)})}});var Ht=v((Ld,Yi)=>{"use strict";var Y=re(),Ji=ni(),Pl=Ft(),Nl={"Content-Type":"application/x-www-form-urlencoded"};function Vi(e,t){!Y.isUndefined(e)&&Y.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function Il(){var e;return typeof XMLHttpRequest<"u"?e=wi():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(e=Wi()),e}function jl(e,t,r){if(Y.isString(e))try{return(t||JSON.parse)(e),Y.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var $t={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:Il(),transformRequest:[function(t,r){return Ji(r,"Accept"),Ji(r,"Content-Type"),Y.isFormData(t)||Y.isArrayBuffer(t)||Y.isBuffer(t)||Y.isStream(t)||Y.isFile(t)||Y.isBlob(t)?t:Y.isArrayBufferView(t)?t.buffer:Y.isURLSearchParams(t)?(Vi(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Y.isObject(t)||r&&r["Content-Type"]==="application/json"?(Vi(r,"application/json"),jl(t)):t}],transformResponse:[function(t){var r=this.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||i&&Y.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?Pl(s,this,"E_JSON_PARSE"):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};$t.headers={common:{Accept:"application/json, text/plain, */*"}};Y.forEach(["delete","get","head"],function(t){$t.headers[t]={}});Y.forEach(["post","put","patch"],function(t){$t.headers[t]=Y.merge(Nl)});Yi.exports=$t});var Xi=v((Bd,Ki)=>{"use strict";var Ll=re(),Bl=Ht();Ki.exports=function(t,r,n){var i=this||Bl;return Ll.forEach(n,function(s){t=s.call(i,t,r)}),t}});var Wr=v((Dd,Qi)=>{"use strict";Qi.exports=function(t){return!!(t&&t.__CANCEL__)}});var to=v(($d,eo)=>{"use strict";var Zi=re(),Jr=Xi(),Dl=Wr(),$l=Ht();function Vr(e){e.cancelToken&&e.cancelToken.throwIfRequested()}eo.exports=function(t){Vr(t),t.headers=t.headers||{},t.data=Jr.call(t,t.data,t.headers,t.transformRequest),t.headers=Zi.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Zi.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||$l.adapter;return r(t).then(function(i){return Vr(t),i.data=Jr.call(t,i.data,i.headers,t.transformResponse),i},function(i){return Dl(i)||(Vr(t),i&&i.response&&(i.response.data=Jr.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})}});var Yr=v((Hd,ro)=>{"use strict";var X=re();ro.exports=function(t,r){r=r||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],s=["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(y,m){return X.isPlainObject(y)&&X.isPlainObject(m)?X.merge(y,m):X.isPlainObject(m)?X.merge({},m):X.isArray(m)?m.slice():m}function d(y){X.isUndefined(r[y])?X.isUndefined(t[y])||(n[y]=u(void 0,t[y])):n[y]=u(t[y],r[y])}X.forEach(i,function(m){X.isUndefined(r[m])||(n[m]=u(void 0,r[m]))}),X.forEach(o,d),X.forEach(s,function(m){X.isUndefined(r[m])?X.isUndefined(t[m])||(n[m]=u(void 0,t[m])):n[m]=u(void 0,r[m])}),X.forEach(a,function(m){m in r?n[m]=u(t[m],r[m]):m in t&&(n[m]=u(void 0,t[m]))});var h=i.concat(o).concat(s).concat(a),p=Object.keys(t).concat(Object.keys(r)).filter(function(m){return h.indexOf(m)===-1});return X.forEach(p,d),n}});var ao=v((Ud,so)=>{"use strict";var io=Gr(),Kr={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Kr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var no={},Hl=io.version.split(".");function oo(e,t){for(var r=t?t.split("."):Hl,n=e.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}Kr.transitional=function(t,r,n){var i=r&&oo(r);function o(s,a){return"[Axios v"+io.version+"] Transitional option '"+s+"'"+a+(n?". "+n:"")}return function(s,a,u){if(t===!1)throw new Error(o(a," has been removed in "+r));return i&&!no[a]&&(no[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,a,u):!0}};function Ul(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],s=t[o];if(s){var a=e[o],u=a===void 0||s(a,o,e);if(u!==!0)throw new TypeError("option "+o+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+o)}}so.exports={isOlderVersion:oo,assertOptions:Ul,validators:Kr}});var po=v((Gd,ho)=>{"use strict";var lo=re(),Gl=qt(),uo=ti(),co=to(),Ut=Yr(),fo=ao(),Ge=fo.validators;function ft(e){this.defaults=e,this.interceptors={request:new uo,response:new uo}}ft.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Ut(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&fo.assertOptions(r,{silentJSONParsing:Ge.transitional(Ge.boolean,"1.0.0"),forcedJSONParsing:Ge.transitional(Ge.boolean,"1.0.0"),clarifyTimeoutError:Ge.transitional(Ge.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(t)===!1||(i=i&&y.synchronous,n.unshift(y.fulfilled,y.rejected))});var o=[];this.interceptors.response.forEach(function(y){o.push(y.fulfilled,y.rejected)});var s;if(!i){var a=[co,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(o),s=Promise.resolve(t);a.length;)s=s.then(a.shift(),a.shift());return s}for(var u=t;n.length;){var d=n.shift(),h=n.shift();try{u=d(u)}catch(p){h(p);break}}try{s=co(u)}catch(p){return Promise.reject(p)}for(;o.length;)s=s.then(o.shift(),o.shift());return s};ft.prototype.getUri=function(t){return t=Ut(this.defaults,t),Gl(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};lo.forEach(["delete","get","head","options"],function(t){ft.prototype[t]=function(r,n){return this.request(Ut(n||{},{method:t,url:r,data:(n||{}).data}))}});lo.forEach(["post","put","patch"],function(t){ft.prototype[t]=function(r,n,i){return this.request(Ut(i||{},{method:t,url:r,data:n}))}});ho.exports=ft});var Qr=v((zd,mo)=>{"use strict";function Xr(e){this.message=e}Xr.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Xr.prototype.__CANCEL__=!0;mo.exports=Xr});var go=v((Wd,yo)=>{"use strict";var zl=Qr();function Gt(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(i){t=i});var r=this;e(function(i){r.reason||(r.reason=new zl(i),t(r.reason))})}Gt.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Gt.source=function(){var t,r=new Gt(function(i){t=i});return{token:r,cancel:t}};yo.exports=Gt});var bo=v((Jd,vo)=>{"use strict";vo.exports=function(t){return function(n){return t.apply(null,n)}}});var _o=v((Vd,wo)=>{"use strict";wo.exports=function(t){return typeof t=="object"&&t.isAxiosError===!0}});var xo=v((Yd,Zr)=>{"use strict";var So=re(),Wl=xr(),zt=po(),Jl=Yr(),Vl=Ht();function Eo(e){var t=new zt(e),r=Wl(zt.prototype.request,t);return So.extend(r,zt.prototype,t),So.extend(r,t),r}var we=Eo(Vl);we.Axios=zt;we.create=function(t){return Eo(Jl(we.defaults,t))};we.Cancel=Qr();we.CancelToken=go();we.isCancel=Wr();we.all=function(t){return Promise.all(t)};we.spread=bo();we.isAxiosError=_o();Zr.exports=we;Zr.exports.default=we});var en=v((Kd,Co)=>{Co.exports=xo()});var Oo=v((Xd,ko)=>{"use strict";var Yl=/[|\\{}()[\]^$+*?.]/g;ko.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Yl,"\\$&")}});var Mo=v((Qd,Ro)=>{"use strict";Ro.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 tn=v((Zd,To)=>{var je=Mo(),Fo={};for(Wt in je)je.hasOwnProperty(Wt)&&(Fo[je[Wt]]=Wt);var Wt,S=To.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(ne in S)if(S.hasOwnProperty(ne)){if(!("channels"in S[ne]))throw new Error("missing channels property: "+ne);if(!("labels"in S[ne]))throw new Error("missing channel labels property: "+ne);if(S[ne].labels.length!==S[ne].channels)throw new Error("channel and label counts mismatch: "+ne);qo=S[ne].channels,Ao=S[ne].labels,delete S[ne].channels,delete S[ne].labels,Object.defineProperty(S[ne],"channels",{value:qo}),Object.defineProperty(S[ne],"labels",{value:Ao})}var qo,Ao,ne;S.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),o=Math.max(t,r,n),s=o-i,a,u,d;return o===i?a=0:t===o?a=(r-n)/s:r===o?a=2+(n-t)/s:n===o&&(a=4+(t-r)/s),a=Math.min(a*60,360),a<0&&(a+=360),d=(i+o)/2,o===i?u=0:d<=.5?u=s/(o+i):u=s/(2-o-i),[a,u*100,d*100]};S.rgb.hsv=function(e){var t,r,n,i,o,s=e[0]/255,a=e[1]/255,u=e[2]/255,d=Math.max(s,a,u),h=d-Math.min(s,a,u),p=function(y){return(d-y)/6/h+1/2};return h===0?i=o=0:(o=h/d,t=p(s),r=p(a),n=p(u),s===d?i=n-r:a===d?i=1/3+t-n:u===d&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,d*100]};S.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=S.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,o*100,n*100]};S.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,o,s,a;return a=Math.min(1-t,1-r,1-n),i=(1-t-a)/(1-a)||0,o=(1-r-a)/(1-a)||0,s=(1-n-a)/(1-a)||0,[i*100,o*100,s*100,a*100]};function Kl(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}S.rgb.keyword=function(e){var t=Fo[e];if(t)return t;var r=1/0,n;for(var i in je)if(je.hasOwnProperty(i)){var o=je[i],s=Kl(e,o);s<r&&(r=s,n=i)}return n};S.keyword.rgb=function(e){return je[e]};S.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/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=t*.4124+r*.3576+n*.1805,o=t*.2126+r*.7152+n*.0722,s=t*.0193+r*.1192+n*.9505;return[i*100,o*100,s*100]};S.rgb.lab=function(e){var t=S.rgb.xyz(e),r=t[0],n=t[1],i=t[2],o,s,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,o=116*n-16,s=500*(r-n),a=200*(n-i),[o,s,a]};S.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,o,s,a,u;if(r===0)return u=n*255,[u,u,u];n<.5?o=n*(1+r):o=n+r-n*r,i=2*n-o,a=[0,0,0];for(var d=0;d<3;d++)s=t+1/3*-(d-1),s<0&&s++,s>1&&s--,6*s<1?u=i+(o-i)*6*s:2*s<1?u=o:3*s<2?u=i+(o-i)*(2/3-s)*6:u=i,a[d]=u*255;return a};S.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,o=Math.max(n,.01),s,a;return n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o,a=(n+r)/2,s=n===0?2*i/(o+i):2*r/(n+r),[t,s*100,a*100]};S.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),s=255*n*(1-r),a=255*n*(1-r*o),u=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,u,s];case 1:return[a,n,s];case 2:return[s,n,u];case 3:return[s,a,n];case 4:return[u,s,n];case 5:return[n,s,a]}};S.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),o,s,a;return a=(2-r)*n,o=(2-r)*i,s=r*i,s/=o<=1?o:2-o,s=s||0,a/=2,[t,s*100,a*100]};S.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,o,s,a,u;i>1&&(r/=i,n/=i),o=Math.floor(6*t),s=1-n,a=6*t-o,o&1&&(a=1-a),u=r+a*(s-r);var d,h,p;switch(o){default:case 6:case 0:d=s,h=u,p=r;break;case 1:d=u,h=s,p=r;break;case 2:d=r,h=s,p=u;break;case 3:d=r,h=u,p=s;break;case 4:d=u,h=r,p=s;break;case 5:d=s,h=r,p=u;break}return[d*255,h*255,p*255]};S.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,o,s,a;return o=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[o*255,s*255,a*255]};S.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,o,s;return i=t*3.2406+r*-1.5372+n*-.4986,o=t*-.9689+r*1.8758+n*.0415,s=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[i*255,o*255,s*255]};S.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,o,s;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+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,o=500*(t-r),s=200*(r-n),[i,o,s]};S.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,o,s;o=(t+16)/116,i=r/500+o,s=o-n/200;var a=Math.pow(o,3),u=Math.pow(i,3),d=Math.pow(s,3);return o=a>.008856?a:(o-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,s=d>.008856?d:(s-16/116)/7.787,i*=95.047,o*=100,s*=108.883,[i,o,s]};S.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],i,o,s;return i=Math.atan2(n,r),o=i*360/2/Math.PI,o<0&&(o+=360),s=Math.sqrt(r*r+n*n),[t,s,o]};S.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,o,s;return s=n/360*2*Math.PI,i=r*Math.cos(s),o=r*Math.sin(s),[t,i,o]};S.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:S.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var o=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return i===2&&(o+=60),o};S.hsv.ansi16=function(e){return S.rgb.ansi16(S.hsv.rgb(e),e[2])};S.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};S.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,o=(t>>2&1)*r*255;return[n,i,o]};S.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,o=r%6/5*255;return[n,i,o]};S.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};S.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,o=n>>8&255,s=n&255;return[i,o,s]};S.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),s=i-o,a,u;return s<1?a=o/(1-s):a=0,s<=0?u=0:i===t?u=(r-n)/s%6:i===r?u=2+(n-t)/s:u=4+(t-r)/s+4,u/=6,u%=1,[u*360,s*100,a*100]};S.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};S.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};S.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],o=t%1*6,s=o%1,a=1-s,u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,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]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};S.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};S.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};S.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};S.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,i=n-t,o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],i*100,o*100]};S.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};S.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};S.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};S.gray.hsl=S.gray.hsv=function(e){return[0,0,e[0]]};S.gray.hwb=function(e){return[0,100,e[0]]};S.gray.cmyk=function(e){return[0,0,0,e[0]]};S.gray.lab=function(e){return[e[0],0,0]};S.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};S.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}});var No=v((ep,Po)=>{var Jt=tn();function Xl(){for(var e={},t=Object.keys(Jt),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Ql(e){var t=Xl(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Jt[n]),o=i.length,s=0;s<o;s++){var a=i[s],u=t[a];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(a))}return t}function Zl(e,t){return function(r){return t(e(r))}}function ef(e,t){for(var r=[t[e].parent,e],n=Jt[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=Zl(Jt[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}Po.exports=function(e){for(var t=Ql(e),r={},n=Object.keys(t),i=n.length,o=0;o<i;o++){var s=n[o],a=t[s];a.parent!==null&&(r[s]=ef(s,t))}return r}});var jo=v((tp,Io)=>{var rn=tn(),tf=No(),ze={},rf=Object.keys(rn);function nf(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function of(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var i=n.length,o=0;o<i;o++)n[o]=Math.round(n[o]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}rf.forEach(function(e){ze[e]={},Object.defineProperty(ze[e],"channels",{value:rn[e].channels}),Object.defineProperty(ze[e],"labels",{value:rn[e].labels});var t=tf(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];ze[e][n]=of(i),ze[e][n].raw=nf(i)})});Io.exports=ze});var Bo=v((rp,Lo)=>{"use strict";var We=jo(),Vt=(e,t)=>function(){return`\x1B[${e.apply(We,arguments)+t}m`},Yt=(e,t)=>function(){let r=e.apply(We,arguments);return`\x1B[${38+t};5;${r}m`},Kt=(e,t)=>function(){let r=e.apply(We,arguments);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function sf(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],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]}};t.color.grey=t.color.gray;for(let i of Object.keys(t)){let o=t[i];for(let s of Object.keys(o)){let a=o[s];t[s]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},o[s]=t[s],e.set(a[0],a[1])}Object.defineProperty(t,i,{value:o,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}let r=i=>i,n=(i,o,s)=>[i,o,s];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:Vt(r,0)},t.color.ansi256={ansi256:Yt(r,0)},t.color.ansi16m={rgb:Kt(n,0)},t.bgColor.ansi={ansi:Vt(r,10)},t.bgColor.ansi256={ansi256:Yt(r,10)},t.bgColor.ansi16m={rgb:Kt(n,10)};for(let i of Object.keys(We)){if(typeof We[i]!="object")continue;let o=We[i];i==="ansi16"&&(i="ansi"),"ansi16"in o&&(t.color.ansi[i]=Vt(o.ansi16,0),t.bgColor.ansi[i]=Vt(o.ansi16,10)),"ansi256"in o&&(t.color.ansi256[i]=Yt(o.ansi256,0),t.bgColor.ansi256[i]=Yt(o.ansi256,10)),"rgb"in o&&(t.color.ansi16m[i]=Kt(o.rgb,0),t.bgColor.ansi16m[i]=Kt(o.rgb,10))}return t}Object.defineProperty(Lo,"exports",{enumerable:!0,get:sf})});var $o=v((np,Do)=>{"use strict";Do.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var Uo=v((ip,Ho)=>{"use strict";var af=require("os"),_e=$o(),Q=process.env,Je;_e("no-color")||_e("no-colors")||_e("color=false")?Je=!1:(_e("color")||_e("colors")||_e("color=true")||_e("color=always"))&&(Je=!0);"FORCE_COLOR"in Q&&(Je=Q.FORCE_COLOR.length===0||parseInt(Q.FORCE_COLOR,10)!==0);function uf(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function cf(e){if(Je===!1)return 0;if(_e("color=16m")||_e("color=full")||_e("color=truecolor"))return 3;if(_e("color=256"))return 2;if(e&&!e.isTTY&&Je!==!0)return 0;let t=Je?1:0;if(process.platform==="win32"){let r=af.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 Q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in Q)||Q.CI_NAME==="codeship"?1:t;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 r=parseInt((Q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Q.TERM_PROGRAM){case"iTerm.app":return r>=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:(Q.TERM==="dumb",t)}function nn(e){let t=cf(e);return uf(t)}Ho.exports={supportsColor:nn,stdout:nn(process.stdout),stderr:nn(process.stderr)}});var Vo=v((op,Jo)=>{"use strict";var lf=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Go=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,ff=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,hf=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,df=new Map([["n",`
7
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Wo(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):df.get(e)||e}function pf(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let o of n)if(!isNaN(o))r.push(Number(o));else if(i=o.match(ff))r.push(i[2].replace(hf,(s,a,u)=>a?Wo(a):u));else throw new Error(`Invalid Chalk template style argument: ${o} (in style '${e}')`);return r}function mf(e){Go.lastIndex=0;let t=[],r;for(;(r=Go.exec(e))!==null;){let n=r[1];if(r[2]){let i=pf(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function zo(e,t){let r={};for(let i of t)for(let o of i.styles)r[o[0]]=i.inverse?null:o.slice(1);let n=e;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}Jo.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(lf,(o,s,a,u,d,h)=>{if(s)i.push(Wo(s));else if(u){let p=i.join("");i=[],n.push(r.length===0?p:zo(e,r)(p)),r.push({inverse:a,styles:mf(u)})}else if(d){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(zo(e,r)(i.join(""))),i=[],r.pop()}else i.push(h)}),n.push(i.join("")),r.length>0){let o=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(o)}return n.join("")}});var Qt=v((sp,dt)=>{"use strict";var sn=Oo(),W=Bo(),on=Uo().stdout,yf=Vo(),Ko=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),Xo=["ansi","ansi","ansi256","ansi16m"],Qo=new Set(["gray"]),Ve=Object.create(null);function Yo(e,t){t=t||{};let r=on?on.level:0;e.level=t.level===void 0?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function ht(e){if(!this||!(this instanceof ht)||this.template){let t={};return Yo(t,e),t.template=function(){let r=[].slice.call(arguments);return bf.apply(null,[t.template].concat(r))},Object.setPrototypeOf(t,ht.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=ht,t.template}Yo(this,e)}Ko&&(W.blue.open="\x1B[94m");for(let e of Object.keys(W))W[e].closeRe=new RegExp(sn(W[e].close),"g"),Ve[e]={get(){let t=W[e];return Xt.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};Ve.visible={get(){return Xt.call(this,this._styles||[],!0,"visible")}};W.color.closeRe=new RegExp(sn(W.color.close),"g");for(let e of Object.keys(W.color.ansi))Qo.has(e)||(Ve[e]={get(){let t=this.level;return function(){let n={open:W.color[Xo[t]][e].apply(null,arguments),close:W.color.close,closeRe:W.color.closeRe};return Xt.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});W.bgColor.closeRe=new RegExp(sn(W.bgColor.close),"g");for(let e of Object.keys(W.bgColor.ansi)){if(Qo.has(e))continue;let t="bg"+e[0].toUpperCase()+e.slice(1);Ve[t]={get(){let r=this.level;return function(){let i={open:W.bgColor[Xo[r]][e].apply(null,arguments),close:W.bgColor.close,closeRe:W.bgColor.closeRe};return Xt.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}}}var gf=Object.defineProperties(()=>{},Ve);function Xt(e,t,r){let n=function(){return vf.apply(n,arguments)};n._styles=e,n._empty=t;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(o){i.level=o}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(o){i.enabled=o}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=gf,n}function vf(){let e=arguments,t=e.length,r=String(arguments[0]);if(t===0)return"";if(t>1)for(let i=1;i<t;i++)r+=" "+e[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=W.dim.open;Ko&&this.hasGrey&&(W.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 W.dim.open=n,r}function bf(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[t.raw[0]];for(let i=1;i<t.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(t.raw[i]));return yf(e,n.join(""))}Object.defineProperties(ht.prototype,Ve);dt.exports=ht();dt.exports.supportsColor=on;dt.exports.default=dt.exports});var cn=v((up,un)=>{var wf=require("fs"),_f=require("path");function ts(e){console.log(`[dotenv][DEBUG] ${e}`)}var Sf=`
8
+ `,Ef=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,xf=/\\n/g,Cf=/\n|\r|\r\n/;function rs(e,t){let r=!!(t&&t.debug),n={};return e.toString().split(Cf).forEach(function(i,o){let s=i.match(Ef);if(s!=null){let a=s[1],u=s[2]||"",d=u.length-1,h=u[0]==='"'&&u[d]==='"';u[0]==="'"&&u[d]==="'"||h?(u=u.substring(1,d),h&&(u=u.replace(xf,Sf))):u=u.trim(),n[a]=u}else r&&ts(`did not match key and value when parsing line ${o+1}: ${i}`)}),n}function kf(e){let t=_f.resolve(process.cwd(),".env"),r="utf8",n=!1;e&&(e.path!=null&&(t=e.path),e.encoding!=null&&(r=e.encoding),e.debug!=null&&(n=!0));try{let i=rs(wf.readFileSync(t,{encoding:r}),{debug:n});return Object.keys(i).forEach(function(o){Object.prototype.hasOwnProperty.call(process.env,o)?n&&ts(`"${o}" is already defined in \`process.env\` and will not be overwritten`):process.env[o]=i[o]}),{parsed:i}}catch(i){return{error:i}}}un.exports.config=kf;un.exports.parse=rs});var ue=v(fn=>{"use strict";fn.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{e.call(this,...t,(i,o)=>i!=null?n(i):r(o))})},"name",{value:e.name})};fn.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:e.name})}});var ls=v((hp,cs)=>{var Oe=require("constants"),Of=process.cwd,er=null,Rf=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return er||(er=Of.call(process)),er};try{process.cwd()}catch{}typeof process.chdir=="function"&&(hn=process.chdir,process.chdir=function(e){er=null,hn.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,hn));var hn;cs.exports=Mf;function Mf(e){Oe.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(h,p,y){y&&process.nextTick(y)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(h,p,y,m){m&&process.nextTick(m)},e.lchownSync=function(){}),Rf==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(h){function p(y,m,_){var O=Date.now(),R=0;h(y,m,function F(D){if(D&&(D.code==="EACCES"||D.code==="EPERM")&&Date.now()-O<6e4){setTimeout(function(){e.stat(m,function(G,U){G&&G.code==="ENOENT"?h(y,m,F):_(D)})},R),R<100&&(R+=10);return}_&&_(D)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,h),p}(e.rename)),e.read=typeof e.read!="function"?e.read:function(h){function p(y,m,_,O,R,F){var D;if(F&&typeof F=="function"){var G=0;D=function(U,te,ve){if(U&&U.code==="EAGAIN"&&G<10)return G++,h.call(e,y,m,_,O,R,D);F.apply(this,arguments)}}return h.call(e,y,m,_,O,R,D)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,h),p}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(h){return function(p,y,m,_,O){for(var R=0;;)try{return h.call(e,p,y,m,_,O)}catch(F){if(F.code==="EAGAIN"&&R<10){R++;continue}throw F}}}(e.readSync);function t(h){h.lchmod=function(p,y,m){h.open(p,Oe.O_WRONLY|Oe.O_SYMLINK,y,function(_,O){if(_){m&&m(_);return}h.fchmod(O,y,function(R){h.close(O,function(F){m&&m(R||F)})})})},h.lchmodSync=function(p,y){var m=h.openSync(p,Oe.O_WRONLY|Oe.O_SYMLINK,y),_=!0,O;try{O=h.fchmodSync(m,y),_=!1}finally{if(_)try{h.closeSync(m)}catch{}else h.closeSync(m)}return O}}function r(h){Oe.hasOwnProperty("O_SYMLINK")&&h.futimes?(h.lutimes=function(p,y,m,_){h.open(p,Oe.O_SYMLINK,function(O,R){if(O){_&&_(O);return}h.futimes(R,y,m,function(F){h.close(R,function(D){_&&_(F||D)})})})},h.lutimesSync=function(p,y,m){var _=h.openSync(p,Oe.O_SYMLINK),O,R=!0;try{O=h.futimesSync(_,y,m),R=!1}finally{if(R)try{h.closeSync(_)}catch{}else h.closeSync(_)}return O}):h.futimes&&(h.lutimes=function(p,y,m,_){_&&process.nextTick(_)},h.lutimesSync=function(){})}function n(h){return h&&function(p,y,m){return h.call(e,p,y,function(_){d(_)&&(_=null),m&&m.apply(this,arguments)})}}function i(h){return h&&function(p,y){try{return h.call(e,p,y)}catch(m){if(!d(m))throw m}}}function o(h){return h&&function(p,y,m,_){return h.call(e,p,y,m,function(O){d(O)&&(O=null),_&&_.apply(this,arguments)})}}function s(h){return h&&function(p,y,m){try{return h.call(e,p,y,m)}catch(_){if(!d(_))throw _}}}function a(h){return h&&function(p,y,m){typeof y=="function"&&(m=y,y=null);function _(O,R){R&&(R.uid<0&&(R.uid+=4294967296),R.gid<0&&(R.gid+=4294967296)),m&&m.apply(this,arguments)}return y?h.call(e,p,y,_):h.call(e,p,_)}}function u(h){return h&&function(p,y){var m=y?h.call(e,p,y):h.call(e,p);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function d(h){if(!h||h.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(h.code==="EINVAL"||h.code==="EPERM"))}}});var ds=v((dp,hs)=>{var fs=require("stream").Stream;hs.exports=qf;function qf(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);fs.call(this);var o=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 s=Object.keys(i),a=0,u=s.length;a<u;a++){var d=s[a];this[d]=i[d]}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(){o._read()});return}e.open(this.path,this.flags,this.mode,function(h,p){if(h){o.emit("error",h),o.readable=!1;return}o.fd=p,o.emit("open",p),o._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);fs.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 o=Object.keys(i),s=0,a=o.length;s<a;s++){var u=o[s];this[u]=i[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var ms=v((pp,ps)=>{"use strict";ps.exports=Ff;var Af=Object.getPrototypeOf||function(e){return e.__proto__};function Ff(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Af(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var Z=v((mp,mn)=>{var H=require("fs"),Tf=ls(),Pf=ds(),Nf=ms(),tr=require("util"),K,nr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(K=Symbol.for("graceful-fs.queue"),nr=Symbol.for("graceful-fs.previous")):(K="___graceful-fs.queue",nr="___graceful-fs.previous");function If(){}function vs(e,t){Object.defineProperty(e,K,{get:function(){return t}})}var Le=If;tr.debuglog?Le=tr.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Le=function(){var e=tr.format.apply(tr,arguments);e="GFS4: "+e.split(/\n/).join(`
9
+ GFS4: `),console.error(e)});H[K]||(ys=global[K]||[],vs(H,ys),H.close=function(e){function t(r,n){return e.call(H,r,function(i){i||gs(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,nr,{value:e}),t}(H.close),H.closeSync=function(e){function t(r){e.apply(H,arguments),gs()}return Object.defineProperty(t,nr,{value:e}),t}(H.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Le(H[K]),require("assert").equal(H[K].length,0)}));var ys;global[K]||vs(global,H[K]);mn.exports=dn(Nf(H));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!H.__patched&&(mn.exports=dn(H),H.__patched=!0);function dn(e){Tf(e),e.gracefulify=dn,e.createReadStream=te,e.createWriteStream=ve;var t=e.readFile;e.readFile=r;function r(k,P,T){return typeof P=="function"&&(T=P,P=null),$(k,P,T);function $(M,B,C,I){return t(M,B,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Ye([$,[M,B,C],A,I||Date.now(),Date.now()]):typeof C=="function"&&C.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(k,P,T,$){return typeof T=="function"&&($=T,T=null),M(k,P,T,$);function M(B,C,I,A,x){return n(B,C,I,function(q){q&&(q.code==="EMFILE"||q.code==="ENFILE")?Ye([M,[B,C,I,A],q,x||Date.now(),Date.now()]):typeof A=="function"&&A.apply(this,arguments)})}}var o=e.appendFile;o&&(e.appendFile=s);function s(k,P,T,$){return typeof T=="function"&&($=T,T=null),M(k,P,T,$);function M(B,C,I,A,x){return o(B,C,I,function(q){q&&(q.code==="EMFILE"||q.code==="ENFILE")?Ye([M,[B,C,I,A],q,x||Date.now(),Date.now()]):typeof A=="function"&&A.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=u);function u(k,P,T,$){return typeof T=="function"&&($=T,T=0),M(k,P,T,$);function M(B,C,I,A,x){return a(B,C,I,function(q){q&&(q.code==="EMFILE"||q.code==="ENFILE")?Ye([M,[B,C,I,A],q,x||Date.now(),Date.now()]):typeof A=="function"&&A.apply(this,arguments)})}}var d=e.readdir;e.readdir=p;var h=/^v[0-5]\./;function p(k,P,T){typeof P=="function"&&(T=P,P=null);var $=h.test(process.version)?function(C,I,A,x){return d(C,M(C,I,A,x))}:function(C,I,A,x){return d(C,I,M(C,I,A,x))};return $(k,P,T);function M(B,C,I,A){return function(x,q){x&&(x.code==="EMFILE"||x.code==="ENFILE")?Ye([$,[B,C,I],x,A||Date.now(),Date.now()]):(q&&q.sort&&q.sort(),typeof I=="function"&&I.call(this,x,q))}}}if(process.version.substr(0,4)==="v0.8"){var y=Pf(e);F=y.ReadStream,G=y.WriteStream}var m=e.ReadStream;m&&(F.prototype=Object.create(m.prototype),F.prototype.open=D);var _=e.WriteStream;_&&(G.prototype=Object.create(_.prototype),G.prototype.open=U),Object.defineProperty(e,"ReadStream",{get:function(){return F},set:function(k){F=k},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return G},set:function(k){G=k},enumerable:!0,configurable:!0});var O=F;Object.defineProperty(e,"FileReadStream",{get:function(){return O},set:function(k){O=k},enumerable:!0,configurable:!0});var R=G;Object.defineProperty(e,"FileWriteStream",{get:function(){return R},set:function(k){R=k},enumerable:!0,configurable:!0});function F(k,P){return this instanceof F?(m.apply(this,arguments),this):F.apply(Object.create(F.prototype),arguments)}function D(){var k=this;se(k.path,k.flags,k.mode,function(P,T){P?(k.autoClose&&k.destroy(),k.emit("error",P)):(k.fd=T,k.emit("open",T),k.read())})}function G(k,P){return this instanceof G?(_.apply(this,arguments),this):G.apply(Object.create(G.prototype),arguments)}function U(){var k=this;se(k.path,k.flags,k.mode,function(P,T){P?(k.destroy(),k.emit("error",P)):(k.fd=T,k.emit("open",T))})}function te(k,P){return new e.ReadStream(k,P)}function ve(k,P){return new e.WriteStream(k,P)}var xe=e.open;e.open=se;function se(k,P,T,$){return typeof T=="function"&&($=T,T=null),M(k,P,T,$);function M(B,C,I,A,x){return xe(B,C,I,function(q,Ce){q&&(q.code==="EMFILE"||q.code==="ENFILE")?Ye([M,[B,C,I,A],q,x||Date.now(),Date.now()]):typeof A=="function"&&A.apply(this,arguments)})}}return e}function Ye(e){Le("ENQUEUE",e[0].name,e[1]),H[K].push(e),pn()}var rr;function gs(){for(var e=Date.now(),t=0;t<H[K].length;++t)H[K][t].length>2&&(H[K][t][3]=e,H[K][t][4]=e);pn()}function pn(){if(clearTimeout(rr),rr=void 0,H[K].length!==0){var e=H[K].shift(),t=e[0],r=e[1],n=e[2],i=e[3],o=e[4];if(i===void 0)Le("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Le("TIMEOUT",t.name,r);var s=r.pop();typeof s=="function"&&s.call(null,n)}else{var a=Date.now()-o,u=Math.max(o-i,1),d=Math.min(u*1.2,100);a>=d?(Le("RETRY",t.name,r),t.apply(null,r.concat([i]))):H[K].push(e)}rr===void 0&&(rr=setTimeout(pn,0))}}});var pt=v(Re=>{"use strict";var bs=ue().fromCallback,ie=Z(),jf=["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(e=>typeof ie[e]=="function");Object.keys(ie).forEach(e=>{e!=="promises"&&(Re[e]=ie[e])});jf.forEach(e=>{Re[e]=bs(ie[e])});Re.exists=function(e,t){return typeof t=="function"?ie.exists(e,t):new Promise(r=>ie.exists(e,r))};Re.read=function(e,t,r,n,i,o){return typeof o=="function"?ie.read(e,t,r,n,i,o):new Promise((s,a)=>{ie.read(e,t,r,n,i,(u,d,h)=>{if(u)return a(u);s({bytesRead:d,buffer:h})})})};Re.write=function(e,t,...r){return typeof r[r.length-1]=="function"?ie.write(e,t,...r):new Promise((n,i)=>{ie.write(e,t,...r,(o,s,a)=>{if(o)return i(o);n({bytesWritten:s,buffer:a})})})};typeof ie.writev=="function"&&(Re.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?ie.writev(e,t,...r):new Promise((n,i)=>{ie.writev(e,t,...r,(o,s,a)=>{if(o)return i(o);n({bytesWritten:s,buffers:a})})})});typeof ie.realpath.native=="function"&&(Re.realpath.native=bs(ie.realpath.native))});var yn=v((gp,ws)=>{ws.exports=e=>{let t=process.versions.node.split(".").map(r=>parseInt(r,10));return e=e.split(".").map(r=>parseInt(r,10)),t[0]>e[0]||t[0]===e[0]&&(t[1]>e[1]||t[1]===e[1]&&t[2]>=e[2])}});var Cs=v((vp,gn)=>{"use strict";var Ke=pt(),Ee=require("path"),Lf=yn(),_s=Lf("10.12.0"),Ss=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(Ee.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}},Es=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),{...t,...e}},xs=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};gn.exports.makeDir=async(e,t)=>{if(Ss(e),t=Es(t),_s){let n=Ee.resolve(e);return Ke.mkdir(n,{mode:t.mode,recursive:!0})}let r=async n=>{try{await Ke.mkdir(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Ee.dirname(n)===n)throw xs(n);if(i.message.includes("null bytes"))throw i;return await r(Ee.dirname(n)),r(n)}try{if(!(await Ke.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Ee.resolve(e))};gn.exports.makeDirSync=(e,t)=>{if(Ss(e),t=Es(t),_s){let n=Ee.resolve(e);return Ke.mkdirSync(n,{mode:t.mode,recursive:!0})}let r=n=>{try{Ke.mkdirSync(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Ee.dirname(n)===n)throw xs(n);if(i.message.includes("null bytes"))throw i;return r(Ee.dirname(n)),r(n)}try{if(!Ke.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Ee.resolve(e))}});var Se=v((bp,ks)=>{"use strict";var Bf=ue().fromPromise,{makeDir:Df,makeDirSync:vn}=Cs(),bn=Bf(Df);ks.exports={mkdirs:bn,mkdirsSync:vn,mkdirp:bn,mkdirpSync:vn,ensureDir:bn,ensureDirSync:vn}});var wn=v((wp,Os)=>{"use strict";var Xe=Z();function $f(e,t,r,n){Xe.open(e,"r+",(i,o)=>{if(i)return n(i);Xe.futimes(o,t,r,s=>{Xe.close(o,a=>{n&&n(s||a)})})})}function Hf(e,t,r){let n=Xe.openSync(e,"r+");return Xe.futimesSync(n,t,r),Xe.closeSync(n)}Os.exports={utimesMillis:$f,utimesMillisSync:Hf}});var mt=v((_p,As)=>{"use strict";var Qe=pt(),ce=require("path"),Uf=require("util"),Gf=yn(),ir=Gf("10.5.0"),Rs=e=>ir?Qe.stat(e,{bigint:!0}):Qe.stat(e),_n=e=>ir?Qe.statSync(e,{bigint:!0}):Qe.statSync(e);function zf(e,t){return Promise.all([Rs(e),Rs(t).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function Wf(e,t){let r,n=_n(e);try{r=_n(t)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function Jf(e,t,r,n){Uf.callbackify(zf)(e,t,(i,o)=>{if(i)return n(i);let{srcStat:s,destStat:a}=o;return a&&or(s,a)?n(new Error("Source and destination must not be the same.")):s.isDirectory()&&Sn(e,t)?n(new Error(sr(e,t,r))):n(null,{srcStat:s,destStat:a})})}function Vf(e,t,r){let{srcStat:n,destStat:i}=Wf(e,t);if(i&&or(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&Sn(e,t))throw new Error(sr(e,t,r));return{srcStat:n,destStat:i}}function Ms(e,t,r,n,i){let o=ce.resolve(ce.dirname(e)),s=ce.resolve(ce.dirname(r));if(s===o||s===ce.parse(s).root)return i();let a=(u,d)=>u?u.code==="ENOENT"?i():i(u):or(t,d)?i(new Error(sr(e,r,n))):Ms(e,t,s,n,i);ir?Qe.stat(s,{bigint:!0},a):Qe.stat(s,a)}function qs(e,t,r,n){let i=ce.resolve(ce.dirname(e)),o=ce.resolve(ce.dirname(r));if(o===i||o===ce.parse(o).root)return;let s;try{s=_n(o)}catch(a){if(a.code==="ENOENT")return;throw a}if(or(t,s))throw new Error(sr(e,r,n));return qs(e,t,o,n)}function or(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(ir||t.ino<Number.MAX_SAFE_INTEGER||t.size===e.size&&t.mode===e.mode&&t.nlink===e.nlink&&t.atimeMs===e.atimeMs&&t.mtimeMs===e.mtimeMs&&t.ctimeMs===e.ctimeMs&&t.birthtimeMs===e.birthtimeMs))}function Sn(e,t){let r=ce.resolve(e).split(ce.sep).filter(i=>i),n=ce.resolve(t).split(ce.sep).filter(i=>i);return r.reduce((i,o,s)=>i&&n[s]===o,!0)}function sr(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}As.exports={checkPaths:Jf,checkPathsSync:Vf,checkParentPaths:Ms,checkParentPathsSync:qs,isSrcSubdir:Sn}});var Is=v((Sp,Ns)=>{"use strict";var ee=Z(),yt=require("path"),Yf=Se().mkdirsSync,Kf=wn().utimesMillisSync,gt=mt();function Xf(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
10
+
11
+ see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=gt.checkPathsSync(e,t,"copy");return gt.checkParentPathsSync(e,n,t,"copy"),Qf(i,e,t,r)}function Qf(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=yt.dirname(r);return ee.existsSync(i)||Yf(i),Fs(e,t,r,n)}function Fs(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return Zf(e,t,r,n)}function Zf(e,t,r,n){let o=(n.dereference?ee.statSync:ee.lstatSync)(t);if(o.isDirectory())return sh(o,e,t,r,n);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return eh(o,e,t,r,n);if(o.isSymbolicLink())return ch(e,t,r,n)}function eh(e,t,r,n,i){return t?th(e,r,n,i):Ts(e,r,n,i)}function th(e,t,r,n){if(n.overwrite)return ee.unlinkSync(r),Ts(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function Ts(e,t,r,n){return ee.copyFileSync(t,r),n.preserveTimestamps&&rh(e.mode,t,r),En(r,e.mode)}function rh(e,t,r){return nh(e)&&ih(r,e),oh(t,r)}function nh(e){return(e&128)===0}function ih(e,t){return En(e,t|128)}function En(e,t){return ee.chmodSync(e,t)}function oh(e,t){let r=ee.statSync(e);return Kf(t,r.atime,r.mtime)}function sh(e,t,r,n,i){if(!t)return ah(e.mode,r,n,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return Ps(r,n,i)}function ah(e,t,r,n){return ee.mkdirSync(r),Ps(t,r,n),En(r,e)}function Ps(e,t,r){ee.readdirSync(e).forEach(n=>uh(n,e,t,r))}function uh(e,t,r,n){let i=yt.join(t,e),o=yt.join(r,e),{destStat:s}=gt.checkPathsSync(i,o,"copy");return Fs(s,i,o,n)}function ch(e,t,r,n){let i=ee.readlinkSync(t);if(n.dereference&&(i=yt.resolve(process.cwd(),i)),e){let o;try{o=ee.readlinkSync(r)}catch(s){if(s.code==="EINVAL"||s.code==="UNKNOWN")return ee.symlinkSync(i,r);throw s}if(n.dereference&&(o=yt.resolve(process.cwd(),o)),gt.isSrcSubdir(i,o))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${o}'.`);if(ee.statSync(r).isDirectory()&&gt.isSrcSubdir(o,i))throw new Error(`Cannot overwrite '${o}' with '${i}'.`);return lh(i,r)}else return ee.symlinkSync(i,r)}function lh(e,t){return ee.unlinkSync(t),ee.symlinkSync(e,t)}Ns.exports=Xf});var xn=v((Ep,js)=>{"use strict";js.exports={copySync:Is()}});var Me=v((xp,Bs)=>{"use strict";var fh=ue().fromPromise,Ls=pt();function hh(e){return Ls.access(e).then(()=>!0).catch(()=>!1)}Bs.exports={pathExists:fh(hh),pathExistsSync:Ls.existsSync}});var Vs=v((Cp,Js)=>{"use strict";var le=Z(),vt=require("path"),dh=Se().mkdirs,ph=Me().pathExists,mh=wn().utimesMillis,bt=mt();function yh(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
12
+
13
+ see https://github.com/jprichardson/node-fs-extra/issues/269`),bt.checkPaths(e,t,"copy",(i,o)=>{if(i)return n(i);let{srcStat:s,destStat:a}=o;bt.checkParentPaths(e,s,t,"copy",u=>u?n(u):r.filter?Us(Ds,a,e,t,r,n):Ds(a,e,t,r,n))})}function Ds(e,t,r,n,i){let o=vt.dirname(r);ph(o,(s,a)=>{if(s)return i(s);if(a)return Cn(e,t,r,n,i);dh(o,u=>u?i(u):Cn(e,t,r,n,i))})}function Us(e,t,r,n,i,o){Promise.resolve(i.filter(r,n)).then(s=>s?e(t,r,n,i,o):o(),s=>o(s))}function Cn(e,t,r,n,i){return n.filter?Us($s,e,t,r,n,i):$s(e,t,r,n,i)}function $s(e,t,r,n,i){(n.dereference?le.stat:le.lstat)(t,(s,a)=>{if(s)return i(s);if(a.isDirectory())return Eh(a,e,t,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return gh(a,e,t,r,n,i);if(a.isSymbolicLink())return kh(e,t,r,n,i)})}function gh(e,t,r,n,i,o){return t?vh(e,r,n,i,o):Gs(e,r,n,i,o)}function vh(e,t,r,n,i){if(n.overwrite)le.unlink(r,o=>o?i(o):Gs(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function Gs(e,t,r,n,i){le.copyFile(t,r,o=>o?i(o):n.preserveTimestamps?bh(e.mode,t,r,i):ar(r,e.mode,i))}function bh(e,t,r,n){return wh(e)?_h(r,e,i=>i?n(i):Hs(e,t,r,n)):Hs(e,t,r,n)}function wh(e){return(e&128)===0}function _h(e,t,r){return ar(e,t|128,r)}function Hs(e,t,r,n){Sh(t,r,i=>i?n(i):ar(r,e,n))}function ar(e,t,r){return le.chmod(e,t,r)}function Sh(e,t,r){le.stat(e,(n,i)=>n?r(n):mh(t,i.atime,i.mtime,r))}function Eh(e,t,r,n,i,o){return t?t&&!t.isDirectory()?o(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):zs(r,n,i,o):xh(e.mode,r,n,i,o)}function xh(e,t,r,n,i){le.mkdir(r,o=>{if(o)return i(o);zs(t,r,n,s=>s?i(s):ar(r,e,i))})}function zs(e,t,r,n){le.readdir(e,(i,o)=>i?n(i):Ws(o,e,t,r,n))}function Ws(e,t,r,n,i){let o=e.pop();return o?Ch(e,o,t,r,n,i):i()}function Ch(e,t,r,n,i,o){let s=vt.join(r,t),a=vt.join(n,t);bt.checkPaths(s,a,"copy",(u,d)=>{if(u)return o(u);let{destStat:h}=d;Cn(h,s,a,i,p=>p?o(p):Ws(e,r,n,i,o))})}function kh(e,t,r,n,i){le.readlink(t,(o,s)=>{if(o)return i(o);if(n.dereference&&(s=vt.resolve(process.cwd(),s)),e)le.readlink(r,(a,u)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?le.symlink(s,r,i):i(a):(n.dereference&&(u=vt.resolve(process.cwd(),u)),bt.isSrcSubdir(s,u)?i(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${u}'.`)):e.isDirectory()&&bt.isSrcSubdir(u,s)?i(new Error(`Cannot overwrite '${u}' with '${s}'.`)):Oh(s,r,i)));else return le.symlink(s,r,i)})}function Oh(e,t,r){le.unlink(t,n=>n?r(n):le.symlink(e,t,r))}Js.exports=yh});var kn=v((kp,Ys)=>{"use strict";var Rh=ue().fromCallback;Ys.exports={copy:Rh(Vs())}});var ia=v((Op,na)=>{"use strict";var Ks=Z(),ea=require("path"),L=require("assert"),wt=process.platform==="win32";function ta(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||Ks[r],r=r+"Sync",e[r]=e[r]||Ks[r]}),e.maxBusyTries=e.maxBusyTries||3}function On(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),L(e,"rimraf: missing path"),L.strictEqual(typeof e,"string","rimraf: path should be a string"),L.strictEqual(typeof r,"function","rimraf: callback function required"),L(t,"rimraf: invalid options argument provided"),L.strictEqual(typeof t,"object","rimraf: options should be object"),ta(t),Xs(e,t,function i(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&n<t.maxBusyTries){n++;let s=n*100;return setTimeout(()=>Xs(e,t,i),s)}o.code==="ENOENT"&&(o=null)}r(o)})}function Xs(e,t,r){L(e),L(t),L(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&wt)return Qs(e,t,n,r);if(i&&i.isDirectory())return ur(e,t,n,r);t.unlink(e,o=>{if(o){if(o.code==="ENOENT")return r(null);if(o.code==="EPERM")return wt?Qs(e,t,o,r):ur(e,t,o,r);if(o.code==="EISDIR")return ur(e,t,o,r)}return r(o)})})}function Qs(e,t,r,n){L(e),L(t),L(typeof n=="function"),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(o,s)=>{o?n(o.code==="ENOENT"?null:r):s.isDirectory()?ur(e,t,r,n):t.unlink(e,n)})})}function Zs(e,t,r){let n;L(e),L(t);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?cr(e,t,r):t.unlinkSync(e)}function ur(e,t,r,n){L(e),L(t),L(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?Mh(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function Mh(e,t,r){L(e),L(t),L(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let o=i.length,s;if(o===0)return t.rmdir(e,r);i.forEach(a=>{On(ea.join(e,a),t,u=>{if(!s){if(u)return r(s=u);--o===0&&t.rmdir(e,r)}})})})}function ra(e,t){let r;t=t||{},ta(t),L(e,"rimraf: missing path"),L.strictEqual(typeof e,"string","rimraf: path should be a string"),L(t,"rimraf: missing options"),L.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&wt&&Zs(e,t,n)}try{r&&r.isDirectory()?cr(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return wt?Zs(e,t,n):cr(e,t,n);if(n.code!=="EISDIR")throw n;cr(e,t,n)}}function cr(e,t,r){L(e),L(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")qh(e,t);else if(n.code!=="ENOENT")throw n}}function qh(e,t){if(L(e),L(t),t.readdirSync(e).forEach(r=>ra(ea.join(e,r),t)),wt){let r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}na.exports=On;On.sync=ra});var _t=v((Rp,sa)=>{"use strict";var Ah=ue().fromCallback,oa=ia();sa.exports={remove:Ah(oa),removeSync:oa.sync}});var pa=v((Mp,da)=>{"use strict";var Fh=ue().fromCallback,ca=Z(),la=require("path"),fa=Se(),ha=_t(),aa=Fh(function(t,r){r=r||function(){},ca.readdir(t,(n,i)=>{if(n)return fa.mkdirs(t,r);i=i.map(s=>la.join(t,s)),o();function o(){let s=i.pop();if(!s)return r();ha.remove(s,a=>{if(a)return r(a);o()})}})});function ua(e){let t;try{t=ca.readdirSync(e)}catch{return fa.mkdirsSync(e)}t.forEach(r=>{r=la.join(e,r),ha.removeSync(r)})}da.exports={emptyDirSync:ua,emptydirSync:ua,emptyDir:aa,emptydir:aa}});var va=v((qp,ga)=>{"use strict";var Th=ue().fromCallback,ma=require("path"),qe=Z(),ya=Se();function Ph(e,t){function r(){qe.writeFile(e,"",n=>{if(n)return t(n);t()})}qe.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let o=ma.dirname(e);qe.stat(o,(s,a)=>{if(s)return s.code==="ENOENT"?ya.mkdirs(o,u=>{if(u)return t(u);r()}):t(s);a.isDirectory()?r():qe.readdir(o,u=>{if(u)return t(u)})})})}function Nh(e){let t;try{t=qe.statSync(e)}catch{}if(t&&t.isFile())return;let r=ma.dirname(e);try{qe.statSync(r).isDirectory()||qe.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")ya.mkdirsSync(r);else throw n}qe.writeFileSync(e,"")}ga.exports={createFile:Th(Ph),createFileSync:Nh}});var Ea=v((Ap,Sa)=>{"use strict";var Ih=ue().fromCallback,wa=require("path"),Be=Z(),_a=Se(),ba=Me().pathExists;function jh(e,t,r){function n(i,o){Be.link(i,o,s=>{if(s)return r(s);r(null)})}ba(t,(i,o)=>{if(i)return r(i);if(o)return r(null);Be.lstat(e,s=>{if(s)return s.message=s.message.replace("lstat","ensureLink"),r(s);let a=wa.dirname(t);ba(a,(u,d)=>{if(u)return r(u);if(d)return n(e,t);_a.mkdirs(a,h=>{if(h)return r(h);n(e,t)})})})})}function Lh(e,t){if(Be.existsSync(t))return;try{Be.lstatSync(e)}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let n=wa.dirname(t);return Be.existsSync(n)||_a.mkdirsSync(n),Be.linkSync(e,t)}Sa.exports={createLink:Ih(jh),createLinkSync:Lh}});var Ca=v((Fp,xa)=>{"use strict";var Ae=require("path"),St=Z(),Bh=Me().pathExists;function Dh(e,t,r){if(Ae.isAbsolute(e))return St.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=Ae.dirname(t),i=Ae.join(n,e);return Bh(i,(o,s)=>o?r(o):s?r(null,{toCwd:i,toDst:e}):St.lstat(e,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:e,toDst:Ae.relative(n,e)})))}}function $h(e,t){let r;if(Ae.isAbsolute(e)){if(r=St.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=Ae.dirname(t),i=Ae.join(n,e);if(r=St.existsSync(i),r)return{toCwd:i,toDst:e};if(r=St.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:Ae.relative(n,e)}}}xa.exports={symlinkPaths:Dh,symlinkPathsSync:$h}});var Ra=v((Tp,Oa)=>{"use strict";var ka=Z();function Hh(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);ka.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function Uh(e,t){let r;if(t)return t;try{r=ka.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Oa.exports={symlinkType:Hh,symlinkTypeSync:Uh}});var Na=v((Pp,Pa)=>{"use strict";var Gh=ue().fromCallback,qa=require("path"),Ze=Z(),Aa=Se(),zh=Aa.mkdirs,Wh=Aa.mkdirsSync,Fa=Ca(),Jh=Fa.symlinkPaths,Vh=Fa.symlinkPathsSync,Ta=Ra(),Yh=Ta.symlinkType,Kh=Ta.symlinkTypeSync,Ma=Me().pathExists;function Xh(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,Ma(t,(i,o)=>{if(i)return n(i);if(o)return n(null);Jh(e,t,(s,a)=>{if(s)return n(s);e=a.toDst,Yh(a.toCwd,r,(u,d)=>{if(u)return n(u);let h=qa.dirname(t);Ma(h,(p,y)=>{if(p)return n(p);if(y)return Ze.symlink(e,t,d,n);zh(h,m=>{if(m)return n(m);Ze.symlink(e,t,d,n)})})})})})}function Qh(e,t,r){if(Ze.existsSync(t))return;let i=Vh(e,t);e=i.toDst,r=Kh(i.toCwd,r);let o=qa.dirname(t);return Ze.existsSync(o)||Wh(o),Ze.symlinkSync(e,t,r)}Pa.exports={createSymlink:Gh(Xh),createSymlinkSync:Qh}});var ja=v((Np,Ia)=>{"use strict";var lr=va(),fr=Ea(),hr=Na();Ia.exports={createFile:lr.createFile,createFileSync:lr.createFileSync,ensureFile:lr.createFile,ensureFileSync:lr.createFileSync,createLink:fr.createLink,createLinkSync:fr.createLinkSync,ensureLink:fr.createLink,ensureLinkSync:fr.createLinkSync,createSymlink:hr.createSymlink,createSymlinkSync:hr.createSymlinkSync,ensureSymlink:hr.createSymlink,ensureSymlinkSync:hr.createSymlinkSync}});var dr=v((Ip,La)=>{function Zh(e,{EOL:t=`
14
+ `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let o=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+o}function e0(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}La.exports={stringify:Zh,stripBom:e0}});var Ha=v((jp,$a)=>{var et;try{et=Z()}catch{et=require("fs")}var pr=ue(),{stringify:Ba,stripBom:Da}=dr();async function t0(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||et,n="throws"in t?t.throws:!0,i=await pr.fromCallback(r.readFile)(e,t);i=Da(i);let o;try{o=JSON.parse(i,t?t.reviver:null)}catch(s){if(n)throw s.message=`${e}: ${s.message}`,s;return null}return o}var r0=pr.fromPromise(t0);function n0(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||et,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=Da(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function i0(e,t,r={}){let n=r.fs||et,i=Ba(t,r);await pr.fromCallback(n.writeFile)(e,i,r)}var o0=pr.fromPromise(i0);function s0(e,t,r={}){let n=r.fs||et,i=Ba(t,r);return n.writeFileSync(e,i,r)}var a0={readFile:r0,readFileSync:n0,writeFile:o0,writeFileSync:s0};$a.exports=a0});var Ga=v((Lp,Ua)=>{"use strict";var mr=Ha();Ua.exports={readJson:mr.readFile,readJsonSync:mr.readFileSync,writeJson:mr.writeFile,writeJsonSync:mr.writeFileSync}});var yr=v((Bp,Ja)=>{"use strict";var u0=ue().fromCallback,Et=Z(),za=require("path"),Wa=Se(),c0=Me().pathExists;function l0(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=za.dirname(e);c0(i,(o,s)=>{if(o)return n(o);if(s)return Et.writeFile(e,t,r,n);Wa.mkdirs(i,a=>{if(a)return n(a);Et.writeFile(e,t,r,n)})})}function f0(e,...t){let r=za.dirname(e);if(Et.existsSync(r))return Et.writeFileSync(e,...t);Wa.mkdirsSync(r),Et.writeFileSync(e,...t)}Ja.exports={outputFile:u0(l0),outputFileSync:f0}});var Ya=v((Dp,Va)=>{"use strict";var{stringify:h0}=dr(),{outputFile:d0}=yr();async function p0(e,t,r={}){let n=h0(t,r);await d0(e,n,r)}Va.exports=p0});var Xa=v(($p,Ka)=>{"use strict";var{stringify:m0}=dr(),{outputFileSync:y0}=yr();function g0(e,t,r){let n=m0(t,r);y0(e,n,r)}Ka.exports=g0});var Za=v((Hp,Qa)=>{"use strict";var v0=ue().fromPromise,oe=Ga();oe.outputJson=v0(Ya());oe.outputJsonSync=Xa();oe.outputJSON=oe.outputJson;oe.outputJSONSync=oe.outputJsonSync;oe.writeJSON=oe.writeJson;oe.writeJSONSync=oe.writeJsonSync;oe.readJSON=oe.readJson;oe.readJSONSync=oe.readJsonSync;Qa.exports=oe});var ou=v((Up,iu)=>{"use strict";var ru=Z(),b0=require("path"),w0=xn().copySync,nu=_t().removeSync,_0=Se().mkdirpSync,eu=mt();function S0(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=eu.checkPathsSync(e,t,"move");return eu.checkParentPathsSync(e,i,t,"move"),_0(b0.dirname(t)),E0(e,t,n)}function E0(e,t,r){if(r)return nu(t),tu(e,t,r);if(ru.existsSync(t))throw new Error("dest already exists.");return tu(e,t,r)}function tu(e,t,r){try{ru.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return x0(e,t,r)}}function x0(e,t,r){return w0(e,t,{overwrite:r,errorOnExist:!0}),nu(e)}iu.exports=S0});var au=v((Gp,su)=>{"use strict";su.exports={moveSync:ou()}});var hu=v((zp,fu)=>{"use strict";var C0=Z(),k0=require("path"),O0=kn().copy,lu=_t().remove,R0=Se().mkdirp,M0=Me().pathExists,uu=mt();function q0(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;uu.checkPaths(e,t,"move",(o,s)=>{if(o)return n(o);let{srcStat:a}=s;uu.checkParentPaths(e,a,t,"move",u=>{if(u)return n(u);R0(k0.dirname(t),d=>d?n(d):A0(e,t,i,n))})})}function A0(e,t,r,n){if(r)return lu(t,i=>i?n(i):cu(e,t,r,n));M0(t,(i,o)=>i?n(i):o?n(new Error("dest already exists.")):cu(e,t,r,n))}function cu(e,t,r,n){C0.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):F0(e,t,r,n):n())}function F0(e,t,r,n){O0(e,t,{overwrite:r,errorOnExist:!0},o=>o?n(o):lu(e,n))}fu.exports=q0});var pu=v((Wp,du)=>{"use strict";var T0=ue().fromCallback;du.exports={move:T0(hu())}});var yu=v((Jp,Rn)=>{"use strict";Rn.exports={...pt(),...xn(),...kn(),...pa(),...ja(),...Za(),...Se(),...au(),...pu(),...yr(),...Me(),..._t()};var mu=require("fs");Object.getOwnPropertyDescriptor(mu,"promises")&&Object.defineProperty(Rn.exports,"promises",{get(){return mu.promises}})});var vu=v((Vp,gu)=>{"use strict";gu.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 Mn=v((Yp,wu)=>{var xt=vu(),bu={};for(let e of Object.keys(xt))bu[xt[e]]=e;var E={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"]}};wu.exports=E;for(let e of Object.keys(E)){if(!("channels"in E[e]))throw new Error("missing channels property: "+e);if(!("labels"in E[e]))throw new Error("missing channel labels property: "+e);if(E[e].labels.length!==E[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=E[e];delete E[e].channels,delete E[e].labels,Object.defineProperty(E[e],"channels",{value:t}),Object.defineProperty(E[e],"labels",{value:r})}E.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),o=Math.max(t,r,n),s=o-i,a,u;o===i?a=0:t===o?a=(r-n)/s:r===o?a=2+(n-t)/s:n===o&&(a=4+(t-r)/s),a=Math.min(a*60,360),a<0&&(a+=360);let d=(i+o)/2;return o===i?u=0:d<=.5?u=s/(o+i):u=s/(2-o-i),[a,u*100,d*100]};E.rgb.hsv=function(e){let t,r,n,i,o,s=e[0]/255,a=e[1]/255,u=e[2]/255,d=Math.max(s,a,u),h=d-Math.min(s,a,u),p=function(y){return(d-y)/6/h+1/2};return h===0?(i=0,o=0):(o=h/d,t=p(s),r=p(a),n=p(u),s===d?i=n-r:a===d?i=1/3+t-n:u===d&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,d*100]};E.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],i=E.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,o*100,n*100]};E.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),o=(1-t-i)/(1-i)||0,s=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[o*100,s*100,a*100,i*100]};function P0(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}E.rgb.keyword=function(e){let t=bu[e];if(t)return t;let r=1/0,n;for(let i of Object.keys(xt)){let o=xt[i],s=P0(e,o);s<r&&(r=s,n=i)}return n};E.keyword.rgb=function(e){return xt[e]};E.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=t*.4124+r*.3576+n*.1805,o=t*.2126+r*.7152+n*.0722,s=t*.0193+r*.1192+n*.9505;return[i*100,o*100,s*100]};E.rgb.lab=function(e){let t=E.rgb.xyz(e),r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let o=116*n-16,s=500*(r-n),a=200*(n-i);return[o,s,a]};E.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i,o,s;if(r===0)return s=n*255,[s,s,s];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,u=[0,0,0];for(let d=0;d<3;d++)o=t+1/3*-(d-1),o<0&&o++,o>1&&o--,6*o<1?s=a+(i-a)*6*o:2*o<1?s=i:3*o<2?s=a+(i-a)*(2/3-o)*6:s=a,u[d]=s*255;return u};E.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=r,o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o;let s=(n+r)/2,a=n===0?2*i/(o+i):2*r/(n+r);return[t,a*100,s*100]};E.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),s=255*n*(1-r),a=255*n*(1-r*o),u=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,u,s];case 1:return[a,n,s];case 2:return[s,n,u];case 3:return[s,a,n];case 4:return[u,s,n];case 5:return[n,s,a]}};E.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),o,s;s=(2-r)*n;let a=(2-r)*i;return o=r*i,o/=a<=1?a:2-a,o=o||0,s/=2,[t,o*100,s*100]};E.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,o;i>1&&(r/=i,n/=i);let s=Math.floor(6*t),a=1-n;o=6*t-s,s&1&&(o=1-o);let u=r+o*(a-r),d,h,p;switch(s){default:case 6:case 0:d=a,h=u,p=r;break;case 1:d=u,h=a,p=r;break;case 2:d=r,h=a,p=u;break;case 3:d=r,h=u,p=a;break;case 4:d=u,h=r,p=a;break;case 5:d=a,h=r,p=u;break}return[d*255,h*255,p*255]};E.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,o=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[o*255,s*255,a*255]};E.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i,o,s;return i=t*3.2406+r*-1.5372+n*-.4986,o=t*-.9689+r*1.8758+n*.0415,s=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[i*255,o*255,s*255]};E.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,o=500*(t-r),s=200*(r-n);return[i,o,s]};E.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],i,o,s;o=(t+16)/116,i=r/500+o,s=o-n/200;let a=o**3,u=i**3,d=s**3;return o=a>.008856?a:(o-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,s=d>.008856?d:(s-16/116)/7.787,i*=95.047,o*=100,s*=108.883,[i,o,s]};E.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let s=Math.sqrt(r*r+n*n);return[t,s,i]};E.lch.lab=function(e){let t=e[0],r=e[1],i=e[2]/360*2*Math.PI,o=r*Math.cos(i),s=r*Math.sin(i);return[t,o,s]};E.rgb.ansi16=function(e,t=null){let[r,n,i]=e,o=t===null?E.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return o===2&&(s+=60),s};E.hsv.ansi16=function(e){return E.rgb.ansi16(E.hsv.rgb(e),e[2])};E.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};E.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,o=(t>>2&1)*r*255;return[n,i,o]};E.ansi256.rgb=function(e){if(e>=232){let o=(e-232)*10+8;return[o,o,o]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};E.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};E.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,o=n>>8&255,s=n&255;return[i,o,s]};E.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),s=i-o,a,u;return s<1?a=o/(1-s):a=0,s<=0?u=0:i===t?u=(r-n)/s%6:i===r?u=2+(n-t)/s:u=4+(t-r)/s,u/=6,u%=1,[u*360,s*100,a*100]};E.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};E.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};E.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],o=t%1*6,s=o%1,a=1-s,u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,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]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,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(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};E.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};E.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};E.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,i=n-t,o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],i*100,o*100]};E.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};E.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};E.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};E.gray.hsl=function(e){return[0,0,e[0]]};E.gray.hsv=E.gray.hsl;E.gray.hwb=function(e){return[0,100,e[0]]};E.gray.cmyk=function(e){return[0,0,0,e[0]]};E.gray.lab=function(e){return[e[0],0,0]};E.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};E.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var Su=v((Kp,_u)=>{var gr=Mn();function N0(){let e={},t=Object.keys(gr);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function I0(e){let t=N0(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),i=Object.keys(gr[n]);for(let o=i.length,s=0;s<o;s++){let a=i[s],u=t[a];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(a))}}return t}function j0(e,t){return function(r){return t(e(r))}}function L0(e,t){let r=[t[e].parent,e],n=gr[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=j0(gr[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}_u.exports=function(e){let t=I0(e),r={},n=Object.keys(t);for(let i=n.length,o=0;o<i;o++){let s=n[o];t[s].parent!==null&&(r[s]=L0(s,t))}return r}});var xu=v((Xp,Eu)=>{var qn=Mn(),B0=Su(),tt={},D0=Object.keys(qn);function $0(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function H0(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=e(r);if(typeof i=="object")for(let o=i.length,s=0;s<o;s++)i[s]=Math.round(i[s]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}D0.forEach(e=>{tt[e]={},Object.defineProperty(tt[e],"channels",{value:qn[e].channels}),Object.defineProperty(tt[e],"labels",{value:qn[e].labels});let t=B0(e);Object.keys(t).forEach(n=>{let i=t[n];tt[e][n]=H0(i),tt[e][n].raw=$0(i)})});Eu.exports=tt});var qu=v((Qp,Mu)=>{"use strict";var Cu=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,ku=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},Ou=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},vr=e=>e,Ru=(e,t,r)=>[e,t,r],rt=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},An,nt=(e,t,r,n)=>{An===void 0&&(An=xu());let i=n?10:0,o={};for(let[s,a]of Object.entries(An)){let u=s==="ansi16"?"ansi":s;s===t?o[u]=e(r,i):typeof a=="object"&&(o[u]=e(a[t],i))}return o};function U0(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[i,o]of Object.entries(n))t[i]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[i]=t[i],e.set(o[0],o[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",rt(t.color,"ansi",()=>nt(Cu,"ansi16",vr,!1)),rt(t.color,"ansi256",()=>nt(ku,"ansi256",vr,!1)),rt(t.color,"ansi16m",()=>nt(Ou,"rgb",Ru,!1)),rt(t.bgColor,"ansi",()=>nt(Cu,"ansi16",vr,!0)),rt(t.bgColor,"ansi256",()=>nt(ku,"ansi256",vr,!0)),rt(t.bgColor,"ansi16m",()=>nt(Ou,"rgb",Ru,!0)),t}Object.defineProperty(Mu,"exports",{enumerable:!0,get:U0})});var Fu=v((Zp,Au)=>{"use strict";var G0=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let i=t.length,o=0,s="";do s+=e.substr(o,n-o)+t+r,o=n+i,n=e.indexOf(t,o);while(n!==-1);return s+=e.substr(o),s},z0=(e,t,r,n)=>{let i=0,o="";do{let s=e[n-1]==="\r";o+=e.substr(i,(s?n-1:n)-i)+t+(s?`\r
15
+ `:`
16
+ `)+r,i=n+1,n=e.indexOf(`
17
+ `,i)}while(n!==-1);return o+=e.substr(i),o};Au.exports={stringReplaceAll:G0,stringEncaseCRLFWithFirstIndex:z0}});var ju=v((e1,Iu)=>{"use strict";var W0=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Tu=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,J0=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,V0=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Y0=new Map([["n",`
18
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Nu(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):Y0.get(e)||e}function K0(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let o of n){let s=Number(o);if(!Number.isNaN(s))r.push(s);else if(i=o.match(J0))r.push(i[2].replace(V0,(a,u,d)=>u?Nu(u):d));else throw new Error(`Invalid Chalk template style argument: ${o} (in style '${e}')`)}return r}function X0(e){Tu.lastIndex=0;let t=[],r;for(;(r=Tu.exec(e))!==null;){let n=r[1];if(r[2]){let i=K0(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function Pu(e,t){let r={};for(let i of t)for(let o of i.styles)r[o[0]]=i.inverse?null:o.slice(1);let n=e;for(let[i,o]of Object.entries(r))if(Array.isArray(o)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=o.length>0?n[i](...o):n[i]}return n}Iu.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(W0,(o,s,a,u,d,h)=>{if(s)i.push(Nu(s));else if(u){let p=i.join("");i=[],n.push(r.length===0?p:Pu(e,r)(p)),r.push({inverse:a,styles:X0(u)})}else if(d){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Pu(e,r)(i.join(""))),i=[],r.pop()}else i.push(h)}),n.push(i.join("")),r.length>0){let o=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(o)}return n.join("")}});var Gu=v((t1,Uu)=>{"use strict";var Ct=qu(),{stdout:Tn,stderr:Pn}=Ir(),{stringReplaceAll:Q0,stringEncaseCRLFWithFirstIndex:Z0}=Fu(),{isArray:br}=Array,Bu=["ansi","ansi","ansi256","ansi16m"],it=Object.create(null),ed=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Tn?Tn.level:0;e.level=t.level===void 0?r:t.level},Nn=class{constructor(t){return Du(t)}},Du=e=>{let t={};return ed(t,e),t.template=(...r)=>Hu(t.template,...r),Object.setPrototypeOf(t,wr.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Nn,t.template};function wr(e){return Du(e)}for(let[e,t]of Object.entries(Ct))it[e]={get(){let r=_r(this,In(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};it.visible={get(){let e=_r(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var $u=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of $u)it[e]={get(){let{level:t}=this;return function(...r){let n=In(Ct.color[Bu[t]][e](...r),Ct.color.close,this._styler);return _r(this,n,this._isEmpty)}}};for(let e of $u){let t="bg"+e[0].toUpperCase()+e.slice(1);it[t]={get(){let{level:r}=this;return function(...n){let i=In(Ct.bgColor[Bu[r]][e](...n),Ct.bgColor.close,this._styler);return _r(this,i,this._isEmpty)}}}}var td=Object.defineProperties(()=>{},{...it,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),In=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},_r=(e,t,r)=>{let n=(...i)=>br(i[0])&&br(i[0].raw)?Lu(n,Hu(n,...i)):Lu(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,td),n._generator=e,n._styler=t,n._isEmpty=r,n},Lu=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=Q0(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
19
+ `);return o!==-1&&(t=Z0(t,i,n,o)),n+t+i},Fn,Hu=(e,...t)=>{let[r]=t;if(!br(r)||!br(r.raw))return t.join(" ");let n=t.slice(1),i=[r.raw[0]];for(let o=1;o<r.length;o++)i.push(String(n[o-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[o]));return Fn===void 0&&(Fn=ju()),Fn(e,i.join(""))};Object.defineProperties(wr.prototype,it);var Sr=wr();Sr.supportsColor=Tn;Sr.stderr=wr({level:Pn?Pn.level:0});Sr.stderr.supportsColor=Pn;Uu.exports=Sr});var zu=v((jn,Ln)=>{(function(e,t){typeof jn=="object"&&typeof Ln<"u"?Ln.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.tinycolor=t())})(jn,function(){"use strict";function e(c){return e=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},e(c)}var t=/^\s+/,r=/\s+$/;function n(c,f){if(c=c||"",f=f||{},c instanceof n)return c;if(!(this instanceof n))return new n(c,f);var l=i(c);this._originalInput=c,this._r=l.r,this._g=l.g,this._b=l.b,this._a=l.a,this._roundA=Math.round(100*this._a)/100,this._format=f.format||l.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=l.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(),l,g,w,b,N,j;return l=f.r/255,g=f.g/255,w=f.b/255,l<=.03928?b=l/12.92:b=Math.pow((l+.055)/1.055,2.4),g<=.03928?N=g/12.92:N=Math.pow((g+.055)/1.055,2.4),w<=.03928?j=w/12.92:j=Math.pow((w+.055)/1.055,2.4),.2126*b+.7152*N+.0722*j},setAlpha:function(f){return this._a=$(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),l=Math.round(f.h*360),g=Math.round(f.s*100),w=Math.round(f.v*100);return this._a==1?"hsv("+l+", "+g+"%, "+w+"%)":"hsva("+l+", "+g+"%, "+w+"%, "+this._roundA+")"},toHsl:function(){var f=s(this._r,this._g,this._b);return{h:f.h*360,s:f.s,l:f.l,a:this._a}},toHslString:function(){var f=s(this._r,this._g,this._b),l=Math.round(f.h*360),g=Math.round(f.s*100),w=Math.round(f.l*100);return this._a==1?"hsl("+l+", "+g+"%, "+w+"%)":"hsla("+l+", "+g+"%, "+w+"%, "+this._roundA+")"},toHex:function(f){return h(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(M(this._r,255)*100)+"%",g:Math.round(M(this._g,255)*100)+"%",b:Math.round(M(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(M(this._r,255)*100)+"%, "+Math.round(M(this._g,255)*100)+"%, "+Math.round(M(this._b,255)*100)+"%)":"rgba("+Math.round(M(this._r,255)*100)+"%, "+Math.round(M(this._g,255)*100)+"%, "+Math.round(M(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:P[h(this._r,this._g,this._b,!0)]||!1},toFilter:function(f){var l="#"+y(this._r,this._g,this._b,this._a),g=l,w=this._gradientType?"GradientType = 1, ":"";if(f){var b=n(f);g="#"+y(b._r,b._g,b._b,b._a)}return"progid:DXImageTransform.Microsoft.gradient("+w+"startColorstr="+l+",endColorstr="+g+")"},toString:function(f){var l=!!f;f=f||this._format;var g=!1,w=this._a<1&&this._a>=0,b=!l&&w&&(f==="hex"||f==="hex6"||f==="hex3"||f==="hex4"||f==="hex8"||f==="name");return b?f==="name"&&this._a===0?this.toName():this.toRgbString():(f==="rgb"&&(g=this.toRgbString()),f==="prgb"&&(g=this.toPercentageRgbString()),(f==="hex"||f==="hex6")&&(g=this.toHexString()),f==="hex3"&&(g=this.toHexString(!0)),f==="hex4"&&(g=this.toHex8String(!0)),f==="hex8"&&(g=this.toHex8String()),f==="name"&&(g=this.toName()),f==="hsl"&&(g=this.toHslString()),f==="hsv"&&(g=this.toHsvString()),g||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(f,l){var g=f.apply(null,[this].concat([].slice.call(l)));return this._r=g._r,this._g=g._g,this._b=g._b,this.setAlpha(g._a),this},lighten:function(){return this._applyModification(R,arguments)},brighten:function(){return this._applyModification(F,arguments)},darken:function(){return this._applyModification(D,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(O,arguments)},spin:function(){return this._applyModification(G,arguments)},_applyCombination:function(f,l){return f.apply(null,[this].concat([].slice.call(l)))},analogous:function(){return this._applyCombination(xe,arguments)},complement:function(){return this._applyCombination(U,arguments)},monochromatic:function(){return this._applyCombination(se,arguments)},splitcomplement:function(){return this._applyCombination(ve,arguments)},triad:function(){return this._applyCombination(te,[3])},tetrad:function(){return this._applyCombination(te,[4])}},n.fromRatio=function(c,f){if(e(c)=="object"){var l={};for(var g in c)c.hasOwnProperty(g)&&(g==="a"?l[g]=c[g]:l[g]=q(c[g]));c=l}return n(c,f)};function i(c){var f={r:0,g:0,b:0},l=1,g=null,w=null,b=null,N=!1,j=!1;return typeof c=="string"&&(c=Rt(c)),e(c)=="object"&&(de(c.r)&&de(c.g)&&de(c.b)?(f=o(c.r,c.g,c.b),N=!0,j=String(c.r).substr(-1)==="%"?"prgb":"rgb"):de(c.h)&&de(c.s)&&de(c.v)?(g=q(c.s),w=q(c.v),f=d(c.h,g,w),N=!0,j="hsv"):de(c.h)&&de(c.s)&&de(c.l)&&(g=q(c.s),b=q(c.l),f=a(c.h,g,b),N=!0,j="hsl"),c.hasOwnProperty("a")&&(l=c.a)),l=$(l),{ok:N,format:c.format||j,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:l}}function o(c,f,l){return{r:M(c,255)*255,g:M(f,255)*255,b:M(l,255)*255}}function s(c,f,l){c=M(c,255),f=M(f,255),l=M(l,255);var g=Math.max(c,f,l),w=Math.min(c,f,l),b,N,j=(g+w)/2;if(g==w)b=N=0;else{var z=g-w;switch(N=j>.5?z/(2-g-w):z/(g+w),g){case c:b=(f-l)/z+(f<l?6:0);break;case f:b=(l-c)/z+2;break;case l:b=(c-f)/z+4;break}b/=6}return{h:b,s:N,l:j}}function a(c,f,l){var g,w,b;c=M(c,360),f=M(f,100),l=M(l,100);function N(me,st,be){return be<0&&(be+=1),be>1&&(be-=1),be<1/6?me+(st-me)*6*be:be<1/2?st:be<2/3?me+(st-me)*(2/3-be)*6:me}if(f===0)g=w=b=l;else{var j=l<.5?l*(1+f):l+f-l*f,z=2*l-j;g=N(z,j,c+1/3),w=N(z,j,c),b=N(z,j,c-1/3)}return{r:g*255,g:w*255,b:b*255}}function u(c,f,l){c=M(c,255),f=M(f,255),l=M(l,255);var g=Math.max(c,f,l),w=Math.min(c,f,l),b,N,j=g,z=g-w;if(N=g===0?0:z/g,g==w)b=0;else{switch(g){case c:b=(f-l)/z+(f<l?6:0);break;case f:b=(l-c)/z+2;break;case l:b=(c-f)/z+4;break}b/=6}return{h:b,s:N,v:j}}function d(c,f,l){c=M(c,360)*6,f=M(f,100),l=M(l,100);var g=Math.floor(c),w=c-g,b=l*(1-f),N=l*(1-w*f),j=l*(1-(1-w)*f),z=g%6,me=[l,N,b,b,j,l][z],st=[j,l,l,N,b,b][z],be=[b,b,j,l,l,N][z];return{r:me*255,g:st*255,b:be*255}}function h(c,f,l,g){var w=[x(Math.round(c).toString(16)),x(Math.round(f).toString(16)),x(Math.round(l).toString(16))];return g&&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(c,f,l,g,w){var b=[x(Math.round(c).toString(16)),x(Math.round(f).toString(16)),x(Math.round(l).toString(16)),x(Ce(g))];return w&&b[0].charAt(0)==b[0].charAt(1)&&b[1].charAt(0)==b[1].charAt(1)&&b[2].charAt(0)==b[2].charAt(1)&&b[3].charAt(0)==b[3].charAt(1)?b[0].charAt(0)+b[1].charAt(0)+b[2].charAt(0)+b[3].charAt(0):b.join("")}function y(c,f,l,g){var w=[x(Ce(g)),x(Math.round(c).toString(16)),x(Math.round(f).toString(16)),x(Math.round(l).toString(16))];return w.join("")}n.equals=function(c,f){return!c||!f?!1:n(c).toRgbString()==n(f).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function m(c,f){f=f===0?0:f||10;var l=n(c).toHsl();return l.s-=f/100,l.s=B(l.s),n(l)}function _(c,f){f=f===0?0:f||10;var l=n(c).toHsl();return l.s+=f/100,l.s=B(l.s),n(l)}function O(c){return n(c).desaturate(100)}function R(c,f){f=f===0?0:f||10;var l=n(c).toHsl();return l.l+=f/100,l.l=B(l.l),n(l)}function F(c,f){f=f===0?0:f||10;var l=n(c).toRgb();return l.r=Math.max(0,Math.min(255,l.r-Math.round(255*-(f/100)))),l.g=Math.max(0,Math.min(255,l.g-Math.round(255*-(f/100)))),l.b=Math.max(0,Math.min(255,l.b-Math.round(255*-(f/100)))),n(l)}function D(c,f){f=f===0?0:f||10;var l=n(c).toHsl();return l.l-=f/100,l.l=B(l.l),n(l)}function G(c,f){var l=n(c).toHsl(),g=(l.h+f)%360;return l.h=g<0?360+g:g,n(l)}function U(c){var f=n(c).toHsl();return f.h=(f.h+180)%360,n(f)}function te(c,f){if(isNaN(f)||f<=0)throw new Error("Argument to polyad must be a positive number");for(var l=n(c).toHsl(),g=[n(c)],w=360/f,b=1;b<f;b++)g.push(n({h:(l.h+b*w)%360,s:l.s,l:l.l}));return g}function ve(c){var f=n(c).toHsl(),l=f.h;return[n(c),n({h:(l+72)%360,s:f.s,l:f.l}),n({h:(l+216)%360,s:f.s,l:f.l})]}function xe(c,f,l){f=f||6,l=l||30;var g=n(c).toHsl(),w=360/l,b=[n(c)];for(g.h=(g.h-(w*f>>1)+720)%360;--f;)g.h=(g.h+w)%360,b.push(n(g));return b}function se(c,f){f=f||6;for(var l=n(c).toHsv(),g=l.h,w=l.s,b=l.v,N=[],j=1/f;f--;)N.push(n({h:g,s:w,v:b})),b=(b+j)%1;return N}n.mix=function(c,f,l){l=l===0?0:l||50;var g=n(c).toRgb(),w=n(f).toRgb(),b=l/100,N={r:(w.r-g.r)*b+g.r,g:(w.g-g.g)*b+g.g,b:(w.b-g.b)*b+g.b,a:(w.a-g.a)*b+g.a};return n(N)},n.readability=function(c,f){var l=n(c),g=n(f);return(Math.max(l.getLuminance(),g.getLuminance())+.05)/(Math.min(l.getLuminance(),g.getLuminance())+.05)},n.isReadable=function(c,f,l){var g=n.readability(c,f),w,b;switch(b=!1,w=pe(l),w.level+w.size){case"AAsmall":case"AAAlarge":b=g>=4.5;break;case"AAlarge":b=g>=3;break;case"AAAsmall":b=g>=7;break}return b},n.mostReadable=function(c,f,l){var g=null,w=0,b,N,j,z;l=l||{},N=l.includeFallbackColors,j=l.level,z=l.size;for(var me=0;me<f.length;me++)b=n.readability(c,f[me]),b>w&&(w=b,g=n(f[me]));return n.isReadable(c,g,{level:j,size:z})||!N?g:(l.includeFallbackColors=!1,n.mostReadable(c,["#fff","#000"],l))};var k=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"},P=n.hexNames=T(k);function T(c){var f={};for(var l in c)c.hasOwnProperty(l)&&(f[c[l]]=l);return f}function $(c){return c=parseFloat(c),(isNaN(c)||c<0||c>1)&&(c=1),c}function M(c,f){I(c)&&(c="100%");var l=A(c);return c=Math.min(f,Math.max(0,parseFloat(c))),l&&(c=parseInt(c*f,10)/100),Math.abs(c-f)<1e-6?1:c%f/parseFloat(f)}function B(c){return Math.min(1,Math.max(0,c))}function C(c){return parseInt(c,16)}function I(c){return typeof c=="string"&&c.indexOf(".")!=-1&&parseFloat(c)===1}function A(c){return typeof c=="string"&&c.indexOf("%")!=-1}function x(c){return c.length==1?"0"+c:""+c}function q(c){return c<=1&&(c=c*100+"%"),c}function Ce(c){return Math.round(parseFloat(c)*255).toString(16)}function Fe(c){return C(c)/255}var ae=function(){var c="[-\\+]?\\d+%?",f="[-\\+]?\\d*\\.\\d+%?",l="(?:"+f+")|(?:"+c+")",g="[\\s|\\(]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")\\s*\\)?",w="[\\s|\\(]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")\\s*\\)?";return{CSS_UNIT:new RegExp(l),rgb:new RegExp("rgb"+g),rgba:new RegExp("rgba"+w),hsl:new RegExp("hsl"+g),hsla:new RegExp("hsla"+w),hsv:new RegExp("hsv"+g),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 de(c){return!!ae.CSS_UNIT.exec(c)}function Rt(c){c=c.replace(t,"").replace(r,"").toLowerCase();var f=!1;if(k[c])c=k[c],f=!0;else if(c=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var l;return(l=ae.rgb.exec(c))?{r:l[1],g:l[2],b:l[3]}:(l=ae.rgba.exec(c))?{r:l[1],g:l[2],b:l[3],a:l[4]}:(l=ae.hsl.exec(c))?{h:l[1],s:l[2],l:l[3]}:(l=ae.hsla.exec(c))?{h:l[1],s:l[2],l:l[3],a:l[4]}:(l=ae.hsv.exec(c))?{h:l[1],s:l[2],v:l[3]}:(l=ae.hsva.exec(c))?{h:l[1],s:l[2],v:l[3],a:l[4]}:(l=ae.hex8.exec(c))?{r:C(l[1]),g:C(l[2]),b:C(l[3]),a:Fe(l[4]),format:f?"name":"hex8"}:(l=ae.hex6.exec(c))?{r:C(l[1]),g:C(l[2]),b:C(l[3]),format:f?"name":"hex"}:(l=ae.hex4.exec(c))?{r:C(l[1]+""+l[1]),g:C(l[2]+""+l[2]),b:C(l[3]+""+l[3]),a:Fe(l[4]+""+l[4]),format:f?"name":"hex8"}:(l=ae.hex3.exec(c))?{r:C(l[1]+""+l[1]),g:C(l[2]+""+l[2]),b:C(l[3]+""+l[3]),format:f?"name":"hex"}:!1}function pe(c){var f,l;return c=c||{level:"AA",size:"small"},f=(c.level||"AA").toUpperCase(),l=(c.size||"small").toLowerCase(),f!=="AA"&&f!=="AAA"&&(f="AA"),l!=="small"&&l!=="large"&&(l="small"),{level:f,size:l}}return n})});var Qu=v((r1,Xu)=>{var kt=zu(),Yu={r:256,g:256,b:256,a:1},Ku={h:360,s:1,v:1,a:1};function Dn(e,t,r){let n={};for(let i in e)e.hasOwnProperty(i)&&(n[i]=r===0?0:(t[i]-e[i])/r);return n}function $n(e,t,r,n){let i={};for(let o in t)t.hasOwnProperty(o)&&(i[o]=e[o]*r+t[o],i[o]=i[o]<0?i[o]+n[o]:n[o]!==1?i[o]%n[o]:i[o]);return i}function Bn(e,t,r){let n=e.color.toRgb(),i=t.color.toRgb(),o=Dn(n,i,r),s=[e.color];for(let a=1;a<r;a++){let u=$n(o,n,a,Yu);s.push(kt(u))}return s}function Wu(e,t,r,n){let i=e.color.toHsv(),o=t.color.toHsv();if(i.s===0||o.s===0)return Bn(e,t,r);let s;if(typeof n=="boolean")s=n;else{let h=i.h<o.h&&o.h-i.h<180||i.h>o.h&&i.h-o.h>180;s=n==="long"&&h||n==="short"&&!h}let a=Dn(i,o,r),u=[e.color],d;i.h<=o.h&&!s||i.h>=o.h&&s?d=o.h-i.h:s?d=360-o.h+i.h:d=360-i.h+o.h,a.h=Math.pow(-1,s?1:0)*Math.abs(d)/r;for(let h=1;h<r;h++){let p=$n(a,i,h,Ku);u.push(kt(p))}return u}function Ju(e,t){let r=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let o=1;o<r;o++){let s=(t-1)*(e[o].pos-e[o-1].pos);n.push(Math.max(1,Math.round(s)))}let i=1;for(let o=r-1;o--;)i+=n[o];for(;i!==t;)if(i<t){let o=Math.min.apply(null,n);n[n.indexOf(o)]++,i++}else{let o=Math.max.apply(null,n);n[n.indexOf(o)]--,i--}return n}function Vu(e,t,r,n){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let i,o;for(let u=0,d=e.length;u<d-1;u++)if(t>=e[u].pos&&t<e[u+1].pos){i=e[u],o=e[u+1];break}i||(i=o=e[e.length-1]);let s=Dn(i.color[r](),o.color[r](),(o.pos-i.pos)*100),a=$n(s,i.color[r](),(t-i.pos)*100,n);return kt(a)}var ot=class{constructor(t){if(t.length<2)throw new Error("Invalid number of stops (< 2)");let r=t[0].pos!==void 0,n=t.length,i=-1,o=!1;this.stops=t.map((s,a)=>{let u=s.pos!==void 0;if(r^u)throw new Error("Cannot mix positionned and not posionned color stops");if(u){let d=s.color!==void 0;if(!d&&(o||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(o=!d,s={color:d?kt(s.color):null,colorLess:!d,pos:s.pos},s.pos<0||s.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(s.pos<i)throw new Error("Color stops positions are not ordered");i=s.pos}else s={color:kt(s.color!==void 0?s.color:s),pos:a/(n-1)};return s}),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 t=[];return this.stops.forEach(function(r){t.push({color:r.color,pos:1-r.pos})}),new ot(t.reverse())}loop(){let t=[],r=[];return this.stops.forEach(n=>{t.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 ot(t.concat(r.reverse()))}rgb(t){let r=Ju(this.stops,t),n=[];this.stops.forEach((i,o)=>{i.colorLess&&(i.color=Bn(this.stops[o-1],this.stops[o+1],2)[1])});for(let i=0,o=this.stops.length;i<o-1;i++){let s=Bn(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...s)}return n.push(this.stops[this.stops.length-1].color),n}hsv(t,r){let n=Ju(this.stops,t),i=[];this.stops.forEach((o,s)=>{o.colorLess&&(o.color=Wu(this.stops[s-1],this.stops[s+1],2,r)[1])});for(let o=0,s=this.stops.length;o<s-1;o++){let a=Wu(this.stops[o],this.stops[o+1],n[o],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(t,r){t=t||"linear",r=r||(t==="linear"?"to right":"ellipse at center");let n=t+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(t){return Vu(this.stops,t,"toRgb",Yu)}hsvAt(t){return Vu(this.stops,t,"toHsv",Ku)}};Xu.exports=function(e){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new ot(e)}});var nc=v((n1,Er)=>{"use strict";var ec=Gu(),rd=Qu(),Zu=/\s/g;function Hn(...e){let t=rd.apply(this,e),r=(n,i)=>nd(n?n.toString():"",t,i);return r.multiline=(n,i)=>id(n?n.toString():"",t,i),r}var tc=(e,t,r)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(r,t.hsvSpin.toLowerCase()):e.rgb(r);function nd(e,t,r){let n=rc(r),i=Math.max(e.replace(Zu,"").length,t.stops.length),o=tc(t,n,i),s="";for(let a of e)s+=a.match(Zu)?a:ec.hex(o.shift().toHex())(a);return s}function id(e,t,r){let n=rc(r),i=e.split(`
20
+ `),o=Math.max.apply(null,i.map(u=>u.length).concat([t.stops.length])),s=tc(t,n,o),a=[];for(let u of i){let d=s.slice(0),h="";for(let p of u)h+=ec.hex(d.shift().toHex())(p);a.push(h)}return a.join(`
21
+ `)}function rc(e){let t={interpolation:"rgb",hsvSpin:"short",...e};if(e!==void 0&&typeof e!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof e}\``);if(typeof t.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof t.interpolation}\``);if(t.interpolation.toLowerCase()==="hsv"&&typeof t.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof t.hsvSpin}\``);return t}var Ot={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"}}};Er.exports=Hn;for(let e in Ot)Er.exports[e]=t=>new Hn(Ot[e].colors)(t,Ot[e].options),Er.exports[e].multiline=t=>new Hn(Ot[e].colors).multiline(t,Ot[e].options)});var Zo=ye(en()),es=ye(Qt()),an=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 t=await(0,Zo.default)({url:`${this.baseUrl}/login_check`,method:"POST",headers:{"Content-Type":"application/json"},data:{username:this.user,password:this.password}});if(t.status===200){let{data:{token:r}}=t;this.headers={Authorization:"bearer "+r,"Cache-Control":"no-store"}}return this.headers}catch{console.error(es.default.red(`
22
+ \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
23
+ \u2502 Access credentials failure \u2502
24
+ \u2502 Check that the login details are correct in your .env file \u2502
25
+ \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
26
+ `)),process.exit(1)}}},Zt=new an;var ac=ye(en()),uc=ye(Qt()),cc=ye(cn());var ns=ye(require("crypto")),ln=ye(require("fs")),is=ye(require("path")),os=is.default.resolve(__dirname,"./../../apiCache"),cp=`${os}/siteHash.json`;function ss(e){let t=ns.default.createHash("sha256");return t.update(JSON.stringify(e)),`${os}/${t.digest("hex")}`}function as(e,t){let r=typeof t=="string"?t:JSON.stringify(t);ln.default.writeFileSync(ss(e),r,"utf8")}function us(e){try{let t=ln.default.readFileSync(ss(e),{encoding:"utf-8"});return JSON.parse(t)}catch{return null}}var od=ye(Qt()),ic=ye(cn()),sd=ye(yu()),ad=ye(nc());ic.default.config();var ud=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS);function Un(...e){ud&&console.info(...e)}function oc(e){return new Promise(t=>setTimeout(t,e))}function Gn(e,t=3){return(e/1e3).toFixed(t)}function sc(e){return"site"in e&&e.site?e?.site:void 0}cc.default.config();var{env:{RETRY_WAIT_SECONDS:cd="4",RETRY_ATTEMPTS:ld="1"}}=process;async function zn(e){let{endpoint:t,body:r,cached:n,attempt:i=1,method:o,headers:s}=e,a={endpoint:t,body:r,cached:n};if(n){let u=us(a);if(u)return u}try{let{data:u}=await(0,ac.default)({url:t,method:o,headers:{...s,...Zt.headers},data:r});return as(a,u),u}catch(u){let d=u;return d.response?.status===404?null:((i>parseInt(ld)||!d.response)&&process.exit(1),fd(d,{callInfo:{endpoint:t,body:r}}),console.warn(`Waiting for retry: ${o}`,t),await oc(parseInt(cd)*1e3),zn({endpoint:t,body:r,cached:n,method:o,attempt:i+1}))}}async function lc(e){let t=new Date,{endpoint:r}=e,n=await zn({...e,method:"get"}),i=e.cached?"(cached)":"(fetch)",o=sc(n),s=o?`site: ${o} `:"",a=Gn(new Date().getTime()-t.getTime());return Un(`GET ${i} ${s} ${r} - ${a}s`),n}async function fc(e){let t=new Date,{endpoint:r,body:n,headers:i}=e,o=r.endsWith("/distributor")?`# Distributor body: ${JSON.stringify(n)} - lang: ${JSON.stringify(i?.lang)}`:"",s=await zn({...e,method:"post"}),a=e.cached?"(cached)":"(fetch)",u=Gn(new Date().getTime()-t.getTime());return Un(`POST ${a} ${r} - ${u}s ${o}`),s}function fd(e,t){let{response:r,message:n,stack:i}=e,{callInfo:o}=t,{status:s,statusText:a,data:u}=r||{},d=[];for(let m of Object.keys(o)){let _=m;d.push(`${m}: ${typeof o[_]=="object"?JSON.stringify(o[_]):o[_]}`)}let h=d.join(`
27
+ `),p=r?`Code: ${s} - ${a}
28
+ Response: ${JSON.stringify(u)}`:"",y=`${n}
29
+ ${i}`;console.warn(uc.default.bold.red(`
30
+ =============
31
+
32
+ { Call info }
33
+ ${h}
34
+
35
+ { API Response }
36
+ ${p}
37
+
38
+ { Error details }
39
+ ${y}
40
+
41
+ =============
42
+ `))}var Wn=class{baseURL;settings;ENDPOINTS;constructor(){this.baseURL=process.env.API_URL,this.settings={cloudinaryName:"",useMetaTitle:!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:t}=this.ENDPOINTS,r=await lc({endpoint:t});this.settings=r}async resetRender(){let{resetRender:t}=this.ENDPOINTS;await fc({endpoint:t})}},hc=new Wn;var hd=async()=>{await Zt.login(),await hc.resetRender()};hd();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@griddo/cx",
3
3
  "description": "Griddo SSG based on Gatsby",
4
- "version": "1.75.215",
4
+ "version": "1.75.217",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Diego M. Béjar <diego.bejar@secuoyas.com>",
@@ -20,12 +20,14 @@
20
20
  "griddo-cx": "./index.js"
21
21
  },
22
22
  "scripts": {
23
- "build": "yarn run build:exporter",
23
+ "build": "yarn run build:exporter && yarn run build:reset-render",
24
+ "build:reset-render": "esbuild ./scripts/reset-render.ts --bundle --platform=node --minify --outfile=./build/reset-render.js",
24
25
  "build:exporter": "esbuild ./scripts/griddo-exporter.ts --bundle --platform=node --minify --outfile=./build/index.js",
25
26
  "export": "gatsby telemetry --disable && gatsby build --prefix-paths",
26
27
  "clean": "gatsby clean; rm -rf .cache public assets dist build store",
27
- "prepare": "yarn run build:exporter",
28
- "watch:tscheck": "tsc --noEmit --watch"
28
+ "prepare": "yarn run build",
29
+ "watch:tscheck": "tsc --noEmit --watch",
30
+ "reset-render": "node ./build/reset-render.js"
29
31
  },
30
32
  "dependencies": {
31
33
  "@babel/core": "^7.21.0",
@@ -33,7 +35,7 @@
33
35
  "@babel/preset-env": "^7.14.5",
34
36
  "@babel/preset-react": "^7.14.5",
35
37
  "@babel/preset-typescript": "^7.16.5",
36
- "@griddo/core": "^1.75.215",
38
+ "@griddo/core": "^1.75.217",
37
39
  "@svgr/webpack": "^5.5.0",
38
40
  "babel-loader": "^8.0.6",
39
41
  "babel-plugin-styled-components": "^1.10.7",
@@ -63,7 +65,7 @@
63
65
  "react-helmet": "^6.0.0"
64
66
  },
65
67
  "devDependencies": {
66
- "@griddo/eslint-config-back": "^1.75.215",
68
+ "@griddo/eslint-config-back": "^1.75.217",
67
69
  "@types/babel__core": "^7.20.0",
68
70
  "@types/babel__preset-env": "^7.9.2",
69
71
  "@types/csvtojson": "^2.0.0",
@@ -111,5 +113,5 @@
111
113
  "publishConfig": {
112
114
  "access": "public"
113
115
  },
114
- "gitHead": "991b5419f859e414d995ba5b0ee7c5d20931f8e3"
116
+ "gitHead": "c47c8f2a709e3ad58142f5c74715ecf2b361b77f"
115
117
  }
File without changes