PageSourceSearch

https://www.eightsleep.com/_next/static/chunks/86370-784269ebcf1529e6.js

js eightsleep.com collected 2026-09-24 17:34:49 UTC 162,590 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[86370],{1590:module=>{var __dirname="/";!function(){var __webpack_modules__={950:function(__unused_webpack_module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return -1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(e),function(t){r[t]=e[t]}
1),forEach(globals,function(t){e[t]&&(r[t]=e[t])});var o=Object_keys(r),a=n.call(r,this.code);return forEach(Object_keys(r),function(t){(t in e||-1===indexOf(o,t))&&(e[t]=r[t])}),forEach(globals,function(t){t in e||defineProp(e,t,r[t])}),document.body.removeChild(t),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return e&&forEach(Object_keys(t),function(r){e[r]=t[r]}),r},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}}),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(r){t[r]=e[r]}),t}}};"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var __nested_webpack_exports__={};__webpack_modules__[950](0,__nested_webpack_exports__),module.exports=__nested_webpack_exports__}()},2166:(e,t,r)=>{"use strict";r.d(t,{A:()=>ix});var n={};r.r(n),r.d(n,{StripeAPIError:()=>P,StripeAuthenticationError:()=>T,StripeCardError:()=>b,StripeConnectionError:()=>w,StripeError:()=>g,StripeIdempotencyError:()=>x,StripeInvalidGrantError:()=>R,StripeInvalidRequestError:()=>_,StripePermissionError:()=>E,StripeRateLimitError:()=>S,StripeSignatureVerificationError:()=>O,StripeUnknownError:()=>A,generate:()=>y});var i={};r.r(i),r.d(i,{Account:()=>r_,AccountLinks:()=>rT,AccountSessions:()=>rS,Accounts:()=>r_,ApplePayDomains:()=>rO,ApplicationFees:()=>rR,Apps:()=>n9,Balance:()=>rC,BalanceTransactions:()=>rj,Billing:()=>n5,BillingPortal:()=>ie,Charges:()=>rG,Checkout:()=>it,Climate:()=>ir,ConfirmationTokens:()=>rI,CountrySpecs:()=>rM,Coupons:()=>rq,CreditNotes:()=>r$,CustomerSessions:()=>rH,Customers:()=>rz,Disputes:()=>rK,Entitlements:()=>ii,EphemeralKeys:()=>rJ,Events:()=>rQ,ExchangeRates:()=>r1,FileLinks:()=>r4,Files:()=>r8,FinancialConnections:()=>io,Forwarding:()=>ia,Identity:()=>is,InvoiceItems:()=>r9,InvoiceRenderingTemplates:()=>ne,Invoices:()=>nr,Issuing:()=>il,Mandates:()=>ni,OAuth:()=>ns,PaymentIntents:()=>nu,PaymentLinks:()=>nh,PaymentMethodConfigurations:()=>nf,PaymentMethodDomains:()=>nm,PaymentMethods:()=>ny,Payouts:()=>nb,Plans:()=>nP,Prices:()=>nE,Products:()=>nw,PromotionCodes:()=>nx,Quotes:()=>nA,Radar:()=>iu,Refunds:()=>nk,Reporting:()=>ic,Reviews:()=>nN,SetupAttempts:()=>nD,SetupIntents:()=>nL,ShippingRates:()=>nU,Sigma:()=>ih,Sources:()=>nF,SubscriptionItems:()=>nB,SubscriptionSchedules:()=>nV,Subscriptions:()=>nW,Tax:()=>id,TaxCodes:()=>nY,TaxIds:()=>nX,TaxRates:()=>nZ,Terminal:()=>ip,TestHelpers:()=>im,Tokens:()=>n0,Topups:()=>n2,Transfers:()=>n3,Treasury:()=>iv,WebhookEndpoints:()=>n7});class o{getClientName(){throw Error("getClientName not implemented.")}makeRequest(e,t,r,n,i,o,a,s){throw Error("makeRequest not implemented.")}static makeTimeoutError(){let e=TypeError(o.TIMEOUT_ERROR_CODE);return e.code=o.TIMEOUT_ERROR_CODE,e}}o.CONNECTION_CLOSED_ERROR_CODES=["ECONNRESET","EPIPE"],o.TIMEOUT_ERROR_CODE="ETIMEDOUT";class a{constructor(e,t){this._statusCode=e,this._headers=t}getStatusCode(){return this._statusCode}getHeaders(){return this._headers}getRawResponse(){throw Error("getRawResponse not implemented.")}toStream(e){throw Error("toStream not implemented.")}toJSON(){throw Error("toJSON not implemented.")}}class s extends o{constructor(e){if(super(),!e){if(!globalThis.fetch)throw Error("fetch() function not provided and is not defined in the global scope. You must provide a fetch implementation.");e=globalThis.fetch}globalThis.AbortController?this._fetchFn=s.makeFetchWithAbortTimeout(e):this._fetchFn=s.makeFetchWithRaceTimeout(e)}static makeFetchWithRaceTimeout(e){return(t,r,n)=>{let i,a=new Promise((e,t)=>{i=setTimeout(()=>{i=null,t(o.makeTimeoutError())},n)});return Promise.race([e(t,r),a]).finally(()=>{i&&clearTimeout(i)})}}static makeFetchWithAbortTimeout(e){return async(t,r,n)=>{let i=new AbortController,a=setTimeout(()=>{a=null,i.abort(o.makeTimeoutError())},n);try{return await e(t,Object.assign(Object.assign({},r),{signal:i.signal}))}catch(e){if("AbortError"===e.name)throw o.makeTimeoutError();throw e}finally{a&&clearTimeout(a)}}}getClientName(){return"fetch"}
1async makeRequest(e,t,r,n,i,o,a,s){let u="http"===a,c=new URL(r,`${u?"http":"https"}://${e}`);c.port=t;let h="POST"==n||"PUT"==n||"PATCH"==n,d=o||(h?"":void 0);return new l(await this._fetchFn(c.toString(),{method:n,headers:i,body:d},s))}}class l extends a{constructor(e){super(e.status,l._transformHeadersToObject(e.headers)),this._res=e}getRawResponse(){return this._res}toStream(e){return e(),this._res.body}toJSON(){return this._res.json()}static _transformHeadersToObject(e){let t={};for(let r of e){if(!Array.isArray(r)||2!=r.length)throw Error("Response objects produced by the fetch function given to FetchHttpClient do not have an iterable headers map. Response#headers should be an iterable object.");t[r[0]]=r[1]}return t}}class u{computeHMACSignature(e,t){throw Error("computeHMACSignature not implemented.")}computeHMACSignatureAsync(e,t){throw Error("computeHMACSignatureAsync not implemented.")}}class c extends Error{}class h extends u{constructor(e){super(),this.subtleCrypto=e||crypto.subtle}computeHMACSignature(e,t){throw new c("SubtleCryptoProvider cannot be used in a synchronous context.")}async computeHMACSignatureAsync(e,t){let r=new TextEncoder,n=await this.subtleCrypto.importKey("raw",r.encode(t),{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),i=new Uint8Array(await this.subtleCrypto.sign("hmac",n,r.encode(e))),o=Array(i.length);for(let e=0;e<i.length;e++)o[e]=d[i[e]];return o.join("")}}let d=Array(256);for(let e=0;e<d.length;e++)d[e]=e.toString(16).padStart(2,"0");class f{constructor(){this._fetchFn=null,this._agent=null}getUname(){throw Error("getUname not implemented.")}uuid4(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}secureCompare(e,t){if(e.length!==t.length)return!1;let r=e.length,n=0;for(let i=0;i<r;++i)n|=e.charCodeAt(i)^t.charCodeAt(i);return 0===n}createEmitter(){throw Error("createEmitter not implemented.")}tryBufferData(e){throw Error("tryBufferData not implemented.")}createNodeHttpClient(e){throw Error("createNodeHttpClient not implemented.")}createFetchHttpClient(e){return new s(e)}createDefaultHttpClient(){throw Error("createDefaultHttpClient not implemented.")}createNodeCryptoProvider(){throw Error("createNodeCryptoProvider not implemented.")}createSubtleCryptoProvider(e){return new h(e)}createDefaultCryptoProvider(){throw Error("createDefaultCryptoProvider not implemented.")}}
1class p extends Event{constructor(e,t){super(e),this.data=t}}class m{constructor(){this.eventTarget=new EventTarget,this.listenerMapping=new Map}on(e,t){let r=e=>{t(e.data)};return this.listenerMapping.set(t,r),this.eventTarget.addEventListener(e,r)}removeListener(e,t){let r=this.listenerMapping.get(t);return this.listenerMapping.delete(t),this.eventTarget.removeEventListener(e,r)}once(e,t){let r=e=>{t(e.data)};return this.listenerMapping.set(t,r),this.eventTarget.addEventListener(e,r,{once:!0})}emit(e,t){return this.eventTarget.dispatchEvent(new p(e,t))}}class v extends f{getUname(){return Promise.resolve(null)}createEmitter(){return new m}tryBufferData(e){if(e.file.data instanceof ReadableStream)throw Error("Uploading a file as a stream is not supported in non-Node environments. Please open or upvote an issue at github.com/stripe/stripe-node if you use this, detailing your use-case.");return Promise.resolve(e)}createNodeHttpClient(){throw Error("Stripe: `createNodeHttpClient()` is not available in non-Node environments. Please use `createFetchHttpClient()` instead.")}createDefaultHttpClient(){return super.createFetchHttpClient()}createNodeCryptoProvider(){throw Error("Stripe: `createNodeCryptoProvider()` is not available in non-Node environments. Please use `createSubtleCryptoProvider()` instead.")}createDefaultCryptoProvider(){return this.createSubtleCryptoProvider()}}let y=e=>{switch(e.type){case"card_error":return new b(e);case"invalid_request_error":return new _(e);case"api_error":return new P(e);case"authentication_error":return new T(e);case"rate_limit_error":return new S(e);case"idempotency_error":return new x(e);case"invalid_grant":return new R(e);default:return new A(e)}};class g extends Error{constructor(e={},t=null){super(e.message),this.type=t||this.constructor.name,this.raw=e,this.rawType=e.type,this.code=e.code,this.doc_url=e.doc_url,this.param=e.param,this.detail=e.detail,this.headers=e.headers,this.requestId=e.requestId,this.statusCode=e.statusCode,this.message=e.message,this.charge=e.charge,this.decline_code=e.decline_code,this.payment_intent=e.payment_intent,this.payment_method=e.payment_method,this.payment_method_type=e.payment_method_type,this.setup_intent=e.setup_intent,this.source=e.source}}g.generate=y;class b extends g{constructor(e={}){super(e,"StripeCardError")}}class _ extends g{constructor(e={}){super(e,"StripeInvalidRequestError")}}class P extends g{constructor(e={}){super(e,"StripeAPIError")}}class T extends g{constructor(e={}){super(e,"StripeAuthenticationError")}}class E extends g{constructor(e={}){super(e,"StripePermissionError")}}class S extends g{constructor(e={}){super(e,"StripeRateLimitError")}}class w extends g{constructor(e={}){super(e,"StripeConnectionError")}}class O extends g{constructor(e,t,r={}){super(r,"StripeSignatureVerificationError"),this.header=e,this.payload=t}}class x extends g{constructor(e={}){super(e,"StripeIdempotencyError")}}class R extends g{constructor(e={}){super(e,"StripeInvalidGrantError")}}class A extends g{constructor(e={}){super(e,"StripeUnknownError")}}var C=r(20463),k=r(87358);let j=["apiKey","idempotencyKey","stripeAccount","apiVersion","maxNetworkRetries","timeout","host"];function N(e){return e&&"object"==typeof e&&j.some(t=>Object.prototype.hasOwnProperty.call(e,t))}function G(e){return C.stringify(e,{serializeDate:e=>Math.floor(e.getTime()/1e3).toString()}).replace(/%5B/g,"[").replace(/%5D/g,"]")}let D=(()=>{let e={"\n":"\\n",'"':'\\"',"\u2028":"\\u2028","\u2029":"\\u2029"};return t=>{let r=t.replace(/["\n\r\u2028\u2029]/g,t=>e[t]);return e=>r.replace(/\{([\s\S]+?)\}/g,(t,r)=>encodeURIComponent(e[r]||""))}})();function I(e){let t=e.match(/\{\w+\}/g);return t?t.map(e=>e.replace(/[{}]/g,"")):[]}function L(e){if(!Array.isArray(e)||!e[0]||"object"!=typeof e[0])return{};if(!N(e[0]))return e.shift();let t=Object.keys(e[0]),r=t.filter(e=>j.includes(e));return r.length>0&&r.length!==t.length&&V(`Options found in arguments (${r.join(", ")}). Did you mean to pass an options object? See https://github.com/stripe/stripe-node/wiki/Passing-Options.`),{}}function M(e){let t={auth:null,host:null,headers:{},settings:{}};if(e.length>0){let r=e[e.length-1];if("string"==typeof r)t.auth=e.pop();else if(N(r)){let r=Object.assign({},e.pop()),n=Object.keys(r).filter(e=>!j.includes(e));
1n.length&&V(`Invalid options found (${n.join(", ")}); ignoring.`),r.apiKey&&(t.auth=r.apiKey),r.idempotencyKey&&(t.headers["Idempotency-Key"]=r.idempotencyKey),r.stripeAccount&&(t.headers["Stripe-Account"]=r.stripeAccount),r.apiVersion&&(t.headers["Stripe-Version"]=r.apiVersion),Number.isInteger(r.maxNetworkRetries)&&(t.settings.maxNetworkRetries=r.maxNetworkRetries),Number.isInteger(r.timeout)&&(t.settings.timeout=r.timeout),r.host&&(t.host=r.host)}}return t}function U(e){let t=this,r=Object.prototype.hasOwnProperty.call(e,"constructor")?e.constructor:function(...e){t.apply(this,e)};return Object.assign(r,t),r.prototype=Object.create(t.prototype),Object.assign(r.prototype,e),r}function q(e){if("object"!=typeof e)throw Error("Argument must be an object");return Object.keys(e).reduce((t,r)=>(null!=e[r]&&(t[r]=e[r]),t),{})}function F(e){return e&&"object"==typeof e?Object.keys(e).reduce((t,r)=>(t[$(r)]=e[r],t),{}):e}function $(e){return e.split("-").map(e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()).join("-")}function B(e,t){return t?e.then(e=>{setTimeout(()=>{t(null,e)},0)},e=>{setTimeout(()=>{t(e,null)},0)}):e}function H(e){return"OAuth"===e?"oauth":e[0].toLowerCase()+e.substring(1)}function V(e){return"function"!=typeof k.emitWarning?console.warn(`Stripe: ${e}`):k.emitWarning(e,"Stripe")}function z(e){let t=typeof e;return("function"===t||"object"===t)&&!!e}function W(e){let t={},r=(e,n)=>{Object.entries(e).forEach(([e,i])=>{let o=n?`${n}[${e}]`:e;if(z(i))if(!(i instanceof Uint8Array)&&!Object.prototype.hasOwnProperty.call(i,"data"))return r(i,o);else t[o]=i;else t[o]=String(i)})};return r(e,null),t}function K(e,t,r){if(!Number.isInteger(t))if(void 0!==r)return r;else throw Error(`${e} must be an integer`);return t}function Y(){return void 0===k?{}:{lang_version:k.version,platform:k.platform}}let J=60;class X{constructor(e,t){this._stripe=e,this._maxBufferedRequestMetric=t}_addHeadersDirectlyToObject(e,t){e.requestId=t["request-id"],e.stripeAccount=e.stripeAccount||t["stripe-account"],e.apiVersion=e.apiVersion||t["stripe-version"],e.idempotencyKey=e.idempotencyKey||t["idempotency-key"]}_makeResponseEvent(e,t,r){let n=Date.now(),i=n-e.request_start_time;return q({api_version:r["stripe-version"],account:r["stripe-account"],idempotency_key:r["idempotency-key"],method:e.method,path:e.path,status:t,request_id:this._getRequestId(r),elapsed:i,request_start_time:e.request_start_time,request_end_time:n})}_getRequestId(e){return e["request-id"]}_streamingResponseHandler(e,t,r){return n=>{let i=n.getHeaders(),o=()=>{let r=this._makeResponseEvent(e,n.getStatusCode(),i);this._stripe._emitter.emit("response",r),this._recordRequestMetrics(this._getRequestId(i),r.elapsed,t)},a=n.toStream(o);return this._addHeadersDirectlyToObject(a,i),r(null,a)}}_jsonResponseHandler(e,t,r){return n=>{let i=n.getHeaders(),o=this._getRequestId(i),a=n.getStatusCode(),s=this._makeResponseEvent(e,a,i);this._stripe._emitter.emit("response",s),n.toJSON().then(e=>{if(e.error){let t;throw"string"==typeof e.error&&(e.error={type:e.error,message:e.error_description}),e.error.headers=i,e.error.statusCode=a,e.error.requestId=o,t=401===a?new T(e.error):403===a?new E(e.error):429===a?new S(e.error):g.generate(e.error)}return e},e=>{throw new P({message:"Invalid JSON received from the Stripe API",exception:e,requestId:i["request-id"]})}).then(e=>{this._recordRequestMetrics(o,s.elapsed,t);let a=n.getRawResponse();this._addHeadersDirectlyToObject(a,i),Object.defineProperty(e,"lastResponse",{enumerable:!1,writable:!1,value:a}),r(null,e)},e=>r(e,null))}}static _generateConnectionErrorMessage(e){return`An error occurred with our connection to Stripe.${e>0?` Request was retried ${e} times.`:""}`}static _shouldRetry(e,t,r,n){return!!(n&&0===t&&o.CONNECTION_CLOSED_ERROR_CODES.includes(n.code))||!(t>=r)&&(!e||"false"!==e.getHeaders()["stripe-should-retry"]&&!!("true"===e.getHeaders()["stripe-should-retry"]||409===e.getStatusCode()||e.getStatusCode()>=500))}_getSleepTimeInMS(e,t=null){let r=this._stripe.getInitialNetworkRetryDelay(),n=Math.min(r*Math.pow(e-1,2),this._stripe.getMaxNetworkRetryDelay());return n*=.5*(1+Math.random()),n=Math.max(r,n),Number.isInteger(t)&&t<=J&&(n=Math.max(n,t)),1e3*n}_getMaxNetworkRetries(e={}){return void 0!==e.maxNetworkRetries&&Number.isInteger(e.maxNetworkRetries)?e.maxNetworkRetries:this._stripe.getMaxNetworkRetries()}_defaultIdempotencyKey(e,t){let r=this._getMaxNetworkRetries(t);return"POST"===e&&r>
10?`stripe-node-retry-${this._stripe._platformFunctions.uuid4()}`:null}_makeHeaders(e,t,r,n,i,o,a){let s={Authorization:e?`Bearer ${e}`:this._stripe.getApiField("auth"),Accept:"application/json","Content-Type":"application/x-www-form-urlencoded","User-Agent":this._getUserAgentString(),"X-Stripe-Client-User-Agent":n,"X-Stripe-Client-Telemetry":this._getTelemetryHeader(),"Stripe-Version":r,"Stripe-Account":this._stripe.getApiField("stripeAccount"),"Idempotency-Key":this._defaultIdempotencyKey(i,a)},l="POST"==i||"PUT"==i||"PATCH"==i;return(l||t)&&(l||V(`${i} method had non-zero contentLength but no payload is expected for this verb`),s["Content-Length"]=t),Object.assign(q(s),F(o))}_getUserAgentString(){let e=this._stripe.getConstant("PACKAGE_VERSION"),t=this._stripe._appInfo?this._stripe.getAppInfoAsString():"";return`Stripe/v1 NodeBindings/${e} ${t}`.trim()}_getTelemetryHeader(){if(this._stripe.getTelemetryEnabled()&&this._stripe._prevRequestMetrics.length>0)return JSON.stringify({last_request_metrics:this._stripe._prevRequestMetrics.shift()})}_recordRequestMetrics(e,t,r){if(this._stripe.getTelemetryEnabled()&&e)if(this._stripe._prevRequestMetrics.length>this._maxBufferedRequestMetric)V("Request metrics buffer is full, dropping telemetry message.");else{let n={request_id:e,request_duration_ms:t};r&&r.length>0&&(n.usage=r),this._stripe._prevRequestMetrics.push(n)}}_request(e,t,r,n,i,a={},s=[],l,u=null){let c,h=(e,t,r,n,i)=>setTimeout(e,this._getSleepTimeInMS(n,i),t,r,n+1),d=(n,i,u)=>{let f=a.settings&&a.settings.timeout&&Number.isInteger(a.settings.timeout)&&a.settings.timeout>=0?a.settings.timeout:this._stripe.getApiField("timeout"),p=this._stripe.getApiField("httpClient").makeRequest(t||this._stripe.getApiField("host"),this._stripe.getApiField("port"),r,e,i,c,this._stripe.getApiField("protocol"),f),m=Date.now(),v=q({api_version:n,account:i["Stripe-Account"],idempotency_key:i["Idempotency-Key"],method:e,path:r,request_start_time:m}),y=u||0,g=this._getMaxNetworkRetries(a.settings||{});this._stripe._emitter.emit("request",v),p.then(e=>X._shouldRetry(e,y,g)?h(d,n,i,y,e.getHeaders()["retry-after"]):a.streaming&&400>e.getStatusCode()?this._streamingResponseHandler(v,s,l)(e):this._jsonResponseHandler(v,s,l)(e)).catch(e=>X._shouldRetry(null,y,g,e)?h(d,n,i,y,null):l(new w({message:e.code&&e.code===o.TIMEOUT_ERROR_CODE?`Request aborted due to timeout being reached (${f}ms)`:X._generateConnectionErrorMessage(y),detail:e})))},f=(t,r)=>{if(t)return l(t);c=r,this._stripe.getClientUserAgent(t=>{var r,n;let o=this._stripe.getApiField("version"),s=this._makeHeaders(i,c.length,o,t,e,null!=(r=a.headers)?r:null,null!=(n=a.settings)?n:{});d(o,s,0)})};u?u(e,n,a.headers,f):f(null,G(n||{}))}}class Q{constructor(e,t,r,n){this.index=0,this.pagePromise=e,this.promiseCache={currentPromise:null},this.requestArgs=t,this.spec=r,this.stripeResource=n}async iterate(e){if(!(e&&e.data&&"number"==typeof e.data.length))throw Error("Unexpected: Stripe API response does not have a well-formed `data` array.");let t=ec(this.requestArgs);if(this.index<e.data.length){let r=t?e.data.length-1-this.index:this.index,n=e.data[r];return this.index+=1,{value:n,done:!1}}if(e.has_more){this.index=0,this.pagePromise=this.getNextPage(e);let t=await this.pagePromise;return this.iterate(t)}return{done:!0,value:void 0}}getNextPage(e){throw Error("Unimplemented")}async _next(){return this.iterate(await this.pagePromise)}next(){if(this.promiseCache.currentPromise)return this.promiseCache.currentPromise;let e=(async()=>{let e=await this._next();return this.promiseCache.currentPromise=null,e})();return this.promiseCache.currentPromise=e,e}}class Z extends Q{getNextPage(e){let t=ec(this.requestArgs),r=ea(e,t);return this.stripeResource._makeRequest(this.requestArgs,this.spec,{[t?"ending_before":"starting_after"]:r})}}class ee extends Q{getNextPage(e){if(!e.next_page)throw Error("Unexpected: Stripe API response does not have a well-formed `next_page` field, but `has_more` was true.");return this.stripeResource._makeRequest(this.requestArgs,this.spec,{page:e.next_page})}}let et=(e,t,r,n)=>"search"===r.methodType?er(new ee(n,t,r,e)):"list"===r.methodType?er(new Z(n,t,r,e)):null,er=e=>{let t=es((...t)=>e.next(...t)),r=el(t),n={autoPagingEach:t,autoPagingToArray:r,next:()=>e.next(),return:()=>({}),[en()]:()=>n};return n};function en(){return"undefined"!=typeof Symbol&&Symbol.asyncIterator?Symbol.asyncIterator:"@@asyncIterator"}function ei(e){if(e.length<2)return null;let t=e[1];if("function"!=typeof t)throw Error(`The second argument to autoPagingEach, if present, must be a callback function; received ${typeof t}`);return t}function eo(e){if(0===e.length)return;let t=e[0];if("function"!=typeof t)throw Error(`The first argument to autoPagingEach, if present, must be a callback function; received ${typeof t}`);if(2===t.length)return t;if(t.length>2)throw Error(`The \`onItem\` callback function passed to autoPagingEach must accept at most two arguments; got ${t}`);return function(e,r){r(t(e))}}function ea(e,t){let r=t?0:e.data.length-1,n=e.data[r],i=n&&n.id;if(!i)throw Error("Unexpected: No `id` found on the last item while auto-paging a list.");return i}function es(e){return function(){let t=[].slice.call(arguments),r=eo(t),n=ei(t);if(t.length>2)throw Error(`autoPagingEach takes up to two arguments; received ${t}`);return B(eu(e,r),n)}}function el(e){return function(t,r){let n=t&&t.limit;if(!n)throw Error("You must pass a `limit` option to autoPagingToArray, e.g., `autoPagingToArray({limit: 1000});`.");if(n>1e4)throw Error("You cannot specify a limit of more than 10,000 items to fetch in `autoPagingToArray`; use `autoPagingEach` to iterate through longer lists.");return B(new Promise((t,r)=>{let i=[];e(e=>{if(i.push(e),i.length>=n)return!1}).then(()=>{t(i)}).catch(r)}),r)}}function eu(e,t){return new Promise((r,n)=>{function i(n){if(n.done)return void r();let o=n.value;return new Promise(e=>{t(o,e)}).then(t=>!1===t?i({done:!0,value:void 0}):e().then(i))}e().then(i).catch(n)})}function ec(e){return!!L([].slice.call(e)).ending_before}function eh(e){if(void 0!==e.path&&void 0!==e.fullPath)throw Error(`Method spec specified both a 'path' (${e.path}) and a 'fullPath' (${e.fullPath}).`);return function(...t){let r="function"==typeof t[t.length-1]&&t.pop();
1e.urlParams=I(e.fullPath||this.createResourcePathWithSymbols(e.path||""));let n=B(this._makeRequest(t,e,{}),r);return Object.assign(n,et(this,t,e,n)),n}}function ed(e,t){if(this._stripe=e,t)throw Error("Support for curried url params was dropped in stripe-node v7.0.0. Instead, pass two ids.");this.basePath=D(this.basePath||e.getApiField("basePath")),this.resourcePath=this.path,this.path=D(this.path),this.initialize(...arguments)}function ef(e){let t={DEFAULT_TOLERANCE:300,signature:null,constructEvent(e,r,n,i,o,a){try{this.signature.verifyHeader(e,r,n,i||t.DEFAULT_TOLERANCE,o,a)}catch(e){throw e instanceof c&&(e.message+="\nUse `await constructEventAsync(...)` instead of `constructEvent(...)`"),e}return e instanceof Uint8Array?JSON.parse(new TextDecoder("utf8").decode(e)):JSON.parse(e)},async constructEventAsync(e,r,n,i,o,a){return await this.signature.verifyHeaderAsync(e,r,n,i||t.DEFAULT_TOLERANCE,o,a),e instanceof Uint8Array?JSON.parse(new TextDecoder("utf8").decode(e)):JSON.parse(e)},generateTestHeaderString:function(e){let t=u(e),r=t.signature||t.cryptoProvider.computeHMACSignature(t.payloadString,t.secret);return t.generateHeaderString(r)},generateTestHeaderStringAsync:async function(e){let t=u(e),r=t.signature||await t.cryptoProvider.computeHMACSignatureAsync(t.payloadString,t.secret);return t.generateHeaderString(r)}},r={EXPECTED_SCHEME:"v1",verifyHeader(e,t,r,a,s,u){let{decodedHeader:c,decodedPayload:h,details:d,suspectPayloadType:f}=i(e,t,this.EXPECTED_SCHEME),p=/\s/.test(r),m=(s=s||l()).computeHMACSignature(n(h,d),r);return o(h,c,d,m,a,f,p,u),!0},async verifyHeaderAsync(e,t,r,a,s,u){let{decodedHeader:c,decodedPayload:h,details:d,suspectPayloadType:f}=i(e,t,this.EXPECTED_SCHEME),p=/\s/.test(r);s=s||l();let m=await s.computeHMACSignatureAsync(n(h,d),r);return o(h,c,d,m,a,f,p,u)}};function n(e,t){return`${t.timestamp}.${e}`}function i(e,t,r){if(!e)throw new O(t,e,{message:"No webhook payload was provided."});let n="string"!=typeof e&&!(e instanceof Uint8Array),i=new TextDecoder("utf8"),o=e instanceof Uint8Array?i.decode(e):e;if(Array.isArray(t))throw Error("Unexpected: An array was passed as a header, which should not be possible for the stripe-signature header.");if(null==t||""==t)throw new O(t,e,{message:"No stripe-signature header value was provided."});let s=t instanceof Uint8Array?i.decode(t):t,l=a(s,r);if(!l||-1===l.timestamp)throw new O(s,o,{message:"Unable to extract timestamp and signatures from header"});if(!l.signatures.length)throw new O(s,o,{message:"No signatures found with expected scheme"});return{decodedPayload:o,decodedHeader:s,details:l,suspectPayloadType:n}}function o(t,r,n,i,o,a,s,l){let u=!!n.signatures.filter(e.secureCompare.bind(e,i)).length,c="\nLearn more about webhook signing and explore webhook integration examples for various frameworks at https://github.com/stripe/stripe-node#webhook-signing",h=s?"\n\nNote: The provided signing secret contains whitespace. This often indicates an extra newline or space is in the value":"";if(!u){if(a)throw new O(r,t,{message:"Webhook payload must be provided as a string or a Buffer (https://nodejs.org/api/buffer.html) instance representing the _raw_ request body.Payload was provided as a parsed JavaScript object instead. \nSignature verification is impossible without access to the original signed material. \n"+c+"\n"+h});throw new O(r,t,{message:"No signatures found matching the expected signature for payload. Are you passing the raw request body you received from Stripe? \n If a webhook request is being forwarded by a third-party tool, ensure that the exact request body, including JSON formatting and new line style, is preserved.\n"+c+"\n"+h})}let d=Math.floor(("number"==typeof l?l:Date.now())/1e3)-n.timestamp;if(o>0&&d>o)throw new O(r,t,{message:"Timestamp outside the tolerance zone"});return!0}function a(e,t){return"string"!=typeof e?null:e.split(",").reduce((e,r)=>{let n=r.split("=");return"t"===n[0]&&(e.timestamp=parseInt(n[1],10)),n[0]===t&&e.signatures.push(n[1]),e},{timestamp:-1,signatures:[]})}let s=null;function l(){return s||(s=e.createDefaultCryptoProvider()),s}function u(e){if(!e)throw new g({message:"Options are required"});let t=Math.floor(e.timestamp)||Math.floor(Date.now()/1e3),n=e.sc
1heme||r.EXPECTED_SCHEME,i=e.cryptoProvider||l(),o=`${t}.${e.payload}`,a=e=>`t=${t},${n}=${e}`;return Object.assign(Object.assign({},e),{timestamp:t,scheme:n,cryptoProvider:i,payloadString:o,generateHeaderString:a})}return t.signature=r,t}ed.extend=U,ed.method=eh,ed.MAX_BUFFERED_REQUEST_METRICS=100,ed.prototype={_stripe:null,path:"",resourcePath:"",basePath:null,initialize(){},requestDataProcessor:null,validateRequest:null,createFullPath(e,t){let r=[this.basePath(t),this.path(t)];if("function"==typeof e){let n=e(t);n&&r.push(n)}else r.push(e);return this._joinUrlParts(r)},createResourcePathWithSymbols(e){return e?`/${this._joinUrlParts([this.resourcePath,e])}`:`/${this.resourcePath}`},_joinUrlParts:e=>e.join("/").replace(/\/{2,}/g,"/"),_getRequestOpts(e,t,r){let n=(t.method||"GET").toUpperCase(),i=t.usage||[],o=t.urlParams||[],a=t.encode||(e=>e),s=!!t.fullPath,l=D(s?t.fullPath:t.path||""),u=s?t.fullPath:this.createResourcePathWithSymbols(t.path),c=[].slice.call(e),h=o.reduce((e,t)=>{let r=c.shift();if("string"!=typeof r)throw Error(`Stripe: Argument "${t}" must be a string, but got: ${r} (on API request to \`${n} ${u}\`)`);return e[t]=r,e},{}),d=a(Object.assign({},L(c),r)),f=M(c),p=f.host||t.host,m=!!t.streaming;if(c.filter(e=>null!=e).length)throw Error(`Stripe: Unknown arguments (${c}). Did you mean to pass an options object? See https://github.com/stripe/stripe-node/wiki/Passing-Options. (on API request to ${n} \`${u}\`)`);let v=s?l(h):this.createFullPath(l,h),y=Object.assign(f.headers,t.headers);t.validator&&t.validator(d,{headers:y});let g="GET"===t.method||"DELETE"===t.method;return{requestMethod:n,requestPath:v,bodyData:g?null:d,queryData:g?d:{},auth:f.auth,headers:y,host:null!=p?p:null,streaming:m,settings:f.settings,usage:i}},_makeRequest(e,t,r){return new Promise((n,i)=>{var o;let a;try{a=this._getRequestOpts(e,t,r)}catch(e){i(e);return}function s(e,r){e?i(e):n(t.transformResponseData?t.transformResponseData(r):r)}let l=0===Object.keys(a.queryData).length,u=[a.requestPath,l?"":"?",G(a.queryD
1ata)].join(""),{headers:c,settings:h}=a;this._stripe._requestSender._request(a.requestMethod,a.host,u,a.bodyData,a.auth,{headers:c,settings:h,streaming:a.streaming},a.usage,s,null==(o=this.requestDataProcessor)?void 0:o.bind(this))})}};let ep="2024-06-20";function em(e,t){for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=r[0].toLowerCase()+r.substring(1),i=new t[r](e);this[n]=i}}function ev(e,t){return function(e){return new em(e,t)}}let ey=ed.method,eg=ed.extend({retrieve:ey({method:"GET",fullPath:"/v1/financial_connections/accounts/{account}"}),list:ey({method:"GET",fullPath:"/v1/financial_connections/accounts",methodType:"list"}),disconnect:ey({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/disconnect"}),listOwners:ey({method:"GET",fullPath:"/v1/financial_connections/accounts/{account}/owners",methodType:"list"}),refresh:ey({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/refresh"}),subscribe:ey({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/subscribe"}),unsubscribe:ey({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/unsubscribe"})}),eb=ed.method,e_=ed.extend({retrieve:eb({method:"GET",fullPath:"/v1/entitlements/active_entitlements/{id}"}),list:eb({method:"GET",fullPath:"/v1/entitlements/active_entitlements",methodType:"list"})}),eP=ed.method,eT=ed.extend({create:eP({method:"POST",fullPath:"/v1/billing/alerts"}),retrieve:eP({method:"GET",fullPath:"/v1/billing/alerts/{id}"}),list:eP({method:"GET",fullPath:"/v1/billing/alerts",methodType:"list"}),activate:eP({method:"POST",fullPath:"/v1/billing/alerts/{id}/activate"}),archive:eP({method:"POST",fullPath:"/v1/billing/alerts/{id}/archive"}),deactivate:eP({method:"POST",fullPath:"/v1/billing/alerts/{id}/deactivate"})}),eE=ed.method,eS=ed.extend({create:eE({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations"}),capture:eE({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/capture"}),expire:eE({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/expire"}),finalizeAmount:eE({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/finalize_amount"}),increment:eE({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/increment"}),reverse:eE({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/reverse"})}),ew=ed.method,eO=ed.extend({retrieve:ew({method:"GET",fullPath:"/v1/issuing/authorizations/{authorization}"}),update:ew({method:"POST",fullPath:"/v1/issuing/authorizations/{authorization}"}),list:ew({method:"GET",fullPath:"/v1/issuing/authorizations",methodType:"list"}),approve:ew({method:"POST",fullPath:"/v1/issuing/authorizations/{authorization}/approve"}),decline:ew({method:"POST",fullPath:"/v1/issuing/authorizations/{authorization}/decline"})}),ex=ed.method,eR=ed.extend({create:ex({method:"POST",fullPath:"/v1/tax/calculations"}),retrieve:ex({method:"GET",fullPath:"/v1/tax/calculations/{calculation}"}),listLineItems:ex({method:"GET",fullPath:"/v1/tax/calculations/{calculation}/line_items",methodType:"list"})}),eA=ed.method,eC=ed.extend({create:eA({method:"POST",fullPath:"/v1/issuing/cardholders"}),retrieve:eA({method:"GET",fullPath:"/v1/issuing/cardholders/{cardholder}"}),update:eA({method:"POST",fullPath:"/v1/issuing/cardholders/{cardholder}"}),list:eA({method:"GET",fullPath:"/v1/issuing/cardholders",methodType:"list"})}),ek=ed.method,ej=ed.extend({deliverCard:ek({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/deliver"}),failCard:ek({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/fail"}),returnCard:ek({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/return"}),shipCard:ek({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/ship"})}),eN=ed.method,eG=ed.extend({create:eN({method:"POST",fullPath:"/v1/issuing/cards"}),retrieve:eN({method:"GET",fullPath:"/v1/issuing/cards/{card}"}),update:eN({method:"POST",fullPath:"/v1/issuing/cards/{card}"}),list:eN({method:"GET",fullPath:"/v1/issuing/cards",methodType:"list"})}),eD=ed.method,eI=ed.extend({create:eD({method:"POST",fullPath:"/v1/billing_portal/configurations"}),retrieve:eD({method:"GET",fullPath:"/v1/billing_portal/configurations/{configuration}"}),update:eD({method:"POST",fullPath:"/v1/billing_portal/configurations/{configuration}"}),list:eD({method:"GET",fullPath:"/v1/billing_portal/configurations",methodType:"list"})}),eL=ed.method,eM=ed.extend({create:eL({method:"POST",fullPath:"/v1/terminal/configurations"}),retrieve:eL({method:"GET",fullPath:"/v1/terminal/configurations/{configuration}"}),update:eL({method:"POST",fullPath:"/v1/terminal/configurations/{configuration}"}),list:eL({method:"GET",fullPath:"/v1/terminal/configurations",methodType:"list"}),del:eL({method:"DELETE",fullPath:"/v1/terminal/configurations/{configuration}"})}),eU=ed.method,eq=ed.extend({create:eU({method:"POST",fullPath:"/v1/test_helpers/confirmation_tokens"})}),eF=ed.method,e$=ed.extend({create:eF({method:"POST",fullPath:"/v1/terminal/connection_tokens"})}),eB=ed.method,eH=ed.extend({create:eB({method:"POST",fullPath:"/v1/treasury/credit_reversals"}),retrieve:eB({method:"GET",fullPath:"/v1/treasury/credit_reversals/{credit_reversal}"}),list:eB({method:"GET",fullPath:"/v1/treasury/credit_reversals",methodType:"list"})}),eV=ed.method,ez=ed.extend({fundCashBalance:eV({method:"POST",fullPath:"/v1/test_helpers/customers/{customer}/fund_cash_balance"})}),eW=ed.method,eK=ed.extend({create:eW({method:"POST",fullPath:"/v1/treasury/debit_reversals"}),retrieve:eW({method:"GET",fullPath:"/v1/treasury/debit_reversals/{debit_reversal}"}),list:eW({method:"GET",fullPath:"/v1/treasury/debit_reversals",methodType:"list"})}),eY=ed.method,eJ=ed.extend({create:eY({method:"POST",fullPath:"/v1/issuing/disputes"}),retrieve:eY({method:"GET",fullPath:"/v1/issuing/disputes/{dispute}"}),update:eY({method:"POST",fullPath:"/v1/issuing/disputes/{dispute}"}),list:eY({method:"GET",fullPath:"/v1/issuing/disputes",methodType:"list"}),submit:eY({method:"POST",fullPath:"/v1/issuing/disputes/{dispute}/submit"})}),eX=ed.method,eQ=ed.extend({retrieve:eX({method:"GET",fullPath:"/v1/radar/early_fraud_warnings/{early_fraud_warning}"}),list:eX({method:"GET",fullPath:"/v1/radar/early_fraud_warnings",methodType:"list"})}),eZ=ed.method,e1=ed.extend({create:eZ({method:"POST",fullPath:"/v1/entitlements/features"}),retrieve:eZ({method:"GET",fullPath:"/v1/entitlements/features/{id}"}),update:eZ({method:"POST",fullPath:"/v1/entitlements/features/{id}"}),list:eZ({method:"GET",fullPath:"/v1/entitlements/features",methodType:"list"})}),e0=ed.method,e4=ed.extend({create:e0({method:"POST",fullPath:"/v1/treasury/financial_accounts"}),retrieve:e0({method:"GET",fullPath:"/v1/treasury/financial_accounts/{financial_account}"}),update:e0({method:"POST",fullPath:"/v1/treasury/financial_accounts/{financial_account}"}),list:e0({method:"GET",fullPath:"/v1/treasury/financial_accounts",methodType:"list"}),retrieveFeatures:e0({method:"GET",fullPath:"/v1/treasury/financial_accounts/{financial_account}/features"}),updateFeatures:e0({method:"POST",fullPath:"/v1/treasury/financial_accounts/{financial_account}/features"})}),e2=ed.method,e6=ed.extend({fail:e2({method:"POST",fullPath:"/v1/test_helpers/treasury/inbound_transfers/{id}/fail"}),returnInboundTransfer:e2({method:"POST",fullPath:"/v1/test_helpers/treasury/inbound_transfers/{id}/return"}),succeed:e2({method:"POST",fullPath:"/v1/test_helpers/treasury/inbound_transfers/{id}/succeed"})}),e3=ed.method,e8=ed.extend({create:e3({method:"POST",fullPath:"/v1/treasury/inbound_transfers"}),retrieve:e3({method:"GET",fullPath:"/v1/treasury/inbound_transfers/{id}"}),list:e3({method:"GET",fullPath:"/v1/treasury/inbound_transfers",methodType:"list"}),cancel:e3({method:"POST",fullPath:"/v1/treasury/inbound_transfers/{inbou
1nd_transfer}/cancel"})}),e7=ed.method,e9=ed.extend({create:e7({method:"POST",fullPath:"/v1/terminal/locations"}),retrieve:e7({method:"GET",fullPath:"/v1/terminal/locations/{location}"}),update:e7({method:"POST",fullPath:"/v1/terminal/locations/{location}"}),list:e7({method:"GET",fullPath:"/v1/terminal/locations",methodType:"list"}),del:e7({method:"DELETE",fullPath:"/v1/terminal/locations/{location}"})}),e5=ed.method,te=ed.extend({create:e5({method:"POST",fullPath:"/v1/billing/meter_event_adjustments"})}),tt=ed.method,tr=ed.extend({create:tt({method:"POST",fullPath:"/v1/billing/meter_events"})}),tn=ed.method,ti=ed.extend({create:tn({method:"POST",fullPath:"/v1/billing/meters"}),retrieve:tn({method:"GET",fullPath:"/v1/billing/meters/{id}"}),update:tn({method:"POST",fullPath:"/v1/billing/meters/{id}"}),list:tn({method:"GET",fullPath:"/v1/billing/meters",methodType:"list"}),deactivate:tn({method:"POST",fullPath:"/v1/billing/meters/{id}/deactivate"}),listEventSummaries:tn({method:"GET",fullPath:"/v1/billing/meters/{id}/event_summaries",methodType:"list"}),reactivate:tn({method:"POST",fullPath:"/v1/billing/meters/{id}/reactivate"})}),to=ed.method,ta=ed.extend({create:to({method:"POST",fullPath:"/v1/climate/orders"}),retrieve:to({method:"GET",fullPath:"/v1/climate/orders/{order}"}),update:to({method:"POST",fullPath:"/v1/climate/orders/{order}"}),list:to({method:"GET",fullPath:"/v1/climate/orders",methodType:"list"}),cancel:to({method:"POST",fullPath:"/v1/climate/orders/{order}/cancel"})}),ts=ed.method,tl=ed.extend({update:ts({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}"}),fail:ts({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}/fail"}),post:ts({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}/post"}),returnOutboundPayment:ts({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}/return"})}),tu=ed.method,tc=ed.extend({create:tu({method:"POST",fullPath:"/v1/treasury/outbound_payments"}),retrieve:tu({method:"GET",fullPath:"/v1/treasury/outbound_payments/{id}"}),list:tu({method:"GET",fullPath:"/v1/treasury/outbound_payments",methodType:"list"}),cancel:tu({method:"POST",fullPath:"/v1/treasury/outbound_payments/{id}/cancel"})}),th=ed.method,td=ed.extend({update:th({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}"}),fail:th({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/fail"}),post:th({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/post"}),returnOutboundTransfer:th({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/return"})}),tf=ed.method,tp=ed.extend({create:tf({method:"POST",fullPath:"/v1/treasury/outbound_transfers"}),retrieve:tf({method:"GET",fullPath:"/v1/treasury/outbound_transfers/{outbound_transfer}"}),list:tf({method:"GET",fullPath:"/v1/treasury/outbound_transfers",methodType:"list"}),cancel:tf({method:"POST",fullPath:"/v1/treasury/outbound_transfers/{outbound_transfer}/cancel"})}),tm=ed.method,tv=ed.extend({activate:tm({method:"POST",fullPath:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}/activate"}),deactivate:tm({method:"POST",fullPath:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}/deactivate"}),reject:tm({method:"POST",fullPath:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}/reject"})}),ty=ed.method,tg=ed.extend({create:ty({method:"POST",fullPath:"/v1/issuing/personalization_designs"}),retrieve:ty({method:"GET",fullPath:"/v1/issuing/personalization_designs/{personalization_design}"}),update:ty({method:"POST",fullPath:"/v1/issuing/personalization_designs/{personalization_design}"}),list:ty({method:"GET",fullPath:"/v1/issuing/personalization_designs",methodType:"list"})}),tb=ed.method,t_=ed.extend({retrieve:tb({method:"GET",fullPath:"/v1/issuing/physical_bundles/{physical_bundle}"}),list:tb({method:"GET",fullPath:"/v1/issuing/physical_bundles",methodType:"list"})}),tP=ed.method,tT=ed.extend({retrieve:tP({method:"GET",fullPath:"/v1/climate/products/{product}"}),list:tP({method:"GET",fullPath:"/v1/climate/products",methodType:"list"})}),tE=ed.method,tS=ed.extend({presentPaymentMethod:tE({method:"POST",fullPath:"/v1/test_helpers/terminal/readers/{reader}/present_payment_method"})}),tw=ed.method,tO=ed.extend({create:tw({method:"POST",fullPath:"/v1/terminal/readers"}),retrieve:tw({method:"GET",fullPath:"/v1/terminal/readers/{reader}"}),update:tw({method:"POST",fullPath:"/v1/terminal/readers/{reader}"}),list:tw({method:"GET",fullPath:"/v1/terminal/readers",methodType:"list"}),del:tw({method:"DELETE",fullPath:"/v1/terminal/readers/{reader}"}),cancelAction:tw({method:"POST",fullPath:"/v1/terminal/readers/{reader}/cancel_action"}),processPaymentIntent:tw({method:"POST",fullPath:"/v1/terminal/readers/{reader}/process_payment_intent"}),processSetupIntent:tw({method:"POST",fullPath:"/v1/terminal/readers/{reader}/process_setup_intent"}),refundPayment:tw({method:"POST",fullPath:"/v1/terminal/readers/{reader}/refund_payment"}),setReaderDisplay:tw({method:"POST",fullPath:"/v1/terminal/readers/{reader}/set_reader_display"})}),tx=ed.method,tR=ed.extend({create:tx({method:"POST",fullPath:"/v1/test_helpers/treasury/received_credits"})}),tA=ed.method,tC=ed.extend({retrieve:tA({method:"GET",fullPath:"/v1/treasury/received_credits/{id}"}),list:tA({method:"GET",fullPath:"/v1/treasury/received_credits",methodType:"list"})}),tk=ed.method,tj=ed.extend({create:tk({method:"POST",fullPath:"/v1/test_helpers/treasury/received_debits"})}),tN=ed.method,tG=ed.extend({retrieve:tN({method:"GET",fullPath:"/v1/treasury/received_debits/{id}"}),list:tN({method:"GET",fullPath:"/v1/treasury/received_debits",methodType:"list"})}),tD=ed.method,tI=ed.extend({expire:tD({method:"POST",fullPath:"/v1/test_helpers/refunds/{refund}/expire"})}),tL=ed.method,tM=ed.extend({create:tL({method:"POST",fullPath:"/v1/tax/registrations"}),retrieve:tL({method:"GET",fullPath:"/v1/tax/registrations/{id}"}),update:tL({method:"POST",fullPath:"/v1/tax/registrations/{id}"}),list:tL({method:"GET",fullPath:"/v1/tax/registrations",methodType:"list"})}),tU=ed.method,tq=ed.extend({create:tU({method:"POST",fullPath:"/v1/reporting/report_runs"}),retrieve:tU({method:"GET",fullPath:"/v1/reporting/report_runs/{report_run}"}),list:tU({method:"GET",fullPath:"/v1/reporting/report_runs",methodType:"list"})}),tF=ed.method,t$=ed.extend({retrieve:tF({method:"GET",fullPath:"/v1/reporting/report_types/{report_type}"}),list:tF({method:"GET",fullPath:"/v1/reporting/report_types",methodType:"list"})}),tB=ed.method,tH=ed.extend({create:tB({method:"POST",fullPath:"/v1/forwarding/requests"}),retrieve:tB({method:"GET",fullPath:"/v1/forwarding/requests/{id}"}),list:tB({method:"GET",fullPath:"/v1/forwarding/requests",methodType:"list"})}),tV=ed.method,tz=ed.extend({retrieve:tV({method:"GET",fullPath:"/v1/sigma/scheduled_query_runs/{scheduled_query_run}"}),list:tV({method:"GET",fullPath:"/v1/sigma/scheduled_query_runs",methodType:"list"})}),tW=ed.method,tK=ed.extend({create:tW({method:"POST",fullPath:"/v1/apps/secrets"}),list:tW({method:"GET",fullPath:"/v1/apps/secrets",methodType:"list"}),deleteWhere:tW({method:"POST",fullPath:"/v1/apps/secrets/delete"}),find:tW({method:"GET",fullPath:"/v1/apps/secrets/find"})}),tY=ed.method,tJ=ed.extend({create:tY({method:"POST",fullPath:"/v1/billing_portal/sessions"})}),tX=ed.method,tQ=ed.extend({create:tX({method:"POST",fullPath:"/v1/checkout/sessions"}),retrieve:tX({method:"GET",fullPath:"/v1/checkout/sessions/{session}"}),update:tX({method:"POST",fullPath:"/v1/checkout/sessions/{session}"}),list:tX({method:"GET",fullPath:"/v1/checkout/sessions",methodType:"list"}),expire:tX({method:"POST",fullPath:"/v1/checkout/sessions/{session}/expire"}),listLineItems:tX({method:"GET",fullPath:"/v1/checkout/sessions/{session}/line_items",methodType:"list"})}),tZ=ed.method,t1=ed.extend({create:tZ({method:"POST",fullPath:"/v1/financial_connections/sessions"}),retrieve:tZ({method:"GET",fullPath:"/v1/financial_connections/sessions/{session}"})}),t0=ed.method,t4=ed.extend({retrieve:t0({method:"GET",fullPath:"/v1/tax/sett
1ings"}),update:t0({method:"POST",fullPath:"/v1/tax/settings"})}),t2=ed.method,t6=ed.extend({retrieve:t2({method:"GET",fullPath:"/v1/climate/suppliers/{supplier}"}),list:t2({method:"GET",fullPath:"/v1/climate/suppliers",methodType:"list"})}),t3=ed.method,t8=ed.extend({create:t3({method:"POST",fullPath:"/v1/test_helpers/test_clocks"}),retrieve:t3({method:"GET",fullPath:"/v1/test_helpers/test_clocks/{test_clock}"}),list:t3({method:"GET",fullPath:"/v1/test_helpers/test_clocks",methodType:"list"}),del:t3({method:"DELETE",fullPath:"/v1/test_helpers/test_clocks/{test_clock}"}),advance:t3({method:"POST",fullPath:"/v1/test_helpers/test_clocks/{test_clock}/advance"})}),t7=ed.method,t9=ed.extend({retrieve:t7({method:"GET",fullPath:"/v1/issuing/tokens/{token}"}),update:t7({method:"POST",fullPath:"/v1/issuing/tokens/{token}"}),list:t7({method:"GET",fullPath:"/v1/issuing/tokens",methodType:"list"})}),t5=ed.method,re=ed.extend({retrieve:t5({method:"GET",fullPath:"/v1/treasury/transaction_entries/{id}"}),list:t5({method:"GET",fullPath:"/v1/treasury/transaction_entries",methodType:"list"})}),rt=ed.method,rr=ed.extend({createForceCapture:rt({method:"POST",fullPath:"/v1/test_helpers/issuing/transactions/create_force_capture"}),createUnlinkedRefund:rt({method:"POST",fullPath:"/v1/test_helpers/issuing/transactions/create_unlinked_refund"}),refund:rt({method:"POST",fullPath:"/v1/test_helpers/issuing/transactions/{transaction}/refund"})}),rn=ed.method,ri=ed.extend({retrieve:rn({method:"GET",fullPath:"/v1/financial_connections/transactions/{transaction}"}),list:rn({method:"GET",fullPath:"/v1/financial_connections/transactions",methodType:"list"})}),ro=ed.method,ra=ed.extend({retrieve:ro({method:"GET",fullPath:"/v1/issuing/transactions/{transaction}"}),update:ro({method:"POST",fullPath:"/v1/issuing/transactions/{transaction}"}),list:ro({method:"GET",fullPath:"/v1/issuing/transactions",methodType:"list"})}),rs=ed.method,rl=ed.extend({retrieve:rs({method:"GET",fullPath:"/v1/tax/transactions/{transaction}"}),createFromCalculation:rs({method:"POST",fullPath:"/v1/tax/transactions/create_from_calculation"}),createReversal:rs({method:"POST",fullPath:"/v1/tax/transactions/create_reversal"}),listLineItems:rs({method:"GET",fullPath:"/v1/tax/transactions/{transaction}/line_items",methodType:"list"})}),ru=ed.method,rc=ed.extend({retrieve:ru({method:"GET",fullPath:"/v1/treasury/transactions/{id}"}),list:ru({method:"GET",fullPath:"/v1/treasury/transactions",methodType:"list"})}),rh=ed.method,rd=ed.extend({create:rh({method:"POST",fullPath:"/v1/radar/value_list_items"}),retrieve:rh({method:"GET",fullPath:"/v1/radar/value_list_items/{item}"}),list:rh({method:"GET",fullPath:"/v1/radar/value_list_items",methodType:"list"}),del:rh({method:"DELETE",fullPath:"/v1/radar/value_list_items/{item}"})}),rf=ed.method,rp=ed.extend({create:rf({method:"POST",fullPath:"/v1/radar/value_lists"}),retrieve:rf({method:"GET",fullPath:"/v1/radar/value_lists/{value_list}"}),update:rf({method:"POST",fullPath:"/v1/radar/value_lists/{value_list}"}),list:rf({method:"GET",fullPath:"/v1/radar/value_lists",methodType:"list"}),del:rf({method:"DELETE",fullPath:"/v1/radar/value_lists/{value_list}"})}),rm=ed.method,rv=ed.extend({retrieve:rm({method:"GET",fullPath:"/v1/identity/verification_reports/{report}"}),list:rm({method:"GET",fullPath:"/v1/identity/verification_reports",methodType:"list"})}),ry=ed.method,rg=ed.extend({create:ry({method:"POST",fullPath:"/v1/identity/verification_sessions"}),retrieve:ry({method:"GET",fullPath:"/v1/identity/verification_sessions/{session}"}),update:ry({method:"POST",fullPath:"/v1/identity/verification_sessions/{session}"}),list:ry({method:"GET",fullPath:"/v1/identity/verification_sessions",methodType:"list"}),cancel:ry({method:"POST",fullPath:"/v1/identity/verification_sessions/{session}/cancel"}),redact:ry({method:"POST",fullPath:"/v1/identity/verification_sessions/{session}/redact"})}),rb=ed.method,r_=ed.extend({create:rb({method:"POST",fullPath:"/v1/accounts"}),retrieve(e,...t){return"string"==typeof e?rb({method:"GET",fullPath:"/v1/accounts/{id}"}).apply(this,[e,...t]):(null==e&&[].shift.apply([e,...t]),rb({method:"GET",fullPath:"/v1/account"}).apply(this,[e,...t]))},update:rb({method:"POST",fullPath:"/v1/accounts/{account}"}),list:rb({method:"GET",fullPath:"/v1/accounts",methodType:"list"}),del:rb({method:"DELETE",fullPath:"/v1/accounts/{account}"}),createExternalAccount:rb({method:"POST",fullPath:"/v1/accounts/{account}/external_accounts"}),createLoginLink:rb({method:"POST",fullPath:"/v1/accounts/{account}/login_links"}),createPerson:rb({method:"POST",fullPath:"/v1/accounts/{account}/persons"}),deleteExternalAccount:rb({method:"DELETE",fullPath:"/v1/accounts/{account}/external_accounts/{id}"}),deletePerson:rb({method:"DELETE",fullPath:"/v1/accounts/{account}/persons/{person}"}),listCapabilities:rb({method:"GET",fullPath:"/v1/accounts/{account}/capabilities",methodType:"list"}),listExternalAccounts:rb({method:"GET",fullPath:"/v1/accounts/{account}/external_accounts",methodType:"list"}),listPersons:rb({method:"GET",fullPath:"/v1/accounts/{account}/persons",methodType:"list"}),reject:rb({method:"POST",fullPath:"/v1/accounts/{account}/reject"}),retrieveCurrent:rb({method:"GET",fullPath:"/v1/account"}),retrieveCapability:rb({method:"GET",fullPath:"/v1/accounts/{account}/capabilities/{capability}"}
1),retrieveExternalAccount:rb({method:"GET",fullPath:"/v1/accounts/{account}/external_accounts/{id}"}),retrievePerson:rb({method:"GET",fullPath:"/v1/accounts/{account}/persons/{person}"}),updateCapability:rb({method:"POST",fullPath:"/v1/accounts/{account}/capabilities/{capability}"}),updateExternalAccount:rb({method:"POST",fullPath:"/v1/accounts/{account}/external_accounts/{id}"}),updatePerson:rb({method:"POST",fullPath:"/v1/accounts/{account}/persons/{person}"})}),rP=ed.method,rT=ed.extend({create:rP({method:"POST",fullPath:"/v1/account_links"})}),rE=ed.method,rS=ed.extend({create:rE({method:"POST",fullPath:"/v1/account_sessions"})}),rw=ed.method,rO=ed.extend({create:rw({method:"POST",fullPath:"/v1/apple_pay/domains"}),retrieve:rw({method:"GET",fullPath:"/v1/apple_pay/domains/{domain}"}),list:rw({method:"GET",fullPath:"/v1/apple_pay/domains",methodType:"list"}),del:rw({method:"DELETE",fullPath:"/v1/apple_pay/domains/{domain}"})}),rx=ed.method,rR=ed.extend({retrieve:rx({method:"GET",fullPath:"/v1/application_fees/{id}"}),list:rx({method:"GET",fullPath:"/v1/application_fees",methodType:"list"}),createRefund:rx({method:"POST",fullPath:"/v1/application_fees/{id}/refunds"}),listRefunds:rx({method:"GET",fullPath:"/v1/application_fees/{id}/refunds",methodType:"list"}),retrieveRefund:rx({method:"GET",fullPath:"/v1/application_fees/{fee}/refunds/{id}"}),updateRefund:rx({method:"POST",fullPath:"/v1/application_fees/{fee}/refunds/{id}"})}),rA=ed.method,rC=ed.extend({retrieve:rA({method:"GET",fullPath:"/v1/balance"})}),rk=ed.method,rj=ed.extend({retrieve:rk({method:"GET",fullPath:"/v1/balance_transactions/{id}"}),list:rk({method:"GET",fullPath:"/v1/balance_transactions",methodType:"list"})}),rN=ed.method,rG=ed.extend({create:rN({method:"POST",fullPath:"/v1/charges"}),retrieve:rN({method:"GET",fullPath:"/v1/charges/{charge}"}),update:rN({method:"POST",fullPath:"/v1/charges/{charge}"}),list:rN({method:"GET",fullPath:"/v1/charges",methodType:"list"}),capture:rN({method:"POST",fullPath:"/v1/charges/{charge}/capture"}),search:rN({method:"GET",fullPath:"/v1/charges/search",methodType:"search"})}),rD=ed.method,rI=ed.extend({retrieve:rD({method:"GET",fullPath:"/v1/confirmation_tokens/{confirmation_token}"})}),rL=ed.method,rM=ed.extend({retrieve:rL({method:"GET",fullPath:"/v1/country_specs/{country}"}),list:rL({method:"GET",fullPath:"/v1/country_specs",methodType:"list"})}),rU=ed.method,rq=ed.extend({create:rU({method:"POST",fullPath:"/v1/coupons"}),retrieve:rU({method:"GET",fullPath:"/v1/coupons/{coupon}"}),update:rU({method:"POST",fullPath:"/v1/coupons/{coupon}"}),list:rU({method:"GET",fullPath:"/v1/coupons",methodType:"list"}),del:rU({method:"DELETE",fullPath:"/v1/coupons/{coupon}"})}),rF=ed.method,r$=ed.extend({create:rF({method:"POST",fullPath:"/v1/credit_notes"}),retrieve:rF({method:"GET",fullPath:"/v1/credit_notes/{id}"}),update:rF({method:"POST",fullPath:"/v1/credit_notes/{id}"}),list:rF({method:"GET",fullPath:"/v1/credit_notes",methodType:"list"}),listLineItems:rF({method:"GET",fullPath:"/v1/credit_notes/{credit_note}/lines",methodType:"list"}),listPreviewLineItems:rF({method:"GET",fullPath:"/v1/credit_notes/preview/lines",methodType:"list"}),preview:rF({method:"GET",fullPath:"/v1/credit_notes/preview"}),voidCreditNote:rF({method:"POST",fullPath:"/v1/credit_notes/{id}/void"})}),rB=ed.method,rH=ed.extend({create:rB({method:"POST",fullPath:"/v1/customer_sessions"})}),rV=ed.method,rz=ed.extend({create:rV({method:"POST",fullPath:"/v1/customers"}),retrieve:rV({method:"GET",fullPath:"/v1/customers/{customer}"}),update:rV({method:"POST",fullPath:"/v1/customers/{customer}"}),list:rV({method:"GET",fullPath:"/v1/customers",methodType:"list"}),del:rV({method:"DELETE",fullPath:"/v1/customers/{customer}"}),createBalanceTransaction:rV({method:"POST",fullPath:"/v1/customers/{customer}/balance_transactions"}),createFundingInstructions:rV({method:"POST",fullPath:"/v1/customers/{customer}/funding_instructions"}),createSource:rV({method:"POST",fullPath:"/v1/customers/{customer}/sources"}),createTaxId:rV({method:"POST",fullPath:"/v1/customers/{customer}/tax_ids"}),deleteDiscount:rV({method:"DELETE",fullPath:"/v1/customers/{customer}/discount"}),deleteSource:rV({method:"DELETE",fullPath:"/v1/customers/{customer}/sources/{id}"}),deleteTaxId:rV({method:"DELETE",fullPath:"/v1/customers/{customer}/tax_ids/{id}"}),listBalanceTransactions:rV({method:"GET",fullPath:"/v1/customers/{customer}/balance_transactions",methodType:"list"}),listCashBalanceTransactions:rV({method:"GET",fullPath:"/v1/customers/{customer}/cash_balance_transactions",methodType:"list"}),listPaymentMethods:rV({method:"GET",fullPath:"/v1/customers/{customer}/payment_methods",methodType:"list"}),listSources:rV({method:"GET",fullPath:"/v1/customers/{customer}/sources",methodType:"list"}),listTaxIds:rV({method:"GET",fullPath:"/v1/customers/{customer}/tax_ids",methodType:"list"}),retrieveBalanceTransaction:rV({method:"GET",fullPath:"/v1/customers/{customer}/balance_transactions/{transaction}"}),retrieveCashBalance:rV({method:"GET",fullPath:"/v1/customers/{customer}/cash_balance"}),retrieveCashBalanceTransaction:rV({method:"GET",fullPath:"/v1/customers/{customer}/cash_balance_transactions/{transaction}"}),retrievePaymentMethod:rV({method:"GET",fullPath:"/v1/customers/{customer}/payment_methods/{payment_method}"}),retrieveSource:rV({method:"GET",fullPath:"/v1/customers/{customer}/sources/{id}"}),retrieveTaxId:rV({method:"GET",fullPath:"/v1/customers/{customer}/tax_ids/{id}"}),search:rV({method:"GET",fullPath:"/v1/customers/search",methodType:"search"}),updateBalanceTransaction:rV({method:"POST",fullPath:"/v1/customers/{customer}/balance_transactions/{transaction}"}),updateCashBalance:rV({method:"POST",fullPath:"/v1/customers/{customer}/cash_balance"}),updateSource:rV({method:"POST",fullPath:"/v1/customers/{customer}/sources/{id}"}),verifySource:rV({method:"POST",fullPath:"/v1/customers/{customer}/sources/{id}/verify"})}),rW=ed.method,rK=ed.extend({retrieve:rW({method:"GET",fullPath:"/v1/disputes/{dispute}"}),update:rW({method:"POST",fullPath:"/v1/disputes/{dispute}"}),list:rW({method:"GET",fullPath:"/v1/disputes",methodType:"list"}),close:rW({method:"POST",fullPath:"/v1/disputes/{dispute}/close"})}),rY=ed.method,rJ=ed.extend({create:rY({method:"POST",fullPath:"/v1/ephemeral_keys",validator:(e,t)=>
1{if(!t.headers||!t.headers["Stripe-Version"])throw Error("Passing apiVersion in a separate options hash is required to create an ephemeral key. See https://stripe.com/docs/api/versioning?lang=node")}}),del:rY({method:"DELETE",fullPath:"/v1/ephemeral_keys/{key}"})}),rX=ed.method,rQ=ed.extend({retrieve:rX({method:"GET",fullPath:"/v1/events/{id}"}),list:rX({method:"GET",fullPath:"/v1/events",methodType:"list"})}),rZ=ed.method,r1=ed.extend({retrieve:rZ({method:"GET",fullPath:"/v1/exchange_rates/{rate_id}"}),list:rZ({method:"GET",fullPath:"/v1/exchange_rates",methodType:"list"})}),r0=ed.method,r4=ed.extend({create:r0({method:"POST",fullPath:"/v1/file_links"}),retrieve:r0({method:"GET",fullPath:"/v1/file_links/{link}"}),update:r0({method:"POST",fullPath:"/v1/file_links/{link}"}),list:r0({method:"GET",fullPath:"/v1/file_links",methodType:"list"})}),r2=(e,t,r)=>{let n=(Math.round(1e16*Math.random())+Math.round(1e16*Math.random())).toString();r["Content-Type"]=`multipart/form-data; boundary=${n}`;let i=new TextEncoder,o=new Uint8Array(0),a=i.encode("\r\n");function s(e){let t=o,r=e instanceof Uint8Array?e:new Uint8Array(i.encode(e));(o=new Uint8Array(t.length+r.length+2)).set(t),o.set(r,t.length),o.set(a,o.length-2)}function l(e){return`"${e.replace(/"|"/g,"%22").replace(/\r\n|\r|\n/g," ")}"`}let u=W(t);for(let e in u){if(!Object.prototype.hasOwnProperty.call(u,e))continue;let t=u[e];if(s(`--${n}`),Object.prototype.hasOwnProperty.call(t,"data")){let r=t;s(`Content-Disposition: form-data; name=${l(e)}; filename=${l(r.name||"blob")}`),s(`Content-Type: ${r.type||"application/octet-stream"}`),s(""),s(r.data)}else s(`Content-Disposition: form-data; name=${l(e)}`),s(""),s(t)}return s(`--${n}--`),o};function r6(e,t,r,n){if(t=t||{},"POST"!==e)return n(null,G(t));this._stripe._platformFunctions.tryBufferData(t).then(t=>n(null,r2(e,t,r))).catch(e=>n(e,null))}let r3=ed.method,r8=ed.extend({create:r3({method:"POST",fullPath:"/v1/files",headers:{"Content-Type":"multipart/form-data"},host:"files.stripe.com"}),retrieve:r3({method:"GET",fullPath:"/v1/files/{file}"}),list:r3({method:"GET",fullPath:"/v1/files",methodType:"list"}),requestDataProcessor:r6}),r7=ed.method,r9=ed.extend({create:r7({method:"POST",fullPath:"/v1/invoiceitems"}),retrieve:r7({method:"GET",fullPath:"/v1/invoiceitems/{invoiceitem}"}),update:r7({method:"POST",fullPath:"/v1/invoiceitems/{invoiceitem}"}),list:r7({method:"GET",fullPath:"/v1/invoiceitems",methodType:"list"}),del:r7({method:"DELETE",fullPath:"/v1/invoiceitems/{invoiceitem}"})}),r5=ed.method,ne=ed.extend({retrieve:r5({method:"GET",fullPath:"/v1/invoice_rendering_templates/{template}"}),list:r5({method:"GET",fullPath:"/v1/invoice_rendering_templates",methodType:"list"}),archive:r5({method:"POST",fullPath:"/v1/invoice_rendering_templates/{template}/archive"}),unarchive:r5({method:"POST",fullPath:"/v1/invoice_rendering_templates/{template}/unarchive"})}),nt=ed.method,nr=ed.extend({create:nt({method:"POST",fullPath:"/v1/invoices"}),retrieve:nt({method:"GET",fullPath:"/v1/invoices/{invoice}"}),update:nt({method:"POST",fullPath:"/v1/invoices/{invoice}"}),list:nt({method:"GET",fullPath:"/v1/invoices",methodType:"list"}),del:nt({method:"DELETE",fullPath:"/v1/invoices/{invoice}"}),addLines:nt({method:"POST",fullPath:"/v1/invoices/{invoice}/add_lines"}),createPreview:nt({method:"POST",fullPath:"/v1/invoices/create_preview"}),finalizeInvoice:nt({method:"POST",fullPath:"/v1/invoices/{invoice}/finalize"}),listLineItems:nt({method:"GET",fullPath:"/v1/invoices/{invoice}/lines",methodType:"list"}),listUpcomingLines:nt({method:"GET",fullPath:"/v1/invoices/upcoming/lines",methodType:"list"}),markUncollectible:nt({method:"POST",fullPath:"/v1/invoices/{invoice}/mark_uncollectible"}),pay:nt({method:"POST",fullPath:"/v1/invoices/{invoice}/pay"}),removeLines:nt({method:"POST",fullPath:"/v1/invoices/{invoice}/remove_lines"}),retrieveUpcoming:nt({method:"GET",fullPath:"/v1/invoices/upcoming"}),search:nt({method:"GET",fullPath:"/v1/invoices/search",methodType:"search"}),sendInvoice:nt({method:"POST",fullPath:"/v1/invoices/{invoice}/send"}),updateLines:nt({method:"POST",fullPath:"/v1/invoices/{invoice}/update_lines"}),updateLineItem:nt({method:"POST",fullPath:"/v1/invoices/{invoice}/lines/{line_item_id}"}),voidInvoice:nt({method:"POST",fullPath:"/v1/invoices/{invoice}/void"})}),nn=ed.method,ni=ed.extend({retrieve:nn({method:"GET",fullPath:"/v1/mandates/{mandate}"})}),no=ed.method,na="connect.stripe.com",ns=ed.extend({basePath:"/",authorizeUrl(e,t){e=e||{};let r="oauth/authorize";return(t=t||{}).express&&(r=`express/${r}`),e.response_type||(e.response_type="code"),e.client_id||(e.client_id=this._stripe.getClientId()),e.scope||(e.scope="read_write"),`https://${na}/${r}?${G(e)}`},token:no({method:"POST",path:"oauth/token",host:na}),deauthorize(e,...t){return e.client_id||(e.client_id=this._stripe.getClientId()),no({method:"POST",path:"oauth/deauthorize",host:na}).apply(this,[e,...t])}}),nl=ed.method,nu=ed.extend({create:nl({method:"POST",fullPath:"/v1/payment_intents"}),retrieve:nl({method:"GET",fullPath:"/v1/payment_intents/{intent}"}),update:nl({method:"POST",fullPath:"/v1/payment_intents/{intent}"}),list:nl({method:"GET",fullPath:"/v1/payment_intents",methodType:"list"}),applyCustomerBalance:nl({method:"POST",fullPath:"/v1/payment_intents/{intent}/apply_customer_balance"}),cancel:nl({method:"POST",fullPath:"/v1/payment_intents/{intent}/cancel"}),capture:nl({method:"POST",fullPath:"/v1/payment_intents/{intent}/capture"}),confirm:nl({method:"POST",fullPath:"/v1/payment_intents/{intent}/confirm"}),incrementAuthorization:nl({method:"POST",fullPath:"/v1/payment_intents/{intent}/increment_authorization"}),search:nl({method:"GET",fullPath:"/v1/payment_intents/search",methodType:"search"}),verifyMicrodeposits:nl({method:"POST",fullPath:"/v1/payment_intents/{intent}/verify_microdeposits"})}),nc=ed.method,nh=ed.extend({create:nc({method:"POST",fullPath:"/v1/payment_links"}),retrieve:nc({method:"GET",fullPath:"/v1/payment_links/{payment_link}"}),update:nc({method:"POST",fullPath:"/v1/payment_links/{payment_link}"}),list:nc({method:"GET",fullPath:"/v1/payment_links",methodType:"list"}),listLineItems:nc({method:"GET",fullPath:"/v1/payment_links/{payment_link}/line_items",methodType:"list"})}),nd=ed.method,nf=ed.extend({create:nd({method:"POST",fullPath:"/v1/payment_method_configurations"}),retrieve:nd({method:"GET",fullPath:"/v1/payment_method_configurations/{configuration}"}),update:nd({method:"POST",fullPath:"/v1/payment_method_configurations/{configuration}"}),list:nd({method:"GET",fullPath:"/v1/payment_method_configurations",methodType:"list"})}),np=ed.method,nm=ed.extend({create:np({method:"POST",fullPath:"/v1/payment_method_domains"}),retrieve:np({method:"GET",fullPath:"/v1/payment_method_domains/{payment_method_domain}"}),update:np({method:"POST",fullPath:"/v1/payment_method_domains/{payment_method_domain}"}),list:np({method:"GET",fullPath:"/v1/payment_method_domains",methodType:"list"}),validate:np({method:"POST",fullPath:"/v1/payment_method_domains/{payment_method_domain}/validate"})}),nv=ed.method,ny=ed.extend({create:nv({method:"POST",fullPath:"/v1/payment_methods"}),retrieve:nv({method:"GET",fullPath:"/v1/payment_methods/{payment_method}"}),update:nv({method:"POST",fullPath:"/v1/payment_methods/{payment_method}"}),list:nv({method:"GET",fullPath:"/v1/payment_methods",methodType:"list"}),attach:nv({method:"POST",fullPath:"/v1/payment_methods/{payment_method}/attach"}),detach:nv({method:"POST",fullPath:"/v1/payment_methods/{payment_method}/detach"})}),ng=ed.method,nb=ed.extend({create:ng({method:"POST",fullPath:"/v1/payouts"}),retrieve:ng({method:"GET",fullPath:"/v1/payouts/{payout}"}),update:ng({method:"POST",fullPath:"/v1/payouts/{payout}"}),list:ng({method:"GET",fullPath:"/v1/payouts",methodType:"list"}),cancel:ng({method:"POST",fullPath:"/v1/payouts/{payout}/cancel"}),reverse:ng({method:"POST",fullPath:"/v1/payouts/{payout}/reverse"})}),n_=ed.method,nP=ed.extend({create:n_({method:"POST",fullPath:"/v1/plans"}),retrieve:n_({method:"GET",fullPath:"/v1/plans/{plan}"}),update:n_({method:"POST",fullPath:"/v1/plans/{plan}"}),list:n_({method:"GET",fullPath:"/v1/plans",methodType:"list"}),del:n_({method:"DELETE",fullPath:"/v1/plans/{plan}"})}),nT=ed.method,nE=ed.extend({create:nT({method:"POST",fullPath:"/v1/prices"}),retrieve:nT({method:"GET",fullPath:"/v1/prices/{price}"}),update:nT({method:"POST",fullPath:"/v1/prices/{price}"}),list:nT({method:"GET",fullPath:"/v1/prices",methodType:"list"}),search:nT({method:"GET",fullPath:"/v1/prices/search",methodType:"search"})}),nS=ed.method,nw=ed.extend({create:nS({method:"POST",fullPath:"/v1/products"}),retrieve:nS({method:"GET",fullPath:"/v1/products/{id}"}),update:nS({method:"POST",fullPath:"/v1/products/{id}"}),list:nS({method:"GET",fullPath:"/v1/products",methodType:"list"}),del:nS({method:"DELETE",fullPath:"/v1/products/{id}"}),createFeature:nS({method:"POST",fullPath:"/v1/products/{product}/features"}),deleteFeature:nS({method:"DELETE",fullPath:"/v1/products/{product}/features/{id}"}),listFeatures:nS({method:"GET",fullPath:"/v1/products/{product}/features",methodType:"list"}),retrieveFeature:nS({method:"GET",fullPath:"/v1/products/{product}/features/{id}"}),search:nS({method:"GET",fullPath:"/v1/products/search",methodType:"search"})}),nO=ed.method,nx=ed.extend({create:nO({method:"POST",fullPath:"/v1/promotion_codes"}),retrieve:nO({method:"GET",fullPath:"/v1/promotion_codes/{promotion_code}"}),update:nO({method:"POST",fullPath:"/v1/promotion_codes/{promotion_code}"}),list:nO({method:"GET",fullPath:"/v1/promotion_codes",methodType:"list"})}),nR=ed.method,nA=ed.extend({create:nR({method:"POST",fullPath:"/v1/quotes"}),retrieve:nR({method:"GET",fullPath:"/v1/quotes/{quote}"}),update:nR({method:"POST",fullPath:"/v1/quotes/{quote}"}),list:nR({method:"GET",fullPath:"/v1/quotes",methodType:"list"}),accept:nR({method:"POST",fullPath:"/v1/quotes/{quote}/accept"}),cancel:nR({method:"POST",fullPath:"/v1/quotes/{quote}/cancel"}),finalizeQuote:nR({method:"POST",fullPath:"/v1/quotes/{quote}/finalize"}),listComputedUpfrontLineItems:nR({method:"GET",fullPath:"/v1/quotes/{quote}/computed_upfront_line_items",methodType:"list"}),listLineItems:nR({method:"GET",fullPath:"/v1/quotes/{quote}/line_items",methodType:"list"}),pdf:nR({method:"GET",fullPath:"/v1/quotes/{quote}/pdf",host:"files.stripe.com",streaming:!0})}),nC=ed.method,nk=ed.extend({create:nC({method:"POST",fullPath:"/v1/refunds"}),retrieve:nC({method:"GET",fullPath:"/v1/refunds/{refund}"}),update:nC({method:"POST",fullPath:"/v1/refunds/{refund}"}),list:nC({method:"GET",fullPath:"/v1/refunds",methodType:"list"}),cancel:nC({method:"POST",fullPath:"/v1/refunds/{refund}/cancel"})}),nj=ed.method,nN=ed.extend({retrieve:nj({method:"GET",fullPath:"/v1/reviews/{review}"}),list:nj({method:"GET",fullPath:"/v1/reviews",methodType:"list"}),approve:nj({method:"POST",fullPath:"/v1/reviews/{review}/approve"})}),nG=ed.method,nD=ed.extend({list:nG({method:"GET",fullPath:"/v1/setup_attempts",methodType:"list"})}),nI=ed.method,nL=ed.extend({create:nI({method:"POST",fullPath:"/v1/setup_intents"}),retrieve:nI({method:"GET",fullPath:"/v1/setup_intents/{intent}"}),update:nI({method:"POST",fullPath:"/v1/setup_intents/{intent}"}),list:nI({method:"GET",fullPath:"/v1/setup_intents",methodType:"list"}),cancel:nI({method:"POST",fullPath:"/v1/setup_intents/{intent}/cancel"}),confirm:nI({method:"POST",fullPath:"/v1/setup_intents/{intent}/confirm"}),verifyMicrodeposits:nI({method:"POST",fullPath:"/v1/setup_intents/{intent}/verify_microdeposits"})}),nM=ed.method,nU=ed.extend({create:nM({method:"POST",fullPath:"/v1/shipping_rates"}),retrieve:nM({method:"GET",fullPath:"/v1/shipping_rates/{shipping_rate_token}"}),update:nM({method:"POST",fullPath:"/v1/shipping_rates/{shipping_rate_token}"}),list:nM({method:"GET",fullPath:"/v1/shipping_rates",methodType:"list"})}),nq=ed.method,nF=ed.extend({create:nq({method:"POST",fullPath:"/v1/sources"}),retrieve:nq({method:"GET",fullPath:"/v1/sources/{source}"}),update:nq({method:"POST",fullPath:"/v1/sources/{source}"}),listSourceTransactions:nq({method:"GET",fullPath:"/v1/sources/{source}/source_transactions",methodType:"list"}),verify:nq({method:"POST",fullPath:"/v1/sources/{source}/verify"})}),n$=ed.method,nB=ed.extend({create:n$({method:"POST",fullPath:"/v1/subscription_items"}),retrieve:n$({method:"GET",fullPath:"/v1/subscription_items/{item}"}),update:n$({method:"POST",fullPath:"/v1/subscription_items/{item}"}),list:n$({method:"GET",fullPath:"/v1/subscription_items",methodType:"list"}),del:n$({method:"DELETE",fullPath:"/v1/subscription_items/{item}"}),createUsageRecord:n$({method:"POST",fullPath:"/v1/subscription_items/{subscription_item}/usage_records"}),listUsageRecordSummaries:n$({method:"GET",fullPath:"/v1/subscription_items/{subscription_item}/usage_record_summaries",methodType:"list"})}),nH=ed.method,nV=ed.extend({create:nH({method:"POST",fullPath:"/v1/subscription_schedules"}),retrieve:nH({method:"GET",fullPath:"/v1/subscription_schedules/{schedule}"}),update:nH({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}"}),list:nH({method:"GET",fullPath:"/v1/subscription_schedules",methodType:"list"}),cancel:nH({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}/cancel"}),release:nH({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}/release"})}),nz=ed.method,nW=ed.extend({create:nz({method:"POST",fullPath:"/v1/subscriptions"}),retrieve:nz({method:"GET",fullPath:"/v1/subscriptions/{subscription_exposed_id}"}),update:nz({method:"POST",fullPath:"/v1/subscriptions/{subscription_exposed_id}"}),list:nz({method:"GET",fullPath:"/v1/subscriptions",methodType:"list"}),cancel:nz({method:"DELETE",fullPath:"/v1/subscriptions/{subscription_exposed_id}"}),deleteDiscount:nz({method:"DELETE",fullPath:"/v1/subscriptions/{subscription_exposed_id}/discount"}),resume:nz({method:"POST",fullPath:"/v1/subscriptions/{subscription}/resume"}),search:nz({method:"GET",fullPath:"/v1/subscriptions/search",methodType:"search"})}),nK=ed.method,nY=ed.extend({retrieve:nK({method:"GET",fullPath:"/v1/tax_codes/{id}"}),list:nK({method:"GET",fullPath:"/v1/tax_codes",methodType:"list"})}),nJ=ed.method,nX=ed.extend({create:nJ({method:"POST",fullPath:"/v1/tax_ids"}),retrieve:nJ({method:"GET",fullPath:"/v1/tax_ids/{id}"}),list:nJ({method:"GET",fullPath:"/v1/tax_ids",methodType:"list"}),del:nJ({method:"DELETE",fullPath:"/v1/tax_ids/{id}"})}),nQ=ed.method,nZ=ed.extend({create:nQ({method:"POST",fullPath:"/v1/tax_rates"}),retrieve:nQ({method:"GET",fullPath:"/v1/tax_rates/{tax_rate}"}),update:nQ({method:"POST",fullPath:"/v1/tax_rates/{tax_rate}"}),list:nQ({method:"GET",fullPath:"/v1/tax_rates",methodType:"list"})}),n1=ed.method,n0=ed.extend({create:n1({method:"POST",fullPath:"/v1/tokens"}),retrieve:n1({method:"GET",fullPath:"/v1/tokens/{token}"})}),n4=ed.method,n2=ed.extend({create:n4({method:"POST",fullPath:"/v1/topups"}),retrieve:n4({method:"GET",fullPath:"/v1/topups/{topup}"}),update:n4({method:"POST",fullPath:"/v1/topups/{topup}"}),list:n4({method:"GET",fullPath:"/v1/topups",methodType:"list"}),cancel:n4({method:"POST",fullPath:"/v1/topups/{topup}/cancel"})}),n6=ed.method,n3=ed.extend({create:n6({method:"POST",fullPath:"/v1/transfers"}),retrieve:n6({method:"GET",fullPath:"/v1/transfers/{transfer}"}),update:n6({method:"POST",fullPath:"/v1/transfers/{transfer}"}),list:n6({method:"GET",fullPath:"/v1/transfers",methodType:"list"}),createReversal:n6({method:"POST",fullPath:"/v1/transfers/{id}/reversals"}),listReversals:n6({method:"GET",fullPath:"/v1/transfers/{id}/reversals",methodType:"list"}
1),retrieveReversal:n6({method:"GET",fullPath:"/v1/transfers/{transfer}/reversals/{id}"}),updateReversal:n6({method:"POST",fullPath:"/v1/transfers/{transfer}/reversals/{id}"})}),n8=ed.method,n7=ed.extend({create:n8({method:"POST",fullPath:"/v1/webhook_endpoints"}),retrieve:n8({method:"GET",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"}),update:n8({method:"POST",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"}),list:n8({method:"GET",fullPath:"/v1/webhook_endpoints",methodType:"list"}),del:n8({method:"DELETE",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"})}),n9=ev("apps",{Secrets:tK}),n5=ev("billing",{Alerts:eT,MeterEventAdjustments:te,MeterEvents:tr,Meters:ti}),ie=ev("billingPortal",{Configurations:eI,Sessions:tJ}),it=ev("checkout",{Sessions:tQ}),ir=ev("climate",{Orders:ta,Products:tT,Suppliers:t6}),ii=ev("entitlements",{ActiveEntitlements:e_,Features:e1}),io=ev("financialConnections",{Accounts:eg,Sessions:t1,Transactions:ri}),ia=ev("forwarding",{Requests:tH}),is=ev("identity",{VerificationReports:rv,VerificationSessions:rg}),il=ev("issuing",{Authorizations:eO,Cardholders:eC,Cards:eG,Disputes:eJ,PersonalizationDesigns:tg,PhysicalBundles:t_,Tokens:t9,Transactions:ra}),iu=ev("radar",{EarlyFraudWarnings:eQ,ValueListItems:rd,ValueLists:rp}),ic=ev("reporting",{ReportRuns:tq,ReportTypes:t$}),ih=ev("sigma",{ScheduledQueryRuns:tz}),id=ev("tax",{Calculations:eR,Registrations:tM,Settings:t4,Transactions:rl}),ip=ev("terminal",{Configurations:eM,ConnectionTokens:e$,Locations:e9,Readers:tO}),im=ev("testHelpers",{ConfirmationTokens:eq,Customers:ez,Refunds:tI,TestClocks:t8,Issuing:ev("issuing",{Authorizations:eS,Cards:ej,PersonalizationDesigns:tv,Transactions:rr}),Terminal:ev("terminal",{Readers:tS}),Treasury:ev("treasury",{InboundTransfers:e6,OutboundPayments:tl,OutboundTransfers:td,ReceivedCredits:tR,ReceivedDebits:tj})}),iv=ev("treasury",{CreditReversals:eH,DebitReversals:eK,FinancialAccounts:e4,InboundTransfers:e8,OutboundPayments:tc,OutboundTransfers:tp,ReceivedCredits:tC,ReceivedDebits:tG,TransactionEntries:re,Transactions:rc}),iy="api.stripe.com",ig="443",ib="/v1/",i_=ep,iP=8e4,iT=2,iE=.5,iS=["name","version","url","partner_id"],iw=["apiVersion","typescript","maxNetworkRetries","httpAgent","httpClient","timeout","host","port","protocol","telemetry","appInfo","stripeAccount"],iO=e=>new X(e,ed.MAX_BUFFERED_REQUEST_METRICS),ix=function(e,t=iO){function r(t=e){return ef(t)}function s(i,o={}){if(!(this instanceof s))return new s(i,o);let a=this._getPropsFromConfig(o);this._platformFunctions=e,Object.defineProperty(this,"_emitter",{value:this._platformFunctions.createEmitter(),enumerable:!1,configurable:!1,writable:!1}),this.VERSION=s.PACKAGE_VERSION,this.on=this._emitter.on.bind(this._emitter),this.once=this._emitter.once.bind(this._emitter),this.off=this._emitter.removeListener.bind(this._emitter);let l=a.httpAgent||null;this._api={auth:null,host:a.host||iy,port:a.port||ig,protocol:a.protocol||"https",basePath:ib,version:a.apiVersion||i_,timeout:K("timeout",a.timeout,iP),maxNetworkRetries:K("maxNetworkRetries",a.maxNetworkRetries,1),agent:l,httpClient:a.httpClient||(l?this._platformFunctions.createNodeHttpClient(l):this._platformFunctions.createDefaultHttpClient()),dev:!1,stripeAccount:a.stripeAccount||null};let u=a.typescript||!1;u!==s.USER_AGENT.typescript&&(s.USER_AGENT.typescript=u),a.appInfo&&this._setAppInfo(a.appInfo),this._prepResources(),this._setApiKey(i),this.errors=n,this.webhooks=r(),this._prevRequestMetrics=[],this._enableTelemetry=!1!==a.telemetry,this._requestSender=t(this),this.StripeResource=s.StripeResource}return s.PACKAGE_VERSION="16.12.0",s.USER_AGENT=Object.assign({bindings_version:s.PACKAGE_VERSION,lang:"node",publisher:"stripe",uname:null,typescript:!1},Y()),s.StripeResource=ed,s.resources=i,s.HttpClient=o,s.HttpClientResponse=a,s.CryptoProvider=u,s.webhooks=Object.assign(r,ef(e)),s.errors=n,s.createNodeHttpClient=e.createNodeHttpClient,s.createFetchHttpClient=e.createFetchHttpClient,s.createNodeCryptoProvider=e.createNodeCryptoProvider,s.createSubtleCryptoProvider=e.createSubtleCryptoProvider,s.prototype={_appInfo:void 0,on:null,off:null,once:null,VERSION:null,StripeResource:null,webhooks:null,errors:null,_api:null,_prevRequestMetrics:null,_emitter:null,_enableTelemetry:null,_requestSender:null,_platformFunctions:null,_setApiKey(e){e&&this._setApiField("auth",`Bearer ${e}`)},_setAppInfo(e){if(e&&"object"!=typeof e)throw Error("AppInfo must be an object.");if(e&&!e.name)throw Error("AppInfo.name is required");e=e||{},this._appInfo=iS.reduce((t,r)=>("string"==typeof e[r]&&((t=t||{})[r]=e[r]),t),void 0)},_setApiField(e,t){this._api[e]=t},getApiField(e){return this._api[e]},setClientId(e){this._clientId=e},getClientId(){return this._clientId},getConstant:e=>{switch(e){case"DEFAULT_HOST":return iy;case"DEFAULT_PORT":return ig;case"DEFAULT_BASE_PATH":return ib;case"DEFAULT_API_VERSION":return i_;case"DEFAULT_TIMEOUT":return iP;case"MAX_NETWORK_RETRY_DELAY_SEC":return iT;case"INITIAL_NETWORK_RETRY_DELAY_SEC":return iE}return s[e]},getMaxNetworkRetries(){return this.getApiField("maxNetworkRetries")},_setApiNumberField(e,t,r){let n=K(e,t,r);this._setApiField(e,n)},getMaxNetworkRetryDelay:()=>iT,getInitialNetworkRetryDelay:()=>iE,getClientUserAgent(e){return this.getClientUserAgentSeeded(s.USER_AGENT,e)},getClientUserAgentSeeded(e,t){this._platformFunctions.getUname().then(r=>{var n;let i={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=encodeURIComponent(null!=(n=e[t])?n:"null"));i.uname=encodeURIComponent(r||"UNKNOWN");let o=this.getApiField("httpClient");o&&(i.httplib=encodeURIComponent(o.getClientName())),this._appInfo&&(i.application=this._appInfo),t(JSON.stringify(i))})},getAppInfoAsString(){if(!this._appInfo)return"";let e=this._appInfo.name;return this._appInfo.version&&(e+=`/${this._appInfo.version}`),this._appInfo.url&&(e+=` (${this._appInfo.url})`),e},getTelemetryEnabled(){return this._enableTelemetry},_prepResources(){for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(this[H(e)]=new i[e](this))},_getPropsFromConfig(e){if(!e)return{};let t="string"==typeof e;if(!(e===Object(e)&&!Array.isArray(e))&&!t)throw Error("Config must either be an object or a string");if(t)return{apiVersion:e};if(Object.keys(e).filter(e=>!iw.includes(e)).length>0)throw Error(`Config object may only contain the following: ${iw.join(", ")}`);return e}},s}(new v)},15745:(e,t,r)=>{"use strict";
1var n=r(23034),i=r(66781),o=n("RegExp.prototype.exec"),a=r(94105);e.exports=function(e){if(!i(e))throw new a("`regex` must be a RegExp");return function(t){return null!==o(e,t)}}},16459:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function i(e){console&&console.warn&&console.warn(e)}t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=g,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function l(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){if(l(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]),void 0===s)s=a[t]=r,++e._eventsCount;else if("function"==typeof s?s=a[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=u(e))>0&&s.length>o&&!s.warned){s.warned=!0;var o,a,s,c=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,i(c)}return e}function h(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=h.bind(n);return i.listener=r,n.wrapFn=i,i}function f(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?y(i):m(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function v(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function y(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function g(e,t){return new Promise(function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}_(e,t,o,{once:!0}),"error"!==t&&b(e,i,{once:!0})})}function b(e,t,r){"function"==typeof e.on&&_(e,"error",t,r)}function _(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),a.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return u(this)},a.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else for(var u=l.length,c=m(l,u),r=0;r<u;++r)n(c[r],this,t);return!0},a.prototype.addListener=function(e,t){return c(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return c(this,e,t,!0)},a.prototype.once=function(e,t){return l(t),this.on(e,d(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,d(this,e,t)),this},a.prototype.removeListener=function(e,t){var r,n,i,o,a;if(l(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit
1("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():v(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return f(this,e,!0)},a.prototype.rawListeners=function(e){return f(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},a.prototype.listenerCount=p,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},25669:(e,t,r)=>{"use strict";var n=r(48945).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=h,t=4;break;case"base64":this.text=v,this.end=y,t=3;break;default:this.write=g,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function l(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e,t,r){var n=t.length-1;if(n<r)return 0;var i=l(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function c(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function h(e){var t=this.lastTotal-this.lastNeed,r=c(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function d(e,t){var r=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function v(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=f,s.prototype.text=d,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},30358:(e,t,r)=>{"use strict";var n=r(70054),i=r(57164),o=r(40103),a=r(36370);function s(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,c=s(Object.prototype.toString),h=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),f=s(Boolean.prototype.valueOf);if(l)var p=s(BigInt.prototype.valueOf);if(u)var m=s(Symbol.prototype.valueOf);function v(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===c(e)}function g(e){return"[object Set]"===c(e)}function b(e){return"[object WeakMap]"===c(e)}function _(e){return"[object WeakSet]"===c(e)}function P(e){return"[object ArrayBuffer]"===c(e)}function T(e){return"undefined"!=typeof ArrayBuffer&&(P.working?P(e):e instanceof ArrayBuffer)}function E(e){return"[object DataView]"===c(e)}
1function S(e){return"undefined"!=typeof DataView&&(E.working?E(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||S(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(g.working?g(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},_.working="undefined"!=typeof WeakSet&&_(new WeakSet),t.isWeakSet=function(e){return _(e)},P.working="undefined"!=typeof ArrayBuffer&&P(new ArrayBuffer),t.isArrayBuffer=T,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=S;var w="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function O(e){return"[object SharedArrayBuffer]"===c(e)}function x(e){return void 0!==w&&(void 0===O.working&&(O.working=O(new w)),O.working?O(e):e instanceof w)}function R(e){return v(e,h)}function A(e){return v(e,d)}function C(e){return v(e,f)}function k(e){return l&&v(e,p)}function j(e){return u&&v(e,m)}t.isSharedArrayBuffer=x,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=R,t.isStringObject=A,t.isBooleanObject=C,t.isBigIntObject=k,t.isSymbolObject=j,t.isBoxedPrimitive=function(e){return R(e)||A(e)||C(e)||k(e)||j(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(T(e)||x(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},30553:(e,t,r)=>{"use strict";var n=r(61807),i=r(88397),o=r(49008);e.exports=function(){return o(n,i,arguments)}},36370:(e,t,r)=>{"use strict";var n=r(40103);e.exports=function(e){return!!n(e)}},39497:(e,t,r)=>{"use strict";var n=r(80045),i=r(83051),o=r(90914)(),a=r(27349),s=r(94105),l=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&a){var c=a(e,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(u=!1)}return(n||u||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},40103:(e,t,r)=>{"use strict";var n=r(83804),i=r(85148),o=r(57759),a=r(23034),s=r(27349),l=r(3404),u=a("Object.prototype.toString"),c=r(93636)(),h="undefined"==typeof globalThis?r.g:globalThis,d=i(),f=a("String.prototype.slice"),p=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},m={__proto__:null};c&&s&&l?n(d,function(e){var t=new h[e];if(Symbol.toStringTag in t&&l){var r=l(t),n=s(r,Symbol.toStringTag);!n&&r&&(n=s(l(r),Symbol.toStringTag)),m["$"+e]=o(n.get)}}):n(d,function(e){var t=new h[e],r=t.slice||t.set;r&&(m["$"+e]=o(r))});var v=function(e){var t=!1;return n(m,function(r,n){if(!t)try{"$"+r(e)===n&&(t=f(n,1))}catch(e){}}),t},y=function(e){var t=!1;return n(m,function(r,n){if(!t)try{r(e),t=f(n,1)}catch(e){}}),t};e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c){var t=f(u(e),8,-1);return p(d,t)>-1?t:"Object"===t&&y(e)}return s?v(e):null}},40618:(e,t,r)=>{var n=r(87358),i=r(15376).Buffer;let o=r(72016),a=r(47712),s=r(60775),l=r(33018),u=r(86589).version,c=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function h(e){console.log(`[dotenv@${u}][WARN] ${e}`)}function d(e){console.log(`[dotenv@${u}][DEBUG] ${e}`)}function f(e){console.log(`[dotenv@${u}] ${e}`)}function p(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:n.env.DOTENV_KEY&&n.env.DOTENV_KEY.length>0?n.env.DOTENV_KEY:""}function m(e,t){let r;try{r=new URL(t)}catch(e){if("ERR_INVALID_URL"===e.code){let e=Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:[email protected]/vault/.env.vault?environment=development");throw e.code="INVALID_DOTENV_KEY",e}throw e}let n=r.password;if(!n){let e=Error("INVALID_DOTENV_KEY: Missing key part");throw e.code="INVALID_DOTENV_KEY",e}let i=r.searchParams.get("environment");
1if(!i){let e=Error("INVALID_DOTENV_KEY: Missing environment part");throw e.code="INVALID_DOTENV_KEY",e}let o=`DOTENV_VAULT_${i.toUpperCase()}`,a=e.parsed[o];if(!a){let e=Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);throw e.code="NOT_FOUND_DOTENV_ENVIRONMENT",e}return{ciphertext:a,key:n}}function v(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)o.existsSync(r)&&(t=r.endsWith(".vault")?r:`${r}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=a.resolve(n.cwd(),".env.vault");return o.existsSync(t)?t:null}function y(e){return"~"===e[0]?a.join(s.homedir(),e.slice(1)):e}let g={configDotenv:function(e){let t,r=a.resolve(n.cwd(),".env"),i="utf8",s=!!(e&&e.debug),l=!e||!("quiet"in e)||e.quiet;e&&e.encoding?i=e.encoding:s&&d("No encoding is specified. UTF-8 is used by default");let u=[r];if(e&&e.path)if(Array.isArray(e.path))for(let t of(u=[],e.path))u.push(y(t));else u=[y(e.path)];let c={};for(let r of u)try{let t=g.parse(o.readFileSync(r,{encoding:i}));g.populate(c,t,e)}catch(e){s&&d(`Failed to load ${r} ${e.message}`),t=e}let h=n.env;if(e&&null!=e.processEnv&&(h=e.processEnv),g.populate(h,c,e),s||!l){let e=Object.keys(c).length,r=[];for(let e of u)try{let t=a.relative(n.cwd(),e);r.push(t)}catch(r){s&&d(`Failed to load ${e} ${r.message}`),t=r}f(`injecting env (${e}) from ${r.join(",")}`)}return t?{parsed:c,error:t}:{parsed:c}},_configVault:function(e){let t=!!(e&&e.debug),r=!e||!("quiet"in e)||e.quiet;(t||!r)&&f("Loading env from encrypted .env.vault");let i=g._parseVault(e),o=n.env;return e&&null!=e.processEnv&&(o=e.processEnv),g.populate(o,i,e),{parsed:i}},_parseVault:function(e){let t,r=v(e=e||{});e.path=r;let n=g.configDotenv(e);if(!n.parsed){let e=Error(`MISSING_DATA: Cannot parse ${r} for an unknown reason`);throw e.code="MISSING_DATA",e}let i=p(e).split(","),o=i.length;for(let e=0;e<o;e++)try{let r=i[e].trim(),o=m(n,r);t=g.decrypt(o.ciphertext,o.key);break}catch(t){if(e+1>=o)throw t}return g.parse(t)},config:function(e){if(0===p(e).length)return g.configDotenv(e);let t=v(e);return t?g._configVault(e):(h(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),g.configDotenv(e))},decrypt:function(e,t){let r=i.from(t.slice(-64),"hex"),n=i.from(e,"base64"),o=n.subarray(0,12),a=n.subarray(-16);n=n.subarray(12,-16);try{let e=l.createDecipheriv("aes-256-gcm",r,o);return e.setAuthTag(a),`${e.update(n)}${e.final()}`}catch(n){let e=n instanceof RangeError,t="Invalid key length"===n.message,r="Unsupported state or unable to authenticate data"===n.message;if(e||t){let e=Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw e.code="INVALID_DOTENV_KEY",e}if(r){let e=Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw e.code="DECRYPTION_FAILED",e}throw n}},parse:function(e){let t,r={},n=e.toString();for(n=n.replace(/\r\n?/mg,"\n");null!=(t=c.exec(n));){let e=t[1],n=t[2]||"",i=(n=n.trim())[0];n=n.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),'"'===i&&(n=(n=n.replace(/\\n
1/g,"\n")).replace(/\\r/g,"\r")),r[e]=n}return r},populate:function(e,t,r={}){let n=!!(r&&r.debug),i=!!(r&&r.override);if("object"!=typeof t){let e=Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw e.code="OBJECT_REQUIRED",e}for(let r of Object.keys(t))Object.prototype.hasOwnProperty.call(e,r)?(!0===i&&(e[r]=t[r]),n&&(!0===i?d(`"${r}" is already defined and WAS overwritten`):d(`"${r}" is already defined and was NOT overwritten`))):e[r]=t[r]}};e.exports.configDotenv=g.configDotenv,e.exports._configVault=g._configVault,e.exports._parseVault=g._parseVault,e.exports.config=g.config,e.exports.decrypt=g.decrypt,e.exports.parse=g.parse,e.exports.populate=g.populate,e.exports=g},43770:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},46561:(e,t,r)=>{var n="/",i=r(87358);!function(){var t={782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,n){function i(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class o extends n{constructor(e,t,r){super(i(e,t,r))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,l;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))l=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";l=`The "${e}" ${r} ${s} ${n(t,"type")}`}return l+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var o=r(709),a=r(337);r(782)(c,o);for(var s=n(a.prototype),l=0;l<s.length;l++){var u=s[l];c.prototype[u]||(c.prototype[u]=a.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",h)))}function h(){this._writableState.ended||i.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=i;var n=r(170);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(782)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},709:function(e,t,n){"use strict";e.exports=A,A.ReadableState=R,n(361).EventEmitter;var o,a,s,l,u,c=function(e,t){return e.listeners(t).length},h=n(678),d=n(300).Buffer,f=r.g.Uint8Array||function(){};function p(e){return d.from(e)}function m(e){return d.isBuffer(e)||e instanceof f}var v=n(837);a=v&&v.debuglog?v.debuglog("stream"):function(){};var y=n(379),g=n(25),b=n(776).getHighWaterMark,_=n(646).q,P=_.ERR_INVALID_ARG_TYPE,T=_.ER
vendor: 6,328 bytes, line 1
1R_STREAM_PUSH_AFTER_EOF,E=_.ERR_METHOD_NOT_IMPLEMENTED,S=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(782)(A,h);var w=g.errorOrDestroy,O=["error","close","destroy","pause","resume"];function x(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function R(e,t,r){o=o||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=b(this,e,"readableHighWaterMark",r),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function A(e){if(o=o||n(403),!(this instanceof A))return new A(e);var t=this instanceof o;this._readableState=new R(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),h.call(this)}function C(e,t,r,n,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,I(e,s);else if(i||(o=j(s,t)),o)w(e,o);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===d.prototype||(t=p(t)),n)s.endEmitted?w(e,new S):k(e,s,t,!0);else if(s.ended)w(e,new T);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?k(e,s,t,!1):U(e,s)):k(e,s,t,!1)}else n||(s.reading=!1,U(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function k(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&L(e)),U(e,t)}function j(e,t){var r;return m(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new P("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),A.prototype.destroy=g.destroy,A.prototype._undestroy=g.undestroy,A.prototype._destroy=function(e,t){t(e)},A.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=d.from(e,t),t=""),r=!0),C(this,e,t,!1,r)},A.prototype.unshift=function(e){return C(this,e,null,!0,!1)},A.prototype.isPaused=function(){return!1===this._readableState.flowing},A.prototype.setEncoding=function(e){s||(s=n(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var N=0x40000000;function G(e){return e>=N?e=N:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function D(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&(t.highWaterMark=G(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function I(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?L(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,M(e)))}}function L(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(M,e))}function M(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,z(e)}function U(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(q,e,t))}function q(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function F(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,z(e))}}function $(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function B(e){a("readable nexttick read 0"),e.read(0)}function H(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(V,e,t))}function V(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),z(e),t.flowing&&!t.reading&&e.read(0)}function z(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function W(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function K(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(Y,t,e))}function Y(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function J(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}A.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?K(this):L(this),null;if(0===(e=D(e,r))&&r.ended)return 0===r.length&&K(this),null;var i=r.needReadable;
vendor: 16,441 bytes, line 1
1return a("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",i=!0),r.ended||r.reading?a("reading or ended",i=!1):i&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=D(n,r))),null===(t=e>0?W(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&K(this)),null!==t&&this.emit("data",t),t},A.prototype._read=function(e){w(this,new E("_read()"))},A.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||e===i.stdout||e===i.stderr?y:l;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function l(){a("onend"),e.end()}n.endEmitted?i.nextTick(o):r.once("end",o),e.on("unpipe",s);var u=F(r);e.on("drain",u);var h=!1;function d(){a("cleanup"),e.removeListener("close",m),e.removeListener("finish",v),e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",l),r.removeListener("end",y),r.removeListener("data",f),h=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}function f(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==J(n.pipes,e))&&!h&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(t){a("onerror",t),y(),e.removeListener("error",p),0===c(e,"error")&&w(e,t)}function m(){e.removeListener("finish",v),y()}function v(){a("onfinish"),e.removeListener("close",m),y()}function y(){a("unpipe"),r.unpipe(e)}return r.on("data",f),x(e,"error",p),e.once("close",m),e.once("finish",v),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},A.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=J(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},A.prototype.on=function(e,t){var r=h.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?L(this):n.reading||i.nextTick(B,this)),r},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(e,t){var r=h.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick($,this),r},A.prototype.removeAllListeners=function(e){var t=h.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.nextTick($,this),t},A.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,H(this,e)),e.paused=!1,this},A.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){if(a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!=i)(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<O.length;o++)e.on(O[o],this.emit.bind(this,O[o]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(A.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=n(871)),l(this)}),Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(A.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(A.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),A._fromList=W,Object.defineProperty(A.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(A.from=function(e,t){return void 0===u&&(u=n(727)),u(A,e,t)})},170:function(e,t,r){"use strict";e.exports=c;var n=r(646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(403);function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);l.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",h)}function h(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,r){d(e,t,r)})}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(782)(c,l),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new i("_transform()"))},c.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(e,t,n){"use strict";function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){V(t,e)}}e.exports=R,R.WritableState=x;var a,s,l={deprecate:n(769)},u=n(678),c=n(300).Buffer,h=r.g.Uint8Array||function(){};function d(e){return c.from(e)}function f(e){return c.isBuffer(e)||e instanceof h}var p=n(25),m=n(776).getHighWaterMark,v=n(646).q,y=v.ERR_INVALID_ARG_TYPE,g=v.ERR_METHOD_NOT_IMPLEMENTED,b=v.ERR_MULTIPLE_CALLBACK,_=v.ERR_STREAM_CANNOT_PIPE,P=v.ERR_STREAM_DESTROYED,T=v.ERR_STREAM_NULL_VALUES,E=v.ERR_STREAM_WRITE_AFTER_END,S=v.ERR_UNKNOWN_ENCODING,w=p.errorOrDestroy;function O(){}function x(e,t,r){a=a||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=m(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){I(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function R(e){var t=this instanceof(a=a||n(403));if(!t&&!s.call(R,this))return new R(e);this._writableState=new x(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function A(e,t){var r=new E;w(e,r),i.nextTick(t,r)}function C(e,t,r,n){var o;return null===r?o=new T:"string"==typeof r||t.objectMode||(o=new y("chunk",["string","Buffer"],r)),!o||(w(e,o),i.nextTick(n,o),!1)}function k(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}function j(e,t,r,n,i,o){if(!r){var a=k(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else N(e,t,!1,s,n,i,o);return l}function N(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new P("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function G(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(B,e,t),e._writableState.errorEmitted=!0,w(e,n)):(o(n),e._writableState.errorEmitted=!0,w(e,n),B(e,t))}function D(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function I(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new b;if(D(r),t)G(e,r,n,t,o);else{var a=q(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||U(e,r),n?i.nextTick(L,e,r,a,o):L(e,r,a,o)}}function L(e,t,r,n){r||M(e,t),t.pendingcb--,n(),B(e,t)}function M(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function U(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,N(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,c=r.callback,h=t.objectMode?1:l.length;if(N(e,t,!1,h,l,u,c),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function q(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function F(e,t){e._final(function(r){t.pendingcb--,r&&w(e,r),t.prefinished=!0,e.emit("prefinish"),B(e,t)})}function $(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(F,e,t)))}function B(e,t){var r=q(t);if(r&&($(e,t),0===t.pendingcb)&&(t.finished=!0,e.emit("finish"),t.autoDestroy)){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function H(e,t,r){t.ending=!0,B(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function V(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}n(782)(R,u),x.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(x.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(R,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===R&&e&&e._writableState instanceof x}})):s=function(e){return e instanceof this},R.prototype.pipe=function(){w(this,new _)},R.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&f(e);return o&&!c.isBuffer(e)&&(e=d(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=O),n.ending?A(this,r):(o||C(this,n,e,r))&&(n.pendingcb++,i=j(this,n,o,e,t,r)),i},R.prototype.cork=function(){this._writableState.corked++},R.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||U(this,e))},R.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new S(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(R.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(R.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),R.prototype._write=function(e,t,r){r(new g("_write()"))},R.prototype._writev=null,R.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||H(this,n,r),this},Object.defineProperty(R.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),R.prototype.destroy=p.destroy,R.prototype._undestroy=p.undestroy,R.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,a=r(698),s=Symbol("lastResolve"),l=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),h=Symbol("lastPromise"),d=Symbol("handlePromise"),f=Symbol("stream");function p(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[f].read();null!==r&&(e[h]=null,e[s]=null,e[l]=null,t(p(r,!1)))}}function v(e){i.nextTick(m,e)}function y(e,t){return function(r,n){e.then(function(){if(t[c])return void r(p(void 0,!0));t[d](r,n)},n)}}var g=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((n(o={get stream(){return this[f]},next:function(){var e,t=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(p(void 0,!0));if(this[f].destroyed)return new Promise(function(e,r){i.nextTick(function(){t[u]?r(t[u]):e(p(void 0,!0))})});var n=this[h];if(n)e=new Promise(y(n,this));else{var o=this[f].read();if(null!==o)return Promise.resolve(p(o,!1));e=new Promise(this[d])}return this[h]=e,e}},Symbol.asyncIterator,function(){return this}),n(o,"return",function(){var e=this;return new Promise(function(t,r){e[f].destroy(null,function(e){if(e)return void r(e);t(p(void 0,!0))})})}),o),g);e.exports=function(e){var t,r=Object.create(b,(n(t={},f,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,l,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,c,{value:e._readableState.endEmitted,writable:!0}),n(t,d,{value:function(e,t){var n=r[f].read();n?(r[h]=null,r[s]=null,r[l]=null,e(p(n,!1))):(r[s]=e,r[l]=t)},writable:!0}),t));return r[h]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[l];null!==t&&(r[h]=null,r[s]=null,r[l]=null,t(e)),r[u]=e;return}var n=r[s];null!==n&&(r[h]=null,r[s]=null,r[l]=null,n(p(void 0,!0))),r[c]=!0}),e.on("readable",v.bind(null,r)),r}},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
vendor: 4,150 bytes, line 1
1t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var u=r(300).Buffer,c=r(837).inspect,h=c&&c.custom||"inspect";function d(e,t,r){u.prototype.copy.call(e,t,r)}e.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return l(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),r=this.head,n=0;r;)d(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:h,value:function(e,t){return c(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){n(e,t),r(e)}function r(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(n,this,e)):i.nextTick(n,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?a._writableState?a._writableState.errorEmitted?i.nextTick(r,a):(a._writableState.errorEmitted=!0,i.nextTick(t,a,e)):i.nextTick(t,a,e):o?(i.nextTick(r,a),o(e)):i.nextTick(r,a)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},698:function(e,t,r){"use strict";
1var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function o(){}function a(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var l=t.readable||!1!==t.readable&&e.readable,u=t.writable||!1!==t.writable&&e.writable,c=function(){e.writable||d()},h=e._writableState&&e._writableState.finished,d=function(){u=!1,h=!0,l||r.call(e)},f=e._readableState&&e._readableState.endEmitted,p=function(){l=!1,f=!0,u||r.call(e)},m=function(t){r.call(e,t)},v=function(){var t;return l&&!f?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):u&&!h?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},y=function(){e.req.on("finish",d)};return a(e)?(e.on("complete",d),e.on("abort",v),e.req?y():e.on("request",y)):u&&!e._writableState&&(e.on("end",c),e.on("close",c)),e.on("end",p),e.on("finish",d),!1!==t.error&&e.on("error",m),e.on("close",v),function(){e.removeListener("complete",d),e.removeListener("abort",v),e.removeListener("request",y),e.req&&e.req.removeListener("finish",d),e.removeListener("end",c),e.removeListener("close",c),e.removeListener("finish",d),e.removeListener("end",p),e.removeListener("error",m),e.removeListener("close",v)}}e.exports=s},727:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,l,"next",e)}function l(e){n(a,i,o,s,l,"throw",e)}s(void 0)})}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}
1var l=r(646).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new l("iterable",["Iterable"],t);var n,o=new e(a({objectMode:!0},r)),s=!1;function u(){return c.apply(this,arguments)}function c(){return(c=i(function*(){try{var e=yield n.next(),t=e.value;e.done?o.push(null):o.push((yield t))?u():s=!1}catch(e){o.destroy(e)}})).apply(this,arguments)}return o._read=function(){s||(s=!0,u())},o}},442:function(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i,o=r(646).q,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function u(e){return e.setHeader&&"function"==typeof e.abort}function c(e,t,o,a){a=n(a);var l=!1;e.on("close",function(){l=!0}),void 0===i&&(i=r(698)),i(e,{readable:t,writable:o},function(e){if(e)return a(e);l=!0,a()});var c=!1;return function(t){if(!l&&!c){if(c=!0,u(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();a(t||new s("pipe"))}}}function h(e){e()}function d(e,t){return e.pipe(t)}function f(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():l}e.exports=function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=f(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new a("streams");var o=r.map(function(t,n){var a=n<r.length-1;return c(t,a,n>0,function(t){e||(e=t),t&&o.forEach(h),a||(o.forEach(h),i(e))})});return r.reduce(d)}},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}e.exports={getHighWaterMark:function(e,t,r,o){var a=i(t,o,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(o?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},678:function(e,t,r){e.exports=r(781)},55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},173:function(e,t,r){e.exports=i;var n=r(361).EventEmitter;function i(){n.call(this)}r(782)(i,n),i.Readable=r(709),i.Writable=r(337),i.Duplex=r(403),i.Transform=r(170),i.PassThrough=r(889),i.finished=r(698),i.pipeline=r(442),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",l),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",u),e.on("error",u),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},704:function(e,t,r){"use strict";var n=r(55).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";
1case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=h,t=4;break;case"base64":this.text=v,this.end=y,t=3;break;default:this.write=g,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function l(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e,t,r){var n=t.length-1;if(n<r)return 0;var i=l(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function c(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function h(e){var t=this.lastTotal-this.lastNeed,r=c(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function d(e,t){var r=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function v(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=f,s.prototype.text=d,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},769:function(e){function t(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function e(e,r){if(t("noDeprecation"))return e;var n=!1;return function(){if(!n){if(t("throwDeprecation"))throw Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return e.apply(this,arguments)}}},300:function(e){"use strict";e.exports=r(15376)},361:function(e){"use strict";e.exports=r(16459)},781:function(e){"use strict";e.exports=r(16459).EventEmitter},837:function(e){"use strict";e.exports=r(85413)}},o={};function a(e){var r=o[e];if(void 0!==r)return r.exports;var n=o[e]={exports:{}},i=!0;try{t[e](n,n.exports,a),i=!1}finally{i&&delete o[e]}return n.exports}a.ab=n+"/",e.exports=a(173)}()},47712:e=>{var t="/";!function(){"use strict";var r={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else if(47===r)break;else r=47;if(47===r){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2)){if(n.length>2){var l=n.lastIndexOf("/");if(l!==n.length-1){-1===l?(n="",i=0):i=(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),o=s,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=s,a=0;continue}}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(o+1,s):n=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}function n(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+e+n:n}var i={resolve:function(){for(var e,n,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--)a>=0?n=arguments[a]:(void 0===e&&(e=""),n=e),t(n),0!==n.length&&(i=n+"/"+i,o=47===n.charCodeAt(0));if(i=r(i,!o),o)if(i.length>0)return"/"+i;else return"/";return i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return(0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&i&&(e+="/"),n)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,r=0;r<arguments.length;++r){var n=arguments[r];t(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":i.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r||(e=i.resolve(e))===(r=i.resolve(r)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var o=e.length,a=o-n,s=1;s<r.length&&47===r.charCodeAt(s);++s);for(var l=r.length-s,u=a<l?a:l,c=-1,h=0;h<=u;++h){if(h===u){if(l>u){if(47===r.charCodeAt(s+h))return r.slice(s+h+1);else if(0===h)return r.slice(s+h)}else a>u&&(47===e.charCodeAt(n+h)?c=h:0===h&&(c=0));break}var d=e.charCodeAt(n+h);if(d!==r.charCodeAt(s+h))break;47===d&&(c=h)}var f="";for(h=n+c+1;h<=o;++h)(h===o||47===e.charCodeAt(h))&&(0===f.length?f+="..":f+="/..");return f.length>0?f+r.slice(s+c):(s+=c,47===r.charCodeAt(s)&&++s,r.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(r=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;
1return -1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw TypeError('"ext" argument must be a string');t(e);var n,i=0,o=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var s=r.length-1,l=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(47===u){if(!a){i=n+1;break}}else -1===l&&(a=!1,l=n+1),s>=0&&(u===r.charCodeAt(s)?-1==--s&&(o=n):(s=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){i=n+1;break}}else -1===o&&(a=!1,o=n+1);return -1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var r=-1,n=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47===l){if(!o){n=s+1;break}continue}-1===i&&(o=!1,i=s+1),46===l?-1===r?r=s:1!==a&&(a=1):-1!==r&&(a=-1)}return -1===r||-1===i||0===a||1===a&&r===i-1&&r===n+1?"":e.slice(r,i)},format:function(e){if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return n("/",e)},parse:function(e){t(e);var r,n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var i=e.charCodeAt(0),o=47===i;o?(n.root="/",r=1):r=0;for(var a=-1,s=0,l=-1,u=!0,c=e.length-1,h=0;c>=r;--c){if(47===(i=e.charCodeAt(c))){if(!u){s=c+1;break}continue}-1===l&&(u=!1,l=c+1),46===i?-1===a?a=c:1!==h&&(h=1):-1!==a&&(h=-1)}return -1===a||-1===l||0===h||1===h&&a===l-1&&a===s+1?-1!==l&&(0===s&&o?n.base=n.name=e.slice(1,l):n.base=n.name=e.slice(s,l)):(0===s&&o?(n.name=e.slice(1,a),n.base=e.slice(1,l)):(n.name=e.slice(s,a),n.base=e.slice(s,l)),n.ext=e.slice(a,l)),s>0?n.dir=e.slice(0,s-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}},a=!0;try{r[e](o,o.exports,i),a=!1}finally{a&&delete n[e]}return o.exports}i.ab=t+"/",e.exports=i(114)}()},48508:e=>{"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i(function(){throw 42},null,t)}catch(e){e!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{if(a(e))return!1;return n.call(e),!0}catch(e){return!1}},l=Object.prototype.toString,u="[object Object]",c="[object Function]",h="[object GeneratorFunction]",d="[object HTMLAllCollection]",f="[object HTML document.all class]",p="[object HTMLCollection]",m="function"==typeof Symbol&&!!Symbol.toStringTag,v=!(0 in[,]),y=function(){return!1};if("object"==typeof document){var g=document.all;l.call(g)===l.call(document.all)&&(y=function(e){if((v||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return(t===d||t===f||t===p||t===u)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(y(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!a(e)&&s(e)}:function(e){if(y(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(m)return s(e);if(a(e))return!1;var t=l.call(e);return(t===c||t===h||!!/^\[object HTML/.test(t))&&s(e)}},48945:(e,t,r)=>{var n=r(15376),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},49797:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},57164:(e,t,r)=>{"use strict";var n=r(23034),i=r(15745)(/^\s*(?:function)?\*/),o=r(93636)(),a=r(3404),s=n("Object.prototype.toString"),l=n("Function.prototype.toString"),u=r(99919);e.exports=function(e){if("function"!=typeof e)return!1;if(i(l(e)))return!0;
1if(!o)return"[object GeneratorFunction]"===s(e);if(!a)return!1;var t=u();return t&&a(e)===t.prototype}},57759:(e,t,r)=>{"use strict";var n=r(39497),i=r(65785),o=r(28250),a=r(30553);e.exports=function(e){var t=o(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},60775:e=>{var t="/";!function(){"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=t+"/");var r={};!function(){var e=r;e.endianness=function(){return"LE"},e.hostname=function(){return"undefined"!=typeof location?location.hostname:""},e.loadavg=function(){return[]},e.uptime=function(){return 0},e.freemem=function(){return Number.MAX_VALUE},e.totalmem=function(){return Number.MAX_VALUE},e.cpus=function(){return[]},e.type=function(){return"Browser"},e.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},e.networkInterfaces=e.getNetworkInterfaces=function(){return{}},e.arch=function(){return"javascript"},e.platform=function(){return"browser"},e.tmpdir=e.tmpDir=function(){return"/tmp"},e.EOL="\n",e.homedir=function(){return"/"}}(),e.exports=r}()},61992:e=>{"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},66781:(e,t,r)=>{"use strict";var n,i=r(23034),o=r(93636)(),a=r(20535),s=r(27349);if(o){var l=i("RegExp.prototype.exec"),u={},c=function(){throw u},h={toString:c,valueOf:c};"symbol"==typeof Symbol.toPrimitive&&(h[Symbol.toPrimitive]=c),n=function(e){if(!e||"object"!=typeof e)return!1;var t=s(e,"lastIndex");if(!(t&&a(t,"value")))return!1;try{l(e,h)}catch(e){return e===u}}}else{var d=i("Object.prototype.toString"),f="[object RegExp]";n=function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&d(e)===f}}e.exports=n},70054:(e,t,r)=>{"use strict";var n=r(93636)(),i=r(23034)("Object.prototype.toString"),o=function(e){return(!n||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"callee"in e&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},83051:(e,t,r)=>{"use strict";var n=r(65785),i=r(73390),o=r(94105),a=r(27349);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],h=!!a&&a(e,t);if(n)n(e,t,{configurable:null===u&&h?h.configurable:!u,enumerable:null===s&&h?h.enumerable:!s,value:r,writable:null===l&&h?h.writable:!l});else if(!c&&(s||l||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},83804:(e,t,r)=>{"use strict";var n=r(48508),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(e,t,r){for(var n=0,i=e.length;n<i;n++)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))},s=function(e,t,r){for(var n=0,i=e.length;n<i;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)},l=function(e,t,r){for(var n in e)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))};function u(e){return"[object Array]"===i.call(e)}e.exports=function(e,t,r){var i;if(!n(t))throw TypeError("iterator must be a function");arguments.length>=3&&(i=r),u(e)?a(e,t,i):"string"==typeof e?s(e,t,i):l(e,t,i)}},85148:(e,t,r)=>{"use strict";var n=r(61992),i="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof i[n[t]]&&(e[e.length]=n[t]);return e}},85413:(e,t,r)=>{var n=r(87358),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!E(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(u(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r<i;s=n[++r])P(s)||!O(s)?a+=" "+s:a+=" "+u(s);return a},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var a={},s=/^$/;
1if(n.env.NODE_DEBUG){var l=n.env.NODE_DEBUG;s=RegExp("^"+(l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function u(e,r){var n={seen:[],stylize:h};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),_(r)?n.showHidden=r:r&&t._extend(n,r),S(n.showHidden)&&(n.showHidden=!1),S(n.depth)&&(n.depth=2),S(n.colors)&&(n.colors=!1),S(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),f(n,e,n.depth)}function c(e,t){var r=u.styles[t];return r?"\x1b["+u.colors[r][0]+"m"+e+"\x1b["+u.colors[r][1]+"m":e}function h(e,t){return e}function d(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function f(e,r,n){if(e.customInspect&&r&&A(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o=r.inspect(n,e);return E(o)||(o=f(e,o,n)),o}var a=p(e,r);if(a)return a;var s=Object.keys(r),l=d(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),R(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return m(r);if(0===s.length){if(A(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(x(r))return e.stylize(Date.prototype.toString.call(r),"date");if(R(r))return m(r)}var c="",h=!1,_=["{","}"];if(b(r)&&(h=!0,_=["[","]"]),A(r)&&(c=" [Function"+(r.name?": "+r.name:"")+"]"),w(r)&&(c=" "+RegExp.prototype.toString.call(r)),x(r)&&(c=" "+Date.prototype.toUTCString.call(r)),R(r)&&(c=" "+m(r)),0===s.length&&(!h||0==r.length))return _[0]+c+_[1];if(n<0)if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");else return e.stylize("[Object]","special");return e.seen.push(r),i=h?v(e,r,n,l,s):s.map(function(t){return y(e,r,n,l,t,h)}),e.seen.pop(),g(i,c,_)}function p(e,t){if(S(t))return e.stylize("undefined","undefined");if(E(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return T(t)?e.stylize(""+t,"number"):_(t)?e.stylize(""+t,"boolean"):P(t)?e.stylize("null","null"):void 0}function m(e){return"["+Error.prototype.toString.call(e)+"]"}function v(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)G(t,String(a))?o.push(y(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(y(e,t,r,n,i,!0))}),o}function y(e,t,r,n,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),G(n,i)||(a="["+i+"]"),!s&&(0>e.seen.indexOf(l.value)?(s=P(r)?f(e,l.value,null):f(e,l.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return"  "+e}).join("\n").slice(2):"\n"+s.split("\n").map(function(e){return"   "+e}).join("\n")):s=e.stylize("[Circular]","special")),S(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function g(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function b(e){return Array.isArray(e)}function _(e){return"boolean"==typeof e}function P(e){return null===e}function T(e){return"number"==typeof e}function E(e){return"string"==typeof e}function S(e){return void 0===e}function w(e){return O(e)&&"[object RegExp]"===C(e)}function O(e){return"object"==typeof e&&null!==e}function x(e){return O(e)&&"[object Date]"===C(e)}function R(e){return O(e)&&("[object Error]"===C(e)||e instanceof Error)}function A(e){return"function"==typeof e}function C(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()])if(s.test(e)){var r=n.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=u,u.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]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(30358),t.isArray=b,t.isBoolean=_,t.isNull=P,t.isNullOrUndefined=function(e){return null==e}
vendor: 4,118 bytes, line 1
1,t.isNumber=T,t.isString=E,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=S,t.isRegExp=w,t.types.isRegExp=w,t.isObject=O,t.isDate=x,t.types.isDate=x,t.isError=R,t.types.isNativeError=R,t.isFunction=A,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(49797);var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function N(){var e=new Date,t=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":");return[e.getDate(),j[e.getMonth()],t].join(" ")}function G(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",N(),t.format.apply(t,arguments))},t.inherits=r(43770),t._extend=function(e,t){if(!t||!O(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var D="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(D&&e[D]){var t=e[D];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),D&&Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=D,t.callbackify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var i=t.pop();if("function"!=typeof i)throw TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then(function(e){n.nextTick(a.bind(null,null,e))},function(e){n.nextTick(I.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},86589:e=>{"use strict";e.exports=JSON.parse('{"name":"dotenv","version":"16.6.1","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","pretest":"npm run lint && npm run dts-check","test":"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"homepage":"https://github.com/motdotla/dotenv#readme","funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@types/node":"^18.11.3","decache":"^4.6.2","sinon":"^14.0.1","standard":"^17.0.0","standard-version":"^9.5.0","tap":"^19.2.0","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')},90914:(e,t,r)=>{"use strict";var n=r(65785),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},93636:(e,t,r)=>{"use strict";var n=r(16873);e.exports=function(){return n()&&!!Symbol.toStringTag}},99919:e=>{"use strict";let t=(function*(){}).constructor;e.exports=()=>t}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.