@griddo/cx 10.6.4 → 10.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/build/adapters/gatsby/index.d.ts +1 -1
- package/build/artifacts/cx.d.ts +6 -0
- package/build/artifacts/gatsby.d.ts +6 -0
- package/build/artifacts/index.d.ts +15 -0
- package/build/build-complete.js +74 -34
- package/build/constants/endpoints.d.ts +18 -0
- package/build/constants/envs.d.ts +33 -0
- package/build/constants/index.d.ts +53 -0
- package/build/index.d.ts +4 -3
- package/build/index.js +90 -49
- package/build/reset-render.js +74 -34
- package/build/run-start-render.js +90 -49
- package/build/services/navigation.d.ts +0 -27
- package/build/services/robots.d.ts +2 -21
- package/build/services/settings.d.ts +3 -22
- package/build/services/sites.d.ts +20 -37
- package/build/start-render.js +90 -49
- package/build/types/global.d.ts +10 -14
- package/build/upload-search-content.js +70 -30
- package/build/utils/core-utils.d.ts +18 -60
- package/build/utils/domains.d.ts +5 -1
- package/build/utils/folders.d.ts +38 -13
- package/build/utils/loggin.d.ts +49 -0
- package/build/utils/render.d.ts +11 -0
- package/build/utils/store.d.ts +0 -1
- package/cx.config.d.ts +0 -15
- package/cx.config.js +3 -16
- package/exporter/adapters/gatsby/index.ts +94 -253
- package/exporter/adapters/gatsby/utils.ts +11 -10
- package/exporter/artifacts/README.md +28 -0
- package/exporter/artifacts/cx.ts +26 -0
- package/exporter/artifacts/gatsby.ts +28 -0
- package/exporter/artifacts/index.ts +30 -0
- package/exporter/browser/index.ts +4 -4
- package/exporter/constants/endpoints.ts +42 -0
- package/exporter/constants/envs.ts +86 -0
- package/exporter/constants/index.ts +120 -0
- package/exporter/errors/index.ts +2 -2
- package/exporter/index.ts +11 -10
- package/exporter/react/GriddoIntegrations/index.tsx +3 -3
- package/exporter/{build-complete.ts → scripts/build-complete.ts} +4 -4
- package/exporter/{reset-render.ts → scripts/reset-render.ts} +3 -3
- package/exporter/scripts/start-render.ts +26 -0
- package/exporter/{upload-search-content.ts → scripts/upload-search-content.ts} +3 -3
- package/exporter/services/auth.ts +7 -5
- package/exporter/services/distributors.ts +12 -18
- package/exporter/services/domains.ts +2 -12
- package/exporter/services/navigation.ts +10 -35
- package/exporter/services/robots.ts +35 -58
- package/exporter/services/settings.ts +7 -44
- package/exporter/services/sites.ts +101 -160
- package/exporter/services/store.ts +24 -29
- package/exporter/types/api.ts +1 -2
- package/exporter/types/global.ts +14 -22
- package/exporter/types/pages.ts +0 -9
- package/exporter/types/sites.ts +0 -3
- package/exporter/utils/api.ts +11 -10
- package/exporter/utils/core-utils.ts +66 -181
- package/exporter/utils/domains.ts +21 -3
- package/exporter/utils/folders.ts +163 -50
- package/exporter/utils/health-checks.ts +4 -4
- package/exporter/utils/instance.ts +3 -3
- package/exporter/utils/integrations.ts +12 -12
- package/exporter/utils/loggin.ts +159 -0
- package/exporter/utils/pages.ts +15 -15
- package/exporter/utils/render.ts +49 -0
- package/exporter/utils/searches.ts +5 -5
- package/exporter/utils/sites.ts +42 -48
- package/exporter/utils/store.ts +9 -10
- package/gatsby-browser.tsx +46 -48
- package/gatsby-config.ts +5 -5
- package/gatsby-node.ts +7 -7
- package/package.json +23 -28
- package/src/components/Head.tsx +1 -1
- package/src/gatsby-node-utils.ts +1 -1
- package/src/types.ts +0 -1
- package/src/utils.ts +1 -1
- package/exporter/start-render.ts +0 -18
- /package/build/{build-complete.d.ts → scripts/build-complete.d.ts} +0 -0
- /package/build/{move-assets.d.ts → scripts/move-assets.d.ts} +0 -0
- /package/build/{reset-render.d.ts → scripts/reset-render.d.ts} +0 -0
- /package/build/{run-start-render.d.ts → scripts/run-start-render.d.ts} +0 -0
- /package/build/{start-render.d.ts → scripts/start-render.d.ts} +0 -0
- /package/build/{upload-search-content.d.ts → scripts/upload-search-content.d.ts} +0 -0
- /package/exporter/{move-assets.ts → scripts/move-assets.ts} +0 -0
- /package/exporter/{run-start-render.ts → scripts/run-start-render.ts} +0 -0
package/build/build-complete.js
CHANGED
|
@@ -1,50 +1,90 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
`),function(a){if(s=a.indexOf(":"),n=on.trim(a.substr(0,s)).toLowerCase(),i=on.trim(a.substr(s+1)),n){if(r[n]&&nf.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 gs=v((fm,ys)=>{"use strict";var ms=ne();ys.exports=ms.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(s){var o=s;return t&&(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=ms.isString(o)?i(o):o;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}()});var bs=v((hm,vs)=>{"use strict";var Yt=ne(),sf=nn(),of=as(),af=Gt(),cf=sn(),uf=ps(),lf=gs(),an=Wt();vs.exports=function(t){return new Promise(function(n,i){var s=t.data,o=t.headers,a=t.responseType;Yt.isFormData(s)&&delete o["Content-Type"];var c=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",f=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.Authorization="Basic "+btoa(d+":"+f)}var p=cf(t.baseURL,t.url);c.open(t.method.toUpperCase(),af(p,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function y(){if(c){var S="getAllResponseHeaders"in c?uf(c.getAllResponseHeaders()):null,O=!a||a==="text"||a==="json"?c.responseText:c.response,R={data:O,status:c.status,statusText:c.statusText,headers:S,config:t,request:c};sf(n,i,R),c=null}}if("onloadend"in c?c.onloadend=y:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(y)},c.onabort=function(){c&&(i(an("Request aborted",t,"ECONNABORTED",c)),c=null)},c.onerror=function(){i(an("Network Error",t,null,c)),c=null},c.ontimeout=function(){var O="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(O=t.timeoutErrorMessage),i(an(O,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},Yt.isStandardBrowserEnv()){var m=(t.withCredentials||lf(p))&&t.xsrfCookieName?of.read(t.xsrfCookieName):void 0;m&&(o[t.xsrfHeaderName]=m)}"setRequestHeader"in c&&Yt.forEach(o,function(O,R){typeof s>"u"&&R.toLowerCase()==="content-type"?delete o[R]:c.setRequestHeader(R,O)}),Yt.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),a&&a!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(O){c&&(c.abort(),i(O),c=null)}),s||(s=null),c.send(s)})}});var Ss=v((dm,ws)=>{var Ve=1e3,Ye=Ve*60,Xe=Ye*60,Le=Xe*24,ff=Le*7,hf=Le*365.25;ws.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return df(e);if(r==="number"&&isFinite(e))return t.long?mf(e):pf(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function df(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*hf;case"weeks":case"week":case"w":return r*ff;case"days":case"day":case"d":return r*Le;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Xe;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ye;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ve;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function pf(e){var t=Math.abs(e);return t>=Le?Math.round(e/Le)+"d":t>=Xe?Math.round(e/Xe)+"h":t>=Ye?Math.round(e/Ye)+"m":t>=Ve?Math.round(e/Ve)+"s":e+"ms"}function mf(e){var t=Math.abs(e);return t>=Le?Xt(e,t,Le,"day"):t>=Xe?Xt(e,t,Xe,"hour"):t>=Ye?Xt(e,t,Ye,"minute"):t>=Ve?Xt(e,t,Ve,"second"):e+" ms"}function Xt(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var cn=v((pm,xs)=>{function yf(e){r.debug=r,r.default=r,r.coerce=c,r.disable=s,r.enable=i,r.enabled=o,r.humanize=Ss(),r.destroy=d,Object.keys(e).forEach(f=>{r[f]=e[f]}),r.names=[],r.skips=[],r.formatters={};function t(f){let p=0;for(let y=0;y<f.length;y++)p=(p<<5)-p+f.charCodeAt(y),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=t;function r(f){let p,y=null,m,S;function O(...R){if(!O.enabled)return;let T=O,B=Number(new Date),z=B-(p||B);T.diff=z,T.prev=p,T.curr=B,p=B,R[0]=r.coerce(R[0]),typeof R[0]!="string"&&R.unshift("%O");let G=0;R[0]=R[0].replace(/%([a-zA-Z%])/g,(ve,ke)=>{if(ve==="%%")return"%";G++;let ae=r.formatters[ke];if(typeof ae=="function"){let k=R[G];ve=ae.call(T,k),R.splice(G,1),G--}return ve}),r.formatArgs.call(T,R),(T.log||r.log).apply(T,R)}return O.namespace=f,O.useColors=r.useColors(),O.color=r.selectColor(f),O.extend=n,O.destroy=r.destroy,Object.defineProperty(O,"enabled",{enumerable:!0,configurable:!1,get:()=>y!==null?y:(m!==r.namespaces&&(m=r.namespaces,S=r.enabled(f)),S),set:R=>{y=R}}),typeof r.init=="function"&&r.init(O),O}function n(f,p){let y=r(this.namespace+(typeof p>"u"?":":p)+f);return y.log=this.log,y}function i(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let p,y=(typeof f=="string"?f:"").split(/[\s,]+/),m=y.length;for(p=0;p<m;p++)y[p]&&(f=y[p].replace(/\*/g,".*?"),f[0]==="-"?r.skips.push(new RegExp("^"+f.slice(1)+"$")):r.names.push(new RegExp("^"+f+"$")))}function s(){let f=[...r.names.map(a),...r.skips.map(a).map(p=>"-"+p)].join(",");return r.enable(""),f}function o(f){if(f[f.length-1]==="*")return!0;let p,y;for(p=0,y=r.skips.length;p<y;p++)if(r.skips[p].test(f))return!1;for(p=0,y=r.names.length;p<y;p++)if(r.names[p].test(f))return!0;return!1}function a(f){return f.toString().substring(2,f.toString().length-2).replace(/\.\*\?$/,"*")}function c(f){return f instanceof Error?f.stack||f.message:f}function d(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}xs.exports=yf});var Es=v((he,Kt)=>{he.formatArgs=vf;he.save=bf;he.load=wf;he.useColors=gf;he.storage=Sf();he.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();he.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 gf(){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 vf(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Kt.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),e.splice(n,0,t)}he.log=console.debug||console.log||(()=>{});function bf(e){try{e?he.storage.setItem("debug",e):he.storage.removeItem("debug")}catch{}}function wf(){let e;try{e=he.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function Sf(){try{return localStorage}catch{}}Kt.exports=cn()(he);var{formatters:xf}=Kt.exports;xf.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Cs=v((mm,_s)=>{"use strict";_s.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var fn=v((ym,Os)=>{"use strict";var Ef=require("os"),ks=require("tty"),ge=Cs(),{env:V}=process,Ae;ge("no-color")||ge("no-colors")||ge("color=false")||ge("color=never")?Ae=0:(ge("color")||ge("colors")||ge("color=true")||ge("color=always"))&&(Ae=1);"FORCE_COLOR"in V&&(V.FORCE_COLOR==="true"?Ae=1:V.FORCE_COLOR==="false"?Ae=0:Ae=V.FORCE_COLOR.length===0?1:Math.min(parseInt(V.FORCE_COLOR,10),3));function un(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ln(e,t){if(Ae===0)return 0;if(ge("color=16m")||ge("color=full")||ge("color=truecolor"))return 3;if(ge("color=256"))return 2;if(e&&!t&&Ae===void 0)return 0;let r=Ae||0;if(V.TERM==="dumb")return r;if(process.platform==="win32"){let n=Ef.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in V)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in V)||V.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in V)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(V.TEAMCITY_VERSION)?1:0;if(V.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in V){let n=parseInt((V.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(V.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(V.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(V.TERM)||"COLORTERM"in V?1:r}function _f(e){let t=ln(e,e&&e.isTTY);return un(t)}Os.exports={supportsColor:_f,stdout:un(ln(!0,ks.isatty(1))),stderr:un(ln(!0,ks.isatty(2)))}});var As=v((Y,Zt)=>{var Cf=require("tty"),Qt=require("util");Y.init=Tf;Y.log=Af;Y.formatArgs=Of;Y.save=Pf;Y.load=Mf;Y.useColors=kf;Y.destroy=Qt.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Y.colors=[6,2,3,4,5,1];try{let e=fn();e&&(e.stderr||e).level>=2&&(Y.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{}Y.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function kf(){return"colors"in Y.inspectOpts?!!Y.inspectOpts.colors:Cf.isatty(process.stderr.fd)}function Of(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${t} \x1B[0m`;e[0]=s+e[0].split(`
|
|
1
|
+
"use strict";var zp=Object.create;var Lr=Object.defineProperty;var Jp=Object.getOwnPropertyDescriptor;var Kp=Object.getOwnPropertyNames;var Qp=Object.getPrototypeOf,Zp=Object.prototype.hasOwnProperty;var ta=(e,t)=>()=>(e&&(t=e(e=0)),t);var g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ra=(e,t)=>{for(var r in t)Lr(e,r,{get:t[r],enumerable:!0})},na=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Kp(t))!Zp.call(e,i)&&i!==r&&Lr(e,i,{get:()=>t[i],enumerable:!(n=Jp(t,i))||n.enumerable});return e};var Y=(e,t,r)=>(r=e!=null?zp(Qp(e)):{},na(t||!e||!e.__esModule?Lr(r,"default",{value:e,enumerable:!0}):r,e)),ia=e=>na(Lr({},"__esModule",{value:!0}),e);var sa=g((ub,oa)=>{var mi=class{constructor(t){this.value=t,this.next=void 0}},yi=class{constructor(){this.clear()}enqueue(t){let r=new mi(t);this._head?(this._tail.next=r,this._tail=r):(this._head=r,this._tail=r),this._size++}dequeue(){let t=this._head;if(t)return this._head=this._head.next,this._size--,t.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let t=this._head;for(;t;)yield t.value,t=t.next}};oa.exports=yi});var ua=g((cb,aa)=>{"use strict";var em=sa(),tm=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let t=new em,r=0,n=()=>{r--,t.size>0&&t.dequeue()()},i=async(u,c,...p)=>{r++;let f=(async()=>u(...p))();c(f);try{await f}catch{}n()},o=(u,c,...p)=>{t.enqueue(i.bind(null,u,c,...p)),(async()=>(await Promise.resolve(),r<e&&t.size>0&&t.dequeue()()))()},a=(u,...c)=>new Promise(p=>{o(u,p,...c)});return Object.defineProperties(a,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),a};aa.exports=tm});var fa=g((lb,la)=>{"use strict";var ca=ua(),qr=class extends Error{constructor(t){super(),this.value=t}},rm=async(e,t)=>t(await e),nm=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new qr(t[0]);return!1},im=async(e,t,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=ca(r.concurrency),i=[...e].map(a=>[a,n(rm,a,t)]),o=ca(r.preserveOrder?1:1/0);try{await Promise.all(i.map(a=>o(nm,a)))}catch(a){if(a instanceof qr)return a.value;throw a}};la.exports=im});var va=g((fb,vi)=>{"use strict";var da=require("path"),Nr=require("fs"),{promisify:ha}=require("util"),om=fa(),sm=ha(Nr.stat),am=ha(Nr.lstat),pa={directory:"isDirectory",file:"isFile"};function ma({type:e}){if(!(e in pa))throw new Error(`Invalid type specified: ${e}`)}var ya=(e,t)=>e===void 0||t[pa[e]]();vi.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},ma(t);let r=t.allowSymlinks?sm:am;return om(e,async n=>{try{let i=await r(da.resolve(t.cwd,n));return ya(t.type,i)}catch{return!1}},t)};vi.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},ma(t);let r=t.allowSymlinks?Nr.statSync:Nr.lstatSync;for(let n of e)try{let i=r(da.resolve(t.cwd,n));if(ya(t.type,i))return n}catch{}}});var _a=g((db,gi)=>{"use strict";var ga=require("fs"),{promisify:um}=require("util"),cm=um(ga.access);gi.exports=async e=>{try{return await cm(e),!0}catch{return!1}};gi.exports.sync=e=>{try{return ga.accessSync(e),!0}catch{return!1}}});var Ei=g((hb,St)=>{"use strict";var Ke=require("path"),Mr=va(),Ea=_a(),_i=Symbol("findUp.stop");St.exports=async(e,t={})=>{let r=Ke.resolve(t.cwd||""),{root:n}=Ke.parse(r),i=[].concat(e),o=async a=>{if(typeof e!="function")return Mr(i,a);let u=await e(a.cwd);return typeof u=="string"?Mr([u],a):u};for(;;){let a=await o({...t,cwd:r});if(a===_i)return;if(a)return Ke.resolve(r,a);if(r===n)return;r=Ke.dirname(r)}};St.exports.sync=(e,t={})=>{let r=Ke.resolve(t.cwd||""),{root:n}=Ke.parse(r),i=[].concat(e),o=a=>{if(typeof e!="function")return Mr.sync(i,a);let u=e(a.cwd);return typeof u=="string"?Mr.sync([u],a):u};for(;;){let a=o({...t,cwd:r});if(a===_i)return;if(a)return Ke.resolve(r,a);if(r===n)return;r=Ke.dirname(r)}};St.exports.exists=Ea;St.exports.sync.exists=Ea.sync;St.exports.stop=_i});var Yt=g((pb,bi)=>{"use strict";var ba=require("path"),Sa=Ei(),lm=async e=>{let t=await Sa("package.json",{cwd:e});return t&&ba.dirname(t)};bi.exports=lm;bi.exports.sync=e=>{let t=Sa.sync("package.json",{cwd:e});return t&&ba.dirname(t)}});var Si=g((mb,wa)=>{"use strict";wa.exports=function(t,r){return function(){for(var i=new Array(arguments.length),o=0;o<i.length;o++)i[o]=arguments[o];return t.apply(r,i)}}});var Ee=g((yb,Da)=>{"use strict";var fm=Si(),at=Object.prototype.toString;function xi(e){return at.call(e)==="[object Array]"}function wi(e){return typeof e>"u"}function dm(e){return e!==null&&!wi(e)&&e.constructor!==null&&!wi(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function hm(e){return at.call(e)==="[object ArrayBuffer]"}function pm(e){return typeof FormData<"u"&&e instanceof FormData}function mm(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function ym(e){return typeof e=="string"}function vm(e){return typeof e=="number"}function Ca(e){return e!==null&&typeof e=="object"}function jr(e){if(at.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function gm(e){return at.call(e)==="[object Date]"}function _m(e){return at.call(e)==="[object File]"}function Em(e){return at.call(e)==="[object Blob]"}function xa(e){return at.call(e)==="[object Function]"}function bm(e){return Ca(e)&&xa(e.pipe)}function Sm(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function wm(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Cm(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Di(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),xi(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function Ci(){var e={};function t(i,o){jr(e[o])&&jr(i)?e[o]=Ci(e[o],i):jr(i)?e[o]=Ci({},i):xi(i)?e[o]=i.slice():e[o]=i}for(var r=0,n=arguments.length;r<n;r++)Di(arguments[r],t);return e}function xm(e,t,r){return Di(t,function(i,o){r&&typeof i=="function"?e[o]=fm(i,r):e[o]=i}),e}function Dm(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}Da.exports={isArray:xi,isArrayBuffer:hm,isBuffer:dm,isFormData:pm,isArrayBufferView:mm,isString:ym,isNumber:vm,isObject:Ca,isPlainObject:jr,isUndefined:wi,isDate:gm,isFile:_m,isBlob:Em,isFunction:xa,isStream:bm,isURLSearchParams:Sm,isStandardBrowserEnv:Cm,forEach:Di,merge:Ci,extend:xm,trim:wm,stripBOM:Dm}});var $r=g((vb,Oa)=>{"use strict";var wt=Ee();function Ra(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}Oa.exports=function(t,r,n){if(!r)return t;var i;if(n)i=n(r);else if(wt.isURLSearchParams(r))i=r.toString();else{var o=[];wt.forEach(r,function(c,p){c===null||typeof c>"u"||(wt.isArray(c)?p=p+"[]":c=[c],wt.forEach(c,function(d){wt.isDate(d)?d=d.toISOString():wt.isObject(d)&&(d=JSON.stringify(d)),o.push(Ra(p)+"="+Ra(d))}))}),i=o.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}});var Ta=g((gb,Ia)=>{"use strict";var Rm=Ee();function Br(){this.handlers=[]}Br.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};Br.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Br.prototype.forEach=function(t){Rm.forEach(this.handlers,function(n){n!==null&&t(n)})};Ia.exports=Br});var Pa=g((_b,Aa)=>{"use strict";var Om=Ee();Aa.exports=function(t,r){Om.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})}});var Ur=g((Eb,Fa)=>{"use strict";Fa.exports=function(t,r,n,i,o){return t.config=r,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}});var Gr=g((bb,ka)=>{"use strict";var Im=Ur();ka.exports=function(t,r,n,i,o){var a=new Error(t);return Im(a,r,n,i,o)}});var Ri=g((Sb,La)=>{"use strict";var Tm=Gr();La.exports=function(t,r,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):r(Tm("Request failed with status code "+n.status,n.config,null,n.request,n))}});var Na=g((wb,qa)=>{"use strict";var Xr=Ee();qa.exports=Xr.isStandardBrowserEnv()?function(){return{write:function(r,n,i,o,a,u){var c=[];c.push(r+"="+encodeURIComponent(n)),Xr.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),Xr.isString(o)&&c.push("path="+o),Xr.isString(a)&&c.push("domain="+a),u===!0&&c.push("secure"),document.cookie=c.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 ja=g((Cb,Ma)=>{"use strict";Ma.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}});var Ba=g((xb,$a)=>{"use strict";$a.exports=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}});var Oi=g((Db,Ua)=>{"use strict";var Am=ja(),Pm=Ba();Ua.exports=function(t,r){return t&&!Am(r)?Pm(t,r):r}});var Xa=g((Rb,Ga)=>{"use strict";var Ii=Ee(),Fm=["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"];Ga.exports=function(t){var r={},n,i,o;return t&&Ii.forEach(t.split(`
|
|
2
|
+
`),function(u){if(o=u.indexOf(":"),n=Ii.trim(u.substr(0,o)).toLowerCase(),i=Ii.trim(u.substr(o+1)),n){if(r[n]&&Fm.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 Wa=g((Ob,Ya)=>{"use strict";var Ha=Ee();Ya.exports=Ha.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(o){var a=o;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{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(a){var u=Ha.isString(a)?i(a):a;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}()});var za=g((Ib,Va)=>{"use strict";var Hr=Ee(),km=Ri(),Lm=Na(),qm=$r(),Nm=Oi(),Mm=Xa(),jm=Wa(),Ti=Gr();Va.exports=function(t){return new Promise(function(n,i){var o=t.data,a=t.headers,u=t.responseType;Hr.isFormData(o)&&delete a["Content-Type"];var c=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",f=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";a.Authorization="Basic "+btoa(p+":"+f)}var d=Nm(t.baseURL,t.url);c.open(t.method.toUpperCase(),qm(d,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function v(){if(c){var b="getAllResponseHeaders"in c?Mm(c.getAllResponseHeaders()):null,x=!u||u==="text"||u==="json"?c.responseText:c.response,C={data:x,status:c.status,statusText:c.statusText,headers:b,config:t,request:c};km(n,i,C),c=null}}if("onloadend"in c?c.onloadend=v:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(v)},c.onabort=function(){c&&(i(Ti("Request aborted",t,"ECONNABORTED",c)),c=null)},c.onerror=function(){i(Ti("Network Error",t,null,c)),c=null},c.ontimeout=function(){var x="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(x=t.timeoutErrorMessage),i(Ti(x,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},Hr.isStandardBrowserEnv()){var y=(t.withCredentials||jm(d))&&t.xsrfCookieName?Lm.read(t.xsrfCookieName):void 0;y&&(a[t.xsrfHeaderName]=y)}"setRequestHeader"in c&&Hr.forEach(a,function(x,C){typeof o>"u"&&C.toLowerCase()==="content-type"?delete a[C]:c.setRequestHeader(C,x)}),Hr.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),u&&u!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(x){c&&(c.abort(),i(x),c=null)}),o||(o=null),c.send(o)})}});var Ka=g((Tb,Ja)=>{var Ct=1e3,xt=Ct*60,Dt=xt*60,ut=Dt*24,$m=ut*7,Bm=ut*365.25;Ja.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Um(e);if(r==="number"&&isFinite(e))return t.long?Xm(e):Gm(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Um(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Bm;case"weeks":case"week":case"w":return r*$m;case"days":case"day":case"d":return r*ut;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Dt;case"minutes":case"minute":case"mins":case"min":case"m":return r*xt;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ct;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Gm(e){var t=Math.abs(e);return t>=ut?Math.round(e/ut)+"d":t>=Dt?Math.round(e/Dt)+"h":t>=xt?Math.round(e/xt)+"m":t>=Ct?Math.round(e/Ct)+"s":e+"ms"}function Xm(e){var t=Math.abs(e);return t>=ut?Yr(e,t,ut,"day"):t>=Dt?Yr(e,t,Dt,"hour"):t>=xt?Yr(e,t,xt,"minute"):t>=Ct?Yr(e,t,Ct,"second"):e+" ms"}function Yr(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var Ai=g((Ab,Qa)=>{function Hm(e){r.debug=r,r.default=r,r.coerce=c,r.disable=o,r.enable=i,r.enabled=a,r.humanize=Ka(),r.destroy=p,Object.keys(e).forEach(f=>{r[f]=e[f]}),r.names=[],r.skips=[],r.formatters={};function t(f){let d=0;for(let v=0;v<f.length;v++)d=(d<<5)-d+f.charCodeAt(v),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=t;function r(f){let d,v=null,y,b;function x(...C){if(!x.enabled)return;let P=x,X=Number(new Date),L=X-(d||X);P.diff=L,P.prev=d,P.curr=X,d=X,C[0]=r.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let $=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(xe,We)=>{if(xe==="%%")return"%";$++;let De=r.formatters[We];if(typeof De=="function"){let D=C[$];xe=De.call(P,D),C.splice($,1),$--}return xe}),r.formatArgs.call(P,C),(P.log||r.log).apply(P,C)}return x.namespace=f,x.useColors=r.useColors(),x.color=r.selectColor(f),x.extend=n,x.destroy=r.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:()=>v!==null?v:(y!==r.namespaces&&(y=r.namespaces,b=r.enabled(f)),b),set:C=>{v=C}}),typeof r.init=="function"&&r.init(x),x}function n(f,d){let v=r(this.namespace+(typeof d>"u"?":":d)+f);return v.log=this.log,v}function i(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let d,v=(typeof f=="string"?f:"").split(/[\s,]+/),y=v.length;for(d=0;d<y;d++)v[d]&&(f=v[d].replace(/\*/g,".*?"),f[0]==="-"?r.skips.push(new RegExp("^"+f.slice(1)+"$")):r.names.push(new RegExp("^"+f+"$")))}function o(){let f=[...r.names.map(u),...r.skips.map(u).map(d=>"-"+d)].join(",");return r.enable(""),f}function a(f){if(f[f.length-1]==="*")return!0;let d,v;for(d=0,v=r.skips.length;d<v;d++)if(r.skips[d].test(f))return!1;for(d=0,v=r.names.length;d<v;d++)if(r.names[d].test(f))return!0;return!1}function u(f){return f.toString().substring(2,f.toString().length-2).replace(/\.\*\?$/,"*")}function c(f){return f instanceof Error?f.stack||f.message:f}function p(){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}Qa.exports=Hm});var Za=g((Fe,Wr)=>{Fe.formatArgs=Wm;Fe.save=Vm;Fe.load=zm;Fe.useColors=Ym;Fe.storage=Jm();Fe.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Fe.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Ym(){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 Wm(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Wr.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),e.splice(n,0,t)}Fe.log=console.debug||console.log||(()=>{});function Vm(e){try{e?Fe.storage.setItem("debug",e):Fe.storage.removeItem("debug")}catch{}}function zm(){let e;try{e=Fe.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function Jm(){try{return localStorage}catch{}}Wr.exports=Ai()(Fe);var{formatters:Km}=Wr.exports;Km.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var tu=g((Pb,eu)=>{"use strict";eu.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var iu=g((Fb,nu)=>{"use strict";var Qm=require("os"),ru=require("tty"),qe=tu(),{env:se}=process,Qe;qe("no-color")||qe("no-colors")||qe("color=false")||qe("color=never")?Qe=0:(qe("color")||qe("colors")||qe("color=true")||qe("color=always"))&&(Qe=1);"FORCE_COLOR"in se&&(se.FORCE_COLOR==="true"?Qe=1:se.FORCE_COLOR==="false"?Qe=0:Qe=se.FORCE_COLOR.length===0?1:Math.min(parseInt(se.FORCE_COLOR,10),3));function Pi(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Fi(e,t){if(Qe===0)return 0;if(qe("color=16m")||qe("color=full")||qe("color=truecolor"))return 3;if(qe("color=256"))return 2;if(e&&!t&&Qe===void 0)return 0;let r=Qe||0;if(se.TERM==="dumb")return r;if(process.platform==="win32"){let n=Qm.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in se)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in se)||se.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in se)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(se.TEAMCITY_VERSION)?1:0;if(se.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in se){let n=parseInt((se.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(se.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(se.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(se.TERM)||"COLORTERM"in se?1:r}function Zm(e){let t=Fi(e,e&&e.isTTY);return Pi(t)}nu.exports={supportsColor:Zm,stdout:Pi(Fi(!0,ru.isatty(1))),stderr:Pi(Fi(!0,ru.isatty(2)))}});var su=g((le,zr)=>{var ey=require("tty"),Vr=require("util");le.init=ay;le.log=iy;le.formatArgs=ry;le.save=oy;le.load=sy;le.useColors=ty;le.destroy=Vr.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");le.colors=[6,2,3,4,5,1];try{let e=iu();e&&(e.stderr||e).level>=2&&(le.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{}le.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,o)=>o.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function ty(){return"colors"in le.inspectOpts?!!le.inspectOpts.colors:ey.isatty(process.stderr.fd)}function ry(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${i};1m${t} \x1B[0m`;e[0]=o+e[0].split(`
|
|
3
3
|
`).join(`
|
|
4
|
-
`+
|
|
5
|
-
`)}function
|
|
6
|
-
`).map(t=>t.trim()).join(" ")};Rs.O=function(e){return this.inspectOpts.colors=this.useColors,Qt.inspect(e,this.inspectOpts)}});var Ps=v((gm,hn)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?hn.exports=Es():hn.exports=As()});var Ts=v((vm,Ms)=>{var yt;Ms.exports=function(){if(!yt){try{yt=Ps()("follow-redirects")}catch{}typeof yt!="function"&&(yt=function(){})}yt.apply(null,arguments)}});var vn=v((bm,gn)=>{var $e=require("url"),dn=$e.URL,qf=require("http"),Ff=require("https"),Is=require("stream").Writable,Ds=require("assert"),Ns=Ts(),mn=["abort","aborted","connect","error","socket","timeout"],yn=Object.create(null);mn.forEach(function(e){yn[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var If=vt("ERR_INVALID_URL","Invalid URL",TypeError),qs=vt("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Df=vt("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Nf=vt("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),jf=vt("ERR_STREAM_WRITE_AFTER_END","write after end");function de(e,t){Is.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}de.prototype=Object.create(Is.prototype);de.prototype.abort=function(){Ls(this._currentRequest),this.emit("abort")};de.prototype.write=function(e,t,r){if(this._ending)throw new jf;if(!Be(e)&&!Bf(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(gt(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Nf),this.abort())};de.prototype.end=function(e,t,r){if(gt(e)?(r=e,e=t=null):gt(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(e,t,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};de.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};de.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};de.prototype.setTimeout=function(e,t){var r=this;function n(o){o.setTimeout(e),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()},e),n(o)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){de.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(de.prototype,e,{get:function(){return this._currentRequest[e]}})});de.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};de.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of mn)n.on(i,yn[i]);if(this._currentUrl=/^\//.test(this._options.path)?$e.format(this._options):this._options.path,this._isRedirect){var s=0,o=this,a=this._requestBodyBuffers;(function c(d){if(n===o._currentRequest)if(d)o.emit("error",d);else if(s<a.length){var f=a[s++];n.finished||n.write(f.data,f.encoding,c)}else o._ended&&n.end()})()}};de.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(Ls(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new Df);return}var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],pn(/^content-/i,this._options.headers));var o=pn(/^host$/i,this._options.headers),a=$e.parse(this._currentUrl),c=o||a.host,d=/^\w+:/.test(r)?this._currentUrl:$e.format(Object.assign(a,{host:c})),f;try{f=$e.resolve(d,r)}catch(S){this.emit("error",new qs({cause:S}));return}Ns("redirecting to",f),this._isRedirect=!0;var p=$e.parse(f);if(Object.assign(this._options,p),(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==c&&!$f(p.host,c))&&pn(/^(?:authorization|cookie)$/i,this._options.headers),gt(i)){var y={headers:e.headers,statusCode:t},m={url:d,method:s,headers:n};try{i(this._options,y,m)}catch(S){this.emit("error",S);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(S){this.emit("error",new qs({cause:S}))}};function js(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var i=n+":",s=r[i]=e[n],o=t[n]=Object.create(s);function a(d,f,p){if(Be(d)){var y;try{y=Fs(new dn(d))}catch{y=$e.parse(d)}if(!Be(y.protocol))throw new If({input:d});d=y}else dn&&d instanceof dn?d=Fs(d):(p=f,f=d,d={protocol:i});return gt(f)&&(p=f,f=null),f=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},d,f),f.nativeProtocols=r,!Be(f.host)&&!Be(f.hostname)&&(f.hostname="::1"),Ds.equal(f.protocol,i,"protocol mismatch"),Ns("options",f),new de(f,p)}function c(d,f,p){var y=o.request(d,f,p);return y.end(),y}Object.defineProperties(o,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function Lf(){}function Fs(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return e.port!==""&&(t.port=Number(e.port)),t}function pn(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function vt(e,t,r){function n(i){Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+e+"]",n}function Ls(e){for(var t of mn)e.removeListener(t,yn[t]);e.on("error",Lf),e.abort()}function $f(e,t){Ds(Be(e)&&Be(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function Be(e){return typeof e=="string"||e instanceof String}function gt(e){return typeof e=="function"}function Bf(e){return typeof e=="object"&&"length"in e}gn.exports=js({http:qf,https:Ff});gn.exports.wrap=js});var bn=v((wm,Uf)=>{Uf.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 zs=v((Sm,Gs)=>{"use strict";var bt=ne(),$s=nn(),Hf=sn(),Gf=Gt(),zf=require("http"),Jf=require("https"),Wf=vn().http,Vf=vn().https,Bs=require("url"),Yf=require("zlib"),Xf=bn(),er=Wt(),wn=Jt(),Us=/https:?/;function Hs(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(s){s.headers.host=s.host,Hs(s,t,s.href)}}Gs.exports=function(t){return new Promise(function(n,i){var s=function(_){n(_)},o=function(_){i(_)},a=t.data,c=t.headers;if("User-Agent"in c||"user-agent"in c?!c["User-Agent"]&&!c["user-agent"]&&(delete c["User-Agent"],delete c["user-agent"]):c["User-Agent"]="axios/"+Xf.version,a&&!bt.isStream(a)){if(!Buffer.isBuffer(a))if(bt.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(bt.isString(a))a=Buffer.from(a,"utf-8");else return o(er("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",t));c["Content-Length"]=a.length}var d=void 0;if(t.auth){var f=t.auth.username||"",p=t.auth.password||"";d=f+":"+p}var y=Hf(t.baseURL,t.url),m=Bs.parse(y),S=m.protocol||"http:";if(!d&&m.auth){var O=m.auth.split(":"),R=O[0]||"",T=O[1]||"";d=R+":"+T}d&&delete c.Authorization;var B=Us.test(S),z=B?t.httpsAgent:t.httpAgent,G={path:Gf(m.path,t.params,t.paramsSerializer).replace(/^\?/,""),method:t.method.toUpperCase(),headers:c,agent:z,agents:{http:t.httpAgent,https:t.httpsAgent},auth:d};t.socketPath?G.socketPath=t.socketPath:(G.hostname=m.hostname,G.port=m.port);var re=t.proxy;if(!re&&re!==!1){var ve=S.slice(0,-1)+"_proxy",ke=process.env[ve]||process.env[ve.toUpperCase()];if(ke){var ae=Bs.parse(ke),k=process.env.no_proxy||process.env.NO_PROXY,F=!0;if(k){var q=k.split(",").map(function(_){return _.trim()});F=!q.some(function(_){return _?_==="*"||_[0]==="."&&m.hostname.substr(m.hostname.length-_.length)===_?!0:m.hostname===_:!1})}if(F&&(re={host:ae.hostname,port:ae.port,protocol:ae.protocol},ae.auth)){var U=ae.auth.split(":");re.auth={username:U[0],password:U[1]}}}}re&&(G.headers.host=m.hostname+(m.port?":"+m.port:""),Hs(G,re,S+"//"+m.hostname+(m.port?":"+m.port:"")+G.path));var A,L=B&&(re?Us.test(re.protocol):!0);t.transport?A=t.transport:t.maxRedirects===0?A=L?Jf:zf:(t.maxRedirects&&(G.maxRedirects=t.maxRedirects),A=L?Vf:Wf),t.maxBodyLength>-1&&(G.maxBodyLength=t.maxBodyLength);var C=A.request(G,function(_){if(!C.aborted){var P=_,Oe=_.req||C;if(_.statusCode!==204&&Oe.method!=="HEAD"&&t.decompress!==!1)switch(_.headers["content-encoding"]){case"gzip":case"compress":case"deflate":P=P.pipe(Yf.createUnzip()),delete _.headers["content-encoding"];break}var Ne={status:_.statusCode,statusText:_.statusMessage,headers:_.headers,config:t,request:Oe};if(t.responseType==="stream")Ne.data=P,$s(s,o,Ne);else{var ce=[],pe=0;P.on("data",function(me){ce.push(me),pe+=me.length,t.maxContentLength>-1&&pe>t.maxContentLength&&(P.destroy(),o(er("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,Oe)))}),P.on("error",function(me){C.aborted||o(wn(me,t,null,Oe))}),P.on("end",function(){var me=Buffer.concat(ce);t.responseType!=="arraybuffer"&&(me=me.toString(t.responseEncoding),(!t.responseEncoding||t.responseEncoding==="utf8")&&(me=bt.stripBOM(me))),Ne.data=me,$s(s,o,Ne)})}}});if(C.on("error",function(_){C.aborted&&_.code!=="ERR_FR_TOO_MANY_REDIRECTS"||o(wn(_,t,null,C))}),t.timeout){var D=parseInt(t.timeout,10);if(isNaN(D)){o(er("error trying to parse `config.timeout` to int",t,"ERR_PARSE_TIMEOUT",C));return}C.setTimeout(D,function(){C.abort(),o(er("timeout of "+D+"ms exceeded",t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",C))})}t.cancelToken&&t.cancelToken.promise.then(function(_){C.aborted||(C.abort(),o(_))}),bt.isStream(a)?a.on("error",function(_){o(wn(_,t,null,C))}).pipe(C):C.end(a)})}});var rr=v((xm,Vs)=>{"use strict";var X=ne(),Js=rs(),Kf=Jt(),Qf={"Content-Type":"application/x-www-form-urlencoded"};function Ws(e,t){!X.isUndefined(e)&&X.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function Zf(){var e;return typeof XMLHttpRequest<"u"?e=bs():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(e=zs()),e}function eh(e,t,r){if(X.isString(e))try{return(t||JSON.parse)(e),X.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var tr={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:Zf(),transformRequest:[function(t,r){return Js(r,"Accept"),Js(r,"Content-Type"),X.isFormData(t)||X.isArrayBuffer(t)||X.isBuffer(t)||X.isStream(t)||X.isFile(t)||X.isBlob(t)?t:X.isArrayBufferView(t)?t.buffer:X.isURLSearchParams(t)?(Ws(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):X.isObject(t)||r&&r["Content-Type"]==="application/json"?(Ws(r,"application/json"),eh(t)):t}],transformResponse:[function(t){var r=this.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,s=!n&&this.responseType==="json";if(s||i&&X.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(s)throw o.name==="SyntaxError"?Kf(o,this,"E_JSON_PARSE"):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};tr.headers={common:{Accept:"application/json, text/plain, */*"}};X.forEach(["delete","get","head"],function(t){tr.headers[t]={}});X.forEach(["post","put","patch"],function(t){tr.headers[t]=X.merge(Qf)});Vs.exports=tr});var Xs=v((Em,Ys)=>{"use strict";var th=ne(),rh=rr();Ys.exports=function(t,r,n){var i=this||rh;return th.forEach(n,function(o){t=o.call(i,t,r)}),t}});var Sn=v((_m,Ks)=>{"use strict";Ks.exports=function(t){return!!(t&&t.__CANCEL__)}});var eo=v((Cm,Zs)=>{"use strict";var Qs=ne(),xn=Xs(),nh=Sn(),ih=rr();function En(e){e.cancelToken&&e.cancelToken.throwIfRequested()}Zs.exports=function(t){En(t),t.headers=t.headers||{},t.data=xn.call(t,t.data,t.headers,t.transformRequest),t.headers=Qs.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Qs.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||ih.adapter;return r(t).then(function(i){return En(t),i.data=xn.call(t,i.data,i.headers,t.transformResponse),i},function(i){return nh(i)||(En(t),i&&i.response&&(i.response.data=xn.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})}});var _n=v((km,to)=>{"use strict";var Q=ne();to.exports=function(t,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 c(y,m){return Q.isPlainObject(y)&&Q.isPlainObject(m)?Q.merge(y,m):Q.isPlainObject(m)?Q.merge({},m):Q.isArray(m)?m.slice():m}function d(y){Q.isUndefined(r[y])?Q.isUndefined(t[y])||(n[y]=c(void 0,t[y])):n[y]=c(t[y],r[y])}Q.forEach(i,function(m){Q.isUndefined(r[m])||(n[m]=c(void 0,r[m]))}),Q.forEach(s,d),Q.forEach(o,function(m){Q.isUndefined(r[m])?Q.isUndefined(t[m])||(n[m]=c(void 0,t[m])):n[m]=c(void 0,r[m])}),Q.forEach(a,function(m){m in r?n[m]=c(t[m],r[m]):m in t&&(n[m]=c(void 0,t[m]))});var f=i.concat(s).concat(o).concat(a),p=Object.keys(t).concat(Object.keys(r)).filter(function(m){return f.indexOf(m)===-1});return Q.forEach(p,d),n}});var oo=v((Om,so)=>{"use strict";var no=bn(),Cn={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Cn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var ro={},sh=no.version.split(".");function io(e,t){for(var r=t?t.split("."):sh,n=e.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}Cn.transitional=function(t,r,n){var i=r&&io(r);function s(o,a){return"[Axios v"+no.version+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,c){if(t===!1)throw new Error(s(a," has been removed in "+r));return i&&!ro[a]&&(ro[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,c):!0}};function oh(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var s=n[i],o=t[s];if(o){var a=e[s],c=a===void 0||o(a,s,e);if(c!==!0)throw new TypeError("option "+s+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+s)}}so.exports={isOlderVersion:io,assertOptions:oh,validators:Cn}});var ho=v((Rm,fo)=>{"use strict";var uo=ne(),ah=Gt(),ao=es(),co=eo(),nr=_n(),lo=oo(),Ke=lo.validators;function wt(e){this.defaults=e,this.interceptors={request:new ao,response:new ao}}wt.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=nr(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&lo.assertOptions(r,{silentJSONParsing:Ke.transitional(Ke.boolean,"1.0.0"),forcedJSONParsing:Ke.transitional(Ke.boolean,"1.0.0"),clarifyTimeoutError:Ke.transitional(Ke.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(t)===!1||(i=i&&y.synchronous,n.unshift(y.fulfilled,y.rejected))});var s=[];this.interceptors.response.forEach(function(y){s.push(y.fulfilled,y.rejected)});var o;if(!i){var a=[co,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(s),o=Promise.resolve(t);a.length;)o=o.then(a.shift(),a.shift());return o}for(var c=t;n.length;){var d=n.shift(),f=n.shift();try{c=d(c)}catch(p){f(p);break}}try{o=co(c)}catch(p){return Promise.reject(p)}for(;s.length;)o=o.then(s.shift(),s.shift());return o};wt.prototype.getUri=function(t){return t=nr(this.defaults,t),ah(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};uo.forEach(["delete","get","head","options"],function(t){wt.prototype[t]=function(r,n){return this.request(nr(n||{},{method:t,url:r,data:(n||{}).data}))}});uo.forEach(["post","put","patch"],function(t){wt.prototype[t]=function(r,n,i){return this.request(nr(i||{},{method:t,url:r,data:n}))}});fo.exports=wt});var On=v((Am,po)=>{"use strict";function kn(e){this.message=e}kn.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};kn.prototype.__CANCEL__=!0;po.exports=kn});var yo=v((Pm,mo)=>{"use strict";var ch=On();function ir(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(i){t=i});var r=this;e(function(i){r.reason||(r.reason=new ch(i),t(r.reason))})}ir.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};ir.source=function(){var t,r=new ir(function(i){t=i});return{token:r,cancel:t}};mo.exports=ir});var vo=v((Mm,go)=>{"use strict";go.exports=function(t){return function(n){return t.apply(null,n)}}});var wo=v((Tm,bo)=>{"use strict";bo.exports=function(t){return typeof t=="object"&&t.isAxiosError===!0}});var Eo=v((qm,Rn)=>{"use strict";var So=ne(),uh=Qr(),sr=ho(),lh=_n(),fh=rr();function xo(e){var t=new sr(e),r=uh(sr.prototype.request,t);return So.extend(r,sr.prototype,t),So.extend(r,t),r}var we=xo(fh);we.Axios=sr;we.create=function(t){return xo(lh(we.defaults,t))};we.Cancel=On();we.CancelToken=yo();we.isCancel=Sn();we.all=function(t){return Promise.all(t)};we.spread=vo();we.isAxiosError=wo();Rn.exports=we;Rn.exports.default=we});var An=v((Fm,_o)=>{_o.exports=Eo()});var ko=v((Im,Co)=>{"use strict";var hh=/[|\\{}()[\]^$+*?.]/g;Co.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(hh,"\\$&")}});var Ro=v((Dm,Oo)=>{"use strict";Oo.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 Pn=v((Nm,To)=>{var Ue=Ro(),Mo={};for(or in Ue)Ue.hasOwnProperty(or)&&(Mo[Ue[or]]=or);var or,x=To.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(ie in x)if(x.hasOwnProperty(ie)){if(!("channels"in x[ie]))throw new Error("missing channels property: "+ie);if(!("labels"in x[ie]))throw new Error("missing channel labels property: "+ie);if(x[ie].labels.length!==x[ie].channels)throw new Error("channel and label counts mismatch: "+ie);Ao=x[ie].channels,Po=x[ie].labels,delete x[ie].channels,delete x[ie].labels,Object.defineProperty(x[ie],"channels",{value:Ao}),Object.defineProperty(x[ie],"labels",{value:Po})}var Ao,Po,ie;x.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,a,c,d;return s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),d=(i+s)/2,s===i?c=0:d<=.5?c=o/(s+i):c=o/(2-s-i),[a,c*100,d*100]};x.rgb.hsv=function(e){var t,r,n,i,s,o=e[0]/255,a=e[1]/255,c=e[2]/255,d=Math.max(o,a,c),f=d-Math.min(o,a,c),p=function(y){return(d-y)/6/f+1/2};return f===0?i=s=0:(s=f/d,t=p(o),r=p(a),n=p(c),o===d?i=n-r:a===d?i=1/3+t-n:c===d&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,d*100]};x.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=x.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};x.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,s,o,a;return a=Math.min(1-t,1-r,1-n),i=(1-t-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 dh(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}x.rgb.keyword=function(e){var t=Mo[e];if(t)return t;var r=1/0,n;for(var i in Ue)if(Ue.hasOwnProperty(i)){var s=Ue[i],o=dh(e,s);o<r&&(r=o,n=i)}return n};x.keyword.rgb=function(e){return Ue[e]};x.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};x.rgb.lab=function(e){var t=x.rgb.xyz(e),r=t[0],n=t[1],i=t[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]};x.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o,a,c;if(r===0)return c=n*255,[c,c,c];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var d=0;d<3;d++)o=t+1/3*-(d-1),o<0&&o++,o>1&&o--,6*o<1?c=i+(s-i)*6*o:2*o<1?c=s:3*o<2?c=i+(s-i)*(2/3-o)*6:c=i,a[d]=c*255;return a};x.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[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),[t,o*100,a*100]};x.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};x.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[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,[t,o*100,a*100]};x.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s,o,a,c;i>1&&(r/=i,n/=i),s=Math.floor(6*t),o=1-n,a=6*t-s,s&1&&(a=1-a),c=r+a*(o-r);var d,f,p;switch(s){default:case 6:case 0:d=o,f=c,p=r;break;case 1:d=c,f=o,p=r;break;case 2:d=r,f=o,p=c;break;case 3:d=r,f=c,p=o;break;case 4:d=c,f=r,p=o;break;case 5:d=o,f=r,p=c;break}return[d*255,f*255,p*255]};x.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s,o,a;return s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};x.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*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]};x.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(t-r),o=200*(r-n),[i,s,o]};x.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),c=Math.pow(i,3),d=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=d>.008856?d:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};x.lab.lch=function(e){var t=e[0],r=e[1],n=e[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),[t,o,s]};x.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[t,i,s]};x.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:x.rgb.hsv(e)[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(t/255));return i===2&&(s+=60),s};x.hsv.ansi16=function(e){return x.rgb.ansi16(x.hsv.rgb(e),e[2])};x.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};x.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};x.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};x.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};x.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};x.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,a,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===t?c=(r-n)/o%6:i===r?c=2+(n-t)/o:c=4+(t-r)/o+4,c/=6,c%=1,[c*360,o*100,a*100]};x.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};x.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};x.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=t%1*6,o=s%1,a=1-o,c=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 c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};x.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};x.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};x.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};x.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};x.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};x.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};x.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};x.gray.hsl=x.gray.hsv=function(e){return[0,0,e[0]]};x.gray.hwb=function(e){return[0,100,e[0]]};x.gray.cmyk=function(e){return[0,0,0,e[0]]};x.gray.lab=function(e){return[e[0],0,0]};x.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};x.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}});var Fo=v((jm,qo)=>{var ar=Pn();function ph(){for(var e={},t=Object.keys(ar),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function mh(e){var t=ph(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(ar[n]),s=i.length,o=0;o<s;o++){var a=i[o],c=t[a];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(a))}return t}function yh(e,t){return function(r){return t(e(r))}}function gh(e,t){for(var r=[t[e].parent,e],n=ar[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=yh(ar[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}qo.exports=function(e){for(var t=mh(e),r={},n=Object.keys(t),i=n.length,s=0;s<i;s++){var o=n[s],a=t[o];a.parent!==null&&(r[o]=gh(o,t))}return r}});var Do=v((Lm,Io)=>{var Mn=Pn(),vh=Fo(),Qe={},bh=Object.keys(Mn);function wh(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function Sh(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}bh.forEach(function(e){Qe[e]={},Object.defineProperty(Qe[e],"channels",{value:Mn[e].channels}),Object.defineProperty(Qe[e],"labels",{value:Mn[e].labels});var t=vh(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];Qe[e][n]=Sh(i),Qe[e][n].raw=wh(i)})});Io.exports=Qe});var jo=v(($m,No)=>{"use strict";var Ze=Do(),cr=(e,t)=>function(){return`\x1B[${e.apply(Ze,arguments)+t}m`},ur=(e,t)=>function(){let r=e.apply(Ze,arguments);return`\x1B[${38+t};5;${r}m`},lr=(e,t)=>function(){let r=e.apply(Ze,arguments);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function xh(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(let i of Object.keys(t)){let s=t[i];for(let o of Object.keys(s)){let a=s[o];t[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},s[o]=t[o],e.set(a[0],a[1])}Object.defineProperty(t,i,{value:s,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:cr(r,0)},t.color.ansi256={ansi256:ur(r,0)},t.color.ansi16m={rgb:lr(n,0)},t.bgColor.ansi={ansi:cr(r,10)},t.bgColor.ansi256={ansi256:ur(r,10)},t.bgColor.ansi16m={rgb:lr(n,10)};for(let i of Object.keys(Ze)){if(typeof Ze[i]!="object")continue;let s=Ze[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(t.color.ansi[i]=cr(s.ansi16,0),t.bgColor.ansi[i]=cr(s.ansi16,10)),"ansi256"in s&&(t.color.ansi256[i]=ur(s.ansi256,0),t.bgColor.ansi256[i]=ur(s.ansi256,10)),"rgb"in s&&(t.color.ansi16m[i]=lr(s.rgb,0),t.bgColor.ansi16m[i]=lr(s.rgb,10))}return t}Object.defineProperty(No,"exports",{enumerable:!0,get:xh})});var $o=v((Bm,Lo)=>{"use strict";Lo.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var Uo=v((Um,Bo)=>{"use strict";var Eh=require("os"),Se=$o(),Z=process.env,et;Se("no-color")||Se("no-colors")||Se("color=false")?et=!1:(Se("color")||Se("colors")||Se("color=true")||Se("color=always"))&&(et=!0);"FORCE_COLOR"in Z&&(et=Z.FORCE_COLOR.length===0||parseInt(Z.FORCE_COLOR,10)!==0);function _h(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Ch(e){if(et===!1)return 0;if(Se("color=16m")||Se("color=full")||Se("color=truecolor"))return 3;if(Se("color=256"))return 2;if(e&&!e.isTTY&&et!==!0)return 0;let t=et?1:0;if(process.platform==="win32"){let r=Eh.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 Z)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in Z)||Z.CI_NAME==="codeship"?1:t;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 r=parseInt((Z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Z.TERM_PROGRAM){case"iTerm.app":return r>=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:(Z.TERM==="dumb",t)}function Tn(e){let t=Ch(e);return _h(t)}Bo.exports={supportsColor:Tn,stdout:Tn(process.stdout),stderr:Tn(process.stderr)}});var Wo=v((Hm,Jo)=>{"use strict";var kh=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Ho=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Oh=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Rh=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Ah=new Map([["n",`
|
|
7
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function
|
|
8
|
-
`,
|
|
9
|
-
GFS4: `),console.error(e)});H[K]||(ua=global[K]||[],fa(H,ua),H.close=function(e){function t(r,n){return e.call(H,r,function(i){i||la(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,vr,{value:e}),t}(H.close),H.closeSync=function(e){function t(r){e.apply(H,arguments),la()}return Object.defineProperty(t,vr,{value:e}),t}(H.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){He(H[K]),require("assert").equal(H[K].length,0)}));var ua;global[K]||fa(global,H[K]);Bn.exports=Ln(Kh(H));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!H.__patched&&(Bn.exports=Ln(H),H.__patched=!0);function Ln(e){Yh(e),e.gracefulify=Ln,e.createReadStream=re,e.createWriteStream=ve;var t=e.readFile;e.readFile=r;function r(k,F,q){return typeof F=="function"&&(q=F,F=null),U(k,F,q);function U(A,L,C,D){return t(A,L,function(M){M&&(M.code==="EMFILE"||M.code==="ENFILE")?rt([U,[A,L,C],M,D||Date.now(),Date.now()]):typeof C=="function"&&C.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(k,F,q,U){return typeof q=="function"&&(U=q,q=null),A(k,F,q,U);function A(L,C,D,M,_){return n(L,C,D,function(P){P&&(P.code==="EMFILE"||P.code==="ENFILE")?rt([A,[L,C,D,M],P,_||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(k,F,q,U){return typeof q=="function"&&(U=q,q=null),A(k,F,q,U);function A(L,C,D,M,_){return s(L,C,D,function(P){P&&(P.code==="EMFILE"||P.code==="ENFILE")?rt([A,[L,C,D,M],P,_||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=c);function c(k,F,q,U){return typeof q=="function"&&(U=q,q=0),A(k,F,q,U);function A(L,C,D,M,_){return a(L,C,D,function(P){P&&(P.code==="EMFILE"||P.code==="ENFILE")?rt([A,[L,C,D,M],P,_||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var d=e.readdir;e.readdir=p;var f=/^v[0-5]\./;function p(k,F,q){typeof F=="function"&&(q=F,F=null);var U=f.test(process.version)?function(C,D,M,_){return d(C,A(C,D,M,_))}:function(C,D,M,_){return d(C,D,A(C,D,M,_))};return U(k,F,q);function A(L,C,D,M){return function(_,P){_&&(_.code==="EMFILE"||_.code==="ENFILE")?rt([U,[L,C,D],_,M||Date.now(),Date.now()]):(P&&P.sort&&P.sort(),typeof D=="function"&&D.call(this,_,P))}}}if(process.version.substr(0,4)==="v0.8"){var y=Xh(e);T=y.ReadStream,z=y.WriteStream}var m=e.ReadStream;m&&(T.prototype=Object.create(m.prototype),T.prototype.open=B);var S=e.WriteStream;S&&(z.prototype=Object.create(S.prototype),z.prototype.open=G),Object.defineProperty(e,"ReadStream",{get:function(){return T},set:function(k){T=k},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return z},set:function(k){z=k},enumerable:!0,configurable:!0});var O=T;Object.defineProperty(e,"FileReadStream",{get:function(){return O},set:function(k){O=k},enumerable:!0,configurable:!0});var R=z;Object.defineProperty(e,"FileWriteStream",{get:function(){return R},set:function(k){R=k},enumerable:!0,configurable:!0});function T(k,F){return this instanceof T?(m.apply(this,arguments),this):T.apply(Object.create(T.prototype),arguments)}function B(){var k=this;ae(k.path,k.flags,k.mode,function(F,q){F?(k.autoClose&&k.destroy(),k.emit("error",F)):(k.fd=q,k.emit("open",q),k.read())})}function z(k,F){return this instanceof z?(S.apply(this,arguments),this):z.apply(Object.create(z.prototype),arguments)}function G(){var k=this;ae(k.path,k.flags,k.mode,function(F,q){F?(k.destroy(),k.emit("error",F)):(k.fd=q,k.emit("open",q))})}function re(k,F){return new e.ReadStream(k,F)}function ve(k,F){return new e.WriteStream(k,F)}var ke=e.open;e.open=ae;function ae(k,F,q,U){return typeof q=="function"&&(U=q,q=null),A(k,F,q,U);function A(L,C,D,M,_){return ke(L,C,D,function(P,Oe){P&&(P.code==="EMFILE"||P.code==="ENFILE")?rt([A,[L,C,D,M],P,_||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}return e}function rt(e){He("ENQUEUE",e[0].name,e[1]),H[K].push(e),$n()}var gr;function la(){for(var e=Date.now(),t=0;t<H[K].length;++t)H[K][t].length>2&&(H[K][t][3]=e,H[K][t][4]=e);$n()}function $n(){if(clearTimeout(gr),gr=void 0,H[K].length!==0){var e=H[K].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)He("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){He("TIMEOUT",t.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,c=Math.max(s-i,1),d=Math.min(c*1.2,100);a>=d?(He("RETRY",t.name,r),t.apply(null,r.concat([i]))):H[K].push(e)}gr===void 0&&(gr=setTimeout($n,0))}}});var Et=v(Me=>{"use strict";var ha=ue().fromCallback,se=ee(),Zh=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof se[e]=="function");Object.keys(se).forEach(e=>{e!=="promises"&&(Me[e]=se[e])});Zh.forEach(e=>{Me[e]=ha(se[e])});Me.exists=function(e,t){return typeof t=="function"?se.exists(e,t):new Promise(r=>se.exists(e,r))};Me.read=function(e,t,r,n,i,s){return typeof s=="function"?se.read(e,t,r,n,i,s):new Promise((o,a)=>{se.read(e,t,r,n,i,(c,d,f)=>{if(c)return a(c);o({bytesRead:d,buffer:f})})})};Me.write=function(e,t,...r){return typeof r[r.length-1]=="function"?se.write(e,t,...r):new Promise((n,i)=>{se.write(e,t,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof se.writev=="function"&&(Me.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?se.writev(e,t,...r):new Promise((n,i)=>{se.writev(e,t,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffers:a})})})});typeof se.realpath.native=="function"&&(Me.realpath.native=ha(se.realpath.native))});var Un=v((Zm,da)=>{da.exports=e=>{let t=process.versions.node.split(".").map(r=>parseInt(r,10));return e=e.split(".").map(r=>parseInt(r,10)),t[0]>e[0]||t[0]===e[0]&&(t[1]>e[1]||t[1]===e[1]&&t[2]>=e[2])}});var va=v((e1,Hn)=>{"use strict";var nt=Et(),_e=require("path"),e0=Un(),pa=e0("10.12.0"),ma=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(_e.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}},ya=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),{...t,...e}},ga=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};Hn.exports.makeDir=async(e,t)=>{if(ma(e),t=ya(t),pa){let n=_e.resolve(e);return nt.mkdir(n,{mode:t.mode,recursive:!0})}let r=async n=>{try{await nt.mkdir(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(_e.dirname(n)===n)throw ga(n);if(i.message.includes("null bytes"))throw i;return await r(_e.dirname(n)),r(n)}try{if(!(await nt.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(_e.resolve(e))};Hn.exports.makeDirSync=(e,t)=>{if(ma(e),t=ya(t),pa){let n=_e.resolve(e);return nt.mkdirSync(n,{mode:t.mode,recursive:!0})}let r=n=>{try{nt.mkdirSync(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(_e.dirname(n)===n)throw ga(n);if(i.message.includes("null bytes"))throw i;return r(_e.dirname(n)),r(n)}try{if(!nt.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(_e.resolve(e))}});var xe=v((t1,ba)=>{"use strict";var t0=ue().fromPromise,{makeDir:r0,makeDirSync:Gn}=va(),zn=t0(r0);ba.exports={mkdirs:zn,mkdirsSync:Gn,mkdirp:zn,mkdirpSync:Gn,ensureDir:zn,ensureDirSync:Gn}});var Jn=v((r1,wa)=>{"use strict";var it=ee();function n0(e,t,r,n){it.open(e,"r+",(i,s)=>{if(i)return n(i);it.futimes(s,t,r,o=>{it.close(s,a=>{n&&n(o||a)})})})}function i0(e,t,r){let n=it.openSync(e,"r+");return it.futimesSync(n,t,r),it.closeSync(n)}wa.exports={utimesMillis:n0,utimesMillisSync:i0}});var _t=v((n1,_a)=>{"use strict";var st=Et(),le=require("path"),s0=require("util"),o0=Un(),br=o0("10.5.0"),Sa=e=>br?st.stat(e,{bigint:!0}):st.stat(e),Wn=e=>br?st.statSync(e,{bigint:!0}):st.statSync(e);function a0(e,t){return Promise.all([Sa(e),Sa(t).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function c0(e,t){let r,n=Wn(e);try{r=Wn(t)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function u0(e,t,r,n){s0.callbackify(a0)(e,t,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;return a&&wr(o,a)?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&Vn(e,t)?n(new Error(Sr(e,t,r))):n(null,{srcStat:o,destStat:a})})}function l0(e,t,r){let{srcStat:n,destStat:i}=c0(e,t);if(i&&wr(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&Vn(e,t))throw new Error(Sr(e,t,r));return{srcStat:n,destStat:i}}function xa(e,t,r,n,i){let s=le.resolve(le.dirname(e)),o=le.resolve(le.dirname(r));if(o===s||o===le.parse(o).root)return i();let a=(c,d)=>c?c.code==="ENOENT"?i():i(c):wr(t,d)?i(new Error(Sr(e,r,n))):xa(e,t,o,n,i);br?st.stat(o,{bigint:!0},a):st.stat(o,a)}function Ea(e,t,r,n){let i=le.resolve(le.dirname(e)),s=le.resolve(le.dirname(r));if(s===i||s===le.parse(s).root)return;let o;try{o=Wn(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(wr(t,o))throw new Error(Sr(e,r,n));return Ea(e,t,s,n)}function wr(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(br||t.ino<Number.MAX_SAFE_INTEGER||t.size===e.size&&t.mode===e.mode&&t.nlink===e.nlink&&t.atimeMs===e.atimeMs&&t.mtimeMs===e.mtimeMs&&t.ctimeMs===e.ctimeMs&&t.birthtimeMs===e.birthtimeMs))}function Vn(e,t){let r=le.resolve(e).split(le.sep).filter(i=>i),n=le.resolve(t).split(le.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function Sr(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}_a.exports={checkPaths:u0,checkPathsSync:l0,checkParentPaths:xa,checkParentPathsSync:Ea,isSrcSubdir:Vn}});var Aa=v((i1,Ra)=>{"use strict";var te=ee(),Ct=require("path"),f0=xe().mkdirsSync,h0=Jn().utimesMillisSync,kt=_t();function d0(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
10
|
-
|
|
11
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=
|
|
12
|
-
|
|
13
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`),
|
|
14
|
-
`,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+s}function yd(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}Mc.exports={stringify:md,stripBom:yd}});var Ic=v((b1,Fc)=>{var at;try{at=ee()}catch{at=require("fs")}var Ar=ue(),{stringify:Tc,stripBom:qc}=Rr();async function gd(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||at,n="throws"in t?t.throws:!0,i=await Ar.fromCallback(r.readFile)(e,t);i=qc(i);let s;try{s=JSON.parse(i,t?t.reviver:null)}catch(o){if(n)throw o.message=`${e}: ${o.message}`,o;return null}return s}var vd=Ar.fromPromise(gd);function bd(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||at,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=qc(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function wd(e,t,r={}){let n=r.fs||at,i=Tc(t,r);await Ar.fromCallback(n.writeFile)(e,i,r)}var Sd=Ar.fromPromise(wd);function xd(e,t,r={}){let n=r.fs||at,i=Tc(t,r);return n.writeFileSync(e,i,r)}var Ed={readFile:vd,readFileSync:bd,writeFile:Sd,writeFileSync:xd};Fc.exports=Ed});var Nc=v((w1,Dc)=>{"use strict";var Pr=Ic();Dc.exports={readJson:Pr.readFile,readJsonSync:Pr.readFileSync,writeJson:Pr.writeFile,writeJsonSync:Pr.writeFileSync}});var Mr=v((S1,$c)=>{"use strict";var _d=ue().fromCallback,Tt=ee(),jc=require("path"),Lc=xe(),Cd=Te().pathExists;function kd(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=jc.dirname(e);Cd(i,(s,o)=>{if(s)return n(s);if(o)return Tt.writeFile(e,t,r,n);Lc.mkdirs(i,a=>{if(a)return n(a);Tt.writeFile(e,t,r,n)})})}function Od(e,...t){let r=jc.dirname(e);if(Tt.existsSync(r))return Tt.writeFileSync(e,...t);Lc.mkdirsSync(r),Tt.writeFileSync(e,...t)}$c.exports={outputFile:_d(kd),outputFileSync:Od}});var Uc=v((x1,Bc)=>{"use strict";var{stringify:Rd}=Rr(),{outputFile:Ad}=Mr();async function Pd(e,t,r={}){let n=Rd(t,r);await Ad(e,n,r)}Bc.exports=Pd});var Gc=v((E1,Hc)=>{"use strict";var{stringify:Md}=Rr(),{outputFileSync:Td}=Mr();function qd(e,t,r){let n=Md(t,r);Td(e,n,r)}Hc.exports=qd});var Jc=v((_1,zc)=>{"use strict";var Fd=ue().fromPromise,oe=Nc();oe.outputJson=Fd(Uc());oe.outputJsonSync=Gc();oe.outputJSON=oe.outputJson;oe.outputJSONSync=oe.outputJsonSync;oe.writeJSON=oe.writeJson;oe.writeJSONSync=oe.writeJsonSync;oe.readJSON=oe.readJson;oe.readJSONSync=oe.readJsonSync;zc.exports=oe});var Qc=v((C1,Kc)=>{"use strict";var Yc=ee(),Id=require("path"),Dd=Xn().copySync,Xc=Pt().removeSync,Nd=xe().mkdirpSync,Wc=_t();function jd(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=Wc.checkPathsSync(e,t,"move");return Wc.checkParentPathsSync(e,i,t,"move"),Nd(Id.dirname(t)),Ld(e,t,n)}function Ld(e,t,r){if(r)return Xc(t),Vc(e,t,r);if(Yc.existsSync(t))throw new Error("dest already exists.");return Vc(e,t,r)}function Vc(e,t,r){try{Yc.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return $d(e,t,r)}}function $d(e,t,r){return Dd(e,t,{overwrite:r,errorOnExist:!0}),Xc(e)}Kc.exports=jd});var eu=v((k1,Zc)=>{"use strict";Zc.exports={moveSync:Qc()}});var su=v((O1,iu)=>{"use strict";var Bd=ee(),Ud=require("path"),Hd=Qn().copy,nu=Pt().remove,Gd=xe().mkdirp,zd=Te().pathExists,tu=_t();function Jd(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;tu.checkPaths(e,t,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;tu.checkParentPaths(e,a,t,"move",c=>{if(c)return n(c);Gd(Ud.dirname(t),d=>d?n(d):Wd(e,t,i,n))})})}function Wd(e,t,r,n){if(r)return nu(t,i=>i?n(i):ru(e,t,r,n));zd(t,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):ru(e,t,r,n))}function ru(e,t,r,n){Bd.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):Vd(e,t,r,n):n())}function Vd(e,t,r,n){Hd(e,t,{overwrite:r,errorOnExist:!0},s=>s?n(s):nu(e,n))}iu.exports=Jd});var au=v((R1,ou)=>{"use strict";var Yd=ue().fromCallback;ou.exports={move:Yd(su())}});var qt=v((A1,ei)=>{"use strict";ei.exports={...Et(),...Xn(),...Qn(),...ac(),...Pc(),...Jc(),...xe(),...eu(),...au(),...Mr(),...Te(),...Pt()};var cu=require("fs");Object.getOwnPropertyDescriptor(cu,"promises")&&Object.defineProperty(ei.exports,"promises",{get(){return cu.promises}})});var lu=v((P1,uu)=>{"use strict";uu.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 ti=v((M1,hu)=>{var Ft=lu(),fu={};for(let e of Object.keys(Ft))fu[Ft[e]]=e;var E={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};hu.exports=E;for(let e of Object.keys(E)){if(!("channels"in E[e]))throw new Error("missing channels property: "+e);if(!("labels"in E[e]))throw new Error("missing channel labels property: "+e);if(E[e].labels.length!==E[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=E[e];delete E[e].channels,delete E[e].labels,Object.defineProperty(E[e],"channels",{value:t}),Object.defineProperty(E[e],"labels",{value:r})}E.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,a,c;s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let d=(i+s)/2;return s===i?c=0:d<=.5?c=o/(s+i):c=o/(2-s-i),[a,c*100,d*100]};E.rgb.hsv=function(e){let t,r,n,i,s,o=e[0]/255,a=e[1]/255,c=e[2]/255,d=Math.max(o,a,c),f=d-Math.min(o,a,c),p=function(y){return(d-y)/6/f+1/2};return f===0?(i=0,s=0):(s=f/d,t=p(o),r=p(a),n=p(c),o===d?i=n-r:a===d?i=1/3+t-n:c===d&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,d*100]};E.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],i=E.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};E.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),s=(1-t-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function Xd(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}E.rgb.keyword=function(e){let t=fu[e];if(t)return t;let r=1/0,n;for(let i of Object.keys(Ft)){let s=Ft[i],o=Xd(e,s);o<r&&(r=o,n=i)}return n};E.keyword.rgb=function(e){return Ft[e]};E.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};E.rgb.lab=function(e){let t=E.rgb.xyz(e),r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};E.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,c=[0,0,0];for(let d=0;d<3;d++)s=t+1/3*-(d-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,c[d]=o*255;return c};E.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[t,a*100,o*100]};E.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};E.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[t,s*100,o*100]};E.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*t),a=1-n;s=6*t-o,o&1&&(s=1-s);let c=r+s*(a-r),d,f,p;switch(o){default:case 6:case 0:d=a,f=c,p=r;break;case 1:d=c,f=a,p=r;break;case 2:d=r,f=a,p=c;break;case 3:d=r,f=c,p=a;break;case 4:d=c,f=r,p=a;break;case 5:d=a,f=r,p=c;break}return[d*255,f*255,p*255]};E.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};E.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};E.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(t-r),o=200*(r-n);return[i,s,o]};E.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;let a=s**3,c=i**3,d=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=d>.008856?d:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};E.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[t,o,i]};E.lch.lab=function(e){let t=e[0],r=e[1],i=e[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[t,s,o]};E.rgb.ansi16=function(e,t=null){let[r,n,i]=e,s=t===null?E.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};E.hsv.ansi16=function(e){return E.rgb.ansi16(E.hsv.rgb(e),e[2])};E.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};E.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};E.ansi256.rgb=function(e){if(e>=232){let s=(e-232)*10+8;return[s,s,s]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};E.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};E.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};E.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,a,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===t?c=(r-n)/o%6:i===r?c=2+(n-t)/o:c=4+(t-r)/o,c/=6,c%=1,[c*360,o*100,a*100]};E.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};E.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};E.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=t%1*6,o=s%1,a=1-o,c=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 c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};E.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};E.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};E.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};E.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};E.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};E.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};E.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};E.gray.hsl=function(e){return[0,0,e[0]]};E.gray.hsv=E.gray.hsl;E.gray.hwb=function(e){return[0,100,e[0]]};E.gray.cmyk=function(e){return[0,0,0,e[0]]};E.gray.lab=function(e){return[e[0],0,0]};E.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};E.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var pu=v((T1,du)=>{var Tr=ti();function Kd(){let e={},t=Object.keys(Tr);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Qd(e){let t=Kd(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),i=Object.keys(Tr[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],c=t[a];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(a))}}return t}function Zd(e,t){return function(r){return t(e(r))}}function ep(e,t){let r=[t[e].parent,e],n=Tr[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=Zd(Tr[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}du.exports=function(e){let t=Qd(e),r={},n=Object.keys(t);for(let i=n.length,s=0;s<i;s++){let o=n[s];t[o].parent!==null&&(r[o]=ep(o,t))}return r}});var yu=v((q1,mu)=>{var ri=ti(),tp=pu(),ct={},rp=Object.keys(ri);function np(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function ip(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=e(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}rp.forEach(e=>{ct[e]={},Object.defineProperty(ct[e],"channels",{value:ri[e].channels}),Object.defineProperty(ct[e],"labels",{value:ri[e].labels});let t=tp(e);Object.keys(t).forEach(n=>{let i=t[n];ct[e][n]=ip(i),ct[e][n].raw=np(i)})});mu.exports=ct});var xu=v((F1,Su)=>{"use strict";var gu=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,vu=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},bu=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},qr=e=>e,wu=(e,t,r)=>[e,t,r],ut=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},ni,lt=(e,t,r,n)=>{ni===void 0&&(ni=yu());let i=n?10:0,s={};for(let[o,a]of Object.entries(ni)){let c=o==="ansi16"?"ansi":o;o===t?s[c]=e(r,i):typeof a=="object"&&(s[c]=e(a[t],i))}return s};function sp(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[i,s]of Object.entries(n))t[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=t[i],e.set(s[0],s[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",ut(t.color,"ansi",()=>lt(gu,"ansi16",qr,!1)),ut(t.color,"ansi256",()=>lt(vu,"ansi256",qr,!1)),ut(t.color,"ansi16m",()=>lt(bu,"rgb",wu,!1)),ut(t.bgColor,"ansi",()=>lt(gu,"ansi16",qr,!0)),ut(t.bgColor,"ansi256",()=>lt(vu,"ansi256",qr,!0)),ut(t.bgColor,"ansi16m",()=>lt(bu,"rgb",wu,!0)),t}Object.defineProperty(Su,"exports",{enumerable:!0,get:sp})});var _u=v((I1,Eu)=>{"use strict";var op=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.substr(s),o},ap=(e,t,r,n)=>{let i=0,s="";do{let o=e[n-1]==="\r";s+=e.substr(i,(o?n-1:n)-i)+t+(o?`\r
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
`);return s!==-1&&(t=mp(t,i,n,s)),n+t+i},ii,Fu=(e,...t)=>{let[r]=t;if(!Fr(r)||!Fr(r.raw))return t.join(" ");let n=t.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 ii===void 0&&(ii=Au()),ii(e,i.join(""))};Object.defineProperties(Ir.prototype,ft);var Nr=Ir();Nr.supportsColor=si;Nr.stderr=Ir({level:oi?oi.level:0});Nr.stderr.supportsColor=oi;Iu.exports=Nr});var Nu=v((ui,li)=>{(function(e,t){typeof ui=="object"&&typeof li<"u"?li.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.tinycolor=t())})(ui,function(){"use strict";function e(u){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},e(u)}var t=/^\s+/,r=/\s+$/;function n(u,h){if(u=u||"",h=h||{},u instanceof n)return u;if(!(this instanceof n))return new n(u,h);var l=i(u);this._originalInput=u,this._r=l.r,this._g=l.g,this._b=l.b,this._a=l.a,this._roundA=Math.round(100*this._a)/100,this._format=h.format||l.format,this._gradientType=h.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=l.ok}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var h=this.toRgb();return(h.r*299+h.g*587+h.b*114)/1e3},getLuminance:function(){var h=this.toRgb(),l,g,w,b,I,N;return l=h.r/255,g=h.g/255,w=h.b/255,l<=.03928?b=l/12.92:b=Math.pow((l+.055)/1.055,2.4),g<=.03928?I=g/12.92:I=Math.pow((g+.055)/1.055,2.4),w<=.03928?N=w/12.92:N=Math.pow((w+.055)/1.055,2.4),.2126*b+.7152*I+.0722*N},setAlpha:function(h){return this._a=U(h),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var h=c(this._r,this._g,this._b);return{h:h.h*360,s:h.s,v:h.v,a:this._a}},toHsvString:function(){var h=c(this._r,this._g,this._b),l=Math.round(h.h*360),g=Math.round(h.s*100),w=Math.round(h.v*100);return this._a==1?"hsv("+l+", "+g+"%, "+w+"%)":"hsva("+l+", "+g+"%, "+w+"%, "+this._roundA+")"},toHsl:function(){var h=o(this._r,this._g,this._b);return{h:h.h*360,s:h.s,l:h.l,a:this._a}},toHslString:function(){var h=o(this._r,this._g,this._b),l=Math.round(h.h*360),g=Math.round(h.s*100),w=Math.round(h.l*100);return this._a==1?"hsl("+l+", "+g+"%, "+w+"%)":"hsla("+l+", "+g+"%, "+w+"%, "+this._roundA+")"},toHex:function(h){return f(this._r,this._g,this._b,h)},toHexString:function(h){return"#"+this.toHex(h)},toHex8:function(h){return p(this._r,this._g,this._b,this._a,h)},toHex8String:function(h){return"#"+this.toHex8(h)},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(A(this._r,255)*100)+"%",g:Math.round(A(this._g,255)*100)+"%",b:Math.round(A(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(A(this._r,255)*100)+"%, "+Math.round(A(this._g,255)*100)+"%, "+Math.round(A(this._b,255)*100)+"%)":"rgba("+Math.round(A(this._r,255)*100)+"%, "+Math.round(A(this._g,255)*100)+"%, "+Math.round(A(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:F[f(this._r,this._g,this._b,!0)]||!1},toFilter:function(h){var l="#"+y(this._r,this._g,this._b,this._a),g=l,w=this._gradientType?"GradientType = 1, ":"";if(h){var b=n(h);g="#"+y(b._r,b._g,b._b,b._a)}return"progid:DXImageTransform.Microsoft.gradient("+w+"startColorstr="+l+",endColorstr="+g+")"},toString:function(h){var l=!!h;h=h||this._format;var g=!1,w=this._a<1&&this._a>=0,b=!l&&w&&(h==="hex"||h==="hex6"||h==="hex3"||h==="hex4"||h==="hex8"||h==="name");return b?h==="name"&&this._a===0?this.toName():this.toRgbString():(h==="rgb"&&(g=this.toRgbString()),h==="prgb"&&(g=this.toPercentageRgbString()),(h==="hex"||h==="hex6")&&(g=this.toHexString()),h==="hex3"&&(g=this.toHexString(!0)),h==="hex4"&&(g=this.toHex8String(!0)),h==="hex8"&&(g=this.toHex8String()),h==="name"&&(g=this.toName()),h==="hsl"&&(g=this.toHslString()),h==="hsv"&&(g=this.toHsvString()),g||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(h,l){var g=h.apply(null,[this].concat([].slice.call(l)));return this._r=g._r,this._g=g._g,this._b=g._b,this.setAlpha(g._a),this},lighten:function(){return this._applyModification(R,arguments)},brighten:function(){return this._applyModification(T,arguments)},darken:function(){return this._applyModification(B,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(S,arguments)},greyscale:function(){return this._applyModification(O,arguments)},spin:function(){return this._applyModification(z,arguments)},_applyCombination:function(h,l){return h.apply(null,[this].concat([].slice.call(l)))},analogous:function(){return this._applyCombination(ke,arguments)},complement:function(){return this._applyCombination(G,arguments)},monochromatic:function(){return this._applyCombination(ae,arguments)},splitcomplement:function(){return this._applyCombination(ve,arguments)},triad:function(){return this._applyCombination(re,[3])},tetrad:function(){return this._applyCombination(re,[4])}},n.fromRatio=function(u,h){if(e(u)=="object"){var l={};for(var g in u)u.hasOwnProperty(g)&&(g==="a"?l[g]=u[g]:l[g]=P(u[g]));u=l}return n(u,h)};function i(u){var h={r:0,g:0,b:0},l=1,g=null,w=null,b=null,I=!1,N=!1;return typeof u=="string"&&(u=jt(u)),e(u)=="object"&&(pe(u.r)&&pe(u.g)&&pe(u.b)?(h=s(u.r,u.g,u.b),I=!0,N=String(u.r).substr(-1)==="%"?"prgb":"rgb"):pe(u.h)&&pe(u.s)&&pe(u.v)?(g=P(u.s),w=P(u.v),h=d(u.h,g,w),I=!0,N="hsv"):pe(u.h)&&pe(u.s)&&pe(u.l)&&(g=P(u.s),b=P(u.l),h=a(u.h,g,b),I=!0,N="hsl"),u.hasOwnProperty("a")&&(l=u.a)),l=U(l),{ok:I,format:u.format||N,r:Math.min(255,Math.max(h.r,0)),g:Math.min(255,Math.max(h.g,0)),b:Math.min(255,Math.max(h.b,0)),a:l}}function s(u,h,l){return{r:A(u,255)*255,g:A(h,255)*255,b:A(l,255)*255}}function o(u,h,l){u=A(u,255),h=A(h,255),l=A(l,255);var g=Math.max(u,h,l),w=Math.min(u,h,l),b,I,N=(g+w)/2;if(g==w)b=I=0;else{var J=g-w;switch(I=N>.5?J/(2-g-w):J/(g+w),g){case u:b=(h-l)/J+(h<l?6:0);break;case h:b=(l-u)/J+2;break;case l:b=(u-h)/J+4;break}b/=6}return{h:b,s:I,l:N}}function a(u,h,l){var g,w,b;u=A(u,360),h=A(h,100),l=A(l,100);function I(ye,pt,be){return be<0&&(be+=1),be>1&&(be-=1),be<1/6?ye+(pt-ye)*6*be:be<1/2?pt:be<2/3?ye+(pt-ye)*(2/3-be)*6:ye}if(h===0)g=w=b=l;else{var N=l<.5?l*(1+h):l+h-l*h,J=2*l-N;g=I(J,N,u+1/3),w=I(J,N,u),b=I(J,N,u-1/3)}return{r:g*255,g:w*255,b:b*255}}function c(u,h,l){u=A(u,255),h=A(h,255),l=A(l,255);var g=Math.max(u,h,l),w=Math.min(u,h,l),b,I,N=g,J=g-w;if(I=g===0?0:J/g,g==w)b=0;else{switch(g){case u:b=(h-l)/J+(h<l?6:0);break;case h:b=(l-u)/J+2;break;case l:b=(u-h)/J+4;break}b/=6}return{h:b,s:I,v:N}}function d(u,h,l){u=A(u,360)*6,h=A(h,100),l=A(l,100);var g=Math.floor(u),w=u-g,b=l*(1-h),I=l*(1-w*h),N=l*(1-(1-w)*h),J=g%6,ye=[l,I,b,b,N,l][J],pt=[N,l,l,I,b,b][J],be=[b,b,N,l,l,I][J];return{r:ye*255,g:pt*255,b:be*255}}function f(u,h,l,g){var w=[_(Math.round(u).toString(16)),_(Math.round(h).toString(16)),_(Math.round(l).toString(16))];return g&&w[0].charAt(0)==w[0].charAt(1)&&w[1].charAt(0)==w[1].charAt(1)&&w[2].charAt(0)==w[2].charAt(1)?w[0].charAt(0)+w[1].charAt(0)+w[2].charAt(0):w.join("")}function p(u,h,l,g,w){var b=[_(Math.round(u).toString(16)),_(Math.round(h).toString(16)),_(Math.round(l).toString(16)),_(Oe(g))];return w&&b[0].charAt(0)==b[0].charAt(1)&&b[1].charAt(0)==b[1].charAt(1)&&b[2].charAt(0)==b[2].charAt(1)&&b[3].charAt(0)==b[3].charAt(1)?b[0].charAt(0)+b[1].charAt(0)+b[2].charAt(0)+b[3].charAt(0):b.join("")}function y(u,h,l,g){var w=[_(Oe(g)),_(Math.round(u).toString(16)),_(Math.round(h).toString(16)),_(Math.round(l).toString(16))];return w.join("")}n.equals=function(u,h){return!u||!h?!1:n(u).toRgbString()==n(h).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function m(u,h){h=h===0?0:h||10;var l=n(u).toHsl();return l.s-=h/100,l.s=L(l.s),n(l)}function S(u,h){h=h===0?0:h||10;var l=n(u).toHsl();return l.s+=h/100,l.s=L(l.s),n(l)}function O(u){return n(u).desaturate(100)}function R(u,h){h=h===0?0:h||10;var l=n(u).toHsl();return l.l+=h/100,l.l=L(l.l),n(l)}function T(u,h){h=h===0?0:h||10;var l=n(u).toRgb();return l.r=Math.max(0,Math.min(255,l.r-Math.round(255*-(h/100)))),l.g=Math.max(0,Math.min(255,l.g-Math.round(255*-(h/100)))),l.b=Math.max(0,Math.min(255,l.b-Math.round(255*-(h/100)))),n(l)}function B(u,h){h=h===0?0:h||10;var l=n(u).toHsl();return l.l-=h/100,l.l=L(l.l),n(l)}function z(u,h){var l=n(u).toHsl(),g=(l.h+h)%360;return l.h=g<0?360+g:g,n(l)}function G(u){var h=n(u).toHsl();return h.h=(h.h+180)%360,n(h)}function re(u,h){if(isNaN(h)||h<=0)throw new Error("Argument to polyad must be a positive number");for(var l=n(u).toHsl(),g=[n(u)],w=360/h,b=1;b<h;b++)g.push(n({h:(l.h+b*w)%360,s:l.s,l:l.l}));return g}function ve(u){var h=n(u).toHsl(),l=h.h;return[n(u),n({h:(l+72)%360,s:h.s,l:h.l}),n({h:(l+216)%360,s:h.s,l:h.l})]}function ke(u,h,l){h=h||6,l=l||30;var g=n(u).toHsl(),w=360/l,b=[n(u)];for(g.h=(g.h-(w*h>>1)+720)%360;--h;)g.h=(g.h+w)%360,b.push(n(g));return b}function ae(u,h){h=h||6;for(var l=n(u).toHsv(),g=l.h,w=l.s,b=l.v,I=[],N=1/h;h--;)I.push(n({h:g,s:w,v:b})),b=(b+N)%1;return I}n.mix=function(u,h,l){l=l===0?0:l||50;var g=n(u).toRgb(),w=n(h).toRgb(),b=l/100,I={r:(w.r-g.r)*b+g.r,g:(w.g-g.g)*b+g.g,b:(w.b-g.b)*b+g.b,a:(w.a-g.a)*b+g.a};return n(I)},n.readability=function(u,h){var l=n(u),g=n(h);return(Math.max(l.getLuminance(),g.getLuminance())+.05)/(Math.min(l.getLuminance(),g.getLuminance())+.05)},n.isReadable=function(u,h,l){var g=n.readability(u,h),w,b;switch(b=!1,w=me(l),w.level+w.size){case"AAsmall":case"AAAlarge":b=g>=4.5;break;case"AAlarge":b=g>=3;break;case"AAAsmall":b=g>=7;break}return b},n.mostReadable=function(u,h,l){var g=null,w=0,b,I,N,J;l=l||{},I=l.includeFallbackColors,N=l.level,J=l.size;for(var ye=0;ye<h.length;ye++)b=n.readability(u,h[ye]),b>w&&(w=b,g=n(h[ye]));return n.isReadable(u,g,{level:N,size:J})||!I?g:(l.includeFallbackColors=!1,n.mostReadable(u,["#fff","#000"],l))};var k=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},F=n.hexNames=q(k);function q(u){var h={};for(var l in u)u.hasOwnProperty(l)&&(h[u[l]]=l);return h}function U(u){return u=parseFloat(u),(isNaN(u)||u<0||u>1)&&(u=1),u}function A(u,h){D(u)&&(u="100%");var l=M(u);return u=Math.min(h,Math.max(0,parseFloat(u))),l&&(u=parseInt(u*h,10)/100),Math.abs(u-h)<1e-6?1:u%h/parseFloat(h)}function L(u){return Math.min(1,Math.max(0,u))}function C(u){return parseInt(u,16)}function D(u){return typeof u=="string"&&u.indexOf(".")!=-1&&parseFloat(u)===1}function M(u){return typeof u=="string"&&u.indexOf("%")!=-1}function _(u){return u.length==1?"0"+u:""+u}function P(u){return u<=1&&(u=u*100+"%"),u}function Oe(u){return Math.round(parseFloat(u)*255).toString(16)}function Ne(u){return C(u)/255}var ce=function(){var u="[-\\+]?\\d+%?",h="[-\\+]?\\d*\\.\\d+%?",l="(?:"+h+")|(?:"+u+")",g="[\\s|\\(]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")\\s*\\)?",w="[\\s|\\(]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")\\s*\\)?";return{CSS_UNIT:new RegExp(l),rgb:new RegExp("rgb"+g),rgba:new RegExp("rgba"+w),hsl:new RegExp("hsl"+g),hsla:new RegExp("hsla"+w),hsv:new RegExp("hsv"+g),hsva:new RegExp("hsva"+w),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function pe(u){return!!ce.CSS_UNIT.exec(u)}function jt(u){u=u.replace(t,"").replace(r,"").toLowerCase();var h=!1;if(k[u])u=k[u],h=!0;else if(u=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var l;return(l=ce.rgb.exec(u))?{r:l[1],g:l[2],b:l[3]}:(l=ce.rgba.exec(u))?{r:l[1],g:l[2],b:l[3],a:l[4]}:(l=ce.hsl.exec(u))?{h:l[1],s:l[2],l:l[3]}:(l=ce.hsla.exec(u))?{h:l[1],s:l[2],l:l[3],a:l[4]}:(l=ce.hsv.exec(u))?{h:l[1],s:l[2],v:l[3]}:(l=ce.hsva.exec(u))?{h:l[1],s:l[2],v:l[3],a:l[4]}:(l=ce.hex8.exec(u))?{r:C(l[1]),g:C(l[2]),b:C(l[3]),a:Ne(l[4]),format:h?"name":"hex8"}:(l=ce.hex6.exec(u))?{r:C(l[1]),g:C(l[2]),b:C(l[3]),format:h?"name":"hex"}:(l=ce.hex4.exec(u))?{r:C(l[1]+""+l[1]),g:C(l[2]+""+l[2]),b:C(l[3]+""+l[3]),a:Ne(l[4]+""+l[4]),format:h?"name":"hex8"}:(l=ce.hex3.exec(u))?{r:C(l[1]+""+l[1]),g:C(l[2]+""+l[2]),b:C(l[3]+""+l[3]),format:h?"name":"hex"}:!1}function me(u){var h,l;return u=u||{level:"AA",size:"small"},h=(u.level||"AA").toUpperCase(),l=(u.size||"small").toLowerCase(),h!=="AA"&&h!=="AAA"&&(h="AA"),l!=="small"&&l!=="large"&&(l="small"),{level:h,size:l}}return n})});var Gu=v((j1,Hu)=>{var Dt=Nu(),Bu={r:256,g:256,b:256,a:1},Uu={h:360,s:1,v:1,a:1};function hi(e,t,r){let n={};for(let i in e)e.hasOwnProperty(i)&&(n[i]=r===0?0:(t[i]-e[i])/r);return n}function di(e,t,r,n){let i={};for(let s in t)t.hasOwnProperty(s)&&(i[s]=e[s]*r+t[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function fi(e,t,r){let n=e.color.toRgb(),i=t.color.toRgb(),s=hi(n,i,r),o=[e.color];for(let a=1;a<r;a++){let c=di(s,n,a,Bu);o.push(Dt(c))}return o}function ju(e,t,r,n){let i=e.color.toHsv(),s=t.color.toHsv();if(i.s===0||s.s===0)return fi(e,t,r);let o;if(typeof n=="boolean")o=n;else{let f=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&f||n==="short"&&!f}let a=hi(i,s,r),c=[e.color],d;i.h<=s.h&&!o||i.h>=s.h&&o?d=s.h-i.h:o?d=360-s.h+i.h:d=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(d)/r;for(let f=1;f<r;f++){let p=di(a,i,f,Uu);c.push(Dt(p))}return c}function Lu(e,t){let r=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let s=1;s<r;s++){let o=(t-1)*(e[s].pos-e[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!==t;)if(i<t){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 $u(e,t,r,n){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let i,s;for(let c=0,d=e.length;c<d-1;c++)if(t>=e[c].pos&&t<e[c+1].pos){i=e[c],s=e[c+1];break}i||(i=s=e[e.length-1]);let o=hi(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=di(o,i.color[r](),(t-i.pos)*100,n);return Dt(a)}var ht=class{constructor(t){if(t.length<2)throw new Error("Invalid number of stops (< 2)");let r=t[0].pos!==void 0,n=t.length,i=-1,s=!1;this.stops=t.map((o,a)=>{let c=o.pos!==void 0;if(r^c)throw new Error("Cannot mix positionned and not posionned color stops");if(c){let d=o.color!==void 0;if(!d&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!d,o={color:d?Dt(o.color):null,colorLess:!d,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:Dt(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 t=[];return this.stops.forEach(function(r){t.push({color:r.color,pos:1-r.pos})}),new ht(t.reverse())}loop(){let t=[],r=[];return this.stops.forEach(n=>{t.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new ht(t.concat(r.reverse()))}rgb(t){let r=Lu(this.stops,t),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=fi(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=fi(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(t,r){let n=Lu(this.stops,t),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=ju(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=ju(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(t,r){t=t||"linear",r=r||(t==="linear"?"to right":"ellipse at center");let n=t+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(t){return $u(this.stops,t,"toRgb",Bu)}hsvAt(t){return $u(this.stops,t,"toHsv",Uu)}};Hu.exports=function(e){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new ht(e)}});var Yu=v((L1,jr)=>{"use strict";var Ju=Du(),vp=Gu(),zu=/\s/g;function pi(...e){let t=vp.apply(this,e),r=(n,i)=>bp(n?n.toString():"",t,i);return r.multiline=(n,i)=>wp(n?n.toString():"",t,i),r}var Wu=(e,t,r)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(r,t.hsvSpin.toLowerCase()):e.rgb(r);function bp(e,t,r){let n=Vu(r),i=Math.max(e.replace(zu,"").length,t.stops.length),s=Wu(t,n,i),o="";for(let a of e)o+=a.match(zu)?a:Ju.hex(s.shift().toHex())(a);return o}function wp(e,t,r){let n=Vu(r),i=e.split(`
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
4
|
+
`+o),e.push(i+"m+"+zr.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=ny()+t+" "+e[0]}function ny(){return le.inspectOpts.hideDate?"":new Date().toISOString()+" "}function iy(...e){return process.stderr.write(Vr.format(...e)+`
|
|
5
|
+
`)}function oy(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function sy(){return process.env.DEBUG}function ay(e){e.inspectOpts={};let t=Object.keys(le.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=le.inspectOpts[t[r]]}zr.exports=Ai()(le);var{formatters:ou}=zr.exports;ou.o=function(e){return this.inspectOpts.colors=this.useColors,Vr.inspect(e,this.inspectOpts).split(`
|
|
6
|
+
`).map(t=>t.trim()).join(" ")};ou.O=function(e){return this.inspectOpts.colors=this.useColors,Vr.inspect(e,this.inspectOpts)}});var au=g((kb,ki)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ki.exports=Za():ki.exports=su()});var cu=g((Lb,uu)=>{var Wt;uu.exports=function(){if(!Wt){try{Wt=au()("follow-redirects")}catch{}typeof Wt!="function"&&(Wt=function(){})}Wt.apply(null,arguments)}});var $i=g((qb,ji)=>{var ct=require("url"),Li=ct.URL,uy=require("http"),cy=require("https"),du=require("stream").Writable,hu=require("assert"),pu=cu(),Ni=["abort","aborted","connect","error","socket","timeout"],Mi=Object.create(null);Ni.forEach(function(e){Mi[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var ly=zt("ERR_INVALID_URL","Invalid URL",TypeError),lu=zt("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),fy=zt("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),dy=zt("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),hy=zt("ERR_STREAM_WRITE_AFTER_END","write after end");function ke(e,t){du.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}ke.prototype=Object.create(du.prototype);ke.prototype.abort=function(){yu(this._currentRequest),this.emit("abort")};ke.prototype.write=function(e,t,r){if(this._ending)throw new hy;if(!lt(e)&&!yy(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Vt(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new dy),this.abort())};ke.prototype.end=function(e,t,r){if(Vt(e)?(r=e,e=t=null):Vt(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(e,t,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};ke.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};ke.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};ke.prototype.setTimeout=function(e,t){var r=this;function n(a){a.setTimeout(e),a.removeListener("timeout",a.destroy),a.addListener("timeout",a.destroy)}function i(a){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),o()},e),n(a)}function o(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",o),r.removeListener("error",o),r.removeListener("response",o),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",o),this.on("error",o),this.on("response",o),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){ke.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(ke.prototype,e,{get:function(){return this._currentRequest[e]}})});ke.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};ke.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of Ni)n.on(i,Mi[i]);if(this._currentUrl=/^\//.test(this._options.path)?ct.format(this._options):this._options.path,this._isRedirect){var o=0,a=this,u=this._requestBodyBuffers;(function c(p){if(n===a._currentRequest)if(p)a.emit("error",p);else if(o<u.length){var f=u[o++];n.finished||n.write(f.data,f.encoding,c)}else a._ended&&n.end()})()}};ke.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(yu(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new fy);return}var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],qi(/^content-/i,this._options.headers));var a=qi(/^host$/i,this._options.headers),u=ct.parse(this._currentUrl),c=a||u.host,p=/^\w+:/.test(r)?this._currentUrl:ct.format(Object.assign(u,{host:c})),f;try{f=ct.resolve(p,r)}catch(b){this.emit("error",new lu({cause:b}));return}pu("redirecting to",f),this._isRedirect=!0;var d=ct.parse(f);if(Object.assign(this._options,d),(d.protocol!==u.protocol&&d.protocol!=="https:"||d.host!==c&&!my(d.host,c))&&qi(/^(?:authorization|cookie)$/i,this._options.headers),Vt(i)){var v={headers:e.headers,statusCode:t},y={url:p,method:o,headers:n};try{i(this._options,v,y)}catch(b){this.emit("error",b);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(b){this.emit("error",new lu({cause:b}))}};function mu(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var i=n+":",o=r[i]=e[n],a=t[n]=Object.create(o);function u(p,f,d){if(lt(p)){var v;try{v=fu(new Li(p))}catch{v=ct.parse(p)}if(!lt(v.protocol))throw new ly({input:p});p=v}else Li&&p instanceof Li?p=fu(p):(d=f,f=p,p={protocol:i});return Vt(f)&&(d=f,f=null),f=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},p,f),f.nativeProtocols=r,!lt(f.host)&&!lt(f.hostname)&&(f.hostname="::1"),hu.equal(f.protocol,i,"protocol mismatch"),pu("options",f),new ke(f,d)}function c(p,f,d){var v=a.request(p,f,d);return v.end(),v}Object.defineProperties(a,{request:{value:u,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function py(){}function fu(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return e.port!==""&&(t.port=Number(e.port)),t}function qi(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function zt(e,t,r){function n(i){Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+e+"]",n}function yu(e){for(var t of Ni)e.removeListener(t,Mi[t]);e.on("error",py),e.abort()}function my(e,t){hu(lt(e)&<(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function lt(e){return typeof e=="string"||e instanceof String}function Vt(e){return typeof e=="function"}function yy(e){return typeof e=="object"&&"length"in e}ji.exports=mu({http:uy,https:cy});ji.exports.wrap=mu});var Bi=g((Nb,vy)=>{vy.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 Su=g((Mb,bu)=>{"use strict";var Jt=Ee(),vu=Ri(),gy=Oi(),_y=$r(),Ey=require("http"),by=require("https"),Sy=$i().http,wy=$i().https,gu=require("url"),Cy=require("zlib"),xy=Bi(),Jr=Gr(),Ui=Ur(),_u=/https:?/;function Eu(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(o){o.headers.host=o.host,Eu(o,t,o.href)}}bu.exports=function(t){return new Promise(function(n,i){var o=function(R){n(R)},a=function(R){i(R)},u=t.data,c=t.headers;if("User-Agent"in c||"user-agent"in c?!c["User-Agent"]&&!c["user-agent"]&&(delete c["User-Agent"],delete c["user-agent"]):c["User-Agent"]="axios/"+xy.version,u&&!Jt.isStream(u)){if(!Buffer.isBuffer(u))if(Jt.isArrayBuffer(u))u=Buffer.from(new Uint8Array(u));else if(Jt.isString(u))u=Buffer.from(u,"utf-8");else return a(Jr("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",t));c["Content-Length"]=u.length}var p=void 0;if(t.auth){var f=t.auth.username||"",d=t.auth.password||"";p=f+":"+d}var v=gy(t.baseURL,t.url),y=gu.parse(v),b=y.protocol||"http:";if(!p&&y.auth){var x=y.auth.split(":"),C=x[0]||"",P=x[1]||"";p=C+":"+P}p&&delete c.Authorization;var X=_u.test(b),L=X?t.httpsAgent:t.httpAgent,$={path:_y(y.path,t.params,t.paramsSerializer).replace(/^\?/,""),method:t.method.toUpperCase(),headers:c,agent:L,agents:{http:t.httpAgent,https:t.httpsAgent},auth:p};t.socketPath?$.socketPath=t.socketPath:($.hostname=y.hostname,$.port=y.port);var oe=t.proxy;if(!oe&&oe!==!1){var xe=b.slice(0,-1)+"_proxy",We=process.env[xe]||process.env[xe.toUpperCase()];if(We){var De=gu.parse(We),D=process.env.no_proxy||process.env.NO_PROXY,M=!0;if(D){var q=D.split(",").map(function(R){return R.trim()});M=!q.some(function(R){return R?R==="*"||R[0]==="."&&y.hostname.substr(y.hostname.length-R.length)===R?!0:y.hostname===R:!1})}if(M&&(oe={host:De.hostname,port:De.port,protocol:De.protocol},De.auth)){var ee=De.auth.split(":");oe.auth={username:ee[0],password:ee[1]}}}}oe&&($.headers.host=y.hostname+(y.port?":"+y.port:""),Eu($,oe,b+"//"+y.hostname+(y.port?":"+y.port:"")+$.path));var B,H=X&&(oe?_u.test(oe.protocol):!0);t.transport?B=t.transport:t.maxRedirects===0?B=H?by:Ey:(t.maxRedirects&&($.maxRedirects=t.maxRedirects),B=H?wy:Sy),t.maxBodyLength>-1&&($.maxBodyLength=t.maxBodyLength);var E=B.request($,function(R){if(!E.aborted){var N=R,ge=R.req||E;if(R.statusCode!==204&&ge.method!=="HEAD"&&t.decompress!==!1)switch(R.headers["content-encoding"]){case"gzip":case"compress":case"deflate":N=N.pipe(Cy.createUnzip()),delete R.headers["content-encoding"];break}var ze={status:R.statusCode,statusText:R.statusMessage,headers:R.headers,config:t,request:ge};if(t.responseType==="stream")ze.data=N,vu(o,a,ze);else{var Ge=[],gt=0;N.on("data",function(Re){Ge.push(Re),gt+=Re.length,t.maxContentLength>-1&>>t.maxContentLength&&(N.destroy(),a(Jr("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,ge)))}),N.on("error",function(Re){E.aborted||a(Ui(Re,t,null,ge))}),N.on("end",function(){var Re=Buffer.concat(Ge);t.responseType!=="arraybuffer"&&(Re=Re.toString(t.responseEncoding),(!t.responseEncoding||t.responseEncoding==="utf8")&&(Re=Jt.stripBOM(Re))),ze.data=Re,vu(o,a,ze)})}}});if(E.on("error",function(R){E.aborted&&R.code!=="ERR_FR_TOO_MANY_REDIRECTS"||a(Ui(R,t,null,E))}),t.timeout){var U=parseInt(t.timeout,10);if(isNaN(U)){a(Jr("error trying to parse `config.timeout` to int",t,"ERR_PARSE_TIMEOUT",E));return}E.setTimeout(U,function(){E.abort(),a(Jr("timeout of "+U+"ms exceeded",t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",E))})}t.cancelToken&&t.cancelToken.promise.then(function(R){E.aborted||(E.abort(),a(R))}),Jt.isStream(u)?u.on("error",function(R){a(Ui(R,t,null,E))}).pipe(E):E.end(u)})}});var Qr=g((jb,xu)=>{"use strict";var fe=Ee(),wu=Pa(),Dy=Ur(),Ry={"Content-Type":"application/x-www-form-urlencoded"};function Cu(e,t){!fe.isUndefined(e)&&fe.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function Oy(){var e;return typeof XMLHttpRequest<"u"?e=za():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(e=Su()),e}function Iy(e,t,r){if(fe.isString(e))try{return(t||JSON.parse)(e),fe.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var Kr={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:Oy(),transformRequest:[function(t,r){return wu(r,"Accept"),wu(r,"Content-Type"),fe.isFormData(t)||fe.isArrayBuffer(t)||fe.isBuffer(t)||fe.isStream(t)||fe.isFile(t)||fe.isBlob(t)?t:fe.isArrayBufferView(t)?t.buffer:fe.isURLSearchParams(t)?(Cu(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):fe.isObject(t)||r&&r["Content-Type"]==="application/json"?(Cu(r,"application/json"),Iy(t)):t}],transformResponse:[function(t){var r=this.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||i&&fe.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?Dy(a,this,"E_JSON_PARSE"):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};Kr.headers={common:{Accept:"application/json, text/plain, */*"}};fe.forEach(["delete","get","head"],function(t){Kr.headers[t]={}});fe.forEach(["post","put","patch"],function(t){Kr.headers[t]=fe.merge(Ry)});xu.exports=Kr});var Ru=g(($b,Du)=>{"use strict";var Ty=Ee(),Ay=Qr();Du.exports=function(t,r,n){var i=this||Ay;return Ty.forEach(n,function(a){t=a.call(i,t,r)}),t}});var Gi=g((Bb,Ou)=>{"use strict";Ou.exports=function(t){return!!(t&&t.__CANCEL__)}});var Au=g((Ub,Tu)=>{"use strict";var Iu=Ee(),Xi=Ru(),Py=Gi(),Fy=Qr();function Hi(e){e.cancelToken&&e.cancelToken.throwIfRequested()}Tu.exports=function(t){Hi(t),t.headers=t.headers||{},t.data=Xi.call(t,t.data,t.headers,t.transformRequest),t.headers=Iu.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Iu.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||Fy.adapter;return r(t).then(function(i){return Hi(t),i.data=Xi.call(t,i.data,i.headers,t.transformResponse),i},function(i){return Py(i)||(Hi(t),i&&i.response&&(i.response.data=Xi.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})}});var Yi=g((Gb,Pu)=>{"use strict";var pe=Ee();Pu.exports=function(t,r){r=r||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],u=["validateStatus"];function c(v,y){return pe.isPlainObject(v)&&pe.isPlainObject(y)?pe.merge(v,y):pe.isPlainObject(y)?pe.merge({},y):pe.isArray(y)?y.slice():y}function p(v){pe.isUndefined(r[v])?pe.isUndefined(t[v])||(n[v]=c(void 0,t[v])):n[v]=c(t[v],r[v])}pe.forEach(i,function(y){pe.isUndefined(r[y])||(n[y]=c(void 0,r[y]))}),pe.forEach(o,p),pe.forEach(a,function(y){pe.isUndefined(r[y])?pe.isUndefined(t[y])||(n[y]=c(void 0,t[y])):n[y]=c(void 0,r[y])}),pe.forEach(u,function(y){y in r?n[y]=c(t[y],r[y]):y in t&&(n[y]=c(void 0,t[y]))});var f=i.concat(o).concat(a).concat(u),d=Object.keys(t).concat(Object.keys(r)).filter(function(y){return f.indexOf(y)===-1});return pe.forEach(d,p),n}});var Nu=g((Xb,qu)=>{"use strict";var ku=Bi(),Wi={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Wi[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Fu={},ky=ku.version.split(".");function Lu(e,t){for(var r=t?t.split("."):ky,n=e.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}Wi.transitional=function(t,r,n){var i=r&&Lu(r);function o(a,u){return"[Axios v"+ku.version+"] Transitional option '"+a+"'"+u+(n?". "+n:"")}return function(a,u,c){if(t===!1)throw new Error(o(u," has been removed in "+r));return i&&!Fu[u]&&(Fu[u]=!0,console.warn(o(u," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,u,c):!0}};function Ly(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var u=e[o],c=u===void 0||a(u,o,e);if(c!==!0)throw new TypeError("option "+o+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+o)}}qu.exports={isOlderVersion:Lu,assertOptions:Ly,validators:Wi}});var Gu=g((Hb,Uu)=>{"use strict";var $u=Ee(),qy=$r(),Mu=Ta(),ju=Au(),Zr=Yi(),Bu=Nu(),Rt=Bu.validators;function Kt(e){this.defaults=e,this.interceptors={request:new Mu,response:new Mu}}Kt.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Zr(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&Bu.assertOptions(r,{silentJSONParsing:Rt.transitional(Rt.boolean,"1.0.0"),forcedJSONParsing:Rt.transitional(Rt.boolean,"1.0.0"),clarifyTimeoutError:Rt.transitional(Rt.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(t)===!1||(i=i&&v.synchronous,n.unshift(v.fulfilled,v.rejected))});var o=[];this.interceptors.response.forEach(function(v){o.push(v.fulfilled,v.rejected)});var a;if(!i){var u=[ju,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(o),a=Promise.resolve(t);u.length;)a=a.then(u.shift(),u.shift());return a}for(var c=t;n.length;){var p=n.shift(),f=n.shift();try{c=p(c)}catch(d){f(d);break}}try{a=ju(c)}catch(d){return Promise.reject(d)}for(;o.length;)a=a.then(o.shift(),o.shift());return a};Kt.prototype.getUri=function(t){return t=Zr(this.defaults,t),qy(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};$u.forEach(["delete","get","head","options"],function(t){Kt.prototype[t]=function(r,n){return this.request(Zr(n||{},{method:t,url:r,data:(n||{}).data}))}});$u.forEach(["post","put","patch"],function(t){Kt.prototype[t]=function(r,n,i){return this.request(Zr(i||{},{method:t,url:r,data:n}))}});Uu.exports=Kt});var zi=g((Yb,Xu)=>{"use strict";function Vi(e){this.message=e}Vi.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Vi.prototype.__CANCEL__=!0;Xu.exports=Vi});var Yu=g((Wb,Hu)=>{"use strict";var Ny=zi();function en(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(i){t=i});var r=this;e(function(i){r.reason||(r.reason=new Ny(i),t(r.reason))})}en.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};en.source=function(){var t,r=new en(function(i){t=i});return{token:r,cancel:t}};Hu.exports=en});var Vu=g((Vb,Wu)=>{"use strict";Wu.exports=function(t){return function(n){return t.apply(null,n)}}});var Ju=g((zb,zu)=>{"use strict";zu.exports=function(t){return typeof t=="object"&&t.isAxiosError===!0}});var Zu=g((Jb,Ji)=>{"use strict";var Ku=Ee(),My=Si(),tn=Gu(),jy=Yi(),$y=Qr();function Qu(e){var t=new tn(e),r=My(tn.prototype.request,t);return Ku.extend(r,tn.prototype,t),Ku.extend(r,t),r}var je=Qu($y);je.Axios=tn;je.create=function(t){return Qu(jy(je.defaults,t))};je.Cancel=zi();je.CancelToken=Yu();je.isCancel=Gi();je.all=function(t){return Promise.all(t)};je.spread=Vu();je.isAxiosError=Ju();Ji.exports=je;Ji.exports.default=je});var Ki=g((Kb,ec)=>{ec.exports=Zu()});var rc=g((Qb,tc)=>{"use strict";var By=/[|\\{}()[\]^$+*?.]/g;tc.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(By,"\\$&")}});var ic=g((Zb,nc)=>{"use strict";nc.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 Qi=g((eS,uc)=>{var ft=ic(),ac={};for(rn in ft)ft.hasOwnProperty(rn)&&(ac[ft[rn]]=rn);var rn,w=uc.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(be in w)if(w.hasOwnProperty(be)){if(!("channels"in w[be]))throw new Error("missing channels property: "+be);if(!("labels"in w[be]))throw new Error("missing channel labels property: "+be);if(w[be].labels.length!==w[be].channels)throw new Error("channel and label counts mismatch: "+be);oc=w[be].channels,sc=w[be].labels,delete w[be].channels,delete w[be].labels,Object.defineProperty(w[be],"channels",{value:oc}),Object.defineProperty(w[be],"labels",{value:sc})}var oc,sc,be;w.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=o-i,u,c,p;return o===i?u=0:t===o?u=(r-n)/a:r===o?u=2+(n-t)/a:n===o&&(u=4+(t-r)/a),u=Math.min(u*60,360),u<0&&(u+=360),p=(i+o)/2,o===i?c=0:p<=.5?c=a/(o+i):c=a/(2-o-i),[u,c*100,p*100]};w.rgb.hsv=function(e){var t,r,n,i,o,a=e[0]/255,u=e[1]/255,c=e[2]/255,p=Math.max(a,u,c),f=p-Math.min(a,u,c),d=function(v){return(p-v)/6/f+1/2};return f===0?i=o=0:(o=f/p,t=d(a),r=d(u),n=d(c),a===p?i=n-r:u===p?i=1/3+t-n:c===p&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,p*100]};w.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=w.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,o*100,n*100]};w.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,o,a,u;return u=Math.min(1-t,1-r,1-n),i=(1-t-u)/(1-u)||0,o=(1-r-u)/(1-u)||0,a=(1-n-u)/(1-u)||0,[i*100,o*100,a*100,u*100]};function Uy(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}w.rgb.keyword=function(e){var t=ac[e];if(t)return t;var r=1/0,n;for(var i in ft)if(ft.hasOwnProperty(i)){var o=ft[i],a=Uy(e,o);a<r&&(r=a,n=i)}return n};w.keyword.rgb=function(e){return ft[e]};w.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805,o=t*.2126+r*.7152+n*.0722,a=t*.0193+r*.1192+n*.9505;return[i*100,o*100,a*100]};w.rgb.lab=function(e){var t=w.rgb.xyz(e),r=t[0],n=t[1],i=t[2],o,a,u;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,o=116*n-16,a=500*(r-n),u=200*(n-i),[o,a,u]};w.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,o,a,u,c;if(r===0)return c=n*255,[c,c,c];n<.5?o=n*(1+r):o=n+r-n*r,i=2*n-o,u=[0,0,0];for(var p=0;p<3;p++)a=t+1/3*-(p-1),a<0&&a++,a>1&&a--,6*a<1?c=i+(o-i)*6*a:2*a<1?c=o:3*a<2?c=i+(o-i)*(2/3-a)*6:c=i,u[p]=c*255;return u};w.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,o=Math.max(n,.01),a,u;return n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o,u=(n+r)/2,a=n===0?2*i/(o+i):2*r/(n+r),[t,a*100,u*100]};w.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*n*(1-r),u=255*n*(1-r*o),c=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,c,a];case 1:return[u,n,a];case 2:return[a,n,c];case 3:return[a,u,n];case 4:return[c,a,n];case 5:return[n,a,u]}};w.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),o,a,u;return u=(2-r)*n,o=(2-r)*i,a=r*i,a/=o<=1?o:2-o,a=a||0,u/=2,[t,a*100,u*100]};w.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,o,a,u,c;i>1&&(r/=i,n/=i),o=Math.floor(6*t),a=1-n,u=6*t-o,o&1&&(u=1-u),c=r+u*(a-r);var p,f,d;switch(o){default:case 6:case 0:p=a,f=c,d=r;break;case 1:p=c,f=a,d=r;break;case 2:p=r,f=a,d=c;break;case 3:p=r,f=c,d=a;break;case 4:p=c,f=r,d=a;break;case 5:p=a,f=r,d=c;break}return[p*255,f*255,d*255]};w.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,o,a,u;return o=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,r*(1-i)+i),u=1-Math.min(1,n*(1-i)+i),[o*255,a*255,u*255]};w.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,o,a;return i=t*3.2406+r*-1.5372+n*-.4986,o=t*-.9689+r*1.8758+n*.0415,a=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[i*255,o*255,a*255]};w.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,o,a;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,o=500*(t-r),a=200*(r-n),[i,o,a]};w.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,o,a;o=(t+16)/116,i=r/500+o,a=o-n/200;var u=Math.pow(o,3),c=Math.pow(i,3),p=Math.pow(a,3);return o=u>.008856?u:(o-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,a=p>.008856?p:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]};w.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],i,o,a;return i=Math.atan2(n,r),o=i*360/2/Math.PI,o<0&&(o+=360),a=Math.sqrt(r*r+n*n),[t,a,o]};w.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,o,a;return a=n/360*2*Math.PI,i=r*Math.cos(a),o=r*Math.sin(a),[t,i,o]};w.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:w.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var o=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return i===2&&(o+=60),o};w.hsv.ansi16=function(e){return w.rgb.ansi16(w.hsv.rgb(e),e[2])};w.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};w.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,o=(t>>2&1)*r*255;return[n,i,o]};w.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,o=r%6/5*255;return[n,i,o]};w.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};w.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(u){return u+u}).join(""));var n=parseInt(r,16),i=n>>16&255,o=n>>8&255,a=n&255;return[i,o,a]};w.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),a=i-o,u,c;return a<1?u=o/(1-a):u=0,a<=0?c=0:i===t?c=(r-n)/a%6:i===r?c=2+(n-t)/a:c=4+(t-r)/a+4,c/=6,c%=1,[c*360,a*100,u*100]};w.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};w.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};w.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],o=t%1*6,a=o%1,u=1-a,c=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};w.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};w.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};w.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};w.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,i=n-t,o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],i*100,o*100]};w.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};w.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};w.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};w.gray.hsl=w.gray.hsv=function(e){return[0,0,e[0]]};w.gray.hwb=function(e){return[0,100,e[0]]};w.gray.cmyk=function(e){return[0,0,0,e[0]]};w.gray.lab=function(e){return[e[0],0,0]};w.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};w.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}});var lc=g((tS,cc)=>{var nn=Qi();function Gy(){for(var e={},t=Object.keys(nn),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Xy(e){var t=Gy(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(nn[n]),o=i.length,a=0;a<o;a++){var u=i[a],c=t[u];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(u))}return t}function Hy(e,t){return function(r){return t(e(r))}}function Yy(e,t){for(var r=[t[e].parent,e],n=nn[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=Hy(nn[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}cc.exports=function(e){for(var t=Xy(e),r={},n=Object.keys(t),i=n.length,o=0;o<i;o++){var a=n[o],u=t[a];u.parent!==null&&(r[a]=Yy(a,t))}return r}});var dc=g((rS,fc)=>{var Zi=Qi(),Wy=lc(),Ot={},Vy=Object.keys(Zi);function zy(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function Jy(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var i=n.length,o=0;o<i;o++)n[o]=Math.round(n[o]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}Vy.forEach(function(e){Ot[e]={},Object.defineProperty(Ot[e],"channels",{value:Zi[e].channels}),Object.defineProperty(Ot[e],"labels",{value:Zi[e].labels});var t=Wy(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];Ot[e][n]=Jy(i),Ot[e][n].raw=zy(i)})});fc.exports=Ot});var pc=g((nS,hc)=>{"use strict";var It=dc(),on=(e,t)=>function(){return`\x1B[${e.apply(It,arguments)+t}m`},sn=(e,t)=>function(){let r=e.apply(It,arguments);return`\x1B[${38+t};5;${r}m`},an=(e,t)=>function(){let r=e.apply(It,arguments);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function Ky(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(let i of Object.keys(t)){let o=t[i];for(let a of Object.keys(o)){let u=o[a];t[a]={open:`\x1B[${u[0]}m`,close:`\x1B[${u[1]}m`},o[a]=t[a],e.set(u[0],u[1])}Object.defineProperty(t,i,{value:o,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}let r=i=>i,n=(i,o,a)=>[i,o,a];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:on(r,0)},t.color.ansi256={ansi256:sn(r,0)},t.color.ansi16m={rgb:an(n,0)},t.bgColor.ansi={ansi:on(r,10)},t.bgColor.ansi256={ansi256:sn(r,10)},t.bgColor.ansi16m={rgb:an(n,10)};for(let i of Object.keys(It)){if(typeof It[i]!="object")continue;let o=It[i];i==="ansi16"&&(i="ansi"),"ansi16"in o&&(t.color.ansi[i]=on(o.ansi16,0),t.bgColor.ansi[i]=on(o.ansi16,10)),"ansi256"in o&&(t.color.ansi256[i]=sn(o.ansi256,0),t.bgColor.ansi256[i]=sn(o.ansi256,10)),"rgb"in o&&(t.color.ansi16m[i]=an(o.rgb,0),t.bgColor.ansi16m[i]=an(o.rgb,10))}return t}Object.defineProperty(hc,"exports",{enumerable:!0,get:Ky})});var yc=g((iS,mc)=>{"use strict";mc.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var gc=g((oS,vc)=>{"use strict";var Qy=require("os"),$e=yc(),me=process.env,Tt;$e("no-color")||$e("no-colors")||$e("color=false")?Tt=!1:($e("color")||$e("colors")||$e("color=true")||$e("color=always"))&&(Tt=!0);"FORCE_COLOR"in me&&(Tt=me.FORCE_COLOR.length===0||parseInt(me.FORCE_COLOR,10)!==0);function Zy(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ev(e){if(Tt===!1)return 0;if($e("color=16m")||$e("color=full")||$e("color=truecolor"))return 3;if($e("color=256"))return 2;if(e&&!e.isTTY&&Tt!==!0)return 0;let t=Tt?1:0;if(process.platform==="win32"){let r=Qy.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 me)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in me)||me.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in me)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(me.TEAMCITY_VERSION)?1:0;if(me.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in me){let r=parseInt((me.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(me.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(me.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(me.TERM)||"COLORTERM"in me?1:(me.TERM==="dumb",t)}function eo(e){let t=ev(e);return Zy(t)}vc.exports={supportsColor:eo,stdout:eo(process.stdout),stderr:eo(process.stderr)}});var wc=g((sS,Sc)=>{"use strict";var tv=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,_c=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,rv=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,nv=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,iv=new Map([["n",`
|
|
7
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function bc(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):iv.get(e)||e}function ov(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let o of n)if(!isNaN(o))r.push(Number(o));else if(i=o.match(rv))r.push(i[2].replace(nv,(a,u,c)=>u?bc(u):c));else throw new Error(`Invalid Chalk template style argument: ${o} (in style '${e}')`);return r}function sv(e){_c.lastIndex=0;let t=[],r;for(;(r=_c.exec(e))!==null;){let n=r[1];if(r[2]){let i=ov(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function Ec(e,t){let r={};for(let i of t)for(let o of i.styles)r[o[0]]=i.inverse?null:o.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}Sc.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(tv,(o,a,u,c,p,f)=>{if(a)i.push(bc(a));else if(c){let d=i.join("");i=[],n.push(r.length===0?d:Ec(e,r)(d)),r.push({inverse:u,styles:sv(c)})}else if(p){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Ec(e,r)(i.join(""))),i=[],r.pop()}else i.push(f)}),n.push(i.join("")),r.length>0){let o=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(o)}return n.join("")}});var cn=g((aS,Zt)=>{"use strict";var ro=rc(),ne=pc(),to=gc().stdout,av=wc(),xc=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),Dc=["ansi","ansi","ansi256","ansi16m"],Rc=new Set(["gray"]),At=Object.create(null);function Cc(e,t){t=t||{};let r=to?to.level:0;e.level=t.level===void 0?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function Qt(e){if(!this||!(this instanceof Qt)||this.template){let t={};return Cc(t,e),t.template=function(){let r=[].slice.call(arguments);return lv.apply(null,[t.template].concat(r))},Object.setPrototypeOf(t,Qt.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=Qt,t.template}Cc(this,e)}xc&&(ne.blue.open="\x1B[94m");for(let e of Object.keys(ne))ne[e].closeRe=new RegExp(ro(ne[e].close),"g"),At[e]={get(){let t=ne[e];return un.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};At.visible={get(){return un.call(this,this._styles||[],!0,"visible")}};ne.color.closeRe=new RegExp(ro(ne.color.close),"g");for(let e of Object.keys(ne.color.ansi))Rc.has(e)||(At[e]={get(){let t=this.level;return function(){let n={open:ne.color[Dc[t]][e].apply(null,arguments),close:ne.color.close,closeRe:ne.color.closeRe};return un.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});ne.bgColor.closeRe=new RegExp(ro(ne.bgColor.close),"g");for(let e of Object.keys(ne.bgColor.ansi)){if(Rc.has(e))continue;let t="bg"+e[0].toUpperCase()+e.slice(1);At[t]={get(){let r=this.level;return function(){let i={open:ne.bgColor[Dc[r]][e].apply(null,arguments),close:ne.bgColor.close,closeRe:ne.bgColor.closeRe};return un.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}}}var uv=Object.defineProperties(()=>{},At);function un(e,t,r){let n=function(){return cv.apply(n,arguments)};n._styles=e,n._empty=t;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(o){i.level=o}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(o){i.enabled=o}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=uv,n}function cv(){let e=arguments,t=e.length,r=String(arguments[0]);if(t===0)return"";if(t>1)for(let i=1;i<t;i++)r+=" "+e[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=ne.dim.open;xc&&this.hasGrey&&(ne.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 ne.dim.open=n,r}function lv(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[t.raw[0]];for(let i=1;i<t.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(t.raw[i]));return av(e,n.join(""))}Object.defineProperties(Qt.prototype,At);Zt.exports=Qt();Zt.exports.supportsColor=to;Zt.exports.default=Zt.exports});var ln=g((uS,no)=>{var fv=require("fs"),dv=require("path");function Oc(e){console.log(`[dotenv][DEBUG] ${e}`)}var hv=`
|
|
8
|
+
`,pv=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,mv=/\\n/g,yv=/\n|\r|\r\n/;function Ic(e,t){let r=!!(t&&t.debug),n={};return e.toString().split(yv).forEach(function(i,o){let a=i.match(pv);if(a!=null){let u=a[1],c=a[2]||"",p=c.length-1,f=c[0]==='"'&&c[p]==='"';c[0]==="'"&&c[p]==="'"||f?(c=c.substring(1,p),f&&(c=c.replace(mv,hv))):c=c.trim(),n[u]=c}else r&&Oc(`did not match key and value when parsing line ${o+1}: ${i}`)}),n}function vv(e){let t=dv.resolve(process.cwd(),".env"),r="utf8",n=!1;e&&(e.path!=null&&(t=e.path),e.encoding!=null&&(r=e.encoding),e.debug!=null&&(n=!0));try{let i=Ic(fv.readFileSync(t,{encoding:r}),{debug:n});return Object.keys(i).forEach(function(o){Object.prototype.hasOwnProperty.call(process.env,o)?n&&Oc(`"${o}" is already defined in \`process.env\` and will not be overwritten`):process.env[o]=i[o]}),{parsed:i}}catch(i){return{error:i}}}no.exports.config=vv;no.exports.parse=Ic});var Oe=g(io=>{"use strict";io.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{e.call(this,...t,(i,o)=>i!=null?n(i):r(o))})},"name",{value:e.name})};io.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:e.name})}});var Ac=g((lS,Tc)=>{var Ze=require("constants"),gv=process.cwd,fn=null,_v=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return fn||(fn=gv.call(process)),fn};try{process.cwd()}catch{}typeof process.chdir=="function"&&(oo=process.chdir,process.chdir=function(e){fn=null,oo.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,oo));var oo;Tc.exports=Ev;function Ev(e){Ze.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=u(e.stat),e.fstat=u(e.fstat),e.lstat=u(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(f,d,v){v&&process.nextTick(v)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(f,d,v,y){y&&process.nextTick(y)},e.lchownSync=function(){}),_v==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(f){function d(v,y,b){var x=Date.now(),C=0;f(v,y,function P(X){if(X&&(X.code==="EACCES"||X.code==="EPERM")&&Date.now()-x<6e4){setTimeout(function(){e.stat(y,function(L,$){L&&L.code==="ENOENT"?f(v,y,P):b(X)})},C),C<100&&(C+=10);return}b&&b(X)})}return Object.setPrototypeOf&&Object.setPrototypeOf(d,f),d}(e.rename)),e.read=typeof e.read!="function"?e.read:function(f){function d(v,y,b,x,C,P){var X;if(P&&typeof P=="function"){var L=0;X=function($,oe,xe){if($&&$.code==="EAGAIN"&&L<10)return L++,f.call(e,v,y,b,x,C,X);P.apply(this,arguments)}}return f.call(e,v,y,b,x,C,X)}return Object.setPrototypeOf&&Object.setPrototypeOf(d,f),d}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(f){return function(d,v,y,b,x){for(var C=0;;)try{return f.call(e,d,v,y,b,x)}catch(P){if(P.code==="EAGAIN"&&C<10){C++;continue}throw P}}}(e.readSync);function t(f){f.lchmod=function(d,v,y){f.open(d,Ze.O_WRONLY|Ze.O_SYMLINK,v,function(b,x){if(b){y&&y(b);return}f.fchmod(x,v,function(C){f.close(x,function(P){y&&y(C||P)})})})},f.lchmodSync=function(d,v){var y=f.openSync(d,Ze.O_WRONLY|Ze.O_SYMLINK,v),b=!0,x;try{x=f.fchmodSync(y,v),b=!1}finally{if(b)try{f.closeSync(y)}catch{}else f.closeSync(y)}return x}}function r(f){Ze.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(d,v,y,b){f.open(d,Ze.O_SYMLINK,function(x,C){if(x){b&&b(x);return}f.futimes(C,v,y,function(P){f.close(C,function(X){b&&b(P||X)})})})},f.lutimesSync=function(d,v,y){var b=f.openSync(d,Ze.O_SYMLINK),x,C=!0;try{x=f.futimesSync(b,v,y),C=!1}finally{if(C)try{f.closeSync(b)}catch{}else f.closeSync(b)}return x}):f.futimes&&(f.lutimes=function(d,v,y,b){b&&process.nextTick(b)},f.lutimesSync=function(){})}function n(f){return f&&function(d,v,y){return f.call(e,d,v,function(b){p(b)&&(b=null),y&&y.apply(this,arguments)})}}function i(f){return f&&function(d,v){try{return f.call(e,d,v)}catch(y){if(!p(y))throw y}}}function o(f){return f&&function(d,v,y,b){return f.call(e,d,v,y,function(x){p(x)&&(x=null),b&&b.apply(this,arguments)})}}function a(f){return f&&function(d,v,y){try{return f.call(e,d,v,y)}catch(b){if(!p(b))throw b}}}function u(f){return f&&function(d,v,y){typeof v=="function"&&(y=v,v=null);function b(x,C){C&&(C.uid<0&&(C.uid+=4294967296),C.gid<0&&(C.gid+=4294967296)),y&&y.apply(this,arguments)}return v?f.call(e,d,v,b):f.call(e,d,b)}}function c(f){return f&&function(d,v){var y=v?f.call(e,d,v):f.call(e,d);return y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),y}}function p(f){if(!f||f.code==="ENOSYS")return!0;var d=!process.getuid||process.getuid()!==0;return!!(d&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var kc=g((fS,Fc)=>{var Pc=require("stream").Stream;Fc.exports=bv;function bv(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);Pc.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var a=Object.keys(i),u=0,c=a.length;u<c;u++){var p=a[u];this[p]=i[p]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}e.open(this.path,this.flags,this.mode,function(f,d){if(f){o.emit("error",f),o.readable=!1;return}o.fd=d,o.emit("open",d),o._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);Pc.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),a=0,u=o.length;a<u;a++){var c=o[a];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var qc=g((dS,Lc)=>{"use strict";Lc.exports=wv;var Sv=Object.getPrototypeOf||function(e){return e.__proto__};function wv(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Sv(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var ye=g((hS,uo)=>{var Z=require("fs"),Cv=Ac(),xv=kc(),Dv=qc(),dn=require("util"),de,pn;typeof Symbol=="function"&&typeof Symbol.for=="function"?(de=Symbol.for("graceful-fs.queue"),pn=Symbol.for("graceful-fs.previous")):(de="___graceful-fs.queue",pn="___graceful-fs.previous");function Rv(){}function jc(e,t){Object.defineProperty(e,de,{get:function(){return t}})}var dt=Rv;dn.debuglog?dt=dn.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(dt=function(){var e=dn.format.apply(dn,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
9
|
+
GFS4: `),console.error(e)});Z[de]||(Nc=global[de]||[],jc(Z,Nc),Z.close=function(e){function t(r,n){return e.call(Z,r,function(i){i||Mc(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,pn,{value:e}),t}(Z.close),Z.closeSync=function(e){function t(r){e.apply(Z,arguments),Mc()}return Object.defineProperty(t,pn,{value:e}),t}(Z.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){dt(Z[de]),require("assert").equal(Z[de].length,0)}));var Nc;global[de]||jc(global,Z[de]);uo.exports=so(Dv(Z));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Z.__patched&&(uo.exports=so(Z),Z.__patched=!0);function so(e){Cv(e),e.gracefulify=so,e.createReadStream=oe,e.createWriteStream=xe;var t=e.readFile;e.readFile=r;function r(D,M,q){return typeof M=="function"&&(q=M,M=null),ee(D,M,q);function ee(B,H,E,U){return t(B,H,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Pt([ee,[B,H,E],A,U||Date.now(),Date.now()]):typeof E=="function"&&E.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(D,M,q,ee){return typeof q=="function"&&(ee=q,q=null),B(D,M,q,ee);function B(H,E,U,A,R){return n(H,E,U,function(N){N&&(N.code==="EMFILE"||N.code==="ENFILE")?Pt([B,[H,E,U,A],N,R||Date.now(),Date.now()]):typeof A=="function"&&A.apply(this,arguments)})}}var o=e.appendFile;o&&(e.appendFile=a);function a(D,M,q,ee){return typeof q=="function"&&(ee=q,q=null),B(D,M,q,ee);function B(H,E,U,A,R){return o(H,E,U,function(N){N&&(N.code==="EMFILE"||N.code==="ENFILE")?Pt([B,[H,E,U,A],N,R||Date.now(),Date.now()]):typeof A=="function"&&A.apply(this,arguments)})}}var u=e.copyFile;u&&(e.copyFile=c);function c(D,M,q,ee){return typeof q=="function"&&(ee=q,q=0),B(D,M,q,ee);function B(H,E,U,A,R){return u(H,E,U,function(N){N&&(N.code==="EMFILE"||N.code==="ENFILE")?Pt([B,[H,E,U,A],N,R||Date.now(),Date.now()]):typeof A=="function"&&A.apply(this,arguments)})}}var p=e.readdir;e.readdir=d;var f=/^v[0-5]\./;function d(D,M,q){typeof M=="function"&&(q=M,M=null);var ee=f.test(process.version)?function(E,U,A,R){return p(E,B(E,U,A,R))}:function(E,U,A,R){return p(E,U,B(E,U,A,R))};return ee(D,M,q);function B(H,E,U,A){return function(R,N){R&&(R.code==="EMFILE"||R.code==="ENFILE")?Pt([ee,[H,E,U],R,A||Date.now(),Date.now()]):(N&&N.sort&&N.sort(),typeof U=="function"&&U.call(this,R,N))}}}if(process.version.substr(0,4)==="v0.8"){var v=xv(e);P=v.ReadStream,L=v.WriteStream}var y=e.ReadStream;y&&(P.prototype=Object.create(y.prototype),P.prototype.open=X);var b=e.WriteStream;b&&(L.prototype=Object.create(b.prototype),L.prototype.open=$),Object.defineProperty(e,"ReadStream",{get:function(){return P},set:function(D){P=D},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return L},set:function(D){L=D},enumerable:!0,configurable:!0});var x=P;Object.defineProperty(e,"FileReadStream",{get:function(){return x},set:function(D){x=D},enumerable:!0,configurable:!0});var C=L;Object.defineProperty(e,"FileWriteStream",{get:function(){return C},set:function(D){C=D},enumerable:!0,configurable:!0});function P(D,M){return this instanceof P?(y.apply(this,arguments),this):P.apply(Object.create(P.prototype),arguments)}function X(){var D=this;De(D.path,D.flags,D.mode,function(M,q){M?(D.autoClose&&D.destroy(),D.emit("error",M)):(D.fd=q,D.emit("open",q),D.read())})}function L(D,M){return this instanceof L?(b.apply(this,arguments),this):L.apply(Object.create(L.prototype),arguments)}function $(){var D=this;De(D.path,D.flags,D.mode,function(M,q){M?(D.destroy(),D.emit("error",M)):(D.fd=q,D.emit("open",q))})}function oe(D,M){return new e.ReadStream(D,M)}function xe(D,M){return new e.WriteStream(D,M)}var We=e.open;e.open=De;function De(D,M,q,ee){return typeof q=="function"&&(ee=q,q=null),B(D,M,q,ee);function B(H,E,U,A,R){return We(H,E,U,function(N,ge){N&&(N.code==="EMFILE"||N.code==="ENFILE")?Pt([B,[H,E,U,A],N,R||Date.now(),Date.now()]):typeof A=="function"&&A.apply(this,arguments)})}}return e}function Pt(e){dt("ENQUEUE",e[0].name,e[1]),Z[de].push(e),ao()}var hn;function Mc(){for(var e=Date.now(),t=0;t<Z[de].length;++t)Z[de][t].length>2&&(Z[de][t][3]=e,Z[de][t][4]=e);ao()}function ao(){if(clearTimeout(hn),hn=void 0,Z[de].length!==0){var e=Z[de].shift(),t=e[0],r=e[1],n=e[2],i=e[3],o=e[4];if(i===void 0)dt("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){dt("TIMEOUT",t.name,r);var a=r.pop();typeof a=="function"&&a.call(null,n)}else{var u=Date.now()-o,c=Math.max(o-i,1),p=Math.min(c*1.2,100);u>=p?(dt("RETRY",t.name,r),t.apply(null,r.concat([i]))):Z[de].push(e)}hn===void 0&&(hn=setTimeout(ao,0))}}});var er=g(et=>{"use strict";var $c=Oe().fromCallback,Se=ye(),Ov=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof Se[e]=="function");Object.keys(Se).forEach(e=>{e!=="promises"&&(et[e]=Se[e])});Ov.forEach(e=>{et[e]=$c(Se[e])});et.exists=function(e,t){return typeof t=="function"?Se.exists(e,t):new Promise(r=>Se.exists(e,r))};et.read=function(e,t,r,n,i,o){return typeof o=="function"?Se.read(e,t,r,n,i,o):new Promise((a,u)=>{Se.read(e,t,r,n,i,(c,p,f)=>{if(c)return u(c);a({bytesRead:p,buffer:f})})})};et.write=function(e,t,...r){return typeof r[r.length-1]=="function"?Se.write(e,t,...r):new Promise((n,i)=>{Se.write(e,t,...r,(o,a,u)=>{if(o)return i(o);n({bytesWritten:a,buffer:u})})})};typeof Se.writev=="function"&&(et.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?Se.writev(e,t,...r):new Promise((n,i)=>{Se.writev(e,t,...r,(o,a,u)=>{if(o)return i(o);n({bytesWritten:a,buffers:u})})})});typeof Se.realpath.native=="function"&&(et.realpath.native=$c(Se.realpath.native))});var co=g((mS,Bc)=>{Bc.exports=e=>{let t=process.versions.node.split(".").map(r=>parseInt(r,10));return e=e.split(".").map(r=>parseInt(r,10)),t[0]>e[0]||t[0]===e[0]&&(t[1]>e[1]||t[1]===e[1]&&t[2]>=e[2])}});var Yc=g((yS,lo)=>{"use strict";var Ft=er(),Ve=require("path"),Iv=co(),Uc=Iv("10.12.0"),Gc=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(Ve.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}},Xc=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),{...t,...e}},Hc=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};lo.exports.makeDir=async(e,t)=>{if(Gc(e),t=Xc(t),Uc){let n=Ve.resolve(e);return Ft.mkdir(n,{mode:t.mode,recursive:!0})}let r=async n=>{try{await Ft.mkdir(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Ve.dirname(n)===n)throw Hc(n);if(i.message.includes("null bytes"))throw i;return await r(Ve.dirname(n)),r(n)}try{if(!(await Ft.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Ve.resolve(e))};lo.exports.makeDirSync=(e,t)=>{if(Gc(e),t=Xc(t),Uc){let n=Ve.resolve(e);return Ft.mkdirSync(n,{mode:t.mode,recursive:!0})}let r=n=>{try{Ft.mkdirSync(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Ve.dirname(n)===n)throw Hc(n);if(i.message.includes("null bytes"))throw i;return r(Ve.dirname(n)),r(n)}try{if(!Ft.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Ve.resolve(e))}});var Be=g((vS,Wc)=>{"use strict";var Tv=Oe().fromPromise,{makeDir:Av,makeDirSync:fo}=Yc(),ho=Tv(Av);Wc.exports={mkdirs:ho,mkdirsSync:fo,mkdirp:ho,mkdirpSync:fo,ensureDir:ho,ensureDirSync:fo}});var po=g((gS,Vc)=>{"use strict";var kt=ye();function Pv(e,t,r,n){kt.open(e,"r+",(i,o)=>{if(i)return n(i);kt.futimes(o,t,r,a=>{kt.close(o,u=>{n&&n(a||u)})})})}function Fv(e,t,r){let n=kt.openSync(e,"r+");return kt.futimesSync(n,t,r),kt.closeSync(n)}Vc.exports={utimesMillis:Pv,utimesMillisSync:Fv}});var tr=g((_S,Qc)=>{"use strict";var Lt=er(),Ie=require("path"),kv=require("util"),Lv=co(),mn=Lv("10.5.0"),zc=e=>mn?Lt.stat(e,{bigint:!0}):Lt.stat(e),mo=e=>mn?Lt.statSync(e,{bigint:!0}):Lt.statSync(e);function qv(e,t){return Promise.all([zc(e),zc(t).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function Nv(e,t){let r,n=mo(e);try{r=mo(t)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function Mv(e,t,r,n){kv.callbackify(qv)(e,t,(i,o)=>{if(i)return n(i);let{srcStat:a,destStat:u}=o;return u&&yn(a,u)?n(new Error("Source and destination must not be the same.")):a.isDirectory()&&yo(e,t)?n(new Error(vn(e,t,r))):n(null,{srcStat:a,destStat:u})})}function jv(e,t,r){let{srcStat:n,destStat:i}=Nv(e,t);if(i&&yn(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&yo(e,t))throw new Error(vn(e,t,r));return{srcStat:n,destStat:i}}function Jc(e,t,r,n,i){let o=Ie.resolve(Ie.dirname(e)),a=Ie.resolve(Ie.dirname(r));if(a===o||a===Ie.parse(a).root)return i();let u=(c,p)=>c?c.code==="ENOENT"?i():i(c):yn(t,p)?i(new Error(vn(e,r,n))):Jc(e,t,a,n,i);mn?Lt.stat(a,{bigint:!0},u):Lt.stat(a,u)}function Kc(e,t,r,n){let i=Ie.resolve(Ie.dirname(e)),o=Ie.resolve(Ie.dirname(r));if(o===i||o===Ie.parse(o).root)return;let a;try{a=mo(o)}catch(u){if(u.code==="ENOENT")return;throw u}if(yn(t,a))throw new Error(vn(e,r,n));return Kc(e,t,o,n)}function yn(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(mn||t.ino<Number.MAX_SAFE_INTEGER||t.size===e.size&&t.mode===e.mode&&t.nlink===e.nlink&&t.atimeMs===e.atimeMs&&t.mtimeMs===e.mtimeMs&&t.ctimeMs===e.ctimeMs&&t.birthtimeMs===e.birthtimeMs))}function yo(e,t){let r=Ie.resolve(e).split(Ie.sep).filter(i=>i),n=Ie.resolve(t).split(Ie.sep).filter(i=>i);return r.reduce((i,o,a)=>i&&n[a]===o,!0)}function vn(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}Qc.exports={checkPaths:Mv,checkPathsSync:jv,checkParentPaths:Jc,checkParentPathsSync:Kc,isSrcSubdir:yo}});var nl=g((ES,rl)=>{"use strict";var ve=ye(),rr=require("path"),$v=Be().mkdirsSync,Bv=po().utimesMillisSync,nr=tr();function Uv(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
10
|
+
|
|
11
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=nr.checkPathsSync(e,t,"copy");return nr.checkParentPathsSync(e,n,t,"copy"),Gv(i,e,t,r)}function Gv(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=rr.dirname(r);return ve.existsSync(i)||$v(i),Zc(e,t,r,n)}function Zc(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return Xv(e,t,r,n)}function Xv(e,t,r,n){let o=(n.dereference?ve.statSync:ve.lstatSync)(t);if(o.isDirectory())return Kv(o,e,t,r,n);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return Hv(o,e,t,r,n);if(o.isSymbolicLink())return e0(e,t,r,n)}function Hv(e,t,r,n,i){return t?Yv(e,r,n,i):el(e,r,n,i)}function Yv(e,t,r,n){if(n.overwrite)return ve.unlinkSync(r),el(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function el(e,t,r,n){return ve.copyFileSync(t,r),n.preserveTimestamps&&Wv(e.mode,t,r),vo(r,e.mode)}function Wv(e,t,r){return Vv(e)&&zv(r,e),Jv(t,r)}function Vv(e){return(e&128)===0}function zv(e,t){return vo(e,t|128)}function vo(e,t){return ve.chmodSync(e,t)}function Jv(e,t){let r=ve.statSync(e);return Bv(t,r.atime,r.mtime)}function Kv(e,t,r,n,i){if(!t)return Qv(e.mode,r,n,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return tl(r,n,i)}function Qv(e,t,r,n){return ve.mkdirSync(r),tl(t,r,n),vo(r,e)}function tl(e,t,r){ve.readdirSync(e).forEach(n=>Zv(n,e,t,r))}function Zv(e,t,r,n){let i=rr.join(t,e),o=rr.join(r,e),{destStat:a}=nr.checkPathsSync(i,o,"copy");return Zc(a,i,o,n)}function e0(e,t,r,n){let i=ve.readlinkSync(t);if(n.dereference&&(i=rr.resolve(process.cwd(),i)),e){let o;try{o=ve.readlinkSync(r)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return ve.symlinkSync(i,r);throw a}if(n.dereference&&(o=rr.resolve(process.cwd(),o)),nr.isSrcSubdir(i,o))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${o}'.`);if(ve.statSync(r).isDirectory()&&nr.isSrcSubdir(o,i))throw new Error(`Cannot overwrite '${o}' with '${i}'.`);return t0(i,r)}else return ve.symlinkSync(i,r)}function t0(e,t){return ve.unlinkSync(t),ve.symlinkSync(e,t)}rl.exports=Uv});var go=g((bS,il)=>{"use strict";il.exports={copySync:nl()}});var tt=g((SS,sl)=>{"use strict";var r0=Oe().fromPromise,ol=er();function n0(e){return ol.access(e).then(()=>!0).catch(()=>!1)}sl.exports={pathExists:r0(n0),pathExistsSync:ol.existsSync}});var ml=g((wS,pl)=>{"use strict";var Te=ye(),ir=require("path"),i0=Be().mkdirs,o0=tt().pathExists,s0=po().utimesMillis,or=tr();function a0(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
12
|
+
|
|
13
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),or.checkPaths(e,t,"copy",(i,o)=>{if(i)return n(i);let{srcStat:a,destStat:u}=o;or.checkParentPaths(e,a,t,"copy",c=>c?n(c):r.filter?ll(al,u,e,t,r,n):al(u,e,t,r,n))})}function al(e,t,r,n,i){let o=ir.dirname(r);o0(o,(a,u)=>{if(a)return i(a);if(u)return _o(e,t,r,n,i);i0(o,c=>c?i(c):_o(e,t,r,n,i))})}function ll(e,t,r,n,i,o){Promise.resolve(i.filter(r,n)).then(a=>a?e(t,r,n,i,o):o(),a=>o(a))}function _o(e,t,r,n,i){return n.filter?ll(ul,e,t,r,n,i):ul(e,t,r,n,i)}function ul(e,t,r,n,i){(n.dereference?Te.stat:Te.lstat)(t,(a,u)=>{if(a)return i(a);if(u.isDirectory())return p0(u,e,t,r,n,i);if(u.isFile()||u.isCharacterDevice()||u.isBlockDevice())return u0(u,e,t,r,n,i);if(u.isSymbolicLink())return v0(e,t,r,n,i)})}function u0(e,t,r,n,i,o){return t?c0(e,r,n,i,o):fl(e,r,n,i,o)}function c0(e,t,r,n,i){if(n.overwrite)Te.unlink(r,o=>o?i(o):fl(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function fl(e,t,r,n,i){Te.copyFile(t,r,o=>o?i(o):n.preserveTimestamps?l0(e.mode,t,r,i):gn(r,e.mode,i))}function l0(e,t,r,n){return f0(e)?d0(r,e,i=>i?n(i):cl(e,t,r,n)):cl(e,t,r,n)}function f0(e){return(e&128)===0}function d0(e,t,r){return gn(e,t|128,r)}function cl(e,t,r,n){h0(t,r,i=>i?n(i):gn(r,e,n))}function gn(e,t,r){return Te.chmod(e,t,r)}function h0(e,t,r){Te.stat(e,(n,i)=>n?r(n):s0(t,i.atime,i.mtime,r))}function p0(e,t,r,n,i,o){return t?t&&!t.isDirectory()?o(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):dl(r,n,i,o):m0(e.mode,r,n,i,o)}function m0(e,t,r,n,i){Te.mkdir(r,o=>{if(o)return i(o);dl(t,r,n,a=>a?i(a):gn(r,e,i))})}function dl(e,t,r,n){Te.readdir(e,(i,o)=>i?n(i):hl(o,e,t,r,n))}function hl(e,t,r,n,i){let o=e.pop();return o?y0(e,o,t,r,n,i):i()}function y0(e,t,r,n,i,o){let a=ir.join(r,t),u=ir.join(n,t);or.checkPaths(a,u,"copy",(c,p)=>{if(c)return o(c);let{destStat:f}=p;_o(f,a,u,i,d=>d?o(d):hl(e,r,n,i,o))})}function v0(e,t,r,n,i){Te.readlink(t,(o,a)=>{if(o)return i(o);if(n.dereference&&(a=ir.resolve(process.cwd(),a)),e)Te.readlink(r,(u,c)=>u?u.code==="EINVAL"||u.code==="UNKNOWN"?Te.symlink(a,r,i):i(u):(n.dereference&&(c=ir.resolve(process.cwd(),c)),or.isSrcSubdir(a,c)?i(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&or.isSrcSubdir(c,a)?i(new Error(`Cannot overwrite '${c}' with '${a}'.`)):g0(a,r,i)));else return Te.symlink(a,r,i)})}function g0(e,t,r){Te.unlink(t,n=>n?r(n):Te.symlink(e,t,r))}pl.exports=a0});var Eo=g((CS,yl)=>{"use strict";var _0=Oe().fromCallback;yl.exports={copy:_0(ml())}});var xl=g((xS,Cl)=>{"use strict";var vl=ye(),bl=require("path"),V=require("assert"),sr=process.platform==="win32";function Sl(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||vl[r],r=r+"Sync",e[r]=e[r]||vl[r]}),e.maxBusyTries=e.maxBusyTries||3}function bo(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),V(e,"rimraf: missing path"),V.strictEqual(typeof e,"string","rimraf: path should be a string"),V.strictEqual(typeof r,"function","rimraf: callback function required"),V(t,"rimraf: invalid options argument provided"),V.strictEqual(typeof t,"object","rimraf: options should be object"),Sl(t),gl(e,t,function i(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&n<t.maxBusyTries){n++;let a=n*100;return setTimeout(()=>gl(e,t,i),a)}o.code==="ENOENT"&&(o=null)}r(o)})}function gl(e,t,r){V(e),V(t),V(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&sr)return _l(e,t,n,r);if(i&&i.isDirectory())return _n(e,t,n,r);t.unlink(e,o=>{if(o){if(o.code==="ENOENT")return r(null);if(o.code==="EPERM")return sr?_l(e,t,o,r):_n(e,t,o,r);if(o.code==="EISDIR")return _n(e,t,o,r)}return r(o)})})}function _l(e,t,r,n){V(e),V(t),V(typeof n=="function"),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(o,a)=>{o?n(o.code==="ENOENT"?null:r):a.isDirectory()?_n(e,t,r,n):t.unlink(e,n)})})}function El(e,t,r){let n;V(e),V(t);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?En(e,t,r):t.unlinkSync(e)}function _n(e,t,r,n){V(e),V(t),V(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?E0(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function E0(e,t,r){V(e),V(t),V(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let o=i.length,a;if(o===0)return t.rmdir(e,r);i.forEach(u=>{bo(bl.join(e,u),t,c=>{if(!a){if(c)return r(a=c);--o===0&&t.rmdir(e,r)}})})})}function wl(e,t){let r;t=t||{},Sl(t),V(e,"rimraf: missing path"),V.strictEqual(typeof e,"string","rimraf: path should be a string"),V(t,"rimraf: missing options"),V.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&sr&&El(e,t,n)}try{r&&r.isDirectory()?En(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return sr?El(e,t,n):En(e,t,n);if(n.code!=="EISDIR")throw n;En(e,t,n)}}function En(e,t,r){V(e),V(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")b0(e,t);else if(n.code!=="ENOENT")throw n}}function b0(e,t){if(V(e),V(t),t.readdirSync(e).forEach(r=>wl(bl.join(e,r),t)),sr){let r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}Cl.exports=bo;bo.sync=wl});var ar=g((DS,Rl)=>{"use strict";var S0=Oe().fromCallback,Dl=xl();Rl.exports={remove:S0(Dl),removeSync:Dl.sync}});var Ll=g((RS,kl)=>{"use strict";var w0=Oe().fromCallback,Tl=ye(),Al=require("path"),Pl=Be(),Fl=ar(),Ol=w0(function(t,r){r=r||function(){},Tl.readdir(t,(n,i)=>{if(n)return Pl.mkdirs(t,r);i=i.map(a=>Al.join(t,a)),o();function o(){let a=i.pop();if(!a)return r();Fl.remove(a,u=>{if(u)return r(u);o()})}})});function Il(e){let t;try{t=Tl.readdirSync(e)}catch{return Pl.mkdirsSync(e)}t.forEach(r=>{r=Al.join(e,r),Fl.removeSync(r)})}kl.exports={emptyDirSync:Il,emptydirSync:Il,emptyDir:Ol,emptydir:Ol}});var jl=g((OS,Ml)=>{"use strict";var C0=Oe().fromCallback,ql=require("path"),rt=ye(),Nl=Be();function x0(e,t){function r(){rt.writeFile(e,"",n=>{if(n)return t(n);t()})}rt.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let o=ql.dirname(e);rt.stat(o,(a,u)=>{if(a)return a.code==="ENOENT"?Nl.mkdirs(o,c=>{if(c)return t(c);r()}):t(a);u.isDirectory()?r():rt.readdir(o,c=>{if(c)return t(c)})})})}function D0(e){let t;try{t=rt.statSync(e)}catch{}if(t&&t.isFile())return;let r=ql.dirname(e);try{rt.statSync(r).isDirectory()||rt.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")Nl.mkdirsSync(r);else throw n}rt.writeFileSync(e,"")}Ml.exports={createFile:C0(x0),createFileSync:D0}});var Xl=g((IS,Gl)=>{"use strict";var R0=Oe().fromCallback,Bl=require("path"),ht=ye(),Ul=Be(),$l=tt().pathExists;function O0(e,t,r){function n(i,o){ht.link(i,o,a=>{if(a)return r(a);r(null)})}$l(t,(i,o)=>{if(i)return r(i);if(o)return r(null);ht.lstat(e,a=>{if(a)return a.message=a.message.replace("lstat","ensureLink"),r(a);let u=Bl.dirname(t);$l(u,(c,p)=>{if(c)return r(c);if(p)return n(e,t);Ul.mkdirs(u,f=>{if(f)return r(f);n(e,t)})})})})}function I0(e,t){if(ht.existsSync(t))return;try{ht.lstatSync(e)}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let n=Bl.dirname(t);return ht.existsSync(n)||Ul.mkdirsSync(n),ht.linkSync(e,t)}Gl.exports={createLink:R0(O0),createLinkSync:I0}});var Yl=g((TS,Hl)=>{"use strict";var nt=require("path"),ur=ye(),T0=tt().pathExists;function A0(e,t,r){if(nt.isAbsolute(e))return ur.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=nt.dirname(t),i=nt.join(n,e);return T0(i,(o,a)=>o?r(o):a?r(null,{toCwd:i,toDst:e}):ur.lstat(e,u=>u?(u.message=u.message.replace("lstat","ensureSymlink"),r(u)):r(null,{toCwd:e,toDst:nt.relative(n,e)})))}}function P0(e,t){let r;if(nt.isAbsolute(e)){if(r=ur.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=nt.dirname(t),i=nt.join(n,e);if(r=ur.existsSync(i),r)return{toCwd:i,toDst:e};if(r=ur.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:nt.relative(n,e)}}}Hl.exports={symlinkPaths:A0,symlinkPathsSync:P0}});var zl=g((AS,Vl)=>{"use strict";var Wl=ye();function F0(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);Wl.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function k0(e,t){let r;if(t)return t;try{r=Wl.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Vl.exports={symlinkType:F0,symlinkTypeSync:k0}});var rf=g((PS,tf)=>{"use strict";var L0=Oe().fromCallback,Kl=require("path"),qt=ye(),Ql=Be(),q0=Ql.mkdirs,N0=Ql.mkdirsSync,Zl=Yl(),M0=Zl.symlinkPaths,j0=Zl.symlinkPathsSync,ef=zl(),$0=ef.symlinkType,B0=ef.symlinkTypeSync,Jl=tt().pathExists;function U0(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,Jl(t,(i,o)=>{if(i)return n(i);if(o)return n(null);M0(e,t,(a,u)=>{if(a)return n(a);e=u.toDst,$0(u.toCwd,r,(c,p)=>{if(c)return n(c);let f=Kl.dirname(t);Jl(f,(d,v)=>{if(d)return n(d);if(v)return qt.symlink(e,t,p,n);q0(f,y=>{if(y)return n(y);qt.symlink(e,t,p,n)})})})})})}function G0(e,t,r){if(qt.existsSync(t))return;let i=j0(e,t);e=i.toDst,r=B0(i.toCwd,r);let o=Kl.dirname(t);return qt.existsSync(o)||N0(o),qt.symlinkSync(e,t,r)}tf.exports={createSymlink:L0(U0),createSymlinkSync:G0}});var of=g((FS,nf)=>{"use strict";var bn=jl(),Sn=Xl(),wn=rf();nf.exports={createFile:bn.createFile,createFileSync:bn.createFileSync,ensureFile:bn.createFile,ensureFileSync:bn.createFileSync,createLink:Sn.createLink,createLinkSync:Sn.createLinkSync,ensureLink:Sn.createLink,ensureLinkSync:Sn.createLinkSync,createSymlink:wn.createSymlink,createSymlinkSync:wn.createSymlinkSync,ensureSymlink:wn.createSymlink,ensureSymlinkSync:wn.createSymlinkSync}});var Cn=g((kS,sf)=>{function X0(e,{EOL:t=`
|
|
14
|
+
`,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let o=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+o}function H0(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}sf.exports={stringify:X0,stripBom:H0}});var lf=g((LS,cf)=>{var Nt;try{Nt=ye()}catch{Nt=require("fs")}var xn=Oe(),{stringify:af,stripBom:uf}=Cn();async function Y0(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||Nt,n="throws"in t?t.throws:!0,i=await xn.fromCallback(r.readFile)(e,t);i=uf(i);let o;try{o=JSON.parse(i,t?t.reviver:null)}catch(a){if(n)throw a.message=`${e}: ${a.message}`,a;return null}return o}var W0=xn.fromPromise(Y0);function V0(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||Nt,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=uf(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function z0(e,t,r={}){let n=r.fs||Nt,i=af(t,r);await xn.fromCallback(n.writeFile)(e,i,r)}var J0=xn.fromPromise(z0);function K0(e,t,r={}){let n=r.fs||Nt,i=af(t,r);return n.writeFileSync(e,i,r)}var Q0={readFile:W0,readFileSync:V0,writeFile:J0,writeFileSync:K0};cf.exports=Q0});var df=g((qS,ff)=>{"use strict";var Dn=lf();ff.exports={readJson:Dn.readFile,readJsonSync:Dn.readFileSync,writeJson:Dn.writeFile,writeJsonSync:Dn.writeFileSync}});var Rn=g((NS,mf)=>{"use strict";var Z0=Oe().fromCallback,cr=ye(),hf=require("path"),pf=Be(),eg=tt().pathExists;function tg(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=hf.dirname(e);eg(i,(o,a)=>{if(o)return n(o);if(a)return cr.writeFile(e,t,r,n);pf.mkdirs(i,u=>{if(u)return n(u);cr.writeFile(e,t,r,n)})})}function rg(e,...t){let r=hf.dirname(e);if(cr.existsSync(r))return cr.writeFileSync(e,...t);pf.mkdirsSync(r),cr.writeFileSync(e,...t)}mf.exports={outputFile:Z0(tg),outputFileSync:rg}});var vf=g((MS,yf)=>{"use strict";var{stringify:ng}=Cn(),{outputFile:ig}=Rn();async function og(e,t,r={}){let n=ng(t,r);await ig(e,n,r)}yf.exports=og});var _f=g((jS,gf)=>{"use strict";var{stringify:sg}=Cn(),{outputFileSync:ag}=Rn();function ug(e,t,r){let n=sg(t,r);ag(e,n,r)}gf.exports=ug});var bf=g(($S,Ef)=>{"use strict";var cg=Oe().fromPromise,we=df();we.outputJson=cg(vf());we.outputJsonSync=_f();we.outputJSON=we.outputJson;we.outputJSONSync=we.outputJsonSync;we.writeJSON=we.writeJson;we.writeJSONSync=we.writeJsonSync;we.readJSON=we.readJson;we.readJSONSync=we.readJsonSync;Ef.exports=we});var Rf=g((BS,Df)=>{"use strict";var Cf=ye(),lg=require("path"),fg=go().copySync,xf=ar().removeSync,dg=Be().mkdirpSync,Sf=tr();function hg(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=Sf.checkPathsSync(e,t,"move");return Sf.checkParentPathsSync(e,i,t,"move"),dg(lg.dirname(t)),pg(e,t,n)}function pg(e,t,r){if(r)return xf(t),wf(e,t,r);if(Cf.existsSync(t))throw new Error("dest already exists.");return wf(e,t,r)}function wf(e,t,r){try{Cf.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return mg(e,t,r)}}function mg(e,t,r){return fg(e,t,{overwrite:r,errorOnExist:!0}),xf(e)}Df.exports=hg});var If=g((US,Of)=>{"use strict";Of.exports={moveSync:Rf()}});var kf=g((GS,Ff)=>{"use strict";var yg=ye(),vg=require("path"),gg=Eo().copy,Pf=ar().remove,_g=Be().mkdirp,Eg=tt().pathExists,Tf=tr();function bg(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;Tf.checkPaths(e,t,"move",(o,a)=>{if(o)return n(o);let{srcStat:u}=a;Tf.checkParentPaths(e,u,t,"move",c=>{if(c)return n(c);_g(vg.dirname(t),p=>p?n(p):Sg(e,t,i,n))})})}function Sg(e,t,r,n){if(r)return Pf(t,i=>i?n(i):Af(e,t,r,n));Eg(t,(i,o)=>i?n(i):o?n(new Error("dest already exists.")):Af(e,t,r,n))}function Af(e,t,r,n){yg.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):wg(e,t,r,n):n())}function wg(e,t,r,n){gg(e,t,{overwrite:r,errorOnExist:!0},o=>o?n(o):Pf(e,n))}Ff.exports=bg});var qf=g((XS,Lf)=>{"use strict";var Cg=Oe().fromCallback;Lf.exports={move:Cg(kf())}});var Mt=g((HS,So)=>{"use strict";So.exports={...er(),...go(),...Eo(),...Ll(),...of(),...bf(),...Be(),...If(),...qf(),...Rn(),...tt(),...ar()};var Nf=require("fs");Object.getOwnPropertyDescriptor(Nf,"promises")&&Object.defineProperty(So.exports,"promises",{get(){return Nf.promises}})});var $f=g((YS,jf)=>{"use strict";var{FORCE_COLOR:xg,NODE_DISABLE_COLORS:Dg,TERM:Rg}=process.env,G={enabled:!Dg&&Rg!=="dumb"&&xg!=="0",reset:z(0,0),bold:z(1,22),dim:z(2,22),italic:z(3,23),underline:z(4,24),inverse:z(7,27),hidden:z(8,28),strikethrough:z(9,29),black:z(30,39),red:z(31,39),green:z(32,39),yellow:z(33,39),blue:z(34,39),magenta:z(35,39),cyan:z(36,39),white:z(37,39),gray:z(90,39),grey:z(90,39),bgBlack:z(40,49),bgRed:z(41,49),bgGreen:z(42,49),bgYellow:z(43,49),bgBlue:z(44,49),bgMagenta:z(45,49),bgCyan:z(46,49),bgWhite:z(47,49)};function Mf(e,t){let r=0,n,i="",o="";for(;r<e.length;r++)n=e[r],i+=n.open,o+=n.close,t.includes(n.close)&&(t=t.replace(n.rgx,n.close+n.open));return i+t+o}function Og(e,t){let r={has:e,keys:t};return r.reset=G.reset.bind(r),r.bold=G.bold.bind(r),r.dim=G.dim.bind(r),r.italic=G.italic.bind(r),r.underline=G.underline.bind(r),r.inverse=G.inverse.bind(r),r.hidden=G.hidden.bind(r),r.strikethrough=G.strikethrough.bind(r),r.black=G.black.bind(r),r.red=G.red.bind(r),r.green=G.green.bind(r),r.yellow=G.yellow.bind(r),r.blue=G.blue.bind(r),r.magenta=G.magenta.bind(r),r.cyan=G.cyan.bind(r),r.white=G.white.bind(r),r.gray=G.gray.bind(r),r.grey=G.grey.bind(r),r.bgBlack=G.bgBlack.bind(r),r.bgRed=G.bgRed.bind(r),r.bgGreen=G.bgGreen.bind(r),r.bgYellow=G.bgYellow.bind(r),r.bgBlue=G.bgBlue.bind(r),r.bgMagenta=G.bgMagenta.bind(r),r.bgCyan=G.bgCyan.bind(r),r.bgWhite=G.bgWhite.bind(r),r}function z(e,t){let r={open:`\x1B[${e}m`,close:`\x1B[${t}m`,rgx:new RegExp(`\\x1b\\[${t}m`,"g")};return function(n){return this!==void 0&&this.has!==void 0?(this.has.includes(e)||(this.has.push(e),this.keys.push(r)),n===void 0?this:G.enabled?Mf(this.keys,n+""):n+""):n===void 0?Og([e],[r]):G.enabled?Mf([r],n+""):n+""}}jf.exports=G});var Kf=g(F=>{"use strict";var lr=Symbol.for("react.element"),Ig=Symbol.for("react.portal"),Tg=Symbol.for("react.fragment"),Ag=Symbol.for("react.strict_mode"),Pg=Symbol.for("react.profiler"),Fg=Symbol.for("react.provider"),kg=Symbol.for("react.context"),Lg=Symbol.for("react.forward_ref"),qg=Symbol.for("react.suspense"),Ng=Symbol.for("react.memo"),Mg=Symbol.for("react.lazy"),Bf=Symbol.iterator;function jg(e){return e===null||typeof e!="object"?null:(e=Bf&&e[Bf]||e["@@iterator"],typeof e=="function"?e:null)}var Xf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Hf=Object.assign,Yf={};function jt(e,t,r){this.props=e,this.context=t,this.refs=Yf,this.updater=r||Xf}jt.prototype.isReactComponent={};jt.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};jt.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wf(){}Wf.prototype=jt.prototype;function Co(e,t,r){this.props=e,this.context=t,this.refs=Yf,this.updater=r||Xf}var xo=Co.prototype=new Wf;xo.constructor=Co;Hf(xo,jt.prototype);xo.isPureReactComponent=!0;var Uf=Array.isArray,Vf=Object.prototype.hasOwnProperty,Do={current:null},zf={key:!0,ref:!0,__self:!0,__source:!0};function Jf(e,t,r){var n,i={},o=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Vf.call(t,n)&&!zf.hasOwnProperty(n)&&(i[n]=t[n]);var u=arguments.length-2;if(u===1)i.children=r;else if(1<u){for(var c=Array(u),p=0;p<u;p++)c[p]=arguments[p+2];i.children=c}if(e&&e.defaultProps)for(n in u=e.defaultProps,u)i[n]===void 0&&(i[n]=u[n]);return{$$typeof:lr,type:e,key:o,ref:a,props:i,_owner:Do.current}}function $g(e,t){return{$$typeof:lr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ro(e){return typeof e=="object"&&e!==null&&e.$$typeof===lr}function Bg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Gf=/\/+/g;function wo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Bg(""+e.key):t.toString(36)}function In(e,t,r,n,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case lr:case Ig:a=!0}}if(a)return a=e,i=i(a),e=n===""?"."+wo(a,0):n,Uf(i)?(r="",e!=null&&(r=e.replace(Gf,"$&/")+"/"),In(i,t,r,"",function(p){return p})):i!=null&&(Ro(i)&&(i=$g(i,r+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(Gf,"$&/")+"/")+e)),t.push(i)),1;if(a=0,n=n===""?".":n+":",Uf(e))for(var u=0;u<e.length;u++){o=e[u];var c=n+wo(o,u);a+=In(o,t,r,c,i)}else if(c=jg(e),typeof c=="function")for(e=c.call(e),u=0;!(o=e.next()).done;)o=o.value,c=n+wo(o,u++),a+=In(o,t,r,c,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function On(e,t,r){if(e==null)return e;var n=[],i=0;return In(e,n,"","",function(o){return t.call(r,o,i++)}),n}function Ug(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ce={current:null},Tn={transition:null},Gg={ReactCurrentDispatcher:Ce,ReactCurrentBatchConfig:Tn,ReactCurrentOwner:Do};F.Children={map:On,forEach:function(e,t,r){On(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return On(e,function(){t++}),t},toArray:function(e){return On(e,function(t){return t})||[]},only:function(e){if(!Ro(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};F.Component=jt;F.Fragment=Tg;F.Profiler=Pg;F.PureComponent=Co;F.StrictMode=Ag;F.Suspense=qg;F.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gg;F.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Hf({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=Do.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)Vf.call(t,c)&&!zf.hasOwnProperty(c)&&(n[c]=t[c]===void 0&&u!==void 0?u[c]:t[c])}var c=arguments.length-2;if(c===1)n.children=r;else if(1<c){u=Array(c);for(var p=0;p<c;p++)u[p]=arguments[p+2];n.children=u}return{$$typeof:lr,type:e.type,key:i,ref:o,props:n,_owner:a}};F.createContext=function(e){return e={$$typeof:kg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Fg,_context:e},e.Consumer=e};F.createElement=Jf;F.createFactory=function(e){var t=Jf.bind(null,e);return t.type=e,t};F.createRef=function(){return{current:null}};F.forwardRef=function(e){return{$$typeof:Lg,render:e}};F.isValidElement=Ro;F.lazy=function(e){return{$$typeof:Mg,_payload:{_status:-1,_result:e},_init:Ug}};F.memo=function(e,t){return{$$typeof:Ng,type:e,compare:t===void 0?null:t}};F.startTransition=function(e){var t=Tn.transition;Tn.transition={};try{e()}finally{Tn.transition=t}};F.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};F.useCallback=function(e,t){return Ce.current.useCallback(e,t)};F.useContext=function(e){return Ce.current.useContext(e)};F.useDebugValue=function(){};F.useDeferredValue=function(e){return Ce.current.useDeferredValue(e)};F.useEffect=function(e,t){return Ce.current.useEffect(e,t)};F.useId=function(){return Ce.current.useId()};F.useImperativeHandle=function(e,t,r){return Ce.current.useImperativeHandle(e,t,r)};F.useInsertionEffect=function(e,t){return Ce.current.useInsertionEffect(e,t)};F.useLayoutEffect=function(e,t){return Ce.current.useLayoutEffect(e,t)};F.useMemo=function(e,t){return Ce.current.useMemo(e,t)};F.useReducer=function(e,t,r){return Ce.current.useReducer(e,t,r)};F.useRef=function(e){return Ce.current.useRef(e)};F.useState=function(e){return Ce.current.useState(e)};F.useSyncExternalStore=function(e,t,r){return Ce.current.useSyncExternalStore(e,t,r)};F.useTransition=function(){return Ce.current.useTransition()};F.version="18.2.0"});var Qf=g((k,An)=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e="18.2.0",t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),b=Symbol.iterator,x="@@iterator";function C(s){if(s===null||typeof s!="object")return null;var l=b&&s[b]||s[x];return typeof l=="function"?l:null}var P={current:null},X={transition:null},L={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},$={current:null},oe={},xe=null;function We(s){xe=s}oe.setExtraStackFrame=function(s){xe=s},oe.getCurrentStack=null,oe.getStackAddendum=function(){var s="";xe&&(s+=xe);var l=oe.getCurrentStack;return l&&(s+=l()||""),s};var De=!1,D=!1,M=!1,q=!1,ee=!1,B={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:X,ReactCurrentOwner:$};B.ReactDebugCurrentFrame=oe,B.ReactCurrentActQueue=L;function H(s){{for(var l=arguments.length,h=new Array(l>1?l-1:0),m=1;m<l;m++)h[m-1]=arguments[m];U("warn",s,h)}}function E(s){{for(var l=arguments.length,h=new Array(l>1?l-1:0),m=1;m<l;m++)h[m-1]=arguments[m];U("error",s,h)}}function U(s,l,h){{var m=B.ReactDebugCurrentFrame,_=m.getStackAddendum();_!==""&&(l+="%s",h=h.concat([_]));var O=h.map(function(S){return String(S)});O.unshift("Warning: "+l),Function.prototype.apply.call(console[s],console,O)}}var A={};function R(s,l){{var h=s.constructor,m=h&&(h.displayName||h.name)||"ReactClass",_=m+"."+l;if(A[_])return;E("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",l,m),A[_]=!0}}var N={isMounted:function(s){return!1},enqueueForceUpdate:function(s,l,h){R(s,"forceUpdate")},enqueueReplaceState:function(s,l,h,m){R(s,"replaceState")},enqueueSetState:function(s,l,h,m){R(s,"setState")}},ge=Object.assign,ze={};Object.freeze(ze);function Ge(s,l,h){this.props=s,this.context=l,this.refs=ze,this.updater=h||N}Ge.prototype.isReactComponent={},Ge.prototype.setState=function(s,l){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,l,"setState")},Ge.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};{var gt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},wr=function(s,l){Object.defineProperty(Ge.prototype,s,{get:function(){H("%s(...) is deprecated in plain JavaScript React classes. %s",l[0],l[1])}})};for(var Re in gt)gt.hasOwnProperty(Re)&&wr(Re,gt[Re])}function gs(){}gs.prototype=Ge.prototype;function ti(s,l,h){this.props=s,this.context=l,this.refs=ze,this.updater=h||N}var ri=ti.prototype=new gs;ri.constructor=ti,ge(ri,Ge.prototype),ri.isPureReactComponent=!0;function Uh(){var s={current:null};return Object.seal(s),s}var Gh=Array.isArray;function Cr(s){return Gh(s)}function Xh(s){{var l=typeof Symbol=="function"&&Symbol.toStringTag,h=l&&s[Symbol.toStringTag]||s.constructor.name||"Object";return h}}function Hh(s){try{return _s(s),!1}catch{return!0}}function _s(s){return""+s}function xr(s){if(Hh(s))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xh(s)),_s(s)}function Yh(s,l,h){var m=s.displayName;if(m)return m;var _=l.displayName||l.name||"";return _!==""?h+"("+_+")":h}function Es(s){return s.displayName||"Context"}function Je(s){if(s==null)return null;if(typeof s.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case n:return"Fragment";case r:return"Portal";case o:return"Profiler";case i:return"StrictMode";case p:return"Suspense";case f:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case u:var l=s;return Es(l)+".Consumer";case a:var h=s;return Es(h._context)+".Provider";case c:return Yh(s,s.render,"ForwardRef");case d:var m=s.displayName||null;return m!==null?m:Je(s.type)||"Memo";case v:{var _=s,O=_._payload,S=_._init;try{return Je(S(O))}catch{return null}}}return null}var Gt=Object.prototype.hasOwnProperty,bs={key:!0,ref:!0,__self:!0,__source:!0},Ss,ws,ni;ni={};function Cs(s){if(Gt.call(s,"ref")){var l=Object.getOwnPropertyDescriptor(s,"ref").get;if(l&&l.isReactWarning)return!1}return s.ref!==void 0}function xs(s){if(Gt.call(s,"key")){var l=Object.getOwnPropertyDescriptor(s,"key").get;if(l&&l.isReactWarning)return!1}return s.key!==void 0}function Wh(s,l){var h=function(){Ss||(Ss=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))};h.isReactWarning=!0,Object.defineProperty(s,"key",{get:h,configurable:!0})}function Vh(s,l){var h=function(){ws||(ws=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))};h.isReactWarning=!0,Object.defineProperty(s,"ref",{get:h,configurable:!0})}function zh(s){if(typeof s.ref=="string"&&$.current&&s.__self&&$.current.stateNode!==s.__self){var l=Je($.current.type);ni[l]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',l,s.ref),ni[l]=!0)}}var ii=function(s,l,h,m,_,O,S){var I={$$typeof:t,type:s,key:l,ref:h,props:S,_owner:O};return I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(I,"_self",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.defineProperty(I,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I};function Jh(s,l,h){var m,_={},O=null,S=null,I=null,j=null;if(l!=null){Cs(l)&&(S=l.ref,zh(l)),xs(l)&&(xr(l.key),O=""+l.key),I=l.__self===void 0?null:l.__self,j=l.__source===void 0?null:l.__source;for(m in l)Gt.call(l,m)&&!bs.hasOwnProperty(m)&&(_[m]=l[m])}var W=arguments.length-2;if(W===1)_.children=h;else if(W>1){for(var J=Array(W),K=0;K<W;K++)J[K]=arguments[K+2];Object.freeze&&Object.freeze(J),_.children=J}if(s&&s.defaultProps){var Q=s.defaultProps;for(m in Q)_[m]===void 0&&(_[m]=Q[m])}if(O||S){var re=typeof s=="function"?s.displayName||s.name||"Unknown":s;O&&Wh(_,re),S&&Vh(_,re)}return ii(s,O,S,I,j,$.current,_)}function Kh(s,l){var h=ii(s.type,l,s.ref,s._self,s._source,s._owner,s.props);return h}function Qh(s,l,h){if(s==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+s+".");var m,_=ge({},s.props),O=s.key,S=s.ref,I=s._self,j=s._source,W=s._owner;if(l!=null){Cs(l)&&(S=l.ref,W=$.current),xs(l)&&(xr(l.key),O=""+l.key);var J;s.type&&s.type.defaultProps&&(J=s.type.defaultProps);for(m in l)Gt.call(l,m)&&!bs.hasOwnProperty(m)&&(l[m]===void 0&&J!==void 0?_[m]=J[m]:_[m]=l[m])}var K=arguments.length-2;if(K===1)_.children=h;else if(K>1){for(var Q=Array(K),re=0;re<K;re++)Q[re]=arguments[re+2];_.children=Q}return ii(s.type,O,S,I,j,W,_)}function _t(s){return typeof s=="object"&&s!==null&&s.$$typeof===t}var Ds=".",Zh=":";function ep(s){var l=/[=:]/g,h={"=":"=0",":":"=2"},m=s.replace(l,function(_){return h[_]});return"$"+m}var Rs=!1,tp=/\/+/g;function Os(s){return s.replace(tp,"$&/")}function oi(s,l){return typeof s=="object"&&s!==null&&s.key!=null?(xr(s.key),ep(""+s.key)):l.toString(36)}function Dr(s,l,h,m,_){var O=typeof s;(O==="undefined"||O==="boolean")&&(s=null);var S=!1;if(s===null)S=!0;else switch(O){case"string":case"number":S=!0;break;case"object":switch(s.$$typeof){case t:case r:S=!0}}if(S){var I=s,j=_(I),W=m===""?Ds+oi(I,0):m;if(Cr(j)){var J="";W!=null&&(J=Os(W)+"/"),Dr(j,l,J,"",function(Vp){return Vp})}else j!=null&&(_t(j)&&(j.key&&(!I||I.key!==j.key)&&xr(j.key),j=Kh(j,h+(j.key&&(!I||I.key!==j.key)?Os(""+j.key)+"/":"")+W)),l.push(j));return 1}var K,Q,re=0,ce=m===""?Ds:m+Zh;if(Cr(s))for(var kr=0;kr<s.length;kr++)K=s[kr],Q=ce+oi(K,kr),re+=Dr(K,l,h,Q,_);else{var pi=C(s);if(typeof pi=="function"){var Qs=s;pi===Qs.entries&&(Rs||H("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Rs=!0);for(var Yp=pi.call(Qs),Zs,Wp=0;!(Zs=Yp.next()).done;)K=Zs.value,Q=ce+oi(K,Wp++),re+=Dr(K,l,h,Q,_)}else if(O==="object"){var ea=String(s);throw new Error("Objects are not valid as a React child (found: "+(ea==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":ea)+"). If you meant to render a collection of children, use an array instead.")}}return re}function Rr(s,l,h){if(s==null)return s;var m=[],_=0;return Dr(s,m,"","",function(O){return l.call(h,O,_++)}),m}function rp(s){var l=0;return Rr(s,function(){l++}),l}function np(s,l,h){Rr(s,function(){l.apply(this,arguments)},h)}function ip(s){return Rr(s,function(l){return l})||[]}function op(s){if(!_t(s))throw new Error("React.Children.only expected to receive a single React element child.");return s}function sp(s){var l={$$typeof:u,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};l.Provider={$$typeof:a,_context:l};var h=!1,m=!1,_=!1;{var O={$$typeof:u,_context:l};Object.defineProperties(O,{Provider:{get:function(){return m||(m=!0,E("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),l.Provider},set:function(S){l.Provider=S}},_currentValue:{get:function(){return l._currentValue},set:function(S){l._currentValue=S}},_currentValue2:{get:function(){return l._currentValue2},set:function(S){l._currentValue2=S}},_threadCount:{get:function(){return l._threadCount},set:function(S){l._threadCount=S}},Consumer:{get:function(){return h||(h=!0,E("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),l.Consumer}},displayName:{get:function(){return l.displayName},set:function(S){_||(H("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",S),_=!0)}}}),l.Consumer=O}return l._currentRenderer=null,l._currentRenderer2=null,l}var Xt=-1,si=0,Is=1,ap=2;function up(s){if(s._status===Xt){var l=s._result,h=l();if(h.then(function(O){if(s._status===si||s._status===Xt){var S=s;S._status=Is,S._result=O}},function(O){if(s._status===si||s._status===Xt){var S=s;S._status=ap,S._result=O}}),s._status===Xt){var m=s;m._status=si,m._result=h}}if(s._status===Is){var _=s._result;return _===void 0&&E(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
15
|
+
|
|
16
|
+
Your code should look like:
|
|
17
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
18
|
+
|
|
19
|
+
Did you accidentally put curly braces around the import?`,_),"default"in _||E(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
20
|
+
|
|
21
|
+
Your code should look like:
|
|
22
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,_),_.default}else throw s._result}function cp(s){var l={_status:Xt,_result:s},h={$$typeof:v,_payload:l,_init:up};{var m,_;Object.defineProperties(h,{defaultProps:{configurable:!0,get:function(){return m},set:function(O){E("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),m=O,Object.defineProperty(h,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return _},set:function(O){E("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),_=O,Object.defineProperty(h,"propTypes",{enumerable:!0})}}})}return h}function lp(s){s!=null&&s.$$typeof===d?E("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof s!="function"?E("forwardRef requires a render function but was given %s.",s===null?"null":typeof s):s.length!==0&&s.length!==2&&E("forwardRef render functions accept exactly two parameters: props and ref. %s",s.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),s!=null&&(s.defaultProps!=null||s.propTypes!=null)&&E("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var l={$$typeof:c,render:s};{var h;Object.defineProperty(l,"displayName",{enumerable:!1,configurable:!0,get:function(){return h},set:function(m){h=m,!s.name&&!s.displayName&&(s.displayName=m)}})}return l}var Ts;Ts=Symbol.for("react.module.reference");function As(s){return!!(typeof s=="string"||typeof s=="function"||s===n||s===o||ee||s===i||s===p||s===f||q||s===y||De||D||M||typeof s=="object"&&s!==null&&(s.$$typeof===v||s.$$typeof===d||s.$$typeof===a||s.$$typeof===u||s.$$typeof===c||s.$$typeof===Ts||s.getModuleId!==void 0))}function fp(s,l){As(s)||E("memo: The first argument must be a component. Instead received: %s",s===null?"null":typeof s);var h={$$typeof:d,type:s,compare:l===void 0?null:l};{var m;Object.defineProperty(h,"displayName",{enumerable:!1,configurable:!0,get:function(){return m},set:function(_){m=_,!s.name&&!s.displayName&&(s.displayName=_)}})}return h}function _e(){var s=P.current;return s===null&&E(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
23
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
24
|
+
2. You might be breaking the Rules of Hooks
|
|
25
|
+
3. You might have more than one copy of React in the same app
|
|
26
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),s}function dp(s){var l=_e();if(s._context!==void 0){var h=s._context;h.Consumer===s?E("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):h.Provider===s&&E("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return l.useContext(s)}function hp(s){var l=_e();return l.useState(s)}function pp(s,l,h){var m=_e();return m.useReducer(s,l,h)}function mp(s){var l=_e();return l.useRef(s)}function yp(s,l){var h=_e();return h.useEffect(s,l)}function vp(s,l){var h=_e();return h.useInsertionEffect(s,l)}function gp(s,l){var h=_e();return h.useLayoutEffect(s,l)}function _p(s,l){var h=_e();return h.useCallback(s,l)}function Ep(s,l){var h=_e();return h.useMemo(s,l)}function bp(s,l,h){var m=_e();return m.useImperativeHandle(s,l,h)}function Sp(s,l){{var h=_e();return h.useDebugValue(s,l)}}function wp(){var s=_e();return s.useTransition()}function Cp(s){var l=_e();return l.useDeferredValue(s)}function xp(){var s=_e();return s.useId()}function Dp(s,l,h){var m=_e();return m.useSyncExternalStore(s,l,h)}var Ht=0,Ps,Fs,ks,Ls,qs,Ns,Ms;function js(){}js.__reactDisabledLog=!0;function Rp(){{if(Ht===0){Ps=console.log,Fs=console.info,ks=console.warn,Ls=console.error,qs=console.group,Ns=console.groupCollapsed,Ms=console.groupEnd;var s={configurable:!0,enumerable:!0,value:js,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}Ht++}}function Op(){{if(Ht--,Ht===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ge({},s,{value:Ps}),info:ge({},s,{value:Fs}),warn:ge({},s,{value:ks}),error:ge({},s,{value:Ls}),group:ge({},s,{value:qs}),groupCollapsed:ge({},s,{value:Ns}),groupEnd:ge({},s,{value:Ms})})}Ht<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ai=B.ReactCurrentDispatcher,ui;function Or(s,l,h){{if(ui===void 0)try{throw Error()}catch(_){var m=_.stack.trim().match(/\n( *(at )?)/);ui=m&&m[1]||""}return`
|
|
27
|
+
`+ui+s}}var ci=!1,Ir;{var Ip=typeof WeakMap=="function"?WeakMap:Map;Ir=new Ip}function $s(s,l){if(!s||ci)return"";{var h=Ir.get(s);if(h!==void 0)return h}var m;ci=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var O;O=ai.current,ai.current=null,Rp();try{if(l){var S=function(){throw Error()};if(Object.defineProperty(S.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(S,[])}catch(ce){m=ce}Reflect.construct(s,[],S)}else{try{S.call()}catch(ce){m=ce}s.call(S.prototype)}}else{try{throw Error()}catch(ce){m=ce}s()}}catch(ce){if(ce&&m&&typeof ce.stack=="string"){for(var I=ce.stack.split(`
|
|
28
|
+
`),j=m.stack.split(`
|
|
29
|
+
`),W=I.length-1,J=j.length-1;W>=1&&J>=0&&I[W]!==j[J];)J--;for(;W>=1&&J>=0;W--,J--)if(I[W]!==j[J]){if(W!==1||J!==1)do if(W--,J--,J<0||I[W]!==j[J]){var K=`
|
|
30
|
+
`+I[W].replace(" at new "," at ");return s.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",s.displayName)),typeof s=="function"&&Ir.set(s,K),K}while(W>=1&&J>=0);break}}}finally{ci=!1,ai.current=O,Op(),Error.prepareStackTrace=_}var Q=s?s.displayName||s.name:"",re=Q?Or(Q):"";return typeof s=="function"&&Ir.set(s,re),re}function Tp(s,l,h){return $s(s,!1)}function Ap(s){var l=s.prototype;return!!(l&&l.isReactComponent)}function Tr(s,l,h){if(s==null)return"";if(typeof s=="function")return $s(s,Ap(s));if(typeof s=="string")return Or(s);switch(s){case p:return Or("Suspense");case f:return Or("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case c:return Tp(s.render);case d:return Tr(s.type,l,h);case v:{var m=s,_=m._payload,O=m._init;try{return Tr(O(_),l,h)}catch{}}}return""}var Bs={},Us=B.ReactDebugCurrentFrame;function Ar(s){if(s){var l=s._owner,h=Tr(s.type,s._source,l?l.type:null);Us.setExtraStackFrame(h)}else Us.setExtraStackFrame(null)}function Pp(s,l,h,m,_){{var O=Function.call.bind(Gt);for(var S in s)if(O(s,S)){var I=void 0;try{if(typeof s[S]!="function"){var j=Error((m||"React class")+": "+h+" type `"+S+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[S]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw j.name="Invariant Violation",j}I=s[S](l,S,m,h,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(W){I=W}I&&!(I instanceof Error)&&(Ar(_),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",m||"React class",h,S,typeof I),Ar(null)),I instanceof Error&&!(I.message in Bs)&&(Bs[I.message]=!0,Ar(_),E("Failed %s type: %s",h,I.message),Ar(null))}}}function Et(s){if(s){var l=s._owner,h=Tr(s.type,s._source,l?l.type:null);We(h)}else We(null)}var li;li=!1;function Gs(){if($.current){var s=Je($.current.type);if(s)return`
|
|
31
|
+
|
|
32
|
+
Check the render method of \``+s+"`."}return""}function Fp(s){if(s!==void 0){var l=s.fileName.replace(/^.*[\\\/]/,""),h=s.lineNumber;return`
|
|
33
|
+
|
|
34
|
+
Check your code at `+l+":"+h+"."}return""}function kp(s){return s!=null?Fp(s.__source):""}var Xs={};function Lp(s){var l=Gs();if(!l){var h=typeof s=="string"?s:s.displayName||s.name;h&&(l=`
|
|
35
|
+
|
|
36
|
+
Check the top-level render call using <`+h+">.")}return l}function Hs(s,l){if(!(!s._store||s._store.validated||s.key!=null)){s._store.validated=!0;var h=Lp(l);if(!Xs[h]){Xs[h]=!0;var m="";s&&s._owner&&s._owner!==$.current&&(m=" It was passed a child from "+Je(s._owner.type)+"."),Et(s),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',h,m),Et(null)}}}function Ys(s,l){if(typeof s=="object"){if(Cr(s))for(var h=0;h<s.length;h++){var m=s[h];_t(m)&&Hs(m,l)}else if(_t(s))s._store&&(s._store.validated=!0);else if(s){var _=C(s);if(typeof _=="function"&&_!==s.entries)for(var O=_.call(s),S;!(S=O.next()).done;)_t(S.value)&&Hs(S.value,l)}}}function Ws(s){{var l=s.type;if(l==null||typeof l=="string")return;var h;if(typeof l=="function")h=l.propTypes;else if(typeof l=="object"&&(l.$$typeof===c||l.$$typeof===d))h=l.propTypes;else return;if(h){var m=Je(l);Pp(h,s.props,"prop",m,s)}else if(l.PropTypes!==void 0&&!li){li=!0;var _=Je(l);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_||"Unknown")}typeof l.getDefaultProps=="function"&&!l.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function qp(s){{for(var l=Object.keys(s.props),h=0;h<l.length;h++){var m=l[h];if(m!=="children"&&m!=="key"){Et(s),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",m),Et(null);break}}s.ref!==null&&(Et(s),E("Invalid attribute `ref` supplied to `React.Fragment`."),Et(null))}}function Vs(s,l,h){var m=As(s);if(!m){var _="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(_+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var O=kp(l);O?_+=O:_+=Gs();var S;s===null?S="null":Cr(s)?S="array":s!==void 0&&s.$$typeof===t?(S="<"+(Je(s.type)||"Unknown")+" />",_=" Did you accidentally export a JSX literal instead of a component?"):S=typeof s,E("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,_)}var I=Jh.apply(this,arguments);if(I==null)return I;if(m)for(var j=2;j<arguments.length;j++)Ys(arguments[j],s);return s===n?qp(I):Ws(I),I}var zs=!1;function Np(s){var l=Vs.bind(null,s);return l.type=s,zs||(zs=!0,H("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(l,"type",{enumerable:!1,get:function(){return H("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:s}),s}}),l}function Mp(s,l,h){for(var m=Qh.apply(this,arguments),_=2;_<arguments.length;_++)Ys(arguments[_],m.type);return Ws(m),m}function jp(s,l){var h=X.transition;X.transition={};var m=X.transition;X.transition._updatedFibers=new Set;try{s()}finally{if(X.transition=h,h===null&&m._updatedFibers){var _=m._updatedFibers.size;_>10&&H("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),m._updatedFibers.clear()}}}var Js=!1,Pr=null;function $p(s){if(Pr===null)try{var l=("require"+Math.random()).slice(0,7),h=An&&An[l];Pr=h.call(An,"timers").setImmediate}catch{Pr=function(_){Js===!1&&(Js=!0,typeof MessageChannel>"u"&&E("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var O=new MessageChannel;O.port1.onmessage=_,O.port2.postMessage(void 0)}}return Pr(s)}var bt=0,Ks=!1;function Bp(s){{var l=bt;bt++,L.current===null&&(L.current=[]);var h=L.isBatchingLegacy,m;try{if(L.isBatchingLegacy=!0,m=s(),!h&&L.didScheduleLegacyUpdate){var _=L.current;_!==null&&(L.didScheduleLegacyUpdate=!1,hi(_))}}catch(Q){throw Fr(l),Q}finally{L.isBatchingLegacy=h}if(m!==null&&typeof m=="object"&&typeof m.then=="function"){var O=m,S=!1,I={then:function(Q,re){S=!0,O.then(function(ce){Fr(l),bt===0?fi(ce,Q,re):Q(ce)},function(ce){Fr(l),re(ce)})}};return!Ks&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){S||(Ks=!0,E("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),I}else{var j=m;if(Fr(l),bt===0){var W=L.current;W!==null&&(hi(W),L.current=null);var J={then:function(Q,re){L.current===null?(L.current=[],fi(j,Q,re)):Q(j)}};return J}else{var K={then:function(Q,re){Q(j)}};return K}}}}function Fr(s){s!==bt-1&&E("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),bt=s}function fi(s,l,h){{var m=L.current;if(m!==null)try{hi(m),$p(function(){m.length===0?(L.current=null,l(s)):fi(s,l,h)})}catch(_){h(_)}else l(s)}}var di=!1;function hi(s){if(!di){di=!0;var l=0;try{for(;l<s.length;l++){var h=s[l];do h=h(!0);while(h!==null)}s.length=0}catch(m){throw s=s.slice(l+1),m}finally{di=!1}}}var Up=Vs,Gp=Mp,Xp=Np,Hp={map:Rr,forEach:np,count:rp,toArray:ip,only:op};k.Children=Hp,k.Component=Ge,k.Fragment=n,k.Profiler=o,k.PureComponent=ti,k.StrictMode=i,k.Suspense=p,k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,k.cloneElement=Gp,k.createContext=sp,k.createElement=Up,k.createFactory=Xp,k.createRef=Uh,k.forwardRef=lp,k.isValidElement=_t,k.lazy=cp,k.memo=fp,k.startTransition=jp,k.unstable_act=Bp,k.useCallback=_p,k.useContext=dp,k.useDebugValue=Sp,k.useDeferredValue=Cp,k.useEffect=yp,k.useId=xp,k.useImperativeHandle=bp,k.useInsertionEffect=vp,k.useLayoutEffect=gp,k.useMemo=Ep,k.useReducer=pp,k.useRef=mp,k.useState=hp,k.useSyncExternalStore=Dp,k.useTransition=wp,k.version=e,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()});var Zf=g((VS,Oo)=>{"use strict";process.env.NODE_ENV==="production"?Oo.exports=Kf():Oo.exports=Qf()});var ie=g(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.isUndefined=Ae.fixName=Ae.validateName=Ae.validateSingleChar=Ae.fixChar=Ae.validateChar=void 0;function Vg(e){for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(!(r===9||r===10||r===13||r>=32&&r<=55295||r>=57344&&r<=65533)){if(t+1===e.length)return!1;var n=e.charCodeAt(t+1);if(r>=55296&&r<=56319&&n>=56320&&n<=57343){t++;continue}return!1}}return!0}Ae.validateChar=Vg;function zg(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r);if(n===9||n===10||n===13||n>=32&&n<=55295||n>=57344&&n<=65533){t+=e[r];continue}if(r+1===e.length)return t+="\uFFFD",t;var i=e.charCodeAt(r+1);if(n>=55296&&n<=56319&&i>=56320&&i<=57343){t+=e[r]+e[r+1],r++;continue}t+="\uFFFD"}return t}Ae.fixChar=zg;function Jg(e){if(e.length===0)return!1;var t=e.charCodeAt(0);if(e.length===1)return t===9||t===10||t===13||t>=32&&t<=55295||t>=57344&&t<=65533;if(e.length!==2)return!1;var r=e.charCodeAt(1);return t>=55296&&t<=56319&&r>=56320&&r<=57343}Ae.validateSingleChar=Jg;function Kg(e){if(e.length===0)return!1;var t=e.charCodeAt(0),r=t===58||t===95||t>=65&&t<=90||t>=97&&t<=122||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=767||t>=880&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533;if(e.length===1)return r;var n=e.charCodeAt(1),i=t>=55296&&t<=56191&&n>=56320&&n<=57343;if(!r&&!i)return!1;for(var o=i?2:1,a=o;a<e.length;a++){var u=e.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)){if(a+1===e.length)return!1;var c=e.charCodeAt(a+1);if(u>=55296&&u<=56191&&c>=56320&&c<=57343){a++;continue}return!1}}return!0}Ae.validateName=Kg;function Qg(e){var t="";if(e.length===0)return t;var r=e.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(e.length===1)return n?t=e[0]:t="\uFFFD",t;var i=e.charCodeAt(1),o=r>=55296&&r<=56191&&i>=56320&&i<=57343;o?t=e[0]+e[1]:n?t=e[0]:t="\uFFFD";for(var a=o?2:1,u=a;u<e.length;u++){var c=e.charCodeAt(u);if(c===58||c===95||c===45||c===46||c===183||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||c>=192&&c<=214||c>=216&&c<=246||c>=248&&c<=767||c>=768&&c<=879||c>=880&&c<=893||c>=895&&c<=8191||c>=8204&&c<=8205||c>=8255&&c<=8256||c>=8304&&c<=8591||c>=11264&&c<=12271||c>=12289&&c<=55295||c>=63744&&c<=64975||c>=65008&&c<=65533){t+=e[u];continue}if(u+1===e.length)return t+="\uFFFD",t;var p=e.charCodeAt(u+1);if(c>=55296&&c<=56191&&p>=56320&&p<=57343){t+=e[u]+e[u+1],u++;continue}t+="\uFFFD"}return t}Ae.fixName=Qg;function Zg(e){return Object.prototype.toString.call(e)==="[object Undefined]"}Ae.isUndefined=Zg});var $t=g(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.StringOptions=void 0;var Fn=ie(),e_=function(){function e(t){this.doubleQuotes=!1,this.indent=" ",this.newline=`
|
|
37
|
+
`,this.pretty=!0,(0,Fn.isUndefined)(t.doubleQuotes)||(this.doubleQuotes=t.doubleQuotes),(0,Fn.isUndefined)(t.indent)||(this.indent=t.indent),(0,Fn.isUndefined)(t.newline)||(this.newline=t.newline),(0,Fn.isUndefined)(t.pretty)||(this.pretty=t.pretty)}return e}();kn.StringOptions=e_});var Ln=g(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.escapeDoubleQuotes=Me.escapeSingleQuotes=Me.escapeRightAngleBracketsInCdataTerminator=Me.escapeLeftAngleBrackets=Me.escapeAmpersands=void 0;function t_(e){return e.replace(/&/g,"&")}Me.escapeAmpersands=t_;function r_(e){return e.replace(/</g,"<")}Me.escapeLeftAngleBrackets=r_;function n_(e){return e.replace(/]]>/g,"]]>")}Me.escapeRightAngleBracketsInCdataTerminator=n_;function i_(e){return e.replace(/'/g,"'")}Me.escapeSingleQuotes=i_;function o_(e){return e.replace(/"/g,""")}Me.escapeDoubleQuotes=o_});var Ao=g(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});var s_=he(),td=Ln(),Io=ie(),a_=function(){function e(t,r,n){this._validation=r,(0,Io.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._replaceInvalidCharsInCharData)t=(0,Io.fixChar)(t);else if(this._validation&&!(0,Io.validateChar)(t))throw new Error((0,s_.getContext)(this.up())+": attribute text"+(' "'+t+'" should not contain characters not')+" allowed in XML");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var t=this._charData;return t=(0,td.escapeAmpersands)(t),t=(0,td.escapeLeftAngleBrackets)(t),t},e.prototype.up=function(){return this._parent},e}();To.default=a_});var qn=g(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});var rd=he(),nd=ie(),u_=function(){function e(t,r,n){this._hex=!1,this._validation=r,this._parent=t,this.char=n.char,(0,nd.isUndefined)(n.hex)||(this.hex=n.hex)}return Object.defineProperty(e.prototype,"char",{get:function(){return this._char},set:function(t){if(this._validation&&!(0,nd.validateSingleChar)(t))throw new Error((0,rd.getContext)(this.up())+": character reference"+(' "'+t+'" should reference a single character,')+" and this character should be allowed in XML");this._char=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hex",{get:function(){return this._hex},set:function(t){this._hex=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var t;if(this._char.length===1)t=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)t=(r-55296)*1024+n-56320+65536;else throw new Error((0,rd.getContext)(this.up())+": character"+(' reference "'+this.char+'" should')+" reference a valid Unicode character")}else t=r}return this._hex?"&#x"+t.toString(16)+";":"&#"+t+";"},e.prototype.up=function(){return this._parent},e}();Po.default=u_});var Nn=g(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});var c_=he(),l_=ie(),f_=function(){function e(t,r,n){this._validation=r,this._parent=t,this.name=n.name}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(t){if(this._validation&&!(0,l_.validateName)(t))throw new Error((0,c_.getContext)(this.up())+": entity reference name"+(' "'+t+'" should not contain characters not')+" allowed in XML names");this._name=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"&"+this._name+";"},e.prototype.up=function(){return this._parent},e}();Fo.default=f_});var Mn=g(fr=>{"use strict";var qo=fr&&fr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fr,"__esModule",{value:!0});var ko=he(),id=Ln(),d_=$t(),Lo=ie(),h_=qo(Ao()),p_=qo(qn()),m_=qo(Nn()),y_=function(){function e(t,r,n){this._validation=r,(0,Lo.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,this._children=[],this._parent=t,this.name=n.name}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(t){if(this._replaceInvalidCharsInName){if(t=(0,Lo.fixName)(t),t.length===0)throw new Error((0,ko.getContext)(this.up())+": attribute name should not be empty")}else if(this._validation&&!(0,Lo.validateName)(t))throw t.length===0?new Error((0,ko.getContext)(this.up())+": attribute name should not be empty"):new Error((0,ko.getContext)(this.up())+": attribute name"+(' "'+t+'" should not contain characters not')+" allowed in XML names");this._name=t},enumerable:!1,configurable:!0}),e.prototype.charRef=function(t){var r=new p_.default(this,this._validation,t);return this._children.push(r),r},e.prototype.entityRef=function(t){var r=new m_.default(this,this._validation,t);return this._children.push(r),r},e.prototype.text=function(t){var r=new h_.default(this,this._validation,t);return this._children.push(r),r},e.prototype.toString=function(t){t===void 0&&(t={});for(var r=new d_.StringOptions(t),n=r.doubleQuotes?'"':"'",i=this._name+"="+n,o=0,a=this._children;o<a.length;o++){var u=a[o];r.doubleQuotes?i+=(0,id.escapeDoubleQuotes)(u.toString()):i+=(0,id.escapeSingleQuotes)(u.toString())}return i+=n,i},e.prototype.up=function(){return this._parent},e}();fr.default=y_});var Mo=g(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});var v_=he(),g_=ie(),__=function(){function e(t,r,n){this._validation=r,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._validation&&!(0,g_.validateChar)(t))throw new Error((0,v_.getContext)(this.up())+": attribute-list"+(' declaration "'+t+'" should not contain')+" characters not allowed in XML");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"<!ATTLIST "+this._charData+">"},e.prototype.up=function(){return this._parent},e}();No.default=__});var $o=g(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});var E_=he(),b_=ie(),S_=function(){function e(t,r,n){this._validation=r,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._validation&&!(0,b_.validateChar)(t))throw new Error((0,E_.getContext)(this.up())+": element declaration"+(' "'+t+'" should not contain characters')+" not allowed in XML");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"<!ELEMENT "+this._charData+">"},e.prototype.up=function(){return this._parent},e}();jo.default=S_});var Uo=g(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});var w_=he(),C_=ie(),x_=function(){function e(t,r,n){this._validation=r,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._validation&&!(0,C_.validateChar)(t))throw new Error((0,w_.getContext)(this.up())+": entity declaration"+(' "'+t+'" should not contain characters')+" not allowed in XML");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"<!ENTITY "+this._charData+">"},e.prototype.up=function(){return this._parent},e}();Bo.default=x_});var Xo=g(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});var D_=he(),R_=ie(),O_=function(){function e(t,r,n){this._validation=r,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._validation&&!(0,R_.validateChar)(t))throw new Error((0,D_.getContext)(this.up())+": notation declaration"+(' "'+t+'" should not contain characters')+" not allowed in XML");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"<!NOTATION "+this._charData+">"},e.prototype.up=function(){return this._parent},e}();Go.default=O_});var Yo=g(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});var I_=he(),T_=ie(),A_=function(){function e(t,r,n){this._validation=r,this._parent=t,this.name=n.name}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(t){if(this._validation&&!(0,T_.validateName)(t))throw new Error((0,I_.getContext)(this.up())+": parameter entity"+(' reference name "'+t+'" should not contain')+" characters not allowed in XML names");this._name=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"%"+this._name+";"},e.prototype.up=function(){return this._parent},e}();Ho.default=A_});var dr=g(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});var jn=he(),$n=ie(),P_=function(){function e(t,r,n){this._validation=r,this._parent=t,this.content=n.content,this.target=n.target}return Object.defineProperty(e.prototype,"content",{get:function(){return this._content},set:function(t){if(!(0,$n.isUndefined)(t)){if(this._validation&&!(0,$n.validateChar)(t))throw new Error((0,jn.getContext)(this.up())+": processing"+(' instruction content "'+t+'" should')+" not contain characters not allowed in XML");if(this._validation&&t.indexOf("?>")!==-1)throw new Error((0,jn.getContext)(this.up())+": processing"+(' instruction content "'+t+'" should')+" not contain the string '?>'")}this._content=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){return this._target},set:function(t){if(this._validation&&!(0,$n.validateName)(t))throw new Error((0,jn.getContext)(this.up())+": processing"+(' instruction target "'+t+'" should')+" not contain characters not allowed in XML names");if(this._validation&&t==="xml")throw new Error((0,jn.getContext)(this.up())+": processing"+(' instruction target "'+t+'" should')+" not be the string 'xml'");this._target=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return(0,$n.isUndefined)(this._content)?"<?"+this._target+"?>":"<?"+this._target+" "+this._content+"?>"},e.prototype.up=function(){return this._parent},e}();Wo.default=P_});var Bn=g(mt=>{"use strict";var yt=mt&&mt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mt,"__esModule",{value:!0});mt.validatePubId=void 0;var it=he(),F_=$t(),Xe=ie(),k_=yt(hr()),L_=yt(Mo()),q_=yt($o()),N_=yt(Uo()),M_=yt(Xo()),j_=yt(Yo()),$_=yt(dr()),B_=function(){function e(t,r,n){this._pubId=void 0,this._sysId=void 0,this._validation=r,this._children=[],this._parent=t,this.name=n.name,(0,Xe.isUndefined)(n.sysId)||(this.sysId=n.sysId),(0,Xe.isUndefined)(n.pubId)||(this.pubId=n.pubId)}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(t){if(this._validation&&!(0,Xe.validateName)(t))throw new Error((0,it.getContext)(this.up())+': DTD name "'+t+'" should not contain characters not allowed in XML names');this._name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pubId",{get:function(){return this._pubId},set:function(t){if(!(0,Xe.isUndefined)(t)){if(this._validation&&!od(t))throw new Error((0,it.getContext)(this.up())+": DTD public"+(' identifier "'+t+'" should not contain')+" characters not allowed in public identifiers");if(this._validation&&(0,Xe.isUndefined)(this._sysId))throw new Error((0,it.getContext)(this.up())+": DTD public"+(' identifier "'+t+'" should not be defined')+" if system identifier is undefined")}this._pubId=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sysId",{get:function(){return this._sysId},set:function(t){if(!(0,Xe.isUndefined)(t)){if(this._validation&&!(0,Xe.validateChar)(t))throw new Error((0,it.getContext)(this.up())+": DTD system"+(' identifier "'+t+'" should not contain')+" characters not allowed in XML");if(this._validation&&t.indexOf("'")!==-1&&t.indexOf('"')!==-1)throw new Error((0,it.getContext)(this.up())+": DTD system"+(' identifier "'+t+'" should not contain')+" both single quotes and double quotes")}this._sysId=t},enumerable:!1,configurable:!0}),e.prototype.attlist=function(t){var r=new L_.default(this,this._validation,t);return this._children.push(r),r},e.prototype.comment=function(t){var r=new k_.default(this,this._validation,t);return this._children.push(r),r},e.prototype.element=function(t){var r=new q_.default(this,this._validation,t);return this._children.push(r),r},e.prototype.entity=function(t){var r=new N_.default(this,this._validation,t);return this._children.push(r),r},e.prototype.notation=function(t){var r=new M_.default(this,this._validation,t);return this._children.push(r),r},e.prototype.paramEntityRef=function(t){var r=new j_.default(this,this._validation,t);return this._children.push(r),r},e.prototype.procInst=function(t){var r=new $_.default(this,this._validation,t);return this._children.push(r),r},e.prototype.toString=function(t){t===void 0&&(t={});var r=new F_.StringOptions(t),n="<!DOCTYPE "+this._name;if((0,Xe.isUndefined)(this._pubId))(0,Xe.isUndefined)(this._sysId)||(n+=" ",n=this.appendId("SYSTEM",this._sysId,n,r));else{if((0,Xe.isUndefined)(this._sysId))throw new Error((0,it.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,o=this._children;i<o.length;i++){var a=o[i];r.pretty&&(n+=r.newline+r.indent),n+=a.toString()}r.pretty&&(n+=r.newline),n+="]>"}else n+=">";return n},e.prototype.up=function(){return this._parent},e.prototype.appendId=function(t,r,n,i){if(n+=t+" ",i.doubleQuotes){if(this._validation&&r.indexOf('"')!==-1)throw new Error((0,it.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,it.getContext)(this)+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+="'"+r+"'"}return n},e}();mt.default=B_;function od(e){for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);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 t+1===e.length,!1}return!0}mt.validatePubId=od});var Jo=g(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});var sd=he(),Vo=ie(),U_=function(){function e(t,r,n){this._validation=r,(0,Vo.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._replaceInvalidCharsInCharData)t=(0,Vo.fixChar)(t);else if(this._validation&&!(0,Vo.validateChar)(t))throw new Error((0,sd.getContext)(this.up())+": CDATA section"+(' "'+t+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)t=t.replace("]]>","\uFFFD\uFFFD\uFFFD");else if(this._validation&&t.indexOf("]]>")!==-1)throw new Error((0,sd.getContext)(this.up())+": CDATA section"+(' "'+t+'" should not contain the string')+" ']]>'");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"<![CDATA["+this._charData+"]]>"},e.prototype.up=function(){return this._parent},e}();zo.default=U_});var es=g(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});var G_=he(),Ko=Ln(),Qo=ie(),X_=function(){function e(t,r,n){this._validation=r,(0,Qo.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._replaceInvalidCharsInCharData)t=(0,Qo.fixChar)(t);else if(this._validation&&!(0,Qo.validateChar)(t))throw new Error((0,G_.getContext)(this.up())+": character data"+('"'+t+'" should not contain characters not')+" allowed in XML");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var t=this._charData;return t=(0,Ko.escapeAmpersands)(t),t=(0,Ko.escapeLeftAngleBrackets)(t),t=(0,Ko.escapeRightAngleBracketsInCdataTerminator)(t),t},e.prototype.up=function(){return this._parent},e}();Zo.default=X_});var Hn=g(yr=>{"use strict";var vt=yr&&yr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yr,"__esModule",{value:!0});var Un=he(),H_=$t(),pr=ie(),ad=vt(Mn()),Y_=vt(Jo()),mr=vt(es()),Gn=vt(qn()),W_=vt(hr()),Xn=vt(Nn()),V_=vt(dr()),z_=function(){function e(t,r,n){this._validation=r,(0,pr.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,(0,pr.isUndefined)(n.useSelfClosingTagIfEmpty)?this._useSelfClosingTagIfEmpty=!0:this._useSelfClosingTagIfEmpty=n.useSelfClosingTagIfEmpty,this._children=[],this._attributeNames=[],this._parent=t,this.name=n.name}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(t){if(this._replaceInvalidCharsInName){if(t=(0,pr.fixName)(t),t.length===0)throw new Error((0,Un.getContext)(this.up())+": element name should not be empty")}else if(this._validation&&!(0,pr.validateName)(t))throw t.length===0?new Error((0,Un.getContext)(this.up())+": element name should not be empty"):new Error((0,Un.getContext)(this.up())+": element name"+(' "'+t+'" should not contain characters not')+" allowed in XML names");this._name=t},enumerable:!1,configurable:!0}),e.prototype.attribute=function(t){if(this._validation&&this._attributeNames.indexOf(t.name)!==-1)throw new Error((0,Un.getContext)(this.up())+': element "'+this.name+'" already contains an attribute with the'+(' name "'+t.name+'"'));var r=new ad.default(this,this._validation,t);return this._children.push(r),this._attributeNames.push(t.name),r},e.prototype.cdata=function(t){var r=new Y_.default(this,this._validation,t);return this._children.push(r),r},e.prototype.charData=function(t){var r=new mr.default(this,this._validation,t);return this._children.push(r),r},e.prototype.charRef=function(t){var r=new Gn.default(this,this._validation,t);return this._children.push(r),r},e.prototype.comment=function(t){var r=new W_.default(this,this._validation,t);return this._children.push(r),r},e.prototype.element=function(t){var r=new e(this,this._validation,t);return this._children.push(r),r},e.prototype.entityRef=function(t){var r=new Xn.default(this,this._validation,t);return this._children.push(r),r},e.prototype.procInst=function(t){var r=new V_.default(this,this._validation,t);return this._children.push(r),r},e.prototype.toString=function(t){return t===void 0&&(t={}),this.toStringWithIndent(t,"")},e.prototype.up=function(){return this._parent},e.prototype.toStringWithIndent=function(t,r){for(var n=new H_.StringOptions(t),i=r+n.indent,o="<"+this._name,a=[],u=0,c=this._children;u<c.length;u++){var p=c[u];p instanceof ad.default?o+=" "+p.toString(t):a.push(p)}if(a.length>0){for(var f="",d=0;d<a.length;d++){var v=a[d],y="";v instanceof e?y+=v.toStringWithIndent(n,i):y+=v.toString();var b=d>0?a[d-1]:void 0;v instanceof mr.default&&v.toString()===""||(n.pretty&&(this.allSameLineNodes(a)||d>0&&this.onSameLine(v,b)||(y=n.newline+i+y)),f+=y)}n.pretty&&(this.allSameLineNodes(a)||(f+=n.newline+r)),f.length===0&&this._useSelfClosingTagIfEmpty?o+="/>":o+=">"+f+"</"+this._name+">"}else this._useSelfClosingTagIfEmpty?o+="/>":o+="></"+this._name+">";return o},e.prototype.allSameLineNodes=function(t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!(i instanceof Gn.default||i instanceof Xn.default||i instanceof mr.default))return!1}return!0},e.prototype.onSameLine=function(t,r){return(t instanceof Gn.default||t instanceof Xn.default||t instanceof mr.default)&&!(0,pr.isUndefined)(r)&&(r instanceof Gn.default||r instanceof Xn.default||r instanceof mr.default)},e}();yr.default=z_});var he=g(Bt=>{"use strict";var Wn=Bt&&Bt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.getContext=void 0;var J_=Wn(Mn()),K_=Wn(Vn()),Q_=Wn(Bn()),Z_=Wn(Hn());function Yn(e){if(e instanceof J_.default)return Yn(e.up())+(' > attribute "'+e.name+'"');if(e instanceof K_.default)return"in XML document";if(e instanceof Q_.default)return Yn(e.up())+" > DTD";if(e instanceof Z_.default)return Yn(e.up())+(' > element "'+e.name+'"');throw new Error("Unrecognized object of type "+Object.prototype.toString.call(e))}Bt.getContext=Yn});var hr=g(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});var ts=he(),rs=ie(),eE=function(){function e(t,r,n){this._validation=r,(0,rs.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._replaceInvalidCharsInCharData)t=(0,rs.fixChar)(t);else if(this._validation&&!(0,rs.validateChar)(t))throw new Error((0,ts.getContext)(this.up())+": comment content"+(' "'+t+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)t=t.replace("--","\uFFFD\uFFFD");else if(this._validation&&t.indexOf("--")!==-1)throw new Error((0,ts.getContext)(this.up())+": comment content"+(' "'+t+'" should not contain the string')+" '--'");if(this._replaceInvalidCharsInCharData)t.lastIndexOf("-")===t.length-1&&(t=t.substr(0,t.length-1)+"\uFFFD");else if(this._validation&&t.lastIndexOf("-")===t.length-1)throw new Error((0,ts.getContext)(this.up())+": comment content"+(' "'+t+'" should not end with the string')+" '-'");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"<!--"+this._charData+"-->"},e.prototype.up=function(){return this._parent},e}();ns.default=eE});var ss=g(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});var is=he(),tE=$t(),vr=ie(),rE=function(){function e(t,r,n){this._version="1.0",this._validation=r,this._parent=t,this.encoding=n.encoding,this.standalone=n.standalone,(0,vr.isUndefined)(n.version)||(this.version=n.version)}return Object.defineProperty(e.prototype,"encoding",{get:function(){return this._encoding},set:function(t){if(this._validation&&!(0,vr.isUndefined)(t)&&!nE(t))throw new Error((0,is.getContext)(this.up())+": declaration"+(" encoding attribute "+t+" should be a")+" valid encoding");this._encoding=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"standalone",{get:function(){return this._standalone},set:function(t){if(this._validation&&!(0,vr.isUndefined)(t)&&t!=="yes"&&t!=="no")throw new Error((0,is.getContext)(this.up())+": declaration"+(" standalone attribute "+t+" should")+" be the string 'yes' or the string 'no'");this._standalone=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},set:function(t){if(this._validation&&!iE(t))throw new Error((0,is.getContext)(this.up())+": declaration version"+(" attribute "+t+" should be a valid XML")+" version");this._version=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(t){t===void 0&&(t={});var r=new tE.StringOptions(t),n=r.doubleQuotes?'"':"'",i="<?xml version="+n+this._version+n;return(0,vr.isUndefined)(this._encoding)||(i+=" encoding="+n+this._encoding+n),(0,vr.isUndefined)(this._standalone)||(i+=" standalone="+n+this._standalone+n),i+="?>",i},e.prototype.up=function(){return this._parent},e}();os.default=rE;function nE(e){if(e.length===0)return!1;var t=e.charCodeAt(0);if(!(t>=65&&t<=90||t>=97&&t<=122))return!1;for(var r=1;r<e.length;r++){var n=e.charCodeAt(r);if(!(n===95||n===45||n===46||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122))return r+1===e.length,!1}return!0}function iE(e){for(var t=0;t<=9;t++)if(e==="1."+t)return!0;return!1}});var Vn=g(_r=>{"use strict";var Er=_r&&_r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_r,"__esModule",{value:!0});var oE=$t(),sE=ie(),aE=Er(hr()),ud=Er(ss()),cd=Er(Bn()),gr=Er(Hn()),uE=Er(dr()),cE=function(){function e(t){this._children=[],this._validation=(0,sE.isUndefined)(t.validation)?!0:t.validation}return e.prototype.comment=function(t){var r=new aE.default(this,this._validation,t);return this._children.push(r),r},e.prototype.decl=function(t){if(t===void 0&&(t={}),this._validation&&this._children.length!==0)throw new Error("in XML document: declaration must be the first child");var r=new ud.default(this,this._validation,t);return this._children.push(r),r},e.prototype.dtd=function(t){var r=this._children.filter(function(i){return i instanceof gr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: DTD must precede the root element");var n=new cd.default(this,this._validation,t);return this._children.push(n),n},e.prototype.element=function(t){var r=this._children.filter(function(i){return i instanceof gr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: only one root element is permitted");var n=new gr.default(this,this._validation,t);return this._children.push(n),n},e.prototype.procInst=function(t){var r=new uE.default(this,this._validation,t);return this._children.push(r),r},e.prototype.toString=function(t){t===void 0&&(t={});var r=this._children.filter(function(p){return p instanceof gr.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 oE.StringOptions(t),i="",o=0,a=this._children;o<a.length;o++){var u=a[o];u instanceof ud.default||u instanceof cd.default||u instanceof gr.default?i+=u.toString(t):i+=u.toString(),n.pretty&&(i+=n.newline)}var c=i.length-n.newline.length;return i.substr(c)===n.newline&&(i=i.substr(0,c)),i},e}();_r.default=cE});var ld=g(T=>{"use strict";var ae=T&&T.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(T,"__esModule",{value:!0});T.document=T.XmlProcInst=T.XmlEntityRef=T.XmlElement=T.XmlDtdParamEntityRef=T.XmlDtdNotation=T.XmlDtdEntity=T.XmlDtdElement=T.XmlDtdAttlist=T.XmlDtd=T.XmlDocument=T.XmlDecl=T.XmlComment=T.XmlCharRef=T.XmlCharData=T.XmlCdata=T.XmlAttributeText=T.XmlAttribute=void 0;var lE=ae(Vn()),fE=Mn();Object.defineProperty(T,"XmlAttribute",{enumerable:!0,get:function(){return ae(fE).default}});var dE=Ao();Object.defineProperty(T,"XmlAttributeText",{enumerable:!0,get:function(){return ae(dE).default}});var hE=Jo();Object.defineProperty(T,"XmlCdata",{enumerable:!0,get:function(){return ae(hE).default}});var pE=es();Object.defineProperty(T,"XmlCharData",{enumerable:!0,get:function(){return ae(pE).default}});var mE=qn();Object.defineProperty(T,"XmlCharRef",{enumerable:!0,get:function(){return ae(mE).default}});var yE=hr();Object.defineProperty(T,"XmlComment",{enumerable:!0,get:function(){return ae(yE).default}});var vE=ss();Object.defineProperty(T,"XmlDecl",{enumerable:!0,get:function(){return ae(vE).default}});var gE=Vn();Object.defineProperty(T,"XmlDocument",{enumerable:!0,get:function(){return ae(gE).default}});var _E=Bn();Object.defineProperty(T,"XmlDtd",{enumerable:!0,get:function(){return ae(_E).default}});var EE=Mo();Object.defineProperty(T,"XmlDtdAttlist",{enumerable:!0,get:function(){return ae(EE).default}});var bE=$o();Object.defineProperty(T,"XmlDtdElement",{enumerable:!0,get:function(){return ae(bE).default}});var SE=Uo();Object.defineProperty(T,"XmlDtdEntity",{enumerable:!0,get:function(){return ae(SE).default}});var wE=Xo();Object.defineProperty(T,"XmlDtdNotation",{enumerable:!0,get:function(){return ae(wE).default}});var CE=Yo();Object.defineProperty(T,"XmlDtdParamEntityRef",{enumerable:!0,get:function(){return ae(CE).default}});var xE=Hn();Object.defineProperty(T,"XmlElement",{enumerable:!0,get:function(){return ae(xE).default}});var DE=Nn();Object.defineProperty(T,"XmlEntityRef",{enumerable:!0,get:function(){return ae(DE).default}});var RE=dr();Object.defineProperty(T,"XmlProcInst",{enumerable:!0,get:function(){return ae(RE).default}});function OE(e){return e===void 0&&(e={}),new lE.default(e)}T.document=OE});var as=g(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.stringify=ue.isMap=ue.isSet=ue.isFunction=ue.isArray=ue.isObject=ue.isNull=ue.isUndefined=void 0;function fd(e){return Object.prototype.toString.call(e)==="[object Undefined]"}ue.isUndefined=fd;function dd(e){return Object.prototype.toString.call(e)==="[object Null]"}ue.isNull=dd;function IE(e){return Object.prototype.toString.call(e)==="[object Object]"}ue.isObject=IE;function TE(e){return Object.prototype.toString.call(e)==="[object Array]"}ue.isArray=TE;function hd(e){return Object.prototype.toString.call(e)==="[object Function]"}ue.isFunction=hd;function AE(e){return Object.prototype.toString.call(e)==="[object Set]"}ue.isSet=AE;function PE(e){return Object.prototype.toString.call(e)==="[object Map]"}ue.isMap=PE;function FE(e){return!fd(e)&&!dd(e)&&hd(e?.toString)&&(e=e.toString()),String(e)}ue.stringify=FE});var _d=g(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.WrapHandlers=Pe.TypeHandlers=Pe.FormatOptions=Pe.DtdOptions=Pe.DeclarationOptions=Pe.Options=void 0;var Ue=as(),kE=function(){function e(t){t===void 0&&(t={}),this.aliasString="=",this.attributeString="@",this.cdataInvalidChars=!1,this.cdataKeys=[],this.replaceInvalidChars=!1,this.useSelfClosingTagIfEmpty=!0,this.validation=!0,this.valueString="#",(0,Ue.isUndefined)(t.validation)||(this.validation=t.validation),(0,Ue.isUndefined)(t.aliasString)||(this.aliasString=t.aliasString),(0,Ue.isUndefined)(t.attributeString)||(this.attributeString=t.attributeString),(0,Ue.isUndefined)(t.cdataInvalidChars)||(this.cdataInvalidChars=t.cdataInvalidChars),(0,Ue.isUndefined)(t.cdataKeys)||(this.cdataKeys=t.cdataKeys),this.declaration=new pd(t.declaration),this.dtd=new md(this.validation,t.dtd),this.format=new yd(t.format),(0,Ue.isUndefined)(t.replaceInvalidChars)||(this.replaceInvalidChars=t.replaceInvalidChars),this.typeHandlers=new vd(t.typeHandlers),(0,Ue.isUndefined)(t.useSelfClosingTagIfEmpty)||(this.useSelfClosingTagIfEmpty=t.useSelfClosingTagIfEmpty),(0,Ue.isUndefined)(t.valueString)||(this.valueString=t.valueString),this.wrapHandlers=new gd(t.wrapHandlers)}return e}();Pe.Options=kE;var pd=function(){function e(t){t===void 0&&(t={}),this.include=!0,(0,Ue.isUndefined)(t.include)||(this.include=t.include),this.encoding=t.encoding,this.standalone=t.standalone,this.version=t.version}return e}();Pe.DeclarationOptions=pd;var md=function(){function e(t,r){if(r===void 0&&(r={}),this.include=!1,(0,Ue.isUndefined)(r.include)||(this.include=r.include),t&&(0,Ue.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 e}();Pe.DtdOptions=md;var yd=function(){function e(t){t===void 0&&(t={}),this.doubleQuotes=t.doubleQuotes,this.indent=t.indent,this.newline=t.newline,this.pretty=t.pretty}return e}();Pe.FormatOptions=yd;var vd=function(){function e(t){t===void 0&&(t={});for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this[r]=t[r])}return e}();Pe.TypeHandlers=vd;var gd=function(){function e(t){t===void 0&&(t={});for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this[r]=t[r])}return e}();Pe.WrapHandlers=gd});var xd=g(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.parse=ot.parseToExistingElement=ot.Absent=void 0;var bd=ld(),Sd=_d(),te=as(),us=function(){function e(){}return Object.defineProperty(e,"instance",{get:function(){return e._instance},enumerable:!1,configurable:!0}),e._instance=new e,e}();ot.Absent=us;function cs(e,t){var r=Object.prototype.toString.call(e),n;return Object.prototype.hasOwnProperty.call(t.typeHandlers,"*")&&(n=t.typeHandlers["*"]),Object.prototype.hasOwnProperty.call(t.typeHandlers,r)&&(n=t.typeHandlers[r]),n}function wd(e,t,r){var n=function(a){return r.cdataInvalidChars&&(a.indexOf("<")!==-1||a.indexOf("&")!==-1)||r.cdataKeys.indexOf(t.name)!==-1||r.cdataKeys.indexOf("*")!==-1};if(t instanceof bd.XmlElement)if(n(e))for(var i=e.split("]]>"),o=0;o<i.length;o++)n(i[o])?t.cdata({charData:i[o],replaceInvalidCharsInCharData:r.replaceInvalidChars}):t.charData({charData:i[o],replaceInvalidCharsInCharData:r.replaceInvalidChars}),o<i.length-1&&t.charData({charData:"]]>",replaceInvalidCharsInCharData:r.replaceInvalidChars});else t.charData({charData:e,replaceInvalidCharsInCharData:r.replaceInvalidChars});else t.text({charData:e,replaceInvalidCharsInCharData:r.replaceInvalidChars})}function LE(e,t,r,n){var i=r.attribute({name:e,replaceInvalidCharsInName:n.replaceInvalidChars});wd((0,te.stringify)(t),i,n)}function Ed(e,t,r,n){if(e===n.aliasString){r.name=(0,te.stringify)(t);return}if(e.indexOf(n.attributeString)===0&&(0,te.isObject)(t)){for(var i=0,o=Object.keys(t);i<o.length;i++){var a=o[i];LE(a,(0,te.stringify)(t[a]),r,n)}return}if(e.indexOf(n.valueString)===0){zn(e,(0,te.stringify)(t),r,n);return}var u=r;if(!(0,te.isArray)(t)&&!(0,te.isSet)(t)){var c=cs(t,n);if(!(0,te.isUndefined)(c)&&c(t)===us.instance)return;u=r.element({name:e,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}zn(e,t,u,n)}function qE(e,t,r){if((0,te.isMap)(e))e.forEach(function(a,u){Ed((0,te.stringify)(u),a,t,r)});else for(var n=0,i=Object.keys(e);n<i.length;n++){var o=i[n];Ed(o,e[o],t,r)}}function NE(e,t,r,n){var i;Object.prototype.hasOwnProperty.call(n.wrapHandlers,"*")&&(i=n.wrapHandlers["*"]),Object.prototype.hasOwnProperty.call(n.wrapHandlers,e)&&(i=n.wrapHandlers[e]);var o=e,a=r;if(!(0,te.isUndefined)(i)){var u=i(o,t);(0,te.isNull)(u)||(o=u,a=r.element({name:e,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty}))}t.forEach(function(c){var p=a;if(!(0,te.isArray)(c)&&!(0,te.isSet)(c)){var f=cs(c,n);if(!(0,te.isUndefined)(f)&&f(c)===us.instance)return;p=a.element({name:o,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}zn(o,c,p,n)})}function zn(e,t,r,n){var i=cs(t,n);if((0,te.isUndefined)(i)||(t=i(t)),(0,te.isObject)(t)||(0,te.isMap)(t)){qE(t,r,n);return}if((0,te.isArray)(t)||(0,te.isSet)(t)){NE(e,t,r,n);return}wd((0,te.stringify)(t),r,n)}function Cd(e,t,r){var n=new Sd.Options(r);zn(e.name,t,e,n)}ot.parseToExistingElement=Cd;function ME(e,t,r){var n=new Sd.Options(r),i=new bd.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 o=i.element({name:e,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty});return Cd(o,t,r),i.toString(n.format)}ot.parse=ME});function Ut(e=""){return HE?ps.default.resolve(ys.default.sync(__dirname),"../../../",e):ps.default.resolve(ys.default.sync(__dirname),"../griddo-components",e)}function YE(){let e=ms.default.sync("jsconfig.json",{cwd:Ut()});return ms.default.sync("tsconfig.json",{cwd:Ut()})||e}function WE(){let e=require(YE());return Object.keys(e?.compilerOptions?.paths).reduce((t,r)=>{let[n]=r.split("/"),[i]=e&&e.compilerOptions&&e.compilerOptions.paths&&e.compilerOptions.paths[r],[o]=i.split("/*"),a=Ut(o);return{...t,[n]:a}},{"@griddo-instance":`${Ut()}/src/index.js`})}var ps,ms,ys,HE,d1,Md=ta(()=>{"use strict";ps=Y(require("node:path")),ms=Y(Ei()),ys=Y(Yt()),HE=__dirname.includes("node_modules"),d1=WE()});var Bd={};ra(Bd,{default:()=>ZE});var He,Qn,$d,Kn,VE,zE,JE,jd,KE,QE,ZE,Ud=ta(()=>{"use strict";He=Y(require("node:path")),Qn=Y(Yt());Md();$d=Qn.default.sync(He.default.resolve(__dirname,"../..")),Kn=Qn.default.sync(__dirname),VE=He.default.resolve(Qn.default.sync(__dirname)),zE=He.default.resolve(Kn,"caches"),JE=Ut(),jd=He.default.join($d,"exports/sites"),{version:KE}=require(He.default.join(Kn,"package.json")),QE={proDomain:"pro-",griddoVersion:KE,paths:e=>({__caches:He.default.join(zE,e||""),__components:JE,__cx:Kn,__exports:He.default.join(jd,e||""),__root:$d,__ssg:VE,__exports_dist:e?He.default.join(jd,e,"dist"):"",__cx_dist:He.default.join(Kn,"dist")})},ZE=QE});var sb={};ra(sb,{buildComplete:()=>Bh});module.exports=ia(sb);var Zn=Y(require("node:fs")),ei=Y(require("node:path")),jh=Y(Yt());var Nh=Y(Ki()),Mh=Y(cn());var Hd=Y(ln());var eb=Y(cn()),Gd=Y(ln()),tb=Y(Mt()),Xd=Y(Yt());var Wg=Y(Mt());var ed=Y($f()),Xg=Y(Zf());function Pn(e){console.info(`${ed.default.blue("info")} ${e}`)}var Hg=Y(Mt());var ZS=Ne();var cw=Ne();var GE=Y(Mt()),XE=Y(xd());var Pd=Y(Ki()),Fd=Y(cn()),kd=Y(ln());var Dd=Y(require("node:crypto")),Jn=Y(require("node:fs")),ls=Y(require("node:path")),Rd=Y(Mt());var jE=Ne();function Od(e){let{__cx:t}=jE.paths(),r=ls.default.join(t,"apiCache"),n=Dd.default.createHash("sha256");return n.update(JSON.stringify(e)),`${r}/${n.digest("hex")}`}function Id(e,t){let r=typeof t=="string"?t:JSON.stringify(t),n=Od(e),i=ls.default.dirname(n);Jn.default.existsSync(i)||Jn.default.mkdirSync(i,{recursive:!0}),Jn.default.writeFileSync(n,r,"utf8")}function Td(e){try{let t=Od(e);return Rd.default.readJSONSync(t,{encoding:"utf-8"})}catch{return null}}kd.default.config();var{env:{RETRY_WAIT_SECONDS:$E="4",RETRY_ATTEMPTS:Ad="4"}}=process;async function Ld(e,t,r=""){let{endpoint:n,body:i,cacheKey:o="",attempt:a=1,headers:u}=e,c={endpoint:n,body:i,headers:u,cacheKey:o};if(o){let p=new Date,f=Td(c);if(f){let d=ds(f),v=d?`site: ${d}`:"",y=fs(new Date().getTime()-p.getTime());return Pn(`${t} (cache) ${v} ${n} - ${y}s ${r}`),f}}try{let p=new Date,{data:f}=await(0,Pd.default)({url:n,method:t,headers:Object.assign({},u,br.headers),data:i}),d=ds(f),v=d?`site: ${d}`:"",y=fs(new Date().getTime()-p.getTime());return Pn(`${t} (fetch) ${v} ${n} - ${y}s ${r}`),Id(c,f),f}catch(p){let f=p;return f.response?.status===404?null:(a>parseInt(Ad)&&(console.log(`
|
|
38
|
+
Max attempts ${Ad} reached
|
|
28
39
|
--------------------------------------
|
|
29
40
|
- ${t.toUpperCase()} ${n}
|
|
30
41
|
- BODY: ${JSON.stringify(i)}
|
|
31
|
-
- HEADERS: ${JSON.stringify(
|
|
42
|
+
- HEADERS: ${JSON.stringify(u)}
|
|
32
43
|
- RESPONSE: ${f.response?.status,JSON.stringify(f.response?.data)}
|
|
33
44
|
--------------------------------------
|
|
34
|
-
`),process.exit(1)),f.response||(console.log("Unknown error occurred"),console.log(JSON.stringify(f,null,2)),process.exit(1)),
|
|
35
|
-
`),
|
|
36
|
-
Response: ${JSON.stringify(c)}`:"",
|
|
37
|
-
${i}`;console.warn(
|
|
45
|
+
`),process.exit(1)),f.response||(console.log("Unknown error occurred"),console.log(JSON.stringify(f,null,2)),process.exit(1)),BE(f,{callInfo:{endpoint:n,body:i}}),console.warn(`Waiting for retry: ${t}`,n),await Nd(parseInt($E)*1e3),Ld({endpoint:n,body:i,headers:u,cacheKey:o,attempt:a+1},t,r))}}async function qd(e){let{endpoint:t,body:r,headers:n}=e,i=t.endsWith("/distributor")&&`# Distributor body: ${JSON.stringify(r)} lang: ${JSON.stringify(n?.lang)}`;return await Ld(e,"post",i||"")}function BE(e,t){let{response:r,message:n,stack:i}=e,{callInfo:o}=t,{status:a,statusText:u,data:c}=r||{},p=[];for(let y of Object.keys(o))p.push(`${y}: ${typeof o[y]=="object"?JSON.stringify(o[y]):o[y]}`);let f=p.join(`
|
|
46
|
+
`),d=r?`Code: ${a} - ${u}
|
|
47
|
+
Response: ${JSON.stringify(c)}`:"",v=`${n}
|
|
48
|
+
${i}`;console.warn(Fd.default.bold.red(`
|
|
38
49
|
=============
|
|
39
50
|
|
|
40
51
|
{ Call info }
|
|
41
52
|
${f}
|
|
42
53
|
|
|
43
54
|
{ API Response }
|
|
44
|
-
${
|
|
55
|
+
${d}
|
|
45
56
|
|
|
46
57
|
{ Error details }
|
|
47
|
-
${
|
|
58
|
+
${v}
|
|
48
59
|
|
|
49
60
|
=============
|
|
50
|
-
`))}
|
|
61
|
+
`))}async function hs(e,t){let[r,n]=Sr.BUILD_END;return await qd({endpoint:`${r}${e}${n}`,body:t})}var o1=Ne();var l1=Ne();Gd.default.config();var D1=Ne(),R1=Xd.default.sync();function Ne(){try{return(Ud(),ia(Bd)).default}catch{console.log("Error while reading configuration file"),process.exit(1)}}function Ye(e){if(typeof e=="boolean")return e;if(e==null)return!1;if(e.toLowerCase()==="true")return!0;if(e.toLowerCase()==="false")return!1;if(e.toLowerCase()==="on")return!0;if(e.toLowerCase()==="off")return!1;let t=parseInt(e,10);return isNaN(t)?!1:t>0}function Nd(e){return new Promise(t=>setTimeout(t,e))}function fs(e,t=3){return(e/1e3).toFixed(t)}function ds(e){if(typeof e!="string")return"site"in e&&e.site?e?.site:void 0}Hd.default.config();var Le=process.env.GRIDDO_API_URL||process.env.API_URL,Yd=process.env.GRIDDO_PUBLIC_API_URL||process.env.PUBLIC_API_URL,Wd=process.env.botEmail,Vd=process.env.botPassword,zd=Number.parseInt(process.env.GRIDDO_API_CONCURRENCY_COUNT||"10"),Jd=Ye(process.env.GRIDDO_RENDER_ALL_SITES||process.env.updateAllSites),Kd=Number.parseInt(process.env.GRIDDO_RENDER_SITE||""),Qd=(process.env.GRIDDO_RENDER_PAGES||"").split(",").map(e=>Number.parseInt(e)).filter(Boolean),Zd=Ye(process.env.GRIDDO_SKIP_BUILD_CHECKS),eh=Ye(process.env.GRIDDO_DEBUG_LOGS),th=Ye(process.env.GRIDDO_BUILD_LOGS),rh=Ye(process.env.GRIDDO_RENDER_BREAKPOINTS_FEATURE),nh=Ye(process.env.GRIDDO_SSG_VERBOSE_LOGS),ih=Ye(process.env.GRIDGRIDDO_SEARCH_FEATURE_FEATURE),oh=process.env.GRIDDO_ASSET_PREFIX||process.env.ASSET_PREFIX,sh=process.env.GRIDDO_REACT_APP_INSTANCE||process.env.REACT_APP_INSTANCE,ah=Ye(process.env.GRIDDO_AI_EMBEDDINGS),uh=Ye(process.env.GRIDDO_VERBOSE_LOGS),ch=Number.parseInt(process.env.GRIDDO_CLEAN_LIFECYCLE_MAX_ATTEMPTS||"1"),lh=Number.parseInt(process.env.GRIDDO_CLOSE_LIFECYCLE_MAX_ATTEMPTS||"1"),fh=Number.parseInt(process.env.GRIDDO_PREPARE_LIFECYCLE_MAX_ATTEMPTS||"1"),dh=Number.parseInt(process.env.GRIDDO_RESTORE_LIFECYCLE_MAX_ATTEMPTS||"1"),hh=Number.parseInt(process.env.GRIDDO_DATA_LIFECYCLE_MAX_ATTEMPTS||"1"),ph=Number.parseInt(process.env.GRIDDO_SSG_LIFECYCLE_MAX_ATTEMPTS||"2"),mh=Number.parseInt(process.env.GRIDDO_RELOCATION_LIFECYCLE_MAX_ATTEMPTS||"1"),yh=Number.parseInt(process.env.GRIDDO_META_LIFECYCLE_MAX_ATTEMPTS||"4"),vh=Number.parseInt(process.env.GRIDDO_ARCHIVE_LIFECYCLE_MAX_ATTEMPTS||"1"),gh=process.env.GRIDDO_CX_FIXTURES_DOMAIN_NAMES,_h=process.env.GRIDDO_CX_FIXTURES_SITE_NAMES;var st=`${Le}/site/`,Eh=`${Le}/sites/all`,bh=`${Le}/settings`,Sh=`${Le}/debug/reset-render`,wh=`${Le}/page`,Ch=`${Le}/search`,xh=`${Le}/domains`,Dh=`${Le}/domains/robots`,Rh=`${Le}/login_check`,Oh=`${Le}/ai/embeddings`,Ih=[st,"/all"],Th=[st,"/languages"],Ah=[st,"/build/start"],Ph=[st,"/build/end"],Fh=[st,"/distributor"],kh=[st,"/sitemap"],Lh=[st,"/socials"],qh=[st,"/pages?pagination=false"];var Sr={AI_EMBEDDINGS:Oh,BUILD_END:Ph,BUILD_START:Ah,DOMAINS:xh,GET_ALL:Eh,GET_PAGE:wh,GET_PAGES:qh,GET_REFERENCE_FIELD_DATA:Fh,GET_SITEMAP:kh,INFO:Ih,LANGUAGES:Th,LOGIN:Rh,RESET_RENDER:Sh,ROBOTS:Dh,SEARCH:Ch,SETTINGS:bh,SOCIALS:Lh},pt={GRIDDO_AI_EMBEDDINGS:ah,GRIDDO_API_CONCURRENCY_COUNT:zd,GRIDDO_API_URL:Le,GRIDDO_ARCHIVE_LIFECYCLE_MAX_ATTEMPTS:vh,GRIDDO_ASSET_PREFIX:oh,GRIDDO_BOT_PASSWORD:Vd,GRIDDO_BOT_USER:Wd,GRIDDO_BUILD_LOGS:th,GRIDDO_CLEAN_LIFECYCLE_MAX_ATTEMPTS:ch,GRIDDO_CLOSE_LIFECYCLE_MAX_ATTEMPTS:lh,GRIDDO_DATA_LIFECYCLE_MAX_ATTEMPTS:hh,GRIDDO_DEBUG_LOGS:eh,GRIDDO_FIXTURES_DOMAIN_NAMES:gh,GRIDDO_FIXTURES_SITE_NAMES:_h,GRIDDO_META_LIFECYCLE_MAX_ATTEMPTS:yh,GRIDDO_PREPARE_LIFECYCLE_MAX_ATTEMPTS:fh,GRIDDO_PUBLIC_API_URL:Yd,GRIDDO_REACT_APP_INSTANCE:sh,GRIDDO_RELOCATION_LIFECYCLE_MAX_ATTEMPTS:mh,GRIDDO_RENDER_ALL_SITES:Jd,GRIDDO_RENDER_BREAKPOINTS_FEATURE:rh,GRIDDO_RENDER_PAGES:Qd,GRIDDO_RENDER_SITE:Kd,GRIDDO_RESTORE_LIFECYCLE_MAX_ATTEMPTS:dh,GRIDDO_SEARCH_FEATURE:ih,GRIDDO_SKIP_BUILD_CHECKS:Zd,GRIDDO_SSG_LIFECYCLE_MAX_ATTEMPTS:ph,GRIDDO_SSG_VERBOSE_LOGS:nh,GRIDDO_VERBOSE_LOGS:uh};var vs=class{user;password;baseUrl;headers;constructor(){this.user=pt.GRIDDO_BOT_USER,this.password=pt.GRIDDO_BOT_PASSWORD,this.baseUrl=pt.GRIDDO_API_URL}async login(){try{let t=await(0,Nh.default)({url:Sr.LOGIN,method:"POST",headers:{"Content-Type":"application/json"},data:{username:this.user,password:this.password}});if(t.status===200){let{data:{token:r}}=t;this.headers={Authorization:"bearer "+r,"Cache-Control":"no-store"}}return this.headers}catch{console.error(Mh.default.red(`
|
|
62
|
+
\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
|
|
63
|
+
\u2502 Access credentials failure \u2502
|
|
64
|
+
\u2502 Check that the login details are correct in your .env file \u2502
|
|
65
|
+
\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
|
|
66
|
+
`)),process.exit(1)}}},br=new vs;var rb=jh.default.sync(ei.default.resolve(__dirname,"../..")),$h=ei.default.resolve(rb,"exports/sites");async function Bh(e){await br.login();let t=e.sites;for(let r of t){let{siteId:n,...i}=r;console.info(`Deploying ending call to site ${n}:`),await hs(n,i)}console.info(`Build end's signal sent for ${e.sites.length} site(s)`)}function nb(){return Zn.default.readdirSync($h).filter(t=>!t.startsWith("."))}function ib(e){let t=[];for(let r of e){let n=ei.default.resolve($h,r,"dist","__build-report__.json");if(!Zn.default.existsSync(n)){console.info(`Build report file "${n}" not found.`);continue}let i=JSON.parse(Zn.default.readFileSync(n,"utf-8"));t.push(i)}return t}async function ob(){let e=nb(),t=ib(e);for(let r of t)await Bh(r)}ob().catch(e=>{console.error("Error",e?.stdout?.toString()||e),process.exit(1)});0&&(module.exports={buildComplete});
|
|
67
|
+
/*! Bundled license information:
|
|
68
|
+
|
|
69
|
+
react/cjs/react.production.min.js:
|
|
70
|
+
(**
|
|
71
|
+
* @license React
|
|
72
|
+
* react.production.min.js
|
|
73
|
+
*
|
|
74
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
75
|
+
*
|
|
76
|
+
* This source code is licensed under the MIT license found in the
|
|
77
|
+
* LICENSE file in the root directory of this source tree.
|
|
78
|
+
*)
|
|
79
|
+
|
|
80
|
+
react/cjs/react.development.js:
|
|
81
|
+
(**
|
|
82
|
+
* @license React
|
|
83
|
+
* react.development.js
|
|
84
|
+
*
|
|
85
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the MIT license found in the
|
|
88
|
+
* LICENSE file in the root directory of this source tree.
|
|
89
|
+
*)
|
|
90
|
+
*/
|