@zuplo/graphql 5.1904.0 → 5.1909.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.minified.js +1 -1
- package/package.json +1 -1
package/index.minified.js
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* DEALINGS IN THE SOFTWARE.
|
|
23
23
|
*--------------------------------------------------------------------------------------------*/
|
|
24
24
|
|
|
25
|
-
"use strict";var uv=Object.create;var xi=Object.defineProperty;var lv=Object.getOwnPropertyDescriptor;var dv=Object.getOwnPropertyNames;var pv=Object.getPrototypeOf,fv=Object.prototype.hasOwnProperty;var o=(t,e)=>xi(t,"name",{value:e,configurable:!0});var D=(t,e)=>()=>(t&&(e=t(t=0)),e);var _=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ko=(t,e)=>{for(var r in e)xi(t,r,{get:e[r],enumerable:!0})},Hh=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of dv(e))!fv.call(t,i)&&i!==r&&xi(t,i,{get:()=>e[i],enumerable:!(n=lv(e,i))||n.enumerable});return t};var Fh=(t,e,r)=>(r=t!=null?uv(pv(t)):{},Hh(e||!t||!t.__esModule?xi(r,"default",{value:t,enumerable:!0}):r,t)),Ho=t=>Hh(xi({},"__esModule",{value:!0}),t);var k=_(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.FeatureNotEnabledError=Rt.ConfigurationError=Rt.RuntimeError=Rt.SystemError=void 0;var Xu=class extends Error{static{o(this,"SystemError")}constructor(e,r){super(e,r),this.name="InternalError"}};Rt.SystemError=Xu;var Li=class extends Error{static{o(this,"RuntimeError")}extensionMembers;constructor(e,r){typeof e=="string"?super(e,r):(super(e.message,r),this.extensionMembers=e.extensionMembers),this.name="RuntimeError"}};Rt.RuntimeError=Li;var el=class extends Li{static{o(this,"ConfigurationError")}constructor(e,r){super(e,r),this.name="ConfigurationError"}};Rt.ConfigurationError=el;var tl=class extends Li{static{o(this,"FeatureNotEnabledError")}constructor(e,r){super(e,r),this.name="FeatureNotEnabledError"}};Rt.FeatureNotEnabledError=tl});var X=_(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.Environment=void 0;var hv=k(),rl=class t{static{o(this,"Environment")}config;static#e;static initialize(e,r){this.#e||(this.#e=new t(e,r))}static get instance(){if(!this.#e)throw new hv.SystemError("Environment has not been initialized");return this.#e}constructor(e,r){let n;try{if(r.__ZUPLO_CONFIG){let i=atob(r.__ZUPLO_CONFIG);n=JSON.parse(i)}}catch{console.warn("Failed to parse runtime configuration")}this.config=n??{},this.build=e,this.runtime=r}build;runtime;get deploymentName(){return this.runtime.__ZUPLO_DEPLOYMENT_NAME??this.config.deployment_name??void 0}get useSha256ServiceRouting(){return this.config.use_sha256_service_routing??void 0}get useProxyForFetchFromZups(){return this.config.use_proxy_for_fetch_from_zups??void 0}get devPortalBaseUrl(){return this.runtime.__ZUPLO_DEV_PORTAL_URL??this.config.dev_portal_url??"https://dev-portal-v4-1.zuplo.com"}get buildAssetsUrl(){return this.runtime.__ZUPLO_BUILD_ASSETS_URL??this.config.build_assets_url??"https://build-assets.zuplo.dev"}get remoteLogToken(){return this.runtime.__ZUPLO_REMOTE_LOG_TOKEN??this.config.remote_log_token??void 0}get managementApiURL(){return this.runtime.__ZUPLO_MANAGEMENT_API_URL??this.config.management_api_url??"https://api.zuplo.com"}get cdnURL(){return this.runtime.__ZUPLO_CDN_URL??this.config.cdn_url??"https://cdn.zuplo.com"}get remoteLogURL(){return this.runtime.__ZUPLO_REMOTE_LOG_URL??this.config.log_event_api??"https://ellie.zuplo.com"}get loggingId(){return this.runtime.__ZUPLO_LOGGING_ID??this.config.logging_id??void 0}get redisURL(){return this.runtime.__ZUPLO_REDIS_URL??this.config.redis_proxy_url??"https://redis-proxy.zuplo.com"}get apiKeyServiceUrl(){return this.runtime.__ZUPLO_API_KEY_SERVICE_URL??this.config.api_key_service_url??"https://apikey.zuplo.com"}get meteringServiceUrl(){return this.config.metering_service_url??"https://meters.zuplo.com"}get authApiJWT(){return this.runtime.__ZUPLO_AUTH_API_JWT??void 0}get userLogLevel(){return this.runtime.ZUPLO_LOG_LEVEL??this.runtime.__ZUPLO_LOG_LEVEL??this.config.user_log_level??"debug"}get systemLogLevel(){return this.runtime.__ZUPLO_LOG_LEVEL??this.config.system_log_level??"debug"}get logFormat(){return this.runtime.__ZUPLO_LOG_FORMAT??this.config.log_format??"cloudflare"}get isCloudflare(){return this.runtime.__ZUPLO_RUNTIME_TYPE?this.runtime.__ZUPLO_RUNTIME_TYPE==="cloudflare":this.config.runtime_type?this.config.runtime_type==="cloudflare":typeof WebSocketPair=="function"}get isDeno(){return this.runtime.__ZUPLO_RUNTIME_TYPE?this.runtime.__ZUPLO_RUNTIME_TYPE==="deno":this.config.runtime_type?this.config.runtime_type==="deno":typeof WebSocketPair!="function"}get isLocalDevelopment(){return this.build.ENVIRONMENT_TYPE?this.build.ENVIRONMENT_TYPE==="LOCAL_DEVELOPMENT":!1}get systemUserAgent(){return`Zuplo/${this.build.ZUPLO_VERSION}`}get loggingEnvironmentType(){return this.isCloudflare?"edge":this.isLocalDevelopment?"local":this.isDeno?"working-copy":"unknown"}get loggingEnvironmentStage(){return this.build.ENVIRONMENT_TYPE==="PRODUCTION"?"production":this.build.ENVIRONMENT_TYPE==="PREVIEW"?"preview":this.isLocalDevelopment?"local":this.isDeno?"working-copy":"unknown"}};Fo.Environment=rl});var Vh=_(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});var qh=X();Function.prototype.toString=function(){return"[native code]"};var qo=globalThis,$h=qo.caches;if($h){let t=$h.open;qo.caches.open=function(e){let r=qh.Environment.instance.deploymentName??qh.Environment.instance.build.BUILD_ID;return t.call(this,`${r}-${e}`)},delete qo.caches.default,Object.freeze(qo.caches)}});var ol=_($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.MemoryCache=void 0;var mv=1e4,yv=1e3,Bh=new Map,nl=class{static{o(this,"InnerCache")}constructor(e){this.#e=e.maxSize}#e;#t=0;#r=new Map;#n=[];get(e){let r=this.#r.get(e);if(!r)return;let n=Date.now();if(n>r.expiresAt){this.#r.delete(e);return}return r.lastUsed=n,this.#i(),r?.data}put(e,r,n){if(n<=0)return;if(this.#r.size>=this.#e){let a=this.#n.shift();a&&this.#r.delete(a)}let i=Date.now(),s={created:i,lastUsed:i,expiresAt:i+n*1e3,data:r};this.#n.push(e),this.#r.set(e,s)}delete(e){let r=this.#n.indexOf(e);r>=0&&this.#n.slice(r,1),this.#r.delete(e)}get size(){return this.#r.size}#i(){let e=Date.now();this.#t+mv*1e3>e&&(this.purge(),this.#t=e)}purge(){let e=Date.now();this.#r.forEach((r,n)=>{r.expiresAt>=e&&this.#r.delete(n)})}},il=class{static{o(this,"MemoryCache")}constructor(e,r={maxSize:yv}){this.name=e;let n=Bh.get(e);n||(n=new nl(r),Bh.set(e,n)),this.#e=n}name;#e;get(e){return this.#e.get(e)}put(e,r,n){return this.#e.put(e,r,n)}delete(e){return this.#e.delete(e)}get size(){return this.#e.size}purge(){this.#e.purge()}};$o.MemoryCache=il});var cl=_(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.ZoneCache=void 0;var sl="__zuplo-expiry-header",al=class{static{o(this,"ZoneCache")}constructor(e,r){this.#t=e,this.#e=r}#e;#t;#r;async#n(){return this.#r||(this.#r=await caches.open(this.#t)),this.#r}#i(e){return new Request(`https://zone-cache.zuplo.app/${encodeURIComponent(e)}`)}async get(e){try{let r=await this.#n(),n=this.#i(e),i=await r.match(n);if(!i)return;let s=i.headers.get(sl);if(!s){try{await r.delete(n)}catch(u){this.logDebug("Handled failure to delete with CF cache because of missing expiryHeader",u),await this.deleteFallback(e)}return}let a=parseInt(s);if(Date.now()>=a){try{await r.delete(n)}catch(u){this.logDebug("Handled failure to delete with CF cache because of expiration",u),await this.deleteFallback(e)}return}return await i.json()}catch(r){this.logDebug(r)}}async put(e,r,n){let i=new Headers({"cache-control":`s-maxage=${n}, must-revalidate`,"content-type":"application/json"});i.set(sl,`${Date.now()+n*1e3}`);let s=await this.#n(),a=this.#i(e),c=new Response(JSON.stringify(r),{headers:i});await s.put(a,c)}async delete(e){let r=await this.#n(),n=this.#i(e);try{await r.delete(n)}catch(i){this.logDebug("Handled failure to delete with CF cache due to explicit delete call",i),await this.deleteFallback(e)}}async deleteFallback(e){let r=new Headers({"Cache-Control":"s-maxage=0, must-revalidate"});r.set(sl,`${Date.now()}`);let n=await this.#n(),i=this.#i(e),s=new Response("",{headers:r});await n.put(i,s)}logDebug(...e){"logger"in this.#e?this.#e.logger?.debug(`Error in ZoneCache: '${this.#t}'`,e):"log"in this.#e&&this.#e.log.debug(`Error in ZoneCache: '${this.#t}'`,e)}};jo.ZoneCache=al});var Jt=_(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.MemoryZoneReadThroughCache=void 0;var gv=ol(),bv=cl(),ul=class{static{o(this,"MemoryZoneReadThroughCache")}constructor(e,r){let n=`f6726488-fd18-4b7f-9c30-6070565e8042-${e}`;this.#e=e,this.#t=new gv.MemoryCache(n),this.#r=new bv.ZoneCache(n,r),this.#n=r}#e;#t;#r;#n;async get(e){let r=this.#t.get(e);if(r)return r;let n=await this.#r.get(e);if(n){let i=Math.floor((n.expires-Date.now())/1e3);if(i>0)return this.#t.put(e,n.data,i),n.data}}put(e,r,n){this.#t.put(e,r,n);let i={data:r,expires:Date.now()+n*1e3},s=this.#r.put(e,i,n).catch(a=>{this.#n.log.error(`Error in MemoryZoneReadThroughCache: '${this.#e}'`,a)});this.#n.waitUntil(s)}};Vo.MemoryZoneReadThroughCache=ul});var Vr=_(x=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});x.DYNAMIC_METERS_CONTEXT_DATA=x.METERING_SUBSCRIPTION_CONTEXT_DATA=x.INTERNAL_HEADERS_TO_REMOVE=x.VENDOR_HEADERS_TO_ALLOW=x.VENDOR_HEADER_PREFIXES=x.DISPATCH_HEADERS_TO_REMOVE=x.ZP_TIMEZONE_HEADER=x.ZP_REGION_CODE_HEADER=x.ZP_REGION_HEADER=x.ZP_METRO_CODE_HEADER=x.ZP_POSTAL_CODE_HEADER=x.ZP_COLO_HEADER=x.ZP_AS_ORG_HEADER=x.ZP_ASN_HEADER=x.TRUE_CLIENT_IP=x.ZP_IP_LATITUDE_HEADER=x.ZP_IP_LONGITUDE_HEADER=x.ZP_IP_COUNTRY_HEADER=x.ZP_IP_CONTINENT_HEADER=x.ZP_IP_CITY_HEADER=x.CF_TIMEZONE_HEADER=x.CF_POSTAL_CODE_HEADER=x.CF_METRO_CODE_HEADER=x.CF_REGION_CODE_HEADER=x.CF_IP_REGION_HEADER=x.CF_IP_LATITUDE_HEADER=x.CF_IP_LONGITUDE_HEADER=x.CF_IP_COUNTRY_HEADER=x.CF_IP_CONTINENT_HEADER=x.CF_IP_CITY_HEADER=x.X_REAL_IP_HEADER=x.RAY_ID_HEADER=x.BODY_REMOVED_HEADER=x.REQUEST_ID_HEADER=x.LEGACY_REQUEST_ID_HEADER=void 0;x.LEGACY_REQUEST_ID_HEADER="zuplo-request-id";x.REQUEST_ID_HEADER="zp-rid";x.BODY_REMOVED_HEADER="zp-body-removed";x.RAY_ID_HEADER="cf-ray";x.X_REAL_IP_HEADER="x-real-ip";x.CF_IP_CITY_HEADER="cf-ipcity";x.CF_IP_CONTINENT_HEADER="cf-ipcontinent";x.CF_IP_COUNTRY_HEADER="cf-ipcountry";x.CF_IP_LONGITUDE_HEADER="cf-iplongitude";x.CF_IP_LATITUDE_HEADER="cf-iplatitude";x.CF_IP_REGION_HEADER="cf-region";x.CF_REGION_CODE_HEADER="cf-region-code";x.CF_METRO_CODE_HEADER="cf-metro-code";x.CF_POSTAL_CODE_HEADER="cf-postal-code";x.CF_TIMEZONE_HEADER="cf-timezone";x.ZP_IP_CITY_HEADER="zp-ipcity";x.ZP_IP_CONTINENT_HEADER="zp-ipcontinent";x.ZP_IP_COUNTRY_HEADER="zp-ipcountry";x.ZP_IP_LONGITUDE_HEADER="zp-iplongitude";x.ZP_IP_LATITUDE_HEADER="zp-iplatitude";x.TRUE_CLIENT_IP="true-client-ip";x.ZP_ASN_HEADER="zp-asn";x.ZP_AS_ORG_HEADER="zp-asorg";x.ZP_COLO_HEADER="zp-colo";x.ZP_POSTAL_CODE_HEADER="zp-postalcode";x.ZP_METRO_CODE_HEADER="zp-metrocode";x.ZP_REGION_HEADER="zp-region";x.ZP_REGION_CODE_HEADER="zp-regioncode";x.ZP_TIMEZONE_HEADER="zp-timezone";x.DISPATCH_HEADERS_TO_REMOVE=[x.CF_IP_CITY_HEADER,x.CF_IP_CONTINENT_HEADER,x.CF_IP_COUNTRY_HEADER,x.CF_IP_LONGITUDE_HEADER,x.CF_IP_LATITUDE_HEADER,x.ZP_ASN_HEADER,x.ZP_AS_ORG_HEADER,x.ZP_COLO_HEADER,x.ZP_POSTAL_CODE_HEADER,x.ZP_METRO_CODE_HEADER,x.ZP_REGION_HEADER,x.ZP_REGION_CODE_HEADER,x.ZP_TIMEZONE_HEADER];x.VENDOR_HEADER_PREFIXES=["zp-","cf-"];x.VENDOR_HEADERS_TO_ALLOW=[x.REQUEST_ID_HEADER,x.RAY_ID_HEADER,x.BODY_REMOVED_HEADER];x.INTERNAL_HEADERS_TO_REMOVE=["x-b3-sampled","x-b3-spanid","x-b3-traceid","x-envoy-attempt-count","x-envoy-decorator-operation","x-envoy-external-address","x-envoy-peer-metadata","x-envoy-peer-metadata-id","k-proxy-request","fly-client-ip","fly-forwarded-port","fly-forwarded-proto","fly-forwarded-ssl","fly-region","fly-request-id","fly-traceparent","fly-tracestate"];x.METERING_SUBSCRIPTION_CONTEXT_DATA="zuplo_meters_d7831150-6d8a-416d-b920-4a7bec209a49";x.DYNAMIC_METERS_CONTEXT_DATA="zuplo_dynamic_meters_0c8cdc26-2514-4756-8adb-474a6e103d91"});var Xh=_(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.generateColor=N.colorFunctions=N.stripColor=N.bgRgb24=N.rgb24=N.bgRgb8=N.rgb8=N.bgBrightWhite=N.bgBrightCyan=N.bgBrightMagenta=N.bgBrightBlue=N.bgBrightYellow=N.bgBrightGreen=N.bgBrightRed=N.bgBrightBlack=N.bgWhite=N.bgCyan=N.bgMagenta=N.bgBlue=N.bgYellow=N.bgGreen=N.bgRed=N.bgBlack=N.brightWhite=N.brightCyan=N.brightMagenta=N.brightBlue=N.brightYellow=N.brightGreen=N.brightRed=N.brightBlack=N.gray=N.white=N.cyan=N.magenta=N.blue=N.yellow=N.green=N.red=N.black=N.strikethrough=N.hidden=N.inverse=N.underline=N.italic=N.dim=N.bold=N.reset=N.getColorEnabled=N.setColorEnabled=void 0;var Gh=!0,ll=!Gh;function _v(t){Gh||(ll=t)}o(_v,"setColorEnabled");N.setColorEnabled=_v;function Ev(){return ll}o(Ev,"getColorEnabled");N.getColorEnabled=Ev;function z(t,e){return{open:`\x1B[${t.join(";")}m`,close:`\x1B[${e}m`,regexp:new RegExp(`\\x1b\\[${e}m`,"g")}}o(z,"code");function W(t,e){return ll?`${e.open}${t.replace(e.regexp,e.open)}${e.close}`:t}o(W,"run");function wv(t){return W(t,z([0],0))}o(wv,"reset");N.reset=wv;function vv(t){return W(t,z([1],22))}o(vv,"bold");N.bold=vv;function Tv(t){return W(t,z([2],22))}o(Tv,"dim");N.dim=Tv;function Sv(t){return W(t,z([3],23))}o(Sv,"italic");N.italic=Sv;function Iv(t){return W(t,z([4],24))}o(Iv,"underline");N.underline=Iv;function Pv(t){return W(t,z([7],27))}o(Pv,"inverse");N.inverse=Pv;function Av(t){return W(t,z([8],28))}o(Av,"hidden");N.hidden=Av;function Ov(t){return W(t,z([9],29))}o(Ov,"strikethrough");N.strikethrough=Ov;function Rv(t){return W(t,z([30],39))}o(Rv,"black");N.black=Rv;function Kh(t){return W(t,z([31],39))}o(Kh,"red");N.red=Kh;function Jh(t){return W(t,z([32],39))}o(Jh,"green");N.green=Jh;function zh(t){return W(t,z([33],39))}o(zh,"yellow");N.yellow=zh;function Wh(t){return W(t,z([34],39))}o(Wh,"blue");N.blue=Wh;function Qh(t){return W(t,z([35],39))}o(Qh,"magenta");N.magenta=Qh;function Zh(t){return W(t,z([36],39))}o(Zh,"cyan");N.cyan=Zh;function Nv(t){return W(t,z([37],39))}o(Nv,"white");N.white=Nv;function Cv(t){return Yh(t)}o(Cv,"gray");N.gray=Cv;function Yh(t){return W(t,z([90],39))}o(Yh,"brightBlack");N.brightBlack=Yh;function xv(t){return W(t,z([91],39))}o(xv,"brightRed");N.brightRed=xv;function Lv(t){return W(t,z([92],39))}o(Lv,"brightGreen");N.brightGreen=Lv;function Dv(t){return W(t,z([93],39))}o(Dv,"brightYellow");N.brightYellow=Dv;function Uv(t){return W(t,z([94],39))}o(Uv,"brightBlue");N.brightBlue=Uv;function Mv(t){return W(t,z([95],39))}o(Mv,"brightMagenta");N.brightMagenta=Mv;function kv(t){return W(t,z([96],39))}o(kv,"brightCyan");N.brightCyan=kv;function Hv(t){return W(t,z([97],39))}o(Hv,"brightWhite");N.brightWhite=Hv;function Fv(t){return W(t,z([40],49))}o(Fv,"bgBlack");N.bgBlack=Fv;function qv(t){return W(t,z([41],49))}o(qv,"bgRed");N.bgRed=qv;function $v(t){return W(t,z([42],49))}o($v,"bgGreen");N.bgGreen=$v;function jv(t){return W(t,z([43],49))}o(jv,"bgYellow");N.bgYellow=jv;function Vv(t){return W(t,z([44],49))}o(Vv,"bgBlue");N.bgBlue=Vv;function Bv(t){return W(t,z([45],49))}o(Bv,"bgMagenta");N.bgMagenta=Bv;function Gv(t){return W(t,z([46],49))}o(Gv,"bgCyan");N.bgCyan=Gv;function Kv(t){return W(t,z([47],49))}o(Kv,"bgWhite");N.bgWhite=Kv;function Jv(t){return W(t,z([100],49))}o(Jv,"bgBrightBlack");N.bgBrightBlack=Jv;function zv(t){return W(t,z([101],49))}o(zv,"bgBrightRed");N.bgBrightRed=zv;function Wv(t){return W(t,z([102],49))}o(Wv,"bgBrightGreen");N.bgBrightGreen=Wv;function Qv(t){return W(t,z([103],49))}o(Qv,"bgBrightYellow");N.bgBrightYellow=Qv;function Zv(t){return W(t,z([104],49))}o(Zv,"bgBrightBlue");N.bgBrightBlue=Zv;function Yv(t){return W(t,z([105],49))}o(Yv,"bgBrightMagenta");N.bgBrightMagenta=Yv;function Xv(t){return W(t,z([106],49))}o(Xv,"bgBrightCyan");N.bgBrightCyan=Xv;function eT(t){return W(t,z([107],49))}o(eT,"bgBrightWhite");N.bgBrightWhite=eT;function sr(t,e=255,r=0){return Math.trunc(Math.max(Math.min(t,e),r))}o(sr,"clampAndTruncate");function tT(t,e){return W(t,z([38,5,sr(e)],39))}o(tT,"rgb8");N.rgb8=tT;function rT(t,e){return W(t,z([48,5,sr(e)],49))}o(rT,"bgRgb8");N.bgRgb8=rT;function nT(t,e){return typeof e=="number"?W(t,z([38,2,e>>16&255,e>>8&255,e&255],39)):W(t,z([38,2,sr(e.r),sr(e.g),sr(e.b)],39))}o(nT,"rgb24");N.rgb24=nT;function iT(t,e){return typeof e=="number"?W(t,z([48,2,e>>16&255,e>>8&255,e&255],49)):W(t,z([48,2,sr(e.r),sr(e.g),sr(e.b)],49))}o(iT,"bgRgb24");N.bgRgb24=iT;var oT=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|"),"g");function sT(t){return t.replace(oT,"")}o(sT,"stripColor");N.stripColor=sT;N.colorFunctions=[Kh,Jh,zh,Wh,Qh,Zh];function aT(t){let e=0,r=t.length,n=0;if(r>0)for(;n<r;)e=(e<<5)-e+t.charCodeAt(n++)|0;return e}o(aT,"hashCode");function cT(t){let e=Math.abs(aT(t));return N.colorFunctions[e%N.colorFunctions.length]}o(cT,"generateColor");N.generateColor=cT});var em=_(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.format=void 0;function uT(t,e,...r){let n=0,i=r.length,s=String(e).replace(/%[sdjoO%]/g,a=>{if(a==="%%")return"%";if(n>=i)return a;switch(a){case"%s":return String(r[n++]);case"%d":return Number(r[n++]).toString();case"%o":return t(r[n++]).split(`
|
|
25
|
+
"use strict";var uv=Object.create;var xi=Object.defineProperty;var lv=Object.getOwnPropertyDescriptor;var dv=Object.getOwnPropertyNames;var pv=Object.getPrototypeOf,fv=Object.prototype.hasOwnProperty;var o=(t,e)=>xi(t,"name",{value:e,configurable:!0});var D=(t,e)=>()=>(t&&(e=t(t=0)),e);var _=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ko=(t,e)=>{for(var r in e)xi(t,r,{get:e[r],enumerable:!0})},Hh=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of dv(e))!fv.call(t,i)&&i!==r&&xi(t,i,{get:()=>e[i],enumerable:!(n=lv(e,i))||n.enumerable});return t};var Fh=(t,e,r)=>(r=t!=null?uv(pv(t)):{},Hh(e||!t||!t.__esModule?xi(r,"default",{value:t,enumerable:!0}):r,t)),Ho=t=>Hh(xi({},"__esModule",{value:!0}),t);var k=_(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.FeatureNotEnabledError=Rt.ConfigurationError=Rt.RuntimeError=Rt.SystemError=void 0;var Xu=class extends Error{static{o(this,"SystemError")}constructor(e,r){super(e,r),this.name="InternalError"}};Rt.SystemError=Xu;var Li=class extends Error{static{o(this,"RuntimeError")}extensionMembers;constructor(e,r){typeof e=="string"?super(e,r):(super(e.message,r),this.extensionMembers=e.extensionMembers),this.name="RuntimeError"}};Rt.RuntimeError=Li;var el=class extends Li{static{o(this,"ConfigurationError")}constructor(e,r){super(e,r),this.name="ConfigurationError"}};Rt.ConfigurationError=el;var tl=class extends Li{static{o(this,"FeatureNotEnabledError")}constructor(e,r){super(e,r),this.name="FeatureNotEnabledError"}};Rt.FeatureNotEnabledError=tl});var X=_(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.Environment=void 0;var hv=k(),rl=class t{static{o(this,"Environment")}config;static#e;static initialize(e,r){this.#e||(this.#e=new t(e,r))}static get instance(){if(!this.#e)throw new hv.SystemError("Environment has not been initialized");return this.#e}constructor(e,r){let n;try{if(r.__ZUPLO_CONFIG){let i=atob(r.__ZUPLO_CONFIG);n=JSON.parse(i)}}catch{console.warn("Failed to parse runtime configuration")}this.config=n??{},this.build=e,this.runtime=r}build;runtime;get deploymentName(){return this.runtime.__ZUPLO_DEPLOYMENT_NAME??this.config.deployment_name??void 0}get useSha256ServiceRouting(){return this.config.use_sha256_service_routing??void 0}get useProxyForFetchFromZups(){return this.config.use_proxy_for_fetch_from_zups??void 0}get devPortalBaseUrl(){return this.runtime.__ZUPLO_DEV_PORTAL_URL??this.config.dev_portal_url??"https://dev-portal-v4-1.zuplo.com"}get buildAssetsUrl(){return this.runtime.__ZUPLO_BUILD_ASSETS_URL??this.config.build_assets_url??"https://build-assets.zuplo.com"}get remoteLogToken(){return this.runtime.__ZUPLO_REMOTE_LOG_TOKEN??this.config.remote_log_token??void 0}get managementApiURL(){return this.runtime.__ZUPLO_MANAGEMENT_API_URL??this.config.management_api_url??"https://api.zuplo.com"}get cdnURL(){return this.runtime.__ZUPLO_CDN_URL??this.config.cdn_url??"https://cdn.zuplo.com"}get remoteLogURL(){return this.runtime.__ZUPLO_REMOTE_LOG_URL??this.config.log_event_api??"https://ellie.zuplo.com"}get loggingId(){return this.runtime.__ZUPLO_LOGGING_ID??this.config.logging_id??void 0}get redisURL(){return this.runtime.__ZUPLO_REDIS_URL??this.config.redis_proxy_url??"https://redis-proxy.zuplo.com"}get apiKeyServiceUrl(){return this.runtime.__ZUPLO_API_KEY_SERVICE_URL??this.config.api_key_service_url??"https://apikey.zuplo.com"}get meteringServiceUrl(){return this.config.metering_service_url??"https://meters.zuplo.com"}get authApiJWT(){return this.runtime.__ZUPLO_AUTH_API_JWT??void 0}get userLogLevel(){return this.runtime.ZUPLO_LOG_LEVEL??this.runtime.__ZUPLO_LOG_LEVEL??this.config.user_log_level??"debug"}get systemLogLevel(){return this.runtime.__ZUPLO_LOG_LEVEL??this.config.system_log_level??"debug"}get logFormat(){return this.runtime.__ZUPLO_LOG_FORMAT??this.config.log_format??"cloudflare"}get isCloudflare(){return this.runtime.__ZUPLO_RUNTIME_TYPE?this.runtime.__ZUPLO_RUNTIME_TYPE==="cloudflare":this.config.runtime_type?this.config.runtime_type==="cloudflare":typeof WebSocketPair=="function"}get isDeno(){return this.runtime.__ZUPLO_RUNTIME_TYPE?this.runtime.__ZUPLO_RUNTIME_TYPE==="deno":this.config.runtime_type?this.config.runtime_type==="deno":typeof WebSocketPair!="function"}get isLocalDevelopment(){return this.build.ENVIRONMENT_TYPE?this.build.ENVIRONMENT_TYPE==="LOCAL_DEVELOPMENT":!1}get systemUserAgent(){return`Zuplo/${this.build.ZUPLO_VERSION}`}get loggingEnvironmentType(){return this.isCloudflare?"edge":this.isLocalDevelopment?"local":this.isDeno?"working-copy":"unknown"}get loggingEnvironmentStage(){return this.build.ENVIRONMENT_TYPE==="PRODUCTION"?"production":this.build.ENVIRONMENT_TYPE==="PREVIEW"?"preview":this.isLocalDevelopment?"local":this.isDeno?"working-copy":"unknown"}};Fo.Environment=rl});var Vh=_(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});var qh=X();Function.prototype.toString=function(){return"[native code]"};var qo=globalThis,$h=qo.caches;if($h){let t=$h.open;qo.caches.open=function(e){let r=qh.Environment.instance.deploymentName??qh.Environment.instance.build.BUILD_ID;return t.call(this,`${r}-${e}`)},delete qo.caches.default,Object.freeze(qo.caches)}});var ol=_($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.MemoryCache=void 0;var mv=1e4,yv=1e3,Bh=new Map,nl=class{static{o(this,"InnerCache")}constructor(e){this.#e=e.maxSize}#e;#t=0;#r=new Map;#n=[];get(e){let r=this.#r.get(e);if(!r)return;let n=Date.now();if(n>r.expiresAt){this.#r.delete(e);return}return r.lastUsed=n,this.#i(),r?.data}put(e,r,n){if(n<=0)return;if(this.#r.size>=this.#e){let a=this.#n.shift();a&&this.#r.delete(a)}let i=Date.now(),s={created:i,lastUsed:i,expiresAt:i+n*1e3,data:r};this.#n.push(e),this.#r.set(e,s)}delete(e){let r=this.#n.indexOf(e);r>=0&&this.#n.slice(r,1),this.#r.delete(e)}get size(){return this.#r.size}#i(){let e=Date.now();this.#t+mv*1e3>e&&(this.purge(),this.#t=e)}purge(){let e=Date.now();this.#r.forEach((r,n)=>{r.expiresAt>=e&&this.#r.delete(n)})}},il=class{static{o(this,"MemoryCache")}constructor(e,r={maxSize:yv}){this.name=e;let n=Bh.get(e);n||(n=new nl(r),Bh.set(e,n)),this.#e=n}name;#e;get(e){return this.#e.get(e)}put(e,r,n){return this.#e.put(e,r,n)}delete(e){return this.#e.delete(e)}get size(){return this.#e.size}purge(){this.#e.purge()}};$o.MemoryCache=il});var cl=_(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.ZoneCache=void 0;var sl="__zuplo-expiry-header",al=class{static{o(this,"ZoneCache")}constructor(e,r){this.#t=e,this.#e=r}#e;#t;#r;async#n(){return this.#r||(this.#r=await caches.open(this.#t)),this.#r}#i(e){return new Request(`https://zone-cache.zuplo.app/${encodeURIComponent(e)}`)}async get(e){try{let r=await this.#n(),n=this.#i(e),i=await r.match(n);if(!i)return;let s=i.headers.get(sl);if(!s){try{await r.delete(n)}catch(u){this.logDebug("Handled failure to delete with CF cache because of missing expiryHeader",u),await this.deleteFallback(e)}return}let a=parseInt(s);if(Date.now()>=a){try{await r.delete(n)}catch(u){this.logDebug("Handled failure to delete with CF cache because of expiration",u),await this.deleteFallback(e)}return}return await i.json()}catch(r){this.logDebug(r)}}async put(e,r,n){let i=new Headers({"cache-control":`s-maxage=${n}, must-revalidate`,"content-type":"application/json"});i.set(sl,`${Date.now()+n*1e3}`);let s=await this.#n(),a=this.#i(e),c=new Response(JSON.stringify(r),{headers:i});await s.put(a,c)}async delete(e){let r=await this.#n(),n=this.#i(e);try{await r.delete(n)}catch(i){this.logDebug("Handled failure to delete with CF cache due to explicit delete call",i),await this.deleteFallback(e)}}async deleteFallback(e){let r=new Headers({"Cache-Control":"s-maxage=0, must-revalidate"});r.set(sl,`${Date.now()}`);let n=await this.#n(),i=this.#i(e),s=new Response("",{headers:r});await n.put(i,s)}logDebug(...e){"logger"in this.#e?this.#e.logger?.debug(`Error in ZoneCache: '${this.#t}'`,e):"log"in this.#e&&this.#e.log.debug(`Error in ZoneCache: '${this.#t}'`,e)}};jo.ZoneCache=al});var Jt=_(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.MemoryZoneReadThroughCache=void 0;var gv=ol(),bv=cl(),ul=class{static{o(this,"MemoryZoneReadThroughCache")}constructor(e,r){let n=`f6726488-fd18-4b7f-9c30-6070565e8042-${e}`;this.#e=e,this.#t=new gv.MemoryCache(n),this.#r=new bv.ZoneCache(n,r),this.#n=r}#e;#t;#r;#n;async get(e){let r=this.#t.get(e);if(r)return r;let n=await this.#r.get(e);if(n){let i=Math.floor((n.expires-Date.now())/1e3);if(i>0)return this.#t.put(e,n.data,i),n.data}}put(e,r,n){this.#t.put(e,r,n);let i={data:r,expires:Date.now()+n*1e3},s=this.#r.put(e,i,n).catch(a=>{this.#n.log.error(`Error in MemoryZoneReadThroughCache: '${this.#e}'`,a)});this.#n.waitUntil(s)}};Vo.MemoryZoneReadThroughCache=ul});var Vr=_(x=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});x.DYNAMIC_METERS_CONTEXT_DATA=x.METERING_SUBSCRIPTION_CONTEXT_DATA=x.INTERNAL_HEADERS_TO_REMOVE=x.VENDOR_HEADERS_TO_ALLOW=x.VENDOR_HEADER_PREFIXES=x.DISPATCH_HEADERS_TO_REMOVE=x.ZP_TIMEZONE_HEADER=x.ZP_REGION_CODE_HEADER=x.ZP_REGION_HEADER=x.ZP_METRO_CODE_HEADER=x.ZP_POSTAL_CODE_HEADER=x.ZP_COLO_HEADER=x.ZP_AS_ORG_HEADER=x.ZP_ASN_HEADER=x.TRUE_CLIENT_IP=x.ZP_IP_LATITUDE_HEADER=x.ZP_IP_LONGITUDE_HEADER=x.ZP_IP_COUNTRY_HEADER=x.ZP_IP_CONTINENT_HEADER=x.ZP_IP_CITY_HEADER=x.CF_TIMEZONE_HEADER=x.CF_POSTAL_CODE_HEADER=x.CF_METRO_CODE_HEADER=x.CF_REGION_CODE_HEADER=x.CF_IP_REGION_HEADER=x.CF_IP_LATITUDE_HEADER=x.CF_IP_LONGITUDE_HEADER=x.CF_IP_COUNTRY_HEADER=x.CF_IP_CONTINENT_HEADER=x.CF_IP_CITY_HEADER=x.X_REAL_IP_HEADER=x.RAY_ID_HEADER=x.BODY_REMOVED_HEADER=x.REQUEST_ID_HEADER=x.LEGACY_REQUEST_ID_HEADER=void 0;x.LEGACY_REQUEST_ID_HEADER="zuplo-request-id";x.REQUEST_ID_HEADER="zp-rid";x.BODY_REMOVED_HEADER="zp-body-removed";x.RAY_ID_HEADER="cf-ray";x.X_REAL_IP_HEADER="x-real-ip";x.CF_IP_CITY_HEADER="cf-ipcity";x.CF_IP_CONTINENT_HEADER="cf-ipcontinent";x.CF_IP_COUNTRY_HEADER="cf-ipcountry";x.CF_IP_LONGITUDE_HEADER="cf-iplongitude";x.CF_IP_LATITUDE_HEADER="cf-iplatitude";x.CF_IP_REGION_HEADER="cf-region";x.CF_REGION_CODE_HEADER="cf-region-code";x.CF_METRO_CODE_HEADER="cf-metro-code";x.CF_POSTAL_CODE_HEADER="cf-postal-code";x.CF_TIMEZONE_HEADER="cf-timezone";x.ZP_IP_CITY_HEADER="zp-ipcity";x.ZP_IP_CONTINENT_HEADER="zp-ipcontinent";x.ZP_IP_COUNTRY_HEADER="zp-ipcountry";x.ZP_IP_LONGITUDE_HEADER="zp-iplongitude";x.ZP_IP_LATITUDE_HEADER="zp-iplatitude";x.TRUE_CLIENT_IP="true-client-ip";x.ZP_ASN_HEADER="zp-asn";x.ZP_AS_ORG_HEADER="zp-asorg";x.ZP_COLO_HEADER="zp-colo";x.ZP_POSTAL_CODE_HEADER="zp-postalcode";x.ZP_METRO_CODE_HEADER="zp-metrocode";x.ZP_REGION_HEADER="zp-region";x.ZP_REGION_CODE_HEADER="zp-regioncode";x.ZP_TIMEZONE_HEADER="zp-timezone";x.DISPATCH_HEADERS_TO_REMOVE=[x.CF_IP_CITY_HEADER,x.CF_IP_CONTINENT_HEADER,x.CF_IP_COUNTRY_HEADER,x.CF_IP_LONGITUDE_HEADER,x.CF_IP_LATITUDE_HEADER,x.ZP_ASN_HEADER,x.ZP_AS_ORG_HEADER,x.ZP_COLO_HEADER,x.ZP_POSTAL_CODE_HEADER,x.ZP_METRO_CODE_HEADER,x.ZP_REGION_HEADER,x.ZP_REGION_CODE_HEADER,x.ZP_TIMEZONE_HEADER];x.VENDOR_HEADER_PREFIXES=["zp-","cf-"];x.VENDOR_HEADERS_TO_ALLOW=[x.REQUEST_ID_HEADER,x.RAY_ID_HEADER,x.BODY_REMOVED_HEADER];x.INTERNAL_HEADERS_TO_REMOVE=["x-b3-sampled","x-b3-spanid","x-b3-traceid","x-envoy-attempt-count","x-envoy-decorator-operation","x-envoy-external-address","x-envoy-peer-metadata","x-envoy-peer-metadata-id","k-proxy-request","fly-client-ip","fly-forwarded-port","fly-forwarded-proto","fly-forwarded-ssl","fly-region","fly-request-id","fly-traceparent","fly-tracestate"];x.METERING_SUBSCRIPTION_CONTEXT_DATA="zuplo_meters_d7831150-6d8a-416d-b920-4a7bec209a49";x.DYNAMIC_METERS_CONTEXT_DATA="zuplo_dynamic_meters_0c8cdc26-2514-4756-8adb-474a6e103d91"});var Xh=_(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.generateColor=N.colorFunctions=N.stripColor=N.bgRgb24=N.rgb24=N.bgRgb8=N.rgb8=N.bgBrightWhite=N.bgBrightCyan=N.bgBrightMagenta=N.bgBrightBlue=N.bgBrightYellow=N.bgBrightGreen=N.bgBrightRed=N.bgBrightBlack=N.bgWhite=N.bgCyan=N.bgMagenta=N.bgBlue=N.bgYellow=N.bgGreen=N.bgRed=N.bgBlack=N.brightWhite=N.brightCyan=N.brightMagenta=N.brightBlue=N.brightYellow=N.brightGreen=N.brightRed=N.brightBlack=N.gray=N.white=N.cyan=N.magenta=N.blue=N.yellow=N.green=N.red=N.black=N.strikethrough=N.hidden=N.inverse=N.underline=N.italic=N.dim=N.bold=N.reset=N.getColorEnabled=N.setColorEnabled=void 0;var Gh=!0,ll=!Gh;function _v(t){Gh||(ll=t)}o(_v,"setColorEnabled");N.setColorEnabled=_v;function Ev(){return ll}o(Ev,"getColorEnabled");N.getColorEnabled=Ev;function z(t,e){return{open:`\x1B[${t.join(";")}m`,close:`\x1B[${e}m`,regexp:new RegExp(`\\x1b\\[${e}m`,"g")}}o(z,"code");function W(t,e){return ll?`${e.open}${t.replace(e.regexp,e.open)}${e.close}`:t}o(W,"run");function wv(t){return W(t,z([0],0))}o(wv,"reset");N.reset=wv;function vv(t){return W(t,z([1],22))}o(vv,"bold");N.bold=vv;function Tv(t){return W(t,z([2],22))}o(Tv,"dim");N.dim=Tv;function Sv(t){return W(t,z([3],23))}o(Sv,"italic");N.italic=Sv;function Iv(t){return W(t,z([4],24))}o(Iv,"underline");N.underline=Iv;function Pv(t){return W(t,z([7],27))}o(Pv,"inverse");N.inverse=Pv;function Av(t){return W(t,z([8],28))}o(Av,"hidden");N.hidden=Av;function Ov(t){return W(t,z([9],29))}o(Ov,"strikethrough");N.strikethrough=Ov;function Rv(t){return W(t,z([30],39))}o(Rv,"black");N.black=Rv;function Kh(t){return W(t,z([31],39))}o(Kh,"red");N.red=Kh;function Jh(t){return W(t,z([32],39))}o(Jh,"green");N.green=Jh;function zh(t){return W(t,z([33],39))}o(zh,"yellow");N.yellow=zh;function Wh(t){return W(t,z([34],39))}o(Wh,"blue");N.blue=Wh;function Qh(t){return W(t,z([35],39))}o(Qh,"magenta");N.magenta=Qh;function Zh(t){return W(t,z([36],39))}o(Zh,"cyan");N.cyan=Zh;function Nv(t){return W(t,z([37],39))}o(Nv,"white");N.white=Nv;function Cv(t){return Yh(t)}o(Cv,"gray");N.gray=Cv;function Yh(t){return W(t,z([90],39))}o(Yh,"brightBlack");N.brightBlack=Yh;function xv(t){return W(t,z([91],39))}o(xv,"brightRed");N.brightRed=xv;function Lv(t){return W(t,z([92],39))}o(Lv,"brightGreen");N.brightGreen=Lv;function Dv(t){return W(t,z([93],39))}o(Dv,"brightYellow");N.brightYellow=Dv;function Uv(t){return W(t,z([94],39))}o(Uv,"brightBlue");N.brightBlue=Uv;function Mv(t){return W(t,z([95],39))}o(Mv,"brightMagenta");N.brightMagenta=Mv;function kv(t){return W(t,z([96],39))}o(kv,"brightCyan");N.brightCyan=kv;function Hv(t){return W(t,z([97],39))}o(Hv,"brightWhite");N.brightWhite=Hv;function Fv(t){return W(t,z([40],49))}o(Fv,"bgBlack");N.bgBlack=Fv;function qv(t){return W(t,z([41],49))}o(qv,"bgRed");N.bgRed=qv;function $v(t){return W(t,z([42],49))}o($v,"bgGreen");N.bgGreen=$v;function jv(t){return W(t,z([43],49))}o(jv,"bgYellow");N.bgYellow=jv;function Vv(t){return W(t,z([44],49))}o(Vv,"bgBlue");N.bgBlue=Vv;function Bv(t){return W(t,z([45],49))}o(Bv,"bgMagenta");N.bgMagenta=Bv;function Gv(t){return W(t,z([46],49))}o(Gv,"bgCyan");N.bgCyan=Gv;function Kv(t){return W(t,z([47],49))}o(Kv,"bgWhite");N.bgWhite=Kv;function Jv(t){return W(t,z([100],49))}o(Jv,"bgBrightBlack");N.bgBrightBlack=Jv;function zv(t){return W(t,z([101],49))}o(zv,"bgBrightRed");N.bgBrightRed=zv;function Wv(t){return W(t,z([102],49))}o(Wv,"bgBrightGreen");N.bgBrightGreen=Wv;function Qv(t){return W(t,z([103],49))}o(Qv,"bgBrightYellow");N.bgBrightYellow=Qv;function Zv(t){return W(t,z([104],49))}o(Zv,"bgBrightBlue");N.bgBrightBlue=Zv;function Yv(t){return W(t,z([105],49))}o(Yv,"bgBrightMagenta");N.bgBrightMagenta=Yv;function Xv(t){return W(t,z([106],49))}o(Xv,"bgBrightCyan");N.bgBrightCyan=Xv;function eT(t){return W(t,z([107],49))}o(eT,"bgBrightWhite");N.bgBrightWhite=eT;function sr(t,e=255,r=0){return Math.trunc(Math.max(Math.min(t,e),r))}o(sr,"clampAndTruncate");function tT(t,e){return W(t,z([38,5,sr(e)],39))}o(tT,"rgb8");N.rgb8=tT;function rT(t,e){return W(t,z([48,5,sr(e)],49))}o(rT,"bgRgb8");N.bgRgb8=rT;function nT(t,e){return typeof e=="number"?W(t,z([38,2,e>>16&255,e>>8&255,e&255],39)):W(t,z([38,2,sr(e.r),sr(e.g),sr(e.b)],39))}o(nT,"rgb24");N.rgb24=nT;function iT(t,e){return typeof e=="number"?W(t,z([48,2,e>>16&255,e>>8&255,e&255],49)):W(t,z([48,2,sr(e.r),sr(e.g),sr(e.b)],49))}o(iT,"bgRgb24");N.bgRgb24=iT;var oT=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|"),"g");function sT(t){return t.replace(oT,"")}o(sT,"stripColor");N.stripColor=sT;N.colorFunctions=[Kh,Jh,zh,Wh,Qh,Zh];function aT(t){let e=0,r=t.length,n=0;if(r>0)for(;n<r;)e=(e<<5)-e+t.charCodeAt(n++)|0;return e}o(aT,"hashCode");function cT(t){let e=Math.abs(aT(t));return N.colorFunctions[e%N.colorFunctions.length]}o(cT,"generateColor");N.generateColor=cT});var em=_(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.format=void 0;function uT(t,e,...r){let n=0,i=r.length,s=String(e).replace(/%[sdjoO%]/g,a=>{if(a==="%%")return"%";if(n>=i)return a;switch(a){case"%s":return String(r[n++]);case"%d":return Number(r[n++]).toString();case"%o":return t(r[n++]).split(`
|
|
26
26
|
`).map(c=>c.trim()).join(" ");case"%O":return t(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return"[Circular]"}default:return a}});for(let a of r.splice(n))a===null||!(typeof a=="object"&&a!==null)?s+=" "+a:s+=" "+t(a);return s}o(uT,"format");Bo.format=uT});var sm=_(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.inspect=void 0;function Br(t,e,r,n){let i={seen:[],stylize:lT,showHidden:e??!1,depth:r??2,colors:n??!1,customInspect:!0};return i.colors&&(i.stylize=pT),Go(i,t,i.depth)}o(Br,"inspect");Ko.inspect=Br;Br.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Br.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function lT(t,e){return t}o(lT,"stylizeNoColor");function dT(t){return typeof t=="boolean"}o(dT,"isBoolean");function rm(t){return t===void 0}o(rm,"isUndefined");function pT(t,e){let r=Br.styles[e];return r?"\x1B["+Br.colors[r][0]+"m"+t+"\x1B["+Br.colors[r][1]+"m":t}o(pT,"stylizeWithColor");function dl(t){return typeof t=="function"}o(dl,"isFunction");function nm(t){return typeof t=="string"}o(nm,"isString");function fT(t){return typeof t=="number"}o(fT,"isNumber");function im(t){return t===null}o(im,"isNull");function om(t,e){return Object.prototype.hasOwnProperty.call(t,e)}o(om,"hasOwn");function pl(t){return yl(t)&&gl(t)==="[object RegExp]"}o(pl,"isRegExp");function yl(t){return typeof t=="object"&&t!==null}o(yl,"isObject");function fl(t){return yl(t)&&(gl(t)==="[object Error]"||t instanceof Error)}o(fl,"isError");function tm(t){return yl(t)&&gl(t)==="[object Date]"}o(tm,"isDate");function gl(t){return Object.prototype.toString.call(t)}o(gl,"objectToString");function hT(t){let e={};return t.forEach(function(r,n){e[r]=!0}),e}o(hT,"arrayToHash");function mT(t,e,r,n,i){let s=[];for(let a=0,c=e.length;a<c;++a)om(e,String(a))?s.push(ml(t,e,r,n,String(a),!0)):s.push("");return i.forEach(function(a){a.match(/^\d+$/)||s.push(ml(t,e,r,n,a,!0))}),s}o(mT,"formatArray");function hl(t){return"["+Error.prototype.toString.call(t)+"]"}o(hl,"formatError");function Go(t,e,r){if(t.customInspect&&e&&dl(e.inspect)&&e.inspect!==Br&&!(e.constructor&&e.constructor.prototype===e)){let d=e.inspect(r,t);return nm(d)||(d=Go(t,d,r)),d}let n=yT(t,e);if(n)return n;let i=Object.keys(e),s=hT(i);try{t.showHidden&&Object.getOwnPropertyNames&&(i=Object.getOwnPropertyNames(e))}catch{}if(fl(e)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return hl(e);if(i.length===0){if(dl(e)){let d=e.name?": "+e.name:"";return t.stylize("[Function"+d+"]","special")}if(pl(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(tm(e))return t.stylize(Date.prototype.toString.call(e),"date");if(fl(e))return hl(e)}let a="",c=!1,u=["{","}"];if(Array.isArray(e)&&(c=!0,u=["[","]"]),dl(e)&&(a=" [Function"+(e.name?": "+e.name:"")+"]"),pl(e)&&(a=" "+RegExp.prototype.toString.call(e)),tm(e)&&(a=" "+Date.prototype.toUTCString.call(e)),fl(e)&&(a=" "+hl(e)),i.length===0&&(!c||e.length==0))return u[0]+a+u[1];if(r<0)return pl(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);let l;return c?l=mT(t,e,r,s,i):l=i.map(function(d){return ml(t,e,r,s,d,c)}),t.seen.pop(),gT(l,a,u)}o(Go,"formatValue");function ml(t,e,r,n,i,s){let a,c,u;u={value:void 0};try{u.value=e[i]}catch{}try{Object.getOwnPropertyDescriptor&&(u=Object.getOwnPropertyDescriptor(e,i)||u)}catch{}if(u.get?u.set?c=t.stylize("[Getter/Setter]","special"):c=t.stylize("[Getter]","special"):u.set&&(c=t.stylize("[Setter]","special")),om(n,i)||(a="["+i+"]"),c||(t.seen.indexOf(u.value)<0?(im(r)?c=Go(t,u.value,null):c=Go(t,u.value,r-1),c.indexOf(`
|
|
27
27
|
`)>-1&&(s?c=c.split(`
|
|
28
28
|
`).map(function(l){return" "+l}).join(`
|