@griddo/cx 10.4.3 → 10.4.5

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.
@@ -1,45 +1,45 @@
1
- "use strict";var Hd=Object.create;var oo=Object.defineProperty;var Gd=Object.getOwnPropertyDescriptor;var zd=Object.getOwnPropertyNames;var Wd=Object.getPrototypeOf,Jd=Object.prototype.hasOwnProperty;var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Vd=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of zd(e))!Jd.call(t,i)&&i!==r&&oo(t,i,{get:()=>e[i],enumerable:!(n=Gd(e,i))||n.enumerable});return t};var z=(t,e,r)=>(r=t!=null?Hd(Wd(t)):{},Vd(e||!t||!t.__esModule?oo(r,"default",{value:t,enumerable:!0}):r,t));var Ln=y((mv,ao)=>{"use strict";ao.exports=function(e,r){return function(){for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];return e.apply(r,i)}}});var de=y((gv,lo)=>{"use strict";var Yd=Ln(),et=Object.prototype.toString;function Un(t){return et.call(t)==="[object Array]"}function $n(t){return typeof t>"u"}function Kd(t){return t!==null&&!$n(t)&&t.constructor!==null&&!$n(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function Qd(t){return et.call(t)==="[object ArrayBuffer]"}function Zd(t){return typeof FormData<"u"&&t instanceof FormData}function eh(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function th(t){return typeof t=="string"}function rh(t){return typeof t=="number"}function uo(t){return t!==null&&typeof t=="object"}function wr(t){if(et.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function nh(t){return et.call(t)==="[object Date]"}function ih(t){return et.call(t)==="[object File]"}function sh(t){return et.call(t)==="[object Blob]"}function co(t){return et.call(t)==="[object Function]"}function oh(t){return uo(t)&&co(t.pipe)}function ah(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function uh(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function ch(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Xn(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),Un(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function Bn(){var t={};function e(i,s){wr(t[s])&&wr(i)?t[s]=Bn(t[s],i):wr(i)?t[s]=Bn({},i):Un(i)?t[s]=i.slice():t[s]=i}for(var r=0,n=arguments.length;r<n;r++)Xn(arguments[r],e);return t}function lh(t,e,r){return Xn(e,function(i,s){r&&typeof i=="function"?t[s]=Yd(i,r):t[s]=i}),t}function fh(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}lo.exports={isArray:Un,isArrayBuffer:Qd,isBuffer:Kd,isFormData:Zd,isArrayBufferView:eh,isString:th,isNumber:rh,isObject:uo,isPlainObject:wr,isUndefined:$n,isDate:nh,isFile:ih,isBlob:sh,isFunction:co,isStream:oh,isURLSearchParams:ah,isStandardBrowserEnv:ch,forEach:Xn,merge:Bn,extend:lh,trim:uh,stripBOM:fh}});var _r=y((yv,ho)=>{"use strict";var dt=de();function fo(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}ho.exports=function(e,r,n){if(!r)return e;var i;if(n)i=n(r);else if(dt.isURLSearchParams(r))i=r.toString();else{var s=[];dt.forEach(r,function(u,h){u===null||typeof u>"u"||(dt.isArray(u)?h=h+"[]":u=[u],dt.forEach(u,function(p){dt.isDate(p)?p=p.toISOString():dt.isObject(p)&&(p=JSON.stringify(p)),s.push(fo(h)+"="+fo(p))}))}),i=s.join("&")}if(i){var o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}});var mo=y((vv,po)=>{"use strict";var dh=de();function xr(){this.handlers=[]}xr.prototype.use=function(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};xr.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};xr.prototype.forEach=function(e){dh.forEach(this.handlers,function(n){n!==null&&e(n)})};po.exports=xr});var yo=y((bv,go)=>{"use strict";var hh=de();go.exports=function(e,r){hh.forEach(e,function(i,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(e[r]=i,delete e[s])})}});var Sr=y((wv,vo)=>{"use strict";vo.exports=function(e,r,n,i,s){return e.config=r,n&&(e.code=n),e.request=i,e.response=s,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}});var Er=y((_v,bo)=>{"use strict";var ph=Sr();bo.exports=function(e,r,n,i,s){var o=new Error(e);return ph(o,r,n,i,s)}});var Hn=y((xv,wo)=>{"use strict";var mh=Er();wo.exports=function(e,r,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):r(mh("Request failed with status code "+n.status,n.config,null,n.request,n))}});var xo=y((Sv,_o)=>{"use strict";var Cr=de();_o.exports=Cr.isStandardBrowserEnv()?function(){return{write:function(r,n,i,s,o,a){var u=[];u.push(r+"="+encodeURIComponent(n)),Cr.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),Cr.isString(s)&&u.push("path="+s),Cr.isString(o)&&u.push("domain="+o),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var Eo=y((Ev,So)=>{"use strict";So.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}});var Po=y((Cv,Co)=>{"use strict";Co.exports=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}});var Gn=y((Pv,Do)=>{"use strict";var gh=Eo(),yh=Po();Do.exports=function(e,r){return e&&!gh(r)?yh(e,r):r}});var Io=y((Dv,Oo)=>{"use strict";var zn=de(),vh=["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"];Oo.exports=function(e){var r={},n,i,s;return e&&zn.forEach(e.split(`
2
- `),function(a){if(s=a.indexOf(":"),n=zn.trim(a.substr(0,s)).toLowerCase(),i=zn.trim(a.substr(s+1)),n){if(r[n]&&vh.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 Ro=y((Ov,Ao)=>{"use strict";var Fo=de();Ao.exports=Fo.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(s){var o=s;return e&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(o){var a=Fo.isString(o)?i(o):o;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}()});var Mo=y((Iv,ko)=>{"use strict";var Pr=de(),bh=Hn(),wh=xo(),_h=_r(),xh=Gn(),Sh=Io(),Eh=Ro(),Wn=Er();ko.exports=function(e){return new Promise(function(n,i){var s=e.data,o=e.headers,a=e.responseType;Pr.isFormData(s)&&delete o["Content-Type"];var u=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",c=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(h+":"+c)}var p=xh(e.baseURL,e.url);u.open(e.method.toUpperCase(),_h(p,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function g(){if(u){var b="getAllResponseHeaders"in u?Sh(u.getAllResponseHeaders()):null,x=!a||a==="text"||a==="json"?u.responseText:u.response,S={data:x,status:u.status,statusText:u.statusText,headers:b,config:e,request:u};bh(n,i,S),u=null}}if("onloadend"in u?u.onloadend=g:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(g)},u.onabort=function(){u&&(i(Wn("Request aborted",e,"ECONNABORTED",u)),u=null)},u.onerror=function(){i(Wn("Network Error",e,null,u)),u=null},u.ontimeout=function(){var x="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),i(Wn(x,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",u)),u=null},Pr.isStandardBrowserEnv()){var m=(e.withCredentials||Eh(p))&&e.xsrfCookieName?wh.read(e.xsrfCookieName):void 0;m&&(o[e.xsrfHeaderName]=m)}"setRequestHeader"in u&&Pr.forEach(o,function(x,S){typeof s>"u"&&S.toLowerCase()==="content-type"?delete o[S]:u.setRequestHeader(S,x)}),Pr.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&a!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(x){u&&(u.abort(),i(x),u=null)}),s||(s=null),u.send(s)})}});var To=y((Fv,qo)=>{var ht=1e3,pt=ht*60,mt=pt*60,tt=mt*24,Ch=tt*7,Ph=tt*365.25;qo.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Dh(t);if(r==="number"&&isFinite(t))return e.long?Ih(t):Oh(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Dh(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Ph;case"weeks":case"week":case"w":return r*Ch;case"days":case"day":case"d":return r*tt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*mt;case"minutes":case"minute":case"mins":case"min":case"m":return r*pt;case"seconds":case"second":case"secs":case"sec":case"s":return r*ht;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Oh(t){var e=Math.abs(t);return e>=tt?Math.round(t/tt)+"d":e>=mt?Math.round(t/mt)+"h":e>=pt?Math.round(t/pt)+"m":e>=ht?Math.round(t/ht)+"s":t+"ms"}function Ih(t){var e=Math.abs(t);return e>=tt?Dr(t,e,tt,"day"):e>=mt?Dr(t,e,mt,"hour"):e>=pt?Dr(t,e,pt,"minute"):e>=ht?Dr(t,e,ht,"second"):t+" ms"}function Dr(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var Jn=y((Av,No)=>{function Fh(t){r.debug=r,r.default=r,r.coerce=u,r.disable=s,r.enable=i,r.enabled=o,r.humanize=To(),r.destroy=h,Object.keys(t).forEach(c=>{r[c]=t[c]}),r.names=[],r.skips=[],r.formatters={};function e(c){let p=0;for(let g=0;g<c.length;g++)p=(p<<5)-p+c.charCodeAt(g),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(c){let p,g=null,m,b;function x(...S){if(!x.enabled)return;let F=x,L=Number(new Date),B=L-(p||L);F.diff=B,F.prev=p,F.curr=L,p=L,S[0]=r.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let G=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(ye,De)=>{if(ye==="%%")return"%";G++;let Q=r.formatters[De];if(typeof Q=="function"){let D=S[G];ye=Q.call(F,D),S.splice(G,1),G--}return ye}),r.formatArgs.call(F,S),(F.log||r.log).apply(F,S)}return x.namespace=c,x.useColors=r.useColors(),x.color=r.selectColor(c),x.extend=n,x.destroy=r.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(m!==r.namespaces&&(m=r.namespaces,b=r.enabled(c)),b),set:S=>{g=S}}),typeof r.init=="function"&&r.init(x),x}function n(c,p){let g=r(this.namespace+(typeof p>"u"?":":p)+c);return g.log=this.log,g}function i(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let p,g=(typeof c=="string"?c:"").split(/[\s,]+/),m=g.length;for(p=0;p<m;p++)g[p]&&(c=g[p].replace(/\*/g,".*?"),c[0]==="-"?r.skips.push(new RegExp("^"+c.slice(1)+"$")):r.names.push(new RegExp("^"+c+"$")))}function s(){let c=[...r.names.map(a),...r.skips.map(a).map(p=>"-"+p)].join(",");return r.enable(""),c}function o(c){if(c[c.length-1]==="*")return!0;let p,g;for(p=0,g=r.skips.length;p<g;p++)if(r.skips[p].test(c))return!1;for(p=0,g=r.names.length;p<g;p++)if(r.names[p].test(c))return!0;return!1}function a(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function u(c){return c instanceof Error?c.stack||c.message:c}function h(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}No.exports=Fh});var jo=y((Ee,Or)=>{Ee.formatArgs=Rh;Ee.save=kh;Ee.load=Mh;Ee.useColors=Ah;Ee.storage=qh();Ee.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Ee.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 Ah(){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 Rh(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Or.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}Ee.log=console.debug||console.log||(()=>{});function kh(t){try{t?Ee.storage.setItem("debug",t):Ee.storage.removeItem("debug")}catch{}}function Mh(){let t;try{t=Ee.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function qh(){try{return localStorage}catch{}}Or.exports=Jn()(Ee);var{formatters:Th}=Or.exports;Th.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var $o=y((Rv,Lo)=>{"use strict";Lo.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var Kn=y((kv,Uo)=>{"use strict";var Nh=require("os"),Bo=require("tty"),Fe=$o(),{env:Z}=process,Xe;Fe("no-color")||Fe("no-colors")||Fe("color=false")||Fe("color=never")?Xe=0:(Fe("color")||Fe("colors")||Fe("color=true")||Fe("color=always"))&&(Xe=1);"FORCE_COLOR"in Z&&(Z.FORCE_COLOR==="true"?Xe=1:Z.FORCE_COLOR==="false"?Xe=0:Xe=Z.FORCE_COLOR.length===0?1:Math.min(parseInt(Z.FORCE_COLOR,10),3));function Vn(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Yn(t,e){if(Xe===0)return 0;if(Fe("color=16m")||Fe("color=full")||Fe("color=truecolor"))return 3;if(Fe("color=256"))return 2;if(t&&!e&&Xe===void 0)return 0;let r=Xe||0;if(Z.TERM==="dumb")return r;if(process.platform==="win32"){let n=Nh.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Z)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Z)||Z.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Z)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Z.TEAMCITY_VERSION)?1:0;if(Z.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Z){let n=parseInt((Z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Z.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Z.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Z.TERM)||"COLORTERM"in Z?1:r}function jh(t){let e=Yn(t,t&&t.isTTY);return Vn(e)}Uo.exports={supportsColor:jh,stdout:Vn(Yn(!0,Bo.isatty(1))),stderr:Vn(Yn(!0,Bo.isatty(2)))}});var Ho=y((ne,Fr)=>{var Lh=require("tty"),Ir=require("util");ne.init=zh;ne.log=Xh;ne.formatArgs=Bh;ne.save=Hh;ne.load=Gh;ne.useColors=$h;ne.destroy=Ir.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ne.colors=[6,2,3,4,5,1];try{let t=Kn();t&&(t.stderr||t).level>=2&&(ne.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{}ne.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function $h(){return"colors"in ne.inspectOpts?!!ne.inspectOpts.colors:Lh.isatty(process.stderr.fd)}function Bh(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${e} \x1B[0m`;t[0]=s+t[0].split(`
1
+ "use strict";var Ud=Object.create;var so=Object.defineProperty;var Xd=Object.getOwnPropertyDescriptor;var Hd=Object.getOwnPropertyNames;var Gd=Object.getPrototypeOf,zd=Object.prototype.hasOwnProperty;var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Wd=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Hd(e))!zd.call(t,i)&&i!==r&&so(t,i,{get:()=>e[i],enumerable:!(n=Xd(e,i))||n.enumerable});return t};var G=(t,e,r)=>(r=t!=null?Ud(Gd(t)):{},Wd(e||!t||!t.__esModule?so(r,"default",{value:t,enumerable:!0}):r,t));var Ln=y((hv,oo)=>{"use strict";oo.exports=function(e,r){return function(){for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];return e.apply(r,i)}}});var he=y((pv,co)=>{"use strict";var Jd=Ln(),tt=Object.prototype.toString;function Un(t){return tt.call(t)==="[object Array]"}function $n(t){return typeof t>"u"}function Vd(t){return t!==null&&!$n(t)&&t.constructor!==null&&!$n(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function Yd(t){return tt.call(t)==="[object ArrayBuffer]"}function Kd(t){return typeof FormData<"u"&&t instanceof FormData}function Qd(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function Zd(t){return typeof t=="string"}function eh(t){return typeof t=="number"}function ao(t){return t!==null&&typeof t=="object"}function wr(t){if(tt.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function th(t){return tt.call(t)==="[object Date]"}function rh(t){return tt.call(t)==="[object File]"}function nh(t){return tt.call(t)==="[object Blob]"}function uo(t){return tt.call(t)==="[object Function]"}function ih(t){return ao(t)&&uo(t.pipe)}function sh(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function oh(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function ah(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Xn(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),Un(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function Bn(){var t={};function e(i,s){wr(t[s])&&wr(i)?t[s]=Bn(t[s],i):wr(i)?t[s]=Bn({},i):Un(i)?t[s]=i.slice():t[s]=i}for(var r=0,n=arguments.length;r<n;r++)Xn(arguments[r],e);return t}function uh(t,e,r){return Xn(e,function(i,s){r&&typeof i=="function"?t[s]=Jd(i,r):t[s]=i}),t}function ch(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}co.exports={isArray:Un,isArrayBuffer:Yd,isBuffer:Vd,isFormData:Kd,isArrayBufferView:Qd,isString:Zd,isNumber:eh,isObject:ao,isPlainObject:wr,isUndefined:$n,isDate:th,isFile:rh,isBlob:nh,isFunction:uo,isStream:ih,isURLSearchParams:sh,isStandardBrowserEnv:ah,forEach:Xn,merge:Bn,extend:uh,trim:oh,stripBOM:ch}});var _r=y((mv,fo)=>{"use strict";var ht=he();function lo(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}fo.exports=function(e,r,n){if(!r)return e;var i;if(n)i=n(r);else if(ht.isURLSearchParams(r))i=r.toString();else{var s=[];ht.forEach(r,function(u,h){u===null||typeof u>"u"||(ht.isArray(u)?h=h+"[]":u=[u],ht.forEach(u,function(p){ht.isDate(p)?p=p.toISOString():ht.isObject(p)&&(p=JSON.stringify(p)),s.push(lo(h)+"="+lo(p))}))}),i=s.join("&")}if(i){var o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}});var po=y((gv,ho)=>{"use strict";var lh=he();function xr(){this.handlers=[]}xr.prototype.use=function(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};xr.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};xr.prototype.forEach=function(e){lh.forEach(this.handlers,function(n){n!==null&&e(n)})};ho.exports=xr});var go=y((yv,mo)=>{"use strict";var fh=he();mo.exports=function(e,r){fh.forEach(e,function(i,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(e[r]=i,delete e[s])})}});var Sr=y((vv,yo)=>{"use strict";yo.exports=function(e,r,n,i,s){return e.config=r,n&&(e.code=n),e.request=i,e.response=s,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}});var Er=y((bv,vo)=>{"use strict";var dh=Sr();vo.exports=function(e,r,n,i,s){var o=new Error(e);return dh(o,r,n,i,s)}});var Hn=y((wv,bo)=>{"use strict";var hh=Er();bo.exports=function(e,r,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):r(hh("Request failed with status code "+n.status,n.config,null,n.request,n))}});var _o=y((_v,wo)=>{"use strict";var Cr=he();wo.exports=Cr.isStandardBrowserEnv()?function(){return{write:function(r,n,i,s,o,a){var u=[];u.push(r+"="+encodeURIComponent(n)),Cr.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),Cr.isString(s)&&u.push("path="+s),Cr.isString(o)&&u.push("domain="+o),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var So=y((xv,xo)=>{"use strict";xo.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}});var Co=y((Sv,Eo)=>{"use strict";Eo.exports=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}});var Gn=y((Ev,Po)=>{"use strict";var ph=So(),mh=Co();Po.exports=function(e,r){return e&&!ph(r)?mh(e,r):r}});var Oo=y((Cv,Do)=>{"use strict";var zn=he(),gh=["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"];Do.exports=function(e){var r={},n,i,s;return e&&zn.forEach(e.split(`
2
+ `),function(a){if(s=a.indexOf(":"),n=zn.trim(a.substr(0,s)).toLowerCase(),i=zn.trim(a.substr(s+1)),n){if(r[n]&&gh.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 Ao=y((Pv,Fo)=>{"use strict";var Io=he();Fo.exports=Io.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(s){var o=s;return e&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(o){var a=Io.isString(o)?i(o):o;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}()});var ko=y((Dv,Ro)=>{"use strict";var Pr=he(),yh=Hn(),vh=_o(),bh=_r(),wh=Gn(),_h=Oo(),xh=Ao(),Wn=Er();Ro.exports=function(e){return new Promise(function(n,i){var s=e.data,o=e.headers,a=e.responseType;Pr.isFormData(s)&&delete o["Content-Type"];var u=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",c=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(h+":"+c)}var p=wh(e.baseURL,e.url);u.open(e.method.toUpperCase(),bh(p,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function g(){if(u){var b="getAllResponseHeaders"in u?_h(u.getAllResponseHeaders()):null,x=!a||a==="text"||a==="json"?u.responseText:u.response,P={data:x,status:u.status,statusText:u.statusText,headers:b,config:e,request:u};yh(n,i,P),u=null}}if("onloadend"in u?u.onloadend=g:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(g)},u.onabort=function(){u&&(i(Wn("Request aborted",e,"ECONNABORTED",u)),u=null)},u.onerror=function(){i(Wn("Network Error",e,null,u)),u=null},u.ontimeout=function(){var x="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),i(Wn(x,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",u)),u=null},Pr.isStandardBrowserEnv()){var m=(e.withCredentials||xh(p))&&e.xsrfCookieName?vh.read(e.xsrfCookieName):void 0;m&&(o[e.xsrfHeaderName]=m)}"setRequestHeader"in u&&Pr.forEach(o,function(x,P){typeof s>"u"&&P.toLowerCase()==="content-type"?delete o[P]:u.setRequestHeader(P,x)}),Pr.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&a!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(x){u&&(u.abort(),i(x),u=null)}),s||(s=null),u.send(s)})}});var qo=y((Ov,Mo)=>{var pt=1e3,mt=pt*60,gt=mt*60,rt=gt*24,Sh=rt*7,Eh=rt*365.25;Mo.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Ch(t);if(r==="number"&&isFinite(t))return e.long?Dh(t):Ph(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Ch(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Eh;case"weeks":case"week":case"w":return r*Sh;case"days":case"day":case"d":return r*rt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*gt;case"minutes":case"minute":case"mins":case"min":case"m":return r*mt;case"seconds":case"second":case"secs":case"sec":case"s":return r*pt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Ph(t){var e=Math.abs(t);return e>=rt?Math.round(t/rt)+"d":e>=gt?Math.round(t/gt)+"h":e>=mt?Math.round(t/mt)+"m":e>=pt?Math.round(t/pt)+"s":t+"ms"}function Dh(t){var e=Math.abs(t);return e>=rt?Dr(t,e,rt,"day"):e>=gt?Dr(t,e,gt,"hour"):e>=mt?Dr(t,e,mt,"minute"):e>=pt?Dr(t,e,pt,"second"):t+" ms"}function Dr(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var Jn=y((Iv,To)=>{function Oh(t){r.debug=r,r.default=r,r.coerce=u,r.disable=s,r.enable=i,r.enabled=o,r.humanize=qo(),r.destroy=h,Object.keys(t).forEach(c=>{r[c]=t[c]}),r.names=[],r.skips=[],r.formatters={};function e(c){let p=0;for(let g=0;g<c.length;g++)p=(p<<5)-p+c.charCodeAt(g),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(c){let p,g=null,m,b;function x(...P){if(!x.enabled)return;let F=x,N=Number(new Date),B=N-(p||N);F.diff=B,F.prev=p,F.curr=N,p=N,P[0]=r.coerce(P[0]),typeof P[0]!="string"&&P.unshift("%O");let X=0;P[0]=P[0].replace(/%([a-zA-Z%])/g,(ve,Ie)=>{if(ve==="%%")return"%";X++;let Q=r.formatters[Ie];if(typeof Q=="function"){let D=P[X];ve=Q.call(F,D),P.splice(X,1),X--}return ve}),r.formatArgs.call(F,P),(F.log||r.log).apply(F,P)}return x.namespace=c,x.useColors=r.useColors(),x.color=r.selectColor(c),x.extend=n,x.destroy=r.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(m!==r.namespaces&&(m=r.namespaces,b=r.enabled(c)),b),set:P=>{g=P}}),typeof r.init=="function"&&r.init(x),x}function n(c,p){let g=r(this.namespace+(typeof p>"u"?":":p)+c);return g.log=this.log,g}function i(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let p,g=(typeof c=="string"?c:"").split(/[\s,]+/),m=g.length;for(p=0;p<m;p++)g[p]&&(c=g[p].replace(/\*/g,".*?"),c[0]==="-"?r.skips.push(new RegExp("^"+c.slice(1)+"$")):r.names.push(new RegExp("^"+c+"$")))}function s(){let c=[...r.names.map(a),...r.skips.map(a).map(p=>"-"+p)].join(",");return r.enable(""),c}function o(c){if(c[c.length-1]==="*")return!0;let p,g;for(p=0,g=r.skips.length;p<g;p++)if(r.skips[p].test(c))return!1;for(p=0,g=r.names.length;p<g;p++)if(r.names[p].test(c))return!0;return!1}function a(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function u(c){return c instanceof Error?c.stack||c.message:c}function h(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}To.exports=Oh});var No=y((Pe,Or)=>{Pe.formatArgs=Fh;Pe.save=Ah;Pe.load=Rh;Pe.useColors=Ih;Pe.storage=kh();Pe.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Pe.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Ih(){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 Fh(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Or.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}Pe.log=console.debug||console.log||(()=>{});function Ah(t){try{t?Pe.storage.setItem("debug",t):Pe.storage.removeItem("debug")}catch{}}function Rh(){let t;try{t=Pe.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function kh(){try{return localStorage}catch{}}Or.exports=Jn()(Pe);var{formatters:Mh}=Or.exports;Mh.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Lo=y((Fv,jo)=>{"use strict";jo.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var Kn=y((Av,Bo)=>{"use strict";var qh=require("os"),$o=require("tty"),Fe=Lo(),{env:ee}=process,He;Fe("no-color")||Fe("no-colors")||Fe("color=false")||Fe("color=never")?He=0:(Fe("color")||Fe("colors")||Fe("color=true")||Fe("color=always"))&&(He=1);"FORCE_COLOR"in ee&&(ee.FORCE_COLOR==="true"?He=1:ee.FORCE_COLOR==="false"?He=0:He=ee.FORCE_COLOR.length===0?1:Math.min(parseInt(ee.FORCE_COLOR,10),3));function Vn(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Yn(t,e){if(He===0)return 0;if(Fe("color=16m")||Fe("color=full")||Fe("color=truecolor"))return 3;if(Fe("color=256"))return 2;if(t&&!e&&He===void 0)return 0;let r=He||0;if(ee.TERM==="dumb")return r;if(process.platform==="win32"){let n=qh.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in ee)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in ee)||ee.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in ee)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ee.TEAMCITY_VERSION)?1:0;if(ee.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ee){let n=parseInt((ee.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ee.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ee.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ee.TERM)||"COLORTERM"in ee?1:r}function Th(t){let e=Yn(t,t&&t.isTTY);return Vn(e)}Bo.exports={supportsColor:Th,stdout:Vn(Yn(!0,$o.isatty(1))),stderr:Vn(Yn(!0,$o.isatty(2)))}});var Xo=y((ne,Fr)=>{var Nh=require("tty"),Ir=require("util");ne.init=Hh;ne.log=Bh;ne.formatArgs=Lh;ne.save=Uh;ne.load=Xh;ne.useColors=jh;ne.destroy=Ir.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ne.colors=[6,2,3,4,5,1];try{let t=Kn();t&&(t.stderr||t).level>=2&&(ne.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{}ne.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function jh(){return"colors"in ne.inspectOpts?!!ne.inspectOpts.colors:Nh.isatty(process.stderr.fd)}function Lh(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${e} \x1B[0m`;t[0]=s+t[0].split(`
3
3
  `).join(`
4
- `+s),t.push(i+"m+"+Fr.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Uh()+e+" "+t[0]}function Uh(){return ne.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Xh(...t){return process.stderr.write(Ir.format(...t)+`
5
- `)}function Hh(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Gh(){return process.env.DEBUG}function zh(t){t.inspectOpts={};let e=Object.keys(ne.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ne.inspectOpts[e[r]]}Fr.exports=Jn()(ne);var{formatters:Xo}=Fr.exports;Xo.o=function(t){return this.inspectOpts.colors=this.useColors,Ir.inspect(t,this.inspectOpts).split(`
6
- `).map(e=>e.trim()).join(" ")};Xo.O=function(t){return this.inspectOpts.colors=this.useColors,Ir.inspect(t,this.inspectOpts)}});var Go=y((Mv,Qn)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Qn.exports=jo():Qn.exports=Ho()});var Wo=y((qv,zo)=>{var $t;zo.exports=function(){if(!$t){try{$t=Go()("follow-redirects")}catch{}typeof $t!="function"&&($t=function(){})}$t.apply(null,arguments)}});var ii=y((Tv,ni)=>{var rt=require("url"),Zn=rt.URL,Wh=require("http"),Jh=require("https"),Yo=require("stream").Writable,Ko=require("assert"),Qo=Wo(),ti=["abort","aborted","connect","error","socket","timeout"],ri=Object.create(null);ti.forEach(function(t){ri[t]=function(e,r,n){this._redirectable.emit(t,e,r,n)}});var Vh=Ut("ERR_INVALID_URL","Invalid URL",TypeError),Jo=Ut("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Yh=Ut("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Kh=Ut("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Qh=Ut("ERR_STREAM_WRITE_AFTER_END","write after end");function Ce(t,e){Yo.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}Ce.prototype=Object.create(Yo.prototype);Ce.prototype.abort=function(){ea(this._currentRequest),this.emit("abort")};Ce.prototype.write=function(t,e,r){if(this._ending)throw new Qh;if(!nt(t)&&!t0(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Bt(e)&&(r=e,e=null),t.length===0){r&&r();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,r)):(this.emit("error",new Kh),this.abort())};Ce.prototype.end=function(t,e,r){if(Bt(t)?(r=t,t=e=null):Bt(e)&&(r=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(t,e,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};Ce.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};Ce.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};Ce.prototype.setTimeout=function(t,e){var r=this;function n(o){o.setTimeout(t),o.removeListener("timeout",o.destroy),o.addListener("timeout",o.destroy)}function i(o){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},t),n(o)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),e&&r.removeListener("timeout",e),r.socket||r._currentRequest.removeListener("socket",i)}return e&&this.on("timeout",e),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){Ce.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(Ce.prototype,t,{get:function(){return this._currentRequest[t]}})});Ce.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};Ce.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e){this.emit("error",new TypeError("Unsupported protocol "+t));return}if(this._options.agents){var r=t.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of ti)n.on(i,ri[i]);if(this._currentUrl=/^\//.test(this._options.path)?rt.format(this._options):this._options.path,this._isRedirect){var s=0,o=this,a=this._requestBodyBuffers;(function u(h){if(n===o._currentRequest)if(h)o.emit("error",h);else if(s<a.length){var c=a[s++];n.finished||n.write(c.data,c.encoding,u)}else o._ended&&n.end()})()}};Ce.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var r=t.headers.location;if(!r||this._options.followRedirects===!1||e<300||e>=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(ea(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new Yh);return}var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var s=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],ei(/^content-/i,this._options.headers));var o=ei(/^host$/i,this._options.headers),a=rt.parse(this._currentUrl),u=o||a.host,h=/^\w+:/.test(r)?this._currentUrl:rt.format(Object.assign(a,{host:u})),c;try{c=rt.resolve(h,r)}catch(b){this.emit("error",new Jo({cause:b}));return}Qo("redirecting to",c),this._isRedirect=!0;var p=rt.parse(c);if(Object.assign(this._options,p),(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==u&&!e0(p.host,u))&&ei(/^(?:authorization|cookie)$/i,this._options.headers),Bt(i)){var g={headers:t.headers,statusCode:e},m={url:h,method:s,headers:n};try{i(this._options,g,m)}catch(b){this.emit("error",b);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(b){this.emit("error",new Jo({cause:b}))}};function Zo(t){var e={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(t).forEach(function(n){var i=n+":",s=r[i]=t[n],o=e[n]=Object.create(s);function a(h,c,p){if(nt(h)){var g;try{g=Vo(new Zn(h))}catch{g=rt.parse(h)}if(!nt(g.protocol))throw new Vh({input:h});h=g}else Zn&&h instanceof Zn?h=Vo(h):(p=c,c=h,h={protocol:i});return Bt(c)&&(p=c,c=null),c=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},h,c),c.nativeProtocols=r,!nt(c.host)&&!nt(c.hostname)&&(c.hostname="::1"),Ko.equal(c.protocol,i,"protocol mismatch"),Qo("options",c),new Ce(c,p)}function u(h,c,p){var g=o.request(h,c,p);return g.end(),g}Object.defineProperties(o,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:u,configurable:!0,enumerable:!0,writable:!0}})}),e}function Zh(){}function Vo(t){var e={protocol:t.protocol,hostname:t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,hash:t.hash,search:t.search,pathname:t.pathname,path:t.pathname+t.search,href:t.href};return t.port!==""&&(e.port=Number(t.port)),e}function ei(t,e){var r;for(var n in e)t.test(n)&&(r=e[n],delete e[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function Ut(t,e,r){function n(i){Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+t+"]",n}function ea(t){for(var e of ti)t.removeListener(e,ri[e]);t.on("error",Zh),t.abort()}function e0(t,e){Ko(nt(t)&&nt(e));var r=t.length-e.length-1;return r>0&&t[r]==="."&&t.endsWith(e)}function nt(t){return typeof t=="string"||t instanceof String}function Bt(t){return typeof t=="function"}function t0(t){return typeof t=="object"&&"length"in t}ni.exports=Zo({http:Wh,https:Jh});ni.exports.wrap=Zo});var si=y((Nv,r0)=>{r0.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 oa=y((jv,sa)=>{"use strict";var Xt=de(),ta=Hn(),n0=Gn(),i0=_r(),s0=require("http"),o0=require("https"),a0=ii().http,u0=ii().https,ra=require("url"),c0=require("zlib"),l0=si(),Ar=Er(),oi=Sr(),na=/https:?/;function ia(t,e,r){if(t.hostname=e.host,t.host=e.host,t.port=e.port,t.path=r,e.auth){var n=Buffer.from(e.auth.username+":"+e.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+n}t.beforeRedirect=function(s){s.headers.host=s.host,ia(s,e,s.href)}}sa.exports=function(e){return new Promise(function(n,i){var s=function(E){n(E)},o=function(E){i(E)},a=e.data,u=e.headers;if("User-Agent"in u||"user-agent"in u?!u["User-Agent"]&&!u["user-agent"]&&(delete u["User-Agent"],delete u["user-agent"]):u["User-Agent"]="axios/"+l0.version,a&&!Xt.isStream(a)){if(!Buffer.isBuffer(a))if(Xt.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(Xt.isString(a))a=Buffer.from(a,"utf-8");else return o(Ar("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));u["Content-Length"]=a.length}var h=void 0;if(e.auth){var c=e.auth.username||"",p=e.auth.password||"";h=c+":"+p}var g=n0(e.baseURL,e.url),m=ra.parse(g),b=m.protocol||"http:";if(!h&&m.auth){var x=m.auth.split(":"),S=x[0]||"",F=x[1]||"";h=S+":"+F}h&&delete u.Authorization;var L=na.test(b),B=L?e.httpsAgent:e.httpAgent,G={path:i0(m.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:u,agent:B,agents:{http:e.httpAgent,https:e.httpsAgent},auth:h};e.socketPath?G.socketPath=e.socketPath:(G.hostname=m.hostname,G.port=m.port);var Y=e.proxy;if(!Y&&Y!==!1){var ye=b.slice(0,-1)+"_proxy",De=process.env[ye]||process.env[ye.toUpperCase()];if(De){var Q=ra.parse(De),D=process.env.no_proxy||process.env.NO_PROXY,q=!0;if(D){var k=D.split(",").map(function(E){return E.trim()});q=!k.some(function(E){return E?E==="*"||E[0]==="."&&m.hostname.substr(m.hostname.length-E.length)===E?!0:m.hostname===E:!1})}if(q&&(Y={host:Q.hostname,port:Q.port,protocol:Q.protocol},Q.auth)){var X=Q.auth.split(":");Y.auth={username:X[0],password:X[1]}}}}Y&&(G.headers.host=m.hostname+(m.port?":"+m.port:""),ia(G,Y,b+"//"+m.hostname+(m.port?":"+m.port:"")+G.path));var I,U=L&&(Y?na.test(Y.protocol):!0);e.transport?I=e.transport:e.maxRedirects===0?I=U?o0:s0:(e.maxRedirects&&(G.maxRedirects=e.maxRedirects),I=U?u0:a0),e.maxBodyLength>-1&&(G.maxBodyLength=e.maxBodyLength);var O=I.request(G,function(E){if(!O.aborted){var A=E,Oe=E.req||O;if(E.statusCode!==204&&Oe.method!=="HEAD"&&e.decompress!==!1)switch(E.headers["content-encoding"]){case"gzip":case"compress":case"deflate":A=A.pipe(c0.createUnzip()),delete E.headers["content-encoding"];break}var ke={status:E.statusCode,statusText:E.statusMessage,headers:E.headers,config:e,request:Oe};if(e.responseType==="stream")ke.data=A,ta(s,o,ke);else{var ae=[],ve=0;A.on("data",function(re){ae.push(re),ve+=re.length,e.maxContentLength>-1&&ve>e.maxContentLength&&(A.destroy(),o(Ar("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,Oe)))}),A.on("error",function(re){O.aborted||o(oi(re,e,null,Oe))}),A.on("end",function(){var re=Buffer.concat(ae);e.responseType!=="arraybuffer"&&(re=re.toString(e.responseEncoding),(!e.responseEncoding||e.responseEncoding==="utf8")&&(re=Xt.stripBOM(re))),ke.data=re,ta(s,o,ke)})}}});if(O.on("error",function(E){O.aborted&&E.code!=="ERR_FR_TOO_MANY_REDIRECTS"||o(oi(E,e,null,O))}),e.timeout){var j=parseInt(e.timeout,10);if(isNaN(j)){o(Ar("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",O));return}O.setTimeout(j,function(){O.abort(),o(Ar("timeout of "+j+"ms exceeded",e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",O))})}e.cancelToken&&e.cancelToken.promise.then(function(E){O.aborted||(O.abort(),o(E))}),Xt.isStream(a)?a.on("error",function(E){o(oi(E,e,null,O))}).pipe(O):O.end(a)})}});var kr=y((Lv,ca)=>{"use strict";var ie=de(),aa=yo(),f0=Sr(),d0={"Content-Type":"application/x-www-form-urlencoded"};function ua(t,e){!ie.isUndefined(t)&&ie.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function h0(){var t;return typeof XMLHttpRequest<"u"?t=Mo():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(t=oa()),t}function p0(t,e,r){if(ie.isString(t))try{return(e||JSON.parse)(t),ie.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var Rr={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:h0(),transformRequest:[function(e,r){return aa(r,"Accept"),aa(r,"Content-Type"),ie.isFormData(e)||ie.isArrayBuffer(e)||ie.isBuffer(e)||ie.isStream(e)||ie.isFile(e)||ie.isBlob(e)?e:ie.isArrayBufferView(e)?e.buffer:ie.isURLSearchParams(e)?(ua(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):ie.isObject(e)||r&&r["Content-Type"]==="application/json"?(ua(r,"application/json"),p0(e)):e}],transformResponse:[function(e){var r=this.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,s=!n&&this.responseType==="json";if(s||i&&ie.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?f0(o,this,"E_JSON_PARSE"):o}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};Rr.headers={common:{Accept:"application/json, text/plain, */*"}};ie.forEach(["delete","get","head"],function(e){Rr.headers[e]={}});ie.forEach(["post","put","patch"],function(e){Rr.headers[e]=ie.merge(d0)});ca.exports=Rr});var fa=y(($v,la)=>{"use strict";var m0=de(),g0=kr();la.exports=function(e,r,n){var i=this||g0;return m0.forEach(n,function(o){e=o.call(i,e,r)}),e}});var ai=y((Bv,da)=>{"use strict";da.exports=function(e){return!!(e&&e.__CANCEL__)}});var ma=y((Uv,pa)=>{"use strict";var ha=de(),ui=fa(),y0=ai(),v0=kr();function ci(t){t.cancelToken&&t.cancelToken.throwIfRequested()}pa.exports=function(e){ci(e),e.headers=e.headers||{},e.data=ui.call(e,e.data,e.headers,e.transformRequest),e.headers=ha.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),ha.forEach(["delete","get","head","post","put","patch","common"],function(i){delete e.headers[i]});var r=e.adapter||v0.adapter;return r(e).then(function(i){return ci(e),i.data=ui.call(e,i.data,i.headers,e.transformResponse),i},function(i){return y0(i)||(ci(e),i&&i.response&&(i.response.data=ui.call(e,i.response.data,i.response.headers,e.transformResponse))),Promise.reject(i)})}});var li=y((Xv,ga)=>{"use strict";var ue=de();ga.exports=function(e,r){r=r||{};var n={},i=["url","method","data"],s=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function u(g,m){return ue.isPlainObject(g)&&ue.isPlainObject(m)?ue.merge(g,m):ue.isPlainObject(m)?ue.merge({},m):ue.isArray(m)?m.slice():m}function h(g){ue.isUndefined(r[g])?ue.isUndefined(e[g])||(n[g]=u(void 0,e[g])):n[g]=u(e[g],r[g])}ue.forEach(i,function(m){ue.isUndefined(r[m])||(n[m]=u(void 0,r[m]))}),ue.forEach(s,h),ue.forEach(o,function(m){ue.isUndefined(r[m])?ue.isUndefined(e[m])||(n[m]=u(void 0,e[m])):n[m]=u(void 0,r[m])}),ue.forEach(a,function(m){m in r?n[m]=u(e[m],r[m]):m in e&&(n[m]=u(void 0,e[m]))});var c=i.concat(s).concat(o).concat(a),p=Object.keys(e).concat(Object.keys(r)).filter(function(m){return c.indexOf(m)===-1});return ue.forEach(p,h),n}});var _a=y((Hv,wa)=>{"use strict";var va=si(),fi={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){fi[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var ya={},b0=va.version.split(".");function ba(t,e){for(var r=e?e.split("."):b0,n=t.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}fi.transitional=function(e,r,n){var i=r&&ba(r);function s(o,a){return"[Axios v"+va.version+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,u){if(e===!1)throw new Error(s(a," has been removed in "+r));return i&&!ya[a]&&(ya[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,a,u):!0}};function w0(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var n=Object.keys(t),i=n.length;i-- >0;){var s=n[i],o=e[s];if(o){var a=t[s],u=a===void 0||o(a,s,t);if(u!==!0)throw new TypeError("option "+s+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+s)}}wa.exports={isOlderVersion:ba,assertOptions:w0,validators:fi}});var Da=y((Gv,Pa)=>{"use strict";var Ea=de(),_0=_r(),xa=mo(),Sa=ma(),Mr=li(),Ca=_a(),gt=Ca.validators;function Ht(t){this.defaults=t,this.interceptors={request:new xa,response:new xa}}Ht.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=Mr(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;r!==void 0&&Ca.assertOptions(r,{silentJSONParsing:gt.transitional(gt.boolean,"1.0.0"),forcedJSONParsing:gt.transitional(gt.boolean,"1.0.0"),clarifyTimeoutError:gt.transitional(gt.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(e)===!1||(i=i&&g.synchronous,n.unshift(g.fulfilled,g.rejected))});var s=[];this.interceptors.response.forEach(function(g){s.push(g.fulfilled,g.rejected)});var o;if(!i){var a=[Sa,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(s),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var u=e;n.length;){var h=n.shift(),c=n.shift();try{u=h(u)}catch(p){c(p);break}}try{o=Sa(u)}catch(p){return Promise.reject(p)}for(;s.length;)o=o.then(s.shift(),s.shift());return o};Ht.prototype.getUri=function(e){return e=Mr(this.defaults,e),_0(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};Ea.forEach(["delete","get","head","options"],function(e){Ht.prototype[e]=function(r,n){return this.request(Mr(n||{},{method:e,url:r,data:(n||{}).data}))}});Ea.forEach(["post","put","patch"],function(e){Ht.prototype[e]=function(r,n,i){return this.request(Mr(i||{},{method:e,url:r,data:n}))}});Pa.exports=Ht});var hi=y((zv,Oa)=>{"use strict";function di(t){this.message=t}di.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};di.prototype.__CANCEL__=!0;Oa.exports=di});var Fa=y((Wv,Ia)=>{"use strict";var x0=hi();function qr(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(i){e=i});var r=this;t(function(i){r.reason||(r.reason=new x0(i),e(r.reason))})}qr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};qr.source=function(){var e,r=new qr(function(i){e=i});return{token:r,cancel:e}};Ia.exports=qr});var Ra=y((Jv,Aa)=>{"use strict";Aa.exports=function(e){return function(n){return e.apply(null,n)}}});var Ma=y((Vv,ka)=>{"use strict";ka.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}});var Na=y((Yv,pi)=>{"use strict";var qa=de(),S0=Ln(),Tr=Da(),E0=li(),C0=kr();function Ta(t){var e=new Tr(t),r=S0(Tr.prototype.request,e);return qa.extend(r,Tr.prototype,e),qa.extend(r,e),r}var qe=Ta(C0);qe.Axios=Tr;qe.create=function(e){return Ta(E0(qe.defaults,e))};qe.Cancel=hi();qe.CancelToken=Fa();qe.isCancel=ai();qe.all=function(e){return Promise.all(e)};qe.spread=Ra();qe.isAxiosError=Ma();pi.exports=qe;pi.exports.default=qe});var mi=y((Kv,ja)=>{ja.exports=Na()});var $a=y((Qv,La)=>{"use strict";var P0=/[|\\{}()[\]^$+*?.]/g;La.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(P0,"\\$&")}});var Ua=y((Zv,Ba)=>{"use strict";Ba.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 gi=y((eb,za)=>{var it=Ua(),Ga={};for(Nr in it)it.hasOwnProperty(Nr)&&(Ga[it[Nr]]=Nr);var Nr,C=za.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(he in C)if(C.hasOwnProperty(he)){if(!("channels"in C[he]))throw new Error("missing channels property: "+he);if(!("labels"in C[he]))throw new Error("missing channel labels property: "+he);if(C[he].labels.length!==C[he].channels)throw new Error("channel and label counts mismatch: "+he);Xa=C[he].channels,Ha=C[he].labels,delete C[he].channels,delete C[he].labels,Object.defineProperty(C[he],"channels",{value:Xa}),Object.defineProperty(C[he],"labels",{value:Ha})}var Xa,Ha,he;C.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,u,h;return s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),h=(i+s)/2,s===i?u=0:h<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,h*100]};C.rgb.hsv=function(t){var e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,h=Math.max(o,a,u),c=h-Math.min(o,a,u),p=function(g){return(h-g)/6/c+1/2};return c===0?i=s=0:(s=c/h,e=p(o),r=p(a),n=p(u),o===h?i=n-r:a===h?i=1/3+e-n:u===h&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,h*100]};C.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=C.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};C.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i,s,o,a;return a=Math.min(1-e,1-r,1-n),i=(1-e-a)/(1-a)||0,s=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[i*100,s*100,o*100,a*100]};function D0(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}C.rgb.keyword=function(t){var e=Ga[t];if(e)return e;var r=1/0,n;for(var i in it)if(it.hasOwnProperty(i)){var s=it[i],o=D0(t,s);o<r&&(r=o,n=i)}return n};C.keyword.rgb=function(t){return it[t]};C.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};C.rgb.lab=function(t){var e=C.rgb.xyz(t),r=e[0],n=e[1],i=e[2],s,o,a;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),a=200*(n-i),[s,o,a]};C.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o,a,u;if(r===0)return u=n*255,[u,u,u];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var h=0;h<3;h++)o=e+1/3*-(h-1),o<0&&o++,o>1&&o--,6*o<1?u=i+(s-i)*6*o:2*o<1?u=s:3*o<2?u=i+(s-i)*(2/3-o)*6:u=i,a[h]=u*255;return a};C.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[e,o*100,a*100]};C.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};C.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o,a;return a=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[e,o*100,a*100]};C.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s,o,a,u;i>1&&(r/=i,n/=i),s=Math.floor(6*e),o=1-n,a=6*e-s,s&1&&(a=1-a),u=r+a*(o-r);var h,c,p;switch(s){default:case 6:case 0:h=o,c=u,p=r;break;case 1:h=u,c=o,p=r;break;case 2:h=r,c=o,p=u;break;case 3:h=r,c=u,p=o;break;case 4:h=u,c=r,p=o;break;case 5:h=o,c=r,p=u;break}return[h*255,c*255,p*255]};C.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s,o,a;return s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};C.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};C.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(e-r),o=200*(r-n),[i,s,o]};C.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),u=Math.pow(i,3),h=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=h>.008856?h:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};C.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[e,o,s]};C.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[e,i,s]};C.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:C.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return i===2&&(s+=60),s};C.hsv.ansi16=function(t){return C.rgb.ansi16(C.hsv.rgb(t),t[2])};C.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};C.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};C.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};C.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};C.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};C.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===e?u=(r-n)/o%6:i===r?u=2+(n-e)/o:u=4+(e-r)/o+4,u/=6,u%=1,[u*360,o*100,a*100]};C.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};C.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};C.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=e%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};C.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};C.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};C.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};C.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};C.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};C.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};C.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};C.gray.hsl=C.gray.hsv=function(t){return[0,0,t[0]]};C.gray.hwb=function(t){return[0,100,t[0]]};C.gray.cmyk=function(t){return[0,0,0,t[0]]};C.gray.lab=function(t){return[t[0],0,0]};C.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};C.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var Ja=y((tb,Wa)=>{var jr=gi();function O0(){for(var t={},e=Object.keys(jr),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function I0(t){var e=O0(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(jr[n]),s=i.length,o=0;o<s;o++){var a=i[o],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}return e}function F0(t,e){return function(r){return e(t(r))}}function A0(t,e){for(var r=[e[t].parent,t],n=jr[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=F0(jr[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}Wa.exports=function(t){for(var e=I0(t),r={},n=Object.keys(e),i=n.length,s=0;s<i;s++){var o=n[s],a=e[o];a.parent!==null&&(r[o]=A0(o,e))}return r}});var Ya=y((rb,Va)=>{var yi=gi(),R0=Ja(),yt={},k0=Object.keys(yi);function M0(t){var e=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function q0(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}k0.forEach(function(t){yt[t]={},Object.defineProperty(yt[t],"channels",{value:yi[t].channels}),Object.defineProperty(yt[t],"labels",{value:yi[t].labels});var e=R0(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];yt[t][n]=q0(i),yt[t][n].raw=M0(i)})});Va.exports=yt});var Qa=y((nb,Ka)=>{"use strict";var vt=Ya(),Lr=(t,e)=>function(){return`\x1B[${t.apply(vt,arguments)+e}m`},$r=(t,e)=>function(){let r=t.apply(vt,arguments);return`\x1B[${38+e};5;${r}m`},Br=(t,e)=>function(){let r=t.apply(vt,arguments);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function T0(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.grey=e.color.gray;for(let i of Object.keys(e)){let s=e[i];for(let o of Object.keys(s)){let a=s[o];e[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},s[o]=e[o],t.set(a[0],a[1])}Object.defineProperty(e,i,{value:s,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:Lr(r,0)},e.color.ansi256={ansi256:$r(r,0)},e.color.ansi16m={rgb:Br(n,0)},e.bgColor.ansi={ansi:Lr(r,10)},e.bgColor.ansi256={ansi256:$r(r,10)},e.bgColor.ansi16m={rgb:Br(n,10)};for(let i of Object.keys(vt)){if(typeof vt[i]!="object")continue;let s=vt[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(e.color.ansi[i]=Lr(s.ansi16,0),e.bgColor.ansi[i]=Lr(s.ansi16,10)),"ansi256"in s&&(e.color.ansi256[i]=$r(s.ansi256,0),e.bgColor.ansi256[i]=$r(s.ansi256,10)),"rgb"in s&&(e.color.ansi16m[i]=Br(s.rgb,0),e.bgColor.ansi16m[i]=Br(s.rgb,10))}return e}Object.defineProperty(Ka,"exports",{enumerable:!0,get:T0})});var eu=y((ib,Za)=>{"use strict";Za.exports=(t,e)=>{e=e||process.argv;let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var ru=y((sb,tu)=>{"use strict";var N0=require("os"),Te=eu(),ce=process.env,bt;Te("no-color")||Te("no-colors")||Te("color=false")?bt=!1:(Te("color")||Te("colors")||Te("color=true")||Te("color=always"))&&(bt=!0);"FORCE_COLOR"in ce&&(bt=ce.FORCE_COLOR.length===0||parseInt(ce.FORCE_COLOR,10)!==0);function j0(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function L0(t){if(bt===!1)return 0;if(Te("color=16m")||Te("color=full")||Te("color=truecolor"))return 3;if(Te("color=256"))return 2;if(t&&!t.isTTY&&bt!==!0)return 0;let e=bt?1:0;if(process.platform==="win32"){let r=N0.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 ce)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in ce)||ce.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in ce)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ce.TEAMCITY_VERSION)?1:0;if(ce.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ce){let r=parseInt((ce.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ce.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ce.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ce.TERM)||"COLORTERM"in ce?1:(ce.TERM==="dumb",e)}function vi(t){let e=L0(t);return j0(e)}tu.exports={supportsColor:vi,stdout:vi(process.stdout),stderr:vi(process.stderr)}});var au=y((ob,ou)=>{"use strict";var $0=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,nu=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,B0=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,U0=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,X0=new Map([["n",`
7
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function su(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):X0.get(t)||t}function H0(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(B0))r.push(i[2].replace(U0,(o,a,u)=>a?su(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`);return r}function G0(t){nu.lastIndex=0;let e=[],r;for(;(r=nu.exec(t))!==null;){let n=r[1];if(r[2]){let i=H0(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function iu(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}ou.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace($0,(s,o,a,u,h,c)=>{if(o)i.push(su(o));else if(u){let p=i.join("");i=[],n.push(r.length===0?p:iu(t,r)(p)),r.push({inverse:a,styles:G0(u)})}else if(h){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(iu(t,r)(i.join(""))),i=[],r.pop()}else i.push(c)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var Xr=y((ab,zt)=>{"use strict";var wi=$a(),V=Qa(),bi=ru().stdout,z0=au(),cu=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),lu=["ansi","ansi","ansi256","ansi16m"],fu=new Set(["gray"]),wt=Object.create(null);function uu(t,e){e=e||{};let r=bi?bi.level:0;t.level=e.level===void 0?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function Gt(t){if(!this||!(this instanceof Gt)||this.template){let e={};return uu(e,t),e.template=function(){let r=[].slice.call(arguments);return V0.apply(null,[e.template].concat(r))},Object.setPrototypeOf(e,Gt.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=Gt,e.template}uu(this,t)}cu&&(V.blue.open="\x1B[94m");for(let t of Object.keys(V))V[t].closeRe=new RegExp(wi(V[t].close),"g"),wt[t]={get(){let e=V[t];return Ur.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};wt.visible={get(){return Ur.call(this,this._styles||[],!0,"visible")}};V.color.closeRe=new RegExp(wi(V.color.close),"g");for(let t of Object.keys(V.color.ansi))fu.has(t)||(wt[t]={get(){let e=this.level;return function(){let n={open:V.color[lu[e]][t].apply(null,arguments),close:V.color.close,closeRe:V.color.closeRe};return Ur.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}});V.bgColor.closeRe=new RegExp(wi(V.bgColor.close),"g");for(let t of Object.keys(V.bgColor.ansi)){if(fu.has(t))continue;let e="bg"+t[0].toUpperCase()+t.slice(1);wt[e]={get(){let r=this.level;return function(){let i={open:V.bgColor[lu[r]][t].apply(null,arguments),close:V.bgColor.close,closeRe:V.bgColor.closeRe};return Ur.call(this,this._styles?this._styles.concat(i):[i],this._empty,t)}}}}var W0=Object.defineProperties(()=>{},wt);function Ur(t,e,r){let n=function(){return J0.apply(n,arguments)};n._styles=t,n._empty=e;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=W0,n}function J0(){let t=arguments,e=t.length,r=String(arguments[0]);if(e===0)return"";if(e>1)for(let i=1;i<e;i++)r+=" "+t[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=V.dim.open;cu&&this.hasGrey&&(V.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return V.dim.open=n,r}function V0(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[e.raw[0]];for(let i=1;i<e.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(e.raw[i]));return z0(t,n.join(""))}Object.defineProperties(Gt.prototype,wt);zt.exports=Gt();zt.exports.supportsColor=bi;zt.exports.default=zt.exports});var xt=y((cb,xi)=>{var Y0=require("fs"),K0=require("path");function pu(t){console.log(`[dotenv][DEBUG] ${t}`)}var Q0=`
8
- `,Z0=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,ep=/\\n/g,tp=/\n|\r|\r\n/;function mu(t,e){let r=!!(e&&e.debug),n={};return t.toString().split(tp).forEach(function(i,s){let o=i.match(Z0);if(o!=null){let a=o[1],u=o[2]||"",h=u.length-1,c=u[0]==='"'&&u[h]==='"';u[0]==="'"&&u[h]==="'"||c?(u=u.substring(1,h),c&&(u=u.replace(ep,Q0))):u=u.trim(),n[a]=u}else r&&pu(`did not match key and value when parsing line ${s+1}: ${i}`)}),n}function rp(t){let e=K0.resolve(process.cwd(),".env"),r="utf8",n=!1;t&&(t.path!=null&&(e=t.path),t.encoding!=null&&(r=t.encoding),t.debug!=null&&(n=!0));try{let i=mu(Y0.readFileSync(e,{encoding:r}),{debug:n});return Object.keys(i).forEach(function(s){Object.prototype.hasOwnProperty.call(process.env,s)?n&&pu(`"${s}" is already defined in \`process.env\` and will not be overwritten`):process.env[s]=i[s]}),{parsed:i}}catch(i){return{error:i}}}xi.exports.config=rp;xi.exports.parse=mu});var be=y(Si=>{"use strict";Si.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((r,n)=>{t.call(this,...e,(i,s)=>i!=null?n(i):r(s))})},"name",{value:t.name})};Si.fromPromise=function(t){return Object.defineProperty(function(...e){let r=e[e.length-1];if(typeof r!="function")return t.apply(this,e);t.apply(this,e.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:t.name})}});var yu=y((fb,gu)=>{var He=require("constants"),np=process.cwd,Hr=null,ip=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Hr||(Hr=np.call(process)),Hr};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Ei=process.chdir,process.chdir=function(t){Hr=null,Ei.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ei));var Ei;gu.exports=sp;function sp(t){He.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,p,g){g&&process.nextTick(g)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,p,g,m){m&&process.nextTick(m)},t.lchownSync=function(){}),ip==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(c){function p(g,m,b){var x=Date.now(),S=0;c(g,m,function F(L){if(L&&(L.code==="EACCES"||L.code==="EPERM")&&Date.now()-x<6e4){setTimeout(function(){t.stat(m,function(B,G){B&&B.code==="ENOENT"?c(g,m,F):b(L)})},S),S<100&&(S+=10);return}b&&b(L)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.rename)),t.read=typeof t.read!="function"?t.read:function(c){function p(g,m,b,x,S,F){var L;if(F&&typeof F=="function"){var B=0;L=function(G,Y,ye){if(G&&G.code==="EAGAIN"&&B<10)return B++,c.call(t,g,m,b,x,S,L);F.apply(this,arguments)}}return c.call(t,g,m,b,x,S,L)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(c){return function(p,g,m,b,x){for(var S=0;;)try{return c.call(t,p,g,m,b,x)}catch(F){if(F.code==="EAGAIN"&&S<10){S++;continue}throw F}}}(t.readSync);function e(c){c.lchmod=function(p,g,m){c.open(p,He.O_WRONLY|He.O_SYMLINK,g,function(b,x){if(b){m&&m(b);return}c.fchmod(x,g,function(S){c.close(x,function(F){m&&m(S||F)})})})},c.lchmodSync=function(p,g){var m=c.openSync(p,He.O_WRONLY|He.O_SYMLINK,g),b=!0,x;try{x=c.fchmodSync(m,g),b=!1}finally{if(b)try{c.closeSync(m)}catch{}else c.closeSync(m)}return x}}function r(c){He.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(p,g,m,b){c.open(p,He.O_SYMLINK,function(x,S){if(x){b&&b(x);return}c.futimes(S,g,m,function(F){c.close(S,function(L){b&&b(F||L)})})})},c.lutimesSync=function(p,g,m){var b=c.openSync(p,He.O_SYMLINK),x,S=!0;try{x=c.futimesSync(b,g,m),S=!1}finally{if(S)try{c.closeSync(b)}catch{}else c.closeSync(b)}return x}):c.futimes&&(c.lutimes=function(p,g,m,b){b&&process.nextTick(b)},c.lutimesSync=function(){})}function n(c){return c&&function(p,g,m){return c.call(t,p,g,function(b){h(b)&&(b=null),m&&m.apply(this,arguments)})}}function i(c){return c&&function(p,g){try{return c.call(t,p,g)}catch(m){if(!h(m))throw m}}}function s(c){return c&&function(p,g,m,b){return c.call(t,p,g,m,function(x){h(x)&&(x=null),b&&b.apply(this,arguments)})}}function o(c){return c&&function(p,g,m){try{return c.call(t,p,g,m)}catch(b){if(!h(b))throw b}}}function a(c){return c&&function(p,g,m){typeof g=="function"&&(m=g,g=null);function b(x,S){S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),m&&m.apply(this,arguments)}return g?c.call(t,p,g,b):c.call(t,p,b)}}function u(c){return c&&function(p,g){var m=g?c.call(t,p,g):c.call(t,p);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function h(c){if(!c||c.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var wu=y((db,bu)=>{var vu=require("stream").Stream;bu.exports=op;function op(t){return{ReadStream:e,WriteStream:r};function e(n,i){if(!(this instanceof e))return new e(n,i);vu.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),a=0,u=o.length;a<u;a++){var h=o[a];this[h]=i[h]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(c,p){if(c){s.emit("error",c),s.readable=!1;return}s.fd=p,s.emit("open",p),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);vu.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var u=s[o];this[u]=i[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var xu=y((hb,_u)=>{"use strict";_u.exports=up;var ap=Object.getPrototypeOf||function(t){return t.__proto__};function up(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:ap(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var le=y((pb,Di)=>{var W=require("fs"),cp=yu(),lp=wu(),fp=xu(),Gr=require("util"),se,Wr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(se=Symbol.for("graceful-fs.queue"),Wr=Symbol.for("graceful-fs.previous")):(se="___graceful-fs.queue",Wr="___graceful-fs.previous");function dp(){}function Cu(t,e){Object.defineProperty(t,se,{get:function(){return e}})}var st=dp;Gr.debuglog?st=Gr.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(st=function(){var t=Gr.format.apply(Gr,arguments);t="GFS4: "+t.split(/\n/).join(`
9
- GFS4: `),console.error(t)});W[se]||(Su=global[se]||[],Cu(W,Su),W.close=function(t){function e(r,n){return t.call(W,r,function(i){i||Eu(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Wr,{value:t}),e}(W.close),W.closeSync=function(t){function e(r){t.apply(W,arguments),Eu()}return Object.defineProperty(e,Wr,{value:t}),e}(W.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){st(W[se]),require("assert").equal(W[se].length,0)}));var Su;global[se]||Cu(global,W[se]);Di.exports=Ci(fp(W));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!W.__patched&&(Di.exports=Ci(W),W.__patched=!0);function Ci(t){cp(t),t.gracefulify=Ci,t.createReadStream=Y,t.createWriteStream=ye;var e=t.readFile;t.readFile=r;function r(D,q,k){return typeof q=="function"&&(k=q,q=null),X(D,q,k);function X(I,U,O,j){return e(I,U,function(M){M&&(M.code==="EMFILE"||M.code==="ENFILE")?St([X,[I,U,O],M,j||Date.now(),Date.now()]):typeof O=="function"&&O.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=i;function i(D,q,k,X){return typeof k=="function"&&(X=k,k=null),I(D,q,k,X);function I(U,O,j,M,E){return n(U,O,j,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?St([I,[U,O,j,M],A,E||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(D,q,k,X){return typeof k=="function"&&(X=k,k=null),I(D,q,k,X);function I(U,O,j,M,E){return s(U,O,j,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?St([I,[U,O,j,M],A,E||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=u);function u(D,q,k,X){return typeof k=="function"&&(X=k,k=0),I(D,q,k,X);function I(U,O,j,M,E){return a(U,O,j,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?St([I,[U,O,j,M],A,E||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var h=t.readdir;t.readdir=p;var c=/^v[0-5]\./;function p(D,q,k){typeof q=="function"&&(k=q,q=null);var X=c.test(process.version)?function(O,j,M,E){return h(O,I(O,j,M,E))}:function(O,j,M,E){return h(O,j,I(O,j,M,E))};return X(D,q,k);function I(U,O,j,M){return function(E,A){E&&(E.code==="EMFILE"||E.code==="ENFILE")?St([X,[U,O,j],E,M||Date.now(),Date.now()]):(A&&A.sort&&A.sort(),typeof j=="function"&&j.call(this,E,A))}}}if(process.version.substr(0,4)==="v0.8"){var g=lp(t);F=g.ReadStream,B=g.WriteStream}var m=t.ReadStream;m&&(F.prototype=Object.create(m.prototype),F.prototype.open=L);var b=t.WriteStream;b&&(B.prototype=Object.create(b.prototype),B.prototype.open=G),Object.defineProperty(t,"ReadStream",{get:function(){return F},set:function(D){F=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return B},set:function(D){B=D},enumerable:!0,configurable:!0});var x=F;Object.defineProperty(t,"FileReadStream",{get:function(){return x},set:function(D){x=D},enumerable:!0,configurable:!0});var S=B;Object.defineProperty(t,"FileWriteStream",{get:function(){return S},set:function(D){S=D},enumerable:!0,configurable:!0});function F(D,q){return this instanceof F?(m.apply(this,arguments),this):F.apply(Object.create(F.prototype),arguments)}function L(){var D=this;Q(D.path,D.flags,D.mode,function(q,k){q?(D.autoClose&&D.destroy(),D.emit("error",q)):(D.fd=k,D.emit("open",k),D.read())})}function B(D,q){return this instanceof B?(b.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function G(){var D=this;Q(D.path,D.flags,D.mode,function(q,k){q?(D.destroy(),D.emit("error",q)):(D.fd=k,D.emit("open",k))})}function Y(D,q){return new t.ReadStream(D,q)}function ye(D,q){return new t.WriteStream(D,q)}var De=t.open;t.open=Q;function Q(D,q,k,X){return typeof k=="function"&&(X=k,k=null),I(D,q,k,X);function I(U,O,j,M,E){return De(U,O,j,function(A,Oe){A&&(A.code==="EMFILE"||A.code==="ENFILE")?St([I,[U,O,j,M],A,E||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}return t}function St(t){st("ENQUEUE",t[0].name,t[1]),W[se].push(t),Pi()}var zr;function Eu(){for(var t=Date.now(),e=0;e<W[se].length;++e)W[se][e].length>2&&(W[se][e][3]=t,W[se][e][4]=t);Pi()}function Pi(){if(clearTimeout(zr),zr=void 0,W[se].length!==0){var t=W[se].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)st("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){st("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,u=Math.max(s-i,1),h=Math.min(u*1.2,100);a>=h?(st("RETRY",e.name,r),e.apply(null,r.concat([i]))):W[se].push(t)}zr===void 0&&(zr=setTimeout(Pi,0))}}});var Wt=y(Ge=>{"use strict";var Pu=be().fromCallback,pe=le(),hp=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof pe[t]=="function");Object.keys(pe).forEach(t=>{t!=="promises"&&(Ge[t]=pe[t])});hp.forEach(t=>{Ge[t]=Pu(pe[t])});Ge.exists=function(t,e){return typeof e=="function"?pe.exists(t,e):new Promise(r=>pe.exists(t,r))};Ge.read=function(t,e,r,n,i,s){return typeof s=="function"?pe.read(t,e,r,n,i,s):new Promise((o,a)=>{pe.read(t,e,r,n,i,(u,h,c)=>{if(u)return a(u);o({bytesRead:h,buffer:c})})})};Ge.write=function(t,e,...r){return typeof r[r.length-1]=="function"?pe.write(t,e,...r):new Promise((n,i)=>{pe.write(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof pe.writev=="function"&&(Ge.writev=function(t,e,...r){return typeof r[r.length-1]=="function"?pe.writev(t,e,...r):new Promise((n,i)=>{pe.writev(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffers:a})})})});typeof pe.realpath.native=="function"&&(Ge.realpath.native=Pu(pe.realpath.native))});var Oi=y((gb,Du)=>{Du.exports=t=>{let e=process.versions.node.split(".").map(r=>parseInt(r,10));return t=t.split(".").map(r=>parseInt(r,10)),e[0]>t[0]||e[0]===t[0]&&(e[1]>t[1]||e[1]===t[1]&&e[2]>=t[2])}});var Ru=y((yb,Ii)=>{"use strict";var Et=Wt(),$e=require("path"),pp=Oi(),Ou=pp("10.12.0"),Iu=t=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace($e.parse(t).root,""))){let r=new Error(`Path contains invalid characters: ${t}`);throw r.code="EINVAL",r}},Fu=t=>{let e={mode:511};return typeof t=="number"&&(t={mode:t}),{...e,...t}},Au=t=>{let e=new Error(`operation not permitted, mkdir '${t}'`);return e.code="EPERM",e.errno=-4048,e.path=t,e.syscall="mkdir",e};Ii.exports.makeDir=async(t,e)=>{if(Iu(t),e=Fu(e),Ou){let n=$e.resolve(t);return Et.mkdir(n,{mode:e.mode,recursive:!0})}let r=async n=>{try{await Et.mkdir(n,e.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if($e.dirname(n)===n)throw Au(n);if(i.message.includes("null bytes"))throw i;return await r($e.dirname(n)),r(n)}try{if(!(await Et.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r($e.resolve(t))};Ii.exports.makeDirSync=(t,e)=>{if(Iu(t),e=Fu(e),Ou){let n=$e.resolve(t);return Et.mkdirSync(n,{mode:e.mode,recursive:!0})}let r=n=>{try{Et.mkdirSync(n,e.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if($e.dirname(n)===n)throw Au(n);if(i.message.includes("null bytes"))throw i;return r($e.dirname(n)),r(n)}try{if(!Et.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r($e.resolve(t))}});var Ne=y((vb,ku)=>{"use strict";var mp=be().fromPromise,{makeDir:gp,makeDirSync:Fi}=Ru(),Ai=mp(gp);ku.exports={mkdirs:Ai,mkdirsSync:Fi,mkdirp:Ai,mkdirpSync:Fi,ensureDir:Ai,ensureDirSync:Fi}});var Ri=y((bb,Mu)=>{"use strict";var Ct=le();function yp(t,e,r,n){Ct.open(t,"r+",(i,s)=>{if(i)return n(i);Ct.futimes(s,e,r,o=>{Ct.close(s,a=>{n&&n(o||a)})})})}function vp(t,e,r){let n=Ct.openSync(t,"r+");return Ct.futimesSync(n,e,r),Ct.closeSync(n)}Mu.exports={utimesMillis:yp,utimesMillisSync:vp}});var Jt=y((wb,ju)=>{"use strict";var Pt=Wt(),we=require("path"),bp=require("util"),wp=Oi(),Jr=wp("10.5.0"),qu=t=>Jr?Pt.stat(t,{bigint:!0}):Pt.stat(t),ki=t=>Jr?Pt.statSync(t,{bigint:!0}):Pt.statSync(t);function _p(t,e){return Promise.all([qu(t),qu(e).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function xp(t,e){let r,n=ki(t);try{r=ki(e)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function Sp(t,e,r,n){bp.callbackify(_p)(t,e,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;return a&&Vr(o,a)?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&Mi(t,e)?n(new Error(Yr(t,e,r))):n(null,{srcStat:o,destStat:a})})}function Ep(t,e,r){let{srcStat:n,destStat:i}=xp(t,e);if(i&&Vr(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&Mi(t,e))throw new Error(Yr(t,e,r));return{srcStat:n,destStat:i}}function Tu(t,e,r,n,i){let s=we.resolve(we.dirname(t)),o=we.resolve(we.dirname(r));if(o===s||o===we.parse(o).root)return i();let a=(u,h)=>u?u.code==="ENOENT"?i():i(u):Vr(e,h)?i(new Error(Yr(t,r,n))):Tu(t,e,o,n,i);Jr?Pt.stat(o,{bigint:!0},a):Pt.stat(o,a)}function Nu(t,e,r,n){let i=we.resolve(we.dirname(t)),s=we.resolve(we.dirname(r));if(s===i||s===we.parse(s).root)return;let o;try{o=ki(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(Vr(e,o))throw new Error(Yr(t,r,n));return Nu(t,e,s,n)}function Vr(t,e){return!!(e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev&&(Jr||e.ino<Number.MAX_SAFE_INTEGER||e.size===t.size&&e.mode===t.mode&&e.nlink===t.nlink&&e.atimeMs===t.atimeMs&&e.mtimeMs===t.mtimeMs&&e.ctimeMs===t.ctimeMs&&e.birthtimeMs===t.birthtimeMs))}function Mi(t,e){let r=we.resolve(t).split(we.sep).filter(i=>i),n=we.resolve(e).split(we.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function Yr(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}ju.exports={checkPaths:Sp,checkPathsSync:Ep,checkParentPaths:Tu,checkParentPathsSync:Nu,isSrcSubdir:Mi}});var Xu=y((_b,Uu)=>{"use strict";var fe=le(),Vt=require("path"),Cp=Ne().mkdirsSync,Pp=Ri().utimesMillisSync,Yt=Jt();function Dp(t,e,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
4
+ `+s),t.push(i+"m+"+Fr.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=$h()+e+" "+t[0]}function $h(){return ne.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Bh(...t){return process.stderr.write(Ir.format(...t)+`
5
+ `)}function Uh(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Xh(){return process.env.DEBUG}function Hh(t){t.inspectOpts={};let e=Object.keys(ne.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ne.inspectOpts[e[r]]}Fr.exports=Jn()(ne);var{formatters:Uo}=Fr.exports;Uo.o=function(t){return this.inspectOpts.colors=this.useColors,Ir.inspect(t,this.inspectOpts).split(`
6
+ `).map(e=>e.trim()).join(" ")};Uo.O=function(t){return this.inspectOpts.colors=this.useColors,Ir.inspect(t,this.inspectOpts)}});var Ho=y((Rv,Qn)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Qn.exports=No():Qn.exports=Xo()});var zo=y((kv,Go)=>{var $t;Go.exports=function(){if(!$t){try{$t=Ho()("follow-redirects")}catch{}typeof $t!="function"&&($t=function(){})}$t.apply(null,arguments)}});var ii=y((Mv,ni)=>{var nt=require("url"),Zn=nt.URL,Gh=require("http"),zh=require("https"),Vo=require("stream").Writable,Yo=require("assert"),Ko=zo(),ti=["abort","aborted","connect","error","socket","timeout"],ri=Object.create(null);ti.forEach(function(t){ri[t]=function(e,r,n){this._redirectable.emit(t,e,r,n)}});var Wh=Ut("ERR_INVALID_URL","Invalid URL",TypeError),Wo=Ut("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Jh=Ut("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Vh=Ut("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Yh=Ut("ERR_STREAM_WRITE_AFTER_END","write after end");function De(t,e){Vo.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}De.prototype=Object.create(Vo.prototype);De.prototype.abort=function(){Zo(this._currentRequest),this.emit("abort")};De.prototype.write=function(t,e,r){if(this._ending)throw new Yh;if(!it(t)&&!Zh(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Bt(e)&&(r=e,e=null),t.length===0){r&&r();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,r)):(this.emit("error",new Vh),this.abort())};De.prototype.end=function(t,e,r){if(Bt(t)?(r=t,t=e=null):Bt(e)&&(r=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(t,e,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};De.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};De.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};De.prototype.setTimeout=function(t,e){var r=this;function n(o){o.setTimeout(t),o.removeListener("timeout",o.destroy),o.addListener("timeout",o.destroy)}function i(o){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},t),n(o)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),e&&r.removeListener("timeout",e),r.socket||r._currentRequest.removeListener("socket",i)}return e&&this.on("timeout",e),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){De.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(De.prototype,t,{get:function(){return this._currentRequest[t]}})});De.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};De.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e){this.emit("error",new TypeError("Unsupported protocol "+t));return}if(this._options.agents){var r=t.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of ti)n.on(i,ri[i]);if(this._currentUrl=/^\//.test(this._options.path)?nt.format(this._options):this._options.path,this._isRedirect){var s=0,o=this,a=this._requestBodyBuffers;(function u(h){if(n===o._currentRequest)if(h)o.emit("error",h);else if(s<a.length){var c=a[s++];n.finished||n.write(c.data,c.encoding,u)}else o._ended&&n.end()})()}};De.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var r=t.headers.location;if(!r||this._options.followRedirects===!1||e<300||e>=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(Zo(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new Jh);return}var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var s=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],ei(/^content-/i,this._options.headers));var o=ei(/^host$/i,this._options.headers),a=nt.parse(this._currentUrl),u=o||a.host,h=/^\w+:/.test(r)?this._currentUrl:nt.format(Object.assign(a,{host:u})),c;try{c=nt.resolve(h,r)}catch(b){this.emit("error",new Wo({cause:b}));return}Ko("redirecting to",c),this._isRedirect=!0;var p=nt.parse(c);if(Object.assign(this._options,p),(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==u&&!Qh(p.host,u))&&ei(/^(?:authorization|cookie)$/i,this._options.headers),Bt(i)){var g={headers:t.headers,statusCode:e},m={url:h,method:s,headers:n};try{i(this._options,g,m)}catch(b){this.emit("error",b);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(b){this.emit("error",new Wo({cause:b}))}};function Qo(t){var e={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(t).forEach(function(n){var i=n+":",s=r[i]=t[n],o=e[n]=Object.create(s);function a(h,c,p){if(it(h)){var g;try{g=Jo(new Zn(h))}catch{g=nt.parse(h)}if(!it(g.protocol))throw new Wh({input:h});h=g}else Zn&&h instanceof Zn?h=Jo(h):(p=c,c=h,h={protocol:i});return Bt(c)&&(p=c,c=null),c=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},h,c),c.nativeProtocols=r,!it(c.host)&&!it(c.hostname)&&(c.hostname="::1"),Yo.equal(c.protocol,i,"protocol mismatch"),Ko("options",c),new De(c,p)}function u(h,c,p){var g=o.request(h,c,p);return g.end(),g}Object.defineProperties(o,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:u,configurable:!0,enumerable:!0,writable:!0}})}),e}function Kh(){}function Jo(t){var e={protocol:t.protocol,hostname:t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,hash:t.hash,search:t.search,pathname:t.pathname,path:t.pathname+t.search,href:t.href};return t.port!==""&&(e.port=Number(t.port)),e}function ei(t,e){var r;for(var n in e)t.test(n)&&(r=e[n],delete e[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function Ut(t,e,r){function n(i){Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+t+"]",n}function Zo(t){for(var e of ti)t.removeListener(e,ri[e]);t.on("error",Kh),t.abort()}function Qh(t,e){Yo(it(t)&&it(e));var r=t.length-e.length-1;return r>0&&t[r]==="."&&t.endsWith(e)}function it(t){return typeof t=="string"||t instanceof String}function Bt(t){return typeof t=="function"}function Zh(t){return typeof t=="object"&&"length"in t}ni.exports=Qo({http:Gh,https:zh});ni.exports.wrap=Qo});var si=y((qv,e0)=>{e0.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 sa=y((Tv,ia)=>{"use strict";var Xt=he(),ea=Hn(),t0=Gn(),r0=_r(),n0=require("http"),i0=require("https"),s0=ii().http,o0=ii().https,ta=require("url"),a0=require("zlib"),u0=si(),Ar=Er(),oi=Sr(),ra=/https:?/;function na(t,e,r){if(t.hostname=e.host,t.host=e.host,t.port=e.port,t.path=r,e.auth){var n=Buffer.from(e.auth.username+":"+e.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+n}t.beforeRedirect=function(s){s.headers.host=s.host,na(s,e,s.href)}}ia.exports=function(e){return new Promise(function(n,i){var s=function(C){n(C)},o=function(C){i(C)},a=e.data,u=e.headers;if("User-Agent"in u||"user-agent"in u?!u["User-Agent"]&&!u["user-agent"]&&(delete u["User-Agent"],delete u["user-agent"]):u["User-Agent"]="axios/"+u0.version,a&&!Xt.isStream(a)){if(!Buffer.isBuffer(a))if(Xt.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(Xt.isString(a))a=Buffer.from(a,"utf-8");else return o(Ar("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));u["Content-Length"]=a.length}var h=void 0;if(e.auth){var c=e.auth.username||"",p=e.auth.password||"";h=c+":"+p}var g=t0(e.baseURL,e.url),m=ta.parse(g),b=m.protocol||"http:";if(!h&&m.auth){var x=m.auth.split(":"),P=x[0]||"",F=x[1]||"";h=P+":"+F}h&&delete u.Authorization;var N=ra.test(b),B=N?e.httpsAgent:e.httpAgent,X={path:r0(m.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:u,agent:B,agents:{http:e.httpAgent,https:e.httpsAgent},auth:h};e.socketPath?X.socketPath=e.socketPath:(X.hostname=m.hostname,X.port=m.port);var Y=e.proxy;if(!Y&&Y!==!1){var ve=b.slice(0,-1)+"_proxy",Ie=process.env[ve]||process.env[ve.toUpperCase()];if(Ie){var Q=ta.parse(Ie),D=process.env.no_proxy||process.env.NO_PROXY,q=!0;if(D){var k=D.split(",").map(function(C){return C.trim()});q=!k.some(function(C){return C?C==="*"||C[0]==="."&&m.hostname.substr(m.hostname.length-C.length)===C?!0:m.hostname===C:!1})}if(q&&(Y={host:Q.hostname,port:Q.port,protocol:Q.protocol},Q.auth)){var H=Q.auth.split(":");Y.auth={username:H[0],password:H[1]}}}}Y&&(X.headers.host=m.hostname+(m.port?":"+m.port:""),na(X,Y,b+"//"+m.hostname+(m.port?":"+m.port:"")+X.path));var I,$=N&&(Y?ra.test(Y.protocol):!0);e.transport?I=e.transport:e.maxRedirects===0?I=$?i0:n0:(e.maxRedirects&&(X.maxRedirects=e.maxRedirects),I=$?o0:s0),e.maxBodyLength>-1&&(X.maxBodyLength=e.maxBodyLength);var O=I.request(X,function(C){if(!O.aborted){var A=C,ke=C.req||O;if(C.statusCode!==204&&ke.method!=="HEAD"&&e.decompress!==!1)switch(C.headers["content-encoding"]){case"gzip":case"compress":case"deflate":A=A.pipe(a0.createUnzip()),delete C.headers["content-encoding"];break}var Le={status:C.statusCode,statusText:C.statusMessage,headers:C.headers,config:e,request:ke};if(e.responseType==="stream")Le.data=A,ea(s,o,Le);else{var Z=[],ae=0;A.on("data",function(be){Z.push(be),ae+=be.length,e.maxContentLength>-1&&ae>e.maxContentLength&&(A.destroy(),o(Ar("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,ke)))}),A.on("error",function(be){O.aborted||o(oi(be,e,null,ke))}),A.on("end",function(){var be=Buffer.concat(Z);e.responseType!=="arraybuffer"&&(be=be.toString(e.responseEncoding),(!e.responseEncoding||e.responseEncoding==="utf8")&&(be=Xt.stripBOM(be))),Le.data=be,ea(s,o,Le)})}}});if(O.on("error",function(C){O.aborted&&C.code!=="ERR_FR_TOO_MANY_REDIRECTS"||o(oi(C,e,null,O))}),e.timeout){var L=parseInt(e.timeout,10);if(isNaN(L)){o(Ar("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",O));return}O.setTimeout(L,function(){O.abort(),o(Ar("timeout of "+L+"ms exceeded",e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",O))})}e.cancelToken&&e.cancelToken.promise.then(function(C){O.aborted||(O.abort(),o(C))}),Xt.isStream(a)?a.on("error",function(C){o(oi(C,e,null,O))}).pipe(O):O.end(a)})}});var kr=y((Nv,ua)=>{"use strict";var ie=he(),oa=go(),c0=Sr(),l0={"Content-Type":"application/x-www-form-urlencoded"};function aa(t,e){!ie.isUndefined(t)&&ie.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function f0(){var t;return typeof XMLHttpRequest<"u"?t=ko():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(t=sa()),t}function d0(t,e,r){if(ie.isString(t))try{return(e||JSON.parse)(t),ie.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var Rr={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:f0(),transformRequest:[function(e,r){return oa(r,"Accept"),oa(r,"Content-Type"),ie.isFormData(e)||ie.isArrayBuffer(e)||ie.isBuffer(e)||ie.isStream(e)||ie.isFile(e)||ie.isBlob(e)?e:ie.isArrayBufferView(e)?e.buffer:ie.isURLSearchParams(e)?(aa(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):ie.isObject(e)||r&&r["Content-Type"]==="application/json"?(aa(r,"application/json"),d0(e)):e}],transformResponse:[function(e){var r=this.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,s=!n&&this.responseType==="json";if(s||i&&ie.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?c0(o,this,"E_JSON_PARSE"):o}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};Rr.headers={common:{Accept:"application/json, text/plain, */*"}};ie.forEach(["delete","get","head"],function(e){Rr.headers[e]={}});ie.forEach(["post","put","patch"],function(e){Rr.headers[e]=ie.merge(l0)});ua.exports=Rr});var la=y((jv,ca)=>{"use strict";var h0=he(),p0=kr();ca.exports=function(e,r,n){var i=this||p0;return h0.forEach(n,function(o){e=o.call(i,e,r)}),e}});var ai=y((Lv,fa)=>{"use strict";fa.exports=function(e){return!!(e&&e.__CANCEL__)}});var pa=y(($v,ha)=>{"use strict";var da=he(),ui=la(),m0=ai(),g0=kr();function ci(t){t.cancelToken&&t.cancelToken.throwIfRequested()}ha.exports=function(e){ci(e),e.headers=e.headers||{},e.data=ui.call(e,e.data,e.headers,e.transformRequest),e.headers=da.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),da.forEach(["delete","get","head","post","put","patch","common"],function(i){delete e.headers[i]});var r=e.adapter||g0.adapter;return r(e).then(function(i){return ci(e),i.data=ui.call(e,i.data,i.headers,e.transformResponse),i},function(i){return m0(i)||(ci(e),i&&i.response&&(i.response.data=ui.call(e,i.response.data,i.response.headers,e.transformResponse))),Promise.reject(i)})}});var li=y((Bv,ma)=>{"use strict";var ce=he();ma.exports=function(e,r){r=r||{};var n={},i=["url","method","data"],s=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function u(g,m){return ce.isPlainObject(g)&&ce.isPlainObject(m)?ce.merge(g,m):ce.isPlainObject(m)?ce.merge({},m):ce.isArray(m)?m.slice():m}function h(g){ce.isUndefined(r[g])?ce.isUndefined(e[g])||(n[g]=u(void 0,e[g])):n[g]=u(e[g],r[g])}ce.forEach(i,function(m){ce.isUndefined(r[m])||(n[m]=u(void 0,r[m]))}),ce.forEach(s,h),ce.forEach(o,function(m){ce.isUndefined(r[m])?ce.isUndefined(e[m])||(n[m]=u(void 0,e[m])):n[m]=u(void 0,r[m])}),ce.forEach(a,function(m){m in r?n[m]=u(e[m],r[m]):m in e&&(n[m]=u(void 0,e[m]))});var c=i.concat(s).concat(o).concat(a),p=Object.keys(e).concat(Object.keys(r)).filter(function(m){return c.indexOf(m)===-1});return ce.forEach(p,h),n}});var wa=y((Uv,ba)=>{"use strict";var ya=si(),fi={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){fi[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var ga={},y0=ya.version.split(".");function va(t,e){for(var r=e?e.split("."):y0,n=t.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}fi.transitional=function(e,r,n){var i=r&&va(r);function s(o,a){return"[Axios v"+ya.version+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,u){if(e===!1)throw new Error(s(a," has been removed in "+r));return i&&!ga[a]&&(ga[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,a,u):!0}};function v0(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var n=Object.keys(t),i=n.length;i-- >0;){var s=n[i],o=e[s];if(o){var a=t[s],u=a===void 0||o(a,s,t);if(u!==!0)throw new TypeError("option "+s+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+s)}}ba.exports={isOlderVersion:va,assertOptions:v0,validators:fi}});var Pa=y((Xv,Ca)=>{"use strict";var Sa=he(),b0=_r(),_a=po(),xa=pa(),Mr=li(),Ea=wa(),yt=Ea.validators;function Ht(t){this.defaults=t,this.interceptors={request:new _a,response:new _a}}Ht.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=Mr(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;r!==void 0&&Ea.assertOptions(r,{silentJSONParsing:yt.transitional(yt.boolean,"1.0.0"),forcedJSONParsing:yt.transitional(yt.boolean,"1.0.0"),clarifyTimeoutError:yt.transitional(yt.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(e)===!1||(i=i&&g.synchronous,n.unshift(g.fulfilled,g.rejected))});var s=[];this.interceptors.response.forEach(function(g){s.push(g.fulfilled,g.rejected)});var o;if(!i){var a=[xa,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(s),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var u=e;n.length;){var h=n.shift(),c=n.shift();try{u=h(u)}catch(p){c(p);break}}try{o=xa(u)}catch(p){return Promise.reject(p)}for(;s.length;)o=o.then(s.shift(),s.shift());return o};Ht.prototype.getUri=function(e){return e=Mr(this.defaults,e),b0(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};Sa.forEach(["delete","get","head","options"],function(e){Ht.prototype[e]=function(r,n){return this.request(Mr(n||{},{method:e,url:r,data:(n||{}).data}))}});Sa.forEach(["post","put","patch"],function(e){Ht.prototype[e]=function(r,n,i){return this.request(Mr(i||{},{method:e,url:r,data:n}))}});Ca.exports=Ht});var hi=y((Hv,Da)=>{"use strict";function di(t){this.message=t}di.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};di.prototype.__CANCEL__=!0;Da.exports=di});var Ia=y((Gv,Oa)=>{"use strict";var w0=hi();function qr(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(i){e=i});var r=this;t(function(i){r.reason||(r.reason=new w0(i),e(r.reason))})}qr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};qr.source=function(){var e,r=new qr(function(i){e=i});return{token:r,cancel:e}};Oa.exports=qr});var Aa=y((zv,Fa)=>{"use strict";Fa.exports=function(e){return function(n){return e.apply(null,n)}}});var ka=y((Wv,Ra)=>{"use strict";Ra.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}});var Ta=y((Jv,pi)=>{"use strict";var Ma=he(),_0=Ln(),Tr=Pa(),x0=li(),S0=kr();function qa(t){var e=new Tr(t),r=_0(Tr.prototype.request,e);return Ma.extend(r,Tr.prototype,e),Ma.extend(r,e),r}var qe=qa(S0);qe.Axios=Tr;qe.create=function(e){return qa(x0(qe.defaults,e))};qe.Cancel=hi();qe.CancelToken=Ia();qe.isCancel=ai();qe.all=function(e){return Promise.all(e)};qe.spread=Aa();qe.isAxiosError=ka();pi.exports=qe;pi.exports.default=qe});var mi=y((Vv,Na)=>{Na.exports=Ta()});var La=y((Yv,ja)=>{"use strict";var E0=/[|\\{}()[\]^$+*?.]/g;ja.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(E0,"\\$&")}});var Ba=y((Kv,$a)=>{"use strict";$a.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 gi=y((Qv,Ga)=>{var st=Ba(),Ha={};for(Nr in st)st.hasOwnProperty(Nr)&&(Ha[st[Nr]]=Nr);var Nr,S=Ga.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(pe in S)if(S.hasOwnProperty(pe)){if(!("channels"in S[pe]))throw new Error("missing channels property: "+pe);if(!("labels"in S[pe]))throw new Error("missing channel labels property: "+pe);if(S[pe].labels.length!==S[pe].channels)throw new Error("channel and label counts mismatch: "+pe);Ua=S[pe].channels,Xa=S[pe].labels,delete S[pe].channels,delete S[pe].labels,Object.defineProperty(S[pe],"channels",{value:Ua}),Object.defineProperty(S[pe],"labels",{value:Xa})}var Ua,Xa,pe;S.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,u,h;return s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),h=(i+s)/2,s===i?u=0:h<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,h*100]};S.rgb.hsv=function(t){var e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,h=Math.max(o,a,u),c=h-Math.min(o,a,u),p=function(g){return(h-g)/6/c+1/2};return c===0?i=s=0:(s=c/h,e=p(o),r=p(a),n=p(u),o===h?i=n-r:a===h?i=1/3+e-n:u===h&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,h*100]};S.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=S.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};S.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i,s,o,a;return a=Math.min(1-e,1-r,1-n),i=(1-e-a)/(1-a)||0,s=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[i*100,s*100,o*100,a*100]};function C0(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}S.rgb.keyword=function(t){var e=Ha[t];if(e)return e;var r=1/0,n;for(var i in st)if(st.hasOwnProperty(i)){var s=st[i],o=C0(t,s);o<r&&(r=o,n=i)}return n};S.keyword.rgb=function(t){return st[t]};S.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};S.rgb.lab=function(t){var e=S.rgb.xyz(t),r=e[0],n=e[1],i=e[2],s,o,a;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),a=200*(n-i),[s,o,a]};S.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o,a,u;if(r===0)return u=n*255,[u,u,u];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var h=0;h<3;h++)o=e+1/3*-(h-1),o<0&&o++,o>1&&o--,6*o<1?u=i+(s-i)*6*o:2*o<1?u=s:3*o<2?u=i+(s-i)*(2/3-o)*6:u=i,a[h]=u*255;return a};S.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[e,o*100,a*100]};S.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};S.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o,a;return a=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[e,o*100,a*100]};S.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s,o,a,u;i>1&&(r/=i,n/=i),s=Math.floor(6*e),o=1-n,a=6*e-s,s&1&&(a=1-a),u=r+a*(o-r);var h,c,p;switch(s){default:case 6:case 0:h=o,c=u,p=r;break;case 1:h=u,c=o,p=r;break;case 2:h=r,c=o,p=u;break;case 3:h=r,c=u,p=o;break;case 4:h=u,c=r,p=o;break;case 5:h=o,c=r,p=u;break}return[h*255,c*255,p*255]};S.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s,o,a;return s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};S.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};S.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(e-r),o=200*(r-n),[i,s,o]};S.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),u=Math.pow(i,3),h=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=h>.008856?h:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};S.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[e,o,s]};S.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[e,i,s]};S.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:S.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return i===2&&(s+=60),s};S.hsv.ansi16=function(t){return S.rgb.ansi16(S.hsv.rgb(t),t[2])};S.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};S.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};S.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};S.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};S.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};S.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===e?u=(r-n)/o%6:i===r?u=2+(n-e)/o:u=4+(e-r)/o+4,u/=6,u%=1,[u*360,o*100,a*100]};S.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};S.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};S.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=e%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};S.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};S.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};S.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};S.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};S.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};S.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};S.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};S.gray.hsl=S.gray.hsv=function(t){return[0,0,t[0]]};S.gray.hwb=function(t){return[0,100,t[0]]};S.gray.cmyk=function(t){return[0,0,0,t[0]]};S.gray.lab=function(t){return[t[0],0,0]};S.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};S.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var Wa=y((Zv,za)=>{var jr=gi();function P0(){for(var t={},e=Object.keys(jr),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function D0(t){var e=P0(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(jr[n]),s=i.length,o=0;o<s;o++){var a=i[o],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}return e}function O0(t,e){return function(r){return e(t(r))}}function I0(t,e){for(var r=[e[t].parent,t],n=jr[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=O0(jr[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}za.exports=function(t){for(var e=D0(t),r={},n=Object.keys(e),i=n.length,s=0;s<i;s++){var o=n[s],a=e[o];a.parent!==null&&(r[o]=I0(o,e))}return r}});var Va=y((eb,Ja)=>{var yi=gi(),F0=Wa(),vt={},A0=Object.keys(yi);function R0(t){var e=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function k0(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}A0.forEach(function(t){vt[t]={},Object.defineProperty(vt[t],"channels",{value:yi[t].channels}),Object.defineProperty(vt[t],"labels",{value:yi[t].labels});var e=F0(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];vt[t][n]=k0(i),vt[t][n].raw=R0(i)})});Ja.exports=vt});var Ka=y((tb,Ya)=>{"use strict";var bt=Va(),Lr=(t,e)=>function(){return`\x1B[${t.apply(bt,arguments)+e}m`},$r=(t,e)=>function(){let r=t.apply(bt,arguments);return`\x1B[${38+e};5;${r}m`},Br=(t,e)=>function(){let r=t.apply(bt,arguments);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function M0(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.grey=e.color.gray;for(let i of Object.keys(e)){let s=e[i];for(let o of Object.keys(s)){let a=s[o];e[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},s[o]=e[o],t.set(a[0],a[1])}Object.defineProperty(e,i,{value:s,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:Lr(r,0)},e.color.ansi256={ansi256:$r(r,0)},e.color.ansi16m={rgb:Br(n,0)},e.bgColor.ansi={ansi:Lr(r,10)},e.bgColor.ansi256={ansi256:$r(r,10)},e.bgColor.ansi16m={rgb:Br(n,10)};for(let i of Object.keys(bt)){if(typeof bt[i]!="object")continue;let s=bt[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(e.color.ansi[i]=Lr(s.ansi16,0),e.bgColor.ansi[i]=Lr(s.ansi16,10)),"ansi256"in s&&(e.color.ansi256[i]=$r(s.ansi256,0),e.bgColor.ansi256[i]=$r(s.ansi256,10)),"rgb"in s&&(e.color.ansi16m[i]=Br(s.rgb,0),e.bgColor.ansi16m[i]=Br(s.rgb,10))}return e}Object.defineProperty(Ya,"exports",{enumerable:!0,get:M0})});var Za=y((rb,Qa)=>{"use strict";Qa.exports=(t,e)=>{e=e||process.argv;let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var tu=y((nb,eu)=>{"use strict";var q0=require("os"),Te=Za(),le=process.env,wt;Te("no-color")||Te("no-colors")||Te("color=false")?wt=!1:(Te("color")||Te("colors")||Te("color=true")||Te("color=always"))&&(wt=!0);"FORCE_COLOR"in le&&(wt=le.FORCE_COLOR.length===0||parseInt(le.FORCE_COLOR,10)!==0);function T0(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function N0(t){if(wt===!1)return 0;if(Te("color=16m")||Te("color=full")||Te("color=truecolor"))return 3;if(Te("color=256"))return 2;if(t&&!t.isTTY&&wt!==!0)return 0;let e=wt?1:0;if(process.platform==="win32"){let r=q0.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in le)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in le)||le.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in le)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(le.TEAMCITY_VERSION)?1:0;if(le.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in le){let r=parseInt((le.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(le.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(le.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(le.TERM)||"COLORTERM"in le?1:(le.TERM==="dumb",e)}function vi(t){let e=N0(t);return T0(e)}eu.exports={supportsColor:vi,stdout:vi(process.stdout),stderr:vi(process.stderr)}});var ou=y((ib,su)=>{"use strict";var j0=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,ru=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,L0=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,$0=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,B0=new Map([["n",`
7
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function iu(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):B0.get(t)||t}function U0(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(L0))r.push(i[2].replace($0,(o,a,u)=>a?iu(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`);return r}function X0(t){ru.lastIndex=0;let e=[],r;for(;(r=ru.exec(t))!==null;){let n=r[1];if(r[2]){let i=U0(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function nu(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}su.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(j0,(s,o,a,u,h,c)=>{if(o)i.push(iu(o));else if(u){let p=i.join("");i=[],n.push(r.length===0?p:nu(t,r)(p)),r.push({inverse:a,styles:X0(u)})}else if(h){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(nu(t,r)(i.join(""))),i=[],r.pop()}else i.push(c)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var Xr=y((sb,zt)=>{"use strict";var wi=La(),V=Ka(),bi=tu().stdout,H0=ou(),uu=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),cu=["ansi","ansi","ansi256","ansi16m"],lu=new Set(["gray"]),_t=Object.create(null);function au(t,e){e=e||{};let r=bi?bi.level:0;t.level=e.level===void 0?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function Gt(t){if(!this||!(this instanceof Gt)||this.template){let e={};return au(e,t),e.template=function(){let r=[].slice.call(arguments);return W0.apply(null,[e.template].concat(r))},Object.setPrototypeOf(e,Gt.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=Gt,e.template}au(this,t)}uu&&(V.blue.open="\x1B[94m");for(let t of Object.keys(V))V[t].closeRe=new RegExp(wi(V[t].close),"g"),_t[t]={get(){let e=V[t];return Ur.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};_t.visible={get(){return Ur.call(this,this._styles||[],!0,"visible")}};V.color.closeRe=new RegExp(wi(V.color.close),"g");for(let t of Object.keys(V.color.ansi))lu.has(t)||(_t[t]={get(){let e=this.level;return function(){let n={open:V.color[cu[e]][t].apply(null,arguments),close:V.color.close,closeRe:V.color.closeRe};return Ur.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}});V.bgColor.closeRe=new RegExp(wi(V.bgColor.close),"g");for(let t of Object.keys(V.bgColor.ansi)){if(lu.has(t))continue;let e="bg"+t[0].toUpperCase()+t.slice(1);_t[e]={get(){let r=this.level;return function(){let i={open:V.bgColor[cu[r]][t].apply(null,arguments),close:V.bgColor.close,closeRe:V.bgColor.closeRe};return Ur.call(this,this._styles?this._styles.concat(i):[i],this._empty,t)}}}}var G0=Object.defineProperties(()=>{},_t);function Ur(t,e,r){let n=function(){return z0.apply(n,arguments)};n._styles=t,n._empty=e;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=G0,n}function z0(){let t=arguments,e=t.length,r=String(arguments[0]);if(e===0)return"";if(e>1)for(let i=1;i<e;i++)r+=" "+t[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=V.dim.open;uu&&this.hasGrey&&(V.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return V.dim.open=n,r}function W0(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[e.raw[0]];for(let i=1;i<e.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(e.raw[i]));return H0(t,n.join(""))}Object.defineProperties(Gt.prototype,_t);zt.exports=Gt();zt.exports.supportsColor=bi;zt.exports.default=zt.exports});var St=y((ab,xi)=>{var J0=require("fs"),V0=require("path");function hu(t){console.log(`[dotenv][DEBUG] ${t}`)}var Y0=`
8
+ `,K0=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,Q0=/\\n/g,Z0=/\n|\r|\r\n/;function pu(t,e){let r=!!(e&&e.debug),n={};return t.toString().split(Z0).forEach(function(i,s){let o=i.match(K0);if(o!=null){let a=o[1],u=o[2]||"",h=u.length-1,c=u[0]==='"'&&u[h]==='"';u[0]==="'"&&u[h]==="'"||c?(u=u.substring(1,h),c&&(u=u.replace(Q0,Y0))):u=u.trim(),n[a]=u}else r&&hu(`did not match key and value when parsing line ${s+1}: ${i}`)}),n}function ep(t){let e=V0.resolve(process.cwd(),".env"),r="utf8",n=!1;t&&(t.path!=null&&(e=t.path),t.encoding!=null&&(r=t.encoding),t.debug!=null&&(n=!0));try{let i=pu(J0.readFileSync(e,{encoding:r}),{debug:n});return Object.keys(i).forEach(function(s){Object.prototype.hasOwnProperty.call(process.env,s)?n&&hu(`"${s}" is already defined in \`process.env\` and will not be overwritten`):process.env[s]=i[s]}),{parsed:i}}catch(i){return{error:i}}}xi.exports.config=ep;xi.exports.parse=pu});var _e=y(Si=>{"use strict";Si.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((r,n)=>{t.call(this,...e,(i,s)=>i!=null?n(i):r(s))})},"name",{value:t.name})};Si.fromPromise=function(t){return Object.defineProperty(function(...e){let r=e[e.length-1];if(typeof r!="function")return t.apply(this,e);t.apply(this,e.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:t.name})}});var gu=y((cb,mu)=>{var Ge=require("constants"),tp=process.cwd,Hr=null,rp=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Hr||(Hr=tp.call(process)),Hr};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Ei=process.chdir,process.chdir=function(t){Hr=null,Ei.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ei));var Ei;mu.exports=np;function np(t){Ge.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,p,g){g&&process.nextTick(g)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,p,g,m){m&&process.nextTick(m)},t.lchownSync=function(){}),rp==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(c){function p(g,m,b){var x=Date.now(),P=0;c(g,m,function F(N){if(N&&(N.code==="EACCES"||N.code==="EPERM")&&Date.now()-x<6e4){setTimeout(function(){t.stat(m,function(B,X){B&&B.code==="ENOENT"?c(g,m,F):b(N)})},P),P<100&&(P+=10);return}b&&b(N)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.rename)),t.read=typeof t.read!="function"?t.read:function(c){function p(g,m,b,x,P,F){var N;if(F&&typeof F=="function"){var B=0;N=function(X,Y,ve){if(X&&X.code==="EAGAIN"&&B<10)return B++,c.call(t,g,m,b,x,P,N);F.apply(this,arguments)}}return c.call(t,g,m,b,x,P,N)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(c){return function(p,g,m,b,x){for(var P=0;;)try{return c.call(t,p,g,m,b,x)}catch(F){if(F.code==="EAGAIN"&&P<10){P++;continue}throw F}}}(t.readSync);function e(c){c.lchmod=function(p,g,m){c.open(p,Ge.O_WRONLY|Ge.O_SYMLINK,g,function(b,x){if(b){m&&m(b);return}c.fchmod(x,g,function(P){c.close(x,function(F){m&&m(P||F)})})})},c.lchmodSync=function(p,g){var m=c.openSync(p,Ge.O_WRONLY|Ge.O_SYMLINK,g),b=!0,x;try{x=c.fchmodSync(m,g),b=!1}finally{if(b)try{c.closeSync(m)}catch{}else c.closeSync(m)}return x}}function r(c){Ge.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(p,g,m,b){c.open(p,Ge.O_SYMLINK,function(x,P){if(x){b&&b(x);return}c.futimes(P,g,m,function(F){c.close(P,function(N){b&&b(F||N)})})})},c.lutimesSync=function(p,g,m){var b=c.openSync(p,Ge.O_SYMLINK),x,P=!0;try{x=c.futimesSync(b,g,m),P=!1}finally{if(P)try{c.closeSync(b)}catch{}else c.closeSync(b)}return x}):c.futimes&&(c.lutimes=function(p,g,m,b){b&&process.nextTick(b)},c.lutimesSync=function(){})}function n(c){return c&&function(p,g,m){return c.call(t,p,g,function(b){h(b)&&(b=null),m&&m.apply(this,arguments)})}}function i(c){return c&&function(p,g){try{return c.call(t,p,g)}catch(m){if(!h(m))throw m}}}function s(c){return c&&function(p,g,m,b){return c.call(t,p,g,m,function(x){h(x)&&(x=null),b&&b.apply(this,arguments)})}}function o(c){return c&&function(p,g,m){try{return c.call(t,p,g,m)}catch(b){if(!h(b))throw b}}}function a(c){return c&&function(p,g,m){typeof g=="function"&&(m=g,g=null);function b(x,P){P&&(P.uid<0&&(P.uid+=4294967296),P.gid<0&&(P.gid+=4294967296)),m&&m.apply(this,arguments)}return g?c.call(t,p,g,b):c.call(t,p,b)}}function u(c){return c&&function(p,g){var m=g?c.call(t,p,g):c.call(t,p);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function h(c){if(!c||c.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var bu=y((lb,vu)=>{var yu=require("stream").Stream;vu.exports=ip;function ip(t){return{ReadStream:e,WriteStream:r};function e(n,i){if(!(this instanceof e))return new e(n,i);yu.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),a=0,u=o.length;a<u;a++){var h=o[a];this[h]=i[h]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(c,p){if(c){s.emit("error",c),s.readable=!1;return}s.fd=p,s.emit("open",p),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);yu.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var u=s[o];this[u]=i[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var _u=y((fb,wu)=>{"use strict";wu.exports=op;var sp=Object.getPrototypeOf||function(t){return t.__proto__};function op(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:sp(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var fe=y((db,Di)=>{var W=require("fs"),ap=gu(),up=bu(),cp=_u(),Gr=require("util"),se,Wr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(se=Symbol.for("graceful-fs.queue"),Wr=Symbol.for("graceful-fs.previous")):(se="___graceful-fs.queue",Wr="___graceful-fs.previous");function lp(){}function Eu(t,e){Object.defineProperty(t,se,{get:function(){return e}})}var ot=lp;Gr.debuglog?ot=Gr.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(ot=function(){var t=Gr.format.apply(Gr,arguments);t="GFS4: "+t.split(/\n/).join(`
9
+ GFS4: `),console.error(t)});W[se]||(xu=global[se]||[],Eu(W,xu),W.close=function(t){function e(r,n){return t.call(W,r,function(i){i||Su(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Wr,{value:t}),e}(W.close),W.closeSync=function(t){function e(r){t.apply(W,arguments),Su()}return Object.defineProperty(e,Wr,{value:t}),e}(W.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){ot(W[se]),require("assert").equal(W[se].length,0)}));var xu;global[se]||Eu(global,W[se]);Di.exports=Ci(cp(W));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!W.__patched&&(Di.exports=Ci(W),W.__patched=!0);function Ci(t){ap(t),t.gracefulify=Ci,t.createReadStream=Y,t.createWriteStream=ve;var e=t.readFile;t.readFile=r;function r(D,q,k){return typeof q=="function"&&(k=q,q=null),H(D,q,k);function H(I,$,O,L){return e(I,$,function(M){M&&(M.code==="EMFILE"||M.code==="ENFILE")?Et([H,[I,$,O],M,L||Date.now(),Date.now()]):typeof O=="function"&&O.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=i;function i(D,q,k,H){return typeof k=="function"&&(H=k,k=null),I(D,q,k,H);function I($,O,L,M,C){return n($,O,L,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Et([I,[$,O,L,M],A,C||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(D,q,k,H){return typeof k=="function"&&(H=k,k=null),I(D,q,k,H);function I($,O,L,M,C){return s($,O,L,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Et([I,[$,O,L,M],A,C||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=u);function u(D,q,k,H){return typeof k=="function"&&(H=k,k=0),I(D,q,k,H);function I($,O,L,M,C){return a($,O,L,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Et([I,[$,O,L,M],A,C||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var h=t.readdir;t.readdir=p;var c=/^v[0-5]\./;function p(D,q,k){typeof q=="function"&&(k=q,q=null);var H=c.test(process.version)?function(O,L,M,C){return h(O,I(O,L,M,C))}:function(O,L,M,C){return h(O,L,I(O,L,M,C))};return H(D,q,k);function I($,O,L,M){return function(C,A){C&&(C.code==="EMFILE"||C.code==="ENFILE")?Et([H,[$,O,L],C,M||Date.now(),Date.now()]):(A&&A.sort&&A.sort(),typeof L=="function"&&L.call(this,C,A))}}}if(process.version.substr(0,4)==="v0.8"){var g=up(t);F=g.ReadStream,B=g.WriteStream}var m=t.ReadStream;m&&(F.prototype=Object.create(m.prototype),F.prototype.open=N);var b=t.WriteStream;b&&(B.prototype=Object.create(b.prototype),B.prototype.open=X),Object.defineProperty(t,"ReadStream",{get:function(){return F},set:function(D){F=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return B},set:function(D){B=D},enumerable:!0,configurable:!0});var x=F;Object.defineProperty(t,"FileReadStream",{get:function(){return x},set:function(D){x=D},enumerable:!0,configurable:!0});var P=B;Object.defineProperty(t,"FileWriteStream",{get:function(){return P},set:function(D){P=D},enumerable:!0,configurable:!0});function F(D,q){return this instanceof F?(m.apply(this,arguments),this):F.apply(Object.create(F.prototype),arguments)}function N(){var D=this;Q(D.path,D.flags,D.mode,function(q,k){q?(D.autoClose&&D.destroy(),D.emit("error",q)):(D.fd=k,D.emit("open",k),D.read())})}function B(D,q){return this instanceof B?(b.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function X(){var D=this;Q(D.path,D.flags,D.mode,function(q,k){q?(D.destroy(),D.emit("error",q)):(D.fd=k,D.emit("open",k))})}function Y(D,q){return new t.ReadStream(D,q)}function ve(D,q){return new t.WriteStream(D,q)}var Ie=t.open;t.open=Q;function Q(D,q,k,H){return typeof k=="function"&&(H=k,k=null),I(D,q,k,H);function I($,O,L,M,C){return Ie($,O,L,function(A,ke){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Et([I,[$,O,L,M],A,C||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}return t}function Et(t){ot("ENQUEUE",t[0].name,t[1]),W[se].push(t),Pi()}var zr;function Su(){for(var t=Date.now(),e=0;e<W[se].length;++e)W[se][e].length>2&&(W[se][e][3]=t,W[se][e][4]=t);Pi()}function Pi(){if(clearTimeout(zr),zr=void 0,W[se].length!==0){var t=W[se].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)ot("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){ot("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,u=Math.max(s-i,1),h=Math.min(u*1.2,100);a>=h?(ot("RETRY",e.name,r),e.apply(null,r.concat([i]))):W[se].push(t)}zr===void 0&&(zr=setTimeout(Pi,0))}}});var Wt=y(ze=>{"use strict";var Cu=_e().fromCallback,me=fe(),fp=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof me[t]=="function");Object.keys(me).forEach(t=>{t!=="promises"&&(ze[t]=me[t])});fp.forEach(t=>{ze[t]=Cu(me[t])});ze.exists=function(t,e){return typeof e=="function"?me.exists(t,e):new Promise(r=>me.exists(t,r))};ze.read=function(t,e,r,n,i,s){return typeof s=="function"?me.read(t,e,r,n,i,s):new Promise((o,a)=>{me.read(t,e,r,n,i,(u,h,c)=>{if(u)return a(u);o({bytesRead:h,buffer:c})})})};ze.write=function(t,e,...r){return typeof r[r.length-1]=="function"?me.write(t,e,...r):new Promise((n,i)=>{me.write(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof me.writev=="function"&&(ze.writev=function(t,e,...r){return typeof r[r.length-1]=="function"?me.writev(t,e,...r):new Promise((n,i)=>{me.writev(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffers:a})})})});typeof me.realpath.native=="function"&&(ze.realpath.native=Cu(me.realpath.native))});var Oi=y((pb,Pu)=>{Pu.exports=t=>{let e=process.versions.node.split(".").map(r=>parseInt(r,10));return t=t.split(".").map(r=>parseInt(r,10)),e[0]>t[0]||e[0]===t[0]&&(e[1]>t[1]||e[1]===t[1]&&e[2]>=t[2])}});var Au=y((mb,Ii)=>{"use strict";var Ct=Wt(),Be=require("path"),dp=Oi(),Du=dp("10.12.0"),Ou=t=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(Be.parse(t).root,""))){let r=new Error(`Path contains invalid characters: ${t}`);throw r.code="EINVAL",r}},Iu=t=>{let e={mode:511};return typeof t=="number"&&(t={mode:t}),{...e,...t}},Fu=t=>{let e=new Error(`operation not permitted, mkdir '${t}'`);return e.code="EPERM",e.errno=-4048,e.path=t,e.syscall="mkdir",e};Ii.exports.makeDir=async(t,e)=>{if(Ou(t),e=Iu(e),Du){let n=Be.resolve(t);return Ct.mkdir(n,{mode:e.mode,recursive:!0})}let r=async n=>{try{await Ct.mkdir(n,e.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Be.dirname(n)===n)throw Fu(n);if(i.message.includes("null bytes"))throw i;return await r(Be.dirname(n)),r(n)}try{if(!(await Ct.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Be.resolve(t))};Ii.exports.makeDirSync=(t,e)=>{if(Ou(t),e=Iu(e),Du){let n=Be.resolve(t);return Ct.mkdirSync(n,{mode:e.mode,recursive:!0})}let r=n=>{try{Ct.mkdirSync(n,e.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Be.dirname(n)===n)throw Fu(n);if(i.message.includes("null bytes"))throw i;return r(Be.dirname(n)),r(n)}try{if(!Ct.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Be.resolve(t))}});var Ne=y((gb,Ru)=>{"use strict";var hp=_e().fromPromise,{makeDir:pp,makeDirSync:Fi}=Au(),Ai=hp(pp);Ru.exports={mkdirs:Ai,mkdirsSync:Fi,mkdirp:Ai,mkdirpSync:Fi,ensureDir:Ai,ensureDirSync:Fi}});var Ri=y((yb,ku)=>{"use strict";var Pt=fe();function mp(t,e,r,n){Pt.open(t,"r+",(i,s)=>{if(i)return n(i);Pt.futimes(s,e,r,o=>{Pt.close(s,a=>{n&&n(o||a)})})})}function gp(t,e,r){let n=Pt.openSync(t,"r+");return Pt.futimesSync(n,e,r),Pt.closeSync(n)}ku.exports={utimesMillis:mp,utimesMillisSync:gp}});var Jt=y((vb,Nu)=>{"use strict";var Dt=Wt(),xe=require("path"),yp=require("util"),vp=Oi(),Jr=vp("10.5.0"),Mu=t=>Jr?Dt.stat(t,{bigint:!0}):Dt.stat(t),ki=t=>Jr?Dt.statSync(t,{bigint:!0}):Dt.statSync(t);function bp(t,e){return Promise.all([Mu(t),Mu(e).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function wp(t,e){let r,n=ki(t);try{r=ki(e)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function _p(t,e,r,n){yp.callbackify(bp)(t,e,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;return a&&Vr(o,a)?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&Mi(t,e)?n(new Error(Yr(t,e,r))):n(null,{srcStat:o,destStat:a})})}function xp(t,e,r){let{srcStat:n,destStat:i}=wp(t,e);if(i&&Vr(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&Mi(t,e))throw new Error(Yr(t,e,r));return{srcStat:n,destStat:i}}function qu(t,e,r,n,i){let s=xe.resolve(xe.dirname(t)),o=xe.resolve(xe.dirname(r));if(o===s||o===xe.parse(o).root)return i();let a=(u,h)=>u?u.code==="ENOENT"?i():i(u):Vr(e,h)?i(new Error(Yr(t,r,n))):qu(t,e,o,n,i);Jr?Dt.stat(o,{bigint:!0},a):Dt.stat(o,a)}function Tu(t,e,r,n){let i=xe.resolve(xe.dirname(t)),s=xe.resolve(xe.dirname(r));if(s===i||s===xe.parse(s).root)return;let o;try{o=ki(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(Vr(e,o))throw new Error(Yr(t,r,n));return Tu(t,e,s,n)}function Vr(t,e){return!!(e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev&&(Jr||e.ino<Number.MAX_SAFE_INTEGER||e.size===t.size&&e.mode===t.mode&&e.nlink===t.nlink&&e.atimeMs===t.atimeMs&&e.mtimeMs===t.mtimeMs&&e.ctimeMs===t.ctimeMs&&e.birthtimeMs===t.birthtimeMs))}function Mi(t,e){let r=xe.resolve(t).split(xe.sep).filter(i=>i),n=xe.resolve(e).split(xe.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function Yr(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}Nu.exports={checkPaths:_p,checkPathsSync:xp,checkParentPaths:qu,checkParentPathsSync:Tu,isSrcSubdir:Mi}});var Uu=y((bb,Bu)=>{"use strict";var de=fe(),Vt=require("path"),Sp=Ne().mkdirsSync,Ep=Ri().utimesMillisSync,Yt=Jt();function Cp(t,e,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
10
10
 
11
- see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=Yt.checkPathsSync(t,e,"copy");return Yt.checkParentPathsSync(t,n,e,"copy"),Op(i,t,e,r)}function Op(t,e,r,n){if(n.filter&&!n.filter(e,r))return;let i=Vt.dirname(r);return fe.existsSync(i)||Cp(i),Lu(t,e,r,n)}function Lu(t,e,r,n){if(!(n.filter&&!n.filter(e,r)))return Ip(t,e,r,n)}function Ip(t,e,r,n){let s=(n.dereference?fe.statSync:fe.lstatSync)(e);if(s.isDirectory())return Tp(s,t,e,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return Fp(s,t,e,r,n);if(s.isSymbolicLink())return Lp(t,e,r,n)}function Fp(t,e,r,n,i){return e?Ap(t,r,n,i):$u(t,r,n,i)}function Ap(t,e,r,n){if(n.overwrite)return fe.unlinkSync(r),$u(t,e,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function $u(t,e,r,n){return fe.copyFileSync(e,r),n.preserveTimestamps&&Rp(t.mode,e,r),qi(r,t.mode)}function Rp(t,e,r){return kp(t)&&Mp(r,t),qp(e,r)}function kp(t){return(t&128)===0}function Mp(t,e){return qi(t,e|128)}function qi(t,e){return fe.chmodSync(t,e)}function qp(t,e){let r=fe.statSync(t);return Pp(e,r.atime,r.mtime)}function Tp(t,e,r,n,i){if(!e)return Np(t.mode,r,n,i);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return Bu(r,n,i)}function Np(t,e,r,n){return fe.mkdirSync(r),Bu(e,r,n),qi(r,t)}function Bu(t,e,r){fe.readdirSync(t).forEach(n=>jp(n,t,e,r))}function jp(t,e,r,n){let i=Vt.join(e,t),s=Vt.join(r,t),{destStat:o}=Yt.checkPathsSync(i,s,"copy");return Lu(o,i,s,n)}function Lp(t,e,r,n){let i=fe.readlinkSync(e);if(n.dereference&&(i=Vt.resolve(process.cwd(),i)),t){let s;try{s=fe.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return fe.symlinkSync(i,r);throw o}if(n.dereference&&(s=Vt.resolve(process.cwd(),s)),Yt.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(fe.statSync(r).isDirectory()&&Yt.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return $p(i,r)}else return fe.symlinkSync(i,r)}function $p(t,e){return fe.unlinkSync(e),fe.symlinkSync(t,e)}Uu.exports=Dp});var Ti=y((xb,Hu)=>{"use strict";Hu.exports={copySync:Xu()}});var ze=y((Sb,zu)=>{"use strict";var Bp=be().fromPromise,Gu=Wt();function Up(t){return Gu.access(t).then(()=>!0).catch(()=>!1)}zu.exports={pathExists:Bp(Up),pathExistsSync:Gu.existsSync}});var tc=y((Eb,ec)=>{"use strict";var _e=le(),Kt=require("path"),Xp=Ne().mkdirs,Hp=ze().pathExists,Gp=Ri().utimesMillis,Qt=Jt();function zp(t,e,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
11
+ see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=Yt.checkPathsSync(t,e,"copy");return Yt.checkParentPathsSync(t,n,e,"copy"),Pp(i,t,e,r)}function Pp(t,e,r,n){if(n.filter&&!n.filter(e,r))return;let i=Vt.dirname(r);return de.existsSync(i)||Sp(i),ju(t,e,r,n)}function ju(t,e,r,n){if(!(n.filter&&!n.filter(e,r)))return Dp(t,e,r,n)}function Dp(t,e,r,n){let s=(n.dereference?de.statSync:de.lstatSync)(e);if(s.isDirectory())return Mp(s,t,e,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return Op(s,t,e,r,n);if(s.isSymbolicLink())return Np(t,e,r,n)}function Op(t,e,r,n,i){return e?Ip(t,r,n,i):Lu(t,r,n,i)}function Ip(t,e,r,n){if(n.overwrite)return de.unlinkSync(r),Lu(t,e,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function Lu(t,e,r,n){return de.copyFileSync(e,r),n.preserveTimestamps&&Fp(t.mode,e,r),qi(r,t.mode)}function Fp(t,e,r){return Ap(t)&&Rp(r,t),kp(e,r)}function Ap(t){return(t&128)===0}function Rp(t,e){return qi(t,e|128)}function qi(t,e){return de.chmodSync(t,e)}function kp(t,e){let r=de.statSync(t);return Ep(e,r.atime,r.mtime)}function Mp(t,e,r,n,i){if(!e)return qp(t.mode,r,n,i);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return $u(r,n,i)}function qp(t,e,r,n){return de.mkdirSync(r),$u(e,r,n),qi(r,t)}function $u(t,e,r){de.readdirSync(t).forEach(n=>Tp(n,t,e,r))}function Tp(t,e,r,n){let i=Vt.join(e,t),s=Vt.join(r,t),{destStat:o}=Yt.checkPathsSync(i,s,"copy");return ju(o,i,s,n)}function Np(t,e,r,n){let i=de.readlinkSync(e);if(n.dereference&&(i=Vt.resolve(process.cwd(),i)),t){let s;try{s=de.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return de.symlinkSync(i,r);throw o}if(n.dereference&&(s=Vt.resolve(process.cwd(),s)),Yt.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(de.statSync(r).isDirectory()&&Yt.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return jp(i,r)}else return de.symlinkSync(i,r)}function jp(t,e){return de.unlinkSync(e),de.symlinkSync(t,e)}Bu.exports=Cp});var Ti=y((wb,Xu)=>{"use strict";Xu.exports={copySync:Uu()}});var We=y((_b,Gu)=>{"use strict";var Lp=_e().fromPromise,Hu=Wt();function $p(t){return Hu.access(t).then(()=>!0).catch(()=>!1)}Gu.exports={pathExists:Lp($p),pathExistsSync:Hu.existsSync}});var ec=y((xb,Zu)=>{"use strict";var Se=fe(),Kt=require("path"),Bp=Ne().mkdirs,Up=We().pathExists,Xp=Ri().utimesMillis,Qt=Jt();function Hp(t,e,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
12
12
 
13
- see https://github.com/jprichardson/node-fs-extra/issues/269`),Qt.checkPaths(t,e,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;Qt.checkParentPaths(t,o,e,"copy",u=>u?n(u):r.filter?Yu(Wu,a,t,e,r,n):Wu(a,t,e,r,n))})}function Wu(t,e,r,n,i){let s=Kt.dirname(r);Hp(s,(o,a)=>{if(o)return i(o);if(a)return Ni(t,e,r,n,i);Xp(s,u=>u?i(u):Ni(t,e,r,n,i))})}function Yu(t,e,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?t(e,r,n,i,s):s(),o=>s(o))}function Ni(t,e,r,n,i){return n.filter?Yu(Ju,t,e,r,n,i):Ju(t,e,r,n,i)}function Ju(t,e,r,n,i){(n.dereference?_e.stat:_e.lstat)(e,(o,a)=>{if(o)return i(o);if(a.isDirectory())return Zp(a,t,e,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return Wp(a,t,e,r,n,i);if(a.isSymbolicLink())return rm(t,e,r,n,i)})}function Wp(t,e,r,n,i,s){return e?Jp(t,r,n,i,s):Ku(t,r,n,i,s)}function Jp(t,e,r,n,i){if(n.overwrite)_e.unlink(r,s=>s?i(s):Ku(t,e,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function Ku(t,e,r,n,i){_e.copyFile(e,r,s=>s?i(s):n.preserveTimestamps?Vp(t.mode,e,r,i):Kr(r,t.mode,i))}function Vp(t,e,r,n){return Yp(t)?Kp(r,t,i=>i?n(i):Vu(t,e,r,n)):Vu(t,e,r,n)}function Yp(t){return(t&128)===0}function Kp(t,e,r){return Kr(t,e|128,r)}function Vu(t,e,r,n){Qp(e,r,i=>i?n(i):Kr(r,t,n))}function Kr(t,e,r){return _e.chmod(t,e,r)}function Qp(t,e,r){_e.stat(t,(n,i)=>n?r(n):Gp(e,i.atime,i.mtime,r))}function Zp(t,e,r,n,i,s){return e?e&&!e.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):Qu(r,n,i,s):em(t.mode,r,n,i,s)}function em(t,e,r,n,i){_e.mkdir(r,s=>{if(s)return i(s);Qu(e,r,n,o=>o?i(o):Kr(r,t,i))})}function Qu(t,e,r,n){_e.readdir(t,(i,s)=>i?n(i):Zu(s,t,e,r,n))}function Zu(t,e,r,n,i){let s=t.pop();return s?tm(t,s,e,r,n,i):i()}function tm(t,e,r,n,i,s){let o=Kt.join(r,e),a=Kt.join(n,e);Qt.checkPaths(o,a,"copy",(u,h)=>{if(u)return s(u);let{destStat:c}=h;Ni(c,o,a,i,p=>p?s(p):Zu(t,r,n,i,s))})}function rm(t,e,r,n,i){_e.readlink(e,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=Kt.resolve(process.cwd(),o)),t)_e.readlink(r,(a,u)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?_e.symlink(o,r,i):i(a):(n.dereference&&(u=Kt.resolve(process.cwd(),u)),Qt.isSrcSubdir(o,u)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${u}'.`)):t.isDirectory()&&Qt.isSrcSubdir(u,o)?i(new Error(`Cannot overwrite '${u}' with '${o}'.`)):nm(o,r,i)));else return _e.symlink(o,r,i)})}function nm(t,e,r){_e.unlink(e,n=>n?r(n):_e.symlink(t,e,r))}ec.exports=zp});var ji=y((Cb,rc)=>{"use strict";var im=be().fromCallback;rc.exports={copy:im(tc())}});var fc=y((Pb,lc)=>{"use strict";var nc=le(),ac=require("path"),H=require("assert"),Zt=process.platform==="win32";function uc(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||nc[r],r=r+"Sync",t[r]=t[r]||nc[r]}),t.maxBusyTries=t.maxBusyTries||3}function Li(t,e,r){let n=0;typeof e=="function"&&(r=e,e={}),H(t,"rimraf: missing path"),H.strictEqual(typeof t,"string","rimraf: path should be a string"),H.strictEqual(typeof r,"function","rimraf: callback function required"),H(e,"rimraf: invalid options argument provided"),H.strictEqual(typeof e,"object","rimraf: options should be object"),uc(e),ic(t,e,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<e.maxBusyTries){n++;let o=n*100;return setTimeout(()=>ic(t,e,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function ic(t,e,r){H(t),H(e),H(typeof r=="function"),e.lstat(t,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&Zt)return sc(t,e,n,r);if(i&&i.isDirectory())return Qr(t,e,n,r);e.unlink(t,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return Zt?sc(t,e,s,r):Qr(t,e,s,r);if(s.code==="EISDIR")return Qr(t,e,s,r)}return r(s)})})}function sc(t,e,r,n){H(t),H(e),H(typeof n=="function"),e.chmod(t,438,i=>{i?n(i.code==="ENOENT"?null:r):e.stat(t,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?Qr(t,e,r,n):e.unlink(t,n)})})}function oc(t,e,r){let n;H(t),H(e);try{e.chmodSync(t,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=e.statSync(t)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?Zr(t,e,r):e.unlinkSync(t)}function Qr(t,e,r,n){H(t),H(e),H(typeof n=="function"),e.rmdir(t,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?sm(t,e,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function sm(t,e,r){H(t),H(e),H(typeof r=="function"),e.readdir(t,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return e.rmdir(t,r);i.forEach(a=>{Li(ac.join(t,a),e,u=>{if(!o){if(u)return r(o=u);--s===0&&e.rmdir(t,r)}})})})}function cc(t,e){let r;e=e||{},uc(e),H(t,"rimraf: missing path"),H.strictEqual(typeof t,"string","rimraf: path should be a string"),H(e,"rimraf: missing options"),H.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&Zt&&oc(t,e,n)}try{r&&r.isDirectory()?Zr(t,e,null):e.unlinkSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return Zt?oc(t,e,n):Zr(t,e,n);if(n.code!=="EISDIR")throw n;Zr(t,e,n)}}function Zr(t,e,r){H(t),H(e);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")om(t,e);else if(n.code!=="ENOENT")throw n}}function om(t,e){if(H(t),H(e),e.readdirSync(t).forEach(r=>cc(ac.join(t,r),e)),Zt){let r=Date.now();do try{return e.rmdirSync(t,e)}catch{}while(Date.now()-r<500)}else return e.rmdirSync(t,e)}lc.exports=Li;Li.sync=cc});var er=y((Db,hc)=>{"use strict";var am=be().fromCallback,dc=fc();hc.exports={remove:am(dc),removeSync:dc.sync}});var _c=y((Ob,wc)=>{"use strict";var um=be().fromCallback,gc=le(),yc=require("path"),vc=Ne(),bc=er(),pc=um(function(e,r){r=r||function(){},gc.readdir(e,(n,i)=>{if(n)return vc.mkdirs(e,r);i=i.map(o=>yc.join(e,o)),s();function s(){let o=i.pop();if(!o)return r();bc.remove(o,a=>{if(a)return r(a);s()})}})});function mc(t){let e;try{e=gc.readdirSync(t)}catch{return vc.mkdirsSync(t)}e.forEach(r=>{r=yc.join(t,r),bc.removeSync(r)})}wc.exports={emptyDirSync:mc,emptydirSync:mc,emptyDir:pc,emptydir:pc}});var Cc=y((Ib,Ec)=>{"use strict";var cm=be().fromCallback,xc=require("path"),We=le(),Sc=Ne();function lm(t,e){function r(){We.writeFile(t,"",n=>{if(n)return e(n);e()})}We.stat(t,(n,i)=>{if(!n&&i.isFile())return e();let s=xc.dirname(t);We.stat(s,(o,a)=>{if(o)return o.code==="ENOENT"?Sc.mkdirs(s,u=>{if(u)return e(u);r()}):e(o);a.isDirectory()?r():We.readdir(s,u=>{if(u)return e(u)})})})}function fm(t){let e;try{e=We.statSync(t)}catch{}if(e&&e.isFile())return;let r=xc.dirname(t);try{We.statSync(r).isDirectory()||We.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")Sc.mkdirsSync(r);else throw n}We.writeFileSync(t,"")}Ec.exports={createFile:cm(lm),createFileSync:fm}});var Fc=y((Fb,Ic)=>{"use strict";var dm=be().fromCallback,Dc=require("path"),ot=le(),Oc=Ne(),Pc=ze().pathExists;function hm(t,e,r){function n(i,s){ot.link(i,s,o=>{if(o)return r(o);r(null)})}Pc(e,(i,s)=>{if(i)return r(i);if(s)return r(null);ot.lstat(t,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);let a=Dc.dirname(e);Pc(a,(u,h)=>{if(u)return r(u);if(h)return n(t,e);Oc.mkdirs(a,c=>{if(c)return r(c);n(t,e)})})})})}function pm(t,e){if(ot.existsSync(e))return;try{ot.lstatSync(t)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=Dc.dirname(e);return ot.existsSync(n)||Oc.mkdirsSync(n),ot.linkSync(t,e)}Ic.exports={createLink:dm(hm),createLinkSync:pm}});var Rc=y((Ab,Ac)=>{"use strict";var Je=require("path"),tr=le(),mm=ze().pathExists;function gm(t,e,r){if(Je.isAbsolute(t))return tr.lstat(t,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:t,toDst:t}));{let n=Je.dirname(e),i=Je.join(n,t);return mm(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:t}):tr.lstat(t,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:t,toDst:Je.relative(n,t)})))}}function ym(t,e){let r;if(Je.isAbsolute(t)){if(r=tr.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}else{let n=Je.dirname(e),i=Je.join(n,t);if(r=tr.existsSync(i),r)return{toCwd:i,toDst:t};if(r=tr.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:Je.relative(n,t)}}}Ac.exports={symlinkPaths:gm,symlinkPathsSync:ym}});var qc=y((Rb,Mc)=>{"use strict";var kc=le();function vm(t,e,r){if(r=typeof e=="function"?e:r,e=typeof e=="function"?!1:e,e)return r(null,e);kc.lstat(t,(n,i)=>{if(n)return r(null,"file");e=i&&i.isDirectory()?"dir":"file",r(null,e)})}function bm(t,e){let r;if(e)return e;try{r=kc.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Mc.exports={symlinkType:vm,symlinkTypeSync:bm}});var Uc=y((kb,Bc)=>{"use strict";var wm=be().fromCallback,Nc=require("path"),Dt=le(),jc=Ne(),_m=jc.mkdirs,xm=jc.mkdirsSync,Lc=Rc(),Sm=Lc.symlinkPaths,Em=Lc.symlinkPathsSync,$c=qc(),Cm=$c.symlinkType,Pm=$c.symlinkTypeSync,Tc=ze().pathExists;function Dm(t,e,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,Tc(e,(i,s)=>{if(i)return n(i);if(s)return n(null);Sm(t,e,(o,a)=>{if(o)return n(o);t=a.toDst,Cm(a.toCwd,r,(u,h)=>{if(u)return n(u);let c=Nc.dirname(e);Tc(c,(p,g)=>{if(p)return n(p);if(g)return Dt.symlink(t,e,h,n);_m(c,m=>{if(m)return n(m);Dt.symlink(t,e,h,n)})})})})})}function Om(t,e,r){if(Dt.existsSync(e))return;let i=Em(t,e);t=i.toDst,r=Pm(i.toCwd,r);let s=Nc.dirname(e);return Dt.existsSync(s)||xm(s),Dt.symlinkSync(t,e,r)}Bc.exports={createSymlink:wm(Dm),createSymlinkSync:Om}});var Hc=y((Mb,Xc)=>{"use strict";var en=Cc(),tn=Fc(),rn=Uc();Xc.exports={createFile:en.createFile,createFileSync:en.createFileSync,ensureFile:en.createFile,ensureFileSync:en.createFileSync,createLink:tn.createLink,createLinkSync:tn.createLinkSync,ensureLink:tn.createLink,ensureLinkSync:tn.createLinkSync,createSymlink:rn.createSymlink,createSymlinkSync:rn.createSymlinkSync,ensureSymlink:rn.createSymlink,ensureSymlinkSync:rn.createSymlinkSync}});var nn=y((qb,Gc)=>{function Im(t,{EOL:e=`
14
- `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?e:"";return JSON.stringify(t,n,i).replace(/\n/g,e)+s}function Fm(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}Gc.exports={stringify:Im,stripBom:Fm}});var Vc=y((Tb,Jc)=>{var Ot;try{Ot=le()}catch{Ot=require("fs")}var sn=be(),{stringify:zc,stripBom:Wc}=nn();async function Am(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||Ot,n="throws"in e?e.throws:!0,i=await sn.fromCallback(r.readFile)(t,e);i=Wc(i);let s;try{s=JSON.parse(i,e?e.reviver:null)}catch(o){if(n)throw o.message=`${t}: ${o.message}`,o;return null}return s}var Rm=sn.fromPromise(Am);function km(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||Ot,n="throws"in e?e.throws:!0;try{let i=r.readFileSync(t,e);return i=Wc(i),JSON.parse(i,e.reviver)}catch(i){if(n)throw i.message=`${t}: ${i.message}`,i;return null}}async function Mm(t,e,r={}){let n=r.fs||Ot,i=zc(e,r);await sn.fromCallback(n.writeFile)(t,i,r)}var qm=sn.fromPromise(Mm);function Tm(t,e,r={}){let n=r.fs||Ot,i=zc(e,r);return n.writeFileSync(t,i,r)}var Nm={readFile:Rm,readFileSync:km,writeFile:qm,writeFileSync:Tm};Jc.exports=Nm});var Kc=y((Nb,Yc)=>{"use strict";var on=Vc();Yc.exports={readJson:on.readFile,readJsonSync:on.readFileSync,writeJson:on.writeFile,writeJsonSync:on.writeFileSync}});var an=y((jb,el)=>{"use strict";var jm=be().fromCallback,rr=le(),Qc=require("path"),Zc=Ne(),Lm=ze().pathExists;function $m(t,e,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Qc.dirname(t);Lm(i,(s,o)=>{if(s)return n(s);if(o)return rr.writeFile(t,e,r,n);Zc.mkdirs(i,a=>{if(a)return n(a);rr.writeFile(t,e,r,n)})})}function Bm(t,...e){let r=Qc.dirname(t);if(rr.existsSync(r))return rr.writeFileSync(t,...e);Zc.mkdirsSync(r),rr.writeFileSync(t,...e)}el.exports={outputFile:jm($m),outputFileSync:Bm}});var rl=y((Lb,tl)=>{"use strict";var{stringify:Um}=nn(),{outputFile:Xm}=an();async function Hm(t,e,r={}){let n=Um(e,r);await Xm(t,n,r)}tl.exports=Hm});var il=y(($b,nl)=>{"use strict";var{stringify:Gm}=nn(),{outputFileSync:zm}=an();function Wm(t,e,r){let n=Gm(e,r);zm(t,n,r)}nl.exports=Wm});var ol=y((Bb,sl)=>{"use strict";var Jm=be().fromPromise,me=Kc();me.outputJson=Jm(rl());me.outputJsonSync=il();me.outputJSON=me.outputJson;me.outputJSONSync=me.outputJsonSync;me.writeJSON=me.writeJson;me.writeJSONSync=me.writeJsonSync;me.readJSON=me.readJson;me.readJSONSync=me.readJsonSync;sl.exports=me});var dl=y((Ub,fl)=>{"use strict";var cl=le(),Vm=require("path"),Ym=Ti().copySync,ll=er().removeSync,Km=Ne().mkdirpSync,al=Jt();function Qm(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=al.checkPathsSync(t,e,"move");return al.checkParentPathsSync(t,i,e,"move"),Km(Vm.dirname(e)),Zm(t,e,n)}function Zm(t,e,r){if(r)return ll(e),ul(t,e,r);if(cl.existsSync(e))throw new Error("dest already exists.");return ul(t,e,r)}function ul(t,e,r){try{cl.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return eg(t,e,r)}}function eg(t,e,r){return Ym(t,e,{overwrite:r,errorOnExist:!0}),ll(t)}fl.exports=Qm});var pl=y((Xb,hl)=>{"use strict";hl.exports={moveSync:dl()}});var bl=y((Hb,vl)=>{"use strict";var tg=le(),rg=require("path"),ng=ji().copy,yl=er().remove,ig=Ne().mkdirp,sg=ze().pathExists,ml=Jt();function og(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;ml.checkPaths(t,e,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;ml.checkParentPaths(t,a,e,"move",u=>{if(u)return n(u);ig(rg.dirname(e),h=>h?n(h):ag(t,e,i,n))})})}function ag(t,e,r,n){if(r)return yl(e,i=>i?n(i):gl(t,e,r,n));sg(e,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):gl(t,e,r,n))}function gl(t,e,r,n){tg.rename(t,e,i=>i?i.code!=="EXDEV"?n(i):ug(t,e,r,n):n())}function ug(t,e,r,n){ng(t,e,{overwrite:r,errorOnExist:!0},s=>s?n(s):yl(t,n))}vl.exports=og});var _l=y((Gb,wl)=>{"use strict";var cg=be().fromCallback;wl.exports={move:cg(bl())}});var nr=y((zb,$i)=>{"use strict";$i.exports={...Wt(),...Ti(),...ji(),..._c(),...Hc(),...ol(),...Ne(),...pl(),..._l(),...an(),...ze(),...er()};var xl=require("fs");Object.getOwnPropertyDescriptor(xl,"promises")&&Object.defineProperty($i.exports,"promises",{get(){return xl.promises}})});var Al=y((Jb,Fl)=>{"use strict";Fl.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 Xi=y((Vb,kl)=>{var ir=Al(),Rl={};for(let t of Object.keys(ir))Rl[ir[t]]=t;var P={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"]}};kl.exports=P;for(let t of Object.keys(P)){if(!("channels"in P[t]))throw new Error("missing channels property: "+t);if(!("labels"in P[t]))throw new Error("missing channel labels property: "+t);if(P[t].labels.length!==P[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=P[t];delete P[t].channels,delete P[t].labels,Object.defineProperty(P[t],"channels",{value:e}),Object.defineProperty(P[t],"labels",{value:r})}P.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,u;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let h=(i+s)/2;return s===i?u=0:h<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,h*100]};P.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,h=Math.max(o,a,u),c=h-Math.min(o,a,u),p=function(g){return(h-g)/6/c+1/2};return c===0?(i=0,s=0):(s=c/h,e=p(o),r=p(a),n=p(u),o===h?i=n-r:a===h?i=1/3+e-n:u===h&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,h*100]};P.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=P.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};P.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function fg(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}P.rgb.keyword=function(t){let e=Rl[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(ir)){let s=ir[i],o=fg(t,s);o<r&&(r=o,n=i)}return n};P.keyword.rgb=function(t){return ir[t]};P.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};P.rgb.lab=function(t){let e=P.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};P.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,u=[0,0,0];for(let h=0;h<3;h++)s=e+1/3*-(h-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,u[h]=o*255;return u};P.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[e,a*100,o*100]};P.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};P.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};P.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,o&1&&(s=1-s);let u=r+s*(a-r),h,c,p;switch(o){default:case 6:case 0:h=a,c=u,p=r;break;case 1:h=u,c=a,p=r;break;case 2:h=r,c=a,p=u;break;case 3:h=r,c=u,p=a;break;case 4:h=u,c=r,p=a;break;case 5:h=a,c=r,p=u;break}return[h*255,c*255,p*255]};P.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};P.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};P.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(e-r),o=200*(r-n);return[i,s,o]};P.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let a=s**3,u=i**3,h=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=h>.008856?h:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};P.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};P.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};P.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?P.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};P.hsv.ansi16=function(t){return P.rgb.ansi16(P.hsv.rgb(t),t[2])};P.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};P.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};P.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};P.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};P.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};P.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===e?u=(r-n)/o%6:i===r?u=2+(n-e)/o:u=4+(e-r)/o,u/=6,u%=1,[u*360,o*100,a*100]};P.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};P.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};P.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};P.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};P.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};P.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};P.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};P.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};P.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};P.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};P.gray.hsl=function(t){return[0,0,t[0]]};P.gray.hsv=P.gray.hsl;P.gray.hwb=function(t){return[0,100,t[0]]};P.gray.cmyk=function(t){return[0,0,0,t[0]]};P.gray.lab=function(t){return[t[0],0,0]};P.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};P.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var ql=y((Yb,Ml)=>{var cn=Xi();function dg(){let t={},e=Object.keys(cn);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function hg(t){let e=dg(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(cn[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}}return e}function pg(t,e){return function(r){return e(t(r))}}function mg(t,e){let r=[e[t].parent,t],n=cn[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=pg(cn[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}Ml.exports=function(t){let e=hg(t),r={},n=Object.keys(e);for(let i=n.length,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=mg(o,e))}return r}});var Nl=y((Kb,Tl)=>{var Hi=Xi(),gg=ql(),It={},yg=Object.keys(Hi);function vg(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function bg(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}yg.forEach(t=>{It[t]={},Object.defineProperty(It[t],"channels",{value:Hi[t].channels}),Object.defineProperty(It[t],"labels",{value:Hi[t].labels});let e=gg(t);Object.keys(e).forEach(n=>{let i=e[n];It[t][n]=bg(i),It[t][n].raw=vg(i)})});Tl.exports=It});var Xl=y((Qb,Ul)=>{"use strict";var jl=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,Ll=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},$l=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},ln=t=>t,Bl=(t,e,r)=>[t,e,r],Ft=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},Gi,At=(t,e,r,n)=>{Gi===void 0&&(Gi=Nl());let i=n?10:0,s={};for(let[o,a]of Object.entries(Gi)){let u=o==="ansi16"?"ansi":o;o===e?s[u]=t(r,i):typeof a=="object"&&(s[u]=t(a[e],i))}return s};function wg(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",Ft(e.color,"ansi",()=>At(jl,"ansi16",ln,!1)),Ft(e.color,"ansi256",()=>At(Ll,"ansi256",ln,!1)),Ft(e.color,"ansi16m",()=>At($l,"rgb",Bl,!1)),Ft(e.bgColor,"ansi",()=>At(jl,"ansi16",ln,!0)),Ft(e.bgColor,"ansi256",()=>At(Ll,"ansi256",ln,!0)),Ft(e.bgColor,"ansi16m",()=>At($l,"rgb",Bl,!0)),e}Object.defineProperty(Ul,"exports",{enumerable:!0,get:wg})});var Gl=y((Zb,Hl)=>{"use strict";var _g=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},xg=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
13
+ see https://github.com/jprichardson/node-fs-extra/issues/269`),Qt.checkPaths(t,e,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;Qt.checkParentPaths(t,o,e,"copy",u=>u?n(u):r.filter?Vu(zu,a,t,e,r,n):zu(a,t,e,r,n))})}function zu(t,e,r,n,i){let s=Kt.dirname(r);Up(s,(o,a)=>{if(o)return i(o);if(a)return Ni(t,e,r,n,i);Bp(s,u=>u?i(u):Ni(t,e,r,n,i))})}function Vu(t,e,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?t(e,r,n,i,s):s(),o=>s(o))}function Ni(t,e,r,n,i){return n.filter?Vu(Wu,t,e,r,n,i):Wu(t,e,r,n,i)}function Wu(t,e,r,n,i){(n.dereference?Se.stat:Se.lstat)(e,(o,a)=>{if(o)return i(o);if(a.isDirectory())return Kp(a,t,e,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return Gp(a,t,e,r,n,i);if(a.isSymbolicLink())return em(t,e,r,n,i)})}function Gp(t,e,r,n,i,s){return e?zp(t,r,n,i,s):Yu(t,r,n,i,s)}function zp(t,e,r,n,i){if(n.overwrite)Se.unlink(r,s=>s?i(s):Yu(t,e,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function Yu(t,e,r,n,i){Se.copyFile(e,r,s=>s?i(s):n.preserveTimestamps?Wp(t.mode,e,r,i):Kr(r,t.mode,i))}function Wp(t,e,r,n){return Jp(t)?Vp(r,t,i=>i?n(i):Ju(t,e,r,n)):Ju(t,e,r,n)}function Jp(t){return(t&128)===0}function Vp(t,e,r){return Kr(t,e|128,r)}function Ju(t,e,r,n){Yp(e,r,i=>i?n(i):Kr(r,t,n))}function Kr(t,e,r){return Se.chmod(t,e,r)}function Yp(t,e,r){Se.stat(t,(n,i)=>n?r(n):Xp(e,i.atime,i.mtime,r))}function Kp(t,e,r,n,i,s){return e?e&&!e.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):Ku(r,n,i,s):Qp(t.mode,r,n,i,s)}function Qp(t,e,r,n,i){Se.mkdir(r,s=>{if(s)return i(s);Ku(e,r,n,o=>o?i(o):Kr(r,t,i))})}function Ku(t,e,r,n){Se.readdir(t,(i,s)=>i?n(i):Qu(s,t,e,r,n))}function Qu(t,e,r,n,i){let s=t.pop();return s?Zp(t,s,e,r,n,i):i()}function Zp(t,e,r,n,i,s){let o=Kt.join(r,e),a=Kt.join(n,e);Qt.checkPaths(o,a,"copy",(u,h)=>{if(u)return s(u);let{destStat:c}=h;Ni(c,o,a,i,p=>p?s(p):Qu(t,r,n,i,s))})}function em(t,e,r,n,i){Se.readlink(e,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=Kt.resolve(process.cwd(),o)),t)Se.readlink(r,(a,u)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?Se.symlink(o,r,i):i(a):(n.dereference&&(u=Kt.resolve(process.cwd(),u)),Qt.isSrcSubdir(o,u)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${u}'.`)):t.isDirectory()&&Qt.isSrcSubdir(u,o)?i(new Error(`Cannot overwrite '${u}' with '${o}'.`)):tm(o,r,i)));else return Se.symlink(o,r,i)})}function tm(t,e,r){Se.unlink(e,n=>n?r(n):Se.symlink(t,e,r))}Zu.exports=Hp});var ji=y((Sb,tc)=>{"use strict";var rm=_e().fromCallback;tc.exports={copy:rm(ec())}});var lc=y((Eb,cc)=>{"use strict";var rc=fe(),oc=require("path"),U=require("assert"),Zt=process.platform==="win32";function ac(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||rc[r],r=r+"Sync",t[r]=t[r]||rc[r]}),t.maxBusyTries=t.maxBusyTries||3}function Li(t,e,r){let n=0;typeof e=="function"&&(r=e,e={}),U(t,"rimraf: missing path"),U.strictEqual(typeof t,"string","rimraf: path should be a string"),U.strictEqual(typeof r,"function","rimraf: callback function required"),U(e,"rimraf: invalid options argument provided"),U.strictEqual(typeof e,"object","rimraf: options should be object"),ac(e),nc(t,e,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<e.maxBusyTries){n++;let o=n*100;return setTimeout(()=>nc(t,e,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function nc(t,e,r){U(t),U(e),U(typeof r=="function"),e.lstat(t,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&Zt)return ic(t,e,n,r);if(i&&i.isDirectory())return Qr(t,e,n,r);e.unlink(t,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return Zt?ic(t,e,s,r):Qr(t,e,s,r);if(s.code==="EISDIR")return Qr(t,e,s,r)}return r(s)})})}function ic(t,e,r,n){U(t),U(e),U(typeof n=="function"),e.chmod(t,438,i=>{i?n(i.code==="ENOENT"?null:r):e.stat(t,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?Qr(t,e,r,n):e.unlink(t,n)})})}function sc(t,e,r){let n;U(t),U(e);try{e.chmodSync(t,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=e.statSync(t)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?Zr(t,e,r):e.unlinkSync(t)}function Qr(t,e,r,n){U(t),U(e),U(typeof n=="function"),e.rmdir(t,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?nm(t,e,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function nm(t,e,r){U(t),U(e),U(typeof r=="function"),e.readdir(t,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return e.rmdir(t,r);i.forEach(a=>{Li(oc.join(t,a),e,u=>{if(!o){if(u)return r(o=u);--s===0&&e.rmdir(t,r)}})})})}function uc(t,e){let r;e=e||{},ac(e),U(t,"rimraf: missing path"),U.strictEqual(typeof t,"string","rimraf: path should be a string"),U(e,"rimraf: missing options"),U.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&Zt&&sc(t,e,n)}try{r&&r.isDirectory()?Zr(t,e,null):e.unlinkSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return Zt?sc(t,e,n):Zr(t,e,n);if(n.code!=="EISDIR")throw n;Zr(t,e,n)}}function Zr(t,e,r){U(t),U(e);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")im(t,e);else if(n.code!=="ENOENT")throw n}}function im(t,e){if(U(t),U(e),e.readdirSync(t).forEach(r=>uc(oc.join(t,r),e)),Zt){let r=Date.now();do try{return e.rmdirSync(t,e)}catch{}while(Date.now()-r<500)}else return e.rmdirSync(t,e)}cc.exports=Li;Li.sync=uc});var er=y((Cb,dc)=>{"use strict";var sm=_e().fromCallback,fc=lc();dc.exports={remove:sm(fc),removeSync:fc.sync}});var wc=y((Pb,bc)=>{"use strict";var om=_e().fromCallback,mc=fe(),gc=require("path"),yc=Ne(),vc=er(),hc=om(function(e,r){r=r||function(){},mc.readdir(e,(n,i)=>{if(n)return yc.mkdirs(e,r);i=i.map(o=>gc.join(e,o)),s();function s(){let o=i.pop();if(!o)return r();vc.remove(o,a=>{if(a)return r(a);s()})}})});function pc(t){let e;try{e=mc.readdirSync(t)}catch{return yc.mkdirsSync(t)}e.forEach(r=>{r=gc.join(t,r),vc.removeSync(r)})}bc.exports={emptyDirSync:pc,emptydirSync:pc,emptyDir:hc,emptydir:hc}});var Ec=y((Db,Sc)=>{"use strict";var am=_e().fromCallback,_c=require("path"),Je=fe(),xc=Ne();function um(t,e){function r(){Je.writeFile(t,"",n=>{if(n)return e(n);e()})}Je.stat(t,(n,i)=>{if(!n&&i.isFile())return e();let s=_c.dirname(t);Je.stat(s,(o,a)=>{if(o)return o.code==="ENOENT"?xc.mkdirs(s,u=>{if(u)return e(u);r()}):e(o);a.isDirectory()?r():Je.readdir(s,u=>{if(u)return e(u)})})})}function cm(t){let e;try{e=Je.statSync(t)}catch{}if(e&&e.isFile())return;let r=_c.dirname(t);try{Je.statSync(r).isDirectory()||Je.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")xc.mkdirsSync(r);else throw n}Je.writeFileSync(t,"")}Sc.exports={createFile:am(um),createFileSync:cm}});var Ic=y((Ob,Oc)=>{"use strict";var lm=_e().fromCallback,Pc=require("path"),at=fe(),Dc=Ne(),Cc=We().pathExists;function fm(t,e,r){function n(i,s){at.link(i,s,o=>{if(o)return r(o);r(null)})}Cc(e,(i,s)=>{if(i)return r(i);if(s)return r(null);at.lstat(t,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);let a=Pc.dirname(e);Cc(a,(u,h)=>{if(u)return r(u);if(h)return n(t,e);Dc.mkdirs(a,c=>{if(c)return r(c);n(t,e)})})})})}function dm(t,e){if(at.existsSync(e))return;try{at.lstatSync(t)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=Pc.dirname(e);return at.existsSync(n)||Dc.mkdirsSync(n),at.linkSync(t,e)}Oc.exports={createLink:lm(fm),createLinkSync:dm}});var Ac=y((Ib,Fc)=>{"use strict";var Ve=require("path"),tr=fe(),hm=We().pathExists;function pm(t,e,r){if(Ve.isAbsolute(t))return tr.lstat(t,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:t,toDst:t}));{let n=Ve.dirname(e),i=Ve.join(n,t);return hm(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:t}):tr.lstat(t,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:t,toDst:Ve.relative(n,t)})))}}function mm(t,e){let r;if(Ve.isAbsolute(t)){if(r=tr.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}else{let n=Ve.dirname(e),i=Ve.join(n,t);if(r=tr.existsSync(i),r)return{toCwd:i,toDst:t};if(r=tr.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:Ve.relative(n,t)}}}Fc.exports={symlinkPaths:pm,symlinkPathsSync:mm}});var Mc=y((Fb,kc)=>{"use strict";var Rc=fe();function gm(t,e,r){if(r=typeof e=="function"?e:r,e=typeof e=="function"?!1:e,e)return r(null,e);Rc.lstat(t,(n,i)=>{if(n)return r(null,"file");e=i&&i.isDirectory()?"dir":"file",r(null,e)})}function ym(t,e){let r;if(e)return e;try{r=Rc.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}kc.exports={symlinkType:gm,symlinkTypeSync:ym}});var Bc=y((Ab,$c)=>{"use strict";var vm=_e().fromCallback,Tc=require("path"),Ot=fe(),Nc=Ne(),bm=Nc.mkdirs,wm=Nc.mkdirsSync,jc=Ac(),_m=jc.symlinkPaths,xm=jc.symlinkPathsSync,Lc=Mc(),Sm=Lc.symlinkType,Em=Lc.symlinkTypeSync,qc=We().pathExists;function Cm(t,e,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,qc(e,(i,s)=>{if(i)return n(i);if(s)return n(null);_m(t,e,(o,a)=>{if(o)return n(o);t=a.toDst,Sm(a.toCwd,r,(u,h)=>{if(u)return n(u);let c=Tc.dirname(e);qc(c,(p,g)=>{if(p)return n(p);if(g)return Ot.symlink(t,e,h,n);bm(c,m=>{if(m)return n(m);Ot.symlink(t,e,h,n)})})})})})}function Pm(t,e,r){if(Ot.existsSync(e))return;let i=xm(t,e);t=i.toDst,r=Em(i.toCwd,r);let s=Tc.dirname(e);return Ot.existsSync(s)||wm(s),Ot.symlinkSync(t,e,r)}$c.exports={createSymlink:vm(Cm),createSymlinkSync:Pm}});var Xc=y((Rb,Uc)=>{"use strict";var en=Ec(),tn=Ic(),rn=Bc();Uc.exports={createFile:en.createFile,createFileSync:en.createFileSync,ensureFile:en.createFile,ensureFileSync:en.createFileSync,createLink:tn.createLink,createLinkSync:tn.createLinkSync,ensureLink:tn.createLink,ensureLinkSync:tn.createLinkSync,createSymlink:rn.createSymlink,createSymlinkSync:rn.createSymlinkSync,ensureSymlink:rn.createSymlink,ensureSymlinkSync:rn.createSymlinkSync}});var nn=y((kb,Hc)=>{function Dm(t,{EOL:e=`
14
+ `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?e:"";return JSON.stringify(t,n,i).replace(/\n/g,e)+s}function Om(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}Hc.exports={stringify:Dm,stripBom:Om}});var Jc=y((Mb,Wc)=>{var It;try{It=fe()}catch{It=require("fs")}var sn=_e(),{stringify:Gc,stripBom:zc}=nn();async function Im(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||It,n="throws"in e?e.throws:!0,i=await sn.fromCallback(r.readFile)(t,e);i=zc(i);let s;try{s=JSON.parse(i,e?e.reviver:null)}catch(o){if(n)throw o.message=`${t}: ${o.message}`,o;return null}return s}var Fm=sn.fromPromise(Im);function Am(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||It,n="throws"in e?e.throws:!0;try{let i=r.readFileSync(t,e);return i=zc(i),JSON.parse(i,e.reviver)}catch(i){if(n)throw i.message=`${t}: ${i.message}`,i;return null}}async function Rm(t,e,r={}){let n=r.fs||It,i=Gc(e,r);await sn.fromCallback(n.writeFile)(t,i,r)}var km=sn.fromPromise(Rm);function Mm(t,e,r={}){let n=r.fs||It,i=Gc(e,r);return n.writeFileSync(t,i,r)}var qm={readFile:Fm,readFileSync:Am,writeFile:km,writeFileSync:Mm};Wc.exports=qm});var Yc=y((qb,Vc)=>{"use strict";var on=Jc();Vc.exports={readJson:on.readFile,readJsonSync:on.readFileSync,writeJson:on.writeFile,writeJsonSync:on.writeFileSync}});var an=y((Tb,Zc)=>{"use strict";var Tm=_e().fromCallback,rr=fe(),Kc=require("path"),Qc=Ne(),Nm=We().pathExists;function jm(t,e,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Kc.dirname(t);Nm(i,(s,o)=>{if(s)return n(s);if(o)return rr.writeFile(t,e,r,n);Qc.mkdirs(i,a=>{if(a)return n(a);rr.writeFile(t,e,r,n)})})}function Lm(t,...e){let r=Kc.dirname(t);if(rr.existsSync(r))return rr.writeFileSync(t,...e);Qc.mkdirsSync(r),rr.writeFileSync(t,...e)}Zc.exports={outputFile:Tm(jm),outputFileSync:Lm}});var tl=y((Nb,el)=>{"use strict";var{stringify:$m}=nn(),{outputFile:Bm}=an();async function Um(t,e,r={}){let n=$m(e,r);await Bm(t,n,r)}el.exports=Um});var nl=y((jb,rl)=>{"use strict";var{stringify:Xm}=nn(),{outputFileSync:Hm}=an();function Gm(t,e,r){let n=Xm(e,r);Hm(t,n,r)}rl.exports=Gm});var sl=y((Lb,il)=>{"use strict";var zm=_e().fromPromise,ge=Yc();ge.outputJson=zm(tl());ge.outputJsonSync=nl();ge.outputJSON=ge.outputJson;ge.outputJSONSync=ge.outputJsonSync;ge.writeJSON=ge.writeJson;ge.writeJSONSync=ge.writeJsonSync;ge.readJSON=ge.readJson;ge.readJSONSync=ge.readJsonSync;il.exports=ge});var fl=y(($b,ll)=>{"use strict";var ul=fe(),Wm=require("path"),Jm=Ti().copySync,cl=er().removeSync,Vm=Ne().mkdirpSync,ol=Jt();function Ym(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=ol.checkPathsSync(t,e,"move");return ol.checkParentPathsSync(t,i,e,"move"),Vm(Wm.dirname(e)),Km(t,e,n)}function Km(t,e,r){if(r)return cl(e),al(t,e,r);if(ul.existsSync(e))throw new Error("dest already exists.");return al(t,e,r)}function al(t,e,r){try{ul.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return Qm(t,e,r)}}function Qm(t,e,r){return Jm(t,e,{overwrite:r,errorOnExist:!0}),cl(t)}ll.exports=Ym});var hl=y((Bb,dl)=>{"use strict";dl.exports={moveSync:fl()}});var vl=y((Ub,yl)=>{"use strict";var Zm=fe(),eg=require("path"),tg=ji().copy,gl=er().remove,rg=Ne().mkdirp,ng=We().pathExists,pl=Jt();function ig(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;pl.checkPaths(t,e,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;pl.checkParentPaths(t,a,e,"move",u=>{if(u)return n(u);rg(eg.dirname(e),h=>h?n(h):sg(t,e,i,n))})})}function sg(t,e,r,n){if(r)return gl(e,i=>i?n(i):ml(t,e,r,n));ng(e,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):ml(t,e,r,n))}function ml(t,e,r,n){Zm.rename(t,e,i=>i?i.code!=="EXDEV"?n(i):og(t,e,r,n):n())}function og(t,e,r,n){tg(t,e,{overwrite:r,errorOnExist:!0},s=>s?n(s):gl(t,n))}yl.exports=ig});var wl=y((Xb,bl)=>{"use strict";var ag=_e().fromCallback;bl.exports={move:ag(vl())}});var nr=y((Hb,$i)=>{"use strict";$i.exports={...Wt(),...Ti(),...ji(),...wc(),...Xc(),...sl(),...Ne(),...hl(),...wl(),...an(),...We(),...er()};var _l=require("fs");Object.getOwnPropertyDescriptor(_l,"promises")&&Object.defineProperty($i.exports,"promises",{get(){return _l.promises}})});var Fl=y((zb,Il)=>{"use strict";Il.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 Xi=y((Wb,Rl)=>{var ir=Fl(),Al={};for(let t of Object.keys(ir))Al[ir[t]]=t;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"]}};Rl.exports=E;for(let t of Object.keys(E)){if(!("channels"in E[t]))throw new Error("missing channels property: "+t);if(!("labels"in E[t]))throw new Error("missing channel labels property: "+t);if(E[t].labels.length!==E[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=E[t];delete E[t].channels,delete E[t].labels,Object.defineProperty(E[t],"channels",{value:e}),Object.defineProperty(E[t],"labels",{value:r})}E.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,u;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let h=(i+s)/2;return s===i?u=0:h<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,h*100]};E.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,h=Math.max(o,a,u),c=h-Math.min(o,a,u),p=function(g){return(h-g)/6/c+1/2};return c===0?(i=0,s=0):(s=c/h,e=p(o),r=p(a),n=p(u),o===h?i=n-r:a===h?i=1/3+e-n:u===h&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,h*100]};E.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=E.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};E.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function cg(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}E.rgb.keyword=function(t){let e=Al[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(ir)){let s=ir[i],o=cg(t,s);o<r&&(r=o,n=i)}return n};E.keyword.rgb=function(t){return ir[t]};E.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};E.rgb.lab=function(t){let e=E.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};E.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,u=[0,0,0];for(let h=0;h<3;h++)s=e+1/3*-(h-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,u[h]=o*255;return u};E.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[e,a*100,o*100]};E.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};E.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};E.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,o&1&&(s=1-s);let u=r+s*(a-r),h,c,p;switch(o){default:case 6:case 0:h=a,c=u,p=r;break;case 1:h=u,c=a,p=r;break;case 2:h=r,c=a,p=u;break;case 3:h=r,c=u,p=a;break;case 4:h=u,c=r,p=a;break;case 5:h=a,c=r,p=u;break}return[h*255,c*255,p*255]};E.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};E.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};E.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(e-r),o=200*(r-n);return[i,s,o]};E.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let a=s**3,u=i**3,h=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=h>.008856?h:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};E.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};E.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};E.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?E.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};E.hsv.ansi16=function(t){return E.rgb.ansi16(E.hsv.rgb(t),t[2])};E.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};E.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};E.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};E.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};E.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};E.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===e?u=(r-n)/o%6:i===r?u=2+(n-e)/o:u=4+(e-r)/o,u/=6,u%=1,[u*360,o*100,a*100]};E.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};E.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};E.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};E.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};E.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};E.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};E.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};E.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};E.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};E.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};E.gray.hsl=function(t){return[0,0,t[0]]};E.gray.hsv=E.gray.hsl;E.gray.hwb=function(t){return[0,100,t[0]]};E.gray.cmyk=function(t){return[0,0,0,t[0]]};E.gray.lab=function(t){return[t[0],0,0]};E.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};E.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var Ml=y((Jb,kl)=>{var cn=Xi();function lg(){let t={},e=Object.keys(cn);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function fg(t){let e=lg(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(cn[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}}return e}function dg(t,e){return function(r){return e(t(r))}}function hg(t,e){let r=[e[t].parent,t],n=cn[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=dg(cn[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}kl.exports=function(t){let e=fg(t),r={},n=Object.keys(e);for(let i=n.length,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=hg(o,e))}return r}});var Tl=y((Vb,ql)=>{var Hi=Xi(),pg=Ml(),Ft={},mg=Object.keys(Hi);function gg(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function yg(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}mg.forEach(t=>{Ft[t]={},Object.defineProperty(Ft[t],"channels",{value:Hi[t].channels}),Object.defineProperty(Ft[t],"labels",{value:Hi[t].labels});let e=pg(t);Object.keys(e).forEach(n=>{let i=e[n];Ft[t][n]=yg(i),Ft[t][n].raw=gg(i)})});ql.exports=Ft});var Ul=y((Yb,Bl)=>{"use strict";var Nl=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,jl=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},Ll=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},ln=t=>t,$l=(t,e,r)=>[t,e,r],At=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},Gi,Rt=(t,e,r,n)=>{Gi===void 0&&(Gi=Tl());let i=n?10:0,s={};for(let[o,a]of Object.entries(Gi)){let u=o==="ansi16"?"ansi":o;o===e?s[u]=t(r,i):typeof a=="object"&&(s[u]=t(a[e],i))}return s};function vg(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",At(e.color,"ansi",()=>Rt(Nl,"ansi16",ln,!1)),At(e.color,"ansi256",()=>Rt(jl,"ansi256",ln,!1)),At(e.color,"ansi16m",()=>Rt(Ll,"rgb",$l,!1)),At(e.bgColor,"ansi",()=>Rt(Nl,"ansi16",ln,!0)),At(e.bgColor,"ansi256",()=>Rt(jl,"ansi256",ln,!0)),At(e.bgColor,"ansi16m",()=>Rt(Ll,"rgb",$l,!0)),e}Object.defineProperty(Bl,"exports",{enumerable:!0,get:vg})});var Hl=y((Kb,Xl)=>{"use strict";var bg=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},wg=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
15
15
  `:`
16
16
  `)+r,i=n+1,n=t.indexOf(`
17
- `,i)}while(n!==-1);return s+=t.substr(i),s};Hl.exports={stringReplaceAll:_g,stringEncaseCRLFWithFirstIndex:xg}});var Yl=y((e2,Vl)=>{"use strict";var Sg=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,zl=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Eg=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Cg=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Pg=new Map([["n",`
18
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Jl(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):Pg.get(t)||t}function Dg(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(Eg))r.push(i[2].replace(Cg,(a,u,h)=>u?Jl(u):h));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function Og(t){zl.lastIndex=0;let e=[],r;for(;(r=zl.exec(t))!==null;){let n=r[1];if(r[2]){let i=Dg(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function Wl(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let[i,s]of Object.entries(r))if(Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}Vl.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(Sg,(s,o,a,u,h,c)=>{if(o)i.push(Jl(o));else if(u){let p=i.join("");i=[],n.push(r.length===0?p:Wl(t,r)(p)),r.push({inverse:a,styles:Og(u)})}else if(h){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Wl(t,r)(i.join(""))),i=[],r.pop()}else i.push(c)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var nf=y((t2,rf)=>{"use strict";var sr=Xl(),{stdout:Wi,stderr:Ji}=Kn(),{stringReplaceAll:Ig,stringEncaseCRLFWithFirstIndex:Fg}=Gl(),{isArray:fn}=Array,Ql=["ansi","ansi","ansi256","ansi16m"],Rt=Object.create(null),Ag=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Wi?Wi.level:0;t.level=e.level===void 0?r:e.level},Vi=class{constructor(e){return Zl(e)}},Zl=t=>{let e={};return Ag(e,t),e.template=(...r)=>tf(e.template,...r),Object.setPrototypeOf(e,dn.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=Vi,e.template};function dn(t){return Zl(t)}for(let[t,e]of Object.entries(sr))Rt[t]={get(){let r=hn(this,Yi(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};Rt.visible={get(){let t=hn(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var ef=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of ef)Rt[t]={get(){let{level:e}=this;return function(...r){let n=Yi(sr.color[Ql[e]][t](...r),sr.color.close,this._styler);return hn(this,n,this._isEmpty)}}};for(let t of ef){let e="bg"+t[0].toUpperCase()+t.slice(1);Rt[e]={get(){let{level:r}=this;return function(...n){let i=Yi(sr.bgColor[Ql[r]][t](...n),sr.bgColor.close,this._styler);return hn(this,i,this._isEmpty)}}}}var Rg=Object.defineProperties(()=>{},{...Rt,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),Yi=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},hn=(t,e,r)=>{let n=(...i)=>fn(i[0])&&fn(i[0].raw)?Kl(n,tf(n,...i)):Kl(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,Rg),n._generator=t,n._styler=e,n._isEmpty=r,n},Kl=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=Ig(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
19
- `);return s!==-1&&(e=Fg(e,i,n,s)),n+e+i},zi,tf=(t,...e)=>{let[r]=e;if(!fn(r)||!fn(r.raw))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return zi===void 0&&(zi=Yl()),zi(t,i.join(""))};Object.defineProperties(dn.prototype,Rt);var pn=dn();pn.supportsColor=Wi;pn.stderr=dn({level:Ji?Ji.level:0});pn.stderr.supportsColor=Ji;rf.exports=pn});var sf=y((Ki,Qi)=>{(function(t,e){typeof Ki=="object"&&typeof Qi<"u"?Qi.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.tinycolor=e())})(Ki,function(){"use strict";function t(l){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},t(l)}var e=/^\s+/,r=/\s+$/;function n(l,d){if(l=l||"",d=d||{},l instanceof n)return l;if(!(this instanceof n))return new n(l,d);var f=i(l);this._originalInput=l,this._r=f.r,this._g=f.g,this._b=f.b,this._a=f.a,this._roundA=Math.round(100*this._a)/100,this._format=d.format||f.format,this._gradientType=d.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=f.ok}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var d=this.toRgb();return(d.r*299+d.g*587+d.b*114)/1e3},getLuminance:function(){var d=this.toRgb(),f,v,_,w,T,$;return f=d.r/255,v=d.g/255,_=d.b/255,f<=.03928?w=f/12.92:w=Math.pow((f+.055)/1.055,2.4),v<=.03928?T=v/12.92:T=Math.pow((v+.055)/1.055,2.4),_<=.03928?$=_/12.92:$=Math.pow((_+.055)/1.055,2.4),.2126*w+.7152*T+.0722*$},setAlpha:function(d){return this._a=X(d),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var d=u(this._r,this._g,this._b);return{h:d.h*360,s:d.s,v:d.v,a:this._a}},toHsvString:function(){var d=u(this._r,this._g,this._b),f=Math.round(d.h*360),v=Math.round(d.s*100),_=Math.round(d.v*100);return this._a==1?"hsv("+f+", "+v+"%, "+_+"%)":"hsva("+f+", "+v+"%, "+_+"%, "+this._roundA+")"},toHsl:function(){var d=o(this._r,this._g,this._b);return{h:d.h*360,s:d.s,l:d.l,a:this._a}},toHslString:function(){var d=o(this._r,this._g,this._b),f=Math.round(d.h*360),v=Math.round(d.s*100),_=Math.round(d.l*100);return this._a==1?"hsl("+f+", "+v+"%, "+_+"%)":"hsla("+f+", "+v+"%, "+_+"%, "+this._roundA+")"},toHex:function(d){return c(this._r,this._g,this._b,d)},toHexString:function(d){return"#"+this.toHex(d)},toHex8:function(d){return p(this._r,this._g,this._b,this._a,d)},toHex8String:function(d){return"#"+this.toHex8(d)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(I(this._r,255)*100)+"%",g:Math.round(I(this._g,255)*100)+"%",b:Math.round(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(I(this._r,255)*100)+"%, "+Math.round(I(this._g,255)*100)+"%, "+Math.round(I(this._b,255)*100)+"%)":"rgba("+Math.round(I(this._r,255)*100)+"%, "+Math.round(I(this._g,255)*100)+"%, "+Math.round(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:q[c(this._r,this._g,this._b,!0)]||!1},toFilter:function(d){var f="#"+g(this._r,this._g,this._b,this._a),v=f,_=this._gradientType?"GradientType = 1, ":"";if(d){var w=n(d);v="#"+g(w._r,w._g,w._b,w._a)}return"progid:DXImageTransform.Microsoft.gradient("+_+"startColorstr="+f+",endColorstr="+v+")"},toString:function(d){var f=!!d;d=d||this._format;var v=!1,_=this._a<1&&this._a>=0,w=!f&&_&&(d==="hex"||d==="hex6"||d==="hex3"||d==="hex4"||d==="hex8"||d==="name");return w?d==="name"&&this._a===0?this.toName():this.toRgbString():(d==="rgb"&&(v=this.toRgbString()),d==="prgb"&&(v=this.toPercentageRgbString()),(d==="hex"||d==="hex6")&&(v=this.toHexString()),d==="hex3"&&(v=this.toHexString(!0)),d==="hex4"&&(v=this.toHex8String(!0)),d==="hex8"&&(v=this.toHex8String()),d==="name"&&(v=this.toName()),d==="hsl"&&(v=this.toHslString()),d==="hsv"&&(v=this.toHsvString()),v||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(d,f){var v=d.apply(null,[this].concat([].slice.call(f)));return this._r=v._r,this._g=v._g,this._b=v._b,this.setAlpha(v._a),this},lighten:function(){return this._applyModification(S,arguments)},brighten:function(){return this._applyModification(F,arguments)},darken:function(){return this._applyModification(L,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(B,arguments)},_applyCombination:function(d,f){return d.apply(null,[this].concat([].slice.call(f)))},analogous:function(){return this._applyCombination(De,arguments)},complement:function(){return this._applyCombination(G,arguments)},monochromatic:function(){return this._applyCombination(Q,arguments)},splitcomplement:function(){return this._applyCombination(ye,arguments)},triad:function(){return this._applyCombination(Y,[3])},tetrad:function(){return this._applyCombination(Y,[4])}},n.fromRatio=function(l,d){if(t(l)=="object"){var f={};for(var v in l)l.hasOwnProperty(v)&&(v==="a"?f[v]=l[v]:f[v]=A(l[v]));l=f}return n(l,d)};function i(l){var d={r:0,g:0,b:0},f=1,v=null,_=null,w=null,T=!1,$=!1;return typeof l=="string"&&(l=ft(l)),t(l)=="object"&&(ve(l.r)&&ve(l.g)&&ve(l.b)?(d=s(l.r,l.g,l.b),T=!0,$=String(l.r).substr(-1)==="%"?"prgb":"rgb"):ve(l.h)&&ve(l.s)&&ve(l.v)?(v=A(l.s),_=A(l.v),d=h(l.h,v,_),T=!0,$="hsv"):ve(l.h)&&ve(l.s)&&ve(l.l)&&(v=A(l.s),w=A(l.l),d=a(l.h,v,w),T=!0,$="hsl"),l.hasOwnProperty("a")&&(f=l.a)),f=X(f),{ok:T,format:l.format||$,r:Math.min(255,Math.max(d.r,0)),g:Math.min(255,Math.max(d.g,0)),b:Math.min(255,Math.max(d.b,0)),a:f}}function s(l,d,f){return{r:I(l,255)*255,g:I(d,255)*255,b:I(f,255)*255}}function o(l,d,f){l=I(l,255),d=I(d,255),f=I(f,255);var v=Math.max(l,d,f),_=Math.min(l,d,f),w,T,$=(v+_)/2;if(v==_)w=T=0;else{var N=v-_;switch(T=$>.5?N/(2-v-_):N/(v+_),v){case l:w=(d-f)/N+(d<f?6:0);break;case d:w=(f-l)/N+2;break;case f:w=(l-d)/N+4;break}w/=6}return{h:w,s:T,l:$}}function a(l,d,f){var v,_,w;l=I(l,360),d=I(d,100),f=I(f,100);function T(Ie,Lt,Me){return Me<0&&(Me+=1),Me>1&&(Me-=1),Me<1/6?Ie+(Lt-Ie)*6*Me:Me<1/2?Lt:Me<2/3?Ie+(Lt-Ie)*(2/3-Me)*6:Ie}if(d===0)v=_=w=f;else{var $=f<.5?f*(1+d):f+d-f*d,N=2*f-$;v=T(N,$,l+1/3),_=T(N,$,l),w=T(N,$,l-1/3)}return{r:v*255,g:_*255,b:w*255}}function u(l,d,f){l=I(l,255),d=I(d,255),f=I(f,255);var v=Math.max(l,d,f),_=Math.min(l,d,f),w,T,$=v,N=v-_;if(T=v===0?0:N/v,v==_)w=0;else{switch(v){case l:w=(d-f)/N+(d<f?6:0);break;case d:w=(f-l)/N+2;break;case f:w=(l-d)/N+4;break}w/=6}return{h:w,s:T,v:$}}function h(l,d,f){l=I(l,360)*6,d=I(d,100),f=I(f,100);var v=Math.floor(l),_=l-v,w=f*(1-d),T=f*(1-_*d),$=f*(1-(1-_)*d),N=v%6,Ie=[f,T,w,w,$,f][N],Lt=[$,f,f,T,w,w][N],Me=[w,w,$,f,f,T][N];return{r:Ie*255,g:Lt*255,b:Me*255}}function c(l,d,f,v){var _=[E(Math.round(l).toString(16)),E(Math.round(d).toString(16)),E(Math.round(f).toString(16))];return v&&_[0].charAt(0)==_[0].charAt(1)&&_[1].charAt(0)==_[1].charAt(1)&&_[2].charAt(0)==_[2].charAt(1)?_[0].charAt(0)+_[1].charAt(0)+_[2].charAt(0):_.join("")}function p(l,d,f,v,_){var w=[E(Math.round(l).toString(16)),E(Math.round(d).toString(16)),E(Math.round(f).toString(16)),E(Oe(v))];return _&&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[3].charAt(0)==w[3].charAt(1)?w[0].charAt(0)+w[1].charAt(0)+w[2].charAt(0)+w[3].charAt(0):w.join("")}function g(l,d,f,v){var _=[E(Oe(v)),E(Math.round(l).toString(16)),E(Math.round(d).toString(16)),E(Math.round(f).toString(16))];return _.join("")}n.equals=function(l,d){return!l||!d?!1:n(l).toRgbString()==n(d).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function m(l,d){d=d===0?0:d||10;var f=n(l).toHsl();return f.s-=d/100,f.s=U(f.s),n(f)}function b(l,d){d=d===0?0:d||10;var f=n(l).toHsl();return f.s+=d/100,f.s=U(f.s),n(f)}function x(l){return n(l).desaturate(100)}function S(l,d){d=d===0?0:d||10;var f=n(l).toHsl();return f.l+=d/100,f.l=U(f.l),n(f)}function F(l,d){d=d===0?0:d||10;var f=n(l).toRgb();return f.r=Math.max(0,Math.min(255,f.r-Math.round(255*-(d/100)))),f.g=Math.max(0,Math.min(255,f.g-Math.round(255*-(d/100)))),f.b=Math.max(0,Math.min(255,f.b-Math.round(255*-(d/100)))),n(f)}function L(l,d){d=d===0?0:d||10;var f=n(l).toHsl();return f.l-=d/100,f.l=U(f.l),n(f)}function B(l,d){var f=n(l).toHsl(),v=(f.h+d)%360;return f.h=v<0?360+v:v,n(f)}function G(l){var d=n(l).toHsl();return d.h=(d.h+180)%360,n(d)}function Y(l,d){if(isNaN(d)||d<=0)throw new Error("Argument to polyad must be a positive number");for(var f=n(l).toHsl(),v=[n(l)],_=360/d,w=1;w<d;w++)v.push(n({h:(f.h+w*_)%360,s:f.s,l:f.l}));return v}function ye(l){var d=n(l).toHsl(),f=d.h;return[n(l),n({h:(f+72)%360,s:d.s,l:d.l}),n({h:(f+216)%360,s:d.s,l:d.l})]}function De(l,d,f){d=d||6,f=f||30;var v=n(l).toHsl(),_=360/f,w=[n(l)];for(v.h=(v.h-(_*d>>1)+720)%360;--d;)v.h=(v.h+_)%360,w.push(n(v));return w}function Q(l,d){d=d||6;for(var f=n(l).toHsv(),v=f.h,_=f.s,w=f.v,T=[],$=1/d;d--;)T.push(n({h:v,s:_,v:w})),w=(w+$)%1;return T}n.mix=function(l,d,f){f=f===0?0:f||50;var v=n(l).toRgb(),_=n(d).toRgb(),w=f/100,T={r:(_.r-v.r)*w+v.r,g:(_.g-v.g)*w+v.g,b:(_.b-v.b)*w+v.b,a:(_.a-v.a)*w+v.a};return n(T)},n.readability=function(l,d){var f=n(l),v=n(d);return(Math.max(f.getLuminance(),v.getLuminance())+.05)/(Math.min(f.getLuminance(),v.getLuminance())+.05)},n.isReadable=function(l,d,f){var v=n.readability(l,d),_,w;switch(w=!1,_=re(f),_.level+_.size){case"AAsmall":case"AAAlarge":w=v>=4.5;break;case"AAlarge":w=v>=3;break;case"AAAsmall":w=v>=7;break}return w},n.mostReadable=function(l,d,f){var v=null,_=0,w,T,$,N;f=f||{},T=f.includeFallbackColors,$=f.level,N=f.size;for(var Ie=0;Ie<d.length;Ie++)w=n.readability(l,d[Ie]),w>_&&(_=w,v=n(d[Ie]));return n.isReadable(l,v,{level:$,size:N})||!T?v:(f.includeFallbackColors=!1,n.mostReadable(l,["#fff","#000"],f))};var D=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},q=n.hexNames=k(D);function k(l){var d={};for(var f in l)l.hasOwnProperty(f)&&(d[l[f]]=f);return d}function X(l){return l=parseFloat(l),(isNaN(l)||l<0||l>1)&&(l=1),l}function I(l,d){j(l)&&(l="100%");var f=M(l);return l=Math.min(d,Math.max(0,parseFloat(l))),f&&(l=parseInt(l*d,10)/100),Math.abs(l-d)<1e-6?1:l%d/parseFloat(d)}function U(l){return Math.min(1,Math.max(0,l))}function O(l){return parseInt(l,16)}function j(l){return typeof l=="string"&&l.indexOf(".")!=-1&&parseFloat(l)===1}function M(l){return typeof l=="string"&&l.indexOf("%")!=-1}function E(l){return l.length==1?"0"+l:""+l}function A(l){return l<=1&&(l=l*100+"%"),l}function Oe(l){return Math.round(parseFloat(l)*255).toString(16)}function ke(l){return O(l)/255}var ae=function(){var l="[-\\+]?\\d+%?",d="[-\\+]?\\d*\\.\\d+%?",f="(?:"+d+")|(?:"+l+")",v="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?",_="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?";return{CSS_UNIT:new RegExp(f),rgb:new RegExp("rgb"+v),rgba:new RegExp("rgba"+_),hsl:new RegExp("hsl"+v),hsla:new RegExp("hsla"+_),hsv:new RegExp("hsv"+v),hsva:new RegExp("hsva"+_),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 ve(l){return!!ae.CSS_UNIT.exec(l)}function ft(l){l=l.replace(e,"").replace(r,"").toLowerCase();var d=!1;if(D[l])l=D[l],d=!0;else if(l=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var f;return(f=ae.rgb.exec(l))?{r:f[1],g:f[2],b:f[3]}:(f=ae.rgba.exec(l))?{r:f[1],g:f[2],b:f[3],a:f[4]}:(f=ae.hsl.exec(l))?{h:f[1],s:f[2],l:f[3]}:(f=ae.hsla.exec(l))?{h:f[1],s:f[2],l:f[3],a:f[4]}:(f=ae.hsv.exec(l))?{h:f[1],s:f[2],v:f[3]}:(f=ae.hsva.exec(l))?{h:f[1],s:f[2],v:f[3],a:f[4]}:(f=ae.hex8.exec(l))?{r:O(f[1]),g:O(f[2]),b:O(f[3]),a:ke(f[4]),format:d?"name":"hex8"}:(f=ae.hex6.exec(l))?{r:O(f[1]),g:O(f[2]),b:O(f[3]),format:d?"name":"hex"}:(f=ae.hex4.exec(l))?{r:O(f[1]+""+f[1]),g:O(f[2]+""+f[2]),b:O(f[3]+""+f[3]),a:ke(f[4]+""+f[4]),format:d?"name":"hex8"}:(f=ae.hex3.exec(l))?{r:O(f[1]+""+f[1]),g:O(f[2]+""+f[2]),b:O(f[3]+""+f[3]),format:d?"name":"hex"}:!1}function re(l){var d,f;return l=l||{level:"AA",size:"small"},d=(l.level||"AA").toUpperCase(),f=(l.size||"small").toLowerCase(),d!=="AA"&&d!=="AAA"&&(d="AA"),f!=="small"&&f!=="large"&&(f="small"),{level:d,size:f}}return n})});var df=y((r2,ff)=>{var or=sf(),cf={r:256,g:256,b:256,a:1},lf={h:360,s:1,v:1,a:1};function es(t,e,r){let n={};for(let i in t)t.hasOwnProperty(i)&&(n[i]=r===0?0:(e[i]-t[i])/r);return n}function ts(t,e,r,n){let i={};for(let s in e)e.hasOwnProperty(s)&&(i[s]=t[s]*r+e[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function Zi(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=es(n,i,r),o=[t.color];for(let a=1;a<r;a++){let u=ts(s,n,a,cf);o.push(or(u))}return o}function of(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return Zi(t,e,r);let o;if(typeof n=="boolean")o=n;else{let c=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&c||n==="short"&&!c}let a=es(i,s,r),u=[t.color],h;i.h<=s.h&&!o||i.h>=s.h&&o?h=s.h-i.h:o?h=360-s.h+i.h:h=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(h)/r;for(let c=1;c<r;c++){let p=ts(a,i,c,lf);u.push(or(p))}return u}function af(t,e){let r=t.length;if(e=parseInt(e,10),isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==e;)if(i<e){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function uf(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let u=0,h=t.length;u<h-1;u++)if(e>=t[u].pos&&e<t[u+1].pos){i=t[u],s=t[u+1];break}i||(i=s=t[t.length-1]);let o=es(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=ts(o,i.color[r](),(e-i.pos)*100,n);return or(a)}var kt=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,n=e.length,i=-1,s=!1;this.stops=e.map((o,a)=>{let u=o.pos!==void 0;if(r^u)throw new Error("Cannot mix positionned and not posionned color stops");if(u){let h=o.color!==void 0;if(!h&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!h,o={color:h?or(o.color):null,colorLess:!h,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:or(o.color!==void 0?o.color:o),pos:a/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new kt(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(n=>{e.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new kt(e.concat(r.reverse()))}rgb(e){let r=af(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Zi(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=Zi(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(e,r){let n=af(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=of(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let a=of(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let n=e+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(e){return uf(this.stops,e,"toRgb",cf)}hsvAt(e){return uf(this.stops,e,"toHsv",lf)}};ff.exports=function(t){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');t=arguments[0]}else t=Array.prototype.slice.call(arguments);return new kt(t)}});var yf=y((n2,mn)=>{"use strict";var pf=nf(),kg=df(),hf=/\s/g;function rs(...t){let e=kg.apply(this,t),r=(n,i)=>Mg(n?n.toString():"",e,i);return r.multiline=(n,i)=>qg(n?n.toString():"",e,i),r}var mf=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function Mg(t,e,r){let n=gf(r),i=Math.max(t.replace(hf,"").length,e.stops.length),s=mf(e,n,i),o="";for(let a of t)o+=a.match(hf)?a:pf.hex(s.shift().toHex())(a);return o}function qg(t,e,r){let n=gf(r),i=t.split(`
20
- `),s=Math.max.apply(null,i.map(u=>u.length).concat([e.stops.length])),o=mf(e,n,s),a=[];for(let u of i){let h=o.slice(0),c="";for(let p of u)c+=pf.hex(h.shift().toHex())(p);a.push(c)}return a.join(`
21
- `)}function gf(t){let e={interpolation:"rgb",hsvSpin:"short",...t};if(t!==void 0&&typeof t!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof t}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof e.hsvSpin}\``);return e}var ar={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"}}};mn.exports=rs;for(let t in ar)mn.exports[t]=e=>new rs(ar[t].colors)(e,ar[t].options),mn.exports[t].multiline=e=>new rs(ar[t].colors).multiline(e,ar[t].options)});var bf=y((i2,vf)=>{var ns=class{constructor(e){this.value=e,this.next=void 0}},is=class{constructor(){this.clear()}enqueue(e){let r=new ns(e);this._head?(this._tail.next=r,this._tail=r):(this._head=r,this._tail=r),this._size++}dequeue(){let e=this._head;if(e)return this._head=this._head.next,this._size--,e.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let e=this._head;for(;e;)yield e.value,e=e.next}};vf.exports=is});var ss=y((s2,wf)=>{"use strict";var Tg=bf(),Ng=t=>{if(!((Number.isInteger(t)||t===1/0)&&t>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let e=new Tg,r=0,n=()=>{r--,e.size>0&&e.dequeue()()},i=async(a,u,...h)=>{r++;let c=(async()=>a(...h))();u(c);try{await c}catch{}n()},s=(a,u,...h)=>{e.enqueue(i.bind(null,a,u,...h)),(async()=>(await Promise.resolve(),r<t&&e.size>0&&e.dequeue()()))()},o=(a,...u)=>new Promise(h=>{s(a,h,...u)});return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),o};wf.exports=Ng});var Sf=y((o2,xf)=>{"use strict";var _f=ss(),gn=class extends Error{constructor(e){super(),this.value=e}},jg=async(t,e)=>e(await t),Lg=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new gn(e[0]);return!1},$g=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=_f(r.concurrency),i=[...t].map(o=>[o,n(jg,o,e)]),s=_f(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(Lg,o)))}catch(o){if(o instanceof gn)return o.value;throw o}};xf.exports=$g});var If=y((a2,os)=>{"use strict";var Ef=require("path"),yn=require("fs"),{promisify:Cf}=require("util"),Bg=Sf(),Ug=Cf(yn.stat),Xg=Cf(yn.lstat),Pf={directory:"isDirectory",file:"isFile"};function Df({type:t}){if(!(t in Pf))throw new Error(`Invalid type specified: ${t}`)}var Of=(t,e)=>t===void 0||e[Pf[t]]();os.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},Df(e);let r=e.allowSymlinks?Ug:Xg;return Bg(t,async n=>{try{let i=await r(Ef.resolve(e.cwd,n));return Of(e.type,i)}catch{return!1}},e)};os.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},Df(e);let r=e.allowSymlinks?yn.statSync:yn.lstatSync;for(let n of t)try{let i=r(Ef.resolve(e.cwd,n));if(Of(e.type,i))return n}catch{}}});var Af=y((u2,as)=>{"use strict";var Ff=require("fs"),{promisify:Hg}=require("util"),Gg=Hg(Ff.access);as.exports=async t=>{try{return await Gg(t),!0}catch{return!1}};as.exports.sync=t=>{try{return Ff.accessSync(t),!0}catch{return!1}}});var kf=y((c2,Mt)=>{"use strict";var Ve=require("path"),vn=If(),Rf=Af(),us=Symbol("findUp.stop");Mt.exports=async(t,e={})=>{let r=Ve.resolve(e.cwd||""),{root:n}=Ve.parse(r),i=[].concat(t),s=async o=>{if(typeof t!="function")return vn(i,o);let a=await t(o.cwd);return typeof a=="string"?vn([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===us)return;if(o)return Ve.resolve(r,o);if(r===n)return;r=Ve.dirname(r)}};Mt.exports.sync=(t,e={})=>{let r=Ve.resolve(e.cwd||""),{root:n}=Ve.parse(r),i=[].concat(t),s=o=>{if(typeof t!="function")return vn.sync(i,o);let a=t(o.cwd);return typeof a=="string"?vn.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===us)return;if(o)return Ve.resolve(r,o);if(r===n)return;r=Ve.dirname(r)}};Mt.exports.exists=Rf;Mt.exports.sync.exists=Rf.sync;Mt.exports.stop=us});var Tf=y((l2,cs)=>{"use strict";var Mf=require("path"),qf=kf(),zg=async t=>{let e=await qf("package.json",{cwd:t});return e&&Mf.dirname(e)};cs.exports=zg;cs.exports.sync=t=>{let e=qf.sync("package.json",{cwd:t});return e&&Mf.dirname(e)}});var K=y(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.isUndefined=xe.fixName=xe.validateName=xe.validateSingleChar=xe.fixChar=xe.validateChar=void 0;function hy(t){for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(!(r===9||r===10||r===13||r>=32&&r<=55295||r>=57344&&r<=65533)){if(e+1===t.length)return!1;var n=t.charCodeAt(e+1);if(r>=55296&&r<=56319&&n>=56320&&n<=57343){e++;continue}return!1}}return!0}xe.validateChar=hy;function py(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r);if(n===9||n===10||n===13||n>=32&&n<=55295||n>=57344&&n<=65533){e+=t[r];continue}if(r+1===t.length)return e+="\uFFFD",e;var i=t.charCodeAt(r+1);if(n>=55296&&n<=56319&&i>=56320&&i<=57343){e+=t[r]+t[r+1],r++;continue}e+="\uFFFD"}return e}xe.fixChar=py;function my(t){if(t.length===0)return!1;var e=t.charCodeAt(0);if(t.length===1)return e===9||e===10||e===13||e>=32&&e<=55295||e>=57344&&e<=65533;if(t.length!==2)return!1;var r=t.charCodeAt(1);return e>=55296&&e<=56319&&r>=56320&&r<=57343}xe.validateSingleChar=my;function gy(t){if(t.length===0)return!1;var e=t.charCodeAt(0),r=e===58||e===95||e>=65&&e<=90||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533;if(t.length===1)return r;var n=t.charCodeAt(1),i=e>=55296&&e<=56191&&n>=56320&&n<=57343;if(!r&&!i)return!1;for(var s=i?2:1,o=s;o<t.length;o++){var a=t.charCodeAt(o);if(!(a===58||a===95||a===45||a===46||a===183||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=767||a>=768&&a<=879||a>=880&&a<=893||a>=895&&a<=8191||a>=8204&&a<=8205||a>=8255&&a<=8256||a>=8304&&a<=8591||a>=11264&&a<=12271||a>=12289&&a<=55295||a>=63744&&a<=64975||a>=65008&&a<=65533)){if(o+1===t.length)return!1;var u=t.charCodeAt(o+1);if(a>=55296&&a<=56191&&u>=56320&&u<=57343){o++;continue}return!1}}return!0}xe.validateName=gy;function yy(t){var e="";if(t.length===0)return e;var r=t.charCodeAt(0),n=r===58||r===95||r>=65&&r<=90||r>=97&&r<=122||r>=192&&r<=214||r>=216&&r<=246||r>=248&&r<=767||r>=880&&r<=893||r>=895&&r<=8191||r>=8204&&r<=8205||r>=8304&&r<=8591||r>=11264&&r<=12271||r>=12289&&r<=55295||r>=63744&&r<=64975||r>=65008&&r<=65533;if(t.length===1)return n?e=t[0]:e="\uFFFD",e;var i=t.charCodeAt(1),s=r>=55296&&r<=56191&&i>=56320&&i<=57343;s?e=t[0]+t[1]:n?e=t[0]:e="\uFFFD";for(var o=s?2:1,a=o;a<t.length;a++){var u=t.charCodeAt(a);if(u===58||u===95||u===45||u===46||u===183||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||u>=192&&u<=214||u>=216&&u<=246||u>=248&&u<=767||u>=768&&u<=879||u>=880&&u<=893||u>=895&&u<=8191||u>=8204&&u<=8205||u>=8255&&u<=8256||u>=8304&&u<=8591||u>=11264&&u<=12271||u>=12289&&u<=55295||u>=63744&&u<=64975||u>=65008&&u<=65533){e+=t[a];continue}if(a+1===t.length)return e+="\uFFFD",e;var h=t.charCodeAt(a+1);if(u>=55296&&u<=56191&&h>=56320&&h<=57343){e+=t[a]+t[a+1],a++;continue}e+="\uFFFD"}return e}xe.fixName=yy;function vy(t){return Object.prototype.toString.call(t)==="[object Undefined]"}xe.isUndefined=vy});var Tt=y(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.StringOptions=void 0;var xn=K(),by=function(){function t(e){this.doubleQuotes=!1,this.indent=" ",this.newline=`
22
- `,this.pretty=!0,(0,xn.isUndefined)(e.doubleQuotes)||(this.doubleQuotes=e.doubleQuotes),(0,xn.isUndefined)(e.indent)||(this.indent=e.indent),(0,xn.isUndefined)(e.newline)||(this.newline=e.newline),(0,xn.isUndefined)(e.pretty)||(this.pretty=e.pretty)}return t}();Sn.StringOptions=by});var En=y(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.escapeDoubleQuotes=Re.escapeSingleQuotes=Re.escapeRightAngleBracketsInCdataTerminator=Re.escapeLeftAngleBrackets=Re.escapeAmpersands=void 0;function wy(t){return t.replace(/&/g,"&amp;")}Re.escapeAmpersands=wy;function _y(t){return t.replace(/</g,"&lt;")}Re.escapeLeftAngleBrackets=_y;function xy(t){return t.replace(/]]>/g,"]]&gt;")}Re.escapeRightAngleBracketsInCdataTerminator=xy;function Sy(t){return t.replace(/'/g,"&apos;")}Re.escapeSingleQuotes=Sy;function Ey(t){return t.replace(/"/g,"&quot;")}Re.escapeDoubleQuotes=Ey});var Cs=y(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});var Cy=oe(),ud=En(),Ss=K(),Py=function(){function t(e,r,n){this._validation=r,(0,Ss.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Ss.fixChar)(e);else if(this._validation&&!(0,Ss.validateChar)(e))throw new Error((0,Cy.getContext)(this.up())+": attribute text"+(' "'+e+'" should not contain characters not')+" allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this._charData;return e=(0,ud.escapeAmpersands)(e),e=(0,ud.escapeLeftAngleBrackets)(e),e},t.prototype.up=function(){return this._parent},t}();Es.default=Py});var Cn=y(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});var cd=oe(),ld=K(),Dy=function(){function t(e,r,n){this._hex=!1,this._validation=r,this._parent=e,this.char=n.char,(0,ld.isUndefined)(n.hex)||(this.hex=n.hex)}return Object.defineProperty(t.prototype,"char",{get:function(){return this._char},set:function(e){if(this._validation&&!(0,ld.validateSingleChar)(e))throw new Error((0,cd.getContext)(this.up())+": character reference"+(' "'+e+'" should reference a single character,')+" and this character should be allowed in XML");this._char=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hex",{get:function(){return this._hex},set:function(e){this._hex=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e;if(this._char.length===1)e=this._char.charCodeAt(0);else{var r=this._char.charCodeAt(0);if(r>=55296&&r<=56319&&this._char.length>1){var n=this._char.charCodeAt(1);if(n>=56320&&n<=57343)e=(r-55296)*1024+n-56320+65536;else throw new Error((0,cd.getContext)(this.up())+": character"+(' reference "'+this.char+'" should')+" reference a valid Unicode character")}else e=r}return this._hex?"&#x"+e.toString(16)+";":"&#"+e+";"},t.prototype.up=function(){return this._parent},t}();Ps.default=Dy});var Pn=y(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});var Oy=oe(),Iy=K(),Fy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,Iy.validateName)(e))throw new Error((0,Oy.getContext)(this.up())+": entity reference name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"&"+this._name+";"},t.prototype.up=function(){return this._parent},t}();Ds.default=Fy});var Dn=y(lr=>{"use strict";var Fs=lr&&lr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(lr,"__esModule",{value:!0});var Os=oe(),fd=En(),Ay=Tt(),Is=K(),Ry=Fs(Cs()),ky=Fs(Cn()),My=Fs(Pn()),qy=function(){function t(e,r,n){this._validation=r,(0,Is.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,this._children=[],this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._replaceInvalidCharsInName){if(e=(0,Is.fixName)(e),e.length===0)throw new Error((0,Os.getContext)(this.up())+": attribute name should not be empty")}else if(this._validation&&!(0,Is.validateName)(e))throw e.length===0?new Error((0,Os.getContext)(this.up())+": attribute name should not be empty"):new Error((0,Os.getContext)(this.up())+": attribute name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.charRef=function(e){var r=new ky.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new My.default(this,this._validation,e);return this._children.push(r),r},t.prototype.text=function(e){var r=new Ry.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});for(var r=new Ay.StringOptions(e),n=r.doubleQuotes?'"':"'",i=this._name+"="+n,s=0,o=this._children;s<o.length;s++){var a=o[s];r.doubleQuotes?i+=(0,fd.escapeDoubleQuotes)(a.toString()):i+=(0,fd.escapeSingleQuotes)(a.toString())}return i+=n,i},t.prototype.up=function(){return this._parent},t}();lr.default=qy});var Rs=y(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});var Ty=oe(),Ny=K(),jy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,Ny.validateChar)(e))throw new Error((0,Ty.getContext)(this.up())+": attribute-list"+(' declaration "'+e+'" should not contain')+" characters not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ATTLIST "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();As.default=jy});var Ms=y(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});var Ly=oe(),$y=K(),By=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,$y.validateChar)(e))throw new Error((0,Ly.getContext)(this.up())+": element declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ELEMENT "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();ks.default=By});var Ts=y(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});var Uy=oe(),Xy=K(),Hy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,Xy.validateChar)(e))throw new Error((0,Uy.getContext)(this.up())+": entity declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ENTITY "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();qs.default=Hy});var js=y(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});var Gy=oe(),zy=K(),Wy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,zy.validateChar)(e))throw new Error((0,Gy.getContext)(this.up())+": notation declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!NOTATION "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Ns.default=Wy});var $s=y(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});var Jy=oe(),Vy=K(),Yy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,Vy.validateName)(e))throw new Error((0,Jy.getContext)(this.up())+": parameter entity"+(' reference name "'+e+'" should not contain')+" characters not allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"%"+this._name+";"},t.prototype.up=function(){return this._parent},t}();Ls.default=Yy});var fr=y(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});var On=oe(),In=K(),Ky=function(){function t(e,r,n){this._validation=r,this._parent=e,this.content=n.content,this.target=n.target}return Object.defineProperty(t.prototype,"content",{get:function(){return this._content},set:function(e){if(!(0,In.isUndefined)(e)){if(this._validation&&!(0,In.validateChar)(e))throw new Error((0,On.getContext)(this.up())+": processing"+(' instruction content "'+e+'" should')+" not contain characters not allowed in XML");if(this._validation&&e.indexOf("?>")!==-1)throw new Error((0,On.getContext)(this.up())+": processing"+(' instruction content "'+e+'" should')+" not contain the string '?>'")}this._content=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){return this._target},set:function(e){if(this._validation&&!(0,In.validateName)(e))throw new Error((0,On.getContext)(this.up())+": processing"+(' instruction target "'+e+'" should')+" not contain characters not allowed in XML names");if(this._validation&&e==="xml")throw new Error((0,On.getContext)(this.up())+": processing"+(' instruction target "'+e+'" should')+" not be the string 'xml'");this._target=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return(0,In.isUndefined)(this._content)?"<?"+this._target+"?>":"<?"+this._target+" "+this._content+"?>"},t.prototype.up=function(){return this._parent},t}();Bs.default=Ky});var Fn=y(ut=>{"use strict";var ct=ut&&ut.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ut,"__esModule",{value:!0});ut.validatePubId=void 0;var Qe=oe(),Qy=Tt(),Le=K(),Zy=ct(dr()),e1=ct(Rs()),t1=ct(Ms()),r1=ct(Ts()),n1=ct(js()),i1=ct($s()),s1=ct(fr()),o1=function(){function t(e,r,n){this._pubId=void 0,this._sysId=void 0,this._validation=r,this._children=[],this._parent=e,this.name=n.name,(0,Le.isUndefined)(n.sysId)||(this.sysId=n.sysId),(0,Le.isUndefined)(n.pubId)||(this.pubId=n.pubId)}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,Le.validateName)(e))throw new Error((0,Qe.getContext)(this.up())+': DTD name "'+e+'" should not contain characters not allowed in XML names');this._name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pubId",{get:function(){return this._pubId},set:function(e){if(!(0,Le.isUndefined)(e)){if(this._validation&&!dd(e))throw new Error((0,Qe.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not contain')+" characters not allowed in public identifiers");if(this._validation&&(0,Le.isUndefined)(this._sysId))throw new Error((0,Qe.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not be defined')+" if system identifier is undefined")}this._pubId=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sysId",{get:function(){return this._sysId},set:function(e){if(!(0,Le.isUndefined)(e)){if(this._validation&&!(0,Le.validateChar)(e))throw new Error((0,Qe.getContext)(this.up())+": DTD system"+(' identifier "'+e+'" should not contain')+" characters not allowed in XML");if(this._validation&&e.indexOf("'")!==-1&&e.indexOf('"')!==-1)throw new Error((0,Qe.getContext)(this.up())+": DTD system"+(' identifier "'+e+'" should not contain')+" both single quotes and double quotes")}this._sysId=e},enumerable:!1,configurable:!0}),t.prototype.attlist=function(e){var r=new e1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new Zy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new t1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entity=function(e){var r=new r1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.notation=function(e){var r=new n1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.paramEntityRef=function(e){var r=new i1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new s1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=new Qy.StringOptions(e),n="<!DOCTYPE "+this._name;if((0,Le.isUndefined)(this._pubId))(0,Le.isUndefined)(this._sysId)||(n+=" ",n=this.appendId("SYSTEM",this._sysId,n,r));else{if((0,Le.isUndefined)(this._sysId))throw new Error((0,Qe.getContext)(this.up())+": DTD system identifier is not undefined");n+=" ",n=this.appendId("PUBLIC",this._pubId,n,r),n=this.appendId("",this._sysId,n,r)}if(this._children.length!==0){n+=" [";for(var i=0,s=this._children;i<s.length;i++){var o=s[i];r.pretty&&(n+=r.newline+r.indent),n+=o.toString()}r.pretty&&(n+=r.newline),n+="]>"}else n+=">";return n},t.prototype.up=function(){return this._parent},t.prototype.appendId=function(e,r,n,i){if(n+=e+" ",i.doubleQuotes){if(this._validation&&r.indexOf('"')!==-1)throw new Error((0,Qe.getContext)(this.up())+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+='"'+r+'"'}else{if(this._validation&&r.indexOf("'")!==-1)throw new Error((0,Qe.getContext)(this)+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+="'"+r+"'"}return n},t}();ut.default=o1;function dd(t){for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(!(r===10||r===13||r===32||r===33||r>=35&&r<=37||r>=39&&r<=47||r>=48&&r<=57||r===58||r===59||r===61||r===63||r>=64&&r<=90||r===95||r>=97&&r<=122))return e+1===t.length,!1}return!0}ut.validatePubId=dd});var Hs=y(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});var hd=oe(),Us=K(),a1=function(){function t(e,r,n){this._validation=r,(0,Us.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Us.fixChar)(e);else if(this._validation&&!(0,Us.validateChar)(e))throw new Error((0,hd.getContext)(this.up())+": CDATA section"+(' "'+e+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)e=e.replace("]]>","\uFFFD\uFFFD\uFFFD");else if(this._validation&&e.indexOf("]]>")!==-1)throw new Error((0,hd.getContext)(this.up())+": CDATA section"+(' "'+e+'" should not contain the string')+" ']]>'");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<![CDATA["+this._charData+"]]>"},t.prototype.up=function(){return this._parent},t}();Xs.default=a1});var Js=y(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});var u1=oe(),Gs=En(),zs=K(),c1=function(){function t(e,r,n){this._validation=r,(0,zs.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,zs.fixChar)(e);else if(this._validation&&!(0,zs.validateChar)(e))throw new Error((0,u1.getContext)(this.up())+": character data"+('"'+e+'" should not contain characters not')+" allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this._charData;return e=(0,Gs.escapeAmpersands)(e),e=(0,Gs.escapeLeftAngleBrackets)(e),e=(0,Gs.escapeRightAngleBracketsInCdataTerminator)(e),e},t.prototype.up=function(){return this._parent},t}();Ws.default=c1});var Mn=y(mr=>{"use strict";var lt=mr&&mr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mr,"__esModule",{value:!0});var An=oe(),l1=Tt(),hr=K(),pd=lt(Dn()),f1=lt(Hs()),pr=lt(Js()),Rn=lt(Cn()),d1=lt(dr()),kn=lt(Pn()),h1=lt(fr()),p1=function(){function t(e,r,n){this._validation=r,(0,hr.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,(0,hr.isUndefined)(n.useSelfClosingTagIfEmpty)?this._useSelfClosingTagIfEmpty=!0:this._useSelfClosingTagIfEmpty=n.useSelfClosingTagIfEmpty,this._children=[],this._attributeNames=[],this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._replaceInvalidCharsInName){if(e=(0,hr.fixName)(e),e.length===0)throw new Error((0,An.getContext)(this.up())+": element name should not be empty")}else if(this._validation&&!(0,hr.validateName)(e))throw e.length===0?new Error((0,An.getContext)(this.up())+": element name should not be empty"):new Error((0,An.getContext)(this.up())+": element name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.attribute=function(e){if(this._validation&&this._attributeNames.indexOf(e.name)!==-1)throw new Error((0,An.getContext)(this.up())+': element "'+this.name+'" already contains an attribute with the'+(' name "'+e.name+'"'));var r=new pd.default(this,this._validation,e);return this._children.push(r),this._attributeNames.push(e.name),r},t.prototype.cdata=function(e){var r=new f1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charData=function(e){var r=new pr.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charRef=function(e){var r=new Rn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new d1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new t(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new kn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new h1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){return e===void 0&&(e={}),this.toStringWithIndent(e,"")},t.prototype.up=function(){return this._parent},t.prototype.toStringWithIndent=function(e,r){for(var n=new l1.StringOptions(e),i=r+n.indent,s="<"+this._name,o=[],a=0,u=this._children;a<u.length;a++){var h=u[a];h instanceof pd.default?s+=" "+h.toString(e):o.push(h)}if(o.length>0){for(var c="",p=0;p<o.length;p++){var g=o[p],m="";g instanceof t?m+=g.toStringWithIndent(n,i):m+=g.toString();var b=p>0?o[p-1]:void 0;g instanceof pr.default&&g.toString()===""||(n.pretty&&(this.allSameLineNodes(o)||p>0&&this.onSameLine(g,b)||(m=n.newline+i+m)),c+=m)}n.pretty&&(this.allSameLineNodes(o)||(c+=n.newline+r)),c.length===0&&this._useSelfClosingTagIfEmpty?s+="/>":s+=">"+c+"</"+this._name+">"}else this._useSelfClosingTagIfEmpty?s+="/>":s+="></"+this._name+">";return s},t.prototype.allSameLineNodes=function(e){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!(i instanceof Rn.default||i instanceof kn.default||i instanceof pr.default))return!1}return!0},t.prototype.onSameLine=function(e,r){return(e instanceof Rn.default||e instanceof kn.default||e instanceof pr.default)&&!(0,hr.isUndefined)(r)&&(r instanceof Rn.default||r instanceof kn.default||r instanceof pr.default)},t}();mr.default=p1});var oe=y(Nt=>{"use strict";var Tn=Nt&&Nt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.getContext=void 0;var m1=Tn(Dn()),g1=Tn(Nn()),y1=Tn(Fn()),v1=Tn(Mn());function qn(t){if(t instanceof m1.default)return qn(t.up())+(' > attribute "'+t.name+'"');if(t instanceof g1.default)return"in XML document";if(t instanceof y1.default)return qn(t.up())+" > DTD";if(t instanceof v1.default)return qn(t.up())+(' > element "'+t.name+'"');throw new Error("Unrecognized object of type "+Object.prototype.toString.call(t))}Nt.getContext=qn});var dr=y(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});var Vs=oe(),Ys=K(),b1=function(){function t(e,r,n){this._validation=r,(0,Ys.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Ys.fixChar)(e);else if(this._validation&&!(0,Ys.validateChar)(e))throw new Error((0,Vs.getContext)(this.up())+": comment content"+(' "'+e+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)e=e.replace("--","\uFFFD\uFFFD");else if(this._validation&&e.indexOf("--")!==-1)throw new Error((0,Vs.getContext)(this.up())+": comment content"+(' "'+e+'" should not contain the string')+" '--'");if(this._replaceInvalidCharsInCharData)e.lastIndexOf("-")===e.length-1&&(e=e.substr(0,e.length-1)+"\uFFFD");else if(this._validation&&e.lastIndexOf("-")===e.length-1)throw new Error((0,Vs.getContext)(this.up())+": comment content"+(' "'+e+'" should not end with the string')+" '-'");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!--"+this._charData+"-->"},t.prototype.up=function(){return this._parent},t}();Ks.default=b1});var eo=y(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});var Qs=oe(),w1=Tt(),gr=K(),_1=function(){function t(e,r,n){this._version="1.0",this._validation=r,this._parent=e,this.encoding=n.encoding,this.standalone=n.standalone,(0,gr.isUndefined)(n.version)||(this.version=n.version)}return Object.defineProperty(t.prototype,"encoding",{get:function(){return this._encoding},set:function(e){if(this._validation&&!(0,gr.isUndefined)(e)&&!x1(e))throw new Error((0,Qs.getContext)(this.up())+": declaration"+(" encoding attribute "+e+" should be a")+" valid encoding");this._encoding=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"standalone",{get:function(){return this._standalone},set:function(e){if(this._validation&&!(0,gr.isUndefined)(e)&&e!=="yes"&&e!=="no")throw new Error((0,Qs.getContext)(this.up())+": declaration"+(" standalone attribute "+e+" should")+" be the string 'yes' or the string 'no'");this._standalone=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},set:function(e){if(this._validation&&!S1(e))throw new Error((0,Qs.getContext)(this.up())+": declaration version"+(" attribute "+e+" should be a valid XML")+" version");this._version=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){e===void 0&&(e={});var r=new w1.StringOptions(e),n=r.doubleQuotes?'"':"'",i="<?xml version="+n+this._version+n;return(0,gr.isUndefined)(this._encoding)||(i+=" encoding="+n+this._encoding+n),(0,gr.isUndefined)(this._standalone)||(i+=" standalone="+n+this._standalone+n),i+="?>",i},t.prototype.up=function(){return this._parent},t}();Zs.default=_1;function x1(t){if(t.length===0)return!1;var e=t.charCodeAt(0);if(!(e>=65&&e<=90||e>=97&&e<=122))return!1;for(var r=1;r<t.length;r++){var n=t.charCodeAt(r);if(!(n===95||n===45||n===46||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122))return r+1===t.length,!1}return!0}function S1(t){for(var e=0;e<=9;e++)if(t==="1."+e)return!0;return!1}});var Nn=y(vr=>{"use strict";var br=vr&&vr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vr,"__esModule",{value:!0});var E1=Tt(),C1=K(),P1=br(dr()),md=br(eo()),gd=br(Fn()),yr=br(Mn()),D1=br(fr()),O1=function(){function t(e){this._children=[],this._validation=(0,C1.isUndefined)(e.validation)?!0:e.validation}return t.prototype.comment=function(e){var r=new P1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.decl=function(e){if(e===void 0&&(e={}),this._validation&&this._children.length!==0)throw new Error("in XML document: declaration must be the first child");var r=new md.default(this,this._validation,e);return this._children.push(r),r},t.prototype.dtd=function(e){var r=this._children.filter(function(i){return i instanceof yr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: DTD must precede the root element");var n=new gd.default(this,this._validation,e);return this._children.push(n),n},t.prototype.element=function(e){var r=this._children.filter(function(i){return i instanceof yr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: only one root element is permitted");var n=new yr.default(this,this._validation,e);return this._children.push(n),n},t.prototype.procInst=function(e){var r=new D1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=this._children.filter(function(h){return h instanceof yr.default});if(this._validation&&r.length!==1)throw new Error("in XML document: no more than one root element is permitted");for(var n=new E1.StringOptions(e),i="",s=0,o=this._children;s<o.length;s++){var a=o[s];a instanceof md.default||a instanceof gd.default||a instanceof yr.default?i+=a.toString(e):i+=a.toString(),n.pretty&&(i+=n.newline)}var u=i.length-n.newline.length;return i.substr(u)===n.newline&&(i=i.substr(0,u)),i},t}();vr.default=O1});var yd=y(R=>{"use strict";var ee=R&&R.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(R,"__esModule",{value:!0});R.document=R.XmlProcInst=R.XmlEntityRef=R.XmlElement=R.XmlDtdParamEntityRef=R.XmlDtdNotation=R.XmlDtdEntity=R.XmlDtdElement=R.XmlDtdAttlist=R.XmlDtd=R.XmlDocument=R.XmlDecl=R.XmlComment=R.XmlCharRef=R.XmlCharData=R.XmlCdata=R.XmlAttributeText=R.XmlAttribute=void 0;var I1=ee(Nn()),F1=Dn();Object.defineProperty(R,"XmlAttribute",{enumerable:!0,get:function(){return ee(F1).default}});var A1=Cs();Object.defineProperty(R,"XmlAttributeText",{enumerable:!0,get:function(){return ee(A1).default}});var R1=Hs();Object.defineProperty(R,"XmlCdata",{enumerable:!0,get:function(){return ee(R1).default}});var k1=Js();Object.defineProperty(R,"XmlCharData",{enumerable:!0,get:function(){return ee(k1).default}});var M1=Cn();Object.defineProperty(R,"XmlCharRef",{enumerable:!0,get:function(){return ee(M1).default}});var q1=dr();Object.defineProperty(R,"XmlComment",{enumerable:!0,get:function(){return ee(q1).default}});var T1=eo();Object.defineProperty(R,"XmlDecl",{enumerable:!0,get:function(){return ee(T1).default}});var N1=Nn();Object.defineProperty(R,"XmlDocument",{enumerable:!0,get:function(){return ee(N1).default}});var j1=Fn();Object.defineProperty(R,"XmlDtd",{enumerable:!0,get:function(){return ee(j1).default}});var L1=Rs();Object.defineProperty(R,"XmlDtdAttlist",{enumerable:!0,get:function(){return ee(L1).default}});var $1=Ms();Object.defineProperty(R,"XmlDtdElement",{enumerable:!0,get:function(){return ee($1).default}});var B1=Ts();Object.defineProperty(R,"XmlDtdEntity",{enumerable:!0,get:function(){return ee(B1).default}});var U1=js();Object.defineProperty(R,"XmlDtdNotation",{enumerable:!0,get:function(){return ee(U1).default}});var X1=$s();Object.defineProperty(R,"XmlDtdParamEntityRef",{enumerable:!0,get:function(){return ee(X1).default}});var H1=Mn();Object.defineProperty(R,"XmlElement",{enumerable:!0,get:function(){return ee(H1).default}});var G1=Pn();Object.defineProperty(R,"XmlEntityRef",{enumerable:!0,get:function(){return ee(G1).default}});var z1=fr();Object.defineProperty(R,"XmlProcInst",{enumerable:!0,get:function(){return ee(z1).default}});function W1(t){return t===void 0&&(t={}),new I1.default(t)}R.document=W1});var to=y(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.stringify=te.isMap=te.isSet=te.isFunction=te.isArray=te.isObject=te.isNull=te.isUndefined=void 0;function vd(t){return Object.prototype.toString.call(t)==="[object Undefined]"}te.isUndefined=vd;function bd(t){return Object.prototype.toString.call(t)==="[object Null]"}te.isNull=bd;function J1(t){return Object.prototype.toString.call(t)==="[object Object]"}te.isObject=J1;function V1(t){return Object.prototype.toString.call(t)==="[object Array]"}te.isArray=V1;function wd(t){return Object.prototype.toString.call(t)==="[object Function]"}te.isFunction=wd;function Y1(t){return Object.prototype.toString.call(t)==="[object Set]"}te.isSet=Y1;function K1(t){return Object.prototype.toString.call(t)==="[object Map]"}te.isMap=K1;function Q1(t){return!vd(t)&&!bd(t)&&wd(t?.toString)&&(t=t.toString()),String(t)}te.stringify=Q1});var Pd=y(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.WrapHandlers=Se.TypeHandlers=Se.FormatOptions=Se.DtdOptions=Se.DeclarationOptions=Se.Options=void 0;var je=to(),Z1=function(){function t(e){e===void 0&&(e={}),this.aliasString="=",this.attributeString="@",this.cdataInvalidChars=!1,this.cdataKeys=[],this.replaceInvalidChars=!1,this.useSelfClosingTagIfEmpty=!0,this.validation=!0,this.valueString="#",(0,je.isUndefined)(e.validation)||(this.validation=e.validation),(0,je.isUndefined)(e.aliasString)||(this.aliasString=e.aliasString),(0,je.isUndefined)(e.attributeString)||(this.attributeString=e.attributeString),(0,je.isUndefined)(e.cdataInvalidChars)||(this.cdataInvalidChars=e.cdataInvalidChars),(0,je.isUndefined)(e.cdataKeys)||(this.cdataKeys=e.cdataKeys),this.declaration=new _d(e.declaration),this.dtd=new xd(this.validation,e.dtd),this.format=new Sd(e.format),(0,je.isUndefined)(e.replaceInvalidChars)||(this.replaceInvalidChars=e.replaceInvalidChars),this.typeHandlers=new Ed(e.typeHandlers),(0,je.isUndefined)(e.useSelfClosingTagIfEmpty)||(this.useSelfClosingTagIfEmpty=e.useSelfClosingTagIfEmpty),(0,je.isUndefined)(e.valueString)||(this.valueString=e.valueString),this.wrapHandlers=new Cd(e.wrapHandlers)}return t}();Se.Options=Z1;var _d=function(){function t(e){e===void 0&&(e={}),this.include=!0,(0,je.isUndefined)(e.include)||(this.include=e.include),this.encoding=e.encoding,this.standalone=e.standalone,this.version=e.version}return t}();Se.DeclarationOptions=_d;var xd=function(){function t(e,r){if(r===void 0&&(r={}),this.include=!1,(0,je.isUndefined)(r.include)||(this.include=r.include),e&&(0,je.isUndefined)(r.name)&&this.include)throw new Error("options.dtd.name should be defined if options.dtd.include is true");this.name=r.name,this.sysId=r.sysId,this.pubId=r.pubId}return t}();Se.DtdOptions=xd;var Sd=function(){function t(e){e===void 0&&(e={}),this.doubleQuotes=e.doubleQuotes,this.indent=e.indent,this.newline=e.newline,this.pretty=e.pretty}return t}();Se.FormatOptions=Sd;var Ed=function(){function t(e){e===void 0&&(e={});for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this[r]=e[r])}return t}();Se.TypeHandlers=Ed;var Cd=function(){function t(e){e===void 0&&(e={});for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this[r]=e[r])}return t}();Se.WrapHandlers=Cd});var Rd=y(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.parse=Ze.parseToExistingElement=Ze.Absent=void 0;var Od=yd(),Id=Pd(),J=to(),ro=function(){function t(){}return Object.defineProperty(t,"instance",{get:function(){return t._instance},enumerable:!1,configurable:!0}),t._instance=new t,t}();Ze.Absent=ro;function no(t,e){var r=Object.prototype.toString.call(t),n;return Object.prototype.hasOwnProperty.call(e.typeHandlers,"*")&&(n=e.typeHandlers["*"]),Object.prototype.hasOwnProperty.call(e.typeHandlers,r)&&(n=e.typeHandlers[r]),n}function Fd(t,e,r){var n=function(o){return r.cdataInvalidChars&&(o.indexOf("<")!==-1||o.indexOf("&")!==-1)||r.cdataKeys.indexOf(e.name)!==-1||r.cdataKeys.indexOf("*")!==-1};if(e instanceof Od.XmlElement)if(n(t))for(var i=t.split("]]>"),s=0;s<i.length;s++)n(i[s])?e.cdata({charData:i[s],replaceInvalidCharsInCharData:r.replaceInvalidChars}):e.charData({charData:i[s],replaceInvalidCharsInCharData:r.replaceInvalidChars}),s<i.length-1&&e.charData({charData:"]]>",replaceInvalidCharsInCharData:r.replaceInvalidChars});else e.charData({charData:t,replaceInvalidCharsInCharData:r.replaceInvalidChars});else e.text({charData:t,replaceInvalidCharsInCharData:r.replaceInvalidChars})}function ev(t,e,r,n){var i=r.attribute({name:t,replaceInvalidCharsInName:n.replaceInvalidChars});Fd((0,J.stringify)(e),i,n)}function Dd(t,e,r,n){if(t===n.aliasString){r.name=(0,J.stringify)(e);return}if(t.indexOf(n.attributeString)===0&&(0,J.isObject)(e)){for(var i=0,s=Object.keys(e);i<s.length;i++){var o=s[i];ev(o,(0,J.stringify)(e[o]),r,n)}return}if(t.indexOf(n.valueString)===0){jn(t,(0,J.stringify)(e),r,n);return}var a=r;if(!(0,J.isArray)(e)&&!(0,J.isSet)(e)){var u=no(e,n);if(!(0,J.isUndefined)(u)&&u(e)===ro.instance)return;a=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}jn(t,e,a,n)}function tv(t,e,r){if((0,J.isMap)(t))t.forEach(function(o,a){Dd((0,J.stringify)(a),o,e,r)});else for(var n=0,i=Object.keys(t);n<i.length;n++){var s=i[n];Dd(s,t[s],e,r)}}function rv(t,e,r,n){var i;Object.prototype.hasOwnProperty.call(n.wrapHandlers,"*")&&(i=n.wrapHandlers["*"]),Object.prototype.hasOwnProperty.call(n.wrapHandlers,t)&&(i=n.wrapHandlers[t]);var s=t,o=r;if(!(0,J.isUndefined)(i)){var a=i(s,e);(0,J.isNull)(a)||(s=a,o=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty}))}e.forEach(function(u){var h=o;if(!(0,J.isArray)(u)&&!(0,J.isSet)(u)){var c=no(u,n);if(!(0,J.isUndefined)(c)&&c(u)===ro.instance)return;h=o.element({name:s,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}jn(s,u,h,n)})}function jn(t,e,r,n){var i=no(e,n);if((0,J.isUndefined)(i)||(e=i(e)),(0,J.isObject)(e)||(0,J.isMap)(e)){tv(e,r,n);return}if((0,J.isArray)(e)||(0,J.isSet)(e)){rv(t,e,r,n);return}Fd((0,J.stringify)(e),r,n)}function Ad(t,e,r){var n=new Id.Options(r);jn(t.name,e,t,n)}Ze.parseToExistingElement=Ad;function nv(t,e,r){var n=new Id.Options(r),i=new Od.XmlDocument({validation:n.validation});n.declaration.include&&i.decl(n.declaration),n.dtd.include&&i.dtd({name:n.dtd.name,pubId:n.dtd.pubId,sysId:n.dtd.sysId});var s=i.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty});return Ad(s,e,r),i.toString(n.format)}Ze.parse=nv});var du=z(mi()),hu=z(Xr()),_i=class{user;password;baseUrl;headers;constructor(){this.user=process.env.botEmail,this.password=process.env.botPassword,this.baseUrl=process.env.API_URL}async login(){try{let e=await(0,du.default)({url:`${this.baseUrl}/login_check`,method:"POST",headers:{"Content-Type":"application/json"},data:{username:this.user,password:this.password}});if(e.status===200){let{data:{token:r}}=e;this.headers={Authorization:"bearer "+r,"Cache-Control":"no-store"}}return this.headers}catch{console.error(hu.default.red(`
17
+ `,i)}while(n!==-1);return s+=t.substr(i),s};Xl.exports={stringReplaceAll:bg,stringEncaseCRLFWithFirstIndex:wg}});var Vl=y((Qb,Jl)=>{"use strict";var _g=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Gl=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,xg=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Sg=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Eg=new Map([["n",`
18
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Wl(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):Eg.get(t)||t}function Cg(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(xg))r.push(i[2].replace(Sg,(a,u,h)=>u?Wl(u):h));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function Pg(t){Gl.lastIndex=0;let e=[],r;for(;(r=Gl.exec(t))!==null;){let n=r[1];if(r[2]){let i=Cg(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function zl(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let[i,s]of Object.entries(r))if(Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}Jl.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(_g,(s,o,a,u,h,c)=>{if(o)i.push(Wl(o));else if(u){let p=i.join("");i=[],n.push(r.length===0?p:zl(t,r)(p)),r.push({inverse:a,styles:Pg(u)})}else if(h){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(zl(t,r)(i.join(""))),i=[],r.pop()}else i.push(c)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var rf=y((Zb,tf)=>{"use strict";var sr=Ul(),{stdout:Wi,stderr:Ji}=Kn(),{stringReplaceAll:Dg,stringEncaseCRLFWithFirstIndex:Og}=Hl(),{isArray:fn}=Array,Kl=["ansi","ansi","ansi256","ansi16m"],kt=Object.create(null),Ig=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Wi?Wi.level:0;t.level=e.level===void 0?r:e.level},Vi=class{constructor(e){return Ql(e)}},Ql=t=>{let e={};return Ig(e,t),e.template=(...r)=>ef(e.template,...r),Object.setPrototypeOf(e,dn.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=Vi,e.template};function dn(t){return Ql(t)}for(let[t,e]of Object.entries(sr))kt[t]={get(){let r=hn(this,Yi(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};kt.visible={get(){let t=hn(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Zl=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of Zl)kt[t]={get(){let{level:e}=this;return function(...r){let n=Yi(sr.color[Kl[e]][t](...r),sr.color.close,this._styler);return hn(this,n,this._isEmpty)}}};for(let t of Zl){let e="bg"+t[0].toUpperCase()+t.slice(1);kt[e]={get(){let{level:r}=this;return function(...n){let i=Yi(sr.bgColor[Kl[r]][t](...n),sr.bgColor.close,this._styler);return hn(this,i,this._isEmpty)}}}}var Fg=Object.defineProperties(()=>{},{...kt,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),Yi=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},hn=(t,e,r)=>{let n=(...i)=>fn(i[0])&&fn(i[0].raw)?Yl(n,ef(n,...i)):Yl(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,Fg),n._generator=t,n._styler=e,n._isEmpty=r,n},Yl=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=Dg(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
19
+ `);return s!==-1&&(e=Og(e,i,n,s)),n+e+i},zi,ef=(t,...e)=>{let[r]=e;if(!fn(r)||!fn(r.raw))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return zi===void 0&&(zi=Vl()),zi(t,i.join(""))};Object.defineProperties(dn.prototype,kt);var pn=dn();pn.supportsColor=Wi;pn.stderr=dn({level:Ji?Ji.level:0});pn.stderr.supportsColor=Ji;tf.exports=pn});var nf=y((Ki,Qi)=>{(function(t,e){typeof Ki=="object"&&typeof Qi<"u"?Qi.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.tinycolor=e())})(Ki,function(){"use strict";function t(l){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},t(l)}var e=/^\s+/,r=/\s+$/;function n(l,d){if(l=l||"",d=d||{},l instanceof n)return l;if(!(this instanceof n))return new n(l,d);var f=i(l);this._originalInput=l,this._r=f.r,this._g=f.g,this._b=f.b,this._a=f.a,this._roundA=Math.round(100*this._a)/100,this._format=d.format||f.format,this._gradientType=d.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=f.ok}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var d=this.toRgb();return(d.r*299+d.g*587+d.b*114)/1e3},getLuminance:function(){var d=this.toRgb(),f,v,_,w,T,j;return f=d.r/255,v=d.g/255,_=d.b/255,f<=.03928?w=f/12.92:w=Math.pow((f+.055)/1.055,2.4),v<=.03928?T=v/12.92:T=Math.pow((v+.055)/1.055,2.4),_<=.03928?j=_/12.92:j=Math.pow((_+.055)/1.055,2.4),.2126*w+.7152*T+.0722*j},setAlpha:function(d){return this._a=H(d),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var d=u(this._r,this._g,this._b);return{h:d.h*360,s:d.s,v:d.v,a:this._a}},toHsvString:function(){var d=u(this._r,this._g,this._b),f=Math.round(d.h*360),v=Math.round(d.s*100),_=Math.round(d.v*100);return this._a==1?"hsv("+f+", "+v+"%, "+_+"%)":"hsva("+f+", "+v+"%, "+_+"%, "+this._roundA+")"},toHsl:function(){var d=o(this._r,this._g,this._b);return{h:d.h*360,s:d.s,l:d.l,a:this._a}},toHslString:function(){var d=o(this._r,this._g,this._b),f=Math.round(d.h*360),v=Math.round(d.s*100),_=Math.round(d.l*100);return this._a==1?"hsl("+f+", "+v+"%, "+_+"%)":"hsla("+f+", "+v+"%, "+_+"%, "+this._roundA+")"},toHex:function(d){return c(this._r,this._g,this._b,d)},toHexString:function(d){return"#"+this.toHex(d)},toHex8:function(d){return p(this._r,this._g,this._b,this._a,d)},toHex8String:function(d){return"#"+this.toHex8(d)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(I(this._r,255)*100)+"%",g:Math.round(I(this._g,255)*100)+"%",b:Math.round(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(I(this._r,255)*100)+"%, "+Math.round(I(this._g,255)*100)+"%, "+Math.round(I(this._b,255)*100)+"%)":"rgba("+Math.round(I(this._r,255)*100)+"%, "+Math.round(I(this._g,255)*100)+"%, "+Math.round(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:q[c(this._r,this._g,this._b,!0)]||!1},toFilter:function(d){var f="#"+g(this._r,this._g,this._b,this._a),v=f,_=this._gradientType?"GradientType = 1, ":"";if(d){var w=n(d);v="#"+g(w._r,w._g,w._b,w._a)}return"progid:DXImageTransform.Microsoft.gradient("+_+"startColorstr="+f+",endColorstr="+v+")"},toString:function(d){var f=!!d;d=d||this._format;var v=!1,_=this._a<1&&this._a>=0,w=!f&&_&&(d==="hex"||d==="hex6"||d==="hex3"||d==="hex4"||d==="hex8"||d==="name");return w?d==="name"&&this._a===0?this.toName():this.toRgbString():(d==="rgb"&&(v=this.toRgbString()),d==="prgb"&&(v=this.toPercentageRgbString()),(d==="hex"||d==="hex6")&&(v=this.toHexString()),d==="hex3"&&(v=this.toHexString(!0)),d==="hex4"&&(v=this.toHex8String(!0)),d==="hex8"&&(v=this.toHex8String()),d==="name"&&(v=this.toName()),d==="hsl"&&(v=this.toHslString()),d==="hsv"&&(v=this.toHsvString()),v||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(d,f){var v=d.apply(null,[this].concat([].slice.call(f)));return this._r=v._r,this._g=v._g,this._b=v._b,this.setAlpha(v._a),this},lighten:function(){return this._applyModification(P,arguments)},brighten:function(){return this._applyModification(F,arguments)},darken:function(){return this._applyModification(N,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(B,arguments)},_applyCombination:function(d,f){return d.apply(null,[this].concat([].slice.call(f)))},analogous:function(){return this._applyCombination(Ie,arguments)},complement:function(){return this._applyCombination(X,arguments)},monochromatic:function(){return this._applyCombination(Q,arguments)},splitcomplement:function(){return this._applyCombination(ve,arguments)},triad:function(){return this._applyCombination(Y,[3])},tetrad:function(){return this._applyCombination(Y,[4])}},n.fromRatio=function(l,d){if(t(l)=="object"){var f={};for(var v in l)l.hasOwnProperty(v)&&(v==="a"?f[v]=l[v]:f[v]=A(l[v]));l=f}return n(l,d)};function i(l){var d={r:0,g:0,b:0},f=1,v=null,_=null,w=null,T=!1,j=!1;return typeof l=="string"&&(l=dt(l)),t(l)=="object"&&(ae(l.r)&&ae(l.g)&&ae(l.b)?(d=s(l.r,l.g,l.b),T=!0,j=String(l.r).substr(-1)==="%"?"prgb":"rgb"):ae(l.h)&&ae(l.s)&&ae(l.v)?(v=A(l.s),_=A(l.v),d=h(l.h,v,_),T=!0,j="hsv"):ae(l.h)&&ae(l.s)&&ae(l.l)&&(v=A(l.s),w=A(l.l),d=a(l.h,v,w),T=!0,j="hsl"),l.hasOwnProperty("a")&&(f=l.a)),f=H(f),{ok:T,format:l.format||j,r:Math.min(255,Math.max(d.r,0)),g:Math.min(255,Math.max(d.g,0)),b:Math.min(255,Math.max(d.b,0)),a:f}}function s(l,d,f){return{r:I(l,255)*255,g:I(d,255)*255,b:I(f,255)*255}}function o(l,d,f){l=I(l,255),d=I(d,255),f=I(f,255);var v=Math.max(l,d,f),_=Math.min(l,d,f),w,T,j=(v+_)/2;if(v==_)w=T=0;else{var z=v-_;switch(T=j>.5?z/(2-v-_):z/(v+_),v){case l:w=(d-f)/z+(d<f?6:0);break;case d:w=(f-l)/z+2;break;case f:w=(l-d)/z+4;break}w/=6}return{h:w,s:T,l:j}}function a(l,d,f){var v,_,w;l=I(l,360),d=I(d,100),f=I(f,100);function T(we,ue,Me){return Me<0&&(Me+=1),Me>1&&(Me-=1),Me<1/6?we+(ue-we)*6*Me:Me<1/2?ue:Me<2/3?we+(ue-we)*(2/3-Me)*6:we}if(d===0)v=_=w=f;else{var j=f<.5?f*(1+d):f+d-f*d,z=2*f-j;v=T(z,j,l+1/3),_=T(z,j,l),w=T(z,j,l-1/3)}return{r:v*255,g:_*255,b:w*255}}function u(l,d,f){l=I(l,255),d=I(d,255),f=I(f,255);var v=Math.max(l,d,f),_=Math.min(l,d,f),w,T,j=v,z=v-_;if(T=v===0?0:z/v,v==_)w=0;else{switch(v){case l:w=(d-f)/z+(d<f?6:0);break;case d:w=(f-l)/z+2;break;case f:w=(l-d)/z+4;break}w/=6}return{h:w,s:T,v:j}}function h(l,d,f){l=I(l,360)*6,d=I(d,100),f=I(f,100);var v=Math.floor(l),_=l-v,w=f*(1-d),T=f*(1-_*d),j=f*(1-(1-_)*d),z=v%6,we=[f,T,w,w,j,f][z],ue=[j,f,f,T,w,w][z],Me=[w,w,j,f,f,T][z];return{r:we*255,g:ue*255,b:Me*255}}function c(l,d,f,v){var _=[C(Math.round(l).toString(16)),C(Math.round(d).toString(16)),C(Math.round(f).toString(16))];return v&&_[0].charAt(0)==_[0].charAt(1)&&_[1].charAt(0)==_[1].charAt(1)&&_[2].charAt(0)==_[2].charAt(1)?_[0].charAt(0)+_[1].charAt(0)+_[2].charAt(0):_.join("")}function p(l,d,f,v,_){var w=[C(Math.round(l).toString(16)),C(Math.round(d).toString(16)),C(Math.round(f).toString(16)),C(ke(v))];return _&&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[3].charAt(0)==w[3].charAt(1)?w[0].charAt(0)+w[1].charAt(0)+w[2].charAt(0)+w[3].charAt(0):w.join("")}function g(l,d,f,v){var _=[C(ke(v)),C(Math.round(l).toString(16)),C(Math.round(d).toString(16)),C(Math.round(f).toString(16))];return _.join("")}n.equals=function(l,d){return!l||!d?!1:n(l).toRgbString()==n(d).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function m(l,d){d=d===0?0:d||10;var f=n(l).toHsl();return f.s-=d/100,f.s=$(f.s),n(f)}function b(l,d){d=d===0?0:d||10;var f=n(l).toHsl();return f.s+=d/100,f.s=$(f.s),n(f)}function x(l){return n(l).desaturate(100)}function P(l,d){d=d===0?0:d||10;var f=n(l).toHsl();return f.l+=d/100,f.l=$(f.l),n(f)}function F(l,d){d=d===0?0:d||10;var f=n(l).toRgb();return f.r=Math.max(0,Math.min(255,f.r-Math.round(255*-(d/100)))),f.g=Math.max(0,Math.min(255,f.g-Math.round(255*-(d/100)))),f.b=Math.max(0,Math.min(255,f.b-Math.round(255*-(d/100)))),n(f)}function N(l,d){d=d===0?0:d||10;var f=n(l).toHsl();return f.l-=d/100,f.l=$(f.l),n(f)}function B(l,d){var f=n(l).toHsl(),v=(f.h+d)%360;return f.h=v<0?360+v:v,n(f)}function X(l){var d=n(l).toHsl();return d.h=(d.h+180)%360,n(d)}function Y(l,d){if(isNaN(d)||d<=0)throw new Error("Argument to polyad must be a positive number");for(var f=n(l).toHsl(),v=[n(l)],_=360/d,w=1;w<d;w++)v.push(n({h:(f.h+w*_)%360,s:f.s,l:f.l}));return v}function ve(l){var d=n(l).toHsl(),f=d.h;return[n(l),n({h:(f+72)%360,s:d.s,l:d.l}),n({h:(f+216)%360,s:d.s,l:d.l})]}function Ie(l,d,f){d=d||6,f=f||30;var v=n(l).toHsl(),_=360/f,w=[n(l)];for(v.h=(v.h-(_*d>>1)+720)%360;--d;)v.h=(v.h+_)%360,w.push(n(v));return w}function Q(l,d){d=d||6;for(var f=n(l).toHsv(),v=f.h,_=f.s,w=f.v,T=[],j=1/d;d--;)T.push(n({h:v,s:_,v:w})),w=(w+j)%1;return T}n.mix=function(l,d,f){f=f===0?0:f||50;var v=n(l).toRgb(),_=n(d).toRgb(),w=f/100,T={r:(_.r-v.r)*w+v.r,g:(_.g-v.g)*w+v.g,b:(_.b-v.b)*w+v.b,a:(_.a-v.a)*w+v.a};return n(T)},n.readability=function(l,d){var f=n(l),v=n(d);return(Math.max(f.getLuminance(),v.getLuminance())+.05)/(Math.min(f.getLuminance(),v.getLuminance())+.05)},n.isReadable=function(l,d,f){var v=n.readability(l,d),_,w;switch(w=!1,_=be(f),_.level+_.size){case"AAsmall":case"AAAlarge":w=v>=4.5;break;case"AAlarge":w=v>=3;break;case"AAAsmall":w=v>=7;break}return w},n.mostReadable=function(l,d,f){var v=null,_=0,w,T,j,z;f=f||{},T=f.includeFallbackColors,j=f.level,z=f.size;for(var we=0;we<d.length;we++)w=n.readability(l,d[we]),w>_&&(_=w,v=n(d[we]));return n.isReadable(l,v,{level:j,size:z})||!T?v:(f.includeFallbackColors=!1,n.mostReadable(l,["#fff","#000"],f))};var D=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},q=n.hexNames=k(D);function k(l){var d={};for(var f in l)l.hasOwnProperty(f)&&(d[l[f]]=f);return d}function H(l){return l=parseFloat(l),(isNaN(l)||l<0||l>1)&&(l=1),l}function I(l,d){L(l)&&(l="100%");var f=M(l);return l=Math.min(d,Math.max(0,parseFloat(l))),f&&(l=parseInt(l*d,10)/100),Math.abs(l-d)<1e-6?1:l%d/parseFloat(d)}function $(l){return Math.min(1,Math.max(0,l))}function O(l){return parseInt(l,16)}function L(l){return typeof l=="string"&&l.indexOf(".")!=-1&&parseFloat(l)===1}function M(l){return typeof l=="string"&&l.indexOf("%")!=-1}function C(l){return l.length==1?"0"+l:""+l}function A(l){return l<=1&&(l=l*100+"%"),l}function ke(l){return Math.round(parseFloat(l)*255).toString(16)}function Le(l){return O(l)/255}var Z=function(){var l="[-\\+]?\\d+%?",d="[-\\+]?\\d*\\.\\d+%?",f="(?:"+d+")|(?:"+l+")",v="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?",_="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?";return{CSS_UNIT:new RegExp(f),rgb:new RegExp("rgb"+v),rgba:new RegExp("rgba"+_),hsl:new RegExp("hsl"+v),hsla:new RegExp("hsla"+_),hsv:new RegExp("hsv"+v),hsva:new RegExp("hsva"+_),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ae(l){return!!Z.CSS_UNIT.exec(l)}function dt(l){l=l.replace(e,"").replace(r,"").toLowerCase();var d=!1;if(D[l])l=D[l],d=!0;else if(l=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var f;return(f=Z.rgb.exec(l))?{r:f[1],g:f[2],b:f[3]}:(f=Z.rgba.exec(l))?{r:f[1],g:f[2],b:f[3],a:f[4]}:(f=Z.hsl.exec(l))?{h:f[1],s:f[2],l:f[3]}:(f=Z.hsla.exec(l))?{h:f[1],s:f[2],l:f[3],a:f[4]}:(f=Z.hsv.exec(l))?{h:f[1],s:f[2],v:f[3]}:(f=Z.hsva.exec(l))?{h:f[1],s:f[2],v:f[3],a:f[4]}:(f=Z.hex8.exec(l))?{r:O(f[1]),g:O(f[2]),b:O(f[3]),a:Le(f[4]),format:d?"name":"hex8"}:(f=Z.hex6.exec(l))?{r:O(f[1]),g:O(f[2]),b:O(f[3]),format:d?"name":"hex"}:(f=Z.hex4.exec(l))?{r:O(f[1]+""+f[1]),g:O(f[2]+""+f[2]),b:O(f[3]+""+f[3]),a:Le(f[4]+""+f[4]),format:d?"name":"hex8"}:(f=Z.hex3.exec(l))?{r:O(f[1]+""+f[1]),g:O(f[2]+""+f[2]),b:O(f[3]+""+f[3]),format:d?"name":"hex"}:!1}function be(l){var d,f;return l=l||{level:"AA",size:"small"},d=(l.level||"AA").toUpperCase(),f=(l.size||"small").toLowerCase(),d!=="AA"&&d!=="AAA"&&(d="AA"),f!=="small"&&f!=="large"&&(f="small"),{level:d,size:f}}return n})});var ff=y((e2,lf)=>{var or=nf(),uf={r:256,g:256,b:256,a:1},cf={h:360,s:1,v:1,a:1};function es(t,e,r){let n={};for(let i in t)t.hasOwnProperty(i)&&(n[i]=r===0?0:(e[i]-t[i])/r);return n}function ts(t,e,r,n){let i={};for(let s in e)e.hasOwnProperty(s)&&(i[s]=t[s]*r+e[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function Zi(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=es(n,i,r),o=[t.color];for(let a=1;a<r;a++){let u=ts(s,n,a,uf);o.push(or(u))}return o}function sf(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return Zi(t,e,r);let o;if(typeof n=="boolean")o=n;else{let c=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&c||n==="short"&&!c}let a=es(i,s,r),u=[t.color],h;i.h<=s.h&&!o||i.h>=s.h&&o?h=s.h-i.h:o?h=360-s.h+i.h:h=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(h)/r;for(let c=1;c<r;c++){let p=ts(a,i,c,cf);u.push(or(p))}return u}function of(t,e){let r=t.length;if(e=parseInt(e,10),isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==e;)if(i<e){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function af(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let u=0,h=t.length;u<h-1;u++)if(e>=t[u].pos&&e<t[u+1].pos){i=t[u],s=t[u+1];break}i||(i=s=t[t.length-1]);let o=es(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=ts(o,i.color[r](),(e-i.pos)*100,n);return or(a)}var Mt=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,n=e.length,i=-1,s=!1;this.stops=e.map((o,a)=>{let u=o.pos!==void 0;if(r^u)throw new Error("Cannot mix positionned and not posionned color stops");if(u){let h=o.color!==void 0;if(!h&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!h,o={color:h?or(o.color):null,colorLess:!h,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:or(o.color!==void 0?o.color:o),pos:a/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new Mt(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(n=>{e.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new Mt(e.concat(r.reverse()))}rgb(e){let r=of(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Zi(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=Zi(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(e,r){let n=of(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=sf(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let a=sf(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let n=e+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(e){return af(this.stops,e,"toRgb",uf)}hsvAt(e){return af(this.stops,e,"toHsv",cf)}};lf.exports=function(t){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');t=arguments[0]}else t=Array.prototype.slice.call(arguments);return new Mt(t)}});var gf=y((t2,mn)=>{"use strict";var hf=rf(),Ag=ff(),df=/\s/g;function rs(...t){let e=Ag.apply(this,t),r=(n,i)=>Rg(n?n.toString():"",e,i);return r.multiline=(n,i)=>kg(n?n.toString():"",e,i),r}var pf=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function Rg(t,e,r){let n=mf(r),i=Math.max(t.replace(df,"").length,e.stops.length),s=pf(e,n,i),o="";for(let a of t)o+=a.match(df)?a:hf.hex(s.shift().toHex())(a);return o}function kg(t,e,r){let n=mf(r),i=t.split(`
20
+ `),s=Math.max.apply(null,i.map(u=>u.length).concat([e.stops.length])),o=pf(e,n,s),a=[];for(let u of i){let h=o.slice(0),c="";for(let p of u)c+=hf.hex(h.shift().toHex())(p);a.push(c)}return a.join(`
21
+ `)}function mf(t){let e={interpolation:"rgb",hsvSpin:"short",...t};if(t!==void 0&&typeof t!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof t}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof e.hsvSpin}\``);return e}var ar={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"}}};mn.exports=rs;for(let t in ar)mn.exports[t]=e=>new rs(ar[t].colors)(e,ar[t].options),mn.exports[t].multiline=e=>new rs(ar[t].colors).multiline(e,ar[t].options)});var vf=y((r2,yf)=>{var ns=class{constructor(e){this.value=e,this.next=void 0}},is=class{constructor(){this.clear()}enqueue(e){let r=new ns(e);this._head?(this._tail.next=r,this._tail=r):(this._head=r,this._tail=r),this._size++}dequeue(){let e=this._head;if(e)return this._head=this._head.next,this._size--,e.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let e=this._head;for(;e;)yield e.value,e=e.next}};yf.exports=is});var ss=y((n2,bf)=>{"use strict";var Mg=vf(),qg=t=>{if(!((Number.isInteger(t)||t===1/0)&&t>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let e=new Mg,r=0,n=()=>{r--,e.size>0&&e.dequeue()()},i=async(a,u,...h)=>{r++;let c=(async()=>a(...h))();u(c);try{await c}catch{}n()},s=(a,u,...h)=>{e.enqueue(i.bind(null,a,u,...h)),(async()=>(await Promise.resolve(),r<t&&e.size>0&&e.dequeue()()))()},o=(a,...u)=>new Promise(h=>{s(a,h,...u)});return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),o};bf.exports=qg});var xf=y((i2,_f)=>{"use strict";var wf=ss(),gn=class extends Error{constructor(e){super(),this.value=e}},Tg=async(t,e)=>e(await t),Ng=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new gn(e[0]);return!1},jg=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=wf(r.concurrency),i=[...t].map(o=>[o,n(Tg,o,e)]),s=wf(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(Ng,o)))}catch(o){if(o instanceof gn)return o.value;throw o}};_f.exports=jg});var Of=y((s2,os)=>{"use strict";var Sf=require("path"),yn=require("fs"),{promisify:Ef}=require("util"),Lg=xf(),$g=Ef(yn.stat),Bg=Ef(yn.lstat),Cf={directory:"isDirectory",file:"isFile"};function Pf({type:t}){if(!(t in Cf))throw new Error(`Invalid type specified: ${t}`)}var Df=(t,e)=>t===void 0||e[Cf[t]]();os.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},Pf(e);let r=e.allowSymlinks?$g:Bg;return Lg(t,async n=>{try{let i=await r(Sf.resolve(e.cwd,n));return Df(e.type,i)}catch{return!1}},e)};os.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},Pf(e);let r=e.allowSymlinks?yn.statSync:yn.lstatSync;for(let n of t)try{let i=r(Sf.resolve(e.cwd,n));if(Df(e.type,i))return n}catch{}}});var Ff=y((o2,as)=>{"use strict";var If=require("fs"),{promisify:Ug}=require("util"),Xg=Ug(If.access);as.exports=async t=>{try{return await Xg(t),!0}catch{return!1}};as.exports.sync=t=>{try{return If.accessSync(t),!0}catch{return!1}}});var Rf=y((a2,qt)=>{"use strict";var Ye=require("path"),vn=Of(),Af=Ff(),us=Symbol("findUp.stop");qt.exports=async(t,e={})=>{let r=Ye.resolve(e.cwd||""),{root:n}=Ye.parse(r),i=[].concat(t),s=async o=>{if(typeof t!="function")return vn(i,o);let a=await t(o.cwd);return typeof a=="string"?vn([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===us)return;if(o)return Ye.resolve(r,o);if(r===n)return;r=Ye.dirname(r)}};qt.exports.sync=(t,e={})=>{let r=Ye.resolve(e.cwd||""),{root:n}=Ye.parse(r),i=[].concat(t),s=o=>{if(typeof t!="function")return vn.sync(i,o);let a=t(o.cwd);return typeof a=="string"?vn.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===us)return;if(o)return Ye.resolve(r,o);if(r===n)return;r=Ye.dirname(r)}};qt.exports.exists=Af;qt.exports.sync.exists=Af.sync;qt.exports.stop=us});var qf=y((u2,cs)=>{"use strict";var kf=require("path"),Mf=Rf(),Hg=async t=>{let e=await Mf("package.json",{cwd:t});return e&&kf.dirname(e)};cs.exports=Hg;cs.exports.sync=t=>{let e=Mf.sync("package.json",{cwd:t});return e&&kf.dirname(e)}});var K=y(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.isUndefined=Ee.fixName=Ee.validateName=Ee.validateSingleChar=Ee.fixChar=Ee.validateChar=void 0;function fy(t){for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(!(r===9||r===10||r===13||r>=32&&r<=55295||r>=57344&&r<=65533)){if(e+1===t.length)return!1;var n=t.charCodeAt(e+1);if(r>=55296&&r<=56319&&n>=56320&&n<=57343){e++;continue}return!1}}return!0}Ee.validateChar=fy;function dy(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r);if(n===9||n===10||n===13||n>=32&&n<=55295||n>=57344&&n<=65533){e+=t[r];continue}if(r+1===t.length)return e+="\uFFFD",e;var i=t.charCodeAt(r+1);if(n>=55296&&n<=56319&&i>=56320&&i<=57343){e+=t[r]+t[r+1],r++;continue}e+="\uFFFD"}return e}Ee.fixChar=dy;function hy(t){if(t.length===0)return!1;var e=t.charCodeAt(0);if(t.length===1)return e===9||e===10||e===13||e>=32&&e<=55295||e>=57344&&e<=65533;if(t.length!==2)return!1;var r=t.charCodeAt(1);return e>=55296&&e<=56319&&r>=56320&&r<=57343}Ee.validateSingleChar=hy;function py(t){if(t.length===0)return!1;var e=t.charCodeAt(0),r=e===58||e===95||e>=65&&e<=90||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533;if(t.length===1)return r;var n=t.charCodeAt(1),i=e>=55296&&e<=56191&&n>=56320&&n<=57343;if(!r&&!i)return!1;for(var s=i?2:1,o=s;o<t.length;o++){var a=t.charCodeAt(o);if(!(a===58||a===95||a===45||a===46||a===183||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=767||a>=768&&a<=879||a>=880&&a<=893||a>=895&&a<=8191||a>=8204&&a<=8205||a>=8255&&a<=8256||a>=8304&&a<=8591||a>=11264&&a<=12271||a>=12289&&a<=55295||a>=63744&&a<=64975||a>=65008&&a<=65533)){if(o+1===t.length)return!1;var u=t.charCodeAt(o+1);if(a>=55296&&a<=56191&&u>=56320&&u<=57343){o++;continue}return!1}}return!0}Ee.validateName=py;function my(t){var e="";if(t.length===0)return e;var r=t.charCodeAt(0),n=r===58||r===95||r>=65&&r<=90||r>=97&&r<=122||r>=192&&r<=214||r>=216&&r<=246||r>=248&&r<=767||r>=880&&r<=893||r>=895&&r<=8191||r>=8204&&r<=8205||r>=8304&&r<=8591||r>=11264&&r<=12271||r>=12289&&r<=55295||r>=63744&&r<=64975||r>=65008&&r<=65533;if(t.length===1)return n?e=t[0]:e="\uFFFD",e;var i=t.charCodeAt(1),s=r>=55296&&r<=56191&&i>=56320&&i<=57343;s?e=t[0]+t[1]:n?e=t[0]:e="\uFFFD";for(var o=s?2:1,a=o;a<t.length;a++){var u=t.charCodeAt(a);if(u===58||u===95||u===45||u===46||u===183||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||u>=192&&u<=214||u>=216&&u<=246||u>=248&&u<=767||u>=768&&u<=879||u>=880&&u<=893||u>=895&&u<=8191||u>=8204&&u<=8205||u>=8255&&u<=8256||u>=8304&&u<=8591||u>=11264&&u<=12271||u>=12289&&u<=55295||u>=63744&&u<=64975||u>=65008&&u<=65533){e+=t[a];continue}if(a+1===t.length)return e+="\uFFFD",e;var h=t.charCodeAt(a+1);if(u>=55296&&u<=56191&&h>=56320&&h<=57343){e+=t[a]+t[a+1],a++;continue}e+="\uFFFD"}return e}Ee.fixName=my;function gy(t){return Object.prototype.toString.call(t)==="[object Undefined]"}Ee.isUndefined=gy});var Nt=y(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.StringOptions=void 0;var xn=K(),yy=function(){function t(e){this.doubleQuotes=!1,this.indent=" ",this.newline=`
22
+ `,this.pretty=!0,(0,xn.isUndefined)(e.doubleQuotes)||(this.doubleQuotes=e.doubleQuotes),(0,xn.isUndefined)(e.indent)||(this.indent=e.indent),(0,xn.isUndefined)(e.newline)||(this.newline=e.newline),(0,xn.isUndefined)(e.pretty)||(this.pretty=e.pretty)}return t}();Sn.StringOptions=yy});var En=y(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.escapeDoubleQuotes=Re.escapeSingleQuotes=Re.escapeRightAngleBracketsInCdataTerminator=Re.escapeLeftAngleBrackets=Re.escapeAmpersands=void 0;function vy(t){return t.replace(/&/g,"&amp;")}Re.escapeAmpersands=vy;function by(t){return t.replace(/</g,"&lt;")}Re.escapeLeftAngleBrackets=by;function wy(t){return t.replace(/]]>/g,"]]&gt;")}Re.escapeRightAngleBracketsInCdataTerminator=wy;function _y(t){return t.replace(/'/g,"&apos;")}Re.escapeSingleQuotes=_y;function xy(t){return t.replace(/"/g,"&quot;")}Re.escapeDoubleQuotes=xy});var Cs=y(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});var Sy=oe(),ad=En(),Ss=K(),Ey=function(){function t(e,r,n){this._validation=r,(0,Ss.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Ss.fixChar)(e);else if(this._validation&&!(0,Ss.validateChar)(e))throw new Error((0,Sy.getContext)(this.up())+": attribute text"+(' "'+e+'" should not contain characters not')+" allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this._charData;return e=(0,ad.escapeAmpersands)(e),e=(0,ad.escapeLeftAngleBrackets)(e),e},t.prototype.up=function(){return this._parent},t}();Es.default=Ey});var Cn=y(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});var ud=oe(),cd=K(),Cy=function(){function t(e,r,n){this._hex=!1,this._validation=r,this._parent=e,this.char=n.char,(0,cd.isUndefined)(n.hex)||(this.hex=n.hex)}return Object.defineProperty(t.prototype,"char",{get:function(){return this._char},set:function(e){if(this._validation&&!(0,cd.validateSingleChar)(e))throw new Error((0,ud.getContext)(this.up())+": character reference"+(' "'+e+'" should reference a single character,')+" and this character should be allowed in XML");this._char=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hex",{get:function(){return this._hex},set:function(e){this._hex=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e;if(this._char.length===1)e=this._char.charCodeAt(0);else{var r=this._char.charCodeAt(0);if(r>=55296&&r<=56319&&this._char.length>1){var n=this._char.charCodeAt(1);if(n>=56320&&n<=57343)e=(r-55296)*1024+n-56320+65536;else throw new Error((0,ud.getContext)(this.up())+": character"+(' reference "'+this.char+'" should')+" reference a valid Unicode character")}else e=r}return this._hex?"&#x"+e.toString(16)+";":"&#"+e+";"},t.prototype.up=function(){return this._parent},t}();Ps.default=Cy});var Pn=y(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});var Py=oe(),Dy=K(),Oy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,Dy.validateName)(e))throw new Error((0,Py.getContext)(this.up())+": entity reference name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"&"+this._name+";"},t.prototype.up=function(){return this._parent},t}();Ds.default=Oy});var Dn=y(lr=>{"use strict";var Fs=lr&&lr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(lr,"__esModule",{value:!0});var Os=oe(),ld=En(),Iy=Nt(),Is=K(),Fy=Fs(Cs()),Ay=Fs(Cn()),Ry=Fs(Pn()),ky=function(){function t(e,r,n){this._validation=r,(0,Is.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,this._children=[],this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._replaceInvalidCharsInName){if(e=(0,Is.fixName)(e),e.length===0)throw new Error((0,Os.getContext)(this.up())+": attribute name should not be empty")}else if(this._validation&&!(0,Is.validateName)(e))throw e.length===0?new Error((0,Os.getContext)(this.up())+": attribute name should not be empty"):new Error((0,Os.getContext)(this.up())+": attribute name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.charRef=function(e){var r=new Ay.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new Ry.default(this,this._validation,e);return this._children.push(r),r},t.prototype.text=function(e){var r=new Fy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});for(var r=new Iy.StringOptions(e),n=r.doubleQuotes?'"':"'",i=this._name+"="+n,s=0,o=this._children;s<o.length;s++){var a=o[s];r.doubleQuotes?i+=(0,ld.escapeDoubleQuotes)(a.toString()):i+=(0,ld.escapeSingleQuotes)(a.toString())}return i+=n,i},t.prototype.up=function(){return this._parent},t}();lr.default=ky});var Rs=y(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});var My=oe(),qy=K(),Ty=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,qy.validateChar)(e))throw new Error((0,My.getContext)(this.up())+": attribute-list"+(' declaration "'+e+'" should not contain')+" characters not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ATTLIST "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();As.default=Ty});var Ms=y(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});var Ny=oe(),jy=K(),Ly=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,jy.validateChar)(e))throw new Error((0,Ny.getContext)(this.up())+": element declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ELEMENT "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();ks.default=Ly});var Ts=y(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});var $y=oe(),By=K(),Uy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,By.validateChar)(e))throw new Error((0,$y.getContext)(this.up())+": entity declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ENTITY "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();qs.default=Uy});var js=y(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});var Xy=oe(),Hy=K(),Gy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,Hy.validateChar)(e))throw new Error((0,Xy.getContext)(this.up())+": notation declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!NOTATION "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Ns.default=Gy});var $s=y(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});var zy=oe(),Wy=K(),Jy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,Wy.validateName)(e))throw new Error((0,zy.getContext)(this.up())+": parameter entity"+(' reference name "'+e+'" should not contain')+" characters not allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"%"+this._name+";"},t.prototype.up=function(){return this._parent},t}();Ls.default=Jy});var fr=y(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});var On=oe(),In=K(),Vy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.content=n.content,this.target=n.target}return Object.defineProperty(t.prototype,"content",{get:function(){return this._content},set:function(e){if(!(0,In.isUndefined)(e)){if(this._validation&&!(0,In.validateChar)(e))throw new Error((0,On.getContext)(this.up())+": processing"+(' instruction content "'+e+'" should')+" not contain characters not allowed in XML");if(this._validation&&e.indexOf("?>")!==-1)throw new Error((0,On.getContext)(this.up())+": processing"+(' instruction content "'+e+'" should')+" not contain the string '?>'")}this._content=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){return this._target},set:function(e){if(this._validation&&!(0,In.validateName)(e))throw new Error((0,On.getContext)(this.up())+": processing"+(' instruction target "'+e+'" should')+" not contain characters not allowed in XML names");if(this._validation&&e==="xml")throw new Error((0,On.getContext)(this.up())+": processing"+(' instruction target "'+e+'" should')+" not be the string 'xml'");this._target=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return(0,In.isUndefined)(this._content)?"<?"+this._target+"?>":"<?"+this._target+" "+this._content+"?>"},t.prototype.up=function(){return this._parent},t}();Bs.default=Vy});var Fn=y(ct=>{"use strict";var lt=ct&&ct.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ct,"__esModule",{value:!0});ct.validatePubId=void 0;var Ze=oe(),Yy=Nt(),$e=K(),Ky=lt(dr()),Qy=lt(Rs()),Zy=lt(Ms()),e1=lt(Ts()),t1=lt(js()),r1=lt($s()),n1=lt(fr()),i1=function(){function t(e,r,n){this._pubId=void 0,this._sysId=void 0,this._validation=r,this._children=[],this._parent=e,this.name=n.name,(0,$e.isUndefined)(n.sysId)||(this.sysId=n.sysId),(0,$e.isUndefined)(n.pubId)||(this.pubId=n.pubId)}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,$e.validateName)(e))throw new Error((0,Ze.getContext)(this.up())+': DTD name "'+e+'" should not contain characters not allowed in XML names');this._name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pubId",{get:function(){return this._pubId},set:function(e){if(!(0,$e.isUndefined)(e)){if(this._validation&&!fd(e))throw new Error((0,Ze.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not contain')+" characters not allowed in public identifiers");if(this._validation&&(0,$e.isUndefined)(this._sysId))throw new Error((0,Ze.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not be defined')+" if system identifier is undefined")}this._pubId=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sysId",{get:function(){return this._sysId},set:function(e){if(!(0,$e.isUndefined)(e)){if(this._validation&&!(0,$e.validateChar)(e))throw new Error((0,Ze.getContext)(this.up())+": DTD system"+(' identifier "'+e+'" should not contain')+" characters not allowed in XML");if(this._validation&&e.indexOf("'")!==-1&&e.indexOf('"')!==-1)throw new Error((0,Ze.getContext)(this.up())+": DTD system"+(' identifier "'+e+'" should not contain')+" both single quotes and double quotes")}this._sysId=e},enumerable:!1,configurable:!0}),t.prototype.attlist=function(e){var r=new Qy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new Ky.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new Zy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entity=function(e){var r=new e1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.notation=function(e){var r=new t1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.paramEntityRef=function(e){var r=new r1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new n1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=new Yy.StringOptions(e),n="<!DOCTYPE "+this._name;if((0,$e.isUndefined)(this._pubId))(0,$e.isUndefined)(this._sysId)||(n+=" ",n=this.appendId("SYSTEM",this._sysId,n,r));else{if((0,$e.isUndefined)(this._sysId))throw new Error((0,Ze.getContext)(this.up())+": DTD system identifier is not undefined");n+=" ",n=this.appendId("PUBLIC",this._pubId,n,r),n=this.appendId("",this._sysId,n,r)}if(this._children.length!==0){n+=" [";for(var i=0,s=this._children;i<s.length;i++){var o=s[i];r.pretty&&(n+=r.newline+r.indent),n+=o.toString()}r.pretty&&(n+=r.newline),n+="]>"}else n+=">";return n},t.prototype.up=function(){return this._parent},t.prototype.appendId=function(e,r,n,i){if(n+=e+" ",i.doubleQuotes){if(this._validation&&r.indexOf('"')!==-1)throw new Error((0,Ze.getContext)(this.up())+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+='"'+r+'"'}else{if(this._validation&&r.indexOf("'")!==-1)throw new Error((0,Ze.getContext)(this)+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+="'"+r+"'"}return n},t}();ct.default=i1;function fd(t){for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(!(r===10||r===13||r===32||r===33||r>=35&&r<=37||r>=39&&r<=47||r>=48&&r<=57||r===58||r===59||r===61||r===63||r>=64&&r<=90||r===95||r>=97&&r<=122))return e+1===t.length,!1}return!0}ct.validatePubId=fd});var Hs=y(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});var dd=oe(),Us=K(),s1=function(){function t(e,r,n){this._validation=r,(0,Us.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Us.fixChar)(e);else if(this._validation&&!(0,Us.validateChar)(e))throw new Error((0,dd.getContext)(this.up())+": CDATA section"+(' "'+e+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)e=e.replace("]]>","\uFFFD\uFFFD\uFFFD");else if(this._validation&&e.indexOf("]]>")!==-1)throw new Error((0,dd.getContext)(this.up())+": CDATA section"+(' "'+e+'" should not contain the string')+" ']]>'");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<![CDATA["+this._charData+"]]>"},t.prototype.up=function(){return this._parent},t}();Xs.default=s1});var Js=y(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});var o1=oe(),Gs=En(),zs=K(),a1=function(){function t(e,r,n){this._validation=r,(0,zs.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,zs.fixChar)(e);else if(this._validation&&!(0,zs.validateChar)(e))throw new Error((0,o1.getContext)(this.up())+": character data"+('"'+e+'" should not contain characters not')+" allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this._charData;return e=(0,Gs.escapeAmpersands)(e),e=(0,Gs.escapeLeftAngleBrackets)(e),e=(0,Gs.escapeRightAngleBracketsInCdataTerminator)(e),e},t.prototype.up=function(){return this._parent},t}();Ws.default=a1});var Mn=y(mr=>{"use strict";var ft=mr&&mr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mr,"__esModule",{value:!0});var An=oe(),u1=Nt(),hr=K(),hd=ft(Dn()),c1=ft(Hs()),pr=ft(Js()),Rn=ft(Cn()),l1=ft(dr()),kn=ft(Pn()),f1=ft(fr()),d1=function(){function t(e,r,n){this._validation=r,(0,hr.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,(0,hr.isUndefined)(n.useSelfClosingTagIfEmpty)?this._useSelfClosingTagIfEmpty=!0:this._useSelfClosingTagIfEmpty=n.useSelfClosingTagIfEmpty,this._children=[],this._attributeNames=[],this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._replaceInvalidCharsInName){if(e=(0,hr.fixName)(e),e.length===0)throw new Error((0,An.getContext)(this.up())+": element name should not be empty")}else if(this._validation&&!(0,hr.validateName)(e))throw e.length===0?new Error((0,An.getContext)(this.up())+": element name should not be empty"):new Error((0,An.getContext)(this.up())+": element name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.attribute=function(e){if(this._validation&&this._attributeNames.indexOf(e.name)!==-1)throw new Error((0,An.getContext)(this.up())+': element "'+this.name+'" already contains an attribute with the'+(' name "'+e.name+'"'));var r=new hd.default(this,this._validation,e);return this._children.push(r),this._attributeNames.push(e.name),r},t.prototype.cdata=function(e){var r=new c1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charData=function(e){var r=new pr.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charRef=function(e){var r=new Rn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new l1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new t(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new kn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new f1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){return e===void 0&&(e={}),this.toStringWithIndent(e,"")},t.prototype.up=function(){return this._parent},t.prototype.toStringWithIndent=function(e,r){for(var n=new u1.StringOptions(e),i=r+n.indent,s="<"+this._name,o=[],a=0,u=this._children;a<u.length;a++){var h=u[a];h instanceof hd.default?s+=" "+h.toString(e):o.push(h)}if(o.length>0){for(var c="",p=0;p<o.length;p++){var g=o[p],m="";g instanceof t?m+=g.toStringWithIndent(n,i):m+=g.toString();var b=p>0?o[p-1]:void 0;g instanceof pr.default&&g.toString()===""||(n.pretty&&(this.allSameLineNodes(o)||p>0&&this.onSameLine(g,b)||(m=n.newline+i+m)),c+=m)}n.pretty&&(this.allSameLineNodes(o)||(c+=n.newline+r)),c.length===0&&this._useSelfClosingTagIfEmpty?s+="/>":s+=">"+c+"</"+this._name+">"}else this._useSelfClosingTagIfEmpty?s+="/>":s+="></"+this._name+">";return s},t.prototype.allSameLineNodes=function(e){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!(i instanceof Rn.default||i instanceof kn.default||i instanceof pr.default))return!1}return!0},t.prototype.onSameLine=function(e,r){return(e instanceof Rn.default||e instanceof kn.default||e instanceof pr.default)&&!(0,hr.isUndefined)(r)&&(r instanceof Rn.default||r instanceof kn.default||r instanceof pr.default)},t}();mr.default=d1});var oe=y(jt=>{"use strict";var Tn=jt&&jt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(jt,"__esModule",{value:!0});jt.getContext=void 0;var h1=Tn(Dn()),p1=Tn(Nn()),m1=Tn(Fn()),g1=Tn(Mn());function qn(t){if(t instanceof h1.default)return qn(t.up())+(' > attribute "'+t.name+'"');if(t instanceof p1.default)return"in XML document";if(t instanceof m1.default)return qn(t.up())+" > DTD";if(t instanceof g1.default)return qn(t.up())+(' > element "'+t.name+'"');throw new Error("Unrecognized object of type "+Object.prototype.toString.call(t))}jt.getContext=qn});var dr=y(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});var Vs=oe(),Ys=K(),y1=function(){function t(e,r,n){this._validation=r,(0,Ys.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Ys.fixChar)(e);else if(this._validation&&!(0,Ys.validateChar)(e))throw new Error((0,Vs.getContext)(this.up())+": comment content"+(' "'+e+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)e=e.replace("--","\uFFFD\uFFFD");else if(this._validation&&e.indexOf("--")!==-1)throw new Error((0,Vs.getContext)(this.up())+": comment content"+(' "'+e+'" should not contain the string')+" '--'");if(this._replaceInvalidCharsInCharData)e.lastIndexOf("-")===e.length-1&&(e=e.substr(0,e.length-1)+"\uFFFD");else if(this._validation&&e.lastIndexOf("-")===e.length-1)throw new Error((0,Vs.getContext)(this.up())+": comment content"+(' "'+e+'" should not end with the string')+" '-'");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!--"+this._charData+"-->"},t.prototype.up=function(){return this._parent},t}();Ks.default=y1});var eo=y(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});var Qs=oe(),v1=Nt(),gr=K(),b1=function(){function t(e,r,n){this._version="1.0",this._validation=r,this._parent=e,this.encoding=n.encoding,this.standalone=n.standalone,(0,gr.isUndefined)(n.version)||(this.version=n.version)}return Object.defineProperty(t.prototype,"encoding",{get:function(){return this._encoding},set:function(e){if(this._validation&&!(0,gr.isUndefined)(e)&&!w1(e))throw new Error((0,Qs.getContext)(this.up())+": declaration"+(" encoding attribute "+e+" should be a")+" valid encoding");this._encoding=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"standalone",{get:function(){return this._standalone},set:function(e){if(this._validation&&!(0,gr.isUndefined)(e)&&e!=="yes"&&e!=="no")throw new Error((0,Qs.getContext)(this.up())+": declaration"+(" standalone attribute "+e+" should")+" be the string 'yes' or the string 'no'");this._standalone=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},set:function(e){if(this._validation&&!_1(e))throw new Error((0,Qs.getContext)(this.up())+": declaration version"+(" attribute "+e+" should be a valid XML")+" version");this._version=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){e===void 0&&(e={});var r=new v1.StringOptions(e),n=r.doubleQuotes?'"':"'",i="<?xml version="+n+this._version+n;return(0,gr.isUndefined)(this._encoding)||(i+=" encoding="+n+this._encoding+n),(0,gr.isUndefined)(this._standalone)||(i+=" standalone="+n+this._standalone+n),i+="?>",i},t.prototype.up=function(){return this._parent},t}();Zs.default=b1;function w1(t){if(t.length===0)return!1;var e=t.charCodeAt(0);if(!(e>=65&&e<=90||e>=97&&e<=122))return!1;for(var r=1;r<t.length;r++){var n=t.charCodeAt(r);if(!(n===95||n===45||n===46||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122))return r+1===t.length,!1}return!0}function _1(t){for(var e=0;e<=9;e++)if(t==="1."+e)return!0;return!1}});var Nn=y(vr=>{"use strict";var br=vr&&vr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vr,"__esModule",{value:!0});var x1=Nt(),S1=K(),E1=br(dr()),pd=br(eo()),md=br(Fn()),yr=br(Mn()),C1=br(fr()),P1=function(){function t(e){this._children=[],this._validation=(0,S1.isUndefined)(e.validation)?!0:e.validation}return t.prototype.comment=function(e){var r=new E1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.decl=function(e){if(e===void 0&&(e={}),this._validation&&this._children.length!==0)throw new Error("in XML document: declaration must be the first child");var r=new pd.default(this,this._validation,e);return this._children.push(r),r},t.prototype.dtd=function(e){var r=this._children.filter(function(i){return i instanceof yr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: DTD must precede the root element");var n=new md.default(this,this._validation,e);return this._children.push(n),n},t.prototype.element=function(e){var r=this._children.filter(function(i){return i instanceof yr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: only one root element is permitted");var n=new yr.default(this,this._validation,e);return this._children.push(n),n},t.prototype.procInst=function(e){var r=new C1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=this._children.filter(function(h){return h instanceof yr.default});if(this._validation&&r.length!==1)throw new Error("in XML document: no more than one root element is permitted");for(var n=new x1.StringOptions(e),i="",s=0,o=this._children;s<o.length;s++){var a=o[s];a instanceof pd.default||a instanceof md.default||a instanceof yr.default?i+=a.toString(e):i+=a.toString(),n.pretty&&(i+=n.newline)}var u=i.length-n.newline.length;return i.substr(u)===n.newline&&(i=i.substr(0,u)),i},t}();vr.default=P1});var gd=y(R=>{"use strict";var te=R&&R.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(R,"__esModule",{value:!0});R.document=R.XmlProcInst=R.XmlEntityRef=R.XmlElement=R.XmlDtdParamEntityRef=R.XmlDtdNotation=R.XmlDtdEntity=R.XmlDtdElement=R.XmlDtdAttlist=R.XmlDtd=R.XmlDocument=R.XmlDecl=R.XmlComment=R.XmlCharRef=R.XmlCharData=R.XmlCdata=R.XmlAttributeText=R.XmlAttribute=void 0;var D1=te(Nn()),O1=Dn();Object.defineProperty(R,"XmlAttribute",{enumerable:!0,get:function(){return te(O1).default}});var I1=Cs();Object.defineProperty(R,"XmlAttributeText",{enumerable:!0,get:function(){return te(I1).default}});var F1=Hs();Object.defineProperty(R,"XmlCdata",{enumerable:!0,get:function(){return te(F1).default}});var A1=Js();Object.defineProperty(R,"XmlCharData",{enumerable:!0,get:function(){return te(A1).default}});var R1=Cn();Object.defineProperty(R,"XmlCharRef",{enumerable:!0,get:function(){return te(R1).default}});var k1=dr();Object.defineProperty(R,"XmlComment",{enumerable:!0,get:function(){return te(k1).default}});var M1=eo();Object.defineProperty(R,"XmlDecl",{enumerable:!0,get:function(){return te(M1).default}});var q1=Nn();Object.defineProperty(R,"XmlDocument",{enumerable:!0,get:function(){return te(q1).default}});var T1=Fn();Object.defineProperty(R,"XmlDtd",{enumerable:!0,get:function(){return te(T1).default}});var N1=Rs();Object.defineProperty(R,"XmlDtdAttlist",{enumerable:!0,get:function(){return te(N1).default}});var j1=Ms();Object.defineProperty(R,"XmlDtdElement",{enumerable:!0,get:function(){return te(j1).default}});var L1=Ts();Object.defineProperty(R,"XmlDtdEntity",{enumerable:!0,get:function(){return te(L1).default}});var $1=js();Object.defineProperty(R,"XmlDtdNotation",{enumerable:!0,get:function(){return te($1).default}});var B1=$s();Object.defineProperty(R,"XmlDtdParamEntityRef",{enumerable:!0,get:function(){return te(B1).default}});var U1=Mn();Object.defineProperty(R,"XmlElement",{enumerable:!0,get:function(){return te(U1).default}});var X1=Pn();Object.defineProperty(R,"XmlEntityRef",{enumerable:!0,get:function(){return te(X1).default}});var H1=fr();Object.defineProperty(R,"XmlProcInst",{enumerable:!0,get:function(){return te(H1).default}});function G1(t){return t===void 0&&(t={}),new D1.default(t)}R.document=G1});var to=y(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.stringify=re.isMap=re.isSet=re.isFunction=re.isArray=re.isObject=re.isNull=re.isUndefined=void 0;function yd(t){return Object.prototype.toString.call(t)==="[object Undefined]"}re.isUndefined=yd;function vd(t){return Object.prototype.toString.call(t)==="[object Null]"}re.isNull=vd;function z1(t){return Object.prototype.toString.call(t)==="[object Object]"}re.isObject=z1;function W1(t){return Object.prototype.toString.call(t)==="[object Array]"}re.isArray=W1;function bd(t){return Object.prototype.toString.call(t)==="[object Function]"}re.isFunction=bd;function J1(t){return Object.prototype.toString.call(t)==="[object Set]"}re.isSet=J1;function V1(t){return Object.prototype.toString.call(t)==="[object Map]"}re.isMap=V1;function Y1(t){return!yd(t)&&!vd(t)&&bd(t?.toString)&&(t=t.toString()),String(t)}re.stringify=Y1});var Cd=y(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.WrapHandlers=Ce.TypeHandlers=Ce.FormatOptions=Ce.DtdOptions=Ce.DeclarationOptions=Ce.Options=void 0;var je=to(),K1=function(){function t(e){e===void 0&&(e={}),this.aliasString="=",this.attributeString="@",this.cdataInvalidChars=!1,this.cdataKeys=[],this.replaceInvalidChars=!1,this.useSelfClosingTagIfEmpty=!0,this.validation=!0,this.valueString="#",(0,je.isUndefined)(e.validation)||(this.validation=e.validation),(0,je.isUndefined)(e.aliasString)||(this.aliasString=e.aliasString),(0,je.isUndefined)(e.attributeString)||(this.attributeString=e.attributeString),(0,je.isUndefined)(e.cdataInvalidChars)||(this.cdataInvalidChars=e.cdataInvalidChars),(0,je.isUndefined)(e.cdataKeys)||(this.cdataKeys=e.cdataKeys),this.declaration=new wd(e.declaration),this.dtd=new _d(this.validation,e.dtd),this.format=new xd(e.format),(0,je.isUndefined)(e.replaceInvalidChars)||(this.replaceInvalidChars=e.replaceInvalidChars),this.typeHandlers=new Sd(e.typeHandlers),(0,je.isUndefined)(e.useSelfClosingTagIfEmpty)||(this.useSelfClosingTagIfEmpty=e.useSelfClosingTagIfEmpty),(0,je.isUndefined)(e.valueString)||(this.valueString=e.valueString),this.wrapHandlers=new Ed(e.wrapHandlers)}return t}();Ce.Options=K1;var wd=function(){function t(e){e===void 0&&(e={}),this.include=!0,(0,je.isUndefined)(e.include)||(this.include=e.include),this.encoding=e.encoding,this.standalone=e.standalone,this.version=e.version}return t}();Ce.DeclarationOptions=wd;var _d=function(){function t(e,r){if(r===void 0&&(r={}),this.include=!1,(0,je.isUndefined)(r.include)||(this.include=r.include),e&&(0,je.isUndefined)(r.name)&&this.include)throw new Error("options.dtd.name should be defined if options.dtd.include is true");this.name=r.name,this.sysId=r.sysId,this.pubId=r.pubId}return t}();Ce.DtdOptions=_d;var xd=function(){function t(e){e===void 0&&(e={}),this.doubleQuotes=e.doubleQuotes,this.indent=e.indent,this.newline=e.newline,this.pretty=e.pretty}return t}();Ce.FormatOptions=xd;var Sd=function(){function t(e){e===void 0&&(e={});for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this[r]=e[r])}return t}();Ce.TypeHandlers=Sd;var Ed=function(){function t(e){e===void 0&&(e={});for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this[r]=e[r])}return t}();Ce.WrapHandlers=Ed});var Ad=y(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.parse=et.parseToExistingElement=et.Absent=void 0;var Dd=gd(),Od=Cd(),J=to(),ro=function(){function t(){}return Object.defineProperty(t,"instance",{get:function(){return t._instance},enumerable:!1,configurable:!0}),t._instance=new t,t}();et.Absent=ro;function no(t,e){var r=Object.prototype.toString.call(t),n;return Object.prototype.hasOwnProperty.call(e.typeHandlers,"*")&&(n=e.typeHandlers["*"]),Object.prototype.hasOwnProperty.call(e.typeHandlers,r)&&(n=e.typeHandlers[r]),n}function Id(t,e,r){var n=function(o){return r.cdataInvalidChars&&(o.indexOf("<")!==-1||o.indexOf("&")!==-1)||r.cdataKeys.indexOf(e.name)!==-1||r.cdataKeys.indexOf("*")!==-1};if(e instanceof Dd.XmlElement)if(n(t))for(var i=t.split("]]>"),s=0;s<i.length;s++)n(i[s])?e.cdata({charData:i[s],replaceInvalidCharsInCharData:r.replaceInvalidChars}):e.charData({charData:i[s],replaceInvalidCharsInCharData:r.replaceInvalidChars}),s<i.length-1&&e.charData({charData:"]]>",replaceInvalidCharsInCharData:r.replaceInvalidChars});else e.charData({charData:t,replaceInvalidCharsInCharData:r.replaceInvalidChars});else e.text({charData:t,replaceInvalidCharsInCharData:r.replaceInvalidChars})}function Q1(t,e,r,n){var i=r.attribute({name:t,replaceInvalidCharsInName:n.replaceInvalidChars});Id((0,J.stringify)(e),i,n)}function Pd(t,e,r,n){if(t===n.aliasString){r.name=(0,J.stringify)(e);return}if(t.indexOf(n.attributeString)===0&&(0,J.isObject)(e)){for(var i=0,s=Object.keys(e);i<s.length;i++){var o=s[i];Q1(o,(0,J.stringify)(e[o]),r,n)}return}if(t.indexOf(n.valueString)===0){jn(t,(0,J.stringify)(e),r,n);return}var a=r;if(!(0,J.isArray)(e)&&!(0,J.isSet)(e)){var u=no(e,n);if(!(0,J.isUndefined)(u)&&u(e)===ro.instance)return;a=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}jn(t,e,a,n)}function Z1(t,e,r){if((0,J.isMap)(t))t.forEach(function(o,a){Pd((0,J.stringify)(a),o,e,r)});else for(var n=0,i=Object.keys(t);n<i.length;n++){var s=i[n];Pd(s,t[s],e,r)}}function ev(t,e,r,n){var i;Object.prototype.hasOwnProperty.call(n.wrapHandlers,"*")&&(i=n.wrapHandlers["*"]),Object.prototype.hasOwnProperty.call(n.wrapHandlers,t)&&(i=n.wrapHandlers[t]);var s=t,o=r;if(!(0,J.isUndefined)(i)){var a=i(s,e);(0,J.isNull)(a)||(s=a,o=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty}))}e.forEach(function(u){var h=o;if(!(0,J.isArray)(u)&&!(0,J.isSet)(u)){var c=no(u,n);if(!(0,J.isUndefined)(c)&&c(u)===ro.instance)return;h=o.element({name:s,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}jn(s,u,h,n)})}function jn(t,e,r,n){var i=no(e,n);if((0,J.isUndefined)(i)||(e=i(e)),(0,J.isObject)(e)||(0,J.isMap)(e)){Z1(e,r,n);return}if((0,J.isArray)(e)||(0,J.isSet)(e)){ev(t,e,r,n);return}Id((0,J.stringify)(e),r,n)}function Fd(t,e,r){var n=new Od.Options(r);jn(t.name,e,t,n)}et.parseToExistingElement=Fd;function tv(t,e,r){var n=new Od.Options(r),i=new Dd.XmlDocument({validation:n.validation});n.declaration.include&&i.decl(n.declaration),n.dtd.include&&i.dtd({name:n.dtd.name,pubId:n.dtd.pubId,sysId:n.dtd.sysId});var s=i.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty});return Fd(s,e,r),i.toString(n.format)}et.parse=tv});var fu=G(mi()),du=G(Xr()),_i=class{user;password;baseUrl;headers;constructor(){this.user=process.env.botEmail,this.password=process.env.botPassword,this.baseUrl=process.env.API_URL}async login(){try{let e=await(0,fu.default)({url:`${this.baseUrl}/login_check`,method:"POST",headers:{"Content-Type":"application/json"},data:{username:this.user,password:this.password}});if(e.status===200){let{data:{token:r}}=e;this.headers={Authorization:"bearer "+r,"Cache-Control":"no-store"}}return this.headers}catch{console.error(du.default.red(`
23
23
  \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
24
24
  \u2502 Access credentials failure \u2502
25
25
  \u2502 Check that the login details are correct in your .env file \u2502
26
26
  \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
27
- `)),process.exit(1)}}},_t=new _i;var Xf=z(mi()),Hf=z(Xr()),Gf=z(xt());var Sl=z(require("node:crypto")),at=z(require("node:fs")),Bi=z(require("node:path")),Ui=z(nr()),un=Bi.default.resolve(__dirname,"./../apiCache"),El=`${un}/siteHash.json`;function Cl(){at.default.existsSync(un)||at.default.mkdirSync(un),console.info("Cache initialized")}function Pl(t){let e=Sl.default.createHash("sha256");return e.update(JSON.stringify(t)),`${un}/${e.digest("hex")}`}function Dl(t,e){let r=typeof e=="string"?e:JSON.stringify(e),n=Pl(t),i=Bi.default.dirname(n);at.default.existsSync(i)||at.default.mkdirSync(i,{recursive:!0}),at.default.writeFileSync(n,r,"utf8")}function Ol(t){try{let e=Pl(t);return Ui.default.readJSONSync(e,{encoding:"utf-8"})}catch{return null}}function lg(){try{return Ui.default.readJSONSync(El,{encoding:"utf-8"})||{}}catch{return{}}}function Il(t,e){let r=lg(),n=r[t],i=e||n||new Date().valueOf();return i!==n&&(r[t]=i,at.default.writeFileSync(El,JSON.stringify(r),{encoding:"utf-8"})),i.toString()}var Jg=z(Xr()),jf=z(xt()),Be=z(nr()),Vg=z(yf()),ls=z(Tf());var Nf="10.4.3";jf.default.config();var d2=!!process.env.GRIDDO_DEBUG_LOGS&&!!JSON.parse(process.env.GRIDDO_DEBUG_LOGS),Yg=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS),h2=ls.default.sync(__dirname),p2=ls.default.sync();function Lf(t){let e=[];return Be.default.readdirSync(t).forEach(n=>{let i=`${t}/${n}`;e.push(i)}),e}function ur(t,e="",r=1,n=1){let i=t.split(`
27
+ `)),process.exit(1)}}},xt=new _i;var Uf=G(mi()),Xf=G(Xr()),Hf=G(St());var xl=G(require("node:crypto")),ut=G(require("node:fs")),Bi=G(require("node:path")),Ui=G(nr()),un=Bi.default.resolve(__dirname,"./../apiCache"),Sl=`${un}/siteHash.json`;function El(){ut.default.existsSync(un)||ut.default.mkdirSync(un),console.info("Cache initialized")}function Cl(t){let e=xl.default.createHash("sha256");return e.update(JSON.stringify(t)),`${un}/${e.digest("hex")}`}function Pl(t,e){let r=typeof e=="string"?e:JSON.stringify(e),n=Cl(t),i=Bi.default.dirname(n);ut.default.existsSync(i)||ut.default.mkdirSync(i,{recursive:!0}),ut.default.writeFileSync(n,r,"utf8")}function Dl(t){try{let e=Cl(t);return Ui.default.readJSONSync(e,{encoding:"utf-8"})}catch{return null}}function ug(){try{return Ui.default.readJSONSync(Sl,{encoding:"utf-8"})||{}}catch{return{}}}function Ol(t,e){let r=ug(),n=r[t],i=e||n||new Date().valueOf();return i!==n&&(r[t]=i,ut.default.writeFileSync(Sl,JSON.stringify(r),{encoding:"utf-8"})),i.toString()}var zg=G(Xr()),Nf=G(St()),Ue=G(nr()),Wg=G(gf()),ls=G(qf());var Tf="10.4.5";Nf.default.config();var l2=!!process.env.GRIDDO_DEBUG_LOGS&&!!JSON.parse(process.env.GRIDDO_DEBUG_LOGS),Jg=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS),f2=ls.default.sync(__dirname),d2=ls.default.sync();function jf(t){let e=[];return Ue.default.readdirSync(t).forEach(n=>{let i=`${t}/${n}`;e.push(i)}),e}function ur(t,e="",r=1,n=1){let i=t.split(`
28
28
  `).map(b=>b.trim()),s=e?` ${e} `:"",o=e?s.length:0,a=Math.max(...i.map(b=>b.length))+r*2,u=Math.max(a,o),h=`\u2502${" ".repeat(u)}\u2502
29
29
  `.repeat(n),c=u,p=`\u256D${s}${"\u2500".repeat(c-o)}\u256E
30
30
  `,g=`\u2570${"\u2500".repeat(c)}\u256F`,m=i.map(b=>{let x=" ".repeat(u-b.length-r);return`\u2502${" ".repeat(r)}${b}${x}\u2502
31
- `}).join("");console.log(`${p}${h}${m}${h}${g}`)}function qt(t){Yg&&console.info(t.replace(/(\s)\s+/g,"$1"))}function $f(t){return new Promise(e=>setTimeout(e,t))}function fs(t,e=3){return(t/1e3).toFixed(e)}function ds(t){return"site"in t&&t.site?t?.site:void 0}function hs(t,e){for(let r in t)e.includes(r)?delete t[r]:typeof t[r]=="object"&&hs(t[r],e)}function ps(t){return t.map(({name:e,id:r})=>`${e} (${r})`).join(", ")}function Bf(t){let e=Be.default.readdirSync(t),r={},n=e.filter(s=>{let o=`${t}/${s}`,a=Be.default.readJSONSync(o,"utf-8"),{id:u,entity:h,fullUrl:c}=a;return!!(u&&h&&c)});for(let s of n){let o=`${t}/${s}`,a=Be.default.readJSONSync(o,"utf-8"),u=Be.default.statSync(o).mtimeMs,{id:h}=a;(!r[h]||u>Be.default.statSync(`${t}/${r[h]}`).mtimeMs)&&(r[h]=s)}let i=0;for(let s of n){let o=`${t}/${s}`,a=Be.default.readJSONSync(o,"utf-8"),{id:u}=a;s!==r[u]&&(Be.default.unlinkSync(o),i++)}console.log(`Sanitize apiCache dir for ${i} files`)}Gf.default.config();var{env:{RETRY_WAIT_SECONDS:Kg="4",RETRY_ATTEMPTS:Uf="4"}}=process;async function ms(t,e,r=""){let{endpoint:n,body:i,cacheKey:s="",attempt:o=1,headers:a}=t,u={endpoint:n,body:i,headers:a,cacheKey:s};if(s){let h=new Date,c=Ol(u);if(c){let p=ds(c),g=p?`site: ${p}`:"",m=fs(new Date().getTime()-h.getTime());return qt(`${e} (cache) ${g} ${n} - ${m}s ${r}`),c}}try{let h=new Date,{data:c}=await(0,Xf.default)({url:n,method:e,headers:Object.assign({},a,_t.headers),data:i}),p=ds(c),g=p?`site: ${p}`:"",m=fs(new Date().getTime()-h.getTime());return qt(`${e} (fetch) ${g} ${n} - ${m}s ${r}`),Dl(u,c),c}catch(h){let c=h;return c.response?.status===404?null:(o>parseInt(Uf)&&(console.log(`
32
- Max attempts ${Uf} reached
31
+ `}).join("");console.log(`${p}${h}${m}${h}${g}`)}function Tt(t){Jg&&console.info(t.replace(/(\s)\s+/g,"$1"))}function Lf(t){return new Promise(e=>setTimeout(e,t))}function fs(t,e=3){return(t/1e3).toFixed(e)}function ds(t){return"site"in t&&t.site?t?.site:void 0}function hs(t,e){for(let r in t)e.includes(r)?delete t[r]:typeof t[r]=="object"&&hs(t[r],e)}function ps(t){return t.map(({name:e,id:r})=>`${e} (${r})`).join(", ")}function $f(t){let e=Ue.default.readdirSync(t),r={},n=e.filter(s=>{let o=`${t}/${s}`,a=Ue.default.readJSONSync(o,"utf-8"),{id:u,entity:h,fullUrl:c}=a;return!!(u&&h&&c)});for(let s of n){let o=`${t}/${s}`,a=Ue.default.readJSONSync(o,"utf-8"),u=Ue.default.statSync(o).mtimeMs,{id:h}=a;(!r[h]||u>Ue.default.statSync(`${t}/${r[h]}`).mtimeMs)&&(r[h]=s)}let i=0;for(let s of n){let o=`${t}/${s}`,a=Ue.default.readJSONSync(o,"utf-8"),{id:u}=a;s!==r[u]&&(Ue.default.unlinkSync(o),i++)}console.log(`Sanitize apiCache dir for ${i} files`)}Hf.default.config();var{env:{RETRY_WAIT_SECONDS:Vg="4",RETRY_ATTEMPTS:Bf="4"}}=process;async function ms(t,e,r=""){let{endpoint:n,body:i,cacheKey:s="",attempt:o=1,headers:a}=t,u={endpoint:n,body:i,headers:a,cacheKey:s};if(s){let h=new Date,c=Dl(u);if(c){let p=ds(c),g=p?`site: ${p}`:"",m=fs(new Date().getTime()-h.getTime());return Tt(`${e} (cache) ${g} ${n} - ${m}s ${r}`),c}}try{let h=new Date,{data:c}=await(0,Uf.default)({url:n,method:e,headers:Object.assign({},a,xt.headers),data:i}),p=ds(c),g=p?`site: ${p}`:"",m=fs(new Date().getTime()-h.getTime());return Tt(`${e} (fetch) ${g} ${n} - ${m}s ${r}`),Pl(u,c),c}catch(h){let c=h;return c.response?.status===404?null:(o>parseInt(Bf)&&(console.log(`
32
+ Max attempts ${Bf} reached
33
33
  --------------------------------------
34
34
  - ${e.toUpperCase()} ${n}
35
35
  - BODY: ${JSON.stringify(i)}
36
36
  - HEADERS: ${JSON.stringify(a)}
37
37
  - RESPONSE: ${c.response?.status,JSON.stringify(c.response?.data)}
38
38
  --------------------------------------
39
- `),process.exit(1)),c.response||(console.log("Unknown error occurred"),console.log(JSON.stringify(c,null,2)),process.exit(1)),Qg(c,{callInfo:{endpoint:n,body:i}}),console.warn(`Waiting for retry: ${e}`,n),await $f(parseInt(Kg)*1e3),ms({endpoint:n,body:i,headers:a,cacheKey:s,attempt:o+1},e,r))}}async function Ae(t){return await ms(t,"get")}async function cr(t){let{endpoint:e,body:r,headers:n}=t,i=e.endsWith("/distributor")&&`# Distributor body: ${JSON.stringify(r)} lang: ${JSON.stringify(n?.lang)}`;return await ms(t,"post",i||"")}function Qg(t,e){let{response:r,message:n,stack:i}=t,{callInfo:s}=e,{status:o,statusText:a,data:u}=r||{},h=[];for(let m of Object.keys(s))h.push(`${m}: ${typeof s[m]=="object"?JSON.stringify(s[m]):s[m]}`);let c=h.join(`
39
+ `),process.exit(1)),c.response||(console.log("Unknown error occurred"),console.log(JSON.stringify(c,null,2)),process.exit(1)),Yg(c,{callInfo:{endpoint:n,body:i}}),console.warn(`Waiting for retry: ${e}`,n),await Lf(parseInt(Vg)*1e3),ms({endpoint:n,body:i,headers:a,cacheKey:s,attempt:o+1},e,r))}}async function Ae(t){return await ms(t,"get")}async function cr(t){let{endpoint:e,body:r,headers:n}=t,i=e.endsWith("/distributor")&&`# Distributor body: ${JSON.stringify(r)} lang: ${JSON.stringify(n?.lang)}`;return await ms(t,"post",i||"")}function Yg(t,e){let{response:r,message:n,stack:i}=t,{callInfo:s}=e,{status:o,statusText:a,data:u}=r||{},h=[];for(let m of Object.keys(s))h.push(`${m}: ${typeof s[m]=="object"?JSON.stringify(s[m]):s[m]}`);let c=h.join(`
40
40
  `),p=r?`Code: ${o} - ${a}
41
41
  Response: ${JSON.stringify(u)}`:"",g=`${n}
42
- ${i}`;console.warn(Hf.default.bold.red(`
42
+ ${i}`;console.warn(Xf.default.bold.red(`
43
43
  =============
44
44
 
45
45
  { Call info }
@@ -52,9 +52,9 @@ ${p}
52
52
  ${g}
53
53
 
54
54
  =============
55
- `))}var Zg=process.env.API_URL,ey={GET_ALL:`${Zg}/domains`},bn=class{static async getAll(){let{GET_ALL:e}=ey;return await Ae({endpoint:e})}};async function zf(){await _t.login();let t=await bn.getAll();return ty(t)}function ty(t){let e=t.filter(({slug:r})=>!!r).map(({slug:r})=>r.replace("/",""));return[...new Set(e)]}var so=z(require("node:path"));var Ye=z(require("node:fs")),Wf=z(require("node:fs/promises")),Pe=z(require("node:path")),gs=z(nr());async function*ry(t){let e=Pe.default.resolve(t),r=Lf(e).filter(n=>Pe.default.extname(n)===".json");for(let n of r)try{let i=await Wf.default.stat(n),s=await gs.default.readJSON(n,{encoding:"utf-8"});s.size=i.size/1024,s.path&&(yield s)}catch(i){console.error(`Error: The file ${n} doesn't exist`,i)}}function Jf(t){Ye.default.existsSync(t)||(Ye.default.mkdirSync(t),Ye.default.mkdirSync(Pe.default.resolve(t,"metadata"))),console.info("Store initialized")}function Vf(t,e){Ye.default.writeFileSync(Pe.default.resolve(t,"metadata","render-info.json"),JSON.stringify(e))}function ny(t,e){return iy(t).filter(i=>e.includes(i))}function iy(t){return Ye.default.readdirSync(t).filter(r=>{let n=`${t}/${r}`,i=Ye.default.statSync(n);if(i&&i.isDirectory()||Pe.default.extname(r)!==".json")return!1;let s=Pe.default.basename(r,Pe.default.extname(r));return!isNaN(parseInt(s))}).map(r=>{let n=Pe.default.basename(r,Pe.default.extname(r));return parseInt(n)})}function Yf(t,e){e.forEach(r=>{hs(r,["editorID","parentEditorID"]);let n=`${r.context.page.id}.json`,i=Pe.default.resolve(t,n);gs.default.writeJSONSync(i,r)})}function Kf(t,e){e.length!==0&&e.forEach(r=>{let n=Pe.default.resolve(t,`${r}.json`);try{Ye.default.unlinkSync(n)}catch(i){console.log(`Error removing file ${r}`,i.message)}})}async function Qf(t,e){let{changedPages:r,pages:n,validPagesIds:i,sitesToPublish:s}=e,o=ny(t,n),a=i.filter(m=>!o.includes(m)),u=a.concat(r),h=o.filter(m=>!i.includes(m)),c=Array.from(new Set(u)).filter(m=>!h.includes(m)),p=ry(Pe.default.resolve(__dirname,"../store")),g=[];for await(let m of p){let b=m.context.page.site,x=m.context.page.id;s.map(S=>S.id).includes(b)||g.push(x)}return{pagesInStore:o,pagesMissingInStore:a,pagesToDeleteFromStore:[...h,...g],pagesToWriteToStore:c}}var Ld=z(xt()),$d=z(ss());var Zf=z(xt());Zf.default.config();var ys=process.env.API_URL,Ke=`${ys}/site/`,Ue={GET_ALL:`${ys}/sites/all`,GET_PAGE:[`${ys}/page/`,""],INFO:[`${Ke}`,"/all"],LANGUAGES:[`${Ke}`,"/languages"],BUILD_START:[`${Ke}`,"/build/start"],BUILD_END:[`${Ke}`,"/build/end"],GET_DISTRIBUTOR_DATA:[`${Ke}`,"/distributor"],GET_SITEMAP:[`${Ke}`,"/sitemap"],SOCIALS:[`${Ke}`,"/socials"],GET_PAGES:[`${Ke}`,"/pages?pagination=false"]},ge=class{static async getAll(){let{GET_ALL:e}=Ue;return await Ae({endpoint:e})}static async getPage(e,r){let{GET_PAGE:[n,i]}=Ue;return await Ae({endpoint:`${n}${e}${i}`,cacheKey:r})}static async getInfo(e,r=""){let{INFO:[n,i]}=Ue;return await Ae({endpoint:`${n}${e}${i}`,cacheKey:r})}static async getLanguages(e,r=""){let{LANGUAGES:[n,i]}=Ue;return await Ae({endpoint:`${n}${e}${i}`,cacheKey:r})}static async startSiteRender(e){let{BUILD_START:[r,n]}=Ue;return await Ae({endpoint:`${r}${e}${n}`})}static async endSiteRender(e,r){let{BUILD_END:[n,i]}=Ue;return await cr({endpoint:`${n}${e}${i}`,body:r})}static async getDistributorData(e,r,n,i,s){let{GET_DISTRIBUTOR_DATA:[o,a]}=Ue,u=i||e.site,h=s||e.language;return await cr({endpoint:`${o}${u}${a}`,body:r,headers:{lang:h},cacheKey:n})}static async getSitemap(e){let{GET_SITEMAP:[r,n]}=Ue;return await Ae({endpoint:`${r}${e}${n}`})}static async getSocials(e,r=""){let{SOCIALS:[n,i]}=Ue;return await Ae({endpoint:`${n}${e}${i}`,cacheKey:r})}};var wn=class{static getBody(e,r){let{order:n,sources:i,quantity:s,mode:o,fixed:a,fullRelations:u=!1,allLanguages:h=!1,preferenceLanguage:c=!1,referenceId:p}=e;return o==="auto"?{mode:o,order:n,sources:i,quantity:s,fullRelations:u,allLanguages:h,preferenceLanguage:c}:o==="manual"?{mode:o,fixed:a,fullRelations:u}:o==="navigation"?{mode:o,order:n,quantity:s,fullRelations:u,referenceId:p||r?.structuredDataContent?.id}:(console.log(`Error: Distribuidor mode: ${o} is not recognized on page ${r?.id}.`),e)}static async fetchContentTypeData(e){let{page:r,component:{data:n},cacheKey:i}=e;if(!n)return ur(`Error: Page ${r.id} has \`hasDistributorData: true\` but it doesn't have a \`data\` prop`,"No data in ReferenceField"),[];if(Array.isArray(n.sources)&&n.sources.length<1)return ur(`Warning: Page with id: ${r.id} has a ReferenceField with empty \`data.sources\``,"Empty data.sources in ReferenceField"),[];let{site:s,lang:o}=n,a=this.getBody(n,r);return await ge.getDistributorData(r,a,i,s,o)}static async getDistributorData({page:e,cacheKey:r=""}){try{let{template:n}=e,i=async(a,u=1)=>{if(!(!a||typeof a!="object")&&JSON.stringify(a).includes('"hasDistributorData":true'))for(let h in a){if(h==="queriedItems")continue;let p=a[h];!p||typeof p!="object"||(p.hasDistributorData&&(p.queriedItems=await this.fetchContentTypeData({page:e,cacheKey:r,component:p})),await i(p,u+1))}};return await(async a=>(await i([a]),a))(n)}catch(n){console.error(`Error en get distributor ${n}`),process.exit(1)}}};var _n=class{_defaultHeaders;_defaultFooters;_navigations;constructor(){this._navigations={footers:[],headers:[]},this._defaultHeaders={},this._defaultFooters={}}set navigations(e){this._navigations=e,this._defaultFooters=this.getDefaultFooters(),this._defaultHeaders=this.getDefaultHeaders()}get navigations(){return this._navigations}getDefaultFooters(){return[...this.navigations.footers].filter(i=>!!i.setAsDefault).reduce((i,s)=>{let{language:o}=s;return{...i,[o]:s}},{})}getDefaultHeaders(){return[...this.navigations.headers].filter(i=>!!i.setAsDefault).reduce((i,s)=>{let{language:o}=s;return{...i,[o]:s}},{})}getRightLanguage(e,r,n){if(!e||!r)return null;let s=e.find(o=>o.language===n&&o.navigationLanguages?.find(a=>a.navigationId===r))||e.find(o=>o.id===r);return s?{...s}:null}getPageHeader(e,r){return this.getRightLanguage(this.navigations.headers,e,r)}getPageFooter(e,r){return this.getRightLanguage(this.navigations.footers,e,r)}getPageNavigations(e){let{header:r,footer:n,language:i,template:{templateType:s},templateConfig:{defaultHeader:o,defaultFooter:a,templates:u}}=e,h=b=>{let x=b.find(S=>typeof S=="number");return typeof x=="number"?x:null},c=h([r,u?.[s]?.defaultHeader,o]),p=h([n,u?.[s]?.defaultFooter,a]),g=c?this.getPageHeader(c,i):c===0?null:this._defaultHeaders[i],m=p?this.getPageFooter(p,i):p===0?null:this._defaultFooters[i];return{header:g,footer:m}}};var vs=class{baseURL;settings;ENDPOINTS;constructor(){this.baseURL=process.env.API_URL,this.settings={cloudinaryName:"",useMetaTitle:!1,useMetaKeywords:!1,showBasicMetaRobots:!1,avoidHrefLangsOnCanonicals:!1,avoidSelfReferenceCanonicals:!1,avoidHrefLangXDefault:!1,avoidDebugMetas:!1},this.ENDPOINTS={settings:`${this.baseURL}/settings`,resetRender:`${this.baseURL}/debug/reset-render`}}async getAll(){let{settings:e}=this.ENDPOINTS,r=await Ae({endpoint:e});this.settings=r}async resetRender(){let{resetRender:e}=this.ENDPOINTS;await cr({endpoint:e})}},bs=new vs;var rd=z(xt());function ws(t,e,r,n="jpg"){let i=typeof t=="string"?t:t?.url;return i?i.split("/")[2].includes("cloudinary.com")?oy(i,`c_fill,w_${e},h_${r}`):sy(i,`f/${n}/w/${e}/h/${r}`):null}function sy(t,e){let r=t.split("/"),n=r.slice(0,-1).join("/"),i=r.slice(-1)[0];return`${n}/${e}/${i}`}function oy(t,e){let r=t.replace("https://",""),n=r.split("/").slice(0,4).join("/"),i=r.replace(n,"");return`https://${n}/${e}${i}`}rd.default.config();var ay=JSON.parse(process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH||"false"),uy=25;function cy({socialTitle:t,socialDescription:e,socialImage:r}){return{type:"website",title:t,description:e,image:r?ws(r,1280,768):"",twitterImage:r?ws(r,1280,768):""}}function ly(t){let{title:e,metaTitle:r,metaDescription:n,canonicalURL:i,locale:s,url:o,isIndexed:a,follow:u,metasAdvanced:h,pageLanguages:c,fullUrl:p,metaKeywords:g}=t,m=h?.split(",").filter(Boolean).map(b=>b.trim().toLowerCase())||[];return{title:(r||e||"").trim(),description:n,canonical:i&&i.trim()&&i!==p?i.trim():a?p:void 0,locale:s,url:o,index:a?"index":"noindex",follow:u?"follow":"nofollow",translate:m.includes("notranslate")?"notranslate":"",metasAdvanced:m.filter(b=>b!=="notranslate").join(),pageLanguages:c,metaKeywords:g?.filter(Boolean).map(b=>b.replace(/"/g,"'")).join(", ")}}async function xs(t,e){let{id:r,title:n,fullPath:i,language:s,breadcrumb:o,socialDescription:a,socialImage:u,socialTitle:h}=t,{baseUrl:c,cloudinaryName:p,griddoVersion:g,siteLangs:m,siteMetadata:b,siteOptions:x,siteScript:S,siteSlug:F,socials:L,theme:B,navigations:{header:G,footer:Y}}=e;t.breadcrumb=o,t.siteSlug=F,t.apiUrl=c,t.publicApiUrl=e.publicBaseUrl,t.instance=e.instance;let De=m.find(({id:I})=>I===t?.language)?.locale.replace(/_/g,"-"),Q=ly(t),D=cy({socialDescription:a,socialImage:u,socialTitle:h}),q=ay?i.compose:`${i.domain}${i.compose}`,k=new Date().toString();return{path:q,size:void 0,context:{id:r,title:n,fullPath:i,locale:De,languageId:s,theme:B,siteMetadata:b,pageMetadata:Q,openGraph:D,socials:L,siteLangs:m,cloudinaryName:p,siteOptions:x,griddoVersion:g,renderDate:k,siteScript:S,header:G,footer:Y,page:t}}}async function nd(t,e){return await xs(t,e)}async function id({page:t,pages:e,isRoot:r=!1,defaultLang:n,template:i,totalQueriedItems:s},o){let a=e.map(async(u,h)=>{let c=h===0,p=h+1,{domainUrl:g,compose:m}=t.fullPath,b={...t,fullPath:{...t.fullPath,compose:_s(m,p,{addEndingSlash:!0})},fullUrl:_s(t.fullUrl,p,{addEndingSlash:!0}),slug:_s(t.slug,p),title:td(t.title,p),metaTitle:td(t.metaTitle||"",p),disableHrefLangs:p>1,template:{...i,isFirstPage:c,pageNumber:p,totalPages:e.length,baseLink:`${g}${m}`,queriedItems:u,totalQueriedItems:s?.length},isRoot:r,defaultLang:n};return await xs(b,o,!c)});return Promise.all(a)}function sd(t,e){let{multiPageElements:r,...n}=t,i=JSON.parse(JSON.stringify(r));i.find(({sectionSlug:o})=>o==="/")||i.push({});let s=i.map(async o=>{let a=JSON.parse(JSON.stringify(n)),{sectionSlug:u="/",title:h="",metaTitle:c="",metaDescription:p=""}=o,g=typeof h=="string"?h:h.content,m=a.fullPath.compose||"",b=a.fullUrl.endsWith("/")?a.fullUrl.slice(0,-1):a.fullUrl,x=u?.replace(/\//g,""),F=u==="/"?x:x+"/",L=m.endsWith("/")?"":"/",B=`${m}${L}${F}`;return g.trim()&&(a.title=g),p.trim()&&(a.metaDescription=p),a.fullUrl=`${b}/${F}`,a.fullPath.compose=B,a.slug=B,a.template.activeSectionSlug=u,a.template.activeSectionBase=b,a.metaTitle=c.trim()||g.trim()||a.metaTitle,await xs(a,e)});return Promise.all(s)}function od(t){return new Promise(r=>{let n=(i,s=0)=>{if(!(!i||typeof i!="object")){for(let o in i){let a=i[o],u=a||typeof a=="object",h=JSON.stringify(a).includes('"hasGriddoMultiPage":true');if(!u||!h)continue;let{component:c,hasGriddoMultiPage:p,elements:g}=a;c&&p&&r(g||[]),n(a,s+1)}s||r(null)}};n([t])})}function fy(t,e,r){return e?.slice(t*(r-1),t*r)}function dy(t,e){let r=Math.ceil(e.length/t)||1;return Array.from({length:r},(i,s)=>s+1)?.map(i=>fy(t,e,i))}function ad(t){let e=t.queriedItems||[],r=t?.itemsPerPage||uy;return dy(r,e)}function ed(t){return t.replace(/\/+$/,"/")}function _s(t,e,r){let n=t.endsWith("/")?"":"/",i=r?.addEndingSlash?"/":"";return e<=1?ed(`${t}${i}`):ed(`${t}${n}${e}${i}`)}function td(t,e){return!t||e<=1?t:`${t} - ${e}`}var iv=z(nr()),sv=z(Rd());var ov=process.env.API_URL,av=!!process.env.GRIDDO_RENDER_ALL_SITES||!!process.env.updateAllSites,jt=process.env.GRIDDO_RENDER_SITE&&parseInt(process.env.GRIDDO_RENDER_SITE)||process.env.testSite&&parseInt(process.env.testSite),kd=(process.env.GRIDDO_RENDER_PAGES||process.env.testPage||"").split(",").map(t=>parseInt(t)).filter(Boolean),d5=JSON.parse(process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH||"false");async function Md(t){console.info(`API URL ${ov}`),await _t.login();let e=await ge.getAll(),r=av?e.filter(s=>!jt||s.id===jt):e.filter(s=>jt?s.id===jt:!!s.shouldBeUpdated);if(r.length){let s=r.map(async o=>{let a=await ge.getLanguages(o.id);return o.domains=a.items.filter(u=>u.domain&&u.domain.slug.indexOf(t)>0).map(u=>({[u.id]:`${u.domain.slug}${u.path}`}))});await Promise.all(s)}let n=r.filter(s=>jt?s.id===jt:!!s.isPublished&&s.domains.length>0),i=r.filter(s=>!s.isPublished&&s.shouldBeUpdated);return{sitesToPublish:n,sitesToUnpublish:i}}async function qd(t){for(let e of t){let r=await ge.startSiteRender(e.id),{siteHash:n}=r,i={siteHash:n,publishHashes:[],unpublishHashes:[]};await ge.endSiteRender(e.id,i)}}async function Td(t){let e=await ge.startSiteRender(t),r=await ge.getInfo(t),n=await ge.getLanguages(t),i=await ge.getSocials(t),s=n.items,o=s.find(b=>b.isDefault),{siteHash:a,unpublishHashes:u,publishIds:h}=e,{headers:c,footers:p}=r,g=kd.length?kd.filter(b=>h.includes(b)):h;return{siteInfo:r,validPagesIds:g,siteHash:a,unpublishHashes:u,siteLangs:s,defaultLang:o,headers:c,footers:p,socials:i}}Ld.default.config();var uv=process.env.API_URL,cv=process.env.GRIDDO_REACT_APP_INSTANCE||process.env.REACT_APP_INSTANCE,Nd=parseInt(process.env.GRIDDO_API_CONCURRENCY_COUNT||"10"),lv=process.env.PUBLIC_API_URL,fv=process.env.GRIDDO_RENDERID||new Date().valueOf().toString(),jd=[],io={};async function Bd(t,e){console.info(`API calls with ${Nd} threads`);try{let{sitesToPublish:r,sitesToUnpublish:n}=await Md(e);await bs.getAll(),r.length||n.length||(console.warn("There are no sites to update"),process.exit(0)),console.info(`Sites to publish: ${ps(r)}`),console.info(`Sites to unpublish: ${ps(n)}`),await qd(n);for(let i of r){let{id:s,slug:o,theme:a,favicon:u,changedPages:h=[],pages:c=[]}=i,{siteInfo:p,validPagesIds:g,siteHash:m,unpublishHashes:b,siteLangs:x,defaultLang:S,headers:F,footers:L,socials:B}=await Td(s),{cloudinaryName:G,useMetaTitle:Y,useMetaKeywords:ye,showBasicMetaRobots:De,avoidHrefLangsOnCanonicals:Q,avoidSelfReferenceCanonicals:D,avoidHrefLangXDefault:q,avoidDebugMetas:k}=bs.settings;io[s]={siteHash:m,unpublishHashes:b,publishHashes:[]};let X=new _n;X.navigations={headers:F,footers:L},i.languages=x;let I=Il(s,m),U=p.siteScript,O={siteUrl:p.slug,title:p.name,favicon:u},j={baseUrl:uv,publicBaseUrl:lv,instance:cv,siteSlug:o,theme:a,siteMetadata:O,socials:B,siteLangs:x,cloudinaryName:G,griddoVersion:Nf,siteOptions:{useMetaTitle:Y,useMetaKeywords:ye,showBasicMetaRobots:De,avoidHrefLangsOnCanonicals:Q,avoidSelfReferenceCanonicals:D,avoidHrefLangXDefault:q,avoidDebugMetas:k},siteScript:U};qt(`${i.name} site`);let M=async re=>{let l=[],d=await ge.getPage(re,I);if(!d)return;jd.push(re);let f=JSON.parse(JSON.stringify(j));f.navigations=X.getPageNavigations(d);let v=await wn.getDistributorData({page:d,cacheKey:fv}),_=await od(v),w=d?.mode==="list",T=!w&&_,$=!T&&!w;if(w){let N={page:d,pages:ad(v),isRoot:!1,defaultLang:S,template:v,totalQueriedItems:v.queriedItems};l=await id(N,f)}if(T){let N=d;N.template=v,N.multiPageElements=_,N.defaultLang=S,l=await sd(N,f)}if($){let N=d;N.template=v,N.defaultLang=S,l=[await nd(N,f)]}d.hash!==null&&io[s].publishHashes.push(d.hash),Yf(t,l)},{pagesInStore:E,pagesMissingInStore:A,pagesToDeleteFromStore:Oe,pagesToWriteToStore:ke}=await Qf(t,{sitesToPublish:r,pages:c,validPagesIds:g,changedPages:h});Kf(t,Oe);let ae=`Store: ${E.length} -> ${E}
56
- ValidPages: ${g.length} -> ${g}
57
- Changed: ${h.length} -> ${h}
58
- Deleted/Unpublished: ${Oe.length} -> ${Oe}
59
- Missing in store: ${A.length} -> ${A}
60
- Finally to store: ${ke.length} -> ${ke}`;JSON.parse(process.env.GRIDDO_DEBUG_LOGS||"false")&&ur(ae,`Site store: ${i.name}`,1,0);let ve=(0,$d.default)(Nd),ft=ke.map(re=>ve(()=>M(re)));await Promise.all(ft)}Vf(t,{buildProcessData:io,createdPages:jd,sitesToPublish:r})}catch(r){console.error(r.message),process.exit(1)}}var Ud=so.default.resolve(__dirname,"../store/"),dv=so.default.resolve(__dirname,"../apiCache");async function Xd(t){Cl(),Jf(Ud),await Bd(Ud,t),Bf(dv)}async function hv(){let t=await zf();for(let e of t)Xd(e).catch(r=>{console.error("Error",r?.stdout?.toString()||r),process.exit(1)}),process.exit(0)}hv().catch(t=>{console.error("Error in create-build-data.ts:",t?.stdout?.toString()||t),process.exit(1)});
55
+ `))}var Kg=process.env.API_URL,Qg={GET_ALL:`${Kg}/domains`},bn=class{static async getAll(){let{GET_ALL:e}=Qg;return await Ae({endpoint:e})}};async function Gf(){await xt.login();let t=await bn.getAll();return Zg(t)}function Zg(t){let e=t.filter(({slug:r})=>!!r).map(({slug:r})=>r.replace("/",""));return[...new Set(e)]}var io=G(require("node:path"));var Ke=G(require("node:fs")),zf=G(require("node:fs/promises")),Oe=G(require("node:path")),gs=G(nr());async function*ey(t){let e=Oe.default.resolve(t),r=jf(e).filter(n=>Oe.default.extname(n)===".json");for(let n of r)try{let i=await zf.default.stat(n),s=await gs.default.readJSON(n,{encoding:"utf-8"});s.size=i.size/1024,s.path&&(yield s)}catch(i){console.error(`Error: The file ${n} doesn't exist`,i)}}function Wf(t){Ke.default.existsSync(t)||(Ke.default.mkdirSync(t),Ke.default.mkdirSync(Oe.default.resolve(t,"metadata"))),console.info("Store initialized")}function Jf(t,e){Ke.default.writeFileSync(Oe.default.resolve(t,"metadata","render-info.json"),JSON.stringify(e))}function ty(t,e){return ry(t).filter(i=>e.includes(i))}function ry(t){return Ke.default.readdirSync(t).filter(r=>{let n=`${t}/${r}`,i=Ke.default.statSync(n);if(i&&i.isDirectory()||Oe.default.extname(r)!==".json")return!1;let s=Oe.default.basename(r,Oe.default.extname(r));return!isNaN(parseInt(s))}).map(r=>{let n=Oe.default.basename(r,Oe.default.extname(r));return parseInt(n)})}function Vf(t,e){e.forEach(r=>{hs(r,["editorID","parentEditorID"]);let n=`${r.context.page.id}.json`,i=Oe.default.resolve(t,n);gs.default.writeJSONSync(i,r)})}function Yf(t,e){e.length!==0&&e.forEach(r=>{let n=Oe.default.resolve(t,`${r}.json`);try{Ke.default.unlinkSync(n)}catch(i){console.log(`Error removing file ${r}`,i.message)}})}async function Kf(t,e){let{changedPages:r,pages:n,validPagesIds:i,sitesToPublish:s}=e,o=ty(t,n),a=i.filter(m=>!o.includes(m)),u=a.concat(r),h=o.filter(m=>!i.includes(m)),c=Array.from(new Set(u)).filter(m=>!h.includes(m)),p=ey(Oe.default.resolve(__dirname,"../store")),g=[];for await(let m of p){let b=m.context.page.site,x=m.context.page.id;s.map(P=>P.id).includes(b)||g.push(x)}return{pagesInStore:o,pagesMissingInStore:a,pagesToDeleteFromStore:[...h,...g],pagesToWriteToStore:c}}var Nd=G(St()),jd=G(ss());var Qf=G(St());Qf.default.config();var ys=process.env.API_URL,Qe=`${ys}/site/`,Xe={GET_ALL:`${ys}/sites/all`,GET_PAGE:[`${ys}/page/`,""],INFO:[`${Qe}`,"/all"],LANGUAGES:[`${Qe}`,"/languages"],BUILD_START:[`${Qe}`,"/build/start"],BUILD_END:[`${Qe}`,"/build/end"],GET_DISTRIBUTOR_DATA:[`${Qe}`,"/distributor"],GET_SITEMAP:[`${Qe}`,"/sitemap"],SOCIALS:[`${Qe}`,"/socials"],GET_PAGES:[`${Qe}`,"/pages?pagination=false"]},ye=class{static async getAll(){let{GET_ALL:e}=Xe;return await Ae({endpoint:e})}static async getPage(e,r){let{GET_PAGE:[n,i]}=Xe;return await Ae({endpoint:`${n}${e}${i}`,cacheKey:r})}static async getInfo(e,r=""){let{INFO:[n,i]}=Xe;return await Ae({endpoint:`${n}${e}${i}`,cacheKey:r})}static async getLanguages(e,r=""){let{LANGUAGES:[n,i]}=Xe;return await Ae({endpoint:`${n}${e}${i}`,cacheKey:r})}static async startSiteRender(e){let{BUILD_START:[r,n]}=Xe;return await Ae({endpoint:`${r}${e}${n}`})}static async endSiteRender(e,r){let{BUILD_END:[n,i]}=Xe;return await cr({endpoint:`${n}${e}${i}`,body:r})}static async getDistributorData(e,r,n,i,s){let{GET_DISTRIBUTOR_DATA:[o,a]}=Xe,u=i||e.site,h=s||e.language;return await cr({endpoint:`${o}${u}${a}`,body:r,headers:{lang:h},cacheKey:n})}static async getSitemap(e){let{GET_SITEMAP:[r,n]}=Xe;return await Ae({endpoint:`${r}${e}${n}`})}static async getSocials(e,r=""){let{SOCIALS:[n,i]}=Xe;return await Ae({endpoint:`${n}${e}${i}`,cacheKey:r})}};var wn=class{static getBody(e,r){let{order:n,sources:i,quantity:s,mode:o,fixed:a,fullRelations:u=!1,allLanguages:h=!1,preferenceLanguage:c=!1,referenceId:p}=e;return o==="auto"?{mode:o,order:n,sources:i,quantity:s,fullRelations:u,allLanguages:h,preferenceLanguage:c}:o==="manual"?{mode:o,fixed:a,fullRelations:u}:o==="navigation"?{mode:o,order:n,quantity:s,fullRelations:u,referenceId:p||r?.structuredDataContent?.id}:(console.log(`Error: Distribuidor mode: ${o} is not recognized on page ${r?.id}.`),e)}static async fetchContentTypeData(e){let{page:r,component:{data:n},cacheKey:i}=e;if(!n)return ur(`Error: Page ${r.id} has \`hasDistributorData: true\` but it doesn't have a \`data\` prop`,"No data in ReferenceField"),[];if(Array.isArray(n.sources)&&n.sources.length<1)return ur(`Warning: Page with id: ${r.id} has a ReferenceField with empty \`data.sources\``,"Empty data.sources in ReferenceField"),[];let{site:s,lang:o}=n,a=this.getBody(n,r);return await ye.getDistributorData(r,a,i,s,o)}static async getDistributorData({page:e,cacheKey:r=""}){try{let{template:n}=e,i=async(a,u=1)=>{if(!(!a||typeof a!="object")&&JSON.stringify(a).includes('"hasDistributorData":true'))for(let h in a){if(h==="queriedItems")continue;let p=a[h];!p||typeof p!="object"||(p.hasDistributorData&&(p.queriedItems=await this.fetchContentTypeData({page:e,cacheKey:r,component:p})),await i(p,u+1))}};return await(async a=>(await i([a]),a))(n)}catch(n){console.error(`Error en get distributor ${n}`),process.exit(1)}}};var _n=class{_defaultHeaders;_defaultFooters;_navigations;constructor(){this._navigations={footers:[],headers:[]},this._defaultHeaders={},this._defaultFooters={}}set navigations(e){this._navigations=e,this._defaultFooters=this.getDefaultFooters(),this._defaultHeaders=this.getDefaultHeaders()}get navigations(){return this._navigations}getDefaultFooters(){return[...this.navigations.footers].filter(i=>!!i.setAsDefault).reduce((i,s)=>{let{language:o}=s;return{...i,[o]:s}},{})}getDefaultHeaders(){return[...this.navigations.headers].filter(i=>!!i.setAsDefault).reduce((i,s)=>{let{language:o}=s;return{...i,[o]:s}},{})}getRightLanguage(e,r,n){if(!e||!r)return null;let s=e.find(o=>o.language===n&&o.navigationLanguages?.find(a=>a.navigationId===r))||e.find(o=>o.id===r);return s?{...s}:null}getPageHeader(e,r){return this.getRightLanguage(this.navigations.headers,e,r)}getPageFooter(e,r){return this.getRightLanguage(this.navigations.footers,e,r)}getPageNavigations(e){let{header:r,footer:n,language:i,template:{templateType:s},templateConfig:{defaultHeader:o,defaultFooter:a,templates:u}}=e,h=b=>{let x=b.find(P=>typeof P=="number");return typeof x=="number"?x:null},c=h([r,u?.[s]?.defaultHeader,o]),p=h([n,u?.[s]?.defaultFooter,a]),g=c?this.getPageHeader(c,i):c===0?null:this._defaultHeaders[i],m=p?this.getPageFooter(p,i):p===0?null:this._defaultFooters[i];return{header:g,footer:m}}};var vs=class{baseURL;settings;ENDPOINTS;constructor(){this.baseURL=process.env.API_URL,this.settings={cloudinaryName:"",useMetaTitle:!1,useMetaKeywords:!1,showBasicMetaRobots:!1,avoidHrefLangsOnCanonicals:!1,avoidSelfReferenceCanonicals:!1,avoidHrefLangXDefault:!1,avoidDebugMetas:!1},this.ENDPOINTS={settings:`${this.baseURL}/settings`,resetRender:`${this.baseURL}/debug/reset-render`}}async getAll(){let{settings:e}=this.ENDPOINTS,r=await Ae({endpoint:e});this.settings=r}async resetRender(){let{resetRender:e}=this.ENDPOINTS;await cr({endpoint:e})}},bs=new vs;var td=G(St());function ws(t,e,r,n="jpg"){let i=typeof t=="string"?t:t?.url;return i?i.split("/")[2].includes("cloudinary.com")?iy(i,`c_fill,w_${e},h_${r}`):ny(i,`f/${n}/w/${e}/h/${r}`):null}function ny(t,e){let r=t.split("/"),n=r.slice(0,-1).join("/"),i=r.slice(-1)[0];return`${n}/${e}/${i}`}function iy(t,e){let r=t.replace("https://",""),n=r.split("/").slice(0,4).join("/"),i=r.replace(n,"");return`https://${n}/${e}${i}`}td.default.config();var sy=JSON.parse(process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH||"false"),oy=25;function ay({socialTitle:t,socialDescription:e,socialImage:r}){return{type:"website",title:t,description:e,image:r?ws(r,1280,768):"",twitterImage:r?ws(r,1280,768):""}}function uy(t){let{title:e,metaTitle:r,metaDescription:n,canonicalURL:i,locale:s,url:o,isIndexed:a,follow:u,metasAdvanced:h,pageLanguages:c,fullUrl:p,metaKeywords:g}=t,m=h?.split(",").filter(Boolean).map(b=>b.trim().toLowerCase())||[];return{title:(r||e||"").trim(),description:n,canonical:i&&i.trim()&&i!==p?i.trim():a?p:void 0,locale:s,url:o,index:a?"index":"noindex",follow:u?"follow":"nofollow",translate:m.includes("notranslate")?"notranslate":"",metasAdvanced:m.filter(b=>b!=="notranslate").join(),pageLanguages:c,metaKeywords:g?.filter(Boolean).map(b=>b.replace(/"/g,"'")).join(", ")}}async function xs(t,e){let{id:r,title:n,fullPath:i,language:s,breadcrumb:o,socialDescription:a,socialImage:u,socialTitle:h}=t,{baseUrl:c,cloudinaryName:p,griddoVersion:g,siteLangs:m,siteMetadata:b,siteOptions:x,siteScript:P,siteSlug:F,socials:N,theme:B,navigations:{header:X,footer:Y}}=e;t.breadcrumb=o,t.siteSlug=F,t.apiUrl=c,t.publicApiUrl=e.publicBaseUrl,t.instance=e.instance;let Ie=m.find(({id:I})=>I===t?.language)?.locale.replace(/_/g,"-"),Q=uy(t),D=ay({socialDescription:a,socialImage:u,socialTitle:h}),q=sy?i.compose:`${i.domain}${i.compose}`,k=new Date().toString();return{path:q,size:void 0,context:{id:r,title:n,fullPath:i,locale:Ie,languageId:s,theme:B,siteMetadata:b,pageMetadata:Q,openGraph:D,socials:N,siteLangs:m,cloudinaryName:p,siteOptions:x,griddoVersion:g,renderDate:k,siteScript:P,header:X,footer:Y,page:t}}}async function rd(t,e){return await xs(t,e)}async function nd({page:t,pages:e,isRoot:r=!1,defaultLang:n,template:i,totalQueriedItems:s},o){let a=e.map(async(u,h)=>{let c=h===0,p=h+1,{domainUrl:g,compose:m}=t.fullPath,b={...t,fullPath:{...t.fullPath,compose:_s(m,p,{addEndingSlash:!0})},fullUrl:_s(t.fullUrl,p,{addEndingSlash:!0}),slug:_s(t.slug,p),title:ed(t.title,p),metaTitle:ed(t.metaTitle||"",p),disableHrefLangs:p>1,template:{...i,isFirstPage:c,pageNumber:p,totalPages:e.length,baseLink:`${g}${m}`,queriedItems:u,totalQueriedItems:s?.length},isRoot:r,defaultLang:n};return await xs(b,o,!c)});return Promise.all(a)}function id(t,e){let{multiPageElements:r,...n}=t,i=JSON.parse(JSON.stringify(r));i.find(({sectionSlug:o})=>o==="/")||i.push({});let s=i.map(async o=>{let a=JSON.parse(JSON.stringify(n)),{sectionSlug:u="/",title:h="",metaTitle:c="",metaDescription:p=""}=o,g=typeof h=="string"?h:h.content,m=a.fullPath.compose||"",b=a.fullUrl.endsWith("/")?a.fullUrl.slice(0,-1):a.fullUrl,x=u?.replace(/\//g,""),F=u==="/"?x:x+"/",N=m.endsWith("/")?"":"/",B=`${m}${N}${F}`;return g.trim()&&(a.title=g),p.trim()&&(a.metaDescription=p),a.fullUrl=`${b}/${F}`,a.fullPath.compose=B,a.slug=B,a.template.activeSectionSlug=u,a.template.activeSectionBase=b,a.metaTitle=c.trim()||g.trim()||a.metaTitle,await xs(a,e)});return Promise.all(s)}function sd(t){return new Promise(r=>{let n=(i,s=0)=>{if(!(!i||typeof i!="object")){for(let o in i){let a=i[o],u=a||typeof a=="object",h=JSON.stringify(a).includes('"hasGriddoMultiPage":true');if(!u||!h)continue;let{component:c,hasGriddoMultiPage:p,elements:g}=a;c&&p&&r(g||[]),n(a,s+1)}s||r(null)}};n([t])})}function cy(t,e,r){return e?.slice(t*(r-1),t*r)}function ly(t,e){let r=Math.ceil(e.length/t)||1;return Array.from({length:r},(i,s)=>s+1)?.map(i=>cy(t,e,i))}function od(t){let e=t.queriedItems||[],r=t?.itemsPerPage||oy;return ly(r,e)}function Zf(t){return t.replace(/\/+$/,"/")}function _s(t,e,r){let n=t.endsWith("/")?"":"/",i=r?.addEndingSlash?"/":"";return e<=1?Zf(`${t}${i}`):Zf(`${t}${n}${e}${i}`)}function ed(t,e){return!t||e<=1?t:`${t} - ${e}`}var rv=G(nr()),nv=G(Ad());var iv=process.env.API_URL,sv=!!process.env.GRIDDO_RENDER_ALL_SITES||!!process.env.updateAllSites,Lt=process.env.GRIDDO_RENDER_SITE&&parseInt(process.env.GRIDDO_RENDER_SITE)||process.env.testSite&&parseInt(process.env.testSite),Rd=(process.env.GRIDDO_RENDER_PAGES||process.env.testPage||"").split(",").map(t=>parseInt(t)).filter(Boolean),l5=JSON.parse(process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH||"false");async function kd(t){console.info(`API URL ${iv}`),await xt.login();let e=await ye.getAll(),r=sv?e.filter(s=>!Lt||s.id===Lt):e.filter(s=>Lt?s.id===Lt:!!s.shouldBeUpdated);if(r.length)for(let s of r){let{items:o}=await ye.getLanguages(s.id);s.domains=o.filter(a=>a.domain&&(a.domain.slug===t||a.domain.slug===`/${t}`)).map(a=>({[a.id]:`${a.domain.slug}${a.path}`}))}let n=r.filter(s=>Lt?s.id===Lt:!!s.isPublished&&s.domains.length>0),i=r.filter(s=>!s.isPublished&&s.shouldBeUpdated);return{sitesToPublish:n,sitesToUnpublish:i}}async function Md(t){for(let e of t){let r=await ye.startSiteRender(e.id),{siteHash:n}=r,i={siteHash:n,publishHashes:[],unpublishHashes:[]};await ye.endSiteRender(e.id,i)}}async function qd(t){let e=await ye.startSiteRender(t),r=await ye.getInfo(t),n=await ye.getLanguages(t),i=await ye.getSocials(t),s=n.items,o=s.find(b=>b.isDefault),{siteHash:a,unpublishHashes:u,publishIds:h}=e,{headers:c,footers:p}=r,g=Rd.length?Rd.filter(b=>h.includes(b)):h;return{siteInfo:r,validPagesIds:g,siteHash:a,unpublishHashes:u,siteLangs:s,defaultLang:o,headers:c,footers:p,socials:i}}Nd.default.config();var ov=process.env.API_URL,av=process.env.GRIDDO_REACT_APP_INSTANCE||process.env.REACT_APP_INSTANCE,Td=parseInt(process.env.GRIDDO_API_CONCURRENCY_COUNT||"10"),uv=process.env.PUBLIC_API_URL,cv=process.env.GRIDDO_RENDERID||new Date().valueOf().toString();async function Ld(t,e){console.info(`API calls with ${Td} threads`);try{let r=[],n={},{sitesToPublish:i,sitesToUnpublish:s}=await kd(e);await bs.getAll(),i.length||s.length||(console.warn("There are no sites to update"),process.exit(0)),console.info(`Sites to publish: ${ps(i)}`),console.info(`Sites to unpublish: ${ps(s)}`),await Md(s);for(let o of i){let{id:a,slug:u,theme:h,favicon:c,changedPages:p=[],pages:g=[]}=o,{siteInfo:m,validPagesIds:b,siteHash:x,unpublishHashes:P,siteLangs:F,defaultLang:N,headers:B,footers:X,socials:Y}=await qd(a),{cloudinaryName:ve,useMetaTitle:Ie,useMetaKeywords:Q,showBasicMetaRobots:D,avoidHrefLangsOnCanonicals:q,avoidSelfReferenceCanonicals:k,avoidHrefLangXDefault:H,avoidDebugMetas:I}=bs.settings;n[a]={siteHash:x,unpublishHashes:P,publishHashes:[]};let $=new _n;$.navigations={headers:B,footers:X},o.languages=F;let O=Ol(a,x),L=m.siteScript,M={siteUrl:m.slug,title:m.name,favicon:c},C={baseUrl:ov,publicBaseUrl:uv,instance:av,siteSlug:u,theme:h,siteMetadata:M,socials:Y,siteLangs:F,cloudinaryName:ve,griddoVersion:Tf,siteOptions:{useMetaTitle:Ie,useMetaKeywords:Q,showBasicMetaRobots:D,avoidHrefLangsOnCanonicals:q,avoidSelfReferenceCanonicals:k,avoidHrefLangXDefault:H,avoidDebugMetas:I},siteScript:L};Tt(`${o.name} site`);let A=async d=>{let f=[],v=await ye.getPage(d,O);if(!v)return;r.push(d);let _=JSON.parse(JSON.stringify(C));_.navigations=$.getPageNavigations(v);let w=await wn.getDistributorData({page:v,cacheKey:cv}),T=await sd(w),j=v?.mode==="list",z=!j&&T,we=!z&&!j;if(j){let ue={page:v,pages:od(w),isRoot:!1,defaultLang:N,template:w,totalQueriedItems:w.queriedItems};f=await nd(ue,_)}if(z){let ue=v;ue.template=w,ue.multiPageElements=T,ue.defaultLang=N,f=await id(ue,_)}if(we){let ue=v;ue.template=w,ue.defaultLang=N,f=[await rd(ue,_)]}v.hash!==null&&n[a].publishHashes.push(v.hash),Vf(t,f)},{pagesInStore:ke,pagesMissingInStore:Le,pagesToDeleteFromStore:Z,pagesToWriteToStore:ae}=await Kf(t,{sitesToPublish:i,pages:g,validPagesIds:b,changedPages:p});Yf(t,Z);let dt=`Store: ${ke.length} -> ${ke}
56
+ ValidPages: ${b.length} -> ${b}
57
+ Changed: ${p.length} -> ${p}
58
+ Deleted/Unpublished: ${Z.length} -> ${Z}
59
+ Missing in store: ${Le.length} -> ${Le}
60
+ Finally to store: ${ae.length} -> ${ae}`;JSON.parse(process.env.GRIDDO_DEBUG_LOGS||"false")&&ur(dt,`Site store: ${o.name}`,1,0);let be=(0,jd.default)(Td),l=ae.map(d=>be(()=>A(d)));await Promise.all(l)}Jf(t,{buildProcessData:n,createdPages:r,sitesToPublish:i})}catch(r){console.error(r.message),process.exit(1)}}var $d=io.default.resolve(__dirname,"../store/"),lv=io.default.resolve(__dirname,"../apiCache");async function Bd(t){El(),Wf($d),await Ld($d,t),$f(lv)}async function fv(){let t=await Gf();for(let e of t)Bd(e).catch(r=>{console.error("Error",r?.stdout?.toString()||r),process.exit(1)}),process.exit(0)}fv().catch(t=>{console.error("Error in create-build-data.ts:",t?.stdout?.toString()||t),process.exit(1)});