vendor: 4,709 bytes, line 1
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[63232,48672],{89862:function(e,t,r){"use strict";var o=r(92517),n=r(18690),i=r(93191),a=r(69756);e.exports=a||o.call(i,n)},18690:function(e){"use strict";e.exports=Function.prototype.apply},93191:function(e){"use strict";e.exports=Function.prototype.call},56327:function(e,t,r){"use strict";var o=r(92517),n=r(53842),i=r(93191),a=r(89862);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new n("a function is required");return a(o,i,e)}},69756:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},73250:function(e,t,r){"use strict";var o=r(50071),n=r(56327),i=n([o("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=o(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?n([r]):r}},23314:function(e,t,r){"use strict";var o,n=r(56327),i=r(50297);try{o=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!o&&i&&i(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?n([a.get]):"function"==typeof l&&function(e){return l(null==e?e:s(e))}},10816:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},12107:function(e){"use strict";e.exports=EvalError},22016:function(e){"use strict";e.exports=Error},2706:function(e){"use strict";e.exports=RangeError},926:function(e){"use strict";e.exports=ReferenceError},5014:function(e){"use strict";e.exports=SyntaxError},53842:function(e){"use strict";e.exports=TypeError},34662:function(e){"use strict";e.exports=URIError},66199:function(e){"use strict";e.exports=Object},98595:function(e){"use strict";var t=Object.prototype.toString,r=Math.max,o=function(e,t){for(var r=[],o=0;o<e.length;o+=1)r[o]=e[o];for(var n=0;n<t.length;n+=1)r[n+e.length]=t[n];return r},n=function(e,t){for(var r=[],o=t||0,n=0;o<e.length;o+=1,n+=1)r[n]=e[o];return r},i=function(e,t){for(var r="",o=0;o<e.length;o+=1)r+=e[o],o+1<e.length&&(r+=t);return r};e.exports=function(e){var a,s=this;if("function"!=typeof s||"[object Function]"!==t.apply(s))throw TypeError("Function.prototype.bind called on incompatible "+s);for(var l=n(arguments,1),u=r(0,s.length-l.length),c=[],d=0;d<u;d++)c[d]="$"+d;if(a=Function("binder","return function ("+i(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var t=s.apply(this,o(l,arguments));return Object(t)===t?t:this}return s.apply(e,o(l,arguments))}),s.prototype){var h=function(){};h.prototype=s.prototype,a.prototype=new h,h.prototype=null}return a}},92517:function(e,t,r){"use strict";var o=r(98595);e.exports=Function.prototype.bind||o},50071:function(e,t,r){"use strict";var o,n=r(66199),i=r(22016),a=r(12107),s=r(2706),l=r(926),u=r(5014),c=r(53842),d=r(34662),h=r(11881),p=r(98775),f=r(99564),m=r(34387),y=r(46451),v=r(55304),P=r(9797),g=Function,T=function(e){try{return g('"use strict"; return ('+e+").constructor;")()}catch(e){}},_=r(50297),E=r(10816),b=function(){throw new c},S=_?function(){try{return arguments.callee,b}catch(e){try{return _(arguments,"callee").get}catch(e){return b}}}():b,O=r(35222)(),x=r(66399),w=r(83617),A=r(14197),R=r(18690),k=r(93191),G={},C="undefined"!=typeof Uint8Array&&x?x(Uint8Array):o,j={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":O&&x?x([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":G,"%AsyncGenerator%":G,"%AsyncGeneratorFunction%":G,"%AsyncIteratorPrototype%":G,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?o:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":G,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
1IteratorPrototype%":O&&x?x(x([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&O&&x?x(new Map()[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&O&&x?x(new Set()[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&x?x(""[Symbol.iterator]()):o,"%Symbol%":O?Symbol:o,"%SyntaxError%":u,"%ThrowTypeError%":S,"%TypedArray%":C,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":R,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":w,"%Math.abs%":h,"%Math.floor%":p,"%Math.max%":f,"%Math.min%":m,"%Math.pow%":y,"%Math.round%":v,"%Math.sign%":P,"%Reflect.getPrototypeOf%":A};if(x)try{null.error}catch(e){var I=x(x(e));j["%Error.prototype%"]=I}var D=function e(t){var r;if("%AsyncFunction%"===t)r=T("async function () {}");else if("%GeneratorFunction%"===t)r=T("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=T("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&x&&(r=x(n.prototype))}return j[t]=r,r},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=r(92517),L=r(2575),F=N.call(k,Array.prototype.concat),q=N.call(R,Array.prototype.splice),U=N.call(k,String.prototype.replace),H=N.call(k,String.prototype.slice),z=N.call(k,RegExp.prototype.exec),$=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,B=/\\(\\)?/g,W=function(e){var t=H(e,0,1),r=H(e,-1);if("%"===t&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var o=[];return U(e,$,function(e,t,r,n){o[o.length]=r?U(n,B,"$1"):t||e}),o},K=function(e,t){var r,o=e;if(L(M,o)&&(o="%"+(r=M[o])[0]+"%"),L(j,o)){var n=j[o];if(n===G&&(n=D(o)),void 0===n&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:n}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===z(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=W(e),o=r.length>0?r[0]:"",n=K("%"+o+"%",t),i=n.name,a=n.value,s=!1,l=n.alias;l&&(o=l[0],q(r,F([0,1],l)));for(var d=1,h=!0;d<r.length;d+=1){var p=r[d],f=H(p,0,1),m=H(p,-1);if(('"'===f||"'"===f||"`"===f||'"'===m||"'"===m||"`"===m)&&f!==m)throw new u("property names with quotes must have matching quotes");if("constructor"!==p&&h||(s=!0),o+="."+p,L(j,i="%"+o+"%"))a=j[i];
vendor: 7,589 bytes, line 1
1else if(null!=a){if(!(p in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(_&&d+1>=r.length){var y=_(a,p);a=(h=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[p]}else h=L(a,p),a=a[p];h&&!s&&(j[i]=a)}}return a}},83617:function(e,t,r){"use strict";var o=r(66199);e.exports=o.getPrototypeOf||null},14197:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},66399:function(e,t,r){"use strict";var o=r(14197),n=r(83617),i=r(23314);e.exports=o?function(e){return o(e)}:n?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return n(e)}:i?function(e){return i(e)}:null},61534:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},50297:function(e,t,r){"use strict";var o=r(61534);if(o)try{o([],"length")}catch(e){o=null}e.exports=o},35222:function(e,t,r){"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=r(38056);e.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&n()}},38056:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var o in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},2575:function(e,t,r){"use strict";var o=Function.prototype.call,n=Object.prototype.hasOwnProperty,i=r(92517);e.exports=i.call(o,n)},76858:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});let o=(0,r(79205).Z)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},98420:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});let o=(0,r(79205).Z)("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]])},30401:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});let o=(0,r(79205).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},41671:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});let o=(0,r(79205).Z)("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},87414:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});let o=(0,r(79205).Z)("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]])},51817:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});let o=(0,r(79205).Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},89345:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});let o=(0,r(79205).Z)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]])},82023:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});let o=(0,r(79205).Z)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},95080:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});let o=(0,r(79205).Z)("Ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]])},92369:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});let o=(0,r(79205).Z)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},11239:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});let o=(0,r(79205).Z)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},11881:function(e){"use strict";e.exports=Math.abs},98775:function(e){"use strict";e.exports=Math.floor},99646:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},99564:function(e){"use strict";e.exports=Math.max},34387:function(e){"use strict";e.exports=Math.min},46451:function(e){"use strict";e.exports=Math.pow},55304:function(e){"use strict";e.exports=Math.round},9797:function(e,t,r){"use strict";var o=r(99646);e.exports=function(e){return o(e)||0===e?e:e<0?-1:1}},5038:function(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,c=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,f=Boolean.prototype.valueOf,m=Object.prototype.toString,y=Function.prototype.toString,v=String.prototype.match,P=String.prototype.slice,g=String.prototype.replace,T=String.prototype.toUpperCase,_=String.prototype.toLowerCase,E=RegExp.prototype.test,b=Array.prototype.concat,S=Array.prototype.join,O=Array.prototype.slice,x=Math.floor,w="function"==typeof BigInt?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,k="function"==typeof Symbol&&"object"==typeof Symbol.iterator,G="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===k?"object":"symbol")?Symbol.toStringTag:null,C=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,"$&_")}
vendor: 4,257 bytes, line 1
1var D=r(24654),M=D.custom,N=$(M)?M:null,L={__proto__:null,double:'"',single:"'"},F={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function q(e,t,r){var o=L[r.quoteStyle||t];return o+e+o}function U(e){return!G||!("object"==typeof e&&(G in e||void 0!==e[G]))}function H(e){return"[object Array]"===K(e)&&U(e)}function z(e){return"[object RegExp]"===K(e)&&U(e)}function $(e){if(k)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!R)return!1;try{return R.call(e),!0}catch(e){}return!1}e.exports=function e(t,o,n,s){var l=o||{};if(W(l,"quoteStyle")&&!W(L,l.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(W(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!W(l,"customInspect")||l.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(l,"indent")&&null!==l.indent&&" "!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var T=l.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=F[r.quoteStyle||"single"];return n.lastIndex=0,q(g.call(g.call(t,n,"\\$1"),/[\x00-\x1f]/g,Z),"single",r)}(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var E=String(t);return T?I(t,E):E}if("bigint"==typeof t){var x=String(t)+"n";return T?I(t,x):x}var A=void 0===l.depth?5:l.depth;if(void 0===n&&(n=0),n>=A&&A>0&&"object"==typeof t)return H(t)?"[Array]":"[Object]";var M=function(e,t){var r;if(" "===e.indent)r=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=S.call(Array(e.indent+1)," ")}return{base:r,prev:S.call(Array(t+1),r)}}(l,n);if(void 0===s)s=[];else if(V(s,t)>=0)return"[Circular]";function B(t,r,o){if(r&&(s=O.call(s)).push(r),o){var i={depth:l.depth};return W(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,n+1,s)}return e(t,l,n+1,s)}if("function"==typeof t&&!z(t)){var et=function(e){if(e.name)return e.name;var t=v.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),er=ee(t,B);return"[Function"+(et?": "+et:" (anonymous)")+"]"+(er.length>0?" { "+S.call(er,", ")+" }":"")}if($(t)){var eo=k?g.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):R.call(t);return"object"!=typeof t||k?eo:J(eo)}if(t&&"object"==typeof t&&("undefined"!=typeof HTMLElement&&t instanceof HTMLElement||"string"==typeof t.nodeName&&"function"==typeof t.getAttribute)){for(var en,ei="<"+_.call(String(t.nodeName)),ea=t.attributes||[],es=0;es<ea.length;es++)ei+=" "+ea[es].name+"="+q((en=ea[es].value,g.call(String(en),/"/g,""")),"double",l);return ei+=">",t.childNodes&&t.childNodes.length&&(ei+="..."),ei+="</"+_.call(String(t.nodeName))+">"}if(H(t)){if(0===t.length)return"[]";var el=ee(t,B);return M&&!function(e){for(var t=0;t<e.length;t++)if(V(e[t],"\n")>=0)return!1;return!0}(el)?"["+Y(el,M)+"]":"[ "+S.call(el,", ")+" ]"}if("[object Error]"===K(t)&&U(t)){var eu=ee(t,B);return"cause"in Error.prototype||!("cause"in t)||C.call(t,"cause")?0===eu.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(eu,", ")+" }":"{ ["+String(t)+"] "+S.call(b.call("[cause]: "+B(t.cause),eu),", ")+" }"}if("object"==typeof t&&m){if(N&&"function"==typeof t[N]&&D)return D(t,{depth:A-n});if("symbol"!==m&&"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 ec=[];return a&&a.call(t,function(e,r){ec.push(B(r,t,!0)+" => "+B(e,t))}),X("Map",i.call(t),ec,M)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);
vendor: 4,704 bytes, line 1
1try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ed=[];return c&&c.call(t,function(e){ed.push(B(e,t))}),X("Set",u.call(t),ed,M)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if("[object Number]"===K(t)&&U(t))return J(B(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 J(B(w.call(t)));if("[object Boolean]"===K(t)&&U(t))return J(f.call(t));if("[object String]"===K(t)&&U(t))return J(B(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]"===K(t)&&U(t))&&!z(t)){var eh=ee(t,B),ep=j?j(t)===Object.prototype:t instanceof Object||t.constructor===Object,ef=t instanceof Object?"":"null prototype",em=!ep&&G&&Object(t)===t&&G in t?P.call(K(t),8,-1):ef?"Object":"",ey=(ep||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(em||ef?"["+S.call(b.call([],em||[],ef||[]),": ")+"] ":"");return 0===eh.length?ey+"{}":M?ey+"{"+Y(eh,M)+"}":ey+"{ "+S.call(eh,", ")+" }"}return String(t)};var B=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return B.call(e,t)}function K(e){return m.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 Z(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 J(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function X(e,t,r,o){return e+" ("+t+") {"+(o?Y(r,o):S.call(r,", "))+"}"}function Y(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+S.call(e,","+r)+"\n"+t.prev}function ee(e,t){var r,o=H(e),n=[];if(o){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=W(e,i)?t(e[i],e):""}var a="function"==typeof A?A(e):[];if(k){r={};for(var s=0;s<a.length;s++)r["$"+a[s]]=a[s]}for(var l in e)W(e,l)&&(!o||String(Number(l))!==l||!(l<e.length))&&(k&&r["$"+l]instanceof Symbol||(E.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if("function"==typeof A)for(var u=0;u<a.length;u++)C.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}},39770:function(e){"use strict";var t=String.prototype.replace,r=/%20/g,o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:o}},64927:function(e,t,r){"use strict";var o=r(82741),n=r(39658),i=r(39770);e.exports={formats:i,parse:n,stringify:o}},39658:function(e,t,r){"use strict";var o=r(40391),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){if(t.throwOnLimitExceeded)for(var o=0,n=e.indexOf(",");n>-1;){if((o+=1)>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");n=e.indexOf(",",n+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,c=l.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==u?u+1:u);if(t.throwOnLimitExceeded&&void 0!==u&&c.length>u)throw RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var d=-1,h=t.charset;if(t.charsetSentinel)for(p=0;p<c.length;++p)0===c[p].indexOf("utf8=")&&("utf8=%E2%9C%93"===c[p]?h="utf-8":"utf8=%26%2310003%3B"===c[p]&&(h="iso-8859-1"),d=p,p=c.length);for(p=0;p<c.length;++p)if(p!==d){var p,f,m,y=c[p],v=y.indexOf("]="),P=-1===v?y.indexOf("="):v+1;
vendor: 2,533 bytes, line 1
1if(-1===P?(f=t.decoder(y,a.decoder,h,"key"),m=t.strictNullHandling?null:""):null!==(f=t.decoder(y.slice(0,P),a.decoder,h,"key"))&&(m=o.maybeMap(s(y.slice(P+1),t,i(r[f])?r[f].length:0),function(e){return t.decoder(e,a.decoder,h,"value")})),m&&t.interpretNumericEntities&&"iso-8859-1"===h&&(m=String(m).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),y.indexOf("[]=")>-1&&(m=i(m)?[m]:m),t.comma&&i(m)&&m.length>t.arrayLimit&&(m=o.combine([],m,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),null!==f){var g=n.call(r,f);g&&("combine"===t.duplicates||y.indexOf("[]=")>-1)?r[f]=o.combine(r[f],m,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):g&&"last"!==t.duplicates||(r[f]=m)}}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 c,d=e[u];if("[]"===d&&r.parseArrays)c=o.isOverflow(l)?l:r.allowEmptyArrays&&(""===l||r.strictNullHandling&&null===l)?[]:o.combine([],l,r.arrayLimit,r.plainObjects,r.throwOnLimitExceeded);else{c=r.plainObjects?{__proto__:null}:{};var h="["===d.charAt(0)&&"]"===d.charAt(d.length-1)?d.slice(1,-1):d,p=r.decodeDotInKeys?h.replace(/%2E/g,"."):h,f=parseInt(p,10),m=!isNaN(f)&&d!==p&&String(f)===p&&f>=0&&r.parseArrays;if(r.parseArrays||""!==p){if(m&&f<r.arrayLimit)(c=[])[f]=l;else if(m&&r.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");else m?(c[f]=l,o.markOverflow(c,f)):"__proto__"!==p&&(c[p]=l)}else c={0:l}}l=c}return l},c=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=[],i=r.indexOf("["),a=i>=0?r.slice(0,i):r;if(a){if(!t.plainObjects&&n.call(Object.prototype,a)&&!t.allowPrototypes)return;o[o.length]=a}for(var s=r.length,l=i,u=0;l>=0&&u<t.depth;){for(var c=1,d=l+1,h=-1;d<s&&h<0;){var p=r.charCodeAt(d);91===p?c+=1:93===p&&0==(c-=1)&&(h=d),d+=1}if(h<0)return o[o.length]="["+r.slice(l)+"]",o;var f=r.slice(l,h+1),m=f.slice(1,-1);if(!t.plainObjects&&n.call(Object.prototype,m)&&!t.allowPrototypes)return;o[o.length]=f,u+=1,l=r.indexOf("[",h+1)}if(l>=0){if(!0===t.strictDepth)throw RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");o[o.length]="["+r.slice(l)+"]"}return o},d=function(e,t,r,o){if(e){var n=c(e,r);if(n)return u(n,t,r,o)}},h=function(e){if(!e)return a;
vendor: 5,148 bytes, line 1
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=h(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],c=d(u,n[u],r,"string"==typeof e);i=o.merge(i,c,r)}return!0===r.allowSparse?i:o.compact(i)}},82741:function(e,t,r){"use strict";var o=r(29912),n=r(40391),i=r(39770),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,c=function(e,t){u.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,h=i.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",depth:1/0,encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,filter:void 0,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},f={},m=function e(t,r,i,a,s,u,d,h,m,y,v,P,g,T,_,E,b,S,O,x){var w,A,R=t;if(x>O)throw RangeError("Input depth exceeded depth option of "+O);for(var k=S,G=0,C=!1;void 0!==(k=k.get(f))&&!C;){var j=k.get(t);if(G+=1,void 0!==j){if(j===G)throw RangeError("Cyclic object value");C=!0}void 0===k.get(f)&&(G=0)}if((R="function"==typeof y?y(r,R):R)instanceof Date?R=g(R):"comma"===i&&l(R)&&(R=n.maybeMap(R,function(e){return e instanceof Date?g(e):e})),null===R){if(u)return _(m&&!E?m(r,p.encoder,b,"key",T):r);R=""}if("string"==typeof(w=R)||"number"==typeof w||"boolean"==typeof w||"symbol"==typeof w||"bigint"==typeof w||n.isBuffer(R))return m?[_(E?r:m(r,p.encoder,b,"key",T))+"="+_(m(R,p.encoder,b,"value",T))]:[_(r)+"="+_(String(R))];var I=[];if(void 0===R)return I;if("comma"===i&&l(R))E&&m&&(R=n.maybeMap(R,function(e){return null==e?e:m(e)})),A=[{value:R.length>0?R.join(",")||null:void 0}];else if(l(y))A=y;else{var D=Object.keys(R);A=v?D.sort(v):D}var M=h?String(r).replace(/\./g,"%2E"):String(r),N=a&&l(R)&&1===R.length?M+"[]":M;if(s&&l(R)&&0===R.length&&0===Object.keys(R).length)return N+"[]";for(var L=0;L<A.length;++L){var F=A[L],q="object"==typeof F&&F&&void 0!==F.value?F.value:R[F];if(!d||null!==q){var U=P&&h?String(F).replace(/\./g,"%2E"):String(F),H=l(R)?"function"==typeof i?i(N,U):N:N+(P?"."+U:"["+U+"]");S.set(t,G);var z=o();z.set(f,S),c(I,e(q,H,i,a,s,u,d,h,"comma"===i&&E&&l(R)?null:m,y,v,P,g,T,_,E,b,z,O,x+1))}}return I},y=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");
1if(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 c=void 0===e.allowDots?!0===e.encodeDotInKeys||p.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:c,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,depth:"number"==typeof e.depth?e.depth:p.depth,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=e,i=y(t);"function"==typeof i.filter?n=(0,i.filter)("",n):l(i.filter)&&(r=i.filter);var a=[];if("object"!=typeof n||null===n)return"";var u=s[i.arrayFormat],d="comma"===u&&i.commaRoundTrip;r||(r=Object.keys(n)),i.sort&&r.sort(i.sort);for(var h=o(),p=0;p<r.length;++p){var f=r[p];if(null!=f){var v=n[f];i.skipNulls&&null===v||c(a,m(v,i.encodeDotInKeys?String(f).replace(/\./g,"%2E"):String(f),u,d,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,h,i.depth,0))}}var P=a.join(i.delimiter),g=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?g+="utf8=%26%2310003%3B"+i.delimiter:g+="utf8=%E2%9C%93"+i.delimiter),P.length>0?g+P:""}},40391:function(e,t,r){"use strict";var o=r(39770),n=r(29912),i=r(10816),a=Object.prototype.hasOwnProperty,s=Array.isArray,l=n(),u=function(e,t){return l.set(e,t),e},c=function(e){return l.has(e)},d=function(e){return l.get(e)},h=function(e,t){l.set(e,t)},p=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),f=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(s(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},y=function(e,t,r){"__proto__"===t&&i?i(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};e.exports={arrayToObject:m,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return y(e,r,t[r]),e},e)},combine:function(e,t,r,o,n){if(c(e)){if(n)throw RangeError("Array limit exceeded. Only "+r+" element"+(1===r?"":"s")+" allowed in an array.");for(var i=s(t)?t:[t],a=d(e),l=0;l<i.length;++l)e[a+=1]=i[l];return h(e,a),e}var p=[].concat(e,t);if(p.length>r){if(n)throw RangeError("Array limit exceeded. Only "+r+" element"+(1===r?"":"s")+" allowed in an array.");return u(m(p,{plainObjects:o}),p.length-1)}return p},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=n(),o=0;o<t.length;++o)for(var i=t[o],a=i.obj[i.prop],s=Object.keys(a),l=0;l<s.length;++l){var u=s[l],c=a[u];"object"!=typeof c||null===c||r.has(c)||(t[t.length]={obj:a,prop:u},r.set(c,!0))}return f(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){var u=a.length>=1024?a.slice(l,l+1024):a;if(l+1024<a.length){var c=u.charCodeAt(u.length-1);c>=55296&&c<=56319&&(u=u.slice(0,-1),l-=1)}for(var d=[],h=0;h<u.length;++h){var f=u.charCodeAt(h);if(45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===o.RFC1738&&(40===f||41===f)){d[d.length]=u.charAt(h);continue}if(f<128){d[d.length]=p[f];continue}if(f<2048){d[d.length]=p[192|f>>6]+p[128|63&f];continue}if(f<55296||f>=57344){d[d.length]=p[224|f>>12]+p[128|f>>6&63]+p[128|63&f];continue}h+=1,f=65536+((1023&f)<<10|1023&u.charCodeAt(h)),d[d.length]=p[240|f>>18]+p[128|f>>12&63]+p[128|f>>6&63]+p[128|63&f]}s+=d.join("")}return s},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:c,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:u,maybeMap:function(e,t){if(s(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(s(t)){var n=t.length;if(o&&"number"==typeof o.arrayLimit&&n>=o.arrayLimit){if(o.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+o.arrayLimit+" element"+(1===o.arrayLimit?"":"s")+" allowed in an array.");return u(m(t.concat(r),o),n)}t[n]=r}else if(!t||"object"!=typeof t)return[t,r];else if(c(t)){var i=d(t)+1;t[i]=r,h(t,i)}else{if(o&&o.strictMerge)return[t,r];(o&&(o.plainObjects||o.allowPrototypes)||!a.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t){if(c(r)){for(var l=Object.keys(r),p=o&&o.plainObjects?{__proto__:null,0:t}:{0:t},f=0;f<l.length;f++)p[parseInt(l[f],10)+1]=r[l[f]];return u(p,d(r)+1)}var v=[t].concat(r);if(o&&"number"==typeof o.arrayLimit&&v.length>o.arrayLimit){if(o.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+o.arrayLimit+" element"+(1===o.arrayLimit?"":"s")+" allowed in an array.");return u(m(v,o),v.length-1)}return v}var P=t;if(s(t)&&!s(r)&&(P=m(t,o)),s(t)&&s(r)){if(r.forEach(function(r,n){if(a.call(t,n)){var i=t[n];i&&"object"==typeof i&&r&&"object"==typeof r?t[n]=e(i,r,o):t[t.length]=r}else t[n]=r}),o&&"number"==typeof o.arrayLimit&&t.length>o.arrayLimit){if(o.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+o.arrayLimit+" element"+(1===o.arrayLimit?"":"s")+" allowed in an array.");return u(m(t,o),t.length-1)}return t}return Object.keys(r).reduce(function(t,n){var i=r[n];if(a.call(t,n)?y(t,n,e(t[n],i,o)):y(t,n,i),c(r)&&!c(t)&&u(t,d(r)),c(t)){var s=parseInt(n,10);String(s)===n&&s>=0&&s>d(t)&&h(t,s)}return t},P)}}},9112:function(e,t,r){"use strict";var o=r(5038),n=r(53842),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=l(e,t);return r&&e&&!e.next&&(e=void 0),!!r},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}},9265:function(e,t,r){"use strict";
1var o=r(50071),n=r(73250),i=r(5038),a=r(53842),s=o("%Map%",!0),l=n("Map.prototype.get",!0),u=n("Map.prototype.set",!0),c=n("Map.prototype.has",!0),d=n("Map.prototype.delete",!0),h=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===h(e)&&(e=void 0),r}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&c(e,t)},set:function(t,r){e||(e=new s),u(e,t,r)}};return t}},77117:function(e,t,r){"use strict";var o=r(50071),n=r(73250),i=r(5038),a=r(9265),s=r(53842),l=o("%WeakMap%",!0),u=n("WeakMap.prototype.get",!0),c=n("WeakMap.prototype.set",!0),d=n("WeakMap.prototype.has",!0),h=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 h(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),c(e,r,o)):a&&(t||(t=a()),t.set(r,o))}};return r}:a},29912:function(e,t,r){"use strict";var o=r(53842),n=r(5038),i=r(9112),a=r(9265),s=r(77117)||a||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+(e&&Object(e)===e?"the given object key":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}},48672:function(e,t,r){"use strict";r.d(t,{loadStripe:function(){return v}});var o,n="https://js.stripe.com",i="".concat(n,"/v3"),a=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,s=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,l=function(){for(var e=document.querySelectorAll('script[src^="'.concat(n,'"]')),t=0;t<e.length;t++){var r,o=e[t];if(r=o.src,a.test(r)||s.test(r))return o}return null},u=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src="".concat(i).concat(t);var o=document.head||document.body;if(!o)throw Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return o.appendChild(r),r},c=function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"5.10.0",startTime:t})},d=null,h=null,p=null,f=function(e,t,r){if(null===e)return null;var o,n=t[0].match(/^pk_test/),i=3===(o=e.version)?"v3":o;n&&"v3"!==i&&console.warn("Stripe.js@".concat(i," was loaded on the page, but @stripe/stripe-js@").concat("5.10.0"," expected Stripe.js@").concat("v3",". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var a=e.apply(void 0,t);return c(a,r),a},m=!1,y=function(){return o||(o=(null!==d?d:(d=new Promise(function(e,t){if("undefined"==typeof window||"undefined"==typeof document){e(null);return}if(window.Stripe,window.Stripe){e(window.Stripe);return}try{var r,o=l();o?o&&null!==p&&null!==h&&(o.removeEventListener("load",p),o.removeEventListener("error",h),null===(r=o.parentNode)||void 0===r||r.removeChild(o),o=u(null)):o=u(null),p=function(){window.Stripe?e(window.Stripe):t(Error("Stripe.js not available"))},h=function(e){t(Error("Failed to load Stripe.js",{cause:e}))},o.addEventListener("load",p),o.addEventListener("error",h)}catch(e){t(e);return}})).catch(function(e){return d=null,Promise.reject(e)})).catch(function(e){return o=null,Promise.reject(e)}))};Promise.resolve().then(function(){return y()}).catch(function(e){m||console.warn(e)});var v=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];m=!0;var o=Date.now();return y().then(function(e){return f(e,t,o)})}},25573:function(e,t,r){"use strict";var o={};r.r(o),r.d(o,{StripeAPIError:function(){return _},StripeAuthenticationError:function(){return E},StripeCardError:function(){return g},StripeConnectionError:function(){return O},StripeError:function(){return P},StripeIdempotencyError:function(){return w},StripeInvalidGrantError:function(){return A},StripeInvalidRequestError:function(){return T},StripePermissionError:function(){return b},StripeRateLimitError:function(){return S},StripeSignatureVerificationError:function(){return x},StripeUnknownError:function(){return R},generate:function(){return v}});var n={};r.r(n),r.d(n,{Account:function(){return t6},AccountLinks:function(){return t7}
1,AccountSessions:function(){return rt},Accounts:function(){return t6},ApplePayDomains:function(){return ro},ApplicationFees:function(){return ri},Apps:function(){return oM},Balance:function(){return rs},BalanceTransactions:function(){return ru},Billing:function(){return oN},BillingPortal:function(){return oL},Charges:function(){return rd},Checkout:function(){return oF},Climate:function(){return oq},ConfirmationTokens:function(){return rp},CountrySpecs:function(){return rm},Coupons:function(){return rv},CreditNotes:function(){return rg},CustomerSessions:function(){return r_},Customers:function(){return rb},Disputes:function(){return rO},Entitlements:function(){return oU},EphemeralKeys:function(){return rw},Events:function(){return rR},ExchangeRates:function(){return rG},FileLinks:function(){return rj},Files:function(){return rM},FinancialConnections:function(){return oH},Forwarding:function(){return oz},Identity:function(){return o$},InvoiceItems:function(){return rL},Invoices:function(){return rq},Issuing:function(){return oB},Mandates:function(){return rH},OAuth:function(){return rB},PaymentIntents:function(){return rK},PaymentLinks:function(){return rZ},PaymentMethodConfigurations:function(){return rQ},PaymentMethodDomains:function(){return rY},PaymentMethods:function(){return r0},Payouts:function(){return r5},Plans:function(){return r3},Prices:function(){return r6},Products:function(){return r7},PromotionCodes:function(){return ot},Quotes:function(){return oo},Radar:function(){return oW},Refunds:function(){return oi},Reporting:function(){return oK},Reviews:function(){return os},SetupAttempts:function(){return ou},SetupIntents:function(){return od},ShippingRates:function(){return op},Sigma:function(){return oV},Sources:function(){return om},SubscriptionItems:function(){return ov},SubscriptionSchedules:function(){return og},Subscriptions:function(){return o_},Tax:function(){return oZ},TaxCodes:function(){return ob},TaxIds:function(){return oO},TaxRates:function(){return ow},Terminal:function(){return oJ},TestHelpers:function(){return oQ},Tokens:function(){return oR},Topups:function(){return oG},Transfers:function(){return oj},Treasury:function(){return oX},WebhookEndpoints:function(){return oD}});class i{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(i.TIMEOUT_ERROR_CODE);return e.code=i.TIMEOUT_ERROR_CODE,e}}i.CONNECTION_CLOSED_ERROR_CODES=["ECONNRESET","EPIPE"],i.TIMEOUT_ERROR_CODE="ETIMEDOUT";class a{constructor(e,t){this._statusCode=e,this._headers=t}getStatusCode(){return this._statusCode}getHeaders(){return this._headers}getRawResponse(){throw Error("getRawResponse not implemented.")}toStream(e){throw Error("toStream not implemented.")}toJSON(){throw Error("toJSON not implemented.")}}class s extends i{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;let a=new Promise((e,t)=>{n=setTimeout(()=>{n=null,t(i.makeTimeoutError())},o)});return Promise.race([e(t,r),a]).finally(()=>{n&&clearTimeout(n)})}}static makeFetchWithAbortTimeout(e){return async(t,r,o)=>{let n=new AbortController,a=setTimeout(()=>{a=null,n.abort(i.makeTimeoutError())},o);try{return await e(t,Object.assign(Object.assign({},r),{signal:n.signal}))}catch(e){if("AbortError"===e.name)throw i.makeTimeoutError();throw e}finally{a&&clearTimeout(a)}}}getClientName(){return"fetch"}async makeRequest(e,t,r,o,n,i,a,s){let u=new URL(r,`${"http"===a?"http":"https"}://${e}`);u.port=t;let c="POST"==o||"PUT"==o||"PATCH"==o;return new l(await this._fetchFn(u.toString(),{method:o,headers:n,body:i||(c?"":void 0)},s))}}class l extends a{constructor(e){super(e.status,l._transformHeadersToObject(e.headers)),this._res=e}getRawResponse(){return this._res}toStream(e){return e(),this._res.body}toJSON(){return this._res.json()}static _transformHeadersToObject(e){let t={};for(let r of e){if(!Array.isArray(r)||2!=r.length)throw Error("Response objects produced by the fetch function given to FetchHttpClient do not have an iterable headers map. Response#headers should be an iterable object.");t[r[0]]=r[1]}return t}}class u{computeHMACSignature(e,t){throw Error("computeHMACSignature not implemented.")}computeHMACSignatureAsync(e,t){throw Error("computeHMACSignatureAsync not implemented.")}}
1class c extends Error{}class d extends u{constructor(e){super(),this.subtleCrypto=e||crypto.subtle}computeHMACSignature(e,t){throw new c("SubtleCryptoProvider cannot be used in a synchronous context.")}async computeHMACSignatureAsync(e,t){let r=new TextEncoder,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]=h[n[e]];return i.join("")}}let h=Array(256);for(let e=0;e<h.length;e++)h[e]=e.toString(16).padStart(2,"0");class p{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 d(e)}createDefaultCryptoProvider(){throw Error("createDefaultCryptoProvider not implemented.")}}class f extends Event{constructor(e,t){super(e),this.data=t}}class m{constructor(){this.eventTarget=new EventTarget,this.listenerMapping=new Map}on(e,t){let r=e=>{t(e.data)};return this.listenerMapping.set(t,r),this.eventTarget.addEventListener(e,r)}removeListener(e,t){let r=this.listenerMapping.get(t);return this.listenerMapping.delete(t),this.eventTarget.removeEventListener(e,r)}once(e,t){let r=e=>{t(e.data)};return this.listenerMapping.set(t,r),this.eventTarget.addEventListener(e,r,{once:!0})}emit(e,t){return this.eventTarget.dispatchEvent(new f(e,t))}}class y extends p{getUname(){return Promise.resolve(null)}createEmitter(){return new m}tryBufferData(e){if(e.file.data instanceof ReadableStream)throw Error("Uploading a file as a stream is not supported in non-Node environments. Please open or upvote an issue at github.com/stripe/stripe-node if you use this, detailing your use-case.");return Promise.resolve(e)}createNodeHttpClient(){throw Error("Stripe: `createNodeHttpClient()` is not available in non-Node environments. Please use `createFetchHttpClient()` instead.")}createDefaultHttpClient(){return super.createFetchHttpClient()}createNodeCryptoProvider(){throw Error("Stripe: `createNodeCryptoProvider()` is not available in non-Node environments. Please use `createSubtleCryptoProvider()` instead.")}createDefaultCryptoProvider(){return this.createSubtleCryptoProvider()}}let v=e=>{switch(e.type){case"card_error":return new g(e);case"invalid_request_error":return new T(e);case"api_error":return new _(e);case"authentication_error":return new E(e);case"rate_limit_error":return new S(e);case"idempotency_error":return new w(e);case"invalid_grant":return new A(e);default:return new R(e)}};class P extends Error{constructor(e={},t=null){super(e.message),this.type=t||this.constructor.name,this.raw=e,this.rawType=e.type,this.code=e.code,this.doc_url=e.doc_url,this.param=e.param,this.detail=e.detail,this.headers=e.headers,this.requestId=e.requestId,this.statusCode=e.statusCode,this.message=e.message,this.charge=e.charge,this.decline_code=e.decline_code,this.payment_intent=e.payment_intent,this.payment_method=e.payment_method,this.payment_method_type=e.payment_method_type,this.setup_intent=e.setup_intent,this.source=e.source}}P.generate=v;class g extends P{constructor(e={}){super(e,"StripeCardError")}}class T extends P{constructor(e={}){super(e,"StripeInvalidRequestError")}}class _ extends P{constructor(e={}){super(e,"StripeAPIError")}}class E extends P{constructor(e={}){super(e,"StripeAuthenticationError")}}class b extends P{constructor(e={}){super(e,"StripePermissionError")}}class S extends P{constructor(e={}){super(e,"StripeRateLimitError")}}class O extends P{constructor(e={}){super(e,"StripeConnectionError")}}class x extends P{constructor(e,t,r={}){super(r,"StripeSignatureVerificationError"),this.header=e,this.payload=t}}class w extends P{constructor(e={}){super(e,"StripeIdempotencyError")}}class A extends P{constructor(e={}){super(e,"StripeInvalidGrantError")}}class R extends P{constructor(e={}){super(e,"StripeUnknownError")}}function k(e,t){for(let r in t){let o=r[0].toLowerCase()+r.substring(1),n=new t[r](e);this[o]=n}}function G(e,t){return function(e){return new k(e,t)}}var C=r(64927),j=r(40257);let I=["apiKey","idempotencyKey","stripeAccount","apiVersion","maxNetworkRetries","timeout","host"];function D(e){return e&&"object"==typeof e&&I.some(t=>Object.prototype.hasOwnProperty.call(e,t))}function M(e){return C.stringify(e,{serializeDate:e=>Math.floor(e.getTime()/1e3).toString()}).replace(/%5B/g,"[").replace(/%5D/g,"]")}let N=(()=>{let e={"\n":"\\n",'"':'\\"',"\u2028":"\\u2028","\u2029":"\\u2029"};return t=>{let r=t.replace(/["\n\r\u2028\u2029]/g,t=>e[t]);return e=>r.replace(/\{([\s\S]+?)\}/g,(t,r)=>encodeURIComponent(e[r]||""))}})();function L(e){if(!Array.isArray(e)||!e[0]||"object"!=typeof e[0])return{};if(!D(e[0]))return e.shift();let t=Object.keys(e[0]),r=t.filter(e=>I.includes(e));return r.length>
10&&r.length!==t.length&&U(`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 F(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 q(e,t){return t?e.then(e=>{setTimeout(()=>{t(null,e)},0)},e=>{setTimeout(()=>{t(e,null)},0)}):e}function U(e){return"function"!=typeof j.emitWarning?console.warn(`Stripe: ${e}`):j.emitWarning(e,"Stripe")}function H(e,t,r){if(!Number.isInteger(t)){if(void 0!==r)return r;throw Error(`${e} must be an integer`)}return t}class z{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=V(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)}return{done:!0,value:void 0}}getNextPage(e){throw Error("Unimplemented")}async _next(){return this.iterate(await this.pagePromise)}next(){if(this.promiseCache.currentPromise)return this.promiseCache.currentPromise;let e=(async()=>{let e=await this._next();return this.promiseCache.currentPromise=null,e})();return this.promiseCache.currentPromise=e,e}}class $ extends z{getNextPage(e){let t=V(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 B extends z{getNextPage(e){if(!e.next_page)throw Error("Unexpected: Stripe API response does not have a well-formed `next_page` field, but `has_more` was true.");return this.stripeResource._makeRequest(this.requestArgs,this.spec,{page:e.next_page})}}let W=(e,t,r,o)=>"search"===r.methodType?K(new B(o,t,r,e)):"list"===r.methodType?K(new $(o,t,r,e)):null,K=e=>{var t;let r=(t=(...t)=>e.next(...t),function(){let e=[].slice.call(arguments),r=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))}}(e),o=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}(e);if(e.length>2)throw Error(`autoPagingEach takes up to two arguments; received ${e}`);return q(new Promise((e,o)=>{t().then(function o(n){if(n.done){e();return}let i=n.value;return new Promise(e=>{r(i,e)}).then(e=>!1===e?o({done:!0,value:void 0}):t().then(o))}).catch(o)}),o)}),o={autoPagingEach:r,autoPagingToArray: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 q(new Promise((e,t)=>{let n=[];r(e=>{if(n.push(e),n.length>=o)return!1}).then(()=>{e(n)}).catch(t)}),t)},next:()=>e.next(),return:()=>({}),["undefined"!=typeof Symbol&&Symbol.asyncIterator?Symbol.asyncIterator:"@@asyncIterator"]:()=>o};return o};function V(e){return!!L([].slice.call(e)).ending_before}function Z(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=N(this.basePath||e.getApiField("basePath")),this.resourcePath=this.path,this.path=N(this.path),this.initialize(...arguments)}Z.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},Z.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=q(this._makeRequest(t,e,{}),r);return Object.assign(o,W(this,t,e,o)),o}},Z.MAX_BUFFERED_REQUEST_METRICS=100,Z.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){let o=(t.method||"GET").toUpperCase(),n=t.usage||[],i=t.urlParams||[],a=t.encode||(e=>e),s=!!t.fullPath,l=N(s?t.fullPath:t.path||""),u=s?t.fullPath:this.createResourcePathWithSymbols(t.path),c=[].slice.call(e),d=i.reduce((e,t)=>{let r=c.shift();if("string"!=typeof r)throw Error(`Stripe: Argument "${t}" must be a string, but got: ${r} (on API request to \`${o} ${u}\`)`);return e[t]=r,e},{}),h=a(Object.assign({},L(c),r)),p=function(e){let t={auth:null,host:null,headers:{},settings:{}};if(e.length>0){let r=e[e.length-1];if("string"==typeof r)t.auth=e.pop();else if(D(r)){let r=Object.assign({},e.pop()),o=Object.keys(r).filter(e=>!I.includes(e));o.length&&U(`Invalid options found (${o.join(", ")}); ignoring.`),r.apiKey&&(t.auth=r.apiKey),r.idempotencyKey&&(t.headers["Idempotency-Key"]=r.idempotencyKey),r.stripeAccount&&(t.headers["Stripe-Account"]=r.stripeAccount),r.apiVersion&&(t.headers["Stripe-Version"]=r.apiVersion),Number.isInteger(r.maxNetworkRetries)&&(t.settings.maxNetworkRetries=r.maxNetworkRetries),Number.isInteger(r.timeout)&&(t.settings.timeout=r.timeout),r.host&&(t.host=r.host)}}return t}(c),f=p.host||t.host,m=!!t.streaming;if(c.filter(e=>null!=e).length)throw Error(`Stripe: Unknown arguments (${c}). Did you mean to pass an options object? See https://github.com/stripe/stripe-node/wiki/Passing-Options. (on API request to ${o} \`${u}\`)`);let y=s?l(d):this.createFullPath(l,d),v=Object.assign(p.headers,t.headers);t.validator&&t.validator(h,{headers:v});let P="GET"===t.method||"DELETE"===t.method;return{requestMethod:o,requestPath:y,bodyData:P?{}:h,queryData:P?h:{},auth:p.auth,headers:v,host:null!=f?f:null,streaming:m,settings:p.settings,usage:n}},_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?"":"?",M(a.queryData)].join(""),{headers:u,settings:c}=a;this._stripe._requestSender._request(a.requestMethod,a.host,l,a.bodyData,a.auth,{headers:u,settings:c,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?void 0:i.bind(this))})}};let J=Z.method,Q=Z.extend({retrieve:J({method:"GET",fullPath:"/v1/financial_connections/accounts/{account}"}),list:J({method:"GET",fullPath:"/v1/financial_connections/accounts",methodType:"list"}),disconnect:J({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/disconnect"}),listOwners:J({method:"GET",fullPath:"/v1/financial_connections/accounts/{account}/owners",methodType:"list"}),refresh:J({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/refresh"}),subscribe:J({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/subscribe"}),unsubscribe:J({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/unsubscribe"})}),X=Z.method,Y=Z.extend({retrieve:X({method:"GET",fullPath:"/v1/entitlements/active_entitlements/{id}"}),list:X({method:"GET",fullPath:"/v1/entitlements/active_entitlements",methodType:"list"})}),ee=Z.method,et=Z.extend({create:ee({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations"}),capture:ee({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/capture"}),expire:ee({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/expire"}),increment:ee({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/increment"}),reverse:ee({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/reverse"})}),er=Z.method,eo=Z.extend({retrieve:er({method:"GET",fullPath:"/v1/issuing/authorizations/{authorization}"}),update:er({method:"POST",fullPath:"/v1/issuing/authorizations/{authorization}"}),list:er({method:"GET",fullPath:"/v1/issuing/authorizations",methodType:"list"}),approve:er({method:"POST",fullPath:"/v1/issuing/authorizations/{authorization}/approve"}),decline:er({method:"POST",fullPath:"/v1/issuing/authorizations/{authorization}/decline"})}),en=Z.method,ei=Z.extend({create:en({method:"POST",fullPath:"/v1/tax/calculations"}),listLineItems:en({method:"GET",fullPath:"/v1/tax/calculations/{calculation}/line_items",methodType:"list"})}),ea=Z.method,es=Z.extend({create:ea({method:"POST",fullPath:"/v1/issuing/cardholders"}),retrieve:ea({method:"GET",fullPath:"/v1/issuing/cardholders/{cardholder}"}),update:ea({method:"POST",fullPath:"/v1/issuing/cardholders/{cardholder}"}),list:ea({method:"GET",fullPath:"/v1/issuing/cardholders",methodType:"list"})}),el=Z.method,eu=Z.extend({deliverCard:el({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/deliver"}),failCard:el({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/fail"}),returnCard:el({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/return"}),shipCard:el({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/ship"})}),ec=Z.method,ed=Z.extend({create:ec({method:"POST",fullPath:"/v1/issuing/cards"}),retrieve:ec({method:"GET",fullPath:"/v1/issuing/cards/{card}"}),update:ec({method:"POST",fullPath:"/v1/issuing/cards/{card}"}),list:ec({method:"GET",fullPath:"/v1/issuing/cards",methodType:"list"})}),eh=Z.method,ep=Z.extend({create:eh({method:"POST",fullPath:"/v1/billing_portal/configurations"}),retrieve:eh({method:"GET",fullPath:"/v1/billing_portal/configurations/{configuration}"}),update:eh({method:"POST",fullPath:"/v1/billing_portal/configurations/{configuration}"}),list:eh({method:"GET",fullPath:"/v1/billing_portal/configurations",methodType:"list"})}),ef=Z.method,em=Z.extend({create:ef({method:"POST",fullPath:"/v1/terminal/configurations"}),retrieve:ef({method:"GET",fullPath:"/v1/terminal/configurations/{configuration}"}),update:ef({method:"POST",fullPath:"/v1/terminal/configurations/{configuration}"}),list:ef({method:"GET",fullPath:"/v1/terminal/configurations",methodType:"list"}),del:ef({method:"DELETE",fullPath:"/v1/terminal/configurations/{configuration}"})}),ey=Z.method,ev=Z.extend({create:ey({method:"POST",fullPath:"/v1/test_helpers/confirmation_tokens"})}),eP=Z.method,eg=Z.extend({create:eP({method:"POST",fullPath:"/v1/terminal/connection_tokens"})}),eT=Z.method,e_=Z.extend({create:eT({method:"POST",fullPath:"/v1/treasury/credit_reversals"}),retrieve:eT({method:"GET",fullPath:"/v1/treasury/credit_reversals/{credit_reversal}"}),list:eT({method:"GET",fullPath:"/v1/treasury/credit_reversals",methodType:"list"})}),eE=Z.method,eb=Z.extend({fundCashBalance:eE({method:"POST",fullPath:"/v1/test_helpers/customers/{customer}/fund_cash_balance"})}),eS=Z.method,eO=Z.extend({create:eS({method:"POST",fullPath:"/v1/treasury/debit_reversals"}),retrieve:eS({method:"GET",fullPath:"/v1/treasury/debit_reversals/{debit_reversal}"}),list:eS({method:"GET",fullPath:"/v1/treasury/debit_reversals",methodType:"list"})}),ex=Z.method,ew=Z.extend({create:ex({method:"POST",fullPath:"/v1/issuing/disputes"}),retrieve:ex({method:"GET",fullPath:"/v1/issuing/disputes/{dispute}"}),update:ex({method:"POST",fullPath:"/v1/issuing/disputes/{dispute}"}),list:ex({method:"GET",fullPath:"/v1/issuing/disputes",methodType:"list"}),submit:ex({method:"POST",fullPath:"/v1/issuing/disputes/{dispute}/submit"})}),eA=Z.method,eR=Z.extend({retrieve:eA({method:"GET",fullPath:"/v1/radar/early_fraud_warnings/{early_fraud_warning}"}),list:eA({method:"GET",fullPath:"/v1/radar/early_fraud_warnings",methodType:"list"})}
1),ek=Z.method,eG=Z.extend({create:ek({method:"POST",fullPath:"/v1/entitlements/features"}),retrieve:ek({method:"GET",fullPath:"/v1/entitlements/features/{id}"}),update:ek({method:"POST",fullPath:"/v1/entitlements/features/{id}"}),list:ek({method:"GET",fullPath:"/v1/entitlements/features",methodType:"list"})}),eC=Z.method,ej=Z.extend({create:eC({method:"POST",fullPath:"/v1/treasury/financial_accounts"}),retrieve:eC({method:"GET",fullPath:"/v1/treasury/financial_accounts/{financial_account}"}),update:eC({method:"POST",fullPath:"/v1/treasury/financial_accounts/{financial_account}"}),list:eC({method:"GET",fullPath:"/v1/treasury/financial_accounts",methodType:"list"}),retrieveFeatures:eC({method:"GET",fullPath:"/v1/treasury/financial_accounts/{financial_account}/features"}),updateFeatures:eC({method:"POST",fullPath:"/v1/treasury/financial_accounts/{financial_account}/features"})}),eI=Z.method,eD=Z.extend({fail:eI({method:"POST",fullPath:"/v1/test_helpers/treasury/inbound_transfers/{id}/fail"}),returnInboundTransfer:eI({method:"POST",fullPath:"/v1/test_helpers/treasury/inbound_transfers/{id}/return"}),succeed:eI({method:"POST",fullPath:"/v1/test_helpers/treasury/inbound_transfers/{id}/succeed"})}),eM=Z.method,eN=Z.extend({create:eM({method:"POST",fullPath:"/v1/treasury/inbound_transfers"}),retrieve:eM({method:"GET",fullPath:"/v1/treasury/inbound_transfers/{id}"}),list:eM({method:"GET",fullPath:"/v1/treasury/inbound_transfers",methodType:"list"}),cancel:eM({method:"POST",fullPath:"/v1/treasury/inbound_transfers/{inbound_transfer}/cancel"})}),eL=Z.method,eF=Z.extend({create:eL({method:"POST",fullPath:"/v1/terminal/locations"}),retrieve:eL({method:"GET",fullPath:"/v1/terminal/locations/{location}"}),update:eL({method:"POST",fullPath:"/v1/terminal/locations/{location}"}),list:eL({method:"GET",fullPath:"/v1/terminal/locations",methodType:"list"}),del:eL({method:"DELETE",fullPath:"/v1/terminal/locations/{location}"})}),eq=Z.method,eU=Z.extend({create:eq({method:"POST",fullPath:"/v1/billing/meter_event_adjustments"})}),eH=Z.method,ez=Z.extend({create:eH({method:"POST",fullPath:"/v1/billing/meter_events"})}),e$=Z.method,eB=Z.extend({create:e$({method:"POST",fullPath:"/v1/billing/meters"}),retrieve:e$({method:"GET",fullPath:"/v1/billing/meters/{id}"}),update:e$({method:"POST",fullPath:"/v1/billing/meters/{id}"}),list:e$({method:"GET",fullPath:"/v1/billing/meters",methodType:"list"}),deactivate:e$({method:"POST",fullPath:"/v1/billing/meters/{id}/deactivate"}),listEventSummaries:e$({method:"GET",fullPath:"/v1/billing/meters/{id}/event_summaries",methodType:"list"}),reactivate:e$({method:"POST",fullPath:"/v1/billing/meters/{id}/reactivate"})}),eW=Z.method,eK=Z.extend({create:eW({method:"POST",fullPath:"/v1/climate/orders"}),retrieve:eW({method:"GET",fullPath:"/v1/climate/orders/{order}"}),update:eW({method:"POST",fullPath:"/v1/climate/orders/{order}"}),list:eW({method:"GET",fullPath:"/v1/climate/orders",methodType:"list"}),cancel:eW({method:"POST",fullPath:"/v1/climate/orders/{order}/cancel"})}),eV=Z.method,eZ=Z.extend({fail:eV({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}/fail"}),post:eV({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}/post"}),returnOutboundPayment:eV({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}/return"})}),eJ=Z.method,eQ=Z.extend({create:eJ({method:"POST",fullPath:"/v1/treasury/outbound_payments"}),retrieve:eJ({method:"GET",fullPath:"/v1/treasury/outbound_payments/{id}"}),list:eJ({method:"GET",fullPath:"/v1/treasury/outbound_payments",methodType:"list"}),cancel:eJ({method:"POST",fullPath:"/v1/treasury/outbound_payments/{id}/cancel"})}),eX=Z.method,eY=Z.extend({fail:eX({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/fail"}),post:eX({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/post"}),returnOutboundTransfer:eX({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/return"})}),e1=Z.method,e0=Z.extend({create:e1({method:"POST",fullPath:"/v1/treasury/outbound_transfers"}),retrieve:e1({method:"GET",fullPath:"/v1/treasury/outbound_transfers/{outbound_transfer}"}),list:e1({method:"GET",fullPath:"/v1/treasury/outbound_transfers",methodType:"list"}),cancel:e1({method:"POST",fullPath:"/v1/treasury/outbound_transfers/{outbound_transfer}/cancel"})}),e2=Z.method,e5=Z.extend({activate:e2({method:"POST",fullPath:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}
1/activate"}),deactivate:e2({method:"POST",fullPath:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}/deactivate"}),reject:e2({method:"POST",fullPath:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}/reject"})}),e8=Z.method,e3=Z.extend({create:e8({method:"POST",fullPath:"/v1/issuing/personalization_designs"}),retrieve:e8({method:"GET",fullPath:"/v1/issuing/personalization_designs/{personalization_design}"}),update:e8({method:"POST",fullPath:"/v1/issuing/personalization_designs/{personalization_design}"}),list:e8({method:"GET",fullPath:"/v1/issuing/personalization_designs",methodType:"list"})}),e9=Z.method,e6=Z.extend({retrieve:e9({method:"GET",fullPath:"/v1/issuing/physical_bundles/{physical_bundle}"}),list:e9({method:"GET",fullPath:"/v1/issuing/physical_bundles",methodType:"list"})}),e4=Z.method,e7=Z.extend({retrieve:e4({method:"GET",fullPath:"/v1/climate/products/{product}"}),list:e4({method:"GET",fullPath:"/v1/climate/products",methodType:"list"})}),te=Z.method,tt=Z.extend({presentPaymentMethod:te({method:"POST",fullPath:"/v1/test_helpers/terminal/readers/{reader}/present_payment_method"})}),tr=Z.method,to=Z.extend({create:tr({method:"POST",fullPath:"/v1/terminal/readers"}),retrieve:tr({method:"GET",fullPath:"/v1/terminal/readers/{reader}"}),update:tr({method:"POST",fullPath:"/v1/terminal/readers/{reader}"}),list:tr({method:"GET",fullPath:"/v1/terminal/readers",methodType:"list"}),del:tr({method:"DELETE",fullPath:"/v1/terminal/readers/{reader}"}),cancelAction:tr({method:"POST",fullPath:"/v1/terminal/readers/{reader}/cancel_action"}),processPaymentIntent:tr({method:"POST",fullPath:"/v1/terminal/readers/{reader}/process_payment_intent"}),processSetupIntent:tr({method:"POST",fullPath:"/v1/terminal/readers/{reader}/process_setup_intent"}),refundPayment:tr({method:"POST",fullPath:"/v1/terminal/readers/{reader}/refund_payment"}),setReaderDisplay:tr({method:"POST",fullPath:"/v1/terminal/readers/{reader}/set_reader_display"})}),tn=Z.method,ti=Z.extend({create:tn({method:"POST",fullPath:"/v1/test_helpers/treasury/received_credits"})}),ta=Z.method,ts=Z.extend({retrieve:ta({method:"GET",fullPath:"/v1/treasury/received_credits/{id}"}),list:ta({method:"GET",fullPath:"/v1/treasury/received_credits",methodType:"list"})}),tl=Z.method,tu=Z.extend({create:tl({method:"POST",fullPath:"/v1/test_helpers/treasury/received_debits"})}),tc=Z.method,td=Z.extend({retrieve:tc({method:"GET",fullPath:"/v1/treasury/received_debits/{id}"}),list:tc({method:"GET",fullPath:"/v1/treasury/received_debits",methodType:"list"})}),th=Z.method,tp=Z.extend({expire:th({method:"POST",fullPath:"/v1/test_helpers/refunds/{refund}/expire"})}),tf=Z.method,tm=Z.extend({create:tf({method:"POST",fullPath:"/v1/tax/registrations"}),retrieve:tf({method:"GET",fullPath:"/v1/tax/registrations/{id}"}),update:tf({method:"POST",fullPath:"/v1/tax/registrations/{id}"}),list:tf({method:"GET",fullPath:"/v1/tax/registrations",methodType:"list"})}),ty=Z.method,tv=Z.extend({create:ty({method:"POST",fullPath:"/v1/reporting/report_runs"}),retrieve:ty({method:"GET",fullPath:"/v1/reporting/report_runs/{report_run}"}),list:ty({method:"GET",fullPath:"/v1/reporting/report_runs",methodType:"list"})}),tP=Z.method,tg=Z.extend({retrieve:tP({method:"GET",fullPath:"/v1/reporting/report_types/{report_type}"}),list:tP({method:"GET",fullPath:"/v1/reporting/report_types",methodType:"list"})}),tT=Z.method,t_=Z.extend({create:tT({method:"POST",fullPath:"/v1/forwarding/requests"}),retrieve:tT({method:"GET",fullPath:"/v1/forwarding/requests/{id}"}),list:tT({method:"GET",fullPath:"/v1/forwarding/requests",methodType:"list"})}),tE=Z.method,tb=Z.extend({retrieve:tE({method:"GET",fullPath:"/v1/sigma/scheduled_query_runs/{scheduled_query_run}"}),list:tE({method:"GET",fullPath:"/v1/sigma/scheduled_query_runs",methodType:"list"})}),tS=Z.method,tO=Z.extend({create:tS({method:"POST",fullPath:"/v1/apps/secrets"}),list:tS({method:"GET",fullPath:"/v1/apps/secrets",methodType:"list"}),deleteWhere:tS({method:"POST",fullPath:"/v1/apps/secrets/delete"}),find:tS({method:"GET",fullPath:"/v1/apps/secrets/find"})}),tx=Z.method,tw=Z.extend({create:tx({method:"POST",fullPath:"/v1/billing_portal/sessions"})}),tA=Z.method,tR=Z.extend({create:tA({method:"POST",fullPath:"/v1/checkout/sessions"}),retrieve:tA({method:"GET",fullPath:"/v1/checkout/sessions/{session}"}),list:tA({method:"GET",fullPath:"/v1/checkout/sessions",methodType:"list"}),expire:tA({method:"POST",fullPath:"/v1/checkout/sessions/{session}/expire"}),listLineItems:tA({method:"GET",fullPath:"/v1/checkout/sessions/{session}/line_items",methodType:"list"})}),tk=Z.method,tG=Z.extend({create:tk({method:"POST",fullPath:"/v1/financial_connections/sessions"}),retrieve:tk({method:"GET",fullPath:"/v1/financial_connections/sessions/{session}"})}),tC=Z.method,tj=Z.extend({retrieve:tC({method:"GET",fullPath:"/v1/tax/sett
1ings"}),update:tC({method:"POST",fullPath:"/v1/tax/settings"})}),tI=Z.method,tD=Z.extend({retrieve:tI({method:"GET",fullPath:"/v1/climate/suppliers/{supplier}"}),list:tI({method:"GET",fullPath:"/v1/climate/suppliers",methodType:"list"})}),tM=Z.method,tN=Z.extend({create:tM({method:"POST",fullPath:"/v1/test_helpers/test_clocks"}),retrieve:tM({method:"GET",fullPath:"/v1/test_helpers/test_clocks/{test_clock}"}),list:tM({method:"GET",fullPath:"/v1/test_helpers/test_clocks",methodType:"list"}),del:tM({method:"DELETE",fullPath:"/v1/test_helpers/test_clocks/{test_clock}"}),advance:tM({method:"POST",fullPath:"/v1/test_helpers/test_clocks/{test_clock}/advance"})}),tL=Z.method,tF=Z.extend({retrieve:tL({method:"GET",fullPath:"/v1/issuing/tokens/{token}"}),update:tL({method:"POST",fullPath:"/v1/issuing/tokens/{token}"}),list:tL({method:"GET",fullPath:"/v1/issuing/tokens",methodType:"list"})}),tq=Z.method,tU=Z.extend({retrieve:tq({method:"GET",fullPath:"/v1/treasury/transaction_entries/{id}"}),list:tq({method:"GET",fullPath:"/v1/treasury/transaction_entries",methodType:"list"})}),tH=Z.method,tz=Z.extend({createForceCapture:tH({method:"POST",fullPath:"/v1/test_helpers/issuing/transactions/create_force_capture"}),createUnlinkedRefund:tH({method:"POST",fullPath:"/v1/test_helpers/issuing/transactions/create_unlinked_refund"}),refund:tH({method:"POST",fullPath:"/v1/test_helpers/issuing/transactions/{transaction}/refund"})}),t$=Z.method,tB=Z.extend({retrieve:t$({method:"GET",fullPath:"/v1/financial_connections/transactions/{transaction}"}),list:t$({method:"GET",fullPath:"/v1/financial_connections/transactions",methodType:"list"})}),tW=Z.method,tK=Z.extend({retrieve:tW({method:"GET",fullPath:"/v1/issuing/transactions/{transaction}"}),update:tW({method:"POST",fullPath:"/v1/issuing/transactions/{transaction}"}),list:tW({method:"GET",fullPath:"/v1/issuing/transactions",methodType:"list"})}),tV=Z.method,tZ=Z.extend({retrieve:tV({method:"GET",fullPath:"/v1/tax/transactions/{transaction}"}),createFromCalculation:tV({method:"POST",fullPath:"/v1/tax/transactions/create_from_calculation"}),createReversal:tV({method:"POST",fullPath:"/v1/tax/transactions/create_reversal"}),listLineItems:tV({method:"GET",fullPath:"/v1/tax/transactions/{transaction}/line_items",methodType:"list"})}),tJ=Z.method,tQ=Z.extend({retrieve:tJ({method:"GET",fullPath:"/v1/treasury/transactions/{id}"}),list:tJ({method:"GET",fullPath:"/v1/treasury/transactions",methodType:"list"})}),tX=Z.method,tY=Z.extend({create:tX({method:"POST",fullPath:"/v1/radar/value_list_items"}),retrieve:tX({method:"GET",fullPath:"/v1/radar/value_list_items/{item}"}),list:tX({method:"GET",fullPath:"/v1/radar/value_list_items",methodType:"list"}),del:tX({method:"DELETE",fullPath:"/v1/radar/value_list_items/{item}"})}),t1=Z.method,t0=Z.extend({create:t1({method:"POST",fullPath:"/v1/radar/value_lists"}),retrieve:t1({method:"GET",fullPath:"/v1/radar/value_lists/{value_list}"}),update:t1({method:"POST",fullPath:"/v1/radar/value_lists/{value_list}"}),list:t1({method:"GET",fullPath:"/v1/radar/value_lists",methodType:"list"}),del:t1({method:"DELETE",fullPath:"/v1/radar/value_lists/{value_list}"})}),t2=Z.method,t5=Z.extend({retrieve:t2({method:"GET",fullPath:"/v1/identity/verification_reports/{report}"}),list:t2({method:"GET",fullPath:"/v1/identity/verification_reports",methodType:"list"})}),t8=Z.method,t3=Z.extend({create:t8({method:"POST",fullPath:"/v1/identity/verification_sessions"}),retrieve:t8({method:"GET",fullPath:"/v1/identity/verification_sessions/{session}"}),update:t8({method:"POST",fullPath:"/v1/identity/verification_sessions/{session}"}),list:t8({method:"GET",fullPath:"/v1/identity/verification_sessions",methodType:"list"}),cancel:t8({method:"POST",fullPath:"/v1/identity/verification_sessions/{session}/cancel"}),redact:t8({method:"POST",fullPath:"/v1/identity/verification_sessions/{session}/redact"})}),t9=Z.method,t6=Z.extend({create:t9({method:"POST",fullPath:"/v1/accounts"}),retrieve(e,...t){return"string"==typeof e?t9({method:"GET",fullPath:"/v1/accounts/{id}"}).apply(this,[e,...t]):(null==e&&[].shift.apply([e,...t]),t9({method:"GET",fullPath:"/v1/account"}).apply(this,[e,...t]))},update:t9({method:"POST",fullPath:"/v1/accounts/{account}"}),list:t9({method:"GET",fullPath:"/v1/accounts",methodType:"list"}),del:t9({method:"DELETE",fullPath:"/v1/accounts/{account}"}),createExternalAccount:t9({method:"POST",fullPath:"/v1/accounts/{account}/external_accounts"}),createLoginLink:t9({method:"POST",fullPath:"/v1/accounts/{account}/login_links"}),createPerson:t9({method:"POST",fullPath:"/v1/accounts/{account}/persons"}),deleteExternalAccount:t9({method:"DELETE",fullPath:"/v1/accounts/{account}/external_accounts/{id}"}),deletePerson:t9({method:"DELETE",fullPath:"/v1/accounts/{account}/persons/{person}"}),listCapabilities:t9({method:"GET",fullPath:"/v1/accounts/{account}/capabilities",methodType:"list"}),listExternalAccounts:t9({method:"GET",fullPath:"/v1/accounts/{account}/external_accounts",methodType:"list"}),listPersons:t9({method:"GET",fullPath:"/v1/accounts/{account}/persons",methodType:"list"}),reject:t9({method:"POST",fullPath:"/v1/accounts/{account}/reject"}),retrieveCurrent:t9({method:"GET",fullPath:"/v1/account"}
1),retrieveCapability:t9({method:"GET",fullPath:"/v1/accounts/{account}/capabilities/{capability}"}),retrieveExternalAccount:t9({method:"GET",fullPath:"/v1/accounts/{account}/external_accounts/{id}"}),retrievePerson:t9({method:"GET",fullPath:"/v1/accounts/{account}/persons/{person}"}),updateCapability:t9({method:"POST",fullPath:"/v1/accounts/{account}/capabilities/{capability}"}),updateExternalAccount:t9({method:"POST",fullPath:"/v1/accounts/{account}/external_accounts/{id}"}),updatePerson:t9({method:"POST",fullPath:"/v1/accounts/{account}/persons/{person}"})}),t4=Z.method,t7=Z.extend({create:t4({method:"POST",fullPath:"/v1/account_links"})}),re=Z.method,rt=Z.extend({create:re({method:"POST",fullPath:"/v1/account_sessions"})}),rr=Z.method,ro=Z.extend({create:rr({method:"POST",fullPath:"/v1/apple_pay/domains"}),retrieve:rr({method:"GET",fullPath:"/v1/apple_pay/domains/{domain}"}),list:rr({method:"GET",fullPath:"/v1/apple_pay/domains",methodType:"list"}),del:rr({method:"DELETE",fullPath:"/v1/apple_pay/domains/{domain}"})}),rn=Z.method,ri=Z.extend({retrieve:rn({method:"GET",fullPath:"/v1/application_fees/{id}"}),list:rn({method:"GET",fullPath:"/v1/application_fees",methodType:"list"}),createRefund:rn({method:"POST",fullPath:"/v1/application_fees/{id}/refunds"}),listRefunds:rn({method:"GET",fullPath:"/v1/application_fees/{id}/refunds",methodType:"list"}),retrieveRefund:rn({method:"GET",fullPath:"/v1/application_fees/{fee}/refunds/{id}"}),updateRefund:rn({method:"POST",fullPath:"/v1/application_fees/{fee}/refunds/{id}"})}),ra=Z.method,rs=Z.extend({retrieve:ra({method:"GET",fullPath:"/v1/balance"})}),rl=Z.method,ru=Z.extend({retrieve:rl({method:"GET",fullPath:"/v1/balance_transactions/{id}"}),list:rl({method:"GET",fullPath:"/v1/balance_transactions",methodType:"list"})}),rc=Z.method,rd=Z.extend({create:rc({method:"POST",fullPath:"/v1/charges"}),retrieve:rc({method:"GET",fullPath:"/v1/charges/{charge}"}),update:rc({method:"POST",fullPath:"/v1/charges/{charge}"}),list:rc({method:"GET",fullPath:"/v1/charges",methodType:"list"}),capture:rc({method:"POST",fullPath:"/v1/charges/{charge}/capture"}),search:rc({method:"GET",fullPath:"/v1/charges/search",methodType:"search"})}),rh=Z.method,rp=Z.extend({retrieve:rh({method:"GET",fullPath:"/v1/confirmation_tokens/{confirmation_token}"})}),rf=Z.method,rm=Z.extend({retrieve:rf({method:"GET",fullPath:"/v1/country_specs/{country}"}),list:rf({method:"GET",fullPath:"/v1/country_specs",methodType:"list"})}),ry=Z.method,rv=Z.extend({create:ry({method:"POST",fullPath:"/v1/coupons"}),retrieve:ry({method:"GET",fullPath:"/v1/coupons/{coupon}"}),update:ry({method:"POST",fullPath:"/v1/coupons/{coupon}"}),list:ry({method:"GET",fullPath:"/v1/coupons",methodType:"list"}),del:ry({method:"DELETE",fullPath:"/v1/coupons/{coupon}"})}),rP=Z.method,rg=Z.extend({create:rP({method:"POST",fullPath:"/v1/credit_notes"}),retrieve:rP({method:"GET",fullPath:"/v1/credit_notes/{id}"}),update:rP({method:"POST",fullPath:"/v1/credit_notes/{id}"}),list:rP({method:"GET",fullPath:"/v1/credit_notes",methodType:"list"}),listLineItems:rP({method:"GET",fullPath:"/v1/credit_notes/{credit_note}/lines",methodType:"list"}),listPreviewLineItems:rP({method:"GET",fullPath:"/v1/credit_notes/preview/lines",methodType:"list"}),preview:rP({method:"GET",fullPath:"/v1/credit_notes/preview"}),voidCreditNote:rP({method:"POST",fullPath:"/v1/credit_notes/{id}/void"})}),rT=Z.method,r_=Z.extend({create:rT({method:"POST",fullPath:"/v1/customer_sessions"})}),rE=Z.method,rb=Z.extend({create:rE({method:"POST",fullPath:"/v1/customers"}),retrieve:rE({method:"GET",fullPath:"/v1/customers/{customer}"}),update:rE({method:"POST",fullPath:"/v1/customers/{customer}"}),list:rE({method:"GET",fullPath:"/v1/customers",methodType:"list"}),del:rE({method:"DELETE",fullPath:"/v1/customers/{customer}"}),createBalanceTransaction:rE({method:"POST",fullPath:"/v1/customers/{customer}/balance_transactions"}),createFundingInstructions:rE({method:"POST",fullPath:"/v1/customers/{customer}/funding_instructions"}),createSource:rE({method:"POST",fullPath:"/v1/customers/{customer}/sources"}),createTaxId:rE({method:"POST",fullPath:"/v1/customers/{customer}/tax_ids"}),deleteDiscount:rE({method:"DELETE",fullPath:"/v1/customers/{customer}/discount"}),deleteSource:rE({method:"DELETE",fullPath:"/v1/customers/{customer}/sources/{id}"}),deleteTaxId:rE({method:"DELETE",fullPath:"/v1/customers/{customer}/tax_ids/{id}"}),listBalanceTransactions:rE({method:"GET",fullPath:"/v1/customers/{customer}/balance_transactions",methodType:"list"}),listCashBalanceTransactions:rE({method:"GET",fullPath:"/v1/customers/{customer}/cash_balance_transactions",methodType:"list"}),listPaymentMethods:rE({method:"GET",fullPath:"/v1/customers/{customer}/payment_methods",methodType:"list"}),listSources:rE({method:"GET",fullPath:"/v1/customers/{customer}/sources",methodType:"list"}),listTaxIds:rE({method:"GET",fullPath:"/v1/customers/{customer}/tax_ids",methodType:"list"}),retrieveBalanceTransaction:rE({method:"GET",fullPath:"/v1/customers/{customer}/balance_transactions/{transaction}"}),retrieveCashBalance:rE({method:"GET",fullPath:"/v1/customers/{customer}/cash_balance"}),retrieveCashBalanceTransaction:rE({method:"GET",fullPath:"/v1/customers/{customer}/cash_balance_transactions/{transaction}"}),retrievePaymentMethod:rE({method:"GET",fullPath:"/v1/customers/{customer}/payment_methods/{payment_method}"}),retrieveSource:rE({method:"GET",fullPath:"/v1/customers/{customer}/sources/{id}"}),retrieveTaxId:rE({method:"GET",fullPath:"/v1/customers/{customer}/tax_ids/{id}"}),search:rE({method:"GET",fullPath:"/v1/customers/search",methodType:"search"}),updateBalanceTransaction:rE({method:"POST",fullPath:"/v1/customers/{customer}/balance_transactions/{transaction}"}),updateCashBalance:rE({method:"POST",fullPath:"/v1/customers/{customer}/cash_balance"}),updateSource:rE({method:"POST",fullPath:"/v1/customers/{customer}/sources/{id}"}),verifySource:rE({method:"POST",fullPath:"/v1/customers/{customer}/sources/{id}/verify"})}),rS=Z.method,rO=Z.extend({retrieve:rS({method:"GET",fullPath:"/v1/disputes/{dispute}"}),update:rS({method:"POST",fullPath:"/v1/disputes/{dispute}"}),list:rS({method:"GET",fullPath:"/v1/disputes",methodType:"list"}),close:rS({method:"POST",fullPath:"/v1/disputes/{dispute}/close"})}),rx=Z.method,rw=Z.extend({create:rx({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:rx({method:"DELETE",fullPath:"/v1/ephemeral_keys/{key}"})}),rA=Z.method,rR=Z.extend({retrieve:rA({method:"GET",fullPath:"/v1/events/{id}"}),list:rA({method:"GET",fullPath:"/v1/events",methodType:"list"})}),rk=Z.method,rG=Z.extend({retrieve:rk({method:"GET",fullPath:"/v1/exchange_rates/{rate_id}"}),list:rk({method:"GET",fullPath:"/v1/exchange_rates",methodType:"list"})}),rC=Z.method,rj=Z.extend({create:rC({method:"POST",fullPath:"/v1/file_links"}),retrieve:rC({method:"GET",fullPath:"/v1/file_links/{link}"}),update:rC({method:"POST",fullPath:"/v1/file_links/{link}"}),list:rC({method:"GET",fullPath:"/v1/file_links",methodType:"list"})}),rI=(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.keys(e).forEach(n=>{let i=e[n],a=o?`${o}[${n}]`:n;if(function(e){let t=typeof e;return("function"===t||"object"===t)&&!!e}(i)){if(!(i instanceof Uint8Array)&&!Object.prototype.hasOwnProperty.call(i,"data"))return r(i,a);t[a]=i}else t[a]=String(i)})};return r(e,null),t}(t);for(let e in u){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},rD=Z.method,rM=Z.extend({create:rD({method:"POST",fullPath:"/v1/files",headers:{"Content-Type":"multipart/form-data"},host:"files.stripe.com"}),retrieve:rD({method:"GET",fullPath:"/v1/files/{file}"}),list:rD({method:"GET",fullPath:"/v1/files",methodType:"list"}),requestDataProcessor:function(e,t,r,o){if(t=t||{},"POST"!==e)return o(null,M(t));this._stripe._platformFunctions.tryBufferData(t).then(t=>o(null,rI(e,t,r))).catch(e=>o(e,null))}}),rN=Z.method,rL=Z.extend({create:rN({method:"POST",fullPath:"/v1/invoiceitems"}),retrieve:rN({method:"GET",fullPath:"/v1/invoiceitems/{invoiceitem}"}),update:rN({method:"POST",fullPath:"/v1/invoiceitems/{invoiceitem}"}),list:rN({method:"GET",fullPath:"/v1/invoiceitems",methodType:"list"}),del:rN({method:"DELETE",fullPath:"/v1/invoiceitems/{invoiceitem}"})}),rF=Z.method,rq=Z.extend({create:rF({method:"POST",fullPath:"/v1/invoices"}),retrieve:rF({method:"GET",fullPath:"/v1/invoices/{invoice}"}),update:rF({method:"POST",fullPath:"/v1/invoices/{invoice}"}),list:rF({method:"GET",fullPath:"/v1/invoices",methodType:"list"}),del:rF({method:"DELETE",fullPath:"/v1/invoices/{invoice}"}),finalizeInvoice:rF({method:"POST",fullPath:"/v1/invoices/{invoice}/finalize"}),listLineItems:rF({method:"GET",fullPath:"/v1/invoices/{invoice}/lines",methodType:"list"}),listUpcomingLines:rF({method:"GET",fullPath:"/v1/invoices/upcoming/lines",methodType:"list"}),markUncollectible:rF({method:"POST",fullPath:"/v1/invoices/{invoice}/mark_uncollectible"}),pay:rF({method:"POST",fullPath:"/v1/invoices/{invoice}/pay"}),retrieveUpcoming:rF({method:"GET",fullPath:"/v1/invoices/upcoming"}),search:rF({method:"GET",fullPath:"/v1/invoices/search",methodType:"search"}),sendInvoice:rF({method:"POST",fullPath:"/v1/invoices/{invoice}/send"}),updateLineItem:rF({method:"POST",fullPath:"/v1/invoices/{invoice}/lines/{line_item_id}"}),voidInvoice:rF({method:"POST",fullPath:"/v1/invoices/{invoice}/void"})}),rU=Z.method,rH=Z.extend({retrieve:rU({method:"GET",fullPath:"/v1/mandates/{mandate}"})}),rz=Z.method,r$="connect.stripe.com",rB=Z.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://${r$}/${r}?${M(e)}`},token:rz({method:"POST",path:"oauth/token",host:r$}),deauthorize(e,...t){return e.client_id||(e.client_id=this._stripe.getClientId()),rz({method:"POST",path:"oauth/deauthorize",host:r$}).apply(this,[e,...t])}}),rW=Z.method,rK=Z.extend({create:rW({method:"POST",fullPath:"/v1/payment_intents"}),retrieve:rW({method:"GET",fullPath:"/v1/payment_intents/{intent}"}),update:rW({method:"POST",fullPath:"/v1/payment_intents/{intent}"}),list:rW({method:"GET",fullPath:"/v1/payment_intents",methodType:"list"}),applyCustomerBalance:rW({method:"POST",fullPath:"/v1/payment_intents/{intent}/apply_customer_balance"}),cancel:rW({method:"POST",fullPath:"/v1/payment_intents/{intent}/cancel"}),capture:rW({method:"POST",fullPath:"/v1/payment_intents/{intent}/capture"}),confirm:rW({method:"POST",fullPath:"/v1/payment_intents/{intent}/confirm"}),incrementAuthorization:rW({method:"POST",fullPath:"/v1/payment_intents/{intent}/increment_authorization"}),search:rW({method:"GET",fullPath:"/v1/payment_intents/search",methodType:"search"}),verifyMicrodeposits:rW({method:"POST",fullPath:"/v1/payment_intents/{intent}/verify_microdeposits"})}),rV=Z.method,rZ=Z.extend({create:rV({method:"POST",fullPath:"/v1/payment_links"}),retrieve:rV({method:"GET",fullPath:"/v1/payment_links/{payment_link}"}),update:rV({method:"POST",fullPath:"/v1/payment_links/{payment_link}"}),list:rV({method:"GET",fullPath:"/v1/payment_links",methodType:"list"}),listLineItems:rV({method:"GET",fullPath:"/v1/payment_links/{payment_link}/line_items",methodType:"list"})}),rJ=Z.method,rQ=Z.extend({create:rJ({method:"POST",fullPath:"/v1/payment_method_configurations"}),retrieve:rJ({method:"GET",fullPath:"/v1/payment_method_configurations/{configuration}"}),update:rJ({method:"POST",fullPath:"/v1/payment_method_configurations/{configuration}"}),list:rJ({method:"GET",fullPath:"/v1/payment_method_configurations",methodType:"list"})}),rX=Z.method,rY=Z.extend({create:rX({method:"POST",fullPath:"/v1/payment_method_domains"}),retrieve:rX({method:"GET",fullPath:"/v1/payment_method_domains/{payment_method_domain}"}),update:rX({method:"POST",fullPath:"/v1/payment_method_domains/{payment_method_domain}"}),list:rX({method:"GET",fullPath:"/v1/payment_method_domains",methodType:"list"}),validate:rX({method:"POST",fullPath:"/v1/payment_method_domains/{payment_method_domain}/validate"})}),r1=Z.method,r0=Z.extend({create:r1({method:"POST",fullPath:"/v1/payment_methods"}),retrieve:r1({method:"GET",fullPath:"/v1/payment_methods/{payment_method}"}),update:r1({method:"POST",fullPath:"/v1/payment_methods/{payment_method}"}),list:r1({method:"GET",fullPath:"/v1/payment_methods",methodType:"list"}),attach:r1({method:"POST",fullPath:"/v1/payment_methods/{payment_method}/attach"}),detach:r1({method:"POST",fullPath:"/v1/payment_methods/{payment_method}/detach"})}),r2=Z.method,r5=Z.extend({create:r2({method:"POST",fullPath:"/v1/payouts"}),retrieve:r2({method:"GET",fullPath:"/v1/payouts/{payout}"}),update:r2({method:"POST",fullPath:"/v1/payouts/{payout}"}),list:r2({method:"GET",fullPath:"/v1/payouts",methodType:"list"}),cancel:r2({method:"POST",fullPath:"/v1/payouts/{payout}/cancel"}),reverse:r2({method:"POST",fullPath:"/v1/payouts/{payout}/reverse"})}),r8=Z.method,r3=Z.extend({create:r8({method:"POST",fullPath:"/v1/plans"}),retrieve:r8({method:"GET",fullPath:"/v1/plans/{plan}"}),update:r8({method:"POST",fullPath:"/v1/plans/{plan}"}),list:r8({method:"GET",fullPath:"/v1/plans",methodType:"list"}),del:r8({method:"DELETE",fullPath:"/v1/plans/{plan}"})}),r9=Z.method,r6=Z.extend({create:r9({method:"POST",fullPath:"/v1/prices"}),retrieve:r9({method:"GET",fullPath:"/v1/prices/{price}"}),update:r9({method:"POST",fullPath:"/v1/prices/{price}"}),list:r9({method:"GET",fullPath:"/v1/prices",methodType:"list"}),search:r9({method:"GET",fullPath:"/v1/prices/search",methodType:"search"})}),r4=Z.method,r7=Z.extend({create:r4({method:"POST",fullPath:"/v1/products"}),retrieve:r4({method:"GET",fullPath:"/v1/products/{id}"}),update:r4({method:"POST",fullPath:"/v1/products/{id}"}),list:r4({method:"GET",fullPath:"/v1/products",methodType:"list"}),del:r4({method:"DELETE",fullPath:"/v1/products/{id}"}),createFeature:r4({method:"POST",fullPath:"/v1/products/{product}/features"}),deleteFeature:r4({method:"DELETE",fullPath:"/v1/products/{product}/features/{id}"}),listFeatures:r4({method:"GET",fullPath:"/v1/products/{product}/features",methodType:"list"}),retrieveFeature:r4({method:"GET",fullPath:"/v1/products/{product}/features/{id}"}),search:r4({method:"GET",fullPath:"/v1/products/search",methodType:"search"})}),oe=Z.method,ot=Z.extend({create:oe({method:"POST",fullPath:"/v1/promotion_codes"}),retrieve:oe({method:"GET",fullPath:"/v1/promotion_codes/{promotion_code}"}),update:oe({method:"POST",fullPath:"/v1/promotion_codes/{promotion_code}"}),list:oe({method:"GET",fullPath:"/v1/promotion_codes",methodType:"list"})}),or=Z.method,oo=Z.extend({create:or({method:"POST",fullPath:"/v1/quotes"}),retrieve:or({method:"GET",fullPath:"/v1/quotes/{quote}"}),update:or({method:"POST",fullPath:"/v1/quotes/{quote}"}),list:or({method:"GET",fullPath:"/v1/quotes",methodType:"list"}),accept:or({method:"POST",fullPath:"/v1/quotes/{quote}/accept"}),cancel:or({method:"POST",fullPath:"/v1/quotes/{quote}/cancel"}),finalizeQuote:or({method:"POST",fullPath:"/v1/quotes/{quote}/finalize"}),listComputedUpfrontLineItems:or({method:"GET",fullPath:"/v1/quotes/{quote}/computed_upfront_line_items",methodType:"list"}),listLineItems:or({method:"GET",fullPath:"/v1/quotes/{quote}/line_items",methodType:"list"}),pdf:or({method:"GET",fullPath:"/v1/quotes/{quote}/pdf",host:"files.stripe.com",streaming:!0})}),on=Z.method,oi=Z.extend({create:on({method:"POST",fullPath:"/v1/refunds"}),retrieve:on({method:"GET",fullPath:"/v1/refunds/{refund}"}),update:on({method:"POST",fullPath:"/v1/refunds/{refund}"}),list:on({method:"GET",fullPath:"/v1/refunds",methodType:"list"}),cancel:on({method:"POST",fullPath:"/v1/refunds/{refund}/cancel"})}),oa=Z.method,os=Z.extend({retrieve:oa({method:"GET",fullPath:"/v1/reviews/{review}"}),list:oa({method:"GET",fullPath:"/v1/reviews",methodType:"list"}),approve:oa({method:"POST",fullPath:"/v1/reviews/{review}/approve"})}),ol=Z.method,ou=Z.extend({list:ol({method:"GET",fullPath:"/v1/setup_attempts",methodType:"list"})}),oc=Z.method,od=Z.extend({create:oc({method:"POST",fullPath:"/v1/setup_intents"}),retrieve:oc({method:"GET",fullPath:"/v1/setup_intents/{intent}"}),update:oc({method:"POST",fullPath:"/v1/setup_intents/{intent}"}),list:oc({method:"GET",fullPath:"/v1/setup_intents",methodType:"list"}),cancel:oc({method:"POST",fullPath:"/v1/setup_intents/{intent}/cancel"}),confirm:oc({method:"POST",fullPath:"/v1/setup_intents/{intent}/confirm"}),verifyMicrodeposits:oc({method:"POST",fullPath:"/v1/setup_intents/{intent}/verify_microdeposits"})}),oh=Z.method,op=Z.extend({create:oh({method:"POST",fullPath:"/v1/shipping_rates"}),retrieve:oh({method:"GET",fullPath:"/v1/shipping_rates/{shipping_rate_token}"}),update:oh({method:"POST",fullPath:"/v1/shipping_rates/{shipping_rate_token}"}),list:oh({method:"GET",fullPath:"/v1/shipping_rates",methodType:"list"})}),of=Z.method,om=Z.extend({create:of({method:"POST",fullPath:"/v1/sources"}),retrieve:of({method:"GET",fullPath:"/v1/sources/{source}"}),update:of({method:"POST",fullPath:"/v1/sources/{source}"}),listSourceTransactions:of({method:"GET",fullPath:"/v1/sources/{source}/source_transactions",methodType:"list"}),verify:of({method:"POST",fullPath:"/v1/sources/{source}/verify"})}),oy=Z.method,ov=Z.extend({create:oy({method:"POST",fullPath:"/v1/subscription_items"}),retrieve:oy({method:"GET",fullPath:"/v1/subscription_items/{item}"}),update:oy({method:"POST",fullPath:"/v1/subscription_items/{item}"}),list:oy({method:"GET",fullPath:"/v1/subscription_items",methodType:"list"}),del:oy({method:"DELETE",fullPath:"/v1/subscription_items/{item}"}),createUsageRecord:oy({method:"POST",fullPath:"/v1/subscription_items/{subscription_item}/usage_records"}),listUsageRecordSummaries:oy({method:"GET",fullPath:"/v1/subscription_items/{subscription_item}/usage_record_summaries",methodType:"list"})}),oP=Z.method,og=Z.extend({create:oP({method:"POST",fullPath:"/v1/subscription_schedules"}),retrieve:oP({method:"GET",fullPath:"/v1/subscription_schedules/{schedule}"}),update:oP({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}"}),list:oP({method:"GET",fullPath:"/v1/subscription_schedules",methodType:"list"}),cancel:oP({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}/cancel"}),release:oP({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}/release"})}),oT=Z.method,o_=Z.extend({create:oT({method:"POST",fullPath:"/v1/subscriptions"}),retrieve:oT({method:"GET",fullPath:"/v1/subscriptions/{subscription_exposed_id}"}),update:oT({method:"POST",fullPath:"/v1/subscriptions/{subscription_exposed_id}"}),list:oT({method:"GET",fullPath:"/v1/subscriptions",methodType:"list"}),cancel:oT({method:"DELETE",fullPath:"/v1/subscriptions/{subscription_exposed_id}"}),deleteDiscount:oT({method:"DELETE",fullPath:"/v1/subscriptions/{subscription_exposed_id}/discount"}),resume:oT({method:"POST",fullPath:"/v1/subscriptions/{subscription}/resume"}),search:oT({method:"GET",fullPath:"/v1/subscriptions/search",methodType:"search"})}),oE=Z.method,ob=Z.extend({retrieve:oE({method:"GET",fullPath:"/v1/tax_codes/{id}"}),list:oE({method:"GET",fullPath:"/v1/tax_codes",methodType:"list"})}),oS=Z.method,oO=Z.extend({create:oS({method:"POST",fullPath:"/v1/tax_ids"}),retrieve:oS({method:"GET",fullPath:"/v1/tax_ids/{id}"}),list:oS({method:"GET",fullPath:"/v1/tax_ids",methodType:"list"}),del:oS({method:"DELETE",fullPath:"/v1/tax_ids/{id}"})}),ox=Z.method,ow=Z.extend({create:ox({method:"POST",fullPath:"/v1/tax_rates"}),retrieve:ox({method:"GET",fullPath:"/v1/tax_rates/{tax_rate}"}),update:ox({method:"POST",fullPath:"/v1/tax_rates/{tax_rate}"}),list:ox({method:"GET",fullPath:"/v1/tax_rates",methodType:"list"})}),oA=Z.method,oR=Z.extend({create:oA({method:"POST",fullPath:"/v1/tokens"}),retrieve:oA({method:"GET",fullPath:"/v1/tokens/{token}"})}),ok=Z.method,oG=Z.extend({create:ok({method:"POST",fullPath:"/v1/topups"}),retrieve:ok({method:"GET",fullPath:"/v1/topups/{topup}"}),update:ok({method:"POST",fullPath:"/v1/topups/{topup}"}),list:ok({method:"GET",fullPath:"/v1/topups",methodType:"list"}),cancel:ok({method:"POST",fullPath:"/v1/topups/{topup}/cancel"})}),oC=Z.method,oj=Z.extend({create:oC({method:"POST",fullPath:"/v1/transfers"}),retrieve:oC({method:"GET",fullPath:"/v1/transfers/{transfer}"}),update:oC({method:"POST",fullPath:"/v1/transfers/{transfer}"}),list:oC({method:"GET",fullPath:"/v1/transfers",methodType:"list"}),createReversal:oC({method:"POST",fullPath:"/v1/transfers/{id}/reversals"}),listReversals:oC({method:"GET",fullPath:"/v1/transfers/{id}/reversals",methodType:"list"}
1),retrieveReversal:oC({method:"GET",fullPath:"/v1/transfers/{transfer}/reversals/{id}"}),updateReversal:oC({method:"POST",fullPath:"/v1/transfers/{transfer}/reversals/{id}"})}),oI=Z.method,oD=Z.extend({create:oI({method:"POST",fullPath:"/v1/webhook_endpoints"}),retrieve:oI({method:"GET",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"}),update:oI({method:"POST",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"}),list:oI({method:"GET",fullPath:"/v1/webhook_endpoints",methodType:"list"}),del:oI({method:"DELETE",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"})}),oM=G("apps",{Secrets:tO}),oN=G("billing",{MeterEventAdjustments:eU,MeterEvents:ez,Meters:eB}),oL=G("billingPortal",{Configurations:ep,Sessions:tw}),oF=G("checkout",{Sessions:tR}),oq=G("climate",{Orders:eK,Products:e7,Suppliers:tD}),oU=G("entitlements",{ActiveEntitlements:Y,Features:eG}),oH=G("financialConnections",{Accounts:Q,Sessions:tG,Transactions:tB}),oz=G("forwarding",{Requests:t_}),o$=G("identity",{VerificationReports:t5,VerificationSessions:t3}),oB=G("issuing",{Authorizations:eo,Cardholders:es,Cards:ed,Disputes:ew,PersonalizationDesigns:e3,PhysicalBundles:e6,Tokens:tF,Transactions:tK}),oW=G("radar",{EarlyFraudWarnings:eR,ValueListItems:tY,ValueLists:t0}),oK=G("reporting",{ReportRuns:tv,ReportTypes:tg}),oV=G("sigma",{ScheduledQueryRuns:tb}),oZ=G("tax",{Calculations:ei,Registrations:tm,Settings:tj,Transactions:tZ}),oJ=G("terminal",{Configurations:em,ConnectionTokens:eg,Locations:eF,Readers:to}),oQ=G("testHelpers",{ConfirmationTokens:ev,Customers:eb,Refunds:tp,TestClocks:tN,Issuing:G("issuing",{Authorizations:et,Cards:eu,PersonalizationDesigns:e5,Transactions:tz}),Terminal:G("terminal",{Readers:tt}),Treasury:G("treasury",{InboundTransfers:eD,OutboundPayments:eZ,OutboundTransfers:eY,ReceivedCredits:ti,ReceivedDebits:tu})}),oX=G("treasury",{CreditReversals:e_,DebitReversals:eO,FinancialAccounts:ej,InboundTransfers:eN,OutboundPayments:eQ,OutboundTransfers:e0,ReceivedCredits:ts,ReceivedDebits:td,TransactionEntries:tU,Transactions:tQ});class oY{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 F({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){return o=>{let n=o.getHeaders(),i=this._getRequestId(n),a=o.getStatusCode(),s=this._makeResponseEvent(e,a,n);this._stripe._emitter.emit("response",s),o.toJSON().then(e=>{if(e.error)throw"string"==typeof e.error&&(e.error={type:e.error,message:e.error_description}),e.error.headers=n,e.error.statusCode=a,e.error.requestId=i,401===a?new E(e.error):403===a?new b(e.error):429===a?new S(e.error):P.generate(e.error);return e},e=>{throw new _({message:"Invalid JSON received from the Stripe API",exception:e,requestId:n["request-id"]})}).then(e=>{this._recordRequestMetrics(i,s.elapsed,t);let a=o.getRawResponse();this._addHeadersDirectlyToObject(a,n),Object.defineProperty(e,"lastResponse",{enumerable:!1,writable:!1,value:a}),r(null,e)},e=>r(e,null))}}static _generateConnectionErrorMessage(e){return`An error occurred with our connection to Stripe.${e>0?` Request was retried ${e} times.`:""}`}static _shouldRetry(e,t,r,o){return!!(o&&0===t&&i.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(e-1,2),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){let r=this._getMaxNetworkRetries(t);return"POST"===e&&r>
10?`stripe-node-retry-${this._stripe._platformFunctions.uuid4()}`:null}_makeHeaders(e,t,r,o,n,i,a){let s={Authorization:e?`Bearer ${e}`:this._stripe.getApiField("auth"),Accept:"application/json","Content-Type":"application/x-www-form-urlencoded","User-Agent":this._getUserAgentString(),"X-Stripe-Client-User-Agent":o,"X-Stripe-Client-Telemetry":this._getTelemetryHeader(),"Stripe-Version":r,"Stripe-Account":this._stripe.getApiField("stripeAccount"),"Idempotency-Key":this._defaultIdempotencyKey(n,a)},l="POST"==n||"PUT"==n||"PATCH"==n;return(l||t)&&(l||U(`${n} method had non-zero contentLength but no payload is expected for this verb`),s["Content-Length"]=t),Object.assign(F(s),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(){let e=this._stripe.getConstant("PACKAGE_VERSION"),t=this._stripe._appInfo?this._stripe.getAppInfoAsString():"";return`Stripe/v1 NodeBindings/${e} ${t}`.trim()}_getTelemetryHeader(){if(this._stripe.getTelemetryEnabled()&&this._stripe._prevRequestMetrics.length>0)return JSON.stringify({last_request_metrics:this._stripe._prevRequestMetrics.shift()})}_recordRequestMetrics(e,t,r){if(this._stripe.getTelemetryEnabled()&&e){if(this._stripe._prevRequestMetrics.length>this._maxBufferedRequestMetric)U("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)}}}_request(e,t,r,o,n,a={},s=[],l,u=null){let c;let d=(e,t,r,o,n)=>setTimeout(e,this._getSleepTimeInMS(o,n),t,r,o+1),h=(o,n,u)=>{let p=a.settings&&a.settings.timeout&&Number.isInteger(a.settings.timeout)&&a.settings.timeout>=0?a.settings.timeout:this._stripe.getApiField("timeout"),f=this._stripe.getApiField("httpClient").makeRequest(t||this._stripe.getApiField("host"),this._stripe.getApiField("port"),r,e,n,c,this._stripe.getApiField("protocol"),p),m=Date.now(),y=F({api_version:o,account:n["Stripe-Account"],idempotency_key:n["Idempotency-Key"],method:e,path:r,request_start_time:m}),v=u||0,P=this._getMaxNetworkRetries(a.settings||{});this._stripe._emitter.emit("request",y),f.then(e=>oY._shouldRetry(e,v,P)?d(h,o,n,v,e.getHeaders()["retry-after"]):a.streaming&&400>e.getStatusCode()?this._streamingResponseHandler(y,s,l)(e):this._jsonResponseHandler(y,s,l)(e)).catch(e=>oY._shouldRetry(null,v,P,e)?d(h,o,n,v,null):l(new O({message:e.code&&e.code===i.TIMEOUT_ERROR_CODE?`Request aborted due to timeout being reached (${p}ms)`:oY._generateConnectionErrorMessage(v),detail:e})))},p=(t,r)=>{if(t)return l(t);c=r,this._stripe.getClientUserAgent(t=>{var r,o;let i=this._stripe.getApiField("version"),s=this._makeHeaders(n,c.length,i,t,e,null!==(r=a.headers)&&void 0!==r?r:null,null!==(o=a.settings)&&void 0!==o?o:{});h(i,s,0)})};u?u(e,o,a.headers,p):p(null,M(o||{}))}}function o1(e){let t={DEFAULT_TOLERANCE:300,signature:null,constructEvent(e,r,o,n,i,a){try{this.signature.verifyHeader(e,r,o,n||t.DEFAULT_TOLERANCE,i,a)}catch(e){throw e instanceof c&&(e.message+="\nUse `await constructEventAsync(...)` instead of `constructEvent(...)`"),e}return e instanceof Uint8Array?JSON.parse(new TextDecoder("utf8").decode(e)):JSON.parse(e)},async constructEventAsync(e,r,o,n,i,a){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){if(!e)throw new P({message:"Options are required"});return e.timestamp=Math.floor(e.timestamp)||Math.floor(Date.now()/1e3),e.scheme=e.scheme||r.EXPECTED_SCHEME,e.cryptoProvider=e.cryptoProvider||s(),e.signature=e.signature||e.cryptoProvider.computeHMACSignature(e.timestamp+"."+e.payload,e.secret),["t="+e.timestamp,e.scheme+"="+e.signature].join(",")}},r={EXPECTED_SCHEME:"v1",verifyHeader(e,t,r,a,l,u){let{decodedHeader:c,decodedPayload:d,details:h,suspectPayloadType:p}=n(e,t,this.EXPECTED_SCHEME),f=/\s/.test(r),m=(l=l||s()).computeHMACSignature(o(d,h),r);return i(d,c,h,m,a,p,f,u),!0},async verifyHeaderAsync(e,t,r,a,l,u){let{decodedHeader:c,decodedPayload:d,details:h,suspectPayloadType:p}=n(e,t,this.EXPECTED_SCHEME),f=/\s/.test(r);l=l||s();let m=await l.computeHMACSignatureAsync(o(d,h),r);return i(d,c,h,m,a,p,f,u)}};function o(e,t){return`${t.timestamp}.${e}`}function n(e,t,r){if(!e)throw new x(t,e,{message:"No webhook payload was provided."});let o="string"!=typeof e&&!(e instanceof Uint8Array),n=new TextDecoder("utf8"),i=e instanceof Uint8Array?n.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 x(t,e,{message:"No stripe-signature header value was provided."});let a=t instanceof Uint8Array?n.decode(t):t,s="string"!=typeof a?null:a.split(",").reduce((e,t)=>
1{let o=t.split("=");return"t"===o[0]&&(e.timestamp=parseInt(o[1],10)),o[0]===r&&e.signatures.push(o[1]),e},{timestamp:-1,signatures:[]});if(!s||-1===s.timestamp)throw new x(a,i,{message:"Unable to extract timestamp and signatures from header"});if(!s.signatures.length)throw new x(a,i,{message:"No signatures found with expected scheme"});return{decodedPayload:i,decodedHeader:a,details:s,suspectPayloadType:o}}function i(t,r,o,n,i,a,s,l){let u=!!o.signatures.filter(e.secureCompare.bind(e,n)).length,c="\nLearn more about webhook signing and explore webhook integration examples for various frameworks at https://github.com/stripe/stripe-node#webhook-signing",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 x(r,t,{message:"Webhook payload must be provided as a string or a Buffer (https://nodejs.org/api/buffer.html) instance representing the _raw_ request body.Payload was provided as a parsed JavaScript object instead. \nSignature verification is impossible without access to the original signed material. \n"+c+"\n"+d});throw new x(r,t,{message:"No signatures found matching the expected signature for payload. Are you passing the raw request body you received from Stripe? \n If a webhook request is being forwarded by a third-party tool, ensure that the exact request body, including JSON formatting and new line style, is preserved.\n"+c+"\n"+d})}let h=Math.floor(("number"==typeof l?l:Date.now())/1e3)-o.timestamp;if(i>0&&h>i)throw new x(r,t,{message:"Timestamp outside the tolerance zone"});return!0}let a=null;function s(){return a||(a=e.createDefaultCryptoProvider()),a}return t.signature=r,t}let o0="api.stripe.com",o2="/v1/",o5="2023-10-16",o8=["name","version","url","partner_id"],o3=["apiVersion","typescript","maxNetworkRetries","httpAgent","httpClient","timeout","host","port","protocol","telemetry","appInfo","stripeAccount"],o9=e=>new oY(e,Z.MAX_BUFFERED_REQUEST_METRICS);!function(e,t=o9){function r(t=e){return o1(t)}function s(n,i={}){if(!(this instanceof s))return new s(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=s.PACKAGE_VERSION,this.on=this._emitter.on.bind(this._emitter),this.once=this._emitter.once.bind(this._emitter),this.off=this._emitter.removeListener.bind(this._emitter);let l=a.httpAgent||null;this._api={auth:null,host:a.host||o0,port:a.port||"443",protocol:a.protocol||"https",basePath:o2,version:a.apiVersion||o5,timeout:H("timeout",a.timeout,8e4),maxNetworkRetries:H("maxNetworkRetries",a.maxNetworkRetries,1),agent:l,httpClient:a.httpClient||(l?this._platformFunctions.createNodeHttpClient(l):this._platformFunctions.createDefaultHttpClient()),dev:!1,stripeAccount:a.stripeAccount||null};let u=a.typescript||!1;u!==s.USER_AGENT.typescript&&(s.USER_AGENT.typescript=u),a.appInfo&&this._setAppInfo(a.appInfo),this._prepResources(),this._setApiKey(n),this.errors=o,this.webhooks=r(),this._prevRequestMetrics=[],this._enableTelemetry=!1!==a.telemetry,this._requestSender=t(this),this.StripeResource=s.StripeResource}s.PACKAGE_VERSION="14.25.0",s.USER_AGENT=Object.assign({bindings_version:s.PACKAGE_VERSION,lang:"node",publisher:"stripe",uname:null,typescript:!1},void 0===j?{}:{lang_version:j.version,platform:j.platform}),s.StripeResource=Z,s.resources=n,s.HttpClient=i,s.HttpClientResponse=a,s.CryptoProvider=u,s.webhooks=Object.assign(r,o1(e)),s.errors=o,s.createNodeHttpClient=e.createNodeHttpClient,s.createFetchHttpClient=e.createFetchHttpClient,s.createNodeCryptoProvider=e.createNodeCryptoProvider,s.createSubtleCryptoProvider=e.createSubtleCryptoProvider,s.prototype={_appInfo:void 0,on:null,off:null,once:null,VERSION:null,StripeResource:null,webhooks:null,errors:null,_api:null,_prevRequestMetrics:null,_emitter:null,_enableTelemetry:null,_requestSender:null,_platformFunctions:null,_setApiKey(e){e&&this._setApiField("auth",`Bearer ${e}`)},_setAppInfo(e){if(e&&"object"!=typeof e)throw Error("AppInfo must be an object.");if(e&&!e.name)throw Error("AppInfo.name is required");e=e||{},this._appInfo=o8.reduce((t,r)=>("string"==typeof e[r]&&((t=t||{})[r]=e[r]),t),void 0)},_setApiField(e,t){this._api[e]=t},getApiField(e){return this._api[e]},setClientId(e){this._clientId=e},getClientId(){return this._clientId},getConstant:e=>{switch(e){case"DEFAULT_HOST":return o0;case"DEFAULT_PORT":return"443";case"DEFAULT_BASE_PATH":return o2;case"DEFAULT_API_VERSION":return o5;case"DEFAULT_TIMEOUT":return 8e4;case"MAX_NETWORK_RETRY_DELAY_SEC":return 2;case"INITIAL_NETWORK_RETRY_DELAY_SEC":return .5}return s[e]},getMaxNetworkRetries(){return this.getApiField("maxNetworkRetries")},_setApiNumberField(e,t,r){let o=H(e,t,r);this._setApiField(e,o)},getMaxNetworkRetryDelay:()=>2,getInitialNetworkRetryDelay:()=>.5,getClientUserAgent(e){return this.getClientUserAgentSeeded(s.USER_AGENT,e)},getClientUserAgentSeeded(e,t){this._platformFunctions.getUname().then(r=>{var o;let n={};for(let t in e)n[t]=encodeURIComponent(null!==(o=e[t])&&void 0!==o?o:"null");n.uname=encodeURIComponent(r||"UNKNOWN");let i=this.getApiField("httpClient");
1i&&(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)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=>!o3.includes(e)).length>0)throw Error(`Config object may only contain the following: ${o3.join(", ")}`);return e}}}(new y)}}]);
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.