PageSourceSearch

https://www.swishr.co.uk/_next/static/chunks/8228-6069b644a2ebae04.js

js swishr.co.uk collected 2026-09-24 15:15:11 UTC 128,181 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8228],{66598:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(87462),o=n(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},i=n(44192),s=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},57307:function(e,t,n){"use strict";n.d(t,{Z:function(){return q}});var r=n(67294),o=n(45243),a=n(31430),i=n(69156),s=n(7650),l=n(89287),c=n(93967),u=n.n(c),d=n(16819),h=n(80672),m=n(89157),p=n(84476),f=n(17399),v=n(46368),P=n(30641),y=n(52317);let g=(e,t,n,r,o)=>({background:e,border:"".concat((0,v.bf)(r.lineWidth)," ").concat(r.lineType," ").concat(t),["".concat(o,"-icon")]:{color:n}}),T=e=>{let{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:a,fontSizeLG:i,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:d,colorTextHeading:h,withDescriptionPadding:m,defaultPadding:p}=e;return{[t]:Object.assign(Object.assign({},(0,P.Wf)(e)),{position:"relative",display:"flex",alignItems:"center",padding:p,wordWrap:"break-word",borderRadius:l,["&".concat(t,"-rtl")]:{direction:"rtl"},["".concat(t,"-content")]:{flex:1,minWidth:0},["".concat(t,"-icon")]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:s},"&-message":{color:h},["&".concat(t,"-motion-leave")]:{overflow:"hidden",opacity:1,transition:"max-height ".concat(n," ").concat(c,", opacity ").concat(n," ").concat(c,",\n        padding-top ").concat(n," ").concat(c,", padding-bottom ").concat(n," ").concat(c,",\n        margin-bottom ").concat(n," ").concat(c)},["&".concat(t,"-motion-leave-active")]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),["".concat(t,"-with-description")]:{alignItems:"flex-start",padding:m,["".concat(t,"-icon")]:{marginInlineEnd:o,fontSize:u,lineHeight:0},["".concat(t,"-message")]:{display:"block",marginBottom:r,color:h,fontSize:i},["".concat(t,"-description")]:{display:"block",color:d}},["".concat(t,"-banner")]:{marginBottom:0,border:"0 !important",borderRadius:0}}},_=e=>{let{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:a,colorWarningBorder:i,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:h,colorInfoBg:m}=e;return{[t]:{"&-success":g(o,r,n,e,t),"&-info":g(m,h,d,e,t),"&-warning":g(s,i,a,e,t),"&-error":Object.assign(Object.assign({},g(u,c,l,e,t)),{["".concat(t,"-description > pre")]:{margin:0,padding:0}})}}},E=e=>{let{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:a,colorIcon:i,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:o},["".concat(t,"-close-icon")]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:a,lineHeight:(0,v.bf)(a),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",["".concat(n,"-close")]:{color:i,transition:"color ".concat(r),"&:hover":{color:s}}},"&-close-text":{color:i,transition:"color ".concat(r),"&:hover":{color:s}}}}};var b=(0,y.I$)("Alert",e=>[T(e),_(e),E(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:"".concat(e.paddingContentVerticalSM,"px ").concat(12,"px"),withDescriptionPadding:"".concat(e.paddingMD,"px ").concat(e.paddingContentHorizontalLG,"px")})),S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let O={success:o.Z,info:l.Z,error:a.Z,warning:s.Z},x=e=>{let{icon:t,prefixCls:n,type:o}=e,a=O[o]||null;return t?(0,p.wm)(t,r.createElement("span",{className:"".concat(n,"-icon")},t),()=>({className:u()("".concat(n,"-icon"),t.props.className)})):r.createElement(a,{className:"".concat(n,"-icon")})},w=e=>{let{isClosable:t,prefixCls:n,closeIcon:o,handleClose:a,ariaProps:s}=e,l=!0===o||void 0===o?r.createElement(i.Z,null):o;return t?r.createElement("button",Object.assign({type:"button",onClick:a,className:"".concat(n,"-close-icon"),tabIndex:0},s),l):null},C=r.forwardRef((e,t)=>
1{let{description:n,prefixCls:o,message:a,banner:i,className:s,rootClassName:l,style:c,onMouseEnter:p,onMouseLeave:v,onClick:P,afterClose:y,showIcon:g,closable:T,closeText:_,closeIcon:E,action:O,id:C}=e,G=S(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[A,R]=r.useState(!1),k=r.useRef(null);r.useImperativeHandle(t,()=>({nativeElement:k.current}));let{getPrefixCls:I,direction:j,closable:N,closeIcon:q,className:M,style:D}=(0,f.dj)("alert"),L=I("alert",o),[H,U,F]=b(L),z=t=>{var n;R(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},$=r.useMemo(()=>void 0!==e.type?e.type:i?"warning":"info",[e.type,i]),B=r.useMemo(()=>"object"==typeof T&&!!T.closeIcon||!!_||("boolean"==typeof T?T:!1!==E&&null!=E||!!N),[_,E,T,N]),Z=!!i&&void 0===g||g,V=u()(L,"".concat(L,"-").concat($),{["".concat(L,"-with-description")]:!!n,["".concat(L,"-no-icon")]:!Z,["".concat(L,"-banner")]:!!i,["".concat(L,"-rtl")]:"rtl"===j},M,s,l,F,U),K=(0,h.Z)(G,{aria:!0,data:!0}),W=r.useMemo(()=>"object"==typeof T&&T.closeIcon?T.closeIcon:_||(void 0!==E?E:"object"==typeof N&&N.closeIcon?N.closeIcon:q),[E,T,N,_,q]),X=r.useMemo(()=>{let e=null!=T?T:N;if("object"==typeof e){let{closeIcon:t}=e;return S(e,["closeIcon"])}return{}},[T,N]);return H(r.createElement(d.ZP,{visible:!A,motionName:"".concat(L,"-motion"),motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:y},(t,o)=>{let{className:i,style:s}=t;return r.createElement("div",Object.assign({id:C,ref:(0,m.sQ)(k,o),"data-show":!A,className:u()(V,i),style:Object.assign(Object.assign(Object.assign({},D),c),s),onMouseEnter:p,onMouseLeave:v,onClick:P,role:"alert"},K),Z?r.createElement(x,{description:n,icon:e.icon,prefixCls:L,type:$}):null,r.createElement("div",{className:"".concat(L,"-content")},a?r.createElement("div",{className:"".concat(L,"-message")},a):null,n?r.createElement("div",{className:"".concat(L,"-description")},n):null),O?r.createElement("div",{className:"".concat(L,"-action")},O):null,r.createElement(w,{isClosable:B,prefixCls:L,closeIcon:W,handleClose:z,ariaProps:X}))}))});var G=n(15671),A=n(43144),R=n(61120),k=n(78814),I=n(82963),j=n(60136);let N=function(e){function t(){var e,n,r;return(0,G.Z)(this,t),n=t,r=arguments,n=(0,R.Z)(n),(e=(0,I.Z)(this,(0,k.Z)()?Reflect.construct(n,r||[],(0,R.Z)(this).constructor):n.apply(this,r))).state={error:void 0,info:{componentStack:""}},e}return(0,j.Z)(t,e),(0,A.Z)(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){let{message:e,description:t,id:n,children:o}=this.props,{error:a,info:i}=this.state,s=(null==i?void 0:i.componentStack)||null,l=void 0===e?(a||"").toString():e;return a?r.createElement(C,{id:n,type:"error",message:l,description:r.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},void 0===t?s:t)}):o}}])}(r.Component);C.ErrorBoundary=N;var q=C},65378:function(e,t,n){"use strict";n.d(t,{Z:function(){return $}});var r=n(67294),o=n(67371),a=n(93967),i=n.n(a),s=n(87462),l=n(74902),c=n(97685),u=n(71002),d=n(22720),h=n(92045),m=n(91),p=n(22610),f=n(1413),v=n(4942),P=n(16819),y=n(77524),g=r.forwardRef(function(e,t){var n=e.prefixCls,o=e.forceRender,a=e.className,s=e.style,l=e.children,u=e.isActive,d=e.role,h=e.classNames,m=e.styles,p=r.useState(u||o),f=(0,c.Z)(p,2),P=f[0],y=f[1];return(r.useEffect(function(){(o||u)&&y(!0)},[o,u]),P)?r.createElement("div",{ref:t,className:i()("".concat(n,"-content"),(0,v.Z)((0,v.Z)({},"".concat(n,"-content-active"),u),"".concat(n,"-content-inactive"),!u),a),style:s,role:d},r.createElement("div",{className:i()("".concat(n,"-content-box"),null==h?void 0:h.body),style:null==m?void 0:m.body},l)):null});g.displayName="PanelContent";var T=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],_=r.forwardRef(function(e,t){var n=e.showArrow,o=e.headerClass,a=e.isActive,l=e.onItemClick,c=e.forceRender,u=e.className,d=e.classNames,h=void 0===d?{}:d,p=e.styles,_=void 0===p?{}:p,E=e.prefixCls,b=e.collapsible,S=e.accordion,O=e.panelKey,x=e.extra,w=e.header,C=e.expandIcon,G=e.openMotion,A=e.destroyInactivePanel,R=e.children,k=(0,m.Z)(e,T),I="disabled"===b,j=(0,v.Z)((0,v.Z)((0,v.Z)({onClick:function(){null==l||l(O)},onKeyDown:function(e){("Enter"===e.key||e.keyCode===y.Z.ENTER||e.which===y.Z.ENTER)&&
1(null==l||l(O))},role:S?"tab":"button"},"aria-expanded",a),"aria-disabled",I),"tabIndex",I?-1:0),N="function"==typeof C?C(e):r.createElement("i",{className:"arrow"}),q=N&&r.createElement("div",(0,s.Z)({className:"".concat(E,"-expand-icon")},["header","icon"].includes(b)?j:{}),N),M=i()("".concat(E,"-item"),(0,v.Z)((0,v.Z)({},"".concat(E,"-item-active"),a),"".concat(E,"-item-disabled"),I),u),D=i()(o,"".concat(E,"-header"),(0,v.Z)({},"".concat(E,"-collapsible-").concat(b),!!b),h.header),L=(0,f.Z)({className:D,style:_.header},["header","icon"].includes(b)?{}:j);return r.createElement("div",(0,s.Z)({},k,{ref:t,className:M}),r.createElement("div",L,(void 0===n||n)&&q,r.createElement("span",(0,s.Z)({className:"".concat(E,"-header-text")},"header"===b?j:{}),w),null!=x&&"boolean"!=typeof x&&r.createElement("div",{className:"".concat(E,"-extra")},x)),r.createElement(P.ZP,(0,s.Z)({visible:a,leavedClassName:"".concat(E,"-content-hidden")},G,{forceRender:c,removeOnLeave:A}),function(e,t){var n=e.className,o=e.style;return r.createElement(g,{ref:t,prefixCls:E,className:n,classNames:h,style:o,styles:_,isActive:a,forceRender:c,role:S?"tabpanel":void 0},R)}))}),E=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],b=function(e,t){var n=t.prefixCls,o=t.accordion,a=t.collapsible,i=t.destroyInactivePanel,l=t.onItemClick,c=t.activeKey,u=t.openMotion,d=t.expandIcon;return e.map(function(e,t){var h=e.children,p=e.label,f=e.key,v=e.collapsible,P=e.onItemClick,y=e.destroyInactivePanel,g=(0,m.Z)(e,E),T=String(null!=f?f:t),b=null!=v?v:a,S=!1;return S=o?c[0]===T:c.indexOf(T)>-1,r.createElement(_,(0,s.Z)({},g,{prefixCls:n,key:T,panelKey:T,isActive:S,accordion:o,openMotion:u,expandIcon:d,header:p,collapsible:b,onItemClick:function(e){"disabled"!==b&&(l(e),null==P||P(e))},destroyInactivePanel:null!=y?y:i}),h)})},S=function(e,t,n){if(!e)return null;var o=n.prefixCls,a=n.accordion,i=n.collapsible,s=n.destroyInactivePanel,l=n.onItemClick,c=n.activeKey,u=n.openM
1otion,d=n.expandIcon,h=e.key||String(t),m=e.props,p=m.header,f=m.headerClass,v=m.destroyInactivePanel,P=m.collapsible,y=m.onItemClick,g=!1;g=a?c[0]===h:c.indexOf(h)>-1;var T=null!=P?P:i,_={key:h,panelKey:h,header:p,headerClass:f,isActive:g,prefixCls:o,destroyInactivePanel:null!=v?v:s,openMotion:u,accordion:a,children:e.props.children,onItemClick:function(e){"disabled"!==T&&(l(e),null==y||y(e))},expandIcon:d,collapsible:T};return"string"==typeof e.type?e:(Object.keys(_).forEach(function(e){void 0===_[e]&&delete _[e]}),r.cloneElement(e,_))},O=n(80672);function x(e){var t=e;if(!Array.isArray(t)){var n=(0,u.Z)(t);t="number"===n||"string"===n?[t]:[]}return t.map(function(e){return String(e)})}var w=Object.assign(r.forwardRef(function(e,t){var n,o=e.prefixCls,a=void 0===o?"rc-collapse":o,u=e.destroyInactivePanel,m=e.style,f=e.accordion,v=e.className,P=e.children,y=e.collapsible,g=e.openMotion,T=e.expandIcon,_=e.activeKey,E=e.defaultActiveKey,w=e.onChange,C=e.items,G=i()(a,v),A=(0,d.Z)([],{value:_,onChange:function(e){return null==w?void 0:w(e)},defaultValue:E,postState:x}),R=(0,c.Z)(A,2),k=R[0],I=R[1];(0,h.ZP)(!P,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var j=(n={prefixCls:a,accordion:f,openMotion:g,expandIcon:T,collapsible:y,destroyInactivePanel:void 0!==u&&u,onItemClick:function(e){return I(function(){return f?k[0]===e?[]:[e]:k.indexOf(e)>-1?k.filter(function(t){return t!==e}):[].concat((0,l.Z)(k),[e])})},activeKey:k},Array.isArray(C)?b(C,n):(0,p.Z)(P).map(function(e,t){return S(e,t,n)}));return r.createElement("div",(0,s.Z)({ref:t,className:G,style:m,role:f?"tablist":void 0},(0,O.Z)(e,{aria:!0,data:!0})),j)}),{Panel:_});w.Panel;var C=n(97485),G=n(99293),A=n(84476),R=n(17399),k=n(35332);let I=r.forwardRef((e,t)=>{let{getPrefixCls:n}=r.useContext(R.E_),{prefixCls:o,className:a,showArrow:s=!0}=e,l=n("collapse",o),c=i()({["".concat(l,"-no-arrow")]:!s},a);return r.createElement(w.Panel,Object.assign({ref:t},e,{prefixCls:l,className:c}))});var j=n(46368),N=n(30641),q=n(16630),M=n(52317),D=n(88494);let L=e=>{let{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:h,colorTextHeading:m,colorTextDisabled:p,fontSizeLG:f,lineHeight:v,lineHeightLG:P,marginSM:y,paddingSM:g,paddingLG:T,paddingXS:_,motionDurationSlow:E,fontSizeIcon:b,contentPadding:S,fontHeight:O,fontHeightLG:x}=e,w="".concat((0,j.bf)(c)," ").concat(u," ").concat(d);return{[t]:Object.assign(Object.assign({},(0,N.Wf)(e)),{backgroundColor:o,border:w,borderRadius:l,"&-rtl":{direction:"rtl"},["& > ".concat(t,"-item")]:{borderBottom:w,"&:first-child":{["\n            &,\n            & > ".concat(t,"-header")]:{borderRadius:"".concat((0,j.bf)(l)," ").concat((0,j.bf)(l)," 0 0")}},"&:last-child":{["\n            &,\n            & > ".concat(t,"-header")]:{borderRadius:"0 0 ".concat((0,j.bf)(l)," ").concat((0,j.bf)(l))}},["> ".concat(t,"-header")]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:m,lineHeight:v,cursor:"pointer",transition:"all ".concat(E,", visibility 0s")},(0,N.Qy)(e)),{["> ".concat(t,"-header-text")]:{flex:"auto"},["".concat(t,"-expand-icon")]:{height:O,display:"flex",alignItems:"center",paddingInlineEnd:y},["".concat(t,"-arrow")]:Object.assign(Object.assign({},(0,N.Ro)()),{fontSize:b,transition:"transform ".concat(E),svg:{transition:"transform ".concat(E)}}),["".concat(t,"-header-text")]:{marginInlineEnd:"auto"}}),["".concat(t,"-collapsible-header")]:{cursor:"default",["".concat(t,"-header-text")]:{flex:"none",cursor:"pointer"},["".concat(t,"-expand-icon")]:{cursor:"pointer"}},["".concat(t,"-collapsible-icon")]:{cursor:"unset",["".concat(t,"-expand-icon")]:{cursor:"pointer"}}},["".concat(t,"-content")]:{color:h,backgroundColor:n,borderTop:w,["& > ".concat(t,"-content-box")]:{padding:S},"&-hidden":{display:"none"}},"&-small":{["> ".concat(t,"-item")]:{["> ".concat(t,"-header")]:{padding:i,paddingInlineStart:_,["> ".concat(t,"-expand-icon")]:{marginInlineStart:e.calc(g).sub(_).equal()}},["> ".concat(t,"-content > ").concat(t,"-content-box")]:{padding:g}}},"&-large":{["> ".concat(t,"-item")]:{fontSize:f,lineHeight:P,["> ".concat(t,"-header")]:{padding:s,paddingInlineStart:r,["> ".concat(t,"-expand-icon")]:{height:x,marginInlineStart:e.calc(T).sub(r).equal()}},["> ".concat(t,"-content > ").concat(t,"-content-box")]:{padding:T}}},["".concat(t,"-item:last-child")]:{borderBottom:0,["> ".concat(t,"-content")]:{borderRadius:"0 0 ".concat((0,j.bf)(l)," ").concat((0,j.bf)(l))}},["& ".concat(t,"-item-disabled > ").concat(t,"-header")]:{"\n          &,\n          & > .arrow\n        ":{color:p,cursor:"not-allowed"}},["&".concat(t,"-icon-position-end")]:{["& > ".concat(t,"-item")]:{["> ".concat(t,"-header")]:{["".concat(t,"-expand-icon")]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},H=e=>{let{componentCls:t}=e,n="> ".concat(t,"-item > ").concat(t,"-header ").concat(t,"-arrow");return{["".concat(t,"-rtl")]:{[n]:{transform:"rotate(180deg)"}}}},U=e=>{let{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:o,c
1olorBorder:a}=e;return{["".concat(t,"-borderless")]:{backgroundColor:n,border:0,["> ".concat(t,"-item")]:{borderBottom:"1px solid ".concat(a)},["\n        > ".concat(t,"-item:last-child,\n        > ").concat(t,"-item:last-child ").concat(t,"-header\n      ")]:{borderRadius:0},["> ".concat(t,"-item:last-child")]:{borderBottom:0},["> ".concat(t,"-item > ").concat(t,"-content")]:{backgroundColor:o,borderTop:0},["> ".concat(t,"-item > ").concat(t,"-content > ").concat(t,"-content-box")]:{padding:r}}}},F=e=>{let{componentCls:t,paddingSM:n}=e;return{["".concat(t,"-ghost")]:{backgroundColor:"transparent",border:0,["> ".concat(t,"-item")]:{borderBottom:0,["> ".concat(t,"-content")]:{backgroundColor:"transparent",border:0,["> ".concat(t,"-content-box")]:{paddingBlock:n}}}}}};var z=(0,M.I$)("Collapse",e=>{let t=(0,D.IX)(e,{collapseHeaderPaddingSM:"".concat((0,j.bf)(e.paddingXS)," ").concat((0,j.bf)(e.paddingSM)),collapseHeaderPaddingLG:"".concat((0,j.bf)(e.padding)," ").concat((0,j.bf)(e.paddingLG)),collapsePanelBorderRadius:e.borderRadiusLG});return[L(t),U(t),F(t),H(t),(0,q.Z)(t)]},e=>({headerPadding:"".concat(e.paddingSM,"px ").concat(e.padding,"px"),headerBg:e.colorFillAlter,contentPadding:"".concat(e.padding,"px 16px"),contentBg:e.colorBgContainer,borderlessContentPadding:"".concat(e.paddingXXS,"px 16px ").concat(e.padding,"px"),borderlessContentBg:"transparent"})),$=Object.assign(r.forwardRef((e,t)=>{let{getPrefixCls:n,direction:a,expandIcon:s,className:l,style:c}=(0,R.dj)("collapse"),{prefixCls:u,className:d,rootClassName:h,style:m,bordered:f=!0,ghost:v,size:P,expandIconPosition:y="start",children:g,destroyInactivePanel:T,destroyOnHidden:_,expandIcon:E}=e,b=(0,k.Z)(e=>{var t;return null!==(t=null!=P?P:e)&&void 0!==t?t:"middle"}),S=n("collapse",u),O=n(),[x,I,j]=z(S),N=r.useMemo(()=>"left"===y?"start":"right"===y?"end":y,[y]),q=null!=E?E:s,M=r.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="function"==typeof q?q(e):r.createElement(o.Z,{rotate:e.isActive?"rtl"===a?-90:90:void 0,"aria-label":e.isActive?"expanded":"collapsed"});return(0,A.Tm)(t,()=>{var e;return{className:i()(null===(e=t.props)||void 0===e?void 0:e.className,"".concat(S,"-arrow"))}})},[q,S,a]),D=i()("".concat(S,"-icon-position-").concat(N),{["".concat(S,"-borderless")]:!f,["".concat(S,"-rtl")]:"rtl"===a,["".concat(S,"-ghost")]:!!v,["".concat(S,"-").concat(b)]:"middle"!==b},l,d,h,I,j),L=r.useMemo(()=>Object.assign(Object.assign({},(0,G.Z)(O)),{motionAppear:!1,leavedClassName:"".concat(S,"-content-hidden")}),[O,S]),H=r.useMemo(()=>g?(0,p.Z)(g).map((e,t)=>{var n,r;let o=e.props;if(null==o?void 0:o.disabled){let a=null!==(n=e.key)&&void 0!==n?n:String(t),i=Object.assign(Object.assign({},(0,C.Z)(e.props,["disabled"])),{key:a,collapsible:null!==(r=o.collapsible)&&void 0!==r?r:"disabled"});return(0,A.Tm)(e,i)}return e}):null,[g]);return x(r.createElement(w,Object.assign({ref:t,openMotion:L},(0,C.Z)(e,["rootClassName"]),{expandIcon:M,prefixCls:S,className:D,style:Object.assign(Object.assign({},c),m),destroyInactivePanel:null!=_?_:T}),H))}),{Panel:I})},92703:function(e,t,n){"use strict";
1var r=n(50414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},45697:function(e,t,n){e.exports=n(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},97005:function(e,t,n){var r=n(67294),o=r&&"object"==typeof r&&"default"in r?r:{default:r};!function(e){if(!e||"undefined"==typeof window)return;let t=document.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t)}('.rfm-marquee-container {\n  overflow-x: hidden;\n  display: flex;\n  flex-direction: row;\n  position: relative;\n  width: var(--width);\n  transform: var(--transform);\n}\n.rfm-marquee-container:hover div {\n  animation-play-state: var(--pause-on-hover);\n}\n.rfm-marquee-container:active div {\n  animation-play-state: var(--pause-on-click);\n}\n\n.rfm-overlay {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n}\n.rfm-overlay::before, .rfm-overlay::after {\n  background: linear-gradient(to right, var(--gradient-color), rgba(255, 255, 255, 0));\n  content: "";\n  height: 100%;\n  position: absolute;\n  width: var(--gradient-width);\n  z-index: 2;\n  pointer-events: none;\n  touch-action: none;\n}\n.rfm-overlay::after {\n  right: 0;\n  top: 0;\n  transform: rotateZ(180deg);\n}\n.rfm-overlay::before {\n  left: 0;\n  top: 0;\n}\n\n.rfm-marquee {\n  flex: 0 0 auto;\n  min-width: var(--min-width);\n  z-index: 1;\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  animation: scroll var(--duration) linear var(--delay) var(--iteration-count);\n  animation-play-state: var(--play);\n  animation-delay: var(--delay);\n  animation-direction: var(--direction);\n}\n@keyframes scroll {\n  0% {\n    transform: translateX(0%);\n  }\n  100% {\n    transform: translateX(-100%);\n  }\n}\n\n.rfm-initial-child-container {\n  flex: 0 0 auto;\n  display: flex;\n  min-width: auto;\n  flex-direction: row;\n  align-items: center;\n}\n\n.rfm-child {\n  transform: var(--transform);\n}');let a=r.forwardRef(function({style:e={},className:t="",autoFill:n=!1,play:a=!0,pauseOnHover:i=!1,pauseOnClick:s=!1,direction:l="left",speed:c=50,delay:u=0,loop:d=0,gradient:h=!1,gradientColor:m="white",gradientWidth:p=200,onFinish:f,onCycleComplete:v,onMount:P,children:y},g){let[T,_]=r.useState(0),[E,b]=r.useState(0),[S,O]=r.useState(1),[x,w]=r.useState(!1),C=r.useRef(null),G=g||C,A=r.useRef(null),R=r.useCallback(()=>{if(A.current&&G.current){let e=G.current.getBoundingClientRect(),t=A.current.getBoundingClientRect(),r=e.width,o=t.width;("up"===l||"down"===l)&&(r=e.height,o=t.height),n&&r&&o?O(o<r?Math.ceil(r/o):1):O(1),_(r),b(o)}},[n,G,l]);r.useEffect(()=>{if(x&&(R(),A.current&&G.current)){let e=new ResizeObserver(()=>R());return e.observe(G.current),e.observe(A.current),()=>{e&&e.disconnect()}}},[R,G,x]),r.useEffect(()=>{R()},[R,y]),r.useEffect(()=>{w(!0)},[]),r.useEffect(()=>{"function"==typeof P&&P()},[]);let k=r.useMemo(()=>n?E*S/c:E<T?T/c:E/c,[n,T,E,S,c]),I=r.useMemo(()=>Object.assign(Object.assign({},e),{"--pause-on-hover":!a||i?"paused":"running","--pause-on-click":!a||i&&!s||s?"paused":"running","--width":"up"===l||"down"===l?"100vh":"100%","--transform":"up"===l?"rotate(-90deg)":"down"===l?"rotate(90deg)":"none"}),[e,a,i,s,l]),j=r.useMemo(()=>({"--gradient-color":m,"--gradient-width":"number"==typeof p?`${p}px`:p}),[m,p]),N=r.useMemo(()=>({"--play":a?"running":"paused","--direction":"left"===l?"normal":"reverse","--duration":`${k}s`,"--delay":`${u}s`,"--iteration-count":d?`${d}`:"infinite","--min-width":n?"auto":"100%"}),[a,l,k,u,d,n]),q=r.useMemo(()=>({"--transform":"up"===l?"rotate(90deg)":"down"===l?"rotate(-90deg)":"none"}),[l]),M=r.useCallback(e=>[...Array(Number.isFinite(e)&&e>=0?e:0)].map((e,t)=>o.default.createElement(r.Fragment,{key:t},r.Children.map(y,e=>o.default.createElement("div",{style:q,className:"rfm-child"},e)))),[q,y]);return x?o.default.createElement("div",{ref:G,style:I,className:"rfm-marquee-container "+t},h&&o.default.createElement("div",{style:j,className:"rfm-overlay"}),o.default.createElement("div",{className:"rfm-marquee",style:N,onAnimationIteration:v,onAnimationEnd:f},o.default.createElement("div",{className:"rfm-initial-child-container",ref:A},r.Children.map(y,e=>o.default.createElement("div",{style:q,className:"rfm-child"},e))),M(S-1)),o.default.createElement("div",{className:"rfm-marquee",style:N},M(S))):null});t.Z=a},31596:function(e,t,n){"use strict";n.d(t,{Ke:function(){return A},Oh:function(){return R},eK:function(){return b},lq:function(){return S},vk:function(){return k}});var r=n(67294),o=n(45697);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?a(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=o){var a=[],i=!0,s=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(s)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var d=function(e,t,n){var o=!!n,a=r.useRef(n);r.useEffect(function(){a.current=n},[n]),r.useEffect(function(){if(!o||!e)return function(){};var n=function(){a.current&&a.current.apply(a,arguments)};return e.on(t,n),function(){e.off(t,n)}},[o,t,e,a])},h=function(e){var t=r.useRef(e);return r.useEffect(function(){t.current=e},[e]),t.current},m=function(e){return null!==e&&"object"===s(e)},p="[object Object]",f=function e(t,n){if(!m(t)||!m(n))return t===n;var r=Array.isArray(t);if(r!==Array.isArray(n))return!1;var o=Object.prototype.toString.call(t)===p;if(o!==(Object.prototype.toString.call(n)===p))return!1;if(!o&&!r)return t===n;var a=Object.keys(t),i=Object.keys(n);if(a.length!==i.length)return!1;for(var s={},l=0;l<a.length;l+=1)s[a[l]]=!0;for(var c=0;c<i.length;c+=1)s[i[c]]=!0;var u=Object.keys(s);return u.length===a.length&&u.every(function(r){return e(t[r],n[r])})},v=function(e,t,n){return m(e)?Object.keys(e).reduce(function(r,o){var a=!m(t)||!f(e[o],t[o]);return n.includes(o)?(a&&console.warn("Unsupported prop change: options.".concat(o," is not a mutable property.")),r):a?i(i({},r||{}),{},l({},o,e[o])):r},null):null},P="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P;if(null===e||m(e)&&"function"==typeof e.elements&&"function"==typeof e.createToken&&"function"==typeof e.createPaymentMethod&&"function"==typeof e.confirmCardPayment)return e;throw Error(t)},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P;if(m(e)&&"function"==typeof e.then)return{tag:"async",stripePromise:Promise.resolve(e).then(function(e){return y(e,t)})};var n=y(e,t);return null===n?{tag:"empty"}:{tag:"sync",stripe:n}},T=function(e){e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"5.6.1"}),e.registerAppInfo({name:"react-stripe-js",version:"5.6.1",url:"https://stripe.com/docs/stripe-js/react"}))},_=r.createContext(null);_.displayName="ElementsContext";var E=function(e,t){if(!e)throw Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e},b=function(e){var t=e.stripe,n=e.options,o=e.children,a=r.useMemo(function(){return g(t)},[t]),i=c(r.useState(function(){return{stripe:"sync"===a.tag?a.stripe:null,elements:"sync"===a.tag?a.stripe.elements(n):null}}),2),s=i[0],l=i[1];r.useEffect(function(){var e=!0,t=function(e){l(function(t){return t.stripe?t:{stripe:e,elements:e.elements(n)}})};return"async"!==a.tag||s.stripe?"sync"!==a.tag||s.stripe||t(a.stripe):a.stripePromise.then(function(n){n&&e&&t(n)}),function(){e=!1}},[a,s,n]);var u=h(t);r.useEffect(function(){null!==u&&u!==t&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[u,t]);var d=h(n);return r.useEffect(function(){if(s.elements){var e=v(n,d,["clientSecret","fonts"]);e&&s.elements.update(e)}},[n,d,s.elements]),r.useEffect(function(){T(s.stripe)},[s.stripe]),r.createElement(_.Provider,{value:s},o)};b.propTypes={stripe:o.any,options:o.object};var S=function(){var e;return(e="calls useElements()",E(r.useContext(_),e)).elements};o.func.isRequired;var O=r.createContext(null);
1O.displayName="CheckoutContext",o.any,o.shape({clientSecret:o.oneOfType([o.string,o.instanceOf(Promise)]).isRequired,elementsOptions:o.object}).isRequired;var x=function(e){var t=r.useContext(O),n=r.useContext(_);if(!t)return E(n,e);if(!n)return t;throw Error("You cannot wrap the part of your app that ".concat(e," in both <CheckoutProvider> and <Elements> providers."))},w=["mode"],C=function(e,t){var n="".concat(e.charAt(0).toUpperCase()+e.slice(1),"Element"),a=t?function(e){x("mounts <".concat(n,">"));var t=e.id,o=e.className;return r.createElement("div",{id:t,className:o})}:function(t){var o,a=t.id,i=t.className,s=t.options,l=void 0===s?{}:s,u=t.onBlur,m=t.onFocus,p=t.onReady,f=t.onChange,P=t.onEscape,y=t.onClick,g=t.onLoadError,T=t.onLoaderStart,_=t.onNetworksChange,E=t.onConfirm,b=t.onCancel,S=t.onShippingAddressChange,O=t.onShippingRateChange,C=t.onSavedPaymentMethodRemove,G=t.onSavedPaymentMethodUpdate,A=x("mounts <".concat(n,">")),R="elements"in A?A.elements:null,k="checkoutState"in A?A.checkoutState:null,I=(null==k?void 0:k.type)==="success"||(null==k?void 0:k.type)==="loading"?k.sdk:null,j=c(r.useState(null),2),N=j[0],q=j[1],M=r.useRef(null),D=r.useRef(null);d(N,"blur",u),d(N,"focus",m),d(N,"escape",P),d(N,"click",y),d(N,"loaderror",g),d(N,"loaderstart",T),d(N,"networkschange",_),d(N,"confirm",E),d(N,"cancel",b),d(N,"shippingaddresschange",S),d(N,"shippingratechange",O),d(N,"savedpaymentmethodremove",C),d(N,"savedpaymentmethodupdate",G),d(N,"change",f),p&&(o="expressCheckout"===e?p:function(){p(N)}),d(N,"ready",o),r.useLayoutEffect(function(){if(null===M.current&&null!==D.current&&(R||I)){var t=null;if(I)switch(e){case"paymentForm":t=I.createPaymentFormElement(l);break;case"payment":t=I.createPaymentElement(l);break;case"address":if("mode"in l){var r=l.mode,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(l,w);if("shipping"===r)t=I.createShippingAddressElement(o);else if("billing"===r)t=I.createBillingAddressElement(o);else throw Error("Invalid options.mode. mode must be 'billing' or 'shipping'.")}else throw Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");break;case"expressCheckout":t=I.createExpressCheckoutElement(l);break;case"currencySelector":t=I.createCurrencySelectorElement();break;case"taxId":t=I.createTaxIdElement(l);break;default:throw Error("Invalid Element type ".concat(n,". You must use either the <PaymentElement />, <AddressElement options={{mode: 'shipping'}} />, <AddressElement options={{mode: 'billing'}} />, or <ExpressCheckoutElement />."))}else R&&(t=R.create(e,l));M.current=t,q(t),t&&t.mount(D.current)}},[R,I,l]);var L=h(l);return r.useEffect(function(){if(M.current){var e=v(l,L,["paymentRequest"]);e&&"update"in M.current&&M.current.update(e)}},[l,L]),r.useLayoutEffect(function(){return function(){if(M.current&&"function"==typeof M.current.destroy)try{M.current.destroy(),M.current=null}catch(e){}}},[]),r.createElement("div",{id:a,className:i,ref:D})};return a.propTypes={id:o.string,className:o.string,onChange:o.func,onBlur:o.func,onFocus:o.func,onReady:o.func,onEscape:o.func,onClick:o.func,onLoadError:o.func,onLoaderStart:o.func,onNetworksChange:o.func,onConfirm:o.func,onCancel:o.func,onShippingAddressChange:o.func,onShippingRateChange:o.func,onSavedPaymentMethodRemove:o.func,onSavedPaymentMethodUpdate:o.func,options:o.object},a.displayName=n,a.__elementType=e,a},G="undefined"==typeof window;r.createContext(null).displayName="EmbeddedCheckoutProviderContext",C("auBankAccount",G),C("card",G);var A=C("cardNumber",G),R=C("cardExpiry",G),k=C("cardCvc",G);C("iban",G),C("payment",G),C("expressCheckout",G),C("paymentRequestButton",G),C("linkAuthentication",G),C("address",G),C("shippingAddress",G),C("paymentMethodMessaging",G),C("taxId",G)},2859:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{J:function(){return g}});var o,a="clover",i="https://js.stripe.com",s="".concat(i,"/").concat(a,"/stripe.js"),l=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,c=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,u=function(){for(var e=document.querySelectorAll('script[src^="'.concat(i,'"]')),t=0;t<e.length;t++){var n,r=e[t];if(n=r.src,l.test(n)||c.test(n))return r}return null},d=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(s).concat(t);var r=document.head||document.body;if(!r)throw Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return r.appendChild(n),n},h=function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"8.9.0",startTime:t})},m=null,p=null,f=null,v=function(e,t,n){if(null===e)return null;var o,i=t[0];if("string"!=typeof i)throw Error("Expected publishable key to be of type string, got type ".concat(r(i)," instead."));var s=i.match(/^pk_test/),l=3===(o=e.version)?"v3":o;s&&l!==a&&console.warn("Stripe.js@".concat(l," was loaded on the page, but @stripe/stripe-js@").concat("8.9.0"," expected Stripe.js@").concat(a,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var c=e.apply(void 0,t);return h(c,n),c},P=!1,y=function(){return o||(o=(null!==m?m:(m=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 n,r=u();r?r&&null!==f&&null!==p&&(r.removeEventListener("load",f),r.removeEventListener("error",p),null===(n=r.parentNode)||void 0===n||n.removeChild(r),r=d(null)):r=d(null),f=function(){window.Stripe?e(window.Stripe):t(Error("Stripe.js not available"))},p=function(e){t(Error("Failed to load Stripe.js",{cause:e}))},r.addEventListener("load",f),r.addEventListener("error",p)}catch(e){t(e);return}})).catch(function(e){return m=null,Promise.reject(e)})).catch(function(e){return o=null,Promise.reject(e)}))};Promise.resolve().then(function(){return y()}).catch(function(e){P||console.warn(e)});var g=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];P=!0;var r=Date.now();return y().then(function(e){return v(e,t,r)})}},24678:function(e,t,n){"use strict";let r;function o(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function a(){return r||(r=function(e,t){let n;let r=()=>{if(n)return n;let r=indexedDB.open(e);return r.onupgradeneeded=()=>r.result.createObjectStore(t),(n=o(r)).then(e=>{e.onclose=()=>n=void 0},()=>{}),n};return(e,n)=>r().then(r=>n(r.transaction(t,e).objectStore(t)))}("keyval-store","keyval")),r}function i(e,t=a()){return t("readonly",t=>o(t.get(e)))}function s(e,t,n=a()){return n("readwrite",n=>(n.put(t,e),o(n.transaction)))}function l(e,t=a()){return t("readwrite",t=>(t.delete(e),o(t.transaction)))}n.d(t,{IV:function(){return l},U2:function(){return i},t8:function(){return s}})},96430:function(e,t,n){"use strict";var r={};n.r(r),n.d(r,{StripeAPIError:function(){return D},StripeAuthenticationError:function(){return L},StripeCardError:function(){return q},StripeConnectionError:function(){return F},StripeError:function(){return N},StripeIdempotencyError:function(){return $},StripeInvalidGrantError:function(){return B},StripeInvalidRequestError:function(){return M},StripePermissionError:function(){return H},StripeRateLimitError:function(){return U},StripeSignatureVerificationError:function(){return z},StripeUnknownError:function(){return Z},TemporarySessionExpiredError:function(){return V},generateV1Error:function(){return I},generateV2Error:function(){return j}});var o={};n.r(o),n.d(o,{Account:function(){return n$},AccountLinks:function(){return nZ},AccountSessions:function(){return nK},Accounts:function(){return n$},ApplePayDomains:function(){return nX},ApplicationFees:function(){return nY},Apps:function(){return oG},Balance:function(){return n1},BalanceSettings:function(){return n2},BalanceTransactions:function(){return n4},Billing:function(){return oA},BillingPortal:function(){return oR},Charges:function(){return n3},Checkout:function(){return ok},Climate:function(){return oI},ConfirmationTokens:function(){return n5},CountrySpecs:function(){return re},Coupons:function(){return rn},CreditNotes:function(){return ro},CustomerSessions:function(){return ri},Customers:function(){return rl},Disputes:function(){return ru},Entitlements:function(){return oj},EphemeralKeys:function(){return rh},Events:function(){return rp},ExchangeRates:function(){return rv},FileLinks:function(){return ry},Files:function(){return r_},FinancialConnections:function(){return oN},Forwarding:function(){return oq},Identity:function(){return oM},InvoiceItems:function(){return rb},InvoicePayments:function(){return rO},InvoiceRenderingTemplates:function(){return rw},Invoices:function(){return rG},Issuing:function(){return oD},Mandates:function(){return rR},OAuth:function(){return rj},PaymentAttemptRecords:function(){return rq},PaymentIntents:function(){return rD},PaymentLinks:function(){return rH},PaymentMethodConfigurations:function(){return rF},PaymentMethodDomains:function(){return r$},PaymentMethods:function(){return rZ},PaymentRecords:function(){return rK},Payouts:function(){return rX},Plans:function(){return rY},Prices:function(){return r1},Products:function(){return r2},PromotionCodes:function(){return r4},Quotes:function(){return r3},Radar:function(){return oL},Refunds:function(){return r5},Reporting:function(){return oH},Reviews:function(){return oe},SetupAttempts:function(){return on},SetupIntents:function(){return oo},ShippingRates:function(){return oi},Sigma:function(){return oU},Sources:function(){return ol},SubscriptionItems:function(){return ou},SubscriptionSchedules:function(){return oh},Subscriptions:function(){return op},Tax:function(){return oF},TaxCodes:function(){return ov},TaxIds:function(){return oy},TaxRates:function(){return oT},Terminal:function(){return oz},TestHelpers:function(){return o$},Tokens:function(){return oE},Topups:function(){return oS},Transfers:function(){return ox},Treasury:function(){return oB},V2:function(){return oZ},WebhookEndpoints:function(){return oC}});var a=n(83454);let i=["apiKey","idempotencyKey","stripeAccount","apiVersion","maxNetworkRetries","timeout","host","authenticator","stripeContext","additionalHeaders","streaming"];function s(e){return e&&"object"==typeof e&&i.some(t=>Object.prototype.hasOwnProperty.call(e,t))}function l(e){return encodeURIComponent(e).replace(/!/g,"%21").replace(/\*/g,"%2A").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27").replace(/%5B/g,"[").replace(/%5D/g,"]")}function c(e){let t=[];if("object"==typeof e&&null!==e)for(let n of Object.keys(e))!function e(n,r){if(void 0!==r){if(null===r||"object"!=typeof r||r instanceof Date){t.push(l(n)+"="+l(r instanceof Date?Math.floor(r.getTime()/1e3).toString():null===r?"":String(r)));return}if(Array.isArray(r)){for(let t=0;t<r.length;t++)void 0!==r[t]&&e(n+"["+t+"]",r[t]);return}for(let t of Object.keys(r))e(n+"["+t+"]",r[t])}}(n,e[n]);return t.join("&")}let u=(()=>{let e={"\n":"\\n",'"':'\\"',"\u2028":"\\u2028","\u2029":"\\u2029"};return t=>{let n=t.replace(/["\n\r\u2028\u2029]/g,t=>e[t]);return e=>n.replace(/\{([\s\S]+?)\}/g,(t,n)=>{let r=e[n];return["number","string","boolean"].includes(typeof r)?encodeURIComponent(r):""})}})();function d(e){if(!Array.isArray(e)||!e[0]||"object"!=typeof e[0])return{};if(!s(e[0]))return e.shift();let t=Object.keys(e[0]),n=t.filter(e=>i.includes(e));return n.length>
10&&n.length!==t.length&&f(`Options found in arguments (${n.join(", ")}). Did you mean to pass an options object? See https://github.com/stripe/stripe-node/wiki/Passing-Options.`),{}}function h(e){let t={host:null,headers:{},settings:{},streaming:!1};if(e.length>0){let n=e[e.length-1];if("string"==typeof n)t.authenticator=P(e.pop());else if(s(n)){let n=Object.assign({},e.pop()),r=Object.keys(n).filter(e=>!i.includes(e));if(r.length&&f(`Invalid options found (${r.join(", ")}); ignoring.`),n.apiKey&&(t.authenticator=P(n.apiKey)),n.idempotencyKey&&(t.headers["Idempotency-Key"]=n.idempotencyKey),n.stripeAccount&&(t.headers["Stripe-Account"]=n.stripeAccount),n.stripeContext){if(t.headers["Stripe-Account"])throw Error("Can't specify both stripeAccount and stripeContext.");t.headers["Stripe-Context"]=n.stripeContext}if(n.apiVersion&&(t.headers["Stripe-Version"]=n.apiVersion),Number.isInteger(n.maxNetworkRetries)&&(t.settings.maxNetworkRetries=n.maxNetworkRetries),Number.isInteger(n.timeout)&&(t.settings.timeout=n.timeout),n.host&&(t.host=n.host),n.authenticator){if(n.apiKey)throw Error("Can't specify both apiKey and authenticator.");if("function"!=typeof n.authenticator)throw Error("The authenticator must be a function receiving a request as the first parameter.");t.authenticator=n.authenticator}n.additionalHeaders&&(t.headers=n.additionalHeaders),n.streaming&&(t.streaming=!0)}}return t}function m(e){if("object"!=typeof e)throw Error("Argument must be an object");return Object.keys(e).reduce((t,n)=>(null!=e[n]&&(t[n]=e[n]),t),{})}function p(e,t){return t?e.then(e=>{setTimeout(()=>{t(null,e)},0)},e=>{setTimeout(()=>{t(e,null)},0)}):e}function f(e){return"function"!=typeof a.emitWarning?console.warn(`Stripe: ${e}`):a.emitWarning(e,"Stripe")}function v(e,t,n){if(!Number.isInteger(t)){if(void 0!==n)return n;throw Error(`${e} must be an integer`)}return t}function P(e){let t=t=>(t.headers.Authorization="Bearer "+e,Promise.resolve());return t._apiKey=e,t}function y(e,t){return this[e]instanceof Date?Math.floor(this[e].getTime()/1e3).toString():t}function g(e){return e&&e.startsWith("/v2")?"v2":"v1"}function T(e){return Array.isArray(e)?e.join(", "):String(e)}class _{getClientName(){throw Error("getClientName not implemented.")}makeRequest(e,t,n,r,o,a,i,s){throw Error("makeRequest not implemented.")}static makeTimeoutError(){let e=TypeError(_.TIMEOUT_ERROR_CODE);return e.code=_.TIMEOUT_ERROR_CODE,e}}_.CONNECTION_CLOSED_ERROR_CODES=["ECONNRESET","EPIPE"],_.TIMEOUT_ERROR_CODE="ETIMEDOUT";class E{constructor(e,t){this._statusCode=e,this._headers=t}getStatusCode(){return this._statusCode}getHeaders(){return this._headers}getRawResponse(){throw Error("getRawResponse not implemented.")}toStream(e){throw Error("toStream not implemented.")}toJSON(){throw Error("toJSON not implemented.")}}class b extends _{constructor(e){if(super(),!e){if(!globalThis.fetch)throw Error("fetch() function not provided and is not defined in the global scope. You must provide a fetch implementation.");e=globalThis.fetch}globalThis.AbortController?this._fetchFn=b.makeFetchWithAbortTimeout(e):this._fetchFn=b.makeFetchWithRaceTimeout(e)}static makeFetchWithRaceTimeout(e){return(t,n,r)=>{let o;let a=new Promise((e,t)=>{o=setTimeout(()=>{o=null,t(_.makeTimeoutError())},r)});return Promise.race([e(t,n),a]).finally(()=>{o&&clearTimeout(o)})}}static makeFetchWithAbortTimeout(e){return async(t,n,r)=>{let o=new AbortController,a=setTimeout(()=>{a=null,o.abort(_.makeTimeoutError())},r);try{return await e(t,Object.assign(Object.assign({},n),{signal:o.signal}))}catch(e){if("AbortError"===e.name)throw _.makeTimeoutError();throw e}finally{a&&clearTimeout(a)}}}getClientName(){return"fetch"}async makeRequest(e,t,n,r,o,a,i,s){let l=new URL(n,`${"http"===i?"http":"https"}://${e}`);l.port=t;let c="POST"==r||"PUT"==r||"PATCH"==r;return new S(await this._fetchFn(l.toString(),{method:r,headers:Object.entries(o).map(([e,t])=>[e,T(t)]),body:a||(c?"":void 0)},s))}}class S extends E{constructor(e){super(e.status,S._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 n of e){if(!Array.isArray(n)||2!=n.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[n[0]]=n[1]}return t}}class O{computeHMACSignature(e,t){throw Error("computeHMACSignature not implemented.")}computeHMACSignatureAsync(e,t){throw Error("computeHMACSignatureAsync not implemented.")}computeSHA256Async(e){throw Error("computeSHA256 not implemented.")}}
1class x extends Error{}class w extends O{constructor(e){super(),this.subtleCrypto=e||crypto.subtle}computeHMACSignature(e,t){throw new x("SubtleCryptoProvider cannot be used in a synchronous context.")}async computeHMACSignatureAsync(e,t){let n=new TextEncoder,r=await this.subtleCrypto.importKey("raw",n.encode(t),{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),o=new Uint8Array(await this.subtleCrypto.sign("hmac",r,n.encode(e))),a=Array(o.length);for(let e=0;e<o.length;e++)a[e]=C[o[e]];return a.join("")}async computeSHA256Async(e){return new Uint8Array(await this.subtleCrypto.digest("SHA-256",e))}}let C=Array(256);for(let e=0;e<C.length;e++)C[e]=e.toString(16).padStart(2,"0");class G{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 n=e.length,r=0;for(let o=0;o<n;++o)r|=e.charCodeAt(o)^t.charCodeAt(o);return 0===r}createEmitter(){throw Error("createEmitter not implemented.")}tryBufferData(e){throw Error("tryBufferData not implemented.")}createNodeHttpClient(e){throw Error("createNodeHttpClient not implemented.")}createFetchHttpClient(e){return new b(e)}createDefaultHttpClient(){throw Error("createDefaultHttpClient not implemented.")}createNodeCryptoProvider(){throw Error("createNodeCryptoProvider not implemented.")}createSubtleCryptoProvider(e){return new w(e)}createDefaultCryptoProvider(){throw Error("createDefaultCryptoProvider not implemented.")}}class A extends Event{constructor(e,t){super(e),this.data=t}}class R{constructor(){this.eventTarget=new EventTarget,this.listenerMapping=new Map}on(e,t){let n=e=>{t(e.data)};return this.listenerMapping.set(t,n),this.eventTarget.addEventListener(e,n)}removeListener(e,t){let n=this.listenerMapping.get(t);return this.listenerMapping.delete(t),this.eventTarget.removeEventListener(e,n)}once(e,t){let n=e=>{t(e.data)};return this.listenerMapping.set(t,n),this.eventTarget.addEventListener(e,n,{once:!0})}emit(e,t){return this.eventTarget.dispatchEvent(new A(e,t))}}class k extends G{getUname(){return Promise.resolve(null)}createEmitter(){return new R}tryBufferData(e){if(e.file.data instanceof ReadableStream)throw Error("Uploading a file as a stream is not supported in non-Node environments. Please open or upvote an issue at github.com/stripe/stripe-node if you use this, detailing your use-case.");return Promise.resolve(e)}createNodeHttpClient(){throw Error("Stripe: `createNodeHttpClient()` is not available in non-Node environments. Please use `createFetchHttpClient()` instead.")}createDefaultHttpClient(){return super.createFetchHttpClient()}createNodeCryptoProvider(){throw Error("Stripe: `createNodeCryptoProvider()` is not available in non-Node environments. Please use `createSubtleCryptoProvider()` instead.")}createDefaultCryptoProvider(){return this.createSubtleCryptoProvider()}}let I=e=>{switch(e.type){case"card_error":return new q(e);case"invalid_request_error":return new M(e);case"api_error":return new D(e);case"authentication_error":return new L(e);case"rate_limit_error":return new U(e);case"idempotency_error":return new $(e);case"invalid_grant":return new B(e);default:return new Z(e)}},j=e=>"temporary_session_expired"===e.type?new V(e):"invalid_fields"===e.code?new M(e):I(e);class N extends Error{constructor(e={},t=null){var n;super(e.message),this.type=t||this.constructor.name,this.raw=e,this.rawType=e.type,this.code=e.code,this.doc_url=e.doc_url,this.param=e.param,this.detail=e.detail,this.headers=e.headers,this.requestId=e.requestId,this.statusCode=e.statusCode,this.message=null!==(n=e.message)&&void 0!==n?n:"",this.userMessage=e.user_message,this.charge=e.charge,this.decline_code=e.decline_code,this.payment_intent=e.payment_intent,this.payment_method=e.payment_method,this.payment_method_type=e.payment_method_type,this.setup_intent=e.setup_intent,this.source=e.source}}N.generate=I;class q extends N{constructor(e={}){super(e,"StripeCardError")}}class M extends N{constructor(e={}){super(e,"StripeInvalidRequestError")}}class D extends N{constructor(e={}){super(e,"StripeAPIError")}}class L extends N{constructor(e={}){super(e,"StripeAuthenticationError")}}class H extends N{constructor(e={}){super(e,"StripePermissionError")}}class U extends N{constructor(e={}){super(e,"StripeRateLimitError")}}class F extends N{constructor(e={}){super(e,"StripeConnectionError")}}class z extends N{constructor(e,t,n={}){super(n,"StripeSignatureVerificationError"),this.header=e,this.payload=t}}class $ extends N{constructor(e={}){super(e,"StripeIdempotencyError")}}class B extends N{constructor(e={}){super(e,"StripeInvalidGrantError")}}class Z extends N{constructor(e={}){super(e,"StripeUnknownError")}}class V extends N{constructor(e={}){super(e,"TemporarySessionExpiredError")}}class K{constructor(e,t){this._stripe=e,this._maxBufferedRequestMetric=t}_normalizeStripeContext(e,t){return e?e.toString()||null:(null==t?void 0:t.toString())||null}_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,n){let r=Date.now(),o=r-e.request_start_time;return m({api_version:n["stripe-version"],account:n["stripe-account"],idempotency_key:n["idempotency-key"],method:e.method,path:e.path,status:t,request_id:this._getRequestId(n),elapsed:o,request_start_time:e.request_start_time,request_end_time:r})}_getRequestId(e){return e["request-id"]}_streamingResponseHandler(e,t,n){return r=>{let o=r.getHeaders(),a=r.toStream(()=>{let n=this._makeResponseEvent(e,r.getStatusCode(),o);this._stripe._emitter.emit("response",n),this._recordRequestMetrics(this._getRequestId(o),n.elapsed,t)});return this._addHeadersDirectlyToObject(a,o),n(null,a)}}_jsonResponseHandler(e,t,n,r){return o=>{let a=o.getHeaders(),i=this._getRequestId(a),s=o.getStatusCode(),l=this._makeResponseEvent(e,s,a);this._stripe._emitter.emit("response",l),o.toJSON().then(e=>{if(e.error)throw"string"==typeof e.error&&(e.error={type:e.error,message:e.error_description}),e.error.headers=a,e.error.statusCode=s,e.error.requestId=i,401===s?new L(e.error):403===s?
1new H(e.error):429===s?new U(e.error):"v2"===t?j(e.error):I(e.error);return e},e=>{throw new D({message:"Invalid JSON received from the Stripe API",exception:e,requestId:a["request-id"]})}).then(e=>{this._recordRequestMetrics(i,l.elapsed,n);let t=o.getRawResponse();this._addHeadersDirectlyToObject(t,a),Object.defineProperty(e,"lastResponse",{enumerable:!1,writable:!1,value:t}),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,n,r){return!!(r&&0===t&&_.CONNECTION_CLOSED_ERROR_CODES.includes(r.code))||!(t>=n)&&(!e||"false"!==e.getHeaders()["stripe-should-retry"]&&!!("true"===e.getHeaders()["stripe-should-retry"]||409===e.getStatusCode()||e.getStatusCode()>=500))}_getSleepTimeInMS(e,t=null){let n=this._stripe.getInitialNetworkRetryDelay(),r=Math.min(n*Math.pow(2,e-1),this._stripe.getMaxNetworkRetryDelay());return r*=.5*(1+Math.random()),r=Math.max(n,r),Number.isInteger(t)&&t<=60&&(r=Math.max(r,t)),1e3*r}_getMaxNetworkRetries(e={}){return void 0!==e.maxNetworkRetries&&Number.isInteger(e.maxNetworkRetries)?e.maxNetworkRetries:this._stripe.getMaxNetworkRetries()}_defaultIdempotencyKey(e,t,n){let r=this._getMaxNetworkRetries(t),o=()=>`stripe-node-retry-${this._stripe._platformFunctions.uuid4()}`;if("v2"===n){if("POST"===e||"DELETE"===e)return o()}else if("v1"===n&&"POST"===e&&r>0)return o();return null}_makeHeaders({contentType:e,contentLength:t,apiVersion:n,clientUserAgent:r,method:o,userSuppliedHeaders:a,userSuppliedSettings:i,stripeAccount:s,stripeContext:l,apiMode:c}){let u={Accept:"application/json","Content-Type":e,"User-Agent":this._getUserAgentString(c),"X-Stripe-Client-User-Agent":r,"X-Stripe-Client-Telemetry":this._getTelemetryHeader(),"Stripe-Version":n,"Stripe-Account":s,"Stripe-Context":l,"Idempotency-Key":this._defaultIdempotencyKey(o,i,c)},d="POST"==o||"PUT"==o||"PATCH"==o;return(d||t)&&(d||f(`${o} method had non-zero contentLength but no payload is expected for this verb`),u["Content-Length"]=t),Object.assign(m(u),a&&"object"==typeof a?Object.keys(a).reduce((e,t)=>(e[t.split("-").map(e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()).join("-")]=a[t],e),{}):a)}_getUserAgentString(e){let t=this._stripe.getConstant("PACKAGE_VERSION"),n=this._stripe._appInfo?this._stripe.getAppInfoAsString():"";return`Stripe/${e} NodeBindings/${t} ${n}`.trim()}_getTelemetryHeader(){if(this._stripe.getTelemetryEnabled()&&this._stripe._prevRequestMetrics.length>0)return JSON.stringify({last_request_metrics:this._stripe._prevRequestMetrics.shift()})}_recordRequestMetrics(e,t,n){if(this._stripe.getTelemetryEnabled()&&e){if(this._stripe._prevRequestMetrics.length>this._maxBufferedRequestMetric)f("Request metrics buffer is full, dropping telemetry message.");else{let r={request_id:e,request_duration_ms:t};n&&n.length>0&&(r.usage=n),this._stripe._prevRequestMetrics.push(r)}}}_rawRequest(e,t,n,r,o){return new Promise((a,i)=>{let s;try{let a=e.toUpperCase();if("POST"!==a&&n&&0!==Object.keys(n).length)throw Error("rawRequest only supports params on POST requests. Please pass null and add your parameters to path.");let i=[].slice.call([n,r]),l=d(i),c="POST"===a?Object.assign({},l):null,u=h(i),m=u.headers,p=u.authenticator;s={requestMethod:a,requestPath:t,bodyData:c,queryData:{},authenticator:p,headers:m,host:u.host,streaming:!!u.streaming,settings:{},usage:o||["raw_request"]}}catch(e){i(e);return}let{headers:l,settings:c}=s,u=s.authenticator;this._request(s.requestMethod,s.host,t,s.bodyData,u,{headers:l,settings:c,streaming:s.streaming},s.usage,function(e,t){e?i(e):a(t)})})}_getContentLength(e){return"string"==typeof e?new TextEncoder().encode(e).length:e.length}_request(e,t,n,r,o,a,i=[],s,l=null){var u;let d;o=null!==(u=null!=o?o:this._stripe._authenticator)&&void 0!==u?u:null;let h=g(n),p=(e,t,n,r,o)=>setTimeout(e,this._getSleepTimeInMS(r,o),t,n,r+1),f=(r,l,c)=>{let u=a.settings&&a.settings.timeout&&Number.isInteger(a.settings.timeout)&&a.settings.timeout>=0?a.settings.timeout:this._stripe.getApiField("timeout"),v={host:t||this._stripe.getApiField("host"),port:this._stripe.getApiField("port"),path:n,method:e,headers:Object.assign({},l),body:d,protocol:this._stripe.getApiField("protocol")};o(v).then(()=>
1{let t=this._stripe.getApiField("httpClient").makeRequest(v.host,v.port,v.path,v.method,v.headers,v.body,v.protocol,u),o=Date.now(),d=m({api_version:r,account:T(l["Stripe-Account"]),idempotency_key:T(l["Idempotency-Key"]),method:e,path:n,request_start_time:o}),P=c||0,y=this._getMaxNetworkRetries(a.settings||{});this._stripe._emitter.emit("request",d),t.then(e=>{if(K._shouldRetry(e,P,y)){var t;return p(f,r,l,P,Number(Array.isArray(t=e.getHeaders()["retry-after"])?t[0]:t))}return a.streaming&&400>e.getStatusCode()?this._streamingResponseHandler(d,i,s)(e):this._jsonResponseHandler(d,h,i,s)(e)}).catch(e=>K._shouldRetry(null,P,y,e)?p(f,r,l,P,null):s(new F({message:e.code&&e.code===_.TIMEOUT_ERROR_CODE?`Request aborted due to timeout being reached (${u}ms)`:K._generateConnectionErrorMessage(P),detail:e})))}).catch(e=>{throw new N({message:"Unable to authenticate the request",exception:e})})},v=(t,n)=>{if(t)return s(t);d=n,this._stripe.getClientUserAgent(t=>{var r,o,i;let s=this._stripe.getApiField("version"),l=this._makeHeaders({contentType:"v2"==h?"application/json":"application/x-www-form-urlencoded",contentLength:this._getContentLength(n),apiVersion:s,clientUserAgent:t,method:e,userSuppliedHeaders:null!==(r=a.headers)&&void 0!==r?r:null,userSuppliedSettings:null!==(o=a.settings)&&void 0!==o?o:{},stripeAccount:null!==(i=a.stripeAccount)&&void 0!==i?i:this._stripe.getApiField("stripeAccount"),stripeContext:this._normalizeStripeContext(a.stripeContext,this._stripe.getApiField("stripeContext")),apiMode:h});f(s,l,0)})};if(l)l(e,r,a.headers,v);else{let e;v(null,"v2"==h?r?JSON.stringify(r,y):"":c(r||{}))}}}class W{constructor(e,t,n,r){this.index=0,this.pagePromise=e,this.promiseCache={currentPromise:null},this.requestArgs=t,this.spec=n,this.stripeResource=r}async iterate(e){if(!(e&&e.data&&"number"==typeof e.data.length))throw Error("Unexpected: Stripe API response does not have a well-formed `data` array.");let t=et(this.requestArgs);if(this.index<e.data.length){let n=t?e.data.length-1-this.index:this.index,r=e.data[n];return this.index+=1,{value:r,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 X extends W{getNextPage(e){let t=et(this.requestArgs),n=function(e,t){let n=t?0:e.data.length-1,r=e.data[n],o=r&&r.id;if(!o)throw Error("Unexpected: No `id` found on the last item while auto-paging a list.");return o}(e,t);return this.stripeResource._makeRequest(this.requestArgs,this.spec,{[t?"ending_before":"starting_after"]:n})}}class J extends W{getNextPage(e){if(!e.next_page)throw Error("Unexpected: Stripe API response does not have a well-formed `next_page` field, but `has_more` was true.");return this.stripeResource._makeRequest(this.requestArgs,this.spec,{page:e.next_page})}}class Y{constructor(e,t,n,r){this.firstPagePromise=e,this.currentPageIterator=null,this.nextPageUrl=null,this.requestArgs=t,this.spec=n,this.stripeResource=r}async initFirstPage(){if(this.firstPagePromise){let e=await this.firstPagePromise;this.firstPagePromise=null,this.currentPageIterator=e.data[Symbol.iterator](),this.nextPageUrl=e.next_page_url||null}}async turnPage(){if(!this.nextPageUrl)return null;this.spec.fullPath=this.nextPageUrl;let e=await this.stripeResource._makeRequest([],this.spec,{});return this.nextPageUrl=e.next_page_url||null,this.currentPageIterator=e.data[Symbol.iterator](),this.currentPageIterator}async next(){if(await this.initFirstPage(),this.currentPageIterator){let e=this.currentPageIterator.next();if(!e.done)return{done:!1,value:e.value}}let e=await this.turnPage();if(!e)return{done:!0,value:void 0};let t=e.next();return t.done?{done:!0,value:void 0}:{done:!1,value:t.value}}}let Q=(e,t,n,r)=>{let o=g(n.fullPath||n.path);return"v2"!==o&&"search"===n.methodType?ee(new J(r,t,n,e)):"v2"!==o&&"list"===n.methodType?ee(new X(r,t,n,e)):"v2"===o&&"list"===n.methodType?ee(new Y(r,t,n,e)):null},ee=e=>{var t;let n=(t=(...t)=>e.next(...t),function(){let e=[].slice.call(arguments),n=function(e){if(0===e.length)return;let t=e[0];if("function"!=typeof t)throw Error(`The first argument to autoPagingEach, if present, must be a callback function; received ${typeof t}`);if(2===t.length)return t;if(t.length>2)throw Error(`The \`onItem\` callback function passed to autoPagingEach must accept at most two arguments; got ${t}`);
1return function(e,n){n(t(e))}}(e),r=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 p(new Promise((e,r)=>{t().then(function r(o){if(o.done){e();return}let a=o.value;return new Promise(e=>{n(a,e)}).then(e=>!1===e?r({done:!0,value:void 0}):t().then(r))}).catch(r)}),r)}),r={autoPagingEach:n,autoPagingToArray:function(e,t){let r=e&&e.limit;if(!r)throw Error("You must pass a `limit` option to autoPagingToArray, e.g., `autoPagingToArray({limit: 1000});`.");if(r>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 p(new Promise((e,t)=>{let o=[];n(e=>{if(o.push(e),o.length>=r)return!1}).then(()=>{e(o)}).catch(t)}),t)},next:()=>e.next(),return:()=>({}),["undefined"!=typeof Symbol&&Symbol.asyncIterator?Symbol.asyncIterator:"@@asyncIterator"]:()=>r};return r};function et(e){return!!d([].slice.call(e)).ending_before}function en(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=u(this.basePath||e.getApiField("basePath")),this.resourcePath=this.path,this.path=u(this.path),this.initialize(...arguments)}en.extend=function(e){let t=this,n=Object.prototype.hasOwnProperty.call(e,"constructor")?e.constructor:function(...e){t.apply(this,e)};return Object.assign(n,t),n.prototype=Object.create(t.prototype),Object.assign(n.prototype,e),n},en.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 n="function"==typeof t[t.length-1]&&t.pop();e.urlParams=function(e){let t=e.match(/\{\w+\}/g);return t?t.map(e=>e.replace(/[{}]/g,"")):[]}
1(e.fullPath||this.createResourcePathWithSymbols(e.path||""));let r=p(this._makeRequest(t,e,{}),n);return Object.assign(r,Q(this,t,e,r)),r}},en.MAX_BUFFERED_REQUEST_METRICS=100,en.prototype={_stripe:null,path:"",resourcePath:"",basePath:null,initialize(){},requestDataProcessor:null,validateRequest:null,createFullPath(e,t){let n=[this.basePath(t),this.path(t)];if("function"==typeof e){let r=e(t);r&&n.push(r)}else n.push(e);return this._joinUrlParts(n)},createResourcePathWithSymbols(e){return e?`/${this._joinUrlParts([this.resourcePath,e])}`:`/${this.resourcePath}`},_joinUrlParts:e=>e.join("/").replace(/\/{2,}/g,"/"),_getRequestOpts(e,t,n){var r;let o=(t.method||"GET").toUpperCase(),a=t.usage||[],i=t.urlParams||[],s=t.encode||(e=>e),l=!!t.fullPath,c=u(l?t.fullPath:t.path||""),m=l?t.fullPath:this.createResourcePathWithSymbols(t.path),p=[].slice.call(e),f=i.reduce((e,t)=>{let n=p.shift();if("string"!=typeof n)throw Error(`Stripe: Argument "${t}" must be a string, but got: ${n} (on API request to \`${o} ${m}\`)`);return e[t]=n,e},{}),v=s(Object.assign({},d(p),n)),P=h(p),y=P.host||t.host,g=!!t.streaming||!!P.streaming;if(p.filter(e=>null!=e).length)throw Error(`Stripe: Unknown arguments (${p}). Did you mean to pass an options object? See https://github.com/stripe/stripe-node/wiki/Passing-Options. (on API request to ${o} \`${m}\`)`);let T=l?c(f):this.createFullPath(c,f),_=Object.assign(P.headers,t.headers);t.validator&&t.validator(v,{headers:_});let E="GET"===t.method||"DELETE"===t.method;return{requestMethod:o,requestPath:T,bodyData:E?null:v,queryData:E?v:{},authenticator:null!==(r=P.authenticator)&&void 0!==r?r:null,headers:_,host:null!=y?y:null,streaming:g,settings:P.settings,usage:a}},_makeRequest(e,t,n){return new Promise((r,o)=>{var a;let i;try{i=this._getRequestOpts(e,t,n)}catch(e){o(e);return}let s=0===Object.keys(i.queryData).length,l=[i.requestPath,s?"":"?",c(i.queryData)].join(""),{headers:u,settings:d}=i;this._stripe._requestSender._request(i.requestMethod,i.host,l,i.bodyData,i.authenticator,{headers:u,settings:d,streaming:i.streaming},i.usage,function(e,n){e?o(e):r(t.transformResponseData?t.transformResponseData(n):n)},null===(a=this.requestDataProcessor)||void 0===a?void 0:a.bind(this))})}};class er{constructor(e=[]){this._segments=[...e]}get segments(){return[...this._segments]}push(e){if(!e)throw Error("Segment cannot be null or undefined");return new er([...this._segments,e])}pop(){if(0===this._segments.length)throw Error("Cannot pop from an empty context");return new er(this._segments.slice(0,-1))}toString(){return this._segments.join("/")}static parse(e){return new er(e?e.split("/"):[])}}let eo="2026-02-25.clover";function ea(e,t){for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let r=n[0].toLowerCase()+n.substring(1),o=new t[n](e);this[r]=o}}function ei(e,t){return function(e){return new ea(e,t)}}let es=en.method,el=en.extend({create:es({method:"POST",fullPath:"/v2/core/account_links"})}),ec=en.method,eu=en.extend({create:ec({method:"POST",fullPath:"/v2/core/account_tokens"}),retrieve:ec({method:"GET",fullPath:"/v2/core/account_tokens/{id}"})}),ed=en.method,eh=en.extend({retrieve:ed({method:"GET",fullPath:"/v1/financial_connections/accounts/{account}"}),list:ed({method:"GET",fullPath:"/v1/financial_connections/accounts",methodType:"list"}),disconnect:ed({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/disconnect"}),listOwners:ed({method:"GET",fullPath:"/v1/financial_connections/accounts/{account}/owners",methodType:"list"}),refresh:ed({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/refresh"}),subscribe:ed({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/subscribe"}),unsubscribe:ed({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/unsubscribe"})}),em=en.method,ep=en.extend({create:em({method:"POST",fullPath:"/v2/core/accounts/{account_id}/persons"}),retrieve:em({method:"GET",fullPath:"/v2/core/accounts/{account_id}/persons/{id}"}),update:em({method:"POST",fullPath:"/v2/core/accounts/{account_id}/persons/{id}"}),list:em({method:"GET",fullPath:"/v2/core/accounts/{account_id}/persons",methodType:"list"}),del:em({method:"DELETE",fullPath:"/v2/core/accounts/{account_id}/persons/{id}"})}),ef=en.method,ev=en.extend({create:ef({method:"POST",fullPath:"/v2/core/accounts/{account_id}/person_tokens"}),retrieve:ef({method:"GET",fullPath:"/v2/core/accounts/{account_id}/person_tokens/{id}"})}),eP=en.method,ey=en.extend({constructor:function(...e){en.apply(this,e),this.persons=new ep(...e),this.personTokens=new ev(...e)},create:eP({method:"POST",fullPath:"/v2/core/accounts"}),retrieve:eP({method:"GET",fullPath:"/v2/core/accounts/{id}"}),update:eP({method:"POST",fullPath:"/v2/core/accounts/{id}"}),list:eP({method:"GET",fullPath:"/v2/core/accounts",methodType:"list"}),close:eP({method:"POST",fullPath:"/v2/core/accounts/{id}/close"})}),eg=en.method,eT=en.extend({retrieve:eg({method:"GET",fullPath:"/v1/entitlements/active_entitlements/{id}"}),list:eg({method:"GET",fullPath:"/v1/entitlements/active_entitlements",methodType:"list"})}),e_=en.method,eE=en.extend({create:e_({method:"POST",fullPath:"/v1/billing/alerts"}
1),retrieve:e_({method:"GET",fullPath:"/v1/billing/alerts/{id}"}),list:e_({method:"GET",fullPath:"/v1/billing/alerts",methodType:"list"}),activate:e_({method:"POST",fullPath:"/v1/billing/alerts/{id}/activate"}),archive:e_({method:"POST",fullPath:"/v1/billing/alerts/{id}/archive"}),deactivate:e_({method:"POST",fullPath:"/v1/billing/alerts/{id}/deactivate"})}),eb=en.method,eS=en.extend({find:eb({method:"GET",fullPath:"/v1/tax/associations/find"})}),eO=en.method,ex=en.extend({retrieve:eO({method:"GET",fullPath:"/v1/issuing/authorizations/{authorization}"}),update:eO({method:"POST",fullPath:"/v1/issuing/authorizations/{authorization}"}),list:eO({method:"GET",fullPath:"/v1/issuing/authorizations",methodType:"list"}),approve:eO({method:"POST",fullPath:"/v1/issuing/authorizations/{authorization}/approve"}),decline:eO({method:"POST",fullPath:"/v1/issuing/authorizations/{authorization}/decline"})}),ew=en.method,eC=en.extend({create:ew({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations"}),capture:ew({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/capture"}),expire:ew({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/expire"}),finalizeAmount:ew({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/finalize_amount"}),increment:ew({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/increment"}),respond:ew({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/fraud_challenges/respond"}),reverse:ew({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/reverse"})}),eG=en.method,eA=en.extend({create:eG({method:"POST",fullPath:"/v1/tax/calculations"}),retrieve:eG({method:"GET",fullPath:"/v1/tax/calculations/{calculation}"}),listLineItems:eG({method:"GET",fullPath:"/v1/tax/calculations/{calculation}/line_items",methodType:"list"})}),eR=en.method,ek=en.extend({create:eR({method:"POST",fullPath:"/v1/issuing/cardholders"}),retrieve:eR({method:"GET",fullPath:"/v1/issuing/cardholders/{cardholder}"}),update:eR({method:"POST",fullPath:"/v1/issuing/cardholders/{cardholder}"}),list:eR({method:"GET",fullPath:"/v1/issuing/cardholders",methodType:"list"})}),eI=en.method,ej=en.extend({create:eI({method:"POST",fullPath:"/v1/issuing/cards"}),retrieve:eI({method:"GET",fullPath:"/v1/issuing/cards/{card}"}),update:eI({method:"POST",fullPath:"/v1/issuing/cards/{card}"}),list:eI({method:"GET",fullPath:"/v1/issuing/cards",methodType:"list"})}),eN=en.method,eq=en.extend({deliverCard:eN({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/deliver"}),failCard:eN({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/fail"}),returnCard:eN({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/return"}),shipCard:eN({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/ship"}),submitCard:eN({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/submit"})}),eM=en.method,eD=en.extend({create:eM({method:"POST",fullPath:"/v1/billing_portal/configurations"}),retrieve:eM({method:"GET",fullPath:"/v1/billing_portal/configurations/{configuration}"}),update:eM({method:"POST",fullPath:"/v1/billing_portal/configurations/{configuration}"}),list:eM({method:"GET",fullPath:"/v1/billing_portal/configurations",methodType:"list"})}),eL=en.method,eH=en.extend({create:eL({method:"POST",fullPath:"/v1/terminal/configurations"}),retrieve:eL({method:"GET",fullPath:"/v1/terminal/configurations/{configuration}"}),update:eL({method:"POST",fullPath:"/v1/terminal/configurations/{configuration}"}),list:eL({method:"GET",fullPath:"/v1/terminal/configurations",methodType:"list"}),del:eL({method:"DELETE",fullPath:"/v1/terminal/configurations/{configuration}"})}),eU=en.method,eF=en.extend({create:eU({method:"POST",fullPath:"/v1/test_helpers/confirmation_tokens"})}),ez=en.method,e$=en.extend({create:ez({method:"POST",fullPath:"/v1/terminal/connection_tokens"})}),eB=en.method,eZ=en.extend({retrieve:eB({method:"GET",fullPath:"/v1/billing/credit_balance_summary"})}),eV=en.method,eK=en.extend({retrieve:eV({method:"GET",fullPath:"/v1/billing/credit_balance_transactions/{id}"}),list:eV({method:"GET",fullPath:"/v1/billing/credit_balance_transactions",methodType:"list"})}),eW=en.method,eX=en.extend({create:eW({method:"POST",fullPath:"/v1/billing/credit_grants"}),retrieve:eW({method:"GET",fullPath:"/v1/billing/credit_grants/{id}"}),update:eW({method:"POST",fullPath:"/v1/billing/credit_grants/{id}"}),list:eW({method:"GET",fullPath:"/v1/billing/credit_grants",methodType:"list"}),expire:eW({method:"POST",fullPath:"/v1/billing/credit_grants/{id}/expire"}),voidGrant:eW({method:"POST",fullPath:"/v1/billing/credit_grants/{id}/void"})}),eJ=en.method,eY=en.extend({create:eJ({method:"POST",fullPath:"/v1/treasury/credit_reversals"}),retrieve:eJ({method:"GET",fullPath:"/v1/treasury/credit_reversals/{credit_reversal}"}),list:eJ({method:"GET",fullPath:"/v1/treasury/credit_reversals",methodType:"list"})}),eQ=en.method,e1=en.extend({fundCashBalance:eQ({method:"POST",fullPath:"/v1/test_helpers/customers/{customer}/fund_cash_balance"})}),e0=en.method,e2=en.extend({create:e0({method:"POST",fullPath:"/v1/treasury/debit_reversals"}),retrieve:e0({method:"GET",fullPath:"/v1/treasury/debit_reversals/{debit_reversal}"}),list:e0({method:"GET",fullPath:"/v1/treasury/debit_reversals",methodType:"list"})}),e6=en.method,e4=en.extend({create:e6({method:"POST",fullPath:"/v1/issuing/disputes"}),retrieve:e6({method:"GET",fullPath:"/v1/issuing/disputes/{dispute}"}),update:e6({method:"POST",fullPath:"/v1/issuing/disputes/{dispute}"}),list:e6({method:"GET",fullPath:"/v1/issuing/disputes",methodType:"list"}),submit:e6({method:"POST",fullPath:"/v1/issuing/disputes/{dispute}/submit"})}),e8=en.method,e3=en.extend({retrieve:e8({method:"GET",fullPath:"/v1/radar/early_fraud_warnings/{early_fraud_warning}"}),list:e8({method:"GET",fullPath:"/v1/radar/early_fraud_warnings",methodType:"list"})}),e9=en.method,e5=en.extend({create:e9({method:"POST",fullPath:"/v2/core/event_destinations"}),retrieve:e9({method:"GET",fullPath:"/v2/core/event_destinations/{id}"}),update:e9({method:"POST",fullPath:"/v2/core/event_destinations/{id}"}),list:e9({method:"GET",fullPath:"/v2/core/event_destinations",methodType:"list"}),del:e9({method:"DELETE",fullPath:"/v2/core/event_destinations/{id}"}),disable:e9({method:"POST",fullPath:"/v2/core/event_destinations/{id}/disable"}),enable:e9({method:"POST",fullPath:"/v2/core/event_destinations/{id}
1/enable"}),ping:e9({method:"POST",fullPath:"/v2/core/event_destinations/{id}/ping"})}),e7=en.method,te=en.extend({retrieve(...e){return e7({method:"GET",fullPath:"/v2/core/events/{id}",transformResponseData:e=>this.addFetchRelatedObjectIfNeeded(e)}).apply(this,e)},list(...e){return e7({method:"GET",fullPath:"/v2/core/events",methodType:"list",transformResponseData:e=>Object.assign(Object.assign({},e),{data:e.data.map(this.addFetchRelatedObjectIfNeeded.bind(this))})}).apply(this,e)},addFetchRelatedObjectIfNeeded(e){return e.related_object&&e.related_object.url?Object.assign(Object.assign({},e),{fetchRelatedObject:()=>e7({method:"GET",fullPath:e.related_object.url}).apply(this,[{stripeContext:e.context}])}):e}}),tt=en.method,tn=en.extend({create:tt({method:"POST",fullPath:"/v1/entitlements/features"}),retrieve:tt({method:"GET",fullPath:"/v1/entitlements/features/{id}"}),update:tt({method:"POST",fullPath:"/v1/entitlements/features/{id}"}),list:tt({method:"GET",fullPath:"/v1/entitlements/features",methodType:"list"})}),tr=en.method,to=en.extend({create:tr({method:"POST",fullPath:"/v1/treasury/financial_accounts"}),retrieve:tr({method:"GET",fullPath:"/v1/treasury/financial_accounts/{financial_account}"}),update:tr({method:"POST",fullPath:"/v1/treasury/financial_accounts/{financial_account}"}),list:tr({method:"GET",fullPath:"/v1/treasury/financial_accounts",methodType:"list"}),close:tr({method:"POST",fullPath:"/v1/treasury/financial_accounts/{financial_account}/close"}),retrieveFeatures:tr({method:"GET",fullPath:"/v1/treasury/financial_accounts/{financial_account}/features"}),updateFeatures:tr({method:"POST",fullPath:"/v1/treasury/financial_accounts/{financial_account}/features"})}),ta=en.method,ti=en.extend({fail:ta({method:"POST",fullPath:"/v1/test_helpers/treasury/inbound_transfers/{id}/fail"}),returnInboundTransfer:ta({method:"POST",fullPath:"/v1/test_helpers/treasury/inbound_transfers/{id}/return"}),succeed:ta({method:"POST",fullPath:"/v1/test_helpers/treasury/inbound_transfers/{id}/succeed"})}),ts=en.method,tl=en.extend({create:ts({method:"POST",fullPath:"/v1/treasury/inbound_transfers"}),retrieve:ts({method:"GET",fullPath:"/v1/treasury/inbound_transfers/{id}"}),list:ts({method:"GET",fullPath:"/v1/treasury/inbound_transfers",methodType:"list"}),cancel:ts({method:"POST",fullPath:"/v1/treasury/inbound_transfers/{inbound_transfer}/cancel"})}),tc=en.method,tu=en.extend({create:tc({method:"POST",fullPath:"/v1/terminal/locations"}),retrieve:tc({method:"GET",fullPath:"/v1/terminal/locations/{location}"}),update:tc({method:"POST",fullPath:"/v1/terminal/locations/{location}"}),list:tc({method:"GET",fullPath:"/v1/terminal/locations",methodType:"list"}),del:tc({method:"DELETE",fullPath:"/v1/terminal/locations/{location}"})}),td=en.method,th=en.extend({create:td({method:"POST",fullPath:"/v1/billing/meter_event_adjustments"})}),tm=en.method,tp=en.extend({create:tm({method:"POST",fullPath:"/v2/billing/meter_event_adjustments"})}),tf=en.method,tv=en.extend({create:tf({method:"POST",fullPath:"/v2/billing/meter_event_session"})}),tP=en.method,ty=en.extend({create:tP({method:"POST",fullPath:"/v2/billing/meter_event_stream",host:"meter-events.stripe.com"})}),tg=en.method,tT=en.extend({create:tg({method:"POST",fullPath:"/v1/billing/meter_events"})}),t_=en.method,tE=en.extend({create:t_({method:"POST",fullPath:"/v2/billing/meter_events"})}),tb=en.method,tS=en.extend({create:tb({method:"POST",fullPath:"/v1/billing/meters"}),retrieve:tb({method:"GET",fullPath:"/v1/billing/meters/{id}"}),update:tb({method:"POST",fullPath:"/v1/billing/meters/{id}"}),list:tb({method:"GET",fullPath:"/v1/billing/meters",methodType:"list"}),deactivate:tb({method:"POST",fullPath:"/v1/billing/meters/{id}/deactivate"}),listEventSummaries:tb({method:"GET",fullPath:"/v1/billing/meters/{id}/event_summaries",methodType:"list"}),reactivate:tb({method:"POST",fullPath:"/v1/billing/meters/{id}/reactivate"})}),tO=en.method,tx=en.extend({create:tO({method:"POST",fullPath:"/v1/terminal/onboarding_links"})}),tw=en.method,tC=en.extend({create:tw({method:"POST",fullPath:"/v1/climate/orders"}),retrieve:tw({method:"GET",fullPath:"/v1/climate/orders/{order}"}),update:tw({method:"POST",fullPath:"/v1/climate/orders/{order}"}),list:tw({method:"GET",fullPath:"/v1/climate/orders",methodType:"list"}),cancel:tw({method:"POST",fullPath:"/v1/climate/orders/{order}/cancel"})}),tG=en.method,tA=en.extend({update:tG({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}"}),fail:tG({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}/fail"}),post:tG({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}/post"}),returnOutboundPayment:tG({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}/return"})}),tR=en.method,tk=en.extend({create:tR({method:"POST",fullPath:"/v1/treasury/outbound_payments"}),retrieve:tR({method:"GET",fullPath:"/v1/treasury/outbound_payments/{id}"}),list:tR({method:"GET",fullPath:"/v1/treasury/outbound_payments",methodType:"list"}),cancel:tR({method:"POST",fullPath:"/v1/treasury/outbound_payments/{id}/cancel"})}),tI=en.method,tj=en.extend({update:tI({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}"}),fail:tI({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/fail"}),post:tI({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/post"}),returnOutboundTransfer:tI({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/return"})}),tN=en.method,tq=en.extend({create:tN({method:"POST",fullPath:"/v1/treasury/outbound_transfers"}),retrieve:tN({method:"GET",fullPath:"/v1/treasury/outbound_transfers/{outbound_transfer}"}),list:tN({method:"GET",fullPath:"/v1/treasury/outbound_transfers",methodType:"list"}),cancel:tN({method:"POST",fullPath:"/v1/treasury/outbound_transfers/{outbound_transfer}/cancel"})}),tM=en.method,tD=en.extend({create:tM({method:"POST",fullPath:"/v1/radar/payment_evaluations"})}),tL=en.method,tH=en.extend({create:tL({method:"POST",fullPath:"/v1/issuing/personalization_designs"}),retrieve:tL({method:"GET",fullPath:"/v1/issuing/personalization_designs/{personalization_design}"}),update:tL({method:"POST",fullPath:"/v1/issuing/personalization_designs/{personalization_design}"}),list:tL({method:"GET",fullPath:"/v1/issuing/personalization_designs",methodType:"list"})}),tU=en.method,tF=en.extend({activate:tU({method:"POST",fullPath:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}
1/activate"}),deactivate:tU({method:"POST",fullPath:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}/deactivate"}),reject:tU({method:"POST",fullPath:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}/reject"})}),tz=en.method,t$=en.extend({retrieve:tz({method:"GET",fullPath:"/v1/issuing/physical_bundles/{physical_bundle}"}),list:tz({method:"GET",fullPath:"/v1/issuing/physical_bundles",methodType:"list"})}),tB=en.method,tZ=en.extend({retrieve:tB({method:"GET",fullPath:"/v1/climate/products/{product}"}),list:tB({method:"GET",fullPath:"/v1/climate/products",methodType:"list"})}),tV=en.method,tK=en.extend({create:tV({method:"POST",fullPath:"/v1/terminal/readers"}),retrieve:tV({method:"GET",fullPath:"/v1/terminal/readers/{reader}"}),update:tV({method:"POST",fullPath:"/v1/terminal/readers/{reader}"}),list:tV({method:"GET",fullPath:"/v1/terminal/readers",methodType:"list"}),del:tV({method:"DELETE",fullPath:"/v1/terminal/readers/{reader}"}),cancelAction:tV({method:"POST",fullPath:"/v1/terminal/readers/{reader}/cancel_action"}),collectInputs:tV({method:"POST",fullPath:"/v1/terminal/readers/{reader}/collect_inputs"}),collectPaymentMethod:tV({method:"POST",fullPath:"/v1/terminal/readers/{reader}/collect_payment_method"}),confirmPaymentIntent:tV({method:"POST",fullPath:"/v1/terminal/readers/{reader}/confirm_payment_intent"}),processPaymentIntent:tV({method:"POST",fullPath:"/v1/terminal/readers/{reader}/process_payment_intent"}),processSetupIntent:tV({method:"POST",fullPath:"/v1/terminal/readers/{reader}/process_setup_intent"}),refundPayment:tV({method:"POST",fullPath:"/v1/terminal/readers/{reader}/refund_payment"}),setReaderDisplay:tV({method:"POST",fullPath:"/v1/terminal/readers/{reader}/set_reader_display"})}),tW=en.method,tX=en.extend({presentPaymentMethod:tW({method:"POST",fullPath:"/v1/test_helpers/terminal/readers/{reader}/present_payment_method"}),succeedInputCollection:tW({method:"POST",fullPath:"/v1/test_helpers/terminal/readers/{reader}/succeed_input_collection"}),timeoutInputCollection:tW({method:"POST",fullPath:"/v1/test_helpers/terminal/readers/{reader}/timeout_input_collection"})}),tJ=en.method,tY=en.extend({create:tJ({method:"POST",fullPath:"/v1/test_helpers/treasury/received_credits"})}),tQ=en.method,t1=en.extend({retrieve:tQ({method:"GET",fullPath:"/v1/treasury/received_credits/{id}"}),list:tQ({method:"GET",fullPath:"/v1/treasury/received_credits",methodType:"list"})}),t0=en.method,t2=en.extend({create:t0({method:"POST",fullPath:"/v1/test_helpers/treasury/received_debits"})}),t6=en.method,t4=en.extend({retrieve:t6({method:"GET",fullPath:"/v1/treasury/received_debits/{id}"}),list:t6({method:"GET",fullPath:"/v1/treasury/received_debits",methodType:"list"})}),t8=en.method,t3=en.extend({expire:t8({method:"POST",fullPath:"/v1/test_helpers/refunds/{refund}/expire"})}),t9=en.method,t5=en.extend({create:t9({method:"POST",fullPath:"/v1/tax/registrations"}),retrieve:t9({method:"GET",fullPath:"/v1/tax/registrations/{id}"}),update:t9({method:"POST",fullPath:"/v1/tax/registrations/{id}"}),list:t9({method:"GET",fullPath:"/v1/tax/registrations",methodType:"list"})}),t7=en.method,ne=en.extend({create:t7({method:"POST",fullPath:"/v1/reporting/report_runs"}),retrieve:t7({method:"GET",fullPath:"/v1/reporting/report_runs/{report_run}"}),list:t7({method:"GET",fullPath:"/v1/reporting/report_runs",methodType:"list"})}),nt=en.method,nn=en.extend({retrieve:nt({method:"GET",fullPath:"/v1/reporting/report_types/{report_type}"}),list:nt({method:"GET",fullPath:"/v1/reporting/report_types",methodType:"list"})}),nr=en.method,no=en.extend({create:nr({method:"POST",fullPath:"/v1/forwarding/requests"}),retrieve:nr({method:"GET",fullPath:"/v1/forwarding/requests/{id}"}),list:nr({method:"GET",fullPath:"/v1/forwarding/requests",methodType:"list"})}),na=en.method,ni=en.extend({retrieve:na({method:"GET",fullPath:"/v1/sigma/scheduled_query_runs/{scheduled_query_run}"}),list:na({method:"GET",fullPath:"/v1/sigma/scheduled_query_runs",methodType:"list"})}),ns=en.method,nl=en.extend({create:ns({method:"POST",fullPath:"/v1/apps/secrets"}),list:ns({method:"GET",fullPath:"/v1/apps/secrets",methodType:"list"}),deleteWhere:ns({method:"POST",fullPath:"/v1/apps/secrets/delete"}),find:ns({method:"GET",fullPath:"/v1/apps/secrets/find"})}),nc=en.method,nu=en.extend({create:nc({method:"POST",fullPath:"/v1/billing_portal/sessions"})}),nd=en.method,nh=en.extend({create:nd({method:"POST",fullPath:"/v1/checkout/sessions"}),retrieve:nd({method:"GET",fullPath:"/v1/checkout/sessions/{session}"}),update:nd({method:"POST",fullPath:"/v1/checkout/sessions/{session}"}),list:nd({method:"GET",fullPath:"/v1/checkout/sessions",methodType:"list"}),expire:nd({method:"POST",fullPath:"/v1/checkout/sessions/{session}/expire"}),listLineItems:nd({method:"GET",fullPath:"/v1/checkout/sessions/{session}/line_items",methodType:"list"})}),nm=en.method,np=en.extend({create:nm({method:"POST",fullPath:"/v1/financial_connections/sessions"}),retrieve:nm({method:"GET",fullPath:"/v1/financial_connections/sessions/{session}"})}),nf=en.method,nv=en.extend({retrieve:nf({method:"GET",fullPath:"/v1/tax/sett
1ings"}),update:nf({method:"POST",fullPath:"/v1/tax/settings"})}),nP=en.method,ny=en.extend({retrieve:nP({method:"GET",fullPath:"/v1/climate/suppliers/{supplier}"}),list:nP({method:"GET",fullPath:"/v1/climate/suppliers",methodType:"list"})}),ng=en.method,nT=en.extend({create:ng({method:"POST",fullPath:"/v1/test_helpers/test_clocks"}),retrieve:ng({method:"GET",fullPath:"/v1/test_helpers/test_clocks/{test_clock}"}),list:ng({method:"GET",fullPath:"/v1/test_helpers/test_clocks",methodType:"list"}),del:ng({method:"DELETE",fullPath:"/v1/test_helpers/test_clocks/{test_clock}"}),advance:ng({method:"POST",fullPath:"/v1/test_helpers/test_clocks/{test_clock}/advance"})}),n_=en.method,nE=en.extend({retrieve:n_({method:"GET",fullPath:"/v1/issuing/tokens/{token}"}),update:n_({method:"POST",fullPath:"/v1/issuing/tokens/{token}"}),list:n_({method:"GET",fullPath:"/v1/issuing/tokens",methodType:"list"})}),nb=en.method,nS=en.extend({retrieve:nb({method:"GET",fullPath:"/v1/treasury/transaction_entries/{id}"}),list:nb({method:"GET",fullPath:"/v1/treasury/transaction_entries",methodType:"list"})}),nO=en.method,nx=en.extend({retrieve:nO({method:"GET",fullPath:"/v1/financial_connections/transactions/{transaction}"}),list:nO({method:"GET",fullPath:"/v1/financial_connections/transactions",methodType:"list"})}),nw=en.method,nC=en.extend({retrieve:nw({method:"GET",fullPath:"/v1/issuing/transactions/{transaction}"}),update:nw({method:"POST",fullPath:"/v1/issuing/transactions/{transaction}"}),list:nw({method:"GET",fullPath:"/v1/issuing/transactions",methodType:"list"})}),nG=en.method,nA=en.extend({retrieve:nG({method:"GET",fullPath:"/v1/tax/transactions/{transaction}"}),createFromCalculation:nG({method:"POST",fullPath:"/v1/tax/transactions/create_from_calculation"}),createReversal:nG({method:"POST",fullPath:"/v1/tax/transactions/create_reversal"}),listLineItems:nG({method:"GET",fullPath:"/v1/tax/transactions/{transaction}/line_items",methodType:"list"})}),nR=en.method,nk=en.extend({createForceCapture:nR({method:"POST",fullPath:"/v1/test_helpers/issuing/transactions/create_force_capture"}),createUnlinkedRefund:nR({method:"POST",fullPath:"/v1/test_helpers/issuing/transactions/create_unlinked_refund"}),refund:nR({method:"POST",fullPath:"/v1/test_helpers/issuing/transactions/{transaction}/refund"})}),nI=en.method,nj=en.extend({retrieve:nI({method:"GET",fullPath:"/v1/treasury/transactions/{id}"}),list:nI({method:"GET",fullPath:"/v1/treasury/transactions",methodType:"list"})}),nN=en.method,nq=en.extend({create:nN({method:"POST",fullPath:"/v1/radar/value_list_items"}),retrieve:nN({method:"GET",fullPath:"/v1/radar/value_list_items/{item}"}),list:nN({method:"GET",fullPath:"/v1/radar/value_list_items",methodType:"list"}),del:nN({method:"DELETE",fullPath:"/v1/radar/value_list_items/{item}"})}),nM=en.method,nD=en.extend({create:nM({method:"POST",fullPath:"/v1/radar/value_lists"}),retrieve:nM({method:"GET",fullPath:"/v1/radar/value_lists/{value_list}"}),update:nM({method:"POST",fullPath:"/v1/radar/value_lists/{value_list}"}),list:nM({method:"GET",fullPath:"/v1/radar/value_lists",methodType:"list"}),del:nM({method:"DELETE",fullPath:"/v1/radar/value_lists/{value_list}"})}),nL=en.method,nH=en.extend({retrieve:nL({method:"GET",fullPath:"/v1/identity/verification_reports/{report}"}),list:nL({method:"GET",fullPath:"/v1/identity/verification_reports",methodType:"list"})}),nU=en.method,nF=en.extend({create:nU({method:"POST",fullPath:"/v1/identity/verification_sessions"}),retrieve:nU({method:"GET",fullPath:"/v1/identity/verification_sessions/{session}"}),update:nU({method:"POST",fullPath:"/v1/identity/verification_sessions/{session}"}),list:nU({method:"GET",fullPath:"/v1/identity/verification_sessions",methodType:"list"}),cancel:nU({method:"POST",fullPath:"/v1/identity/verification_sessions/{session}/cancel"}),redact:nU({method:"POST",fullPath:"/v1/identity/verification_sessions/{session}/redact"})}),nz=en.method,n$=en.extend({create:nz({method:"POST",fullPath:"/v1/accounts"}),retrieve(e,...t){return"string"==typeof e?nz({method:"GET",fullPath:"/v1/accounts/{id}"}).apply(this,[e,...t]):(null==e&&[].shift.apply([e,...t]),nz({method:"GET",fullPath:"/v1/account"}).apply(this,[e,...t]))},update:nz({method:"POST",fullPath:"/v1/accounts/{account}"}),list:nz({method:"GET",fullPath:"/v1/accounts",methodType:"list"}),del:nz({method:"DELETE",fullPath:"/v1/accounts/{account}"}),createExternalAccount:nz({method:"POST",fullPath:"/v1/accounts/{account}/external_accounts"}),createLoginLink:nz({method:"POST",fullPath:"/v1/accounts/{account}/login_links"}),createPerson:nz({method:"POST",fullPath:"/v1/accounts/{account}/persons"}),deleteExternalAccount:nz({method:"DELETE",fullPath:"/v1/accounts/{account}/external_accounts/{id}"}),deletePerson:nz({method:"DELETE",fullPath:"/v1/accounts/{account}/persons/{person}"}),listCapabilities:nz({method:"GET",fullPath:"/v1/accounts/{account}/capabilities",methodType:"list"}),listExternalAccounts:nz({method:"GET",fullPath:"/v1/accounts/{account}/external_accounts",methodType:"list"}),listPersons:nz({method:"GET",fullPath:"/v1/accounts/{account}/persons",methodType:"list"}),reject:nz({method:"POST",fullPath:"/v1/accounts/{account}/reject"}),retrieveCurrent:nz({method:"GET",fullPath:"/v1/account"}),retrieveCapability:nz({method:"GET",fullPath:"/v1/accounts/{account}/capabilities/{capability}"}
1),retrieveExternalAccount:nz({method:"GET",fullPath:"/v1/accounts/{account}/external_accounts/{id}"}),retrievePerson:nz({method:"GET",fullPath:"/v1/accounts/{account}/persons/{person}"}),updateCapability:nz({method:"POST",fullPath:"/v1/accounts/{account}/capabilities/{capability}"}),updateExternalAccount:nz({method:"POST",fullPath:"/v1/accounts/{account}/external_accounts/{id}"}),updatePerson:nz({method:"POST",fullPath:"/v1/accounts/{account}/persons/{person}"})}),nB=en.method,nZ=en.extend({create:nB({method:"POST",fullPath:"/v1/account_links"})}),nV=en.method,nK=en.extend({create:nV({method:"POST",fullPath:"/v1/account_sessions"})}),nW=en.method,nX=en.extend({create:nW({method:"POST",fullPath:"/v1/apple_pay/domains"}),retrieve:nW({method:"GET",fullPath:"/v1/apple_pay/domains/{domain}"}),list:nW({method:"GET",fullPath:"/v1/apple_pay/domains",methodType:"list"}),del:nW({method:"DELETE",fullPath:"/v1/apple_pay/domains/{domain}"})}),nJ=en.method,nY=en.extend({retrieve:nJ({method:"GET",fullPath:"/v1/application_fees/{id}"}),list:nJ({method:"GET",fullPath:"/v1/application_fees",methodType:"list"}),createRefund:nJ({method:"POST",fullPath:"/v1/application_fees/{id}/refunds"}),listRefunds:nJ({method:"GET",fullPath:"/v1/application_fees/{id}/refunds",methodType:"list"}),retrieveRefund:nJ({method:"GET",fullPath:"/v1/application_fees/{fee}/refunds/{id}"}),updateRefund:nJ({method:"POST",fullPath:"/v1/application_fees/{fee}/refunds/{id}"})}),nQ=en.method,n1=en.extend({retrieve:nQ({method:"GET",fullPath:"/v1/balance"})}),n0=en.method,n2=en.extend({retrieve:n0({method:"GET",fullPath:"/v1/balance_settings"}),update:n0({method:"POST",fullPath:"/v1/balance_settings"})}),n6=en.method,n4=en.extend({retrieve:n6({method:"GET",fullPath:"/v1/balance_transactions/{id}"}),list:n6({method:"GET",fullPath:"/v1/balance_transactions",methodType:"list"})}),n8=en.method,n3=en.extend({create:n8({method:"POST",fullPath:"/v1/charges"}),retrieve:n8({method:"GET",fullPath:"/v1/charges/{charge}"}),update:n8({method:"POST",fullPath:"/v1/charges/{charge}"}),list:n8({method:"GET",fullPath:"/v1/charges",methodType:"list"}),capture:n8({method:"POST",fullPath:"/v1/charges/{charge}/capture"}),search:n8({method:"GET",fullPath:"/v1/charges/search",methodType:"search"})}),n9=en.method,n5=en.extend({retrieve:n9({method:"GET",fullPath:"/v1/confirmation_tokens/{confirmation_token}"})}),n7=en.method,re=en.extend({retrieve:n7({method:"GET",fullPath:"/v1/country_specs/{country}"}),list:n7({method:"GET",fullPath:"/v1/country_specs",methodType:"list"})}),rt=en.method,rn=en.extend({create:rt({method:"POST",fullPath:"/v1/coupons"}),retrieve:rt({method:"GET",fullPath:"/v1/coupons/{coupon}"}),update:rt({method:"POST",fullPath:"/v1/coupons/{coupon}"}),list:rt({method:"GET",fullPath:"/v1/coupons",methodType:"list"}),del:rt({method:"DELETE",fullPath:"/v1/coupons/{coupon}"})}),rr=en.method,ro=en.extend({create:rr({method:"POST",fullPath:"/v1/credit_notes"}),retrieve:rr({method:"GET",fullPath:"/v1/credit_notes/{id}"}),update:rr({method:"POST",fullPath:"/v1/credit_notes/{id}"}),list:rr({method:"GET",fullPath:"/v1/credit_notes",methodType:"list"}),listLineItems:rr({method:"GET",fullPath:"/v1/credit_notes/{credit_note}/lines",methodType:"list"}),listPreviewLineItems:rr({method:"GET",fullPath:"/v1/credit_notes/preview/lines",methodType:"list"}),preview:rr({method:"GET",fullPath:"/v1/credit_notes/preview"}),voidCreditNote:rr({method:"POST",fullPath:"/v1/credit_notes/{id}/void"})}),ra=en.method,ri=en.extend({create:ra({method:"POST",fullPath:"/v1/customer_sessions"})}),rs=en.method,rl=en.extend({create:rs({method:"POST",fullPath:"/v1/customers"}),retrieve:rs({method:"GET",fullPath:"/v1/customers/{customer}"}),update:rs({method:"POST",fullPath:"/v1/customers/{customer}"}),list:rs({method:"GET",fullPath:"/v1/customers",methodType:"list"}),del:rs({method:"DELETE",fullPath:"/v1/customers/{customer}"}),createBalanceTransaction:rs({method:"POST",fullPath:"/v1/customers/{customer}/balance_transactions"}),createFundingInstructions:rs({method:"POST",fullPath:"/v1/customers/{customer}/funding_instructions"}),createSource:rs({method:"POST",fullPath:"/v1/customers/{customer}/sources"}),createTaxId:rs({method:"POST",fullPath:"/v1/customers/{customer}/tax_ids"}),deleteDiscount:rs({method:"DELETE",fullPath:"/v1/customers/{customer}/discount"}),deleteSource:rs({method:"DELETE",fullPath:"/v1/customers/{customer}/sources/{id}"}),deleteTaxId:rs({method:"DELETE",fullPath:"/v1/customers/{customer}/tax_ids/{id}"}),listBalanceTransactions:rs({method:"GET",fullPath:"/v1/customers/{customer}/balance_transactions",methodType:"list"}),listCashBalanceTransactions:rs({method:"GET",fullPath:"/v1/customers/{customer}/cash_balance_transactions",methodType:"list"}),listPaymentMethods:rs({method:"GET",fullPath:"/v1/customers/{customer}/payment_methods",methodType:"list"}),listSources:rs({method:"GET",fullPath:"/v1/customers/{customer}/sources",methodType:"list"}),listTaxIds:rs({method:"GET",fullPath:"/v1/customers/{customer}/tax_ids",methodType:"list"}),retrieveBalanceTransaction:rs({method:"GET",fullPath:"/v1/customers/{customer}/balance_transactions/{transaction}"}),retrieveCashBalance:rs({method:"GET",fullPath:"/v1/customers/{customer}/cash_balance"}),retrieveCashBalanceTransaction:rs({method:"GET",fullPath:"/v1/customers/{customer}/cash_balance_transactions/{transaction}"}),retrievePaymentMethod:rs({method:"GET",fullPath:"/v1/customers/{customer}/payment_methods/{payment_method}"}),retrieveSource:rs({method:"GET",fullPath:"/v1/customers/{customer}/sources/{id}"}),retrieveTaxId:rs({method:"GET",fullPath:"/v1/customers/{customer}/tax_ids/{id}"}),search:rs({method:"GET",fullPath:"/v1/customers/search",methodType:"search"}),updateBalanceTransaction:rs({method:"POST",fullPath:"/v1/customers/{customer}/balance_transactions/{transaction}"}),updateCashBalance:rs({method:"POST",fullPath:"/v1/customers/{customer}/cash_balance"}),updateSource:rs({method:"POST",fullPath:"/v1/customers/{customer}/sources/{id}"}),verifySource:rs({method:"POST",fullPath:"/v1/customers/{customer}/sources/{id}/verify"})}),rc=en.method,ru=en.extend({retrieve:rc({method:"GET",fullPath:"/v1/disputes/{dispute}"}),update:rc({method:"POST",fullPath:"/v1/disputes/{dispute}"}),list:rc({method:"GET",fullPath:"/v1/disputes",methodType:"list"}),close:rc({method:"POST",fullPath:"/v1/disputes/{dispute}/close"})}),rd=en.method,rh=en.extend({create:rd({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:rd({method:"DELETE",fullPath:"/v1/ephemeral_keys/{key}"})}),rm=en.method,rp=en.extend({retrieve:rm({method:"GET",fullPath:"/v1/events/{id}"}),list:rm({method:"GET",fullPath:"/v1/events",methodType:"list"})}),rf=en.method,rv=en.extend({retrieve:rf({method:"GET",fullPath:"/v1/exchange_rates/{rate_id}"}),list:rf({method:"GET",fullPath:"/v1/exchange_rates",methodType:"list"})}),rP=en.method,ry=en.extend({create:rP({method:"POST",fullPath:"/v1/file_links"}),retrieve:rP({method:"GET",fullPath:"/v1/file_links/{link}"}),update:rP({method:"POST",fullPath:"/v1/file_links/{link}"}),list:rP({method:"GET",fullPath:"/v1/file_links",methodType:"list"})}),rg=(e,t,n)=>{let r=(Math.round(1e16*Math.random())+Math.round(1e16*Math.random())).toString();n["Content-Type"]=`multipart/form-data; boundary=${r}`;let o=new TextEncoder,a=new Uint8Array(0),i=o.encode("\r\n");function s(e){let t=a,n=e instanceof Uint8Array?e:new Uint8Array(o.encode(e));(a=new Uint8Array(t.length+n.length+2)).set(t),a.set(n,t.length),a.set(i,a.length-2)}function l(e){return`"${e.replace(/"|"/g,"%22").replace(/\r\n|\r|\n/g," ")}"`}let c=function(e){let t={},n=(e,r)=>{Object.entries(e).forEach(([e,o])=>{let a=r?`${r}[${e}]`:e;if(function(e){let t=typeof e;return("function"===t||"object"===t)&&!!e}(o)){if(!(o instanceof Uint8Array)&&!Object.prototype.hasOwnProperty.call(o,"data"))return n(o,a);t[a]=o}else t[a]=String(o)})};return n(e,null),t}(t);for(let e in c){if(!Object.prototype.hasOwnProperty.call(c,e))continue;let t=c[e];s(`--${r}`),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(`--${r}--`),a},rT=en.method,r_=en.extend({create:rT({method:"POST",fullPath:"/v1/files",headers:{"Content-Type":"multipart/form-data"},host:"files.stripe.com"}),retrieve:rT({method:"GET",fullPath:"/v1/files/{file}"}),list:rT({method:"GET",fullPath:"/v1/files",methodType:"list"}),requestDataProcessor:function(e,t,n,r){if(t=t||{},"POST"!==e)return r(null,c(t));this._stripe._platformFunctions.tryBufferData(t).then(t=>r(null,rg(e,t,n))).catch(e=>r(e,null))}}),rE=en.method,rb=en.extend({create:rE({method:"POST",fullPath:"/v1/invoiceitems"}),retrieve:rE({method:"GET",fullPath:"/v1/invoiceitems/{invoiceitem}"}),update:rE({method:"POST",fullPath:"/v1/invoiceitems/{invoiceitem}"}),list:rE({method:"GET",fullPath:"/v1/invoiceitems",methodType:"list"}),del:rE({method:"DELETE",fullPath:"/v1/invoiceitems/{invoiceitem}"})}),rS=en.method,rO=en.extend({retrieve:rS({method:"GET",fullPath:"/v1/invoice_payments/{invoice_payment}"}),list:rS({method:"GET",fullPath:"/v1/invoice_payments",methodType:"list"})}),rx=en.method,rw=en.extend({retrieve:rx({method:"GET",fullPath:"/v1/invoice_rendering_templates/{template}"}),list:rx({method:"GET",fullPath:"/v1/invoice_rendering_templates",methodType:"list"}),archive:rx({method:"POST",fullPath:"/v1/invoice_rendering_templates/{template}/archive"}),unarchive:rx({method:"POST",fullPath:"/v1/invoice_rendering_templates/{template}/unarchive"})}),rC=en.method,rG=en.extend({create:rC({method:"POST",fullPath:"/v1/invoices"}),retrieve:rC({method:"GET",fullPath:"/v1/invoices/{invoice}"}),update:rC({method:"POST",fullPath:"/v1/invoices/{invoice}"}),list:rC({method:"GET",fullPath:"/v1/invoices",methodType:"list"}),del:rC({method:"DELETE",fullPath:"/v1/invoices/{invoice}"}),addLines:rC({method:"POST",fullPath:"/v1/invoices/{invoice}/add_lines"}),attachPayment:rC({method:"POST",fullPath:"/v1/invoices/{invoice}/attach_payment"}),createPreview:rC({method:"POST",fullPath:"/v1/invoices/create_preview"}),finalizeInvoice:rC({method:"POST",fullPath:"/v1/invoices/{invoice}/finalize"}),listLineItems:rC({method:"GET",fullPath:"/v1/invoices/{invoice}/lines",methodType:"list"}),markUncollectible:rC({method:"POST",fullPath:"/v1/invoices/{invoice}/mark_uncollectible"}),pay:rC({method:"POST",fullPath:"/v1/invoices/{invoice}/pay"}),removeLines:rC({method:"POST",fullPath:"/v1/invoices/{invoice}/remove_lines"}),search:rC({method:"GET",fullPath:"/v1/invoices/search",methodType:"search"}),sendInvoice:rC({method:"POST",fullPath:"/v1/invoices/{invoice}/send"}),updateLines:rC({method:"POST",fullPath:"/v1/invoices/{invoice}/update_lines"}),updateLineItem:rC({method:"POST",fullPath:"/v1/invoices/{invoice}/lines/{line_item_id}"}),voidInvoice:rC({method:"POST",fullPath:"/v1/invoices/{invoice}/void"})}),rA=en.method,rR=en.extend({retrieve:rA({method:"GET",fullPath:"/v1/mandates/{mandate}"})}),rk=en.method,rI="connect.stripe.com",rj=en.extend({basePath:"/",authorizeUrl(e,t){e=e||{};let n="oauth/authorize";return(t=t||{}).express&&(n=`express/${n}`),e.response_type||(e.response_type="code"),e.client_id||(e.client_id=this._stripe.getClientId()),e.scope||(e.scope="read_write"),`https://${rI}/${n}?${c(e)}`},token:rk({method:"POST",path:"oauth/token",host:rI}),deauthorize(e,...t){return e.client_id||(e.client_id=this._stripe.getClientId()),rk({method:"POST",path:"oauth/deauthorize",host:rI}).apply(this,[e,...t])}}),rN=en.method,rq=en.extend({retrieve:rN({method:"GET",fullPath:"/v1/payment_attempt_records/{id}"}),list:rN({method:"GET",fullPath:"/v1/payment_attempt_records",methodType:"list"})}),rM=en.method,rD=en.extend({create:rM({method:"POST",fullPath:"/v1/payment_intents"}),retrieve:rM({method:"GET",fullPath:"/v1/payment_intents/{intent}"}),update:rM({method:"POST",fullPath:"/v1/payment_intents/{intent}"}),list:rM({method:"GET",fullPath:"/v1/payment_intents",methodType:"list"}),applyCustomerBalance:rM({method:"POST",fullPath:"/v1/payment_intents/{intent}/apply_customer_balance"}),cancel:rM({method:"POST",fullPath:"/v1/payment_intents/{intent}/cancel"}),capture:rM({method:"POST",fullPath:"/v1/payment_intents/{intent}/capture"}),confirm:rM({method:"POST",fullPath:"/v1/payment_intents/{intent}/confirm"}),incrementAuthorization:rM({method:"POST",fullPath:"/v1/payment_intents/{intent}/increment_authorization"}
1),listAmountDetailsLineItems:rM({method:"GET",fullPath:"/v1/payment_intents/{intent}/amount_details_line_items",methodType:"list"}),search:rM({method:"GET",fullPath:"/v1/payment_intents/search",methodType:"search"}),verifyMicrodeposits:rM({method:"POST",fullPath:"/v1/payment_intents/{intent}/verify_microdeposits"})}),rL=en.method,rH=en.extend({create:rL({method:"POST",fullPath:"/v1/payment_links"}),retrieve:rL({method:"GET",fullPath:"/v1/payment_links/{payment_link}"}),update:rL({method:"POST",fullPath:"/v1/payment_links/{payment_link}"}),list:rL({method:"GET",fullPath:"/v1/payment_links",methodType:"list"}),listLineItems:rL({method:"GET",fullPath:"/v1/payment_links/{payment_link}/line_items",methodType:"list"})}),rU=en.method,rF=en.extend({create:rU({method:"POST",fullPath:"/v1/payment_method_configurations"}),retrieve:rU({method:"GET",fullPath:"/v1/payment_method_configurations/{configuration}"}),update:rU({method:"POST",fullPath:"/v1/payment_method_configurations/{configuration}"}),list:rU({method:"GET",fullPath:"/v1/payment_method_configurations",methodType:"list"})}),rz=en.method,r$=en.extend({create:rz({method:"POST",fullPath:"/v1/payment_method_domains"}),retrieve:rz({method:"GET",fullPath:"/v1/payment_method_domains/{payment_method_domain}"}),update:rz({method:"POST",fullPath:"/v1/payment_method_domains/{payment_method_domain}"}),list:rz({method:"GET",fullPath:"/v1/payment_method_domains",methodType:"list"}),validate:rz({method:"POST",fullPath:"/v1/payment_method_domains/{payment_method_domain}/validate"})}),rB=en.method,rZ=en.extend({create:rB({method:"POST",fullPath:"/v1/payment_methods"}),retrieve:rB({method:"GET",fullPath:"/v1/payment_methods/{payment_method}"}),update:rB({method:"POST",fullPath:"/v1/payment_methods/{payment_method}"}),list:rB({method:"GET",fullPath:"/v1/payment_methods",methodType:"list"}),attach:rB({method:"POST",fullPath:"/v1/payment_methods/{payment_method}/attach"}),detach:rB({method:"POST",fullPath:"/v1/payment_methods/{payment_method}/detach"})}),rV=en.method,rK=en.extend({retrieve:rV({method:"GET",fullPath:"/v1/payment_records/{id}"}),reportPayment:rV({method:"POST",fullPath:"/v1/payment_records/report_payment"}),reportPaymentAttempt:rV({method:"POST",fullPath:"/v1/payment_records/{id}/report_payment_attempt"}),reportPaymentAttemptCanceled:rV({method:"POST",fullPath:"/v1/payment_records/{id}/report_payment_attempt_canceled"}),reportPaymentAttemptFailed:rV({method:"POST",fullPath:"/v1/payment_records/{id}/report_payment_attempt_failed"}),reportPaymentAttemptGuaranteed:rV({method:"POST",fullPath:"/v1/payment_records/{id}/report_payment_attempt_guaranteed"}),reportPaymentAttemptInformational:rV({method:"POST",fullPath:"/v1/payment_records/{id}/report_payment_attempt_informational"}),reportRefund:rV({method:"POST",fullPath:"/v1/payment_records/{id}/report_refund"})}),rW=en.method,rX=en.extend({create:rW({method:"POST",fullPath:"/v1/payouts"}),retrieve:rW({method:"GET",fullPath:"/v1/payouts/{payout}"}),update:rW({method:"POST",fullPath:"/v1/payouts/{payout}"}),list:rW({method:"GET",fullPath:"/v1/payouts",methodType:"list"}),cancel:rW({method:"POST",fullPath:"/v1/payouts/{payout}/cancel"}),reverse:rW({method:"POST",fullPath:"/v1/payouts/{payout}/reverse"})}),rJ=en.method,rY=en.extend({create:rJ({method:"POST",fullPath:"/v1/plans"}),retrieve:rJ({method:"GET",fullPath:"/v1/plans/{plan}"}),update:rJ({method:"POST",fullPath:"/v1/plans/{plan}"}),list:rJ({method:"GET",fullPath:"/v1/plans",methodType:"list"}),del:rJ({method:"DELETE",fullPath:"/v1/plans/{plan}"})}),rQ=en.method,r1=en.extend({create:rQ({method:"POST",fullPath:"/v1/prices"}),retrieve:rQ({method:"GET",fullPath:"/v1/prices/{price}"}),update:rQ({method:"POST",fullPath:"/v1/prices/{price}"}),list:rQ({method:"GET",fullPath:"/v1/prices",methodType:"list"}),search:rQ({method:"GET",fullPath:"/v1/prices/search",methodType:"search"})}),r0=en.method,r2=en.extend({create:r0({method:"POST",fullPath:"/v1/products"}),retrieve:r0({method:"GET",fullPath:"/v1/products/{id}"}),update:r0({method:"POST",fullPath:"/v1/products/{id}"}),list:r0({method:"GET",fullPath:"/v1/products",methodType:"list"}),del:r0({method:"DELETE",fullPath:"/v1/products/{id}"}),createFeature:r0({method:"POST",fullPath:"/v1/products/{product}/features"}),deleteFeature:r0({method:"DELETE",fullPath:"/v1/products/{product}/features/{id}"}),listFeatures:r0({method:"GET",fullPath:"/v1/products/{product}/features",methodType:"list"}),retrieveFeature:r0({method:"GET",fullPath:"/v1/products/{product}/features/{id}"}),search:r0({method:"GET",fullPath:"/v1/products/search",methodType:"search"})}),r6=en.method,r4=en.extend({create:r6({method:"POST",fullPath:"/v1/promotion_codes"}),retrieve:r6({method:"GET",fullPath:"/v1/promotion_codes/{promotion_code}"}),update:r6({method:"POST",fullPath:"/v1/promotion_codes/{promotion_code}"}),list:r6({method:"GET",fullPath:"/v1/promotion_codes",methodType:"list"})}),r8=en.method,r3=en.extend({create:r8({method:"POST",fullPath:"/v1/quotes"}),retrieve:r8({method:"GET",fullPath:"/v1/quotes/{quote}"}),update:r8({method:"POST",fullPath:"/v1/quotes/{quote}"}),list:r8({method:"GET",fullPath:"/v1/quotes",methodType:"list"}),accept:r8({method:"POST",fullPath:"/v1/quotes/{quote}/accept"}),cancel:r8({method:"POST",fullPath:"/v1/quotes/{quote}/cancel"}),finalizeQuote:r8({method:"POST",fullPath:"/v1/quotes/{quote}/finalize"}),listComputedUpfrontLineItems:r8({method:"GET",fullPath:"/v1/quotes/{quote}/computed_upfront_line_items",methodType:"list"}),listLineItems:r8({method:"GET",fullPath:"/v1/quotes/{quote}/line_items",methodType:"list"}),pdf:r8({method:"GET",fullPath:"/v1/quotes/{quote}/pdf",host:"files.stripe.com",streaming:!0})}),r9=en.method,r5=en.extend({create:r9({method:"POST",fullPath:"/v1/refunds"}),retrieve:r9({method:"GET",fullPath:"/v1/refunds/{refund}"}),update:r9({method:"POST",fullPath:"/v1/refunds/{refund}"}),list:r9({method:"GET",fullPath:"/v1/refunds",methodType:"list"}),cancel:r9({method:"POST",fullPath:"/v1/refunds/{refund}/cancel"})}),r7=en.method,oe=en.extend({retrieve:r7({method:"GET",fullPath:"/v1/reviews/{review}"}),list:r7({method:"GET",fullPath:"/v1/reviews",methodType:"list"}),approve:r7({method:"POST",fullPath:"/v1/reviews/{review}/approve"})}),ot=en.method,on=en.extend({list:ot({method:"GET",fullPath:"/v1/setup_attempts",methodType:"list"})}),or=en.method,oo=en.extend({create:or({method:"POST",fullPath:"/v1/setup_intents"}),retrieve:or({method:"GET",fullPath:"/v1/setup_intents/{intent}"}),update:or({method:"POST",fullPath:"/v1/setup_intents/{intent}"}),list:or({method:"GET",fullPath:"/v1/setup_intents",methodType:"list"}),cancel:or({method:"POST",fullPath:"/v1/setup_intents/{intent}/cancel"}),confirm:or({method:"POST",fullPath:"/v1/setup_intents/{intent}/confirm"}),verifyMicrodeposits:or({method:"POST",fullPath:"/v1/setup_intents/{intent}/verify_microdeposits"})}),oa=en.method,oi=en.extend({create:oa({method:"POST",fullPath:"/v1/shipping_rates"}),retrieve:oa({method:"GET",fullPath:"/v1/shipping_rates/{shipping_rate_token}"}),update:oa({method:"POST",fullPath:"/v1/shipping_rates/{shipping_rate_token}"}),list:oa({method:"GET",fullPath:"/v1/shipping_rates",methodType:"list"})}
1),os=en.method,ol=en.extend({create:os({method:"POST",fullPath:"/v1/sources"}),retrieve:os({method:"GET",fullPath:"/v1/sources/{source}"}),update:os({method:"POST",fullPath:"/v1/sources/{source}"}),listSourceTransactions:os({method:"GET",fullPath:"/v1/sources/{source}/source_transactions",methodType:"list"}),verify:os({method:"POST",fullPath:"/v1/sources/{source}/verify"})}),oc=en.method,ou=en.extend({create:oc({method:"POST",fullPath:"/v1/subscription_items"}),retrieve:oc({method:"GET",fullPath:"/v1/subscription_items/{item}"}),update:oc({method:"POST",fullPath:"/v1/subscription_items/{item}"}),list:oc({method:"GET",fullPath:"/v1/subscription_items",methodType:"list"}),del:oc({method:"DELETE",fullPath:"/v1/subscription_items/{item}"})}),od=en.method,oh=en.extend({create:od({method:"POST",fullPath:"/v1/subscription_schedules"}),retrieve:od({method:"GET",fullPath:"/v1/subscription_schedules/{schedule}"}),update:od({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}"}),list:od({method:"GET",fullPath:"/v1/subscription_schedules",methodType:"list"}),cancel:od({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}/cancel"}),release:od({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}/release"})}),om=en.method,op=en.extend({create:om({method:"POST",fullPath:"/v1/subscriptions"}),retrieve:om({method:"GET",fullPath:"/v1/subscriptions/{subscription_exposed_id}"}),update:om({method:"POST",fullPath:"/v1/subscriptions/{subscription_exposed_id}"}),list:om({method:"GET",fullPath:"/v1/subscriptions",methodType:"list"}),cancel:om({method:"DELETE",fullPath:"/v1/subscriptions/{subscription_exposed_id}"}),deleteDiscount:om({method:"DELETE",fullPath:"/v1/subscriptions/{subscription_exposed_id}/discount"}),migrate:om({method:"POST",fullPath:"/v1/subscriptions/{subscription}/migrate"}),resume:om({method:"POST",fullPath:"/v1/subscriptions/{subscription}/resume"}),search:om({method:"GET",fullPath:"/v1/subscriptions/search",methodType:"search"})}),of=en.method,ov=en.extend({retrieve:of({method:"GET",fullPath:"/v1/tax_codes/{id}"}),list:of({method:"GET",fullPath:"/v1/tax_codes",methodType:"list"})}),oP=en.method,oy=en.extend({create:oP({method:"POST",fullPath:"/v1/tax_ids"}),retrieve:oP({method:"GET",fullPath:"/v1/tax_ids/{id}"}),list:oP({method:"GET",fullPath:"/v1/tax_ids",methodType:"list"}),del:oP({method:"DELETE",fullPath:"/v1/tax_ids/{id}"})}),og=en.method,oT=en.extend({create:og({method:"POST",fullPath:"/v1/tax_rates"}),retrieve:og({method:"GET",fullPath:"/v1/tax_rates/{tax_rate}"}),update:og({method:"POST",fullPath:"/v1/tax_rates/{tax_rate}"}),list:og({method:"GET",fullPath:"/v1/tax_rates",methodType:"list"})}),o_=en.method,oE=en.extend({create:o_({method:"POST",fullPath:"/v1/tokens"}),retrieve:o_({method:"GET",fullPath:"/v1/tokens/{token}"})}),ob=en.method,oS=en.extend({create:ob({method:"POST",fullPath:"/v1/topups"}),retrieve:ob({method:"GET",fullPath:"/v1/topups/{topup}"}),update:ob({method:"POST",fullPath:"/v1/topups/{topup}"}),list:ob({method:"GET",fullPath:"/v1/topups",methodType:"list"}),cancel:ob({method:"POST",fullPath:"/v1/topups/{topup}/cancel"})}),oO=en.method,ox=en.extend({create:oO({method:"POST",fullPath:"/v1/transfers"}),retrieve:oO({method:"GET",fullPath:"/v1/transfers/{transfer}"}),update:oO({method:"POST",fullPath:"/v1/transfers/{transfer}"}),list:oO({method:"GET",fullPath:"/v1/transfers",methodType:"list"}),createReversal:oO({method:"POST",fullPath:"/v1/transfers/{id}/reversals"}),listReversals:oO({method:"GET",fullPath:"/v1/transfers/{id}/reversals",methodType:"list"}),retrieveReversal:oO({method:"GET",fullPath:"/v1/transfers/{transfer}/reversals/{id}"}),updateReversal:oO({method:"POST",fullPath:"/v1/transfers/{transfer}/reversals/{id}"})}),ow=en.method,oC=en.extend({create:ow({method:"POST",fullPath:"/v1/webhook_endpoints"}),retrieve:ow({method:"GET",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"}),update:ow({method:"POST",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"}),list:ow({method:"GET",fullPath:"/v1/webhook_endpoints",methodType:"list"}),del:ow({method:"DELETE",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"})}),oG=ei("apps",{Secrets:nl}),oA=ei("billing",{Alerts:eE,CreditBalanceSummary:eZ,CreditBalanceTransactions:eK,CreditGrants:eX,MeterEventAdjustments:th,MeterEvents:tT,Meters:tS}),oR=ei("billingPortal",{Configurations:eD,Sessions:nu}),ok=ei("checkout",{Sessions:nh}),oI=ei("climate",{Orders:tC,Products:tZ,Suppliers:ny}),oj=ei("entitlements",{ActiveEntitlements:eT,Features:tn}),oN=ei("financialConnections",{Accounts:eh,Sessions:np,Transactions:nx}),oq=ei("forwarding",{Requests:no}
1),oM=ei("identity",{VerificationReports:nH,VerificationSessions:nF}),oD=ei("issuing",{Authorizations:ex,Cardholders:ek,Cards:ej,Disputes:e4,PersonalizationDesigns:tH,PhysicalBundles:t$,Tokens:nE,Transactions:nC}),oL=ei("radar",{EarlyFraudWarnings:e3,PaymentEvaluations:tD,ValueListItems:nq,ValueLists:nD}),oH=ei("reporting",{ReportRuns:ne,ReportTypes:nn}),oU=ei("sigma",{ScheduledQueryRuns:ni}),oF=ei("tax",{Associations:eS,Calculations:eA,Registrations:t5,Settings:nv,Transactions:nA}),oz=ei("terminal",{Configurations:eH,ConnectionTokens:e$,Locations:tu,OnboardingLinks:tx,Readers:tK}),o$=ei("testHelpers",{ConfirmationTokens:eF,Customers:e1,Refunds:t3,TestClocks:nT,Issuing:ei("issuing",{Authorizations:eC,Cards:eq,PersonalizationDesigns:tF,Transactions:nk}),Terminal:ei("terminal",{Readers:tX}),Treasury:ei("treasury",{InboundTransfers:ti,OutboundPayments:tA,OutboundTransfers:tj,ReceivedCredits:tY,ReceivedDebits:t2})}),oB=ei("treasury",{CreditReversals:eY,DebitReversals:e2,FinancialAccounts:to,InboundTransfers:tl,OutboundPayments:tk,OutboundTransfers:tq,ReceivedCredits:t1,ReceivedDebits:t4,TransactionEntries:nS,Transactions:nj}),oZ=ei("v2",{Billing:ei("billing",{MeterEventAdjustments:tp,MeterEventSession:tv,MeterEventStream:ty,MeterEvents:tE}),Core:ei("core",{AccountLinks:el,AccountTokens:eu,Accounts:ey,EventDestinations:e5,Events:te})}),oV="api.stripe.com",oK="/v1/",oW=["name","version","url","partner_id"],oX=["authenticator","apiVersion","typescript","maxNetworkRetries","httpAgent","httpClient","timeout","host","port","protocol","telemetry","appInfo","stripeAccount","stripeContext"],oJ=e=>new K(e,en.MAX_BUFFERED_REQUEST_METRICS);!function(e,t=oJ){function n(o,a={}){if(!(this instanceof n))return new n(o,a);let i=this._getPropsFromConfig(a);this._platformFunctions=e,Object.defineProperty(this,"_emitter",{value:this._platformFunctions.createEmitter(),enumerable:!1,configurable:!1,writable:!1}),this.VERSION=n.PACKAGE_VERSION,this.on=this._emitter.on.bind(this._emitter),this.once=this._emitter.once.bind(this._emitter),this.off=this._emitter.removeListener.bind(this._emitter);let s=i.httpAgent||null;this._api={host:i.host||oV,port:i.port||"443",protocol:i.protocol||"https",basePath:oK,version:i.apiVersion||eo,timeout:v("timeout",i.timeout,8e4),maxNetworkRetries:v("maxNetworkRetries",i.maxNetworkRetries,2),agent:s,httpClient:i.httpClient||(s?this._platformFunctions.createNodeHttpClient(s):this._platformFunctions.createDefaultHttpClient()),dev:!1,stripeAccount:i.stripeAccount||null,stripeContext:i.stripeContext||null};let l=i.typescript||!1;l!==n.USER_AGENT.typescript&&(n.USER_AGENT.typescript=l),i.appInfo&&this._setAppInfo(i.appInfo),this._prepResources(),this._setAuthenticator(o,i.authenticator),this.errors=r,this.webhooks=n.webhooks,this._prevRequestMetrics=[],this._enableTelemetry=!1!==i.telemetry,this._requestSender=t(this),this.StripeResource=n.StripeResource}n.PACKAGE_VERSION="20.4.0",n.API_VERSION=eo,n.USER_AGENT=Object.assign({bindings_version:n.PACKAGE_VERSION,lang:"node",publisher:"stripe",uname:null,typescript:!1},void 0===a?{}:{lang_version:a.version,platform:a.platform}),n.StripeResource=en,n.StripeContext=er,n.resources=o,n.HttpClient=_,n.HttpClientResponse=E,n.CryptoProvider=O,n.webhooks=function(e){let t={DEFAULT_TOLERANCE:300,signature:null,constructEvent(e,n,r,o,a,i){try{if(!this.signature)throw Error("ERR: missing signature helper, unable to verify");this.signature.verifyHeader(e,n,r,o||t.DEFAULT_TOLERANCE,a,i)}catch(e){throw e instanceof x&&(e.message+="\nUse `await constructEventAsync(...)` instead of `constructEvent(...)`"),e}return e instanceof Uint8Array?JSON.parse(new TextDecoder("utf8").decode(e)):JSON.parse(e)},async constructEventAsync(e,n,r,o,a,i){if(!this.signature)throw Error("ERR: missing signature helper, unable to verify");return await this.signature.verifyHeaderAsync(e,n,r,o||t.DEFAULT_TOLERANCE,a,i),e instanceof Uint8Array?JSON.parse(new TextDecoder("utf8").decode(e)):JSON.parse(e)},generateTestHeaderString:function(e){let t=l(e),n=t.signature||t.cryptoProvider.computeHMACSignature(t.payloadString,t.secret);return t.generateHeaderString(n)},generateTestHeaderStringAsync:async function(e){let t=l(e),n=t.signature||await t.cryptoProvider.computeHMACSignatureAsync(t.payloadString,t.secret);return t.generateHeaderString(n)}},n={EXPECTED_SCHEME:"v1",verifyHeader(e,t,n,i,l,c){let{decodedHeader:u,decodedPayload:d,details:h,suspectPayloadType:m}=o(e,t,this.EXPECTED_SCHEME),p=/\s/.test(n),f=(l=l||s()).computeHMACSignature(r(d,h),n);return a(d,u,h,f,i,m,p,c),!0},async verifyHeaderAsync(e,t,n,i,l,c){let{decodedHeader:u,decodedPayload:d,details:h,suspectPayloadType:m}=o(e,t,this.EXPECTED_SCHEME),p=/\s/.test(n);l=l||s();let f=await l.computeHMACSignatureAsync(r(d,h),n);return a(d,u,h,f,i,m,p,c)}};function r(e,t){return`${t.timestamp}.${e}`}function o(e,t,n){if(!e)throw new z(t,e,{message:"No webhook payload was provided."});let r="string"!=typeof e&&!(e instanceof Uint8Array),o=new TextDecoder("utf8"),a=e instanceof Uint8Array?o.decode(e):e;if(Array.isArray(t))throw Error("Unexpected: An array was passed as a header, which should not be possible for the stripe-signature header.");if(null==t||""==t)throw new z(t,e,{message:"No stripe-signature header value was provided."});let i=t instanceof Uint8Array?o.decode(t):t,s="string"!=typeof i?null:i.split(",").reduce((e,t)=>
1{let r=t.split("=");return"t"===r[0]&&(e.timestamp=parseInt(r[1],10)),r[0]===n&&e.signatures.push(r[1]),e},{timestamp:-1,signatures:[]});if(!s||-1===s.timestamp)throw new z(i,a,{message:"Unable to extract timestamp and signatures from header"});if(!s.signatures.length)throw new z(i,a,{message:"No signatures found with expected scheme"});return{decodedPayload:a,decodedHeader:i,details:s,suspectPayloadType:r}}function a(t,n,r,o,a,i,s,l){let c=!!r.signatures.filter(e.secureCompare.bind(e,o)).length,u="\nLearn more about webhook signing and explore webhook integration examples for various frameworks at https://docs.stripe.com/webhooks/signature",d=s?"\n\nNote: The provided signing secret contains whitespace. This often indicates an extra newline or space is in the value":"";if(!c){if(i)throw new z(n,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"+u+"\n"+d});throw new z(n,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"+u+"\n"+d})}let h=Math.floor(("number"==typeof l?l:Date.now())/1e3)-r.timestamp;if(a>0&&h>a)throw new z(n,t,{message:"Timestamp outside the tolerance zone"});return!0}let i=null;function s(){return i||(i=e.createDefaultCryptoProvider()),i}function l(e){if(!e)throw new N({message:"Options are required"});let t=Math.floor(e.timestamp)||Math.floor(Date.now()/1e3),r=e.scheme||n.EXPECTED_SCHEME,o=e.cryptoProvider||s(),a=`${t}.${e.payload}`;return Object.assign(Object.assign({},e),{timestamp:t,scheme:r,cryptoProvider:o,payloadString:a,generateHeaderString:e=>`t=${t},${r}=${e}`})}return t.signature=n,t}(e),n.errors=r,n.createNodeHttpClient=e.createNodeHttpClient,n.createFetchHttpClient=e.createFetchHttpClient,n.createNodeCryptoProvider=e.createNodeCryptoProvider,n.createSubtleCryptoProvider=e.createSubtleCryptoProvider,n.prototype={_appInfo:void 0,on:null,off:null,once:null,VERSION:null,StripeResource:null,webhooks:null,errors:null,_api:null,_prevRequestMetrics:null,_emitter:null,_enableTelemetry:null,_requestSender:null,_platformFunctions:null,rawRequest(e,t,n,r){return this._requestSender._rawRequest(e,t,n,r)},_setAuthenticator(e,t){if(e&&t)throw Error("Can't specify both apiKey and authenticator");if(!e&&!t)throw Error("Neither apiKey nor config.authenticator provided");this._authenticator=e?P(e):t},_setAppInfo(e){if(e&&"object"!=typeof e)throw Error("AppInfo must be an object.");if(e&&!e.name)throw Error("AppInfo.name is required");e=e||{},this._appInfo=oW.reduce((t,n)=>("string"==typeof e[n]&&((t=t||{})[n]=e[n]),t),{})},_setApiField(e,t){this._api[e]=t},getApiField(e){return this._api[e]},setClientId(e){this._clientId=e},getClientId(){return this._clientId},getConstant:e=>{switch(e){case"DEFAULT_HOST":return oV;case"DEFAULT_PORT":return"443";case"DEFAULT_BASE_PATH":return oK;case"DEFAULT_API_VERSION":return eo;case"DEFAULT_TIMEOUT":return 8e4;case"MAX_NETWORK_RETRY_DELAY_SEC":return 5;case"INITIAL_NETWORK_RETRY_DELAY_SEC":return .5}return n[e]},getMaxNetworkRetries(){return this.getApiField("maxNetworkRetries")},_setApiNumberField(e,t,n){let r=v(e,t,n);this._setApiField(e,r)},getMaxNetworkRetryDelay:()=>5,getInitialNetworkRetryDelay:()=>.5,getClientUserAgent(e){return this.getClientUserAgentSeeded(n.USER_AGENT,e)},getClientUserAgentSeeded(e,t){this._platformFunctions.getUname().then(n=>{var r;let o={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=encodeURIComponent(null!==(r=e[t])&&void 0!==r?r:"null"));o.uname=encodeURIComponent(n||"UNKNOWN");let a=this.getApiField("httpClient");a&&(o.httplib=encodeURIComponent(a.getClientName())),this._appInfo&&(o.application=this._appInfo),t(JSON.stringify(o))})},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 o)Object.prototype.hasOwnProperty.call(o,e)&&(this["OAuth"===e?"oauth":e[0].toLowerCase()+e.substring(1)]=new o[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=>!oX.includes(e)).length>0)throw Error(`Config object may only contain the following: ${oX.join(", ")}`);return e},parseEventNotification(e,t,n,r,o,a){let i=this.webhooks.constructEvent(e,t,n,r,o,a);return i.context&&(i.context=er.parse(i.context)),i.fetchEvent=()=>this._requestSender._rawRequest("GET",`/v2/core/events/${i.id}`,void 0,{stripeContext:i.context},["fetch_event"]),i.fetchRelatedObject=()=>i.related_object?this._requestSender._rawRequest("GET",i.related_object.url,void 0,{stripeContext:i.context},["fetch_related_object"]):Promise.resolve(null),i}}}(new k)}}]);

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.