@paynext/sdk 0.0.112 → 0.0.113
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/index.es.js +3 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(ne,re){typeof exports=="object"&&typeof module!="undefined"?re(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],re):(ne=typeof globalThis!="undefined"?globalThis:ne||self,re(ne["PayNext SDK"]={},ne.React))})(this,function(ne,re){"use strict";var Fl=Object.defineProperty,Ul=Object.defineProperties;var Bl=Object.getOwnPropertyDescriptors;var Mt=Object.getOwnPropertySymbols;var Ki=Object.prototype.hasOwnProperty,Wi=Object.prototype.propertyIsEnumerable;var Rn=(ne,re,se)=>re in ne?Fl(ne,re,{enumerable:!0,configurable:!0,writable:!0,value:se}):ne[re]=se,U=(ne,re)=>{for(var se in re||(re={}))Ki.call(re,se)&&Rn(ne,se,re[se]);if(Mt)for(var se of Mt(re))Wi.call(re,se)&&Rn(ne,se,re[se]);return ne},J=(ne,re)=>Ul(ne,Bl(re));var Te=(ne,re)=>{var se={};for(var ve in ne)Ki.call(ne,ve)&&re.indexOf(ve)<0&&(se[ve]=ne[ve]);if(ne!=null&&Mt)for(var ve of Mt(ne))re.indexOf(ve)<0&&Wi.call(ne,ve)&&(se[ve]=ne[ve]);return se};var A=(ne,re,se)=>Rn(ne,typeof re!="symbol"?re+"":re,se);var W=(ne,re,se)=>new Promise((ve,_t)=>{var Y=Ce=>{try{Re(se.next(Ce))}catch(Je){_t(Je)}},Ze=Ce=>{try{Re(se.throw(Ce))}catch(Je){_t(Je)}},Re=Ce=>Ce.done?ve(Ce.value):Promise.resolve(Ce.value).then(Y,Ze);Re((se=se.apply(ne,re)).next())});var se=document.createElement("style");se.textContent=`._spinner_1lif3_1{height:100%;width:100%}@keyframes _spin_1lif3_1{to{transform:rotate(360deg)}}._spinner_1lif3_1{animation:_spin_1lif3_1 1s linear infinite;fill:#9ca3af;--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}._spinner_1lif3_1:is(._dark_1lif3_1 *){fill:#d1d5db;--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}._spinnerContainer_1lif3_5{height:40px;width:40px}._success_1lif3_9{position:absolute;top:50%;left:50%;height:3.5rem;width:3.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:#0d776e;z-index:3}._successContainer_1lif3_14{position:relative;display:grid;height:5rem;width:5rem;flex:none;place-items:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(232 250 240 / var(--tw-bg-opacity, 1))}._successContainer_1lif3_14:is(._dark_1lif3_1 *){--tw-bg-opacity: 1;background-color:rgb(209 244 224 / var(--tw-bg-opacity, 1))}._successContainer_1lif3_14{z-index:0;animation:_containerPulse_1lif3_1 3s ease-in-out infinite}._successContainer_1lif3_14:before,._successContainer_1lif3_14:after{content:"";position:absolute;inset:0;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(209 244 224 / var(--tw-bg-opacity, 1))}._successContainer_1lif3_14:is(._dark_1lif3_1 *):before,._successContainer_1lif3_14:is(._dark_1lif3_1 *):after{--tw-bg-opacity: 1;background-color:rgb(167 233 193 / var(--tw-bg-opacity, 1))}._successContainer_1lif3_14:before,._successContainer_1lif3_14:after{animation:_ripplePulse_1lif3_1 3s cubic-bezier(.4,0,.6,1) infinite;opacity:0;z-index:1}._successContainer_1lif3_14:after{animation-delay:.5s}@keyframes _containerPulse_1lif3_1{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}@keyframes _ripplePulse_1lif3_1{0%{transform:scale(1);opacity:0}10%{transform:scale(1);opacity:.7}to{transform:scale(1.3);opacity:0}}._container_1lif3_57{width:30px;height:20px;display:flex;margin:0 1px;align-items:center;justify-content:center}._card_1lif3_66{width:28px;height:19px;display:flex;margin:0 1px;align-items:center;justify-content:center}._warning_1lif3_75{width:16px;height:16px;display:flex;align-items:center;justify-content:center}._svg_1lif3_83{width:100%;height:100%}._srOnly_1lif3_88{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}._backButton_1lif3_92{width:30px;height:30px;display:flex;margin:0 1px;align-items:center;justify-content:center;background-color:#f4f4f5;border-radius:8px}._loader_nwq3e_1{position:absolute;height:100%;top:0;left:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:1000;display:flex;width:100%;align-items:center;justify-content:center;border-radius:10px}._checkout_mcuv2_1{padding:0 4px;overflow:hidden;z-index:0;position:relative;height:auto;min-height:60px;width:100%;max-width:640px}._hidden_mcuv2_8{display:none!important}._formInitial_mcuv2_12{opacity:0;transform:translateY(100px)}._cardForm_mcuv2_18{opacity:1}._btnsInitial_mcuv2_22{opacity:0;transform:translateY(-100px)}._buttons_qc8am_1{display:flex;flex-direction:column;gap:8px;opacity:1}._hidden_qc8am_8{display:none!important}._skeleton_qc8am_12{overflow:hidden;width:100%;height:40px;border-radius:12px;background:linear-gradient(90deg,#f0f0f0,#e0e0e0 20%,#f0f0f0 40% 100%);background-size:200% 100%;animation:_shimmer_qc8am_1 2s infinite}@keyframes _shimmer_qc8am_1{0%{background-position:-200% 0}to{background-position:200% 0}}._applePay_1wlwu_1{display:flex;flex-direction:column;gap:8px}@media (hover: hover){._applePay_1wlwu_1:hover{filter:contrast(.575) brightness(1.2)}}._hidden_1wlwu_13{display:none!important}._googlePay_17y0j_1{position:relative;display:flex;overflow:hidden;height:40px;border-radius:12px}._googlePay_17y0j_1 iframe{position:absolute;top:-1px;left:-1px;width:calc(100% + 2px)!important;height:calc(100% + 2px)!important;border:none;display:block}._hidden_17y0j_19{display:none!important}._paypal_iyh6g_1{display:flex;flex-direction:column;gap:8px}._hidden_iyh6g_7{display:none}._button_1trim_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));cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;border-radius:.75rem;border-style:none;--tw-bg-opacity: 1;background-color:rgb(13 118 110 / var(--tw-bg-opacity, 1));padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:1.5rem;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_1trim_1{transition-property:none}}._button_1trim_1 span{margin-left:.25rem}@media (hover: hover){._button_1trim_1:hover{opacity:.7}}._container_10ziz_2{display:flex;flex-direction:column;gap:.5rem}._venmo_10ziz_8{display:flex;justify-content:center;align-items:center;overflow:hidden;border-radius:12px;height:40px;background-color:#0088f7;width:100%;color:#fff;font-size:16px;text-align:center;cursor:pointer;transition:background-color .3s ease;svg{height:40%}@media (hover: hover){&:hover{background-color:#5683c1}}}._hidden_10ziz_35{display:none}._button_125my_1{cursor:pointer}._button_1d7ly_1{margin-top:8px;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));cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;border-radius:.75rem;border-style:none;--tw-bg-opacity: 1;background-color:rgb(13 118 110 / 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_1d7ly_1{transition-property:none}}._button_1d7ly_1 span{margin-left:.25rem}._disabled_1d7ly_18{opacity:.7}@media (hover: hover){._button_1d7ly_1:hover{opacity:.7}}._hidden_1d7ly_28{display:none!important}._spinner_1d7ly_32{width:24px;height:24px}._cardForm_1uc4x_1{position:relative;display:grid;min-height:250px;gap:.75rem;padding-top:0;opacity:1}._hidden_1uc4x_6{display:none!important}._topOffset_1uc4x_10{margin-top:.5rem}._wrapper_1xw0g_1{position:relative}._inputContainer_1xw0g_5{background-color:transparent;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;transition:box-shadow .2s ease-in-out;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;padding-left:.75rem;padding-right:.75rem}._inputContainer_1xw0g_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1xw0g_5:-ms-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1xw0g_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}@media (min-width: 640px){._inputContainer_1xw0g_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_1xw0g_12{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}._inputContainer_1xw0g_5:focus-within:not(._disabled_1xw0g_23){box-shadow:0 0 0 1px #0d766eb3,0 1px 1px #00000012,0 0 0 4px #0d766e4d}._input_1xw0g_5{display:block;width:100%;height:100%;border:none;font-size:1rem;font-weight:400;outline:none;background-color:transparent;color:#1a1a1ae6}._endContent_1xw0g_39{display:flex}._errorInput_1xw0g_18{box-shadow:0 0 0 1px #dc2727,0 2px 4px #00000012,0 1px 1.5px #0000000d}._error_1xw0g_18{margin-top:4px;margin-bottom:0;padding-left:4px;font-size:12px;font-weight:400;color:#ef4444}._label_1xw0g_56{margin-bottom:3px;display:flex;justify-content:space-between;padding-left:1px;padding-right:2px;font-size:12px;font-weight:500;color:#1a1a1ab2}._labelError_1xw0g_67{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_1xw0g_23{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_1xw0g_75{opacity:1;-webkit-appearance:none!important;-webkit-text-fill-color:#9ca3af!important;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}._hidden_1xw0g_82{display:none!important}._wrapper_41zd2_1{position:relative}._inputContainer_41zd2_5{background-color:transparent;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;transition:box-shadow .2s ease-in-out;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;padding-left:.75rem;padding-right:.75rem}._inputContainer_41zd2_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_41zd2_5:-ms-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_41zd2_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}@media (min-width: 640px){._inputContainer_41zd2_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_41zd2_12{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}._inputContainer_41zd2_5:focus-within:not(._disabled_41zd2_23){box-shadow:0 0 0 1px #0d766eb3,0 1px 1px #00000012,0 0 0 4px #0d766e4d}._input_41zd2_5{display:block;width:100%;height:100%;border:none;font-size:1rem;font-weight:400;outline:none;background-color:transparent;color:#1a1a1ae6}._endContent_41zd2_39{display:flex}._errorInput_41zd2_18{box-shadow:0 0 0 1px #dc2727,0 2px 4px #00000012,0 1px 1.5px #0000000d}._error_41zd2_18{margin-top:4px;margin-bottom:0;padding-left:4px;font-size:12px;font-weight:400;color:#ef4444}._label_41zd2_56{margin-bottom:3px;display:flex;justify-content:space-between;padding-left:1px;padding-right:2px;font-size:12px;font-weight:500;color:#1a1a1ab2}._labelError_41zd2_67{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_41zd2_23{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_41zd2_75{opacity:1;-webkit-appearance:none!important;-webkit-text-fill-color:#9ca3af!important;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}._hidden_41zd2_82{display:none!important}._securityContent_41zd2_86{display:grid;grid-column-gap:6px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,auto))}._container_79xkl_1{display:flex;min-height:292px;width:100%;flex-direction:column;align-items:center;justify-content:center}._title_79xkl_5{margin-top:.5rem;font-weight:300}._container_g3abj_1{border-radius:12px;margin-top:.5rem;display:flex;width:100%;flex-grow:1;flex-direction:row;align-items:flex-start;justify-content:flex-start;-moz-column-gap:.25rem;column-gap:.25rem;--tw-bg-opacity: 1;background-color:rgb(254 231 239 / var(--tw-bg-opacity, 1));padding:.75rem 1rem}._container_g3abj_1:is(._dark_g3abj_1 *){background-color:#fee7ef80;--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}._container_g3abj_1 svg{margin-top:2px;width:16px;height:16px}._title_g3abj_12{padding:0;padding-left:.25rem;font-size:.875rem;line-height:1.25rem;font-weight:300;--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}._title_g3abj_12:is(._dark_g3abj_1 *){--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}
|
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(se);function ve(r,t){for(var e=0;e<t.length;e++){const n=t[e];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in r)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(r,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}class _t{constructor(t){A(this,"parent");A(this,"core");typeof window!="undefined"&&(this.parent=t)}mount(t){return W(this,null,function*(){if(!this.parent)return;if(!this.core){const i=(yield Promise.resolve().then(()=>yl)).Core;this.core=new i}t.styles&&this.core.state.styles.setState(t.styles),this.core.state.checkout.setState({clientToken:t.clientToken,environment:t.environment,apiVersion:t.apiVersion,errorMessageText:t.errorMessageText});const e=yield this.core.checkout.mount();this.parent.innerHTML="",this.parent.appendChild(e),this.core.state.checkout.setState(t)})}unmount(){return W(this,null,function*(){!this.parent||!this.core||(this.parent.innerHTML="",this.core.clearState())})}}var Y=(r=>(r.PAYPAL="PAYPAL",r.APPLE_PAY="APPLEPAY",r.GOOGLE_PAY="GPAY",r.CARD="CARD",r.VENMO="VENMO",r))(Y||{}),Ze=(r=>(r.PENDING="PENDING",r.FAILED="FAILED",r.AUTHORIZED="AUTHORIZED",r.SETTLING="SETTLING",r.SETTLED="SETTLED",r.DECLINED="DECLINED",r.CANCELLED="CANCELLED",r))(Ze||{}),Re=(r=>(r.INSUFFICIENT_FUNDS="insufficient_funds",r.AUTHENTICATION_REQUIRED="authentication_required",r.CARD_ISSUER_DECLINE="card_issuer_decline",r.GENERIC_DECLINE="generic_decline",r.WITHDRAWAL_LIMIT_EXCEEDED="withdrawal_limit_exceeded",r.DO_NOT_HONOR="do_not_honor",r.EXPIRED_CARD="expired_card",r.SUSPECTED_FRAUD="suspected_fraud",r.INCORRECT_CVC="incorrect_cvc",r.INVALID_CARD_NUMBER="invalid_card_number",r.ISSUER_UNAVAILABLE="issuer_unavailable",r.CARD_LOST_OR_STOLEN="card_lost_or_stolen",r.CARD_DECLINED="card_declined",r))(Re||{});const Ce=(r="sandbox")=>({develop:"https://dev-api.paynext.com",staging:"https://staging-api.paynext.com",sandbox:"https://sandbox-api.paynext.com",production:"https://api.paynext.com"})[r],Je=[{type:Y.PAYPAL,order:1,is_active:!0},{type:Y.APPLE_PAY,order:2,is_active:!0},{type:Y.GOOGLE_PAY,order:3,is_active:!0},{type:Y.CARD,order:4,is_active:!0}],Yi=r=>r.googlePay?Y.GOOGLE_PAY:r.applePay?Y.APPLE_PAY:r.paypal?Y.PAYPAL:r.braintree?Y.VENMO:Y.CARD,Gi=r=>{const t=r.card;if(t)return{bin:t.firstSixDigits,bin_data:{brand:t.cardBrand,country:t.country,currency_code:t.currency,funding:t.funding,issuer:t.issuer,type:t.type},cvc:t.cvc,exp_month:Number(t.expMonth),exp_year:Number(t.expYear),last4:t.lastFourDigits,number:t.number}},$i=r=>{var e;const t=r.paypal;if((e=t==null?void 0:t.billing_agreement_token)!=null&&e.paypalId)return{billing_agreement_token:t.billing_agreement_token.paypalId}},qi=r=>{var e,n;const t=r.googlePay;if(t!=null&&t.token)return{cryptogram:t.cryptogram,eci:t.eci,exp_month:(e=t.card)!=null&&e.expiry.month||t.token.expiry.month?Number(t.card.expiry.month||t.token.expiry.month):void 0,exp_year:(n=t.card)!=null&&n.expiry.year||t.token.expiry.year?Number(t.card.expiry.year||t.token.expiry.year):void 0,token:t.token.number,token_service_provider:t.token.tokenServiceProvider}},Qi=r=>{var e,n,i,a,s,o;const t=r.applePay;if(t)return{cryptogram:t.cryptogram,eci:t.eci,exp_month:(n=(e=t.networkToken)==null?void 0:e.expiry)!=null&&n.month?Number(t.networkToken.expiry.month):void 0,exp_year:(a=(i=t.networkToken)==null?void 0:i.expiry)!=null&&a.year?Number(t.networkToken.expiry.year):void 0,token:(s=t.networkToken)==null?void 0:s.number,token_service_provider:(o=t.networkToken)==null?void 0:o.tokenServiceProvider}},Xi=r=>{const t=r.braintree;if(t)return{payment_method_nonce:t.nonce}},kn=r=>{var n,i,a,s,o,c,l,d,u,h,p,f,m,v;const{applePay:t,googlePay:e}=r;if(!(!t&&!e))return{city:((n=t==null?void 0:t.billingContact)==null?void 0:n.locality)||((i=e==null?void 0:e.billingAddress)==null?void 0:i.locality)||void 0,country:((a=t==null?void 0:t.billingContact)==null?void 0:a.countryCode)||((s=e==null?void 0:e.billingAddress)==null?void 0:s.countryCode)||void 0,line1:((c=(o=t==null?void 0:t.billingContact)==null?void 0:o.addressLines)==null?void 0:c.at(0))||((l=e==null?void 0:e.billingAddress)==null?void 0:l.address1)||void 0,line2:((u=(d=t==null?void 0:t.billingContact)==null?void 0:d.addressLines)==null?void 0:u.at(1))||((h=e==null?void 0:e.billingAddress)==null?void 0:h.address2)||void 0,postal_code:((p=t==null?void 0:t.billingContact)==null?void 0:p.postalCode)||((f=e==null?void 0:e.billingAddress)==null?void 0:f.postalCode)||void 0,state:((m=t==null?void 0:t.billingContact)==null?void 0:m.administrativeArea)||((v=e==null?void 0:e.billingAddress)==null?void 0:v.administrativeArea)||void 0}},Sn=r=>{var i,a,s,o,c,l,d,u,h,p,f,m,v,b,w,x,N,I,L;const{card:t,googlePay:e,applePay:n}=r;if(!(!t&&!(e!=null&&e.card)&&!(n!=null&&n.card)))return{bin:t==null?void 0:t.firstSixDigits,bin_data:{brand:(t==null?void 0:t.cardBrand)||((i=e==null?void 0:e.card)==null?void 0:i.brand)||((a=n==null?void 0:n.card)==null?void 0:a.brand),country:(t==null?void 0:t.country)||((s=e==null?void 0:e.card)==null?void 0:s.country)||((o=n==null?void 0:n.card)==null?void 0:o.country),currency_code:(t==null?void 0:t.currency)||((c=e==null?void 0:e.card)==null?void 0:c.currency)||((l=n==null?void 0:n.card)==null?void 0:l.currency),funding:(t==null?void 0:t.funding)||((d=e==null?void 0:e.card)==null?void 0:d.funding)||((u=n==null?void 0:n.card)==null?void 0:u.funding),issuer:(t==null?void 0:t.issuer)||((h=e==null?void 0:e.card)==null?void 0:h.issuer)||((p=n==null?void 0:n.card)==null?void 0:p.issuer),type:(t==null?void 0:t.type)||((f=e==null?void 0:e.card)==null?void 0:f.segment)||((m=n==null?void 0:n.card)==null?void 0:m.segment)},cvc:t==null?void 0:t.cvc,exp_month:t!=null&&t.expMonth||(v=e==null?void 0:e.card)!=null&&v.expiry.month?Number((t==null?void 0:t.expMonth)||((b=e==null?void 0:e.card)==null?void 0:b.expiry.month)):void 0,exp_year:t!=null&&t.expYear||(w=e==null?void 0:e.card)!=null&&w.expiry.year?Number((t==null?void 0:t.expYear)||((x=e==null?void 0:e.card)==null?void 0:x.expiry.year)):void 0,last4:(t==null?void 0:t.lastFourDigits)||((N=e==null?void 0:e.card)==null?void 0:N.lastFour)||((I=n==null?void 0:n.card)==null?void 0:I.lastFour),number:(t==null?void 0:t.number)||((L=e==null?void 0:e.card)==null?void 0:L.number)}},Mn=r=>{var n,i;const{applePay:t,card:e}=r;return(n=t==null?void 0:t.billingContact)!=null&&n.givenName?`${t.billingContact.givenName} ${t.billingContact.familyName||""}`.trim():(i=e==null?void 0:e.metadata)==null?void 0:i.name},Zi=r=>{var n,i;const t=Yi(r),e={client_session:r.clientSession,three_ds_session_id:r.threeDsSessionId,type:t};switch(t){case Y.CARD:return J(U({},e),{name:Mn(r),card:Gi(r)});case Y.PAYPAL:return J(U({},e),{paypal:$i(r)});case Y.GOOGLE_PAY:return J(U({},e),{card:Sn(r),google_pay:qi(r),billing_address:kn(r)});case Y.APPLE_PAY:return J(U({},e),{name:Mn(r),card:Sn(r),apple_pay:Qi(r),phone:(i=(n=r.applePay)==null?void 0:n.shippingContact)==null?void 0:i.phoneNumber,billing_address:kn(r)});case Y.VENMO:return J(U({},e),{venmo:Xi(r)});default:throw new Error(`Unsupported payment method: ${t}`)}},Ji=(r,t,e)=>W(this,null,function*(){const n=`${Ce(t)}/payments/create`,i=new Headers;i.append("Content-Type","application/json"),i.append("X-API-Version",e);const a=Zi(r);return yield(yield fetch(n,{method:"POST",headers:i,body:JSON.stringify(a)})).json()}),ea=(r,t,e)=>W(this,null,function*(){const n=`${Ce(t)}/payments/create/billing/agreement`,i=new Headers;return i.append("Content-Type","application/json"),i.append("X-API-Version",e),(yield(yield fetch(n,{method:"POST",headers:i,body:JSON.stringify({client_session:r})})).json()).paypal_agreement_token_response.token_id||""}),ta=(r,t,e)=>W(this,null,function*(){const n=`${Ce(t)}/payments/config?client_session_id=${r}`,i=new Headers;i.append("X-API-Version",e);const s=yield(yield fetch(n,{headers:i})).json();return s.checkout_config||(s.checkout_config=Je),s});let na=class{constructor(t){A(this,"apple",null);A(this,"isAvailable",!1);A(this,"onReady");this.ev=t}init(l,d){return W(this,arguments,function*({transaction:t,locale:e,onReady:n,onError:i,onSuccess:a,onCancel:s,onPaymentAttempt:o},c){const u=this.ev.transactions.create(t);this.apple=this.ev.ui.applePay(u,J(U({locale:e,borderRadius:12,size:{width:"100%",height:"40px"}},c==null?void 0:c.styles),{allowedCardNetworks:["masterCard"],requestBillingAddress:!0,requestPayerDetails:["name","email","phone"],process:(m,v)=>W(this,[m,v],function*(p,{fail:f}){o==null||o({paymentMethod:Y.GOOGLE_PAY});try{a==null||a(p)}catch(b){console.error(b),f({message:"Cannot pay with payment credentials"})}})}));const h=yield this.apple.availability();this.isAvailable=h==="available",this.isAvailable||i==null||i("Apple Pay is not supported on this device"),i&&this.apple.on("error",i),s&&this.apple.on("cancel",s),this.onReady=n})}render(t){return W(this,null,function*(){var e;!this.apple||!this.isAvailable||(t.innerHTML="",yield this.apple.mount(t),(e=this.onReady)==null||e.call(this))})}},ra=class{constructor(t){A(this,"google",null);this.ev=t}init(l,d){return W(this,arguments,function*({transaction:t,locale:e,onReady:n,onError:i,onSuccess:a,onCancel:s,onPaymentAttempt:o},c){const u=this.ev.transactions.create(t);this.google=this.ev.ui.googlePay(u,J(U({locale:e,size:{width:"100%",height:40},borderRadius:12,billingAddress:{phoneNumber:!0}},c==null?void 0:c.styles),{allowedCardNetworks:["MASTERCARD"],process:(f,m)=>W(this,[f,m],function*(h,{fail:p}){o==null||o({paymentMethod:Y.GOOGLE_PAY});try{a==null||a(h)}catch(v){console.error(v),p({message:"Cannot pay with payment credentials"})}})})),s&&this.google.on("cancel",s),n&&this.google.on("ready",n),i&&this.google.on("error",i)})}render(t){return W(this,null,function*(){this.google&&(t.innerHTML="",this.google.mount(t))})}};class ue{constructor(){A(this,"listeners",[])}removeListener(t){this.listeners=this.listeners.filter(e=>e!==t)}addListener(t){return this.listeners.push(t),()=>this.removeListener(t)}emit(t){for(const e of this.listeners)e(t)}clear(){this.listeners=[]}}class ia{constructor(t){A(this,"threeDs",null);this.ev=t}init(a){return W(this,arguments,function*({threeDsId:t,onReady:e,onSuccess:n,onError:i}){this.threeDs=this.ev.ui.threeDSecure(t),this.threeDs.on("ready",()=>e==null?void 0:e()),this.threeDs.on("success",()=>n==null?void 0:n()),this.threeDs.on("failure",()=>i==null?void 0:i()),this.threeDs.on("error",()=>i==null?void 0:i())})}render(t){return W(this,null,function*(){this.threeDs&&this.threeDs.mount(t)})}}class aa{constructor(){A(this,"isReady",!1);A(this,"ev",null);A(this,"apple",null);A(this,"google",null);A(this,"threeDs",null);A(this,"events",{ready:new ue})}isShouldLoad({teamId:t,appId:e}){var n,i;return((n=this.ev)==null?void 0:n.config.appId)!==e||((i=this.ev)==null?void 0:i.config.teamId)!==t}initEv(t){return W(this,null,function*(){if(!this.isShouldLoad(t))return;if(typeof window=="undefined")throw new Error("Evervault can only be initialized in browser environment");this.isReady=!1;const{loadEvervault:e}=yield Promise.resolve().then(()=>Cl);this.ev=yield e(t.teamId,t.appId),this.apple=new na(this.ev),this.google=new ra(this.ev),this.events.ready.emit(),this.isReady=!0})}initThreeDs(t){return W(this,null,function*(){if(!this.ev)throw new Error("Evervault should be init before using Three DS Secure");this.threeDs=new ia(this.ev),yield this.threeDs.init(t),yield this.threeDs.render()})}initApple(t,e){return W(this,null,function*(){if(!this.apple)throw new Error("Evervault should be init before using Apple Pay");yield this.apple.init(t,e)})}initGoogle(t,e){return W(this,null,function*(){if(!this.google)throw new Error("Evervault should be init before using Google Pay");yield this.google.init(t,e)})}isAppleAvailable(){var t;return!!((t=this.apple)!=null&&t.isAvailable)}addEventListener(t,e){return this.events[t].addListener(e)}renderApple(t){return W(this,null,function*(){var e;return(e=this.apple)==null?void 0:e.render(t)})}renderGoogle(t){return W(this,null,function*(){var e;return(e=this.google)==null?void 0:e.render(t)})}getEv(){if(!this.ev)throw new Error("Evervault should be init before getting instance");return this.ev}}function Dt(r){return typeof r=="object"&&!Array.isArray(r)}function sa(r,t,e){var n;if(r instanceof EventTarget)return[r];if(typeof r=="string"){let i=document;const a=(n=e==null?void 0:e[r])!=null?n:i.querySelectorAll(r);return a?Array.from(a):[]}return Array.from(r)}function Dn(r,t,e,n){return typeof r=="string"&&Dt(t)?sa(r,e,n):r instanceof NodeList?Array.from(r):Array.isArray(r)?r:[r]}function oa(r,t,e){return r*(t+1)}function Vn(r,t,e,n){var i;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,r+parseFloat(t)):t==="<"?e:(i=n.get(t))!=null?i:r}const et=(r,t,e)=>r+(t-r)*e,ca=(r,t,e)=>{const n=t-r;return((e-r)%n+n)%n+r},Fn=r=>Array.isArray(r)&&typeof r[0]!="number";function Un(r,t){return Fn(r)?r[ca(0,r.length,t)]:r}function la(r,t){r.indexOf(t)===-1&&r.push(t)}function Bn(r,t){const e=r.indexOf(t);e>-1&&r.splice(e,1)}function da(r,t,e){for(let n=0;n<r.length;n++){const i=r[n];i.at>t&&i.at<e&&(Bn(r,i),n--)}}function ua(r,t,e,n,i,a){da(r,i,a);for(let s=0;s<t.length;s++)r.push({value:t[s],at:et(i,a,n[s]),easing:Un(e,s)})}function pa(r,t){for(let e=0;e<r.length;e++)r[e]=r[e]/(t+1)}function ha(r,t){return r.at===t.at?r.value===null?1:t.value===null?-1:0:r.at-t.at}const ge=r=>!!(r&&r.getVelocity),Vt=(r,t,e)=>{const n=t-r;return n===0?1:(e-r)/n};function zn(r,t){const e=r[r.length-1];for(let n=1;n<=t;n++){const i=Vt(0,t,n);r.push(et(e,1,i))}}function jn(r){const t=[0];return zn(t,r.length-1),t}function Ft(r){return typeof r=="function"&&"applyToOptions"in r}const Et=2e4;function Ut(r){let t=0;const e=50;let n=r.next(t);for(;!n.done&&t<Et;)t+=e,n=r.next(t);return t>=Et?1/0:t}const we=r=>r*1e3,xe=r=>r/1e3;function Hn(r,t=100,e){const n=e(J(U({},r),{keyframes:[0,t]})),i=Math.min(Ut(n),Et);return{type:"keyframes",ease:a=>n.next(i*a).value/t,duration:xe(i)}}let tt=()=>{},Oe=()=>{};process.env.NODE_ENV!=="production"&&(tt=(r,t)=>{!r&&typeof console!="undefined"&&console.warn(t)},Oe=(r,t)=>{if(!r)throw new Error(t)});const fa="easeInOut",ma=20;function va(r,a={},n,i){var s=a,{defaultTransition:t={}}=s,e=Te(s,["defaultTransition"]);const o=t.duration||.3,c=new Map,l=new Map,d={},u=new Map;let h=0,p=0,f=0;for(let m=0;m<r.length;m++){const v=r[m];if(typeof v=="string"){u.set(v,p);continue}else if(!Array.isArray(v)){u.set(v.name,Vn(p,v.at,h,u));continue}let[b,w,x={}]=v;x.at!==void 0&&(p=Vn(p,x.at,h,u));let N=0;const I=(L,O,S,B=0,G=0)=>{const $=ga(L),D=O,{delay:F=0,times:j=jn($),type:H="keyframes",repeat:ee,repeatType:M,repeatDelay:q=0}=D,K=Te(D,["delay","times","type","repeat","repeatType","repeatDelay"]);let{ease:E=t.ease||"easeOut",duration:g}=O;const R=typeof F=="function"?F(B,G):F,V=$.length,y=Ft(H)?H:i==null?void 0:i[H];if(V<=2&&y){let C=100;if(V===2&&_a($)){const le=$[1]-$[0];C=Math.abs(le)}const z=U({},K);g!==void 0&&(z.duration=we(g));const Z=Hn(z,C,y);E=Z.ease,g=Z.duration}g!=null||(g=o);const T=p+R;j.length===1&&j[0]===0&&(j[1]=1);const _=j.length-$.length;if(_>0&&zn(j,_),$.length===1&&$.unshift(null),ee){Oe(ee<ma,"Repeat count too high, must be less than 20"),g=oa(g,ee);const C=[...$],z=[...j];E=Array.isArray(E)?[...E]:[E];const Z=[...E];for(let le=0;le<ee;le++){$.push(...C);for(let k=0;k<C.length;k++)j.push(z[k]+(le+1)),E.push(k===0?"linear":Un(Z,k-1))}pa(j,ee)}const P=T+g;ua(S,$,E,j,T,P),N=Math.max(R+g,N),f=Math.max(P,f)};if(ge(b)){const L=Kn(b,l);I(w,x,Wn("default",L))}else{const L=Dn(b,w,n,d),O=L.length;for(let S=0;S<O;S++){w=w,x=x;const B=L[S],G=Kn(B,l);for(const $ in w)I(w[$],ba(x,$),Wn($,G),S,O)}}h=p,p+=N}return l.forEach((m,v)=>{for(const b in m){const w=m[b];w.sort(ha);const x=[],N=[],I=[];for(let O=0;O<w.length;O++){const{at:S,value:B,easing:G}=w[O];x.push(B),N.push(Vt(0,f,S)),I.push(G||"easeOut")}N[0]!==0&&(N.unshift(0),x.unshift(x[0]),I.unshift(fa)),N[N.length-1]!==1&&(N.push(1),x.push(null)),c.has(v)||c.set(v,{keyframes:{},transition:{}});const L=c.get(v);L.keyframes[b]=x,L.transition[b]=U(J(U({},t),{duration:f,ease:I,times:N}),e)}}),c}function Kn(r,t){return!t.has(r)&&t.set(r,{}),t.get(r)}function Wn(r,t){return t[r]||(t[r]=[]),t[r]}function ga(r){return Array.isArray(r)?r:[r]}function ba(r,t){return r&&r[t]?U(U({},r),r[t]):U({},r)}const ya=r=>typeof r=="number",_a=r=>r.every(ya),nt=new WeakMap,Ea=r=>Array.isArray(r);function Yn(r){const t=[{},{}];return r==null||r.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Gn(r,t,e,n){if(typeof t=="function"){const[i,a]=Yn(n);t=t(e!==void 0?e:r.custom,i,a)}if(typeof t=="string"&&(t=r.variants&&r.variants[t]),typeof t=="function"){const[i,a]=Yn(n);t=t(e!==void 0?e:r.custom,i,a)}return t}function Ca(r,t,e){const n=r.getProps();return Gn(n,t,n.custom,r)}const Ct=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function wa(r,t){let e=new Set,n=new Set,i=!1,a=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function c(d){s.has(d)&&(l.schedule(d),r()),d(o)}const l={schedule:(d,u=!1,h=!1)=>{const f=h&&i?e:n;return u&&s.add(d),f.has(d)||f.add(d),d},cancel:d=>{n.delete(d),s.delete(d)},process:d=>{if(o=d,i){a=!0;return}i=!0,[e,n]=[n,e],e.forEach(c),e.clear(),i=!1,a&&(a=!1,l.process(d))}};return l}const Ne={},Aa=40;function Ta(r,t){let e=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>e=!0,s=Ct.reduce((x,N)=>(x[N]=wa(a),x),{}),{setup:o,read:c,resolveKeyframes:l,preUpdate:d,update:u,preRender:h,render:p,postRender:f}=s,m=()=>{const x=Ne.useManualTiming?i.timestamp:performance.now();e=!1,Ne.useManualTiming||(i.delta=n?1e3/60:Math.max(Math.min(x-i.timestamp,Aa),1)),i.timestamp=x,i.isProcessing=!0,o.process(i),c.process(i),l.process(i),d.process(i),u.process(i),h.process(i),p.process(i),f.process(i),i.isProcessing=!1,e&&t&&(n=!1,r(m))},v=()=>{e=!0,n=!0,i.isProcessing||r(m)};return{schedule:Ct.reduce((x,N)=>{const I=s[N];return x[N]=(L,O=!1,S=!1)=>(e||v(),I.schedule(L,O,S)),x},{}),cancel:x=>{for(let N=0;N<Ct.length;N++)s[Ct[N]].cancel(x)},state:i,steps:s}}const ze=r=>r,{schedule:Pe,cancel:Bt,state:wt}=Ta(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:ze,!0);let At;function Ia(){At=void 0}const ye={now:()=>(At===void 0&&ye.set(wt.isProcessing||Ne.useManualTiming?wt.timestamp:performance.now()),At),set:r=>{At=r,queueMicrotask(Ia)}},$n=new Set;function qn(r,t,e){r||$n.has(t)||(console.warn(t),$n.add(t))}class Qn{constructor(){this.subscriptions=[]}add(t){return la(this.subscriptions,t),()=>Bn(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,e,n);else for(let a=0;a<i;a++){const s=this.subscriptions[a];s&&s(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Xn(r,t){return t?r*(1e3/t):0}const Zn=30,xa=r=>!isNaN(parseFloat(r));class Oa{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,i=!0)=>{var s,o;const a=ye.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty();i&&((o=this.events.renderRequest)==null||o.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=ye.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=xa(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&qn(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new Qn);const n=this.events[t].add(e);return t==="change"?()=>{n(),Pe.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){!e||!this.passiveEffect?this.updateAndNotify(t,e):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.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=ye.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Zn)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,Zn);return Xn(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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(){var t,e;(t=this.dependents)==null||t.clear(),(e=this.events.destroy)==null||e.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function rt(r,t){return new Oa(r,t)}function Na(r,t,e){r.hasValue(t)?r.getValue(t).set(e):r.addValue(t,rt(e))}function Pa(r){return Ea(r)?r[r.length-1]||0:r}function La(r,t){let s=Ca(r,t)||{},{transitionEnd:n={},transition:i={}}=s,a=Te(s,["transitionEnd","transition"]);a=U(U({},a),n);for(const o in a){const c=Pa(a[o]);Na(r,o,c)}}function Ra(r){return!!(ge(r)&&r.add)}function ka(r,t){const e=r.getValue("willChange");if(Ra(e))return e.add(t);if(!e&&Ne.WillChange){const n=new Ne.WillChange("auto");r.addValue("willChange",n),n.add(t)}}const zt=r=>r.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Sa="data-"+zt("framerAppearId");function Ma(r){return r.props[Sa]}const Da=r=>r!==null;function Va(r,{repeat:t,repeatType:e="loop"},n){const i=r.filter(Da),a=t&&e!=="loop"&&t%2===1?0:i.length-1;return i[a]}const je=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],He=new Set(je),Fa={type:"spring",stiffness:500,damping:25,restSpeed:10},Ua=r=>({type:"spring",stiffness:550,damping:r===0?2*Math.sqrt(550):30,restSpeed:10}),Ba={type:"keyframes",duration:.8},za={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ja=(r,{keyframes:t})=>t.length>2?Ba:He.has(r)?r.startsWith("scale")?Ua(t[1]):Fa:za;function Ha(u){var h=u,{when:r,delay:t,delayChildren:e,staggerChildren:n,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:c,elapsed:l}=h,d=Te(h,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return!!Object.keys(d).length}function Jn(r,t){var e,n;return(n=(e=r==null?void 0:r[t])!=null?e:r==null?void 0:r.default)!=null?n:r}const er=r=>t=>typeof t=="string"&&t.startsWith(r),tr=er("--"),Ka=er("var(--"),jt=r=>Ka(r)?Wa.test(r.split("/*")[0].trim()):!1,Wa=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ke=(r,t,e)=>e>t?t:e<r?r:e,Ke={test:r=>typeof r=="number",parse:parseFloat,transform:r=>r},it=J(U({},Ke),{transform:r=>ke(0,1,r)}),Tt=J(U({},Ke),{default:1}),at=r=>Math.round(r*1e5)/1e5,Ht=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ya(r){return r==null}const Ga=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Kt=(r,t)=>e=>!!(typeof e=="string"&&Ga.test(e)&&e.startsWith(r)||t&&!Ya(e)&&Object.prototype.hasOwnProperty.call(e,t)),nr=(r,t,e)=>n=>{if(typeof n!="string")return n;const[i,a,s,o]=n.match(Ht);return{[r]:parseFloat(i),[t]:parseFloat(a),[e]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},$a=r=>ke(0,255,r),Wt=J(U({},Ke),{transform:r=>Math.round($a(r))}),Se={test:Kt("rgb","red"),parse:nr("red","green","blue"),transform:({red:r,green:t,blue:e,alpha:n=1})=>"rgba("+Wt.transform(r)+", "+Wt.transform(t)+", "+Wt.transform(e)+", "+at(it.transform(n))+")"};function qa(r){let t="",e="",n="",i="";return r.length>5?(t=r.substring(1,3),e=r.substring(3,5),n=r.substring(5,7),i=r.substring(7,9)):(t=r.substring(1,2),e=r.substring(2,3),n=r.substring(3,4),i=r.substring(4,5),t+=t,e+=e,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(e,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const Yt={test:Kt("#"),parse:qa,transform:Se.transform},st=r=>({test:t=>typeof t=="string"&&t.endsWith(r)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${r}`}),Le=st("deg"),We=st("%"),X=st("px"),Qa=st("vh"),Xa=st("vw"),rr=J(U({},We),{parse:r=>We.parse(r)/100,transform:r=>We.transform(r*100)}),Ye={test:Kt("hsl","hue"),parse:nr("hue","saturation","lightness"),transform:({hue:r,saturation:t,lightness:e,alpha:n=1})=>"hsla("+Math.round(r)+", "+We.transform(at(t))+", "+We.transform(at(e))+", "+at(it.transform(n))+")"},fe={test:r=>Se.test(r)||Yt.test(r)||Ye.test(r),parse:r=>Se.test(r)?Se.parse(r):Ye.test(r)?Ye.parse(r):Yt.parse(r),transform:r=>typeof r=="string"?r:r.hasOwnProperty("red")?Se.transform(r):Ye.transform(r)},Za=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ja(r){var t,e;return isNaN(r)&&typeof r=="string"&&(((t=r.match(Ht))==null?void 0:t.length)||0)+(((e=r.match(Za))==null?void 0:e.length)||0)>0}const ir="number",ar="color",es="var",ts="var(",sr="${}",ns=/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 ot(r){const t=r.toString(),e=[],n={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(ns,c=>(fe.test(c)?(n.color.push(a),i.push(ar),e.push(fe.parse(c))):c.startsWith(ts)?(n.var.push(a),i.push(es),e.push(c)):(n.number.push(a),i.push(ir),e.push(parseFloat(c))),++a,sr)).split(sr);return{values:e,split:o,indexes:n,types:i}}function or(r){return ot(r).values}function cr(r){const{split:t,types:e}=ot(r),n=t.length;return i=>{let a="";for(let s=0;s<n;s++)if(a+=t[s],i[s]!==void 0){const o=e[s];o===ir?a+=at(i[s]):o===ar?a+=fe.transform(i[s]):a+=i[s]}return a}}const rs=r=>typeof r=="number"?0:r;function is(r){const t=or(r);return cr(r)(t.map(rs))}const Ge={test:Ja,parse:or,createTransformer:cr,getAnimatableNone:is};function Gt(r,t,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?r+(t-r)*6*e:e<1/2?t:e<2/3?r+(t-r)*(2/3-e)*6:r}function as({hue:r,saturation:t,lightness:e,alpha:n}){r/=360,t/=100,e/=100;let i=0,a=0,s=0;if(!t)i=a=s=e;else{const o=e<.5?e*(1+t):e+t-e*t,c=2*e-o;i=Gt(c,o,r+1/3),a=Gt(c,o,r),s=Gt(c,o,r-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:n}}function It(r,t){return e=>e>0?t:r}const $t=(r,t,e)=>{const n=r*r,i=e*(t*t-n)+n;return i<0?0:Math.sqrt(i)},ss=[Yt,Se,Ye],os=r=>ss.find(t=>t.test(r));function lr(r){const t=os(r);if(tt(!!t,`'${r}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let e=t.parse(r);return t===Ye&&(e=as(e)),e}const dr=(r,t)=>{const e=lr(r),n=lr(t);if(!e||!n)return It(r,t);const i=U({},e);return a=>(i.red=$t(e.red,n.red,a),i.green=$t(e.green,n.green,a),i.blue=$t(e.blue,n.blue,a),i.alpha=et(e.alpha,n.alpha,a),Se.transform(i))},qt=new Set(["none","hidden"]);function cs(r,t){return qt.has(r)?e=>e<=0?r:t:e=>e>=1?t:r}const ls=(r,t)=>e=>t(r(e)),Qt=(...r)=>r.reduce(ls);function ds(r,t){return e=>et(r,t,e)}function Xt(r){return typeof r=="number"?ds:typeof r=="string"?jt(r)?It:fe.test(r)?dr:hs:Array.isArray(r)?ur:typeof r=="object"?fe.test(r)?dr:us:It}function ur(r,t){const e=[...r],n=e.length,i=r.map((a,s)=>Xt(a)(a,t[s]));return a=>{for(let s=0;s<n;s++)e[s]=i[s](a);return e}}function us(r,t){const e=U(U({},r),t),n={};for(const i in e)r[i]!==void 0&&t[i]!==void 0&&(n[i]=Xt(r[i])(r[i],t[i]));return i=>{for(const a in n)e[a]=n[a](i);return e}}function ps(r,t){var i;const e=[],n={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const s=t.types[a],o=r.indexes[s][n[s]],c=(i=r.values[o])!=null?i:0;e[a]=c,n[s]++}return e}const hs=(r,t)=>{const e=Ge.createTransformer(t),n=ot(r),i=ot(t);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?qt.has(r)&&!i.values.length||qt.has(t)&&!n.values.length?cs(r,t):Qt(ur(ps(n,i),i.values),e):(tt(!0,`Complex values '${r}' 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.`),It(r,t))};function pr(r,t,e){return typeof r=="number"&&typeof t=="number"&&typeof e=="number"?et(r,t,e):Xt(r)(r,t)}const fs=r=>{const t=({timestamp:e})=>r(e);return{start:(e=!0)=>Pe.update(t,e),stop:()=>Bt(t),now:()=>wt.isProcessing?wt.timestamp:ye.now()}},hr=(r,t,e=10)=>{let n="";const i=Math.max(Math.round(t/e),2);for(let a=0;a<i;a++)n+=r(a/(i-1))+", ";return`linear(${n.substring(0,n.length-2)})`},ms=5;function fr(r,t,e){const n=Math.max(t-ms,0);return Xn(e-r(n),t-n)}const ce={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},Zt=.001;function vs({duration:r=ce.duration,bounce:t=ce.bounce,velocity:e=ce.velocity,mass:n=ce.mass}){let i,a;tt(r<=we(ce.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=ke(ce.minDamping,ce.maxDamping,s),r=ke(ce.minDuration,ce.maxDuration,xe(r)),s<1?(i=l=>{const d=l*s,u=d*r,h=d-e,p=Jt(l,s),f=Math.exp(-u);return Zt-h/p*f},a=l=>{const u=l*s*r,h=u*e+e,p=Math.pow(s,2)*Math.pow(l,2)*r,f=Math.exp(-u),m=Jt(Math.pow(l,2),s);return(-i(l)+Zt>0?-1:1)*((h-p)*f)/m}):(i=l=>{const d=Math.exp(-l*r),u=(l-e)*r+1;return-Zt+d*u},a=l=>{const d=Math.exp(-l*r),u=(e-l)*(r*r);return d*u});const o=5/r,c=bs(i,a,o);if(r=we(r),isNaN(c))return{stiffness:ce.stiffness,damping:ce.damping,duration:r};{const l=Math.pow(c,2)*n;return{stiffness:l,damping:s*2*Math.sqrt(n*l),duration:r}}}const gs=12;function bs(r,t,e){let n=e;for(let i=1;i<gs;i++)n=n-r(n)/t(n);return n}function Jt(r,t){return r*Math.sqrt(1-t*t)}const ys=["duration","bounce"],_s=["stiffness","damping","mass"];function mr(r,t){return t.some(e=>r[e]!==void 0)}function Es(r){let t=U({velocity:ce.velocity,stiffness:ce.stiffness,damping:ce.damping,mass:ce.mass,isResolvedFromDuration:!1},r);if(!mr(r,_s)&&mr(r,ys))if(r.visualDuration){const e=r.visualDuration,n=2*Math.PI/(e*1.2),i=n*n,a=2*ke(.05,1,1-(r.bounce||0))*Math.sqrt(i);t=J(U({},t),{mass:ce.mass,stiffness:i,damping:a})}else{const e=vs(r);t=J(U(U({},t),e),{mass:ce.mass}),t.isResolvedFromDuration=!0}return t}function ct(r=ce.visualDuration,t=ce.bounce){const e=typeof r!="object"?{visualDuration:r,keyframes:[0,1],bounce:t}:r;let{restSpeed:n,restDelta:i}=e;const a=e.keyframes[0],s=e.keyframes[e.keyframes.length-1],o={done:!1,value:a},{stiffness:c,damping:l,mass:d,duration:u,velocity:h,isResolvedFromDuration:p}=Es(J(U({},e),{velocity:-xe(e.velocity||0)})),f=h||0,m=l/(2*Math.sqrt(c*d)),v=s-a,b=xe(Math.sqrt(c/d)),w=Math.abs(v)<5;n||(n=w?ce.restSpeed.granular:ce.restSpeed.default),i||(i=w?ce.restDelta.granular:ce.restDelta.default);let x;if(m<1){const I=Jt(b,m);x=L=>{const O=Math.exp(-m*b*L);return s-O*((f+m*b*v)/I*Math.sin(I*L)+v*Math.cos(I*L))}}else if(m===1)x=I=>s-Math.exp(-b*I)*(v+(f+b*v)*I);else{const I=b*Math.sqrt(m*m-1);x=L=>{const O=Math.exp(-m*b*L),S=Math.min(I*L,300);return s-O*((f+m*b*v)*Math.sinh(S)+I*v*Math.cosh(S))/I}}const N={calculatedDuration:p&&u||null,next:I=>{const L=x(I);if(p)o.done=I>=u;else{let O=I===0?f:0;m<1&&(O=I===0?we(f):fr(x,I,L));const S=Math.abs(O)<=n,B=Math.abs(s-L)<=i;o.done=S&&B}return o.value=o.done?s:L,o},toString:()=>{const I=Math.min(Ut(N),Et),L=hr(O=>N.next(I*O).value,I,30);return I+"ms "+L},toTransition:()=>{}};return N}ct.applyToOptions=r=>{const t=Hn(r,100,ct);return r.ease=t.ease,r.duration=we(t.duration),r.type="keyframes",r};function en({keyframes:r,velocity:t=0,power:e=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:c,restDelta:l=.5,restSpeed:d}){const u=r[0],h={done:!1,value:u},p=S=>o!==void 0&&S<o||c!==void 0&&S>c,f=S=>o===void 0?c:c===void 0||Math.abs(o-S)<Math.abs(c-S)?o:c;let m=e*t;const v=u+m,b=s===void 0?v:s(v);b!==v&&(m=b-u);const w=S=>-m*Math.exp(-S/n),x=S=>b+w(S),N=S=>{const B=w(S),G=x(S);h.done=Math.abs(B)<=l,h.value=h.done?b:G};let I,L;const O=S=>{p(h.value)&&(I=S,L=ct({keyframes:[h.value,f(h.value)],velocity:fr(x,S,h.value),damping:i,stiffness:a,restDelta:l,restSpeed:d}))};return O(0),{calculatedDuration:null,next:S=>{let B=!1;return!L&&I===void 0&&(B=!0,N(S),O(S)),I!==void 0&&S>=I?L.next(S-I):(!B&&N(S),h)}}}function Cs(r,t,e){const n=[],i=e||Ne.mix||pr,a=r.length-1;for(let s=0;s<a;s++){let o=i(r[s],r[s+1]);if(t){const c=Array.isArray(t)?t[s]||ze:t;o=Qt(c,o)}n.push(o)}return n}function ws(r,t,{clamp:e=!0,ease:n,mixer:i}={}){const a=r.length;if(Oe(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=r[0]===r[1];r[0]>r[a-1]&&(r=[...r].reverse(),t=[...t].reverse());const o=Cs(t,n,i),c=o.length,l=d=>{if(s&&d<r[0])return t[0];let u=0;if(c>1)for(;u<r.length-2&&!(d<r[u+1]);u++);const h=Vt(r[u],r[u+1],d);return o[u](h)};return e?d=>l(ke(r[0],r[a-1],d)):l}function As(r,t){return r.map(e=>e*t)}const vr=(r,t,e)=>(((1-3*e+3*t)*r+(3*e-6*t))*r+3*t)*r,Ts=1e-7,Is=12;function xs(r,t,e,n,i){let a,s,o=0;do s=t+(e-t)/2,a=vr(s,n,i)-r,a>0?e=s:t=s;while(Math.abs(a)>Ts&&++o<Is);return s}function lt(r,t,e,n){if(r===t&&e===n)return ze;const i=a=>xs(a,0,1,r,e);return a=>a===0||a===1?a:vr(i(a),t,n)}const Os=lt(.42,0,1,1),Ns=lt(0,0,.58,1),gr=lt(.42,0,.58,1),br=r=>t=>t<=.5?r(2*t)/2:(2-r(2*(1-t)))/2,yr=r=>t=>1-r(1-t),_r=lt(.33,1.53,.69,.99),tn=yr(_r),Er=br(tn),Cr=r=>(r*=2)<1?.5*tn(r):.5*(2-Math.pow(2,-10*(r-1))),nn=r=>1-Math.sin(Math.acos(r)),Ps=yr(nn),wr=br(nn),Ar=r=>Array.isArray(r)&&typeof r[0]=="number",Tr={linear:ze,easeIn:Os,easeInOut:gr,easeOut:Ns,circIn:nn,circInOut:wr,circOut:Ps,backIn:tn,backInOut:Er,backOut:_r,anticipate:Cr},Ls=r=>typeof r=="string",Ir=r=>{if(Ar(r)){Oe(r.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,e,n,i]=r;return lt(t,e,n,i)}else if(Ls(r))return Oe(Tr[r]!==void 0,`Invalid easing type '${r}'`),Tr[r];return r};function Rs(r,t){return r.map(()=>t||gr).splice(0,r.length-1)}function $e({duration:r=300,keyframes:t,times:e,ease:n="easeInOut"}){const i=Fn(n)?n.map(Ir):Ir(n),a={done:!1,value:t[0]},s=As(e&&e.length===t.length?e:jn(t),r),o=ws(s,t,{ease:Array.isArray(i)?i:Rs(t,i)});return{calculatedDuration:r,next:c=>(a.value=o(c),a.done=c>=r,a)}}const ks=r=>r!==null;function rn(r,{repeat:t,repeatType:e="loop"},n,i=1){const a=r.filter(ks),o=i<0||t&&e!=="loop"&&t%2===1?0:a.length-1;return!o||n===void 0?a[o]:n}const Ss={decay:en,inertia:en,tween:$e,keyframes:$e,spring:ct};function xr(r){typeof r.type=="string"&&(r.type=Ss[r.type])}class an{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}const Ms=r=>r/100;class sn extends an{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var n,i;const{motionValue:e}=this.options;e&&e.updatedAt!==ye.now()&&this.tick(ye.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(n=this.options).onStop)==null||i.call(n))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;xr(t);const{type:e=$e,repeat:n=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=t;let{keyframes:o}=t;const c=e||$e;process.env.NODE_ENV!=="production"&&c!==$e&&Oe(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`),c!==$e&&typeof o[0]!="number"&&(this.mixKeyframes=Qt(Ms,pr(o[0],o[1])),o=[0,100]);const l=c(J(U({},t),{keyframes:o}));a==="mirror"&&(this.mirroredGenerator=c(J(U({},t),{keyframes:[...o].reverse(),velocity:-s}))),l.calculatedDuration===null&&(l.calculatedDuration=Ut(l));const{calculatedDuration:d}=l;this.calculatedDuration=d,this.resolvedDuration=d+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=l}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){const{generator:n,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:c}=this;if(this.startTime===null)return n.next(0);const{delay:l=0,keyframes:d,repeat:u,repeatType:h,repeatDelay:p,type:f,onUpdate:m,finalKeyframe:v}=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)),e?this.currentTime=t:this.updateTime(t);const b=this.currentTime-l*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?b<0:b>i;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let x=this.currentTime,N=n;if(u){const S=Math.min(this.currentTime,i)/o;let B=Math.floor(S),G=S%1;!G&&S>=1&&(G=1),G===1&&B--,B=Math.min(B,u+1),!!(B%2)&&(h==="reverse"?(G=1-G,p&&(G-=p/o)):h==="mirror"&&(N=s)),x=ke(0,1,G)*o}const I=w?{done:!1,value:d[0]}:N.next(x);a&&(I.value=a(I.value));let{done:L}=I;!w&&c!==null&&(L=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return O&&f!==en&&(I.value=rn(d,this.options,v,this.speed)),m&&m(I.value),O&&this.finish(),I}then(t,e){return this.finished.then(t,e)}get duration(){return xe(this.calculatedDuration)}get time(){return xe(this.currentTime)}set time(t){var e;t=we(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),(e=this.driver)==null||e.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ye.now());const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=xe(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=fs,startTime:e}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(a=(i=this.options).onPlay)==null||a.call(i);const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=e!=null?e:n),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(ye.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,e;this.notifyFinished(),this.teardown(),this.state="finished",(e=(t=this.options).onComplete)==null||e.call(t)}cancel(){var t,e;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(e=(t=this.options).onCancel)==null||e.call(t)}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){var e;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(e=this.driver)==null||e.stop(),t.observe(this)}}function Ds(r){var t;for(let e=1;e<r.length;e++)(t=r[e])!=null||(r[e]=r[e-1])}const Me=r=>r*180/Math.PI,on=r=>{const t=Me(Math.atan2(r[1],r[0]));return cn(t)},Vs={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:r=>(Math.abs(r[0])+Math.abs(r[3]))/2,rotate:on,rotateZ:on,skewX:r=>Me(Math.atan(r[1])),skewY:r=>Me(Math.atan(r[2])),skew:r=>(Math.abs(r[1])+Math.abs(r[2]))/2},cn=r=>(r=r%360,r<0&&(r+=360),r),Or=on,Nr=r=>Math.sqrt(r[0]*r[0]+r[1]*r[1]),Pr=r=>Math.sqrt(r[4]*r[4]+r[5]*r[5]),Fs={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Nr,scaleY:Pr,scale:r=>(Nr(r)+Pr(r))/2,rotateX:r=>cn(Me(Math.atan2(r[6],r[5]))),rotateY:r=>cn(Me(Math.atan2(-r[2],r[0]))),rotateZ:Or,rotate:Or,skewX:r=>Me(Math.atan(r[4])),skewY:r=>Me(Math.atan(r[1])),skew:r=>(Math.abs(r[1])+Math.abs(r[4]))/2};function ln(r){return r.includes("scale")?1:0}function dn(r,t){if(!r||r==="none")return ln(t);const e=r.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,i;if(e)n=Fs,i=e;else{const o=r.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Vs,i=o}if(!i)return ln(t);const a=n[t],s=i[1].split(",").map(Bs);return typeof a=="function"?a(s):s[a]}const Us=(r,t)=>{const{transform:e="none"}=getComputedStyle(r);return dn(e,t)};function Bs(r){return parseFloat(r.trim())}const Lr=r=>r===Ke||r===X,zs=new Set(["x","y","z"]),js=je.filter(r=>!zs.has(r));function Hs(r){const t=[];return js.forEach(e=>{const n=r.getValue(e);n!==void 0&&(t.push([e,n.get()]),n.set(e.startsWith("scale")?1:0))}),t}const De={width:({x:r},{paddingLeft:t="0",paddingRight:e="0"})=>r.max-r.min-parseFloat(t)-parseFloat(e),height:({y:r},{paddingTop:t="0",paddingBottom:e="0"})=>r.max-r.min-parseFloat(t)-parseFloat(e),top:(r,{top:t})=>parseFloat(t),left:(r,{left:t})=>parseFloat(t),bottom:({y:r},{top:t})=>parseFloat(t)+(r.max-r.min),right:({x:r},{left:t})=>parseFloat(t)+(r.max-r.min),x:(r,{transform:t})=>dn(t,"x"),y:(r,{transform:t})=>dn(t,"y")};De.translateX=De.x,De.translateY=De.y;const Ve=new Set;let un=!1,pn=!1,hn=!1;function Rr(){if(pn){const r=Array.from(Ve).filter(n=>n.needsMeasurement),t=new Set(r.map(n=>n.element)),e=new Map;t.forEach(n=>{const i=Hs(n);i.length&&(e.set(n,i),n.render())}),r.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const i=e.get(n);i&&i.forEach(([a,s])=>{var o;(o=n.getValue(a))==null||o.set(s)})}),r.forEach(n=>n.measureEndState()),r.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}pn=!1,un=!1,Ve.forEach(r=>r.complete(hn)),Ve.clear()}function kr(){Ve.forEach(r=>{r.readKeyframes(),r.needsMeasurement&&(pn=!0)})}function Ks(){hn=!0,kr(),Rr(),hn=!1}class fn{constructor(t,e,n,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Ve.add(this),un||(un=!0,Pe.read(kr),Pe.resolveKeyframes(Rr))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;if(t[0]===null){const a=i==null?void 0:i.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(n&&e){const o=n.readValue(e,s);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}Ds(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ve.delete(this)}cancel(){this.state==="scheduled"&&(Ve.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ws=r=>r.startsWith("--");function Ys(r,t,e){Ws(t)?r.style.setProperty(t,e):r.style[t]=e}function mn(r){let t;return()=>(t===void 0&&(t=r()),t)}const Gs=mn(()=>window.ScrollTimeline!==void 0),$s={};function qs(r,t){const e=mn(r);return()=>{var n;return(n=$s[t])!=null?n:e()}}const Sr=qs(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(r){return!1}return!0},"linearEasing"),dt=([r,t,e,n])=>`cubic-bezier(${r}, ${t}, ${e}, ${n})`,Mr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:dt([0,.65,.55,1]),circOut:dt([.55,0,1,.45]),backIn:dt([.31,.01,.66,-.59]),backOut:dt([.33,1.53,.69,.99])};function Dr(r,t){if(r)return typeof r=="function"?Sr()?hr(r,t):"ease-out":Ar(r)?dt(r):Array.isArray(r)?r.map(e=>Dr(e,t)||Mr.easeOut):Mr[r]}function Qs(r,t,e,{delay:n=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:c}={},l=void 0){const d={[t]:e};c&&(d.offset=c);const u=Dr(o,i);Array.isArray(u)&&(d.easing=u);const h={delay:n,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return l&&(h.pseudoElement=l),r.animate(d,h)}function Xs(e){var n=e,{type:r}=n,t=Te(n,["type"]);var i,a;return Ft(r)&&Sr()?r.applyToOptions(t):((i=t.duration)!=null||(t.duration=300),(a=t.ease)!=null||(t.ease="easeOut"),t)}class Zs extends an{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:e,name:n,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:o,onComplete:c}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,Oe(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);const l=Xs(t);this.animation=Qs(e,n,i,l,a),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const d=rn(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(d):Ys(e,n,d),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,e;(e=(t=this.animation).finish)==null||e.call(t)}cancel(){try{this.animation.cancel()}catch(t){}}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(){var t,e;this.isPseudoElement||(e=(t=this.animation).commitStyles)==null||e.call(t)}get duration(){var e,n;const t=((n=(e=this.animation.effect)==null?void 0:e.getComputedTiming)==null?void 0:n.call(e).duration)||0;return xe(Number(t))}get time(){return xe(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=we(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:e}){var n;return this.allowFlatten&&((n=this.animation.effect)==null||n.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Gs()?(this.animation.timeline=t,ze):e(this)}}const Vr={anticipate:Cr,backInOut:Er,circInOut:wr};function Js(r){return r in Vr}function eo(r){typeof r.ease=="string"&&Js(r.ease)&&(r.ease=Vr[r.ease])}const Fr=10;class to extends Zs{constructor(t){eo(t),xr(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){var d;const l=this.options,{motionValue:e,onUpdate:n,onComplete:i,element:a}=l,s=Te(l,["motionValue","onUpdate","onComplete","element"]);if(!e)return;if(t!==void 0){e.set(t);return}const o=new sn(J(U({},s),{autoplay:!1})),c=we((d=this.finishedTime)!=null?d:this.time);e.setWithVelocity(o.sample(c-Fr).value,o.sample(c).value,Fr),o.stop()}}const Ur=(r,t)=>t==="zIndex"?!1:!!(typeof r=="number"||Array.isArray(r)||typeof r=="string"&&(Ge.test(r)||r==="0")&&!r.startsWith("url("));function no(r){const t=r[0];if(r.length===1)return!0;for(let e=0;e<r.length;e++)if(r[e]!==t)return!0}function ro(r,t,e,n){const i=r[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=r[r.length-1],s=Ur(i,t),o=Ur(a,t);return tt(s===o,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!s||!o?!1:no(r)||(e==="spring"||Ft(e))&&n}function Br(r){return typeof r=="object"&&r!==null}function io(r){return Br(r)&&"offsetHeight"in r}const ao=new Set(["opacity","clipPath","filter","transform"]),so=mn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function oo(r){var l;const{motionValue:t,name:e,repeatDelay:n,repeatType:i,damping:a,type:s}=r;if(!io((l=t==null?void 0:t.owner)==null?void 0:l.current))return!1;const{onUpdate:o,transformTemplate:c}=t.owner.getProps();return so()&&e&&ao.has(e)&&(e!=="transform"||!c)&&!o&&!n&&i!=="mirror"&&a!==0&&s!=="inertia"}const co=40;class lo extends an{constructor(h){var p=h,{autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:o,name:c,motionValue:l,element:d}=p,u=Te(p,["autoplay","delay","type","repeat","repeatDelay","repeatType","keyframes","name","motionValue","element"]);var v;super(),this.stop=()=>{var b,w;this._animation&&(this._animation.stop(),(b=this.stopTimeline)==null||b.call(this)),(w=this.keyframeResolver)==null||w.cancel()},this.createdAt=ye.now();const f=U({autoplay:t,delay:e,type:n,repeat:i,repeatDelay:a,repeatType:s,name:c,motionValue:l,element:d},u),m=(d==null?void 0:d.KeyframeResolver)||fn;this.keyframeResolver=new m(o,(b,w,x)=>this.onKeyframesResolved(b,w,f,!x),c,l,d),(v=this.keyframeResolver)==null||v.scheduleResolve()}onKeyframesResolved(t,e,n,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:o,delay:c,isHandoff:l,onUpdate:d}=n;this.resolvedAt=ye.now(),ro(t,a,s,o)||((Ne.instantAnimations||!c)&&(d==null||d(rn(t,n,e))),t[0]=t[t.length-1],n.duration=0,n.repeat=0);const u=i?this.resolvedAt?this.resolvedAt-this.createdAt>co?this.resolvedAt:this.createdAt:this.createdAt:void 0,h=J(U({startTime:u,finalKeyframe:e},n),{keyframes:t}),p=!l&&oo(h)?new to(J(U({},h),{element:h.motionValue.owner.current})):new sn(h);p.finished.then(()=>this.notifyFinished()).catch(ze),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Ks()),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(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const zr=(r,t,e,n={},i,a)=>s=>{const o=Jn(n,r)||{},c=o.delay||n.delay||0;let{elapsed:l=0}=n;l=l-we(c);const d=J(U({keyframes:Array.isArray(e)?e:[null,e],ease:"easeOut",velocity:t.getVelocity()},o),{delay:-l,onUpdate:h=>{t.set(h),o.onUpdate&&o.onUpdate(h)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:r,motionValue:t,element:a?void 0:i});Ha(o)||Object.assign(d,ja(r,d)),d.duration&&(d.duration=we(d.duration)),d.repeatDelay&&(d.repeatDelay=we(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let u=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(u=!0)),(Ne.instantAnimations||Ne.skipAnimations)&&(u=!0,d.duration=0,d.delay=0),d.allowFlatten=!o.type&&!o.ease,u&&!a&&t.get()!==void 0){const h=Va(d.keyframes,o);if(h!==void 0){Pe.update(()=>{d.onUpdate(h),d.onComplete()});return}}return o.isSync?new sn(d):new lo(d)},jr=new Set(["width","height","top","left","right","bottom",...je]);function uo({protectedKeys:r,needsAnimating:t},e){const n=r.hasOwnProperty(e)&&t[e]!==!0;return t[e]=!1,n}function po(r,t,{delay:e=0,transitionOverride:n,type:i}={}){var u;let d=t,{transition:a=r.getDefaultTransition(),transitionEnd:s}=d,o=Te(d,["transition","transitionEnd"]);n&&(a=n);const c=[],l=i&&r.animationState&&r.animationState.getState()[i];for(const h in o){const p=r.getValue(h,(u=r.latestValues[h])!=null?u:null),f=o[h];if(f===void 0||l&&uo(l,h))continue;const m=U({delay:e},Jn(a||{},h)),v=p.get();if(v!==void 0&&!p.isAnimating&&!Array.isArray(f)&&f===v&&!m.velocity)continue;let b=!1;if(window.MotionHandoffAnimation){const x=Ma(r);if(x){const N=window.MotionHandoffAnimation(x,h,Pe);N!==null&&(m.startTime=N,b=!0)}}ka(r,h),p.start(zr(h,p,f,r.shouldReduceMotion&&jr.has(h)?{type:!1}:m,r,b));const w=p.animation;w&&c.push(w)}return s&&Promise.all(c).then(()=>{Pe.update(()=>{s&&La(r,s)})}),c}function ho({top:r,left:t,right:e,bottom:n}){return{x:{min:t,max:e},y:{min:r,max:n}}}function fo(r,t){if(!t)return r;const e=t({x:r.left,y:r.top}),n=t({x:r.right,y:r.bottom});return{top:e.y,left:e.x,bottom:n.y,right:n.x}}function mo(r,t){return ho(fo(r.getBoundingClientRect(),t))}const Hr={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"]},vn={};for(const r in Hr)vn[r]={isEnabled:t=>Hr[r].some(e=>!!t[e])};const Kr=()=>({min:0,max:0}),gn=()=>({x:Kr(),y:Kr()}),vo=typeof window!="undefined",bn={current:null},Wr={current:!1};function go(){if(Wr.current=!0,!!vo)if(window.matchMedia){const r=window.matchMedia("(prefers-reduced-motion)"),t=()=>bn.current=r.matches;r.addListener(t),t()}else bn.current=!1}function bo(r){return r!==null&&typeof r=="object"&&typeof r.start=="function"}function yo(r){return typeof r=="string"||Array.isArray(r)}const _o=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function Yr(r){return bo(r.animate)||_o.some(t=>yo(r[t]))}function Eo(r){return!!(Yr(r)||r.variants)}function Co(r,t,e){for(const n in t){const i=t[n],a=e[n];if(ge(i))r.addValue(n,i);else if(ge(a))r.addValue(n,rt(i,{owner:r}));else if(a!==i)if(r.hasValue(n)){const s=r.getValue(n);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=r.getStaticValue(n);r.addValue(n,rt(s!==void 0?s:i,{owner:r}))}}for(const n in e)t[n]===void 0&&r.removeValue(n);return t}const Gr=r=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r),$r=r=>/^0[^.\s]+$/u.test(r),wo={test:r=>r==="auto",parse:r=>r},qr=r=>t=>t.test(r),Qr=[Ke,X,We,Le,Xa,Qa,wo],Xr=r=>Qr.find(qr(r)),Ao=[...Qr,fe,Ge],To=r=>Ao.find(qr(r)),Io=new Set(["brightness","contrast","saturate","opacity"]);function xo(r){const[t,e]=r.slice(0,-1).split("(");if(t==="drop-shadow")return r;const[n]=e.match(Ht)||[];if(!n)return r;const i=e.replace(n,"");let a=Io.has(t)?1:0;return n!==e&&(a*=100),t+"("+a+i+")"}const Oo=/\b([a-z-]*)\(.*?\)/gu,yn=J(U({},Ge),{getAnimatableNone:r=>{const t=r.match(Oo);return t?t.map(xo).join(" "):r}}),Zr=J(U({},Ke),{transform:Math.round}),_n=J(U({borderWidth:X,borderTopWidth:X,borderRightWidth:X,borderBottomWidth:X,borderLeftWidth:X,borderRadius:X,radius:X,borderTopLeftRadius:X,borderTopRightRadius:X,borderBottomRightRadius:X,borderBottomLeftRadius:X,width:X,maxWidth:X,height:X,maxHeight:X,top:X,right:X,bottom:X,left:X,padding:X,paddingTop:X,paddingRight:X,paddingBottom:X,paddingLeft:X,margin:X,marginTop:X,marginRight:X,marginBottom:X,marginLeft:X,backgroundPositionX:X,backgroundPositionY:X},{rotate:Le,rotateX:Le,rotateY:Le,rotateZ:Le,scale:Tt,scaleX:Tt,scaleY:Tt,scaleZ:Tt,skew:Le,skewX:Le,skewY:Le,distance:X,translateX:X,translateY:X,translateZ:X,x:X,y:X,z:X,perspective:X,transformPerspective:X,opacity:it,originX:rr,originY:rr,originZ:X}),{zIndex:Zr,fillOpacity:it,strokeOpacity:it,numOctaves:Zr}),No=J(U({},_n),{color:fe,backgroundColor:fe,outlineColor:fe,fill:fe,stroke:fe,borderColor:fe,borderTopColor:fe,borderRightColor:fe,borderBottomColor:fe,borderLeftColor:fe,filter:yn,WebkitFilter:yn}),Jr=r=>No[r];function ei(r,t){let e=Jr(r);return e!==yn&&(e=Ge),e.getAnimatableNone?e.getAnimatableNone(t):void 0}const ti=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ni{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=fn,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=ye.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,Pe.render(this.render,!1,!0))};const{latestValues:c,renderState:l}=s;this.latestValues=c,this.baseTarget=U({},c),this.initialValues=e.initial?U({},c):{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!a,this.isControllingVariants=Yr(e),this.isVariantNode=Eo(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const h=this.scrapeMotionValuesFromProps(e,{},this),{willChange:d}=h,u=Te(h,["willChange"]);for(const p in u){const f=u[p];c[p]!==void 0&&ge(f)&&f.set(c[p],!1)}}mount(t){this.current=t,nt.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((e,n)=>this.bindToMotionValue(n,e)),Wr.current||go(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:bn.current,process.env.NODE_ENV!=="production"&&qn(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(),Bt(this.notifyUpdate),Bt(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 e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=He.has(t);n&&this.onBindTransform&&this.onBindTransform();const i=e.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Pe.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),a=e.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{i(),a(),s&&s(),e.owner&&e.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 vn){const e=vn[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):gn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;n<ti.length;n++){const i=ti[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,s=t[a];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=Co(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 e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&e!==void 0&&(n=rt(e===null?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var i;let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(i=this.getBaseTargetFromProps(this.props,t))!=null?i:this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(Gr(n)||$r(n))?n=parseFloat(n):!To(n)&&Ge.test(e)&&(n=ei(t,e)),this.setBaseTarget(t,ge(n)?n.get():n)),ge(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var a;const{initial:e}=this.props;let n;if(typeof e=="string"||typeof e=="object"){const s=Gn(this.props,e,(a=this.presenceContext)==null?void 0:a.custom);s&&(n=s[t])}if(e&&n!==void 0)return n;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ge(i)?i:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,e){return this.events[t]||(this.events[t]=new Qn),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}const Po=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Lo(r){const t=Po.exec(r);if(!t)return[,];const[,e,n,i]=t;return[`--${e!=null?e:n}`,i]}const Ro=4;function ri(r,t,e=1){Oe(e<=Ro,`Max CSS variable fallback depth detected in property "${r}". This may indicate a circular fallback dependency.`);const[n,i]=Lo(r);if(!n)return;const a=window.getComputedStyle(t).getPropertyValue(n);if(a){const s=a.trim();return Gr(s)?parseFloat(s):s}return jt(i)?ri(i,t,e+1):i}function ko(r){return typeof r=="number"?r===0:r!==null?r==="none"||r==="0"||$r(r):!0}const So=new Set(["auto","none","0"]);function Mo(r,t,e){let n=0,i;for(;n<r.length&&!i;){const a=r[n];typeof a=="string"&&!So.has(a)&&ot(a).values.length&&(i=r[n]),n++}if(i&&e)for(const a of t)r[a]=ei(e,i)}class Do extends fn{constructor(t,e,n,i,a){super(t,e,n,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let l=t[c];if(typeof l=="string"&&(l=l.trim(),jt(l))){const d=ri(l,e.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!jr.has(n)||t.length!==2)return;const[i,a]=t,s=Xr(i),o=Xr(a);if(s!==o)if(Lr(s)&&Lr(o))for(let c=0;c<t.length;c++){const l=t[c];typeof l=="string"&&(t[c]=parseFloat(l))}else De[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let i=0;i<t.length;i++)(t[i]===null||ko(t[i]))&&n.push(i);n.length&&Mo(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=De[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const i=e[e.length-1];i!==void 0&&t.getValue(n,i).jump(i,!1)}measureEndState(){var o;const{element:t,name:e,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const i=t.getValue(e);i&&i.jump(this.measuredOrigin,!1);const a=n.length-1,s=n[a];n[a]=De[e](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(o=this.removedTransforms)!=null&&o.length&&this.removedTransforms.forEach(([c,l])=>{t.getValue(c).set(l)}),this.resolveNoneKeyframes()}}class ii extends ni{constructor(){super(...arguments),this.KeyframeResolver=Do}sortInstanceNodePosition(t,e){return t.compareDocumentPosition(e)&2?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ge(t)&&(this.childSubscription=t.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}const ai=(r,t)=>t&&typeof r=="number"?t.transform(r):r,Vo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Fo=je.length;function Uo(r,t,e){let n="",i=!0;for(let a=0;a<Fo;a++){const s=je[a],o=r[s];if(o===void 0)continue;let c=!0;if(typeof o=="number"?c=o===(s.startsWith("scale")?1:0):c=parseFloat(o)===0,!c||e){const l=ai(o,_n[s]);if(!c){i=!1;const d=Vo[s]||s;n+=`${d}(${l}) `}e&&(t[s]=l)}}return n=n.trim(),e?n=e(t,i?"":n):i&&(n="none"),n}function si(r,t,e){const{style:n,vars:i,transformOrigin:a}=r;let s=!1,o=!1;for(const c in t){const l=t[c];if(He.has(c)){s=!0;continue}else if(tr(c)){i[c]=l;continue}else{const d=ai(l,_n[c]);c.startsWith("origin")?(o=!0,a[c]=d):n[c]=d}}if(t.transform||(s||e?n.transform=Uo(t,r.transform,e):n.transform&&(n.transform="none")),o){const{originX:c="50%",originY:l="50%",originZ:d=0}=a;n.transformOrigin=`${c} ${l} ${d}`}}function oi(r,{style:t,vars:e},n,i){Object.assign(r.style,t,i&&i.getProjectionStyles(n));for(const a in e)r.style.setProperty(a,e[a])}const Bo={};function zo(r,{layout:t,layoutId:e}){return He.has(r)||r.startsWith("origin")||(t||e!==void 0)&&(!!Bo[r]||r==="opacity")}function ci(r,t,e){var a;const{style:n}=r,i={};for(const s in n)(ge(n[s])||t.style&&ge(t.style[s])||zo(s,r)||((a=e==null?void 0:e.getValue(s))==null?void 0:a.liveStyle)!==void 0)&&(i[s]=n[s]);return i}function jo(r){return window.getComputedStyle(r)}class Ho extends ii{constructor(){super(...arguments),this.type="html",this.renderInstance=oi}readValueFromInstance(t,e){var n;if(He.has(e))return(n=this.projection)!=null&&n.isProjecting?ln(e):Us(t,e);{const i=jo(t),a=(tr(e)?i.getPropertyValue(e):i[e])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:e}){return mo(t,e)}build(t,e,n){si(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return ci(t,e,n)}}function Ko(r,t){return r in t}class Wo extends ni{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(Ko(e,t)){const n=t[e];if(typeof n=="string"||typeof n=="number")return n}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return gn()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}const Yo={offset:"stroke-dashoffset",array:"stroke-dasharray"},Go={offset:"strokeDashoffset",array:"strokeDasharray"};function $o(r,t,e=1,n=0,i=!0){r.pathLength=1;const a=i?Yo:Go;r[a.offset]=X.transform(-n);const s=X.transform(t),o=X.transform(e);r[a.array]=`${s} ${o}`}function qo(r,u,c,l,d){var h=u,{attrX:t,attrY:e,attrScale:n,pathLength:i,pathSpacing:a=1,pathOffset:s=0}=h,o=Te(h,["attrX","attrY","attrScale","pathLength","pathSpacing","pathOffset"]);var m,v;if(si(r,o,l),c){r.style.viewBox&&(r.attrs.viewBox=r.style.viewBox);return}r.attrs=r.style,r.style={};const{attrs:p,style:f}=r;p.transform&&(f.transform=p.transform,delete p.transform),(f.transform||p.transformOrigin)&&(f.transformOrigin=(m=p.transformOrigin)!=null?m:"50% 50%",delete p.transformOrigin),f.transform&&(f.transformBox=(v=d==null?void 0:d.transformBox)!=null?v:"fill-box",delete p.transformBox),t!==void 0&&(p.x=t),e!==void 0&&(p.y=e),n!==void 0&&(p.scale=n),i!==void 0&&$o(p,i,a,s,!1)}const li=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"]),Qo=r=>typeof r=="string"&&r.toLowerCase()==="svg";function Xo(r,t,e,n){oi(r,t,void 0,n);for(const i in t.attrs)r.setAttribute(li.has(i)?i:zt(i),t.attrs[i])}function Zo(r,t,e){const n=ci(r,t,e);for(const i in r)if(ge(r[i])||ge(t[i])){const a=je.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[a]=r[i]}return n}class Jo extends ii{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=gn}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(He.has(e)){const n=Jr(e);return n&&n.default||0}return e=li.has(e)?e:zt(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return Zo(t,e,n)}build(t,e,n){qo(t,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,e,n,i){Xo(t,e,n,i)}mount(t){this.isSVGTag=Qo(t.tagName),super.mount(t)}}function di(r){return Br(r)&&"ownerSVGElement"in r}function ec(r){return di(r)&&r.tagName==="svg"}function tc(r){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},e=di(r)&&!ec(r)?new Jo(t):new Ho(t);e.mount(r),nt.set(r,e)}function nc(r){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},e=new Wo(t);e.mount(r),nt.set(r,e)}function rc(r,t,e){const n=ge(r)?r:rt(r);return n.start(zr("",n,t,e)),n.animation}function ic(r,t){return ge(r)||typeof r=="number"||typeof r=="string"&&!Dt(t)}function ui(r,t,e,n){const i=[];if(ic(r,t))i.push(rc(r,Dt(t)&&t.default||t,e&&(e.default||e)));else{const a=Dn(r,t,n),s=a.length;Oe(!!s,"No valid elements provided.");for(let o=0;o<s;o++){const c=a[o],l=c instanceof Element?tc:nc;nt.has(c)||l(c);const d=nt.get(c),u=U({},e);"delay"in u&&typeof u.delay=="function"&&(u.delay=u.delay(o,s)),i.push(...po(d,J(U({},t),{transition:u}),{}))}}return i}function ac(r,t,e){const n=[];return va(r,t,e,{spring:ct}).forEach(({keyframes:a,transition:s},o)=>{n.push(...ui(o,a,s))}),n}class sc{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=e}attachTimeline(t){const e=this.animations.map(n=>n.attachTimeline(t));return()=>{e.forEach((n,i)=>{n&&n(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class oc extends sc{then(t,e){return this.finished.finally(t).then(()=>{})}}function cc(r){return Array.isArray(r)&&r.some(Array.isArray)}function lc(r){function t(e,n,i){let a=[];return cc(e)?a=ac(e,n,r):a=ui(e,n,i,r),new oc(a)}return t}const pe=lc(),ie={spinner:"_spinner_1lif3_1",spinnerContainer:"_spinnerContainer_1lif3_5",success:"_success_1lif3_9",successContainer:"_successContainer_1lif3_14",container:"_container_1lif3_57",card:"_card_1lif3_66",warning:"_warning_1lif3_75",svg:"_svg_1lif3_83",srOnly:"_srOnly_1lif3_88",backButton:"_backButton_1lif3_92"};function ae(r,t){if(!t)return;const e=t.trim().split(/\s+/).filter(n=>n.length>0);r.classList.add(...e)}class pi{constructor(){A(this,"template",`
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(se);function ve(r,t){for(var e=0;e<t.length;e++){const n=t[e];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in r)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(r,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}class _t{constructor(t){A(this,"parent");A(this,"core");typeof window!="undefined"&&(this.parent=t)}mount(t){return W(this,null,function*(){if(!this.parent)return;if(!this.core){const i=(yield Promise.resolve().then(()=>yl)).Core;this.core=new i}t.styles&&this.core.state.styles.setState(t.styles),this.core.state.checkout.setState({clientToken:t.clientToken,environment:t.environment,apiVersion:t.apiVersion,errorMessageText:t.errorMessageText});const e=yield this.core.checkout.mount();this.parent.innerHTML="",this.parent.appendChild(e),this.core.state.checkout.setState(t)})}unmount(){return W(this,null,function*(){!this.parent||!this.core||(this.parent.innerHTML="",this.core.clearState())})}}var Y=(r=>(r.PAYPAL="PAYPAL",r.APPLE_PAY="APPLEPAY",r.GOOGLE_PAY="GPAY",r.CARD="CARD",r.VENMO="VENMO",r))(Y||{}),Ze=(r=>(r.PENDING="PENDING",r.FAILED="FAILED",r.AUTHORIZED="AUTHORIZED",r.SETTLING="SETTLING",r.SETTLED="SETTLED",r.DECLINED="DECLINED",r.CANCELLED="CANCELLED",r))(Ze||{}),Re=(r=>(r.INSUFFICIENT_FUNDS="insufficient_funds",r.AUTHENTICATION_REQUIRED="authentication_required",r.CARD_ISSUER_DECLINE="card_issuer_decline",r.GENERIC_DECLINE="generic_decline",r.WITHDRAWAL_LIMIT_EXCEEDED="withdrawal_limit_exceeded",r.DO_NOT_HONOR="do_not_honor",r.EXPIRED_CARD="expired_card",r.SUSPECTED_FRAUD="suspected_fraud",r.INCORRECT_CVC="incorrect_cvc",r.INVALID_CARD_NUMBER="invalid_card_number",r.ISSUER_UNAVAILABLE="issuer_unavailable",r.CARD_LOST_OR_STOLEN="card_lost_or_stolen",r.CARD_DECLINED="card_declined",r))(Re||{});const Ce=(r="sandbox")=>({develop:"https://dev-api.paynext.com",staging:"https://staging-api.paynext.com",sandbox:"https://sandbox-api.paynext.com",production:"https://api.paynext.com"})[r],Je=[{type:Y.PAYPAL,order:1,is_active:!0},{type:Y.APPLE_PAY,order:2,is_active:!0},{type:Y.GOOGLE_PAY,order:3,is_active:!0},{type:Y.CARD,order:4,is_active:!0}],Yi=r=>r.googlePay?Y.GOOGLE_PAY:r.applePay?Y.APPLE_PAY:r.paypal?Y.PAYPAL:r.braintree?Y.VENMO:Y.CARD,Gi=r=>{const t=r.card;if(t)return{bin:t.firstSixDigits,bin_data:{brand:t.cardBrand,country:t.country,currency_code:t.currency,funding:t.funding,issuer:t.issuer,type:t.type},cvc:t.cvc,exp_month:Number(t.expMonth),exp_year:Number(t.expYear),last4:t.lastFourDigits,number:t.number}},$i=r=>{var e;const t=r.paypal;if((e=t==null?void 0:t.billing_agreement_token)!=null&&e.paypalId)return{billing_agreement_token:t.billing_agreement_token.paypalId}},qi=r=>{var e,n;const t=r.googlePay;if(t!=null&&t.token)return{cryptogram:t.cryptogram,eci:t.eci,exp_month:(e=t.card)!=null&&e.expiry.month||t.token.expiry.month?Number(t.card.expiry.month||t.token.expiry.month):void 0,exp_year:(n=t.card)!=null&&n.expiry.year||t.token.expiry.year?Number(t.card.expiry.year||t.token.expiry.year):void 0,token:t.token.number,token_service_provider:t.token.tokenServiceProvider}},Qi=r=>{var e,n,i,a,s,o;const t=r.applePay;if(t)return{cryptogram:t.cryptogram,eci:t.eci,exp_month:(n=(e=t.networkToken)==null?void 0:e.expiry)!=null&&n.month?Number(t.networkToken.expiry.month):void 0,exp_year:(a=(i=t.networkToken)==null?void 0:i.expiry)!=null&&a.year?Number(t.networkToken.expiry.year):void 0,token:(s=t.networkToken)==null?void 0:s.number,token_service_provider:(o=t.networkToken)==null?void 0:o.tokenServiceProvider}},Xi=r=>{const t=r.braintree;if(t)return{payment_method_nonce:t.nonce}},kn=r=>{var n,i,a,s,o,c,l,d,u,h,p,f,m,v;const{applePay:t,googlePay:e}=r;if(!(!t&&!e))return{city:((n=t==null?void 0:t.billingContact)==null?void 0:n.locality)||((i=e==null?void 0:e.billingAddress)==null?void 0:i.locality)||void 0,country:((a=t==null?void 0:t.billingContact)==null?void 0:a.countryCode)||((s=e==null?void 0:e.billingAddress)==null?void 0:s.countryCode)||void 0,line1:((c=(o=t==null?void 0:t.billingContact)==null?void 0:o.addressLines)==null?void 0:c.at(0))||((l=e==null?void 0:e.billingAddress)==null?void 0:l.address1)||void 0,line2:((u=(d=t==null?void 0:t.billingContact)==null?void 0:d.addressLines)==null?void 0:u.at(1))||((h=e==null?void 0:e.billingAddress)==null?void 0:h.address2)||void 0,postal_code:((p=t==null?void 0:t.billingContact)==null?void 0:p.postalCode)||((f=e==null?void 0:e.billingAddress)==null?void 0:f.postalCode)||void 0,state:((m=t==null?void 0:t.billingContact)==null?void 0:m.administrativeArea)||((v=e==null?void 0:e.billingAddress)==null?void 0:v.administrativeArea)||void 0}},Sn=r=>{var i,a,s,o,c,l,d,u,h,p,f,m,v,b,w,x,N,I,L;const{card:t,googlePay:e,applePay:n}=r;if(!(!t&&!(e!=null&&e.card)&&!(n!=null&&n.card)))return{bin:t==null?void 0:t.firstSixDigits,bin_data:{brand:(t==null?void 0:t.cardBrand)||((i=e==null?void 0:e.card)==null?void 0:i.brand)||((a=n==null?void 0:n.card)==null?void 0:a.brand),country:(t==null?void 0:t.country)||((s=e==null?void 0:e.card)==null?void 0:s.country)||((o=n==null?void 0:n.card)==null?void 0:o.country),currency_code:(t==null?void 0:t.currency)||((c=e==null?void 0:e.card)==null?void 0:c.currency)||((l=n==null?void 0:n.card)==null?void 0:l.currency),funding:(t==null?void 0:t.funding)||((d=e==null?void 0:e.card)==null?void 0:d.funding)||((u=n==null?void 0:n.card)==null?void 0:u.funding),issuer:(t==null?void 0:t.issuer)||((h=e==null?void 0:e.card)==null?void 0:h.issuer)||((p=n==null?void 0:n.card)==null?void 0:p.issuer),type:(t==null?void 0:t.type)||((f=e==null?void 0:e.card)==null?void 0:f.segment)||((m=n==null?void 0:n.card)==null?void 0:m.segment)},cvc:t==null?void 0:t.cvc,exp_month:t!=null&&t.expMonth||(v=e==null?void 0:e.card)!=null&&v.expiry.month?Number((t==null?void 0:t.expMonth)||((b=e==null?void 0:e.card)==null?void 0:b.expiry.month)):void 0,exp_year:t!=null&&t.expYear||(w=e==null?void 0:e.card)!=null&&w.expiry.year?Number((t==null?void 0:t.expYear)||((x=e==null?void 0:e.card)==null?void 0:x.expiry.year)):void 0,last4:(t==null?void 0:t.lastFourDigits)||((N=e==null?void 0:e.card)==null?void 0:N.lastFour)||((I=n==null?void 0:n.card)==null?void 0:I.lastFour),number:(t==null?void 0:t.number)||((L=e==null?void 0:e.card)==null?void 0:L.number)}},Mn=r=>{var n,i;const{applePay:t,card:e}=r;return(n=t==null?void 0:t.billingContact)!=null&&n.givenName?`${t.billingContact.givenName} ${t.billingContact.familyName||""}`.trim():(i=e==null?void 0:e.metadata)==null?void 0:i.name},Zi=r=>{var n,i;const t=Yi(r),e={client_session:r.clientSession,three_ds_session_id:r.threeDsSessionId,type:t};switch(t){case Y.CARD:return J(U({},e),{name:Mn(r),card:Gi(r)});case Y.PAYPAL:return J(U({},e),{paypal:$i(r)});case Y.GOOGLE_PAY:return J(U({},e),{card:Sn(r),google_pay:qi(r),billing_address:kn(r)});case Y.APPLE_PAY:return J(U({},e),{name:Mn(r),card:Sn(r),apple_pay:Qi(r),phone:(i=(n=r.applePay)==null?void 0:n.shippingContact)==null?void 0:i.phoneNumber,billing_address:kn(r)});case Y.VENMO:return J(U({},e),{venmo:Xi(r)});default:throw new Error(`Unsupported payment method: ${t}`)}},Ji=(r,t,e)=>W(this,null,function*(){const n=`${Ce(t)}/payments/create`,i=new Headers;i.append("Content-Type","application/json"),i.append("X-API-Version",e);const a=Zi(r);return yield(yield fetch(n,{method:"POST",headers:i,body:JSON.stringify(a)})).json()}),ea=(r,t,e)=>W(this,null,function*(){const n=`${Ce(t)}/payments/create/billing/agreement`,i=new Headers;return i.append("Content-Type","application/json"),i.append("X-API-Version",e),(yield(yield fetch(n,{method:"POST",headers:i,body:JSON.stringify({client_session:r})})).json()).paypal_agreement_token_response.token_id||""}),ta=(r,t,e)=>W(this,null,function*(){const n=`${Ce(t)}/payments/config?client_session_id=${r}`,i=new Headers;i.append("X-API-Version",e);const s=yield(yield fetch(n,{headers:i})).json();return s.checkout_config||(s.checkout_config=Je),s});let na=class{constructor(t){A(this,"apple",null);A(this,"isAvailable",!1);A(this,"onReady");this.ev=t}init(l,d){return W(this,arguments,function*({transaction:t,locale:e,onReady:n,onError:i,onSuccess:a,onCancel:s,onPaymentAttempt:o},c){const u=this.ev.transactions.create(t);this.apple=this.ev.ui.applePay(u,J(U({locale:e,borderRadius:12,size:{width:"100%",height:"40px"}},c==null?void 0:c.styles),{allowedCardNetworks:["visa","masterCard"],requestBillingAddress:!0,requestPayerDetails:["name","email","phone"],process:(m,v)=>W(this,[m,v],function*(p,{fail:f}){o==null||o({paymentMethod:Y.GOOGLE_PAY});try{a==null||a(p)}catch(b){console.error(b),f({message:"Cannot pay with payment credentials"})}})}));const h=yield this.apple.availability();this.isAvailable=h==="available",this.isAvailable||i==null||i("Apple Pay is not supported on this device"),i&&this.apple.on("error",i),s&&this.apple.on("cancel",s),this.onReady=n})}render(t){return W(this,null,function*(){var e;!this.apple||!this.isAvailable||(t.innerHTML="",yield this.apple.mount(t),(e=this.onReady)==null||e.call(this))})}},ra=class{constructor(t){A(this,"google",null);this.ev=t}init(l,d){return W(this,arguments,function*({transaction:t,locale:e,onReady:n,onError:i,onSuccess:a,onCancel:s,onPaymentAttempt:o},c){const u=this.ev.transactions.create(t);this.google=this.ev.ui.googlePay(u,J(U({locale:e,size:{width:"100%",height:40},borderRadius:12,billingAddress:{phoneNumber:!0}},c==null?void 0:c.styles),{allowedCardNetworks:["VISA","MASTERCARD"],process:(f,m)=>W(this,[f,m],function*(h,{fail:p}){o==null||o({paymentMethod:Y.GOOGLE_PAY});try{a==null||a(h)}catch(v){console.error(v),p({message:"Cannot pay with payment credentials"})}})})),s&&this.google.on("cancel",s),n&&this.google.on("ready",n),i&&this.google.on("error",i)})}render(t){return W(this,null,function*(){this.google&&(t.innerHTML="",this.google.mount(t))})}};class ue{constructor(){A(this,"listeners",[])}removeListener(t){this.listeners=this.listeners.filter(e=>e!==t)}addListener(t){return this.listeners.push(t),()=>this.removeListener(t)}emit(t){for(const e of this.listeners)e(t)}clear(){this.listeners=[]}}class ia{constructor(t){A(this,"threeDs",null);this.ev=t}init(a){return W(this,arguments,function*({threeDsId:t,onReady:e,onSuccess:n,onError:i}){this.threeDs=this.ev.ui.threeDSecure(t),this.threeDs.on("ready",()=>e==null?void 0:e()),this.threeDs.on("success",()=>n==null?void 0:n()),this.threeDs.on("failure",()=>i==null?void 0:i()),this.threeDs.on("error",()=>i==null?void 0:i())})}render(t){return W(this,null,function*(){this.threeDs&&this.threeDs.mount(t)})}}class aa{constructor(){A(this,"isReady",!1);A(this,"ev",null);A(this,"apple",null);A(this,"google",null);A(this,"threeDs",null);A(this,"events",{ready:new ue})}isShouldLoad({teamId:t,appId:e}){var n,i;return((n=this.ev)==null?void 0:n.config.appId)!==e||((i=this.ev)==null?void 0:i.config.teamId)!==t}initEv(t){return W(this,null,function*(){if(!this.isShouldLoad(t))return;if(typeof window=="undefined")throw new Error("Evervault can only be initialized in browser environment");this.isReady=!1;const{loadEvervault:e}=yield Promise.resolve().then(()=>Cl);this.ev=yield e(t.teamId,t.appId),this.apple=new na(this.ev),this.google=new ra(this.ev),this.events.ready.emit(),this.isReady=!0})}initThreeDs(t){return W(this,null,function*(){if(!this.ev)throw new Error("Evervault should be init before using Three DS Secure");this.threeDs=new ia(this.ev),yield this.threeDs.init(t),yield this.threeDs.render()})}initApple(t,e){return W(this,null,function*(){if(!this.apple)throw new Error("Evervault should be init before using Apple Pay");yield this.apple.init(t,e)})}initGoogle(t,e){return W(this,null,function*(){if(!this.google)throw new Error("Evervault should be init before using Google Pay");yield this.google.init(t,e)})}isAppleAvailable(){var t;return!!((t=this.apple)!=null&&t.isAvailable)}addEventListener(t,e){return this.events[t].addListener(e)}renderApple(t){return W(this,null,function*(){var e;return(e=this.apple)==null?void 0:e.render(t)})}renderGoogle(t){return W(this,null,function*(){var e;return(e=this.google)==null?void 0:e.render(t)})}getEv(){if(!this.ev)throw new Error("Evervault should be init before getting instance");return this.ev}}function Dt(r){return typeof r=="object"&&!Array.isArray(r)}function sa(r,t,e){var n;if(r instanceof EventTarget)return[r];if(typeof r=="string"){let i=document;const a=(n=e==null?void 0:e[r])!=null?n:i.querySelectorAll(r);return a?Array.from(a):[]}return Array.from(r)}function Dn(r,t,e,n){return typeof r=="string"&&Dt(t)?sa(r,e,n):r instanceof NodeList?Array.from(r):Array.isArray(r)?r:[r]}function oa(r,t,e){return r*(t+1)}function Vn(r,t,e,n){var i;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,r+parseFloat(t)):t==="<"?e:(i=n.get(t))!=null?i:r}const et=(r,t,e)=>r+(t-r)*e,ca=(r,t,e)=>{const n=t-r;return((e-r)%n+n)%n+r},Fn=r=>Array.isArray(r)&&typeof r[0]!="number";function Un(r,t){return Fn(r)?r[ca(0,r.length,t)]:r}function la(r,t){r.indexOf(t)===-1&&r.push(t)}function Bn(r,t){const e=r.indexOf(t);e>-1&&r.splice(e,1)}function da(r,t,e){for(let n=0;n<r.length;n++){const i=r[n];i.at>t&&i.at<e&&(Bn(r,i),n--)}}function ua(r,t,e,n,i,a){da(r,i,a);for(let s=0;s<t.length;s++)r.push({value:t[s],at:et(i,a,n[s]),easing:Un(e,s)})}function pa(r,t){for(let e=0;e<r.length;e++)r[e]=r[e]/(t+1)}function ha(r,t){return r.at===t.at?r.value===null?1:t.value===null?-1:0:r.at-t.at}const ge=r=>!!(r&&r.getVelocity),Vt=(r,t,e)=>{const n=t-r;return n===0?1:(e-r)/n};function zn(r,t){const e=r[r.length-1];for(let n=1;n<=t;n++){const i=Vt(0,t,n);r.push(et(e,1,i))}}function jn(r){const t=[0];return zn(t,r.length-1),t}function Ft(r){return typeof r=="function"&&"applyToOptions"in r}const Et=2e4;function Ut(r){let t=0;const e=50;let n=r.next(t);for(;!n.done&&t<Et;)t+=e,n=r.next(t);return t>=Et?1/0:t}const we=r=>r*1e3,xe=r=>r/1e3;function Hn(r,t=100,e){const n=e(J(U({},r),{keyframes:[0,t]})),i=Math.min(Ut(n),Et);return{type:"keyframes",ease:a=>n.next(i*a).value/t,duration:xe(i)}}let tt=()=>{},Oe=()=>{};process.env.NODE_ENV!=="production"&&(tt=(r,t)=>{!r&&typeof console!="undefined"&&console.warn(t)},Oe=(r,t)=>{if(!r)throw new Error(t)});const fa="easeInOut",ma=20;function va(r,a={},n,i){var s=a,{defaultTransition:t={}}=s,e=Te(s,["defaultTransition"]);const o=t.duration||.3,c=new Map,l=new Map,d={},u=new Map;let h=0,p=0,f=0;for(let m=0;m<r.length;m++){const v=r[m];if(typeof v=="string"){u.set(v,p);continue}else if(!Array.isArray(v)){u.set(v.name,Vn(p,v.at,h,u));continue}let[b,w,x={}]=v;x.at!==void 0&&(p=Vn(p,x.at,h,u));let N=0;const I=(L,O,S,B=0,G=0)=>{const $=ga(L),D=O,{delay:F=0,times:j=jn($),type:H="keyframes",repeat:ee,repeatType:M,repeatDelay:q=0}=D,K=Te(D,["delay","times","type","repeat","repeatType","repeatDelay"]);let{ease:E=t.ease||"easeOut",duration:g}=O;const R=typeof F=="function"?F(B,G):F,V=$.length,y=Ft(H)?H:i==null?void 0:i[H];if(V<=2&&y){let C=100;if(V===2&&_a($)){const le=$[1]-$[0];C=Math.abs(le)}const z=U({},K);g!==void 0&&(z.duration=we(g));const Z=Hn(z,C,y);E=Z.ease,g=Z.duration}g!=null||(g=o);const T=p+R;j.length===1&&j[0]===0&&(j[1]=1);const _=j.length-$.length;if(_>0&&zn(j,_),$.length===1&&$.unshift(null),ee){Oe(ee<ma,"Repeat count too high, must be less than 20"),g=oa(g,ee);const C=[...$],z=[...j];E=Array.isArray(E)?[...E]:[E];const Z=[...E];for(let le=0;le<ee;le++){$.push(...C);for(let k=0;k<C.length;k++)j.push(z[k]+(le+1)),E.push(k===0?"linear":Un(Z,k-1))}pa(j,ee)}const P=T+g;ua(S,$,E,j,T,P),N=Math.max(R+g,N),f=Math.max(P,f)};if(ge(b)){const L=Kn(b,l);I(w,x,Wn("default",L))}else{const L=Dn(b,w,n,d),O=L.length;for(let S=0;S<O;S++){w=w,x=x;const B=L[S],G=Kn(B,l);for(const $ in w)I(w[$],ba(x,$),Wn($,G),S,O)}}h=p,p+=N}return l.forEach((m,v)=>{for(const b in m){const w=m[b];w.sort(ha);const x=[],N=[],I=[];for(let O=0;O<w.length;O++){const{at:S,value:B,easing:G}=w[O];x.push(B),N.push(Vt(0,f,S)),I.push(G||"easeOut")}N[0]!==0&&(N.unshift(0),x.unshift(x[0]),I.unshift(fa)),N[N.length-1]!==1&&(N.push(1),x.push(null)),c.has(v)||c.set(v,{keyframes:{},transition:{}});const L=c.get(v);L.keyframes[b]=x,L.transition[b]=U(J(U({},t),{duration:f,ease:I,times:N}),e)}}),c}function Kn(r,t){return!t.has(r)&&t.set(r,{}),t.get(r)}function Wn(r,t){return t[r]||(t[r]=[]),t[r]}function ga(r){return Array.isArray(r)?r:[r]}function ba(r,t){return r&&r[t]?U(U({},r),r[t]):U({},r)}const ya=r=>typeof r=="number",_a=r=>r.every(ya),nt=new WeakMap,Ea=r=>Array.isArray(r);function Yn(r){const t=[{},{}];return r==null||r.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Gn(r,t,e,n){if(typeof t=="function"){const[i,a]=Yn(n);t=t(e!==void 0?e:r.custom,i,a)}if(typeof t=="string"&&(t=r.variants&&r.variants[t]),typeof t=="function"){const[i,a]=Yn(n);t=t(e!==void 0?e:r.custom,i,a)}return t}function Ca(r,t,e){const n=r.getProps();return Gn(n,t,n.custom,r)}const Ct=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function wa(r,t){let e=new Set,n=new Set,i=!1,a=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function c(d){s.has(d)&&(l.schedule(d),r()),d(o)}const l={schedule:(d,u=!1,h=!1)=>{const f=h&&i?e:n;return u&&s.add(d),f.has(d)||f.add(d),d},cancel:d=>{n.delete(d),s.delete(d)},process:d=>{if(o=d,i){a=!0;return}i=!0,[e,n]=[n,e],e.forEach(c),e.clear(),i=!1,a&&(a=!1,l.process(d))}};return l}const Ne={},Aa=40;function Ta(r,t){let e=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>e=!0,s=Ct.reduce((x,N)=>(x[N]=wa(a),x),{}),{setup:o,read:c,resolveKeyframes:l,preUpdate:d,update:u,preRender:h,render:p,postRender:f}=s,m=()=>{const x=Ne.useManualTiming?i.timestamp:performance.now();e=!1,Ne.useManualTiming||(i.delta=n?1e3/60:Math.max(Math.min(x-i.timestamp,Aa),1)),i.timestamp=x,i.isProcessing=!0,o.process(i),c.process(i),l.process(i),d.process(i),u.process(i),h.process(i),p.process(i),f.process(i),i.isProcessing=!1,e&&t&&(n=!1,r(m))},v=()=>{e=!0,n=!0,i.isProcessing||r(m)};return{schedule:Ct.reduce((x,N)=>{const I=s[N];return x[N]=(L,O=!1,S=!1)=>(e||v(),I.schedule(L,O,S)),x},{}),cancel:x=>{for(let N=0;N<Ct.length;N++)s[Ct[N]].cancel(x)},state:i,steps:s}}const ze=r=>r,{schedule:Pe,cancel:Bt,state:wt}=Ta(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:ze,!0);let At;function Ia(){At=void 0}const ye={now:()=>(At===void 0&&ye.set(wt.isProcessing||Ne.useManualTiming?wt.timestamp:performance.now()),At),set:r=>{At=r,queueMicrotask(Ia)}},$n=new Set;function qn(r,t,e){r||$n.has(t)||(console.warn(t),$n.add(t))}class Qn{constructor(){this.subscriptions=[]}add(t){return la(this.subscriptions,t),()=>Bn(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,e,n);else for(let a=0;a<i;a++){const s=this.subscriptions[a];s&&s(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Xn(r,t){return t?r*(1e3/t):0}const Zn=30,xa=r=>!isNaN(parseFloat(r));class Oa{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,i=!0)=>{var s,o;const a=ye.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty();i&&((o=this.events.renderRequest)==null||o.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=ye.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=xa(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&qn(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new Qn);const n=this.events[t].add(e);return t==="change"?()=>{n(),Pe.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){!e||!this.passiveEffect?this.updateAndNotify(t,e):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.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=ye.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Zn)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,Zn);return Xn(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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(){var t,e;(t=this.dependents)==null||t.clear(),(e=this.events.destroy)==null||e.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function rt(r,t){return new Oa(r,t)}function Na(r,t,e){r.hasValue(t)?r.getValue(t).set(e):r.addValue(t,rt(e))}function Pa(r){return Ea(r)?r[r.length-1]||0:r}function La(r,t){let s=Ca(r,t)||{},{transitionEnd:n={},transition:i={}}=s,a=Te(s,["transitionEnd","transition"]);a=U(U({},a),n);for(const o in a){const c=Pa(a[o]);Na(r,o,c)}}function Ra(r){return!!(ge(r)&&r.add)}function ka(r,t){const e=r.getValue("willChange");if(Ra(e))return e.add(t);if(!e&&Ne.WillChange){const n=new Ne.WillChange("auto");r.addValue("willChange",n),n.add(t)}}const zt=r=>r.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Sa="data-"+zt("framerAppearId");function Ma(r){return r.props[Sa]}const Da=r=>r!==null;function Va(r,{repeat:t,repeatType:e="loop"},n){const i=r.filter(Da),a=t&&e!=="loop"&&t%2===1?0:i.length-1;return i[a]}const je=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],He=new Set(je),Fa={type:"spring",stiffness:500,damping:25,restSpeed:10},Ua=r=>({type:"spring",stiffness:550,damping:r===0?2*Math.sqrt(550):30,restSpeed:10}),Ba={type:"keyframes",duration:.8},za={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ja=(r,{keyframes:t})=>t.length>2?Ba:He.has(r)?r.startsWith("scale")?Ua(t[1]):Fa:za;function Ha(u){var h=u,{when:r,delay:t,delayChildren:e,staggerChildren:n,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:c,elapsed:l}=h,d=Te(h,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return!!Object.keys(d).length}function Jn(r,t){var e,n;return(n=(e=r==null?void 0:r[t])!=null?e:r==null?void 0:r.default)!=null?n:r}const er=r=>t=>typeof t=="string"&&t.startsWith(r),tr=er("--"),Ka=er("var(--"),jt=r=>Ka(r)?Wa.test(r.split("/*")[0].trim()):!1,Wa=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ke=(r,t,e)=>e>t?t:e<r?r:e,Ke={test:r=>typeof r=="number",parse:parseFloat,transform:r=>r},it=J(U({},Ke),{transform:r=>ke(0,1,r)}),Tt=J(U({},Ke),{default:1}),at=r=>Math.round(r*1e5)/1e5,Ht=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ya(r){return r==null}const Ga=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Kt=(r,t)=>e=>!!(typeof e=="string"&&Ga.test(e)&&e.startsWith(r)||t&&!Ya(e)&&Object.prototype.hasOwnProperty.call(e,t)),nr=(r,t,e)=>n=>{if(typeof n!="string")return n;const[i,a,s,o]=n.match(Ht);return{[r]:parseFloat(i),[t]:parseFloat(a),[e]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},$a=r=>ke(0,255,r),Wt=J(U({},Ke),{transform:r=>Math.round($a(r))}),Se={test:Kt("rgb","red"),parse:nr("red","green","blue"),transform:({red:r,green:t,blue:e,alpha:n=1})=>"rgba("+Wt.transform(r)+", "+Wt.transform(t)+", "+Wt.transform(e)+", "+at(it.transform(n))+")"};function qa(r){let t="",e="",n="",i="";return r.length>5?(t=r.substring(1,3),e=r.substring(3,5),n=r.substring(5,7),i=r.substring(7,9)):(t=r.substring(1,2),e=r.substring(2,3),n=r.substring(3,4),i=r.substring(4,5),t+=t,e+=e,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(e,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const Yt={test:Kt("#"),parse:qa,transform:Se.transform},st=r=>({test:t=>typeof t=="string"&&t.endsWith(r)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${r}`}),Le=st("deg"),We=st("%"),X=st("px"),Qa=st("vh"),Xa=st("vw"),rr=J(U({},We),{parse:r=>We.parse(r)/100,transform:r=>We.transform(r*100)}),Ye={test:Kt("hsl","hue"),parse:nr("hue","saturation","lightness"),transform:({hue:r,saturation:t,lightness:e,alpha:n=1})=>"hsla("+Math.round(r)+", "+We.transform(at(t))+", "+We.transform(at(e))+", "+at(it.transform(n))+")"},fe={test:r=>Se.test(r)||Yt.test(r)||Ye.test(r),parse:r=>Se.test(r)?Se.parse(r):Ye.test(r)?Ye.parse(r):Yt.parse(r),transform:r=>typeof r=="string"?r:r.hasOwnProperty("red")?Se.transform(r):Ye.transform(r)},Za=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ja(r){var t,e;return isNaN(r)&&typeof r=="string"&&(((t=r.match(Ht))==null?void 0:t.length)||0)+(((e=r.match(Za))==null?void 0:e.length)||0)>0}const ir="number",ar="color",es="var",ts="var(",sr="${}",ns=/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 ot(r){const t=r.toString(),e=[],n={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(ns,c=>(fe.test(c)?(n.color.push(a),i.push(ar),e.push(fe.parse(c))):c.startsWith(ts)?(n.var.push(a),i.push(es),e.push(c)):(n.number.push(a),i.push(ir),e.push(parseFloat(c))),++a,sr)).split(sr);return{values:e,split:o,indexes:n,types:i}}function or(r){return ot(r).values}function cr(r){const{split:t,types:e}=ot(r),n=t.length;return i=>{let a="";for(let s=0;s<n;s++)if(a+=t[s],i[s]!==void 0){const o=e[s];o===ir?a+=at(i[s]):o===ar?a+=fe.transform(i[s]):a+=i[s]}return a}}const rs=r=>typeof r=="number"?0:r;function is(r){const t=or(r);return cr(r)(t.map(rs))}const Ge={test:Ja,parse:or,createTransformer:cr,getAnimatableNone:is};function Gt(r,t,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?r+(t-r)*6*e:e<1/2?t:e<2/3?r+(t-r)*(2/3-e)*6:r}function as({hue:r,saturation:t,lightness:e,alpha:n}){r/=360,t/=100,e/=100;let i=0,a=0,s=0;if(!t)i=a=s=e;else{const o=e<.5?e*(1+t):e+t-e*t,c=2*e-o;i=Gt(c,o,r+1/3),a=Gt(c,o,r),s=Gt(c,o,r-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:n}}function It(r,t){return e=>e>0?t:r}const $t=(r,t,e)=>{const n=r*r,i=e*(t*t-n)+n;return i<0?0:Math.sqrt(i)},ss=[Yt,Se,Ye],os=r=>ss.find(t=>t.test(r));function lr(r){const t=os(r);if(tt(!!t,`'${r}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let e=t.parse(r);return t===Ye&&(e=as(e)),e}const dr=(r,t)=>{const e=lr(r),n=lr(t);if(!e||!n)return It(r,t);const i=U({},e);return a=>(i.red=$t(e.red,n.red,a),i.green=$t(e.green,n.green,a),i.blue=$t(e.blue,n.blue,a),i.alpha=et(e.alpha,n.alpha,a),Se.transform(i))},qt=new Set(["none","hidden"]);function cs(r,t){return qt.has(r)?e=>e<=0?r:t:e=>e>=1?t:r}const ls=(r,t)=>e=>t(r(e)),Qt=(...r)=>r.reduce(ls);function ds(r,t){return e=>et(r,t,e)}function Xt(r){return typeof r=="number"?ds:typeof r=="string"?jt(r)?It:fe.test(r)?dr:hs:Array.isArray(r)?ur:typeof r=="object"?fe.test(r)?dr:us:It}function ur(r,t){const e=[...r],n=e.length,i=r.map((a,s)=>Xt(a)(a,t[s]));return a=>{for(let s=0;s<n;s++)e[s]=i[s](a);return e}}function us(r,t){const e=U(U({},r),t),n={};for(const i in e)r[i]!==void 0&&t[i]!==void 0&&(n[i]=Xt(r[i])(r[i],t[i]));return i=>{for(const a in n)e[a]=n[a](i);return e}}function ps(r,t){var i;const e=[],n={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const s=t.types[a],o=r.indexes[s][n[s]],c=(i=r.values[o])!=null?i:0;e[a]=c,n[s]++}return e}const hs=(r,t)=>{const e=Ge.createTransformer(t),n=ot(r),i=ot(t);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?qt.has(r)&&!i.values.length||qt.has(t)&&!n.values.length?cs(r,t):Qt(ur(ps(n,i),i.values),e):(tt(!0,`Complex values '${r}' 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.`),It(r,t))};function pr(r,t,e){return typeof r=="number"&&typeof t=="number"&&typeof e=="number"?et(r,t,e):Xt(r)(r,t)}const fs=r=>{const t=({timestamp:e})=>r(e);return{start:(e=!0)=>Pe.update(t,e),stop:()=>Bt(t),now:()=>wt.isProcessing?wt.timestamp:ye.now()}},hr=(r,t,e=10)=>{let n="";const i=Math.max(Math.round(t/e),2);for(let a=0;a<i;a++)n+=r(a/(i-1))+", ";return`linear(${n.substring(0,n.length-2)})`},ms=5;function fr(r,t,e){const n=Math.max(t-ms,0);return Xn(e-r(n),t-n)}const ce={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},Zt=.001;function vs({duration:r=ce.duration,bounce:t=ce.bounce,velocity:e=ce.velocity,mass:n=ce.mass}){let i,a;tt(r<=we(ce.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=ke(ce.minDamping,ce.maxDamping,s),r=ke(ce.minDuration,ce.maxDuration,xe(r)),s<1?(i=l=>{const d=l*s,u=d*r,h=d-e,p=Jt(l,s),f=Math.exp(-u);return Zt-h/p*f},a=l=>{const u=l*s*r,h=u*e+e,p=Math.pow(s,2)*Math.pow(l,2)*r,f=Math.exp(-u),m=Jt(Math.pow(l,2),s);return(-i(l)+Zt>0?-1:1)*((h-p)*f)/m}):(i=l=>{const d=Math.exp(-l*r),u=(l-e)*r+1;return-Zt+d*u},a=l=>{const d=Math.exp(-l*r),u=(e-l)*(r*r);return d*u});const o=5/r,c=bs(i,a,o);if(r=we(r),isNaN(c))return{stiffness:ce.stiffness,damping:ce.damping,duration:r};{const l=Math.pow(c,2)*n;return{stiffness:l,damping:s*2*Math.sqrt(n*l),duration:r}}}const gs=12;function bs(r,t,e){let n=e;for(let i=1;i<gs;i++)n=n-r(n)/t(n);return n}function Jt(r,t){return r*Math.sqrt(1-t*t)}const ys=["duration","bounce"],_s=["stiffness","damping","mass"];function mr(r,t){return t.some(e=>r[e]!==void 0)}function Es(r){let t=U({velocity:ce.velocity,stiffness:ce.stiffness,damping:ce.damping,mass:ce.mass,isResolvedFromDuration:!1},r);if(!mr(r,_s)&&mr(r,ys))if(r.visualDuration){const e=r.visualDuration,n=2*Math.PI/(e*1.2),i=n*n,a=2*ke(.05,1,1-(r.bounce||0))*Math.sqrt(i);t=J(U({},t),{mass:ce.mass,stiffness:i,damping:a})}else{const e=vs(r);t=J(U(U({},t),e),{mass:ce.mass}),t.isResolvedFromDuration=!0}return t}function ct(r=ce.visualDuration,t=ce.bounce){const e=typeof r!="object"?{visualDuration:r,keyframes:[0,1],bounce:t}:r;let{restSpeed:n,restDelta:i}=e;const a=e.keyframes[0],s=e.keyframes[e.keyframes.length-1],o={done:!1,value:a},{stiffness:c,damping:l,mass:d,duration:u,velocity:h,isResolvedFromDuration:p}=Es(J(U({},e),{velocity:-xe(e.velocity||0)})),f=h||0,m=l/(2*Math.sqrt(c*d)),v=s-a,b=xe(Math.sqrt(c/d)),w=Math.abs(v)<5;n||(n=w?ce.restSpeed.granular:ce.restSpeed.default),i||(i=w?ce.restDelta.granular:ce.restDelta.default);let x;if(m<1){const I=Jt(b,m);x=L=>{const O=Math.exp(-m*b*L);return s-O*((f+m*b*v)/I*Math.sin(I*L)+v*Math.cos(I*L))}}else if(m===1)x=I=>s-Math.exp(-b*I)*(v+(f+b*v)*I);else{const I=b*Math.sqrt(m*m-1);x=L=>{const O=Math.exp(-m*b*L),S=Math.min(I*L,300);return s-O*((f+m*b*v)*Math.sinh(S)+I*v*Math.cosh(S))/I}}const N={calculatedDuration:p&&u||null,next:I=>{const L=x(I);if(p)o.done=I>=u;else{let O=I===0?f:0;m<1&&(O=I===0?we(f):fr(x,I,L));const S=Math.abs(O)<=n,B=Math.abs(s-L)<=i;o.done=S&&B}return o.value=o.done?s:L,o},toString:()=>{const I=Math.min(Ut(N),Et),L=hr(O=>N.next(I*O).value,I,30);return I+"ms "+L},toTransition:()=>{}};return N}ct.applyToOptions=r=>{const t=Hn(r,100,ct);return r.ease=t.ease,r.duration=we(t.duration),r.type="keyframes",r};function en({keyframes:r,velocity:t=0,power:e=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:c,restDelta:l=.5,restSpeed:d}){const u=r[0],h={done:!1,value:u},p=S=>o!==void 0&&S<o||c!==void 0&&S>c,f=S=>o===void 0?c:c===void 0||Math.abs(o-S)<Math.abs(c-S)?o:c;let m=e*t;const v=u+m,b=s===void 0?v:s(v);b!==v&&(m=b-u);const w=S=>-m*Math.exp(-S/n),x=S=>b+w(S),N=S=>{const B=w(S),G=x(S);h.done=Math.abs(B)<=l,h.value=h.done?b:G};let I,L;const O=S=>{p(h.value)&&(I=S,L=ct({keyframes:[h.value,f(h.value)],velocity:fr(x,S,h.value),damping:i,stiffness:a,restDelta:l,restSpeed:d}))};return O(0),{calculatedDuration:null,next:S=>{let B=!1;return!L&&I===void 0&&(B=!0,N(S),O(S)),I!==void 0&&S>=I?L.next(S-I):(!B&&N(S),h)}}}function Cs(r,t,e){const n=[],i=e||Ne.mix||pr,a=r.length-1;for(let s=0;s<a;s++){let o=i(r[s],r[s+1]);if(t){const c=Array.isArray(t)?t[s]||ze:t;o=Qt(c,o)}n.push(o)}return n}function ws(r,t,{clamp:e=!0,ease:n,mixer:i}={}){const a=r.length;if(Oe(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=r[0]===r[1];r[0]>r[a-1]&&(r=[...r].reverse(),t=[...t].reverse());const o=Cs(t,n,i),c=o.length,l=d=>{if(s&&d<r[0])return t[0];let u=0;if(c>1)for(;u<r.length-2&&!(d<r[u+1]);u++);const h=Vt(r[u],r[u+1],d);return o[u](h)};return e?d=>l(ke(r[0],r[a-1],d)):l}function As(r,t){return r.map(e=>e*t)}const vr=(r,t,e)=>(((1-3*e+3*t)*r+(3*e-6*t))*r+3*t)*r,Ts=1e-7,Is=12;function xs(r,t,e,n,i){let a,s,o=0;do s=t+(e-t)/2,a=vr(s,n,i)-r,a>0?e=s:t=s;while(Math.abs(a)>Ts&&++o<Is);return s}function lt(r,t,e,n){if(r===t&&e===n)return ze;const i=a=>xs(a,0,1,r,e);return a=>a===0||a===1?a:vr(i(a),t,n)}const Os=lt(.42,0,1,1),Ns=lt(0,0,.58,1),gr=lt(.42,0,.58,1),br=r=>t=>t<=.5?r(2*t)/2:(2-r(2*(1-t)))/2,yr=r=>t=>1-r(1-t),_r=lt(.33,1.53,.69,.99),tn=yr(_r),Er=br(tn),Cr=r=>(r*=2)<1?.5*tn(r):.5*(2-Math.pow(2,-10*(r-1))),nn=r=>1-Math.sin(Math.acos(r)),Ps=yr(nn),wr=br(nn),Ar=r=>Array.isArray(r)&&typeof r[0]=="number",Tr={linear:ze,easeIn:Os,easeInOut:gr,easeOut:Ns,circIn:nn,circInOut:wr,circOut:Ps,backIn:tn,backInOut:Er,backOut:_r,anticipate:Cr},Ls=r=>typeof r=="string",Ir=r=>{if(Ar(r)){Oe(r.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,e,n,i]=r;return lt(t,e,n,i)}else if(Ls(r))return Oe(Tr[r]!==void 0,`Invalid easing type '${r}'`),Tr[r];return r};function Rs(r,t){return r.map(()=>t||gr).splice(0,r.length-1)}function $e({duration:r=300,keyframes:t,times:e,ease:n="easeInOut"}){const i=Fn(n)?n.map(Ir):Ir(n),a={done:!1,value:t[0]},s=As(e&&e.length===t.length?e:jn(t),r),o=ws(s,t,{ease:Array.isArray(i)?i:Rs(t,i)});return{calculatedDuration:r,next:c=>(a.value=o(c),a.done=c>=r,a)}}const ks=r=>r!==null;function rn(r,{repeat:t,repeatType:e="loop"},n,i=1){const a=r.filter(ks),o=i<0||t&&e!=="loop"&&t%2===1?0:a.length-1;return!o||n===void 0?a[o]:n}const Ss={decay:en,inertia:en,tween:$e,keyframes:$e,spring:ct};function xr(r){typeof r.type=="string"&&(r.type=Ss[r.type])}class an{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}const Ms=r=>r/100;class sn extends an{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var n,i;const{motionValue:e}=this.options;e&&e.updatedAt!==ye.now()&&this.tick(ye.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(n=this.options).onStop)==null||i.call(n))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;xr(t);const{type:e=$e,repeat:n=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=t;let{keyframes:o}=t;const c=e||$e;process.env.NODE_ENV!=="production"&&c!==$e&&Oe(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`),c!==$e&&typeof o[0]!="number"&&(this.mixKeyframes=Qt(Ms,pr(o[0],o[1])),o=[0,100]);const l=c(J(U({},t),{keyframes:o}));a==="mirror"&&(this.mirroredGenerator=c(J(U({},t),{keyframes:[...o].reverse(),velocity:-s}))),l.calculatedDuration===null&&(l.calculatedDuration=Ut(l));const{calculatedDuration:d}=l;this.calculatedDuration=d,this.resolvedDuration=d+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=l}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){const{generator:n,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:c}=this;if(this.startTime===null)return n.next(0);const{delay:l=0,keyframes:d,repeat:u,repeatType:h,repeatDelay:p,type:f,onUpdate:m,finalKeyframe:v}=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)),e?this.currentTime=t:this.updateTime(t);const b=this.currentTime-l*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?b<0:b>i;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let x=this.currentTime,N=n;if(u){const S=Math.min(this.currentTime,i)/o;let B=Math.floor(S),G=S%1;!G&&S>=1&&(G=1),G===1&&B--,B=Math.min(B,u+1),!!(B%2)&&(h==="reverse"?(G=1-G,p&&(G-=p/o)):h==="mirror"&&(N=s)),x=ke(0,1,G)*o}const I=w?{done:!1,value:d[0]}:N.next(x);a&&(I.value=a(I.value));let{done:L}=I;!w&&c!==null&&(L=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return O&&f!==en&&(I.value=rn(d,this.options,v,this.speed)),m&&m(I.value),O&&this.finish(),I}then(t,e){return this.finished.then(t,e)}get duration(){return xe(this.calculatedDuration)}get time(){return xe(this.currentTime)}set time(t){var e;t=we(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),(e=this.driver)==null||e.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ye.now());const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=xe(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=fs,startTime:e}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(a=(i=this.options).onPlay)==null||a.call(i);const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=e!=null?e:n),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(ye.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,e;this.notifyFinished(),this.teardown(),this.state="finished",(e=(t=this.options).onComplete)==null||e.call(t)}cancel(){var t,e;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(e=(t=this.options).onCancel)==null||e.call(t)}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){var e;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(e=this.driver)==null||e.stop(),t.observe(this)}}function Ds(r){var t;for(let e=1;e<r.length;e++)(t=r[e])!=null||(r[e]=r[e-1])}const Me=r=>r*180/Math.PI,on=r=>{const t=Me(Math.atan2(r[1],r[0]));return cn(t)},Vs={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:r=>(Math.abs(r[0])+Math.abs(r[3]))/2,rotate:on,rotateZ:on,skewX:r=>Me(Math.atan(r[1])),skewY:r=>Me(Math.atan(r[2])),skew:r=>(Math.abs(r[1])+Math.abs(r[2]))/2},cn=r=>(r=r%360,r<0&&(r+=360),r),Or=on,Nr=r=>Math.sqrt(r[0]*r[0]+r[1]*r[1]),Pr=r=>Math.sqrt(r[4]*r[4]+r[5]*r[5]),Fs={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Nr,scaleY:Pr,scale:r=>(Nr(r)+Pr(r))/2,rotateX:r=>cn(Me(Math.atan2(r[6],r[5]))),rotateY:r=>cn(Me(Math.atan2(-r[2],r[0]))),rotateZ:Or,rotate:Or,skewX:r=>Me(Math.atan(r[4])),skewY:r=>Me(Math.atan(r[1])),skew:r=>(Math.abs(r[1])+Math.abs(r[4]))/2};function ln(r){return r.includes("scale")?1:0}function dn(r,t){if(!r||r==="none")return ln(t);const e=r.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,i;if(e)n=Fs,i=e;else{const o=r.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Vs,i=o}if(!i)return ln(t);const a=n[t],s=i[1].split(",").map(Bs);return typeof a=="function"?a(s):s[a]}const Us=(r,t)=>{const{transform:e="none"}=getComputedStyle(r);return dn(e,t)};function Bs(r){return parseFloat(r.trim())}const Lr=r=>r===Ke||r===X,zs=new Set(["x","y","z"]),js=je.filter(r=>!zs.has(r));function Hs(r){const t=[];return js.forEach(e=>{const n=r.getValue(e);n!==void 0&&(t.push([e,n.get()]),n.set(e.startsWith("scale")?1:0))}),t}const De={width:({x:r},{paddingLeft:t="0",paddingRight:e="0"})=>r.max-r.min-parseFloat(t)-parseFloat(e),height:({y:r},{paddingTop:t="0",paddingBottom:e="0"})=>r.max-r.min-parseFloat(t)-parseFloat(e),top:(r,{top:t})=>parseFloat(t),left:(r,{left:t})=>parseFloat(t),bottom:({y:r},{top:t})=>parseFloat(t)+(r.max-r.min),right:({x:r},{left:t})=>parseFloat(t)+(r.max-r.min),x:(r,{transform:t})=>dn(t,"x"),y:(r,{transform:t})=>dn(t,"y")};De.translateX=De.x,De.translateY=De.y;const Ve=new Set;let un=!1,pn=!1,hn=!1;function Rr(){if(pn){const r=Array.from(Ve).filter(n=>n.needsMeasurement),t=new Set(r.map(n=>n.element)),e=new Map;t.forEach(n=>{const i=Hs(n);i.length&&(e.set(n,i),n.render())}),r.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const i=e.get(n);i&&i.forEach(([a,s])=>{var o;(o=n.getValue(a))==null||o.set(s)})}),r.forEach(n=>n.measureEndState()),r.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}pn=!1,un=!1,Ve.forEach(r=>r.complete(hn)),Ve.clear()}function kr(){Ve.forEach(r=>{r.readKeyframes(),r.needsMeasurement&&(pn=!0)})}function Ks(){hn=!0,kr(),Rr(),hn=!1}class fn{constructor(t,e,n,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Ve.add(this),un||(un=!0,Pe.read(kr),Pe.resolveKeyframes(Rr))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;if(t[0]===null){const a=i==null?void 0:i.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(n&&e){const o=n.readValue(e,s);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}Ds(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ve.delete(this)}cancel(){this.state==="scheduled"&&(Ve.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ws=r=>r.startsWith("--");function Ys(r,t,e){Ws(t)?r.style.setProperty(t,e):r.style[t]=e}function mn(r){let t;return()=>(t===void 0&&(t=r()),t)}const Gs=mn(()=>window.ScrollTimeline!==void 0),$s={};function qs(r,t){const e=mn(r);return()=>{var n;return(n=$s[t])!=null?n:e()}}const Sr=qs(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(r){return!1}return!0},"linearEasing"),dt=([r,t,e,n])=>`cubic-bezier(${r}, ${t}, ${e}, ${n})`,Mr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:dt([0,.65,.55,1]),circOut:dt([.55,0,1,.45]),backIn:dt([.31,.01,.66,-.59]),backOut:dt([.33,1.53,.69,.99])};function Dr(r,t){if(r)return typeof r=="function"?Sr()?hr(r,t):"ease-out":Ar(r)?dt(r):Array.isArray(r)?r.map(e=>Dr(e,t)||Mr.easeOut):Mr[r]}function Qs(r,t,e,{delay:n=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:c}={},l=void 0){const d={[t]:e};c&&(d.offset=c);const u=Dr(o,i);Array.isArray(u)&&(d.easing=u);const h={delay:n,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return l&&(h.pseudoElement=l),r.animate(d,h)}function Xs(e){var n=e,{type:r}=n,t=Te(n,["type"]);var i,a;return Ft(r)&&Sr()?r.applyToOptions(t):((i=t.duration)!=null||(t.duration=300),(a=t.ease)!=null||(t.ease="easeOut"),t)}class Zs extends an{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:e,name:n,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:o,onComplete:c}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,Oe(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);const l=Xs(t);this.animation=Qs(e,n,i,l,a),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const d=rn(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(d):Ys(e,n,d),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,e;(e=(t=this.animation).finish)==null||e.call(t)}cancel(){try{this.animation.cancel()}catch(t){}}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(){var t,e;this.isPseudoElement||(e=(t=this.animation).commitStyles)==null||e.call(t)}get duration(){var e,n;const t=((n=(e=this.animation.effect)==null?void 0:e.getComputedTiming)==null?void 0:n.call(e).duration)||0;return xe(Number(t))}get time(){return xe(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=we(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:e}){var n;return this.allowFlatten&&((n=this.animation.effect)==null||n.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Gs()?(this.animation.timeline=t,ze):e(this)}}const Vr={anticipate:Cr,backInOut:Er,circInOut:wr};function Js(r){return r in Vr}function eo(r){typeof r.ease=="string"&&Js(r.ease)&&(r.ease=Vr[r.ease])}const Fr=10;class to extends Zs{constructor(t){eo(t),xr(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){var d;const l=this.options,{motionValue:e,onUpdate:n,onComplete:i,element:a}=l,s=Te(l,["motionValue","onUpdate","onComplete","element"]);if(!e)return;if(t!==void 0){e.set(t);return}const o=new sn(J(U({},s),{autoplay:!1})),c=we((d=this.finishedTime)!=null?d:this.time);e.setWithVelocity(o.sample(c-Fr).value,o.sample(c).value,Fr),o.stop()}}const Ur=(r,t)=>t==="zIndex"?!1:!!(typeof r=="number"||Array.isArray(r)||typeof r=="string"&&(Ge.test(r)||r==="0")&&!r.startsWith("url("));function no(r){const t=r[0];if(r.length===1)return!0;for(let e=0;e<r.length;e++)if(r[e]!==t)return!0}function ro(r,t,e,n){const i=r[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=r[r.length-1],s=Ur(i,t),o=Ur(a,t);return tt(s===o,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!s||!o?!1:no(r)||(e==="spring"||Ft(e))&&n}function Br(r){return typeof r=="object"&&r!==null}function io(r){return Br(r)&&"offsetHeight"in r}const ao=new Set(["opacity","clipPath","filter","transform"]),so=mn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function oo(r){var l;const{motionValue:t,name:e,repeatDelay:n,repeatType:i,damping:a,type:s}=r;if(!io((l=t==null?void 0:t.owner)==null?void 0:l.current))return!1;const{onUpdate:o,transformTemplate:c}=t.owner.getProps();return so()&&e&&ao.has(e)&&(e!=="transform"||!c)&&!o&&!n&&i!=="mirror"&&a!==0&&s!=="inertia"}const co=40;class lo extends an{constructor(h){var p=h,{autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:o,name:c,motionValue:l,element:d}=p,u=Te(p,["autoplay","delay","type","repeat","repeatDelay","repeatType","keyframes","name","motionValue","element"]);var v;super(),this.stop=()=>{var b,w;this._animation&&(this._animation.stop(),(b=this.stopTimeline)==null||b.call(this)),(w=this.keyframeResolver)==null||w.cancel()},this.createdAt=ye.now();const f=U({autoplay:t,delay:e,type:n,repeat:i,repeatDelay:a,repeatType:s,name:c,motionValue:l,element:d},u),m=(d==null?void 0:d.KeyframeResolver)||fn;this.keyframeResolver=new m(o,(b,w,x)=>this.onKeyframesResolved(b,w,f,!x),c,l,d),(v=this.keyframeResolver)==null||v.scheduleResolve()}onKeyframesResolved(t,e,n,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:o,delay:c,isHandoff:l,onUpdate:d}=n;this.resolvedAt=ye.now(),ro(t,a,s,o)||((Ne.instantAnimations||!c)&&(d==null||d(rn(t,n,e))),t[0]=t[t.length-1],n.duration=0,n.repeat=0);const u=i?this.resolvedAt?this.resolvedAt-this.createdAt>co?this.resolvedAt:this.createdAt:this.createdAt:void 0,h=J(U({startTime:u,finalKeyframe:e},n),{keyframes:t}),p=!l&&oo(h)?new to(J(U({},h),{element:h.motionValue.owner.current})):new sn(h);p.finished.then(()=>this.notifyFinished()).catch(ze),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Ks()),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(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const zr=(r,t,e,n={},i,a)=>s=>{const o=Jn(n,r)||{},c=o.delay||n.delay||0;let{elapsed:l=0}=n;l=l-we(c);const d=J(U({keyframes:Array.isArray(e)?e:[null,e],ease:"easeOut",velocity:t.getVelocity()},o),{delay:-l,onUpdate:h=>{t.set(h),o.onUpdate&&o.onUpdate(h)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:r,motionValue:t,element:a?void 0:i});Ha(o)||Object.assign(d,ja(r,d)),d.duration&&(d.duration=we(d.duration)),d.repeatDelay&&(d.repeatDelay=we(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let u=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(u=!0)),(Ne.instantAnimations||Ne.skipAnimations)&&(u=!0,d.duration=0,d.delay=0),d.allowFlatten=!o.type&&!o.ease,u&&!a&&t.get()!==void 0){const h=Va(d.keyframes,o);if(h!==void 0){Pe.update(()=>{d.onUpdate(h),d.onComplete()});return}}return o.isSync?new sn(d):new lo(d)},jr=new Set(["width","height","top","left","right","bottom",...je]);function uo({protectedKeys:r,needsAnimating:t},e){const n=r.hasOwnProperty(e)&&t[e]!==!0;return t[e]=!1,n}function po(r,t,{delay:e=0,transitionOverride:n,type:i}={}){var u;let d=t,{transition:a=r.getDefaultTransition(),transitionEnd:s}=d,o=Te(d,["transition","transitionEnd"]);n&&(a=n);const c=[],l=i&&r.animationState&&r.animationState.getState()[i];for(const h in o){const p=r.getValue(h,(u=r.latestValues[h])!=null?u:null),f=o[h];if(f===void 0||l&&uo(l,h))continue;const m=U({delay:e},Jn(a||{},h)),v=p.get();if(v!==void 0&&!p.isAnimating&&!Array.isArray(f)&&f===v&&!m.velocity)continue;let b=!1;if(window.MotionHandoffAnimation){const x=Ma(r);if(x){const N=window.MotionHandoffAnimation(x,h,Pe);N!==null&&(m.startTime=N,b=!0)}}ka(r,h),p.start(zr(h,p,f,r.shouldReduceMotion&&jr.has(h)?{type:!1}:m,r,b));const w=p.animation;w&&c.push(w)}return s&&Promise.all(c).then(()=>{Pe.update(()=>{s&&La(r,s)})}),c}function ho({top:r,left:t,right:e,bottom:n}){return{x:{min:t,max:e},y:{min:r,max:n}}}function fo(r,t){if(!t)return r;const e=t({x:r.left,y:r.top}),n=t({x:r.right,y:r.bottom});return{top:e.y,left:e.x,bottom:n.y,right:n.x}}function mo(r,t){return ho(fo(r.getBoundingClientRect(),t))}const Hr={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"]},vn={};for(const r in Hr)vn[r]={isEnabled:t=>Hr[r].some(e=>!!t[e])};const Kr=()=>({min:0,max:0}),gn=()=>({x:Kr(),y:Kr()}),vo=typeof window!="undefined",bn={current:null},Wr={current:!1};function go(){if(Wr.current=!0,!!vo)if(window.matchMedia){const r=window.matchMedia("(prefers-reduced-motion)"),t=()=>bn.current=r.matches;r.addListener(t),t()}else bn.current=!1}function bo(r){return r!==null&&typeof r=="object"&&typeof r.start=="function"}function yo(r){return typeof r=="string"||Array.isArray(r)}const _o=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function Yr(r){return bo(r.animate)||_o.some(t=>yo(r[t]))}function Eo(r){return!!(Yr(r)||r.variants)}function Co(r,t,e){for(const n in t){const i=t[n],a=e[n];if(ge(i))r.addValue(n,i);else if(ge(a))r.addValue(n,rt(i,{owner:r}));else if(a!==i)if(r.hasValue(n)){const s=r.getValue(n);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=r.getStaticValue(n);r.addValue(n,rt(s!==void 0?s:i,{owner:r}))}}for(const n in e)t[n]===void 0&&r.removeValue(n);return t}const Gr=r=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r),$r=r=>/^0[^.\s]+$/u.test(r),wo={test:r=>r==="auto",parse:r=>r},qr=r=>t=>t.test(r),Qr=[Ke,X,We,Le,Xa,Qa,wo],Xr=r=>Qr.find(qr(r)),Ao=[...Qr,fe,Ge],To=r=>Ao.find(qr(r)),Io=new Set(["brightness","contrast","saturate","opacity"]);function xo(r){const[t,e]=r.slice(0,-1).split("(");if(t==="drop-shadow")return r;const[n]=e.match(Ht)||[];if(!n)return r;const i=e.replace(n,"");let a=Io.has(t)?1:0;return n!==e&&(a*=100),t+"("+a+i+")"}const Oo=/\b([a-z-]*)\(.*?\)/gu,yn=J(U({},Ge),{getAnimatableNone:r=>{const t=r.match(Oo);return t?t.map(xo).join(" "):r}}),Zr=J(U({},Ke),{transform:Math.round}),_n=J(U({borderWidth:X,borderTopWidth:X,borderRightWidth:X,borderBottomWidth:X,borderLeftWidth:X,borderRadius:X,radius:X,borderTopLeftRadius:X,borderTopRightRadius:X,borderBottomRightRadius:X,borderBottomLeftRadius:X,width:X,maxWidth:X,height:X,maxHeight:X,top:X,right:X,bottom:X,left:X,padding:X,paddingTop:X,paddingRight:X,paddingBottom:X,paddingLeft:X,margin:X,marginTop:X,marginRight:X,marginBottom:X,marginLeft:X,backgroundPositionX:X,backgroundPositionY:X},{rotate:Le,rotateX:Le,rotateY:Le,rotateZ:Le,scale:Tt,scaleX:Tt,scaleY:Tt,scaleZ:Tt,skew:Le,skewX:Le,skewY:Le,distance:X,translateX:X,translateY:X,translateZ:X,x:X,y:X,z:X,perspective:X,transformPerspective:X,opacity:it,originX:rr,originY:rr,originZ:X}),{zIndex:Zr,fillOpacity:it,strokeOpacity:it,numOctaves:Zr}),No=J(U({},_n),{color:fe,backgroundColor:fe,outlineColor:fe,fill:fe,stroke:fe,borderColor:fe,borderTopColor:fe,borderRightColor:fe,borderBottomColor:fe,borderLeftColor:fe,filter:yn,WebkitFilter:yn}),Jr=r=>No[r];function ei(r,t){let e=Jr(r);return e!==yn&&(e=Ge),e.getAnimatableNone?e.getAnimatableNone(t):void 0}const ti=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ni{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=fn,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=ye.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,Pe.render(this.render,!1,!0))};const{latestValues:c,renderState:l}=s;this.latestValues=c,this.baseTarget=U({},c),this.initialValues=e.initial?U({},c):{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!a,this.isControllingVariants=Yr(e),this.isVariantNode=Eo(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const h=this.scrapeMotionValuesFromProps(e,{},this),{willChange:d}=h,u=Te(h,["willChange"]);for(const p in u){const f=u[p];c[p]!==void 0&&ge(f)&&f.set(c[p],!1)}}mount(t){this.current=t,nt.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((e,n)=>this.bindToMotionValue(n,e)),Wr.current||go(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:bn.current,process.env.NODE_ENV!=="production"&&qn(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(),Bt(this.notifyUpdate),Bt(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 e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=He.has(t);n&&this.onBindTransform&&this.onBindTransform();const i=e.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Pe.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),a=e.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{i(),a(),s&&s(),e.owner&&e.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 vn){const e=vn[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):gn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;n<ti.length;n++){const i=ti[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,s=t[a];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=Co(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 e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&e!==void 0&&(n=rt(e===null?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var i;let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(i=this.getBaseTargetFromProps(this.props,t))!=null?i:this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(Gr(n)||$r(n))?n=parseFloat(n):!To(n)&&Ge.test(e)&&(n=ei(t,e)),this.setBaseTarget(t,ge(n)?n.get():n)),ge(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var a;const{initial:e}=this.props;let n;if(typeof e=="string"||typeof e=="object"){const s=Gn(this.props,e,(a=this.presenceContext)==null?void 0:a.custom);s&&(n=s[t])}if(e&&n!==void 0)return n;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ge(i)?i:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,e){return this.events[t]||(this.events[t]=new Qn),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}const Po=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Lo(r){const t=Po.exec(r);if(!t)return[,];const[,e,n,i]=t;return[`--${e!=null?e:n}`,i]}const Ro=4;function ri(r,t,e=1){Oe(e<=Ro,`Max CSS variable fallback depth detected in property "${r}". This may indicate a circular fallback dependency.`);const[n,i]=Lo(r);if(!n)return;const a=window.getComputedStyle(t).getPropertyValue(n);if(a){const s=a.trim();return Gr(s)?parseFloat(s):s}return jt(i)?ri(i,t,e+1):i}function ko(r){return typeof r=="number"?r===0:r!==null?r==="none"||r==="0"||$r(r):!0}const So=new Set(["auto","none","0"]);function Mo(r,t,e){let n=0,i;for(;n<r.length&&!i;){const a=r[n];typeof a=="string"&&!So.has(a)&&ot(a).values.length&&(i=r[n]),n++}if(i&&e)for(const a of t)r[a]=ei(e,i)}class Do extends fn{constructor(t,e,n,i,a){super(t,e,n,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let l=t[c];if(typeof l=="string"&&(l=l.trim(),jt(l))){const d=ri(l,e.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!jr.has(n)||t.length!==2)return;const[i,a]=t,s=Xr(i),o=Xr(a);if(s!==o)if(Lr(s)&&Lr(o))for(let c=0;c<t.length;c++){const l=t[c];typeof l=="string"&&(t[c]=parseFloat(l))}else De[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let i=0;i<t.length;i++)(t[i]===null||ko(t[i]))&&n.push(i);n.length&&Mo(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=De[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const i=e[e.length-1];i!==void 0&&t.getValue(n,i).jump(i,!1)}measureEndState(){var o;const{element:t,name:e,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const i=t.getValue(e);i&&i.jump(this.measuredOrigin,!1);const a=n.length-1,s=n[a];n[a]=De[e](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(o=this.removedTransforms)!=null&&o.length&&this.removedTransforms.forEach(([c,l])=>{t.getValue(c).set(l)}),this.resolveNoneKeyframes()}}class ii extends ni{constructor(){super(...arguments),this.KeyframeResolver=Do}sortInstanceNodePosition(t,e){return t.compareDocumentPosition(e)&2?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ge(t)&&(this.childSubscription=t.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}const ai=(r,t)=>t&&typeof r=="number"?t.transform(r):r,Vo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Fo=je.length;function Uo(r,t,e){let n="",i=!0;for(let a=0;a<Fo;a++){const s=je[a],o=r[s];if(o===void 0)continue;let c=!0;if(typeof o=="number"?c=o===(s.startsWith("scale")?1:0):c=parseFloat(o)===0,!c||e){const l=ai(o,_n[s]);if(!c){i=!1;const d=Vo[s]||s;n+=`${d}(${l}) `}e&&(t[s]=l)}}return n=n.trim(),e?n=e(t,i?"":n):i&&(n="none"),n}function si(r,t,e){const{style:n,vars:i,transformOrigin:a}=r;let s=!1,o=!1;for(const c in t){const l=t[c];if(He.has(c)){s=!0;continue}else if(tr(c)){i[c]=l;continue}else{const d=ai(l,_n[c]);c.startsWith("origin")?(o=!0,a[c]=d):n[c]=d}}if(t.transform||(s||e?n.transform=Uo(t,r.transform,e):n.transform&&(n.transform="none")),o){const{originX:c="50%",originY:l="50%",originZ:d=0}=a;n.transformOrigin=`${c} ${l} ${d}`}}function oi(r,{style:t,vars:e},n,i){Object.assign(r.style,t,i&&i.getProjectionStyles(n));for(const a in e)r.style.setProperty(a,e[a])}const Bo={};function zo(r,{layout:t,layoutId:e}){return He.has(r)||r.startsWith("origin")||(t||e!==void 0)&&(!!Bo[r]||r==="opacity")}function ci(r,t,e){var a;const{style:n}=r,i={};for(const s in n)(ge(n[s])||t.style&&ge(t.style[s])||zo(s,r)||((a=e==null?void 0:e.getValue(s))==null?void 0:a.liveStyle)!==void 0)&&(i[s]=n[s]);return i}function jo(r){return window.getComputedStyle(r)}class Ho extends ii{constructor(){super(...arguments),this.type="html",this.renderInstance=oi}readValueFromInstance(t,e){var n;if(He.has(e))return(n=this.projection)!=null&&n.isProjecting?ln(e):Us(t,e);{const i=jo(t),a=(tr(e)?i.getPropertyValue(e):i[e])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:e}){return mo(t,e)}build(t,e,n){si(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return ci(t,e,n)}}function Ko(r,t){return r in t}class Wo extends ni{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(Ko(e,t)){const n=t[e];if(typeof n=="string"||typeof n=="number")return n}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return gn()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}const Yo={offset:"stroke-dashoffset",array:"stroke-dasharray"},Go={offset:"strokeDashoffset",array:"strokeDasharray"};function $o(r,t,e=1,n=0,i=!0){r.pathLength=1;const a=i?Yo:Go;r[a.offset]=X.transform(-n);const s=X.transform(t),o=X.transform(e);r[a.array]=`${s} ${o}`}function qo(r,u,c,l,d){var h=u,{attrX:t,attrY:e,attrScale:n,pathLength:i,pathSpacing:a=1,pathOffset:s=0}=h,o=Te(h,["attrX","attrY","attrScale","pathLength","pathSpacing","pathOffset"]);var m,v;if(si(r,o,l),c){r.style.viewBox&&(r.attrs.viewBox=r.style.viewBox);return}r.attrs=r.style,r.style={};const{attrs:p,style:f}=r;p.transform&&(f.transform=p.transform,delete p.transform),(f.transform||p.transformOrigin)&&(f.transformOrigin=(m=p.transformOrigin)!=null?m:"50% 50%",delete p.transformOrigin),f.transform&&(f.transformBox=(v=d==null?void 0:d.transformBox)!=null?v:"fill-box",delete p.transformBox),t!==void 0&&(p.x=t),e!==void 0&&(p.y=e),n!==void 0&&(p.scale=n),i!==void 0&&$o(p,i,a,s,!1)}const li=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"]),Qo=r=>typeof r=="string"&&r.toLowerCase()==="svg";function Xo(r,t,e,n){oi(r,t,void 0,n);for(const i in t.attrs)r.setAttribute(li.has(i)?i:zt(i),t.attrs[i])}function Zo(r,t,e){const n=ci(r,t,e);for(const i in r)if(ge(r[i])||ge(t[i])){const a=je.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[a]=r[i]}return n}class Jo extends ii{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=gn}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(He.has(e)){const n=Jr(e);return n&&n.default||0}return e=li.has(e)?e:zt(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return Zo(t,e,n)}build(t,e,n){qo(t,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,e,n,i){Xo(t,e,n,i)}mount(t){this.isSVGTag=Qo(t.tagName),super.mount(t)}}function di(r){return Br(r)&&"ownerSVGElement"in r}function ec(r){return di(r)&&r.tagName==="svg"}function tc(r){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},e=di(r)&&!ec(r)?new Jo(t):new Ho(t);e.mount(r),nt.set(r,e)}function nc(r){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},e=new Wo(t);e.mount(r),nt.set(r,e)}function rc(r,t,e){const n=ge(r)?r:rt(r);return n.start(zr("",n,t,e)),n.animation}function ic(r,t){return ge(r)||typeof r=="number"||typeof r=="string"&&!Dt(t)}function ui(r,t,e,n){const i=[];if(ic(r,t))i.push(rc(r,Dt(t)&&t.default||t,e&&(e.default||e)));else{const a=Dn(r,t,n),s=a.length;Oe(!!s,"No valid elements provided.");for(let o=0;o<s;o++){const c=a[o],l=c instanceof Element?tc:nc;nt.has(c)||l(c);const d=nt.get(c),u=U({},e);"delay"in u&&typeof u.delay=="function"&&(u.delay=u.delay(o,s)),i.push(...po(d,J(U({},t),{transition:u}),{}))}}return i}function ac(r,t,e){const n=[];return va(r,t,e,{spring:ct}).forEach(({keyframes:a,transition:s},o)=>{n.push(...ui(o,a,s))}),n}class sc{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=e}attachTimeline(t){const e=this.animations.map(n=>n.attachTimeline(t));return()=>{e.forEach((n,i)=>{n&&n(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class oc extends sc{then(t,e){return this.finished.finally(t).then(()=>{})}}function cc(r){return Array.isArray(r)&&r.some(Array.isArray)}function lc(r){function t(e,n,i){let a=[];return cc(e)?a=ac(e,n,r):a=ui(e,n,i,r),new oc(a)}return t}const pe=lc(),ie={spinner:"_spinner_1lif3_1",spinnerContainer:"_spinnerContainer_1lif3_5",success:"_success_1lif3_9",successContainer:"_successContainer_1lif3_14",container:"_container_1lif3_57",card:"_card_1lif3_66",warning:"_warning_1lif3_75",svg:"_svg_1lif3_83",srOnly:"_srOnly_1lif3_88",backButton:"_backButton_1lif3_92"};function ae(r,t){if(!t)return;const e=t.trim().split(/\s+/).filter(n=>n.length>0);r.classList.add(...e)}class pi{constructor(){A(this,"template",`
|
|
3
3
|
<svg class="${ie.spinner}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 215 215" fill="none">
|
|
4
4
|
<path d="M214.476 107.728C214.476 132.466 205.898 156.439 190.204 175.562C174.51 194.686 152.671 207.775 128.408 212.602C104.144 217.428 78.9585 213.692 57.141 202.03C35.3236 190.369 18.2247 171.503 8.75763 148.647C-0.709393 125.792 -1.95874 100.361 5.22248 76.6878C12.4037 53.0145 27.5711 32.5636 48.1405 18.8196C68.7098 5.07558 93.4083 -1.11108 118.028 1.31372C142.647 3.73851 165.664 14.6247 183.157 32.1175L168.035 47.2395C154.041 33.2453 135.627 24.5363 115.932 22.5965C96.236 20.6566 76.4772 25.606 60.0217 36.6012C43.5663 47.5964 31.4323 63.9571 25.6874 82.8957C19.9424 101.834 20.9419 122.179 28.5155 140.463C36.0891 158.748 49.7683 173.84 67.2222 183.17C84.6761 192.499 104.825 195.488 124.235 191.627C143.646 187.766 161.117 177.294 173.672 161.995C186.228 146.697 193.09 127.518 193.09 107.728L214.476 107.728Z" fill="currentColor"/>
|
|
5
5
|
</svg>
|