@griddo/cx 10.3.17 → 10.3.19

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.
@@ -19,7 +19,7 @@ GFS4: `),console.error(t)});z[ne]||(bo=global[ne]||[],wo(z,bo),z.close=function(
19
19
  `+s),t.push(i+"m+"+dn.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=fg()+e+" "+t[0]}function fg(){return ie.inspectOpts.hideDate?"":new Date().toISOString()+" "}function dg(...t){return process.stderr.write(fn.format(...t)+`
20
20
  `)}function hg(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function pg(){return process.env.DEBUG}function mg(t){t.inspectOpts={};let e=Object.keys(ie.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ie.inspectOpts[e[r]]}dn.exports=Qi()(ie);var{formatters:zl}=dn.exports;zl.o=function(t){return this.inspectOpts.colors=this.useColors,fn.inspect(t,this.inspectOpts).split(`
21
21
  `).map(e=>e.trim()).join(" ")};zl.O=function(t){return this.inspectOpts.colors=this.useColors,fn.inspect(t,this.inspectOpts)}});var Jl=y((Zb,Zi)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Zi.exports=Gl():Zi.exports=Wl()});var Yl=y((e2,Vl)=>{var rr;Vl.exports=function(){if(!rr){try{rr=Jl()("follow-redirects")}catch{}typeof rr!="function"&&(rr=function(){})}rr.apply(null,arguments)}});var ss=y((t2,is)=>{var ot=require("url"),es=ot.URL,gg=require("http"),yg=require("https"),Zl=require("stream").Writable,ef=require("assert"),tf=Yl(),rs=["abort","aborted","connect","error","socket","timeout"],ns=Object.create(null);rs.forEach(function(t){ns[t]=function(e,r,n){this._redirectable.emit(t,e,r,n)}});var vg=ir("ERR_INVALID_URL","Invalid URL",TypeError),Kl=ir("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),bg=ir("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),_g=ir("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),wg=ir("ERR_STREAM_WRITE_AFTER_END","write after end");function Oe(t,e){Zl.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}Oe.prototype=Object.create(Zl.prototype);Oe.prototype.abort=function(){nf(this._currentRequest),this.emit("abort")};Oe.prototype.write=function(t,e,r){if(this._ending)throw new wg;if(!at(t)&&!Eg(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(nr(e)&&(r=e,e=null),t.length===0){r&&r();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,r)):(this.emit("error",new _g),this.abort())};Oe.prototype.end=function(t,e,r){if(nr(t)?(r=t,t=e=null):nr(e)&&(r=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(t,e,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};Oe.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};Oe.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};Oe.prototype.setTimeout=function(t,e){var r=this;function n(o){o.setTimeout(t),o.removeListener("timeout",o.destroy),o.addListener("timeout",o.destroy)}function i(o){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},t),n(o)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),e&&r.removeListener("timeout",e),r.socket||r._currentRequest.removeListener("socket",i)}return e&&this.on("timeout",e),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){Oe.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(Oe.prototype,t,{get:function(){return this._currentRequest[t]}})});Oe.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};Oe.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e){this.emit("error",new TypeError("Unsupported protocol "+t));return}if(this._options.agents){var r=t.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of rs)n.on(i,ns[i]);if(this._currentUrl=/^\//.test(this._options.path)?ot.format(this._options):this._options.path,this._isRedirect){var s=0,o=this,a=this._requestBodyBuffers;(function u(h){if(n===o._currentRequest)if(h)o.emit("error",h);else if(s<a.length){var c=a[s++];n.finished||n.write(c.data,c.encoding,u)}else o._ended&&n.end()})()}};Oe.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var r=t.headers.location;if(!r||this._options.followRedirects===!1||e<300||e>=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(nf(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new bg);return}var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var s=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],ts(/^content-/i,this._options.headers));var o=ts(/^host$/i,this._options.headers),a=ot.parse(this._currentUrl),u=o||a.host,h=/^\w+:/.test(r)?this._currentUrl:ot.format(Object.assign(a,{host:u})),c;try{c=ot.resolve(h,r)}catch(b){this.emit("error",new Kl({cause:b}));return}tf("redirecting to",c),this._isRedirect=!0;var p=ot.parse(c);if(Object.assign(this._options,p),(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==u&&!Sg(p.host,u))&&ts(/^(?:authorization|cookie)$/i,this._options.headers),nr(i)){var g={headers:t.headers,statusCode:e},m={url:h,method:s,headers:n};try{i(this._options,g,m)}catch(b){this.emit("error",b);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(b){this.emit("error",new Kl({cause:b}))}};function rf(t){var e={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(t).forEach(function(n){var i=n+":",s=r[i]=t[n],o=e[n]=Object.create(s);function a(h,c,p){if(at(h)){var g;try{g=Ql(new es(h))}catch{g=ot.parse(h)}if(!at(g.protocol))throw new vg({input:h});h=g}else es&&h instanceof es?h=Ql(h):(p=c,c=h,h={protocol:i});return nr(c)&&(p=c,c=null),c=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},h,c),c.nativeProtocols=r,!at(c.host)&&!at(c.hostname)&&(c.hostname="::1"),ef.equal(c.protocol,i,"protocol mismatch"),tf("options",c),new Oe(c,p)}function u(h,c,p){var g=o.request(h,c,p);return g.end(),g}Object.defineProperties(o,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:u,configurable:!0,enumerable:!0,writable:!0}})}),e}function xg(){}function Ql(t){var e={protocol:t.protocol,hostname:t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,hash:t.hash,search:t.search,pathname:t.pathname,path:t.pathname+t.search,href:t.href};return t.port!==""&&(e.port=Number(t.port)),e}function ts(t,e){var r;for(var n in e)t.test(n)&&(r=e[n],delete e[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function ir(t,e,r){function n(i){Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+t+"]",n}function nf(t){for(var e of rs)t.removeListener(e,ns[e]);t.on("error",xg),t.abort()}function Sg(t,e){ef(at(t)&&at(e));var r=t.length-e.length-1;return r>0&&t[r]==="."&&t.endsWith(e)}function at(t){return typeof t=="string"||t instanceof String}function nr(t){return typeof t=="function"}function Eg(t){return typeof t=="object"&&"length"in t}is.exports=rf({http:gg,https:yg});is.exports.wrap=rf});var os=y((r2,Cg)=>{Cg.exports={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]}});var lf=y((n2,cf)=>{"use strict";var sr=ge(),sf=Ji(),Pg=Vi(),Og=rn(),Dg=require("http"),Ig=require("https"),Fg=ss().http,Rg=ss().https,of=require("url"),Ag=require("zlib"),kg=os(),hn=on(),as=sn(),af=/https:?/;function uf(t,e,r){if(t.hostname=e.host,t.host=e.host,t.port=e.port,t.path=r,e.auth){var n=Buffer.from(e.auth.username+":"+e.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+n}t.beforeRedirect=function(s){s.headers.host=s.host,uf(s,e,s.href)}}cf.exports=function(e){return new Promise(function(n,i){var s=function(x){n(x)},o=function(x){i(x)},a=e.data,u=e.headers;if("User-Agent"in u||"user-agent"in u?!u["User-Agent"]&&!u["user-agent"]&&(delete u["User-Agent"],delete u["user-agent"]):u["User-Agent"]="axios/"+kg.version,a&&!sr.isStream(a)){if(!Buffer.isBuffer(a))if(sr.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(sr.isString(a))a=Buffer.from(a,"utf-8");else return o(hn("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));u["Content-Length"]=a.length}var h=void 0;if(e.auth){var c=e.auth.username||"",p=e.auth.password||"";h=c+":"+p}var g=Pg(e.baseURL,e.url),m=of.parse(g),b=m.protocol||"http:";if(!h&&m.auth){var S=m.auth.split(":"),O=S[0]||"",R=S[1]||"";h=O+":"+R}h&&delete u.Authorization;var L=af.test(b),B=L?e.httpsAgent:e.httpAgent,G={path:Og(m.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:u,agent:B,agents:{http:e.httpAgent,https:e.httpsAgent},auth:h};e.socketPath?G.socketPath=e.socketPath:(G.hostname=m.hostname,G.port=m.port);var Y=e.proxy;if(!Y&&Y!==!1){var de=b.slice(0,-1)+"_proxy",De=process.env[de]||process.env[de.toUpperCase()];if(De){var te=of.parse(De),D=process.env.no_proxy||process.env.NO_PROXY,q=!0;if(D){var k=D.split(",").map(function(x){return x.trim()});q=!k.some(function(x){return x?x==="*"||x[0]==="."&&m.hostname.substr(m.hostname.length-x.length)===x?!0:m.hostname===x:!1})}if(q&&(Y={host:te.hostname,port:te.port,protocol:te.protocol},te.auth)){var U=te.auth.split(":");Y.auth={username:U[0],password:U[1]}}}}Y&&(G.headers.host=m.hostname+(m.port?":"+m.port:""),uf(G,Y,b+"//"+m.hostname+(m.port?":"+m.port:"")+G.path));var I,j=L&&(Y?af.test(Y.protocol):!0);e.transport?I=e.transport:e.maxRedirects===0?I=j?Ig:Dg:(e.maxRedirects&&(G.maxRedirects=e.maxRedirects),I=j?Rg:Fg),e.maxBodyLength>-1&&(G.maxBodyLength=e.maxBodyLength);var P=I.request(G,function(x){if(!P.aborted){var F=x,Ce=x.req||P;if(x.statusCode!==204&&Ce.method!=="HEAD"&&e.decompress!==!1)switch(x.headers["content-encoding"]){case"gzip":case"compress":case"deflate":F=F.pipe(Ag.createUnzip()),delete x.headers["content-encoding"];break}var ve={status:x.statusCode,statusText:x.statusMessage,headers:x.headers,config:e,request:Ce};if(e.responseType==="stream")ve.data=F,sf(s,o,ve);else{var re=[],ae=0;F.on("data",function(be){re.push(be),ae+=be.length,e.maxContentLength>-1&&ae>e.maxContentLength&&(F.destroy(),o(hn("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,Ce)))}),F.on("error",function(be){P.aborted||o(as(be,e,null,Ce))}),F.on("end",function(){var be=Buffer.concat(re);e.responseType!=="arraybuffer"&&(be=be.toString(e.responseEncoding),(!e.responseEncoding||e.responseEncoding==="utf8")&&(be=sr.stripBOM(be))),ve.data=be,sf(s,o,ve)})}}});if(P.on("error",function(x){P.aborted&&x.code!=="ERR_FR_TOO_MANY_REDIRECTS"||o(as(x,e,null,P))}),e.timeout){var T=parseInt(e.timeout,10);if(isNaN(T)){o(hn("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",P));return}P.setTimeout(T,function(){P.abort(),o(hn("timeout of "+T+"ms exceeded",e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",P))})}e.cancelToken&&e.cancelToken.promise.then(function(x){P.aborted||(P.abort(),o(x))}),sr.isStream(a)?a.on("error",function(x){o(as(x,e,null,P))}).pipe(P):P.end(a)})}});var mn=y((i2,hf)=>{"use strict";var se=ge(),ff=El(),Mg=sn(),qg={"Content-Type":"application/x-www-form-urlencoded"};function df(t,e){!se.isUndefined(t)&&se.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function Tg(){var t;return typeof XMLHttpRequest<"u"?t=Bl():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(t=lf()),t}function Ng(t,e,r){if(se.isString(t))try{return(e||JSON.parse)(t),se.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var pn={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:Tg(),transformRequest:[function(e,r){return ff(r,"Accept"),ff(r,"Content-Type"),se.isFormData(e)||se.isArrayBuffer(e)||se.isBuffer(e)||se.isStream(e)||se.isFile(e)||se.isBlob(e)?e:se.isArrayBufferView(e)?e.buffer:se.isURLSearchParams(e)?(df(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):se.isObject(e)||r&&r["Content-Type"]==="application/json"?(df(r,"application/json"),Ng(e)):e}],transformResponse:[function(e){var r=this.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,s=!n&&this.responseType==="json";if(s||i&&se.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?Mg(o,this,"E_JSON_PARSE"):o}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};pn.headers={common:{Accept:"application/json, text/plain, */*"}};se.forEach(["delete","get","head"],function(e){pn.headers[e]={}});se.forEach(["post","put","patch"],function(e){pn.headers[e]=se.merge(qg)});hf.exports=pn});var mf=y((s2,pf)=>{"use strict";var jg=ge(),Lg=mn();pf.exports=function(e,r,n){var i=this||Lg;return jg.forEach(n,function(o){e=o.call(i,e,r)}),e}});var us=y((o2,gf)=>{"use strict";gf.exports=function(e){return!!(e&&e.__CANCEL__)}});var bf=y((a2,vf)=>{"use strict";var yf=ge(),cs=mf(),$g=us(),Bg=mn();function ls(t){t.cancelToken&&t.cancelToken.throwIfRequested()}vf.exports=function(e){ls(e),e.headers=e.headers||{},e.data=cs.call(e,e.data,e.headers,e.transformRequest),e.headers=yf.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),yf.forEach(["delete","get","head","post","put","patch","common"],function(i){delete e.headers[i]});var r=e.adapter||Bg.adapter;return r(e).then(function(i){return ls(e),i.data=cs.call(e,i.data,i.headers,e.transformResponse),i},function(i){return $g(i)||(ls(e),i&&i.response&&(i.response.data=cs.call(e,i.response.data,i.response.headers,e.transformResponse))),Promise.reject(i)})}});var fs=y((u2,_f)=>{"use strict";var fe=ge();_f.exports=function(e,r){r=r||{};var n={},i=["url","method","data"],s=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function u(g,m){return fe.isPlainObject(g)&&fe.isPlainObject(m)?fe.merge(g,m):fe.isPlainObject(m)?fe.merge({},m):fe.isArray(m)?m.slice():m}function h(g){fe.isUndefined(r[g])?fe.isUndefined(e[g])||(n[g]=u(void 0,e[g])):n[g]=u(e[g],r[g])}fe.forEach(i,function(m){fe.isUndefined(r[m])||(n[m]=u(void 0,r[m]))}),fe.forEach(s,h),fe.forEach(o,function(m){fe.isUndefined(r[m])?fe.isUndefined(e[m])||(n[m]=u(void 0,e[m])):n[m]=u(void 0,r[m])}),fe.forEach(a,function(m){m in r?n[m]=u(e[m],r[m]):m in e&&(n[m]=u(void 0,e[m]))});var c=i.concat(s).concat(o).concat(a),p=Object.keys(e).concat(Object.keys(r)).filter(function(m){return c.indexOf(m)===-1});return fe.forEach(p,h),n}});var Cf=y((c2,Ef)=>{"use strict";var xf=os(),ds={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){ds[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var wf={},Ug=xf.version.split(".");function Sf(t,e){for(var r=e?e.split("."):Ug,n=t.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}ds.transitional=function(e,r,n){var i=r&&Sf(r);function s(o,a){return"[Axios v"+xf.version+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,u){if(e===!1)throw new Error(s(a," has been removed in "+r));return i&&!wf[a]&&(wf[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,a,u):!0}};function Xg(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var n=Object.keys(t),i=n.length;i-- >0;){var s=n[i],o=e[s];if(o){var a=t[s],u=a===void 0||o(a,s,t);if(u!==!0)throw new TypeError("option "+s+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+s)}}Ef.exports={isOlderVersion:Sf,assertOptions:Xg,validators:ds}});var Rf=y((l2,Ff)=>{"use strict";var Df=ge(),Hg=rn(),Pf=xl(),Of=bf(),gn=fs(),If=Cf(),Mt=If.validators;function or(t){this.defaults=t,this.interceptors={request:new Pf,response:new Pf}}or.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=gn(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;r!==void 0&&If.assertOptions(r,{silentJSONParsing:Mt.transitional(Mt.boolean,"1.0.0"),forcedJSONParsing:Mt.transitional(Mt.boolean,"1.0.0"),clarifyTimeoutError:Mt.transitional(Mt.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(e)===!1||(i=i&&g.synchronous,n.unshift(g.fulfilled,g.rejected))});var s=[];this.interceptors.response.forEach(function(g){s.push(g.fulfilled,g.rejected)});var o;if(!i){var a=[Of,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(s),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var u=e;n.length;){var h=n.shift(),c=n.shift();try{u=h(u)}catch(p){c(p);break}}try{o=Of(u)}catch(p){return Promise.reject(p)}for(;s.length;)o=o.then(s.shift(),s.shift());return o};or.prototype.getUri=function(e){return e=gn(this.defaults,e),Hg(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};Df.forEach(["delete","get","head","options"],function(e){or.prototype[e]=function(r,n){return this.request(gn(n||{},{method:e,url:r,data:(n||{}).data}))}});Df.forEach(["post","put","patch"],function(e){or.prototype[e]=function(r,n,i){return this.request(gn(i||{},{method:e,url:r,data:n}))}});Ff.exports=or});var ps=y((f2,Af)=>{"use strict";function hs(t){this.message=t}hs.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};hs.prototype.__CANCEL__=!0;Af.exports=hs});var Mf=y((d2,kf)=>{"use strict";var Gg=ps();function yn(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(i){e=i});var r=this;t(function(i){r.reason||(r.reason=new Gg(i),e(r.reason))})}yn.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};yn.source=function(){var e,r=new yn(function(i){e=i});return{token:r,cancel:e}};kf.exports=yn});var Tf=y((h2,qf)=>{"use strict";qf.exports=function(e){return function(n){return e.apply(null,n)}}});var jf=y((p2,Nf)=>{"use strict";Nf.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}});var Bf=y((m2,ms)=>{"use strict";var Lf=ge(),zg=Xi(),vn=Rf(),Wg=fs(),Jg=mn();function $f(t){var e=new vn(t),r=zg(vn.prototype.request,e);return Lf.extend(r,vn.prototype,e),Lf.extend(r,e),r}var Te=$f(Jg);Te.Axios=vn;Te.create=function(e){return $f(Wg(Te.defaults,e))};Te.Cancel=ps();Te.CancelToken=Mf();Te.isCancel=us();Te.all=function(e){return Promise.all(e)};Te.spread=Tf();Te.isAxiosError=jf();ms.exports=Te;ms.exports.default=Te});var gs=y((g2,Uf)=>{Uf.exports=Bf()});var K=y(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.isUndefined=Se.fixName=Se.validateName=Se.validateSingleChar=Se.fixChar=Se.validateChar=void 0;function fy(t){for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(!(r===9||r===10||r===13||r>=32&&r<=55295||r>=57344&&r<=65533)){if(e+1===t.length)return!1;var n=t.charCodeAt(e+1);if(r>=55296&&r<=56319&&n>=56320&&n<=57343){e++;continue}return!1}}return!0}Se.validateChar=fy;function dy(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r);if(n===9||n===10||n===13||n>=32&&n<=55295||n>=57344&&n<=65533){e+=t[r];continue}if(r+1===t.length)return e+="\uFFFD",e;var i=t.charCodeAt(r+1);if(n>=55296&&n<=56319&&i>=56320&&i<=57343){e+=t[r]+t[r+1],r++;continue}e+="\uFFFD"}return e}Se.fixChar=dy;function hy(t){if(t.length===0)return!1;var e=t.charCodeAt(0);if(t.length===1)return e===9||e===10||e===13||e>=32&&e<=55295||e>=57344&&e<=65533;if(t.length!==2)return!1;var r=t.charCodeAt(1);return e>=55296&&e<=56319&&r>=56320&&r<=57343}Se.validateSingleChar=hy;function py(t){if(t.length===0)return!1;var e=t.charCodeAt(0),r=e===58||e===95||e>=65&&e<=90||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533;if(t.length===1)return r;var n=t.charCodeAt(1),i=e>=55296&&e<=56191&&n>=56320&&n<=57343;if(!r&&!i)return!1;for(var s=i?2:1,o=s;o<t.length;o++){var a=t.charCodeAt(o);if(!(a===58||a===95||a===45||a===46||a===183||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=767||a>=768&&a<=879||a>=880&&a<=893||a>=895&&a<=8191||a>=8204&&a<=8205||a>=8255&&a<=8256||a>=8304&&a<=8591||a>=11264&&a<=12271||a>=12289&&a<=55295||a>=63744&&a<=64975||a>=65008&&a<=65533)){if(o+1===t.length)return!1;var u=t.charCodeAt(o+1);if(a>=55296&&a<=56191&&u>=56320&&u<=57343){o++;continue}return!1}}return!0}Se.validateName=py;function my(t){var e="";if(t.length===0)return e;var r=t.charCodeAt(0),n=r===58||r===95||r>=65&&r<=90||r>=97&&r<=122||r>=192&&r<=214||r>=216&&r<=246||r>=248&&r<=767||r>=880&&r<=893||r>=895&&r<=8191||r>=8204&&r<=8205||r>=8304&&r<=8591||r>=11264&&r<=12271||r>=12289&&r<=55295||r>=63744&&r<=64975||r>=65008&&r<=65533;if(t.length===1)return n?e=t[0]:e="\uFFFD",e;var i=t.charCodeAt(1),s=r>=55296&&r<=56191&&i>=56320&&i<=57343;s?e=t[0]+t[1]:n?e=t[0]:e="\uFFFD";for(var o=s?2:1,a=o;a<t.length;a++){var u=t.charCodeAt(a);if(u===58||u===95||u===45||u===46||u===183||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||u>=192&&u<=214||u>=216&&u<=246||u>=248&&u<=767||u>=768&&u<=879||u>=880&&u<=893||u>=895&&u<=8191||u>=8204&&u<=8205||u>=8255&&u<=8256||u>=8304&&u<=8591||u>=11264&&u<=12271||u>=12289&&u<=55295||u>=63744&&u<=64975||u>=65008&&u<=65533){e+=t[a];continue}if(a+1===t.length)return e+="\uFFFD",e;var h=t.charCodeAt(a+1);if(u>=55296&&u<=56191&&h>=56320&&h<=57343){e+=t[a]+t[a+1],a++;continue}e+="\uFFFD"}return e}Se.fixName=my;function gy(t){return Object.prototype.toString.call(t)==="[object Undefined]"}Se.isUndefined=gy});var qt=y(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.StringOptions=void 0;var Sn=K(),yy=function(){function t(e){this.doubleQuotes=!1,this.indent=" ",this.newline=`
22
- `,this.pretty=!0,(0,Sn.isUndefined)(e.doubleQuotes)||(this.doubleQuotes=e.doubleQuotes),(0,Sn.isUndefined)(e.indent)||(this.indent=e.indent),(0,Sn.isUndefined)(e.newline)||(this.newline=e.newline),(0,Sn.isUndefined)(e.pretty)||(this.pretty=e.pretty)}return t}();En.StringOptions=yy});var Cn=y(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.escapeDoubleQuotes=Re.escapeSingleQuotes=Re.escapeRightAngleBracketsInCdataTerminator=Re.escapeLeftAngleBrackets=Re.escapeAmpersands=void 0;function vy(t){return t.replace(/&/g,"&amp;")}Re.escapeAmpersands=vy;function by(t){return t.replace(/</g,"&lt;")}Re.escapeLeftAngleBrackets=by;function _y(t){return t.replace(/]]>/g,"]]&gt;")}Re.escapeRightAngleBracketsInCdataTerminator=_y;function wy(t){return t.replace(/'/g,"&apos;")}Re.escapeSingleQuotes=wy;function xy(t){return t.replace(/"/g,"&quot;")}Re.escapeDoubleQuotes=xy});var Is=y(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});var Sy=oe(),od=Cn(),Os=K(),Ey=function(){function t(e,r,n){this._validation=r,(0,Os.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Os.fixChar)(e);else if(this._validation&&!(0,Os.validateChar)(e))throw new Error((0,Sy.getContext)(this.up())+": attribute text"+(' "'+e+'" should not contain characters not')+" allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this._charData;return e=(0,od.escapeAmpersands)(e),e=(0,od.escapeLeftAngleBrackets)(e),e},t.prototype.up=function(){return this._parent},t}();Ds.default=Ey});var Pn=y(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});var ad=oe(),ud=K(),Cy=function(){function t(e,r,n){this._hex=!1,this._validation=r,this._parent=e,this.char=n.char,(0,ud.isUndefined)(n.hex)||(this.hex=n.hex)}return Object.defineProperty(t.prototype,"char",{get:function(){return this._char},set:function(e){if(this._validation&&!(0,ud.validateSingleChar)(e))throw new Error((0,ad.getContext)(this.up())+": character reference"+(' "'+e+'" should reference a single character,')+" and this character should be allowed in XML");this._char=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hex",{get:function(){return this._hex},set:function(e){this._hex=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e;if(this._char.length===1)e=this._char.charCodeAt(0);else{var r=this._char.charCodeAt(0);if(r>=55296&&r<=56319&&this._char.length>1){var n=this._char.charCodeAt(1);if(n>=56320&&n<=57343)e=(r-55296)*1024+n-56320+65536;else throw new Error((0,ad.getContext)(this.up())+": character"+(' reference "'+this.char+'" should')+" reference a valid Unicode character")}else e=r}return this._hex?"&#x"+e.toString(16)+";":"&#"+e+";"},t.prototype.up=function(){return this._parent},t}();Fs.default=Cy});var On=y(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});var Py=oe(),Oy=K(),Dy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,Oy.validateName)(e))throw new Error((0,Py.getContext)(this.up())+": entity reference name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"&"+this._name+";"},t.prototype.up=function(){return this._parent},t}();Rs.default=Dy});var Dn=y(ur=>{"use strict";var Ms=ur&&ur.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ur,"__esModule",{value:!0});var As=oe(),cd=Cn(),Iy=qt(),ks=K(),Fy=Ms(Is()),Ry=Ms(Pn()),Ay=Ms(On()),ky=function(){function t(e,r,n){this._validation=r,(0,ks.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,this._children=[],this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._replaceInvalidCharsInName){if(e=(0,ks.fixName)(e),e.length===0)throw new Error((0,As.getContext)(this.up())+": attribute name should not be empty")}else if(this._validation&&!(0,ks.validateName)(e))throw e.length===0?new Error((0,As.getContext)(this.up())+": attribute name should not be empty"):new Error((0,As.getContext)(this.up())+": attribute name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.charRef=function(e){var r=new Ry.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new Ay.default(this,this._validation,e);return this._children.push(r),r},t.prototype.text=function(e){var r=new Fy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});for(var r=new Iy.StringOptions(e),n=r.doubleQuotes?'"':"'",i=this._name+"="+n,s=0,o=this._children;s<o.length;s++){var a=o[s];r.doubleQuotes?i+=(0,cd.escapeDoubleQuotes)(a.toString()):i+=(0,cd.escapeSingleQuotes)(a.toString())}return i+=n,i},t.prototype.up=function(){return this._parent},t}();ur.default=ky});var Ts=y(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});var My=oe(),qy=K(),Ty=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,qy.validateChar)(e))throw new Error((0,My.getContext)(this.up())+": attribute-list"+(' declaration "'+e+'" should not contain')+" characters not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ATTLIST "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();qs.default=Ty});var js=y(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});var Ny=oe(),jy=K(),Ly=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,jy.validateChar)(e))throw new Error((0,Ny.getContext)(this.up())+": element declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ELEMENT "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Ns.default=Ly});var $s=y(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});var $y=oe(),By=K(),Uy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,By.validateChar)(e))throw new Error((0,$y.getContext)(this.up())+": entity declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ENTITY "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Ls.default=Uy});var Us=y(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});var Xy=oe(),Hy=K(),Gy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,Hy.validateChar)(e))throw new Error((0,Xy.getContext)(this.up())+": notation declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!NOTATION "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Bs.default=Gy});var Hs=y(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});var zy=oe(),Wy=K(),Jy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,Wy.validateName)(e))throw new Error((0,zy.getContext)(this.up())+": parameter entity"+(' reference name "'+e+'" should not contain')+" characters not allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"%"+this._name+";"},t.prototype.up=function(){return this._parent},t}();Xs.default=Jy});var cr=y(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});var In=oe(),Fn=K(),Vy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.content=n.content,this.target=n.target}return Object.defineProperty(t.prototype,"content",{get:function(){return this._content},set:function(e){if(!(0,Fn.isUndefined)(e)){if(this._validation&&!(0,Fn.validateChar)(e))throw new Error((0,In.getContext)(this.up())+": processing"+(' instruction content "'+e+'" should')+" not contain characters not allowed in XML");if(this._validation&&e.indexOf("?>")!==-1)throw new Error((0,In.getContext)(this.up())+": processing"+(' instruction content "'+e+'" should')+" not contain the string '?>'")}this._content=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){return this._target},set:function(e){if(this._validation&&!(0,Fn.validateName)(e))throw new Error((0,In.getContext)(this.up())+": processing"+(' instruction target "'+e+'" should')+" not contain characters not allowed in XML names");if(this._validation&&e==="xml")throw new Error((0,In.getContext)(this.up())+": processing"+(' instruction target "'+e+'" should')+" not be the string 'xml'");this._target=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return(0,Fn.isUndefined)(this._content)?"<?"+this._target+"?>":"<?"+this._target+" "+this._content+"?>"},t.prototype.up=function(){return this._parent},t}();Gs.default=Vy});var Rn=y(ct=>{"use strict";var lt=ct&&ct.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ct,"__esModule",{value:!0});ct.validatePubId=void 0;var Ke=oe(),Yy=qt(),Le=K(),Ky=lt(lr()),Qy=lt(Ts()),Zy=lt(js()),e1=lt($s()),t1=lt(Us()),r1=lt(Hs()),n1=lt(cr()),i1=function(){function t(e,r,n){this._pubId=void 0,this._sysId=void 0,this._validation=r,this._children=[],this._parent=e,this.name=n.name,(0,Le.isUndefined)(n.sysId)||(this.sysId=n.sysId),(0,Le.isUndefined)(n.pubId)||(this.pubId=n.pubId)}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,Le.validateName)(e))throw new Error((0,Ke.getContext)(this.up())+': DTD name "'+e+'" should not contain characters not allowed in XML names');this._name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pubId",{get:function(){return this._pubId},set:function(e){if(!(0,Le.isUndefined)(e)){if(this._validation&&!ld(e))throw new Error((0,Ke.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not contain')+" characters not allowed in public identifiers");if(this._validation&&(0,Le.isUndefined)(this._sysId))throw new Error((0,Ke.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not be defined')+" if system identifier is undefined")}this._pubId=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sysId",{get:function(){return this._sysId},set:function(e){if(!(0,Le.isUndefined)(e)){if(this._validation&&!(0,Le.validateChar)(e))throw new Error((0,Ke.getContext)(this.up())+": DTD system"+(' identifier "'+e+'" should not contain')+" characters not allowed in XML");if(this._validation&&e.indexOf("'")!==-1&&e.indexOf('"')!==-1)throw new Error((0,Ke.getContext)(this.up())+": DTD system"+(' identifier "'+e+'" should not contain')+" both single quotes and double quotes")}this._sysId=e},enumerable:!1,configurable:!0}),t.prototype.attlist=function(e){var r=new Qy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new Ky.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new Zy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entity=function(e){var r=new e1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.notation=function(e){var r=new t1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.paramEntityRef=function(e){var r=new r1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new n1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=new Yy.StringOptions(e),n="<!DOCTYPE "+this._name;if((0,Le.isUndefined)(this._pubId))(0,Le.isUndefined)(this._sysId)||(n+=" ",n=this.appendId("SYSTEM",this._sysId,n,r));else{if((0,Le.isUndefined)(this._sysId))throw new Error((0,Ke.getContext)(this.up())+": DTD system identifier is not undefined");n+=" ",n=this.appendId("PUBLIC",this._pubId,n,r),n=this.appendId("",this._sysId,n,r)}if(this._children.length!==0){n+=" [";for(var i=0,s=this._children;i<s.length;i++){var o=s[i];r.pretty&&(n+=r.newline+r.indent),n+=o.toString()}r.pretty&&(n+=r.newline),n+="]>"}else n+=">";return n},t.prototype.up=function(){return this._parent},t.prototype.appendId=function(e,r,n,i){if(n+=e+" ",i.doubleQuotes){if(this._validation&&r.indexOf('"')!==-1)throw new Error((0,Ke.getContext)(this.up())+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+='"'+r+'"'}else{if(this._validation&&r.indexOf("'")!==-1)throw new Error((0,Ke.getContext)(this)+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+="'"+r+"'"}return n},t}();ct.default=i1;function ld(t){for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(!(r===10||r===13||r===32||r===33||r>=35&&r<=37||r>=39&&r<=47||r>=48&&r<=57||r===58||r===59||r===61||r===63||r>=64&&r<=90||r===95||r>=97&&r<=122))return e+1===t.length,!1}return!0}ct.validatePubId=ld});var Js=y(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});var fd=oe(),zs=K(),s1=function(){function t(e,r,n){this._validation=r,(0,zs.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,zs.fixChar)(e);else if(this._validation&&!(0,zs.validateChar)(e))throw new Error((0,fd.getContext)(this.up())+": CDATA section"+(' "'+e+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)e=e.replace("]]>","\uFFFD\uFFFD\uFFFD");else if(this._validation&&e.indexOf("]]>")!==-1)throw new Error((0,fd.getContext)(this.up())+": CDATA section"+(' "'+e+'" should not contain the string')+" ']]>'");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<![CDATA["+this._charData+"]]>"},t.prototype.up=function(){return this._parent},t}();Ws.default=s1});var Qs=y(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});var o1=oe(),Vs=Cn(),Ys=K(),a1=function(){function t(e,r,n){this._validation=r,(0,Ys.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Ys.fixChar)(e);else if(this._validation&&!(0,Ys.validateChar)(e))throw new Error((0,o1.getContext)(this.up())+": character data"+('"'+e+'" should not contain characters not')+" allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this._charData;return e=(0,Vs.escapeAmpersands)(e),e=(0,Vs.escapeLeftAngleBrackets)(e),e=(0,Vs.escapeRightAngleBracketsInCdataTerminator)(e),e},t.prototype.up=function(){return this._parent},t}();Ks.default=a1});var qn=y(hr=>{"use strict";var ft=hr&&hr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hr,"__esModule",{value:!0});var An=oe(),u1=qt(),fr=K(),dd=ft(Dn()),c1=ft(Js()),dr=ft(Qs()),kn=ft(Pn()),l1=ft(lr()),Mn=ft(On()),f1=ft(cr()),d1=function(){function t(e,r,n){this._validation=r,(0,fr.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,(0,fr.isUndefined)(n.useSelfClosingTagIfEmpty)?this._useSelfClosingTagIfEmpty=!0:this._useSelfClosingTagIfEmpty=n.useSelfClosingTagIfEmpty,this._children=[],this._attributeNames=[],this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._replaceInvalidCharsInName){if(e=(0,fr.fixName)(e),e.length===0)throw new Error((0,An.getContext)(this.up())+": element name should not be empty")}else if(this._validation&&!(0,fr.validateName)(e))throw e.length===0?new Error((0,An.getContext)(this.up())+": element name should not be empty"):new Error((0,An.getContext)(this.up())+": element name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.attribute=function(e){if(this._validation&&this._attributeNames.indexOf(e.name)!==-1)throw new Error((0,An.getContext)(this.up())+': element "'+this.name+'" already contains an attribute with the'+(' name "'+e.name+'"'));var r=new dd.default(this,this._validation,e);return this._children.push(r),this._attributeNames.push(e.name),r},t.prototype.cdata=function(e){var r=new c1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charData=function(e){var r=new dr.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charRef=function(e){var r=new kn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new l1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new t(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new Mn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new f1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){return e===void 0&&(e={}),this.toStringWithIndent(e,"")},t.prototype.up=function(){return this._parent},t.prototype.toStringWithIndent=function(e,r){for(var n=new u1.StringOptions(e),i=r+n.indent,s="<"+this._name,o=[],a=0,u=this._children;a<u.length;a++){var h=u[a];h instanceof dd.default?s+=" "+h.toString(e):o.push(h)}if(o.length>0){for(var c="",p=0;p<o.length;p++){var g=o[p],m="";g instanceof t?m+=g.toStringWithIndent(n,i):m+=g.toString();var b=p>0?o[p-1]:void 0;g instanceof dr.default&&g.toString()===""||(n.pretty&&(this.allSameLineNodes(o)||p>0&&this.onSameLine(g,b)||(m=n.newline+i+m)),c+=m)}n.pretty&&(this.allSameLineNodes(o)||(c+=n.newline+r)),c.length===0&&this._useSelfClosingTagIfEmpty?s+="/>":s+=">"+c+"</"+this._name+">"}else this._useSelfClosingTagIfEmpty?s+="/>":s+="></"+this._name+">";return s},t.prototype.allSameLineNodes=function(e){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!(i instanceof kn.default||i instanceof Mn.default||i instanceof dr.default))return!1}return!0},t.prototype.onSameLine=function(e,r){return(e instanceof kn.default||e instanceof Mn.default||e instanceof dr.default)&&!(0,fr.isUndefined)(r)&&(r instanceof kn.default||r instanceof Mn.default||r instanceof dr.default)},t}();hr.default=d1});var oe=y(Tt=>{"use strict";var Nn=Tt&&Tt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tt,"__esModule",{value:!0});Tt.getContext=void 0;var h1=Nn(Dn()),p1=Nn(jn()),m1=Nn(Rn()),g1=Nn(qn());function Tn(t){if(t instanceof h1.default)return Tn(t.up())+(' > attribute "'+t.name+'"');if(t instanceof p1.default)return"in XML document";if(t instanceof m1.default)return Tn(t.up())+" > DTD";if(t instanceof g1.default)return Tn(t.up())+(' > element "'+t.name+'"');throw new Error("Unrecognized object of type "+Object.prototype.toString.call(t))}Tt.getContext=Tn});var lr=y(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});var Zs=oe(),eo=K(),y1=function(){function t(e,r,n){this._validation=r,(0,eo.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,eo.fixChar)(e);else if(this._validation&&!(0,eo.validateChar)(e))throw new Error((0,Zs.getContext)(this.up())+": comment content"+(' "'+e+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)e=e.replace("--","\uFFFD\uFFFD");else if(this._validation&&e.indexOf("--")!==-1)throw new Error((0,Zs.getContext)(this.up())+": comment content"+(' "'+e+'" should not contain the string')+" '--'");if(this._replaceInvalidCharsInCharData)e.lastIndexOf("-")===e.length-1&&(e=e.substr(0,e.length-1)+"\uFFFD");else if(this._validation&&e.lastIndexOf("-")===e.length-1)throw new Error((0,Zs.getContext)(this.up())+": comment content"+(' "'+e+'" should not end with the string')+" '-'");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!--"+this._charData+"-->"},t.prototype.up=function(){return this._parent},t}();to.default=y1});var io=y(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});var ro=oe(),v1=qt(),pr=K(),b1=function(){function t(e,r,n){this._version="1.0",this._validation=r,this._parent=e,this.encoding=n.encoding,this.standalone=n.standalone,(0,pr.isUndefined)(n.version)||(this.version=n.version)}return Object.defineProperty(t.prototype,"encoding",{get:function(){return this._encoding},set:function(e){if(this._validation&&!(0,pr.isUndefined)(e)&&!_1(e))throw new Error((0,ro.getContext)(this.up())+": declaration"+(" encoding attribute "+e+" should be a")+" valid encoding");this._encoding=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"standalone",{get:function(){return this._standalone},set:function(e){if(this._validation&&!(0,pr.isUndefined)(e)&&e!=="yes"&&e!=="no")throw new Error((0,ro.getContext)(this.up())+": declaration"+(" standalone attribute "+e+" should")+" be the string 'yes' or the string 'no'");this._standalone=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},set:function(e){if(this._validation&&!w1(e))throw new Error((0,ro.getContext)(this.up())+": declaration version"+(" attribute "+e+" should be a valid XML")+" version");this._version=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){e===void 0&&(e={});var r=new v1.StringOptions(e),n=r.doubleQuotes?'"':"'",i="<?xml version="+n+this._version+n;return(0,pr.isUndefined)(this._encoding)||(i+=" encoding="+n+this._encoding+n),(0,pr.isUndefined)(this._standalone)||(i+=" standalone="+n+this._standalone+n),i+="?>",i},t.prototype.up=function(){return this._parent},t}();no.default=b1;function _1(t){if(t.length===0)return!1;var e=t.charCodeAt(0);if(!(e>=65&&e<=90||e>=97&&e<=122))return!1;for(var r=1;r<t.length;r++){var n=t.charCodeAt(r);if(!(n===95||n===45||n===46||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122))return r+1===t.length,!1}return!0}function w1(t){for(var e=0;e<=9;e++)if(t==="1."+e)return!0;return!1}});var jn=y(gr=>{"use strict";var yr=gr&&gr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gr,"__esModule",{value:!0});var x1=qt(),S1=K(),E1=yr(lr()),hd=yr(io()),pd=yr(Rn()),mr=yr(qn()),C1=yr(cr()),P1=function(){function t(e){this._children=[],this._validation=(0,S1.isUndefined)(e.validation)?!0:e.validation}return t.prototype.comment=function(e){var r=new E1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.decl=function(e){if(e===void 0&&(e={}),this._validation&&this._children.length!==0)throw new Error("in XML document: declaration must be the first child");var r=new hd.default(this,this._validation,e);return this._children.push(r),r},t.prototype.dtd=function(e){var r=this._children.filter(function(i){return i instanceof mr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: DTD must precede the root element");var n=new pd.default(this,this._validation,e);return this._children.push(n),n},t.prototype.element=function(e){var r=this._children.filter(function(i){return i instanceof mr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: only one root element is permitted");var n=new mr.default(this,this._validation,e);return this._children.push(n),n},t.prototype.procInst=function(e){var r=new C1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=this._children.filter(function(h){return h instanceof mr.default});if(this._validation&&r.length!==1)throw new Error("in XML document: no more than one root element is permitted");for(var n=new x1.StringOptions(e),i="",s=0,o=this._children;s<o.length;s++){var a=o[s];a instanceof hd.default||a instanceof pd.default||a instanceof mr.default?i+=a.toString(e):i+=a.toString(),n.pretty&&(i+=n.newline)}var u=i.length-n.newline.length;return i.substr(u)===n.newline&&(i=i.substr(0,u)),i},t}();gr.default=P1});var md=y(M=>{"use strict";var Z=M&&M.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(M,"__esModule",{value:!0});M.document=M.XmlProcInst=M.XmlEntityRef=M.XmlElement=M.XmlDtdParamEntityRef=M.XmlDtdNotation=M.XmlDtdEntity=M.XmlDtdElement=M.XmlDtdAttlist=M.XmlDtd=M.XmlDocument=M.XmlDecl=M.XmlComment=M.XmlCharRef=M.XmlCharData=M.XmlCdata=M.XmlAttributeText=M.XmlAttribute=void 0;var O1=Z(jn()),D1=Dn();Object.defineProperty(M,"XmlAttribute",{enumerable:!0,get:function(){return Z(D1).default}});var I1=Is();Object.defineProperty(M,"XmlAttributeText",{enumerable:!0,get:function(){return Z(I1).default}});var F1=Js();Object.defineProperty(M,"XmlCdata",{enumerable:!0,get:function(){return Z(F1).default}});var R1=Qs();Object.defineProperty(M,"XmlCharData",{enumerable:!0,get:function(){return Z(R1).default}});var A1=Pn();Object.defineProperty(M,"XmlCharRef",{enumerable:!0,get:function(){return Z(A1).default}});var k1=lr();Object.defineProperty(M,"XmlComment",{enumerable:!0,get:function(){return Z(k1).default}});var M1=io();Object.defineProperty(M,"XmlDecl",{enumerable:!0,get:function(){return Z(M1).default}});var q1=jn();Object.defineProperty(M,"XmlDocument",{enumerable:!0,get:function(){return Z(q1).default}});var T1=Rn();Object.defineProperty(M,"XmlDtd",{enumerable:!0,get:function(){return Z(T1).default}});var N1=Ts();Object.defineProperty(M,"XmlDtdAttlist",{enumerable:!0,get:function(){return Z(N1).default}});var j1=js();Object.defineProperty(M,"XmlDtdElement",{enumerable:!0,get:function(){return Z(j1).default}});var L1=$s();Object.defineProperty(M,"XmlDtdEntity",{enumerable:!0,get:function(){return Z(L1).default}});var $1=Us();Object.defineProperty(M,"XmlDtdNotation",{enumerable:!0,get:function(){return Z($1).default}});var B1=Hs();Object.defineProperty(M,"XmlDtdParamEntityRef",{enumerable:!0,get:function(){return Z(B1).default}});var U1=qn();Object.defineProperty(M,"XmlElement",{enumerable:!0,get:function(){return Z(U1).default}});var X1=On();Object.defineProperty(M,"XmlEntityRef",{enumerable:!0,get:function(){return Z(X1).default}});var H1=cr();Object.defineProperty(M,"XmlProcInst",{enumerable:!0,get:function(){return Z(H1).default}});function G1(t){return t===void 0&&(t={}),new O1.default(t)}M.document=G1});var so=y(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.stringify=ee.isMap=ee.isSet=ee.isFunction=ee.isArray=ee.isObject=ee.isNull=ee.isUndefined=void 0;function gd(t){return Object.prototype.toString.call(t)==="[object Undefined]"}ee.isUndefined=gd;function yd(t){return Object.prototype.toString.call(t)==="[object Null]"}ee.isNull=yd;function z1(t){return Object.prototype.toString.call(t)==="[object Object]"}ee.isObject=z1;function W1(t){return Object.prototype.toString.call(t)==="[object Array]"}ee.isArray=W1;function vd(t){return Object.prototype.toString.call(t)==="[object Function]"}ee.isFunction=vd;function J1(t){return Object.prototype.toString.call(t)==="[object Set]"}ee.isSet=J1;function V1(t){return Object.prototype.toString.call(t)==="[object Map]"}ee.isMap=V1;function Y1(t){return!gd(t)&&!yd(t)&&vd(t?.toString)&&(t=t.toString()),String(t)}ee.stringify=Y1});var Ed=y(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.WrapHandlers=Ee.TypeHandlers=Ee.FormatOptions=Ee.DtdOptions=Ee.DeclarationOptions=Ee.Options=void 0;var Ne=so(),K1=function(){function t(e){e===void 0&&(e={}),this.aliasString="=",this.attributeString="@",this.cdataInvalidChars=!1,this.cdataKeys=[],this.replaceInvalidChars=!1,this.useSelfClosingTagIfEmpty=!0,this.validation=!0,this.valueString="#",(0,Ne.isUndefined)(e.validation)||(this.validation=e.validation),(0,Ne.isUndefined)(e.aliasString)||(this.aliasString=e.aliasString),(0,Ne.isUndefined)(e.attributeString)||(this.attributeString=e.attributeString),(0,Ne.isUndefined)(e.cdataInvalidChars)||(this.cdataInvalidChars=e.cdataInvalidChars),(0,Ne.isUndefined)(e.cdataKeys)||(this.cdataKeys=e.cdataKeys),this.declaration=new bd(e.declaration),this.dtd=new _d(this.validation,e.dtd),this.format=new wd(e.format),(0,Ne.isUndefined)(e.replaceInvalidChars)||(this.replaceInvalidChars=e.replaceInvalidChars),this.typeHandlers=new xd(e.typeHandlers),(0,Ne.isUndefined)(e.useSelfClosingTagIfEmpty)||(this.useSelfClosingTagIfEmpty=e.useSelfClosingTagIfEmpty),(0,Ne.isUndefined)(e.valueString)||(this.valueString=e.valueString),this.wrapHandlers=new Sd(e.wrapHandlers)}return t}();Ee.Options=K1;var bd=function(){function t(e){e===void 0&&(e={}),this.include=!0,(0,Ne.isUndefined)(e.include)||(this.include=e.include),this.encoding=e.encoding,this.standalone=e.standalone,this.version=e.version}return t}();Ee.DeclarationOptions=bd;var _d=function(){function t(e,r){if(r===void 0&&(r={}),this.include=!1,(0,Ne.isUndefined)(r.include)||(this.include=r.include),e&&(0,Ne.isUndefined)(r.name)&&this.include)throw new Error("options.dtd.name should be defined if options.dtd.include is true");this.name=r.name,this.sysId=r.sysId,this.pubId=r.pubId}return t}();Ee.DtdOptions=_d;var wd=function(){function t(e){e===void 0&&(e={}),this.doubleQuotes=e.doubleQuotes,this.indent=e.indent,this.newline=e.newline,this.pretty=e.pretty}return t}();Ee.FormatOptions=wd;var xd=function(){function t(e){e===void 0&&(e={});for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this[r]=e[r])}return t}();Ee.TypeHandlers=xd;var Sd=function(){function t(e){e===void 0&&(e={});for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this[r]=e[r])}return t}();Ee.WrapHandlers=Sd});var Fd=y(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.parse=Qe.parseToExistingElement=Qe.Absent=void 0;var Pd=md(),Od=Ed(),J=so(),oo=function(){function t(){}return Object.defineProperty(t,"instance",{get:function(){return t._instance},enumerable:!1,configurable:!0}),t._instance=new t,t}();Qe.Absent=oo;function ao(t,e){var r=Object.prototype.toString.call(t),n;return Object.prototype.hasOwnProperty.call(e.typeHandlers,"*")&&(n=e.typeHandlers["*"]),Object.prototype.hasOwnProperty.call(e.typeHandlers,r)&&(n=e.typeHandlers[r]),n}function Dd(t,e,r){var n=function(o){return r.cdataInvalidChars&&(o.indexOf("<")!==-1||o.indexOf("&")!==-1)||r.cdataKeys.indexOf(e.name)!==-1||r.cdataKeys.indexOf("*")!==-1};if(e instanceof Pd.XmlElement)if(n(t))for(var i=t.split("]]>"),s=0;s<i.length;s++)n(i[s])?e.cdata({charData:i[s],replaceInvalidCharsInCharData:r.replaceInvalidChars}):e.charData({charData:i[s],replaceInvalidCharsInCharData:r.replaceInvalidChars}),s<i.length-1&&e.charData({charData:"]]>",replaceInvalidCharsInCharData:r.replaceInvalidChars});else e.charData({charData:t,replaceInvalidCharsInCharData:r.replaceInvalidChars});else e.text({charData:t,replaceInvalidCharsInCharData:r.replaceInvalidChars})}function Q1(t,e,r,n){var i=r.attribute({name:t,replaceInvalidCharsInName:n.replaceInvalidChars});Dd((0,J.stringify)(e),i,n)}function Cd(t,e,r,n){if(t===n.aliasString){r.name=(0,J.stringify)(e);return}if(t.indexOf(n.attributeString)===0&&(0,J.isObject)(e)){for(var i=0,s=Object.keys(e);i<s.length;i++){var o=s[i];Q1(o,(0,J.stringify)(e[o]),r,n)}return}if(t.indexOf(n.valueString)===0){Ln(t,(0,J.stringify)(e),r,n);return}var a=r;if(!(0,J.isArray)(e)&&!(0,J.isSet)(e)){var u=ao(e,n);if(!(0,J.isUndefined)(u)&&u(e)===oo.instance)return;a=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}Ln(t,e,a,n)}function Z1(t,e,r){if((0,J.isMap)(t))t.forEach(function(o,a){Cd((0,J.stringify)(a),o,e,r)});else for(var n=0,i=Object.keys(t);n<i.length;n++){var s=i[n];Cd(s,t[s],e,r)}}function ev(t,e,r,n){var i;Object.prototype.hasOwnProperty.call(n.wrapHandlers,"*")&&(i=n.wrapHandlers["*"]),Object.prototype.hasOwnProperty.call(n.wrapHandlers,t)&&(i=n.wrapHandlers[t]);var s=t,o=r;if(!(0,J.isUndefined)(i)){var a=i(s,e);(0,J.isNull)(a)||(s=a,o=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty}))}e.forEach(function(u){var h=o;if(!(0,J.isArray)(u)&&!(0,J.isSet)(u)){var c=ao(u,n);if(!(0,J.isUndefined)(c)&&c(u)===oo.instance)return;h=o.element({name:s,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}Ln(s,u,h,n)})}function Ln(t,e,r,n){var i=ao(e,n);if((0,J.isUndefined)(i)||(e=i(e)),(0,J.isObject)(e)||(0,J.isMap)(e)){Z1(e,r,n);return}if((0,J.isArray)(e)||(0,J.isSet)(e)){ev(t,e,r,n);return}Dd((0,J.stringify)(e),r,n)}function Id(t,e,r){var n=new Od.Options(r);Ln(t.name,e,t,n)}Qe.parseToExistingElement=Id;function tv(t,e,r){var n=new Od.Options(r),i=new Pd.XmlDocument({validation:n.validation});n.declaration.include&&i.decl(n.declaration),n.dtd.include&&i.dtd({name:n.dtd.name,pubId:n.dtd.pubId,sysId:n.dtd.sysId});var s=i.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty});return Id(s,e,r),i.toString(n.format)}Qe.parse=tv});var co=$(require("node:path"));var Tr=$(require("node:crypto")),rt=$(require("node:fs")),si=$(require("node:path")),oi=$(vt()),Nr=si.default.resolve(__dirname,"./../apiCache"),bu=`${Nr}/siteHash.json`;function _u(){rt.default.existsSync(Nr)||rt.default.mkdirSync(Nr),console.info("Cache initialized")}function wu(t){let e=Tr.default.createHash("sha256");return e.update(JSON.stringify(t)),`${Nr}/${e.digest("hex")}`}function xu(t){let e=Tr.default.randomBytes(16).toString("hex"),r=Tr.default.createHash("sha256");return r.update(`${t}${e}`),r.digest("hex")}function Su(t,e){let r=typeof e=="string"?e:JSON.stringify(e),n=wu(t),i=si.default.dirname(n);rt.default.existsSync(i)||rt.default.mkdirSync(i,{recursive:!0}),rt.default.writeFileSync(n,r,"utf8")}function Eu(t){try{let e=wu(t);return oi.default.readJSONSync(e,{encoding:"utf-8"})}catch{return null}}function tp(){try{return oi.default.readJSONSync(bu,{encoding:"utf-8"})||{}}catch{return{}}}function Cu(t,e){let r=tp(),n=r[t],i=e||n||new Date().valueOf();return i!==n&&(r[t]=i,rt.default.writeFileSync(bu,JSON.stringify(r),{encoding:"utf-8"})),i.toString()}var vm=$(Hr()),dl=$(St()),Ve=$(vt()),bm=$(Gc()),Ni=$(ll());var fl="10.3.17";dl.default.config();var _m=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS),kb=Ni.default.sync(__dirname),Mb=Ni.default.sync();function ji(t){let e=t.length,r=t.length+2,n=" ".repeat(Math.floor((r-e)/2)),i=`\u256D${"\u2500".repeat(r)}\u256E
22
+ `,this.pretty=!0,(0,Sn.isUndefined)(e.doubleQuotes)||(this.doubleQuotes=e.doubleQuotes),(0,Sn.isUndefined)(e.indent)||(this.indent=e.indent),(0,Sn.isUndefined)(e.newline)||(this.newline=e.newline),(0,Sn.isUndefined)(e.pretty)||(this.pretty=e.pretty)}return t}();En.StringOptions=yy});var Cn=y(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.escapeDoubleQuotes=Re.escapeSingleQuotes=Re.escapeRightAngleBracketsInCdataTerminator=Re.escapeLeftAngleBrackets=Re.escapeAmpersands=void 0;function vy(t){return t.replace(/&/g,"&amp;")}Re.escapeAmpersands=vy;function by(t){return t.replace(/</g,"&lt;")}Re.escapeLeftAngleBrackets=by;function _y(t){return t.replace(/]]>/g,"]]&gt;")}Re.escapeRightAngleBracketsInCdataTerminator=_y;function wy(t){return t.replace(/'/g,"&apos;")}Re.escapeSingleQuotes=wy;function xy(t){return t.replace(/"/g,"&quot;")}Re.escapeDoubleQuotes=xy});var Is=y(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});var Sy=oe(),od=Cn(),Os=K(),Ey=function(){function t(e,r,n){this._validation=r,(0,Os.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Os.fixChar)(e);else if(this._validation&&!(0,Os.validateChar)(e))throw new Error((0,Sy.getContext)(this.up())+": attribute text"+(' "'+e+'" should not contain characters not')+" allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this._charData;return e=(0,od.escapeAmpersands)(e),e=(0,od.escapeLeftAngleBrackets)(e),e},t.prototype.up=function(){return this._parent},t}();Ds.default=Ey});var Pn=y(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});var ad=oe(),ud=K(),Cy=function(){function t(e,r,n){this._hex=!1,this._validation=r,this._parent=e,this.char=n.char,(0,ud.isUndefined)(n.hex)||(this.hex=n.hex)}return Object.defineProperty(t.prototype,"char",{get:function(){return this._char},set:function(e){if(this._validation&&!(0,ud.validateSingleChar)(e))throw new Error((0,ad.getContext)(this.up())+": character reference"+(' "'+e+'" should reference a single character,')+" and this character should be allowed in XML");this._char=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hex",{get:function(){return this._hex},set:function(e){this._hex=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e;if(this._char.length===1)e=this._char.charCodeAt(0);else{var r=this._char.charCodeAt(0);if(r>=55296&&r<=56319&&this._char.length>1){var n=this._char.charCodeAt(1);if(n>=56320&&n<=57343)e=(r-55296)*1024+n-56320+65536;else throw new Error((0,ad.getContext)(this.up())+": character"+(' reference "'+this.char+'" should')+" reference a valid Unicode character")}else e=r}return this._hex?"&#x"+e.toString(16)+";":"&#"+e+";"},t.prototype.up=function(){return this._parent},t}();Fs.default=Cy});var On=y(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});var Py=oe(),Oy=K(),Dy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,Oy.validateName)(e))throw new Error((0,Py.getContext)(this.up())+": entity reference name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"&"+this._name+";"},t.prototype.up=function(){return this._parent},t}();Rs.default=Dy});var Dn=y(ur=>{"use strict";var Ms=ur&&ur.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ur,"__esModule",{value:!0});var As=oe(),cd=Cn(),Iy=qt(),ks=K(),Fy=Ms(Is()),Ry=Ms(Pn()),Ay=Ms(On()),ky=function(){function t(e,r,n){this._validation=r,(0,ks.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,this._children=[],this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._replaceInvalidCharsInName){if(e=(0,ks.fixName)(e),e.length===0)throw new Error((0,As.getContext)(this.up())+": attribute name should not be empty")}else if(this._validation&&!(0,ks.validateName)(e))throw e.length===0?new Error((0,As.getContext)(this.up())+": attribute name should not be empty"):new Error((0,As.getContext)(this.up())+": attribute name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.charRef=function(e){var r=new Ry.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new Ay.default(this,this._validation,e);return this._children.push(r),r},t.prototype.text=function(e){var r=new Fy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});for(var r=new Iy.StringOptions(e),n=r.doubleQuotes?'"':"'",i=this._name+"="+n,s=0,o=this._children;s<o.length;s++){var a=o[s];r.doubleQuotes?i+=(0,cd.escapeDoubleQuotes)(a.toString()):i+=(0,cd.escapeSingleQuotes)(a.toString())}return i+=n,i},t.prototype.up=function(){return this._parent},t}();ur.default=ky});var Ts=y(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});var My=oe(),qy=K(),Ty=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,qy.validateChar)(e))throw new Error((0,My.getContext)(this.up())+": attribute-list"+(' declaration "'+e+'" should not contain')+" characters not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ATTLIST "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();qs.default=Ty});var js=y(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});var Ny=oe(),jy=K(),Ly=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,jy.validateChar)(e))throw new Error((0,Ny.getContext)(this.up())+": element declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ELEMENT "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Ns.default=Ly});var $s=y(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});var $y=oe(),By=K(),Uy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,By.validateChar)(e))throw new Error((0,$y.getContext)(this.up())+": entity declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ENTITY "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Ls.default=Uy});var Us=y(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});var Xy=oe(),Hy=K(),Gy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,Hy.validateChar)(e))throw new Error((0,Xy.getContext)(this.up())+": notation declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!NOTATION "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Bs.default=Gy});var Hs=y(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});var zy=oe(),Wy=K(),Jy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,Wy.validateName)(e))throw new Error((0,zy.getContext)(this.up())+": parameter entity"+(' reference name "'+e+'" should not contain')+" characters not allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"%"+this._name+";"},t.prototype.up=function(){return this._parent},t}();Xs.default=Jy});var cr=y(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});var In=oe(),Fn=K(),Vy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.content=n.content,this.target=n.target}return Object.defineProperty(t.prototype,"content",{get:function(){return this._content},set:function(e){if(!(0,Fn.isUndefined)(e)){if(this._validation&&!(0,Fn.validateChar)(e))throw new Error((0,In.getContext)(this.up())+": processing"+(' instruction content "'+e+'" should')+" not contain characters not allowed in XML");if(this._validation&&e.indexOf("?>")!==-1)throw new Error((0,In.getContext)(this.up())+": processing"+(' instruction content "'+e+'" should')+" not contain the string '?>'")}this._content=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){return this._target},set:function(e){if(this._validation&&!(0,Fn.validateName)(e))throw new Error((0,In.getContext)(this.up())+": processing"+(' instruction target "'+e+'" should')+" not contain characters not allowed in XML names");if(this._validation&&e==="xml")throw new Error((0,In.getContext)(this.up())+": processing"+(' instruction target "'+e+'" should')+" not be the string 'xml'");this._target=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return(0,Fn.isUndefined)(this._content)?"<?"+this._target+"?>":"<?"+this._target+" "+this._content+"?>"},t.prototype.up=function(){return this._parent},t}();Gs.default=Vy});var Rn=y(ct=>{"use strict";var lt=ct&&ct.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ct,"__esModule",{value:!0});ct.validatePubId=void 0;var Ke=oe(),Yy=qt(),Le=K(),Ky=lt(lr()),Qy=lt(Ts()),Zy=lt(js()),e1=lt($s()),t1=lt(Us()),r1=lt(Hs()),n1=lt(cr()),i1=function(){function t(e,r,n){this._pubId=void 0,this._sysId=void 0,this._validation=r,this._children=[],this._parent=e,this.name=n.name,(0,Le.isUndefined)(n.sysId)||(this.sysId=n.sysId),(0,Le.isUndefined)(n.pubId)||(this.pubId=n.pubId)}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,Le.validateName)(e))throw new Error((0,Ke.getContext)(this.up())+': DTD name "'+e+'" should not contain characters not allowed in XML names');this._name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pubId",{get:function(){return this._pubId},set:function(e){if(!(0,Le.isUndefined)(e)){if(this._validation&&!ld(e))throw new Error((0,Ke.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not contain')+" characters not allowed in public identifiers");if(this._validation&&(0,Le.isUndefined)(this._sysId))throw new Error((0,Ke.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not be defined')+" if system identifier is undefined")}this._pubId=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sysId",{get:function(){return this._sysId},set:function(e){if(!(0,Le.isUndefined)(e)){if(this._validation&&!(0,Le.validateChar)(e))throw new Error((0,Ke.getContext)(this.up())+": DTD system"+(' identifier "'+e+'" should not contain')+" characters not allowed in XML");if(this._validation&&e.indexOf("'")!==-1&&e.indexOf('"')!==-1)throw new Error((0,Ke.getContext)(this.up())+": DTD system"+(' identifier "'+e+'" should not contain')+" both single quotes and double quotes")}this._sysId=e},enumerable:!1,configurable:!0}),t.prototype.attlist=function(e){var r=new Qy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new Ky.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new Zy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entity=function(e){var r=new e1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.notation=function(e){var r=new t1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.paramEntityRef=function(e){var r=new r1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new n1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=new Yy.StringOptions(e),n="<!DOCTYPE "+this._name;if((0,Le.isUndefined)(this._pubId))(0,Le.isUndefined)(this._sysId)||(n+=" ",n=this.appendId("SYSTEM",this._sysId,n,r));else{if((0,Le.isUndefined)(this._sysId))throw new Error((0,Ke.getContext)(this.up())+": DTD system identifier is not undefined");n+=" ",n=this.appendId("PUBLIC",this._pubId,n,r),n=this.appendId("",this._sysId,n,r)}if(this._children.length!==0){n+=" [";for(var i=0,s=this._children;i<s.length;i++){var o=s[i];r.pretty&&(n+=r.newline+r.indent),n+=o.toString()}r.pretty&&(n+=r.newline),n+="]>"}else n+=">";return n},t.prototype.up=function(){return this._parent},t.prototype.appendId=function(e,r,n,i){if(n+=e+" ",i.doubleQuotes){if(this._validation&&r.indexOf('"')!==-1)throw new Error((0,Ke.getContext)(this.up())+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+='"'+r+'"'}else{if(this._validation&&r.indexOf("'")!==-1)throw new Error((0,Ke.getContext)(this)+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+="'"+r+"'"}return n},t}();ct.default=i1;function ld(t){for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(!(r===10||r===13||r===32||r===33||r>=35&&r<=37||r>=39&&r<=47||r>=48&&r<=57||r===58||r===59||r===61||r===63||r>=64&&r<=90||r===95||r>=97&&r<=122))return e+1===t.length,!1}return!0}ct.validatePubId=ld});var Js=y(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});var fd=oe(),zs=K(),s1=function(){function t(e,r,n){this._validation=r,(0,zs.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,zs.fixChar)(e);else if(this._validation&&!(0,zs.validateChar)(e))throw new Error((0,fd.getContext)(this.up())+": CDATA section"+(' "'+e+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)e=e.replace("]]>","\uFFFD\uFFFD\uFFFD");else if(this._validation&&e.indexOf("]]>")!==-1)throw new Error((0,fd.getContext)(this.up())+": CDATA section"+(' "'+e+'" should not contain the string')+" ']]>'");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<![CDATA["+this._charData+"]]>"},t.prototype.up=function(){return this._parent},t}();Ws.default=s1});var Qs=y(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});var o1=oe(),Vs=Cn(),Ys=K(),a1=function(){function t(e,r,n){this._validation=r,(0,Ys.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Ys.fixChar)(e);else if(this._validation&&!(0,Ys.validateChar)(e))throw new Error((0,o1.getContext)(this.up())+": character data"+('"'+e+'" should not contain characters not')+" allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this._charData;return e=(0,Vs.escapeAmpersands)(e),e=(0,Vs.escapeLeftAngleBrackets)(e),e=(0,Vs.escapeRightAngleBracketsInCdataTerminator)(e),e},t.prototype.up=function(){return this._parent},t}();Ks.default=a1});var qn=y(hr=>{"use strict";var ft=hr&&hr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hr,"__esModule",{value:!0});var An=oe(),u1=qt(),fr=K(),dd=ft(Dn()),c1=ft(Js()),dr=ft(Qs()),kn=ft(Pn()),l1=ft(lr()),Mn=ft(On()),f1=ft(cr()),d1=function(){function t(e,r,n){this._validation=r,(0,fr.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,(0,fr.isUndefined)(n.useSelfClosingTagIfEmpty)?this._useSelfClosingTagIfEmpty=!0:this._useSelfClosingTagIfEmpty=n.useSelfClosingTagIfEmpty,this._children=[],this._attributeNames=[],this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._replaceInvalidCharsInName){if(e=(0,fr.fixName)(e),e.length===0)throw new Error((0,An.getContext)(this.up())+": element name should not be empty")}else if(this._validation&&!(0,fr.validateName)(e))throw e.length===0?new Error((0,An.getContext)(this.up())+": element name should not be empty"):new Error((0,An.getContext)(this.up())+": element name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.attribute=function(e){if(this._validation&&this._attributeNames.indexOf(e.name)!==-1)throw new Error((0,An.getContext)(this.up())+': element "'+this.name+'" already contains an attribute with the'+(' name "'+e.name+'"'));var r=new dd.default(this,this._validation,e);return this._children.push(r),this._attributeNames.push(e.name),r},t.prototype.cdata=function(e){var r=new c1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charData=function(e){var r=new dr.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charRef=function(e){var r=new kn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new l1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new t(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new Mn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new f1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){return e===void 0&&(e={}),this.toStringWithIndent(e,"")},t.prototype.up=function(){return this._parent},t.prototype.toStringWithIndent=function(e,r){for(var n=new u1.StringOptions(e),i=r+n.indent,s="<"+this._name,o=[],a=0,u=this._children;a<u.length;a++){var h=u[a];h instanceof dd.default?s+=" "+h.toString(e):o.push(h)}if(o.length>0){for(var c="",p=0;p<o.length;p++){var g=o[p],m="";g instanceof t?m+=g.toStringWithIndent(n,i):m+=g.toString();var b=p>0?o[p-1]:void 0;g instanceof dr.default&&g.toString()===""||(n.pretty&&(this.allSameLineNodes(o)||p>0&&this.onSameLine(g,b)||(m=n.newline+i+m)),c+=m)}n.pretty&&(this.allSameLineNodes(o)||(c+=n.newline+r)),c.length===0&&this._useSelfClosingTagIfEmpty?s+="/>":s+=">"+c+"</"+this._name+">"}else this._useSelfClosingTagIfEmpty?s+="/>":s+="></"+this._name+">";return s},t.prototype.allSameLineNodes=function(e){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!(i instanceof kn.default||i instanceof Mn.default||i instanceof dr.default))return!1}return!0},t.prototype.onSameLine=function(e,r){return(e instanceof kn.default||e instanceof Mn.default||e instanceof dr.default)&&!(0,fr.isUndefined)(r)&&(r instanceof kn.default||r instanceof Mn.default||r instanceof dr.default)},t}();hr.default=d1});var oe=y(Tt=>{"use strict";var Nn=Tt&&Tt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tt,"__esModule",{value:!0});Tt.getContext=void 0;var h1=Nn(Dn()),p1=Nn(jn()),m1=Nn(Rn()),g1=Nn(qn());function Tn(t){if(t instanceof h1.default)return Tn(t.up())+(' > attribute "'+t.name+'"');if(t instanceof p1.default)return"in XML document";if(t instanceof m1.default)return Tn(t.up())+" > DTD";if(t instanceof g1.default)return Tn(t.up())+(' > element "'+t.name+'"');throw new Error("Unrecognized object of type "+Object.prototype.toString.call(t))}Tt.getContext=Tn});var lr=y(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});var Zs=oe(),eo=K(),y1=function(){function t(e,r,n){this._validation=r,(0,eo.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,eo.fixChar)(e);else if(this._validation&&!(0,eo.validateChar)(e))throw new Error((0,Zs.getContext)(this.up())+": comment content"+(' "'+e+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)e=e.replace("--","\uFFFD\uFFFD");else if(this._validation&&e.indexOf("--")!==-1)throw new Error((0,Zs.getContext)(this.up())+": comment content"+(' "'+e+'" should not contain the string')+" '--'");if(this._replaceInvalidCharsInCharData)e.lastIndexOf("-")===e.length-1&&(e=e.substr(0,e.length-1)+"\uFFFD");else if(this._validation&&e.lastIndexOf("-")===e.length-1)throw new Error((0,Zs.getContext)(this.up())+": comment content"+(' "'+e+'" should not end with the string')+" '-'");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!--"+this._charData+"-->"},t.prototype.up=function(){return this._parent},t}();to.default=y1});var io=y(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});var ro=oe(),v1=qt(),pr=K(),b1=function(){function t(e,r,n){this._version="1.0",this._validation=r,this._parent=e,this.encoding=n.encoding,this.standalone=n.standalone,(0,pr.isUndefined)(n.version)||(this.version=n.version)}return Object.defineProperty(t.prototype,"encoding",{get:function(){return this._encoding},set:function(e){if(this._validation&&!(0,pr.isUndefined)(e)&&!_1(e))throw new Error((0,ro.getContext)(this.up())+": declaration"+(" encoding attribute "+e+" should be a")+" valid encoding");this._encoding=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"standalone",{get:function(){return this._standalone},set:function(e){if(this._validation&&!(0,pr.isUndefined)(e)&&e!=="yes"&&e!=="no")throw new Error((0,ro.getContext)(this.up())+": declaration"+(" standalone attribute "+e+" should")+" be the string 'yes' or the string 'no'");this._standalone=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},set:function(e){if(this._validation&&!w1(e))throw new Error((0,ro.getContext)(this.up())+": declaration version"+(" attribute "+e+" should be a valid XML")+" version");this._version=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){e===void 0&&(e={});var r=new v1.StringOptions(e),n=r.doubleQuotes?'"':"'",i="<?xml version="+n+this._version+n;return(0,pr.isUndefined)(this._encoding)||(i+=" encoding="+n+this._encoding+n),(0,pr.isUndefined)(this._standalone)||(i+=" standalone="+n+this._standalone+n),i+="?>",i},t.prototype.up=function(){return this._parent},t}();no.default=b1;function _1(t){if(t.length===0)return!1;var e=t.charCodeAt(0);if(!(e>=65&&e<=90||e>=97&&e<=122))return!1;for(var r=1;r<t.length;r++){var n=t.charCodeAt(r);if(!(n===95||n===45||n===46||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122))return r+1===t.length,!1}return!0}function w1(t){for(var e=0;e<=9;e++)if(t==="1."+e)return!0;return!1}});var jn=y(gr=>{"use strict";var yr=gr&&gr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gr,"__esModule",{value:!0});var x1=qt(),S1=K(),E1=yr(lr()),hd=yr(io()),pd=yr(Rn()),mr=yr(qn()),C1=yr(cr()),P1=function(){function t(e){this._children=[],this._validation=(0,S1.isUndefined)(e.validation)?!0:e.validation}return t.prototype.comment=function(e){var r=new E1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.decl=function(e){if(e===void 0&&(e={}),this._validation&&this._children.length!==0)throw new Error("in XML document: declaration must be the first child");var r=new hd.default(this,this._validation,e);return this._children.push(r),r},t.prototype.dtd=function(e){var r=this._children.filter(function(i){return i instanceof mr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: DTD must precede the root element");var n=new pd.default(this,this._validation,e);return this._children.push(n),n},t.prototype.element=function(e){var r=this._children.filter(function(i){return i instanceof mr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: only one root element is permitted");var n=new mr.default(this,this._validation,e);return this._children.push(n),n},t.prototype.procInst=function(e){var r=new C1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=this._children.filter(function(h){return h instanceof mr.default});if(this._validation&&r.length!==1)throw new Error("in XML document: no more than one root element is permitted");for(var n=new x1.StringOptions(e),i="",s=0,o=this._children;s<o.length;s++){var a=o[s];a instanceof hd.default||a instanceof pd.default||a instanceof mr.default?i+=a.toString(e):i+=a.toString(),n.pretty&&(i+=n.newline)}var u=i.length-n.newline.length;return i.substr(u)===n.newline&&(i=i.substr(0,u)),i},t}();gr.default=P1});var md=y(M=>{"use strict";var Z=M&&M.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(M,"__esModule",{value:!0});M.document=M.XmlProcInst=M.XmlEntityRef=M.XmlElement=M.XmlDtdParamEntityRef=M.XmlDtdNotation=M.XmlDtdEntity=M.XmlDtdElement=M.XmlDtdAttlist=M.XmlDtd=M.XmlDocument=M.XmlDecl=M.XmlComment=M.XmlCharRef=M.XmlCharData=M.XmlCdata=M.XmlAttributeText=M.XmlAttribute=void 0;var O1=Z(jn()),D1=Dn();Object.defineProperty(M,"XmlAttribute",{enumerable:!0,get:function(){return Z(D1).default}});var I1=Is();Object.defineProperty(M,"XmlAttributeText",{enumerable:!0,get:function(){return Z(I1).default}});var F1=Js();Object.defineProperty(M,"XmlCdata",{enumerable:!0,get:function(){return Z(F1).default}});var R1=Qs();Object.defineProperty(M,"XmlCharData",{enumerable:!0,get:function(){return Z(R1).default}});var A1=Pn();Object.defineProperty(M,"XmlCharRef",{enumerable:!0,get:function(){return Z(A1).default}});var k1=lr();Object.defineProperty(M,"XmlComment",{enumerable:!0,get:function(){return Z(k1).default}});var M1=io();Object.defineProperty(M,"XmlDecl",{enumerable:!0,get:function(){return Z(M1).default}});var q1=jn();Object.defineProperty(M,"XmlDocument",{enumerable:!0,get:function(){return Z(q1).default}});var T1=Rn();Object.defineProperty(M,"XmlDtd",{enumerable:!0,get:function(){return Z(T1).default}});var N1=Ts();Object.defineProperty(M,"XmlDtdAttlist",{enumerable:!0,get:function(){return Z(N1).default}});var j1=js();Object.defineProperty(M,"XmlDtdElement",{enumerable:!0,get:function(){return Z(j1).default}});var L1=$s();Object.defineProperty(M,"XmlDtdEntity",{enumerable:!0,get:function(){return Z(L1).default}});var $1=Us();Object.defineProperty(M,"XmlDtdNotation",{enumerable:!0,get:function(){return Z($1).default}});var B1=Hs();Object.defineProperty(M,"XmlDtdParamEntityRef",{enumerable:!0,get:function(){return Z(B1).default}});var U1=qn();Object.defineProperty(M,"XmlElement",{enumerable:!0,get:function(){return Z(U1).default}});var X1=On();Object.defineProperty(M,"XmlEntityRef",{enumerable:!0,get:function(){return Z(X1).default}});var H1=cr();Object.defineProperty(M,"XmlProcInst",{enumerable:!0,get:function(){return Z(H1).default}});function G1(t){return t===void 0&&(t={}),new O1.default(t)}M.document=G1});var so=y(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.stringify=ee.isMap=ee.isSet=ee.isFunction=ee.isArray=ee.isObject=ee.isNull=ee.isUndefined=void 0;function gd(t){return Object.prototype.toString.call(t)==="[object Undefined]"}ee.isUndefined=gd;function yd(t){return Object.prototype.toString.call(t)==="[object Null]"}ee.isNull=yd;function z1(t){return Object.prototype.toString.call(t)==="[object Object]"}ee.isObject=z1;function W1(t){return Object.prototype.toString.call(t)==="[object Array]"}ee.isArray=W1;function vd(t){return Object.prototype.toString.call(t)==="[object Function]"}ee.isFunction=vd;function J1(t){return Object.prototype.toString.call(t)==="[object Set]"}ee.isSet=J1;function V1(t){return Object.prototype.toString.call(t)==="[object Map]"}ee.isMap=V1;function Y1(t){return!gd(t)&&!yd(t)&&vd(t?.toString)&&(t=t.toString()),String(t)}ee.stringify=Y1});var Ed=y(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.WrapHandlers=Ee.TypeHandlers=Ee.FormatOptions=Ee.DtdOptions=Ee.DeclarationOptions=Ee.Options=void 0;var Ne=so(),K1=function(){function t(e){e===void 0&&(e={}),this.aliasString="=",this.attributeString="@",this.cdataInvalidChars=!1,this.cdataKeys=[],this.replaceInvalidChars=!1,this.useSelfClosingTagIfEmpty=!0,this.validation=!0,this.valueString="#",(0,Ne.isUndefined)(e.validation)||(this.validation=e.validation),(0,Ne.isUndefined)(e.aliasString)||(this.aliasString=e.aliasString),(0,Ne.isUndefined)(e.attributeString)||(this.attributeString=e.attributeString),(0,Ne.isUndefined)(e.cdataInvalidChars)||(this.cdataInvalidChars=e.cdataInvalidChars),(0,Ne.isUndefined)(e.cdataKeys)||(this.cdataKeys=e.cdataKeys),this.declaration=new bd(e.declaration),this.dtd=new _d(this.validation,e.dtd),this.format=new wd(e.format),(0,Ne.isUndefined)(e.replaceInvalidChars)||(this.replaceInvalidChars=e.replaceInvalidChars),this.typeHandlers=new xd(e.typeHandlers),(0,Ne.isUndefined)(e.useSelfClosingTagIfEmpty)||(this.useSelfClosingTagIfEmpty=e.useSelfClosingTagIfEmpty),(0,Ne.isUndefined)(e.valueString)||(this.valueString=e.valueString),this.wrapHandlers=new Sd(e.wrapHandlers)}return t}();Ee.Options=K1;var bd=function(){function t(e){e===void 0&&(e={}),this.include=!0,(0,Ne.isUndefined)(e.include)||(this.include=e.include),this.encoding=e.encoding,this.standalone=e.standalone,this.version=e.version}return t}();Ee.DeclarationOptions=bd;var _d=function(){function t(e,r){if(r===void 0&&(r={}),this.include=!1,(0,Ne.isUndefined)(r.include)||(this.include=r.include),e&&(0,Ne.isUndefined)(r.name)&&this.include)throw new Error("options.dtd.name should be defined if options.dtd.include is true");this.name=r.name,this.sysId=r.sysId,this.pubId=r.pubId}return t}();Ee.DtdOptions=_d;var wd=function(){function t(e){e===void 0&&(e={}),this.doubleQuotes=e.doubleQuotes,this.indent=e.indent,this.newline=e.newline,this.pretty=e.pretty}return t}();Ee.FormatOptions=wd;var xd=function(){function t(e){e===void 0&&(e={});for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this[r]=e[r])}return t}();Ee.TypeHandlers=xd;var Sd=function(){function t(e){e===void 0&&(e={});for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this[r]=e[r])}return t}();Ee.WrapHandlers=Sd});var Fd=y(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.parse=Qe.parseToExistingElement=Qe.Absent=void 0;var Pd=md(),Od=Ed(),J=so(),oo=function(){function t(){}return Object.defineProperty(t,"instance",{get:function(){return t._instance},enumerable:!1,configurable:!0}),t._instance=new t,t}();Qe.Absent=oo;function ao(t,e){var r=Object.prototype.toString.call(t),n;return Object.prototype.hasOwnProperty.call(e.typeHandlers,"*")&&(n=e.typeHandlers["*"]),Object.prototype.hasOwnProperty.call(e.typeHandlers,r)&&(n=e.typeHandlers[r]),n}function Dd(t,e,r){var n=function(o){return r.cdataInvalidChars&&(o.indexOf("<")!==-1||o.indexOf("&")!==-1)||r.cdataKeys.indexOf(e.name)!==-1||r.cdataKeys.indexOf("*")!==-1};if(e instanceof Pd.XmlElement)if(n(t))for(var i=t.split("]]>"),s=0;s<i.length;s++)n(i[s])?e.cdata({charData:i[s],replaceInvalidCharsInCharData:r.replaceInvalidChars}):e.charData({charData:i[s],replaceInvalidCharsInCharData:r.replaceInvalidChars}),s<i.length-1&&e.charData({charData:"]]>",replaceInvalidCharsInCharData:r.replaceInvalidChars});else e.charData({charData:t,replaceInvalidCharsInCharData:r.replaceInvalidChars});else e.text({charData:t,replaceInvalidCharsInCharData:r.replaceInvalidChars})}function Q1(t,e,r,n){var i=r.attribute({name:t,replaceInvalidCharsInName:n.replaceInvalidChars});Dd((0,J.stringify)(e),i,n)}function Cd(t,e,r,n){if(t===n.aliasString){r.name=(0,J.stringify)(e);return}if(t.indexOf(n.attributeString)===0&&(0,J.isObject)(e)){for(var i=0,s=Object.keys(e);i<s.length;i++){var o=s[i];Q1(o,(0,J.stringify)(e[o]),r,n)}return}if(t.indexOf(n.valueString)===0){Ln(t,(0,J.stringify)(e),r,n);return}var a=r;if(!(0,J.isArray)(e)&&!(0,J.isSet)(e)){var u=ao(e,n);if(!(0,J.isUndefined)(u)&&u(e)===oo.instance)return;a=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}Ln(t,e,a,n)}function Z1(t,e,r){if((0,J.isMap)(t))t.forEach(function(o,a){Cd((0,J.stringify)(a),o,e,r)});else for(var n=0,i=Object.keys(t);n<i.length;n++){var s=i[n];Cd(s,t[s],e,r)}}function ev(t,e,r,n){var i;Object.prototype.hasOwnProperty.call(n.wrapHandlers,"*")&&(i=n.wrapHandlers["*"]),Object.prototype.hasOwnProperty.call(n.wrapHandlers,t)&&(i=n.wrapHandlers[t]);var s=t,o=r;if(!(0,J.isUndefined)(i)){var a=i(s,e);(0,J.isNull)(a)||(s=a,o=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty}))}e.forEach(function(u){var h=o;if(!(0,J.isArray)(u)&&!(0,J.isSet)(u)){var c=ao(u,n);if(!(0,J.isUndefined)(c)&&c(u)===oo.instance)return;h=o.element({name:s,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}Ln(s,u,h,n)})}function Ln(t,e,r,n){var i=ao(e,n);if((0,J.isUndefined)(i)||(e=i(e)),(0,J.isObject)(e)||(0,J.isMap)(e)){Z1(e,r,n);return}if((0,J.isArray)(e)||(0,J.isSet)(e)){ev(t,e,r,n);return}Dd((0,J.stringify)(e),r,n)}function Id(t,e,r){var n=new Od.Options(r);Ln(t.name,e,t,n)}Qe.parseToExistingElement=Id;function tv(t,e,r){var n=new Od.Options(r),i=new Pd.XmlDocument({validation:n.validation});n.declaration.include&&i.decl(n.declaration),n.dtd.include&&i.dtd({name:n.dtd.name,pubId:n.dtd.pubId,sysId:n.dtd.sysId});var s=i.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty});return Id(s,e,r),i.toString(n.format)}Qe.parse=tv});var co=$(require("node:path"));var Tr=$(require("node:crypto")),rt=$(require("node:fs")),si=$(require("node:path")),oi=$(vt()),Nr=si.default.resolve(__dirname,"./../apiCache"),bu=`${Nr}/siteHash.json`;function _u(){rt.default.existsSync(Nr)||rt.default.mkdirSync(Nr),console.info("Cache initialized")}function wu(t){let e=Tr.default.createHash("sha256");return e.update(JSON.stringify(t)),`${Nr}/${e.digest("hex")}`}function xu(t){let e=Tr.default.randomBytes(16).toString("hex"),r=Tr.default.createHash("sha256");return r.update(`${t}${e}`),r.digest("hex")}function Su(t,e){let r=typeof e=="string"?e:JSON.stringify(e),n=wu(t),i=si.default.dirname(n);rt.default.existsSync(i)||rt.default.mkdirSync(i,{recursive:!0}),rt.default.writeFileSync(n,r,"utf8")}function Eu(t){try{let e=wu(t);return oi.default.readJSONSync(e,{encoding:"utf-8"})}catch{return null}}function tp(){try{return oi.default.readJSONSync(bu,{encoding:"utf-8"})||{}}catch{return{}}}function Cu(t,e){let r=tp(),n=r[t],i=e||n||new Date().valueOf();return i!==n&&(r[t]=i,rt.default.writeFileSync(bu,JSON.stringify(r),{encoding:"utf-8"})),i.toString()}var vm=$(Hr()),dl=$(St()),Ve=$(vt()),bm=$(Gc()),Ni=$(ll());var fl="10.3.19";dl.default.config();var _m=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS),kb=Ni.default.sync(__dirname),Mb=Ni.default.sync();function ji(t){let e=t.length,r=t.length+2,n=" ".repeat(Math.floor((r-e)/2)),i=`\u256D${"\u2500".repeat(r)}\u256E
23
23
  `,s=`
24
24
  \u2570${"\u2500".repeat(r)}\u256F`,o=`\u2502${n}${t}${n}\u2502`;console.log(`${i}${o}${s}`)}function qe(t){_m&&console.info(t.replace(/(\s)\s+/g,"$1"))}function hl(t){return new Promise(e=>setTimeout(e,t))}function Li(t,e=3){return(t/1e3).toFixed(e)}function $i(t){return"site"in t&&t.site?t?.site:void 0}function Bi(t,e){for(let r in t)e.includes(r)?delete t[r]:typeof t[r]=="object"&&Bi(t[r],e)}function Ui(t){return t.map(({name:e,id:r})=>`${e} (${r})`).join(", ")}function pl(t){let e=Ve.default.readdirSync(t),r={},n=e.filter(s=>{let o=`${t}/${s}`,a=Ve.default.readJSONSync(o,"utf-8"),{id:u,entity:h,fullUrl:c}=a;return!!(u&&h&&c)});for(let s of n){let o=`${t}/${s}`,a=Ve.default.readJSONSync(o,"utf-8"),u=Ve.default.statSync(o).mtimeMs,{id:h}=a;(!r[h]||u>Ve.default.statSync(`${t}/${r[h]}`).mtimeMs)&&(r[h]=s)}let i=0;for(let s of n){let o=`${t}/${s}`,a=Ve.default.readJSONSync(o,"utf-8"),{id:u}=a;s!==r[u]&&(Ve.default.unlinkSync(o),i++)}console.log(`Sanitize apiCache folder for ${i} files`)}var vr=$(require("node:fs")),Nd=$(require("node:fs/promises")),jt=$(require("node:path")),jd=$(St()),$n=$(vt()),Ld=$(Ai());var Vf=$(St());var zf=$(gs()),Wf=$(Hr()),Jf=$(St());var Xf=$(gs()),Hf=$(Hr()),ys=class{user;password;baseUrl;headers;constructor(){this.user=process.env.botEmail,this.password=process.env.botPassword,this.baseUrl=process.env.API_URL}async login(){try{let e=await(0,Xf.default)({url:`${this.baseUrl}/login_check`,method:"POST",headers:{"Content-Type":"application/json"},data:{username:this.user,password:this.password}});if(e.status===200){let{data:{token:r}}=e;this.headers={Authorization:"bearer "+r,"Cache-Control":"no-store"}}return this.headers}catch{console.error(Hf.default.red(`
25
25
  \u256D\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256E
package/build/index.js CHANGED
@@ -25,7 +25,7 @@ GFS4: `),console.error(t)});W[oe]||(Lu=global[oe]||[],Bu(W,Lu),W.close=function(
25
25
  \u2502 Access credentials failure \u2502
26
26
  \u2502 Check that the login details are correct in your .env file \u2502
27
27
  \u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256F
28
- `)),process.exit(1)}}},Ct=new Ai;var sd=T(Si()),od=T(Yt()),ad=T(Xe());var dn=T(require("node:crypto")),ft=T(require("node:fs")),Vi=T(require("node:path")),Ki=T(Ft()),hn=Vi.default.resolve(__dirname,"./../apiCache"),Ll=`${hn}/siteHash.json`;function $l(){ft.default.existsSync(hn)||ft.default.mkdirSync(hn),console.info("Cache initialized")}function Bl(t){let e=dn.default.createHash("sha256");return e.update(JSON.stringify(t)),`${hn}/${e.digest("hex")}`}function Ul(t){let e=dn.default.randomBytes(16).toString("hex"),r=dn.default.createHash("sha256");return r.update(`${t}${e}`),r.digest("hex")}function Xl(t,e){let r=typeof e=="string"?e:JSON.stringify(e),n=Bl(t),i=Vi.default.dirname(n);ft.default.existsSync(i)||ft.default.mkdirSync(i,{recursive:!0}),ft.default.writeFileSync(n,r,"utf8")}function Hl(t){try{let e=Bl(t);return Ki.default.readJSONSync(e,{encoding:"utf-8"})}catch{return null}}function Pg(){try{return Ki.default.readJSONSync(Ll,{encoding:"utf-8"})||{}}catch{return{}}}function Gl(t,e){let r=Pg(),n=r[t],i=e||n||new Date().valueOf();return i!==n&&(r[t]=i,ft.default.writeFileSync(Ll,JSON.stringify(r),{encoding:"utf-8"})),i.toString()}var ly=T(Yt()),Qf=T(Xe()),Ze=T(Ft()),Zf=T(kf()),bs=T(vs());var En="10.3.17";Qf.default.config();var fy=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS),ed=bs.default.sync(__dirname),td=bs.default.sync();function _s(t){let e=t.length,r=t.length+2,n=" ".repeat(Math.floor((r-e)/2)),i=`\u256D${"\u2500".repeat(r)}\u256E
28
+ `)),process.exit(1)}}},Ct=new Ai;var sd=T(Si()),od=T(Yt()),ad=T(Xe());var dn=T(require("node:crypto")),ft=T(require("node:fs")),Vi=T(require("node:path")),Ki=T(Ft()),hn=Vi.default.resolve(__dirname,"./../apiCache"),Ll=`${hn}/siteHash.json`;function $l(){ft.default.existsSync(hn)||ft.default.mkdirSync(hn),console.info("Cache initialized")}function Bl(t){let e=dn.default.createHash("sha256");return e.update(JSON.stringify(t)),`${hn}/${e.digest("hex")}`}function Ul(t){let e=dn.default.randomBytes(16).toString("hex"),r=dn.default.createHash("sha256");return r.update(`${t}${e}`),r.digest("hex")}function Xl(t,e){let r=typeof e=="string"?e:JSON.stringify(e),n=Bl(t),i=Vi.default.dirname(n);ft.default.existsSync(i)||ft.default.mkdirSync(i,{recursive:!0}),ft.default.writeFileSync(n,r,"utf8")}function Hl(t){try{let e=Bl(t);return Ki.default.readJSONSync(e,{encoding:"utf-8"})}catch{return null}}function Pg(){try{return Ki.default.readJSONSync(Ll,{encoding:"utf-8"})||{}}catch{return{}}}function Gl(t,e){let r=Pg(),n=r[t],i=e||n||new Date().valueOf();return i!==n&&(r[t]=i,ft.default.writeFileSync(Ll,JSON.stringify(r),{encoding:"utf-8"})),i.toString()}var ly=T(Yt()),Qf=T(Xe()),Ze=T(Ft()),Zf=T(kf()),bs=T(vs());var En="10.3.19";Qf.default.config();var fy=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS),ed=bs.default.sync(__dirname),td=bs.default.sync();function _s(t){let e=t.length,r=t.length+2,n=" ".repeat(Math.floor((r-e)/2)),i=`\u256D${"\u2500".repeat(r)}\u256E
29
29
  `,s=`
30
30
  \u2570${"\u2500".repeat(r)}\u256F`,o=`\u2502${n}${t}${n}\u2502`;console.log(`${i}${o}${s}`)}function je(t){fy&&console.info(t.replace(/(\s)\s+/g,"$1"))}function rd(t){return new Promise(e=>setTimeout(e,t))}function ws(t,e=3){return(t/1e3).toFixed(e)}function xs(t){return"site"in t&&t.site?t?.site:void 0}function Ss(t,e){for(let r in t)e.includes(r)?delete t[r]:typeof t[r]=="object"&&Ss(t[r],e)}function Es(t){return t.map(({name:e,id:r})=>`${e} (${r})`).join(", ")}function Cs(t){let e=`
31
31
  \xB7\xB7
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@griddo/cx",
3
3
  "description": "Griddo SSG based on Gatsby",
4
- "version": "10.3.17",
4
+ "version": "10.3.19",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Diego M. Béjar <diego.bejar@secuoyas.com>",
@@ -70,7 +70,7 @@
70
70
  "react-helmet": "^6.0.0"
71
71
  },
72
72
  "devDependencies": {
73
- "@griddo/eslint-config-back": "^10.3.17",
73
+ "@griddo/eslint-config-back": "^10.3.19",
74
74
  "@types/babel__core": "^7.20.0",
75
75
  "@types/babel__preset-env": "^7.9.2",
76
76
  "@types/csvtojson": "^2.0.0",
@@ -117,5 +117,5 @@
117
117
  "publishConfig": {
118
118
  "access": "public"
119
119
  },
120
- "gitHead": "bd2105a28500aaf36438ce253dae04ede9465e02"
120
+ "gitHead": "7528f70fec302460e645be69d6b7765ac7e45c10"
121
121
  }