1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[85254],{15742:(e,t,r)=>{"use strict";var o=r(70508),n=r(91453),i=r(63946),a=r(47962),s=r(63674),l=o("%WeakMap%",!0),u=n("WeakMap.prototype.get",!0),h=n("WeakMap.prototype.set",!0),d=n("WeakMap.prototype.has",!0),c=n("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+i(e))},delete:function(r){if(l&&r&&("object"==typeof r||"function"==typeof r)){if(e)return c(e,r)}else if(a&&t)return t.delete(r);return!1},get:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&e?u(e,r):t&&t.get(r)},has:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&e?d(e,r):!!t&&t.has(r)},set:function(r,o){l&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new l),h(e,r,o)):a&&(t||(t=a()),t.set(r,o))}};return r}:a},23773:(e,t,r)=>{"use strict";var o=r(33145),n=r(55281),i=r(72060),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,h=function(e,t){u.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,c=i.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,filter:void 0,format:c,formatter:i.formatters[c],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},m={},f=function e(t,r,i,a,s,u,d,c,f,v,y,P,g,T,_,E,S,b){for(var O,x,w=t,G=b,A=0,C=!1;void 0!==(G=G.get(m))&&!C;){var R=G.get(t);if(A+=1,void 0!==R)if(R===A)throw RangeError("Cyclic object value");else C=!0;void 0===G.get(m)&&(A=0)}if("function"==typeof v?w=v(r,w):w instanceof Date?w=g(w):"comma"===i&&l(w)&&(w=n.maybeMap(w,function(e){return e instanceof Date?g(e):e})),null===w){if(u)return f&&!E?f(r,p.encoder,S,"key",T):r;w=""}if("string"==typeof(O=w)||"number"==typeof O||"boolean"==typeof O||"symbol"==typeof O||"bigint"==typeof O||n.isBuffer(w))return f?[_(E?r:f(r,p.encoder,S,"key",T))+"="+_(f(w,p.encoder,S,"value",T))]:[_(r)+"="+_(String(w))];var k=[];if(void 0===w)return k;if("comma"===i&&l(w))E&&f&&(w=n.maybeMap(w,f)),x=[{value:w.length>0?w.join(",")||null:void 0}];else if(l(v))x=v;else{var j=Object.keys(w);x=y?j.sort(y):j}var I=c?String(r).replace(/\./g,"%2E"):String(r),D=a&&l(w)&&1===w.length?I+"[]":I;if(s&&l(w)&&0===w.length)return D+"[]";for(var N=0;N<x.length;++N){var L=x[N],q="object"==typeof L&&L&&void 0!==L.value?L.value:w[L];if(!d||null!==q){var M=P&&c?String(L).replace(/\./g,"%2E"):String(L),F=l(w)?"function"==typeof i?i(D,M):D:D+(P?"."+M:"["+M+"]");b.set(t,A);var H=o();H.set(m,b),h(k,e(q,F,i,a,s,u,d,c,"comma"===i&&E&&l(w)?null:f,v,y,P,g,T,_,E,S,H))}}return k},v=function(e){if(!e)return p;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,r=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw TypeError("Unknown format option provided.");o=e.format}var n=i.formatters[o],u=p.filter;if(("function"==typeof e.filter||l(e.filter))&&(u=e.filter),t=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":p.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var h=void 0===e.allowDots?!0===e.encodeDotInKeys||p.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:h,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:t,charset
1:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:p.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:u,format:o,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}};e.exports=function(e,t){var r,n,i=e,a=v(t);"function"==typeof a.filter?i=(0,a.filter)("",i):l(a.filter)&&(r=a.filter);var u=[];if("object"!=typeof i||null===i)return"";var d=s[a.arrayFormat],c="comma"===d&&a.commaRoundTrip;r||(r=Object.keys(i)),a.sort&&r.sort(a.sort);for(var p=o(),m=0;m<r.length;++m){var y=r[m],P=i[y];a.skipNulls&&null===P||h(u,f(P,y,d,c,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,p))}var g=u.join(a.delimiter),T=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?T+="utf8=%26%2310003%3B&":T+="utf8=%E2%9C%93&"),g.length>0?T+g:""}},33145:(e,t,r)=>{"use strict";var o=r(63674),n=r(63946),i=r(35042),a=r(47962),s=r(15742)||a||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+n(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=s()),e.set(t,r)}};return t}},35042:(e,t,r)=>{"use strict";var o=r(63946),n=r(63674),i=function(e,t,r){for(var o,n=e;null!=(o=n.next);n=o)if(o.key===t)return n.next=o.next,r||(o.next=e.next,e.next=o),o},a=function(e,t){if(e){var r=i(e,t);return r&&r.value}},s=function(e,t,r){var o=i(e,t);o?o.value=r:e.next={key:t,next:e.next,value:r}},l=function(e,t){if(e)return i(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+o(e))},delete:function(t){var r=e&&e.next,o=l(e,t);return o&&r&&r===o&&(e=void 0),!!o},get:function(t){return a(e,t)},has:function(t){var r;return!!(r=e)&&!!i(r,t)},set:function(t,r){e||(e={next:void 0}),s(e,t,r)}};return t}},47962:(e,t,r)=>{"use strict";var o=r(70508),n=r(91453),i=r(63946),a=r(63674),s=o("%Map%",!0),l=n("Map.prototype.get",!0),u=n("Map.prototype.set",!0),h=n("Map.prototype.has",!0),d=n("Map.prototype.delete",!0),c=n("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(t){if(e){var r=d(e,t);return 0===c(e)&&(e=void 0),r}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&h(e,t)},set:function(t,r){e||(e=new s),u(e,t,r)}};return t}},55281:(e,t,r)=>{"use strict";var o=r(72060),n=r(33145),i=Object.prototype.hasOwnProperty,a=Array.isArray,s=n(),l=function(e,t){return s.set(e,t),e},u=function(e){return s.has(e)},h=function(e){return s.get(e)},d=function(e,t){s.set(e,t)},c=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),p=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(a(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&(o[o.length]=r[n]);t.obj[t.prop]=o}}},m=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},o=0;o<e.length;++o)void 0!==e[o]&&(r[o]=e[o]);return r};e.exports={arrayToObject:m,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t,r,o){if(u(e)){var n=h(e)+1;return e[n]=t,d(e,n),e}var i=[].concat(e,t);return i.length>r?l(m(i,{plainObjects:o}),i.length-1):i},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var n=t[o],i=n.obj[n.prop],a=Object.keys(i),s=0;s<a.length;++s){var l=a[s],u=i[l];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t[t.length]={obj:i,prop:l},r[r.length]=u)}return p(t),e},decode:function(e,t,r){var o=e.replace(/\+/g," ");
1if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,r,n,i){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var s="",l=0;l<a.length;l+=1024){for(var u=a.length>=1024?a.slice(l,l+1024):a,h=[],d=0;d<u.length;++d){var p=u.charCodeAt(d);if(45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===o.RFC1738&&(40===p||41===p)){h[h.length]=u.charAt(d);continue}if(p<128){h[h.length]=c[p];continue}if(p<2048){h[h.length]=c[192|p>>6]+c[128|63&p];continue}if(p<55296||p>=57344){h[h.length]=c[224|p>>12]+c[128|p>>6&63]+c[128|63&p];continue}d+=1,p=65536+((1023&p)<<10|1023&u.charCodeAt(d)),h[h.length]=c[240|p>>18]+c[128|p>>12&63]+c[128|p>>6&63]+c[128|63&p]}s+=h.join("")}return s},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:u,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:l,maybeMap:function(e,t){if(a(e)){for(var r=[],o=0;o<e.length;o+=1)r[r.length]=t(e[o]);return r}return t(e)},merge:function e(t,r,o){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(a(t)){var n=t.length;if(o&&"number"==typeof o.arrayLimit&&n>o.arrayLimit)return l(m(t.concat(r),o),n);t[n]=r}else if(!t||"object"!=typeof t)return[t,r];else if(u(t)){var s=h(t)+1;t[s]=r,d(t,s)}else{if(o&&o.strictMerge)return[t,r];(o&&(o.plainObjects||o.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t){if(u(r)){for(var c=Object.keys(r),p=o&&o.plainObjects?{__proto__:null,0:t}:{0:t},f=0;f<c.length;f++)p[parseInt(c[f],10)+1]=r[c[f]];return l(p,h(r)+1)}var v=[t].concat(r);return o&&"number"==typeof o.arrayLimit&&v.length>o.arrayLimit?l(m(v,o),v.length-1):v}var y=t;return(a(t)&&!a(r)&&(y=m(t,o)),a(t)&&a(r))?(r.forEach(function(r,n){if(i.call(t,n)){var a=t[n];a&&"object"==typeof a&&r&&"object"==typeof r?t[n]=e(a,r,o):t[t.length]=r}else t[n]=r}),t):Object.keys(r).reduce(function(t,n){var a=r[n];if(i.call(t,n)?t[n]=e(t[n],a,o):t[n]=a,u(r)&&!u(t)&&l(t,h(r)),u(t)){var s=parseInt(n,10);String(s)===n&&s>=0&&s>h(t)&&d(t,s)}return t},y)}}},63946:(e,t,r)=>{var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&l&&"function"==typeof l.get?l.get:null,h=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,c="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,f=Object.prototype.toString,v=Function.prototype.toString,y=String.prototype.match,P=String.prototype.slice,g=String.prototype.replace,T=String.prototype.toUpperCase,_=String.prototype.toLowerCase,E=RegExp.prototype.test,S=Array.prototype.concat,b=Array.prototype.join,O=Array.prototype.slice,x=Math.floor,w="function"==typeof BigInt?BigInt.prototype.valueOf:null,G=Object.getOwnPropertySymbols,A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,C="function"==typeof Symbol&&"object"==typeof Symbol.iterator,R="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===C?"object":"symbol")?Symbol.toStringTag:null,k=Object.prototype.propertyIsEnumerable,j=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function I(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||E.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-x(-e):x(e);if(o!==e){var n=String(o),i=P.call(t,n.length+1);return g.call(n,r,"$&_")+"."+g.call(g.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return g.call(t,r,"$&_")}
1var D=r(42634),N=D.custom,L=$(N)?N:null,q={__proto__:null,double:'"',single:"'"},M={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function F(e,t,r){var o=q[r.quoteStyle||t];return o+e+o}function H(e){return!R||!("object"==typeof e&&(R in e||void 0!==e[R]))}function U(e){return"[object Array]"===W(e)&&H(e)}function z(e){return"[object RegExp]"===W(e)&&H(e)}function $(e){if(C)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}e.exports=function e(t,o,n,s){var l,f,T,E,x,G=o||{};if(B(G,"quoteStyle")&&!B(q,G.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(B(G,"maxStringLength")&&("number"==typeof G.maxStringLength?G.maxStringLength<0&&G.maxStringLength!==1/0:null!==G.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var N=!B(G,"customInspect")||G.customInspect;if("boolean"!=typeof N&&"symbol"!==N)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(B(G,"indent")&&null!==G.indent&&" "!==G.indent&&!(parseInt(G.indent,10)===G.indent&&G.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(B(G,"numericSeparator")&&"boolean"!=typeof G.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var K=G.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var o=t.length-r.maxStringLength;return e(P.call(t,0,r.maxStringLength),r)+("... "+o)+" more character"+(o>1?"s":"")}var n=M[r.quoteStyle||"single"];return n.lastIndex=0,F(g.call(g.call(t,n,"\\$1"),/[\x00-\x1f]/g,J),"single",r)}(t,G);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var et=String(t);return K?I(t,et):et}if("bigint"==typeof t){var er=String(t)+"n";return K?I(t,er):er}var eo=void 0===G.depth?5:G.depth;if(void 0===n&&(n=0),n>=eo&&eo>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var en=function(e,t){var r;if(" "===e.indent)r=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=b.call(Array(e.indent+1)," ")}return{base:r,prev:b.call(Array(t+1),r)}}(G,n);if(void 0===s)s=[];else if(V(s,t)>=0)return"[Circular]";function ei(t,r,o){if(r&&(s=O.call(s)).push(r),o){var i={depth:G.depth};return B(G,"quoteStyle")&&(i.quoteStyle=G.quoteStyle),e(t,i,n+1,s)}return e(t,G,n+1,s)}if("function"==typeof t&&!z(t)){var ea=function(e){if(e.name)return e.name;var t=y.call(v.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),es=ee(t,ei);return"[Function"+(ea?": "+ea:" (anonymous)")+"]"+(es.length>0?" { "+b.call(es,", ")+" }":"")}if($(t)){var el=C?g.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):A.call(t);return"object"!=typeof t||C?el:Q(el)}if((eu=t)&&"object"==typeof eu&&("undefined"!=typeof HTMLElement&&eu instanceof HTMLElement||"string"==typeof eu.nodeName&&"function"==typeof eu.getAttribute)){for(var eu,eh,ed="<"+_.call(String(t.nodeName)),ec=t.attributes||[],ep=0;ep<ec.length;ep++){ed+=" "+ec[ep].name+"="+F((eh=ec[ep].value,g.call(String(eh),/"/g,""")),"double",G)}return ed+=">",t.childNodes&&t.childNodes.length&&(ed+="..."),ed+="</"+_.call(String(t.nodeName))+">"}if(U(t)){if(0===t.length)return"[]";var em=ee(t,ei);return en&&!function(e){for(var t=0;t<e.length;t++)if(V(e[t],"\n")>=0)return!1;return!0}(em)?"["+Z(em,en)+"]":"[ "+b.call(em,", ")+" ]"}if("[object Error]"===W(l=t)&&H(l)){var ef=ee(t,ei);return"cause"in Error.prototype||!("cause"in t)||k.call(t,"cause")?0===ef.length?"["+String(t)+"]":"{ ["+String(t)+"] "+b.call(ef,", ")+" }":"{ ["+String(t)+"] "+b.call(S.call("[cause]: "+ei(t.cause),ef),", ")+" }"}
1if("object"==typeof t&&N){if(L&&"function"==typeof t[L]&&D)return D(t,{depth:eo-n});else if("symbol"!==N&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ev=[];return a&&a.call(t,function(e,r){ev.push(ei(r,t,!0)+" => "+ei(e,t))}),Y("Map",i.call(t),ev,en)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ey=[];return h&&h.call(t,function(e){ey.push(ei(e,t))}),Y("Set",u.call(t),ey,en)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{c.call(e,c)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return X("WeakMap");if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e,c);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return X("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return X("WeakRef");if("[object Number]"===W(f=t)&&H(f))return Q(ei(Number(t)));if(function(e){if(!e||"object"!=typeof e||!w)return!1;try{return w.call(e),!0}catch(e){}return!1}(t))return Q(ei(w.call(t)));if("[object Boolean]"===W(T=t)&&H(T))return Q(m.call(t));if("[object String]"===W(E=t)&&H(E))return Q(ei(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!("[object Date]"===W(x=t)&&H(x))&&!z(t)){var eP=ee(t,ei),eg=j?j(t)===Object.prototype:t instanceof Object||t.constructor===Object,eT=t instanceof Object?"":"null prototype",e_=!eg&&R&&Object(t)===t&&R in t?P.call(W(t),8,-1):eT?"Object":"",eE=(eg||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(e_||eT?"["+b.call(S.call([],e_||[],eT||[]),": ")+"] ":"");return 0===eP.length?eE+"{}":en?eE+"{"+Z(eP,en)+"}":eE+"{ "+b.call(eP,", ")+" }"}return String(t)};var K=Object.prototype.hasOwnProperty||function(e){return e in this};function B(e,t){return K.call(e,t)}function W(e){return f.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,o=e.length;r<o;r++)if(e[r]===t)return r;return -1}function J(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+T.call(t.toString(16))}function Q(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function Y(e,t,r,o){return e+" ("+t+") {"+(o?Z(r,o):b.call(r,", "))+"}"}function Z(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+b.call(e,","+r)+"\n"+t.prev}function ee(e,t){var r,o=U(e),n=[];if(o){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=B(e,i)?t(e[i],e):""}var a="function"==typeof G?G(e):[];if(C){r={};for(var s=0;s<a.length;s++)r["$"+a[s]]=a[s]}for(var l in e)if(B(e,l)&&(!o||String(Number(l))!==l||!(l<e.length)))if(C&&r["$"+l]instanceof Symbol)continue;else E.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e));if("function"==typeof G)for(var u=0;u<a.length;u++)k.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}},72060:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,o={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:o.RFC3986,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:o.RFC1738,RFC3986:o.RFC3986}},84251:(e,t,r)=>{"use strict";var o=r(55281),n=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:o.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},l=function(e,t){var r={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=t.parameterLimit===1/0?void 0:t.parameterLimit,h=l.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==u?u+1:u);if(t.throwOnLimitExceeded&&void 0!==u&&h.length>u)throw RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var d=-1,c=t.charset;if(t.charsetSentinel)for(p=0;p<h.length;++p)0===h[p].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[p]?c="utf-8":"utf8=%26%2310003%3B"===h[p]&&(c="iso-8859-1"),d=p,p=h.length);for(p=0;p<h.length;++p)if(p!==d){var p,m,f,v=h[p],y=v.indexOf("]="),P=-1===y?v.indexOf("="):y+1;if(-1===P?(m=t.decoder(v,a.decoder,c,"key"),f=t.strictNullHandling?null:""):null!==(m=t.decoder(v.slice(0,P),a.decoder,c,"key"))&&(f=o.maybeMap(s(v.slice(P+1),t,i(r[m])?r[m].length:0),function(e){return t.decoder(e,a.decoder,c,"value")})),f&&t.interpretNumericEntities&&"iso-8859-1"===c&&(f=String(f).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))}
1)),v.indexOf("[]=")>-1&&(f=i(f)?[f]:f),t.comma&&i(f)&&f.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");f=o.combine([],f,t.arrayLimit,t.plainObjects)}if(null!==m){var g=n.call(r,m);g&&("combine"===t.duplicates||v.indexOf("[]=")>-1)?r[m]=o.combine(r[m],f,t.arrayLimit,t.plainObjects):g&&"last"!==t.duplicates||(r[m]=f)}}return r},u=function(e,t,r,n){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var l=n?t:s(t,r,i),u=e.length-1;u>=0;--u){var h,d=e[u];if("[]"===d&&r.parseArrays)h=o.isOverflow(l)?l:r.allowEmptyArrays&&(""===l||r.strictNullHandling&&null===l)?[]:o.combine([],l,r.arrayLimit,r.plainObjects);else{h=r.plainObjects?{__proto__:null}:{};var c="["===d.charAt(0)&&"]"===d.charAt(d.length-1)?d.slice(1,-1):d,p=r.decodeDotInKeys?c.replace(/%2E/g,"."):c,m=parseInt(p,10),f=!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays;if(r.parseArrays||""!==p)if(f&&m<r.arrayLimit)(h=[])[m]=l;else if(f&&r.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");else f?(h[m]=l,o.markOverflow(h,m)):"__proto__"!==p&&(h[p]=l);else h={0:l}}l=h}return l},h=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&n.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var o=/(\[[^[\]]*])/g,i=/(\[[^[\]]*])/.exec(r),a=i?r.slice(0,i.index):r,s=[];if(a){if(!t.plainObjects&&n.call(Object.prototype,a)&&!t.allowPrototypes)return;s[s.length]=a}for(var l=0;null!==(i=o.exec(r))&&l<t.depth;){l+=1;var u=i[1].slice(1,-1);if(!t.plainObjects&&n.call(Object.prototype,u)&&!t.allowPrototypes)return;s[s.length]=i[1]}if(i){if(!0===t.strictDepth)throw RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");s[s.length]="["+r.slice(i.index)+"]"}return s},d=function(e,t,r,o){if(e){var n=h(e,r);if(n)return u(n,t,r,o)}},c=function(e){if(!e)return a;
1if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:a.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};e.exports=function(e,t){var r=c(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var n="string"==typeof e?l(e,r):e,i=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),s=0;s<a.length;++s){var u=a[s],h=d(u,n[u],r,"string"==typeof e);i=o.merge(i,h,r)}return!0===r.allowSparse?i:o.compact(i)}},85254:(e,t,r)=>{"use strict";r.d(t,{A:()=>nA});var o={};r.r(o),r.d(o,{StripeAPIError:()=>q,StripeAuthenticationError:()=>M,StripeCardError:()=>N,StripeConnectionError:()=>U,StripeError:()=>D,StripeIdempotencyError:()=>$,StripeInvalidGrantError:()=>K,StripeInvalidRequestError:()=>L,StripePermissionError:()=>F,StripeRateLimitError:()=>H,StripeSignatureVerificationError:()=>z,StripeUnknownError:()=>B,TemporarySessionExpiredError:()=>W,generateV1Error:()=>j,generateV2Error:()=>I});var n={};r.r(n),r.d(n,{Account:()=>rw,AccountLinks:()=>rA,AccountSessions:()=>rR,Accounts:()=>rw,ApplePayDomains:()=>rj,ApplicationFees:()=>rD,Apps:()=>na,Balance:()=>rL,BalanceTransactions:()=>rM,Billing:()=>ns,BillingPortal:()=>nl,Charges:()=>rH,Checkout:()=>nu,Climate:()=>nh,ConfirmationTokens:()=>rz,CountrySpecs:()=>rK,Coupons:()=>rW,CreditNotes:()=>rJ,CustomerSessions:()=>rX,Customers:()=>rZ,Disputes:()=>r0,Entitlements:()=>nd,EphemeralKeys:()=>r8,Events:()=>r6,ExchangeRates:()=>r4,FileLinks:()=>r7,Files:()=>or,FinancialConnections:()=>nc,Forwarding:()=>np,Identity:()=>nm,InvoiceItems:()=>on,InvoicePayments:()=>oa,InvoiceRenderingTemplates:()=>ol,Invoices:()=>oh,Issuing:()=>nf,Mandates:()=>oc,OAuth:()=>of,PaymentIntents:()=>oy,PaymentLinks:()=>og,PaymentMethodConfigurations:()=>o_,PaymentMethodDomains:()=>oS,PaymentMethods:()=>oO,Payouts:()=>ow,Plans:()=>oA,Prices:()=>oR,Products:()=>oj,PromotionCodes:()=>oD,Quotes:()=>oL,Radar:()=>nv,Refunds:()=>oM,Reporting:()=>ny,Reviews:()=>oH,SetupAttempts:()=>oz,SetupIntents:()=>oK,ShippingRates:()=>oW,Sigma:()=>nP,Sources:()=>oJ,SubscriptionItems:()=>oX,SubscriptionSchedules:()=>oZ,Subscriptions:()=>o0,Tax:()=>ng,TaxCodes:()=>o8,TaxIds:()=>o6,TaxRates:()=>o4,Terminal:()=>nT,TestHelpers:()=>n_,Tokens:()=>o7,Topups:()=>nt,Transfers:()=>no,Treasury:()=>nE,V2:()=>nS,WebhookEndpoints:()=>ni});
1var i=r(86052),a=r(87358);let s=["apiKey","idempotencyKey","stripeAccount","apiVersion","maxNetworkRetries","timeout","host","authenticator","stripeContext","additionalHeaders","streaming"];function l(e){return e&&"object"==typeof e&&s.some(t=>Object.prototype.hasOwnProperty.call(e,t))}function u(e,t){return i.stringify(e,{serializeDate:e=>Math.floor(e.getTime()/1e3).toString(),arrayFormat:"v2"==t?"repeat":"indices"}).replace(/%5B/g,"[").replace(/%5D/g,"]")}let h=(()=>{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)=>{let o=e[r];return["number","string","boolean"].includes(typeof o)?encodeURIComponent(o):""})}})();function d(e){if(!Array.isArray(e)||!e[0]||"object"!=typeof e[0])return{};if(!l(e[0]))return e.shift();let t=Object.keys(e[0]),r=t.filter(e=>s.includes(e));return r.length>0&&r.length!==t.length&&f(`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 c(e){let t={host:null,headers:{},settings:{},streaming:!1};if(e.length>0){let r=e[e.length-1];if("string"==typeof r)t.authenticator=y(e.pop());else if(l(r)){let r=Object.assign({},e.pop()),o=Object.keys(r).filter(e=>!s.includes(e));if(o.length&&f(`Invalid options found (${o.join(", ")}); ignoring.`),r.apiKey&&(t.authenticator=y(r.apiKey)),r.idempotencyKey&&(t.headers["Idempotency-Key"]=r.idempotencyKey),r.stripeAccount&&(t.headers["Stripe-Account"]=r.stripeAccount),r.stripeContext){if(t.headers["Stripe-Account"])throw Error("Can't specify both stripeAccount and stripeContext.");t.headers["Stripe-Context"]=r.stripeContext}if(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),r.authenticator){if(r.apiKey)throw Error("Can't specify both apiKey and authenticator.");if("function"!=typeof r.authenticator)throw Error("The authenticator must be a function receiving a request as the first parameter.");t.authenticator=r.authenticator}r.additionalHeaders&&(t.headers=r.additionalHeaders),r.streaming&&(t.streaming=!0)}}return t}function p(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 m(e,t){return t?e.then(e=>{setTimeout(()=>{t(null,e)},0)},e=>{setTimeout(()=>{t(e,null)},0)}):e}function f(e){return"function"!=typeof a.emitWarning?console.warn(`Stripe: ${e}`):a.emitWarning(e,"Stripe")}function v(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(e){let t=t=>(t.headers.Authorization="Bearer "+e,Promise.resolve());return t._apiKey=e,t}function P(e,t){return this[e]instanceof Date?Math.floor(this[e].getTime()/1e3).toString():t}function g(e){return e&&e.startsWith("/v2")?"v2":"v1"}function T(e){return Array.isArray(e)?e.join(", "):String(e)}class _{getClientName(){throw Error("getClientName not implemented.")}makeRequest(e,t,r,o,n,i,a,s){throw Error("makeRequest not implemented.")}static makeTimeoutError(){let e=TypeError(_.TIMEOUT_ERROR_CODE);return e.code=_.TIMEOUT_ERROR_CODE,e}}_.CONNECTION_CLOSED_ERROR_CODES=["ECONNRESET","EPIPE"],_.TIMEOUT_ERROR_CODE="ETIMEDOUT";class E{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 _{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,o)=>{let n,i=new Promise((e,t)=>
1{n=setTimeout(()=>{n=null,t(_.makeTimeoutError())},o)});return Promise.race([e(t,r),i]).finally(()=>{n&&clearTimeout(n)})}}static makeFetchWithAbortTimeout(e){return async(t,r,o)=>{let n=new AbortController,i=setTimeout(()=>{i=null,n.abort(_.makeTimeoutError())},o);try{return await e(t,Object.assign(Object.assign({},r),{signal:n.signal}))}catch(e){if("AbortError"===e.name)throw _.makeTimeoutError();throw e}finally{i&&clearTimeout(i)}}}getClientName(){return"fetch"}async makeRequest(e,t,r,o,n,i,a,s){let l=new URL(r,`${"http"===a?"http":"https"}://${e}`);l.port=t;let u="POST"==o||"PUT"==o||"PATCH"==o,h=i||(u?"":void 0);return new b(await this._fetchFn(l.toString(),{method:o,headers:Object.entries(n).map(([e,t])=>[e,T(t)]),body:"object"==typeof h?JSON.stringify(h):h},s))}}class b extends E{constructor(e){super(e.status,b._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 O{computeHMACSignature(e,t){throw Error("computeHMACSignature not implemented.")}computeHMACSignatureAsync(e,t){throw Error("computeHMACSignatureAsync not implemented.")}computeSHA256Async(e){throw Error("computeSHA256 not implemented.")}}class x extends Error{}class w extends O{constructor(e){super(),this.subtleCrypto=e||crypto.subtle}computeHMACSignature(e,t){throw new x("SubtleCryptoProvider cannot be used in a synchronous context.")}async computeHMACSignatureAsync(e,t){let r=new TextEncoder,o=await this.subtleCrypto.importKey("raw",r.encode(t),{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),n=new Uint8Array(await this.subtleCrypto.sign("hmac",o,r.encode(e))),i=Array(n.length);for(let e=0;e<n.length;e++)i[e]=G[n[e]];return i.join("")}async computeSHA256Async(e){return new Uint8Array(await this.subtleCrypto.digest("SHA-256",e))}}let G=Array(256);for(let e=0;e<G.length;e++)G[e]=e.toString(16).padStart(2,"0");class A{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,o=0;for(let n=0;n<r;++n)o|=e.charCodeAt(n)^t.charCodeAt(n);return 0===o}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 w(e)}createDefaultCryptoProvider(){throw Error("createDefaultCryptoProvider not implemented.")}}class C extends Event{constructor(e,t){super(e),this.data=t}}class R{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 C(e,t))}}class k extends A{getUname(){return Promise.resolve(null)}createEmitter(){return new R}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 j=e=>{switch(e.type){case"card_error":return new N(e);
1case"invalid_request_error":return new L(e);case"api_error":return new q(e);case"authentication_error":return new M(e);case"rate_limit_error":return new H(e);case"idempotency_error":return new $(e);case"invalid_grant":return new K(e);default:return new B(e)}},I=e=>"temporary_session_expired"===e.type?new W(e):"invalid_fields"===e.code?new L(e):j(e);class D extends Error{constructor(e={},t=null){var r;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=null!=(r=e.message)?r:"",this.userMessage=e.user_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}}D.generate=j;class N extends D{constructor(e={}){super(e,"StripeCardError")}}class L extends D{constructor(e={}){super(e,"StripeInvalidRequestError")}}class q extends D{constructor(e={}){super(e,"StripeAPIError")}}class M extends D{constructor(e={}){super(e,"StripeAuthenticationError")}}class F extends D{constructor(e={}){super(e,"StripePermissionError")}}class H extends D{constructor(e={}){super(e,"StripeRateLimitError")}}class U extends D{constructor(e={}){super(e,"StripeConnectionError")}}class z extends D{constructor(e,t,r={}){super(r,"StripeSignatureVerificationError"),this.header=e,this.payload=t}}class $ extends D{constructor(e={}){super(e,"StripeIdempotencyError")}}class K extends D{constructor(e={}){super(e,"StripeInvalidGrantError")}}class B extends D{constructor(e={}){super(e,"StripeUnknownError")}}class W extends D{constructor(e={}){super(e,"TemporarySessionExpiredError")}}class V{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 o=Date.now(),n=o-e.request_start_time;return p({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:n,request_start_time:e.request_start_time,request_end_time:o})}_getRequestId(e){return e["request-id"]}_streamingResponseHandler(e,t,r){return o=>{let n=o.getHeaders(),i=o.toStream(()=>{let r=this._makeResponseEvent(e,o.getStatusCode(),n);this._stripe._emitter.emit("response",r),this._recordRequestMetrics(this._getRequestId(n),r.elapsed,t)});return this._addHeadersDirectlyToObject(i,n),r(null,i)}}_jsonResponseHandler(e,t,r,o){return n=>{let i=n.getHeaders(),a=this._getRequestId(i),s=n.getStatusCode(),l=this._makeResponseEvent(e,s,i);this._stripe._emitter.emit("response",l),n.toJSON().then(e=>{if(e.error){let r;throw"string"==typeof e.error&&(e.error={type:e.error,message:e.error_description}),e.error.headers=i,e.error.statusCode=s,e.error.requestId=a,401===s?new M(e.error):403===s?new F(e.error):429===s?new H(e.error):"v2"===t?I(e.error):j(e.error)}return e},e=>{throw new q({message:"Invalid JSON received from the Stripe API",exception:e,requestId:i["request-id"]})}).then(e=>{this._recordRequestMetrics(a,l.elapsed,r);let t=n.getRawResponse();this._addHeadersDirectlyToObject(t,i),Object.defineProperty(e,"lastResponse",{enumerable:!1,writable:!1,value:t}),o(null,e)},e=>o(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,o){return!!(o&&0===t&&_.CONNECTION_CLOSED_ERROR_CODES.includes(o.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(),o=Math.min(r*Math.pow(2,e-1),this._stripe.getMaxNetworkRetryDelay());return o*=.5*(1+Math.random()),o=Math.max(r,o),Number.isInteger(t)&&t<=60&&(o=Math.max(o,t)),1e3*o}_getMaxNetworkRetries(e={}){return void 0!==e.maxNetworkRetries&&Number.isInteger(e.maxNetworkRetries)?e.maxNetworkRetries:this._stripe.getMaxNetworkRetries()}_defaultIdempotencyKey(e,t,r){let o=this._getMaxNetworkRetries(t),n=()=>
1`stripe-node-retry-${this._stripe._platformFunctions.uuid4()}`;if("v2"===r){if("POST"===e||"DELETE"===e)return n()}else if("v1"===r&&"POST"===e&&o>0)return n();return null}_makeHeaders({contentType:e,contentLength:t,apiVersion:r,clientUserAgent:o,method:n,userSuppliedHeaders:i,userSuppliedSettings:a,stripeAccount:s,stripeContext:l,apiMode:u}){let h={Accept:"application/json","Content-Type":e,"User-Agent":this._getUserAgentString(u),"X-Stripe-Client-User-Agent":o,"X-Stripe-Client-Telemetry":this._getTelemetryHeader(),"Stripe-Version":r,"Stripe-Account":s,"Stripe-Context":l,"Idempotency-Key":this._defaultIdempotencyKey(n,a,u)},d="POST"==n||"PUT"==n||"PATCH"==n;return(d||t)&&(d||f(`${n} method had non-zero contentLength but no payload is expected for this verb`),h["Content-Length"]=t),Object.assign(p(h),i&&"object"==typeof i?Object.keys(i).reduce((e,t)=>(e[t.split("-").map(e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()).join("-")]=i[t],e),{}):i)}_getUserAgentString(e){let t=this._stripe.getConstant("PACKAGE_VERSION"),r=this._stripe._appInfo?this._stripe.getAppInfoAsString():"";return`Stripe/${e} NodeBindings/${t} ${r}`.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)f("Request metrics buffer is full, dropping telemetry message.");else{let o={request_id:e,request_duration_ms:t};r&&r.length>0&&(o.usage=r),this._stripe._prevRequestMetrics.push(o)}}_rawRequest(e,t,r,o){return new Promise((n,i)=>{let a;try{let n=e.toUpperCase();if("POST"!==n&&r&&0!==Object.keys(r).length)throw Error("rawRequest only supports params on POST requests. Please pass null and add your parameters to path.");let i=[].slice.call([r,o]),s=d(i),l="POST"===n?Object.assign({},s):null,u=c(i),h=u.headers,p=u.authenticator;a={requestMethod:n,requestPath:t,bodyData:l,queryData:{},authenticator:p,headers:h,host:u.host,streaming:!!u.streaming,settings:{},usage:["raw_request"]}}catch(e){i(e);return}let{headers:s,settings:l}=a,u=a.authenticator;this._request(a.requestMethod,a.host,t,a.bodyData,u,{headers:s,settings:l,streaming:a.streaming},a.usage,function(e,t){e?i(e):n(t)})})}_request(e,t,r,o,n,i,a=[],s,l=null){var h;let d;n=null!=(h=null!=n?n:this._stripe._authenticator)?h:null;let c=g(r),m=(e,t,r,o,n)=>setTimeout(e,this._getSleepTimeInMS(o,n),t,r,o+1),f=(o,l,u)=>{let h=i.settings&&i.settings.timeout&&Number.isInteger(i.settings.timeout)&&i.settings.timeout>=0?i.settings.timeout:this._stripe.getApiField("timeout"),v={host:t||this._stripe.getApiField("host"),port:this._stripe.getApiField("port"),path:r,method:e,headers:Object.assign({},l),body:d,protocol:this._stripe.getApiField("protocol")};n(v).then(()=>{let t=this._stripe.getApiField("httpClient").makeRequest(v.host,v.port,v.path,v.method,v.headers,v.body,v.protocol,h),n=Date.now(),d=p({api_version:o,account:T(l["Stripe-Account"]),idempotency_key:T(l["Idempotency-Key"]),method:e,path:r,request_start_time:n}),y=u||0,P=this._getMaxNetworkRetries(i.settings||{});this._stripe._emitter.emit("request",d),t.then(e=>{if(V._shouldRetry(e,y,P)){var t;return m(f,o,l,y,Number(Array.isArray(t=e.getHeaders()["retry-after"])?t[0]:t))}return i.streaming&&400>e.getStatusCode()?this._streamingResponseHandler(d,a,s)(e):this._jsonResponseHandler(d,c,a,s)(e)}).catch(e=>V._shouldRetry(null,y,P,e)?m(f,o,l,y,null):s(new U({message:e.code&&e.code===_.TIMEOUT_ERROR_CODE?`Request aborted due to timeout being reached (${h}ms)`:V._generateConnectionErrorMessage(y),detail:e})))}).catch(e=>{throw new D({message:"Unable to authenticate the request",exception:e})})},v=(t,r)=>{if(t)return s(t);d=r,this._stripe.getClientUserAgent(t=>{let r=this._stripe.getApiField("version"),o=this._makeHeaders({contentType:"v2"==c?"application/json":"application/x-www-form-urlencoded",contentLength:d.length,apiVersion:r,clientUserAgent:t,method:e,userSuppliedHeaders:i.headers,userSuppliedSettings:i.settings,stripeAccount:"v2"==c?null:this._stripe.getApiField("stripeAccount"),stripeContext:"v2"==c?this._stripe.getApiField("stripeContext"):null,apiMode:c});f(r,o,0)})};if(l)l(e,o,i.headers,v);else{let e;v(null,e="v2"==c?o?JSON.stringify(o,P):"":u(o||{},c))}}}class J{constructor(e,t,r,o){this.index=0,this.pagePromise=e,this.promiseCache={currentPromise:null},this.requestArgs=t,this.spec=r,this.stripeResource=o}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=et(this.requestArgs);if(this.index<e.data.length){let r=t?e.data.length-1-this.index:this.index,o=e.data[r];return this.index+=1,{value:o,done:!1}}if(e.has_more){this.index=0,this.pagePromise=this.getNextPage(e);let t=await this.pagePromise;return this.iterate(t)}
1return{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 Q extends J{getNextPage(e){let t=et(this.requestArgs),r=function(e,t){let r=t?0:e.data.length-1,o=e.data[r],n=o&&o.id;if(!n)throw Error("Unexpected: No `id` found on the last item while auto-paging a list.");return n}(e,t);return this.stripeResource._makeRequest(this.requestArgs,this.spec,{[t?"ending_before":"starting_after"]:r})}}class X extends J{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})}}class Y{constructor(e,t,r,o){this.currentPageIterator=(async()=>(await e).data[Symbol.iterator]())(),this.nextPageUrl=(async()=>(await e).next_page_url||null)(),this.requestArgs=t,this.spec=r,this.stripeResource=o}async turnPage(){let e=await this.nextPageUrl;if(!e)return null;this.spec.fullPath=e;let t=await this.stripeResource._makeRequest([],this.spec,{});return this.nextPageUrl=Promise.resolve(t.next_page_url),this.currentPageIterator=Promise.resolve(t.data[Symbol.iterator]()),this.currentPageIterator}async next(){{let e=(await this.currentPageIterator).next();if(!e.done)return{done:!1,value:e.value}}let e=await this.turnPage();if(!e)return{done:!0,value:void 0};let t=e.next();return t.done?{done:!0,value:void 0}:{done:!1,value:t.value}}}let Z=(e,t,r,o)=>{let n=g(r.fullPath||r.path);return"v2"!==n&&"search"===r.methodType?ee(new X(o,t,r,e)):"v2"!==n&&"list"===r.methodType?ee(new Q(o,t,r,e)):"v2"===n&&"list"===r.methodType?ee(new Y(o,t,r,e)):null},ee=e=>{var t,r;let o=(t=(...t)=>e.next(...t),function(){var e,r;let o=[].slice.call(arguments),n=function(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))}}(o),i=function(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}(o);if(o.length>2)throw Error(`autoPagingEach takes up to two arguments; received ${o}`);return m((e=t,r=n,new Promise((t,o)=>{e().then(function o(n){if(n.done)return void t();let i=n.value;return new Promise(e=>{r(i,e)}).then(t=>!1===t?o({done:!0,value:void 0}):e().then(o))}).catch(o)})),i)}),n=(r=o,function(e,t){let o=e&&e.limit;if(!o)throw Error("You must pass a `limit` option to autoPagingToArray, e.g., `autoPagingToArray({limit: 1000});`.");if(o>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 m(new Promise((e,t)=>{let n=[];r(e=>{if(n.push(e),n.length>=o)return!1}).then(()=>{e(n)}).catch(t)}),t)}),i={autoPagingEach:o,autoPagingToArray:n,next:()=>e.next(),return:()=>({}),["undefined"!=typeof Symbol&&Symbol.asyncIterator?Symbol.asyncIterator:"@@asyncIterator"]:()=>i};return i};function et(e){return!!d([].slice.call(e)).ending_before}function er(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=h(this.basePath||e.getApiField("basePath")),this.resourcePath=this.path,this.path=h(this.path),this.initialize(...arguments)}er.extend=function(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},er.method=function(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=function(e){let t=e.match(/\{\w+\}/g);return t?t.map(e=>e.replace(/[{}]/g,"")):[]}(e.fullPath||this.createResourcePathWithSymbols(e.path||""));let o=m(this._makeRequest(t,e,{}),r);return Object.assign(o,Z(this,t,e,o)),o}},er.MAX_BUFFERED_REQUEST_METRICS=100,er.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 o=e(t);o&&r.push(o)}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){var o;let n=(t.method||"GET").toUpperCase(),i=t.usage||[],a=t.urlParams||[],s=t.encode||(e=>e),l=!!t.fullPath,u=h(l?t.fullPath:t.path||""),p=l?t.fullPath:this.createResourcePathWithSymbols(t.path),m=[].slice.call(e),f=a.reduce((e,t)=>{let r=m.shift();if("string"!=typeof r)throw Error(`Stripe: Argument "${t}" must be a string, but got: ${r} (on API request to \`${n} ${p}\`)`);return e[t]=r,e},{}),v=s(Object.assign({},d(m),r)),y=c(m),P=y.host||t.host,g=!!t.streaming||!!y.streaming;if(m.filter(e=>null!=e).length)throw Error(`Stripe: Unknown arguments (${m}). Did you mean to pass an options object? See https://github.com/stripe/stripe-node/wiki/Passing-Options. (on API request to ${n} \`${p}\`)`);let T=l?u(f):this.createFullPath(u,f),_=Object.assign(y.headers,t.headers);t.validator&&t.validator(v,{headers:_});let E="GET"===t.method||"DELETE"===t.method;return{requestMethod:n,requestPath:T,bodyData:E?null:v,queryData:E?v:{},authenticator:null!=(o=y.authenticator)?o:null,headers:_,host:null!=P?P:null,streaming:g,settings:y.settings,usage:i}},_makeRequest(e,t,r){return new Promise((o,n)=>{var i;let a;try{a=this._getRequestOpts(e,t,r)}catch(e){n(e);return}let s=0===Object.keys(a.queryData).length,l=[a.requestPath,s?"":"?",u(a.queryData,g(a.requestPath))].join(""),{headers:h,settings:d}=a;this._stripe._requestSender._request(a.requestMethod,a.host,l,a.bodyData,a.authenticator,{headers:h,settings:d,streaming:a.streaming},a.usage,function(e,r){e?n(e):o(t.transformResponseData?t.transformResponseData(r):r)},null==(i=this.requestDataProcessor)?void 0:i.bind(this))})}};let eo="2025-08-27.basil";function en(e,t){for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let o=r[0].toLowerCase()+r.substring(1),n=new t[r](e);this[o]=n}}function ei(e,t){return function(e){return new en(e,t)}}let ea=er.method,es=er.extend({retrieve:ea({method:"GET",fullPath:"/v1/financial_connections/accounts/{account}"}),list:ea({method:"GET",fullPath:"/v1/financial_connections/accounts",methodType:"list"}),disconnect:ea({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/disconnect"}),listOwners:ea({method:"GET",fullPath:"/v1/financial_connections/accounts/{account}/owners",methodType:"list"}),refresh:ea({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/refresh"}),subscribe:ea({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/subscribe"}),unsubscribe:ea({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/unsubscribe"})}),el=er.method,eu=er.extend({retrieve:el({method:"GET",fullPath:"/v1/entitlements/active_entitlements/{id}"}),list:el({method:"GET",fullPath:"/v1/entitlements/active_entitlements",methodType:"list"})}),eh=er.method,ed=er.extend({create:eh({method:"POST",fullPath:"/v1/billing/alerts"}),retrieve:eh({method:"GET",fullPath:"/v1/billing/alerts/{id}"}),list:eh({method:"GET",fullPath:"/v1/billing/alerts",methodType:"list"}),activate:eh({method:"POST",fullPath:"/v1/billing/alerts/{id}/activate"}),archive:eh({method:"POST",fullPath:"/v1/billing/alerts/{id}/archive"}),deactivate:eh({method:"POST",fullPath:"/v1/billing/alerts/{id}/deactivate"})}),ec=er.method,ep=er.extend({retrieve:ec({method:"GET",fullPath:"/v1/issuing/authorizations/{authorization}"}),update:ec({method:"POST",fullPath:"/v1/issuing/authorizations/{authorization}"}),list:ec({method:"GET",fullPath:"/v1/issuing/authorizations",methodType:"list"}),approve:ec({method:"POST",fullPath:"/v1/issuing/authorizations/{authorization}/approve"}),decline:ec({method:"POST",fullPath:"/v1/issuing/authorizations/{authorization}/decline"})}),em=er.method,ef=er.extend({create:em({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations"}),capture:em({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/capture"}),expire:em({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/expire"}),finalizeAmount:em({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/finalize_amount"}),increment:em({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/increment"}),respond:em({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/fraud_challenges/respond"}),reverse:em({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/reverse"})}),ev=er.method,ey=er.extend({create:ev({method:"POST",fullPath:"/v1/tax/calculations"}),retrieve:ev({method:"GET",fullPath:"/v1/tax/calculations/{calculation}"}),listLineItems:ev({method:"GET",fullPath:"/v1/tax/calculations/{calculation}/line_items",methodType:"list"})}),eP=er.method,eg=er.extend({create:eP({method:"POST",fullPath:"/v1/issuing/cardholders"}),retrieve:eP({method:"GET",fullPath:"/v1/issuing/cardholders/{cardholder}"}),update:eP({method:"POST",fullPath:"/v1/issuing/cardholders/{cardholder}"}),list:eP({method:"GET",fullPath:"/v1/issuing/cardholders",methodType:"list"})}),eT=er.method,e_=er.extend({create:eT({method:"POST",fullPath:"/v1/issuing/cards"}),retrieve:eT({method:"GET",fullPath:"/v1/issuing/cards/{card}"}),update:eT({method:"POST",fullPath:"/v1/issuing/cards/{card}"}),list:eT({method:"GET",fullPath:"/v1/issuing/cards",methodType:"list"})}),eE=er.method,eS=er.extend({deliverCard:eE({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/deliver"}),failCard:eE({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/fail"}),returnCard:eE({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/return"}),shipCard:eE({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/ship"}),submitCard:eE({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/submit"})}),eb=er.method,eO=er.extend({create:eb({method:"POST",fullPath:"/v1/billing_portal/configurations"}),retrieve:eb({method:"GET",fullPath:"/v1/billing_portal/configurations/{configuration}"}),update:eb({method:"POST",fullPath:"/v1/billing_portal/configurations/{configuration}"}),list:eb({method:"GET",fullPath:"/v1/billing_portal/configurations",methodType:"list"})}),ex=er.method,ew=er.extend({create:ex({method:"POST",fullPath:"/v1/terminal/configurations"}),retrieve:ex({method:"GET",fullPath:"/v1/terminal/configurations/{configuration}"}),update:ex({method:"POST",fullPath:"/v1/terminal/configurations/{configuration}"}),list:ex({method:"GET",fullPath:"/v1/terminal/configurations",methodType:"list"}),del:ex({method:"DELETE",fullPath:"/v1/terminal/configurations/{configuration}"})}),eG=er.method,eA=er.extend({create:eG({method:"POST",fullPath:"/v1/test_helpers/confirmation_tokens"})}),eC=er.method,eR=er.extend({create:eC({method:"POST",fullPath:"/v1/terminal/connection_tokens"})}),ek=er.method,ej=er.extend({retrieve:ek({method:"GET",fullPath:"/v1/billing/credit_balance_summary"})}),eI=er.method,eD=er.extend({retrieve:eI({method:"GET",fullPath:"/v1/billing/credit_balance_transactions/{id}"}),list:eI({method:"GET",fullPath:"/v1/billing/credit_balance_transactions",methodType:"list"})}),eN=er.method,eL=er.extend({create:eN({method:"POST",fullPath:"/v1/billing/credit_grants"}),retrieve:eN({method:"GET",fullPath:"/v1/billing/credit_grants/{id}"}),update:eN({method:"POST",fullPath:"/v1/billing/credit_grants/{id}"}),list:eN({method:"GET",fullPath:"/v1/billing/credit_grants",methodType:"list"}),expire:eN({method:"POST",fullPath:"/v1/billing/credit_grants/{id}/expire"}),voidGrant:eN({method:"POST",fullPath:"/v1/billing/credit_grants/{id}/void"})}),eq=er.method,eM=er.extend({create:eq({method:"POST",fullPath:"/v1/treasury/credit_reversals"}),retrieve:eq({method:"GET",fullPath:"/v1/treasury/credit_reversals/{credit_reversal}"}),list:eq({method:"GET",fullPath:"/v1/treasury/credit_reversals",methodType:"list"})}),eF=er.method,eH=er.extend({fundCashBalance:eF({method:"POST",fullPath:"/v1/test_helpers/customers/{customer}/fund_cash_balance"})}),eU=er.method,ez=er.extend({create:eU({method:"POST",fullPath:"/v1/treasury/debit_reversals"}),retrieve:eU({method:"GET",fullPath:"/v1/treasury/debit_reversals/{debit_reversal}"}),list:eU({method:"GET",fullPath:"/v1/treasury/debit_reversals",methodType:"list"})}),e$=er.method,eK=er.extend({create:e$({method:"POST",fullPath:"/v1/issuing/disputes"}),retrieve:e$({method:"GET",fullPath:"/v1/issuing/disputes/{dispute}"}),update:e$({method:"POST",fullPath:"/v1/issuing/disputes/{dispute}"}),list:e$({method:"GET",fullPath:"/v1/issuing/disputes",methodType:"list"}),submit:e$({method:"POST",fullPath:"/v1/issuing/disputes/{dispute}/submit"})}),eB=er.method,eW=er.extend({retrieve:eB({method:"GET",fullPath:"/v1/radar/early_fraud_warnings/{early_fraud_warning}"}),list:eB({method:"GET",fullPath:"/v1/radar/early_fraud_warnings",methodType:"list"})}),eV=er.method,eJ=er.extend({create:eV({method:"POST",fullPath:"/v2/core/event_destinations"}),retrieve:eV({method:"GET",fullPath:"/v2/core/event_destinations/{id}"}),update:eV({method:"POST",fullPath:"/v2/core/event_destinations/{id}"}),list:eV({method:"GET",fullPath:"/v2/core/event_destinations",methodType:"list"}),del:eV({method:"DELETE",fullPath:"/v2/core/event_destinations/{id}"}),disable:eV({method:"POST",fullPath:"/v2/core/event_destinations/{id}/disable"}),enable:eV({method:"POST",fullPath:"/v2/core/event_destinations/{id}
1/enable"}),ping:eV({method:"POST",fullPath:"/v2/core/event_destinations/{id}/ping"})}),eQ=er.method,eX=er.extend({retrieve(...e){return eQ({method:"GET",fullPath:"/v2/core/events/{id}",transformResponseData:e=>this.addFetchRelatedObjectIfNeeded(e)}).apply(this,e)},list(...e){return eQ({method:"GET",fullPath:"/v2/core/events",methodType:"list",transformResponseData:e=>Object.assign(Object.assign({},e),{data:e.data.map(this.addFetchRelatedObjectIfNeeded.bind(this))})}).apply(this,e)},addFetchRelatedObjectIfNeeded(e){return e.related_object&&e.related_object.url?Object.assign(Object.assign({},e),{fetchRelatedObject:()=>eQ({method:"GET",fullPath:e.related_object.url}).apply(this,[{stripeAccount:e.context}])}):e}}),eY=er.method,eZ=er.extend({create:eY({method:"POST",fullPath:"/v1/entitlements/features"}),retrieve:eY({method:"GET",fullPath:"/v1/entitlements/features/{id}"}),update:eY({method:"POST",fullPath:"/v1/entitlements/features/{id}"}),list:eY({method:"GET",fullPath:"/v1/entitlements/features",methodType:"list"})}),e1=er.method,e0=er.extend({create:e1({method:"POST",fullPath:"/v1/treasury/financial_accounts"}),retrieve:e1({method:"GET",fullPath:"/v1/treasury/financial_accounts/{financial_account}"}),update:e1({method:"POST",fullPath:"/v1/treasury/financial_accounts/{financial_account}"}),list:e1({method:"GET",fullPath:"/v1/treasury/financial_accounts",methodType:"list"}),close:e1({method:"POST",fullPath:"/v1/treasury/financial_accounts/{financial_account}/close"}),retrieveFeatures:e1({method:"GET",fullPath:"/v1/treasury/financial_accounts/{financial_account}/features"}),updateFeatures:e1({method:"POST",fullPath:"/v1/treasury/financial_accounts/{financial_account}/features"})}),e2=er.method,e8=er.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=er.method,e6=er.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/{inbound_transfer}/cancel"})}),e5=er.method,e4=er.extend({create:e5({method:"POST",fullPath:"/v1/terminal/locations"}),retrieve:e5({method:"GET",fullPath:"/v1/terminal/locations/{location}"}),update:e5({method:"POST",fullPath:"/v1/terminal/locations/{location}"}),list:e5({method:"GET",fullPath:"/v1/terminal/locations",methodType:"list"}),del:e5({method:"DELETE",fullPath:"/v1/terminal/locations/{location}"})}),e9=er.method,e7=er.extend({create:e9({method:"POST",fullPath:"/v1/billing/meter_event_adjustments"})}),te=er.method,tt=er.extend({create:te({method:"POST",fullPath:"/v2/billing/meter_event_adjustments"})}),tr=er.method,to=er.extend({create:tr({method:"POST",fullPath:"/v2/billing/meter_event_session"})}),tn=er.method,ti=er.extend({create:tn({method:"POST",fullPath:"/v2/billing/meter_event_stream",host:"meter-events.stripe.com"})}),ta=er.method,ts=er.extend({create:ta({method:"POST",fullPath:"/v1/billing/meter_events"})}),tl=er.method,tu=er.extend({create:tl({method:"POST",fullPath:"/v2/billing/meter_events"})}),th=er.method,td=er.extend({create:th({method:"POST",fullPath:"/v1/billing/meters"}),retrieve:th({method:"GET",fullPath:"/v1/billing/meters/{id}"}),update:th({method:"POST",fullPath:"/v1/billing/meters/{id}"}),list:th({method:"GET",fullPath:"/v1/billing/meters",methodType:"list"}),deactivate:th({method:"POST",fullPath:"/v1/billing/meters/{id}/deactivate"}),listEventSummaries:th({method:"GET",fullPath:"/v1/billing/meters/{id}/event_summaries",methodType:"list"}),reactivate:th({method:"POST",fullPath:"/v1/billing/meters/{id}/reactivate"})}),tc=er.method,tp=er.extend({create:tc({method:"POST",fullPath:"/v1/climate/orders"}),retrieve:tc({method:"GET",fullPath:"/v1/climate/orders/{order}"}),update:tc({method:"POST",fullPath:"/v1/climate/orders/{order}"}),list:tc({method:"GET",fullPath:"/v1/climate/orders",methodType:"list"}),cancel:tc({method:"POST",fullPath:"/v1/climate/orders/{order}/cancel"})}),tm=er.method,tf=er.extend({update:tm({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}"}),fail:tm({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}/fail"}),post:tm({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}/post"}),returnOutboundPayment:tm({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}/return"})}),tv=er.method,ty=er.extend({create:tv({method:"POST",fullPath:"/v1/treasury/outbound_payments"}),retrieve:tv({method:"GET",fullPath:"/v1/treasury/outbound_payments/{id}"}),list:tv({method:"GET",fullPath:"/v1/treasury/outbound_payments",methodType:"list"}),cancel:tv({method:"POST",fullPath:"/v1/treasury/outbound_payments/{id}/cancel"})}),tP=er.method,tg=er.extend({update:tP({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}"}),fail:tP({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/fail"}),post:tP({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/post"}),returnOutboundTransfer:tP({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/return"})}),tT=er.method,t_=er.extend({create:tT({method:"POST",fullPath:"/v1/treasury/outbound_transfers"}),retrieve:tT({method:"GET",fullPath:"/v1/treasury/outbound_transfers/{outbound_transfer}"}),list:tT({method:"GET",fullPath:"/v1/treasury/outbound_transfers",methodType:"list"}),cancel:tT({method:"POST",fullPath:"/v1/treasury/outbound_transfers/{outbound_transfer}/cancel"})}),tE=er.method,tS=er.extend({create:tE({method:"POST",fullPath:"/v1/issuing/personalization_designs"}),retrieve:tE({method:"GET",fullPath:"/v1/issuing/personalization_designs/{personalization_design}"}),update:tE({method:"POST",fullPath:"/v1/issuing/personalization_designs/{personalization_design}"}),list:tE({method:"GET",fullPath:"/v1/issuing/personalization_designs",methodType:"list"})}),tb=er.method,tO=er.extend({activate:tb({method:"POST",fullPath:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}
1/activate"}),deactivate:tb({method:"POST",fullPath:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}/deactivate"}),reject:tb({method:"POST",fullPath:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}/reject"})}),tx=er.method,tw=er.extend({retrieve:tx({method:"GET",fullPath:"/v1/issuing/physical_bundles/{physical_bundle}"}),list:tx({method:"GET",fullPath:"/v1/issuing/physical_bundles",methodType:"list"})}),tG=er.method,tA=er.extend({retrieve:tG({method:"GET",fullPath:"/v1/climate/products/{product}"}),list:tG({method:"GET",fullPath:"/v1/climate/products",methodType:"list"})}),tC=er.method,tR=er.extend({create:tC({method:"POST",fullPath:"/v1/terminal/readers"}),retrieve:tC({method:"GET",fullPath:"/v1/terminal/readers/{reader}"}),update:tC({method:"POST",fullPath:"/v1/terminal/readers/{reader}"}),list:tC({method:"GET",fullPath:"/v1/terminal/readers",methodType:"list"}),del:tC({method:"DELETE",fullPath:"/v1/terminal/readers/{reader}"}),cancelAction:tC({method:"POST",fullPath:"/v1/terminal/readers/{reader}/cancel_action"}),collectInputs:tC({method:"POST",fullPath:"/v1/terminal/readers/{reader}/collect_inputs"}),collectPaymentMethod:tC({method:"POST",fullPath:"/v1/terminal/readers/{reader}/collect_payment_method"}),confirmPaymentIntent:tC({method:"POST",fullPath:"/v1/terminal/readers/{reader}/confirm_payment_intent"}),processPaymentIntent:tC({method:"POST",fullPath:"/v1/terminal/readers/{reader}/process_payment_intent"}),processSetupIntent:tC({method:"POST",fullPath:"/v1/terminal/readers/{reader}/process_setup_intent"}),refundPayment:tC({method:"POST",fullPath:"/v1/terminal/readers/{reader}/refund_payment"}),setReaderDisplay:tC({method:"POST",fullPath:"/v1/terminal/readers/{reader}/set_reader_display"})}),tk=er.method,tj=er.extend({presentPaymentMethod:tk({method:"POST",fullPath:"/v1/test_helpers/terminal/readers/{reader}/present_payment_method"}),succeedInputCollection:tk({method:"POST",fullPath:"/v1/test_helpers/terminal/readers/{reader}/succeed_input_collection"}),timeoutInputCollection:tk({method:"POST",fullPath:"/v1/test_helpers/terminal/readers/{reader}/timeout_input_collection"})}),tI=er.method,tD=er.extend({create:tI({method:"POST",fullPath:"/v1/test_helpers/treasury/received_credits"})}),tN=er.method,tL=er.extend({retrieve:tN({method:"GET",fullPath:"/v1/treasury/received_credits/{id}"}),list:tN({method:"GET",fullPath:"/v1/treasury/received_credits",methodType:"list"})}),tq=er.method,tM=er.extend({create:tq({method:"POST",fullPath:"/v1/test_helpers/treasury/received_debits"})}),tF=er.method,tH=er.extend({retrieve:tF({method:"GET",fullPath:"/v1/treasury/received_debits/{id}"}),list:tF({method:"GET",fullPath:"/v1/treasury/received_debits",methodType:"list"})}),tU=er.method,tz=er.extend({expire:tU({method:"POST",fullPath:"/v1/test_helpers/refunds/{refund}/expire"})}),t$=er.method,tK=er.extend({create:t$({method:"POST",fullPath:"/v1/tax/registrations"}),retrieve:t$({method:"GET",fullPath:"/v1/tax/registrations/{id}"}),update:t$({method:"POST",fullPath:"/v1/tax/registrations/{id}"}),list:t$({method:"GET",fullPath:"/v1/tax/registrations",methodType:"list"})}),tB=er.method,tW=er.extend({create:tB({method:"POST",fullPath:"/v1/reporting/report_runs"}),retrieve:tB({method:"GET",fullPath:"/v1/reporting/report_runs/{report_run}"}),list:tB({method:"GET",fullPath:"/v1/reporting/report_runs",methodType:"list"})}),tV=er.method,tJ=er.extend({retrieve:tV({method:"GET",fullPath:"/v1/reporting/report_types/{report_type}"}),list:tV({method:"GET",fullPath:"/v1/reporting/report_types",methodType:"list"})}),tQ=er.method,tX=er.extend({create:tQ({method:"POST",fullPath:"/v1/forwarding/requests"}),retrieve:tQ({method:"GET",fullPath:"/v1/forwarding/requests/{id}"}),list:tQ({method:"GET",fullPath:"/v1/forwarding/requests",methodType:"list"})}),tY=er.method,tZ=er.extend({retrieve:tY({method:"GET",fullPath:"/v1/sigma/scheduled_query_runs/{scheduled_query_run}"}),list:tY({method:"GET",fullPath:"/v1/sigma/scheduled_query_runs",methodType:"list"})}),t1=er.method,t0=er.extend({create:t1({method:"POST",fullPath:"/v1/apps/secrets"}),list:t1({method:"GET",fullPath:"/v1/apps/secrets",methodType:"list"}),deleteWhere:t1({method:"POST",fullPath:"/v1/apps/secrets/delete"}),find:t1({method:"GET",fullPath:"/v1/apps/secrets/find"})}),t2=er.method,t8=er.extend({create:t2({method:"POST",fullPath:"/v1/billing_portal/sessions"})}),t3=er.method,t6=er.extend({create:t3({method:"POST",fullPath:"/v1/checkout/sessions"}),retrieve:t3({method:"GET",fullPath:"/v1/checkout/sessions/{session}"}),update:t3({method:"POST",fullPath:"/v1/checkout/sessions/{session}"}),list:t3({method:"GET",fullPath:"/v1/checkout/sessions",methodType:"list"}),expire:t3({method:"POST",fullPath:"/v1/checkout/sessions/{session}/expire"}),listLineItems:t3({method:"GET",fullPath:"/v1/checkout/sessions/{session}/line_items",methodType:"list"})}),t5=er.method,t4=er.extend({create:t5({method:"POST",fullPath:"/v1/financial_connections/sessions"}),retrieve:t5({method:"GET",fullPath:"/v1/financial_connections/sessions/{session}"})}),t9=er.method,t7=er.extend({retrieve:t9({method:"GET",fullPath:"/v1/tax/sett
1ings"}),update:t9({method:"POST",fullPath:"/v1/tax/settings"})}),re=er.method,rt=er.extend({retrieve:re({method:"GET",fullPath:"/v1/climate/suppliers/{supplier}"}),list:re({method:"GET",fullPath:"/v1/climate/suppliers",methodType:"list"})}),rr=er.method,ro=er.extend({create:rr({method:"POST",fullPath:"/v1/test_helpers/test_clocks"}),retrieve:rr({method:"GET",fullPath:"/v1/test_helpers/test_clocks/{test_clock}"}),list:rr({method:"GET",fullPath:"/v1/test_helpers/test_clocks",methodType:"list"}),del:rr({method:"DELETE",fullPath:"/v1/test_helpers/test_clocks/{test_clock}"}),advance:rr({method:"POST",fullPath:"/v1/test_helpers/test_clocks/{test_clock}/advance"})}),rn=er.method,ri=er.extend({retrieve:rn({method:"GET",fullPath:"/v1/issuing/tokens/{token}"}),update:rn({method:"POST",fullPath:"/v1/issuing/tokens/{token}"}),list:rn({method:"GET",fullPath:"/v1/issuing/tokens",methodType:"list"})}),ra=er.method,rs=er.extend({retrieve:ra({method:"GET",fullPath:"/v1/treasury/transaction_entries/{id}"}),list:ra({method:"GET",fullPath:"/v1/treasury/transaction_entries",methodType:"list"})}),rl=er.method,ru=er.extend({retrieve:rl({method:"GET",fullPath:"/v1/financial_connections/transactions/{transaction}"}),list:rl({method:"GET",fullPath:"/v1/financial_connections/transactions",methodType:"list"})}),rh=er.method,rd=er.extend({retrieve:rh({method:"GET",fullPath:"/v1/issuing/transactions/{transaction}"}),update:rh({method:"POST",fullPath:"/v1/issuing/transactions/{transaction}"}),list:rh({method:"GET",fullPath:"/v1/issuing/transactions",methodType:"list"})}),rc=er.method,rp=er.extend({retrieve:rc({method:"GET",fullPath:"/v1/tax/transactions/{transaction}"}),createFromCalculation:rc({method:"POST",fullPath:"/v1/tax/transactions/create_from_calculation"}),createReversal:rc({method:"POST",fullPath:"/v1/tax/transactions/create_reversal"}),listLineItems:rc({method:"GET",fullPath:"/v1/tax/transactions/{transaction}/line_items",methodType:"list"})}),rm=er.method,rf=er.extend({createForceCapture:rm({method:"POST",fullPath:"/v1/test_helpers/issuing/transactions/create_force_capture"}),createUnlinkedRefund:rm({method:"POST",fullPath:"/v1/test_helpers/issuing/transactions/create_unlinked_refund"}),refund:rm({method:"POST",fullPath:"/v1/test_helpers/issuing/transactions/{transaction}/refund"})}),rv=er.method,ry=er.extend({retrieve:rv({method:"GET",fullPath:"/v1/treasury/transactions/{id}"}),list:rv({method:"GET",fullPath:"/v1/treasury/transactions",methodType:"list"})}),rP=er.method,rg=er.extend({create:rP({method:"POST",fullPath:"/v1/radar/value_list_items"}),retrieve:rP({method:"GET",fullPath:"/v1/radar/value_list_items/{item}"}),list:rP({method:"GET",fullPath:"/v1/radar/value_list_items",methodType:"list"}),del:rP({method:"DELETE",fullPath:"/v1/radar/value_list_items/{item}"})}),rT=er.method,r_=er.extend({create:rT({method:"POST",fullPath:"/v1/radar/value_lists"}),retrieve:rT({method:"GET",fullPath:"/v1/radar/value_lists/{value_list}"}),update:rT({method:"POST",fullPath:"/v1/radar/value_lists/{value_list}"}),list:rT({method:"GET",fullPath:"/v1/radar/value_lists",methodType:"list"}),del:rT({method:"DELETE",fullPath:"/v1/radar/value_lists/{value_list}"})}),rE=er.method,rS=er.extend({retrieve:rE({method:"GET",fullPath:"/v1/identity/verification_reports/{report}"}),list:rE({method:"GET",fullPath:"/v1/identity/verification_reports",methodType:"list"})}),rb=er.method,rO=er.extend({create:rb({method:"POST",fullPath:"/v1/identity/verification_sessions"}),retrieve:rb({method:"GET",fullPath:"/v1/identity/verification_sessions/{session}"}),update:rb({method:"POST",fullPath:"/v1/identity/verification_sessions/{session}"}),list:rb({method:"GET",fullPath:"/v1/identity/verification_sessions",methodType:"list"}),cancel:rb({method:"POST",fullPath:"/v1/identity/verification_sessions/{session}/cancel"}),redact:rb({method:"POST",fullPath:"/v1/identity/verification_sessions/{session}/redact"})}),rx=er.method,rw=er.extend({create:rx({method:"POST",fullPath:"/v1/accounts"}),retrieve(e,...t){return"string"==typeof e?rx({method:"GET",fullPath:"/v1/accounts/{id}"}).apply(this,[e,...t]):(null==e&&[].shift.apply([e,...t]),rx({method:"GET",fullPath:"/v1/account"}).apply(this,[e,...t]))},update:rx({method:"POST",fullPath:"/v1/accounts/{account}"}),list:rx({method:"GET",fullPath:"/v1/accounts",methodType:"list"}),del:rx({method:"DELETE",fullPath:"/v1/accounts/{account}"}),createExternalAccount:rx({method:"POST",fullPath:"/v1/accounts/{account}/external_accounts"}),createLoginLink:rx({method:"POST",fullPath:"/v1/accounts/{account}/login_links"}),createPerson:rx({method:"POST",fullPath:"/v1/accounts/{account}/persons"}),deleteExternalAccount:rx({method:"DELETE",fullPath:"/v1/accounts/{account}/external_accounts/{id}"}),deletePerson:rx({method:"DELETE",fullPath:"/v1/accounts/{account}/persons/{person}"}),listCapabilities:rx({method:"GET",fullPath:"/v1/accounts/{account}/capabilities",methodType:"list"}),listExternalAccounts:rx({method:"GET",fullPath:"/v1/accounts/{account}/external_accounts",methodType:"list"}),listPersons:rx({method:"GET",fullPath:"/v1/accounts/{account}/persons",methodType:"list"}),reject:rx({method:"POST",fullPath:"/v1/accounts/{account}/reject"}),retrieveCurrent:rx({method:"GET",fullPath:"/v1/account"}),retrieveCapability:rx({method:"GET",fullPath:"/v1/accounts/{account}/capabilities/{capability}"}
1),retrieveExternalAccount:rx({method:"GET",fullPath:"/v1/accounts/{account}/external_accounts/{id}"}),retrievePerson:rx({method:"GET",fullPath:"/v1/accounts/{account}/persons/{person}"}),updateCapability:rx({method:"POST",fullPath:"/v1/accounts/{account}/capabilities/{capability}"}),updateExternalAccount:rx({method:"POST",fullPath:"/v1/accounts/{account}/external_accounts/{id}"}),updatePerson:rx({method:"POST",fullPath:"/v1/accounts/{account}/persons/{person}"})}),rG=er.method,rA=er.extend({create:rG({method:"POST",fullPath:"/v1/account_links"})}),rC=er.method,rR=er.extend({create:rC({method:"POST",fullPath:"/v1/account_sessions"})}),rk=er.method,rj=er.extend({create:rk({method:"POST",fullPath:"/v1/apple_pay/domains"}),retrieve:rk({method:"GET",fullPath:"/v1/apple_pay/domains/{domain}"}),list:rk({method:"GET",fullPath:"/v1/apple_pay/domains",methodType:"list"}),del:rk({method:"DELETE",fullPath:"/v1/apple_pay/domains/{domain}"})}),rI=er.method,rD=er.extend({retrieve:rI({method:"GET",fullPath:"/v1/application_fees/{id}"}),list:rI({method:"GET",fullPath:"/v1/application_fees",methodType:"list"}),createRefund:rI({method:"POST",fullPath:"/v1/application_fees/{id}/refunds"}),listRefunds:rI({method:"GET",fullPath:"/v1/application_fees/{id}/refunds",methodType:"list"}),retrieveRefund:rI({method:"GET",fullPath:"/v1/application_fees/{fee}/refunds/{id}"}),updateRefund:rI({method:"POST",fullPath:"/v1/application_fees/{fee}/refunds/{id}"})}),rN=er.method,rL=er.extend({retrieve:rN({method:"GET",fullPath:"/v1/balance"})}),rq=er.method,rM=er.extend({retrieve:rq({method:"GET",fullPath:"/v1/balance_transactions/{id}"}),list:rq({method:"GET",fullPath:"/v1/balance_transactions",methodType:"list"})}),rF=er.method,rH=er.extend({create:rF({method:"POST",fullPath:"/v1/charges"}),retrieve:rF({method:"GET",fullPath:"/v1/charges/{charge}"}),update:rF({method:"POST",fullPath:"/v1/charges/{charge}"}),list:rF({method:"GET",fullPath:"/v1/charges",methodType:"list"}),capture:rF({method:"POST",fullPath:"/v1/charges/{charge}/capture"}),search:rF({method:"GET",fullPath:"/v1/charges/search",methodType:"search"})}),rU=er.method,rz=er.extend({retrieve:rU({method:"GET",fullPath:"/v1/confirmation_tokens/{confirmation_token}"})}),r$=er.method,rK=er.extend({retrieve:r$({method:"GET",fullPath:"/v1/country_specs/{country}"}),list:r$({method:"GET",fullPath:"/v1/country_specs",methodType:"list"})}),rB=er.method,rW=er.extend({create:rB({method:"POST",fullPath:"/v1/coupons"}),retrieve:rB({method:"GET",fullPath:"/v1/coupons/{coupon}"}),update:rB({method:"POST",fullPath:"/v1/coupons/{coupon}"}),list:rB({method:"GET",fullPath:"/v1/coupons",methodType:"list"}),del:rB({method:"DELETE",fullPath:"/v1/coupons/{coupon}"})}),rV=er.method,rJ=er.extend({create:rV({method:"POST",fullPath:"/v1/credit_notes"}),retrieve:rV({method:"GET",fullPath:"/v1/credit_notes/{id}"}),update:rV({method:"POST",fullPath:"/v1/credit_notes/{id}"}),list:rV({method:"GET",fullPath:"/v1/credit_notes",methodType:"list"}),listLineItems:rV({method:"GET",fullPath:"/v1/credit_notes/{credit_note}/lines",methodType:"list"}),listPreviewLineItems:rV({method:"GET",fullPath:"/v1/credit_notes/preview/lines",methodType:"list"}),preview:rV({method:"GET",fullPath:"/v1/credit_notes/preview"}),voidCreditNote:rV({method:"POST",fullPath:"/v1/credit_notes/{id}/void"})}),rQ=er.method,rX=er.extend({create:rQ({method:"POST",fullPath:"/v1/customer_sessions"})}),rY=er.method,rZ=er.extend({create:rY({method:"POST",fullPath:"/v1/customers"}),retrieve:rY({method:"GET",fullPath:"/v1/customers/{customer}"}),update:rY({method:"POST",fullPath:"/v1/customers/{customer}"}),list:rY({method:"GET",fullPath:"/v1/customers",methodType:"list"}),del:rY({method:"DELETE",fullPath:"/v1/customers/{customer}"}),createBalanceTransaction:rY({method:"POST",fullPath:"/v1/customers/{customer}/balance_transactions"}),createFundingInstructions:rY({method:"POST",fullPath:"/v1/customers/{customer}/funding_instructions"}),createSource:rY({method:"POST",fullPath:"/v1/customers/{customer}/sources"}),createTaxId:rY({method:"POST",fullPath:"/v1/customers/{customer}/tax_ids"}),deleteDiscount:rY({method:"DELETE",fullPath:"/v1/customers/{customer}/discount"}),deleteSource:rY({method:"DELETE",fullPath:"/v1/customers/{customer}/sources/{id}"}),deleteTaxId:rY({method:"DELETE",fullPath:"/v1/customers/{customer}/tax_ids/{id}"}),listBalanceTransactions:rY({method:"GET",fullPath:"/v1/customers/{customer}/balance_transactions",methodType:"list"}),listCashBalanceTransactions:rY({method:"GET",fullPath:"/v1/customers/{customer}/cash_balance_transactions",methodType:"list"}),listPaymentMethods:rY({method:"GET",fullPath:"/v1/customers/{customer}/payment_methods",methodType:"list"}),listSources:rY({method:"GET",fullPath:"/v1/customers/{customer}/sources",methodType:"list"}),listTaxIds:rY({method:"GET",fullPath:"/v1/customers/{customer}/tax_ids",methodType:"list"}),retrieveBalanceTransaction:rY({method:"GET",fullPath:"/v1/customers/{customer}/balance_transactions/{transaction}"}),retrieveCashBalance:rY({method:"GET",fullPath:"/v1/customers/{customer}/cash_balance"}),retrieveCashBalanceTransaction:rY({method:"GET",fullPath:"/v1/customers/{customer}/cash_balance_transactions/{transaction}"}),retrievePaymentMethod:rY({method:"GET",fullPath:"/v1/customers/{customer}/payment_methods/{payment_method}"}),retrieveSource:rY({method:"GET",fullPath:"/v1/customers/{customer}/sources/{id}"}),retrieveTaxId:rY({method:"GET",fullPath:"/v1/customers/{customer}/tax_ids/{id}"}),search:rY({method:"GET",fullPath:"/v1/customers/search",methodType:"search"}),updateBalanceTransaction:rY({method:"POST",fullPath:"/v1/customers/{customer}/balance_transactions/{transaction}"}),updateCashBalance:rY({method:"POST",fullPath:"/v1/customers/{customer}/cash_balance"}),updateSource:rY({method:"POST",fullPath:"/v1/customers/{customer}/sources/{id}"}),verifySource:rY({method:"POST",fullPath:"/v1/customers/{customer}/sources/{id}/verify"})}),r1=er.method,r0=er.extend({retrieve:r1({method:"GET",fullPath:"/v1/disputes/{dispute}"}),update:r1({method:"POST",fullPath:"/v1/disputes/{dispute}"}),list:r1({method:"GET",fullPath:"/v1/disputes",methodType:"list"}),close:r1({method:"POST",fullPath:"/v1/disputes/{dispute}/close"})}),r2=er.method,r8=er.extend({create:r2({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:r2({method:"DELETE",fullPath:"/v1/ephemeral_keys/{key}"})}),r3=er.method,r6=er.extend({retrieve:r3({method:"GET",fullPath:"/v1/events/{id}"}),list:r3({method:"GET",fullPath:"/v1/events",methodType:"list"})}),r5=er.method,r4=er.extend({retrieve:r5({method:"GET",fullPath:"/v1/exchange_rates/{rate_id}"}),list:r5({method:"GET",fullPath:"/v1/exchange_rates",methodType:"list"})}),r9=er.method,r7=er.extend({create:r9({method:"POST",fullPath:"/v1/file_links"}),retrieve:r9({method:"GET",fullPath:"/v1/file_links/{link}"}),update:r9({method:"POST",fullPath:"/v1/file_links/{link}"}),list:r9({method:"GET",fullPath:"/v1/file_links",methodType:"list"})}),oe=(e,t,r)=>{let o=(Math.round(1e16*Math.random())+Math.round(1e16*Math.random())).toString();r["Content-Type"]=`multipart/form-data; boundary=${o}`;let n=new TextEncoder,i=new Uint8Array(0),a=n.encode("\r\n");function s(e){let t=i,r=e instanceof Uint8Array?e:new Uint8Array(n.encode(e));(i=new Uint8Array(t.length+r.length+2)).set(t),i.set(r,t.length),i.set(a,i.length-2)}function l(e){return`"${e.replace(/"|"/g,"%22").replace(/\r\n|\r|\n/g," ")}"`}let u=function(e){let t={},r=(e,o)=>{Object.entries(e).forEach(([e,n])=>{let i=o?`${o}[${e}]`:e;if(function(e){let t=typeof e;return("function"===t||"object"===t)&&!!e}(n))if(!(n instanceof Uint8Array)&&!Object.prototype.hasOwnProperty.call(n,"data"))return r(n,i);else t[i]=n;else t[i]=String(n)})};return r(e,null),t}(t);for(let e in u){if(!Object.prototype.hasOwnProperty.call(u,e))continue;let t=u[e];s(`--${o}`),Object.prototype.hasOwnProperty.call(t,"data")?(s(`Content-Disposition: form-data; name=${l(e)}; filename=${l(t.name||"blob")}`),s(`Content-Type: ${t.type||"application/octet-stream"}`),s(""),s(t.data)):(s(`Content-Disposition: form-data; name=${l(e)}`),s(""),s(t))}return s(`--${o}--`),i},ot=er.method,or=er.extend({create:ot({method:"POST",fullPath:"/v1/files",headers:{"Content-Type":"multipart/form-data"},host:"files.stripe.com"}),retrieve:ot({method:"GET",fullPath:"/v1/files/{file}"}),list:ot({method:"GET",fullPath:"/v1/files",methodType:"list"}),requestDataProcessor:function(e,t,r,o){if(t=t||{},"POST"!==e)return o(null,u(t));this._stripe._platformFunctions.tryBufferData(t).then(t=>o(null,oe(e,t,r))).catch(e=>o(e,null))}}),oo=er.method,on=er.extend({create:oo({method:"POST",fullPath:"/v1/invoiceitems"}),retrieve:oo({method:"GET",fullPath:"/v1/invoiceitems/{invoiceitem}"}),update:oo({method:"POST",fullPath:"/v1/invoiceitems/{invoiceitem}"}),list:oo({method:"GET",fullPath:"/v1/invoiceitems",methodType:"list"}),del:oo({method:"DELETE",fullPath:"/v1/invoiceitems/{invoiceitem}"})}),oi=er.method,oa=er.extend({retrieve:oi({method:"GET",fullPath:"/v1/invoice_payments/{invoice_payment}"}),list:oi({method:"GET",fullPath:"/v1/invoice_payments",methodType:"list"})}),os=er.method,ol=er.extend({retrieve:os({method:"GET",fullPath:"/v1/invoice_rendering_templates/{template}"}),list:os({method:"GET",fullPath:"/v1/invoice_rendering_templates",methodType:"list"}),archive:os({method:"POST",fullPath:"/v1/invoice_rendering_templates/{template}/archive"}),unarchive:os({method:"POST",fullPath:"/v1/invoice_rendering_templates/{template}/unarchive"})}),ou=er.method,oh=er.extend({create:ou({method:"POST",fullPath:"/v1/invoices"}),retrieve:ou({method:"GET",fullPath:"/v1/invoices/{invoice}"}),update:ou({method:"POST",fullPath:"/v1/invoices/{invoice}"}),list:ou({method:"GET",fullPath:"/v1/invoices",methodType:"list"}),del:ou({method:"DELETE",fullPath:"/v1/invoices/{invoice}"}),addLines:ou({method:"POST",fullPath:"/v1/invoices/{invoice}/add_lines"}),attachPayment:ou({method:"POST",fullPath:"/v1/invoices/{invoice}/attach_payment"}),createPreview:ou({method:"POST",fullPath:"/v1/invoices/create_preview"}),finalizeInvoice:ou({method:"POST",fullPath:"/v1/invoices/{invoice}/finalize"}),listLineItems:ou({method:"GET",fullPath:"/v1/invoices/{invoice}/lines",methodType:"list"}),markUncollectible:ou({method:"POST",fullPath:"/v1/invoices/{invoice}/mark_uncollectible"}),pay:ou({method:"POST",fullPath:"/v1/invoices/{invoice}/pay"}),removeLines:ou({method:"POST",fullPath:"/v1/invoices/{invoice}/remove_lines"}),search:ou({method:"GET",fullPath:"/v1/invoices/search",methodType:"search"}),sendInvoice:ou({method:"POST",fullPath:"/v1/invoices/{invoice}/send"}),updateLines:ou({method:"POST",fullPath:"/v1/invoices/{invoice}/update_lines"}),updateLineItem:ou({method:"POST",fullPath:"/v1/invoices/{invoice}/lines/{line_item_id}"}),voidInvoice:ou({method:"POST",fullPath:"/v1/invoices/{invoice}/void"})}),od=er.method,oc=er.extend({retrieve:od({method:"GET",fullPath:"/v1/mandates/{mandate}"})}),op=er.method,om="connect.stripe.com",of=er.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://${om}/${r}?${u(e)}`},token:op({method:"POST",path:"oauth/token",host:om}),deauthorize(e,...t){return e.client_id||(e.client_id=this._stripe.getClientId()),op({method:"POST",path:"oauth/deauthorize",host:om}).apply(this,[e,...t])}}),ov=er.method,oy=er.extend({create:ov({method:"POST",fullPath:"/v1/payment_intents"}),retrieve:ov({method:"GET",fullPath:"/v1/payment_intents/{intent}"}),update:ov({method:"POST",fullPath:"/v1/payment_intents/{intent}"}),list:ov({method:"GET",fullPath:"/v1/payment_intents",methodType:"list"}),applyCustomerBalance:ov({method:"POST",fullPath:"/v1/payment_intents/{intent}/apply_customer_balance"}),cancel:ov({method:"POST",fullPath:"/v1/payment_intents/{intent}/cancel"}),capture:ov({method:"POST",fullPath:"/v1/payment_intents/{intent}/capture"}),confirm:ov({method:"POST",fullPath:"/v1/payment_intents/{intent}/confirm"}),incrementAuthorization:ov({method:"POST",fullPath:"/v1/payment_intents/{intent}/increment_authorization"}),search:ov({method:"GET",fullPath:"/v1/payment_intents/search",methodType:"search"}),verifyMicrodeposits:ov({method:"POST",fullPath:"/v1/payment_intents/{intent}/verify_microdeposits"})}),oP=er.method,og=er.extend({create:oP({method:"POST",fullPath:"/v1/payment_links"}),retrieve:oP({method:"GET",fullPath:"/v1/payment_links/{payment_link}"}),update:oP({method:"POST",fullPath:"/v1/payment_links/{payment_link}"}),list:oP({method:"GET",fullPath:"/v1/payment_links",methodType:"list"}),listLineItems:oP({method:"GET",fullPath:"/v1/payment_links/{payment_link}/line_items",methodType:"list"})}),oT=er.method,o_=er.extend({create:oT({method:"POST",fullPath:"/v1/payment_method_configurations"}),retrieve:oT({method:"GET",fullPath:"/v1/payment_method_configurations/{configuration}"}),update:oT({method:"POST",fullPath:"/v1/payment_method_configurations/{configuration}"}),list:oT({method:"GET",fullPath:"/v1/payment_method_configurations",methodType:"list"})}),oE=er.method,oS=er.extend({create:oE({method:"POST",fullPath:"/v1/payment_method_domains"}),retrieve:oE({method:"GET",fullPath:"/v1/payment_method_domains/{payment_method_domain}"}),update:oE({method:"POST",fullPath:"/v1/payment_method_domains/{payment_method_domain}"}),list:oE({method:"GET",fullPath:"/v1/payment_method_domains",methodType:"list"}),validate:oE({method:"POST",fullPath:"/v1/payment_method_domains/{payment_method_domain}/validate"})}),ob=er.method,oO=er.extend({create:ob({method:"POST",fullPath:"/v1/payment_methods"}),retrieve:ob({method:"GET",fullPath:"/v1/payment_methods/{payment_method}"}),update:ob({method:"POST",fullPath:"/v1/payment_methods/{payment_method}"}),list:ob({method:"GET",fullPath:"/v1/payment_methods",methodType:"list"}),attach:ob({method:"POST",fullPath:"/v1/payment_methods/{payment_method}/attach"}),detach:ob({method:"POST",fullPath:"/v1/payment_methods/{payment_method}/detach"})}),ox=er.method,ow=er.extend({create:ox({method:"POST",fullPath:"/v1/payouts"}),retrieve:ox({method:"GET",fullPath:"/v1/payouts/{payout}"}),update:ox({method:"POST",fullPath:"/v1/payouts/{payout}"}),list:ox({method:"GET",fullPath:"/v1/payouts",methodType:"list"}),cancel:ox({method:"POST",fullPath:"/v1/payouts/{payout}/cancel"}),reverse:ox({method:"POST",fullPath:"/v1/payouts/{payout}/reverse"})}),oG=er.method,oA=er.extend({create:oG({method:"POST",fullPath:"/v1/plans"}),retrieve:oG({method:"GET",fullPath:"/v1/plans/{plan}"}),update:oG({method:"POST",fullPath:"/v1/plans/{plan}"}),list:oG({method:"GET",fullPath:"/v1/plans",methodType:"list"}),del:oG({method:"DELETE",fullPath:"/v1/plans/{plan}"})}),oC=er.method,oR=er.extend({create:oC({method:"POST",fullPath:"/v1/prices"}),retrieve:oC({method:"GET",fullPath:"/v1/prices/{price}"}),update:oC({method:"POST",fullPath:"/v1/prices/{price}"}),list:oC({method:"GET",fullPath:"/v1/prices",methodType:"list"}),search:oC({method:"GET",fullPath:"/v1/prices/search",methodType:"search"})}),ok=er.method,oj=er.extend({create:ok({method:"POST",fullPath:"/v1/products"}),retrieve:ok({method:"GET",fullPath:"/v1/products/{id}"}),update:ok({method:"POST",fullPath:"/v1/products/{id}"}),list:ok({method:"GET",fullPath:"/v1/products",methodType:"list"}),del:ok({method:"DELETE",fullPath:"/v1/products/{id}"}),createFeature:ok({method:"POST",fullPath:"/v1/products/{product}/features"}),deleteFeature:ok({method:"DELETE",fullPath:"/v1/products/{product}/features/{id}"}),listFeatures:ok({method:"GET",fullPath:"/v1/products/{product}/features",methodType:"list"}),retrieveFeature:ok({method:"GET",fullPath:"/v1/products/{product}/features/{id}"}),search:ok({method:"GET",fullPath:"/v1/products/search",methodType:"search"})}),oI=er.method,oD=er.extend({create:oI({method:"POST",fullPath:"/v1/promotion_codes"}),retrieve:oI({method:"GET",fullPath:"/v1/promotion_codes/{promotion_code}"}),update:oI({method:"POST",fullPath:"/v1/promotion_codes/{promotion_code}"}),list:oI({method:"GET",fullPath:"/v1/promotion_codes",methodType:"list"})}),oN=er.method,oL=er.extend({create:oN({method:"POST",fullPath:"/v1/quotes"}),retrieve:oN({method:"GET",fullPath:"/v1/quotes/{quote}"}),update:oN({method:"POST",fullPath:"/v1/quotes/{quote}"}),list:oN({method:"GET",fullPath:"/v1/quotes",methodType:"list"}),accept:oN({method:"POST",fullPath:"/v1/quotes/{quote}/accept"}),cancel:oN({method:"POST",fullPath:"/v1/quotes/{quote}/cancel"}),finalizeQuote:oN({method:"POST",fullPath:"/v1/quotes/{quote}/finalize"}),listComputedUpfrontLineItems:oN({method:"GET",fullPath:"/v1/quotes/{quote}/computed_upfront_line_items",methodType:"list"}),listLineItems:oN({method:"GET",fullPath:"/v1/quotes/{quote}/line_items",methodType:"list"}),pdf:oN({method:"GET",fullPath:"/v1/quotes/{quote}/pdf",host:"files.stripe.com",streaming:!0})}),oq=er.method,oM=er.extend({create:oq({method:"POST",fullPath:"/v1/refunds"}),retrieve:oq({method:"GET",fullPath:"/v1/refunds/{refund}"}),update:oq({method:"POST",fullPath:"/v1/refunds/{refund}"}),list:oq({method:"GET",fullPath:"/v1/refunds",methodType:"list"}),cancel:oq({method:"POST",fullPath:"/v1/refunds/{refund}/cancel"})}),oF=er.method,oH=er.extend({retrieve:oF({method:"GET",fullPath:"/v1/reviews/{review}"}),list:oF({method:"GET",fullPath:"/v1/reviews",methodType:"list"}),approve:oF({method:"POST",fullPath:"/v1/reviews/{review}/approve"})}),oU=er.method,oz=er.extend({list:oU({method:"GET",fullPath:"/v1/setup_attempts",methodType:"list"})}),o$=er.method,oK=er.extend({create:o$({method:"POST",fullPath:"/v1/setup_intents"}),retrieve:o$({method:"GET",fullPath:"/v1/setup_intents/{intent}"}),update:o$({method:"POST",fullPath:"/v1/setup_intents/{intent}"}),list:o$({method:"GET",fullPath:"/v1/setup_intents",methodType:"list"}),cancel:o$({method:"POST",fullPath:"/v1/setup_intents/{intent}/cancel"}),confirm:o$({method:"POST",fullPath:"/v1/setup_intents/{intent}/confirm"}),verifyMicrodeposits:o$({method:"POST",fullPath:"/v1/setup_intents/{intent}/verify_microdeposits"})}),oB=er.method,oW=er.extend({create:oB({method:"POST",fullPath:"/v1/shipping_rates"}),retrieve:oB({method:"GET",fullPath:"/v1/shipping_rates/{shipping_rate_token}"}),update:oB({method:"POST",fullPath:"/v1/shipping_rates/{shipping_rate_token}"}),list:oB({method:"GET",fullPath:"/v1/shipping_rates",methodType:"list"})}),oV=er.method,oJ=er.extend({create:oV({method:"POST",fullPath:"/v1/sources"}),retrieve:oV({method:"GET",fullPath:"/v1/sources/{source}"}),update:oV({method:"POST",fullPath:"/v1/sources/{source}"}),listSourceTransactions:oV({method:"GET",fullPath:"/v1/sources/{source}/source_transactions",methodType:"list"}),verify:oV({method:"POST",fullPath:"/v1/sources/{source}/verify"})}),oQ=er.method,oX=er.extend({create:oQ({method:"POST",fullPath:"/v1/subscription_items"}),retrieve:oQ({method:"GET",fullPath:"/v1/subscription_items/{item}"}),update:oQ({method:"POST",fullPath:"/v1/subscription_items/{item}"}),list:oQ({method:"GET",fullPath:"/v1/subscription_items",methodType:"list"}),del:oQ({method:"DELETE",fullPath:"/v1/subscription_items/{item}"})}),oY=er.method,oZ=er.extend({create:oY({method:"POST",fullPath:"/v1/subscription_schedules"}),retrieve:oY({method:"GET",fullPath:"/v1/subscription_schedules/{schedule}"}),update:oY({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}"}),list:oY({method:"GET",fullPath:"/v1/subscription_schedules",methodType:"list"}),cancel:oY({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}/cancel"}),release:oY({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}/release"})}),o1=er.method,o0=er.extend({create:o1({method:"POST",fullPath:"/v1/subscriptions"}),retrieve:o1({method:"GET",fullPath:"/v1/subscriptions/{subscription_exposed_id}"}),update:o1({method:"POST",fullPath:"/v1/subscriptions/{subscription_exposed_id}"}),list:o1({method:"GET",fullPath:"/v1/subscriptions",methodType:"list"}),cancel:o1({method:"DELETE",fullPath:"/v1/subscriptions/{subscription_exposed_id}"}),deleteDiscount:o1({method:"DELETE",fullPath:"/v1/subscriptions/{subscription_exposed_id}/discount"}),migrate:o1({method:"POST",fullPath:"/v1/subscriptions/{subscription}/migrate"}),resume:o1({method:"POST",fullPath:"/v1/subscriptions/{subscription}/resume"}),search:o1({method:"GET",fullPath:"/v1/subscriptions/search",methodType:"search"})}),o2=er.method,o8=er.extend({retrieve:o2({method:"GET",fullPath:"/v1/tax_codes/{id}"}),list:o2({method:"GET",fullPath:"/v1/tax_codes",methodType:"list"})}),o3=er.method,o6=er.extend({create:o3({method:"POST",fullPath:"/v1/tax_ids"}),retrieve:o3({method:"GET",fullPath:"/v1/tax_ids/{id}"}),list:o3({method:"GET",fullPath:"/v1/tax_ids",methodType:"list"}),del:o3({method:"DELETE",fullPath:"/v1/tax_ids/{id}"})}),o5=er.method,o4=er.extend({create:o5({method:"POST",fullPath:"/v1/tax_rates"}),retrieve:o5({method:"GET",fullPath:"/v1/tax_rates/{tax_rate}"}),update:o5({method:"POST",fullPath:"/v1/tax_rates/{tax_rate}"}),list:o5({method:"GET",fullPath:"/v1/tax_rates",methodType:"list"})}),o9=er.method,o7=er.extend({create:o9({method:"POST",fullPath:"/v1/tokens"}),retrieve:o9({method:"GET",fullPath:"/v1/tokens/{token}"})}),ne=er.method,nt=er.extend({create:ne({method:"POST",fullPath:"/v1/topups"}),retrieve:ne({method:"GET",fullPath:"/v1/topups/{topup}"}),update:ne({method:"POST",fullPath:"/v1/topups/{topup}"}),list:ne({method:"GET",fullPath:"/v1/topups",methodType:"list"}),cancel:ne({method:"POST",fullPath:"/v1/topups/{topup}/cancel"})}),nr=er.method,no=er.extend({create:nr({method:"POST",fullPath:"/v1/transfers"}),retrieve:nr({method:"GET",fullPath:"/v1/transfers/{transfer}"}),update:nr({method:"POST",fullPath:"/v1/transfers/{transfer}"}),list:nr({method:"GET",fullPath:"/v1/transfers",methodType:"list"}),createReversal:nr({method:"POST",fullPath:"/v1/transfers/{id}/reversals"}),listReversals:nr({method:"GET",fullPath:"/v1/transfers/{id}/reversals",methodType:"list"}
1),retrieveReversal:nr({method:"GET",fullPath:"/v1/transfers/{transfer}/reversals/{id}"}),updateReversal:nr({method:"POST",fullPath:"/v1/transfers/{transfer}/reversals/{id}"})}),nn=er.method,ni=er.extend({create:nn({method:"POST",fullPath:"/v1/webhook_endpoints"}),retrieve:nn({method:"GET",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"}),update:nn({method:"POST",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"}),list:nn({method:"GET",fullPath:"/v1/webhook_endpoints",methodType:"list"}),del:nn({method:"DELETE",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"})}),na=ei("apps",{Secrets:t0}),ns=ei("billing",{Alerts:ed,CreditBalanceSummary:ej,CreditBalanceTransactions:eD,CreditGrants:eL,MeterEventAdjustments:e7,MeterEvents:ts,Meters:td}),nl=ei("billingPortal",{Configurations:eO,Sessions:t8}),nu=ei("checkout",{Sessions:t6}),nh=ei("climate",{Orders:tp,Products:tA,Suppliers:rt}),nd=ei("entitlements",{ActiveEntitlements:eu,Features:eZ}),nc=ei("financialConnections",{Accounts:es,Sessions:t4,Transactions:ru}),np=ei("forwarding",{Requests:tX}),nm=ei("identity",{VerificationReports:rS,VerificationSessions:rO}),nf=ei("issuing",{Authorizations:ep,Cardholders:eg,Cards:e_,Disputes:eK,PersonalizationDesigns:tS,PhysicalBundles:tw,Tokens:ri,Transactions:rd}),nv=ei("radar",{EarlyFraudWarnings:eW,ValueListItems:rg,ValueLists:r_}),ny=ei("reporting",{ReportRuns:tW,ReportTypes:tJ}),nP=ei("sigma",{ScheduledQueryRuns:tZ}),ng=ei("tax",{Calculations:ey,Registrations:tK,Settings:t7,Transactions:rp}),nT=ei("terminal",{Configurations:ew,ConnectionTokens:eR,Locations:e4,Readers:tR}),n_=ei("testHelpers",{ConfirmationTokens:eA,Customers:eH,Refunds:tz,TestClocks:ro,Issuing:ei("issuing",{Authorizations:ef,Cards:eS,PersonalizationDesigns:tO,Transactions:rf}),Terminal:ei("terminal",{Readers:tj}),Treasury:ei("treasury",{InboundTransfers:e8,OutboundPayments:tf,OutboundTransfers:tg,ReceivedCredits:tD,ReceivedDebits:tM})}),nE=ei("treasury",{CreditReversals:eM,DebitReversals:ez,FinancialAccounts:e0,InboundTransfers:e6,OutboundPayments:ty,OutboundTransfers:t_,ReceivedCredits:tL,ReceivedDebits:tH,TransactionEntries:rs,Transactions:ry}),nS=ei("v2",{Billing:ei("billing",{MeterEventAdjustments:tt,MeterEventSession:to,MeterEventStream:ti,MeterEvents:tu}),Core:ei("core",{EventDestinations:eJ,Events:eX})}),nb="api.stripe.com",nO="/v1/",nx=["name","version","url","partner_id"],nw=["authenticator","apiVersion","typescript","maxNetworkRetries","httpAgent","httpClient","timeout","host","port","protocol","telemetry","appInfo","stripeAccount","stripeContext"],nG=e=>new V(e,er.MAX_BUFFERED_REQUEST_METRICS),nA=function(e,t=nG){function r(n,i={}){if(!(this instanceof r))return new r(n,i);let a=this._getPropsFromConfig(i);this._platformFunctions=e,Object.defineProperty(this,"_emitter",{value:this._platformFunctions.createEmitter(),enumerable:!1,configurable:!1,writable:!1}),this.VERSION=r.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 s=a.httpAgent||null;this._api={host:a.host||nb,port:a.port||"443",protocol:a.protocol||"https",basePath:nO,version:a.apiVersion||eo,timeout:v("timeout",a.timeout,8e4),maxNetworkRetries:v("maxNetworkRetries",a.maxNetworkRetries,2),agent:s,httpClient:a.httpClient||(s?this._platformFunctions.createNodeHttpClient(s):this._platformFunctions.createDefaultHttpClient()),dev:!1,stripeAccount:a.stripeAccount||null,stripeContext:a.stripeContext||null};let l=a.typescript||!1;l!==r.USER_AGENT.typescript&&(r.USER_AGENT.typescript=l),a.appInfo&&this._setAppInfo(a.appInfo),this._prepResources(),this._setAuthenticator(n,a.authenticator),this.errors=o,this.webhooks=r.webhooks,this._prevRequestMetrics=[],this._enableTelemetry=!1!==a.telemetry,this._requestSender=t(this),this.StripeResource=r.StripeResource}return r.PACKAGE_VERSION="18.5.0",r.API_VERSION=eo,r.USER_AGENT=Object.assign({bindings_version:r.PACKAGE_VERSION,lang:"node",publisher:"stripe",uname:null,typescript:!1},void 0===a?{}:{lang_version:a.version,platform:a.platform}),r.StripeResource=er,r.resources=n,r.HttpClient=_,r.HttpClientResponse=E,r.CryptoProvider=O,r.webhooks=function(e){let t={DEFAULT_TOLERANCE:300,signature:null,constructEvent(e,r,o,n,i,a){try{if(!this.signature)throw Error("ERR: missing signature helper, unable to verify");this.signature.verifyHeader(e,r,o,n||t.DEFAULT_TOLERANCE,i,a)}catch(e){throw e instanceof x&&(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,o,n,i,a){if(!this.signature)throw Error("ERR: missing signature helper, unable to verify");return await this.signature.verifyHeaderAsync(e,r,o,n||t.DEFAULT_TOLERANCE,i,a),e instanceof Uint8Array?JSON.parse(new TextDecoder("utf8").decode(e)):JSON.parse(e)},generateTestHeaderString:function(e){let t=l(e),r=t.signature||t.cryptoProvider.computeHMACSignature(t.payloadString,t.secret);return t.generateHeaderString(r)},generateTestHeaderStringAsync:async function(e){let t=l(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,l,u){let{decodedHeader:h,decodedPayload:d,details:c,suspectPayloadType:p}=n(e,t,this.EXPECTED_SCHEME),m=/\s/.test(r),f=(l=l||s()).computeHMACSignature(o(d,c),r);return i(d,h,c,f,a,p,m,u),!0},async verifyHeaderAsync(e,t,r,a,l,u){let{decodedHeader:h,decodedPayload:d,details:c,suspectPayloadType:p}=n(e,t,this.EXPECTED_SCHEME),m=/\s/.test(r);l=l||s();let f=await l.computeHMACSignatureAsync(o(d,c),r);return i(d,h,c,f,a,p,m,u)}};function o(e,t){return`${t.timestamp}.${e}`}function n(e,t,r){var o,n;if(!e)throw new z(t,e,{message:"No webhook payload was provided."});let i="string"!=typeof e&&!(e instanceof Uint8Array),a=new TextDecoder("utf8"),s=e instanceof Uint8Array?a.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 z(t,e,{message:"No stripe-signature header value was provided."});let l=t instanceof Uint8Array?a.decode(t):t,u=(o=l,n=r,"string"!=typeof o?null:o.split(",").reduce((e,t)=>
1{let r=t.split("=");return"t"===r[0]&&(e.timestamp=parseInt(r[1],10)),r[0]===n&&e.signatures.push(r[1]),e},{timestamp:-1,signatures:[]}));if(!u||-1===u.timestamp)throw new z(l,s,{message:"Unable to extract timestamp and signatures from header"});if(!u.signatures.length)throw new z(l,s,{message:"No signatures found with expected scheme"});return{decodedPayload:s,decodedHeader:l,details:u,suspectPayloadType:i}}function i(t,r,o,n,i,a,s,l){let u=!!o.signatures.filter(e.secureCompare.bind(e,n)).length,h="\nLearn more about webhook signing and explore webhook integration examples for various frameworks at https://docs.stripe.com/webhooks/signature",d=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 z(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"+h+"\n"+d});throw new z(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"+h+"\n"+d})}let c=Math.floor(("number"==typeof l?l:Date.now())/1e3)-o.timestamp;if(i>0&&c>i)throw new z(r,t,{message:"Timestamp outside the tolerance zone"});return!0}let a=null;function s(){return a||(a=e.createDefaultCryptoProvider()),a}function l(e){if(!e)throw new D({message:"Options are required"});let t=Math.floor(e.timestamp)||Math.floor(Date.now()/1e3),o=e.scheme||r.EXPECTED_SCHEME,n=e.cryptoProvider||s(),i=`${t}.${e.payload}`;return Object.assign(Object.assign({},e),{timestamp:t,scheme:o,cryptoProvider:n,payloadString:i,generateHeaderString:e=>`t=${t},${o}=${e}`})}return t.signature=r,t}(e),r.errors=o,r.createNodeHttpClient=e.createNodeHttpClient,r.createFetchHttpClient=e.createFetchHttpClient,r.createNodeCryptoProvider=e.createNodeCryptoProvider,r.createSubtleCryptoProvider=e.createSubtleCryptoProvider,r.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,rawRequest(e,t,r,o){return this._requestSender._rawRequest(e,t,r,o)},_setAuthenticator(e,t){if(e&&t)throw Error("Can't specify both apiKey and authenticator");if(!e&&!t)throw Error("Neither apiKey nor config.authenticator provided");this._authenticator=e?y(e):t},_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=nx.reduce((t,r)=>("string"==typeof e[r]&&((t=t||{})[r]=e[r]),t),{})},_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 nb;case"DEFAULT_PORT":return"443";case"DEFAULT_BASE_PATH":return nO;case"DEFAULT_API_VERSION":return eo;case"DEFAULT_TIMEOUT":return 8e4;case"MAX_NETWORK_RETRY_DELAY_SEC":return 5;case"INITIAL_NETWORK_RETRY_DELAY_SEC":return .5}return r[e]},getMaxNetworkRetries(){return this.getApiField("maxNetworkRetries")},_setApiNumberField(e,t,r){let o=v(e,t,r);this._setApiField(e,o)},getMaxNetworkRetryDelay:()=>5,getInitialNetworkRetryDelay:()=>.5,getClientUserAgent(e){return this.getClientUserAgentSeeded(r.USER_AGENT,e)},getClientUserAgentSeeded(e,t){this._platformFunctions.getUname().then(r=>{var o;let n={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=encodeURIComponent(null!=(o=e[t])?o:"null"));n.uname=encodeURIComponent(r||"UNKNOWN");let i=this.getApiField("httpClient");i&&(n.httplib=encodeURIComponent(i.getClientName())),this._appInfo&&(n.application=this._appInfo),t(JSON.stringify(n))})},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 n)Object.prototype.hasOwnProperty.call(n,e)&&(this["OAuth"===e?"oauth":e[0].toLowerCase()+e.substring(1)]=new n[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=>!nw.includes(e)).length>0)throw Error(`Config object may only contain the following: ${nw.join(", ")}`);return e},parseThinEvent(e,t,r,o,n,i){return this.webhooks.constructEvent(e,t,r,o,n,i)}},r}(new k)},86052:(e,t,r)=>{"use strict";var o=r(23773),n=r(84251);e.exports={formats:r(72060),parse:n,stringify:o}}}]);
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.