@paynext/sdk 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index.css +1 -1
- package/dist/index.es.js +43 -42
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(re,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],m):(re=typeof globalThis<"u"?globalThis:re||self,m(re["Able SDK"]={},re.React))})(this,function(re,m){"use strict";var Sr=document.createElement("style");Sr.textContent=`._button_159xd_1{transition-property:transform,color,background,background-color,border-color,text-decoration-color,fill,stroke,opacity;transition-timing-function:ease;transition-duration:.25s;position:relative;z-index:0;box-sizing:border-box;display:inline-flex;height:2.5rem;width:100%;min-width:5rem;transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-items:center;justify-content:center;gap:.5rem;overflow:hidden;white-space:nowrap;border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1));padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto;outline:2px solid transparent;outline-offset:2px}@media (prefers-reduced-motion: reduce){._button_159xd_1{transition-property:none}}._button_159xd_1>svg{max-width:2rem}._primary_159xd_11{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}._success_159xd_15{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}._loading_159xd_19,._button_159xd_1:hover{opacity:.7}._press_159xd_24{transform:scale(.95)}._card_1woqz_1{display:grid;gap:.75rem;padding-top:1rem}._title_1woqz_5{font-size:.875rem;line-height:1.25rem;font-weight:600}._error_1woqz_9{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_1woqz_13{display:flex;width:100%;justify-content:space-between}._label_1woqz_13 span{text-wrap:nowrap;text-overflow:ellipsis;overflow:hidden}._cardDataContainer_1woqz_23{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}._iconContainer_1woqz_27{margin:0 1px}._payButton_1woqz_31{display:flex;align-items:center;justify-content:center}._spinner_1woqz_35{width:24px;height:24px}._inputContainer_1eto7_1{background-color:transparent;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));padding-left:.75rem;padding-right:.75rem}._inputContainer_1eto7_1::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1eto7_1::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1eto7_1{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 640px){._inputContainer_1eto7_1{font-size:.875rem;line-height:1.25rem}}._inputFocus_1eto7_6,._inputContainer_1eto7_1:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}._input_1eto7_1{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_1eto7_16{display:flex}._errorInput_1eto7_20{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_1eto7_20:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_1eto7_20:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._error_1eto7_20{margin-top:.25rem;padding-left:.25rem;font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_1eto7_28{margin-bottom:2px;display:flex;align-items:center;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_1eto7_32{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._cvcIcon_1yx89_1{width:100%;height:100%}._iconContainer_1nckj_1{margin:0 1px}.
|
|
1
|
+
(function(re,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],m):(re=typeof globalThis<"u"?globalThis:re||self,m(re["Able SDK"]={},re.React))})(this,function(re,m){"use strict";var Sr=document.createElement("style");Sr.textContent=`._button_159xd_1{transition-property:transform,color,background,background-color,border-color,text-decoration-color,fill,stroke,opacity;transition-timing-function:ease;transition-duration:.25s;position:relative;z-index:0;box-sizing:border-box;display:inline-flex;height:2.5rem;width:100%;min-width:5rem;transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-items:center;justify-content:center;gap:.5rem;overflow:hidden;white-space:nowrap;border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1));padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto;outline:2px solid transparent;outline-offset:2px}@media (prefers-reduced-motion: reduce){._button_159xd_1{transition-property:none}}._button_159xd_1>svg{max-width:2rem}._primary_159xd_11{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}._success_159xd_15{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}._loading_159xd_19,._button_159xd_1:hover{opacity:.7}._press_159xd_24{transform:scale(.95)}._card_1woqz_1{display:grid;gap:.75rem;padding-top:1rem}._title_1woqz_5{font-size:.875rem;line-height:1.25rem;font-weight:600}._error_1woqz_9{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_1woqz_13{display:flex;width:100%;justify-content:space-between}._label_1woqz_13 span{text-wrap:nowrap;text-overflow:ellipsis;overflow:hidden}._cardDataContainer_1woqz_23{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}._iconContainer_1woqz_27{margin:0 1px}._payButton_1woqz_31{display:flex;align-items:center;justify-content:center}._spinner_1woqz_35{width:24px;height:24px}._inputContainer_1eto7_1{background-color:transparent;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));padding-left:.75rem;padding-right:.75rem}._inputContainer_1eto7_1::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1eto7_1::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1eto7_1{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 640px){._inputContainer_1eto7_1{font-size:.875rem;line-height:1.25rem}}._inputFocus_1eto7_6,._inputContainer_1eto7_1:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}._input_1eto7_1{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_1eto7_16{display:flex}._errorInput_1eto7_20{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_1eto7_20:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_1eto7_20:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._error_1eto7_20{margin-top:.25rem;padding-left:.25rem;font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_1eto7_28{margin-bottom:2px;display:flex;align-items:center;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_1eto7_32{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._cvcIcon_1yx89_1{width:100%;height:100%}._iconContainer_1nckj_1{margin:0 1px}._container_1ari8_1{display:flex;width:100%;flex-grow:1;flex-direction:row;align-items:center;justify-content:flex-start;-moz-column-gap:.25rem;column-gap:.25rem;border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(254 231 239 / var(--tw-bg-opacity, 1));padding:.75rem 1rem}._container_1ari8_1:is(._dark_1ari8_1 *){background-color:#fee7ef80;--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}._iconContainer_1ari8_5{width:16px;height:16px}._icon_1ari8_5{width:100%;height:100%}._title_1ari8_15{padding-left:.25rem;font-size:.875rem;line-height:1.25rem;font-weight:300}._svg_1kkac_1{height:100%;width:100%}@keyframes _spin_1kkac_1{to{transform:rotate(360deg)}}._svg_1kkac_1{animation:_spin_1kkac_1 1s linear infinite;fill:#9ca3af;--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}._svg_1kkac_1:is(._dark_1kkac_1 *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}._sr_1kkac_5{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}._googlePay_1a960_1{border-radius:12px;height:40px;overflow:hidden;background-color:transparent}._googlePay_1a960_1 iframe{width:calc(100% + 12px)!important;height:44px!important;border:none;display:block;transform:translateY(-2px);margin:0 -6px}._hidden_1a960_17{display:none}._applePay_2b2iv_1{border-radius:12px;height:40px;overflow:hidden;background-color:transparent}._applePay_2b2iv_1 iframe{width:calc(100% + 12px)!important;height:44px!important;border:none;display:block;transform:translateY(-2px);margin:0 -6px}._hidden_2b2iv_17{display:none}._container_a64yo_1{position:relative;height:auto;min-height:40px;width:100%;max-width:640px}._backBtn_a64yo_5{cursor:pointer}._cardBtn_a64yo_9{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}._btnContainer_a64yo_13{display:grid;gap:.5rem}._spinner_a64yo_17{height:40px;width:40px}._spinnerContainer_a64yo_21{position:absolute;z-index:50;display:flex;height:auto;width:100%;align-items:center;justify-content:center;border-radius:.375rem}._paypalBtn_2m8yd_1{overflow:hidden;border-radius:12px;height:40px}._container_ipway_1{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:center}._icon_ipway_5{position:absolute;top:50%;left:50%;width:1.5rem;--tw-translate-x: -50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));fill:#16a34a}._iconContainer_ipway_9{position:relative;display:grid;height:2.25rem;width:2.25rem;flex:none;place-items:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(232 250 240 / var(--tw-bg-opacity, 1))}._iconContainer_ipway_9:is(._dark_ipway_1 *){--tw-bg-opacity: 1;background-color:rgb(209 244 224 / var(--tw-bg-opacity, 1))}._title_ipway_13{margin-top:.5rem;font-weight:300}
|
|
2
2
|
/*$vite$:1*/`,document.head.appendChild(Sr);function io(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ge=io(m);var wt={exports:{}},Ye={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.js
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var Ar;function ao(){return Ar||(Ar=1,process.env.NODE_ENV!=="production"&&function(){function e(x){if(x==null)return null;if(typeof x=="function")return x.$$typeof===_?null:x.displayName||x.name||null;if(typeof x=="string")return x;switch(x){case y:return"Fragment";case v:return"Profiler";case b:return"StrictMode";case T:return"Suspense";case k:return"SuspenseList";case R:return"Activity"}if(typeof x=="object")switch(typeof x.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),x.$$typeof){case g:return"Portal";case C:return(x.displayName||"Context")+".Provider";case w:return(x._context.displayName||"Context")+".Consumer";case P:var j=x.render;return x=x.displayName,x||(x=j.displayName||j.name||"",x=x!==""?"ForwardRef("+x+")":"ForwardRef"),x;case E:return j=x.displayName||null,j!==null?j:e(x.type)||"Memo";case S:j=x._payload,x=x._init;try{return e(x(j))}catch{}}return null}function t(x){return""+x}function n(x){try{t(x);var j=!1}catch{j=!0}if(j){j=console;var L=j.error,W=typeof Symbol=="function"&&Symbol.toStringTag&&x[Symbol.toStringTag]||x.constructor.name||"Object";return L.call(j,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",W),t(x)}}function r(x){if(x===y)return"<>";if(typeof x=="object"&&x!==null&&x.$$typeof===S)return"<...>";try{var j=e(x);return j?"<"+j+">":"<...>"}catch{return"<...>"}}function i(){var x=
|
|
18
|
+
*/var Ar;function ao(){return Ar||(Ar=1,process.env.NODE_ENV!=="production"&&function(){function e(x){if(x==null)return null;if(typeof x=="function")return x.$$typeof===_?null:x.displayName||x.name||null;if(typeof x=="string")return x;switch(x){case y:return"Fragment";case v:return"Profiler";case b:return"StrictMode";case T:return"Suspense";case k:return"SuspenseList";case R:return"Activity"}if(typeof x=="object")switch(typeof x.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),x.$$typeof){case g:return"Portal";case C:return(x.displayName||"Context")+".Provider";case w:return(x._context.displayName||"Context")+".Consumer";case P:var j=x.render;return x=x.displayName,x||(x=j.displayName||j.name||"",x=x!==""?"ForwardRef("+x+")":"ForwardRef"),x;case E:return j=x.displayName||null,j!==null?j:e(x.type)||"Memo";case S:j=x._payload,x=x._init;try{return e(x(j))}catch{}}return null}function t(x){return""+x}function n(x){try{t(x);var j=!1}catch{j=!0}if(j){j=console;var L=j.error,W=typeof Symbol=="function"&&Symbol.toStringTag&&x[Symbol.toStringTag]||x.constructor.name||"Object";return L.call(j,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",W),t(x)}}function r(x){if(x===y)return"<>";if(typeof x=="object"&&x!==null&&x.$$typeof===S)return"<...>";try{var j=e(x);return j?"<"+j+">":"<...>"}catch{return"<...>"}}function i(){var x=F.A;return x===null?null:x.getOwner()}function s(){return Error("react-stack-top-frame")}function a(x){if(V.call(x,"key")){var j=Object.getOwnPropertyDescriptor(x,"key").get;if(j&&j.isReactWarning)return!1}return x.key!==void 0}function o(x,j){function L(){fe||(fe=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",j))}L.isReactWarning=!0,Object.defineProperty(x,"key",{get:L,configurable:!0})}function l(){var x=e(this.type);return me[x]||(me[x]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),x=this.props.ref,x!==void 0?x:null}function u(x,j,L,W,ke,le,wr,Tr){return L=le.ref,x={$$typeof:f,type:x,key:j,props:le,_owner:ke},(L!==void 0?L:null)!==null?Object.defineProperty(x,"ref",{enumerable:!1,get:l}):Object.defineProperty(x,"ref",{enumerable:!1,value:null}),x._store={},Object.defineProperty(x._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(x,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(x,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:wr}),Object.defineProperty(x,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Tr}),Object.freeze&&(Object.freeze(x.props),Object.freeze(x)),x}function c(x,j,L,W,ke,le,wr,Tr){var Y=j.children;if(Y!==void 0)if(W)if(z(Y)){for(W=0;W<Y.length;W++)d(Y[W]);Object.freeze&&Object.freeze(Y)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(Y);if(V.call(j,"key")){Y=e(x);var We=Object.keys(j).filter(function(G0){return G0!=="key"});W=0<We.length?"{key: someKey, "+We.join(": ..., ")+": ...}":"{key: someKey}",Ge[Y+W]||(We=0<We.length?"{"+We.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
19
19
|
let props = %s;
|
|
20
20
|
<%s {...props} />
|
|
21
21
|
React keys must be passed directly to JSX without using spread:
|
|
22
22
|
let props = %s;
|
|
23
|
-
<%s key={someKey} {...props} />`,W,Y,We,Y),Ge[Y+W]=!0)}if(Y=null,L!==void 0&&(n(L),Y=""+L),a(j)&&(n(j.key),Y=""+j.key),"key"in j){L={};for(var kr in j)kr!=="key"&&(L[kr]=j[kr])}else L=j;return Y&&o(L,typeof x=="function"?x.displayName||x.name||"Unknown":x),u(x,Y,le,ke,i(),L,wr,Tr)}function d(x){typeof x=="object"&&x!==null&&x.$$typeof===f&&x._store&&(x._store.validated=1)}var p=m,f=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),C=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),_=Symbol.for("react.client.reference"),q=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=Object.prototype.hasOwnProperty,z=Array.isArray,J=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(x){return x()}};var fe,me={},F=p["react-stack-bottom-frame"].bind(p,s)(),ne=J(r(s)),Ge={};He.Fragment=y,He.jsx=function(x,j,L,W,ke){var le=1e4>q.recentlyCreatedOwnerStacks++;return c(x,j,L,!1,W,ke,le?Error("react-stack-top-frame"):F,le?J(r(x)):ne)},He.jsxs=function(x,j,L,W,ke){var le=1e4>q.recentlyCreatedOwnerStacks++;return c(x,j,L,!0,W,ke,le?Error("react-stack-top-frame"):F,le?J(r(x)):ne)}}()),He}var Er;function oo(){return Er||(Er=1,process.env.NODE_ENV==="production"?wt.exports=so():wt.exports=ao()),wt.exports}var h=oo();const Jt={apiBase:"https://dvfoid19j3afz.cloudfront.net/v1"},lo=[{type:"paypal",order:1,is_active:!0},{type:"apple-pay",order:2,is_active:!0},{type:"google-pay",order:3,is_active:!0},{type:"card",order:4,is_active:!0}];var jr=(e=>(e.Card="CARD",e))(jr||{});const co=async e=>{const t=`${Jt.apiBase}/payments/create`,n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(t,{method:"POST",headers:n,body:JSON.stringify(e)})).json()},uo=async e=>{const t=`${Jt.apiBase}/payments/create/billing/agreement`;return await(await fetch(t,{method:"POST",body:JSON.stringify({clientSession:e})})).json()},ho=async e=>{const t=`${Jt.apiBase}/payments/config?clientSessionID=${e}`,r=await(await fetch(t)).json();return r.checkoutConfig||(r.checkoutConfig=lo),r},po=({onCheckoutComplete:e,onCheckoutFail:t})=>{const[n,r]=m.useState(!1),[i,s]=m.useState(!1),[a,o]=m.useState(!1),l=m.useCallback(async d=>{try{s(!1),o(!1),r(!0);const{success:p,error:f}=await co(d);if(p)s(!0),e?.();else{const g=new Error(f||"Unknown error");o(!0),t?.(g)}}catch(p){console.error(p),o(!0),t?.(new Error("Unknown error"))}finally{r(!1)}},[e,t]),u=m.useCallback(d=>{o(!0),t?.(new Error(d))},[t]),c=m.useCallback(()=>{s(!1),o(!1)},[]);return{handleCheckout:l,handleCheckoutFail:u,handleCheckoutReset:c,isCheckoutFetching:n,isCheckoutSuccess:i,isCheckoutFail:a}},Qt={ar:{card:{title:"طريقة الدفع",number:{label:"رقم البطاقة",error:{required:"يتطلب",invalid:"رقم البطاقة غير صالح",incomplete:"رقم البطاقة غير كامل",unsupported:"نوع البطاقة غير المدعوم"}},expiry:{label:"تاريخ الانتهاء",placeholder:"سنة / شهر",error:{required:"يتطلب",invalid:"تاريخ انتهاء صلاحية البطاقة غير صالح",incomplete:"تاريخ انتهاء الصلاحية الخاص ببطاقتك غير كامل",expired:"تاريخ انتهاء صلاحية بطاقتك في الماضي"}},cvc:{label:"رمز الأمان",placeholder:"CVC",error:{required:"يتطلب",incomplete:"رمز الأمان الخاص ببطاقتك غير كامل",invalid:"رمز التحقق من البطاقة (CVC) الخاص ببطاقتك غير صالح"}},name:{label:"اسم حامل البطاقة",placeholder:"الاسم الكامل على البطاقة",error:{required:"يتطلب",invalid:"يرجى إدخال اسمك الكامل"}},pay:{button:"الراتب"},compact:{button:"البطاقة"}},status:{success:"تمت عملية الدفع الخاصة بك بنجاح!",error:"لم نتمكن من التحقق من طريقة الدفع الخاصة بك. يرجى اختيار طريقة دفع أخرى وإعادة المحاولة."}},en:{card:{title:"Payment method",number:{label:"Card number",error:{required:"REQUIRED",invalid:"Your card number is invalid",incomplete:"Your card number is incomplete",unsupported:"Unsupported card type"}},expiry:{label:"Expiry date",placeholder:"MM / YY",error:{required:"REQUIRED",invalid:"Your card’s expiry date is invalid",incomplete:"Your card’s expiry date is incomplete",expired:"Your card’s expiry {date} is in the past"}},cvc:{label:"Security code",placeholder:"CVC",error:{required:"REQUIRED",incomplete:"Your card’s security code is incomplete",invalid:"Your card’s CVC is invalid"}},name:{label:"Cardholder name",placeholder:"Full name on card",error:{required:"REQUIRED",invalid:"Please provide your full name"}},pay:{button:"Pay"},compact:{button:"Card"}},status:{success:"Your payment was successful!",error:"We are unable to authenticate your payment method. Please choose a different payment method and try again."}},bg:{card:{title:"Метод на плащане",number:{label:"Информация за картата",error:{required:"ЗАДЪЛЖИТЕЛНО",invalid:"Номерът на Вашата карта е неправилен",incomplete:"Номерът на Вашата карта е непълен",unsupported:"Неподдържан тип карта"}},expiry:{label:"Дата на валидност",placeholder:"ММ / ГГ",error:{required:"ЗАДЪЛЖИТЕЛНО",incomplete:"Датата на валидност на вашата карта е непълна",invalid:"Датата на валидност на вашата карта е невалидна",expired:"Датата на валидност на вашата карта е в миналото"}},cvc:{label:"Код за сигурност",placeholder:"CVC",error:{required:"ЗАДЪЛЖИТЕЛНО",incomplete:"Кодът за сигурност на вашата карта е непълен",invalid:"Кодът за сигурност на вашата карта е невалиден"}},name:{label:"Име на картодържателя",placeholder:"Пълно име върху картата",error:{required:"ЗАДЪЛЖИТЕЛНО",invalid:"Моля, въведете трите си имена"}},pay:{button:"Платете"},compact:{button:"Карта"}},status:{success:"Успех",error:"Не можем да удостоверим автентичността на вашия метод на плащане. Моля, изберете друг метод на плащане и опитайте отново."}},cs:{card:{title:"Způsob platby",number:{label:"Číslo karty",error:{required:"POVINNÝ ÚDAJ",invalid:"Číslo Vaší karty je neplatné",incomplete:"Číslo vaší karty je neúplné",unsupported:"Nepodporovaný typ karty"}},expiry:{label:"Datum konce platnosti",placeholder:"MM / RR",error:{required:"POVINNÝ ÚDAJ",incomplete:"Datum konce platnosti vaší karty je neúplné",invalid:"Datum konce platnosti karty je neplatné",expired:"Platnost vaší karty vypršela"}},cvc:{label:"Bezpečnostní kód",placeholder:"CVC",error:{required:"POVINNÝ ÚDAJ",incomplete:"Bezpečnostní kód vaší karty je neúplný",invalid:"CVC vaší karty je neplatné"}},name:{label:"Jméno držitele karty",placeholder:"Celé jméno",error:{required:"POVINNÝ ÚDAJ",invalid:"Uvďte prosím celé své jméno"}},pay:{button:"Platit"},compact:{button:"Karta"}},status:{success:"Úspěch",error:"Váš způsob platby se nám nedaří ověřit. Zvolte prosím jiný způsob platby a zkuste to znovu."}},da:{card:{title:"Betalingsmetode",number:{label:"Kortnummer",error:{required:"PÅKRÆVET",invalid:"Kortnummeret er ugyldigt",incomplete:"Kortnummeret er ufuldstændigt",unsupported:"Ikke understøttet korttype"}},expiry:{label:"Udløbsdato",placeholder:"MM / ÅÅ",error:{required:"PÅKRÆVET",incomplete:"Kortets udløbsdato er ikke komplet",invalid:"Dit korts udløbsdato er ugyldig",expired:"Dit kort er udløbet"}},cvc:{label:"Sikkerhedskode",placeholder:"CVC",error:{required:"PÅKRÆVET",incomplete:"Dit korts sikkerhedskode er ikke komplet",invalid:"Dit korts CVC er ugyldigt"}},name:{label:"Kortholderens navn",placeholder:"Fulde navn",error:{required:"PÅKRÆVET",invalid:"Angiv dit fulde navn"}},pay:{button:"Betal"},compact:{button:"Kredit- eller betalingskort"}},status:{success:"Succes",error:"Vi kan ikke godkende din betalingsmetode. Vælg venligst en anden betalingsmetode og prøv igen."}},de:{card:{title:"Zahlungsmethode",number:{label:"Kartennummer",error:{required:"Pflichtfeld",invalid:"Ihre Kartennummer ist ungültig",incomplete:"Ihre Kartennummer ist unvollständig",unsupported:"Nicht unterstützter Kartentyp"}},expiry:{label:"Ablaufdatum",placeholder:"MM / JJ",error:{required:"Pflichtfeld",incomplete:"Das Ablaufdatum Ihrer Karte ist unvollständig",invalid:"Das Ablaufdatum Ihrer Karte ist ungültig",expired:"Ihre Karte ist ungültig"}},cvc:{label:"Sicherheitscode",placeholder:"CVC",error:{required:"Pflichtfeld",incomplete:"Der Sicherheitscode Ihrer Karte ist unvollständig",invalid:"Die Prüfziffer/CVC Ihrer Karte ist ungültig"}},name:{label:"Name des/der Karteninhaber/in",placeholder:"Vollständiger Name",error:{required:"Pflichtfeld",invalid:"Bitte geben Sie Ihren vollständigen Namen ein"}},pay:{button:"Bezahlen"},compact:{button:"Kredit- oder Debitkarte"}},status:{success:"Erfolg",error:"Wir können Ihre Zahlungsmethode nicht authentifizieren. Bitte wählen Sie eine andere Zahlungsmethode und versuchen Sie es erneut."}},el:{card:{title:"Μέθοδος πληρωμής",number:{label:"Αριθμός κάρτας",error:{required:"Απαιτούμενο",invalid:"Ο αριθμός της κάρτας σας δεν είναι έγκυρος",incomplete:"Ο αριθμός της κάρτας σας είναι ελλιπής",unsupported:"Δεν υποστηρίζεται ο τύπος της κάρτας"}},expiry:{label:"Ημερομηνία λήξης",placeholder:"ΜΜ / ΕΕ",error:{required:"Απαιτούμενο",incomplete:"Η ημερομηνία λήξης της κάρτας σας είναι ελλιπής",invalid:"Η ημερομηνία λήξης της κάρτας σας δεν είναι έγκυρη",expired:"Η κάρτα σας έχει λήξει"}},cvc:{label:"Κωδικός ασφαλείας",placeholder:"CVC",error:{required:"Απαιτούμενο",incomplete:"Ο κωδικός ασφαλείας της κάρτας σας είναι ελλιπής",invalid:"Το CVC της κάρτας σας δεν είναι έγκυρο"}},name:{label:"Όνομα κατόχου κάρτας",placeholder:"Πλήρες όνομα στην κάρτα",error:{required:"Απαιτούμενο",invalid:"Συμπληρώστε το ονοματεπώνυμό σας"}},pay:{button:"Πληρωμή"},compact:{button:"Kάρτα"}},status:{success:"Επιτυχία",error:"Δεν μπορούμε να πιστοποιήσουμε τη μέθοδο πληρωμής σας. Παρακαλούμε επιλέξτε μια διαφορετική μέθοδο πληρωμής και προσπαθήστε ξανά."}},es:{card:{title:"Método de pago",number:{label:"Número de tarjeta",error:{required:"OBLIGATORIO",invalid:"El número de tu tarjeta no es válido",incomplete:"El número de tu tarjeta está incompleto",unsupported:"Tipo de tarjeta no soportado"}},expiry:{label:"Fecha de caducidad",placeholder:"MM / AA",error:{required:"OBLIGATORIO",incomplete:"La fecha de caducidad de la tarjeta está incompleta",invalid:"La fecha de caducidad de la tarjeta no es válida",expired:"La tarjeta ha caducado"}},cvc:{label:"Código de seguridad",placeholder:"CVC",error:{required:"OBLIGATORIO",incomplete:"El código de seguridad de la tarjeta está incompleto",invalid:"El CVC de tu tarjeta no es válido"}},name:{label:"Nombre del titular de la tarjeta",placeholder:"Nombre completo",error:{required:"OBLIGATORIO",invalid:"Proporciona tu nombre completo"}},pay:{button:"Pagar"},compact:{button:"Tarjeta"}},status:{success:"Éxito",error:"No podemos autenticar su método de pago. Elija otro método de pago e inténtelo de nuevo."}},et:{card:{title:"Makseviis",number:{label:"Kaardi number",error:{required:"NÕUTAV",invalid:"Teie kaardinumber ei sobi",incomplete:"Teie kaardinumber on puudulik",unsupported:"Toetamata kaardi tüüp"}},expiry:{label:"Aegumiskuupäev",placeholder:"KK / AA",error:{required:"NÕUTAV",incomplete:"Teie kaardi aegumiskuupäev on puudulik",invalid:"Teie kaardi aegumiskuupäev on kehtetu",expired:"Teie kaart on aegunud"}},cvc:{label:"Turvakood",placeholder:"CVC",error:{required:"NÕUTAV",incomplete:"Teie kaardi turvakood on puudulik",invalid:"Teie kaardi CVC on kehtetu"}},name:{label:"Kaardiomaniku nimi",placeholder:"Täisnimi",error:{required:"NÕUTAV",invalid:"Esitage oma täisnimi"}},pay:{button:"Maksa"},compact:{button:"Krediit- või deebetkaart"}},status:{success:"Edu",error:"Me ei suuda teie makseviisi autentida. Palun valige teine makseviis ja proovige uuesti."}},fi:{card:{title:"Maksutapa",number:{label:"Kortin numero",error:{required:"PAKOLLINEN",invalid:"Kortin numero ei kelpaa",incomplete:"Kortin numero on puutteellinen",unsupported:"Ei tuettu korttityyppi"}},expiry:{label:"Erääntymispäivä",placeholder:"KK / VV",error:{required:"PAKOLLINEN",incomplete:"Kortin voimassaoloaika on puutteellinen",invalid:"Kortin voimassaoloaika on virheellinen",expired:"Korttisi on vanhentunut"}},cvc:{label:"Turvakoodi",placeholder:"CVC-koodi",error:{required:"PAKOLLINEN",incomplete:"Kortin turvakoodi on puutteellinen",invalid:"Kortin CVC ei kelpaa"}},name:{label:"Kortinhaltijan nimi",placeholder:"Koko nimi",error:{required:"PAKOLLINEN",invalid:"Anna koko nimesi"}},pay:{button:"Maksa"},compact:{button:"Luotto- tai pankkikortti"}},status:{success:"Menestys",error:"Emme pysty todentamaan maksutapaasi. Valitse toinen maksutapa ja yritä uudelleen."}},fil:{card:{title:"Paraan ng pagbabayad",number:{label:"Numero ng card",error:{required:"KAILANGAN",invalid:"Hindi valid ang numero ng kard mo",incomplete:"Ang numero ng iyong kard ay kulang",unsupported:"Hindi sinusuportahang uri ng card"}},expiry:{label:"Petsa ng pagkapaso",placeholder:"BB / TT",error:{required:"KAILANGAN",incomplete:"Ang petsa ng pagkapaso ng iyong kard ay kulang",invalid:"Hindi valid ang petsa ng pagkapaso ng iyong kard",expired:"Napaso na ang iyong kard"}},cvc:{label:"Security code",placeholder:"CVC",error:{required:"KAILANGAN",incomplete:"Ang security code ng iyong kard ay kulang",invalid:"Hindi valid ang CVC ng iyong kard"}},name:{label:"Pangalan ng may-ari ng kard",placeholder:"Buong pangalan",error:{required:"KAILANGAN",invalid:"Pakibigay ang iyong buong pangalan"}},pay:{button:"Magbayad"},compact:{button:"Luotto- tai pankkikortti"}},status:{success:"Tagumpay",error:"Hindi namin ma-authenticate ang iyong paraan ng pagbabayad. Mangyaring pumili ng ibang paraan ng pagbabayad at subukang muli."}},fr:{card:{title:"Moyen de paiement",number:{label:"Numéro de la carte",error:{required:"OBLIGATOIRE",invalid:"Votre numéro de carte n'est pas valide",incomplete:"Votre numéro de carte est incomplet",unsupported:"Type de carte non supporté"}},expiry:{label:"Date d'expiration",placeholder:"MM / AA",error:{required:"OBLIGATOIRE",incomplete:"La date d'expiration de votre carte est incomplète",invalid:"La date d'expiration de votre carte n'est pas valide",expired:"Votre carte a expiré"}},cvc:{label:"Code de sécurité",placeholder:"CVC",error:{required:"OBLIGATOIRE",incomplete:"Le code de sécurité de votre carte est incomplet",invalid:"Le code CVC de votre carte n'est pas valide"}},name:{label:"Nom du titulaire de la carte",placeholder:"Nom complet",error:{required:"OBLIGATOIRE",invalid:"Veuillez indiquer votre nom complet"}},pay:{button:"Payer"},compact:{button:"Carte"}},status:{success:"Succès",error:"Nous ne sommes pas en mesure d'authentifier votre méthode de paiement. Veuillez choisir un autre mode de paiement et réessayer."}},hr:{card:{title:"Način plaćanja",number:{label:"Broj kartice",error:{required:"POTREBNO",invalid:"Broj vaše kartice nije valjan",incomplete:"Broj vaše kartice nije potpun",unsupported:"Nepodržana vrsta kartice"}},expiry:{label:"Datum isteka",placeholder:"MM / GG",error:{required:"POTREBNO",incomplete:"Datum isteka vaše kartice je nepotpun",invalid:"Datum isteka vaše kartice nije valjan",expired:"Kartica je istekla"}},cvc:{label:"Sigurnosni kod",placeholder:"CVC",error:{required:"POTREBNO",incomplete:"Sigurnosni kôd vaše kartice je nepotpun",invalid:"Kontrolni broj (CVC) vaše kartice nije valjan"}},name:{label:"Ime vlasnika kartice",placeholder:"Puno ime",error:{required:"POTREBNO",invalid:"Unesite svoje puno ime"}},pay:{button:"Plati"},compact:{button:"Kartica"}},status:{success:"Uspjeh",error:"Ne možemo provjeriti autentičnost vašeg načina plaćanja. Odaberite drugi način plaćanja i pokušajte ponovno."}},hu:{card:{title:"Fizetési mód",number:{label:"Kártya száma",error:{required:"KÖTELEZŐ",invalid:"A kártyaszáma érvénytelen",incomplete:"A kártyaszáma hiányos",unsupported:"Nem támogatott kártya típusa"}},expiry:{label:"Lejárat dátuma",placeholder:"HH / ÉÉ",error:{required:"KÖTELEZŐ",incomplete:"A kártyája lejárati dátuma hiányos",invalid:"A kártyája lejárati dátuma érvénytelen",expired:"A kártyája lejárt"}},cvc:{label:"Biztonsági kód",placeholder:"CVC",error:{required:"KÖTELEZŐ",incomplete:"A kártyája biztonsági kódja hiányos",invalid:"A kártya CVC-kódja érvénytelen"}},name:{label:"Kártyabirtokos neve",placeholder:"Teljes név",error:{required:"KÖTELEZŐ",invalid:"Adja meg a teljes nevét"}},pay:{button:"Fizetés"},compact:{button:"Hitel- vagy bankkártya"}},status:{success:"Siker",error:"Nem tudjuk hitelesíteni a fizetési módját. Kérjük, válasszon másik fizetési módot, és próbálja meg újra."}},id:{card:{title:"Metode pembayaran",number:{label:"Nomor kartu",error:{required:"WAJIB DIISI",invalid:"Nomor kartu Anda tidak valid",incomplete:"Nomor kartu Anda tidak lengkap",unsupported:"Tipe kartu tidak didukung"}},expiry:{label:"Tanggal kedaluwarsa",placeholder:"BB / TT",error:{required:"WAJIB DIISI",incomplete:"Tanggal kedaluwarsa kartu Anda tidak lengkap",invalid:"Tanggal kedaluwarsa kartu Anda tidak valid",expired:"Kartu Anda telah kedaluwarsa"}},cvc:{label:"Kode keamanan",placeholder:"CVC",error:{required:"WAJIB DIISI",incomplete:"Kode keamanan kartu Anda tidak lengkap",invalid:"CVC kartu Anda tidak valid"}},name:{label:"Nama pemegang kartu",placeholder:"Nama lengkap",error:{required:"WAJIB DIISI",invalid:"Berikan nama lengkap Anda"}},pay:{button:"Bayar"},compact:{button:"Kartu"}},status:{success:"Sukses",error:"Kami tidak dapat mengautentikasi metode pembayaran Anda. Silakan pilih metode pembayaran lain dan coba lagi."}},it:{card:{title:"Modalità di pagamento",number:{label:"Numero di carta",error:{required:"OBBLIGATORIO",invalid:"Il numero della carta non è valido",incomplete:"Il numero della carta è incompleto",unsupported:"Tipo di carta non supportato"}},expiry:{label:"Data di scadenza",placeholder:"MM / AA",error:{required:"OBBLIGATORIO",incomplete:"La data di scadenza della carta non è completa",invalid:"La data di scadenza della carta non è valida",expired:"La tua carta è scaduta"}},cvc:{label:"Codice di sicurezza",placeholder:"CVC",error:{required:"OBBLIGATORIO",incomplete:"Il codice di sicurezza della carta non è completo",invalid:"Il CVC della carta non è valido"}},name:{label:"Nome del titolare della carta",placeholder:"Nome e cognome",error:{required:"OBBLIGATORIO",invalid:"Inserisci il tuo nome completo"}},pay:{button:"Paga"},compact:{button:"Carta"}},status:{success:"Il successo",error:"Non siamo in grado di autenticare il suo metodo di pagamento. Scegliere un altro metodo di pagamento e riprovare."}},ja:{card:{title:"支払い方法",number:{label:"カード番号",error:{required:"必須",invalid:"カード番号が無効です",incomplete:"カード番号に不備があります",unsupported:"サポートされていないカードタイプ"}},expiry:{label:"有効期限",placeholder:"MM (月) / YY (年)",error:{required:"必須",incomplete:"カードの有効期限に不備があります",invalid:"カードの有効期間の満了月が無効です",expired:"カードの有効期限が切れています"}},cvc:{label:"セキュリティコード",placeholder:"セキュリティコード",error:{required:"必須",incomplete:"カードのセキュリティコードに不備があります",invalid:"カードのセキュリティコードが無効です"}},name:{label:"カード保有者の名前",placeholder:"氏名",error:{required:"必須",invalid:"氏名を入力してください"}},pay:{button:"支払う"},compact:{button:"カード"}},status:{success:"成功",error:"お客様のお支払い方法を認証できません。別のお支払い方法を選択し、再度お試しください。"}},ko:{card:{title:"결제 방식",number:{label:"카드 번호",error:{required:"필수",invalid:"카드 번호가 잘못되었습니다",incomplete:"카드 번호가 불완전합니다",unsupported:"지원되지 않는 카드 유형"}},expiry:{label:"만료 날짜",placeholder:"MM / YY",error:{required:"필수",incomplete:"카드의 유효기간 만료일이 불완전합니다",invalid:"카드의 유효기간 만료일이 잘못되었습니다",expired:"카드가 만료되었습니다"}},cvc:{label:"보안 코드",placeholder:"보안 코드(CVC)",error:{required:"필수",incomplete:"카드의 보안 코드가 불완전합니다",invalid:"카드의 보안 코드(CVC)가 잘못되었습니다"}},name:{label:"카드 소유자 이름",placeholder:"성명",error:{required:"필수",invalid:"성명을 입력하십시오"}},pay:{button:"결제"},compact:{button:"카드 번호"}},status:{success:"성공",error:"결제 방법을 인증할 수 없습니다. 다른 결제 방법을 선택하고 다시 시도해 주세요."}},lt:{card:{title:"Mokėjimo būdas",number:{label:"Kortelės numeris",error:{required:"PRIVALOMA",invalid:"Negaliojantis kortelės numeris",incomplete:"Neišsamus kortelės numeris",unsupported:"Nepalaikomas kortelės tipas"}},expiry:{label:"Galiojimo pabaigos data",placeholder:"mm / MM",error:{required:"PRIVALOMA",incomplete:"Neišsami jūsų kortelės galiojimo pabaigos data",invalid:"Netinkama jūsų kortelės galiojimo pabaigos data",expired:"Kortelė baigė galioti"}},cvc:{label:"Saugos kodas",placeholder:"CVC",error:{required:"PRIVALOMA",incomplete:"Neišsamus jūsų kortelės saugos kodas",invalid:"Jūsų kortelės CVC negalioja"}},name:{label:"Kortelės turėtojo vardas ir pavardė",placeholder:"Vardas ir pavardė",error:{required:"PRIVALOMA",invalid:"Įveskite ir vardą ir pavardę"}},pay:{button:"Mokėti"},compact:{button:"Kortelė"}},status:{success:"Sėkmė",error:"Negalime patvirtinti jūsų mokėjimo būdo. Pasirinkite kitą mokėjimo būdą ir bandykite dar kartą."}},lv:{card:{title:"Maksājumu veids",number:{label:"Kartes numurs",error:{required:"OBLIGĀTI",invalid:"Kartes numurs nav derīgs",incomplete:"Kartes numurs nav pilnīgs",unsupported:"Nepareizs kartes tips"}},expiry:{label:"Derīguma termiņš",placeholder:"MM / YY",error:{required:"OBLIGĀTI",incomplete:"Kartes derīguma termiņa datums nav pilnīgs",invalid:"Kartes derīguma termiņa beigu datums nav derīgs",expired:"Kartes derīgums ir beidzies"}},cvc:{label:"Drošības kods",placeholder:"CVC",error:{required:"OBLIGĀTI",incomplete:"Kartes drošības kods nav pilnīgs",invalid:"Kartes CVC nav derīgs"}},name:{label:"Kartes īpašnieka vārds",placeholder:"Vārds, uzvārds",error:{required:"OBLIGĀTI",invalid:"Norādiet savu vārdu un uzvārdu"}},pay:{button:"Maksāt"},compact:{button:"Karte"}},status:{success:"Panākumi",error:"Mēs nevaram pārbaudīt jūsu maksājuma metodes autentiskumu. Lūdzu, izvēlieties citu maksājumu metodi un mēģiniet vēlreiz."}},ms:{card:{title:"Kaedah pembayaran",number:{label:"Nombor kad",error:{required:"DIPERLUKAN",invalid:"Nombor kad anda tidak sah",incomplete:"Nombor kad anda tidak lengkap",unsupported:"Tipe kad tidak sah"}},expiry:{label:"Tarikh tamat tempoh",placeholder:"BB / TT",error:{required:"DIPERLUKAN",incomplete:"Tarikh tamat tempoh kad anda tidak lengkap",invalid:"Tarikh tamat tempoh kad anda tidak sah",expired:"Kad anda telah tamat tempoh"}},cvc:{label:"Kod keselamatan",placeholder:"CVC",error:{required:"DIPERLUKAN",incomplete:"Kod keselamatan kad anda tidak lengkap",invalid:"CVC kad anda tidak sah"}},name:{label:"Nama pemegang kad",placeholder:"Nama penuh",error:{required:"DIPERLUKAN",invalid:"Sila berikan nama penuh anda"}},pay:{button:"Bayar"},compact:{button:"Kad"}},status:{success:"Kejayaan",error:"Kami tidak dapat mengesahkan kaedah pembayaran anda. Sila pilih kaedah pembayaran lain dan cuba lagi."}},ru:{card:{title:"Метод оплаты",number:{label:"Номер карты",error:{required:"ОБЯЗАТЕЛЬНО",invalid:"Недопустимый номер карты",incomplete:"Номер карты неполон",unsupported:"Неподдерживаемый тип карты"}},expiry:{label:"Срок действия",placeholder:"ММ / ГГ",error:{required:"ОБЯЗАТЕЛЬНО",incomplete:"Срок действия карты указан не полностью",invalid:"Указанный срок действия карты недействителен",expired:"Срок действия карты истек"}},cvc:{label:"Код безопасности",placeholder:"CVC",error:{required:"ОБЯЗАТЕЛЬНО",incomplete:"Код безопасности карты введен не полностью",invalid:"Код CVC карты недействителен"}},name:{label:"Имя владельца карты",placeholder:"Имя, фамилия",error:{required:"ОБЯЗАТЕЛЬНО",invalid:"Введите свое имя и фамилию"}},pay:{button:"Оплатить"},compact:{button:"Кредитная карта"}},status:{success:"Успех",error:"Мы не можем проверить подлинность вашего способа оплаты. Пожалуйста, выберите другой способ оплаты и повторите попытку."}},mt:{card:{title:"Metodu tal-ħlas",number:{label:"Numru tal-karta",error:{required:"MEĦTIEĠ/A",invalid:"In-numru tal-karta tiegħek mhuwiex tajjeb",incomplete:"In-numru tal-karta tiegħek mhuwiex komplut",unsupported:"Tip ta' karta mhux appoġġjat"}},expiry:{label:"Data tal-iskadenza",placeholder:"XX / SS",error:{required:"MEĦTIEĠ/A",incomplete:"Id-data tal-iskadenza tal-karta tiegħek mhix sħiħa",invalid:"Id-data tal-iskadenza tal-karta tiegħek mhix tajba",expired:"Il-karta tiegħek skadiet"}},cvc:{label:"Kodiċi tas-sigurtà",placeholder:"CVC",error:{required:"MEĦTIEĠ/A",incomplete:"Il-kodiċi tas-sigurtà tal-karta tiegħek mhux sħiħ",invalid:"Is-CVC tal-karta tiegħek mhux tajjeb"}},name:{label:"Isem id-detentur tal-karta",placeholder:"Isem u kunjom",error:{required:"MEĦTIEĠ/A",invalid:"Jekk jogħġbok ipprovdi isemek kollu"}},pay:{button:"Ħallas"},compact:{button:"Karta"}},status:{success:"Suċċess",error:"Aħna ma nistgħux jawtentikaw il-metodu tal-ħlas tiegħek. Jekk jogħġbok agħżel metodu ta' ħlas differenti u erġa' pprova."}},nb:{card:{title:"Betalingsmetode",number:{label:"Kortnummer",error:{required:"PÅKREVET",invalid:"Kortnummer er ugyldig",incomplete:"Kortnummeret er ufullstendig",unsupported:"Ikke understøttet korttype"}},expiry:{label:"Utløpsdato",placeholder:"MM / ÅÅ",error:{required:"PÅKREVET",incomplete:"Kortets utløpsdato er ufullstendig",invalid:"Kortets utløpsdato er ugyldig",expired:"Kortet er utløpt"}},cvc:{label:"Sikkerhetskode",placeholder:"CVC",error:{required:"PÅKREVET",incomplete:"Kortets sikkerhetskode er ufullstendig",invalid:"Kortets CVC-nummer er ugyldig"}},name:{label:"Kortinnehavers navn",placeholder:"Fullt navn",error:{required:"PÅKREVET",invalid:"Oppgi fullt navn"}},pay:{button:"Betal"},compact:{button:"Kort"}},status:{success:"Suksess",error:"Vi kan ikke godkjenne betalingsmåten din. Vennligst velg en annen betalingsmetode og prøv på nytt."}},nl:{card:{title:"Betaalmethode",number:{label:"Kaartnummer",error:{required:"VEREIST",invalid:"Je kaartnummer is ongeldig",incomplete:"Je kaartnummer is onvolledig",unsupported:"Niet ondersteund"}},expiry:{label:"Vervaldatum",placeholder:"MM / JJ",error:{required:"VEREIST",incomplete:"De vervaldatum van je kaart is onvolledig",invalid:"De vervaldatum van je betaalkaart is ongeldig",expired:"Je kaart is vervallen"}},cvc:{label:"Beveiligingscode",placeholder:"CVC",error:{required:"VEREIST",incomplete:"De beveiligingscode van je betaalkaart is onvolledig",invalid:"De CVC-code van je betaalkaart is ongeldig"}},name:{label:"Naam kaarthouder",placeholder:"Volledige naam",error:{required:"VEREIST",invalid:"Geef je volledige naam op"}},pay:{button:"Betalen"},compact:{button:"Kaart"}},status:{success:"Succes",error:"We kunnen je betaalmethode niet verifiëren. Kies een andere betaalmethode en probeer het opnieuw."}},pl:{card:{title:"Metoda płatności",number:{label:"Numer karty",error:{required:"WYMAGANE",invalid:"Numer karty jest nieprawidłowy",incomplete:"Numer karty jest niepełny",unsupported:"Nieobsługiwany typ karty"}},expiry:{label:"Data ważności",placeholder:"MM / RR",error:{required:"WYMAGANE",incomplete:"Data ważności karty jest niepełna",invalid:"Termin ważności karty jest nieprawidłowy",expired:"Karta straciła ważność"}},cvc:{label:"Kod bezpieczeństwa",placeholder:"Kod CVC",error:{required:"WYMAGANE",incomplete:"Kod zabezpieczający karty jest niekompletny",invalid:"CVC karty jest nieprawidłowy"}},name:{label:"Imię i nazwisko posiadacza karty",placeholder:"Imię i nazwisko",error:{required:"WYMAGANE",invalid:"Podaj pełne imię i nazwisko"}},pay:{button:"Zapłać"},compact:{button:"Karta"}},status:{success:"Sukces",error:"Nie możemy uwierzytelnić metody płatności. Wybierz inną metodę płatności i spróbuj ponownie."}},pt:{card:{title:"Forma de pagamento",number:{label:"Número do cartão",error:{required:"OBRIGATÓRIO",invalid:"O número do seu cartão é inválido",incomplete:"O número do seu cartão está incompleto",unsupported:"Tipo de cartão não suportado"}},expiry:{label:"Data de validade",placeholder:"MM / AA",error:{required:"OBRIGATÓRIO",incomplete:"A data de validade do cartão está incompleta",invalid:"A data de validade do seu cartão é inválida",expired:"O seu cartão expirou"}},cvc:{label:"Código de segurança",placeholder:"CVC",error:{required:"OBRIGATÓRIO",incomplete:"O código de segurança de seu cartão está incompleto",invalid:"O CVC do seu cartão é inválido"}},name:{label:"Nome do titular do cartão",placeholder:"Nome completo",error:{required:"OBRIGATÓRIO",invalid:"Forneça o seu nome completo"}},pay:{button:"Pagar"},compact:{button:"Cartão"}},status:{success:"Sucesso",error:"Não foi possível autenticar o seu método de pagamento. Selecione um método de pagamento diferente e tente novamente."}},ro:{card:{title:"Metoda de plată",number:{label:"Numărul cardului",error:{required:"NECESAR",invalid:"Numărul cardului dvs. nu este valid",incomplete:"Numărul cardului dvs. nu este complet",unsupported:"Tipul cardului nu este acceptat"}},expiry:{label:"Data de expirare",placeholder:"LL / AA",error:{required:"NECESAR",incomplete:"Data de expirare a cardului dvs. este incompletă",invalid:"Data de expirare a cardului dvs. nu este validă",expired:"Cardul dvs. a expirat"}},cvc:{label:"Codul de securitate",placeholder:"CVC",error:{required:"NECESAR",incomplete:"Codul de securitate al cardului dvs. este incomplet",invalid:"Numărul CVC al cardului dvs. nu este valid"}},name:{label:"Nume titular card",placeholder:"Nume complet",error:{required:"NECESAR",invalid:"Vă rugăm să furnizați numele dvs. complet"}},pay:{button:"Plătiți"},compact:{button:"Card"}},status:{success:"Succes",error:"Nu putem să vă autentificăm metoda de plată. Vă rugăm să alegeți o altă metodă de plată și să încercați din nou."}},sk:{card:{title:"Spôsob platby",number:{label:"Číslo karty",error:{required:"POŽADOVANÉ",invalid:"Číslo vašej karty je neplatné",incomplete:"Číslo vašej karty je neúplné",unsupported:"Nepodporovaný typ karty"}},expiry:{label:"Dátum ukončenia platnosti",placeholder:"MM / RR",error:{required:"POŽADOVANÉ",incomplete:"Dátum vypršania platnosti vašej karty je neúplný",invalid:"Dátum vypršania platnosti vašej karty je neplatný",expired:"Platnosť vašej karty vypršala"}},cvc:{label:"Bezpečnostný kód",placeholder:"CVC",error:{required:"POŽADOVANÉ",incomplete:"Bezpečnostný kód vašej karty je neúplný",invalid:"Číslo CVC vašej karty je neplatné"}},name:{label:"Držiteľ karty",placeholder:"Celé meno",error:{required:"POŽADOVANÉ",invalid:"Zadajte vaše celé meno"}},pay:{button:"Zaplatiť"},compact:{button:"Karta"}},status:{success:"Úspech",error:"Nemôžeme overiť váš spôsob platby. Vyberte si iný spôsob platby a skúste to znova."}},sl:{card:{title:"Način plačila",number:{label:"Številka kartice",error:{required:"OBVEZNO",invalid:"Številka vaše kartice ni veljavna",incomplete:"Številka vaše kartice ni popolna",unsupported:"Nepodprta vrsta kartice"}},expiry:{label:"Datum poteka",placeholder:"MM / LL",error:{required:"OBVEZNO",incomplete:"Datum poteka vaše kartice ni popoln",invalid:"Datum poteka vaše kartice ni veljaven",expired:"Vaša kartica je potekla"}},cvc:{label:"Varnostna koda",placeholder:"CVC",error:{required:"OBVEZNO",incomplete:"Varnostna koda vaše kartice ni popolna",invalid:"Koda CVC vaše kartice ni veljavna"}},name:{label:"Ime imetnika kartice",placeholder:"Polno ime",error:{required:"OBVEZNO",invalid:"Vnesite svoje polno ime"}},pay:{button:"Plačaj"},compact:{button:"Kartica"}},status:{success:"Uspeh",error:"Vašega načina plačila ne moremo preveriti. Izberite drug način plačila in poskusite znova."}},sv:{card:{title:"Betalningsmetod",number:{label:"Kortnummer",error:{required:"OBLIGATORISKT",invalid:"Ditt kortnummer är ogiltigt",incomplete:"Kortnumret är ofullständigt",unsupported:"Nepodporovaný typ karty"}},expiry:{label:"Sista giltighetsdag",placeholder:"MM / ÅÅ",error:{required:"OBLIGATORISKT",incomplete:"Kortets utgångsdatum är ofullständigt",invalid:"Kortets utgångsdatum är ogiltigt",expired:"Ditt kort har gått ut"}},cvc:{label:"Säkerhetskod",placeholder:"CVC",error:{required:"OBLIGATORISKT",incomplete:"Kortets säkerhetskod är ofullständig",invalid:"Kortets CVC-kod är ogiltig"}},name:{label:"Kortinnehavarens namn",placeholder:"Fullständigt namn",error:{required:"OBLIGATORISKT",invalid:"Ange ditt fullständiga namn"}},pay:{button:"Betala"},compact:{button:"Kort"}},status:{success:"Framgång",error:"Vi kan inte verifiera din betalningsmetod. Vänligen välj en annan betalningsmetod och försök igen."}},th:{card:{title:"วิธีการชำระเงิน",number:{label:"หมายเลขบัตร",error:{required:"ต้องป้อนข้อมูล",invalid:"หมายเลขบัตรของคุณไม่ถูกต้อง",incomplete:"หมายเลขบัตรของคุณไม่ครบถ้วน",unsupported:"ประเภทบัตรของคุณไม่ถูกต้อง"}},expiry:{label:"วันหมดอายุ",placeholder:"ดด / ปป",error:{required:"ต้องป้อนข้อมูล",incomplete:"วันที่หมดอายุของบัตรไม่ครบถ้วน",invalid:"วันที่หมดอายุของบัตรไม่ถูกต้อง",expired:"บัตรของคุณหมดอายุแล้ว"}},cvc:{label:"รหัสความปลอดภัย",placeholder:"CVC",error:{required:"ต้องป้อนข้อมูล",incomplete:"รหัสความปลอดภัยของบัตรไม่ครบถ้วน",invalid:"CVC ของบัตรไม่ถูกต้อง"}},name:{label:"ชื่อเจ้าของบัตร",placeholder:"ชื่อ-นามสกุล",error:{required:"ต้องป้อนข้อมูล",invalid:"โปรดป้อนชื่อ-นามสกุล"}},pay:{button:"ชำระเงิน"},compact:{button:"การ์ด"}},status:{success:"ความสำเร็จ",error:"เราไม่สามารถตรวจสอบวิธีการชำระเงินของคุณได้ โปรดเลือกวิธีการชำระเงินอื่นแล้วลองอีกครั้ง"}},tr:{card:{title:"Ödeme yöntemi",number:{label:"Kart numarası",error:{required:"GEREKLI",invalid:"Kart numaranız geçersiz",incomplete:"Kart numaranız eksik",unsupported:"Desteklenmeyen kart türü"}},expiry:{label:"Son Kullanma Tarihi",placeholder:"AA / YY",error:{required:"GEREKLI",incomplete:"Kartınızın son kullanma tarihi eksik",invalid:"Kartınızın son kullanım tarihi geçersiz",expired:"Kartınızın süresi dolmuş"}},cvc:{label:"Güvenlik kodu",placeholder:"CVC",error:{required:"GEREKLI",incomplete:"Kartınızın güvenlik kodu eksik",invalid:"Kartınızın CVC'si geçersiz"}},name:{label:"Kart sahibinin adı",placeholder:"Ad ve soyadı",error:{required:"GEREKLI",invalid:"Lütfen tam adınızı girin"}},pay:{button:"Öde"},compact:{button:"Kart"}},status:{success:"Başarı",error:"Ödeme yönteminizi doğrulayamıyoruz. Lütfen farklı bir ödeme yöntemi seçin ve tekrar deneyin."}},vi:{card:{title:"Phương thức thanh toán",number:{label:"Số thẻ",error:{required:"BẮT BUỘC",invalid:"Số thẻ của quý vị không hợp lệ",incomplete:"Số thẻ của quý vị không đầy đủ",unsupported:"Không hỗ trợ loại thẻ"}},expiry:{label:"Ngày hết hạn",placeholder:"MM / YY",error:{required:"BẮT BUỘC",incomplete:"Ngày hết hạn trên thẻ không hợp lệ",invalid:"Ngày hết hạn của thẻ không hợp lệ",expired:"Thẻ của quý vị đã hết hạn"}},cvc:{label:"Mã bảo mật",placeholder:"CVC",error:{required:"BẮT BUỘC",incomplete:"Mã bảo mật của thẻ không đầy đủ",invalid:"CVC thẻ của bạn không hợp lệ"}},name:{label:"Tên chủ thẻ",placeholder:"Họ và tên",error:{required:"BẮT BUỘC",invalid:"Vui lòng cung cấp tên đầy đủ của bạn"}},pay:{button:"Thanh toán"},compact:{button:"Thẻ"}},status:{success:"Thành công",error:"Chúng tôi không thể xác thực phương thức thanh toán của bạn. Vui lòng chọn phương thức thanh toán khác và thử lại."}},zh:{card:{title:"支付方式",number:{label:"卡号",error:{required:"必填",invalid:"您的卡号无效",incomplete:"您的银行卡卡号不完整",unsupported:"不支持的卡类型"}},expiry:{label:"有效期",placeholder:"月份 / 年份",error:{required:"必填",incomplete:"您银行卡的有效期不完整",invalid:"您银行卡的有效期无效",expired:"您的银行卡已过期"}},cvc:{label:"安全代码",placeholder:"CVC",error:{required:"必填",incomplete:"您银行卡的安全码不完整",invalid:"您银行卡的 CVC 无效"}},name:{label:"持卡人姓名",placeholder:"全名",error:{required:"必填",invalid:"请提供您的全名"}},pay:{button:"支付"},compact:{button:"卡片"}},status:{success:"成功",error:"我们无法验证您的付款方式。请选择其他付款方式并重试。"}}},en=()=>{const e="navigator"in global?navigator?.language.split("-")[0]:"";return Qt[e]||Qt.en},fo=e=>e&&Qt[e]||en(),mo={messages:en(),locale:"navigator"in global?navigator?.language.split("-")[0]:"en"},Tt=m.createContext(mo),_e=()=>{const{messages:e}=m.useContext(Tt);return e},go=()=>{const{locale:e}=m.useContext(Tt);return e},yo=()=>{const{locale:e}=m.useContext(Tt);return e==="ar"?"rtl":"ltr"},vo=({children:e,translate:t,locale:n="en"})=>{const r=fo(n),i={card:{title:t?.card?.title||r.card.title,number:{label:t?.card?.number?.label||r.card.number.label,error:{required:t?.card?.number?.error?.required||r.card.number.error.required,invalid:t?.card?.number?.error?.invalid||r.card.number.error.invalid,incomplete:t?.card?.number?.error?.incomplete||r.card.number.error.incomplete,unsupported:t?.card?.number?.error?.unsupported||r.card.number.error.unsupported}},expiry:{label:t?.card?.expiry?.label||r.card.expiry.label,placeholder:t?.card?.expiry?.placeholder||r.card.expiry.placeholder,error:{required:t?.card?.expiry?.error?.required||r.card.expiry.error.required,invalid:t?.card?.expiry?.error?.invalid||r.card.expiry.error.invalid,incomplete:t?.card?.expiry?.error?.incomplete||r.card.expiry.error.incomplete,expired:t?.card?.expiry?.error?.expired||r.card.expiry.error.expired}},cvc:{label:t?.card?.cvc?.label||r.card.cvc.label,placeholder:t?.card?.cvc?.placeholder||r.card.cvc.placeholder,error:{required:t?.card?.cvc?.error?.required||r.card.cvc.error.required,incomplete:t?.card?.cvc?.error?.incomplete||r.card.cvc.error.incomplete,invalid:t?.card?.cvc?.error?.invalid||r.card.cvc.error.invalid}},name:{label:t?.card?.name?.label||r.card.name.label,placeholder:t?.card?.name?.placeholder||r.card.name.placeholder,error:{required:t?.card?.name?.error?.required||r.card.name.error.required,invalid:t?.card?.name?.error?.invalid||r.card.name.error.invalid}},pay:{button:t?.card?.pay?.button||r.card.pay.button},compact:{button:t?.card?.compact?.button||r.card.compact.button}},status:{success:t?.status?.success||r.status.success,error:t?.status?.error||r.status.error}};return h.jsx(Tt.Provider,{value:{messages:i,locale:n},children:e})},Vr=m.createContext(null),bo=()=>m.useContext(Vr),xo=({children:e,clientToken:t})=>{const[n,r]=m.useState(null);return m.useEffect(()=>{ho(t).then(i=>r(i)).catch(console.error)},[t]),h.jsx(Vr.Provider,{value:n,children:e})},kt={button:"_button_159xd_1",primary:"_primary_159xd_11",success:"_success_159xd_15",loading:"_loading_159xd_19",press:"_press_159xd_24"};function Rr(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Rr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ye(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Rr(e))&&(r&&(r+=" "),r+=t);return r}const _r=({color:e,isLoading:t,children:n,onClick:r,onMouseUp:i,onMouseOut:s,onMouseDown:a,...o})=>{const[l,u]=m.useState(!1),c=m.useCallback(g=>{t||o.disabled||r?.(g)},[r,t,o.disabled]),d=m.useCallback(g=>{u(!0),a?.(g)},[a]),p=m.useCallback(g=>{u(!1),i?.(g)},[i]),f=m.useCallback(g=>{u(!1),s?.(g)},[s]);return h.jsx("button",{...o,onClick:c,onMouseDown:d,onMouseUp:p,onMouseOut:f,className:ye(kt.button,e&&kt[e],t&&kt.loading,l&&kt.press,o.className),style:o.style,children:n})};var tn,Mr;function Co(){if(Mr)return tn;Mr=1;var e={visa:{niceType:"Visa",type:"visa",patterns:[4],gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",size:3}},mastercard:{niceType:"Mastercard",type:"mastercard",patterns:[[51,55],[2221,2229],[223,229],[23,26],[270,271],2720],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},"american-express":{niceType:"American Express",type:"american-express",patterns:[34,37],gaps:[4,10],lengths:[15],code:{name:"CID",size:4}},"diners-club":{niceType:"Diners Club",type:"diners-club",patterns:[[300,305],36,38,39],gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",size:3}},discover:{niceType:"Discover",type:"discover",patterns:[6011,[644,649],65],gaps:[4,8,12],lengths:[16,19],code:{name:"CID",size:3}},jcb:{niceType:"JCB",type:"jcb",patterns:[2131,1800,[3528,3589]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVV",size:3}},unionpay:{niceType:"UnionPay",type:"unionpay",patterns:[620,[62100,62182],[62184,62187],[62185,62197],[62200,62205],[622010,622999],622018,[62207,62209],[623,626],6270,6272,6276,[627700,627779],[627781,627799],[6282,6289],6291,6292,810,[8110,8131],[8132,8151],[8152,8163],[8164,8171]],gaps:[4,8,12],lengths:[14,15,16,17,18,19],code:{name:"CVN",size:3}},maestro:{niceType:"Maestro",type:"maestro",patterns:[493698,[5e5,504174],[504176,506698],[506779,508999],[56,59],63,67,6],gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",size:3}},elo:{niceType:"Elo",type:"elo",patterns:[401178,401179,438935,457631,457632,431274,451416,457393,504175,[506699,506778],[509e3,509999],627780,636297,636368,[650031,650033],[650035,650051],[650405,650439],[650485,650538],[650541,650598],[650700,650718],[650720,650727],[650901,650978],[651652,651679],[655e3,655019],[655021,655058]],gaps:[4,8,12],lengths:[16],code:{name:"CVE",size:3}},mir:{niceType:"Mir",type:"mir",patterns:[[2200,2204]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVP2",size:3}},hiper:{niceType:"Hiper",type:"hiper",patterns:[637095,63737423,63743358,637568,637599,637609,637612],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},hipercard:{niceType:"Hipercard",type:"hipercard",patterns:[606282],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}}};return tn=e,tn}var Ze={},Xe={},Ir;function Dr(){if(Ir)return Xe;Ir=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.clone=void 0;function e(t){return t?JSON.parse(JSON.stringify(t)):null}return Xe.clone=e,Xe}var Je={},Lr;function wo(){if(Lr)return Je;Lr=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.matches=void 0;function e(r,i,s){var a=String(i).length,o=r.substr(0,a),l=parseInt(o,10);return i=parseInt(String(i).substr(0,o.length),10),s=parseInt(String(s).substr(0,o.length),10),l>=i&&l<=s}function t(r,i){return i=String(i),i.substring(0,r.length)===r.substring(0,i.length)}function n(r,i){return Array.isArray(i)?e(r,i[0],i[1]):t(r,i)}return Je.matches=n,Je}var Nr;function To(){if(Nr)return Ze;Nr=1,Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.addMatchingCardsToResults=void 0;var e=Dr(),t=wo();function n(r,i,s){var a,o;for(a=0;a<i.patterns.length;a++){var l=i.patterns[a];if((0,t.matches)(r,l)){var u=(0,e.clone)(i);Array.isArray(l)?o=String(l[0]).length:o=String(l).length,r.length>=o&&(u.matchStrength=o),s.push(u);break}}}return Ze.addMatchingCardsToResults=n,Ze}var Qe={},Or;function ko(){if(Or)return Qe;Or=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.isValidInputType=void 0;function e(t){return typeof t=="string"||t instanceof String}return Qe.isValidInputType=e,Qe}var et={},Br;function So(){if(Br)return et;Br=1,Object.defineProperty(et,"__esModule",{value:!0}),et.findBestMatch=void 0;function e(n){var r=n.filter(function(i){return i.matchStrength}).length;return r>0&&r===n.length}function t(n){return e(n)?n.reduce(function(r,i){return!r||Number(r.matchStrength)<Number(i.matchStrength)?i:r}):null}return et.findBestMatch=t,et}var tt,qr;function Po(){if(qr)return tt;qr=1;var e=tt&&tt.__assign||function(){return e=Object.assign||function(g){for(var y,b=1,v=arguments.length;b<v;b++){y=arguments[b];for(var w in y)Object.prototype.hasOwnProperty.call(y,w)&&(g[w]=y[w])}return g},e.apply(this,arguments)},t=Co(),n=To(),r=ko(),i=So(),s=Dr(),a={},o={VISA:"visa",MASTERCARD:"mastercard",AMERICAN_EXPRESS:"american-express",DINERS_CLUB:"diners-club",DISCOVER:"discover",JCB:"jcb",UNIONPAY:"unionpay",MAESTRO:"maestro",ELO:"elo",MIR:"mir",HIPER:"hiper",HIPERCARD:"hipercard"},l=[o.VISA,o.MASTERCARD,o.AMERICAN_EXPRESS,o.DINERS_CLUB,o.DISCOVER,o.JCB,o.UNIONPAY,o.MAESTRO,o.ELO,o.MIR,o.HIPER,o.HIPERCARD],u=(0,s.clone)(l);function c(g){return a[g]||t[g]}function d(){return u.map(function(g){return(0,s.clone)(c(g))})}function p(g,y){y===void 0&&(y=!1);var b=u.indexOf(g);if(!y&&b===-1)throw new Error('"'+g+'" is not a supported card type.');return b}function f(g){var y=[];if(!(0,r.isValidInputType)(g))return y;if(g.length===0)return d();u.forEach(function(v){var w=c(v);(0,n.addMatchingCardsToResults)(g,w,y)});var b=(0,i.findBestMatch)(y);return b?[b]:y}return f.getTypeInfo=function(g){return(0,s.clone)(c(g))},f.removeCard=function(g){var y=p(g);u.splice(y,1)},f.addCard=function(g){var y=p(g.type,!0);a[g.type]=g,y===-1&&u.push(g.type)},f.updateCard=function(g,y){var b=a[g]||t[g];if(!b)throw new Error('"'.concat(g,"\" is not a recognized type. Use `addCard` instead.'"));if(y.type&&b.type!==y.type)throw new Error("Cannot overwrite type parameter.");var v=(0,s.clone)(b);v=e(e({},v),y),a[v.type]=v},f.changeOrder=function(g,y){var b=p(g);u.splice(b,1),u.splice(y,0,g)},f.resetModifications=function(){u=(0,s.clone)(l),a={}},f.types=o,tt=f,tt}var Me=Po();Me.updateCard("visa",{lengths:[16]}),Me.updateCard("unionpay",{gaps:[4,8,12,16]});const Ao=(e,t)=>{const n=Me.getTypeInfo(t),r=e.replace(/\D/g,""),i=n?.gaps||[4,8,12],s=n?Math.max(...n.lengths)+i.length:19,a=[0].concat(i,r.length),o=[];for(let l=0;a[l]<r.length;l++){const u=a[l],c=Math.min(a[l+1],r.length);o.push(r.slice(u,c))}return o.join(" ").slice(0,s)},nn=(e,t)=>{const r=Me.getTypeInfo(t)?.code.size||4;return e.replace(/\D/g,"").slice(0,r)},Eo=(e,t)=>{const n=e.replace(/\D/g,"");let r=n.slice(0,2);if(!r)return"";const i=Number(r);if(r!=="01"){if(Number.isNaN(i))return"0";if(i===0||i===1)return`${i}`;if(i>12)return"1";r=i>9?`${i}`:`0${i}`}if(e.length<t.length){const a=Number(e[e.length-1]);if(Number.isNaN(a))return r}const s=n.slice(2,4);return`${r} / ${s}`},St={card:"_card_1woqz_1",cardDataContainer:"_cardDataContainer_1woqz_23",payButton:"_payButton_1woqz_31",spinner:"_spinner_1woqz_35"},ce={inputContainer:"_inputContainer_1eto7_1",inputFocus:"_inputFocus_1eto7_6",input:"_input_1eto7_1",endContent:"_endContent_1eto7_16",errorInput:"_errorInput_1eto7_20",error:"_error_1eto7_20",label:"_label_1eto7_28",labelError:"_labelError_1eto7_32"},rn=m.createContext({});function sn(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const an=typeof window<"u",Fr=an?m.useLayoutEffect:m.useEffect,Pt=m.createContext(null);function on(e,t){e.indexOf(t)===-1&&e.push(t)}function ln(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ue=(e,t,n)=>n>t?t:n<e?e:n;let Ie=()=>{},de=()=>{};process.env.NODE_ENV!=="production"&&(Ie=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},de=(e,t)=>{if(!e)throw new Error(t)});const he={},Kr=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function zr(e){return typeof e=="object"&&e!==null}const $r=e=>/^0[^.\s]+$/u.test(e);function cn(e){let t;return()=>(t===void 0&&(t=e()),t)}const Q=e=>e,jo=(e,t)=>n=>t(e(n)),nt=(...e)=>e.reduce(jo),rt=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class un{constructor(){this.subscriptions=[]}add(t){return on(this.subscriptions,t),()=>ln(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const a=this.subscriptions[s];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ie=e=>e*1e3,ae=e=>e/1e3;function Ur(e,t){return t?e*(1e3/t):0}const Gr=new Set;function dn(e,t,n){e||Gr.has(t)||(console.warn(t),Gr.add(t))}const Wr=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Vo=1e-7,Ro=12;function _o(e,t,n,r,i){let s,a,o=0;do a=t+(n-t)/2,s=Wr(a,r,i)-e,s>0?n=a:t=a;while(Math.abs(s)>Vo&&++o<Ro);return a}function it(e,t,n,r){if(e===t&&n===r)return Q;const i=s=>_o(s,0,1,e,n);return s=>s===0||s===1?s:Wr(i(s),t,r)}const Yr=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Hr=e=>t=>1-e(1-t),Zr=it(.33,1.53,.69,.99),hn=Hr(Zr),Xr=Yr(hn),Jr=e=>(e*=2)<1?.5*hn(e):.5*(2-Math.pow(2,-10*(e-1))),pn=e=>1-Math.sin(Math.acos(e)),Qr=Hr(pn),ei=Yr(pn),Mo=it(.42,0,1,1),Io=it(0,0,.58,1),ti=it(.42,0,.58,1),Do=e=>Array.isArray(e)&&typeof e[0]!="number",ni=e=>Array.isArray(e)&&typeof e[0]=="number",ri={linear:Q,easeIn:Mo,easeInOut:ti,easeOut:Io,circIn:pn,circInOut:ei,circOut:Qr,backIn:hn,backInOut:Xr,backOut:Zr,anticipate:Jr},Lo=e=>typeof e=="string",ii=e=>{if(ni(e)){de(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return it(t,n,r,i)}else if(Lo(e))return de(ri[e]!==void 0,`Invalid easing type '${e}'`),ri[e];return e},At=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],si={value:null};function No(e,t){let n=new Set,r=new Set,i=!1,s=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(d){a.has(d)&&(c.schedule(d),e()),l++,d(o)}const c={schedule:(d,p=!1,f=!1)=>{const y=f&&i?n:r;return p&&a.add(d),y.has(d)||y.add(d),d},cancel:d=>{r.delete(d),a.delete(d)},process:d=>{if(o=d,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),t&&si.value&&si.value.frameloop[t].push(l),l=0,n.clear(),i=!1,s&&(s=!1,c.process(d))}};return c}const Oo=40;function ai(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=At.reduce((C,P)=>(C[P]=No(s,t?P:void 0),C),{}),{setup:o,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:p,render:f,postRender:g}=a,y=()=>{const C=he.useManualTiming?i.timestamp:performance.now();n=!1,he.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(C-i.timestamp,Oo),1)),i.timestamp=C,i.isProcessing=!0,o.process(i),l.process(i),u.process(i),c.process(i),d.process(i),p.process(i),f.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},b=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:At.reduce((C,P)=>{const T=a[P];return C[P]=(k,E=!1,S=!1)=>(n||b(),T.schedule(k,E,S)),C},{}),cancel:C=>{for(let P=0;P<At.length;P++)a[At[P]].cancel(C)},state:i,steps:a}}const{schedule:M,cancel:ve,state:K,steps:fn}=ai(typeof requestAnimationFrame<"u"?requestAnimationFrame:Q,!0);let Et;function Bo(){Et=void 0}const Z={now:()=>(Et===void 0&&Z.set(K.isProcessing||he.useManualTiming?K.timestamp:performance.now()),Et),set:e=>{Et=e,queueMicrotask(Bo)}},oi=e=>t=>typeof t=="string"&&t.startsWith(e),mn=oi("--"),qo=oi("var(--"),gn=e=>qo(e)?Fo.test(e.split("/*")[0].trim()):!1,Fo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,De={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},st={...De,transform:e=>ue(0,1,e)},jt={...De,default:1},at=e=>Math.round(e*1e5)/1e5,yn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ko(e){return e==null}const zo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,vn=(e,t)=>n=>!!(typeof n=="string"&&zo.test(n)&&n.startsWith(e)||t&&!Ko(n)&&Object.prototype.hasOwnProperty.call(n,t)),li=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,a,o]=r.match(yn);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(a),alpha:o!==void 0?parseFloat(o):1}},$o=e=>ue(0,255,e),bn={...De,transform:e=>Math.round($o(e))},Se={test:vn("rgb","red"),parse:li("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+bn.transform(e)+", "+bn.transform(t)+", "+bn.transform(n)+", "+at(st.transform(r))+")"};function Uo(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const xn={test:vn("#"),parse:Uo,transform:Se.transform},ot=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),be=ot("deg"),oe=ot("%"),A=ot("px"),Go=ot("vh"),Wo=ot("vw"),ci={...oe,parse:e=>oe.parse(e)/100,transform:e=>oe.transform(e*100)},Le={test:vn("hsl","hue"),parse:li("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+oe.transform(at(t))+", "+oe.transform(at(n))+", "+at(st.transform(r))+")"},$={test:e=>Se.test(e)||xn.test(e)||Le.test(e),parse:e=>Se.test(e)?Se.parse(e):Le.test(e)?Le.parse(e):xn.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Se.transform(e):Le.transform(e)},Yo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ho(e){return isNaN(e)&&typeof e=="string"&&(e.match(yn)?.length||0)+(e.match(Yo)?.length||0)>0}const ui="number",di="color",Zo="var",Xo="var(",hi="${}",Jo=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function lt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const o=t.replace(Jo,l=>($.test(l)?(r.color.push(s),i.push(di),n.push($.parse(l))):l.startsWith(Xo)?(r.var.push(s),i.push(Zo),n.push(l)):(r.number.push(s),i.push(ui),n.push(parseFloat(l))),++s,hi)).split(hi);return{values:n,split:o,indexes:r,types:i}}function pi(e){return lt(e).values}function fi(e){const{split:t,types:n}=lt(e),r=t.length;return i=>{let s="";for(let a=0;a<r;a++)if(s+=t[a],i[a]!==void 0){const o=n[a];o===ui?s+=at(i[a]):o===di?s+=$.transform(i[a]):s+=i[a]}return s}}const Qo=e=>typeof e=="number"?0:e;function el(e){const t=pi(e);return fi(e)(t.map(Qo))}const xe={test:Ho,parse:pi,createTransformer:fi,getAnimatableNone:el};function Cn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function tl({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,a=0;if(!t)i=s=a=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;i=Cn(l,o,e+1/3),s=Cn(l,o,e),a=Cn(l,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:r}}function Vt(e,t){return n=>n>0?t:e}const I=(e,t,n)=>e+(t-e)*n,wn=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},nl=[xn,Se,Le],rl=e=>nl.find(t=>t.test(e));function mi(e){const t=rl(e);if(Ie(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Le&&(n=tl(n)),n}const gi=(e,t)=>{const n=mi(e),r=mi(t);if(!n||!r)return Vt(e,t);const i={...n};return s=>(i.red=wn(n.red,r.red,s),i.green=wn(n.green,r.green,s),i.blue=wn(n.blue,r.blue,s),i.alpha=I(n.alpha,r.alpha,s),Se.transform(i))},Tn=new Set(["none","hidden"]);function il(e,t){return Tn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function sl(e,t){return n=>I(e,t,n)}function kn(e){return typeof e=="number"?sl:typeof e=="string"?gn(e)?Vt:$.test(e)?gi:ll:Array.isArray(e)?yi:typeof e=="object"?$.test(e)?gi:al:Vt}function yi(e,t){const n=[...e],r=n.length,i=e.map((s,a)=>kn(s)(s,t[a]));return s=>{for(let a=0;a<r;a++)n[a]=i[a](s);return n}}function al(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=kn(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function ol(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][r[s]],o=e.values[a]??0;n[i]=o,r[s]++}return n}const ll=(e,t)=>{const n=xe.createTransformer(t),r=lt(e),i=lt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Tn.has(e)&&!i.values.length||Tn.has(t)&&!r.values.length?il(e,t):nt(yi(ol(r,i),i.values),n):(Ie(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Vt(e,t))};function vi(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?I(e,t,n):kn(e)(e,t)}const cl=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>M.update(t,n),stop:()=>ve(t),now:()=>K.isProcessing?K.timestamp:Z.now()}},bi=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(s/(i-1))+", ";return`linear(${r.substring(0,r.length-2)})`},Rt=2e4;function Sn(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Rt;)t+=n,r=e.next(t);return t>=Rt?1/0:t}function ul(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Sn(r),Rt);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:ae(i)}}const dl=5;function xi(e,t,n){const r=Math.max(t-dl,0);return Ur(n-e(r),t-r)}const D={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ci=.001;function hl({duration:e=D.duration,bounce:t=D.bounce,velocity:n=D.velocity,mass:r=D.mass}){let i,s;Ie(e<=ie(D.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=ue(D.minDamping,D.maxDamping,a),e=ue(D.minDuration,D.maxDuration,ae(e)),a<1?(i=u=>{const c=u*a,d=c*e,p=c-n,f=Pn(u,a),g=Math.exp(-d);return Ci-p/f*g},s=u=>{const d=u*a*e,p=d*n+n,f=Math.pow(a,2)*Math.pow(u,2)*e,g=Math.exp(-d),y=Pn(Math.pow(u,2),a);return(-i(u)+Ci>0?-1:1)*((p-f)*g)/y}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-.001+c*d},s=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const o=5/e,l=fl(i,s,o);if(e=ie(e),isNaN(l))return{stiffness:D.stiffness,damping:D.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const pl=12;function fl(e,t,n){let r=n;for(let i=1;i<pl;i++)r=r-e(r)/t(r);return r}function Pn(e,t){return e*Math.sqrt(1-t*t)}const ml=["duration","bounce"],gl=["stiffness","damping","mass"];function wi(e,t){return t.some(n=>e[n]!==void 0)}function yl(e){let t={velocity:D.velocity,stiffness:D.stiffness,damping:D.damping,mass:D.mass,isResolvedFromDuration:!1,...e};if(!wi(e,gl)&&wi(e,ml))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*ue(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:D.mass,stiffness:i,damping:s}}else{const n=hl(e);t={...t,...n,mass:D.mass},t.isResolvedFromDuration=!0}return t}function _t(e=D.visualDuration,t=D.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],o={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:d,velocity:p,isResolvedFromDuration:f}=yl({...n,velocity:-ae(n.velocity||0)}),g=p||0,y=u/(2*Math.sqrt(l*c)),b=a-s,v=ae(Math.sqrt(l/c)),w=Math.abs(b)<5;r||(r=w?D.restSpeed.granular:D.restSpeed.default),i||(i=w?D.restDelta.granular:D.restDelta.default);let C;if(y<1){const T=Pn(v,y);C=k=>{const E=Math.exp(-y*v*k);return a-E*((g+y*v*b)/T*Math.sin(T*k)+b*Math.cos(T*k))}}else if(y===1)C=T=>a-Math.exp(-v*T)*(b+(g+v*b)*T);else{const T=v*Math.sqrt(y*y-1);C=k=>{const E=Math.exp(-y*v*k),S=Math.min(T*k,300);return a-E*((g+y*v*b)*Math.sinh(S)+T*b*Math.cosh(S))/T}}const P={calculatedDuration:f&&d||null,next:T=>{const k=C(T);if(f)o.done=T>=d;else{let E=T===0?g:0;y<1&&(E=T===0?ie(g):xi(C,T,k));const S=Math.abs(E)<=r,R=Math.abs(a-k)<=i;o.done=S&&R}return o.value=o.done?a:k,o},toString:()=>{const T=Math.min(Sn(P),Rt),k=bi(E=>P.next(T*E).value,T,30);return T+"ms "+k},toTransition:()=>{}};return P}_t.applyToOptions=e=>{const t=ul(e,100,_t);return e.ease=t.ease,e.duration=ie(t.duration),e.type="keyframes",e};function An({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},f=S=>o!==void 0&&S<o||l!==void 0&&S>l,g=S=>o===void 0?l:l===void 0||Math.abs(o-S)<Math.abs(l-S)?o:l;let y=n*t;const b=d+y,v=a===void 0?b:a(b);v!==b&&(y=v-d);const w=S=>-y*Math.exp(-S/r),C=S=>v+w(S),P=S=>{const R=w(S),_=C(S);p.done=Math.abs(R)<=u,p.value=p.done?v:_};let T,k;const E=S=>{f(p.value)&&(T=S,k=_t({keyframes:[p.value,g(p.value)],velocity:xi(C,S,p.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:S=>{let R=!1;return!k&&T===void 0&&(R=!0,P(S),E(S)),T!==void 0&&S>=T?k.next(S-T):(!R&&P(S),p)}}}function vl(e,t,n){const r=[],i=n||he.mix||vi,s=e.length-1;for(let a=0;a<s;a++){let o=i(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||Q:t;o=nt(l,o)}r.push(o)}return r}function bl(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(de(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=vl(t,r,i),l=o.length,u=c=>{if(a&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const p=rt(e[d],e[d+1],c);return o[d](p)};return n?c=>u(ue(e[0],e[s-1],c)):u}function xl(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=rt(0,t,r);e.push(I(n,1,i))}}function Cl(e){const t=[0];return xl(t,e.length-1),t}function wl(e,t){return e.map(n=>n*t)}function Tl(e,t){return e.map(()=>t||ti).splice(0,e.length-1)}function Ne({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Do(r)?r.map(ii):ii(r),s={done:!1,value:t[0]},a=wl(n&&n.length===t.length?n:Cl(t),e),o=bl(a,t,{ease:Array.isArray(i)?i:Tl(t,i)});return{calculatedDuration:e,next:l=>(s.value=o(l),s.done=l>=e,s)}}const kl=e=>e!==null;function En(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(kl),o=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}const Sl={decay:An,inertia:An,tween:Ne,keyframes:Ne,spring:_t};function Ti(e){typeof e.type=="string"&&(e.type=Sl[e.type])}class jn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Pl=e=>e/100;class Vn extends jn{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=(n=!0)=>{if(n){const{motionValue:r}=this.options;r&&r.updatedAt!==Z.now()&&this.tick(Z.now())}this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ti(t);const{type:n=Ne,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:a=0}=t;let{keyframes:o}=t;const l=n||Ne;process.env.NODE_ENV!=="production"&&l!==Ne&&de(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`),l!==Ne&&typeof o[0]!="number"&&(this.mixKeyframes=nt(Pl,vi(o[0],o[1])),o=[0,100]);const u=l({...t,keyframes:o});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...o].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=Sn(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:p,repeatDelay:f,type:g,onUpdate:y,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let C=this.currentTime,P=r;if(d){const S=Math.min(this.currentTime,i)/o;let R=Math.floor(S),_=S%1;!_&&S>=1&&(_=1),_===1&&R--,R=Math.min(R,d+1),!!(R%2)&&(p==="reverse"?(_=1-_,f&&(_-=f/o)):p==="mirror"&&(P=a)),C=ue(0,1,_)*o}const T=w?{done:!1,value:c[0]}:P.next(C);s&&(T.value=s(T.value));let{done:k}=T;!w&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return E&&g!==An&&(T.value=En(c,this.options,b,this.speed)),y&&y(T.value),E&&this.finish(),T}then(t,n){return this.finished.then(t,n)}get duration(){return ae(this.calculatedDuration)}get time(){return ae(this.currentTime)}set time(t){t=ie(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Z.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ae(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=cl,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Z.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Al(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Pe=e=>e*180/Math.PI,Rn=e=>{const t=Pe(Math.atan2(e[1],e[0]));return _n(t)},El={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Rn,rotateZ:Rn,skewX:e=>Pe(Math.atan(e[1])),skewY:e=>Pe(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},_n=e=>(e=e%360,e<0&&(e+=360),e),ki=Rn,Si=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Pi=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),jl={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Si,scaleY:Pi,scale:e=>(Si(e)+Pi(e))/2,rotateX:e=>_n(Pe(Math.atan2(e[6],e[5]))),rotateY:e=>_n(Pe(Math.atan2(-e[2],e[0]))),rotateZ:ki,rotate:ki,skewX:e=>Pe(Math.atan(e[4])),skewY:e=>Pe(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Mn(e){return e.includes("scale")?1:0}function In(e,t){if(!e||e==="none")return Mn(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=jl,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=El,i=o}if(!i)return Mn(t);const s=r[t],a=i[1].split(",").map(Rl);return typeof s=="function"?s(a):a[s]}const Vl=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return In(n,t)};function Rl(e){return parseFloat(e.trim())}const Oe=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Be=new Set(Oe),Ai=e=>e===De||e===A,_l=new Set(["x","y","z"]),Ml=Oe.filter(e=>!_l.has(e));function Il(e){const t=[];return Ml.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ae={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>In(t,"x"),y:(e,{transform:t})=>In(t,"y")};Ae.translateX=Ae.x,Ae.translateY=Ae.y;const Ee=new Set;let Dn=!1,Ln=!1,Nn=!1;function Ei(){if(Ln){const e=Array.from(Ee).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Il(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,a])=>{r.getValue(s)?.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ln=!1,Dn=!1,Ee.forEach(e=>e.complete(Nn)),Ee.clear()}function ji(){Ee.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ln=!0)})}function Dl(){Nn=!0,ji(),Ei(),Nn=!1}class On{constructor(t,n,r,i,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(Ee.add(this),Dn||(Dn=!0,M.read(ji),M.resolveKeyframes(Ei))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i?.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const o=r.readValue(n,a);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=a),i&&s===void 0&&i.set(t[0])}Al(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ee.delete(this)}cancel(){this.state==="scheduled"&&(Ee.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ll=e=>e.startsWith("--");function Nl(e,t,n){Ll(t)?e.style.setProperty(t,n):e.style[t]=n}const Ol=cn(()=>window.ScrollTimeline!==void 0),Bl={};function ql(e,t){const n=cn(e);return()=>Bl[t]??n()}const Vi=ql(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ct=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ri={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ct([0,.65,.55,1]),circOut:ct([.55,0,1,.45]),backIn:ct([.31,.01,.66,-.59]),backOut:ct([.33,1.53,.69,.99])};function _i(e,t){if(e)return typeof e=="function"?Vi()?bi(e,t):"ease-out":ni(e)?ct(e):Array.isArray(e)?e.map(n=>_i(n,t)||Ri.easeOut):Ri[e]}function Fl(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=_i(o,i);Array.isArray(d)&&(c.easing=d);const p={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return u&&(p.pseudoElement=u),e.animate(c,p)}function Mi(e){return typeof e=="function"&&"applyToOptions"in e}function Kl({type:e,...t}){return Mi(e)&&Vi()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class zl extends jn{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:o,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,de(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);const u=Kl(t);this.animation=Fl(n,r,i,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=En(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(c):Nl(n,r,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return ae(Number(t))}get time(){return ae(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ie(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Ol()?(this.animation.timeline=t,Q):n(this)}}const Ii={anticipate:Jr,backInOut:Xr,circInOut:ei};function $l(e){return e in Ii}function Ul(e){typeof e.ease=="string"&&$l(e.ease)&&(e.ease=Ii[e.ease])}const Di=10;class Gl extends zl{constructor(t){Ul(t),Ti(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new Vn({...a,autoplay:!1}),l=ie(this.finishedTime??this.time);n.setWithVelocity(o.sample(l-Di).value,o.sample(l).value,Di),o.stop()}}const Li=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(xe.test(e)||e==="0")&&!e.startsWith("url("));function Wl(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Yl(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=Li(i,t),o=Li(s,t);return Ie(a===o,`You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!a||!o?!1:Wl(e)||(n==="spring"||Mi(n))&&r}function Bn(e){return zr(e)&&"offsetHeight"in e}const Hl=new Set(["opacity","clipPath","filter","transform"]),Zl=cn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Xl(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:a}=e;if(!Bn(t?.owner?.current))return!1;const{onUpdate:o,transformTemplate:l}=t.owner.getProps();return Zl()&&n&&Hl.has(n)&&(n!=="transform"||!l)&&!o&&!r&&i!=="mirror"&&s!==0&&a!=="inertia"}const Jl=40;class Ql extends jn{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",keyframes:o,name:l,motionValue:u,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Z.now();const p={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:a,name:l,motionValue:u,element:c,...d},f=c?.KeyframeResolver||On;this.keyframeResolver=new f(o,(g,y,b)=>this.onKeyframesResolved(g,y,p,!b),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:a,velocity:o,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=Z.now(),Yl(t,s,a,o)||((he.instantAnimations||!l)&&c?.(En(t,r,n)),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const p={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Jl?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},f=!u&&Xl(p)?new Gl({...p,element:p.motionValue.owner.current}):new Vn(p);f.finished.then(()=>this.notifyFinished()).catch(Q),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Dl()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const ec=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function tc(e){const t=ec.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const nc=4;function Ni(e,t,n=1){de(n<=nc,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=tc(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const a=s.trim();return Kr(a)?parseFloat(a):a}return gn(i)?Ni(i,t,n+1):i}function qn(e,t){return e?.[t]??e?.default??e}const Oi=new Set(["width","height","top","left","right","bottom",...Oe]),rc={test:e=>e==="auto",parse:e=>e},Bi=e=>t=>t.test(e),qi=[De,A,oe,be,Wo,Go,rc],Fi=e=>qi.find(Bi(e));function ic(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||$r(e):!0}const sc=new Set(["brightness","contrast","saturate","opacity"]);function ac(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(yn)||[];if(!r)return e;const i=n.replace(r,"");let s=sc.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const oc=/\b([a-z-]*)\(.*?\)/gu,Fn={...xe,getAnimatableNone:e=>{const t=e.match(oc);return t?t.map(ac).join(" "):e}},Ki={...De,transform:Math.round},Kn={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,radius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,top:A,right:A,bottom:A,left:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,backgroundPositionX:A,backgroundPositionY:A,...{rotate:be,rotateX:be,rotateY:be,rotateZ:be,scale:jt,scaleX:jt,scaleY:jt,scaleZ:jt,skew:be,skewX:be,skewY:be,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:st,originX:ci,originY:ci,originZ:A},zIndex:Ki,fillOpacity:st,strokeOpacity:st,numOctaves:Ki},lc={...Kn,color:$,backgroundColor:$,outlineColor:$,fill:$,stroke:$,borderColor:$,borderTopColor:$,borderRightColor:$,borderBottomColor:$,borderLeftColor:$,filter:Fn,WebkitFilter:Fn},zi=e=>lc[e];function $i(e,t){let n=zi(e);return n!==Fn&&(n=xe),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const cc=new Set(["auto","none","0"]);function uc(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!cc.has(s)&<(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=$i(n,i)}class dc extends On{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),gn(u))){const c=Ni(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Oi.has(r)||t.length!==2)return;const[i,s]=t,a=Fi(i),o=Fi(s);if(a!==o)if(Ai(a)&&Ai(o))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else Ae[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||ic(t[i]))&&r.push(i);r.length&&uc(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ae[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=Ae[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([o,l])=>{t.getValue(o).set(l)}),this.resolveNoneKeyframes()}}function hc(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const Ui=30,pc=e=>!isNaN(parseFloat(e));class fc{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=Z.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty();i&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Z.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=pc(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&dn(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new un);const r=this.events[t].add(n);return t==="change"?()=>{r(),M.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Z.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ui)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ui);return Ur(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function qe(e,t){return new fc(e,t)}const Gi=(e,t)=>t&&typeof e=="number"?t.transform(e):e,{schedule:zn}=ai(queueMicrotask,!1),se={x:!1,y:!1};function Wi(){return se.x||se.y}function mc(e){return e==="x"||e==="y"?se[e]?null:(se[e]=!0,()=>{se[e]=!1}):se.x||se.y?null:(se.x=se.y=!0,()=>{se.x=se.y=!1})}function Yi(e,t){const n=hc(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Hi(e){return!(e.pointerType==="touch"||Wi())}function gc(e,t,n={}){const[r,i,s]=Yi(e,n),a=o=>{if(!Hi(o))return;const{target:l}=o,u=t(l,o);if(typeof u!="function"||!l)return;const c=d=>{Hi(d)&&(u(d),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return r.forEach(o=>{o.addEventListener("pointerenter",a,i)}),s}const Zi=(e,t)=>t?e===t?!0:Zi(e,t.parentElement):!1,$n=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,yc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function vc(e){return yc.has(e.tagName)||e.tabIndex!==-1}const Mt=new WeakSet;function Xi(e){return t=>{t.key==="Enter"&&e(t)}}function Un(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const bc=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Xi(()=>{if(Mt.has(n))return;Un(n,"down");const i=Xi(()=>{Un(n,"up")}),s=()=>Un(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Ji(e){return $n(e)&&!Wi()}function xc(e,t,n={}){const[r,i,s]=Yi(e,n),a=o=>{const l=o.currentTarget;if(!Ji(o))return;Mt.add(l);const u=t(l,o),c=(f,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",p),Mt.has(l)&&Mt.delete(l),Ji(f)&&typeof u=="function"&&u(f,{success:g})},d=f=>{c(f,l===window||l===document||n.useGlobalTarget||Zi(l,f.target))},p=f=>{c(f,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",p,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",a,i),Bn(o)&&(o.addEventListener("focus",u=>bc(u,i)),!vc(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),s}function Qi(e){return zr(e)&&"ownerSVGElement"in e}function Cc(e){return Qi(e)&&e.tagName==="svg"}const U=e=>!!(e&&e.getVelocity),wc=[...qi,$,xe],Tc=e=>wc.find(Bi(e)),Gn=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class kc extends ge.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=Bn(r)&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=i-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Sc({children:e,isPresent:t,anchorX:n}){const r=m.useId(),i=m.useRef(null),s=m.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=m.useContext(Gn);return m.useInsertionEffect(()=>{const{width:o,height:l,top:u,left:c,right:d}=s.current;if(t||!i.current||!o||!l)return;const p=n==="left"?`left: ${c}`:`right: ${d}`;i.current.dataset.motionPopId=r;const f=document.createElement("style");return a&&(f.nonce=a),document.head.appendChild(f),f.sheet&&f.sheet.insertRule(`
|
|
23
|
+
<%s key={someKey} {...props} />`,W,Y,We,Y),Ge[Y+W]=!0)}if(Y=null,L!==void 0&&(n(L),Y=""+L),a(j)&&(n(j.key),Y=""+j.key),"key"in j){L={};for(var kr in j)kr!=="key"&&(L[kr]=j[kr])}else L=j;return Y&&o(L,typeof x=="function"?x.displayName||x.name||"Unknown":x),u(x,Y,le,ke,i(),L,wr,Tr)}function d(x){typeof x=="object"&&x!==null&&x.$$typeof===f&&x._store&&(x._store.validated=1)}var p=m,f=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),C=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),_=Symbol.for("react.client.reference"),F=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=Object.prototype.hasOwnProperty,z=Array.isArray,J=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(x){return x()}};var fe,me={},q=p["react-stack-bottom-frame"].bind(p,s)(),ne=J(r(s)),Ge={};He.Fragment=y,He.jsx=function(x,j,L,W,ke){var le=1e4>F.recentlyCreatedOwnerStacks++;return c(x,j,L,!1,W,ke,le?Error("react-stack-top-frame"):q,le?J(r(x)):ne)},He.jsxs=function(x,j,L,W,ke){var le=1e4>F.recentlyCreatedOwnerStacks++;return c(x,j,L,!0,W,ke,le?Error("react-stack-top-frame"):q,le?J(r(x)):ne)}}()),He}var Er;function oo(){return Er||(Er=1,process.env.NODE_ENV==="production"?wt.exports=so():wt.exports=ao()),wt.exports}var h=oo();const Jt={apiBase:"https://dvfoid19j3afz.cloudfront.net/v1"},lo=[{type:"paypal",order:1,is_active:!0},{type:"apple-pay",order:2,is_active:!0},{type:"google-pay",order:3,is_active:!0},{type:"card",order:4,is_active:!0}];var jr=(e=>(e.Card="CARD",e))(jr||{});const co=async e=>{const t=`${Jt.apiBase}/payments/create`,n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(t,{method:"POST",headers:n,body:JSON.stringify(e)})).json()},uo=async e=>{const t=`${Jt.apiBase}/payments/create/billing/agreement`;return await(await fetch(t,{method:"POST",body:JSON.stringify({clientSession:e})})).json()},ho=async e=>{const t=`${Jt.apiBase}/payments/config?clientSessionID=${e}`,r=await(await fetch(t)).json();return r.checkoutConfig||(r.checkoutConfig=lo),r},po=({onCheckoutComplete:e,onCheckoutFail:t})=>{const[n,r]=m.useState(!1),[i,s]=m.useState(!1),[a,o]=m.useState(!1),l=m.useCallback(async d=>{try{s(!1),o(!1),r(!0);const{error:p}=await co(d);if(!p)s(!0),e?.();else{const f=new Error(p||"Unknown error");o(!0),t?.(f)}}catch(p){console.error(p),o(!0),t?.(new Error("Unknown error"))}finally{r(!1)}},[e,t]),u=m.useCallback(d=>{o(!0),t?.(new Error(d))},[t]),c=m.useCallback(()=>{s(!1),o(!1)},[]);return{handleCheckout:l,handleCheckoutFail:u,handleCheckoutReset:c,isCheckoutFetching:n,isCheckoutSuccess:i,isCheckoutFail:a}},Qt={ar:{card:{title:"طريقة الدفع",number:{label:"رقم البطاقة",error:{required:"يتطلب",invalid:"رقم البطاقة غير صالح",incomplete:"رقم البطاقة غير كامل",unsupported:"نوع البطاقة غير المدعوم"}},expiry:{label:"تاريخ الانتهاء",placeholder:"سنة / شهر",error:{required:"يتطلب",invalid:"تاريخ انتهاء صلاحية البطاقة غير صالح",incomplete:"تاريخ انتهاء الصلاحية الخاص ببطاقتك غير كامل",expired:"تاريخ انتهاء صلاحية بطاقتك في الماضي"}},cvc:{label:"رمز الأمان",placeholder:"CVC",error:{required:"يتطلب",incomplete:"رمز الأمان الخاص ببطاقتك غير كامل",invalid:"رمز التحقق من البطاقة (CVC) الخاص ببطاقتك غير صالح"}},name:{label:"اسم حامل البطاقة",placeholder:"الاسم الكامل على البطاقة",error:{required:"يتطلب",invalid:"يرجى إدخال اسمك الكامل"}},pay:{button:"الراتب"},compact:{button:"البطاقة"}},status:{success:"تمت عملية الدفع الخاصة بك بنجاح!",error:"لم نتمكن من التحقق من طريقة الدفع الخاصة بك. يرجى اختيار طريقة دفع أخرى وإعادة المحاولة."}},en:{card:{title:"Payment method",number:{label:"Card number",error:{required:"REQUIRED",invalid:"Your card number is invalid",incomplete:"Your card number is incomplete",unsupported:"Unsupported card type"}},expiry:{label:"Expiry date",placeholder:"MM / YY",error:{required:"REQUIRED",invalid:"Your card’s expiry date is invalid",incomplete:"Your card’s expiry date is incomplete",expired:"Your card’s expiry {date} is in the past"}},cvc:{label:"Security code",placeholder:"CVC",error:{required:"REQUIRED",incomplete:"Your card’s security code is incomplete",invalid:"Your card’s CVC is invalid"}},name:{label:"Cardholder name",placeholder:"Full name on card",error:{required:"REQUIRED",invalid:"Please provide your full name"}},pay:{button:"Pay"},compact:{button:"Card"}},status:{success:"Your payment was successful!",error:"We are unable to authenticate your payment method. Please choose a different payment method and try again."}},bg:{card:{title:"Метод на плащане",number:{label:"Информация за картата",error:{required:"ЗАДЪЛЖИТЕЛНО",invalid:"Номерът на Вашата карта е неправилен",incomplete:"Номерът на Вашата карта е непълен",unsupported:"Неподдържан тип карта"}},expiry:{label:"Дата на валидност",placeholder:"ММ / ГГ",error:{required:"ЗАДЪЛЖИТЕЛНО",incomplete:"Датата на валидност на вашата карта е непълна",invalid:"Датата на валидност на вашата карта е невалидна",expired:"Датата на валидност на вашата карта е в миналото"}},cvc:{label:"Код за сигурност",placeholder:"CVC",error:{required:"ЗАДЪЛЖИТЕЛНО",incomplete:"Кодът за сигурност на вашата карта е непълен",invalid:"Кодът за сигурност на вашата карта е невалиден"}},name:{label:"Име на картодържателя",placeholder:"Пълно име върху картата",error:{required:"ЗАДЪЛЖИТЕЛНО",invalid:"Моля, въведете трите си имена"}},pay:{button:"Платете"},compact:{button:"Карта"}},status:{success:"Успех",error:"Не можем да удостоверим автентичността на вашия метод на плащане. Моля, изберете друг метод на плащане и опитайте отново."}},cs:{card:{title:"Způsob platby",number:{label:"Číslo karty",error:{required:"POVINNÝ ÚDAJ",invalid:"Číslo Vaší karty je neplatné",incomplete:"Číslo vaší karty je neúplné",unsupported:"Nepodporovaný typ karty"}},expiry:{label:"Datum konce platnosti",placeholder:"MM / RR",error:{required:"POVINNÝ ÚDAJ",incomplete:"Datum konce platnosti vaší karty je neúplné",invalid:"Datum konce platnosti karty je neplatné",expired:"Platnost vaší karty vypršela"}},cvc:{label:"Bezpečnostní kód",placeholder:"CVC",error:{required:"POVINNÝ ÚDAJ",incomplete:"Bezpečnostní kód vaší karty je neúplný",invalid:"CVC vaší karty je neplatné"}},name:{label:"Jméno držitele karty",placeholder:"Celé jméno",error:{required:"POVINNÝ ÚDAJ",invalid:"Uvďte prosím celé své jméno"}},pay:{button:"Platit"},compact:{button:"Karta"}},status:{success:"Úspěch",error:"Váš způsob platby se nám nedaří ověřit. Zvolte prosím jiný způsob platby a zkuste to znovu."}},da:{card:{title:"Betalingsmetode",number:{label:"Kortnummer",error:{required:"PÅKRÆVET",invalid:"Kortnummeret er ugyldigt",incomplete:"Kortnummeret er ufuldstændigt",unsupported:"Ikke understøttet korttype"}},expiry:{label:"Udløbsdato",placeholder:"MM / ÅÅ",error:{required:"PÅKRÆVET",incomplete:"Kortets udløbsdato er ikke komplet",invalid:"Dit korts udløbsdato er ugyldig",expired:"Dit kort er udløbet"}},cvc:{label:"Sikkerhedskode",placeholder:"CVC",error:{required:"PÅKRÆVET",incomplete:"Dit korts sikkerhedskode er ikke komplet",invalid:"Dit korts CVC er ugyldigt"}},name:{label:"Kortholderens navn",placeholder:"Fulde navn",error:{required:"PÅKRÆVET",invalid:"Angiv dit fulde navn"}},pay:{button:"Betal"},compact:{button:"Kredit- eller betalingskort"}},status:{success:"Succes",error:"Vi kan ikke godkende din betalingsmetode. Vælg venligst en anden betalingsmetode og prøv igen."}},de:{card:{title:"Zahlungsmethode",number:{label:"Kartennummer",error:{required:"Pflichtfeld",invalid:"Ihre Kartennummer ist ungültig",incomplete:"Ihre Kartennummer ist unvollständig",unsupported:"Nicht unterstützter Kartentyp"}},expiry:{label:"Ablaufdatum",placeholder:"MM / JJ",error:{required:"Pflichtfeld",incomplete:"Das Ablaufdatum Ihrer Karte ist unvollständig",invalid:"Das Ablaufdatum Ihrer Karte ist ungültig",expired:"Ihre Karte ist ungültig"}},cvc:{label:"Sicherheitscode",placeholder:"CVC",error:{required:"Pflichtfeld",incomplete:"Der Sicherheitscode Ihrer Karte ist unvollständig",invalid:"Die Prüfziffer/CVC Ihrer Karte ist ungültig"}},name:{label:"Name des/der Karteninhaber/in",placeholder:"Vollständiger Name",error:{required:"Pflichtfeld",invalid:"Bitte geben Sie Ihren vollständigen Namen ein"}},pay:{button:"Bezahlen"},compact:{button:"Kredit- oder Debitkarte"}},status:{success:"Erfolg",error:"Wir können Ihre Zahlungsmethode nicht authentifizieren. Bitte wählen Sie eine andere Zahlungsmethode und versuchen Sie es erneut."}},el:{card:{title:"Μέθοδος πληρωμής",number:{label:"Αριθμός κάρτας",error:{required:"Απαιτούμενο",invalid:"Ο αριθμός της κάρτας σας δεν είναι έγκυρος",incomplete:"Ο αριθμός της κάρτας σας είναι ελλιπής",unsupported:"Δεν υποστηρίζεται ο τύπος της κάρτας"}},expiry:{label:"Ημερομηνία λήξης",placeholder:"ΜΜ / ΕΕ",error:{required:"Απαιτούμενο",incomplete:"Η ημερομηνία λήξης της κάρτας σας είναι ελλιπής",invalid:"Η ημερομηνία λήξης της κάρτας σας δεν είναι έγκυρη",expired:"Η κάρτα σας έχει λήξει"}},cvc:{label:"Κωδικός ασφαλείας",placeholder:"CVC",error:{required:"Απαιτούμενο",incomplete:"Ο κωδικός ασφαλείας της κάρτας σας είναι ελλιπής",invalid:"Το CVC της κάρτας σας δεν είναι έγκυρο"}},name:{label:"Όνομα κατόχου κάρτας",placeholder:"Πλήρες όνομα στην κάρτα",error:{required:"Απαιτούμενο",invalid:"Συμπληρώστε το ονοματεπώνυμό σας"}},pay:{button:"Πληρωμή"},compact:{button:"Kάρτα"}},status:{success:"Επιτυχία",error:"Δεν μπορούμε να πιστοποιήσουμε τη μέθοδο πληρωμής σας. Παρακαλούμε επιλέξτε μια διαφορετική μέθοδο πληρωμής και προσπαθήστε ξανά."}},es:{card:{title:"Método de pago",number:{label:"Número de tarjeta",error:{required:"OBLIGATORIO",invalid:"El número de tu tarjeta no es válido",incomplete:"El número de tu tarjeta está incompleto",unsupported:"Tipo de tarjeta no soportado"}},expiry:{label:"Fecha de caducidad",placeholder:"MM / AA",error:{required:"OBLIGATORIO",incomplete:"La fecha de caducidad de la tarjeta está incompleta",invalid:"La fecha de caducidad de la tarjeta no es válida",expired:"La tarjeta ha caducado"}},cvc:{label:"Código de seguridad",placeholder:"CVC",error:{required:"OBLIGATORIO",incomplete:"El código de seguridad de la tarjeta está incompleto",invalid:"El CVC de tu tarjeta no es válido"}},name:{label:"Nombre del titular de la tarjeta",placeholder:"Nombre completo",error:{required:"OBLIGATORIO",invalid:"Proporciona tu nombre completo"}},pay:{button:"Pagar"},compact:{button:"Tarjeta"}},status:{success:"Éxito",error:"No podemos autenticar su método de pago. Elija otro método de pago e inténtelo de nuevo."}},et:{card:{title:"Makseviis",number:{label:"Kaardi number",error:{required:"NÕUTAV",invalid:"Teie kaardinumber ei sobi",incomplete:"Teie kaardinumber on puudulik",unsupported:"Toetamata kaardi tüüp"}},expiry:{label:"Aegumiskuupäev",placeholder:"KK / AA",error:{required:"NÕUTAV",incomplete:"Teie kaardi aegumiskuupäev on puudulik",invalid:"Teie kaardi aegumiskuupäev on kehtetu",expired:"Teie kaart on aegunud"}},cvc:{label:"Turvakood",placeholder:"CVC",error:{required:"NÕUTAV",incomplete:"Teie kaardi turvakood on puudulik",invalid:"Teie kaardi CVC on kehtetu"}},name:{label:"Kaardiomaniku nimi",placeholder:"Täisnimi",error:{required:"NÕUTAV",invalid:"Esitage oma täisnimi"}},pay:{button:"Maksa"},compact:{button:"Krediit- või deebetkaart"}},status:{success:"Edu",error:"Me ei suuda teie makseviisi autentida. Palun valige teine makseviis ja proovige uuesti."}},fi:{card:{title:"Maksutapa",number:{label:"Kortin numero",error:{required:"PAKOLLINEN",invalid:"Kortin numero ei kelpaa",incomplete:"Kortin numero on puutteellinen",unsupported:"Ei tuettu korttityyppi"}},expiry:{label:"Erääntymispäivä",placeholder:"KK / VV",error:{required:"PAKOLLINEN",incomplete:"Kortin voimassaoloaika on puutteellinen",invalid:"Kortin voimassaoloaika on virheellinen",expired:"Korttisi on vanhentunut"}},cvc:{label:"Turvakoodi",placeholder:"CVC-koodi",error:{required:"PAKOLLINEN",incomplete:"Kortin turvakoodi on puutteellinen",invalid:"Kortin CVC ei kelpaa"}},name:{label:"Kortinhaltijan nimi",placeholder:"Koko nimi",error:{required:"PAKOLLINEN",invalid:"Anna koko nimesi"}},pay:{button:"Maksa"},compact:{button:"Luotto- tai pankkikortti"}},status:{success:"Menestys",error:"Emme pysty todentamaan maksutapaasi. Valitse toinen maksutapa ja yritä uudelleen."}},fil:{card:{title:"Paraan ng pagbabayad",number:{label:"Numero ng card",error:{required:"KAILANGAN",invalid:"Hindi valid ang numero ng kard mo",incomplete:"Ang numero ng iyong kard ay kulang",unsupported:"Hindi sinusuportahang uri ng card"}},expiry:{label:"Petsa ng pagkapaso",placeholder:"BB / TT",error:{required:"KAILANGAN",incomplete:"Ang petsa ng pagkapaso ng iyong kard ay kulang",invalid:"Hindi valid ang petsa ng pagkapaso ng iyong kard",expired:"Napaso na ang iyong kard"}},cvc:{label:"Security code",placeholder:"CVC",error:{required:"KAILANGAN",incomplete:"Ang security code ng iyong kard ay kulang",invalid:"Hindi valid ang CVC ng iyong kard"}},name:{label:"Pangalan ng may-ari ng kard",placeholder:"Buong pangalan",error:{required:"KAILANGAN",invalid:"Pakibigay ang iyong buong pangalan"}},pay:{button:"Magbayad"},compact:{button:"Luotto- tai pankkikortti"}},status:{success:"Tagumpay",error:"Hindi namin ma-authenticate ang iyong paraan ng pagbabayad. Mangyaring pumili ng ibang paraan ng pagbabayad at subukang muli."}},fr:{card:{title:"Moyen de paiement",number:{label:"Numéro de la carte",error:{required:"OBLIGATOIRE",invalid:"Votre numéro de carte n'est pas valide",incomplete:"Votre numéro de carte est incomplet",unsupported:"Type de carte non supporté"}},expiry:{label:"Date d'expiration",placeholder:"MM / AA",error:{required:"OBLIGATOIRE",incomplete:"La date d'expiration de votre carte est incomplète",invalid:"La date d'expiration de votre carte n'est pas valide",expired:"Votre carte a expiré"}},cvc:{label:"Code de sécurité",placeholder:"CVC",error:{required:"OBLIGATOIRE",incomplete:"Le code de sécurité de votre carte est incomplet",invalid:"Le code CVC de votre carte n'est pas valide"}},name:{label:"Nom du titulaire de la carte",placeholder:"Nom complet",error:{required:"OBLIGATOIRE",invalid:"Veuillez indiquer votre nom complet"}},pay:{button:"Payer"},compact:{button:"Carte"}},status:{success:"Succès",error:"Nous ne sommes pas en mesure d'authentifier votre méthode de paiement. Veuillez choisir un autre mode de paiement et réessayer."}},hr:{card:{title:"Način plaćanja",number:{label:"Broj kartice",error:{required:"POTREBNO",invalid:"Broj vaše kartice nije valjan",incomplete:"Broj vaše kartice nije potpun",unsupported:"Nepodržana vrsta kartice"}},expiry:{label:"Datum isteka",placeholder:"MM / GG",error:{required:"POTREBNO",incomplete:"Datum isteka vaše kartice je nepotpun",invalid:"Datum isteka vaše kartice nije valjan",expired:"Kartica je istekla"}},cvc:{label:"Sigurnosni kod",placeholder:"CVC",error:{required:"POTREBNO",incomplete:"Sigurnosni kôd vaše kartice je nepotpun",invalid:"Kontrolni broj (CVC) vaše kartice nije valjan"}},name:{label:"Ime vlasnika kartice",placeholder:"Puno ime",error:{required:"POTREBNO",invalid:"Unesite svoje puno ime"}},pay:{button:"Plati"},compact:{button:"Kartica"}},status:{success:"Uspjeh",error:"Ne možemo provjeriti autentičnost vašeg načina plaćanja. Odaberite drugi način plaćanja i pokušajte ponovno."}},hu:{card:{title:"Fizetési mód",number:{label:"Kártya száma",error:{required:"KÖTELEZŐ",invalid:"A kártyaszáma érvénytelen",incomplete:"A kártyaszáma hiányos",unsupported:"Nem támogatott kártya típusa"}},expiry:{label:"Lejárat dátuma",placeholder:"HH / ÉÉ",error:{required:"KÖTELEZŐ",incomplete:"A kártyája lejárati dátuma hiányos",invalid:"A kártyája lejárati dátuma érvénytelen",expired:"A kártyája lejárt"}},cvc:{label:"Biztonsági kód",placeholder:"CVC",error:{required:"KÖTELEZŐ",incomplete:"A kártyája biztonsági kódja hiányos",invalid:"A kártya CVC-kódja érvénytelen"}},name:{label:"Kártyabirtokos neve",placeholder:"Teljes név",error:{required:"KÖTELEZŐ",invalid:"Adja meg a teljes nevét"}},pay:{button:"Fizetés"},compact:{button:"Hitel- vagy bankkártya"}},status:{success:"Siker",error:"Nem tudjuk hitelesíteni a fizetési módját. Kérjük, válasszon másik fizetési módot, és próbálja meg újra."}},id:{card:{title:"Metode pembayaran",number:{label:"Nomor kartu",error:{required:"WAJIB DIISI",invalid:"Nomor kartu Anda tidak valid",incomplete:"Nomor kartu Anda tidak lengkap",unsupported:"Tipe kartu tidak didukung"}},expiry:{label:"Tanggal kedaluwarsa",placeholder:"BB / TT",error:{required:"WAJIB DIISI",incomplete:"Tanggal kedaluwarsa kartu Anda tidak lengkap",invalid:"Tanggal kedaluwarsa kartu Anda tidak valid",expired:"Kartu Anda telah kedaluwarsa"}},cvc:{label:"Kode keamanan",placeholder:"CVC",error:{required:"WAJIB DIISI",incomplete:"Kode keamanan kartu Anda tidak lengkap",invalid:"CVC kartu Anda tidak valid"}},name:{label:"Nama pemegang kartu",placeholder:"Nama lengkap",error:{required:"WAJIB DIISI",invalid:"Berikan nama lengkap Anda"}},pay:{button:"Bayar"},compact:{button:"Kartu"}},status:{success:"Sukses",error:"Kami tidak dapat mengautentikasi metode pembayaran Anda. Silakan pilih metode pembayaran lain dan coba lagi."}},it:{card:{title:"Modalità di pagamento",number:{label:"Numero di carta",error:{required:"OBBLIGATORIO",invalid:"Il numero della carta non è valido",incomplete:"Il numero della carta è incompleto",unsupported:"Tipo di carta non supportato"}},expiry:{label:"Data di scadenza",placeholder:"MM / AA",error:{required:"OBBLIGATORIO",incomplete:"La data di scadenza della carta non è completa",invalid:"La data di scadenza della carta non è valida",expired:"La tua carta è scaduta"}},cvc:{label:"Codice di sicurezza",placeholder:"CVC",error:{required:"OBBLIGATORIO",incomplete:"Il codice di sicurezza della carta non è completo",invalid:"Il CVC della carta non è valido"}},name:{label:"Nome del titolare della carta",placeholder:"Nome e cognome",error:{required:"OBBLIGATORIO",invalid:"Inserisci il tuo nome completo"}},pay:{button:"Paga"},compact:{button:"Carta"}},status:{success:"Il successo",error:"Non siamo in grado di autenticare il suo metodo di pagamento. Scegliere un altro metodo di pagamento e riprovare."}},ja:{card:{title:"支払い方法",number:{label:"カード番号",error:{required:"必須",invalid:"カード番号が無効です",incomplete:"カード番号に不備があります",unsupported:"サポートされていないカードタイプ"}},expiry:{label:"有効期限",placeholder:"MM (月) / YY (年)",error:{required:"必須",incomplete:"カードの有効期限に不備があります",invalid:"カードの有効期間の満了月が無効です",expired:"カードの有効期限が切れています"}},cvc:{label:"セキュリティコード",placeholder:"セキュリティコード",error:{required:"必須",incomplete:"カードのセキュリティコードに不備があります",invalid:"カードのセキュリティコードが無効です"}},name:{label:"カード保有者の名前",placeholder:"氏名",error:{required:"必須",invalid:"氏名を入力してください"}},pay:{button:"支払う"},compact:{button:"カード"}},status:{success:"成功",error:"お客様のお支払い方法を認証できません。別のお支払い方法を選択し、再度お試しください。"}},ko:{card:{title:"결제 방식",number:{label:"카드 번호",error:{required:"필수",invalid:"카드 번호가 잘못되었습니다",incomplete:"카드 번호가 불완전합니다",unsupported:"지원되지 않는 카드 유형"}},expiry:{label:"만료 날짜",placeholder:"MM / YY",error:{required:"필수",incomplete:"카드의 유효기간 만료일이 불완전합니다",invalid:"카드의 유효기간 만료일이 잘못되었습니다",expired:"카드가 만료되었습니다"}},cvc:{label:"보안 코드",placeholder:"보안 코드(CVC)",error:{required:"필수",incomplete:"카드의 보안 코드가 불완전합니다",invalid:"카드의 보안 코드(CVC)가 잘못되었습니다"}},name:{label:"카드 소유자 이름",placeholder:"성명",error:{required:"필수",invalid:"성명을 입력하십시오"}},pay:{button:"결제"},compact:{button:"카드 번호"}},status:{success:"성공",error:"결제 방법을 인증할 수 없습니다. 다른 결제 방법을 선택하고 다시 시도해 주세요."}},lt:{card:{title:"Mokėjimo būdas",number:{label:"Kortelės numeris",error:{required:"PRIVALOMA",invalid:"Negaliojantis kortelės numeris",incomplete:"Neišsamus kortelės numeris",unsupported:"Nepalaikomas kortelės tipas"}},expiry:{label:"Galiojimo pabaigos data",placeholder:"mm / MM",error:{required:"PRIVALOMA",incomplete:"Neišsami jūsų kortelės galiojimo pabaigos data",invalid:"Netinkama jūsų kortelės galiojimo pabaigos data",expired:"Kortelė baigė galioti"}},cvc:{label:"Saugos kodas",placeholder:"CVC",error:{required:"PRIVALOMA",incomplete:"Neišsamus jūsų kortelės saugos kodas",invalid:"Jūsų kortelės CVC negalioja"}},name:{label:"Kortelės turėtojo vardas ir pavardė",placeholder:"Vardas ir pavardė",error:{required:"PRIVALOMA",invalid:"Įveskite ir vardą ir pavardę"}},pay:{button:"Mokėti"},compact:{button:"Kortelė"}},status:{success:"Sėkmė",error:"Negalime patvirtinti jūsų mokėjimo būdo. Pasirinkite kitą mokėjimo būdą ir bandykite dar kartą."}},lv:{card:{title:"Maksājumu veids",number:{label:"Kartes numurs",error:{required:"OBLIGĀTI",invalid:"Kartes numurs nav derīgs",incomplete:"Kartes numurs nav pilnīgs",unsupported:"Nepareizs kartes tips"}},expiry:{label:"Derīguma termiņš",placeholder:"MM / YY",error:{required:"OBLIGĀTI",incomplete:"Kartes derīguma termiņa datums nav pilnīgs",invalid:"Kartes derīguma termiņa beigu datums nav derīgs",expired:"Kartes derīgums ir beidzies"}},cvc:{label:"Drošības kods",placeholder:"CVC",error:{required:"OBLIGĀTI",incomplete:"Kartes drošības kods nav pilnīgs",invalid:"Kartes CVC nav derīgs"}},name:{label:"Kartes īpašnieka vārds",placeholder:"Vārds, uzvārds",error:{required:"OBLIGĀTI",invalid:"Norādiet savu vārdu un uzvārdu"}},pay:{button:"Maksāt"},compact:{button:"Karte"}},status:{success:"Panākumi",error:"Mēs nevaram pārbaudīt jūsu maksājuma metodes autentiskumu. Lūdzu, izvēlieties citu maksājumu metodi un mēģiniet vēlreiz."}},ms:{card:{title:"Kaedah pembayaran",number:{label:"Nombor kad",error:{required:"DIPERLUKAN",invalid:"Nombor kad anda tidak sah",incomplete:"Nombor kad anda tidak lengkap",unsupported:"Tipe kad tidak sah"}},expiry:{label:"Tarikh tamat tempoh",placeholder:"BB / TT",error:{required:"DIPERLUKAN",incomplete:"Tarikh tamat tempoh kad anda tidak lengkap",invalid:"Tarikh tamat tempoh kad anda tidak sah",expired:"Kad anda telah tamat tempoh"}},cvc:{label:"Kod keselamatan",placeholder:"CVC",error:{required:"DIPERLUKAN",incomplete:"Kod keselamatan kad anda tidak lengkap",invalid:"CVC kad anda tidak sah"}},name:{label:"Nama pemegang kad",placeholder:"Nama penuh",error:{required:"DIPERLUKAN",invalid:"Sila berikan nama penuh anda"}},pay:{button:"Bayar"},compact:{button:"Kad"}},status:{success:"Kejayaan",error:"Kami tidak dapat mengesahkan kaedah pembayaran anda. Sila pilih kaedah pembayaran lain dan cuba lagi."}},ru:{card:{title:"Метод оплаты",number:{label:"Номер карты",error:{required:"ОБЯЗАТЕЛЬНО",invalid:"Недопустимый номер карты",incomplete:"Номер карты неполон",unsupported:"Неподдерживаемый тип карты"}},expiry:{label:"Срок действия",placeholder:"ММ / ГГ",error:{required:"ОБЯЗАТЕЛЬНО",incomplete:"Срок действия карты указан не полностью",invalid:"Указанный срок действия карты недействителен",expired:"Срок действия карты истек"}},cvc:{label:"Код безопасности",placeholder:"CVC",error:{required:"ОБЯЗАТЕЛЬНО",incomplete:"Код безопасности карты введен не полностью",invalid:"Код CVC карты недействителен"}},name:{label:"Имя владельца карты",placeholder:"Имя, фамилия",error:{required:"ОБЯЗАТЕЛЬНО",invalid:"Введите свое имя и фамилию"}},pay:{button:"Оплатить"},compact:{button:"Кредитная карта"}},status:{success:"Успех",error:"Мы не можем проверить подлинность вашего способа оплаты. Пожалуйста, выберите другой способ оплаты и повторите попытку."}},mt:{card:{title:"Metodu tal-ħlas",number:{label:"Numru tal-karta",error:{required:"MEĦTIEĠ/A",invalid:"In-numru tal-karta tiegħek mhuwiex tajjeb",incomplete:"In-numru tal-karta tiegħek mhuwiex komplut",unsupported:"Tip ta' karta mhux appoġġjat"}},expiry:{label:"Data tal-iskadenza",placeholder:"XX / SS",error:{required:"MEĦTIEĠ/A",incomplete:"Id-data tal-iskadenza tal-karta tiegħek mhix sħiħa",invalid:"Id-data tal-iskadenza tal-karta tiegħek mhix tajba",expired:"Il-karta tiegħek skadiet"}},cvc:{label:"Kodiċi tas-sigurtà",placeholder:"CVC",error:{required:"MEĦTIEĠ/A",incomplete:"Il-kodiċi tas-sigurtà tal-karta tiegħek mhux sħiħ",invalid:"Is-CVC tal-karta tiegħek mhux tajjeb"}},name:{label:"Isem id-detentur tal-karta",placeholder:"Isem u kunjom",error:{required:"MEĦTIEĠ/A",invalid:"Jekk jogħġbok ipprovdi isemek kollu"}},pay:{button:"Ħallas"},compact:{button:"Karta"}},status:{success:"Suċċess",error:"Aħna ma nistgħux jawtentikaw il-metodu tal-ħlas tiegħek. Jekk jogħġbok agħżel metodu ta' ħlas differenti u erġa' pprova."}},nb:{card:{title:"Betalingsmetode",number:{label:"Kortnummer",error:{required:"PÅKREVET",invalid:"Kortnummer er ugyldig",incomplete:"Kortnummeret er ufullstendig",unsupported:"Ikke understøttet korttype"}},expiry:{label:"Utløpsdato",placeholder:"MM / ÅÅ",error:{required:"PÅKREVET",incomplete:"Kortets utløpsdato er ufullstendig",invalid:"Kortets utløpsdato er ugyldig",expired:"Kortet er utløpt"}},cvc:{label:"Sikkerhetskode",placeholder:"CVC",error:{required:"PÅKREVET",incomplete:"Kortets sikkerhetskode er ufullstendig",invalid:"Kortets CVC-nummer er ugyldig"}},name:{label:"Kortinnehavers navn",placeholder:"Fullt navn",error:{required:"PÅKREVET",invalid:"Oppgi fullt navn"}},pay:{button:"Betal"},compact:{button:"Kort"}},status:{success:"Suksess",error:"Vi kan ikke godkjenne betalingsmåten din. Vennligst velg en annen betalingsmetode og prøv på nytt."}},nl:{card:{title:"Betaalmethode",number:{label:"Kaartnummer",error:{required:"VEREIST",invalid:"Je kaartnummer is ongeldig",incomplete:"Je kaartnummer is onvolledig",unsupported:"Niet ondersteund"}},expiry:{label:"Vervaldatum",placeholder:"MM / JJ",error:{required:"VEREIST",incomplete:"De vervaldatum van je kaart is onvolledig",invalid:"De vervaldatum van je betaalkaart is ongeldig",expired:"Je kaart is vervallen"}},cvc:{label:"Beveiligingscode",placeholder:"CVC",error:{required:"VEREIST",incomplete:"De beveiligingscode van je betaalkaart is onvolledig",invalid:"De CVC-code van je betaalkaart is ongeldig"}},name:{label:"Naam kaarthouder",placeholder:"Volledige naam",error:{required:"VEREIST",invalid:"Geef je volledige naam op"}},pay:{button:"Betalen"},compact:{button:"Kaart"}},status:{success:"Succes",error:"We kunnen je betaalmethode niet verifiëren. Kies een andere betaalmethode en probeer het opnieuw."}},pl:{card:{title:"Metoda płatności",number:{label:"Numer karty",error:{required:"WYMAGANE",invalid:"Numer karty jest nieprawidłowy",incomplete:"Numer karty jest niepełny",unsupported:"Nieobsługiwany typ karty"}},expiry:{label:"Data ważności",placeholder:"MM / RR",error:{required:"WYMAGANE",incomplete:"Data ważności karty jest niepełna",invalid:"Termin ważności karty jest nieprawidłowy",expired:"Karta straciła ważność"}},cvc:{label:"Kod bezpieczeństwa",placeholder:"Kod CVC",error:{required:"WYMAGANE",incomplete:"Kod zabezpieczający karty jest niekompletny",invalid:"CVC karty jest nieprawidłowy"}},name:{label:"Imię i nazwisko posiadacza karty",placeholder:"Imię i nazwisko",error:{required:"WYMAGANE",invalid:"Podaj pełne imię i nazwisko"}},pay:{button:"Zapłać"},compact:{button:"Karta"}},status:{success:"Sukces",error:"Nie możemy uwierzytelnić metody płatności. Wybierz inną metodę płatności i spróbuj ponownie."}},pt:{card:{title:"Forma de pagamento",number:{label:"Número do cartão",error:{required:"OBRIGATÓRIO",invalid:"O número do seu cartão é inválido",incomplete:"O número do seu cartão está incompleto",unsupported:"Tipo de cartão não suportado"}},expiry:{label:"Data de validade",placeholder:"MM / AA",error:{required:"OBRIGATÓRIO",incomplete:"A data de validade do cartão está incompleta",invalid:"A data de validade do seu cartão é inválida",expired:"O seu cartão expirou"}},cvc:{label:"Código de segurança",placeholder:"CVC",error:{required:"OBRIGATÓRIO",incomplete:"O código de segurança de seu cartão está incompleto",invalid:"O CVC do seu cartão é inválido"}},name:{label:"Nome do titular do cartão",placeholder:"Nome completo",error:{required:"OBRIGATÓRIO",invalid:"Forneça o seu nome completo"}},pay:{button:"Pagar"},compact:{button:"Cartão"}},status:{success:"Sucesso",error:"Não foi possível autenticar o seu método de pagamento. Selecione um método de pagamento diferente e tente novamente."}},ro:{card:{title:"Metoda de plată",number:{label:"Numărul cardului",error:{required:"NECESAR",invalid:"Numărul cardului dvs. nu este valid",incomplete:"Numărul cardului dvs. nu este complet",unsupported:"Tipul cardului nu este acceptat"}},expiry:{label:"Data de expirare",placeholder:"LL / AA",error:{required:"NECESAR",incomplete:"Data de expirare a cardului dvs. este incompletă",invalid:"Data de expirare a cardului dvs. nu este validă",expired:"Cardul dvs. a expirat"}},cvc:{label:"Codul de securitate",placeholder:"CVC",error:{required:"NECESAR",incomplete:"Codul de securitate al cardului dvs. este incomplet",invalid:"Numărul CVC al cardului dvs. nu este valid"}},name:{label:"Nume titular card",placeholder:"Nume complet",error:{required:"NECESAR",invalid:"Vă rugăm să furnizați numele dvs. complet"}},pay:{button:"Plătiți"},compact:{button:"Card"}},status:{success:"Succes",error:"Nu putem să vă autentificăm metoda de plată. Vă rugăm să alegeți o altă metodă de plată și să încercați din nou."}},sk:{card:{title:"Spôsob platby",number:{label:"Číslo karty",error:{required:"POŽADOVANÉ",invalid:"Číslo vašej karty je neplatné",incomplete:"Číslo vašej karty je neúplné",unsupported:"Nepodporovaný typ karty"}},expiry:{label:"Dátum ukončenia platnosti",placeholder:"MM / RR",error:{required:"POŽADOVANÉ",incomplete:"Dátum vypršania platnosti vašej karty je neúplný",invalid:"Dátum vypršania platnosti vašej karty je neplatný",expired:"Platnosť vašej karty vypršala"}},cvc:{label:"Bezpečnostný kód",placeholder:"CVC",error:{required:"POŽADOVANÉ",incomplete:"Bezpečnostný kód vašej karty je neúplný",invalid:"Číslo CVC vašej karty je neplatné"}},name:{label:"Držiteľ karty",placeholder:"Celé meno",error:{required:"POŽADOVANÉ",invalid:"Zadajte vaše celé meno"}},pay:{button:"Zaplatiť"},compact:{button:"Karta"}},status:{success:"Úspech",error:"Nemôžeme overiť váš spôsob platby. Vyberte si iný spôsob platby a skúste to znova."}},sl:{card:{title:"Način plačila",number:{label:"Številka kartice",error:{required:"OBVEZNO",invalid:"Številka vaše kartice ni veljavna",incomplete:"Številka vaše kartice ni popolna",unsupported:"Nepodprta vrsta kartice"}},expiry:{label:"Datum poteka",placeholder:"MM / LL",error:{required:"OBVEZNO",incomplete:"Datum poteka vaše kartice ni popoln",invalid:"Datum poteka vaše kartice ni veljaven",expired:"Vaša kartica je potekla"}},cvc:{label:"Varnostna koda",placeholder:"CVC",error:{required:"OBVEZNO",incomplete:"Varnostna koda vaše kartice ni popolna",invalid:"Koda CVC vaše kartice ni veljavna"}},name:{label:"Ime imetnika kartice",placeholder:"Polno ime",error:{required:"OBVEZNO",invalid:"Vnesite svoje polno ime"}},pay:{button:"Plačaj"},compact:{button:"Kartica"}},status:{success:"Uspeh",error:"Vašega načina plačila ne moremo preveriti. Izberite drug način plačila in poskusite znova."}},sv:{card:{title:"Betalningsmetod",number:{label:"Kortnummer",error:{required:"OBLIGATORISKT",invalid:"Ditt kortnummer är ogiltigt",incomplete:"Kortnumret är ofullständigt",unsupported:"Nepodporovaný typ karty"}},expiry:{label:"Sista giltighetsdag",placeholder:"MM / ÅÅ",error:{required:"OBLIGATORISKT",incomplete:"Kortets utgångsdatum är ofullständigt",invalid:"Kortets utgångsdatum är ogiltigt",expired:"Ditt kort har gått ut"}},cvc:{label:"Säkerhetskod",placeholder:"CVC",error:{required:"OBLIGATORISKT",incomplete:"Kortets säkerhetskod är ofullständig",invalid:"Kortets CVC-kod är ogiltig"}},name:{label:"Kortinnehavarens namn",placeholder:"Fullständigt namn",error:{required:"OBLIGATORISKT",invalid:"Ange ditt fullständiga namn"}},pay:{button:"Betala"},compact:{button:"Kort"}},status:{success:"Framgång",error:"Vi kan inte verifiera din betalningsmetod. Vänligen välj en annan betalningsmetod och försök igen."}},th:{card:{title:"วิธีการชำระเงิน",number:{label:"หมายเลขบัตร",error:{required:"ต้องป้อนข้อมูล",invalid:"หมายเลขบัตรของคุณไม่ถูกต้อง",incomplete:"หมายเลขบัตรของคุณไม่ครบถ้วน",unsupported:"ประเภทบัตรของคุณไม่ถูกต้อง"}},expiry:{label:"วันหมดอายุ",placeholder:"ดด / ปป",error:{required:"ต้องป้อนข้อมูล",incomplete:"วันที่หมดอายุของบัตรไม่ครบถ้วน",invalid:"วันที่หมดอายุของบัตรไม่ถูกต้อง",expired:"บัตรของคุณหมดอายุแล้ว"}},cvc:{label:"รหัสความปลอดภัย",placeholder:"CVC",error:{required:"ต้องป้อนข้อมูล",incomplete:"รหัสความปลอดภัยของบัตรไม่ครบถ้วน",invalid:"CVC ของบัตรไม่ถูกต้อง"}},name:{label:"ชื่อเจ้าของบัตร",placeholder:"ชื่อ-นามสกุล",error:{required:"ต้องป้อนข้อมูล",invalid:"โปรดป้อนชื่อ-นามสกุล"}},pay:{button:"ชำระเงิน"},compact:{button:"การ์ด"}},status:{success:"ความสำเร็จ",error:"เราไม่สามารถตรวจสอบวิธีการชำระเงินของคุณได้ โปรดเลือกวิธีการชำระเงินอื่นแล้วลองอีกครั้ง"}},tr:{card:{title:"Ödeme yöntemi",number:{label:"Kart numarası",error:{required:"GEREKLI",invalid:"Kart numaranız geçersiz",incomplete:"Kart numaranız eksik",unsupported:"Desteklenmeyen kart türü"}},expiry:{label:"Son Kullanma Tarihi",placeholder:"AA / YY",error:{required:"GEREKLI",incomplete:"Kartınızın son kullanma tarihi eksik",invalid:"Kartınızın son kullanım tarihi geçersiz",expired:"Kartınızın süresi dolmuş"}},cvc:{label:"Güvenlik kodu",placeholder:"CVC",error:{required:"GEREKLI",incomplete:"Kartınızın güvenlik kodu eksik",invalid:"Kartınızın CVC'si geçersiz"}},name:{label:"Kart sahibinin adı",placeholder:"Ad ve soyadı",error:{required:"GEREKLI",invalid:"Lütfen tam adınızı girin"}},pay:{button:"Öde"},compact:{button:"Kart"}},status:{success:"Başarı",error:"Ödeme yönteminizi doğrulayamıyoruz. Lütfen farklı bir ödeme yöntemi seçin ve tekrar deneyin."}},vi:{card:{title:"Phương thức thanh toán",number:{label:"Số thẻ",error:{required:"BẮT BUỘC",invalid:"Số thẻ của quý vị không hợp lệ",incomplete:"Số thẻ của quý vị không đầy đủ",unsupported:"Không hỗ trợ loại thẻ"}},expiry:{label:"Ngày hết hạn",placeholder:"MM / YY",error:{required:"BẮT BUỘC",incomplete:"Ngày hết hạn trên thẻ không hợp lệ",invalid:"Ngày hết hạn của thẻ không hợp lệ",expired:"Thẻ của quý vị đã hết hạn"}},cvc:{label:"Mã bảo mật",placeholder:"CVC",error:{required:"BẮT BUỘC",incomplete:"Mã bảo mật của thẻ không đầy đủ",invalid:"CVC thẻ của bạn không hợp lệ"}},name:{label:"Tên chủ thẻ",placeholder:"Họ và tên",error:{required:"BẮT BUỘC",invalid:"Vui lòng cung cấp tên đầy đủ của bạn"}},pay:{button:"Thanh toán"},compact:{button:"Thẻ"}},status:{success:"Thành công",error:"Chúng tôi không thể xác thực phương thức thanh toán của bạn. Vui lòng chọn phương thức thanh toán khác và thử lại."}},zh:{card:{title:"支付方式",number:{label:"卡号",error:{required:"必填",invalid:"您的卡号无效",incomplete:"您的银行卡卡号不完整",unsupported:"不支持的卡类型"}},expiry:{label:"有效期",placeholder:"月份 / 年份",error:{required:"必填",incomplete:"您银行卡的有效期不完整",invalid:"您银行卡的有效期无效",expired:"您的银行卡已过期"}},cvc:{label:"安全代码",placeholder:"CVC",error:{required:"必填",incomplete:"您银行卡的安全码不完整",invalid:"您银行卡的 CVC 无效"}},name:{label:"持卡人姓名",placeholder:"全名",error:{required:"必填",invalid:"请提供您的全名"}},pay:{button:"支付"},compact:{button:"卡片"}},status:{success:"成功",error:"我们无法验证您的付款方式。请选择其他付款方式并重试。"}}},en=()=>{const e="navigator"in global?navigator?.language.split("-")[0]:"";return Qt[e]||Qt.en},fo=e=>e&&Qt[e]||en(),mo={messages:en(),locale:"navigator"in global?navigator?.language.split("-")[0]:"en"},Tt=m.createContext(mo),_e=()=>{const{messages:e}=m.useContext(Tt);return e},go=()=>{const{locale:e}=m.useContext(Tt);return e},yo=()=>{const{locale:e}=m.useContext(Tt);return e==="ar"?"rtl":"ltr"},vo=({children:e,translate:t,locale:n="en"})=>{const r=fo(n),i={card:{title:t?.card?.title||r.card.title,number:{label:t?.card?.number?.label||r.card.number.label,error:{required:t?.card?.number?.error?.required||r.card.number.error.required,invalid:t?.card?.number?.error?.invalid||r.card.number.error.invalid,incomplete:t?.card?.number?.error?.incomplete||r.card.number.error.incomplete,unsupported:t?.card?.number?.error?.unsupported||r.card.number.error.unsupported}},expiry:{label:t?.card?.expiry?.label||r.card.expiry.label,placeholder:t?.card?.expiry?.placeholder||r.card.expiry.placeholder,error:{required:t?.card?.expiry?.error?.required||r.card.expiry.error.required,invalid:t?.card?.expiry?.error?.invalid||r.card.expiry.error.invalid,incomplete:t?.card?.expiry?.error?.incomplete||r.card.expiry.error.incomplete,expired:t?.card?.expiry?.error?.expired||r.card.expiry.error.expired}},cvc:{label:t?.card?.cvc?.label||r.card.cvc.label,placeholder:t?.card?.cvc?.placeholder||r.card.cvc.placeholder,error:{required:t?.card?.cvc?.error?.required||r.card.cvc.error.required,incomplete:t?.card?.cvc?.error?.incomplete||r.card.cvc.error.incomplete,invalid:t?.card?.cvc?.error?.invalid||r.card.cvc.error.invalid}},name:{label:t?.card?.name?.label||r.card.name.label,placeholder:t?.card?.name?.placeholder||r.card.name.placeholder,error:{required:t?.card?.name?.error?.required||r.card.name.error.required,invalid:t?.card?.name?.error?.invalid||r.card.name.error.invalid}},pay:{button:t?.card?.pay?.button||r.card.pay.button},compact:{button:t?.card?.compact?.button||r.card.compact.button}},status:{success:t?.status?.success||r.status.success,error:t?.status?.error||r.status.error}};return h.jsx(Tt.Provider,{value:{messages:i,locale:n},children:e})},Vr=m.createContext(null),bo=()=>m.useContext(Vr),xo=({children:e,clientToken:t})=>{const[n,r]=m.useState(null);return m.useEffect(()=>{ho(t).then(i=>r(i)).catch(console.error)},[t]),h.jsx(Vr.Provider,{value:n,children:e})},kt={button:"_button_159xd_1",primary:"_primary_159xd_11",success:"_success_159xd_15",loading:"_loading_159xd_19",press:"_press_159xd_24"};function Rr(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Rr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ye(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Rr(e))&&(r&&(r+=" "),r+=t);return r}const _r=({color:e,isLoading:t,children:n,onClick:r,onMouseUp:i,onMouseOut:s,onMouseDown:a,...o})=>{const[l,u]=m.useState(!1),c=m.useCallback(g=>{t||o.disabled||r?.(g)},[r,t,o.disabled]),d=m.useCallback(g=>{u(!0),a?.(g)},[a]),p=m.useCallback(g=>{u(!1),i?.(g)},[i]),f=m.useCallback(g=>{u(!1),s?.(g)},[s]);return h.jsx("button",{...o,onClick:c,onMouseDown:d,onMouseUp:p,onMouseOut:f,className:ye(kt.button,e&&kt[e],t&&kt.loading,l&&kt.press,o.className),style:o.style,children:n})};var tn,Mr;function Co(){if(Mr)return tn;Mr=1;var e={visa:{niceType:"Visa",type:"visa",patterns:[4],gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",size:3}},mastercard:{niceType:"Mastercard",type:"mastercard",patterns:[[51,55],[2221,2229],[223,229],[23,26],[270,271],2720],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},"american-express":{niceType:"American Express",type:"american-express",patterns:[34,37],gaps:[4,10],lengths:[15],code:{name:"CID",size:4}},"diners-club":{niceType:"Diners Club",type:"diners-club",patterns:[[300,305],36,38,39],gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",size:3}},discover:{niceType:"Discover",type:"discover",patterns:[6011,[644,649],65],gaps:[4,8,12],lengths:[16,19],code:{name:"CID",size:3}},jcb:{niceType:"JCB",type:"jcb",patterns:[2131,1800,[3528,3589]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVV",size:3}},unionpay:{niceType:"UnionPay",type:"unionpay",patterns:[620,[62100,62182],[62184,62187],[62185,62197],[62200,62205],[622010,622999],622018,[62207,62209],[623,626],6270,6272,6276,[627700,627779],[627781,627799],[6282,6289],6291,6292,810,[8110,8131],[8132,8151],[8152,8163],[8164,8171]],gaps:[4,8,12],lengths:[14,15,16,17,18,19],code:{name:"CVN",size:3}},maestro:{niceType:"Maestro",type:"maestro",patterns:[493698,[5e5,504174],[504176,506698],[506779,508999],[56,59],63,67,6],gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",size:3}},elo:{niceType:"Elo",type:"elo",patterns:[401178,401179,438935,457631,457632,431274,451416,457393,504175,[506699,506778],[509e3,509999],627780,636297,636368,[650031,650033],[650035,650051],[650405,650439],[650485,650538],[650541,650598],[650700,650718],[650720,650727],[650901,650978],[651652,651679],[655e3,655019],[655021,655058]],gaps:[4,8,12],lengths:[16],code:{name:"CVE",size:3}},mir:{niceType:"Mir",type:"mir",patterns:[[2200,2204]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVP2",size:3}},hiper:{niceType:"Hiper",type:"hiper",patterns:[637095,63737423,63743358,637568,637599,637609,637612],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},hipercard:{niceType:"Hipercard",type:"hipercard",patterns:[606282],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}}};return tn=e,tn}var Ze={},Xe={},Ir;function Dr(){if(Ir)return Xe;Ir=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.clone=void 0;function e(t){return t?JSON.parse(JSON.stringify(t)):null}return Xe.clone=e,Xe}var Je={},Lr;function wo(){if(Lr)return Je;Lr=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.matches=void 0;function e(r,i,s){var a=String(i).length,o=r.substr(0,a),l=parseInt(o,10);return i=parseInt(String(i).substr(0,o.length),10),s=parseInt(String(s).substr(0,o.length),10),l>=i&&l<=s}function t(r,i){return i=String(i),i.substring(0,r.length)===r.substring(0,i.length)}function n(r,i){return Array.isArray(i)?e(r,i[0],i[1]):t(r,i)}return Je.matches=n,Je}var Nr;function To(){if(Nr)return Ze;Nr=1,Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.addMatchingCardsToResults=void 0;var e=Dr(),t=wo();function n(r,i,s){var a,o;for(a=0;a<i.patterns.length;a++){var l=i.patterns[a];if((0,t.matches)(r,l)){var u=(0,e.clone)(i);Array.isArray(l)?o=String(l[0]).length:o=String(l).length,r.length>=o&&(u.matchStrength=o),s.push(u);break}}}return Ze.addMatchingCardsToResults=n,Ze}var Qe={},Or;function ko(){if(Or)return Qe;Or=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.isValidInputType=void 0;function e(t){return typeof t=="string"||t instanceof String}return Qe.isValidInputType=e,Qe}var et={},Br;function So(){if(Br)return et;Br=1,Object.defineProperty(et,"__esModule",{value:!0}),et.findBestMatch=void 0;function e(n){var r=n.filter(function(i){return i.matchStrength}).length;return r>0&&r===n.length}function t(n){return e(n)?n.reduce(function(r,i){return!r||Number(r.matchStrength)<Number(i.matchStrength)?i:r}):null}return et.findBestMatch=t,et}var tt,Fr;function Po(){if(Fr)return tt;Fr=1;var e=tt&&tt.__assign||function(){return e=Object.assign||function(g){for(var y,b=1,v=arguments.length;b<v;b++){y=arguments[b];for(var w in y)Object.prototype.hasOwnProperty.call(y,w)&&(g[w]=y[w])}return g},e.apply(this,arguments)},t=Co(),n=To(),r=ko(),i=So(),s=Dr(),a={},o={VISA:"visa",MASTERCARD:"mastercard",AMERICAN_EXPRESS:"american-express",DINERS_CLUB:"diners-club",DISCOVER:"discover",JCB:"jcb",UNIONPAY:"unionpay",MAESTRO:"maestro",ELO:"elo",MIR:"mir",HIPER:"hiper",HIPERCARD:"hipercard"},l=[o.VISA,o.MASTERCARD,o.AMERICAN_EXPRESS,o.DINERS_CLUB,o.DISCOVER,o.JCB,o.UNIONPAY,o.MAESTRO,o.ELO,o.MIR,o.HIPER,o.HIPERCARD],u=(0,s.clone)(l);function c(g){return a[g]||t[g]}function d(){return u.map(function(g){return(0,s.clone)(c(g))})}function p(g,y){y===void 0&&(y=!1);var b=u.indexOf(g);if(!y&&b===-1)throw new Error('"'+g+'" is not a supported card type.');return b}function f(g){var y=[];if(!(0,r.isValidInputType)(g))return y;if(g.length===0)return d();u.forEach(function(v){var w=c(v);(0,n.addMatchingCardsToResults)(g,w,y)});var b=(0,i.findBestMatch)(y);return b?[b]:y}return f.getTypeInfo=function(g){return(0,s.clone)(c(g))},f.removeCard=function(g){var y=p(g);u.splice(y,1)},f.addCard=function(g){var y=p(g.type,!0);a[g.type]=g,y===-1&&u.push(g.type)},f.updateCard=function(g,y){var b=a[g]||t[g];if(!b)throw new Error('"'.concat(g,"\" is not a recognized type. Use `addCard` instead.'"));if(y.type&&b.type!==y.type)throw new Error("Cannot overwrite type parameter.");var v=(0,s.clone)(b);v=e(e({},v),y),a[v.type]=v},f.changeOrder=function(g,y){var b=p(g);u.splice(b,1),u.splice(y,0,g)},f.resetModifications=function(){u=(0,s.clone)(l),a={}},f.types=o,tt=f,tt}var Me=Po();Me.updateCard("visa",{lengths:[16]}),Me.updateCard("unionpay",{gaps:[4,8,12,16]});const Ao=(e,t)=>{const n=Me.getTypeInfo(t),r=e.replace(/\D/g,""),i=n?.gaps||[4,8,12],s=n?Math.max(...n.lengths)+i.length:19,a=[0].concat(i,r.length),o=[];for(let l=0;a[l]<r.length;l++){const u=a[l],c=Math.min(a[l+1],r.length);o.push(r.slice(u,c))}return o.join(" ").slice(0,s)},nn=(e,t)=>{const r=Me.getTypeInfo(t)?.code.size||4;return e.replace(/\D/g,"").slice(0,r)},Eo=(e,t)=>{const n=e.replace(/\D/g,"");let r=n.slice(0,2);if(!r)return"";const i=Number(r);if(r!=="01"){if(Number.isNaN(i))return"0";if(i===0||i===1)return`${i}`;if(i>12)return"1";r=i>9?`${i}`:`0${i}`}if(e.length<t.length){const a=Number(e[e.length-1]);if(Number.isNaN(a))return r}const s=n.slice(2,4);return`${r} / ${s}`},St={card:"_card_1woqz_1",cardDataContainer:"_cardDataContainer_1woqz_23",payButton:"_payButton_1woqz_31",spinner:"_spinner_1woqz_35"},ce={inputContainer:"_inputContainer_1eto7_1",inputFocus:"_inputFocus_1eto7_6",input:"_input_1eto7_1",endContent:"_endContent_1eto7_16",errorInput:"_errorInput_1eto7_20",error:"_error_1eto7_20",label:"_label_1eto7_28",labelError:"_labelError_1eto7_32"},rn=m.createContext({});function sn(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const an=typeof window<"u",qr=an?m.useLayoutEffect:m.useEffect,Pt=m.createContext(null);function on(e,t){e.indexOf(t)===-1&&e.push(t)}function ln(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ue=(e,t,n)=>n>t?t:n<e?e:n;let Ie=()=>{},de=()=>{};process.env.NODE_ENV!=="production"&&(Ie=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},de=(e,t)=>{if(!e)throw new Error(t)});const he={},Kr=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function zr(e){return typeof e=="object"&&e!==null}const $r=e=>/^0[^.\s]+$/u.test(e);function cn(e){let t;return()=>(t===void 0&&(t=e()),t)}const Q=e=>e,jo=(e,t)=>n=>t(e(n)),nt=(...e)=>e.reduce(jo),rt=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class un{constructor(){this.subscriptions=[]}add(t){return on(this.subscriptions,t),()=>ln(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const a=this.subscriptions[s];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ie=e=>e*1e3,ae=e=>e/1e3;function Ur(e,t){return t?e*(1e3/t):0}const Gr=new Set;function dn(e,t,n){e||Gr.has(t)||(console.warn(t),Gr.add(t))}const Wr=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Vo=1e-7,Ro=12;function _o(e,t,n,r,i){let s,a,o=0;do a=t+(n-t)/2,s=Wr(a,r,i)-e,s>0?n=a:t=a;while(Math.abs(s)>Vo&&++o<Ro);return a}function it(e,t,n,r){if(e===t&&n===r)return Q;const i=s=>_o(s,0,1,e,n);return s=>s===0||s===1?s:Wr(i(s),t,r)}const Yr=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Hr=e=>t=>1-e(1-t),Zr=it(.33,1.53,.69,.99),hn=Hr(Zr),Xr=Yr(hn),Jr=e=>(e*=2)<1?.5*hn(e):.5*(2-Math.pow(2,-10*(e-1))),pn=e=>1-Math.sin(Math.acos(e)),Qr=Hr(pn),ei=Yr(pn),Mo=it(.42,0,1,1),Io=it(0,0,.58,1),ti=it(.42,0,.58,1),Do=e=>Array.isArray(e)&&typeof e[0]!="number",ni=e=>Array.isArray(e)&&typeof e[0]=="number",ri={linear:Q,easeIn:Mo,easeInOut:ti,easeOut:Io,circIn:pn,circInOut:ei,circOut:Qr,backIn:hn,backInOut:Xr,backOut:Zr,anticipate:Jr},Lo=e=>typeof e=="string",ii=e=>{if(ni(e)){de(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return it(t,n,r,i)}else if(Lo(e))return de(ri[e]!==void 0,`Invalid easing type '${e}'`),ri[e];return e},At=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],si={value:null};function No(e,t){let n=new Set,r=new Set,i=!1,s=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(d){a.has(d)&&(c.schedule(d),e()),l++,d(o)}const c={schedule:(d,p=!1,f=!1)=>{const y=f&&i?n:r;return p&&a.add(d),y.has(d)||y.add(d),d},cancel:d=>{r.delete(d),a.delete(d)},process:d=>{if(o=d,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),t&&si.value&&si.value.frameloop[t].push(l),l=0,n.clear(),i=!1,s&&(s=!1,c.process(d))}};return c}const Oo=40;function ai(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=At.reduce((C,P)=>(C[P]=No(s,t?P:void 0),C),{}),{setup:o,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:p,render:f,postRender:g}=a,y=()=>{const C=he.useManualTiming?i.timestamp:performance.now();n=!1,he.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(C-i.timestamp,Oo),1)),i.timestamp=C,i.isProcessing=!0,o.process(i),l.process(i),u.process(i),c.process(i),d.process(i),p.process(i),f.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},b=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:At.reduce((C,P)=>{const T=a[P];return C[P]=(k,E=!1,S=!1)=>(n||b(),T.schedule(k,E,S)),C},{}),cancel:C=>{for(let P=0;P<At.length;P++)a[At[P]].cancel(C)},state:i,steps:a}}const{schedule:M,cancel:ve,state:K,steps:fn}=ai(typeof requestAnimationFrame<"u"?requestAnimationFrame:Q,!0);let Et;function Bo(){Et=void 0}const Z={now:()=>(Et===void 0&&Z.set(K.isProcessing||he.useManualTiming?K.timestamp:performance.now()),Et),set:e=>{Et=e,queueMicrotask(Bo)}},oi=e=>t=>typeof t=="string"&&t.startsWith(e),mn=oi("--"),Fo=oi("var(--"),gn=e=>Fo(e)?qo.test(e.split("/*")[0].trim()):!1,qo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,De={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},st={...De,transform:e=>ue(0,1,e)},jt={...De,default:1},at=e=>Math.round(e*1e5)/1e5,yn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ko(e){return e==null}const zo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,vn=(e,t)=>n=>!!(typeof n=="string"&&zo.test(n)&&n.startsWith(e)||t&&!Ko(n)&&Object.prototype.hasOwnProperty.call(n,t)),li=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,a,o]=r.match(yn);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(a),alpha:o!==void 0?parseFloat(o):1}},$o=e=>ue(0,255,e),bn={...De,transform:e=>Math.round($o(e))},Se={test:vn("rgb","red"),parse:li("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+bn.transform(e)+", "+bn.transform(t)+", "+bn.transform(n)+", "+at(st.transform(r))+")"};function Uo(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const xn={test:vn("#"),parse:Uo,transform:Se.transform},ot=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),be=ot("deg"),oe=ot("%"),A=ot("px"),Go=ot("vh"),Wo=ot("vw"),ci={...oe,parse:e=>oe.parse(e)/100,transform:e=>oe.transform(e*100)},Le={test:vn("hsl","hue"),parse:li("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+oe.transform(at(t))+", "+oe.transform(at(n))+", "+at(st.transform(r))+")"},$={test:e=>Se.test(e)||xn.test(e)||Le.test(e),parse:e=>Se.test(e)?Se.parse(e):Le.test(e)?Le.parse(e):xn.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Se.transform(e):Le.transform(e)},Yo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ho(e){return isNaN(e)&&typeof e=="string"&&(e.match(yn)?.length||0)+(e.match(Yo)?.length||0)>0}const ui="number",di="color",Zo="var",Xo="var(",hi="${}",Jo=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function lt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const o=t.replace(Jo,l=>($.test(l)?(r.color.push(s),i.push(di),n.push($.parse(l))):l.startsWith(Xo)?(r.var.push(s),i.push(Zo),n.push(l)):(r.number.push(s),i.push(ui),n.push(parseFloat(l))),++s,hi)).split(hi);return{values:n,split:o,indexes:r,types:i}}function pi(e){return lt(e).values}function fi(e){const{split:t,types:n}=lt(e),r=t.length;return i=>{let s="";for(let a=0;a<r;a++)if(s+=t[a],i[a]!==void 0){const o=n[a];o===ui?s+=at(i[a]):o===di?s+=$.transform(i[a]):s+=i[a]}return s}}const Qo=e=>typeof e=="number"?0:e;function el(e){const t=pi(e);return fi(e)(t.map(Qo))}const xe={test:Ho,parse:pi,createTransformer:fi,getAnimatableNone:el};function Cn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function tl({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,a=0;if(!t)i=s=a=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;i=Cn(l,o,e+1/3),s=Cn(l,o,e),a=Cn(l,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:r}}function Vt(e,t){return n=>n>0?t:e}const I=(e,t,n)=>e+(t-e)*n,wn=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},nl=[xn,Se,Le],rl=e=>nl.find(t=>t.test(e));function mi(e){const t=rl(e);if(Ie(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Le&&(n=tl(n)),n}const gi=(e,t)=>{const n=mi(e),r=mi(t);if(!n||!r)return Vt(e,t);const i={...n};return s=>(i.red=wn(n.red,r.red,s),i.green=wn(n.green,r.green,s),i.blue=wn(n.blue,r.blue,s),i.alpha=I(n.alpha,r.alpha,s),Se.transform(i))},Tn=new Set(["none","hidden"]);function il(e,t){return Tn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function sl(e,t){return n=>I(e,t,n)}function kn(e){return typeof e=="number"?sl:typeof e=="string"?gn(e)?Vt:$.test(e)?gi:ll:Array.isArray(e)?yi:typeof e=="object"?$.test(e)?gi:al:Vt}function yi(e,t){const n=[...e],r=n.length,i=e.map((s,a)=>kn(s)(s,t[a]));return s=>{for(let a=0;a<r;a++)n[a]=i[a](s);return n}}function al(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=kn(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function ol(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][r[s]],o=e.values[a]??0;n[i]=o,r[s]++}return n}const ll=(e,t)=>{const n=xe.createTransformer(t),r=lt(e),i=lt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Tn.has(e)&&!i.values.length||Tn.has(t)&&!r.values.length?il(e,t):nt(yi(ol(r,i),i.values),n):(Ie(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Vt(e,t))};function vi(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?I(e,t,n):kn(e)(e,t)}const cl=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>M.update(t,n),stop:()=>ve(t),now:()=>K.isProcessing?K.timestamp:Z.now()}},bi=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(s/(i-1))+", ";return`linear(${r.substring(0,r.length-2)})`},Rt=2e4;function Sn(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Rt;)t+=n,r=e.next(t);return t>=Rt?1/0:t}function ul(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Sn(r),Rt);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:ae(i)}}const dl=5;function xi(e,t,n){const r=Math.max(t-dl,0);return Ur(n-e(r),t-r)}const D={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ci=.001;function hl({duration:e=D.duration,bounce:t=D.bounce,velocity:n=D.velocity,mass:r=D.mass}){let i,s;Ie(e<=ie(D.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=ue(D.minDamping,D.maxDamping,a),e=ue(D.minDuration,D.maxDuration,ae(e)),a<1?(i=u=>{const c=u*a,d=c*e,p=c-n,f=Pn(u,a),g=Math.exp(-d);return Ci-p/f*g},s=u=>{const d=u*a*e,p=d*n+n,f=Math.pow(a,2)*Math.pow(u,2)*e,g=Math.exp(-d),y=Pn(Math.pow(u,2),a);return(-i(u)+Ci>0?-1:1)*((p-f)*g)/y}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-.001+c*d},s=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const o=5/e,l=fl(i,s,o);if(e=ie(e),isNaN(l))return{stiffness:D.stiffness,damping:D.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const pl=12;function fl(e,t,n){let r=n;for(let i=1;i<pl;i++)r=r-e(r)/t(r);return r}function Pn(e,t){return e*Math.sqrt(1-t*t)}const ml=["duration","bounce"],gl=["stiffness","damping","mass"];function wi(e,t){return t.some(n=>e[n]!==void 0)}function yl(e){let t={velocity:D.velocity,stiffness:D.stiffness,damping:D.damping,mass:D.mass,isResolvedFromDuration:!1,...e};if(!wi(e,gl)&&wi(e,ml))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*ue(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:D.mass,stiffness:i,damping:s}}else{const n=hl(e);t={...t,...n,mass:D.mass},t.isResolvedFromDuration=!0}return t}function _t(e=D.visualDuration,t=D.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],o={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:d,velocity:p,isResolvedFromDuration:f}=yl({...n,velocity:-ae(n.velocity||0)}),g=p||0,y=u/(2*Math.sqrt(l*c)),b=a-s,v=ae(Math.sqrt(l/c)),w=Math.abs(b)<5;r||(r=w?D.restSpeed.granular:D.restSpeed.default),i||(i=w?D.restDelta.granular:D.restDelta.default);let C;if(y<1){const T=Pn(v,y);C=k=>{const E=Math.exp(-y*v*k);return a-E*((g+y*v*b)/T*Math.sin(T*k)+b*Math.cos(T*k))}}else if(y===1)C=T=>a-Math.exp(-v*T)*(b+(g+v*b)*T);else{const T=v*Math.sqrt(y*y-1);C=k=>{const E=Math.exp(-y*v*k),S=Math.min(T*k,300);return a-E*((g+y*v*b)*Math.sinh(S)+T*b*Math.cosh(S))/T}}const P={calculatedDuration:f&&d||null,next:T=>{const k=C(T);if(f)o.done=T>=d;else{let E=T===0?g:0;y<1&&(E=T===0?ie(g):xi(C,T,k));const S=Math.abs(E)<=r,R=Math.abs(a-k)<=i;o.done=S&&R}return o.value=o.done?a:k,o},toString:()=>{const T=Math.min(Sn(P),Rt),k=bi(E=>P.next(T*E).value,T,30);return T+"ms "+k},toTransition:()=>{}};return P}_t.applyToOptions=e=>{const t=ul(e,100,_t);return e.ease=t.ease,e.duration=ie(t.duration),e.type="keyframes",e};function An({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},f=S=>o!==void 0&&S<o||l!==void 0&&S>l,g=S=>o===void 0?l:l===void 0||Math.abs(o-S)<Math.abs(l-S)?o:l;let y=n*t;const b=d+y,v=a===void 0?b:a(b);v!==b&&(y=v-d);const w=S=>-y*Math.exp(-S/r),C=S=>v+w(S),P=S=>{const R=w(S),_=C(S);p.done=Math.abs(R)<=u,p.value=p.done?v:_};let T,k;const E=S=>{f(p.value)&&(T=S,k=_t({keyframes:[p.value,g(p.value)],velocity:xi(C,S,p.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:S=>{let R=!1;return!k&&T===void 0&&(R=!0,P(S),E(S)),T!==void 0&&S>=T?k.next(S-T):(!R&&P(S),p)}}}function vl(e,t,n){const r=[],i=n||he.mix||vi,s=e.length-1;for(let a=0;a<s;a++){let o=i(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||Q:t;o=nt(l,o)}r.push(o)}return r}function bl(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(de(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=vl(t,r,i),l=o.length,u=c=>{if(a&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const p=rt(e[d],e[d+1],c);return o[d](p)};return n?c=>u(ue(e[0],e[s-1],c)):u}function xl(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=rt(0,t,r);e.push(I(n,1,i))}}function Cl(e){const t=[0];return xl(t,e.length-1),t}function wl(e,t){return e.map(n=>n*t)}function Tl(e,t){return e.map(()=>t||ti).splice(0,e.length-1)}function Ne({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Do(r)?r.map(ii):ii(r),s={done:!1,value:t[0]},a=wl(n&&n.length===t.length?n:Cl(t),e),o=bl(a,t,{ease:Array.isArray(i)?i:Tl(t,i)});return{calculatedDuration:e,next:l=>(s.value=o(l),s.done=l>=e,s)}}const kl=e=>e!==null;function En(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(kl),o=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}const Sl={decay:An,inertia:An,tween:Ne,keyframes:Ne,spring:_t};function Ti(e){typeof e.type=="string"&&(e.type=Sl[e.type])}class jn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Pl=e=>e/100;class Vn extends jn{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=(n=!0)=>{if(n){const{motionValue:r}=this.options;r&&r.updatedAt!==Z.now()&&this.tick(Z.now())}this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ti(t);const{type:n=Ne,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:a=0}=t;let{keyframes:o}=t;const l=n||Ne;process.env.NODE_ENV!=="production"&&l!==Ne&&de(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`),l!==Ne&&typeof o[0]!="number"&&(this.mixKeyframes=nt(Pl,vi(o[0],o[1])),o=[0,100]);const u=l({...t,keyframes:o});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...o].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=Sn(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:p,repeatDelay:f,type:g,onUpdate:y,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let C=this.currentTime,P=r;if(d){const S=Math.min(this.currentTime,i)/o;let R=Math.floor(S),_=S%1;!_&&S>=1&&(_=1),_===1&&R--,R=Math.min(R,d+1),!!(R%2)&&(p==="reverse"?(_=1-_,f&&(_-=f/o)):p==="mirror"&&(P=a)),C=ue(0,1,_)*o}const T=w?{done:!1,value:c[0]}:P.next(C);s&&(T.value=s(T.value));let{done:k}=T;!w&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return E&&g!==An&&(T.value=En(c,this.options,b,this.speed)),y&&y(T.value),E&&this.finish(),T}then(t,n){return this.finished.then(t,n)}get duration(){return ae(this.calculatedDuration)}get time(){return ae(this.currentTime)}set time(t){t=ie(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Z.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ae(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=cl,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Z.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Al(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Pe=e=>e*180/Math.PI,Rn=e=>{const t=Pe(Math.atan2(e[1],e[0]));return _n(t)},El={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Rn,rotateZ:Rn,skewX:e=>Pe(Math.atan(e[1])),skewY:e=>Pe(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},_n=e=>(e=e%360,e<0&&(e+=360),e),ki=Rn,Si=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Pi=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),jl={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Si,scaleY:Pi,scale:e=>(Si(e)+Pi(e))/2,rotateX:e=>_n(Pe(Math.atan2(e[6],e[5]))),rotateY:e=>_n(Pe(Math.atan2(-e[2],e[0]))),rotateZ:ki,rotate:ki,skewX:e=>Pe(Math.atan(e[4])),skewY:e=>Pe(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Mn(e){return e.includes("scale")?1:0}function In(e,t){if(!e||e==="none")return Mn(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=jl,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=El,i=o}if(!i)return Mn(t);const s=r[t],a=i[1].split(",").map(Rl);return typeof s=="function"?s(a):a[s]}const Vl=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return In(n,t)};function Rl(e){return parseFloat(e.trim())}const Oe=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Be=new Set(Oe),Ai=e=>e===De||e===A,_l=new Set(["x","y","z"]),Ml=Oe.filter(e=>!_l.has(e));function Il(e){const t=[];return Ml.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ae={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>In(t,"x"),y:(e,{transform:t})=>In(t,"y")};Ae.translateX=Ae.x,Ae.translateY=Ae.y;const Ee=new Set;let Dn=!1,Ln=!1,Nn=!1;function Ei(){if(Ln){const e=Array.from(Ee).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Il(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,a])=>{r.getValue(s)?.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ln=!1,Dn=!1,Ee.forEach(e=>e.complete(Nn)),Ee.clear()}function ji(){Ee.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ln=!0)})}function Dl(){Nn=!0,ji(),Ei(),Nn=!1}class On{constructor(t,n,r,i,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(Ee.add(this),Dn||(Dn=!0,M.read(ji),M.resolveKeyframes(Ei))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i?.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const o=r.readValue(n,a);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=a),i&&s===void 0&&i.set(t[0])}Al(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ee.delete(this)}cancel(){this.state==="scheduled"&&(Ee.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ll=e=>e.startsWith("--");function Nl(e,t,n){Ll(t)?e.style.setProperty(t,n):e.style[t]=n}const Ol=cn(()=>window.ScrollTimeline!==void 0),Bl={};function Fl(e,t){const n=cn(e);return()=>Bl[t]??n()}const Vi=Fl(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ct=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ri={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ct([0,.65,.55,1]),circOut:ct([.55,0,1,.45]),backIn:ct([.31,.01,.66,-.59]),backOut:ct([.33,1.53,.69,.99])};function _i(e,t){if(e)return typeof e=="function"?Vi()?bi(e,t):"ease-out":ni(e)?ct(e):Array.isArray(e)?e.map(n=>_i(n,t)||Ri.easeOut):Ri[e]}function ql(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=_i(o,i);Array.isArray(d)&&(c.easing=d);const p={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return u&&(p.pseudoElement=u),e.animate(c,p)}function Mi(e){return typeof e=="function"&&"applyToOptions"in e}function Kl({type:e,...t}){return Mi(e)&&Vi()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class zl extends jn{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:o,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,de(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);const u=Kl(t);this.animation=ql(n,r,i,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=En(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(c):Nl(n,r,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return ae(Number(t))}get time(){return ae(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ie(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Ol()?(this.animation.timeline=t,Q):n(this)}}const Ii={anticipate:Jr,backInOut:Xr,circInOut:ei};function $l(e){return e in Ii}function Ul(e){typeof e.ease=="string"&&$l(e.ease)&&(e.ease=Ii[e.ease])}const Di=10;class Gl extends zl{constructor(t){Ul(t),Ti(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new Vn({...a,autoplay:!1}),l=ie(this.finishedTime??this.time);n.setWithVelocity(o.sample(l-Di).value,o.sample(l).value,Di),o.stop()}}const Li=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(xe.test(e)||e==="0")&&!e.startsWith("url("));function Wl(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Yl(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=Li(i,t),o=Li(s,t);return Ie(a===o,`You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!a||!o?!1:Wl(e)||(n==="spring"||Mi(n))&&r}function Bn(e){return zr(e)&&"offsetHeight"in e}const Hl=new Set(["opacity","clipPath","filter","transform"]),Zl=cn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Xl(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:a}=e;if(!Bn(t?.owner?.current))return!1;const{onUpdate:o,transformTemplate:l}=t.owner.getProps();return Zl()&&n&&Hl.has(n)&&(n!=="transform"||!l)&&!o&&!r&&i!=="mirror"&&s!==0&&a!=="inertia"}const Jl=40;class Ql extends jn{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",keyframes:o,name:l,motionValue:u,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Z.now();const p={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:a,name:l,motionValue:u,element:c,...d},f=c?.KeyframeResolver||On;this.keyframeResolver=new f(o,(g,y,b)=>this.onKeyframesResolved(g,y,p,!b),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:a,velocity:o,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=Z.now(),Yl(t,s,a,o)||((he.instantAnimations||!l)&&c?.(En(t,r,n)),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const p={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Jl?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},f=!u&&Xl(p)?new Gl({...p,element:p.motionValue.owner.current}):new Vn(p);f.finished.then(()=>this.notifyFinished()).catch(Q),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Dl()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const ec=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function tc(e){const t=ec.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const nc=4;function Ni(e,t,n=1){de(n<=nc,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=tc(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const a=s.trim();return Kr(a)?parseFloat(a):a}return gn(i)?Ni(i,t,n+1):i}function Fn(e,t){return e?.[t]??e?.default??e}const Oi=new Set(["width","height","top","left","right","bottom",...Oe]),rc={test:e=>e==="auto",parse:e=>e},Bi=e=>t=>t.test(e),Fi=[De,A,oe,be,Wo,Go,rc],qi=e=>Fi.find(Bi(e));function ic(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||$r(e):!0}const sc=new Set(["brightness","contrast","saturate","opacity"]);function ac(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(yn)||[];if(!r)return e;const i=n.replace(r,"");let s=sc.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const oc=/\b([a-z-]*)\(.*?\)/gu,qn={...xe,getAnimatableNone:e=>{const t=e.match(oc);return t?t.map(ac).join(" "):e}},Ki={...De,transform:Math.round},Kn={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,radius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,top:A,right:A,bottom:A,left:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,backgroundPositionX:A,backgroundPositionY:A,...{rotate:be,rotateX:be,rotateY:be,rotateZ:be,scale:jt,scaleX:jt,scaleY:jt,scaleZ:jt,skew:be,skewX:be,skewY:be,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:st,originX:ci,originY:ci,originZ:A},zIndex:Ki,fillOpacity:st,strokeOpacity:st,numOctaves:Ki},lc={...Kn,color:$,backgroundColor:$,outlineColor:$,fill:$,stroke:$,borderColor:$,borderTopColor:$,borderRightColor:$,borderBottomColor:$,borderLeftColor:$,filter:qn,WebkitFilter:qn},zi=e=>lc[e];function $i(e,t){let n=zi(e);return n!==qn&&(n=xe),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const cc=new Set(["auto","none","0"]);function uc(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!cc.has(s)&<(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=$i(n,i)}class dc extends On{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),gn(u))){const c=Ni(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Oi.has(r)||t.length!==2)return;const[i,s]=t,a=qi(i),o=qi(s);if(a!==o)if(Ai(a)&&Ai(o))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else Ae[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||ic(t[i]))&&r.push(i);r.length&&uc(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ae[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=Ae[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([o,l])=>{t.getValue(o).set(l)}),this.resolveNoneKeyframes()}}function hc(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const Ui=30,pc=e=>!isNaN(parseFloat(e));class fc{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=Z.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty();i&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Z.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=pc(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&dn(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new un);const r=this.events[t].add(n);return t==="change"?()=>{r(),M.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Z.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ui)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ui);return Ur(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Fe(e,t){return new fc(e,t)}const Gi=(e,t)=>t&&typeof e=="number"?t.transform(e):e,{schedule:zn}=ai(queueMicrotask,!1),se={x:!1,y:!1};function Wi(){return se.x||se.y}function mc(e){return e==="x"||e==="y"?se[e]?null:(se[e]=!0,()=>{se[e]=!1}):se.x||se.y?null:(se.x=se.y=!0,()=>{se.x=se.y=!1})}function Yi(e,t){const n=hc(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Hi(e){return!(e.pointerType==="touch"||Wi())}function gc(e,t,n={}){const[r,i,s]=Yi(e,n),a=o=>{if(!Hi(o))return;const{target:l}=o,u=t(l,o);if(typeof u!="function"||!l)return;const c=d=>{Hi(d)&&(u(d),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return r.forEach(o=>{o.addEventListener("pointerenter",a,i)}),s}const Zi=(e,t)=>t?e===t?!0:Zi(e,t.parentElement):!1,$n=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,yc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function vc(e){return yc.has(e.tagName)||e.tabIndex!==-1}const Mt=new WeakSet;function Xi(e){return t=>{t.key==="Enter"&&e(t)}}function Un(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const bc=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Xi(()=>{if(Mt.has(n))return;Un(n,"down");const i=Xi(()=>{Un(n,"up")}),s=()=>Un(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Ji(e){return $n(e)&&!Wi()}function xc(e,t,n={}){const[r,i,s]=Yi(e,n),a=o=>{const l=o.currentTarget;if(!Ji(o))return;Mt.add(l);const u=t(l,o),c=(f,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",p),Mt.has(l)&&Mt.delete(l),Ji(f)&&typeof u=="function"&&u(f,{success:g})},d=f=>{c(f,l===window||l===document||n.useGlobalTarget||Zi(l,f.target))},p=f=>{c(f,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",p,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",a,i),Bn(o)&&(o.addEventListener("focus",u=>bc(u,i)),!vc(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),s}function Qi(e){return zr(e)&&"ownerSVGElement"in e}function Cc(e){return Qi(e)&&e.tagName==="svg"}const U=e=>!!(e&&e.getVelocity),wc=[...Fi,$,xe],Tc=e=>wc.find(Bi(e)),Gn=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class kc extends ge.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=Bn(r)&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=i-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Sc({children:e,isPresent:t,anchorX:n}){const r=m.useId(),i=m.useRef(null),s=m.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=m.useContext(Gn);return m.useInsertionEffect(()=>{const{width:o,height:l,top:u,left:c,right:d}=s.current;if(t||!i.current||!o||!l)return;const p=n==="left"?`left: ${c}`:`right: ${d}`;i.current.dataset.motionPopId=r;const f=document.createElement("style");return a&&(f.nonce=a),document.head.appendChild(f),f.sheet&&f.sheet.insertRule(`
|
|
24
24
|
[data-motion-pop-id="${r}"] {
|
|
25
25
|
position: absolute !important;
|
|
26
26
|
width: ${o}px !important;
|
|
@@ -28,7 +28,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
28
28
|
${p}px !important;
|
|
29
29
|
top: ${u}px !important;
|
|
30
30
|
}
|
|
31
|
-
`),()=>{document.head.contains(f)&&document.head.removeChild(f)}},[t]),h.jsx(kc,{isPresent:t,childRef:i,sizeRef:s,children:ge.cloneElement(e,{ref:i})})}const Pc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:a,anchorX:o})=>{const l=sn(Ac),u=m.useId();let c=!0,d=m.useMemo(()=>(c=!1,{id:u,initial:t,isPresent:n,custom:i,onExitComplete:p=>{l.set(p,!0);for(const f of l.values())if(!f)return;r&&r()},register:p=>(l.set(p,!1),()=>l.delete(p))}),[n,l,r]);return s&&c&&(d={...d}),m.useMemo(()=>{l.forEach((p,f)=>l.set(f,!1))},[n]),ge.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),a==="popLayout"&&(e=h.jsx(Sc,{isPresent:n,anchorX:o,children:e})),h.jsx(Pt.Provider,{value:d,children:e})};function Ac(){return new Map}function es(e=!0){const t=m.useContext(Pt);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=m.useId();m.useEffect(()=>{if(e)return i(s)},[e]);const a=m.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,a]:[!0]}const It=e=>e.key||"";function ts(e){const t=[];return m.Children.forEach(e,n=>{m.isValidElement(n)&&t.push(n)}),t}const ns=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:a=!1,anchorX:o="left"})=>{const[l,u]=es(a),c=m.useMemo(()=>ts(e),[e]),d=a&&!l?[]:c.map(It),p=m.useRef(!0),f=m.useRef(c),g=sn(()=>new Map),[y,b]=m.useState(c),[v,w]=m.useState(c);Fr(()=>{p.current=!1,f.current=c;for(let T=0;T<v.length;T++){const k=It(v[T]);d.includes(k)?g.delete(k):g.get(k)!==!0&&g.set(k,!1)}},[v,d.length,d.join("-")]);const C=[];if(c!==y){let T=[...c];for(let k=0;k<v.length;k++){const E=v[k],S=It(E);d.includes(S)||(T.splice(k,0,E),C.push(E))}return s==="wait"&&C.length&&(T=C),w(ts(T)),b(c),null}process.env.NODE_ENV!=="production"&&s==="wait"&&v.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:P}=m.useContext(rn);return h.jsx(h.Fragment,{children:v.map(T=>{const k=It(T),E=a&&!l?!1:c===v||d.includes(k),S=()=>{if(g.has(k))g.set(k,!0);else return;let R=!0;g.forEach(_=>{_||(R=!1)}),R&&(P?.(),w(f.current),a&&u?.(),r&&r())};return h.jsx(Pc,{isPresent:E,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,onExitComplete:E?void 0:S,anchorX:o,children:T},k)})})},rs=m.createContext({strict:!1}),is={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Fe={};for(const e in is)Fe[e]={isEnabled:t=>is[e].some(n=>!!t[n])};function Ec(e){for(const t in e)Fe[t]={...Fe[t],...e[t]}}const jc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Dt(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||jc.has(e)}let ss=e=>!Dt(e);function Vc(e){e&&(ss=t=>t.startsWith("on")?!Dt(t):e(t))}try{Vc(require("@emotion/is-prop-valid").default)}catch{}function Rc(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(ss(i)||n===!0&&Dt(i)||!t&&!Dt(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function _c(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&dn(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Lt=m.createContext({});function Nt(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ut(e){return typeof e=="string"||Array.isArray(e)}const Wn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Yn=["initial",...Wn];function Ot(e){return Nt(e.animate)||Yn.some(t=>ut(e[t]))}function as(e){return!!(Ot(e)||e.variants)}function Mc(e,t){if(Ot(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ut(n)?n:void 0,animate:ut(r)?r:void 0}}return e.inherit!==!1?t:{}}function Ic(e){const{initial:t,animate:n}=Mc(e,m.useContext(Lt));return m.useMemo(()=>({initial:t,animate:n}),[os(t),os(n)])}function os(e){return Array.isArray(e)?e.join(" "):e}const Dc=Symbol.for("motionComponentSymbol");function Ke(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Lc(e,t,n){return m.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ke(n)&&(n.current=r))},[t])}const Hn=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ls="data-"+Hn("framerAppearId"),cs=m.createContext({});function Nc(e,t,n,r,i){const{visualElement:s}=m.useContext(Lt),a=m.useContext(rs),o=m.useContext(Pt),l=m.useContext(Gn).reducedMotion,u=m.useRef(null);r=r||a.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,d=m.useContext(cs);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&Oc(u.current,n,i,d);const p=m.useRef(!1);m.useInsertionEffect(()=>{c&&p.current&&c.update(n,o)});const f=n[ls],g=m.useRef(!!f&&!window.MotionHandoffIsComplete?.(f)&&window.MotionHasOptimisedAnimation?.(f));return Fr(()=>{c&&(p.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),zn.render(c.render),g.current&&c.animationState&&c.animationState.animateChanges())}),m.useEffect(()=>{c&&(!g.current&&c.animationState&&c.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(f)}),g.current=!1))}),c}function Oc(e,t,n,r){const{layoutId:i,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:us(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!a||o&&Ke(o),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}function us(e){if(e)return e.options.allowProjection!==!1?e.projection:us(e.parent)}function Bc({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Ec(e);function s(o,l){let u;const c={...m.useContext(Gn),...o,layoutId:qc(o)},{isStatic:d}=c,p=Ic(o),f=r(o,d);if(!d&&an){Fc(c,e);const g=Kc(c);u=g.MeasureLayout,p.visualElement=Nc(i,f,c,t,g.ProjectionNode)}return h.jsxs(Lt.Provider,{value:p,children:[u&&p.visualElement?h.jsx(u,{visualElement:p.visualElement,...c}):null,n(i,o,Lc(f,p.visualElement,l),f,d,p.visualElement)]})}s.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const a=m.forwardRef(s);return a[Dc]=i,a}function qc({layoutId:e}){const t=m.useContext(rn).id;return t&&e!==void 0?t+"-"+e:e}function Fc(e,t){const n=m.useContext(rs).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Ie(!1,r):de(!1,r)}}function Kc(e){const{drag:t,layout:n}=Fe;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const dt={};function zc(e){for(const t in e)dt[t]=e[t],mn(t)&&(dt[t].isCSSVariable=!0)}function ds(e,{layout:t,layoutId:n}){return Be.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!dt[e]||e==="opacity")}const $c={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Uc=Oe.length;function Gc(e,t,n){let r="",i=!0;for(let s=0;s<Uc;s++){const a=Oe[s],o=e[a];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(a.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||n){const u=Gi(o,Kn[a]);if(!l){i=!1;const c=$c[a]||a;r+=`${c}(${u}) `}n&&(t[a]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Zn(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let a=!1,o=!1;for(const l in t){const u=t[l];if(Be.has(l)){a=!0;continue}else if(mn(l)){i[l]=u;continue}else{const c=Gi(u,Kn[l]);l.startsWith("origin")?(o=!0,s[l]=c):r[l]=c}}if(t.transform||(a||n?r.transform=Gc(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:l="50%",originY:u="50%",originZ:c=0}=s;r.transformOrigin=`${l} ${u} ${c}`}}const Xn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function hs(e,t,n){for(const r in t)!U(t[r])&&!ds(r,n)&&(e[r]=t[r])}function Wc({transformTemplate:e},t){return m.useMemo(()=>{const n=Xn();return Zn(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Yc(e,t){const n=e.style||{},r={};return hs(r,n,e),Object.assign(r,Wc(e,t)),r}function Hc(e,t){const n={},r=Yc(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Zc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Xc={offset:"strokeDashoffset",array:"strokeDasharray"};function Jc(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Zc:Xc;e[s.offset]=A.transform(-r);const a=A.transform(t),o=A.transform(n);e[s.array]=`${a} ${o}`}function ps(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:a=0,...o},l,u,c){if(Zn(e,o,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:p}=e;d.transform&&(p.transform=d.transform,delete d.transform),(p.transform||d.transformOrigin)&&(p.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),p.transform&&(p.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Jc(d,i,s,a,!1)}const fs=()=>({...Xn(),attrs:{}}),ms=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Qc(e,t,n,r){const i=m.useMemo(()=>{const s=fs();return ps(s,t,ms(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};hs(s,e.style,e),i.style={...s,...i.style}}return i}const eu=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Jn(e){return typeof e!="string"||e.includes("-")?!1:!!(eu.indexOf(e)>-1||/[A-Z]/u.test(e))}function tu(e=!1){return(n,r,i,{latestValues:s},a)=>{const l=(Jn(n)?Qc:Hc)(r,s,a,n),u=Rc(r,typeof n=="string",e),c=n!==m.Fragment?{...u,...l,ref:i}:{},{children:d}=r,p=m.useMemo(()=>U(d)?d.get():d,[d]);return m.createElement(n,{...c,children:p})}}function gs(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Qn(e,t,n,r){if(typeof t=="function"){const[i,s]=gs(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=gs(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function Bt(e){return U(e)?e.get():e}function nu({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:ru(n,r,i,e),renderState:t()}}const ys=e=>(t,n)=>{const r=m.useContext(Lt),i=m.useContext(Pt),s=()=>nu(e,t,r,i);return n?s():sn(s)};function ru(e,t,n,r){const i={},s=r(e,{});for(const p in s)i[p]=Bt(s[p]);let{initial:a,animate:o}=e;const l=Ot(e),u=as(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),o===void 0&&(o=t.animate));let c=n?n.initial===!1:!1;c=c||a===!1;const d=c?o:a;if(d&&typeof d!="boolean"&&!Nt(d)){const p=Array.isArray(d)?d:[d];for(let f=0;f<p.length;f++){const g=Qn(e,p[f]);if(g){const{transitionEnd:y,transition:b,...v}=g;for(const w in v){let C=v[w];if(Array.isArray(C)){const P=c?C.length-1:0;C=C[P]}C!==null&&(i[w]=C)}for(const w in y)i[w]=y[w]}}}return i}function er(e,t,n){const{style:r}=e,i={};for(const s in r)(U(r[s])||t.style&&U(t.style[s])||ds(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=r[s]);return i}const iu={useVisualState:ys({scrapeMotionValuesFromProps:er,createRenderState:Xn})};function vs(e,t,n){const r=er(e,t,n);for(const i in e)if(U(e[i])||U(t[i])){const s=Oe.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const su={useVisualState:ys({scrapeMotionValuesFromProps:vs,createRenderState:fs})};function au(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Jn(r)?su:iu,preloadedFeatures:e,useRender:tu(i),createVisualElement:t,Component:r};return Bc(a)}}function ht(e,t,n){const r=e.getProps();return Qn(r,t,n!==void 0?n:r.custom,e)}const tr=e=>Array.isArray(e);function ou(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,qe(n))}function lu(e){return tr(e)?e[e.length-1]||0:e}function cu(e,t){const n=ht(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const a in s){const o=lu(s[a]);ou(e,a,o)}}function uu(e){return!!(U(e)&&e.add)}function nr(e,t){const n=e.getValue("willChange");if(uu(n))return n.add(t);if(!n&&he.WillChange){const r=new he.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function bs(e){return e.props[ls]}const du=e=>e!==null;function hu(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(du),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const pu={type:"spring",stiffness:500,damping:25,restSpeed:10},fu=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),mu={type:"keyframes",duration:.8},gu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},yu=(e,{keyframes:t})=>t.length>2?mu:Be.has(e)?e.startsWith("scale")?fu(t[1]):pu:gu;function vu({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const rr=(e,t,n,r={},i,s)=>a=>{const o=qn(r,e)||{},l=o.delay||r.delay||0;let{elapsed:u=0}=r;u=u-ie(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:p=>{t.set(p),o.onUpdate&&o.onUpdate(p)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:i};vu(o)||Object.assign(c,yu(e,c)),c.duration&&(c.duration=ie(c.duration)),c.repeatDelay&&(c.repeatDelay=ie(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),(he.instantAnimations||he.skipAnimations)&&(d=!0,c.duration=0,c.delay=0),c.allowFlatten=!o.type&&!o.ease,d&&!s&&t.get()!==void 0){const p=hu(c.keyframes,o);if(p!==void 0){M.update(()=>{c.onUpdate(p),c.onComplete()});return}}return o.isSync?new Vn(c):new Ql(c)};function bu({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function xs(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...o}=t;r&&(s=r);const l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const c in o){const d=e.getValue(c,e.latestValues[c]??null),p=o[c];if(p===void 0||u&&bu(u,c))continue;const f={delay:n,...qn(s||{},c)},g=d.get();if(g!==void 0&&!d.isAnimating&&!Array.isArray(p)&&p===g&&!f.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const v=bs(e);if(v){const w=window.MotionHandoffAnimation(v,c,M);w!==null&&(f.startTime=w,y=!0)}}nr(e,c),d.start(rr(c,d,p,e.shouldReduceMotion&&Oi.has(c)?{type:!1}:f,e,y));const b=d.animation;b&&l.push(b)}return a&&Promise.all(l).then(()=>{M.update(()=>{a&&cu(e,a)})}),l}function ir(e,t,n={}){const r=ht(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(xs(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=i;return xu(e,t,u+l,c,d,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[l,u]=o==="beforeChildren"?[s,a]:[a,s];return l().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function xu(e,t,n=0,r=0,i=1,s){const a=[],o=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>o-u*r;return Array.from(e.variantChildren).sort(Cu).forEach((u,c)=>{u.notify("AnimationStart",t),a.push(ir(u,t,{...s,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function Cu(e,t){return e.sortNodePosition(t)}function wu(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>ir(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=ir(e,t,n);else{const i=typeof t=="function"?ht(e,t,n.custom):t;r=Promise.all(xs(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Cs(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Tu=Yn.length;function ws(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ws(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Tu;n++){const r=Yn[n],i=e.props[r];(ut(i)||i===!1)&&(t[r]=i)}return t}const ku=[...Wn].reverse(),Su=Wn.length;function Pu(e){return t=>Promise.all(t.map(({animation:n,options:r})=>wu(e,n,r)))}function Au(e){let t=Pu(e),n=Ts(),r=!0;const i=l=>(u,c)=>{const d=ht(e,c,l==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:p,transitionEnd:f,...g}=d;u={...u,...g,...f}}return u};function s(l){t=l(e)}function a(l){const{props:u}=e,c=ws(e.parent)||{},d=[],p=new Set;let f={},g=1/0;for(let b=0;b<Su;b++){const v=ku[b],w=n[v],C=u[v]!==void 0?u[v]:c[v],P=ut(C),T=v===l?w.isActive:null;T===!1&&(g=b);let k=C===c[v]&&C!==u[v]&&P;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),w.protectedKeys={...f},!w.isActive&&T===null||!C&&!w.prevProp||Nt(C)||typeof C=="boolean")continue;const E=Eu(w.prevProp,C);let S=E||v===l&&w.isActive&&!k&&P||b>g&&P,R=!1;const _=Array.isArray(C)?C:[C];let q=_.reduce(i(v),{});T===!1&&(q={});const{prevResolvedValues:V={}}=w,z={...V,...q},J=F=>{S=!0,p.has(F)&&(R=!0,p.delete(F)),w.needsAnimating[F]=!0;const ne=e.getValue(F);ne&&(ne.liveStyle=!1)};for(const F in z){const ne=q[F],Ge=V[F];if(f.hasOwnProperty(F))continue;let x=!1;tr(ne)&&tr(Ge)?x=!Cs(ne,Ge):x=ne!==Ge,x?ne!=null?J(F):p.add(F):ne!==void 0&&p.has(F)?J(F):w.protectedKeys[F]=!0}w.prevProp=C,w.prevResolvedValues=q,w.isActive&&(f={...f,...q}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(k&&E)||R)&&d.push(..._.map(F=>({animation:F,options:{type:v}})))}if(p.size){const b={};if(typeof u.initial!="boolean"){const v=ht(e,Array.isArray(u.initial)?u.initial[0]:u.initial);v&&v.transition&&(b.transition=v.transition)}p.forEach(v=>{const w=e.getBaseTarget(v),C=e.getValue(v);C&&(C.liveStyle=!0),b[v]=w??null}),d.push({animation:b})}let y=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function o(l,u){if(n[l].isActive===u)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(l,u)),n[l].isActive=u;const c=a(l);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:a,setActive:o,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Ts(),r=!0}}}function Eu(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Cs(t,e):!1}function je(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ts(){return{animate:je(!0),whileInView:je(),whileHover:je(),whileTap:je(),whileDrag:je(),whileFocus:je(),exit:je()}}class Ce{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ju extends Ce{constructor(t){super(t),t.animationState||(t.animationState=Au(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Nt(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Vu=0;class Ru extends Ce{constructor(){super(...arguments),this.id=Vu++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const _u={animation:{Feature:ju},exit:{Feature:Ru}};function pt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ft(e){return{point:{x:e.pageX,y:e.pageY}}}const Mu=e=>t=>$n(t)&&e(t,ft(t));function mt(e,t,n,r){return pt(e,t,Mu(n),r)}function ks({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Iu({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Du(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const Ss=1e-4,Lu=1-Ss,Nu=1+Ss,Ps=.01,Ou=0-Ps,Bu=0+Ps;function H(e){return e.max-e.min}function qu(e,t,n){return Math.abs(e-t)<=n}function As(e,t,n,r=.5){e.origin=r,e.originPoint=I(t.min,t.max,e.origin),e.scale=H(n)/H(t),e.translate=I(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Lu&&e.scale<=Nu||isNaN(e.scale))&&(e.scale=1),(e.translate>=Ou&&e.translate<=Bu||isNaN(e.translate))&&(e.translate=0)}function gt(e,t,n,r){As(e.x,t.x,n.x,r?r.originX:void 0),As(e.y,t.y,n.y,r?r.originY:void 0)}function Es(e,t,n){e.min=n.min+t.min,e.max=e.min+H(t)}function Fu(e,t,n){Es(e.x,t.x,n.x),Es(e.y,t.y,n.y)}function js(e,t,n){e.min=t.min-n.min,e.max=e.min+H(t)}function yt(e,t,n){js(e.x,t.x,n.x),js(e.y,t.y,n.y)}const Vs=()=>({translate:0,scale:1,origin:0,originPoint:0}),ze=()=>({x:Vs(),y:Vs()}),Rs=()=>({min:0,max:0}),N=()=>({x:Rs(),y:Rs()});function ee(e){return[e("x"),e("y")]}function sr(e){return e===void 0||e===1}function ar({scale:e,scaleX:t,scaleY:n}){return!sr(e)||!sr(t)||!sr(n)}function Ve(e){return ar(e)||_s(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function _s(e){return Ms(e.x)||Ms(e.y)}function Ms(e){return e&&e!=="0%"}function qt(e,t,n){const r=e-n,i=t*r;return n+i}function Is(e,t,n,r,i){return i!==void 0&&(e=qt(e,i,r)),qt(e,n,r)+t}function or(e,t=0,n=1,r,i){e.min=Is(e.min,t,n,r,i),e.max=Is(e.max,t,n,r,i)}function Ds(e,{x:t,y:n}){or(e.x,t.translate,t.scale,t.originPoint),or(e.y,n.translate,n.scale,n.originPoint)}const Ls=.999999999999,Ns=1.0000000000001;function Ku(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,a;for(let o=0;o<i;o++){s=n[o],a=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Ue(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Ds(e,a)),r&&Ve(s.latestValues)&&Ue(e,s.latestValues))}t.x<Ns&&t.x>Ls&&(t.x=1),t.y<Ns&&t.y>Ls&&(t.y=1)}function $e(e,t){e.min=e.min+t,e.max=e.max+t}function Os(e,t,n,r,i=.5){const s=I(e.min,e.max,i);or(e,t,n,s,r)}function Ue(e,t){Os(e.x,t.x,t.scaleX,t.scale,t.originX),Os(e.y,t.y,t.scaleY,t.scale,t.originY)}function Bs(e,t){return ks(Du(e.getBoundingClientRect(),t))}function zu(e,t,n){const r=Bs(e,n),{scroll:i}=t;return i&&($e(r.x,i.offset.x),$e(r.y,i.offset.y)),r}const qs=({current:e})=>e?e.ownerDocument.defaultView:null,Fs=(e,t)=>Math.abs(e-t);function $u(e,t){const n=Fs(e.x,t.x),r=Fs(e.y,t.y);return Math.sqrt(n**2+r**2)}class Ks{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=cr(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,f=$u(d.offset,{x:0,y:0})>=3;if(!p&&!f)return;const{point:g}=d,{timestamp:y}=K;this.history.push({...g,timestamp:y});const{onStart:b,onMove:v}=this.handlers;p||(b&&b(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,p)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=lr(p,this.transformPagePoint),M.update(this.updatePoint,!0)},this.handlePointerUp=(d,p)=>{this.end();const{onEnd:f,onSessionEnd:g,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=cr(d.type==="pointercancel"?this.lastMoveEventInfo:lr(p,this.transformPagePoint),this.history);this.startEvent&&f&&f(d,b),g&&g(d,b)},!$n(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=ft(t),o=lr(a,this.transformPagePoint),{point:l}=o,{timestamp:u}=K;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,cr(o,this.history)),this.removeListeners=nt(mt(this.contextWindow,"pointermove",this.handlePointerMove),mt(this.contextWindow,"pointerup",this.handlePointerUp),mt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ve(this.updatePoint)}}function lr(e,t){return t?{point:t(e.point)}:e}function zs(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cr({point:e},t){return{point:e,delta:zs(e,$s(t)),offset:zs(e,Uu(t)),velocity:Gu(t,.1)}}function Uu(e){return e[0]}function $s(e){return e[e.length-1]}function Gu(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=$s(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ie(t)));)n--;if(!r)return{x:0,y:0};const s=ae(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const a={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Wu(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?I(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?I(n,e,r.max):Math.min(e,n)),e}function Us(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Yu(e,{top:t,left:n,bottom:r,right:i}){return{x:Us(e.x,n,i),y:Us(e.y,t,r)}}function Gs(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Hu(e,t){return{x:Gs(e.x,t.x),y:Gs(e.y,t.y)}}function Zu(e,t){let n=.5;const r=H(e),i=H(t);return i>r?n=rt(t.min,t.max-r,e.min):r>i&&(n=rt(e.min,e.max-i,t.min)),ue(0,1,n)}function Xu(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const ur=.35;function Ju(e=ur){return e===!1?e=0:e===!0&&(e=ur),{x:Ws(e,"left","right"),y:Ws(e,"top","bottom")}}function Ws(e,t,n){return{min:Ys(e,t),max:Ys(e,n)}}function Ys(e,t){return typeof e=="number"?e:e[t]||0}const Qu=new WeakMap;class ed{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=N(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ft(c).point)},s=(c,d)=>{const{drag:p,dragPropagation:f,onDragStart:g}=this.getProps();if(p&&!f&&(this.openDragLock&&this.openDragLock(),this.openDragLock=mc(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ee(b=>{let v=this.getAxisMotionValue(b).get()||0;if(oe.test(v)){const{projection:w}=this.visualElement;if(w&&w.layout){const C=w.layout.layoutBox[b];C&&(v=H(C)*(parseFloat(v)/100))}}this.originPoint[b]=v}),g&&M.postRender(()=>g(c,d)),nr(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(c,d)=>{const{dragPropagation:p,dragDirectionLock:f,onDirectionLock:g,onDrag:y}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:b}=d;if(f&&this.currentDirection===null){this.currentDirection=td(b),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,b),this.updateAxis("y",d.point,b),this.visualElement.render(),y&&y(c,d)},o=(c,d)=>this.stop(c,d),l=()=>ee(c=>this.getAnimationState(c)==="paused"&&this.getAxisMotionValue(c).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Ks(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:qs(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&M.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ft(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=Wu(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&Ke(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Yu(r.layoutBox,t):this.constraints=!1,this.elastic=Ju(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ee(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Xu(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ke(t))return!1;const r=t.current;de(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=zu(r,i.root,this.visualElement.getTransformPagePoint());let a=Hu(i.layout.layoutBox,s);if(n){const o=n(Iu(a));this.hasMutatedConstraints=!!o,o&&(a=ks(o))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},u=ee(c=>{if(!Ft(c,n,this.currentDirection))return;let d=l&&l[c]||{};a&&(d={min:0,max:0});const p=i?200:1e6,f=i?40:1e7,g={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return nr(this.visualElement,t),r.start(rr(t,r,0,n,this.visualElement,!1))}stopAnimation(){ee(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ee(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ee(n=>{const{drag:r}=this.getProps();if(!Ft(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:o}=i.layout.layoutBox[n];s.set(t[n]-I(a,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ke(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ee(a=>{const o=this.getAxisMotionValue(a);if(o&&this.constraints!==!1){const l=o.get();i[a]=Zu({min:l,max:l},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ee(a=>{if(!Ft(a,t,null))return;const o=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];o.set(I(l,u,i[a]))})}addListeners(){if(!this.visualElement.current)return;Qu.set(this.visualElement,this);const t=this.visualElement.current,n=mt(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Ke(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),M.read(r);const a=pt(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(ee(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:a=ur,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:a,dragMomentum:o}}}function Ft(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function td(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class nd extends Ce{constructor(t){super(t),this.removeGroupControls=Q,this.removeListeners=Q,this.controls=new ed(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Q}unmount(){this.removeGroupControls(),this.removeListeners()}}const Hs=e=>(t,n)=>{e&&M.postRender(()=>e(t,n))};class rd extends Ce{constructor(){super(...arguments),this.removePointerDownListener=Q}onPointerDown(t){this.session=new Ks(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qs(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Hs(t),onStart:Hs(n),onMove:r,onEnd:(s,a)=>{delete this.session,i&&M.postRender(()=>i(s,a))}}}mount(){this.removePointerDownListener=mt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Kt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Zs(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const vt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(A.test(e))e=parseFloat(e);else return e;const n=Zs(e,t.target.x),r=Zs(e,t.target.y);return`${n}% ${r}%`}},id={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=xe.parse(e);if(i.length>5)return r;const s=xe.createTransformer(e),a=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,l=n.y.scale*t.y;i[0+a]/=o,i[1+a]/=l;const u=I(o,l,.5);return typeof i[2+a]=="number"&&(i[2+a]/=u),typeof i[3+a]=="number"&&(i[3+a]/=u),s(i)}};class sd extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;zc(ad),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Kt.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:a}=r;return a&&(a.isPresent=s,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||M.postRender(()=>{const o=a.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),zn.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Xs(e){const[t,n]=es(),r=m.useContext(rn);return h.jsx(sd,{...e,layoutGroup:r,switchLayoutGroup:m.useContext(cs),isPresent:t,safeToRemove:n})}const ad={borderRadius:{...vt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:vt,borderTopRightRadius:vt,borderBottomLeftRadius:vt,borderBottomRightRadius:vt,boxShadow:id};function od(e,t,n){const r=U(e)?e:qe(e);return r.start(rr("",r,t,n)),r.animation}const ld=(e,t)=>e.depth-t.depth;class cd{constructor(){this.children=[],this.isDirty=!1}add(t){on(this.children,t),this.isDirty=!0}remove(t){ln(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ld),this.isDirty=!1,this.children.forEach(t)}}function ud(e,t){const n=Z.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(ve(r),e(s-t))};return M.setup(r,!0),()=>ve(r)}const Js=["TopLeft","TopRight","BottomLeft","BottomRight"],dd=Js.length,Qs=e=>typeof e=="string"?parseFloat(e):e,ea=e=>typeof e=="number"||A.test(e);function hd(e,t,n,r,i,s){i?(e.opacity=I(0,n.opacity??1,pd(r)),e.opacityExit=I(t.opacity??1,0,fd(r))):s&&(e.opacity=I(t.opacity??1,n.opacity??1,r));for(let a=0;a<dd;a++){const o=`border${Js[a]}Radius`;let l=ta(t,o),u=ta(n,o);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||ea(l)===ea(u)?(e[o]=Math.max(I(Qs(l),Qs(u),r),0),(oe.test(u)||oe.test(l))&&(e[o]+="%")):e[o]=u}(t.rotate||n.rotate)&&(e.rotate=I(t.rotate||0,n.rotate||0,r))}function ta(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const pd=na(0,.5,Qr),fd=na(.5,.95,Q);function na(e,t,n){return r=>r<e?0:r>t?1:n(rt(e,t,r))}function ra(e,t){e.min=t.min,e.max=t.max}function te(e,t){ra(e.x,t.x),ra(e.y,t.y)}function ia(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function sa(e,t,n,r,i){return e-=t,e=qt(e,1/n,r),i!==void 0&&(e=qt(e,1/i,r)),e}function md(e,t=0,n=1,r=.5,i,s=e,a=e){if(oe.test(t)&&(t=parseFloat(t),t=I(a.min,a.max,t/100)-a.min),typeof t!="number")return;let o=I(s.min,s.max,r);e===s&&(o-=t),e.min=sa(e.min,t,n,o,i),e.max=sa(e.max,t,n,o,i)}function aa(e,t,[n,r,i],s,a){md(e,t[n],t[r],t[i],t.scale,s,a)}const gd=["x","scaleX","originX"],yd=["y","scaleY","originY"];function oa(e,t,n,r){aa(e.x,t,gd,n?n.x:void 0,r?r.x:void 0),aa(e.y,t,yd,n?n.y:void 0,r?r.y:void 0)}function la(e){return e.translate===0&&e.scale===1}function ca(e){return la(e.x)&&la(e.y)}function ua(e,t){return e.min===t.min&&e.max===t.max}function vd(e,t){return ua(e.x,t.x)&&ua(e.y,t.y)}function da(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ha(e,t){return da(e.x,t.x)&&da(e.y,t.y)}function pa(e){return H(e.x)/H(e.y)}function fa(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class bd{constructor(){this.members=[]}add(t){on(this.members,t),t.scheduleRender()}remove(t){if(ln(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function xd(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,a=n?.z||0;if((i||s||a)&&(r=`translate3d(${i}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:p,skewX:f,skewY:g}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),p&&(r+=`rotateY(${p}deg) `),f&&(r+=`skewX(${f}deg) `),g&&(r+=`skewY(${g}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(r+=`scale(${o}, ${l})`),r||"none"}const dr=["","X","Y","Z"],Cd={visibility:"hidden"},wd=1e3;let Td=0;function hr(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ma(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=bs(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",M,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ma(r)}function ga({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},o=t?.()){this.id=Td++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Pd),this.nodes.forEach(Rd),this.nodes.forEach(_d),this.nodes.forEach(Ad)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new cd)}addEventListener(a,o){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new un),this.eventHandlers.get(a).add(o)}notifyListeners(a,...o){const l=this.eventHandlers.get(a);l&&l.notify(...o)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=Qi(a)&&!Cc(a),this.instance=a;const{layoutId:o,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||o)&&(this.isLayoutDirty=!0),e){let c;const d=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=ud(d,250),Kt.hasAnimatedSinceResize&&(Kt.hasAnimatedSinceResize=!1,this.nodes.forEach(va))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&u&&(o||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:p,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||Nd,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=u.getProps(),v=!this.targetLayout||!ha(this.targetLayout,f),w=!d&&p;if(this.options.layoutRoot||this.resumeFrom||w||d&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(c,w);const C={...qn(g,"layout"),onPlay:y,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else d||va(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ve(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Md),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ma(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ya);return}this.isUpdating||this.nodes.forEach(jd),this.isUpdating=!1,this.nodes.forEach(Vd),this.nodes.forEach(kd),this.nodes.forEach(Sd),this.clearAllSnapshots();const o=Z.now();K.delta=ue(0,1e3/60,o-K.timestamp),K.timestamp=o,K.isProcessing=!0,fn.update.process(K),fn.preRender.process(K),fn.render.process(K),K.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,zn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ed),this.sharedNodes.forEach(Id)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,M.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){M.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!H(this.snapshot.measuredBox.x)&&!H(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=N(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(o=!1),o&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!ca(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;a&&this.instance&&(o||Ve(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return a&&(l=this.removeTransform(l)),Od(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return N();const o=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Bd))){const{scroll:u}=this.root;u&&($e(o.x,u.offset.x),$e(o.y,u.offset.y))}return o}removeElementScroll(a){const o=N();if(te(o,a),this.scroll?.wasRoot)return o;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:d}=u;u!==this.root&&c&&d.layoutScroll&&(c.wasRoot&&te(o,a),$e(o.x,c.offset.x),$e(o.y,c.offset.y))}return o}applyTransform(a,o=!1){const l=N();te(l,a);for(let u=0;u<this.path.length;u++){const c=this.path[u];!o&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Ue(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Ve(c.latestValues)&&Ue(l,c.latestValues)}return Ve(this.latestValues)&&Ue(l,this.latestValues),l}removeTransform(a){const o=N();te(o,a);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Ve(u.latestValues))continue;ar(u.latestValues)&&u.updateSnapshot();const c=N(),d=u.measurePageBox();te(c,d),oa(o,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Ve(this.latestValues)&&oa(o,this.latestValues),o}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==K.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==o;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:d}=this.options;if(!(!this.layout||!(c||d))){if(this.resolvedRelativeTargetAt=K.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=N(),this.relativeTargetOrigin=N(),yt(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),te(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=N(),this.targetWithTransforms=N()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Fu(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):te(this.target,this.layout.layoutBox),Ds(this.target,this.targetDelta)):te(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=N(),this.relativeTargetOrigin=N(),yt(this.relativeTargetOrigin,this.target,p.target),te(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ar(this.parent.latestValues)||_s(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const a=this.getLead(),o=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===K.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;te(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,p=this.treeScale.y;Ku(this.layoutCorrected,this.treeScale,this.path,o),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=N());const{target:f}=a;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ia(this.prevProjectionDelta.x,this.projectionDelta.x),ia(this.prevProjectionDelta.y,this.projectionDelta.y)),gt(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==p||!fa(this.projectionDelta.x,this.prevProjectionDelta.x)||!fa(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){const o=this.getStack();o&&o.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ze(),this.projectionDelta=ze(),this.projectionDeltaWithTransform=ze()}setAnimationOrigin(a,o=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=ze();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const p=N(),f=l?l.source:void 0,g=this.layout?this.layout.source:void 0,y=f!==g,b=this.getStack(),v=!b||b.members.length<=1,w=!!(y&&!v&&this.options.crossfade===!0&&!this.path.some(Ld));this.animationProgress=0;let C;this.mixTargetDelta=P=>{const T=P/1e3;ba(d.x,a.x,T),ba(d.y,a.y,T),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(yt(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Dd(this.relativeTarget,this.relativeTargetOrigin,p,T),C&&vd(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=N()),te(C,this.relativeTarget)),y&&(this.animationValues=c,hd(c,u,this.latestValues,T,w,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(!1),this.resumingFrom?.currentAnimation?.stop(!1),this.pendingAnimation&&(ve(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=M.update(()=>{Kt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=qe(0)),this.currentAnimation=od(this.motionValue,[0,1e3],{...a,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),a.onUpdate&&a.onUpdate(o)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(wd),this.currentAnimation.stop(!1)),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:o,target:l,layout:u,latestValues:c}=a;if(!(!o||!l||!u)){if(this!==a&&this.layout&&u&&ka(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||N();const d=H(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+d;const p=H(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+p}te(o,l),Ue(o,c),gt(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(a,o){this.sharedNodes.has(a)||this.sharedNodes.set(a,new bd),this.sharedNodes.get(a).add(o);const u=o.options.initialPromotionConfig;o.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(o):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){const{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:o,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let o=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const u={};l.z&&hr("z",a,u,this.animationValues);for(let c=0;c<dr.length;c++)hr(`rotate${dr[c]}`,a,u,this.animationValues),hr(`skew${dr[c]}`,a,u,this.animationValues);a.render();for(const c in u)a.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);a.scheduleRender()}getProjectionStyles(a){if(!this.instance||this.isSVG)return;if(!this.isVisible)return Cd;const o={visibility:""},l=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=Bt(a?.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none",o;const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){const f={};return this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=Bt(a?.pointerEvents)||""),this.hasProjected&&!Ve(this.latestValues)&&(f.transform=l?l({},""):"none",this.hasProjected=!1),f}const c=u.animationValues||u.latestValues;this.applyTransformsToTarget(),o.transform=xd(this.projectionDeltaWithTransform,this.treeScale,c),l&&(o.transform=l(c,o.transform));const{x:d,y:p}=this.projectionDelta;o.transformOrigin=`${d.origin*100}% ${p.origin*100}% 0`,u.animationValues?o.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const f in dt){if(c[f]===void 0)continue;const{correct:g,applyTo:y,isCSSVariable:b}=dt[f],v=o.transform==="none"?c[f]:g(c[f],u);if(y){const w=y.length;for(let C=0;C<w;C++)o[y[C]]=v}else b?this.options.visualElement.renderState.vars[f]=v:o[f]=v}return this.options.layoutId&&(o.pointerEvents=u===this?Bt(a?.pointerEvents)||"":"none"),o}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop(!1)),this.root.nodes.forEach(ya),this.root.sharedNodes.clear()}}}function kd(e){e.updateLayout()}function Sd(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,s=t.source!==e.layout.source;i==="size"?ee(c=>{const d=s?t.measuredBox[c]:t.layoutBox[c],p=H(d);d.min=n[c].min,d.max=d.min+p}):ka(i,t.layoutBox,n)&&ee(c=>{const d=s?t.measuredBox[c]:t.layoutBox[c],p=H(n[c]);d.max=d.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+p)});const a=ze();gt(a,n,t.layoutBox);const o=ze();s?gt(o,e.applyTransform(r,!0),t.measuredBox):gt(o,n,t.layoutBox);const l=!ca(a);let u=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:d,layout:p}=c;if(d&&p){const f=N();yt(f,t.layoutBox,d.layoutBox);const g=N();yt(g,n,p.layoutBox),ha(f,g)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=f,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Pd(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Ad(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ed(e){e.clearSnapshot()}function ya(e){e.clearMeasurements()}function jd(e){e.isLayoutDirty=!1}function Vd(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function va(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Rd(e){e.resolveTargetDelta()}function _d(e){e.calcProjection()}function Md(e){e.resetSkewAndRotation()}function Id(e){e.removeLeadSnapshot()}function ba(e,t,n){e.translate=I(t.translate,0,n),e.scale=I(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function xa(e,t,n,r){e.min=I(t.min,n.min,r),e.max=I(t.max,n.max,r)}function Dd(e,t,n,r){xa(e.x,t.x,n.x,r),xa(e.y,t.y,n.y,r)}function Ld(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Nd={duration:.45,ease:[.4,0,.1,1]},Ca=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),wa=Ca("applewebkit/")&&!Ca("chrome/")?Math.round:Q;function Ta(e){e.min=wa(e.min),e.max=wa(e.max)}function Od(e){Ta(e.x),Ta(e.y)}function ka(e,t,n){return e==="position"||e==="preserve-aspect"&&!qu(pa(t),pa(n),.2)}function Bd(e){return e!==e.root&&e.scroll?.wasRoot}const qd=ga({attachResizeListener:(e,t)=>pt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),pr={current:void 0},Sa=ga({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!pr.current){const e=new qd({});e.mount(window),e.setOptions({layoutScroll:!0}),pr.current=e}return pr.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Fd={pan:{Feature:rd},drag:{Feature:nd,ProjectionNode:Sa,MeasureLayout:Xs}};function Pa(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&M.postRender(()=>s(t,ft(t)))}class Kd extends Ce{mount(){const{current:t}=this.node;t&&(this.unmount=gc(t,(n,r)=>(Pa(this.node,r,"Start"),i=>Pa(this.node,i,"End"))))}unmount(){}}class zd extends Ce{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=nt(pt(this.node.current,"focus",()=>this.onFocus()),pt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Aa(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&M.postRender(()=>s(t,ft(t)))}class $d extends Ce{mount(){const{current:t}=this.node;t&&(this.unmount=xc(t,(n,r)=>(Aa(this.node,r,"Start"),(i,{success:s})=>Aa(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const fr=new WeakMap,mr=new WeakMap,Ud=e=>{const t=fr.get(e.target);t&&t(e)},Gd=e=>{e.forEach(Ud)};function Wd({root:e,...t}){const n=e||document;mr.has(n)||mr.set(n,{});const r=mr.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Gd,{root:e,...t})),r[i]}function Yd(e,t,n){const r=Wd(t);return fr.set(e,n),r.observe(e),()=>{fr.delete(e),r.unobserve(e)}}const Hd={some:0,all:1};class Zd extends Ce{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Hd[i]},o=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),p=u?c:d;p&&p(l)};return Yd(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Xd(t,n))&&this.startObserver()}unmount(){}}function Xd({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Jd={inView:{Feature:Zd},tap:{Feature:$d},focus:{Feature:zd},hover:{Feature:Kd}},Qd={layout:{ProjectionNode:Sa,MeasureLayout:Xs}},gr={current:null},Ea={current:!1};function e1(){if(Ea.current=!0,!!an)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>gr.current=e.matches;e.addListener(t),t()}else gr.current=!1}const t1=new WeakMap;function n1(e,t,n){for(const r in t){const i=t[r],s=n[r];if(U(i))e.addValue(r,i);else if(U(s))e.addValue(r,qe(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,qe(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ja=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class r1{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=On,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=Z.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,M.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=Ot(n),this.isVariantNode=as(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in d){const f=d[p];l[p]!==void 0&&U(f)&&f.set(l[p],!1)}}mount(t){this.current=t,t1.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Ea.current||e1(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:gr.current,process.env.NODE_ENV!=="production"&&dn(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ve(this.notifyUpdate),ve(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Be.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&M.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Fe){const n=Fe[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):N()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<ja.length;r++){const i=ja[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,a=t[s];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=n1(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=qe(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Kr(r)||$r(r))?r=parseFloat(r):!Tc(r)&&xe.test(n)&&(r=$i(t,n)),this.setBaseTarget(t,U(r)?r.get():r)),U(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=Qn(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!U(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new un),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Va extends r1{constructor(){super(...arguments),this.KeyframeResolver=dc}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;U(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ra(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}function i1(e){return window.getComputedStyle(e)}class s1 extends Va{constructor(){super(...arguments),this.type="html",this.renderInstance=Ra}readValueFromInstance(t,n){if(Be.has(n))return this.projection?.isProjecting?Mn(n):Vl(t,n);{const r=i1(t),i=(mn(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Bs(t,n)}build(t,n,r){Zn(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return er(t,n,r)}}const _a=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function a1(e,t,n,r){Ra(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(_a.has(i)?i:Hn(i),t.attrs[i])}class o1 extends Va{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=N}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Be.has(n)){const r=zi(n);return r&&r.default||0}return n=_a.has(n)?n:Hn(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return vs(t,n,r)}build(t,n,r){ps(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){a1(t,n,r,i)}mount(t){this.isSVGTag=ms(t.tagName),super.mount(t)}}const l1=(e,t)=>Jn(e)?new o1(t):new s1(t,{allowProjection:e!==m.Fragment}),c1=au({..._u,...Jd,...Fd,...Qd},l1),bt=_c(c1),zt={initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{height:{duration:.2},opacity:{duration:.2}}},$t={initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{height:{duration:.2},opacity:{duration:.2}}},Ut=({label:e,error:t,labelError:n,endContent:r,styles:i,onFocus:s,onBlur:a,...o})=>{const l=m.useRef(null),[u,c]=m.useState(!1),d=t||n,p=m.useCallback(()=>l.current?.focus(),[]),f=m.useCallback(b=>{c(!0),s?.(b)},[s]),g=m.useCallback(b=>{c(!1),a?.(b)},[a]),y=!d&&u&&(i?.container?.focus||ce.inputFocus);return h.jsxs("div",{children:[e&&h.jsxs("label",{htmlFor:o.id,className:ye(ce.label,i?.label?.className),style:i?.label?.styles,children:[h.jsx("span",{className:ce.label,children:e},e),h.jsx(ns,{mode:"wait",children:n&&h.jsx(bt.span,{initial:$t.initial,animate:$t.animate,exit:$t.exit,transition:$t.transition,className:ce.labelError,children:n},t)})]}),h.jsxs("div",{className:ye(ce.inputContainer,d&&ce.errorInput,y,i?.container?.className),style:i?.container?.styles,onClick:p,children:[h.jsx("input",{...o,ref:l,onFocus:f,onBlur:g,style:i?.field?.styles,className:ye(ce.input,o.className,i?.field?.className)}),r&&h.jsx("div",{className:ce.endContent,children:r})]}),h.jsx(ns,{mode:"wait",children:t&&h.jsx(bt.div,{initial:zt.initial,animate:zt.animate,exit:zt.exit,transition:zt.transition,className:ye(ce.error,i?.error?.className),style:i?.error?.styles,children:t})})]})},u1={width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},Gt=({className:e})=>h.jsx("div",{style:u1,children:h.jsx("svg",{className:e,focusable:"false",fill:"#dc2626",color:"#dc2626",height:"12",viewBox:"0 0 12 12",width:"12",children:h.jsxs("g",{fill:"none",fillRule:"evenodd",transform:"matrix(1 0 0 -1 0 12)",children:[h.jsx("circle",{cx:"6",cy:"3.2",fill:"currentColor",r:"1"}),h.jsxs("g",{stroke:"currentColor",children:[h.jsx("circle",{cx:"6",cy:"6",r:"5.5"}),h.jsx("path",{d:"m6 9.2v-3.2",strokeLinecap:"round",strokeLinejoin:"round"})]})]})})}),d1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},h1={width:"100%",height:"100%"},p1=({className:e})=>h.jsx("div",{style:d1,className:e,children:h.jsxs("svg",{style:h1,focusable:"false",viewBox:"0 0 32 21",role:"img","aria-label":"CVC",children:[h.jsx("title",{children:"CVC"}),h.jsx("g",{fill:"none",fillRule:"evenodd",children:h.jsxs("g",{fill:"#565656",children:[h.jsxs("g",{transform:"translate(0 2)",children:[h.jsx("path",{d:"M21.68 0H2c-.92 0-2 1.06-2 2v15c0 .94 1.08 2 2 2h25c.92 0 2-1.06 2-2V9.47a5.98 5.98 0 0 1-3 1.45V11c0 .66-.36 1-1 1H3c-.64 0-1-.34-1-1v-1c0-.66.36-1 1-1h17.53a5.98 5.98 0 0 1 1.15-9z",opacity:".2"}),h.jsx("path",{d:"M19.34 3H0v3h19.08a6.04 6.04 0 0 1 .26-3z",opacity:".3"})]}),h.jsx("g",{transform:"translate(18)",children:h.jsx("path",{d:"M7 14A7 7 0 1 1 7 0a7 7 0 0 1 0 14zM4.22 4.1h-.79l-1.93.98v1l1.53-.8V9.9h1.2V4.1zm2.3.8c.57 0 .97.32.97.78 0 .5-.47.85-1.15.85h-.3v.85h.36c.72 0 1.21.36 1.21.88 0 .5-.48.84-1.16.84-.5 0-1-.16-1.52-.47v1c.56.24 1.12.37 1.67.37 1.31 0 2.21-.67 2.21-1.64 0-.68-.42-1.23-1.12-1.45.6-.2.99-.73.99-1.33C8.68 4.64 7.85 4 6.65 4a4 4 0 0 0-1.57.34v.98c.48-.27.97-.42 1.44-.42zm4.32 2.18c.73 0 1.24.43 1.24.99 0 .59-.51 1-1.24 1-.44 0-.9-.14-1.37-.43v1.03c.49.22.99.33 1.48.33.26 0 .5-.04.73-.1.52-.85.82-1.83.82-2.88l-.02-.42a2.3 2.3 0 0 0-1.23-.32c-.18 0-.37.01-.57.04v-1.3h1.44a5.62 5.62 0 0 0-.46-.92H9.64v3.15c.4-.1.8-.17 1.2-.17z"})})]})})]})}),f1=({className:e})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:h.jsx("polyline",{points:"15 18 9 12 15 6"})}),m1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},g1={width:"100%",height:"100%"},y1=({className:e})=>h.jsx("div",{style:m1,className:e,children:h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 20",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:g1,children:[h.jsx("rect",{x:"1",y:"1",width:"28",height:"18",rx:"2",ry:"2"}),h.jsx("line",{x1:"1",y1:"8",x2:"27",y2:"8"})]})}),v1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},b1={width:"100%",height:"100%"},x1=({className:e})=>h.jsx("div",{style:v1,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"24px",height:"16px",viewBox:"0 0 24 16",version:"1.1",style:b1,children:h.jsx("g",{id:"319",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:h.jsx("g",{id:"New-Icons",transform:"translate(-80.000000, -280.000000)",fillRule:"nonzero",children:h.jsx("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)",children:h.jsx("g",{id:"Color",transform:"translate(0.000000, 80.000000)",children:h.jsxs("g",{id:"Visa",transform:"translate(40.000000, 0.000000)",children:[h.jsx("rect",{id:"Container",strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF",x:"0.25",y:"0.25",width:"23.5",height:"15.5",rx:"2"}),h.jsx("path",{d:"M2.78773262,5.91443732 C2.26459089,5.62750595 1.6675389,5.39673777 1,5.23659312 L1.0280005,5.1118821 L3.76497922,5.1118821 C4.13596254,5.12488556 4.43699113,5.23650585 4.53494636,5.63071135 L5.12976697,8.46659052 L5.31198338,9.32072617 L6.97796639,5.1118821 L8.77678896,5.1118821 L6.10288111,11.2775284 L4.30396552,11.2775284 L2.78773262,5.91443732 L2.78773262,5.91443732 Z M10.0999752,11.2840738 L8.39882877,11.2840738 L9.46284763,5.1118821 L11.163901,5.1118821 L10.0999752,11.2840738 Z M16.2667821,5.26277458 L16.0354292,6.59558538 L15.881566,6.53004446 C15.5737466,6.40524617 15.1674138,6.28053516 14.6143808,6.29371316 C13.942741,6.29371316 13.6415263,6.56277129 13.6345494,6.82545859 C13.6345494,7.11441463 13.998928,7.3048411 14.5939153,7.58725177 C15.5740257,8.02718756 16.0286384,8.56556562 16.0218476,9.26818871 C16.0080799,10.5486366 14.8460128,11.376058 13.0610509,11.376058 C12.2978746,11.3694253 11.5627918,11.2180965 11.163808,11.0475679 L11.4018587,9.66204513 L11.6258627,9.76066195 C12.1788958,9.99070971 12.5428092,10.0889775 13.221984,10.0889775 C13.7117601,10.0889775 14.2368857,9.89837643 14.2435835,9.48488392 C14.2435835,9.21565125 14.0198586,9.01850486 13.3617074,8.7164581 C12.717789,8.42086943 11.8568435,7.92848346 11.8707973,7.04197926 C11.8780532,5.84042483 13.0610509,5 14.7409877,5 C15.3990458,5 15.9312413,5.13788902 16.2667821,5.26277458 Z M18.5277524,9.0974856 L19.941731,9.0974856 C19.8717762,8.78889347 19.549631,7.31147374 19.549631,7.31147374 L19.4307452,6.77964104 C19.3467437,7.00942698 19.1998574,7.38373457 19.2069273,7.37055657 C19.2069273,7.37055657 18.6678479,8.74290137 18.5277524,9.0974856 Z M20.6276036,5.1118821 L22,11.2839865 L20.4249023,11.2839865 C20.4249023,11.2839865 20.2707601,10.5748181 20.221922,10.3581228 L18.0377903,10.3581228 C17.9746264,10.5221933 17.6807607,11.2839865 17.6807607,11.2839865 L15.8957988,11.2839865 L18.4226343,5.62399144 C18.5977072,5.22341512 18.9059917,5.1118821 19.3117663,5.1118821 L20.6276036,5.1118821 L20.6276036,5.1118821 Z",id:"Shape",fill:"#1434CB"})]})})})})})})}),C1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},w1={width:"100%",height:"100%"},T1=({className:e})=>h.jsx("div",{style:C1,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",viewBox:"0 0 24 16",width:"24",style:w1,children:h.jsxs("g",{fill:"none",fillRule:"evenodd",children:[h.jsx("rect",{fill:"#252525",height:"16",rx:"2",width:"24"}),h.jsx("circle",{cx:"9",cy:"8",fill:"#eb001b",r:"5"}),h.jsx("circle",{cx:"15",cy:"8",fill:"#f79e1b",r:"5"}),h.jsx("path",{d:"m12 3.99963381c1.2144467.91220633 2 2.36454836 2 4.00036619s-.7855533 3.0881599-2 4.0003662c-1.2144467-.9122063-2-2.36454837-2-4.0003662s.7855533-3.08815986 2-4.00036619z",fill:"#ff5f00"})]})})}),k1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},S1={width:"100%",height:"100%"},P1=({className:e})=>h.jsx("div",{style:k1,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"24px",height:"16px",viewBox:"0 0 24 16",version:"1.1",style:S1,children:h.jsx("g",{id:"319",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:h.jsx("g",{id:"New-Icons",transform:"translate(-320.000000, -280.000000)",fillRule:"nonzero",children:h.jsx("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)",children:h.jsx("g",{id:"Color",transform:"translate(0.000000, 80.000000)",children:h.jsxs("g",{id:"Diners-Club",transform:"translate(280.000000, 0.000000)",children:[h.jsx("path",{d:"M21.9972414,15.749927 L21.999381,15.7499362 C22.9544683,15.7581106 23.73806,14.9772525 23.75,14.0041555 L23.7500083,2.00630219 C23.7461702,1.53568921 23.5588633,1.08617106 23.2297297,0.756801782 C22.9014319,0.428268884 22.4589161,0.246148853 21.9972414,0.250070854 L2.00063,0.250061791 C1.54108393,0.246148853 1.09856813,0.428268884 0.77027028,0.756801782 C0.441136651,1.08617106 0.253829819,1.53568921 0.25,2.00426336 L0.249991686,13.9936957 C0.253829819,14.4643086 0.441136651,14.9138268 0.77027028,15.2431961 C1.09856813,15.571729 1.54108393,15.753849 2.00275862,15.749927 L21.9972414,15.749927 Z M21.996203,16.249927 C21.9958359,16.249924 21.9954688,16.249921 21.9951018,16.2499178 L21.9972414,16.249927 L21.996203,16.249927 Z",id:"shape",strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF"}),h.jsx("path",{d:"M10.0021142,2.05179033 L10.0021142,2.03579033 L14.0021142,2.03579033 L14.0021142,2.05179033 C17.1375481,2.28122918 19.5642283,4.89197286 19.5642283,8.03579033 C19.5642283,11.1796078 17.1375481,13.7903515 14.0021142,14.0197903 L14.0021142,14.0357903 L10.0021142,14.0357903 L10.0021142,14.0197903 C6.86668021,13.7903515 4.44,11.1796078 4.44,8.03579033 C4.44,4.89197286 6.86668021,2.28122918 10.0021142,2.05179033 Z",id:"shape",fill:"#0165AC"}),h.jsx("path",{d:"M11.6021142,11.4277903 C13.0374002,10.9175027 13.9961556,9.55908923 13.9961556,8.03579033 C13.9961556,6.51249143 13.0374002,5.15407792 11.6021142,4.64379033 L11.6021142,11.4277903 L11.6021142,11.4277903 Z M9.20211417,4.64379033 C7.76682809,5.15407792 6.80807271,6.51249143 6.80807271,8.03579033 C6.80807271,9.55908923 7.76682809,10.9175027 9.20211417,11.4277903 L9.20211417,4.64379033 L9.20211417,4.64379033 Z M10.4021142,13.2357903 C7.53023347,13.2357903 5.20211417,10.907671 5.20211417,8.03579033 C5.20211417,5.16390963 7.53023347,2.83579033 10.4021142,2.83579033 C13.2739949,2.83579033 15.6021142,5.16390963 15.6021142,8.03579033 C15.6021142,10.907671 13.2739949,13.2357903 10.4021142,13.2357903 Z",id:"shape",fill:"#FFFFFF"})]})})})})})})}),A1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},E1={width:"100%",height:"100%"},j1=({className:e})=>h.jsx("div",{style:A1,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",viewBox:"0 0 23 16",width:"23",style:E1,children:h.jsxs("g",{fill:"none",children:[h.jsx("path",{d:"m.20535714 16h4.51785715c1.0278125 0 2.25892857-1.1946667 2.25892857-2.1333333v-13.8666667h-4.51785715c-1.0278125 0-2.25892857 1.19466667-2.25892857 3.2z",fill:"#047ab1"}),h.jsx("path",{d:"m2.76924107 10.816c-.86733559.0001606-1.73039558-.1147397-2.56388393-.3413333v-1.17333337c.64678874.37770431 1.38610045.59084099 2.14598215.61866667.8696875 0 1.35535714-.576 1.35535714-1.36533333v-3.22133334h2.14598214v3.22133334c0 1.25866666-.70026786 2.26133333-3.0834375 2.26133333z",fill:"#fff"}),h.jsx("path",{d:"m8.11160714 16h4.51785716c1.0278125 0 2.2589286-1.1946667 2.2589286-2.1333333v-13.8666667h-4.5178572c-1.02781249 0-2.25892856 1.19466667-2.25892856 3.2z",fill:"#d42d06"}),h.jsx("path",{d:"m8.11160714 6.08c.65508929-.59733333 1.78455357-.97066667 3.61428576-.88533333.9939285.04266666 2.0330357.32 2.0330357.32v1.184c-.5943231-.3394747-1.2623758-.54734656-1.9539732-.608-1.3892411-.11733334-2.23633933.61866666-2.23633933 1.90933333s.84709823 2.0266667 2.23633933 1.92c.6920185-.06606555 1.3596342-.27744592 1.9539732-.61866667v1.17333337s-1.0391072.288-2.0330357.3306666c-1.82973219.0853334-2.95919647-.288-3.61428576-.8853333z",fill:"#fff"}),h.jsx("path",{d:"m16.0178571 16h4.5178572c1.0278125 0 2.2589286-1.1946667 2.2589286-2.1333333v-13.8666667h-4.5178572c-1.0278125 0-2.2589286 1.19466667-2.2589286 3.2z",fill:"#67b637"}),h.jsx("path",{d:"m21.6651786 9.28c0 .8533333-.7002679 1.3866667-1.6377232 1.3866667h-4.0095983v-5.33333337h3.6481697l.2597768.01066667c.8245089.04266667 1.4344196.50133333 1.4344196 1.29066667 0 .61866666-.4179018 1.152-1.1746428 1.28v.032c.8358035.05333333 1.4795982.55466666 1.4795982 1.33333333zm-2.880134-3.104c-.0486104-.00686658-.0976798-.01043129-.1468303-.01066667h-1.3553572v1.344h1.5021875c.2823661-.064.5195536-.30933333.5195536-.672 0-.36266666-.2371875-.608-.5195536-.66133333zm.1694197 2.176c-.059755-.00886168-.1202559-.01243275-.1807143-.01066667h-1.4908929v1.46133334h1.4908929l.1807143-.02133334c.2823661-.064.5195536-.34133333.5195536-.71466666 0-.37333334-.2258929-.64-.5195536-.71466667z",fill:"#fff"})]})})}),V1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},R1={width:"100%",height:"100%"},_1=({className:e})=>h.jsx("div",{style:V1,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"24px",height:"16px",viewBox:"0 0 24 16",version:"1.1",style:R1,children:h.jsx("g",{id:"319",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:h.jsx("g",{id:"New-Icons",transform:"translate(-280.000000, -280.000000)",fillRule:"nonzero",children:h.jsx("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)",children:h.jsx("g",{id:"Color",transform:"translate(0.000000, 80.000000)",children:h.jsxs("g",{id:"Discover",transform:"translate(240.000000, 0.000000)",children:[h.jsx("path",{d:"M21.9972414,15.749927 L21.999381,15.7499362 C22.9544683,15.7581106 23.73806,14.9772525 23.75,14.0041555 L23.7500083,2.00630219 C23.7461702,1.53568921 23.5588633,1.08617106 23.2297297,0.756801782 C22.9014319,0.428268884 22.4589161,0.246148853 21.9972414,0.250070854 L2.00063,0.250061791 C1.54108393,0.246148853 1.09856813,0.428268884 0.77027028,0.756801782 C0.441136651,1.08617106 0.253829819,1.53568921 0.25,2.00426336 L0.249991686,13.9936957 C0.253829819,14.4643086 0.441136651,14.9138268 0.77027028,15.2431961 C1.09856813,15.571729 1.54108393,15.753849 2.00275862,15.749927 L21.9972414,15.749927 Z M21.996203,16.249927 C21.9958359,16.249924 21.9954688,16.249921 21.9951018,16.2499178 L21.9972414,16.249927 L21.996203,16.249927 Z",id:"shape",strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF"}),h.jsx("path",{d:"M12.6124138,15.9999283 L21.9972414,15.9999283 C22.5240217,16.0043364 23.0309756,15.7992919 23.4065697,15.4299059 C23.7821638,15.06052 23.9956285,14.5570537 24,14.0302731 L24,11.6716524 C20.4561668,13.7059622 16.6127929,15.1667795 12.6124138,15.9999283 L12.6124138,15.9999283 Z",id:"shape",fill:"#F27712"}),h.jsx("path",{d:"M23.1724138,9.29647999 L22.32,9.29647999 L21.36,8.03027309 L21.2689655,8.03027309 L21.2689655,9.29647999 L20.5737931,9.29647999 L20.5737931,6.1516524 L21.6,6.1516524 C22.4027586,6.1516524 22.8662069,6.48268688 22.8662069,7.07854895 C22.8662069,7.56682481 22.5765517,7.88130757 22.0551724,7.98061792 L23.1724138,9.29647999 Z M22.1462069,7.10337654 C22.1462069,6.79716964 21.9144828,6.63992826 21.4841379,6.63992826 L21.2689655,6.63992826 L21.2689655,7.5916524 L21.4675862,7.5916524 C21.9144828,7.5916524 22.1462069,7.42613516 22.1462069,7.10337654 L22.1462069,7.10337654 Z M18.1406897,6.1516524 L20.1103448,6.1516524 L20.1103448,6.68130757 L18.8358621,6.68130757 L18.8358621,7.38475585 L20.0606897,7.38475585 L20.0606897,7.92268688 L18.8358621,7.92268688 L18.8358621,8.77510068 L20.1103448,8.77510068 L20.1103448,9.30475585 L18.1406897,9.30475585 L18.1406897,6.1516524 Z M15.9062069,9.37923861 L14.4,6.14337654 L15.1613793,6.14337654 L16.1131034,8.26199723 L17.0731034,6.14337654 L17.817931,6.14337654 L16.2951724,9.37923861 L15.9227586,9.37923861 L15.9062069,9.37923861 Z M9.60827586,9.37096274 C8.54896552,9.37096274 7.72137931,8.65096274 7.72137931,7.71579033 C7.72137931,6.8054455 8.56551724,6.06889378 9.62482759,6.06889378 C9.92275862,6.06889378 10.1710345,6.12682481 10.4772414,6.25923861 L10.4772414,6.98751447 C10.2453534,6.75969251 9.93335245,6.63192067 9.60827586,6.6316524 C8.9462069,6.6316524 8.44137931,7.1116524 8.44137931,7.71579033 C8.44137931,8.35303171 8.93793103,8.80820412 9.64137931,8.80820412 C9.95586207,8.80820412 10.1958621,8.70889378 10.4772414,8.46061792 L10.4772414,9.18889378 C10.1627586,9.32130757 9.89793103,9.37096274 9.60827586,9.37096274 L9.60827586,9.37096274 Z M7.5062069,8.33647999 C7.5062069,8.94889378 7.00137931,9.37096274 6.27310345,9.37096274 C5.74344828,9.37096274 5.36275862,9.18889378 5.04,8.77510068 L5.49517241,8.38613516 C5.65241379,8.66751447 5.91724138,8.80820412 6.24827586,8.80820412 C6.56275862,8.80820412 6.7862069,8.6178593 6.7862069,8.36958343 C6.7862069,8.22889378 6.72,8.12130757 6.57931034,8.03854895 C6.42504922,7.96369158 6.26441119,7.90275992 6.09931034,7.85647999 C5.44551724,7.64958343 5.22206897,7.42613516 5.22206897,6.98751447 C5.22206897,6.47441102 5.70206897,6.0854455 6.33103448,6.0854455 C6.72827586,6.0854455 7.08413793,6.20958343 7.38206897,6.44130757 L7.01793103,6.85510068 C6.87360928,6.69688076 6.66932728,6.60675635 6.45517241,6.60682481 C6.15724138,6.60682481 5.94206897,6.75579033 5.94206897,6.95441102 C5.94206897,7.11992826 6.0662069,7.21096274 6.48,7.3516524 C7.27448276,7.59992826 7.5062069,7.8316524 7.5062069,8.34475585 L7.5062069,8.33647999 Z M4.08827586,6.1516524 L4.78344828,6.1516524 L4.78344828,9.30475585 L4.08827586,9.30475585 L4.08827586,6.1516524 Z M1.8537931,9.30475585 L0.827586207,9.30475585 L0.827586207,6.1516524 L1.8537931,6.1516524 C2.97931034,6.1516524 3.75724138,6.79716964 3.75724138,7.72406619 C3.75724138,8.19579033 3.52551724,8.64268688 3.12,8.94061792 C2.77241379,9.18889378 2.38344828,9.30475585 1.84551724,9.30475585 L1.8537931,9.30475585 Z M2.66482759,6.9378593 C2.43310345,6.75579033 2.16827586,6.68958343 1.71310345,6.68958343 L1.52275862,6.68958343 L1.52275862,8.77510068 L1.71310345,8.77510068 C2.16,8.77510068 2.44137931,8.69234206 2.66482759,8.52682481 C2.90482759,8.32820412 3.04551724,8.03027309 3.04551724,7.72406619 C3.04551724,7.4178593 2.90482759,7.12820412 2.66482759,6.9378593 Z",id:"shape",fill:"#000000"}),h.jsx("path",{d:"M12.4137931,6.06889378 C11.5034483,6.06889378 10.7586207,6.79716964 10.7586207,7.69923861 C10.7586207,8.65923861 11.4703448,9.37923861 12.4137931,9.37923861 C13.3406897,9.37923861 14.0689655,8.65096274 14.0689655,7.72406619 C14.0689655,6.79716964 13.3489655,6.06889378 12.4137931,6.06889378 Z",id:"shape",fill:"#F27712"})]})})})})})})}),M1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},I1={width:"100%",height:"100%"},D1=({className:e})=>h.jsx("div",{style:M1,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 16",style:I1,children:h.jsxs("g",{fill:"none",fillRule:"evenodd",children:[h.jsx("rect",{fill:"#016fd0",height:"16",rx:"2",width:"24"}),h.jsx("path",{d:"m13.7640663 13.3938564v-5.70139231l10.1475359.00910497v1.57489503l-1.1728619 1.25339231 1.1728619 1.2648839v1.6083094h-1.8726188l-.9951823-1.0981657-.9881105 1.1023204z",fill:"#fffffe"}),h.jsx("path",{d:"m14.4418122 12.7687956v-4.448884h3.7722872v1.02488398h-2.550895v.69569062h2.4900774v1.0078232h-2.4900774v.6833149h2.550895v1.0371713z",fill:"#016fd0"}),h.jsx("path",{d:"m18.1952707 12.7687956 2.087337-2.2270055-2.0874254-2.2217901h1.6156464l1.2754917 1.41003315 1.2791161-1.41003315h1.5461657v.03500552l-2.0428729 2.18678458 2.0428729 2.1638895v.063116h-1.5617237l-1.2981216-1.4241768-1.2847735 1.4241768z",fill:"#016fd0"}),h.jsx("path",{d:"m14.2373481 2.6319558h2.4460552l.8591381 1.95085083v-1.95085083h3.0198453l.5207514 1.46156906.5225194-1.46156906h2.3059447v5.70139227h-12.1865193z",fill:"#fffffe"}),h.jsxs("g",{fill:"#016fd0",children:[h.jsx("path",{d:"m14.7004641 3.25135912-1.9740111 4.44517127h1.3539006l.3724199-.89016575h2.0179447l.3721547.89016575h1.3875801l-1.96579-4.44517127zm.1696353 2.55743646.592-1.41507182.5915581 1.41507182z"}),h.jsx("path",{d:"m18.2119779 7.69573481v-4.44508288l1.903116.00654144.9792707 2.73272928.9856354-2.73927072h1.8316022v4.44508288l-1.1786077.01043094v-3.05334807l-1.1125746 3.04291713h-1.0758011l-1.1356464-3.05334807v3.05334807z"})]})]})})}),L1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},N1={width:"100%",height:"100%"},O1=({className:e})=>h.jsx("div",{style:L1,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",viewBox:"0 0 24 16",width:"24",style:N1,children:h.jsxs("g",{fill:"none",children:[h.jsx("path",{d:"m4.54588254.00006676h5.79377466c.8087588 0 1.3117793.72566459 1.1231113 1.61890981l-2.69741608 12.74856503c-.19036262.8901361-1.00010994 1.6164225-1.80943362 1.6164225h-5.79320976c-.80762905 0-1.31177937-.7262864-1.12311135-1.6164225l2.69854581-12.74856503c.18866803-.89324522.9979917-1.61890981 1.80773904-1.61890981",fill:"#dd2423"}),h.jsx("path",{d:"m9.85756516.00006676h6.66269264c.8086174 0 .4439911.72566459.2537697 1.61890981l-2.6969924 12.74856503c-.1892329.8901361-.1302036 1.6164225-.9405158 1.6164225h-6.66269248c-.81031221 0-1.31177939-.7262864-1.12141672-1.6164225l2.69685116-12.74856503c.19149238-.89324522.99912144-1.61890981 1.8083039-1.61890981",fill:"#16315e"}),h.jsx("path",{d:"m16.2559813.00006676h5.7937745c.8098886 0 1.3129092.72566459 1.1226878 1.61890981l-2.6969924 12.74856503c-.1903626.8901361-1.0006749 1.6164225-1.8104222 1.6164225h-5.7910915c-.8103122 0-1.3129091-.7262864-1.1231113-1.6164225l2.697416-12.74856503c.1886681-.89324522.9974268-1.61890981 1.8077391-1.61890981",fill:"#036862"}),h.jsx("path",{d:"m6.05901135 4.08561434c-.59580116.00668457-.77175951 0-.8279645-.01461278-.02160646.11301588-.42365577 2.15460824-.42478553 2.15631824-.08656699.4130443-.14955043.7074763-.36349659.89759795-.12144798.1105286-.26323144.1638497-.42760986.1638497-.26421996 0-.41814822-.1444178-.44399122-.41832975l-.00494264-.09405035s.08049458-.55326485.08049458-.55637395c0 0 .42196112-1.86048711.49751306-2.10641713.00395412-.01399096.00508387-.02129736.00607239-.02798193-.82132725.00792821-.9669236 0-.97695012-.01461278-.00550753.02005371-.025843.13540142-.025843.13540142l-.43085788 2.09693437-.03699927.1778407-.07159782.5817131c0 .1725552.03078565.31339755.09207452.4324762.19629382.37760055.75622549.4341862 1.07297875.4341862.40812169 0 .79096525-.09544945 1.04967767-.26971465.44907509-.2921002.56656897-.74867195.67135315-1.15440985l.04857917-.20815445s.43467082-1.93230737.5085281-2.18367833c.00282441-.01399096.00395413-.02129736.00776704-.02798193zm1.47893982 1.55881086c-.10478422 0-.29627659.0279819-.46828081.12078865-.0624186.0352883-.12144796.07601755-.18372539.11659135l.056205-.22338905-.03078563-.03762015c-.36476761.08130305-.44639193.0921849-.78333945.14441785l-.02824374.0206755c-.03911752.3570805-.07385733.6255515-.21888878 1.32743145-.05521646.25867735-.11255121.519842-.17002718.7778975l.01553403.03280105c.34527946-.0200537.45006363-.0200537.75015309-.0146128l.02428961-.0290701c.03812903-.21499445.04307165-.2653619.12752039-.70079175.03968242-.20644445.1224365-.66006255.16324868-.8215804.07498704-.038242.14898558-.07586215.21959486-.07586215.16819135 0 .14771465.1615179.14121858.22587635-.00720213.1080413-.06849101.4609245-.13133325.76390655l-.04194194.19556255c-.02923223.14441785-.06128888.2847938-.09052111.427968l.01270966.02860375c.34033679-.0200537.44413246-.0200537.73476028-.0146128l.0341749-.0290701c.0525333-.3357831.06792611-.42563615.16113038-.9145426l.04688457-.22463265c.09108601-.43962715.13684082-.6625498.06792616-.8441214-.07286879-.2034908-.24769738-.2526146-.40826291-.2526146zm1.65214439.4602871c-.18090101.038242-.29627659.0637366-.41094606.08021485-.11368097.02005375-.22453757.038242-.39936616.06498025l-.01383941.0138355-.01270966.01103735c-.01821719.14332965-.0309269.26722735-.05507525.41288885-.02047669.150636-.05196844.3217921-.10323077.56772215-.03968243.18825615-.06015913.25385825-.08275412.32008215-.0220301.06622385-.04631967.1305823-.09094476.31572935l.01045019.0171001.00875554.01570095c.1633899-.00855005.27029237-.0146128.38016043-.01570095.10972684-.00435275.22340776 0 .39936611.00108815l.01539286-.0138355.01652257-.0152346c.02541932-.1669588.02923224-.21188535.04476626-.29334385.01539282-.0873658.04194194-.20830985.10704369-.53134565.03078568-.1517242.06510179-.30298205.09701718-.4578154.03318641-.1542115.06792612-.30609115.10097127-.45781535l-.00494263-.0183437zm.00385525-.620608c-.1643784-.10679765-.45288796-.07290845-.64706354.0746185-.19361063.14457325-.21564072.34977405-.05182718.4579708.16155403.10384405.45119334.0729085.64367421-.0758621.19318708-.14768235.21733543-.3510177.05521651-.4567272zm.99410809 2.473369c.3325698 0 .6734715-.1008904.9300657-.400297.1974235-.2428209.2879446-.60409865.3192952-.7528692.1021011-.4931037.0225949-.7233328-.0772466-.8635533-.1516687-.21375085-.4197016-.28230655-.697761-.28230655-.1672028 0-.5654392.01818825-.87654364.33391765-.22340786.22774175-.32663863.5367866-.38891601.83308405-.06284224.3018939-.13514621.84536505.31887154 1.0476122.14008884.0662239.34203141.08441215.47223481.08441215zm-.0259841-1.10948335c.0766817-.3734032.1672028-.6868008.3982364-.6868008.1810422 0 .1941755.23318275.1136809.6078296-.0144042.0831685-.0804945.3923688-.1698859.5240393-.0624186.09715945-.1362759.15607695-.2179003.15607695-.0242896 0-.1687562 0-.1710157-.23613635-.0011297-.11659135.0204767-.23567.0468846-.3650087zm2.1066988 1.06146325.0259841-.0290701c.0368581-.21499445.0429305-.2655174.1245549-.70079175.0408121-.20644445.1252608-.66006255.1649433-.82158045.0751282-.0383974.1478558-.07601755.2207245-.07601755.1670616 0 .1467262.1615179.140089.2258763-.0060725.1081968-.0673613.4609245-.1313334.76390655l-.0396824.1955626c-.030362.14457325-.0634071.2847938-.0926394.42812345l.0127097.02860375c.3414665-.02005375.441308-.02005375.7336305-.0146128l.0353047-.0290701c.0512623-.33593855.0651017-.42579165.1611304-.9145426l.0457548-.2247881c.0915096-.43962715.1378292-.66239435.0700444-.84396595-.0749871-.2034908-.2509454-.2526146-.4092515-.2526146-.1049254 0-.2974063.02782645-.468422.12078865-.0611476.0352883-.1224365.0758621-.1825956.11659135l.0523921-.22338905-.0281025-.0377756c-.3646263.0814585-.4479453.09234035-.7844692.1445733l-.025843.0206755c-.0408122.35708045-.0739986.62539605-.21903 1.32743145-.0552164.25867735-.1125512.51984195-.1698859.7778975l.0153928.03280105c.3458442-.02005375.4490751-.02005375.7485997-.0146128zm2.5088186.01453505c.0214652-.1153477.1489856-.7990394.1501153-.7990394 0 0 .1085971-.50165375.1152345-.519842 0 0 .0341748-.0522329.0683497-.07290845h.0502738c.4743532 0 1.0099953 0 1.4298381-.3399804.2856852-.2331827.4809905-.57751585.5681223-.99600105.022595-.1026004.0392588-.22463269.0392588-.34666496 0-.16027425-.0292322-.3188385-.1136809-.44273624-.2140874-.32972035-.6404262-.3357831-1.132573-.33827039-.0015534 0-.2426136.00248729-.2426136.00248729-.629976.00855003-.8826161.00606275-.9864117-.00792821-.0087556.05052291-.0252782.14037599-.0252782.14037599s-.2256673 1.15130077-.2256673 1.15316622c0 0-.5400198 2.4477966-.5654392 2.5631443.5500464-.00730635.7755725-.00730635.8704714.0041973zm.4181482-2.0451678s.2399304-1.14896892.2388007-1.14461618l.0077669-.05891749.0033893-.04492654.0958874.01088185s.4948299.046792.5064099.04803565c.1953052.0831685.2757998.29754113.2195948.57736036-.0512623.2557237-.2019425.4707182-.3955532.5745622-.1594358.0879876-.3547411.095294-.5559775.095294h-.1302035zm1.4938667.99045135c-.0634072.2975411-.136276.8410123.3154822 1.0347094.1440429.0674675.2731167.0875212.4043088.08021485.1385355-.00823915.2669031-.08472305.3858092-.1947853-.0107326.04523745-.0214652.0904749-.0321978.1358678l.0204766.0290701c.324944-.01507915.4257741-.01507915.7778319-.0121255l.0319154-.0267383c.0514036-.332674.0998416-.65570975.2334344-1.2921431.0651017-.30484755.1300622-.6067414.1968587-.9103453l-.0104501-.03342285c-.3634967.0741521-.4606551.09000855-.8103124.1445733l-.026549.0237846c-.0035305.0309356-.0072021.0606275-.0105914.09031945-.0543692-.0966931-.1331691-.17923975-.2547583-.2306954-.1554817-.0673121-.5206729.01943185-.8346018.33407305-.2205834.2246327-.3264973.53243385-.3866564.8276432zm.7634275.01818825c.0778115-.3667187.1672028-.67700715.3988014-.67700715.1464436 0 .2235489.14877055.2078737.40247335-.0124272.06327025-.025843.1299605-.0418008.20535625-.0231597.10897405-.0482967.21701535-.0727275.32521215-.0248545.07399665-.0538043.143796-.0855784.1902771-.0595943.09296215-.2013777.150636-.2830021.150636-.0231599 0-.1660731 0-.1710157-.23193905-.0011298-.11550315.0204767-.23442635.0474494-.36500865zm3.9866711-1.21085565-.0281024-.0352883c-.3596838.08021485-.4247856.09296215-.755237.142086l-.0242897.02673825c-.0011296.00435275-.0021182.01103735-.0038128.0171001l-.0011298-.00606275c-.2460027.6247742-.2388006.4899946-.4390485.98185465-.0011298-.02238555-.0011298-.0363765-.0022595-.06016115l-.0501327-1.0662668-.0314917-.0352883c-.3767711.08021485-.3856679.09296215-.7336305.142086l-.0271139.02673825c-.003813.01274735-.003813.0267383-.0060724.0419729l.0022594.00544095c.0434954.2446864.0330452.19012165.0766818.5762722.0203354.1894998.0474494.3800878.0677848.5672558.0343162.3132421.0535219.4674536.0954638.94547815-.2349878.4268798-.2906279.5883977-.51686.9630446l.0015534.0037309-.1592946.27733195c-.0182171.0292256-.0347397.0492793-.0578996.05782935-.0254193.0138355-.0584644.01632275-.1043605.01632275h-.0882616l-.131192.4803564.4500635.00855005c.26422-.00124365.4302931-.1372669.5196844-.32008215l.283002-.53383295h-.004519l.0297972-.03762015c.1903626-.4511308 1.6384179-3.1855867 1.6384179-3.1855867zm-4.7501128 6.3087581h-.1909276l.7066579-2.57293795h.2344228l.0744221-.265051.0072022.29474295c-.0087556.1821934.121448.3437113.4634794.31697305h.3955532l.1361347-.49543555h-.1488443c-.0855785 0-.1252609-.02378465-.1203182-.0747739l-.0072022-.299873h-.7325008v.00155455c-.2368235.00544095-.9440462.0250283-1.0872418.0670012-.1732752.0491238-.3558709.1936971-.3558709.1936971l.071739-.26536195h-.6851925l-.1427719.52652655-.7161194 2.61226815h-.1389591l-.136276.4918601h1.3647364l-.0457548.1640051h.6724828l.0446251-.1640051h.1886681zm-.5599316-2.0501423c-.1097268.03342285-.313929.1347796-.313929.1347796l.1816071-.65757525h.5443977l-.1313333.47911275s-.1681914.01088185-.2807425.0436829zm.0104502.9394154s-.1710158.0236292-.283567.0516111c-.1108566.0369984-.3187303.1535897-.3187303.1535897l.1875382-.6843135h.5472221zm-.3050322 1.1167897h-.5460922l.158306-.5775158h.5443976zm1.315112-1.5959024h.7871525l-.1131162.4032506h-.7976024l-.1197535.4408708h.6979023l-.5284398.8190931c-.0369994.0601612-.0701858.0814585-.1070437.0984031-.0369994.0206755-.0855785.0449265-.1417835.0449265h-.1936107l-.133028.4828437h.5064098c.2632315 0 .4187131-.131826.5335239-.3048476l.3623669-.5459584.0778115.5543531c.0165225.1038439.0843074.1646269.1302034.1882561.0506975.0279819.1030897.0760176.1770882.0831685.0793648.0037309.1366995.0066846.1748285.0066846h.2488272l.1494092-.5403621h-.0981469c-.0563463 0-.1533633-.0104155-.1698859-.0298474-.0165226-.0236292-.0165226-.0600057-.0254194-.1153477l-.0789412-.5555967h-.3232494l.1417836-.1857688h.796049l.1224365-.4408708h-.7370197l.1148107-.4032506h.7347603l.1362759-.497301h-2.1905826zm-6.6483163 1.7081877.1837253-.6728098h.7550958l.1379705-.5004101h-.7558018l.1153756-.4141325h.7385731l.1368408-.4845537h-1.84798632l-.13401641.4845537h.41984283l-.1119863.4141325h-.42097264l-.13952389.5089601h.41970155l-.24487301.8901361c-.03304514.117835.01553408.1627615.04631971.2174817.03149175.0533211.06340718.0886094.13514621.1086631.07399857.0181883.12469597.0290701.19361067.0290701h.8512656l.1516688-.554353-.3773361.0570521c-.0728688 0-.2746701-.0096382-.25264-.0837903zm.0866093-3.22084395-.1913512.38070965c-.0409534.08316845-.0778114.1347796-.1109978.1585642-.0292322.02005375-.0871318.0284483-.1710157.0284483h-.0998415l-.13345158.48704095h.33158128c.1594357 0 .2818722-.0643584.3403368-.09653765.0628422-.0369983.0793647-.0158564.1279439-.0674675l.1119864-.1067977h1.0354146l.1374057-.50709465h-.7579202l.1323219-.2768656zm1.5286064 3.23062205c-.0176524-.027982-.0049427-.0772612.0220301-.1798616l.283002-1.0311339h1.0067472c.1467262-.0023318.25264-.0041973.3215547-.0096382.0739985-.0085501.1544932-.0376202.2421899-.0898531.0905212-.0547202.1368408-.1123941.1759583-.178618.0436366-.0660684.113681-.2106417.1738401-.4335643l.3557296-1.3048905-1.044735.0066846s-.3216959.0522329-.4633381.10990675c-.1429132.06435845-.3471154.2440646-.3471154.2440646l.0943341-.3577023h-.645369l-.9035164 3.29860265c-.0320566.1280949-.0535218.2210571-.0584645.2768655-.0016946.0601612.0689147.1197005.1146695.164627.0540867.0449266.1340164.0376202.2106981.0449266.0806358.0066846.1953053.0108818.3536113.0108818h.4959597l.1522336-.5658567-.4439912.0461702c-.0474494 0-.0817655-.027982-.0960286-.0516111zm.4876277-1.9074346h1.0574447l-.06722.2319391c-.0094616.0054409-.0320566-.0115037-.1396652.0024873h-.9156612zm.2118279-.77789745h1.0663414l-.0766816.27935285s-.5025969-.0054409-.5830915.01088185c-.3541763.06746755-.5610614.27577745-.5610614.27577745zm.802065 1.78653705c-.0087555.0346665-.0225949.0558084-.0419418.0716648-.0214654.0152346-.0562051.0206755-.1080323.0206755h-.1506803l.0088968-.2824619h-.626728l-.0254193 1.380908c-.0009886.0996467.007767.1573206.0739985.2034908.0662315.0576738.2702923.0649802.5449624.0649802h.392729l.1417834-.5168883-.3418902.0206755-.1136809.0073064c-.0155341-.0073064-.030362-.013991-.0468846-.0321792-.0144043-.015701-.0386939-.0060627-.0347398-.1057095l.0026831-.3539713.3585541-.0163228c.1936107 0 .2763648-.0693331.346974-.1354015.0673612-.0632702.0893913-.1360232.1148107-.2344264l.0601592-.3133975h-.4927118z",fill:"#fefefe"})]})})}),B1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},q1={width:"100%",height:"100%"},F1=({className:e})=>h.jsx("div",{style:B1,className:e,children:h.jsxs("svg",{width:"30",height:"20",viewBox:"0 0 30 20",xmlns:"http://www.w3.org/2000/svg",fill:"rgb(223, 27, 65)",role:"presentation",style:q1,children:[h.jsxs("g",{clipPath:"url(#clip0_184_11820)",children:[h.jsx("path",{opacity:"0.74",d:"M26.2061 0.00488281C28.3194 0.112115 30 1.85996 30 4V13.335L28.5 10.623V8H27.0488L25.9736 6.05664C25.744 5.64161 25.4595 5.2894 25.1367 5H28.5V4C28.5 2.61929 27.3807 1.5 26 1.5H4C2.61929 1.5 1.5 2.61929 1.5 4V5H19.8643C19.608 5.22972 19.3755 5.49872 19.1758 5.80762L19.0264 6.05664L17.9512 8H1.5V16C1.5 17.3807 2.61929 18.5 4 18.5H13.0371C13.1062 19.0302 13.2775 19.5408 13.5391 20H4L3.79395 19.9951C1.7488 19.8913 0.108652 18.2512 0.00488281 16.2061L0 16V4C0 1.85996 1.68056 0.112115 3.79395 0.00488281L4 0H26L26.2061 0.00488281Z"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7762 7.0252C21.5325 5.65827 23.4673 5.65826 24.2235 7.0252L29.743 17.0027C30.4843 18.3434 29.5319 19.9995 28.0194 19.9998H16.9803C15.4679 19.9995 14.5155 18.3434 15.2567 17.0027L20.7762 7.0252ZM22.4999 15.4998C21.8095 15.4998 21.2499 16.0595 21.2499 16.7498C21.2499 17.4402 21.8095 17.9998 22.4999 17.9998C23.1902 17.9998 23.7499 17.4402 23.7499 16.7498C23.7499 16.0595 23.1902 15.4998 22.4999 15.4998ZM22.4999 8.99981C21.9476 8.99981 21.4999 9.44753 21.4999 9.99981V12.9998C21.4999 13.5521 21.9476 13.9998 22.4999 13.9998C23.0522 13.9998 23.4999 13.5521 23.4999 12.9998V9.99981C23.4999 9.44753 23.0522 8.99981 22.4999 8.99981Z"})]}),h.jsx("defs",{children:h.jsx("clipPath",{id:"clip0_184_11820",children:h.jsx("rect",{width:"30",height:"20"})})})]})}),K1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},z1={width:"100%",height:"100%"},$1=({className:e})=>h.jsx("div",{style:K1,className:e,children:h.jsxs("svg",{viewBox:"0 0 100 66",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:z1,children:[h.jsx("rect",{x:"2",y:"2",width:"96",height:"62",rx:"5",stroke:"#D3D3D3",strokeWidth:"4"}),h.jsx("ellipse",{cx:"38",cy:"33",rx:"22",ry:"22",fill:"#F00"}),h.jsx("ellipse",{cx:"62",cy:"33",rx:"22",ry:"22",fill:"#1E88E5"})]})}),U1={cvcIcon:"_cvcIcon_1yx89_1"},Ma=m.createContext(null),xt=()=>m.useContext(Ma),G1=({children:e,styles:t})=>h.jsx(Ma.Provider,{value:t||null,children:e});var B=(e=>(e.Invalid="invalid",e.Empty="empty",e.Incomplete="incomplete",e.Unsupported="unsupported",e.Expired="expired",e))(B||{}),G=(e=>(e.Visa="visa",e.Mastercard="mastercard",e.AmericanExpress="american-express",e.Discover="discover",e.JCB="jcb",e.DinersClub="diners-club",e.UnionPay="unionpay",e.Maestro="maestro",e))(G||{});const Wt=[{name:"Visa",type:"visa",pattern:/^4/,minLength:16,maxLength:16},{name:"MasterCard",type:"mastercard",pattern:/^5[1-5]/,minLength:16,maxLength:16},{name:"American Express",type:"american-express",pattern:/^3[47]/,minLength:15,maxLength:15},{name:"Discover",type:"discover",pattern:/^6(?:011|5[0-9]{2})/,minLength:16,maxLength:16},{name:"JCB",type:"jcb",pattern:/^(?:2131|1800|35\d{2})/,minLength:15,maxLength:16},{name:"Diners Club",type:"diners-club",pattern:/^3(?:0[0-5]|[68][0-9])/,minLength:14,maxLength:16},{name:"Union Pay",type:"unionpay",pattern:/^62/,minLength:16,maxLength:19},{name:"Maestro",type:"maestro",pattern:/^(50\d{2,16}|5[6-9]\d{2,16}|6\d{3,15}|0604\d{0,13}|6390\d{0,13}|5018\d{0,15}|5020\d{0,15}|5038\d{0,15}|5893\d{0,15}|6304\d{0,15}|6759\d{0,15}|6761\d{0,15}|6762\d{0,15}|6763\d{0,15})$/,minLength:12,maxLength:19}],Ia=e=>Wt.find(t=>t.pattern.test(e))||null,W1=e=>Wt.filter(t=>t.pattern.test(e)),Y1=e=>{let t=0,n=!1;for(let r=e.length-1;r>=0;r--){let i=parseInt(e[r]);n&&(i*=2,i>9&&(i-=9)),t+=i,n=!n}return t%10===0},Da=(e,t)=>{const n=e.replace(/\D/g,"");if(!n)return{isValid:!1,cardType:null,error:B.Empty};if(!/^\d+$/.test(n))return{isValid:!1,cardType:null,error:B.Invalid};const r=Ia(n);if(r){if(n.length<r.minLength||n.length>r.maxLength)return{isValid:!1,cardType:r.name,error:B.Incomplete}}else if(n.length<16)return{isValid:!1,cardType:null,error:B.Incomplete};return r&&t&&!t.includes(r.type)?{isValid:!1,cardType:r.name,error:"unsupported"}:Y1(n)?{isValid:!0,cardType:r?.name||null,error:null}:{isValid:!1,cardType:r?.name||null,error:B.Invalid}},La=(e,t="")=>{const n=Me.getTypeInfo(t),r=!e,i=e.length<(n?.code.size||3);return!r&&!i?null:r?B.Empty:B.Incomplete},H1=({onChange:e,value:t,isTouchSubmit:n,disabled:r,cardType:i=""})=>{const s=m.useId(),a=_e(),o=xt(),[l,u]=m.useState(""),[c,d]=m.useState(!0),[p,f]=m.useState(!1),g=n||p,y=w=>{const C=La(w,i);if(C){C===B.Empty?(u(""),d(!0)):(u(C===B.Incomplete?a.card.cvc.error.incomplete:a.card.cvc.error.invalid),d(!1));return}d(!1),u("")},b=w=>{if(r)return;const{value:C}=w.currentTarget;u(""),d(!1),p||f(!0);const P=nn(C,i),T=Me.getTypeInfo(i);P.length===T?.code.size&&y(P),e({value:P,isValid:La(P,i)===null})},v=g&&(!!l||c);return h.jsx(Ut,{id:s,label:a.card.cvc.label,labelError:v&&c?a.card.cvc.error.required:void 0,autoComplete:"cc-exp",value:t,disabled:r,placeholder:a.card.cvc.placeholder,error:v&&!c?l:void 0,onChange:b,onBlur:()=>y(t),styles:o?.card?.input,endContent:v?h.jsx(Gt,{}):h.jsx(p1,{className:U1.cvcIcon})})},Na=e=>{const t=!e,n=e.length<7,r=new Date,[i,s]=e.split(" / ");r.setFullYear(2e3+parseInt(s),parseInt(i)-1,31);const a=r.getTime()<Date.now();return!t&&!n&&!a?null:t?B.Empty:n?B.Incomplete:r.getFullYear()===new Date().getFullYear()?"dateExpired":"expired"},Z1=({onChange:e,value:t,isTouchSubmit:n,disabled:r})=>{const i=m.useId(),s=_e(),a=xt(),[o,l]=m.useState(""),[u,c]=m.useState(!0),[d,p]=m.useState(!1),f=n||d,g=v=>{const w=Na(v);if(w){w===B.Empty?(l(""),c(!0)):(l(w==="expired"?s.card.expiry.error.expired.replace("{date}","year"):w==="dateExpired"?s.card.expiry.error.expired.replace("{date}","date"):w===B.Incomplete?s.card.expiry.error.incomplete:s.card.expiry.error.invalid),c(!1));return}c(!1),l("")},y=v=>{if(r)return;const{value:w}=v.currentTarget;l(""),c(!1),d||p(!0);const C=Eo(w,t);C.length===7&&g(C),e({value:C,isValid:Na(C)===null})},b=f&&(!!o||u);return h.jsx(Ut,{id:i,label:s.card.expiry.label,labelError:b&&u?s.card.expiry.error.required:void 0,autoComplete:"cc-exp",value:t,disabled:r,placeholder:s.card.expiry.placeholder||"MM / YY",error:b&&!u?o:void 0,onChange:y,onBlur:()=>g(t),styles:a?.card?.input,endContent:b?h.jsx(Gt,{}):null})},Oa=e=>e?null:B.Empty,X1=({onChange:e,value:t,isTouchSubmit:n,disabled:r})=>{const i=m.useId(),s=_e(),a=xt(),[o,l]=m.useState(""),[u,c]=m.useState(!0),[d,p]=m.useState(!1),f=n||d,g=v=>{if(Oa(v)){l(""),c(!0);return}c(!1),l("")},y=v=>{if(r)return;const{value:w}=v.currentTarget;l(""),c(!1),d||p(!0),e({value:w,isValid:Oa(w)===null})},b=f&&(!!o||u);return h.jsx(Ut,{id:i,label:s.card.name.label,labelError:b&&u?s.card.name.error.required:void 0,autoComplete:"cc-name",value:t,disabled:r,placeholder:s.card.name.placeholder,error:b&&!u?o:void 0,onChange:y,onBlur:()=>g(t),styles:a?.card?.input,endContent:b?h.jsx(Gt,{}):null})},Ba=Wt.map(e=>e.type),we={iconContainer:"_iconContainer_1nckj_1"},J1=({cardTypes:e,supportedCardTypes:t})=>e.filter(n=>t.includes(n)).slice(0,4).map(n=>{switch(n){case G.Visa:return h.jsx("span",{className:we.iconContainer,children:h.jsx(x1,{})},n);case G.Mastercard:return h.jsx("span",{className:we.iconContainer,children:h.jsx(T1,{})},n);case G.DinersClub:return h.jsx("span",{className:we.iconContainer,children:h.jsx(P1,{})},n);case G.JCB:return h.jsx("span",{className:we.iconContainer,children:h.jsx(j1,{})},n);case G.AmericanExpress:return h.jsx("span",{className:we.iconContainer,children:h.jsx(D1,{})},n);case G.Discover:return h.jsx("span",{className:we.iconContainer,children:h.jsx(_1,{})},n);case G.UnionPay:return h.jsx("span",{className:we.iconContainer,children:h.jsx(O1,{})},n);case G.Maestro:return h.jsx("span",{className:we.iconContainer,children:h.jsx($1,{})},n);default:return null}}),Q1=({onChange:e,value:t,disabled:n,isTouchSubmit:r,supportedCardTypes:i})=>{const s=m.useId(),a=_e(),o=xt(),[l,u]=m.useState(Ba),[c,d]=m.useState(""),[p,f]=m.useState(!0),[g,y]=m.useState(!1),b=r||g,v=P=>{const{isValid:T,error:k}=Da(P,i);if(!T)return k===B.Empty?(d(""),f(!0)):k===B.Unsupported?(d(a.card.number.error.unsupported),f(!1)):(d(k===B.Incomplete?a.card.number.error.incomplete:a.card.number.error.invalid),f(!1)),!1;f(!1),d("")},w=P=>{if(n)return;const{value:T}=P.currentTarget;d(""),f(!1),g||y(!0);const k=W1(T).map(R=>R.type);console.log({cardTypes:k});const E=Ia(T),S=Ao(T,E?.type||"");S.replace(/\D/g,"").length===(E?.maxLength||16)&&v(S),u(k.length?k:Ba),e({card:S,cardType:E?.type||"",cardTypes:k,isValid:Da(S).isValid})},C=b&&(!!c||p);return h.jsx(Ut,{id:s,label:a.card.number.label,labelError:C&&p?a.card.number.error.required:void 0,autoComplete:"cc-number",value:t,disabled:n,placeholder:"1234 1234 1234 1234",error:C&&!p?c:void 0,onChange:w,onBlur:()=>v(t),styles:o?.card?.input,endContent:C?h.jsx(F1,{}):h.jsx(J1,{cardTypes:l,supportedCardTypes:i||[]})})},Yt={container:"_container_4s1xq_1",iconContainer:"_iconContainer_4s1xq_5",icon:"_icon_4s1xq_5",title:"_title_4s1xq_15"},e0=({title:e})=>h.jsxs("div",{className:Yt.container,children:[h.jsx("div",{className:Yt.iconContainer,children:h.jsx(Gt,{className:Yt.icon})}),h.jsx("div",{className:Yt.title,children:e})]}),qa={svg:"_svg_1kkac_1",sr:"_sr_1kkac_5"},yr=({className:e})=>h.jsxs("div",{role:"status",className:e,children:[h.jsxs("svg",{"aria-hidden":"true",className:qa.svg,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),h.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),h.jsx("span",{className:qa.sr,children:"Loading..."})]}),t0=({isFetching:e,isFail:t,supportedCardTypes:n,onSubmit:r})=>{const i=_e(),s=xt(),[a,o]=m.useState({value:"",isValid:!1}),[l,u]=m.useState({value:"",isValid:!1}),[c,d]=m.useState({value:"",isValid:!1}),[p,f]=m.useState(""),[g,y]=m.useState({value:"",isValid:!1}),[b,v]=m.useState(!1),w=({card:T,cardType:k,isValid:E})=>{d({value:T,isValid:E}),f(k);const S=nn(a.value,k);o({value:S,isValid:a.isValid})},C=({value:T,isValid:k})=>{const E=nn(T,p);o({value:E,isValid:k})},P=T=>{if(T.preventDefault(),!(c.isValid&&l.isValid&&a.isValid&&g.isValid))return;const E=/\s/g;r({number:c.value.replace(E,""),expiry:l.value.replace(E,""),cvc:a.value,name:g.value,cardBrand:p})};return h.jsxs("form",{onSubmit:P,className:St.card,children:[h.jsx(Q1,{value:c.value,onChange:w,isTouchSubmit:b,supportedCardTypes:n,disabled:e}),h.jsxs("div",{className:St.cardDataContainer,children:[h.jsx(Z1,{value:l.value,onChange:u,isTouchSubmit:b,disabled:e}),h.jsx(H1,{cardType:p,value:a.value,onChange:C,isTouchSubmit:b,disabled:e})]}),h.jsx(X1,{value:g.value,onChange:y,isTouchSubmit:b,disabled:e}),t?h.jsx(e0,{title:i.status.error}):null,h.jsxs(_r,{type:"submit",color:"primary",isLoading:e,disabled:e,onClick:()=>v(!0),className:ye(St.payButton,s?.card?.button?.className),style:s?.card?.button?.styles,children:[e&&h.jsx(yr,{className:St.spinner}),i.card.pay.button]})]})},n0={appId:"",teamId:"",ev:null},Fa=m.createContext(n0),Ka=()=>m.useContext(Fa),vr=m.createContext(null);function r0(){if(typeof window>"u")return null;if(typeof ge.useContext!="function")throw new Error("You must use React >= 18.0 in order to use useEvervault()");const e=ge.useContext(vr);if(!e)throw new Error("You must wrap your app in an <EvervaultProvider> to use useEvervault()");return e}m.createContext(void 0);class i0 extends Promise{async encrypt(t){return(await this).encrypt(t)}async decrypt(t,n){return(await this).decrypt(t,n)}}const s0="https://js.evervault.com/v2";function a0(e){const t=document.createElement("script");e&&e!==""?t.src=e:t.src=s0;const n=document.head||document.body;if(!n)throw new Error("Expected document.body not to be null. Evervault.js requires a <body> element.");return n.appendChild(t),t}let br=null;function o0(e,t){return br!==null||(br=new Promise((n,r)=>{if(typeof window>"u"){n(void 0);return}if(window.Evervault){console.warn("Evervault has already been loaded"),n(window.Evervault);return}try{const i=a0(e);i.addEventListener("load",()=>{window.Evervault?n(window.Evervault):(t?.(),r(new Error("Evervault.js not available")))}),i.addEventListener("error",()=>{t?.(),r(new Error("Failed to load Evervault.js"))})}catch(i){r(i)}})),br}function l0(e,t){const n=Promise.resolve().then(()=>o0(e,t));let r=!1;return n.catch(i=>{r||console.warn(i)}),r=!0,n.then(i=>typeof window<"u"?window.Evervault:i??void 0)}const c0=({teamId:e,appId:t,customConfig:n,children:r,onLoadError:i,...s})=>{if(typeof window>"u")return ge.createElement(vr.Provider,{value:null},r);const a=ge.useMemo(()=>new i0((o,l)=>{l0(n?.jsSdkUrl,i).then(u=>{u!==void 0?o(new u(e,t,n)):(console.error("Evervault.js not available"),l("Evervault.js not available"))}).catch(u=>l(u))}),[]);return ge.createElement(vr.Provider,{...s,value:a},r)};let Ht=null;async function u0(){return Ht||(Ht=new Promise((e,t)=>{const n=document.createElement("script");if(n.src="https://js.evervault.com/v2",n.onload=()=>e(),n.onerror=()=>{Ht=null,t()},!document.head)throw new Error("Expected document.head not to be null. Evervault.js requires a <head> element.");document.head.appendChild(n)}),Ht)}async function za(){if(window.Evervault)return window.Evervault;try{return await u0(),window.Evervault}catch{throw new Error("Failed to load Evervault.js")}}async function d0(e,t,n){const r=await za();return new r(e,t,n)}Promise.resolve().then(()=>{za()});const h0=({children:e,evConfig:t})=>{const[n,r]=m.useState(null),i=m.useMemo(()=>({...t,ev:n}),[t,n]);return m.useEffect(()=>{d0(t.teamId,t.appId).then(s=>r(s)).catch(console.error)},[t]),h.jsx(c0,{...t,children:h.jsx(Fa.Provider,{value:i,children:e})})},$a={googlePay:"_googlePay_1a960_1",hidden:"_hidden_1a960_17"},Ua="ab-ev-google-pay-container",p0=({onSubmit:e,onCancel:t,onError:n,onSuccess:r,onReady:i,transaction:s,locale:a})=>{const{ev:o}=Ka(),[l,u]=m.useState(!1),[c,d]=m.useState(null);return m.useEffect(()=>{c&&(t&&c.on("cancel",t),n&&c.on("error",n),r&&c.on("success",r))},[c,t,n,r]),m.useEffect(()=>{if(o)try{const p=o.transactions.create(s),f=o.ui.googlePay(p,{locale:a,size:{width:"100%",height:"42px"},billingAddress:{phoneNumber:!0},process:async(g,{fail:y})=>{try{e(g)}catch(b){console.error(b),y({message:"Cannot pay with payment credentials"})}}});f.on("ready",()=>{u(!0),i?.()}),d(f),f.unmount(),f.mount(`#${Ua}`)}catch(p){console.error(p),u(!1),i?.()}},[o,s,a,e,i]),h.jsx("div",{id:Ua,className:ye($a.googlePay,l?void 0:$a.hidden)})},Ga={applePay:"_applePay_2b2iv_1",hidden:"_hidden_2b2iv_17"},xr="ab-ev-apple-pay-container",f0=({onSubmit:e,onCancel:t,onError:n,onSuccess:r,onReady:i,locale:s,transaction:a,supportedCardTypes:o})=>{const[l,u]=m.useState(!1),{ev:c}=Ka();return m.useEffect(()=>{(async()=>{if(c)try{const p=c.transactions.create(a),f=c.ui.applePay(p,{locale:s,borderRadius:12,size:{width:"100%",height:"40px"},allowedCardNetworks:o,requestBillingAddress:!0,requestPayerDetails:["name","email","phone"],process:async(y,{fail:b})=>{try{e(y)}catch(v){console.error(v),b({message:"Cannot pay with payment credentials"})}}});if(await f.availability()!=="available"){u(!1),i?.();return}if(t&&f.on("cancel",t),n&&f.on("error",(y="")=>n(y)),r&&f.on("success",r),f.unmount(),"document"in global){const y=document.getElementById(xr);y&&(y.innerHTML="")}f.mount(`#${xr}`),u(!0),i?.()}catch(p){console.error(p),u(!1),i?.()}})()},[c,a,o,s,e,t,n,r,i]),h.jsx("div",{id:xr,className:ye(Ga.applePay,l?void 0:Ga.hidden)})},pe={container:"_container_a64yo_1",backBtn:"_backBtn_a64yo_5",cardBtn:"_cardBtn_a64yo_9",btnContainer:"_btnContainer_a64yo_13",spinner:"_spinner_a64yo_17",spinnerContainer:"_spinnerContainer_a64yo_21"};/*!
|
|
31
|
+
`),()=>{document.head.contains(f)&&document.head.removeChild(f)}},[t]),h.jsx(kc,{isPresent:t,childRef:i,sizeRef:s,children:ge.cloneElement(e,{ref:i})})}const Pc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:a,anchorX:o})=>{const l=sn(Ac),u=m.useId();let c=!0,d=m.useMemo(()=>(c=!1,{id:u,initial:t,isPresent:n,custom:i,onExitComplete:p=>{l.set(p,!0);for(const f of l.values())if(!f)return;r&&r()},register:p=>(l.set(p,!1),()=>l.delete(p))}),[n,l,r]);return s&&c&&(d={...d}),m.useMemo(()=>{l.forEach((p,f)=>l.set(f,!1))},[n]),ge.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),a==="popLayout"&&(e=h.jsx(Sc,{isPresent:n,anchorX:o,children:e})),h.jsx(Pt.Provider,{value:d,children:e})};function Ac(){return new Map}function es(e=!0){const t=m.useContext(Pt);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=m.useId();m.useEffect(()=>{if(e)return i(s)},[e]);const a=m.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,a]:[!0]}const It=e=>e.key||"";function ts(e){const t=[];return m.Children.forEach(e,n=>{m.isValidElement(n)&&t.push(n)}),t}const ns=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:a=!1,anchorX:o="left"})=>{const[l,u]=es(a),c=m.useMemo(()=>ts(e),[e]),d=a&&!l?[]:c.map(It),p=m.useRef(!0),f=m.useRef(c),g=sn(()=>new Map),[y,b]=m.useState(c),[v,w]=m.useState(c);qr(()=>{p.current=!1,f.current=c;for(let T=0;T<v.length;T++){const k=It(v[T]);d.includes(k)?g.delete(k):g.get(k)!==!0&&g.set(k,!1)}},[v,d.length,d.join("-")]);const C=[];if(c!==y){let T=[...c];for(let k=0;k<v.length;k++){const E=v[k],S=It(E);d.includes(S)||(T.splice(k,0,E),C.push(E))}return s==="wait"&&C.length&&(T=C),w(ts(T)),b(c),null}process.env.NODE_ENV!=="production"&&s==="wait"&&v.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:P}=m.useContext(rn);return h.jsx(h.Fragment,{children:v.map(T=>{const k=It(T),E=a&&!l?!1:c===v||d.includes(k),S=()=>{if(g.has(k))g.set(k,!0);else return;let R=!0;g.forEach(_=>{_||(R=!1)}),R&&(P?.(),w(f.current),a&&u?.(),r&&r())};return h.jsx(Pc,{isPresent:E,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,onExitComplete:E?void 0:S,anchorX:o,children:T},k)})})},rs=m.createContext({strict:!1}),is={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},qe={};for(const e in is)qe[e]={isEnabled:t=>is[e].some(n=>!!t[n])};function Ec(e){for(const t in e)qe[t]={...qe[t],...e[t]}}const jc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Dt(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||jc.has(e)}let ss=e=>!Dt(e);function Vc(e){e&&(ss=t=>t.startsWith("on")?!Dt(t):e(t))}try{Vc(require("@emotion/is-prop-valid").default)}catch{}function Rc(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(ss(i)||n===!0&&Dt(i)||!t&&!Dt(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function _c(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&dn(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Lt=m.createContext({});function Nt(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ut(e){return typeof e=="string"||Array.isArray(e)}const Wn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Yn=["initial",...Wn];function Ot(e){return Nt(e.animate)||Yn.some(t=>ut(e[t]))}function as(e){return!!(Ot(e)||e.variants)}function Mc(e,t){if(Ot(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ut(n)?n:void 0,animate:ut(r)?r:void 0}}return e.inherit!==!1?t:{}}function Ic(e){const{initial:t,animate:n}=Mc(e,m.useContext(Lt));return m.useMemo(()=>({initial:t,animate:n}),[os(t),os(n)])}function os(e){return Array.isArray(e)?e.join(" "):e}const Dc=Symbol.for("motionComponentSymbol");function Ke(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Lc(e,t,n){return m.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ke(n)&&(n.current=r))},[t])}const Hn=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ls="data-"+Hn("framerAppearId"),cs=m.createContext({});function Nc(e,t,n,r,i){const{visualElement:s}=m.useContext(Lt),a=m.useContext(rs),o=m.useContext(Pt),l=m.useContext(Gn).reducedMotion,u=m.useRef(null);r=r||a.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,d=m.useContext(cs);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&Oc(u.current,n,i,d);const p=m.useRef(!1);m.useInsertionEffect(()=>{c&&p.current&&c.update(n,o)});const f=n[ls],g=m.useRef(!!f&&!window.MotionHandoffIsComplete?.(f)&&window.MotionHasOptimisedAnimation?.(f));return qr(()=>{c&&(p.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),zn.render(c.render),g.current&&c.animationState&&c.animationState.animateChanges())}),m.useEffect(()=>{c&&(!g.current&&c.animationState&&c.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(f)}),g.current=!1))}),c}function Oc(e,t,n,r){const{layoutId:i,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:us(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!a||o&&Ke(o),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}function us(e){if(e)return e.options.allowProjection!==!1?e.projection:us(e.parent)}function Bc({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Ec(e);function s(o,l){let u;const c={...m.useContext(Gn),...o,layoutId:Fc(o)},{isStatic:d}=c,p=Ic(o),f=r(o,d);if(!d&&an){qc(c,e);const g=Kc(c);u=g.MeasureLayout,p.visualElement=Nc(i,f,c,t,g.ProjectionNode)}return h.jsxs(Lt.Provider,{value:p,children:[u&&p.visualElement?h.jsx(u,{visualElement:p.visualElement,...c}):null,n(i,o,Lc(f,p.visualElement,l),f,d,p.visualElement)]})}s.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const a=m.forwardRef(s);return a[Dc]=i,a}function Fc({layoutId:e}){const t=m.useContext(rn).id;return t&&e!==void 0?t+"-"+e:e}function qc(e,t){const n=m.useContext(rs).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Ie(!1,r):de(!1,r)}}function Kc(e){const{drag:t,layout:n}=qe;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const dt={};function zc(e){for(const t in e)dt[t]=e[t],mn(t)&&(dt[t].isCSSVariable=!0)}function ds(e,{layout:t,layoutId:n}){return Be.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!dt[e]||e==="opacity")}const $c={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Uc=Oe.length;function Gc(e,t,n){let r="",i=!0;for(let s=0;s<Uc;s++){const a=Oe[s],o=e[a];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(a.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||n){const u=Gi(o,Kn[a]);if(!l){i=!1;const c=$c[a]||a;r+=`${c}(${u}) `}n&&(t[a]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Zn(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let a=!1,o=!1;for(const l in t){const u=t[l];if(Be.has(l)){a=!0;continue}else if(mn(l)){i[l]=u;continue}else{const c=Gi(u,Kn[l]);l.startsWith("origin")?(o=!0,s[l]=c):r[l]=c}}if(t.transform||(a||n?r.transform=Gc(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:l="50%",originY:u="50%",originZ:c=0}=s;r.transformOrigin=`${l} ${u} ${c}`}}const Xn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function hs(e,t,n){for(const r in t)!U(t[r])&&!ds(r,n)&&(e[r]=t[r])}function Wc({transformTemplate:e},t){return m.useMemo(()=>{const n=Xn();return Zn(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Yc(e,t){const n=e.style||{},r={};return hs(r,n,e),Object.assign(r,Wc(e,t)),r}function Hc(e,t){const n={},r=Yc(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Zc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Xc={offset:"strokeDashoffset",array:"strokeDasharray"};function Jc(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Zc:Xc;e[s.offset]=A.transform(-r);const a=A.transform(t),o=A.transform(n);e[s.array]=`${a} ${o}`}function ps(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:a=0,...o},l,u,c){if(Zn(e,o,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:p}=e;d.transform&&(p.transform=d.transform,delete d.transform),(p.transform||d.transformOrigin)&&(p.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),p.transform&&(p.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Jc(d,i,s,a,!1)}const fs=()=>({...Xn(),attrs:{}}),ms=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Qc(e,t,n,r){const i=m.useMemo(()=>{const s=fs();return ps(s,t,ms(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};hs(s,e.style,e),i.style={...s,...i.style}}return i}const eu=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Jn(e){return typeof e!="string"||e.includes("-")?!1:!!(eu.indexOf(e)>-1||/[A-Z]/u.test(e))}function tu(e=!1){return(n,r,i,{latestValues:s},a)=>{const l=(Jn(n)?Qc:Hc)(r,s,a,n),u=Rc(r,typeof n=="string",e),c=n!==m.Fragment?{...u,...l,ref:i}:{},{children:d}=r,p=m.useMemo(()=>U(d)?d.get():d,[d]);return m.createElement(n,{...c,children:p})}}function gs(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Qn(e,t,n,r){if(typeof t=="function"){const[i,s]=gs(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=gs(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function Bt(e){return U(e)?e.get():e}function nu({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:ru(n,r,i,e),renderState:t()}}const ys=e=>(t,n)=>{const r=m.useContext(Lt),i=m.useContext(Pt),s=()=>nu(e,t,r,i);return n?s():sn(s)};function ru(e,t,n,r){const i={},s=r(e,{});for(const p in s)i[p]=Bt(s[p]);let{initial:a,animate:o}=e;const l=Ot(e),u=as(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),o===void 0&&(o=t.animate));let c=n?n.initial===!1:!1;c=c||a===!1;const d=c?o:a;if(d&&typeof d!="boolean"&&!Nt(d)){const p=Array.isArray(d)?d:[d];for(let f=0;f<p.length;f++){const g=Qn(e,p[f]);if(g){const{transitionEnd:y,transition:b,...v}=g;for(const w in v){let C=v[w];if(Array.isArray(C)){const P=c?C.length-1:0;C=C[P]}C!==null&&(i[w]=C)}for(const w in y)i[w]=y[w]}}}return i}function er(e,t,n){const{style:r}=e,i={};for(const s in r)(U(r[s])||t.style&&U(t.style[s])||ds(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=r[s]);return i}const iu={useVisualState:ys({scrapeMotionValuesFromProps:er,createRenderState:Xn})};function vs(e,t,n){const r=er(e,t,n);for(const i in e)if(U(e[i])||U(t[i])){const s=Oe.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const su={useVisualState:ys({scrapeMotionValuesFromProps:vs,createRenderState:fs})};function au(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Jn(r)?su:iu,preloadedFeatures:e,useRender:tu(i),createVisualElement:t,Component:r};return Bc(a)}}function ht(e,t,n){const r=e.getProps();return Qn(r,t,n!==void 0?n:r.custom,e)}const tr=e=>Array.isArray(e);function ou(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Fe(n))}function lu(e){return tr(e)?e[e.length-1]||0:e}function cu(e,t){const n=ht(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const a in s){const o=lu(s[a]);ou(e,a,o)}}function uu(e){return!!(U(e)&&e.add)}function nr(e,t){const n=e.getValue("willChange");if(uu(n))return n.add(t);if(!n&&he.WillChange){const r=new he.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function bs(e){return e.props[ls]}const du=e=>e!==null;function hu(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(du),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const pu={type:"spring",stiffness:500,damping:25,restSpeed:10},fu=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),mu={type:"keyframes",duration:.8},gu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},yu=(e,{keyframes:t})=>t.length>2?mu:Be.has(e)?e.startsWith("scale")?fu(t[1]):pu:gu;function vu({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const rr=(e,t,n,r={},i,s)=>a=>{const o=Fn(r,e)||{},l=o.delay||r.delay||0;let{elapsed:u=0}=r;u=u-ie(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:p=>{t.set(p),o.onUpdate&&o.onUpdate(p)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:i};vu(o)||Object.assign(c,yu(e,c)),c.duration&&(c.duration=ie(c.duration)),c.repeatDelay&&(c.repeatDelay=ie(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),(he.instantAnimations||he.skipAnimations)&&(d=!0,c.duration=0,c.delay=0),c.allowFlatten=!o.type&&!o.ease,d&&!s&&t.get()!==void 0){const p=hu(c.keyframes,o);if(p!==void 0){M.update(()=>{c.onUpdate(p),c.onComplete()});return}}return o.isSync?new Vn(c):new Ql(c)};function bu({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function xs(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...o}=t;r&&(s=r);const l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const c in o){const d=e.getValue(c,e.latestValues[c]??null),p=o[c];if(p===void 0||u&&bu(u,c))continue;const f={delay:n,...Fn(s||{},c)},g=d.get();if(g!==void 0&&!d.isAnimating&&!Array.isArray(p)&&p===g&&!f.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const v=bs(e);if(v){const w=window.MotionHandoffAnimation(v,c,M);w!==null&&(f.startTime=w,y=!0)}}nr(e,c),d.start(rr(c,d,p,e.shouldReduceMotion&&Oi.has(c)?{type:!1}:f,e,y));const b=d.animation;b&&l.push(b)}return a&&Promise.all(l).then(()=>{M.update(()=>{a&&cu(e,a)})}),l}function ir(e,t,n={}){const r=ht(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(xs(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=i;return xu(e,t,u+l,c,d,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[l,u]=o==="beforeChildren"?[s,a]:[a,s];return l().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function xu(e,t,n=0,r=0,i=1,s){const a=[],o=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>o-u*r;return Array.from(e.variantChildren).sort(Cu).forEach((u,c)=>{u.notify("AnimationStart",t),a.push(ir(u,t,{...s,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function Cu(e,t){return e.sortNodePosition(t)}function wu(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>ir(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=ir(e,t,n);else{const i=typeof t=="function"?ht(e,t,n.custom):t;r=Promise.all(xs(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Cs(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Tu=Yn.length;function ws(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ws(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Tu;n++){const r=Yn[n],i=e.props[r];(ut(i)||i===!1)&&(t[r]=i)}return t}const ku=[...Wn].reverse(),Su=Wn.length;function Pu(e){return t=>Promise.all(t.map(({animation:n,options:r})=>wu(e,n,r)))}function Au(e){let t=Pu(e),n=Ts(),r=!0;const i=l=>(u,c)=>{const d=ht(e,c,l==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:p,transitionEnd:f,...g}=d;u={...u,...g,...f}}return u};function s(l){t=l(e)}function a(l){const{props:u}=e,c=ws(e.parent)||{},d=[],p=new Set;let f={},g=1/0;for(let b=0;b<Su;b++){const v=ku[b],w=n[v],C=u[v]!==void 0?u[v]:c[v],P=ut(C),T=v===l?w.isActive:null;T===!1&&(g=b);let k=C===c[v]&&C!==u[v]&&P;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),w.protectedKeys={...f},!w.isActive&&T===null||!C&&!w.prevProp||Nt(C)||typeof C=="boolean")continue;const E=Eu(w.prevProp,C);let S=E||v===l&&w.isActive&&!k&&P||b>g&&P,R=!1;const _=Array.isArray(C)?C:[C];let F=_.reduce(i(v),{});T===!1&&(F={});const{prevResolvedValues:V={}}=w,z={...V,...F},J=q=>{S=!0,p.has(q)&&(R=!0,p.delete(q)),w.needsAnimating[q]=!0;const ne=e.getValue(q);ne&&(ne.liveStyle=!1)};for(const q in z){const ne=F[q],Ge=V[q];if(f.hasOwnProperty(q))continue;let x=!1;tr(ne)&&tr(Ge)?x=!Cs(ne,Ge):x=ne!==Ge,x?ne!=null?J(q):p.add(q):ne!==void 0&&p.has(q)?J(q):w.protectedKeys[q]=!0}w.prevProp=C,w.prevResolvedValues=F,w.isActive&&(f={...f,...F}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(k&&E)||R)&&d.push(..._.map(q=>({animation:q,options:{type:v}})))}if(p.size){const b={};if(typeof u.initial!="boolean"){const v=ht(e,Array.isArray(u.initial)?u.initial[0]:u.initial);v&&v.transition&&(b.transition=v.transition)}p.forEach(v=>{const w=e.getBaseTarget(v),C=e.getValue(v);C&&(C.liveStyle=!0),b[v]=w??null}),d.push({animation:b})}let y=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function o(l,u){if(n[l].isActive===u)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(l,u)),n[l].isActive=u;const c=a(l);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:a,setActive:o,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Ts(),r=!0}}}function Eu(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Cs(t,e):!1}function je(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ts(){return{animate:je(!0),whileInView:je(),whileHover:je(),whileTap:je(),whileDrag:je(),whileFocus:je(),exit:je()}}class Ce{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ju extends Ce{constructor(t){super(t),t.animationState||(t.animationState=Au(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Nt(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Vu=0;class Ru extends Ce{constructor(){super(...arguments),this.id=Vu++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const _u={animation:{Feature:ju},exit:{Feature:Ru}};function pt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ft(e){return{point:{x:e.pageX,y:e.pageY}}}const Mu=e=>t=>$n(t)&&e(t,ft(t));function mt(e,t,n,r){return pt(e,t,Mu(n),r)}function ks({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Iu({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Du(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const Ss=1e-4,Lu=1-Ss,Nu=1+Ss,Ps=.01,Ou=0-Ps,Bu=0+Ps;function H(e){return e.max-e.min}function Fu(e,t,n){return Math.abs(e-t)<=n}function As(e,t,n,r=.5){e.origin=r,e.originPoint=I(t.min,t.max,e.origin),e.scale=H(n)/H(t),e.translate=I(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Lu&&e.scale<=Nu||isNaN(e.scale))&&(e.scale=1),(e.translate>=Ou&&e.translate<=Bu||isNaN(e.translate))&&(e.translate=0)}function gt(e,t,n,r){As(e.x,t.x,n.x,r?r.originX:void 0),As(e.y,t.y,n.y,r?r.originY:void 0)}function Es(e,t,n){e.min=n.min+t.min,e.max=e.min+H(t)}function qu(e,t,n){Es(e.x,t.x,n.x),Es(e.y,t.y,n.y)}function js(e,t,n){e.min=t.min-n.min,e.max=e.min+H(t)}function yt(e,t,n){js(e.x,t.x,n.x),js(e.y,t.y,n.y)}const Vs=()=>({translate:0,scale:1,origin:0,originPoint:0}),ze=()=>({x:Vs(),y:Vs()}),Rs=()=>({min:0,max:0}),N=()=>({x:Rs(),y:Rs()});function ee(e){return[e("x"),e("y")]}function sr(e){return e===void 0||e===1}function ar({scale:e,scaleX:t,scaleY:n}){return!sr(e)||!sr(t)||!sr(n)}function Ve(e){return ar(e)||_s(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function _s(e){return Ms(e.x)||Ms(e.y)}function Ms(e){return e&&e!=="0%"}function Ft(e,t,n){const r=e-n,i=t*r;return n+i}function Is(e,t,n,r,i){return i!==void 0&&(e=Ft(e,i,r)),Ft(e,n,r)+t}function or(e,t=0,n=1,r,i){e.min=Is(e.min,t,n,r,i),e.max=Is(e.max,t,n,r,i)}function Ds(e,{x:t,y:n}){or(e.x,t.translate,t.scale,t.originPoint),or(e.y,n.translate,n.scale,n.originPoint)}const Ls=.999999999999,Ns=1.0000000000001;function Ku(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,a;for(let o=0;o<i;o++){s=n[o],a=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Ue(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Ds(e,a)),r&&Ve(s.latestValues)&&Ue(e,s.latestValues))}t.x<Ns&&t.x>Ls&&(t.x=1),t.y<Ns&&t.y>Ls&&(t.y=1)}function $e(e,t){e.min=e.min+t,e.max=e.max+t}function Os(e,t,n,r,i=.5){const s=I(e.min,e.max,i);or(e,t,n,s,r)}function Ue(e,t){Os(e.x,t.x,t.scaleX,t.scale,t.originX),Os(e.y,t.y,t.scaleY,t.scale,t.originY)}function Bs(e,t){return ks(Du(e.getBoundingClientRect(),t))}function zu(e,t,n){const r=Bs(e,n),{scroll:i}=t;return i&&($e(r.x,i.offset.x),$e(r.y,i.offset.y)),r}const Fs=({current:e})=>e?e.ownerDocument.defaultView:null,qs=(e,t)=>Math.abs(e-t);function $u(e,t){const n=qs(e.x,t.x),r=qs(e.y,t.y);return Math.sqrt(n**2+r**2)}class Ks{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=cr(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,f=$u(d.offset,{x:0,y:0})>=3;if(!p&&!f)return;const{point:g}=d,{timestamp:y}=K;this.history.push({...g,timestamp:y});const{onStart:b,onMove:v}=this.handlers;p||(b&&b(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,p)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=lr(p,this.transformPagePoint),M.update(this.updatePoint,!0)},this.handlePointerUp=(d,p)=>{this.end();const{onEnd:f,onSessionEnd:g,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=cr(d.type==="pointercancel"?this.lastMoveEventInfo:lr(p,this.transformPagePoint),this.history);this.startEvent&&f&&f(d,b),g&&g(d,b)},!$n(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=ft(t),o=lr(a,this.transformPagePoint),{point:l}=o,{timestamp:u}=K;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,cr(o,this.history)),this.removeListeners=nt(mt(this.contextWindow,"pointermove",this.handlePointerMove),mt(this.contextWindow,"pointerup",this.handlePointerUp),mt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ve(this.updatePoint)}}function lr(e,t){return t?{point:t(e.point)}:e}function zs(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cr({point:e},t){return{point:e,delta:zs(e,$s(t)),offset:zs(e,Uu(t)),velocity:Gu(t,.1)}}function Uu(e){return e[0]}function $s(e){return e[e.length-1]}function Gu(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=$s(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ie(t)));)n--;if(!r)return{x:0,y:0};const s=ae(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const a={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Wu(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?I(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?I(n,e,r.max):Math.min(e,n)),e}function Us(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Yu(e,{top:t,left:n,bottom:r,right:i}){return{x:Us(e.x,n,i),y:Us(e.y,t,r)}}function Gs(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Hu(e,t){return{x:Gs(e.x,t.x),y:Gs(e.y,t.y)}}function Zu(e,t){let n=.5;const r=H(e),i=H(t);return i>r?n=rt(t.min,t.max-r,e.min):r>i&&(n=rt(e.min,e.max-i,t.min)),ue(0,1,n)}function Xu(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const ur=.35;function Ju(e=ur){return e===!1?e=0:e===!0&&(e=ur),{x:Ws(e,"left","right"),y:Ws(e,"top","bottom")}}function Ws(e,t,n){return{min:Ys(e,t),max:Ys(e,n)}}function Ys(e,t){return typeof e=="number"?e:e[t]||0}const Qu=new WeakMap;class ed{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=N(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ft(c).point)},s=(c,d)=>{const{drag:p,dragPropagation:f,onDragStart:g}=this.getProps();if(p&&!f&&(this.openDragLock&&this.openDragLock(),this.openDragLock=mc(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ee(b=>{let v=this.getAxisMotionValue(b).get()||0;if(oe.test(v)){const{projection:w}=this.visualElement;if(w&&w.layout){const C=w.layout.layoutBox[b];C&&(v=H(C)*(parseFloat(v)/100))}}this.originPoint[b]=v}),g&&M.postRender(()=>g(c,d)),nr(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(c,d)=>{const{dragPropagation:p,dragDirectionLock:f,onDirectionLock:g,onDrag:y}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:b}=d;if(f&&this.currentDirection===null){this.currentDirection=td(b),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,b),this.updateAxis("y",d.point,b),this.visualElement.render(),y&&y(c,d)},o=(c,d)=>this.stop(c,d),l=()=>ee(c=>this.getAnimationState(c)==="paused"&&this.getAxisMotionValue(c).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Ks(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Fs(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&M.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!qt(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=Wu(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&Ke(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Yu(r.layoutBox,t):this.constraints=!1,this.elastic=Ju(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ee(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Xu(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ke(t))return!1;const r=t.current;de(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=zu(r,i.root,this.visualElement.getTransformPagePoint());let a=Hu(i.layout.layoutBox,s);if(n){const o=n(Iu(a));this.hasMutatedConstraints=!!o,o&&(a=ks(o))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},u=ee(c=>{if(!qt(c,n,this.currentDirection))return;let d=l&&l[c]||{};a&&(d={min:0,max:0});const p=i?200:1e6,f=i?40:1e7,g={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return nr(this.visualElement,t),r.start(rr(t,r,0,n,this.visualElement,!1))}stopAnimation(){ee(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ee(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ee(n=>{const{drag:r}=this.getProps();if(!qt(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:o}=i.layout.layoutBox[n];s.set(t[n]-I(a,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ke(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ee(a=>{const o=this.getAxisMotionValue(a);if(o&&this.constraints!==!1){const l=o.get();i[a]=Zu({min:l,max:l},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ee(a=>{if(!qt(a,t,null))return;const o=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];o.set(I(l,u,i[a]))})}addListeners(){if(!this.visualElement.current)return;Qu.set(this.visualElement,this);const t=this.visualElement.current,n=mt(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Ke(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),M.read(r);const a=pt(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(ee(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:a=ur,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:a,dragMomentum:o}}}function qt(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function td(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class nd extends Ce{constructor(t){super(t),this.removeGroupControls=Q,this.removeListeners=Q,this.controls=new ed(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Q}unmount(){this.removeGroupControls(),this.removeListeners()}}const Hs=e=>(t,n)=>{e&&M.postRender(()=>e(t,n))};class rd extends Ce{constructor(){super(...arguments),this.removePointerDownListener=Q}onPointerDown(t){this.session=new Ks(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Fs(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Hs(t),onStart:Hs(n),onMove:r,onEnd:(s,a)=>{delete this.session,i&&M.postRender(()=>i(s,a))}}}mount(){this.removePointerDownListener=mt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Kt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Zs(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const vt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(A.test(e))e=parseFloat(e);else return e;const n=Zs(e,t.target.x),r=Zs(e,t.target.y);return`${n}% ${r}%`}},id={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=xe.parse(e);if(i.length>5)return r;const s=xe.createTransformer(e),a=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,l=n.y.scale*t.y;i[0+a]/=o,i[1+a]/=l;const u=I(o,l,.5);return typeof i[2+a]=="number"&&(i[2+a]/=u),typeof i[3+a]=="number"&&(i[3+a]/=u),s(i)}};class sd extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;zc(ad),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Kt.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:a}=r;return a&&(a.isPresent=s,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||M.postRender(()=>{const o=a.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),zn.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Xs(e){const[t,n]=es(),r=m.useContext(rn);return h.jsx(sd,{...e,layoutGroup:r,switchLayoutGroup:m.useContext(cs),isPresent:t,safeToRemove:n})}const ad={borderRadius:{...vt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:vt,borderTopRightRadius:vt,borderBottomLeftRadius:vt,borderBottomRightRadius:vt,boxShadow:id};function od(e,t,n){const r=U(e)?e:Fe(e);return r.start(rr("",r,t,n)),r.animation}const ld=(e,t)=>e.depth-t.depth;class cd{constructor(){this.children=[],this.isDirty=!1}add(t){on(this.children,t),this.isDirty=!0}remove(t){ln(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ld),this.isDirty=!1,this.children.forEach(t)}}function ud(e,t){const n=Z.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(ve(r),e(s-t))};return M.setup(r,!0),()=>ve(r)}const Js=["TopLeft","TopRight","BottomLeft","BottomRight"],dd=Js.length,Qs=e=>typeof e=="string"?parseFloat(e):e,ea=e=>typeof e=="number"||A.test(e);function hd(e,t,n,r,i,s){i?(e.opacity=I(0,n.opacity??1,pd(r)),e.opacityExit=I(t.opacity??1,0,fd(r))):s&&(e.opacity=I(t.opacity??1,n.opacity??1,r));for(let a=0;a<dd;a++){const o=`border${Js[a]}Radius`;let l=ta(t,o),u=ta(n,o);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||ea(l)===ea(u)?(e[o]=Math.max(I(Qs(l),Qs(u),r),0),(oe.test(u)||oe.test(l))&&(e[o]+="%")):e[o]=u}(t.rotate||n.rotate)&&(e.rotate=I(t.rotate||0,n.rotate||0,r))}function ta(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const pd=na(0,.5,Qr),fd=na(.5,.95,Q);function na(e,t,n){return r=>r<e?0:r>t?1:n(rt(e,t,r))}function ra(e,t){e.min=t.min,e.max=t.max}function te(e,t){ra(e.x,t.x),ra(e.y,t.y)}function ia(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function sa(e,t,n,r,i){return e-=t,e=Ft(e,1/n,r),i!==void 0&&(e=Ft(e,1/i,r)),e}function md(e,t=0,n=1,r=.5,i,s=e,a=e){if(oe.test(t)&&(t=parseFloat(t),t=I(a.min,a.max,t/100)-a.min),typeof t!="number")return;let o=I(s.min,s.max,r);e===s&&(o-=t),e.min=sa(e.min,t,n,o,i),e.max=sa(e.max,t,n,o,i)}function aa(e,t,[n,r,i],s,a){md(e,t[n],t[r],t[i],t.scale,s,a)}const gd=["x","scaleX","originX"],yd=["y","scaleY","originY"];function oa(e,t,n,r){aa(e.x,t,gd,n?n.x:void 0,r?r.x:void 0),aa(e.y,t,yd,n?n.y:void 0,r?r.y:void 0)}function la(e){return e.translate===0&&e.scale===1}function ca(e){return la(e.x)&&la(e.y)}function ua(e,t){return e.min===t.min&&e.max===t.max}function vd(e,t){return ua(e.x,t.x)&&ua(e.y,t.y)}function da(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ha(e,t){return da(e.x,t.x)&&da(e.y,t.y)}function pa(e){return H(e.x)/H(e.y)}function fa(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class bd{constructor(){this.members=[]}add(t){on(this.members,t),t.scheduleRender()}remove(t){if(ln(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function xd(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,a=n?.z||0;if((i||s||a)&&(r=`translate3d(${i}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:p,skewX:f,skewY:g}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),p&&(r+=`rotateY(${p}deg) `),f&&(r+=`skewX(${f}deg) `),g&&(r+=`skewY(${g}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(r+=`scale(${o}, ${l})`),r||"none"}const dr=["","X","Y","Z"],Cd={visibility:"hidden"},wd=1e3;let Td=0;function hr(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ma(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=bs(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",M,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ma(r)}function ga({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},o=t?.()){this.id=Td++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Pd),this.nodes.forEach(Rd),this.nodes.forEach(_d),this.nodes.forEach(Ad)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new cd)}addEventListener(a,o){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new un),this.eventHandlers.get(a).add(o)}notifyListeners(a,...o){const l=this.eventHandlers.get(a);l&&l.notify(...o)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=Qi(a)&&!Cc(a),this.instance=a;const{layoutId:o,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||o)&&(this.isLayoutDirty=!0),e){let c;const d=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=ud(d,250),Kt.hasAnimatedSinceResize&&(Kt.hasAnimatedSinceResize=!1,this.nodes.forEach(va))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&u&&(o||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:p,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||Nd,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=u.getProps(),v=!this.targetLayout||!ha(this.targetLayout,f),w=!d&&p;if(this.options.layoutRoot||this.resumeFrom||w||d&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(c,w);const C={...Fn(g,"layout"),onPlay:y,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else d||va(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ve(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Md),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ma(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ya);return}this.isUpdating||this.nodes.forEach(jd),this.isUpdating=!1,this.nodes.forEach(Vd),this.nodes.forEach(kd),this.nodes.forEach(Sd),this.clearAllSnapshots();const o=Z.now();K.delta=ue(0,1e3/60,o-K.timestamp),K.timestamp=o,K.isProcessing=!0,fn.update.process(K),fn.preRender.process(K),fn.render.process(K),K.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,zn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ed),this.sharedNodes.forEach(Id)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,M.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){M.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!H(this.snapshot.measuredBox.x)&&!H(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=N(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(o=!1),o&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!ca(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;a&&this.instance&&(o||Ve(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return a&&(l=this.removeTransform(l)),Od(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return N();const o=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Bd))){const{scroll:u}=this.root;u&&($e(o.x,u.offset.x),$e(o.y,u.offset.y))}return o}removeElementScroll(a){const o=N();if(te(o,a),this.scroll?.wasRoot)return o;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:d}=u;u!==this.root&&c&&d.layoutScroll&&(c.wasRoot&&te(o,a),$e(o.x,c.offset.x),$e(o.y,c.offset.y))}return o}applyTransform(a,o=!1){const l=N();te(l,a);for(let u=0;u<this.path.length;u++){const c=this.path[u];!o&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Ue(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Ve(c.latestValues)&&Ue(l,c.latestValues)}return Ve(this.latestValues)&&Ue(l,this.latestValues),l}removeTransform(a){const o=N();te(o,a);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Ve(u.latestValues))continue;ar(u.latestValues)&&u.updateSnapshot();const c=N(),d=u.measurePageBox();te(c,d),oa(o,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Ve(this.latestValues)&&oa(o,this.latestValues),o}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==K.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==o;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:d}=this.options;if(!(!this.layout||!(c||d))){if(this.resolvedRelativeTargetAt=K.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=N(),this.relativeTargetOrigin=N(),yt(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),te(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=N(),this.targetWithTransforms=N()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),qu(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):te(this.target,this.layout.layoutBox),Ds(this.target,this.targetDelta)):te(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=N(),this.relativeTargetOrigin=N(),yt(this.relativeTargetOrigin,this.target,p.target),te(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ar(this.parent.latestValues)||_s(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const a=this.getLead(),o=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===K.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;te(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,p=this.treeScale.y;Ku(this.layoutCorrected,this.treeScale,this.path,o),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=N());const{target:f}=a;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ia(this.prevProjectionDelta.x,this.projectionDelta.x),ia(this.prevProjectionDelta.y,this.projectionDelta.y)),gt(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==p||!fa(this.projectionDelta.x,this.prevProjectionDelta.x)||!fa(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){const o=this.getStack();o&&o.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ze(),this.projectionDelta=ze(),this.projectionDeltaWithTransform=ze()}setAnimationOrigin(a,o=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=ze();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const p=N(),f=l?l.source:void 0,g=this.layout?this.layout.source:void 0,y=f!==g,b=this.getStack(),v=!b||b.members.length<=1,w=!!(y&&!v&&this.options.crossfade===!0&&!this.path.some(Ld));this.animationProgress=0;let C;this.mixTargetDelta=P=>{const T=P/1e3;ba(d.x,a.x,T),ba(d.y,a.y,T),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(yt(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Dd(this.relativeTarget,this.relativeTargetOrigin,p,T),C&&vd(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=N()),te(C,this.relativeTarget)),y&&(this.animationValues=c,hd(c,u,this.latestValues,T,w,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(!1),this.resumingFrom?.currentAnimation?.stop(!1),this.pendingAnimation&&(ve(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=M.update(()=>{Kt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Fe(0)),this.currentAnimation=od(this.motionValue,[0,1e3],{...a,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),a.onUpdate&&a.onUpdate(o)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(wd),this.currentAnimation.stop(!1)),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:o,target:l,layout:u,latestValues:c}=a;if(!(!o||!l||!u)){if(this!==a&&this.layout&&u&&ka(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||N();const d=H(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+d;const p=H(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+p}te(o,l),Ue(o,c),gt(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(a,o){this.sharedNodes.has(a)||this.sharedNodes.set(a,new bd),this.sharedNodes.get(a).add(o);const u=o.options.initialPromotionConfig;o.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(o):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){const{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:o,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let o=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const u={};l.z&&hr("z",a,u,this.animationValues);for(let c=0;c<dr.length;c++)hr(`rotate${dr[c]}`,a,u,this.animationValues),hr(`skew${dr[c]}`,a,u,this.animationValues);a.render();for(const c in u)a.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);a.scheduleRender()}getProjectionStyles(a){if(!this.instance||this.isSVG)return;if(!this.isVisible)return Cd;const o={visibility:""},l=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=Bt(a?.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none",o;const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){const f={};return this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=Bt(a?.pointerEvents)||""),this.hasProjected&&!Ve(this.latestValues)&&(f.transform=l?l({},""):"none",this.hasProjected=!1),f}const c=u.animationValues||u.latestValues;this.applyTransformsToTarget(),o.transform=xd(this.projectionDeltaWithTransform,this.treeScale,c),l&&(o.transform=l(c,o.transform));const{x:d,y:p}=this.projectionDelta;o.transformOrigin=`${d.origin*100}% ${p.origin*100}% 0`,u.animationValues?o.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const f in dt){if(c[f]===void 0)continue;const{correct:g,applyTo:y,isCSSVariable:b}=dt[f],v=o.transform==="none"?c[f]:g(c[f],u);if(y){const w=y.length;for(let C=0;C<w;C++)o[y[C]]=v}else b?this.options.visualElement.renderState.vars[f]=v:o[f]=v}return this.options.layoutId&&(o.pointerEvents=u===this?Bt(a?.pointerEvents)||"":"none"),o}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop(!1)),this.root.nodes.forEach(ya),this.root.sharedNodes.clear()}}}function kd(e){e.updateLayout()}function Sd(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,s=t.source!==e.layout.source;i==="size"?ee(c=>{const d=s?t.measuredBox[c]:t.layoutBox[c],p=H(d);d.min=n[c].min,d.max=d.min+p}):ka(i,t.layoutBox,n)&&ee(c=>{const d=s?t.measuredBox[c]:t.layoutBox[c],p=H(n[c]);d.max=d.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+p)});const a=ze();gt(a,n,t.layoutBox);const o=ze();s?gt(o,e.applyTransform(r,!0),t.measuredBox):gt(o,n,t.layoutBox);const l=!ca(a);let u=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:d,layout:p}=c;if(d&&p){const f=N();yt(f,t.layoutBox,d.layoutBox);const g=N();yt(g,n,p.layoutBox),ha(f,g)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=f,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Pd(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Ad(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ed(e){e.clearSnapshot()}function ya(e){e.clearMeasurements()}function jd(e){e.isLayoutDirty=!1}function Vd(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function va(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Rd(e){e.resolveTargetDelta()}function _d(e){e.calcProjection()}function Md(e){e.resetSkewAndRotation()}function Id(e){e.removeLeadSnapshot()}function ba(e,t,n){e.translate=I(t.translate,0,n),e.scale=I(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function xa(e,t,n,r){e.min=I(t.min,n.min,r),e.max=I(t.max,n.max,r)}function Dd(e,t,n,r){xa(e.x,t.x,n.x,r),xa(e.y,t.y,n.y,r)}function Ld(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Nd={duration:.45,ease:[.4,0,.1,1]},Ca=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),wa=Ca("applewebkit/")&&!Ca("chrome/")?Math.round:Q;function Ta(e){e.min=wa(e.min),e.max=wa(e.max)}function Od(e){Ta(e.x),Ta(e.y)}function ka(e,t,n){return e==="position"||e==="preserve-aspect"&&!Fu(pa(t),pa(n),.2)}function Bd(e){return e!==e.root&&e.scroll?.wasRoot}const Fd=ga({attachResizeListener:(e,t)=>pt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),pr={current:void 0},Sa=ga({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!pr.current){const e=new Fd({});e.mount(window),e.setOptions({layoutScroll:!0}),pr.current=e}return pr.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),qd={pan:{Feature:rd},drag:{Feature:nd,ProjectionNode:Sa,MeasureLayout:Xs}};function Pa(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&M.postRender(()=>s(t,ft(t)))}class Kd extends Ce{mount(){const{current:t}=this.node;t&&(this.unmount=gc(t,(n,r)=>(Pa(this.node,r,"Start"),i=>Pa(this.node,i,"End"))))}unmount(){}}class zd extends Ce{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=nt(pt(this.node.current,"focus",()=>this.onFocus()),pt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Aa(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&M.postRender(()=>s(t,ft(t)))}class $d extends Ce{mount(){const{current:t}=this.node;t&&(this.unmount=xc(t,(n,r)=>(Aa(this.node,r,"Start"),(i,{success:s})=>Aa(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const fr=new WeakMap,mr=new WeakMap,Ud=e=>{const t=fr.get(e.target);t&&t(e)},Gd=e=>{e.forEach(Ud)};function Wd({root:e,...t}){const n=e||document;mr.has(n)||mr.set(n,{});const r=mr.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Gd,{root:e,...t})),r[i]}function Yd(e,t,n){const r=Wd(t);return fr.set(e,n),r.observe(e),()=>{fr.delete(e),r.unobserve(e)}}const Hd={some:0,all:1};class Zd extends Ce{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Hd[i]},o=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),p=u?c:d;p&&p(l)};return Yd(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Xd(t,n))&&this.startObserver()}unmount(){}}function Xd({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Jd={inView:{Feature:Zd},tap:{Feature:$d},focus:{Feature:zd},hover:{Feature:Kd}},Qd={layout:{ProjectionNode:Sa,MeasureLayout:Xs}},gr={current:null},Ea={current:!1};function e1(){if(Ea.current=!0,!!an)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>gr.current=e.matches;e.addListener(t),t()}else gr.current=!1}const t1=new WeakMap;function n1(e,t,n){for(const r in t){const i=t[r],s=n[r];if(U(i))e.addValue(r,i);else if(U(s))e.addValue(r,Fe(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Fe(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ja=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class r1{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=On,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=Z.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,M.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=Ot(n),this.isVariantNode=as(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in d){const f=d[p];l[p]!==void 0&&U(f)&&f.set(l[p],!1)}}mount(t){this.current=t,t1.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Ea.current||e1(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:gr.current,process.env.NODE_ENV!=="production"&&dn(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ve(this.notifyUpdate),ve(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Be.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&M.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in qe){const n=qe[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):N()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<ja.length;r++){const i=ja[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,a=t[s];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=n1(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Fe(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Kr(r)||$r(r))?r=parseFloat(r):!Tc(r)&&xe.test(n)&&(r=$i(t,n)),this.setBaseTarget(t,U(r)?r.get():r)),U(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=Qn(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!U(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new un),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Va extends r1{constructor(){super(...arguments),this.KeyframeResolver=dc}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;U(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ra(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}function i1(e){return window.getComputedStyle(e)}class s1 extends Va{constructor(){super(...arguments),this.type="html",this.renderInstance=Ra}readValueFromInstance(t,n){if(Be.has(n))return this.projection?.isProjecting?Mn(n):Vl(t,n);{const r=i1(t),i=(mn(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Bs(t,n)}build(t,n,r){Zn(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return er(t,n,r)}}const _a=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function a1(e,t,n,r){Ra(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(_a.has(i)?i:Hn(i),t.attrs[i])}class o1 extends Va{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=N}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Be.has(n)){const r=zi(n);return r&&r.default||0}return n=_a.has(n)?n:Hn(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return vs(t,n,r)}build(t,n,r){ps(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){a1(t,n,r,i)}mount(t){this.isSVGTag=ms(t.tagName),super.mount(t)}}const l1=(e,t)=>Jn(e)?new o1(t):new s1(t,{allowProjection:e!==m.Fragment}),c1=au({..._u,...Jd,...qd,...Qd},l1),bt=_c(c1),zt={initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{height:{duration:.2},opacity:{duration:.2}}},$t={initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{height:{duration:.2},opacity:{duration:.2}}},Ut=({label:e,error:t,disabled:n,labelError:r,endContent:i,styles:s,onFocus:a,onBlur:o,...l})=>{const u=m.useRef(null),[c,d]=m.useState(!1),p=t||r,f=m.useCallback(()=>u.current?.focus(),[]),g=m.useCallback(v=>{d(!0),a?.(v)},[a]),y=m.useCallback(v=>{d(!1),o?.(v)},[o]),b=!p&&!n&&c&&(s?.container?.focus||ce.inputFocus);return h.jsxs("div",{children:[e&&h.jsxs("label",{htmlFor:l.id,className:ye(ce.label,s?.label?.className),style:s?.label?.styles,children:[h.jsx("span",{className:ce.label,children:e},e),h.jsx(ns,{mode:"wait",children:r&&!n&&h.jsx(bt.span,{initial:$t.initial,animate:$t.animate,exit:$t.exit,transition:$t.transition,className:ce.labelError,children:r},t)})]}),h.jsxs("div",{className:ye(ce.inputContainer,p&&ce.errorInput,b,s?.container?.className),style:s?.container?.styles,onClick:f,children:[h.jsx("input",{...l,ref:u,onFocus:g,onBlur:y,style:s?.field?.styles,className:ye(ce.input,l.className,s?.field?.className)}),i&&h.jsx("div",{className:ce.endContent,children:i})]}),h.jsx(ns,{mode:"wait",children:t&&!n&&h.jsx(bt.div,{initial:zt.initial,animate:zt.animate,exit:zt.exit,transition:zt.transition,className:ye(ce.error,s?.error?.className),style:s?.error?.styles,children:t})})]})},u1={width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},Gt=({className:e})=>h.jsx("div",{style:u1,children:h.jsx("svg",{className:e,focusable:"false",fill:"#dc2626",color:"#dc2626",height:"12",viewBox:"0 0 12 12",width:"12",children:h.jsxs("g",{fill:"none",fillRule:"evenodd",transform:"matrix(1 0 0 -1 0 12)",children:[h.jsx("circle",{cx:"6",cy:"3.2",fill:"currentColor",r:"1"}),h.jsxs("g",{stroke:"currentColor",children:[h.jsx("circle",{cx:"6",cy:"6",r:"5.5"}),h.jsx("path",{d:"m6 9.2v-3.2",strokeLinecap:"round",strokeLinejoin:"round"})]})]})})}),d1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},h1={width:"100%",height:"100%"},p1=({className:e})=>h.jsx("div",{style:d1,className:e,children:h.jsxs("svg",{style:h1,focusable:"false",viewBox:"0 0 32 21",role:"img","aria-label":"CVC",children:[h.jsx("title",{children:"CVC"}),h.jsx("g",{fill:"none",fillRule:"evenodd",children:h.jsxs("g",{fill:"#565656",children:[h.jsxs("g",{transform:"translate(0 2)",children:[h.jsx("path",{d:"M21.68 0H2c-.92 0-2 1.06-2 2v15c0 .94 1.08 2 2 2h25c.92 0 2-1.06 2-2V9.47a5.98 5.98 0 0 1-3 1.45V11c0 .66-.36 1-1 1H3c-.64 0-1-.34-1-1v-1c0-.66.36-1 1-1h17.53a5.98 5.98 0 0 1 1.15-9z",opacity:".2"}),h.jsx("path",{d:"M19.34 3H0v3h19.08a6.04 6.04 0 0 1 .26-3z",opacity:".3"})]}),h.jsx("g",{transform:"translate(18)",children:h.jsx("path",{d:"M7 14A7 7 0 1 1 7 0a7 7 0 0 1 0 14zM4.22 4.1h-.79l-1.93.98v1l1.53-.8V9.9h1.2V4.1zm2.3.8c.57 0 .97.32.97.78 0 .5-.47.85-1.15.85h-.3v.85h.36c.72 0 1.21.36 1.21.88 0 .5-.48.84-1.16.84-.5 0-1-.16-1.52-.47v1c.56.24 1.12.37 1.67.37 1.31 0 2.21-.67 2.21-1.64 0-.68-.42-1.23-1.12-1.45.6-.2.99-.73.99-1.33C8.68 4.64 7.85 4 6.65 4a4 4 0 0 0-1.57.34v.98c.48-.27.97-.42 1.44-.42zm4.32 2.18c.73 0 1.24.43 1.24.99 0 .59-.51 1-1.24 1-.44 0-.9-.14-1.37-.43v1.03c.49.22.99.33 1.48.33.26 0 .5-.04.73-.1.52-.85.82-1.83.82-2.88l-.02-.42a2.3 2.3 0 0 0-1.23-.32c-.18 0-.37.01-.57.04v-1.3h1.44a5.62 5.62 0 0 0-.46-.92H9.64v3.15c.4-.1.8-.17 1.2-.17z"})})]})})]})}),f1=({className:e})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:h.jsx("polyline",{points:"15 18 9 12 15 6"})}),m1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},g1={width:"100%",height:"100%"},y1=({className:e})=>h.jsx("div",{style:m1,className:e,children:h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 20",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:g1,children:[h.jsx("rect",{x:"1",y:"1",width:"28",height:"18",rx:"2",ry:"2"}),h.jsx("line",{x1:"1",y1:"8",x2:"27",y2:"8"})]})}),v1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},b1={width:"100%",height:"100%"},x1=({className:e})=>h.jsx("div",{style:v1,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"24px",height:"16px",viewBox:"0 0 24 16",version:"1.1",style:b1,children:h.jsx("g",{id:"319",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:h.jsx("g",{id:"New-Icons",transform:"translate(-80.000000, -280.000000)",fillRule:"nonzero",children:h.jsx("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)",children:h.jsx("g",{id:"Color",transform:"translate(0.000000, 80.000000)",children:h.jsxs("g",{id:"Visa",transform:"translate(40.000000, 0.000000)",children:[h.jsx("rect",{id:"Container",strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF",x:"0.25",y:"0.25",width:"23.5",height:"15.5",rx:"2"}),h.jsx("path",{d:"M2.78773262,5.91443732 C2.26459089,5.62750595 1.6675389,5.39673777 1,5.23659312 L1.0280005,5.1118821 L3.76497922,5.1118821 C4.13596254,5.12488556 4.43699113,5.23650585 4.53494636,5.63071135 L5.12976697,8.46659052 L5.31198338,9.32072617 L6.97796639,5.1118821 L8.77678896,5.1118821 L6.10288111,11.2775284 L4.30396552,11.2775284 L2.78773262,5.91443732 L2.78773262,5.91443732 Z M10.0999752,11.2840738 L8.39882877,11.2840738 L9.46284763,5.1118821 L11.163901,5.1118821 L10.0999752,11.2840738 Z M16.2667821,5.26277458 L16.0354292,6.59558538 L15.881566,6.53004446 C15.5737466,6.40524617 15.1674138,6.28053516 14.6143808,6.29371316 C13.942741,6.29371316 13.6415263,6.56277129 13.6345494,6.82545859 C13.6345494,7.11441463 13.998928,7.3048411 14.5939153,7.58725177 C15.5740257,8.02718756 16.0286384,8.56556562 16.0218476,9.26818871 C16.0080799,10.5486366 14.8460128,11.376058 13.0610509,11.376058 C12.2978746,11.3694253 11.5627918,11.2180965 11.163808,11.0475679 L11.4018587,9.66204513 L11.6258627,9.76066195 C12.1788958,9.99070971 12.5428092,10.0889775 13.221984,10.0889775 C13.7117601,10.0889775 14.2368857,9.89837643 14.2435835,9.48488392 C14.2435835,9.21565125 14.0198586,9.01850486 13.3617074,8.7164581 C12.717789,8.42086943 11.8568435,7.92848346 11.8707973,7.04197926 C11.8780532,5.84042483 13.0610509,5 14.7409877,5 C15.3990458,5 15.9312413,5.13788902 16.2667821,5.26277458 Z M18.5277524,9.0974856 L19.941731,9.0974856 C19.8717762,8.78889347 19.549631,7.31147374 19.549631,7.31147374 L19.4307452,6.77964104 C19.3467437,7.00942698 19.1998574,7.38373457 19.2069273,7.37055657 C19.2069273,7.37055657 18.6678479,8.74290137 18.5277524,9.0974856 Z M20.6276036,5.1118821 L22,11.2839865 L20.4249023,11.2839865 C20.4249023,11.2839865 20.2707601,10.5748181 20.221922,10.3581228 L18.0377903,10.3581228 C17.9746264,10.5221933 17.6807607,11.2839865 17.6807607,11.2839865 L15.8957988,11.2839865 L18.4226343,5.62399144 C18.5977072,5.22341512 18.9059917,5.1118821 19.3117663,5.1118821 L20.6276036,5.1118821 L20.6276036,5.1118821 Z",id:"Shape",fill:"#1434CB"})]})})})})})})}),C1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},w1={width:"100%",height:"100%"},T1=({className:e})=>h.jsx("div",{style:C1,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",viewBox:"0 0 24 16",width:"24",style:w1,children:h.jsxs("g",{fill:"none",fillRule:"evenodd",children:[h.jsx("rect",{fill:"#252525",height:"16",rx:"2",width:"24"}),h.jsx("circle",{cx:"9",cy:"8",fill:"#eb001b",r:"5"}),h.jsx("circle",{cx:"15",cy:"8",fill:"#f79e1b",r:"5"}),h.jsx("path",{d:"m12 3.99963381c1.2144467.91220633 2 2.36454836 2 4.00036619s-.7855533 3.0881599-2 4.0003662c-1.2144467-.9122063-2-2.36454837-2-4.0003662s.7855533-3.08815986 2-4.00036619z",fill:"#ff5f00"})]})})}),k1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},S1={width:"100%",height:"100%"},P1=({className:e})=>h.jsx("div",{style:k1,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"24px",height:"16px",viewBox:"0 0 24 16",version:"1.1",style:S1,children:h.jsx("g",{id:"319",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:h.jsx("g",{id:"New-Icons",transform:"translate(-320.000000, -280.000000)",fillRule:"nonzero",children:h.jsx("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)",children:h.jsx("g",{id:"Color",transform:"translate(0.000000, 80.000000)",children:h.jsxs("g",{id:"Diners-Club",transform:"translate(280.000000, 0.000000)",children:[h.jsx("path",{d:"M21.9972414,15.749927 L21.999381,15.7499362 C22.9544683,15.7581106 23.73806,14.9772525 23.75,14.0041555 L23.7500083,2.00630219 C23.7461702,1.53568921 23.5588633,1.08617106 23.2297297,0.756801782 C22.9014319,0.428268884 22.4589161,0.246148853 21.9972414,0.250070854 L2.00063,0.250061791 C1.54108393,0.246148853 1.09856813,0.428268884 0.77027028,0.756801782 C0.441136651,1.08617106 0.253829819,1.53568921 0.25,2.00426336 L0.249991686,13.9936957 C0.253829819,14.4643086 0.441136651,14.9138268 0.77027028,15.2431961 C1.09856813,15.571729 1.54108393,15.753849 2.00275862,15.749927 L21.9972414,15.749927 Z M21.996203,16.249927 C21.9958359,16.249924 21.9954688,16.249921 21.9951018,16.2499178 L21.9972414,16.249927 L21.996203,16.249927 Z",id:"shape",strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF"}),h.jsx("path",{d:"M10.0021142,2.05179033 L10.0021142,2.03579033 L14.0021142,2.03579033 L14.0021142,2.05179033 C17.1375481,2.28122918 19.5642283,4.89197286 19.5642283,8.03579033 C19.5642283,11.1796078 17.1375481,13.7903515 14.0021142,14.0197903 L14.0021142,14.0357903 L10.0021142,14.0357903 L10.0021142,14.0197903 C6.86668021,13.7903515 4.44,11.1796078 4.44,8.03579033 C4.44,4.89197286 6.86668021,2.28122918 10.0021142,2.05179033 Z",id:"shape",fill:"#0165AC"}),h.jsx("path",{d:"M11.6021142,11.4277903 C13.0374002,10.9175027 13.9961556,9.55908923 13.9961556,8.03579033 C13.9961556,6.51249143 13.0374002,5.15407792 11.6021142,4.64379033 L11.6021142,11.4277903 L11.6021142,11.4277903 Z M9.20211417,4.64379033 C7.76682809,5.15407792 6.80807271,6.51249143 6.80807271,8.03579033 C6.80807271,9.55908923 7.76682809,10.9175027 9.20211417,11.4277903 L9.20211417,4.64379033 L9.20211417,4.64379033 Z M10.4021142,13.2357903 C7.53023347,13.2357903 5.20211417,10.907671 5.20211417,8.03579033 C5.20211417,5.16390963 7.53023347,2.83579033 10.4021142,2.83579033 C13.2739949,2.83579033 15.6021142,5.16390963 15.6021142,8.03579033 C15.6021142,10.907671 13.2739949,13.2357903 10.4021142,13.2357903 Z",id:"shape",fill:"#FFFFFF"})]})})})})})})}),A1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},E1={width:"100%",height:"100%"},j1=({className:e})=>h.jsx("div",{style:A1,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",viewBox:"0 0 23 16",width:"23",style:E1,children:h.jsxs("g",{fill:"none",children:[h.jsx("path",{d:"m.20535714 16h4.51785715c1.0278125 0 2.25892857-1.1946667 2.25892857-2.1333333v-13.8666667h-4.51785715c-1.0278125 0-2.25892857 1.19466667-2.25892857 3.2z",fill:"#047ab1"}),h.jsx("path",{d:"m2.76924107 10.816c-.86733559.0001606-1.73039558-.1147397-2.56388393-.3413333v-1.17333337c.64678874.37770431 1.38610045.59084099 2.14598215.61866667.8696875 0 1.35535714-.576 1.35535714-1.36533333v-3.22133334h2.14598214v3.22133334c0 1.25866666-.70026786 2.26133333-3.0834375 2.26133333z",fill:"#fff"}),h.jsx("path",{d:"m8.11160714 16h4.51785716c1.0278125 0 2.2589286-1.1946667 2.2589286-2.1333333v-13.8666667h-4.5178572c-1.02781249 0-2.25892856 1.19466667-2.25892856 3.2z",fill:"#d42d06"}),h.jsx("path",{d:"m8.11160714 6.08c.65508929-.59733333 1.78455357-.97066667 3.61428576-.88533333.9939285.04266666 2.0330357.32 2.0330357.32v1.184c-.5943231-.3394747-1.2623758-.54734656-1.9539732-.608-1.3892411-.11733334-2.23633933.61866666-2.23633933 1.90933333s.84709823 2.0266667 2.23633933 1.92c.6920185-.06606555 1.3596342-.27744592 1.9539732-.61866667v1.17333337s-1.0391072.288-2.0330357.3306666c-1.82973219.0853334-2.95919647-.288-3.61428576-.8853333z",fill:"#fff"}),h.jsx("path",{d:"m16.0178571 16h4.5178572c1.0278125 0 2.2589286-1.1946667 2.2589286-2.1333333v-13.8666667h-4.5178572c-1.0278125 0-2.2589286 1.19466667-2.2589286 3.2z",fill:"#67b637"}),h.jsx("path",{d:"m21.6651786 9.28c0 .8533333-.7002679 1.3866667-1.6377232 1.3866667h-4.0095983v-5.33333337h3.6481697l.2597768.01066667c.8245089.04266667 1.4344196.50133333 1.4344196 1.29066667 0 .61866666-.4179018 1.152-1.1746428 1.28v.032c.8358035.05333333 1.4795982.55466666 1.4795982 1.33333333zm-2.880134-3.104c-.0486104-.00686658-.0976798-.01043129-.1468303-.01066667h-1.3553572v1.344h1.5021875c.2823661-.064.5195536-.30933333.5195536-.672 0-.36266666-.2371875-.608-.5195536-.66133333zm.1694197 2.176c-.059755-.00886168-.1202559-.01243275-.1807143-.01066667h-1.4908929v1.46133334h1.4908929l.1807143-.02133334c.2823661-.064.5195536-.34133333.5195536-.71466666 0-.37333334-.2258929-.64-.5195536-.71466667z",fill:"#fff"})]})})}),V1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},R1={width:"100%",height:"100%"},_1=({className:e})=>h.jsx("div",{style:V1,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"24px",height:"16px",viewBox:"0 0 24 16",version:"1.1",style:R1,children:h.jsx("g",{id:"319",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:h.jsx("g",{id:"New-Icons",transform:"translate(-280.000000, -280.000000)",fillRule:"nonzero",children:h.jsx("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)",children:h.jsx("g",{id:"Color",transform:"translate(0.000000, 80.000000)",children:h.jsxs("g",{id:"Discover",transform:"translate(240.000000, 0.000000)",children:[h.jsx("path",{d:"M21.9972414,15.749927 L21.999381,15.7499362 C22.9544683,15.7581106 23.73806,14.9772525 23.75,14.0041555 L23.7500083,2.00630219 C23.7461702,1.53568921 23.5588633,1.08617106 23.2297297,0.756801782 C22.9014319,0.428268884 22.4589161,0.246148853 21.9972414,0.250070854 L2.00063,0.250061791 C1.54108393,0.246148853 1.09856813,0.428268884 0.77027028,0.756801782 C0.441136651,1.08617106 0.253829819,1.53568921 0.25,2.00426336 L0.249991686,13.9936957 C0.253829819,14.4643086 0.441136651,14.9138268 0.77027028,15.2431961 C1.09856813,15.571729 1.54108393,15.753849 2.00275862,15.749927 L21.9972414,15.749927 Z M21.996203,16.249927 C21.9958359,16.249924 21.9954688,16.249921 21.9951018,16.2499178 L21.9972414,16.249927 L21.996203,16.249927 Z",id:"shape",strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF"}),h.jsx("path",{d:"M12.6124138,15.9999283 L21.9972414,15.9999283 C22.5240217,16.0043364 23.0309756,15.7992919 23.4065697,15.4299059 C23.7821638,15.06052 23.9956285,14.5570537 24,14.0302731 L24,11.6716524 C20.4561668,13.7059622 16.6127929,15.1667795 12.6124138,15.9999283 L12.6124138,15.9999283 Z",id:"shape",fill:"#F27712"}),h.jsx("path",{d:"M23.1724138,9.29647999 L22.32,9.29647999 L21.36,8.03027309 L21.2689655,8.03027309 L21.2689655,9.29647999 L20.5737931,9.29647999 L20.5737931,6.1516524 L21.6,6.1516524 C22.4027586,6.1516524 22.8662069,6.48268688 22.8662069,7.07854895 C22.8662069,7.56682481 22.5765517,7.88130757 22.0551724,7.98061792 L23.1724138,9.29647999 Z M22.1462069,7.10337654 C22.1462069,6.79716964 21.9144828,6.63992826 21.4841379,6.63992826 L21.2689655,6.63992826 L21.2689655,7.5916524 L21.4675862,7.5916524 C21.9144828,7.5916524 22.1462069,7.42613516 22.1462069,7.10337654 L22.1462069,7.10337654 Z M18.1406897,6.1516524 L20.1103448,6.1516524 L20.1103448,6.68130757 L18.8358621,6.68130757 L18.8358621,7.38475585 L20.0606897,7.38475585 L20.0606897,7.92268688 L18.8358621,7.92268688 L18.8358621,8.77510068 L20.1103448,8.77510068 L20.1103448,9.30475585 L18.1406897,9.30475585 L18.1406897,6.1516524 Z M15.9062069,9.37923861 L14.4,6.14337654 L15.1613793,6.14337654 L16.1131034,8.26199723 L17.0731034,6.14337654 L17.817931,6.14337654 L16.2951724,9.37923861 L15.9227586,9.37923861 L15.9062069,9.37923861 Z M9.60827586,9.37096274 C8.54896552,9.37096274 7.72137931,8.65096274 7.72137931,7.71579033 C7.72137931,6.8054455 8.56551724,6.06889378 9.62482759,6.06889378 C9.92275862,6.06889378 10.1710345,6.12682481 10.4772414,6.25923861 L10.4772414,6.98751447 C10.2453534,6.75969251 9.93335245,6.63192067 9.60827586,6.6316524 C8.9462069,6.6316524 8.44137931,7.1116524 8.44137931,7.71579033 C8.44137931,8.35303171 8.93793103,8.80820412 9.64137931,8.80820412 C9.95586207,8.80820412 10.1958621,8.70889378 10.4772414,8.46061792 L10.4772414,9.18889378 C10.1627586,9.32130757 9.89793103,9.37096274 9.60827586,9.37096274 L9.60827586,9.37096274 Z M7.5062069,8.33647999 C7.5062069,8.94889378 7.00137931,9.37096274 6.27310345,9.37096274 C5.74344828,9.37096274 5.36275862,9.18889378 5.04,8.77510068 L5.49517241,8.38613516 C5.65241379,8.66751447 5.91724138,8.80820412 6.24827586,8.80820412 C6.56275862,8.80820412 6.7862069,8.6178593 6.7862069,8.36958343 C6.7862069,8.22889378 6.72,8.12130757 6.57931034,8.03854895 C6.42504922,7.96369158 6.26441119,7.90275992 6.09931034,7.85647999 C5.44551724,7.64958343 5.22206897,7.42613516 5.22206897,6.98751447 C5.22206897,6.47441102 5.70206897,6.0854455 6.33103448,6.0854455 C6.72827586,6.0854455 7.08413793,6.20958343 7.38206897,6.44130757 L7.01793103,6.85510068 C6.87360928,6.69688076 6.66932728,6.60675635 6.45517241,6.60682481 C6.15724138,6.60682481 5.94206897,6.75579033 5.94206897,6.95441102 C5.94206897,7.11992826 6.0662069,7.21096274 6.48,7.3516524 C7.27448276,7.59992826 7.5062069,7.8316524 7.5062069,8.34475585 L7.5062069,8.33647999 Z M4.08827586,6.1516524 L4.78344828,6.1516524 L4.78344828,9.30475585 L4.08827586,9.30475585 L4.08827586,6.1516524 Z M1.8537931,9.30475585 L0.827586207,9.30475585 L0.827586207,6.1516524 L1.8537931,6.1516524 C2.97931034,6.1516524 3.75724138,6.79716964 3.75724138,7.72406619 C3.75724138,8.19579033 3.52551724,8.64268688 3.12,8.94061792 C2.77241379,9.18889378 2.38344828,9.30475585 1.84551724,9.30475585 L1.8537931,9.30475585 Z M2.66482759,6.9378593 C2.43310345,6.75579033 2.16827586,6.68958343 1.71310345,6.68958343 L1.52275862,6.68958343 L1.52275862,8.77510068 L1.71310345,8.77510068 C2.16,8.77510068 2.44137931,8.69234206 2.66482759,8.52682481 C2.90482759,8.32820412 3.04551724,8.03027309 3.04551724,7.72406619 C3.04551724,7.4178593 2.90482759,7.12820412 2.66482759,6.9378593 Z",id:"shape",fill:"#000000"}),h.jsx("path",{d:"M12.4137931,6.06889378 C11.5034483,6.06889378 10.7586207,6.79716964 10.7586207,7.69923861 C10.7586207,8.65923861 11.4703448,9.37923861 12.4137931,9.37923861 C13.3406897,9.37923861 14.0689655,8.65096274 14.0689655,7.72406619 C14.0689655,6.79716964 13.3489655,6.06889378 12.4137931,6.06889378 Z",id:"shape",fill:"#F27712"})]})})})})})})}),M1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},I1={width:"100%",height:"100%"},D1=({className:e})=>h.jsx("div",{style:M1,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 16",style:I1,children:h.jsxs("g",{fill:"none",fillRule:"evenodd",children:[h.jsx("rect",{fill:"#016fd0",height:"16",rx:"2",width:"24"}),h.jsx("path",{d:"m13.7640663 13.3938564v-5.70139231l10.1475359.00910497v1.57489503l-1.1728619 1.25339231 1.1728619 1.2648839v1.6083094h-1.8726188l-.9951823-1.0981657-.9881105 1.1023204z",fill:"#fffffe"}),h.jsx("path",{d:"m14.4418122 12.7687956v-4.448884h3.7722872v1.02488398h-2.550895v.69569062h2.4900774v1.0078232h-2.4900774v.6833149h2.550895v1.0371713z",fill:"#016fd0"}),h.jsx("path",{d:"m18.1952707 12.7687956 2.087337-2.2270055-2.0874254-2.2217901h1.6156464l1.2754917 1.41003315 1.2791161-1.41003315h1.5461657v.03500552l-2.0428729 2.18678458 2.0428729 2.1638895v.063116h-1.5617237l-1.2981216-1.4241768-1.2847735 1.4241768z",fill:"#016fd0"}),h.jsx("path",{d:"m14.2373481 2.6319558h2.4460552l.8591381 1.95085083v-1.95085083h3.0198453l.5207514 1.46156906.5225194-1.46156906h2.3059447v5.70139227h-12.1865193z",fill:"#fffffe"}),h.jsxs("g",{fill:"#016fd0",children:[h.jsx("path",{d:"m14.7004641 3.25135912-1.9740111 4.44517127h1.3539006l.3724199-.89016575h2.0179447l.3721547.89016575h1.3875801l-1.96579-4.44517127zm.1696353 2.55743646.592-1.41507182.5915581 1.41507182z"}),h.jsx("path",{d:"m18.2119779 7.69573481v-4.44508288l1.903116.00654144.9792707 2.73272928.9856354-2.73927072h1.8316022v4.44508288l-1.1786077.01043094v-3.05334807l-1.1125746 3.04291713h-1.0758011l-1.1356464-3.05334807v3.05334807z"})]})]})})}),L1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},N1={width:"100%",height:"100%"},O1=({className:e})=>h.jsx("div",{style:L1,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",viewBox:"0 0 24 16",width:"24",style:N1,children:h.jsxs("g",{fill:"none",children:[h.jsx("path",{d:"m4.54588254.00006676h5.79377466c.8087588 0 1.3117793.72566459 1.1231113 1.61890981l-2.69741608 12.74856503c-.19036262.8901361-1.00010994 1.6164225-1.80943362 1.6164225h-5.79320976c-.80762905 0-1.31177937-.7262864-1.12311135-1.6164225l2.69854581-12.74856503c.18866803-.89324522.9979917-1.61890981 1.80773904-1.61890981",fill:"#dd2423"}),h.jsx("path",{d:"m9.85756516.00006676h6.66269264c.8086174 0 .4439911.72566459.2537697 1.61890981l-2.6969924 12.74856503c-.1892329.8901361-.1302036 1.6164225-.9405158 1.6164225h-6.66269248c-.81031221 0-1.31177939-.7262864-1.12141672-1.6164225l2.69685116-12.74856503c.19149238-.89324522.99912144-1.61890981 1.8083039-1.61890981",fill:"#16315e"}),h.jsx("path",{d:"m16.2559813.00006676h5.7937745c.8098886 0 1.3129092.72566459 1.1226878 1.61890981l-2.6969924 12.74856503c-.1903626.8901361-1.0006749 1.6164225-1.8104222 1.6164225h-5.7910915c-.8103122 0-1.3129091-.7262864-1.1231113-1.6164225l2.697416-12.74856503c.1886681-.89324522.9974268-1.61890981 1.8077391-1.61890981",fill:"#036862"}),h.jsx("path",{d:"m6.05901135 4.08561434c-.59580116.00668457-.77175951 0-.8279645-.01461278-.02160646.11301588-.42365577 2.15460824-.42478553 2.15631824-.08656699.4130443-.14955043.7074763-.36349659.89759795-.12144798.1105286-.26323144.1638497-.42760986.1638497-.26421996 0-.41814822-.1444178-.44399122-.41832975l-.00494264-.09405035s.08049458-.55326485.08049458-.55637395c0 0 .42196112-1.86048711.49751306-2.10641713.00395412-.01399096.00508387-.02129736.00607239-.02798193-.82132725.00792821-.9669236 0-.97695012-.01461278-.00550753.02005371-.025843.13540142-.025843.13540142l-.43085788 2.09693437-.03699927.1778407-.07159782.5817131c0 .1725552.03078565.31339755.09207452.4324762.19629382.37760055.75622549.4341862 1.07297875.4341862.40812169 0 .79096525-.09544945 1.04967767-.26971465.44907509-.2921002.56656897-.74867195.67135315-1.15440985l.04857917-.20815445s.43467082-1.93230737.5085281-2.18367833c.00282441-.01399096.00395413-.02129736.00776704-.02798193zm1.47893982 1.55881086c-.10478422 0-.29627659.0279819-.46828081.12078865-.0624186.0352883-.12144796.07601755-.18372539.11659135l.056205-.22338905-.03078563-.03762015c-.36476761.08130305-.44639193.0921849-.78333945.14441785l-.02824374.0206755c-.03911752.3570805-.07385733.6255515-.21888878 1.32743145-.05521646.25867735-.11255121.519842-.17002718.7778975l.01553403.03280105c.34527946-.0200537.45006363-.0200537.75015309-.0146128l.02428961-.0290701c.03812903-.21499445.04307165-.2653619.12752039-.70079175.03968242-.20644445.1224365-.66006255.16324868-.8215804.07498704-.038242.14898558-.07586215.21959486-.07586215.16819135 0 .14771465.1615179.14121858.22587635-.00720213.1080413-.06849101.4609245-.13133325.76390655l-.04194194.19556255c-.02923223.14441785-.06128888.2847938-.09052111.427968l.01270966.02860375c.34033679-.0200537.44413246-.0200537.73476028-.0146128l.0341749-.0290701c.0525333-.3357831.06792611-.42563615.16113038-.9145426l.04688457-.22463265c.09108601-.43962715.13684082-.6625498.06792616-.8441214-.07286879-.2034908-.24769738-.2526146-.40826291-.2526146zm1.65214439.4602871c-.18090101.038242-.29627659.0637366-.41094606.08021485-.11368097.02005375-.22453757.038242-.39936616.06498025l-.01383941.0138355-.01270966.01103735c-.01821719.14332965-.0309269.26722735-.05507525.41288885-.02047669.150636-.05196844.3217921-.10323077.56772215-.03968243.18825615-.06015913.25385825-.08275412.32008215-.0220301.06622385-.04631967.1305823-.09094476.31572935l.01045019.0171001.00875554.01570095c.1633899-.00855005.27029237-.0146128.38016043-.01570095.10972684-.00435275.22340776 0 .39936611.00108815l.01539286-.0138355.01652257-.0152346c.02541932-.1669588.02923224-.21188535.04476626-.29334385.01539282-.0873658.04194194-.20830985.10704369-.53134565.03078568-.1517242.06510179-.30298205.09701718-.4578154.03318641-.1542115.06792612-.30609115.10097127-.45781535l-.00494263-.0183437zm.00385525-.620608c-.1643784-.10679765-.45288796-.07290845-.64706354.0746185-.19361063.14457325-.21564072.34977405-.05182718.4579708.16155403.10384405.45119334.0729085.64367421-.0758621.19318708-.14768235.21733543-.3510177.05521651-.4567272zm.99410809 2.473369c.3325698 0 .6734715-.1008904.9300657-.400297.1974235-.2428209.2879446-.60409865.3192952-.7528692.1021011-.4931037.0225949-.7233328-.0772466-.8635533-.1516687-.21375085-.4197016-.28230655-.697761-.28230655-.1672028 0-.5654392.01818825-.87654364.33391765-.22340786.22774175-.32663863.5367866-.38891601.83308405-.06284224.3018939-.13514621.84536505.31887154 1.0476122.14008884.0662239.34203141.08441215.47223481.08441215zm-.0259841-1.10948335c.0766817-.3734032.1672028-.6868008.3982364-.6868008.1810422 0 .1941755.23318275.1136809.6078296-.0144042.0831685-.0804945.3923688-.1698859.5240393-.0624186.09715945-.1362759.15607695-.2179003.15607695-.0242896 0-.1687562 0-.1710157-.23613635-.0011297-.11659135.0204767-.23567.0468846-.3650087zm2.1066988 1.06146325.0259841-.0290701c.0368581-.21499445.0429305-.2655174.1245549-.70079175.0408121-.20644445.1252608-.66006255.1649433-.82158045.0751282-.0383974.1478558-.07601755.2207245-.07601755.1670616 0 .1467262.1615179.140089.2258763-.0060725.1081968-.0673613.4609245-.1313334.76390655l-.0396824.1955626c-.030362.14457325-.0634071.2847938-.0926394.42812345l.0127097.02860375c.3414665-.02005375.441308-.02005375.7336305-.0146128l.0353047-.0290701c.0512623-.33593855.0651017-.42579165.1611304-.9145426l.0457548-.2247881c.0915096-.43962715.1378292-.66239435.0700444-.84396595-.0749871-.2034908-.2509454-.2526146-.4092515-.2526146-.1049254 0-.2974063.02782645-.468422.12078865-.0611476.0352883-.1224365.0758621-.1825956.11659135l.0523921-.22338905-.0281025-.0377756c-.3646263.0814585-.4479453.09234035-.7844692.1445733l-.025843.0206755c-.0408122.35708045-.0739986.62539605-.21903 1.32743145-.0552164.25867735-.1125512.51984195-.1698859.7778975l.0153928.03280105c.3458442-.02005375.4490751-.02005375.7485997-.0146128zm2.5088186.01453505c.0214652-.1153477.1489856-.7990394.1501153-.7990394 0 0 .1085971-.50165375.1152345-.519842 0 0 .0341748-.0522329.0683497-.07290845h.0502738c.4743532 0 1.0099953 0 1.4298381-.3399804.2856852-.2331827.4809905-.57751585.5681223-.99600105.022595-.1026004.0392588-.22463269.0392588-.34666496 0-.16027425-.0292322-.3188385-.1136809-.44273624-.2140874-.32972035-.6404262-.3357831-1.132573-.33827039-.0015534 0-.2426136.00248729-.2426136.00248729-.629976.00855003-.8826161.00606275-.9864117-.00792821-.0087556.05052291-.0252782.14037599-.0252782.14037599s-.2256673 1.15130077-.2256673 1.15316622c0 0-.5400198 2.4477966-.5654392 2.5631443.5500464-.00730635.7755725-.00730635.8704714.0041973zm.4181482-2.0451678s.2399304-1.14896892.2388007-1.14461618l.0077669-.05891749.0033893-.04492654.0958874.01088185s.4948299.046792.5064099.04803565c.1953052.0831685.2757998.29754113.2195948.57736036-.0512623.2557237-.2019425.4707182-.3955532.5745622-.1594358.0879876-.3547411.095294-.5559775.095294h-.1302035zm1.4938667.99045135c-.0634072.2975411-.136276.8410123.3154822 1.0347094.1440429.0674675.2731167.0875212.4043088.08021485.1385355-.00823915.2669031-.08472305.3858092-.1947853-.0107326.04523745-.0214652.0904749-.0321978.1358678l.0204766.0290701c.324944-.01507915.4257741-.01507915.7778319-.0121255l.0319154-.0267383c.0514036-.332674.0998416-.65570975.2334344-1.2921431.0651017-.30484755.1300622-.6067414.1968587-.9103453l-.0104501-.03342285c-.3634967.0741521-.4606551.09000855-.8103124.1445733l-.026549.0237846c-.0035305.0309356-.0072021.0606275-.0105914.09031945-.0543692-.0966931-.1331691-.17923975-.2547583-.2306954-.1554817-.0673121-.5206729.01943185-.8346018.33407305-.2205834.2246327-.3264973.53243385-.3866564.8276432zm.7634275.01818825c.0778115-.3667187.1672028-.67700715.3988014-.67700715.1464436 0 .2235489.14877055.2078737.40247335-.0124272.06327025-.025843.1299605-.0418008.20535625-.0231597.10897405-.0482967.21701535-.0727275.32521215-.0248545.07399665-.0538043.143796-.0855784.1902771-.0595943.09296215-.2013777.150636-.2830021.150636-.0231599 0-.1660731 0-.1710157-.23193905-.0011298-.11550315.0204767-.23442635.0474494-.36500865zm3.9866711-1.21085565-.0281024-.0352883c-.3596838.08021485-.4247856.09296215-.755237.142086l-.0242897.02673825c-.0011296.00435275-.0021182.01103735-.0038128.0171001l-.0011298-.00606275c-.2460027.6247742-.2388006.4899946-.4390485.98185465-.0011298-.02238555-.0011298-.0363765-.0022595-.06016115l-.0501327-1.0662668-.0314917-.0352883c-.3767711.08021485-.3856679.09296215-.7336305.142086l-.0271139.02673825c-.003813.01274735-.003813.0267383-.0060724.0419729l.0022594.00544095c.0434954.2446864.0330452.19012165.0766818.5762722.0203354.1894998.0474494.3800878.0677848.5672558.0343162.3132421.0535219.4674536.0954638.94547815-.2349878.4268798-.2906279.5883977-.51686.9630446l.0015534.0037309-.1592946.27733195c-.0182171.0292256-.0347397.0492793-.0578996.05782935-.0254193.0138355-.0584644.01632275-.1043605.01632275h-.0882616l-.131192.4803564.4500635.00855005c.26422-.00124365.4302931-.1372669.5196844-.32008215l.283002-.53383295h-.004519l.0297972-.03762015c.1903626-.4511308 1.6384179-3.1855867 1.6384179-3.1855867zm-4.7501128 6.3087581h-.1909276l.7066579-2.57293795h.2344228l.0744221-.265051.0072022.29474295c-.0087556.1821934.121448.3437113.4634794.31697305h.3955532l.1361347-.49543555h-.1488443c-.0855785 0-.1252609-.02378465-.1203182-.0747739l-.0072022-.299873h-.7325008v.00155455c-.2368235.00544095-.9440462.0250283-1.0872418.0670012-.1732752.0491238-.3558709.1936971-.3558709.1936971l.071739-.26536195h-.6851925l-.1427719.52652655-.7161194 2.61226815h-.1389591l-.136276.4918601h1.3647364l-.0457548.1640051h.6724828l.0446251-.1640051h.1886681zm-.5599316-2.0501423c-.1097268.03342285-.313929.1347796-.313929.1347796l.1816071-.65757525h.5443977l-.1313333.47911275s-.1681914.01088185-.2807425.0436829zm.0104502.9394154s-.1710158.0236292-.283567.0516111c-.1108566.0369984-.3187303.1535897-.3187303.1535897l.1875382-.6843135h.5472221zm-.3050322 1.1167897h-.5460922l.158306-.5775158h.5443976zm1.315112-1.5959024h.7871525l-.1131162.4032506h-.7976024l-.1197535.4408708h.6979023l-.5284398.8190931c-.0369994.0601612-.0701858.0814585-.1070437.0984031-.0369994.0206755-.0855785.0449265-.1417835.0449265h-.1936107l-.133028.4828437h.5064098c.2632315 0 .4187131-.131826.5335239-.3048476l.3623669-.5459584.0778115.5543531c.0165225.1038439.0843074.1646269.1302034.1882561.0506975.0279819.1030897.0760176.1770882.0831685.0793648.0037309.1366995.0066846.1748285.0066846h.2488272l.1494092-.5403621h-.0981469c-.0563463 0-.1533633-.0104155-.1698859-.0298474-.0165226-.0236292-.0165226-.0600057-.0254194-.1153477l-.0789412-.5555967h-.3232494l.1417836-.1857688h.796049l.1224365-.4408708h-.7370197l.1148107-.4032506h.7347603l.1362759-.497301h-2.1905826zm-6.6483163 1.7081877.1837253-.6728098h.7550958l.1379705-.5004101h-.7558018l.1153756-.4141325h.7385731l.1368408-.4845537h-1.84798632l-.13401641.4845537h.41984283l-.1119863.4141325h-.42097264l-.13952389.5089601h.41970155l-.24487301.8901361c-.03304514.117835.01553408.1627615.04631971.2174817.03149175.0533211.06340718.0886094.13514621.1086631.07399857.0181883.12469597.0290701.19361067.0290701h.8512656l.1516688-.554353-.3773361.0570521c-.0728688 0-.2746701-.0096382-.25264-.0837903zm.0866093-3.22084395-.1913512.38070965c-.0409534.08316845-.0778114.1347796-.1109978.1585642-.0292322.02005375-.0871318.0284483-.1710157.0284483h-.0998415l-.13345158.48704095h.33158128c.1594357 0 .2818722-.0643584.3403368-.09653765.0628422-.0369983.0793647-.0158564.1279439-.0674675l.1119864-.1067977h1.0354146l.1374057-.50709465h-.7579202l.1323219-.2768656zm1.5286064 3.23062205c-.0176524-.027982-.0049427-.0772612.0220301-.1798616l.283002-1.0311339h1.0067472c.1467262-.0023318.25264-.0041973.3215547-.0096382.0739985-.0085501.1544932-.0376202.2421899-.0898531.0905212-.0547202.1368408-.1123941.1759583-.178618.0436366-.0660684.113681-.2106417.1738401-.4335643l.3557296-1.3048905-1.044735.0066846s-.3216959.0522329-.4633381.10990675c-.1429132.06435845-.3471154.2440646-.3471154.2440646l.0943341-.3577023h-.645369l-.9035164 3.29860265c-.0320566.1280949-.0535218.2210571-.0584645.2768655-.0016946.0601612.0689147.1197005.1146695.164627.0540867.0449266.1340164.0376202.2106981.0449266.0806358.0066846.1953053.0108818.3536113.0108818h.4959597l.1522336-.5658567-.4439912.0461702c-.0474494 0-.0817655-.027982-.0960286-.0516111zm.4876277-1.9074346h1.0574447l-.06722.2319391c-.0094616.0054409-.0320566-.0115037-.1396652.0024873h-.9156612zm.2118279-.77789745h1.0663414l-.0766816.27935285s-.5025969-.0054409-.5830915.01088185c-.3541763.06746755-.5610614.27577745-.5610614.27577745zm.802065 1.78653705c-.0087555.0346665-.0225949.0558084-.0419418.0716648-.0214654.0152346-.0562051.0206755-.1080323.0206755h-.1506803l.0088968-.2824619h-.626728l-.0254193 1.380908c-.0009886.0996467.007767.1573206.0739985.2034908.0662315.0576738.2702923.0649802.5449624.0649802h.392729l.1417834-.5168883-.3418902.0206755-.1136809.0073064c-.0155341-.0073064-.030362-.013991-.0468846-.0321792-.0144043-.015701-.0386939-.0060627-.0347398-.1057095l.0026831-.3539713.3585541-.0163228c.1936107 0 .2763648-.0693331.346974-.1354015.0673612-.0632702.0893913-.1360232.1148107-.2344264l.0601592-.3133975h-.4927118z",fill:"#fefefe"})]})})}),B1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},F1={width:"100%",height:"100%"},q1=({className:e})=>h.jsx("div",{style:B1,className:e,children:h.jsxs("svg",{width:"30",height:"20",viewBox:"0 0 30 20",xmlns:"http://www.w3.org/2000/svg",fill:"rgb(223, 27, 65)",role:"presentation",style:F1,children:[h.jsxs("g",{clipPath:"url(#clip0_184_11820)",children:[h.jsx("path",{opacity:"0.74",d:"M26.2061 0.00488281C28.3194 0.112115 30 1.85996 30 4V13.335L28.5 10.623V8H27.0488L25.9736 6.05664C25.744 5.64161 25.4595 5.2894 25.1367 5H28.5V4C28.5 2.61929 27.3807 1.5 26 1.5H4C2.61929 1.5 1.5 2.61929 1.5 4V5H19.8643C19.608 5.22972 19.3755 5.49872 19.1758 5.80762L19.0264 6.05664L17.9512 8H1.5V16C1.5 17.3807 2.61929 18.5 4 18.5H13.0371C13.1062 19.0302 13.2775 19.5408 13.5391 20H4L3.79395 19.9951C1.7488 19.8913 0.108652 18.2512 0.00488281 16.2061L0 16V4C0 1.85996 1.68056 0.112115 3.79395 0.00488281L4 0H26L26.2061 0.00488281Z"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7762 7.0252C21.5325 5.65827 23.4673 5.65826 24.2235 7.0252L29.743 17.0027C30.4843 18.3434 29.5319 19.9995 28.0194 19.9998H16.9803C15.4679 19.9995 14.5155 18.3434 15.2567 17.0027L20.7762 7.0252ZM22.4999 15.4998C21.8095 15.4998 21.2499 16.0595 21.2499 16.7498C21.2499 17.4402 21.8095 17.9998 22.4999 17.9998C23.1902 17.9998 23.7499 17.4402 23.7499 16.7498C23.7499 16.0595 23.1902 15.4998 22.4999 15.4998ZM22.4999 8.99981C21.9476 8.99981 21.4999 9.44753 21.4999 9.99981V12.9998C21.4999 13.5521 21.9476 13.9998 22.4999 13.9998C23.0522 13.9998 23.4999 13.5521 23.4999 12.9998V9.99981C23.4999 9.44753 23.0522 8.99981 22.4999 8.99981Z"})]}),h.jsx("defs",{children:h.jsx("clipPath",{id:"clip0_184_11820",children:h.jsx("rect",{width:"30",height:"20"})})})]})}),K1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},z1={width:"100%",height:"100%"},$1=({className:e})=>h.jsx("div",{style:K1,className:e,children:h.jsxs("svg",{viewBox:"0 0 100 66",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:z1,children:[h.jsx("rect",{x:"2",y:"2",width:"96",height:"62",rx:"5",stroke:"#D3D3D3",strokeWidth:"4"}),h.jsx("ellipse",{cx:"38",cy:"33",rx:"22",ry:"22",fill:"#F00"}),h.jsx("ellipse",{cx:"62",cy:"33",rx:"22",ry:"22",fill:"#1E88E5"})]})}),U1={cvcIcon:"_cvcIcon_1yx89_1"},Ma=m.createContext(null),xt=()=>m.useContext(Ma),G1=({children:e,styles:t})=>h.jsx(Ma.Provider,{value:t||null,children:e});var B=(e=>(e.Invalid="invalid",e.Empty="empty",e.Incomplete="incomplete",e.Unsupported="unsupported",e.Expired="expired",e))(B||{}),G=(e=>(e.Visa="visa",e.Mastercard="mastercard",e.AmericanExpress="american-express",e.Discover="discover",e.JCB="jcb",e.DinersClub="diners-club",e.UnionPay="unionpay",e.Maestro="maestro",e))(G||{});const Wt=[{name:"Visa",type:"visa",pattern:/^4/,minLength:16,maxLength:16},{name:"MasterCard",type:"mastercard",pattern:/^5[1-5]/,minLength:16,maxLength:16},{name:"American Express",type:"american-express",pattern:/^3[47]/,minLength:15,maxLength:15},{name:"Discover",type:"discover",pattern:/^6(?:011|5[0-9]{2})/,minLength:16,maxLength:16},{name:"JCB",type:"jcb",pattern:/^(?:2131|1800|35\d{2})/,minLength:15,maxLength:16},{name:"Diners Club",type:"diners-club",pattern:/^3(?:0[0-5]|[68][0-9])/,minLength:14,maxLength:16},{name:"Union Pay",type:"unionpay",pattern:/^62/,minLength:16,maxLength:19},{name:"Maestro",type:"maestro",pattern:/^(50\d{2,16}|5[6-9]\d{2,16}|6\d{3,15}|0604\d{0,13}|6390\d{0,13}|5018\d{0,15}|5020\d{0,15}|5038\d{0,15}|5893\d{0,15}|6304\d{0,15}|6759\d{0,15}|6761\d{0,15}|6762\d{0,15}|6763\d{0,15})$/,minLength:12,maxLength:19}],Ia=e=>Wt.find(t=>t.pattern.test(e))||null,W1=e=>Wt.filter(t=>t.pattern.test(e)),Y1=e=>{let t=0,n=!1;for(let r=e.length-1;r>=0;r--){let i=parseInt(e[r]);n&&(i*=2,i>9&&(i-=9)),t+=i,n=!n}return t%10===0},Da=(e,t)=>{const n=e.replace(/\D/g,"");if(!n)return{isValid:!1,cardType:null,error:B.Empty};if(!/^\d+$/.test(n))return{isValid:!1,cardType:null,error:B.Invalid};const r=Ia(n);if(r){if(n.length<r.minLength||n.length>r.maxLength)return{isValid:!1,cardType:r.name,error:B.Incomplete}}else if(n.length<16)return{isValid:!1,cardType:null,error:B.Incomplete};return r&&t&&!t.includes(r.type)?{isValid:!1,cardType:r.name,error:"unsupported"}:Y1(n)?{isValid:!0,cardType:r?.name||null,error:null}:{isValid:!1,cardType:r?.name||null,error:B.Invalid}},La=(e,t="")=>{const n=Me.getTypeInfo(t),r=!e,i=e.length<(n?.code.size||3);return!r&&!i?null:r?B.Empty:B.Incomplete},H1=({onChange:e,value:t,isTouchSubmit:n,disabled:r,cardType:i=""})=>{const s=m.useId(),a=_e(),o=xt(),[l,u]=m.useState(""),[c,d]=m.useState(!0),[p,f]=m.useState(!1),g=n||p,y=w=>{const C=La(w,i);if(C){C===B.Empty?(u(""),d(!0)):(u(C===B.Incomplete?a.card.cvc.error.incomplete:a.card.cvc.error.invalid),d(!1));return}d(!1),u("")},b=w=>{if(r)return;const{value:C}=w.currentTarget;u(""),d(!1),p||f(!0);const P=nn(C,i),T=Me.getTypeInfo(i);P.length===T?.code.size&&y(P),e({value:P,isValid:La(P,i)===null})},v=g&&(!!l||c);return h.jsx(Ut,{id:s,label:a.card.cvc.label,labelError:v&&c?a.card.cvc.error.required:void 0,autoComplete:"cc-exp",value:t,disabled:r,placeholder:a.card.cvc.placeholder,error:v&&!c?l:void 0,onChange:b,onBlur:()=>y(t),styles:o?.card?.input,endContent:v?h.jsx(Gt,{}):h.jsx(p1,{className:U1.cvcIcon})})},Na=e=>{const t=!e,n=e.length<7,r=new Date,[i,s]=e.split(" / ");r.setFullYear(2e3+parseInt(s),parseInt(i)-1,31);const a=r.getTime()<Date.now();return!t&&!n&&!a?null:t?B.Empty:n?B.Incomplete:r.getFullYear()===new Date().getFullYear()?"dateExpired":"expired"},Z1=({onChange:e,value:t,isTouchSubmit:n,disabled:r})=>{const i=m.useId(),s=_e(),a=xt(),[o,l]=m.useState(""),[u,c]=m.useState(!0),[d,p]=m.useState(!1),f=n||d,g=v=>{const w=Na(v);if(w){w===B.Empty?(l(""),c(!0)):(l(w==="expired"?s.card.expiry.error.expired.replace("{date}","year"):w==="dateExpired"?s.card.expiry.error.expired.replace("{date}","date"):w===B.Incomplete?s.card.expiry.error.incomplete:s.card.expiry.error.invalid),c(!1));return}c(!1),l("")},y=v=>{if(r)return;const{value:w}=v.currentTarget;l(""),c(!1),d||p(!0);const C=Eo(w,t);C.length===7&&g(C),e({value:C,isValid:Na(C)===null})},b=f&&(!!o||u);return h.jsx(Ut,{id:i,label:s.card.expiry.label,labelError:b&&u?s.card.expiry.error.required:void 0,autoComplete:"cc-exp",value:t,disabled:r,placeholder:s.card.expiry.placeholder||"MM / YY",error:b&&!u?o:void 0,onChange:y,onBlur:()=>g(t),styles:a?.card?.input,endContent:b?h.jsx(Gt,{}):null})},Oa=e=>e?null:B.Empty,X1=({onChange:e,value:t,isTouchSubmit:n,disabled:r})=>{const i=m.useId(),s=_e(),a=xt(),[o,l]=m.useState(""),[u,c]=m.useState(!0),[d,p]=m.useState(!1),f=n||d,g=v=>{if(Oa(v)){l(""),c(!0);return}c(!1),l("")},y=v=>{if(r)return;const{value:w}=v.currentTarget;l(""),c(!1),d||p(!0),e({value:w,isValid:Oa(w)===null})},b=f&&(!!o||u);return h.jsx(Ut,{id:i,label:s.card.name.label,labelError:b&&u?s.card.name.error.required:void 0,autoComplete:"cc-name",value:t,disabled:r,placeholder:s.card.name.placeholder,error:b&&!u?o:void 0,onChange:y,onBlur:()=>g(t),styles:a?.card?.input,endContent:b?h.jsx(Gt,{}):null})},Ba=Wt.map(e=>e.type),we={iconContainer:"_iconContainer_1nckj_1"},J1=({cardTypes:e,supportedCardTypes:t})=>e.filter(n=>t.includes(n)).slice(0,3).map(n=>{switch(n){case G.Visa:return h.jsx("span",{className:we.iconContainer,children:h.jsx(x1,{})},n);case G.Mastercard:return h.jsx("span",{className:we.iconContainer,children:h.jsx(T1,{})},n);case G.DinersClub:return h.jsx("span",{className:we.iconContainer,children:h.jsx(P1,{})},n);case G.JCB:return h.jsx("span",{className:we.iconContainer,children:h.jsx(j1,{})},n);case G.AmericanExpress:return h.jsx("span",{className:we.iconContainer,children:h.jsx(D1,{})},n);case G.Discover:return h.jsx("span",{className:we.iconContainer,children:h.jsx(_1,{})},n);case G.UnionPay:return h.jsx("span",{className:we.iconContainer,children:h.jsx(O1,{})},n);case G.Maestro:return h.jsx("span",{className:we.iconContainer,children:h.jsx($1,{})},n);default:return null}}),Q1=({onChange:e,value:t,disabled:n,isTouchSubmit:r,supportedCardTypes:i})=>{const s=m.useId(),a=_e(),o=xt(),[l,u]=m.useState(Ba),[c,d]=m.useState(""),[p,f]=m.useState(!0),[g,y]=m.useState(!1),b=r||g,v=P=>{const{isValid:T,error:k}=Da(P,i);if(!T)return k===B.Empty?(d(""),f(!0)):k===B.Unsupported?(d(a.card.number.error.unsupported),f(!1)):(d(k===B.Incomplete?a.card.number.error.incomplete:a.card.number.error.invalid),f(!1)),!1;f(!1),d("")},w=P=>{if(n)return;const{value:T}=P.currentTarget;d(""),f(!1),g||y(!0);const k=W1(T).map(R=>R.type);console.log({cardTypes:k});const E=Ia(T),S=Ao(T,E?.type||"");S.replace(/\D/g,"").length===(E?.maxLength||16)&&v(S),u(k.length?k:Ba),e({card:S,cardType:E?.type||"",cardTypes:k,isValid:Da(S).isValid})},C=b&&(!!c||p);return h.jsx(Ut,{id:s,label:a.card.number.label,labelError:C&&p?a.card.number.error.required:void 0,autoComplete:"cc-number",value:t,disabled:n,placeholder:"1234 1234 1234 1234",error:C&&!p?c:void 0,onChange:w,onBlur:()=>v(t),styles:o?.card?.input,endContent:C?h.jsx(q1,{}):h.jsx(J1,{cardTypes:l,supportedCardTypes:i||[]})})},Yt={container:"_container_1ari8_1",iconContainer:"_iconContainer_1ari8_5",icon:"_icon_1ari8_5",title:"_title_1ari8_15"},e0=({title:e})=>h.jsxs("div",{className:Yt.container,children:[h.jsx("div",{className:Yt.iconContainer,children:h.jsx(Gt,{className:Yt.icon})}),h.jsx("div",{className:Yt.title,children:e})]}),Fa={svg:"_svg_1kkac_1",sr:"_sr_1kkac_5"},yr=({className:e})=>h.jsxs("div",{role:"status",className:e,children:[h.jsxs("svg",{"aria-hidden":"true",className:Fa.svg,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),h.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),h.jsx("span",{className:Fa.sr,children:"Loading..."})]}),t0=({isFetching:e,isFail:t,supportedCardTypes:n,onSubmit:r})=>{const i=_e(),s=xt(),[a,o]=m.useState({value:"",isValid:!1}),[l,u]=m.useState({value:"",isValid:!1}),[c,d]=m.useState({value:"",isValid:!1}),[p,f]=m.useState(""),[g,y]=m.useState({value:"",isValid:!1}),[b,v]=m.useState(!1),w=({card:T,cardType:k,isValid:E})=>{d({value:T,isValid:E}),f(k);const S=nn(a.value,k);o({value:S,isValid:a.isValid})},C=({value:T,isValid:k})=>{const E=nn(T,p);o({value:E,isValid:k})},P=T=>{if(T.preventDefault(),!(c.isValid&&l.isValid&&a.isValid&&g.isValid))return;const E=/\s/g;r({number:c.value.replace(E,""),expiry:l.value.replace(E,""),cvc:a.value,name:g.value,cardBrand:p})};return h.jsxs("form",{onSubmit:P,className:St.card,children:[h.jsx(Q1,{value:c.value,onChange:w,isTouchSubmit:b,supportedCardTypes:n,disabled:e}),h.jsxs("div",{className:St.cardDataContainer,children:[h.jsx(Z1,{value:l.value,onChange:u,isTouchSubmit:b,disabled:e}),h.jsx(H1,{cardType:p,value:a.value,onChange:C,isTouchSubmit:b,disabled:e})]}),h.jsx(X1,{value:g.value,onChange:y,isTouchSubmit:b,disabled:e}),t?h.jsx(e0,{title:i.status.error}):null,h.jsxs(_r,{type:"submit",color:"primary",isLoading:e,disabled:e,onClick:()=>v(!0),className:ye(St.payButton,s?.card?.button?.className),style:s?.card?.button?.styles,children:[e&&h.jsx(yr,{className:St.spinner}),i.card.pay.button]})]})},n0={appId:"",teamId:"",ev:null},qa=m.createContext(n0),Ka=()=>m.useContext(qa),vr=m.createContext(null);function r0(){if(typeof window>"u")return null;if(typeof ge.useContext!="function")throw new Error("You must use React >= 18.0 in order to use useEvervault()");const e=ge.useContext(vr);if(!e)throw new Error("You must wrap your app in an <EvervaultProvider> to use useEvervault()");return e}m.createContext(void 0);class i0 extends Promise{async encrypt(t){return(await this).encrypt(t)}async decrypt(t,n){return(await this).decrypt(t,n)}}const s0="https://js.evervault.com/v2";function a0(e){const t=document.createElement("script");e&&e!==""?t.src=e:t.src=s0;const n=document.head||document.body;if(!n)throw new Error("Expected document.body not to be null. Evervault.js requires a <body> element.");return n.appendChild(t),t}let br=null;function o0(e,t){return br!==null||(br=new Promise((n,r)=>{if(typeof window>"u"){n(void 0);return}if(window.Evervault){console.warn("Evervault has already been loaded"),n(window.Evervault);return}try{const i=a0(e);i.addEventListener("load",()=>{window.Evervault?n(window.Evervault):(t?.(),r(new Error("Evervault.js not available")))}),i.addEventListener("error",()=>{t?.(),r(new Error("Failed to load Evervault.js"))})}catch(i){r(i)}})),br}function l0(e,t){const n=Promise.resolve().then(()=>o0(e,t));let r=!1;return n.catch(i=>{r||console.warn(i)}),r=!0,n.then(i=>typeof window<"u"?window.Evervault:i??void 0)}const c0=({teamId:e,appId:t,customConfig:n,children:r,onLoadError:i,...s})=>{if(typeof window>"u")return ge.createElement(vr.Provider,{value:null},r);const a=ge.useMemo(()=>new i0((o,l)=>{l0(n?.jsSdkUrl,i).then(u=>{u!==void 0?o(new u(e,t,n)):(console.error("Evervault.js not available"),l("Evervault.js not available"))}).catch(u=>l(u))}),[]);return ge.createElement(vr.Provider,{...s,value:a},r)};let Ht=null;async function u0(){return Ht||(Ht=new Promise((e,t)=>{const n=document.createElement("script");if(n.src="https://js.evervault.com/v2",n.onload=()=>e(),n.onerror=()=>{Ht=null,t()},!document.head)throw new Error("Expected document.head not to be null. Evervault.js requires a <head> element.");document.head.appendChild(n)}),Ht)}async function za(){if(window.Evervault)return window.Evervault;try{return await u0(),window.Evervault}catch{throw new Error("Failed to load Evervault.js")}}async function d0(e,t,n){const r=await za();return new r(e,t,n)}Promise.resolve().then(()=>{za()});const h0=({children:e,evConfig:t})=>{const[n,r]=m.useState(null),i=m.useMemo(()=>({...t,ev:n}),[t,n]);return m.useEffect(()=>{d0(t.teamId,t.appId).then(s=>r(s)).catch(console.error)},[t]),h.jsx(c0,{...t,children:h.jsx(qa.Provider,{value:i,children:e})})},$a={googlePay:"_googlePay_1a960_1",hidden:"_hidden_1a960_17"},Ua="ab-ev-google-pay-container",p0=({onSubmit:e,onCancel:t,onError:n,onSuccess:r,onReady:i,transaction:s,locale:a})=>{const{ev:o}=Ka(),[l,u]=m.useState(!1),[c,d]=m.useState(null);return m.useEffect(()=>{c&&(t&&c.on("cancel",t),n&&c.on("error",n),r&&c.on("success",r))},[c,t,n,r]),m.useEffect(()=>{if(o)try{const p=o.transactions.create(s),f=o.ui.googlePay(p,{locale:a,size:{width:"100%",height:"42px"},billingAddress:{phoneNumber:!0},process:async(g,{fail:y})=>{try{e(g)}catch(b){console.error(b),y({message:"Cannot pay with payment credentials"})}}});f.on("ready",()=>{u(!0),i?.()}),d(f),f.unmount(),f.mount(`#${Ua}`)}catch(p){console.error(p),u(!1),i?.()}},[o,s,a,e,i]),h.jsx("div",{id:Ua,className:ye($a.googlePay,l?void 0:$a.hidden)})},Ga={applePay:"_applePay_2b2iv_1",hidden:"_hidden_2b2iv_17"},xr="ab-ev-apple-pay-container",f0=({onSubmit:e,onCancel:t,onError:n,onSuccess:r,onReady:i,locale:s,transaction:a,supportedCardTypes:o})=>{const[l,u]=m.useState(!1),{ev:c}=Ka();return m.useEffect(()=>{(async()=>{if(c)try{const p=c.transactions.create(a),f=c.ui.applePay(p,{locale:s,borderRadius:12,size:{width:"100%",height:"40px"},allowedCardNetworks:o,requestBillingAddress:!0,requestPayerDetails:["name","email","phone"],process:async(y,{fail:b})=>{try{e(y)}catch(v){console.error(v),b({message:"Cannot pay with payment credentials"})}}});if(await f.availability()!=="available"){u(!1),i?.();return}if(t&&f.on("cancel",t),n&&f.on("error",(y="")=>n(y)),r&&f.on("success",r),f.unmount(),"document"in global){const y=document.getElementById(xr);y&&(y.innerHTML="")}f.mount(`#${xr}`),u(!0),i?.()}catch(p){console.error(p),u(!1),i?.()}})()},[c,a,o,s,e,t,n,r,i]),h.jsx("div",{id:xr,className:ye(Ga.applePay,l?void 0:Ga.hidden)})},pe={container:"_container_a64yo_1",backBtn:"_backBtn_a64yo_5",cardBtn:"_cardBtn_a64yo_9",btnContainer:"_btnContainer_a64yo_13",spinner:"_spinner_a64yo_17",spinnerContainer:"_spinnerContainer_a64yo_21"};/*!
|
|
32
32
|
* react-paypal-js v8.8.3 (2025-04-11T19:50:46.506Z)
|
|
33
33
|
* Copyright 2020-present, PayPal, Inc. All rights reserved.
|
|
34
34
|
*
|
|
@@ -44,10 +44,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
44
44
|
* See the License for the specific language governing permissions and
|
|
45
45
|
* limitations under the License.
|
|
46
46
|
*/var X;(function(e){e.INITIAL="initial",e.PENDING="pending",e.REJECTED="rejected",e.RESOLVED="resolved"})(X||(X={}));var Te;(function(e){e.LOADING_STATUS="setLoadingStatus",e.RESET_OPTIONS="resetOptions",e.SET_BRAINTREE_INSTANCE="braintreeInstance"})(Te||(Te={}));var Wa;(function(e){e.NUMBER="number",e.CVV="cvv",e.EXPIRATION_DATE="expirationDate",e.EXPIRATION_MONTH="expirationMonth",e.EXPIRATION_YEAR="expirationYear",e.POSTAL_CODE="postalCode"})(Wa||(Wa={}));var O=function(){return O=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},O.apply(this,arguments)};function Ya(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ha(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Ct="data-react-paypal-script-id",Re={DATA_JS_SDK_LIBRARY:"dataJsSdkLibrary",DATA_LIBRARY_VALUE:"react-paypal-js",DATA_NAMESPACE:"dataNamespace",DATA_SDK_INTEGRATION_SOURCE:"dataSdkIntegrationSource"},m0="Failed to load the PayPal JS SDK script.",Za="paypal",g0="usePayPalScriptReducer must be used within a PayPalScriptProvider";function y0(e){return e===void 0&&(e=Za),window[e]}function v0(e){for(var t="",n=0;n<e.length;n++){var r=e[n].charCodeAt(0)*n;e[n+1]&&(r+=e[n+1].charCodeAt(0)*(n-1)),t+=String.fromCharCode(97+Math.abs(r)%26)}return t}function b0(e){var t=e.reactComponentName,n=e.sdkComponentKey,r=e.sdkRequestedComponents,i=r===void 0?"":r,s=e.sdkDataNamespace,a=s===void 0?Za:s,o=n.charAt(0).toUpperCase().concat(n.substring(1)),l="Unable to render <".concat(t," /> because window.").concat(a,".").concat(o," is undefined."),u=typeof i=="string"?i:i.join(",");if(!u.includes(n)){var c=[u,n].filter(Boolean).join();l+=`
|
|
47
|
-
To fix the issue, add '`.concat(n,"' to the list of components passed to the parent PayPalScriptProvider:")+"\n`<PayPalScriptProvider options={{ components: '".concat(c,"'}}>`.")}return l}function Xa(e){var t=e,n=Ct;t[n];var r=Ya(t,[n+""]);return"react-paypal-js-".concat(v0(JSON.stringify(r)))}function x0(e){var t=self.document.querySelector("script[".concat(Ct,'="').concat(e,'"]'));t?.parentNode&&t.parentNode.removeChild(t)}function C0(e,t){var n,r;switch(t.type){case Te.LOADING_STATUS:return typeof t.value=="object"?O(O({},e),{loadingStatus:t.value.state,loadingStatusErrorMessage:t.value.message}):O(O({},e),{loadingStatus:t.value});case Te.RESET_OPTIONS:return x0(e.options[Ct]),O(O({},e),{loadingStatus:X.PENDING,options:O(O((n={},n[Re.DATA_SDK_INTEGRATION_SOURCE]=Re.DATA_LIBRARY_VALUE,n),t.value),(r={},r[Ct]="".concat(Xa(t.value)),r))});case Te.SET_BRAINTREE_INSTANCE:return O(O({},e),{braintreePayPalCheckoutInstance:t.value});default:return e}}var Ja=m.createContext(null);function w0(e){if(typeof e?.dispatch=="function"&&e.dispatch.length!==0)return e;throw new Error(g0)}function T0(){var e=w0(m.useContext(Ja)),t=O(O({},e),{isInitial:e.loadingStatus===X.INITIAL,isPending:e.loadingStatus===X.PENDING,isResolved:e.loadingStatus===X.RESOLVED,isRejected:e.loadingStatus===X.REJECTED});return[t,e.dispatch]}m.createContext({});function k0(e){var t=m.useRef(new Proxy({},{get:function(n,r,i){return typeof n[r]=="function"?function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return n[r].apply(n,s)}:Reflect.get(n,r,i)}}));return t.current=Object.assign(t.current,e),t.current}var Cr=function(e){var t,n=e.className,r=n===void 0?"":n,i=e.disabled,s=i===void 0?!1:i,a=e.children,o=e.forceReRender,l=o===void 0?[]:o,u=Ya(e,["className","disabled","children","forceReRender"]),c=s?{opacity:.38}:{},d="".concat(r," ").concat(s?"paypal-buttons-disabled":"").trim(),p=m.useRef(null),f=m.useRef(null),g=k0(u),y=T0()[0],b=y.isResolved,v=y.options,w=m.useState(null),C=w[0],P=w[1],T=m.useState(!0),k=T[0],E=T[1],S=m.useState(null),R=S[1];function _(){f.current!==null&&f.current.close().catch(function(){})}return!((t=f.current)===null||t===void 0)&&t.updateProps&&f.current.updateProps({message:u.message}),m.useEffect(function(){if(b===!1)return _;var q=y0(v.dataNamespace);if(q===void 0||q.Buttons===void 0)return R(function(){throw new Error(b0({reactComponentName:Cr.displayName,sdkComponentKey:"buttons",sdkRequestedComponents:v.components,sdkDataNamespace:v[Re.DATA_NAMESPACE]}))}),_;var V=function(z,J){P(J),typeof u.onInit=="function"&&u.onInit(z,J)};try{f.current=q.Buttons(O(O({},g),{onInit:V}))}catch(z){return R(function(){throw new Error("Failed to render <PayPalButtons /> component. Failed to initialize: ".concat(z))})}return f.current.isEligible()===!1?(E(!1),_):(p.current&&f.current.render(p.current).catch(function(z){p.current===null||p.current.children.length===0||R(function(){throw new Error("Failed to render <PayPalButtons /> component. ".concat(z))})}),_)},Ha(Ha([b],l,!0),[u.fundingSource],!1)),m.useEffect(function(){C!==null&&(s===!0?C.disable().catch(function(){}):C.enable().catch(function(){}))},[s,C]),m.createElement(m.Fragment,null,k?m.createElement("div",{ref:p,style:c,className:d}):a)};Cr.displayName="PayPalButtons";function S0(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}typeof SuppressedError=="function"&&SuppressedError;function P0(e,t){var n=document.querySelector('script[src="'.concat(e,'"]'));if(n===null)return null;var r=Qa(e,t),i=n.cloneNode();if(delete i.dataset.uidAuto,Object.keys(i.dataset).length!==Object.keys(r.dataset).length)return null;var s=!0;return Object.keys(i.dataset).forEach(function(a){i.dataset[a]!==r.dataset[a]&&(s=!1)}),s?n:null}function A0(e){var t=e.url,n=e.attributes,r=e.onSuccess,i=e.onError,s=Qa(t,n);s.onerror=i,s.onload=r,document.head.insertBefore(s,document.head.firstElementChild)}function E0(e){var t=e.sdkBaseUrl,n=e.environment,r=S0(e,["sdkBaseUrl","environment"]),i=t||R0(n),s=r,a=Object.keys(s).filter(function(u){return typeof s[u]<"u"&&s[u]!==null&&s[u]!==""}).reduce(function(u,c){var d=s[c].toString();return c=j0(c),c.substring(0,4)==="data"||c==="crossorigin"?u.attributes[c]=d:u.queryParams[c]=d,u},{queryParams:{},attributes:{}}),o=a.queryParams,l=a.attributes;return o["merchant-id"]&&o["merchant-id"].indexOf(",")!==-1&&(l["data-merchant-id"]=o["merchant-id"],o["merchant-id"]="*"),{url:"".concat(i,"?").concat(V0(o)),attributes:l}}function j0(e){var t=function(n,r){return(r?"-":"")+n.toLowerCase()};return e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,t)}function V0(e){var t="";return Object.keys(e).forEach(function(n){t.length!==0&&(t+="&"),t+=n+"="+e[n]}),t}function R0(e){return e==="sandbox"?"https://www.sandbox.paypal.com/sdk/js":"https://www.paypal.com/sdk/js"}function Qa(e,t){t===void 0&&(t={});var n=document.createElement("script");return n.src=e,Object.keys(t).forEach(function(r){n.setAttribute(r,t[r]),r==="data-csp-nonce"&&n.setAttribute("nonce",t["data-csp-nonce"])}),n}function _0(e,t){if(t===void 0&&(t=Promise),to(e,t),typeof document>"u")return t.resolve(null);var n=E0(e),r=n.url,i=n.attributes,s=i["data-namespace"]||"paypal",a=eo(s);return i["data-js-sdk-library"]||(i["data-js-sdk-library"]="paypal-js"),P0(r,i)&&a?t.resolve(a):M0({url:r,attributes:i},t).then(function(){var o=eo(s);if(o)return o;throw new Error("The window.".concat(s," global variable is not available."))})}function M0(e,t){t===void 0&&(t=Promise),to(e,t);var n=e.url,r=e.attributes;if(typeof n!="string"||n.length===0)throw new Error("Invalid url.");if(typeof r<"u"&&typeof r!="object")throw new Error("Expected attributes to be an object.");return new t(function(i,s){if(typeof document>"u")return i();A0({url:n,attributes:r,onSuccess:function(){return i()},onError:function(){var a=new Error('The script "'.concat(n,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.'));return s(a)}})})}function eo(e){return window[e]}function to(e,t){if(typeof e!="object"||e===null)throw new Error("Expected an options object.");var n=e.environment;if(n&&n!=="production"&&n!=="sandbox")throw new Error('The `environment` option must be either "production" or "sandbox".');if(typeof t<"u"&&typeof t!="function")throw new Error("Expected PromisePonyfill to be a function.")}var I0=function(e){var t,n=e.options,r=n===void 0?{clientId:"test"}:n,i=e.children,s=e.deferLoading,a=s===void 0?!1:s,o=m.useReducer(C0,{options:O(O({},r),(t={},t[Re.DATA_JS_SDK_LIBRARY]=Re.DATA_LIBRARY_VALUE,t[Re.DATA_SDK_INTEGRATION_SOURCE]=Re.DATA_LIBRARY_VALUE,t[Ct]="".concat(Xa(r)),t)),loadingStatus:a?X.INITIAL:X.PENDING}),l=o[0],u=o[1];return m.useEffect(function(){if(a===!1&&l.loadingStatus===X.INITIAL)return u({type:Te.LOADING_STATUS,value:X.PENDING});if(l.loadingStatus===X.PENDING){var c=!0;return _0(l.options).then(function(){c&&u({type:Te.LOADING_STATUS,value:X.RESOLVED})}).catch(function(d){console.error("".concat(m0," ").concat(d)),c&&u({type:Te.LOADING_STATUS,value:{state:X.REJECTED,message:String(d)}})}),function(){c=!1}}},[l.options,a,l.loadingStatus]),m.createElement(Ja.Provider,{value:O(O({},l),{dispatch:u})},i)};function no(){}m.createContext({cardFieldsForm:null,fields:{},registerField:no,unregisterField:no});const D0={paypalBtn:"_paypalBtn_2m8yd_1"},L0=({onCreate:e,onApprove:t,transaction:n})=>h.jsx("div",{className:D0.paypalBtn,children:h.jsx(I0,{options:{clientId:"test",vault:!0},children:h.jsx(Cr,{style:{layout:"vertical",tagline:!1,height:40,borderRadius:12},fundingSource:"paypal",createBillingAgreement:async()=>await e(n),onApprove:async({billingToken:r})=>{r&&t(r)}})})}),N0=e=>!e||!e.amount||!e.currency||!e.country||!e.merchantId||e.checkoutConfig&&!e.checkoutConfig?.find(({is_active:n,type:r})=>n&&r==="google-pay")?null:{amount:e.amount,currency:e.currency,country:e.country,merchantId:e.merchantId,lineItems:[]},O0=e=>!e||!e.amount||!e.currency||!e.country||!e.merchantId||e.checkoutConfig&&!e.checkoutConfig?.find(({is_active:n,type:r})=>n&&r==="apple-pay")?null:{amount:e.amount,currency:e.currency,country:e.country,merchantId:e.merchantId,lineItems:e.applePayInfo?.lineItems||[]},B0=e=>!e||!e.amount||!e.currency||!e.country||!e.merchantId||e.checkoutConfig&&!e.checkoutConfig.find(({is_active:n,type:r})=>n&&r==="paypal")?null:{intent:"TOKENIZE",purchase_units:[{amount:{currency_code:e.currency,value:(e.amount/100).toString()},reference_id:e.merchantId}]},q0=(e=[])=>e.reduce((t,n)=>{switch(n){case G.Visa:return t.push("visa"),t;case G.Mastercard:return t.push("masterCard"),t;case G.AmericanExpress:return t.push("amex"),t;case G.Discover:return t.push("discover"),t;case G.JCB:return t.push("jcb"),t;case G.UnionPay:return t.push("chinaUnionPay"),t;default:return t}},[]),F0=({onError:e,onSubmit:t,onReset:n,clientToken:r})=>{const i=r0(),s=bo(),[a,o]=m.useState(!1),[l,u]=m.useState(!1),[c,d]=m.useState(!1),[p,f]=m.useState(!1),{googlePay:g,applePay:y,paypal:b}=m.useMemo(()=>({googlePay:N0(s),applePay:O0(s),paypal:B0(s)}),[s]);m.useEffect(()=>{const V=setTimeout(()=>{f(!0)},2e3);return()=>clearTimeout(V)},[]);const v=m.useCallback(async V=>{if(!i)return;n?.();const z=await i?.encrypt(V.number),J=await i?.encrypt(V.cvc),[fe,me]=V.expiry.split("/");t({clientSession:r,card:{firstSixDigits:V.number.slice(0,6),lastFourDigits:V.number.slice(-4),expMonth:Number(fe),expYear:Number(me),cardBrand:V.cardBrand||"",number:z,cvc:J,type:jr.Card,metadata:{name:V.name,userAgent:"navigator"in global?navigator?.userAgent:""}}})},[i,t,n,r]),w=m.useCallback(V=>{t({clientSession:r,googlePay:V})},[t,r]),C=m.useCallback(()=>{u(!0)},[]),P=m.useCallback(V=>{console.error(V),e(V)},[e]),T=m.useCallback(V=>{t({clientSession:r,applePay:V})},[t,r]),k=m.useCallback(V=>{console.error(V),e(V)},[e]),E=m.useCallback(()=>{d(!0)},[]),S=m.useCallback(async()=>{const V=await uo(r);if(!V.success){const z=V.error||"Paypal request failed";throw e(z),z}return V.paypalAgreementTokenResponse.token_id||""},[r,e]),R=m.useCallback(V=>{t({clientSession:r,paypal:{billing_agreement_token:V}})},[t,r]),_=m.useCallback(()=>{n?.(),o(!0)},[n]),q=m.useCallback(()=>{n?.(),o(!1)},[n]);return{isCardOpen:a,transaction:s,isReady:(!g||l)&&(!y||c)&&p,googlePay:g,applePay:y,paypal:b,handleGooglePayReady:C,handleApplePayReady:E,handlePayCard:v,handleGooglePay:w,handleGooglePayError:P,handleApplePay:T,handleApplePayError:k,handleCardOpen:_,handleCardClose:q,handlePayPalCreate:S,handlePayPal:R}},Zt={variants:{initial:{y:100,opacity:0},animate:{y:0,opacity:1,transition:{type:"spring",stiffness:80,damping:20}},exit:{y:100,opacity:0,transition:{duration:.3}},open:{y:0,opacity:1,transition:{type:"spring",stiffness:80,damping:20,delay:.3}},close:{y:100,opacity:0,display:"none",transition:{duration:.3}}},btnVariants:{initial:{y:-100,opacity:0},animate:{y:0,opacity:1,transition:{type:"spring",stiffness:80,damping:20}},exit:{y:-100,opacity:0,transition:{duration:.3}},open:{y:0,opacity:1,transition:{type:"spring",stiffness:80,damping:20,delay:.3}},close:{y:-100,opacity:0,display:"none",transition:{duration:.3}}},success:{initial:{y:100,opacity:0},animate:{y:0,opacity:1,transition:{type:"spring",stiffness:80,damping:20}}}},Xt={container:"_container_ipway_1",icon:"_icon_ipway_5",iconContainer:"_iconContainer_ipway_9",title:"_title_ipway_13"},K0=({title:e})=>h.jsxs("div",{className:Xt.container,children:[h.jsx("div",{className:Xt.iconContainer,children:h.jsx("svg",{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",className:Xt.icon,children:h.jsx("path",{d:`
|
|
47
|
+
To fix the issue, add '`.concat(n,"' to the list of components passed to the parent PayPalScriptProvider:")+"\n`<PayPalScriptProvider options={{ components: '".concat(c,"'}}>`.")}return l}function Xa(e){var t=e,n=Ct;t[n];var r=Ya(t,[n+""]);return"react-paypal-js-".concat(v0(JSON.stringify(r)))}function x0(e){var t=self.document.querySelector("script[".concat(Ct,'="').concat(e,'"]'));t?.parentNode&&t.parentNode.removeChild(t)}function C0(e,t){var n,r;switch(t.type){case Te.LOADING_STATUS:return typeof t.value=="object"?O(O({},e),{loadingStatus:t.value.state,loadingStatusErrorMessage:t.value.message}):O(O({},e),{loadingStatus:t.value});case Te.RESET_OPTIONS:return x0(e.options[Ct]),O(O({},e),{loadingStatus:X.PENDING,options:O(O((n={},n[Re.DATA_SDK_INTEGRATION_SOURCE]=Re.DATA_LIBRARY_VALUE,n),t.value),(r={},r[Ct]="".concat(Xa(t.value)),r))});case Te.SET_BRAINTREE_INSTANCE:return O(O({},e),{braintreePayPalCheckoutInstance:t.value});default:return e}}var Ja=m.createContext(null);function w0(e){if(typeof e?.dispatch=="function"&&e.dispatch.length!==0)return e;throw new Error(g0)}function T0(){var e=w0(m.useContext(Ja)),t=O(O({},e),{isInitial:e.loadingStatus===X.INITIAL,isPending:e.loadingStatus===X.PENDING,isResolved:e.loadingStatus===X.RESOLVED,isRejected:e.loadingStatus===X.REJECTED});return[t,e.dispatch]}m.createContext({});function k0(e){var t=m.useRef(new Proxy({},{get:function(n,r,i){return typeof n[r]=="function"?function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return n[r].apply(n,s)}:Reflect.get(n,r,i)}}));return t.current=Object.assign(t.current,e),t.current}var Cr=function(e){var t,n=e.className,r=n===void 0?"":n,i=e.disabled,s=i===void 0?!1:i,a=e.children,o=e.forceReRender,l=o===void 0?[]:o,u=Ya(e,["className","disabled","children","forceReRender"]),c=s?{opacity:.38}:{},d="".concat(r," ").concat(s?"paypal-buttons-disabled":"").trim(),p=m.useRef(null),f=m.useRef(null),g=k0(u),y=T0()[0],b=y.isResolved,v=y.options,w=m.useState(null),C=w[0],P=w[1],T=m.useState(!0),k=T[0],E=T[1],S=m.useState(null),R=S[1];function _(){f.current!==null&&f.current.close().catch(function(){})}return!((t=f.current)===null||t===void 0)&&t.updateProps&&f.current.updateProps({message:u.message}),m.useEffect(function(){if(b===!1)return _;var F=y0(v.dataNamespace);if(F===void 0||F.Buttons===void 0)return R(function(){throw new Error(b0({reactComponentName:Cr.displayName,sdkComponentKey:"buttons",sdkRequestedComponents:v.components,sdkDataNamespace:v[Re.DATA_NAMESPACE]}))}),_;var V=function(z,J){P(J),typeof u.onInit=="function"&&u.onInit(z,J)};try{f.current=F.Buttons(O(O({},g),{onInit:V}))}catch(z){return R(function(){throw new Error("Failed to render <PayPalButtons /> component. Failed to initialize: ".concat(z))})}return f.current.isEligible()===!1?(E(!1),_):(p.current&&f.current.render(p.current).catch(function(z){p.current===null||p.current.children.length===0||R(function(){throw new Error("Failed to render <PayPalButtons /> component. ".concat(z))})}),_)},Ha(Ha([b],l,!0),[u.fundingSource],!1)),m.useEffect(function(){C!==null&&(s===!0?C.disable().catch(function(){}):C.enable().catch(function(){}))},[s,C]),m.createElement(m.Fragment,null,k?m.createElement("div",{ref:p,style:c,className:d}):a)};Cr.displayName="PayPalButtons";function S0(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}typeof SuppressedError=="function"&&SuppressedError;function P0(e,t){var n=document.querySelector('script[src="'.concat(e,'"]'));if(n===null)return null;var r=Qa(e,t),i=n.cloneNode();if(delete i.dataset.uidAuto,Object.keys(i.dataset).length!==Object.keys(r.dataset).length)return null;var s=!0;return Object.keys(i.dataset).forEach(function(a){i.dataset[a]!==r.dataset[a]&&(s=!1)}),s?n:null}function A0(e){var t=e.url,n=e.attributes,r=e.onSuccess,i=e.onError,s=Qa(t,n);s.onerror=i,s.onload=r,document.head.insertBefore(s,document.head.firstElementChild)}function E0(e){var t=e.sdkBaseUrl,n=e.environment,r=S0(e,["sdkBaseUrl","environment"]),i=t||R0(n),s=r,a=Object.keys(s).filter(function(u){return typeof s[u]<"u"&&s[u]!==null&&s[u]!==""}).reduce(function(u,c){var d=s[c].toString();return c=j0(c),c.substring(0,4)==="data"||c==="crossorigin"?u.attributes[c]=d:u.queryParams[c]=d,u},{queryParams:{},attributes:{}}),o=a.queryParams,l=a.attributes;return o["merchant-id"]&&o["merchant-id"].indexOf(",")!==-1&&(l["data-merchant-id"]=o["merchant-id"],o["merchant-id"]="*"),{url:"".concat(i,"?").concat(V0(o)),attributes:l}}function j0(e){var t=function(n,r){return(r?"-":"")+n.toLowerCase()};return e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,t)}function V0(e){var t="";return Object.keys(e).forEach(function(n){t.length!==0&&(t+="&"),t+=n+"="+e[n]}),t}function R0(e){return e==="sandbox"?"https://www.sandbox.paypal.com/sdk/js":"https://www.paypal.com/sdk/js"}function Qa(e,t){t===void 0&&(t={});var n=document.createElement("script");return n.src=e,Object.keys(t).forEach(function(r){n.setAttribute(r,t[r]),r==="data-csp-nonce"&&n.setAttribute("nonce",t["data-csp-nonce"])}),n}function _0(e,t){if(t===void 0&&(t=Promise),to(e,t),typeof document>"u")return t.resolve(null);var n=E0(e),r=n.url,i=n.attributes,s=i["data-namespace"]||"paypal",a=eo(s);return i["data-js-sdk-library"]||(i["data-js-sdk-library"]="paypal-js"),P0(r,i)&&a?t.resolve(a):M0({url:r,attributes:i},t).then(function(){var o=eo(s);if(o)return o;throw new Error("The window.".concat(s," global variable is not available."))})}function M0(e,t){t===void 0&&(t=Promise),to(e,t);var n=e.url,r=e.attributes;if(typeof n!="string"||n.length===0)throw new Error("Invalid url.");if(typeof r<"u"&&typeof r!="object")throw new Error("Expected attributes to be an object.");return new t(function(i,s){if(typeof document>"u")return i();A0({url:n,attributes:r,onSuccess:function(){return i()},onError:function(){var a=new Error('The script "'.concat(n,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.'));return s(a)}})})}function eo(e){return window[e]}function to(e,t){if(typeof e!="object"||e===null)throw new Error("Expected an options object.");var n=e.environment;if(n&&n!=="production"&&n!=="sandbox")throw new Error('The `environment` option must be either "production" or "sandbox".');if(typeof t<"u"&&typeof t!="function")throw new Error("Expected PromisePonyfill to be a function.")}var I0=function(e){var t,n=e.options,r=n===void 0?{clientId:"test"}:n,i=e.children,s=e.deferLoading,a=s===void 0?!1:s,o=m.useReducer(C0,{options:O(O({},r),(t={},t[Re.DATA_JS_SDK_LIBRARY]=Re.DATA_LIBRARY_VALUE,t[Re.DATA_SDK_INTEGRATION_SOURCE]=Re.DATA_LIBRARY_VALUE,t[Ct]="".concat(Xa(r)),t)),loadingStatus:a?X.INITIAL:X.PENDING}),l=o[0],u=o[1];return m.useEffect(function(){if(a===!1&&l.loadingStatus===X.INITIAL)return u({type:Te.LOADING_STATUS,value:X.PENDING});if(l.loadingStatus===X.PENDING){var c=!0;return _0(l.options).then(function(){c&&u({type:Te.LOADING_STATUS,value:X.RESOLVED})}).catch(function(d){console.error("".concat(m0," ").concat(d)),c&&u({type:Te.LOADING_STATUS,value:{state:X.REJECTED,message:String(d)}})}),function(){c=!1}}},[l.options,a,l.loadingStatus]),m.createElement(Ja.Provider,{value:O(O({},l),{dispatch:u})},i)};function no(){}m.createContext({cardFieldsForm:null,fields:{},registerField:no,unregisterField:no});const D0={paypalBtn:"_paypalBtn_2m8yd_1"},L0=({onCreate:e,onApprove:t,transaction:n})=>h.jsx("div",{className:D0.paypalBtn,children:h.jsx(I0,{options:{clientId:"test",vault:!0},children:h.jsx(Cr,{style:{layout:"vertical",tagline:!1,height:40,borderRadius:12},fundingSource:"paypal",createBillingAgreement:async()=>await e(n),onApprove:async({billingToken:r})=>{r&&t(r)}})})}),N0=e=>!e||!e.amount||!e.currency||!e.country||!e.merchantId||e.checkoutConfig&&!e.checkoutConfig?.find(({is_active:n,type:r})=>n&&r==="google-pay")?null:{amount:e.amount,currency:e.currency,country:e.country,merchantId:e.merchantId,lineItems:[]},O0=e=>!e||!e.amount||!e.currency||!e.country||!e.merchantId||e.checkoutConfig&&!e.checkoutConfig?.find(({is_active:n,type:r})=>n&&r==="apple-pay")?null:{amount:e.amount,currency:e.currency,country:e.country,merchantId:e.merchantId,lineItems:e.applePayInfo?.lineItems||[]},B0=e=>!e||!e.amount||!e.currency||!e.country||!e.merchantId||e.checkoutConfig&&!e.checkoutConfig.find(({is_active:n,type:r})=>n&&r==="paypal")?null:{intent:"TOKENIZE",purchase_units:[{amount:{currency_code:e.currency,value:(e.amount/100).toString()},reference_id:e.merchantId}]},F0=(e=[])=>e.reduce((t,n)=>{switch(n){case G.Visa:return t.push("visa"),t;case G.Mastercard:return t.push("masterCard"),t;case G.AmericanExpress:return t.push("amex"),t;case G.Discover:return t.push("discover"),t;case G.JCB:return t.push("jcb"),t;case G.UnionPay:return t.push("chinaUnionPay"),t;default:return t}},[]),q0=({onError:e,onSubmit:t,onReset:n,clientToken:r})=>{const i=r0(),s=bo(),[a,o]=m.useState(!1),[l,u]=m.useState(!1),[c,d]=m.useState(!1),[p,f]=m.useState(!1),{googlePay:g,applePay:y,paypal:b}=m.useMemo(()=>({googlePay:N0(s),applePay:O0(s),paypal:B0(s)}),[s]);m.useEffect(()=>{const V=setTimeout(()=>{f(!0)},2e3);return()=>clearTimeout(V)},[]);const v=m.useCallback(async V=>{if(!i)return;n?.();const z=await i?.encrypt(V.number),J=await i?.encrypt(V.cvc),[fe,me]=V.expiry.split("/");t({clientSession:r,card:{firstSixDigits:V.number.slice(0,6),lastFourDigits:V.number.slice(-4),expMonth:Number(fe),expYear:Number(me),cardBrand:V.cardBrand||"",number:z,cvc:J,type:jr.Card,metadata:{name:V.name,userAgent:"navigator"in global?navigator?.userAgent:""}}})},[i,t,n,r]),w=m.useCallback(V=>{t({clientSession:r,googlePay:V})},[t,r]),C=m.useCallback(()=>{u(!0)},[]),P=m.useCallback(V=>{console.error(V),e(V)},[e]),T=m.useCallback(V=>{t({clientSession:r,applePay:V})},[t,r]),k=m.useCallback(V=>{console.error(V),e(V)},[e]),E=m.useCallback(()=>{d(!0)},[]),S=m.useCallback(async()=>{const V=await uo(r);if(V.error){const z=V.error||"Paypal request failed";throw e(z),z}return V.paypalAgreementTokenResponse.token_id||""},[r,e]),R=m.useCallback(V=>{t({clientSession:r,paypal:{billing_agreement_token:V}})},[t,r]),_=m.useCallback(()=>{n?.(),o(!0)},[n]),F=m.useCallback(()=>{n?.(),o(!1)},[n]);return{isCardOpen:a,transaction:s,isReady:(!g||l)&&(!y||c)&&p,googlePay:g,applePay:y,paypal:b,handleGooglePayReady:C,handleApplePayReady:E,handlePayCard:v,handleGooglePay:w,handleGooglePayError:P,handleApplePay:T,handleApplePayError:k,handleCardOpen:_,handleCardClose:F,handlePayPalCreate:S,handlePayPal:R}},Zt={variants:{initial:{y:100,opacity:0},animate:{y:0,opacity:1,transition:{type:"spring",stiffness:80,damping:20}},exit:{y:100,opacity:0,transition:{duration:.3}},open:{y:0,opacity:1,transition:{type:"spring",stiffness:80,damping:20,delay:.3}},close:{y:100,opacity:0,display:"none",transition:{duration:.3}}},btnVariants:{initial:{y:-100,opacity:0},animate:{y:0,opacity:1,transition:{type:"spring",stiffness:80,damping:20}},exit:{y:-100,opacity:0,transition:{duration:.3}},open:{y:0,opacity:1,transition:{type:"spring",stiffness:80,damping:20,delay:.3}},close:{y:-100,opacity:0,display:"none",transition:{duration:.3}}},success:{initial:{y:100,opacity:0},animate:{y:0,opacity:1,transition:{type:"spring",stiffness:80,damping:20}}}},Xt={container:"_container_ipway_1",icon:"_icon_ipway_5",iconContainer:"_iconContainer_ipway_9",title:"_title_ipway_13"},K0=({title:e})=>h.jsxs("div",{className:Xt.container,children:[h.jsx("div",{className:Xt.iconContainer,children:h.jsx("svg",{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",className:Xt.icon,children:h.jsx("path",{d:`
|
|
48
48
|
M12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2Z
|
|
49
49
|
M16.78 9.7L11.11 15.37C10.97 15.51 10.78 15.59 10.58 15.59C10.38 15.59 10.19 15.51 10.05 15.37L7.22 12.54
|
|
50
50
|
C6.93 12.25 6.93 11.77 7.22 11.48C7.51 11.19 7.99 11.19 8.28 11.48L10.58 13.78L15.72 8.64
|
|
51
51
|
C16.01 8.35 16.49 8.35 16.78 8.64C17.07 8.93 17.07 9.4 16.78 9.7Z
|
|
52
|
-
`})})}),h.jsx("div",{className:Xt.title,children:e})]}),z0=e=>({ar:"ar-AB",en:"en-GB",cs:"cs-CZ",da:"da-DK",de:"de-DE",el:"el-GR",es:"es-ES",fi:"fi-FI",fr:"fr-FR",hr:"hr-HR",hu:"hu-HU",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",ms:"ms-MY",ru:"ru-RU",nb:"nb-NO",nl:"nl-NL",pl:"pl-PL",pt:"pt-PT",ro:"ro-RO",sk:"sk-SK",sv:"sv-SE",th:"th-TH",tr:"tr-TR",vi:"vi-VN",zh:"zh-CN"})[e]||"en-US",$0=e=>({en:"en",ar:"ar",cs:"cs",da:"da",de:"de",el:"el",es:"es",fi:"fi",fr:"fr",hr:"hr",id:"id",it:"it",ja:"ja",ko:"ko",ms:"ms",ru:"ru",nl:"nl",pl:"pl",pt:"pt",sv:"sv",th:"th",tr:"tr",zh:"zh"})[e]||"en",U0=({onSubmit:e,onError:t,onReset:n,isSuccess:r,isFail:i,variant:s,isFetching:a,clientToken:o,supportedCardTypes:l})=>{const u=_e(),c=go(),d=yo(),{handleApplePay:p,handleCardClose:f,handleCardOpen:g,handleGooglePay:y,handlePayPalCreate:b,handlePayPal:v,handlePayCard:w,handleApplePayReady:C,handleGooglePayReady:P,handleApplePayError:T,handleGooglePayError:k,isReady:E,isCardOpen:S,transaction:R,googlePay:_,applePay:
|
|
52
|
+
`})})}),h.jsx("div",{className:Xt.title,children:e})]}),z0=e=>({ar:"ar-AB",en:"en-GB",cs:"cs-CZ",da:"da-DK",de:"de-DE",el:"el-GR",es:"es-ES",fi:"fi-FI",fr:"fr-FR",hr:"hr-HR",hu:"hu-HU",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",ms:"ms-MY",ru:"ru-RU",nb:"nb-NO",nl:"nl-NL",pl:"pl-PL",pt:"pt-PT",ro:"ro-RO",sk:"sk-SK",sv:"sv-SE",th:"th-TH",tr:"tr-TR",vi:"vi-VN",zh:"zh-CN"})[e]||"en-US",$0=e=>({en:"en",ar:"ar",cs:"cs",da:"da",de:"de",el:"el",es:"es",fi:"fi",fr:"fr",hr:"hr",id:"id",it:"it",ja:"ja",ko:"ko",ms:"ms",ru:"ru",nl:"nl",pl:"pl",pt:"pt",sv:"sv",th:"th",tr:"tr",zh:"zh"})[e]||"en",U0=({onSubmit:e,onError:t,onReset:n,isSuccess:r,isFail:i,variant:s,isFetching:a,clientToken:o,supportedCardTypes:l})=>{const u=_e(),c=go(),d=yo(),{handleApplePay:p,handleCardClose:f,handleCardOpen:g,handleGooglePay:y,handlePayPalCreate:b,handlePayPal:v,handlePayCard:w,handleApplePayReady:C,handleGooglePayReady:P,handleApplePayError:T,handleGooglePayError:k,isReady:E,isCardOpen:S,transaction:R,googlePay:_,applePay:F,paypal:V}=q0({onSubmit:e,onError:t,onReset:n,clientToken:o}),z=h.jsx(t0,{isFetching:a,isFail:!!i,onSubmit:w,supportedCardTypes:l},"card"),J={"apple-pay":F?h.jsx(f0,{onError:T,onSubmit:p,onReady:C,transaction:F,locale:z0(c),supportedCardTypes:l&&F0(l)},"apple-pay"):null,"google-pay":_?h.jsx(p0,{onError:k,onSubmit:y,onReady:P,locale:$0(c),transaction:_},"google-pay"):null,paypal:V?h.jsx(L0,{transaction:V,onCreate:b,onApprove:v},"paypal"):null,card:s==="compact"?h.jsxs(_r,{color:"success",onClick:g,className:pe.cardBtn,children:[h.jsx(y1,{}),u.card.compact.button]},"card"):null};return r?h.jsx(bt.div,{variants:Zt.success,animate:"animate",initial:Zt.success.initial,children:h.jsx(K0,{title:u.status.success})}):s==="compact"?h.jsxs("div",{className:pe.container,dir:d,children:[E?null:h.jsx("div",{className:pe.spinnerContainer,children:h.jsx(yr,{className:pe.spinner})}),h.jsxs("div",{style:{display:E?"block":"none",position:"relative",width:"100%",maxWidth:"640px",overflow:"hidden"},children:[h.jsx(bt.div,{variants:Zt.btnVariants,animate:S?"close":"open",style:{position:"relative",width:"100%",height:"auto"},className:pe.btnContainer,children:R?.checkoutConfig.map(({type:fe,is_active:me})=>me&&J[fe]||null)},"btnVariants"),h.jsxs(bt.div,{variants:Zt.variants,animate:S?"open":"close",style:{position:"relative",width:"100%",height:"auto"},children:[h.jsx("div",{onClick:f,className:pe.backBtn,children:h.jsx(f1,{})}),z]},"cardVariants")]})]}):h.jsxs("div",{className:pe.container,dir:d,children:[E?null:h.jsx("div",{className:pe.spinnerContainer,children:h.jsx(yr,{className:pe.spinner})}),h.jsxs("div",{style:{display:E?"block":"none"},children:[R?.checkoutConfig.map(({type:fe,is_active:me})=>me&&J[fe]||null),z]})]})},ro=({clientToken:e,evConfig:t,translate:n,variant:r,locale:i,supportedCardTypes:s,styles:a,onCheckoutComplete:o,onCheckoutFail:l})=>{const u=po({clientToken:e,variant:r,supportedCardTypes:s,onCheckoutComplete:o,onCheckoutFail:l});return h.jsx(m.StrictMode,{children:h.jsx(h0,{evConfig:t,children:h.jsx(vo,{translate:n,locale:i,children:h.jsx(xo,{clientToken:e,children:h.jsx(G1,{styles:a,children:h.jsx(U0,{clientToken:e,variant:r,supportedCardTypes:s,isSuccess:u.isCheckoutSuccess,isFail:u.isCheckoutFail,onError:u.handleCheckoutFail,onSubmit:u.handleCheckout,onReset:u.handleCheckoutReset,isFetching:u.isCheckoutFetching})})})})})})};re.AblePayModule=ro,re.CardType=G,re.CheckoutForm=ro,re.InputError=B,re.cardTypes=Wt,Object.defineProperty(re,Symbol.toStringTag,{value:"Module"})});
|
|
53
53
|
//# sourceMappingURL=index.umd.js.map
|