@paynext/sdk 0.0.99 → 0.0.101

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.
@@ -1 +1 @@
1
- ._spinner_4n5ur_1{height:100%;width:100%}@keyframes _spin_4n5ur_1{to{transform:rotate(360deg)}}._spinner_4n5ur_1{animation:_spin_4n5ur_1 1s linear infinite;fill:#9ca3af;--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}._spinner_4n5ur_1:is(._dark_4n5ur_1 *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}._spinnerContainer_4n5ur_5{height:40px;width:40px}._success_4n5ur_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_4n5ur_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_4n5ur_14:is(._dark_4n5ur_1 *){--tw-bg-opacity: 1;background-color:rgb(209 244 224 / var(--tw-bg-opacity, 1))}._successContainer_4n5ur_14{z-index:0;animation:_containerPulse_4n5ur_1 3s ease-in-out infinite}._successContainer_4n5ur_14:before,._successContainer_4n5ur_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_4n5ur_14:is(._dark_4n5ur_1 *):before,._successContainer_4n5ur_14:is(._dark_4n5ur_1 *):after{--tw-bg-opacity: 1;background-color:rgb(167 233 193 / var(--tw-bg-opacity, 1))}._successContainer_4n5ur_14:before,._successContainer_4n5ur_14:after{animation:_ripplePulse_4n5ur_1 3s cubic-bezier(.4,0,.6,1) infinite;opacity:0;z-index:1}._successContainer_4n5ur_14:after{animation-delay:.5s}@keyframes _containerPulse_4n5ur_1{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}@keyframes _ripplePulse_4n5ur_1{0%{transform:scale(1);opacity:0}10%{transform:scale(1);opacity:.7}to{transform:scale(1.3);opacity:0}}._container_4n5ur_57{width:30px;height:20px;display:flex;margin:0 1px;align-items:center;justify-content:center}._card_4n5ur_66{width:28px;height:19px;display:flex;margin:0 1px;align-items:center;justify-content:center}._warning_4n5ur_75{width:16px;height:16px;display:flex;align-items:center;justify-content:center}._svg_4n5ur_83{width:100%;height:100%}._srOnly_4n5ur_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_4n5ur_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_lsspc_1{padding:0 2px;overflow:hidden;z-index:0;position:relative;height:auto;min-height:60px;width:100%;max-width:640px}._hidden_lsspc_8{display:none!important}._formInitial_lsspc_12{opacity:0;transform:translateY(100px)}._btnsInitial_lsspc_17{opacity:0;transform:translateY(-100px)}._buttons_1i8cu_1{display:grid;gap:.5rem}._hidden_1i8cu_5{display:none!important}._applePay_f1ztr_1{display:flex;flex-direction:column;gap:8px}@media (hover: hover){._applePay_f1ztr_1:hover{filter:contrast(.575) brightness(1.2)}}._hidden_f1ztr_28{display:none!important}._googlePay_1gtmg_1{display:flex;flex-direction:column;gap:8px;border-radius:12px;height:40px;overflow:hidden;background-color:#000}._hidden_1gtmg_11{display:none!important}._paypal_1p7d0_1{display:flex;flex-direction:column;gap:8px;height:40px;border-radius:12px;background-color:#ffc439}._hidden_1p7d0_10{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_ydw03_1{position:relative;display:grid;min-height:250px;gap:.75rem;padding-top:0}._hidden_ydw03_5{display:none!important}._topOffset_ydw03_9{margin-top:.5rem}._wrapper_1gvzd_1{position:relative}._inputContainer_1gvzd_5{background-color:transparent;border-color:#e0e0e0;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;transition:box-shadow .2s ease-in-out;box-sizing:border-box;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;border-style:solid;padding-left:.75rem;padding-right:.75rem}._inputContainer_1gvzd_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1gvzd_5:-ms-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1gvzd_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}@media (min-width: 640px){._inputContainer_1gvzd_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_1gvzd_13{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}@media (hover: hover){._inputContainer_1gvzd_5:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}}._inputContainer_1gvzd_5:focus-within:not(._errorInput_1gvzd_23):not(._disabled_1gvzd_23){box-shadow:0 0 0 2px color-mix(in srgb,var(--input-focus-shadow-color, #5A67D8) 30%,transparent)}._input_1gvzd_5{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_1gvzd_32{display:flex}._errorInput_1gvzd_23{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_1gvzd_23:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_1gvzd_23:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._label_1gvzd_40{margin-bottom:2px;display:flex;align-items:flex-end;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_1gvzd_44{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_1gvzd_23{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_1gvzd_52{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_1gvzd_59{display:none!important}._wrapper_1dxfo_1{position:relative}._inputContainer_1dxfo_5{background-color:transparent;border-color:#e0e0e0;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;transition:box-shadow .2s ease-in-out;box-sizing:border-box;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;border-style:solid;padding-left:.75rem;padding-right:.75rem}._inputContainer_1dxfo_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1dxfo_5:-ms-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1dxfo_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}@media (min-width: 640px){._inputContainer_1dxfo_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_1dxfo_13{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}@media (hover: hover){._inputContainer_1dxfo_5:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}}._inputContainer_1dxfo_5:focus-within:not(._errorInput_1dxfo_23):not(._disabled_1dxfo_23){box-shadow:0 0 0 2px color-mix(in srgb,var(--input-focus-shadow-color, #5A67D8) 30%,transparent)}._input_1dxfo_5{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_1dxfo_32{display:flex}._errorInput_1dxfo_23{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_1dxfo_23:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_1dxfo_23:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._error_1dxfo_23{margin-top:.25rem;margin-bottom:0;padding-left:.25rem;font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_1dxfo_44{margin-bottom:2px;display:flex;align-items:flex-end;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_1dxfo_48{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_1dxfo_23{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_1dxfo_56{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_1dxfo_63{display:none!important}._wrapper_27yo3_1{position:relative}._inputContainer_27yo3_5{background-color:transparent;border-color:#e0e0e0;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;transition:box-shadow .2s ease-in-out;box-sizing:border-box;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;border-style:solid;padding-left:.75rem;padding-right:.75rem}._inputContainer_27yo3_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_27yo3_5:-ms-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_27yo3_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}@media (min-width: 640px){._inputContainer_27yo3_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_27yo3_13{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}@media (hover: hover){._inputContainer_27yo3_5:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}}._inputContainer_27yo3_5:focus-within:not(._errorInput_27yo3_23):not(._disabled_27yo3_23){box-shadow:0 0 0 2px color-mix(in srgb,var(--input-focus-shadow-color, #5A67D8) 30%,transparent)}._input_27yo3_5{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_27yo3_32{display:flex;align-items:center;justify-content:center}._errorInput_27yo3_23{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_27yo3_23:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_27yo3_23:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._error_27yo3_23{margin-top:.25rem;margin-bottom:0;padding-left:.25rem;font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_27yo3_44{margin-bottom:2px;display:flex;align-items:flex-end;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_27yo3_48{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_27yo3_23{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_27yo3_56{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_27yo3_63{display:none!important}._securityContent_27yo3_67{display:grid;grid-column-gap:5px;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_1e7lb_1{border-radius:12px;margin-top:.5rem;display:flex;width:100%;flex-grow:1;flex-direction:row;align-items:center;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_1e7lb_1:is(._dark_1e7lb_1 *){background-color:#fee7ef80;--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}._container_1e7lb_1 svg{width:16px;height:16px}._title_1e7lb_11{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_1e7lb_11:is(._dark_1e7lb_1 *){--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}
1
+ ._spinner_4n5ur_1{height:100%;width:100%}@keyframes _spin_4n5ur_1{to{transform:rotate(360deg)}}._spinner_4n5ur_1{animation:_spin_4n5ur_1 1s linear infinite;fill:#9ca3af;--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}._spinner_4n5ur_1:is(._dark_4n5ur_1 *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}._spinnerContainer_4n5ur_5{height:40px;width:40px}._success_4n5ur_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_4n5ur_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_4n5ur_14:is(._dark_4n5ur_1 *){--tw-bg-opacity: 1;background-color:rgb(209 244 224 / var(--tw-bg-opacity, 1))}._successContainer_4n5ur_14{z-index:0;animation:_containerPulse_4n5ur_1 3s ease-in-out infinite}._successContainer_4n5ur_14:before,._successContainer_4n5ur_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_4n5ur_14:is(._dark_4n5ur_1 *):before,._successContainer_4n5ur_14:is(._dark_4n5ur_1 *):after{--tw-bg-opacity: 1;background-color:rgb(167 233 193 / var(--tw-bg-opacity, 1))}._successContainer_4n5ur_14:before,._successContainer_4n5ur_14:after{animation:_ripplePulse_4n5ur_1 3s cubic-bezier(.4,0,.6,1) infinite;opacity:0;z-index:1}._successContainer_4n5ur_14:after{animation-delay:.5s}@keyframes _containerPulse_4n5ur_1{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}@keyframes _ripplePulse_4n5ur_1{0%{transform:scale(1);opacity:0}10%{transform:scale(1);opacity:.7}to{transform:scale(1.3);opacity:0}}._container_4n5ur_57{width:30px;height:20px;display:flex;margin:0 1px;align-items:center;justify-content:center}._card_4n5ur_66{width:28px;height:19px;display:flex;margin:0 1px;align-items:center;justify-content:center}._warning_4n5ur_75{width:16px;height:16px;display:flex;align-items:center;justify-content:center}._svg_4n5ur_83{width:100%;height:100%}._srOnly_4n5ur_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_4n5ur_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_lsspc_1{padding:0 2px;overflow:hidden;z-index:0;position:relative;height:auto;min-height:60px;width:100%;max-width:640px}._hidden_lsspc_8{display:none!important}._formInitial_lsspc_12{opacity:0;transform:translateY(100px)}._btnsInitial_lsspc_17{opacity:0;transform:translateY(-100px)}._buttons_1i8cu_1{display:grid;gap:.5rem}._hidden_1i8cu_5{display:none!important}._applePay_f1ztr_1{display:flex;flex-direction:column;gap:8px}@media (hover: hover){._applePay_f1ztr_1:hover{filter:contrast(.575) brightness(1.2)}}._hidden_f1ztr_28{display:none!important}._googlePay_1u4c9_1{position:relative;display:flex;overflow:hidden;height:40px;border-radius:12px;background-color:#000}._googlePay_1u4c9_1 iframe{position:absolute;top:-1px;left:-1px;width:calc(100% + 2px)!important;height:calc(100% + 2px)!important;border:none;display:block}._hidden_1u4c9_20{display:none!important}._paypal_1p7d0_1{display:flex;flex-direction:column;gap:8px;height:40px;border-radius:12px;background-color:#ffc439}._hidden_1p7d0_10{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_ydw03_1{position:relative;display:grid;min-height:250px;gap:.75rem;padding-top:0}._hidden_ydw03_5{display:none!important}._topOffset_ydw03_9{margin-top:.5rem}._wrapper_1gvzd_1{position:relative}._inputContainer_1gvzd_5{background-color:transparent;border-color:#e0e0e0;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;transition:box-shadow .2s ease-in-out;box-sizing:border-box;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;border-style:solid;padding-left:.75rem;padding-right:.75rem}._inputContainer_1gvzd_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1gvzd_5:-ms-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1gvzd_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}@media (min-width: 640px){._inputContainer_1gvzd_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_1gvzd_13{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}@media (hover: hover){._inputContainer_1gvzd_5:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}}._inputContainer_1gvzd_5:focus-within:not(._errorInput_1gvzd_23):not(._disabled_1gvzd_23){box-shadow:0 0 0 2px color-mix(in srgb,var(--input-focus-shadow-color, #5A67D8) 30%,transparent)}._input_1gvzd_5{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_1gvzd_32{display:flex}._errorInput_1gvzd_23{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_1gvzd_23:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_1gvzd_23:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._label_1gvzd_40{margin-bottom:2px;display:flex;align-items:flex-end;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_1gvzd_44{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_1gvzd_23{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_1gvzd_52{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_1gvzd_59{display:none!important}._wrapper_1dxfo_1{position:relative}._inputContainer_1dxfo_5{background-color:transparent;border-color:#e0e0e0;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;transition:box-shadow .2s ease-in-out;box-sizing:border-box;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;border-style:solid;padding-left:.75rem;padding-right:.75rem}._inputContainer_1dxfo_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1dxfo_5:-ms-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1dxfo_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}@media (min-width: 640px){._inputContainer_1dxfo_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_1dxfo_13{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}@media (hover: hover){._inputContainer_1dxfo_5:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}}._inputContainer_1dxfo_5:focus-within:not(._errorInput_1dxfo_23):not(._disabled_1dxfo_23){box-shadow:0 0 0 2px color-mix(in srgb,var(--input-focus-shadow-color, #5A67D8) 30%,transparent)}._input_1dxfo_5{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_1dxfo_32{display:flex}._errorInput_1dxfo_23{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_1dxfo_23:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_1dxfo_23:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._error_1dxfo_23{margin-top:.25rem;margin-bottom:0;padding-left:.25rem;font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_1dxfo_44{margin-bottom:2px;display:flex;align-items:flex-end;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_1dxfo_48{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_1dxfo_23{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_1dxfo_56{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_1dxfo_63{display:none!important}._wrapper_27yo3_1{position:relative}._inputContainer_27yo3_5{background-color:transparent;border-color:#e0e0e0;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;transition:box-shadow .2s ease-in-out;box-sizing:border-box;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;border-style:solid;padding-left:.75rem;padding-right:.75rem}._inputContainer_27yo3_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_27yo3_5:-ms-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_27yo3_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}@media (min-width: 640px){._inputContainer_27yo3_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_27yo3_13{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}@media (hover: hover){._inputContainer_27yo3_5:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}}._inputContainer_27yo3_5:focus-within:not(._errorInput_27yo3_23):not(._disabled_27yo3_23){box-shadow:0 0 0 2px color-mix(in srgb,var(--input-focus-shadow-color, #5A67D8) 30%,transparent)}._input_27yo3_5{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_27yo3_32{display:flex;align-items:center;justify-content:center}._errorInput_27yo3_23{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_27yo3_23:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_27yo3_23:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._error_27yo3_23{margin-top:.25rem;margin-bottom:0;padding-left:.25rem;font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_27yo3_44{margin-bottom:2px;display:flex;align-items:flex-end;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_27yo3_48{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_27yo3_23{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_27yo3_56{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_27yo3_63{display:none!important}._securityContent_27yo3_67{display:grid;grid-column-gap:5px;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_1e7lb_1{border-radius:12px;margin-top:.5rem;display:flex;width:100%;flex-grow:1;flex-direction:row;align-items:center;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_1e7lb_1:is(._dark_1e7lb_1 *){background-color:#fee7ef80;--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}._container_1e7lb_1 svg{width:16px;height:16px}._title_1e7lb_11{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_1e7lb_11:is(._dark_1e7lb_1 *){--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}
package/dist/index.es.js CHANGED
@@ -4211,7 +4211,7 @@ const Ol = [
4211
4211
  open: { y: 0, opacity: 1, height: "auto" },
4212
4212
  close: { y: -15, opacity: 0, height: 0 },
4213
4213
  transition: { duration: 0.25, type: "spring", bounce: 0 }
4214
- }, Sl = "_googlePay_1gtmg_1", Fl = "_hidden_1gtmg_11", _t = {
4214
+ }, Sl = "_googlePay_1u4c9_1", Fl = "_hidden_1u4c9_20", _t = {
4215
4215
  googlePay: Sl,
4216
4216
  hidden: Fl
4217
4217
  };
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(re,ie){typeof exports=="object"&&typeof module!="undefined"?ie(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],ie):(re=typeof globalThis!="undefined"?globalThis:re||self,ie(re["PayNext SDK"]={},re.React))})(this,function(re,ie){"use strict";var Kl=Object.defineProperty,Wl=Object.defineProperties;var Yl=Object.getOwnPropertyDescriptors;var Rt=Object.getOwnPropertySymbols;var Ki=Object.prototype.hasOwnProperty,Wi=Object.prototype.propertyIsEnumerable;var Pn=(re,ie,ae)=>ie in re?Kl(re,ie,{enumerable:!0,configurable:!0,writable:!0,value:ae}):re[ie]=ae,H=(re,ie)=>{for(var ae in ie||(ie={}))Ki.call(ie,ae)&&Pn(re,ae,ie[ae]);if(Rt)for(var ae of Rt(ie))Wi.call(ie,ae)&&Pn(re,ae,ie[ae]);return re},J=(re,ie)=>Wl(re,Yl(ie));var Te=(re,ie)=>{var ae={};for(var ve in re)Ki.call(re,ve)&&ie.indexOf(ve)<0&&(ae[ve]=re[ve]);if(re!=null&&Rt)for(var ve of Rt(re))ie.indexOf(ve)<0&&Wi.call(re,ve)&&(ae[ve]=re[ve]);return ae};var C=(re,ie,ae)=>Pn(re,typeof ie!="symbol"?ie+"":ie,ae);var W=(re,ie,ae)=>new Promise((ve,gt)=>{var Y=Ce=>{try{Re(ae.next(Ce))}catch(Qe){gt(Qe)}},qe=Ce=>{try{Re(ae.throw(Ce))}catch(Qe){gt(Qe)}},Re=Ce=>Ce.done?ve(Ce.value):Promise.resolve(Ce.value).then(Y,qe);Re((ae=ae.apply(re,ie)).next())});var ae=document.createElement("style");ae.textContent=`._spinner_4n5ur_1{height:100%;width:100%}@keyframes _spin_4n5ur_1{to{transform:rotate(360deg)}}._spinner_4n5ur_1{animation:_spin_4n5ur_1 1s linear infinite;fill:#9ca3af;--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}._spinner_4n5ur_1:is(._dark_4n5ur_1 *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}._spinnerContainer_4n5ur_5{height:40px;width:40px}._success_4n5ur_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_4n5ur_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_4n5ur_14:is(._dark_4n5ur_1 *){--tw-bg-opacity: 1;background-color:rgb(209 244 224 / var(--tw-bg-opacity, 1))}._successContainer_4n5ur_14{z-index:0;animation:_containerPulse_4n5ur_1 3s ease-in-out infinite}._successContainer_4n5ur_14:before,._successContainer_4n5ur_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_4n5ur_14:is(._dark_4n5ur_1 *):before,._successContainer_4n5ur_14:is(._dark_4n5ur_1 *):after{--tw-bg-opacity: 1;background-color:rgb(167 233 193 / var(--tw-bg-opacity, 1))}._successContainer_4n5ur_14:before,._successContainer_4n5ur_14:after{animation:_ripplePulse_4n5ur_1 3s cubic-bezier(.4,0,.6,1) infinite;opacity:0;z-index:1}._successContainer_4n5ur_14:after{animation-delay:.5s}@keyframes _containerPulse_4n5ur_1{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}@keyframes _ripplePulse_4n5ur_1{0%{transform:scale(1);opacity:0}10%{transform:scale(1);opacity:.7}to{transform:scale(1.3);opacity:0}}._container_4n5ur_57{width:30px;height:20px;display:flex;margin:0 1px;align-items:center;justify-content:center}._card_4n5ur_66{width:28px;height:19px;display:flex;margin:0 1px;align-items:center;justify-content:center}._warning_4n5ur_75{width:16px;height:16px;display:flex;align-items:center;justify-content:center}._svg_4n5ur_83{width:100%;height:100%}._srOnly_4n5ur_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_4n5ur_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_lsspc_1{padding:0 2px;overflow:hidden;z-index:0;position:relative;height:auto;min-height:60px;width:100%;max-width:640px}._hidden_lsspc_8{display:none!important}._formInitial_lsspc_12{opacity:0;transform:translateY(100px)}._btnsInitial_lsspc_17{opacity:0;transform:translateY(-100px)}._buttons_1i8cu_1{display:grid;gap:.5rem}._hidden_1i8cu_5{display:none!important}._applePay_f1ztr_1{display:flex;flex-direction:column;gap:8px}@media (hover: hover){._applePay_f1ztr_1:hover{filter:contrast(.575) brightness(1.2)}}._hidden_f1ztr_28{display:none!important}._googlePay_1gtmg_1{display:flex;flex-direction:column;gap:8px;border-radius:12px;height:40px;overflow:hidden;background-color:#000}._hidden_1gtmg_11{display:none!important}._paypal_1p7d0_1{display:flex;flex-direction:column;gap:8px;height:40px;border-radius:12px;background-color:#ffc439}._hidden_1p7d0_10{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_ydw03_1{position:relative;display:grid;min-height:250px;gap:.75rem;padding-top:0}._hidden_ydw03_5{display:none!important}._topOffset_ydw03_9{margin-top:.5rem}._wrapper_1gvzd_1{position:relative}._inputContainer_1gvzd_5{background-color:transparent;border-color:#e0e0e0;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;transition:box-shadow .2s ease-in-out;box-sizing:border-box;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;border-style:solid;padding-left:.75rem;padding-right:.75rem}._inputContainer_1gvzd_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1gvzd_5:-ms-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1gvzd_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}@media (min-width: 640px){._inputContainer_1gvzd_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_1gvzd_13{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}@media (hover: hover){._inputContainer_1gvzd_5:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}}._inputContainer_1gvzd_5:focus-within:not(._errorInput_1gvzd_23):not(._disabled_1gvzd_23){box-shadow:0 0 0 2px color-mix(in srgb,var(--input-focus-shadow-color, #5A67D8) 30%,transparent)}._input_1gvzd_5{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_1gvzd_32{display:flex}._errorInput_1gvzd_23{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_1gvzd_23:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_1gvzd_23:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._label_1gvzd_40{margin-bottom:2px;display:flex;align-items:flex-end;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_1gvzd_44{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_1gvzd_23{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_1gvzd_52{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_1gvzd_59{display:none!important}._wrapper_1dxfo_1{position:relative}._inputContainer_1dxfo_5{background-color:transparent;border-color:#e0e0e0;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;transition:box-shadow .2s ease-in-out;box-sizing:border-box;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;border-style:solid;padding-left:.75rem;padding-right:.75rem}._inputContainer_1dxfo_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1dxfo_5:-ms-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1dxfo_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}@media (min-width: 640px){._inputContainer_1dxfo_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_1dxfo_13{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}@media (hover: hover){._inputContainer_1dxfo_5:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}}._inputContainer_1dxfo_5:focus-within:not(._errorInput_1dxfo_23):not(._disabled_1dxfo_23){box-shadow:0 0 0 2px color-mix(in srgb,var(--input-focus-shadow-color, #5A67D8) 30%,transparent)}._input_1dxfo_5{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_1dxfo_32{display:flex}._errorInput_1dxfo_23{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_1dxfo_23:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_1dxfo_23:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._error_1dxfo_23{margin-top:.25rem;margin-bottom:0;padding-left:.25rem;font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_1dxfo_44{margin-bottom:2px;display:flex;align-items:flex-end;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_1dxfo_48{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_1dxfo_23{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_1dxfo_56{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_1dxfo_63{display:none!important}._wrapper_27yo3_1{position:relative}._inputContainer_27yo3_5{background-color:transparent;border-color:#e0e0e0;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;transition:box-shadow .2s ease-in-out;box-sizing:border-box;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;border-style:solid;padding-left:.75rem;padding-right:.75rem}._inputContainer_27yo3_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_27yo3_5:-ms-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_27yo3_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}@media (min-width: 640px){._inputContainer_27yo3_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_27yo3_13{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}@media (hover: hover){._inputContainer_27yo3_5:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}}._inputContainer_27yo3_5:focus-within:not(._errorInput_27yo3_23):not(._disabled_27yo3_23){box-shadow:0 0 0 2px color-mix(in srgb,var(--input-focus-shadow-color, #5A67D8) 30%,transparent)}._input_27yo3_5{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_27yo3_32{display:flex;align-items:center;justify-content:center}._errorInput_27yo3_23{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_27yo3_23:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_27yo3_23:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._error_27yo3_23{margin-top:.25rem;margin-bottom:0;padding-left:.25rem;font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_27yo3_44{margin-bottom:2px;display:flex;align-items:flex-end;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_27yo3_48{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_27yo3_23{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_27yo3_56{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_27yo3_63{display:none!important}._securityContent_27yo3_67{display:grid;grid-column-gap:5px;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_1e7lb_1{border-radius:12px;margin-top:.5rem;display:flex;width:100%;flex-grow:1;flex-direction:row;align-items:center;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_1e7lb_1:is(._dark_1e7lb_1 *){background-color:#fee7ef80;--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}._container_1e7lb_1 svg{width:16px;height:16px}._title_1e7lb_11{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_1e7lb_11:is(._dark_1e7lb_1 *){--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}
1
+ (function(re,ie){typeof exports=="object"&&typeof module!="undefined"?ie(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],ie):(re=typeof globalThis!="undefined"?globalThis:re||self,ie(re["PayNext SDK"]={},re.React))})(this,function(re,ie){"use strict";var Kl=Object.defineProperty,Wl=Object.defineProperties;var Yl=Object.getOwnPropertyDescriptors;var Rt=Object.getOwnPropertySymbols;var Ki=Object.prototype.hasOwnProperty,Wi=Object.prototype.propertyIsEnumerable;var Pn=(re,ie,ae)=>ie in re?Kl(re,ie,{enumerable:!0,configurable:!0,writable:!0,value:ae}):re[ie]=ae,H=(re,ie)=>{for(var ae in ie||(ie={}))Ki.call(ie,ae)&&Pn(re,ae,ie[ae]);if(Rt)for(var ae of Rt(ie))Wi.call(ie,ae)&&Pn(re,ae,ie[ae]);return re},J=(re,ie)=>Wl(re,Yl(ie));var Te=(re,ie)=>{var ae={};for(var ve in re)Ki.call(re,ve)&&ie.indexOf(ve)<0&&(ae[ve]=re[ve]);if(re!=null&&Rt)for(var ve of Rt(re))ie.indexOf(ve)<0&&Wi.call(re,ve)&&(ae[ve]=re[ve]);return ae};var C=(re,ie,ae)=>Pn(re,typeof ie!="symbol"?ie+"":ie,ae);var W=(re,ie,ae)=>new Promise((ve,gt)=>{var Y=Ce=>{try{Re(ae.next(Ce))}catch(Qe){gt(Qe)}},qe=Ce=>{try{Re(ae.throw(Ce))}catch(Qe){gt(Qe)}},Re=Ce=>Ce.done?ve(Ce.value):Promise.resolve(Ce.value).then(Y,qe);Re((ae=ae.apply(re,ie)).next())});var ae=document.createElement("style");ae.textContent=`._spinner_4n5ur_1{height:100%;width:100%}@keyframes _spin_4n5ur_1{to{transform:rotate(360deg)}}._spinner_4n5ur_1{animation:_spin_4n5ur_1 1s linear infinite;fill:#9ca3af;--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}._spinner_4n5ur_1:is(._dark_4n5ur_1 *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}._spinnerContainer_4n5ur_5{height:40px;width:40px}._success_4n5ur_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_4n5ur_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_4n5ur_14:is(._dark_4n5ur_1 *){--tw-bg-opacity: 1;background-color:rgb(209 244 224 / var(--tw-bg-opacity, 1))}._successContainer_4n5ur_14{z-index:0;animation:_containerPulse_4n5ur_1 3s ease-in-out infinite}._successContainer_4n5ur_14:before,._successContainer_4n5ur_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_4n5ur_14:is(._dark_4n5ur_1 *):before,._successContainer_4n5ur_14:is(._dark_4n5ur_1 *):after{--tw-bg-opacity: 1;background-color:rgb(167 233 193 / var(--tw-bg-opacity, 1))}._successContainer_4n5ur_14:before,._successContainer_4n5ur_14:after{animation:_ripplePulse_4n5ur_1 3s cubic-bezier(.4,0,.6,1) infinite;opacity:0;z-index:1}._successContainer_4n5ur_14:after{animation-delay:.5s}@keyframes _containerPulse_4n5ur_1{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}@keyframes _ripplePulse_4n5ur_1{0%{transform:scale(1);opacity:0}10%{transform:scale(1);opacity:.7}to{transform:scale(1.3);opacity:0}}._container_4n5ur_57{width:30px;height:20px;display:flex;margin:0 1px;align-items:center;justify-content:center}._card_4n5ur_66{width:28px;height:19px;display:flex;margin:0 1px;align-items:center;justify-content:center}._warning_4n5ur_75{width:16px;height:16px;display:flex;align-items:center;justify-content:center}._svg_4n5ur_83{width:100%;height:100%}._srOnly_4n5ur_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_4n5ur_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_lsspc_1{padding:0 2px;overflow:hidden;z-index:0;position:relative;height:auto;min-height:60px;width:100%;max-width:640px}._hidden_lsspc_8{display:none!important}._formInitial_lsspc_12{opacity:0;transform:translateY(100px)}._btnsInitial_lsspc_17{opacity:0;transform:translateY(-100px)}._buttons_1i8cu_1{display:grid;gap:.5rem}._hidden_1i8cu_5{display:none!important}._applePay_f1ztr_1{display:flex;flex-direction:column;gap:8px}@media (hover: hover){._applePay_f1ztr_1:hover{filter:contrast(.575) brightness(1.2)}}._hidden_f1ztr_28{display:none!important}._googlePay_1u4c9_1{position:relative;display:flex;overflow:hidden;height:40px;border-radius:12px;background-color:#000}._googlePay_1u4c9_1 iframe{position:absolute;top:-1px;left:-1px;width:calc(100% + 2px)!important;height:calc(100% + 2px)!important;border:none;display:block}._hidden_1u4c9_20{display:none!important}._paypal_1p7d0_1{display:flex;flex-direction:column;gap:8px;height:40px;border-radius:12px;background-color:#ffc439}._hidden_1p7d0_10{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_ydw03_1{position:relative;display:grid;min-height:250px;gap:.75rem;padding-top:0}._hidden_ydw03_5{display:none!important}._topOffset_ydw03_9{margin-top:.5rem}._wrapper_1gvzd_1{position:relative}._inputContainer_1gvzd_5{background-color:transparent;border-color:#e0e0e0;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;transition:box-shadow .2s ease-in-out;box-sizing:border-box;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;border-style:solid;padding-left:.75rem;padding-right:.75rem}._inputContainer_1gvzd_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1gvzd_5:-ms-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1gvzd_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}@media (min-width: 640px){._inputContainer_1gvzd_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_1gvzd_13{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}@media (hover: hover){._inputContainer_1gvzd_5:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}}._inputContainer_1gvzd_5:focus-within:not(._errorInput_1gvzd_23):not(._disabled_1gvzd_23){box-shadow:0 0 0 2px color-mix(in srgb,var(--input-focus-shadow-color, #5A67D8) 30%,transparent)}._input_1gvzd_5{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_1gvzd_32{display:flex}._errorInput_1gvzd_23{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_1gvzd_23:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_1gvzd_23:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._label_1gvzd_40{margin-bottom:2px;display:flex;align-items:flex-end;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_1gvzd_44{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_1gvzd_23{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_1gvzd_52{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_1gvzd_59{display:none!important}._wrapper_1dxfo_1{position:relative}._inputContainer_1dxfo_5{background-color:transparent;border-color:#e0e0e0;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;transition:box-shadow .2s ease-in-out;box-sizing:border-box;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;border-style:solid;padding-left:.75rem;padding-right:.75rem}._inputContainer_1dxfo_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1dxfo_5:-ms-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1dxfo_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}@media (min-width: 640px){._inputContainer_1dxfo_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_1dxfo_13{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}@media (hover: hover){._inputContainer_1dxfo_5:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}}._inputContainer_1dxfo_5:focus-within:not(._errorInput_1dxfo_23):not(._disabled_1dxfo_23){box-shadow:0 0 0 2px color-mix(in srgb,var(--input-focus-shadow-color, #5A67D8) 30%,transparent)}._input_1dxfo_5{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_1dxfo_32{display:flex}._errorInput_1dxfo_23{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_1dxfo_23:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_1dxfo_23:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._error_1dxfo_23{margin-top:.25rem;margin-bottom:0;padding-left:.25rem;font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_1dxfo_44{margin-bottom:2px;display:flex;align-items:flex-end;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_1dxfo_48{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_1dxfo_23{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_1dxfo_56{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_1dxfo_63{display:none!important}._wrapper_27yo3_1{position:relative}._inputContainer_27yo3_5{background-color:transparent;border-color:#e0e0e0;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;transition:box-shadow .2s ease-in-out;box-sizing:border-box;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;border-style:solid;padding-left:.75rem;padding-right:.75rem}._inputContainer_27yo3_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_27yo3_5:-ms-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_27yo3_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}@media (min-width: 640px){._inputContainer_27yo3_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_27yo3_13{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}@media (hover: hover){._inputContainer_27yo3_5:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}}._inputContainer_27yo3_5:focus-within:not(._errorInput_27yo3_23):not(._disabled_27yo3_23){box-shadow:0 0 0 2px color-mix(in srgb,var(--input-focus-shadow-color, #5A67D8) 30%,transparent)}._input_27yo3_5{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_27yo3_32{display:flex;align-items:center;justify-content:center}._errorInput_27yo3_23{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_27yo3_23:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_27yo3_23:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._error_27yo3_23{margin-top:.25rem;margin-bottom:0;padding-left:.25rem;font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_27yo3_44{margin-bottom:2px;display:flex;align-items:flex-end;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_27yo3_48{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_27yo3_23{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_27yo3_56{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_27yo3_63{display:none!important}._securityContent_27yo3_67{display:grid;grid-column-gap:5px;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_1e7lb_1{border-radius:12px;margin-top:.5rem;display:flex;width:100%;flex-grow:1;flex-direction:row;align-items:center;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_1e7lb_1:is(._dark_1e7lb_1 *){background-color:#fee7ef80;--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}._container_1e7lb_1 svg{width:16px;height:16px}._title_1e7lb_11{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_1e7lb_11:is(._dark_1e7lb_1 *){--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}
2
2
  /*$vite$:1*/`,document.head.appendChild(ae);function ve(n,t){for(var e=0;e<t.length;e++){const r=t[e];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in n)){const i=Object.getOwnPropertyDescriptor(r,a);i&&Object.defineProperty(n,a,i.get?i:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}class gt{constructor(t){C(this,"parent");C(this,"core");typeof window!="undefined"&&(this.parent=t)}mount(t){return W(this,null,function*(){if(!this.parent)return;if(!this.core){const a=(yield Promise.resolve().then(()=>Tl)).Core;this.core=new a}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=(n=>(n.PAYPAL="PAYPAL",n.APPLE_PAY="APPLEPAY",n.GOOGLE_PAY="GPAY",n.CARD="CARD",n.VENMO="VENMO",n))(Y||{}),qe=(n=>(n.PENDING="PENDING",n.FAILED="FAILED",n.AUTHORIZED="AUTHORIZED",n.SETTLING="SETTLING",n.SETTLED="SETTLED",n.DECLINED="DECLINED",n.CANCELLED="CANCELLED",n))(qe||{}),Re=(n=>(n.INSUFFICIENT_FUNDS="insufficient_funds",n.AUTHENTICATION_REQUIRED="authentication_required",n.CARD_ISSUER_DECLINE="card_issuer_decline",n.GENERIC_DECLINE="generic_decline",n.WITHDRAWAL_LIMIT_EXCEEDED="withdrawal_limit_exceeded",n.DO_NOT_HONOR="do_not_honor",n.EXPIRED_CARD="expired_card",n.SUSPECTED_FRAUD="suspected_fraud",n.INCORRECT_CVC="incorrect_cvc",n.INVALID_CARD_NUMBER="invalid_card_number",n.ISSUER_UNAVAILABLE="issuer_unavailable",n.CARD_LOST_OR_STOLEN="card_lost_or_stolen",n.CARD_DECLINED="card_declined",n))(Re||{});const Ce=(n="sandbox")=>({develop:"https://dev-api.paynext.com",staging:"https://staging-api.paynext.com",sandbox:"https://sandbox-api.paynext.com",production:"https://api.paynext.com"})[n],Qe=[{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=n=>n.googlePay?Y.GOOGLE_PAY:n.applePay?Y.APPLE_PAY:n.paypal?Y.PAYPAL:n.braintree?Y.VENMO:Y.CARD,$i=n=>{const t=n.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}},Gi=n=>{var e;const t=n.paypal;if((e=t==null?void 0:t.billing_agreement_token)!=null&&e.paypalId)return{billing_agreement_token:t.billing_agreement_token.paypalId}},qi=n=>{var e,r;const t=n.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:(r=t.card)!=null&&r.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=n=>{var e,r,a,i,s,o;const t=n.applePay;if(t)return{cryptogram:t.cryptogram,eci:t.eci,exp_month:(r=(e=t.networkToken)==null?void 0:e.expiry)!=null&&r.month?Number(t.networkToken.expiry.month):void 0,exp_year:(i=(a=t.networkToken)==null?void 0:a.expiry)!=null&&i.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=n=>{const t=n.braintree;if(t)return{payment_method_nonce:t.nonce}},Ln=n=>{var r,a,i,s,o,c,l,d,u,h,p,f,m,v;const{applePay:t,googlePay:e}=n;if(!(!t&&!e))return{city:((r=t==null?void 0:t.billingContact)==null?void 0:r.locality)||((a=e==null?void 0:e.billingAddress)==null?void 0:a.locality)||void 0,country:((i=t==null?void 0:t.billingContact)==null?void 0:i.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}},Rn=n=>{var a,i,s,o,c,l,d,u,h,p,f,m,v,y,A,x,N,I,L;const{card:t,googlePay:e,applePay:r}=n;if(!(!t&&!(e!=null&&e.card)&&!(r!=null&&r.card)))return{bin:t==null?void 0:t.firstSixDigits,bin_data:{brand:(t==null?void 0:t.cardBrand)||((a=e==null?void 0:e.card)==null?void 0:a.brand)||((i=r==null?void 0:r.card)==null?void 0:i.brand),country:(t==null?void 0:t.country)||((s=e==null?void 0:e.card)==null?void 0:s.country)||((o=r==null?void 0:r.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=r==null?void 0:r.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=r==null?void 0:r.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=r==null?void 0:r.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=r==null?void 0:r.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)||((y=e==null?void 0:e.card)==null?void 0:y.expiry.month)):void 0,exp_year:t!=null&&t.expYear||(A=e==null?void 0:e.card)!=null&&A.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=r==null?void 0:r.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)}},kn=n=>{var r,a;const{applePay:t,card:e}=n;return(r=t==null?void 0:t.billingContact)!=null&&r.givenName?`${t.billingContact.givenName} ${t.billingContact.familyName||""}`.trim():(a=e==null?void 0:e.metadata)==null?void 0:a.name},Zi=n=>{var r,a;const t=Yi(n),e={client_session:n.clientSession,three_ds_session_id:n.threeDsSessionId,type:t};switch(t){case Y.CARD:return J(H({},e),{name:kn(n),card:$i(n)});case Y.PAYPAL:return J(H({},e),{paypal:Gi(n)});case Y.GOOGLE_PAY:return J(H({},e),{card:Rn(n),google_pay:qi(n),billing_address:Ln(n)});case Y.APPLE_PAY:return J(H({},e),{name:kn(n),card:Rn(n),apple_pay:Qi(n),phone:(a=(r=n.applePay)==null?void 0:r.shippingContact)==null?void 0:a.phoneNumber,billing_address:Ln(n)});case Y.VENMO:return J(H({},e),{venmo:Xi(n)});default:throw new Error(`Unsupported payment method: ${t}`)}},Ji=(n,t,e)=>W(this,null,function*(){const r=`${Ce(t)}/payments/create`,a=new Headers;a.append("Content-Type","application/json"),a.append("X-API-Version",e);const i=Zi(n);return yield(yield fetch(r,{method:"POST",headers:a,body:JSON.stringify(i)})).json()}),ea=(n,t,e)=>W(this,null,function*(){const r=`${Ce(t)}/payments/create/billing/agreement`,a=new Headers;return a.append("Content-Type","application/json"),a.append("X-API-Version",e),(yield(yield fetch(r,{method:"POST",headers:a,body:JSON.stringify({client_session:n})})).json()).paypal_agreement_token_response.token_id||""}),ta=(n,t,e)=>W(this,null,function*(){const r=`${Ce(t)}/payments/config?client_session_id=${n}`,a=new Headers;a.append("X-API-Version",e);const s=yield(yield fetch(r,{headers:a})).json();return s.checkout_config||(s.checkout_config=Qe),s});let na=class{constructor(t){C(this,"apple",null);C(this,"isAvailable",!1);C(this,"onReady");this.ev=t}init(d,u){return W(this,arguments,function*({transaction:t,locale:e,supportedCardTypes:r,onReady:a,onError:i,onSuccess:s,onCancel:o,onPaymentAttempt:c},l){const h=this.ev.transactions.create(t);this.apple=this.ev.ui.applePay(h,J(H({locale:e,borderRadius:12,size:{width:"100%",height:"40px"}},l==null?void 0:l.styles),{allowedCardNetworks:r,requestBillingAddress:!0,requestPayerDetails:["name","email","phone"],process:(v,y)=>W(this,[v,y],function*(f,{fail:m}){c==null||c({paymentMethod:Y.GOOGLE_PAY});try{s==null||s(f)}catch(A){console.error(A),m({message:"Cannot pay with payment credentials"})}})}));const p=yield this.apple.availability();this.isAvailable=p==="available",console.log("Apple Pay availability",p),this.isAvailable||i==null||i("Apple Pay is not supported on this device"),i&&this.apple.on("error",i),o&&this.apple.on("cancel",o),this.onReady=a})}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){C(this,"google",null);this.ev=t}init(l,d){return W(this,arguments,function*({transaction:t,locale:e,onReady:r,onError:a,onSuccess:i,onCancel:s,onPaymentAttempt:o},c){const u=this.ev.transactions.create(t);this.google=this.ev.ui.googlePay(u,J(H({locale:e,size:{width:"100%",height:40},borderRadius:12,billingAddress:{phoneNumber:!0}},c==null?void 0:c.styles),{process:(f,m)=>W(this,[f,m],function*(h,{fail:p}){o==null||o({paymentMethod:Y.GOOGLE_PAY});try{i==null||i(h)}catch(v){console.error(v),p({message:"Cannot pay with payment credentials"})}})})),s&&this.google.on("cancel",s),r&&this.google.on("ready",r),a&&this.google.on("error",a)})}render(t){return W(this,null,function*(){this.google&&(t.innerHTML="",this.google.mount(t))})}};class de{constructor(){C(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){C(this,"threeDs",null);this.ev=t}init(i){return W(this,arguments,function*({threeDsId:t,onReady:e,onSuccess:r,onError:a}){this.threeDs=this.ev.ui.threeDSecure(t),this.threeDs.on("ready",()=>e==null?void 0:e()),this.threeDs.on("success",()=>r==null?void 0:r()),this.threeDs.on("failure",()=>a==null?void 0:a()),this.threeDs.on("error",()=>a==null?void 0:a())})}render(t){return W(this,null,function*(){this.threeDs&&this.threeDs.mount(t)})}}class aa{constructor(){C(this,"isReady",!1);C(this,"ev",null);C(this,"apple",null);C(this,"google",null);C(this,"threeDs",null);C(this,"events",{ready:new de})}isShouldLoad({teamId:t,appId:e}){var r,a;return((r=this.ev)==null?void 0:r.config.appId)!==e||((a=this.ev)==null?void 0:a.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(()=>Ol);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 kt(n){return typeof n=="object"&&!Array.isArray(n)}function sa(n,t,e){var r;if(n instanceof EventTarget)return[n];if(typeof n=="string"){let a=document;const i=(r=e==null?void 0:e[n])!=null?r:a.querySelectorAll(n);return i?Array.from(i):[]}return Array.from(n)}function Sn(n,t,e,r){return typeof n=="string"&&kt(t)?sa(n,e,r):n instanceof NodeList?Array.from(n):Array.isArray(n)?n:[n]}function oa(n,t,e){return n*(t+1)}function Mn(n,t,e,r){var a;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,n+parseFloat(t)):t==="<"?e:(a=r.get(t))!=null?a:n}const Xe=(n,t,e)=>n+(t-n)*e,ca=(n,t,e)=>{const r=t-n;return((e-n)%r+r)%r+n},Dn=n=>Array.isArray(n)&&typeof n[0]!="number";function Vn(n,t){return Dn(n)?n[ca(0,n.length,t)]:n}function la(n,t){n.indexOf(t)===-1&&n.push(t)}function Fn(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function da(n,t,e){for(let r=0;r<n.length;r++){const a=n[r];a.at>t&&a.at<e&&(Fn(n,a),r--)}}function ua(n,t,e,r,a,i){da(n,a,i);for(let s=0;s<t.length;s++)n.push({value:t[s],at:Xe(a,i,r[s]),easing:Vn(e,s)})}function pa(n,t){for(let e=0;e<n.length;e++)n[e]=n[e]/(t+1)}function ha(n,t){return n.at===t.at?n.value===null?1:t.value===null?-1:0:n.at-t.at}const ge=n=>!!(n&&n.getVelocity),St=(n,t,e)=>{const r=t-n;return r===0?1:(e-n)/r};function Un(n,t){const e=n[n.length-1];for(let r=1;r<=t;r++){const a=St(0,t,r);n.push(Xe(e,1,a))}}function Bn(n){const t=[0];return Un(t,n.length-1),t}function Mt(n){return typeof n=="function"&&"applyToOptions"in n}const yt=2e4;function Dt(n){let t=0;const e=50;let r=n.next(t);for(;!r.done&&t<yt;)t+=e,r=n.next(t);return t>=yt?1/0:t}const we=n=>n*1e3,xe=n=>n/1e3;function zn(n,t=100,e){const r=e(J(H({},n),{keyframes:[0,t]})),a=Math.min(Dt(r),yt);return{type:"keyframes",ease:i=>r.next(a*i).value/t,duration:xe(a)}}let Ze=()=>{},Oe=()=>{};process.env.NODE_ENV!=="production"&&(Ze=(n,t)=>{!n&&typeof console!="undefined"&&console.warn(t)},Oe=(n,t)=>{if(!n)throw new Error(t)});const fa="easeInOut",ma=20;function va(n,i={},r,a){var s=i,{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<n.length;m++){const v=n[m];if(typeof v=="string"){u.set(v,p);continue}else if(!Array.isArray(v)){u.set(v.name,Mn(p,v.at,h,u));continue}let[y,A,x={}]=v;x.at!==void 0&&(p=Mn(p,x.at,h,u));let N=0;const I=(L,O,S,U=0,$=0)=>{const G=ga(L),D=O,{delay:F=0,times:z=Bn(G),type:j="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(U,$):F,V=G.length,b=Mt(j)?j:a==null?void 0:a[j];if(V<=2&&b){let w=100;if(V===2&&_a(G)){const ce=G[1]-G[0];w=Math.abs(ce)}const B=H({},K);g!==void 0&&(B.duration=we(g));const Z=zn(B,w,b);E=Z.ease,g=Z.duration}g!=null||(g=o);const T=p+R;z.length===1&&z[0]===0&&(z[1]=1);const _=z.length-G.length;if(_>0&&Un(z,_),G.length===1&&G.unshift(null),ee){Oe(ee<ma,"Repeat count too high, must be less than 20"),g=oa(g,ee);const w=[...G],B=[...z];E=Array.isArray(E)?[...E]:[E];const Z=[...E];for(let ce=0;ce<ee;ce++){G.push(...w);for(let k=0;k<w.length;k++)z.push(B[k]+(ce+1)),E.push(k===0?"linear":Vn(Z,k-1))}pa(z,ee)}const P=T+g;ua(S,G,E,z,T,P),N=Math.max(R+g,N),f=Math.max(P,f)};if(ge(y)){const L=jn(y,l);I(A,x,Hn("default",L))}else{const L=Sn(y,A,r,d),O=L.length;for(let S=0;S<O;S++){A=A,x=x;const U=L[S],$=jn(U,l);for(const G in A)I(A[G],ya(x,G),Hn(G,$),S,O)}}h=p,p+=N}return l.forEach((m,v)=>{for(const y in m){const A=m[y];A.sort(ha);const x=[],N=[],I=[];for(let O=0;O<A.length;O++){const{at:S,value:U,easing:$}=A[O];x.push(U),N.push(St(0,f,S)),I.push($||"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[y]=x,L.transition[y]=H(J(H({},t),{duration:f,ease:I,times:N}),e)}}),c}function jn(n,t){return!t.has(n)&&t.set(n,{}),t.get(n)}function Hn(n,t){return t[n]||(t[n]=[]),t[n]}function ga(n){return Array.isArray(n)?n:[n]}function ya(n,t){return n&&n[t]?H(H({},n),n[t]):H({},n)}const ba=n=>typeof n=="number",_a=n=>n.every(ba),Je=new WeakMap,Ea=n=>Array.isArray(n);function Kn(n){const t=[{},{}];return n==null||n.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function Wn(n,t,e,r){if(typeof t=="function"){const[a,i]=Kn(r);t=t(e!==void 0?e:n.custom,a,i)}if(typeof t=="string"&&(t=n.variants&&n.variants[t]),typeof t=="function"){const[a,i]=Kn(r);t=t(e!==void 0?e:n.custom,a,i)}return t}function Ca(n,t,e){const r=n.getProps();return Wn(r,t,r.custom,n)}const bt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function wa(n,t){let e=new Set,r=new Set,a=!1,i=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function c(d){s.has(d)&&(l.schedule(d),n()),d(o)}const l={schedule:(d,u=!1,h=!1)=>{const f=h&&a?e:r;return u&&s.add(d),f.has(d)||f.add(d),d},cancel:d=>{r.delete(d),s.delete(d)},process:d=>{if(o=d,a){i=!0;return}a=!0,[e,r]=[r,e],e.forEach(c),e.clear(),a=!1,i&&(i=!1,l.process(d))}};return l}const Ne={},Aa=40;function Ta(n,t){let e=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},i=()=>e=!0,s=bt.reduce((x,N)=>(x[N]=wa(i),x),{}),{setup:o,read:c,resolveKeyframes:l,preUpdate:d,update:u,preRender:h,render:p,postRender:f}=s,m=()=>{const x=Ne.useManualTiming?a.timestamp:performance.now();e=!1,Ne.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(x-a.timestamp,Aa),1)),a.timestamp=x,a.isProcessing=!0,o.process(a),c.process(a),l.process(a),d.process(a),u.process(a),h.process(a),p.process(a),f.process(a),a.isProcessing=!1,e&&t&&(r=!1,n(m))},v=()=>{e=!0,r=!0,a.isProcessing||n(m)};return{schedule:bt.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<bt.length;N++)s[bt[N]].cancel(x)},state:a,steps:s}}const Ue=n=>n,{schedule:Pe,cancel:Vt,state:_t}=Ta(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:Ue,!0);let Et;function Ia(){Et=void 0}const be={now:()=>(Et===void 0&&be.set(_t.isProcessing||Ne.useManualTiming?_t.timestamp:performance.now()),Et),set:n=>{Et=n,queueMicrotask(Ia)}},Yn=new Set;function $n(n,t,e){n||Yn.has(t)||(console.warn(t),Yn.add(t))}class Gn{constructor(){this.subscriptions=[]}add(t){return la(this.subscriptions,t),()=>Fn(this.subscriptions,t)}notify(t,e,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,e,r);else for(let i=0;i<a;i++){const s=this.subscriptions[i];s&&s(t,e,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function qn(n,t){return t?n*(1e3/t):0}const Qn=30,xa=n=>!isNaN(parseFloat(n));class Oa{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,a=!0)=>{var s,o;const i=be.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty();a&&((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=be.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"&&$n(!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 Gn);const r=this.events[t].add(e);return t==="change"?()=>{r(),Pe.read(()=>{this.events.change.getSize()||this.stop()})}:r}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,r){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}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=be.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Qn)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,Qn);return qn(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 et(n,t){return new Oa(n,t)}function Na(n,t,e){n.hasValue(t)?n.getValue(t).set(e):n.addValue(t,et(e))}function Pa(n){return Ea(n)?n[n.length-1]||0:n}function La(n,t){let s=Ca(n,t)||{},{transitionEnd:r={},transition:a={}}=s,i=Te(s,["transitionEnd","transition"]);i=H(H({},i),r);for(const o in i){const c=Pa(i[o]);Na(n,o,c)}}function Ra(n){return!!(ge(n)&&n.add)}function ka(n,t){const e=n.getValue("willChange");if(Ra(e))return e.add(t);if(!e&&Ne.WillChange){const r=new Ne.WillChange("auto");n.addValue("willChange",r),r.add(t)}}const Ft=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Sa="data-"+Ft("framerAppearId");function Ma(n){return n.props[Sa]}const Da=n=>n!==null;function Va(n,{repeat:t,repeatType:e="loop"},r){const a=n.filter(Da),i=t&&e!=="loop"&&t%2===1?0:a.length-1;return a[i]}const Be=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ze=new Set(Be),Fa={type:"spring",stiffness:500,damping:25,restSpeed:10},Ua=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),Ba={type:"keyframes",duration:.8},za={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ja=(n,{keyframes:t})=>t.length>2?Ba:ze.has(n)?n.startsWith("scale")?Ua(t[1]):Fa:za;function Ha(u){var h=u,{when:n,delay:t,delayChildren:e,staggerChildren:r,staggerDirection:a,repeat:i,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 Xn(n,t){var e,r;return(r=(e=n==null?void 0:n[t])!=null?e:n==null?void 0:n.default)!=null?r:n}const Zn=n=>t=>typeof t=="string"&&t.startsWith(n),Jn=Zn("--"),Ka=Zn("var(--"),Ut=n=>Ka(n)?Wa.test(n.split("/*")[0].trim()):!1,Wa=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ke=(n,t,e)=>e>t?t:e<n?n:e,je={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},tt=J(H({},je),{transform:n=>ke(0,1,n)}),Ct=J(H({},je),{default:1}),nt=n=>Math.round(n*1e5)/1e5,Bt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ya(n){return n==null}const $a=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,zt=(n,t)=>e=>!!(typeof e=="string"&&$a.test(e)&&e.startsWith(n)||t&&!Ya(e)&&Object.prototype.hasOwnProperty.call(e,t)),er=(n,t,e)=>r=>{if(typeof r!="string")return r;const[a,i,s,o]=r.match(Bt);return{[n]:parseFloat(a),[t]:parseFloat(i),[e]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},Ga=n=>ke(0,255,n),jt=J(H({},je),{transform:n=>Math.round(Ga(n))}),Se={test:zt("rgb","red"),parse:er("red","green","blue"),transform:({red:n,green:t,blue:e,alpha:r=1})=>"rgba("+jt.transform(n)+", "+jt.transform(t)+", "+jt.transform(e)+", "+nt(tt.transform(r))+")"};function qa(n){let t="",e="",r="",a="";return n.length>5?(t=n.substring(1,3),e=n.substring(3,5),r=n.substring(5,7),a=n.substring(7,9)):(t=n.substring(1,2),e=n.substring(2,3),r=n.substring(3,4),a=n.substring(4,5),t+=t,e+=e,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(e,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const Ht={test:zt("#"),parse:qa,transform:Se.transform},rt=n=>({test:t=>typeof t=="string"&&t.endsWith(n)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${n}`}),Le=rt("deg"),He=rt("%"),X=rt("px"),Qa=rt("vh"),Xa=rt("vw"),tr=J(H({},He),{parse:n=>He.parse(n)/100,transform:n=>He.transform(n*100)}),Ke={test:zt("hsl","hue"),parse:er("hue","saturation","lightness"),transform:({hue:n,saturation:t,lightness:e,alpha:r=1})=>"hsla("+Math.round(n)+", "+He.transform(nt(t))+", "+He.transform(nt(e))+", "+nt(tt.transform(r))+")"},fe={test:n=>Se.test(n)||Ht.test(n)||Ke.test(n),parse:n=>Se.test(n)?Se.parse(n):Ke.test(n)?Ke.parse(n):Ht.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Se.transform(n):Ke.transform(n)},Za=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ja(n){var t,e;return isNaN(n)&&typeof n=="string"&&(((t=n.match(Bt))==null?void 0:t.length)||0)+(((e=n.match(Za))==null?void 0:e.length)||0)>0}const nr="number",rr="color",es="var",ts="var(",ir="${}",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 it(n){const t=n.toString(),e=[],r={color:[],number:[],var:[]},a=[];let i=0;const o=t.replace(ns,c=>(fe.test(c)?(r.color.push(i),a.push(rr),e.push(fe.parse(c))):c.startsWith(ts)?(r.var.push(i),a.push(es),e.push(c)):(r.number.push(i),a.push(nr),e.push(parseFloat(c))),++i,ir)).split(ir);return{values:e,split:o,indexes:r,types:a}}function ar(n){return it(n).values}function sr(n){const{split:t,types:e}=it(n),r=t.length;return a=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],a[s]!==void 0){const o=e[s];o===nr?i+=nt(a[s]):o===rr?i+=fe.transform(a[s]):i+=a[s]}return i}}const rs=n=>typeof n=="number"?0:n;function is(n){const t=ar(n);return sr(n)(t.map(rs))}const We={test:Ja,parse:ar,createTransformer:sr,getAnimatableNone:is};function Kt(n,t,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?n+(t-n)*6*e:e<1/2?t:e<2/3?n+(t-n)*(2/3-e)*6:n}function as({hue:n,saturation:t,lightness:e,alpha:r}){n/=360,t/=100,e/=100;let a=0,i=0,s=0;if(!t)a=i=s=e;else{const o=e<.5?e*(1+t):e+t-e*t,c=2*e-o;a=Kt(c,o,n+1/3),i=Kt(c,o,n),s=Kt(c,o,n-1/3)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function wt(n,t){return e=>e>0?t:n}const Wt=(n,t,e)=>{const r=n*n,a=e*(t*t-r)+r;return a<0?0:Math.sqrt(a)},ss=[Ht,Se,Ke],os=n=>ss.find(t=>t.test(n));function or(n){const t=os(n);if(Ze(!!t,`'${n}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let e=t.parse(n);return t===Ke&&(e=as(e)),e}const cr=(n,t)=>{const e=or(n),r=or(t);if(!e||!r)return wt(n,t);const a=H({},e);return i=>(a.red=Wt(e.red,r.red,i),a.green=Wt(e.green,r.green,i),a.blue=Wt(e.blue,r.blue,i),a.alpha=Xe(e.alpha,r.alpha,i),Se.transform(a))},Yt=new Set(["none","hidden"]);function cs(n,t){return Yt.has(n)?e=>e<=0?n:t:e=>e>=1?t:n}const ls=(n,t)=>e=>t(n(e)),$t=(...n)=>n.reduce(ls);function ds(n,t){return e=>Xe(n,t,e)}function Gt(n){return typeof n=="number"?ds:typeof n=="string"?Ut(n)?wt:fe.test(n)?cr:hs:Array.isArray(n)?lr:typeof n=="object"?fe.test(n)?cr:us:wt}function lr(n,t){const e=[...n],r=e.length,a=n.map((i,s)=>Gt(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)e[s]=a[s](i);return e}}function us(n,t){const e=H(H({},n),t),r={};for(const a in e)n[a]!==void 0&&t[a]!==void 0&&(r[a]=Gt(n[a])(n[a],t[a]));return a=>{for(const i in r)e[i]=r[i](a);return e}}function ps(n,t){var a;const e=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],o=n.indexes[s][r[s]],c=(a=n.values[o])!=null?a:0;e[i]=c,r[s]++}return e}const hs=(n,t)=>{const e=We.createTransformer(t),r=it(n),a=it(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?Yt.has(n)&&!a.values.length||Yt.has(t)&&!r.values.length?cs(n,t):$t(lr(ps(r,a),a.values),e):(Ze(!0,`Complex values '${n}' 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.`),wt(n,t))};function dr(n,t,e){return typeof n=="number"&&typeof t=="number"&&typeof e=="number"?Xe(n,t,e):Gt(n)(n,t)}const fs=n=>{const t=({timestamp:e})=>n(e);return{start:(e=!0)=>Pe.update(t,e),stop:()=>Vt(t),now:()=>_t.isProcessing?_t.timestamp:be.now()}},ur=(n,t,e=10)=>{let r="";const a=Math.max(Math.round(t/e),2);for(let i=0;i<a;i++)r+=n(i/(a-1))+", ";return`linear(${r.substring(0,r.length-2)})`},ms=5;function pr(n,t,e){const r=Math.max(t-ms,0);return qn(e-n(r),t-r)}const oe={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},qt=.001;function vs({duration:n=oe.duration,bounce:t=oe.bounce,velocity:e=oe.velocity,mass:r=oe.mass}){let a,i;Ze(n<=we(oe.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=ke(oe.minDamping,oe.maxDamping,s),n=ke(oe.minDuration,oe.maxDuration,xe(n)),s<1?(a=l=>{const d=l*s,u=d*n,h=d-e,p=Qt(l,s),f=Math.exp(-u);return qt-h/p*f},i=l=>{const u=l*s*n,h=u*e+e,p=Math.pow(s,2)*Math.pow(l,2)*n,f=Math.exp(-u),m=Qt(Math.pow(l,2),s);return(-a(l)+qt>0?-1:1)*((h-p)*f)/m}):(a=l=>{const d=Math.exp(-l*n),u=(l-e)*n+1;return-qt+d*u},i=l=>{const d=Math.exp(-l*n),u=(e-l)*(n*n);return d*u});const o=5/n,c=ys(a,i,o);if(n=we(n),isNaN(c))return{stiffness:oe.stiffness,damping:oe.damping,duration:n};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:n}}}const gs=12;function ys(n,t,e){let r=e;for(let a=1;a<gs;a++)r=r-n(r)/t(r);return r}function Qt(n,t){return n*Math.sqrt(1-t*t)}const bs=["duration","bounce"],_s=["stiffness","damping","mass"];function hr(n,t){return t.some(e=>n[e]!==void 0)}function Es(n){let t=H({velocity:oe.velocity,stiffness:oe.stiffness,damping:oe.damping,mass:oe.mass,isResolvedFromDuration:!1},n);if(!hr(n,_s)&&hr(n,bs))if(n.visualDuration){const e=n.visualDuration,r=2*Math.PI/(e*1.2),a=r*r,i=2*ke(.05,1,1-(n.bounce||0))*Math.sqrt(a);t=J(H({},t),{mass:oe.mass,stiffness:a,damping:i})}else{const e=vs(n);t=J(H(H({},t),e),{mass:oe.mass}),t.isResolvedFromDuration=!0}return t}function at(n=oe.visualDuration,t=oe.bounce){const e=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:t}:n;let{restSpeed:r,restDelta:a}=e;const i=e.keyframes[0],s=e.keyframes[e.keyframes.length-1],o={done:!1,value:i},{stiffness:c,damping:l,mass:d,duration:u,velocity:h,isResolvedFromDuration:p}=Es(J(H({},e),{velocity:-xe(e.velocity||0)})),f=h||0,m=l/(2*Math.sqrt(c*d)),v=s-i,y=xe(Math.sqrt(c/d)),A=Math.abs(v)<5;r||(r=A?oe.restSpeed.granular:oe.restSpeed.default),a||(a=A?oe.restDelta.granular:oe.restDelta.default);let x;if(m<1){const I=Qt(y,m);x=L=>{const O=Math.exp(-m*y*L);return s-O*((f+m*y*v)/I*Math.sin(I*L)+v*Math.cos(I*L))}}else if(m===1)x=I=>s-Math.exp(-y*I)*(v+(f+y*v)*I);else{const I=y*Math.sqrt(m*m-1);x=L=>{const O=Math.exp(-m*y*L),S=Math.min(I*L,300);return s-O*((f+m*y*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):pr(x,I,L));const S=Math.abs(O)<=r,U=Math.abs(s-L)<=a;o.done=S&&U}return o.value=o.done?s:L,o},toString:()=>{const I=Math.min(Dt(N),yt),L=ur(O=>N.next(I*O).value,I,30);return I+"ms "+L},toTransition:()=>{}};return N}at.applyToOptions=n=>{const t=zn(n,100,at);return n.ease=t.ease,n.duration=we(t.duration),n.type="keyframes",n};function Xt({keyframes:n,velocity:t=0,power:e=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:s,min:o,max:c,restDelta:l=.5,restSpeed:d}){const u=n[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,y=s===void 0?v:s(v);y!==v&&(m=y-u);const A=S=>-m*Math.exp(-S/r),x=S=>y+A(S),N=S=>{const U=A(S),$=x(S);h.done=Math.abs(U)<=l,h.value=h.done?y:$};let I,L;const O=S=>{p(h.value)&&(I=S,L=at({keyframes:[h.value,f(h.value)],velocity:pr(x,S,h.value),damping:a,stiffness:i,restDelta:l,restSpeed:d}))};return O(0),{calculatedDuration:null,next:S=>{let U=!1;return!L&&I===void 0&&(U=!0,N(S),O(S)),I!==void 0&&S>=I?L.next(S-I):(!U&&N(S),h)}}}function Cs(n,t,e){const r=[],a=e||Ne.mix||dr,i=n.length-1;for(let s=0;s<i;s++){let o=a(n[s],n[s+1]);if(t){const c=Array.isArray(t)?t[s]||Ue:t;o=$t(c,o)}r.push(o)}return r}function ws(n,t,{clamp:e=!0,ease:r,mixer:a}={}){const i=n.length;if(Oe(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=n[0]===n[1];n[0]>n[i-1]&&(n=[...n].reverse(),t=[...t].reverse());const o=Cs(t,r,a),c=o.length,l=d=>{if(s&&d<n[0])return t[0];let u=0;if(c>1)for(;u<n.length-2&&!(d<n[u+1]);u++);const h=St(n[u],n[u+1],d);return o[u](h)};return e?d=>l(ke(n[0],n[i-1],d)):l}function As(n,t){return n.map(e=>e*t)}const fr=(n,t,e)=>(((1-3*e+3*t)*n+(3*e-6*t))*n+3*t)*n,Ts=1e-7,Is=12;function xs(n,t,e,r,a){let i,s,o=0;do s=t+(e-t)/2,i=fr(s,r,a)-n,i>0?e=s:t=s;while(Math.abs(i)>Ts&&++o<Is);return s}function st(n,t,e,r){if(n===t&&e===r)return Ue;const a=i=>xs(i,0,1,n,e);return i=>i===0||i===1?i:fr(a(i),t,r)}const Os=st(.42,0,1,1),Ns=st(0,0,.58,1),mr=st(.42,0,.58,1),vr=n=>t=>t<=.5?n(2*t)/2:(2-n(2*(1-t)))/2,gr=n=>t=>1-n(1-t),yr=st(.33,1.53,.69,.99),Zt=gr(yr),br=vr(Zt),_r=n=>(n*=2)<1?.5*Zt(n):.5*(2-Math.pow(2,-10*(n-1))),Jt=n=>1-Math.sin(Math.acos(n)),Ps=gr(Jt),Er=vr(Jt),Cr=n=>Array.isArray(n)&&typeof n[0]=="number",wr={linear:Ue,easeIn:Os,easeInOut:mr,easeOut:Ns,circIn:Jt,circInOut:Er,circOut:Ps,backIn:Zt,backInOut:br,backOut:yr,anticipate:_r},Ls=n=>typeof n=="string",Ar=n=>{if(Cr(n)){Oe(n.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,e,r,a]=n;return st(t,e,r,a)}else if(Ls(n))return Oe(wr[n]!==void 0,`Invalid easing type '${n}'`),wr[n];return n};function Rs(n,t){return n.map(()=>t||mr).splice(0,n.length-1)}function Ye({duration:n=300,keyframes:t,times:e,ease:r="easeInOut"}){const a=Dn(r)?r.map(Ar):Ar(r),i={done:!1,value:t[0]},s=As(e&&e.length===t.length?e:Bn(t),n),o=ws(s,t,{ease:Array.isArray(a)?a:Rs(t,a)});return{calculatedDuration:n,next:c=>(i.value=o(c),i.done=c>=n,i)}}const ks=n=>n!==null;function en(n,{repeat:t,repeatType:e="loop"},r,a=1){const i=n.filter(ks),o=a<0||t&&e!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Ss={decay:Xt,inertia:Xt,tween:Ye,keyframes:Ye,spring:at};function Tr(n){typeof n.type=="string"&&(n.type=Ss[n.type])}class tn{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=n=>n/100;class nn extends tn{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,a;const{motionValue:e}=this.options;e&&e.updatedAt!==be.now()&&this.tick(be.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(r=this.options).onStop)==null||a.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Tr(t);const{type:e=Ye,repeat:r=0,repeatDelay:a=0,repeatType:i,velocity:s=0}=t;let{keyframes:o}=t;const c=e||Ye;process.env.NODE_ENV!=="production"&&c!==Ye&&Oe(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`),c!==Ye&&typeof o[0]!="number"&&(this.mixKeyframes=$t(Ms,dr(o[0],o[1])),o=[0,100]);const l=c(J(H({},t),{keyframes:o}));i==="mirror"&&(this.mirroredGenerator=c(J(H({},t),{keyframes:[...o].reverse(),velocity:-s}))),l.calculatedDuration===null&&(l.calculatedDuration=Dt(l));const{calculatedDuration:d}=l;this.calculatedDuration=d,this.resolvedDuration=d+a,this.totalDuration=this.resolvedDuration*(r+1)-a,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:r,totalDuration:a,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:c}=this;if(this.startTime===null)return r.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-a/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const y=this.currentTime-l*(this.playbackSpeed>=0?1:-1),A=this.playbackSpeed>=0?y<0:y>a;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let x=this.currentTime,N=r;if(u){const S=Math.min(this.currentTime,a)/o;let U=Math.floor(S),$=S%1;!$&&S>=1&&($=1),$===1&&U--,U=Math.min(U,u+1),!!(U%2)&&(h==="reverse"?($=1-$,p&&($-=p/o)):h==="mirror"&&(N=s)),x=ke(0,1,$)*o}const I=A?{done:!1,value:d[0]}:N.next(x);i&&(I.value=i(I.value));let{done:L}=I;!A&&c!==null&&(L=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return O&&f!==Xt&&(I.value=en(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(be.now());const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=xe(this.currentTime))}play(){var a,i;if(this.isStopped)return;const{driver:t=fs,startTime:e}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(i=(a=this.options).onPlay)==null||i.call(a);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=e!=null?e:r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(be.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(n){var t;for(let e=1;e<n.length;e++)(t=n[e])!=null||(n[e]=n[e-1])}const Me=n=>n*180/Math.PI,rn=n=>{const t=Me(Math.atan2(n[1],n[0]));return an(t)},Vs={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:rn,rotateZ:rn,skewX:n=>Me(Math.atan(n[1])),skewY:n=>Me(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},an=n=>(n=n%360,n<0&&(n+=360),n),Ir=rn,xr=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),Or=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),Fs={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:xr,scaleY:Or,scale:n=>(xr(n)+Or(n))/2,rotateX:n=>an(Me(Math.atan2(n[6],n[5]))),rotateY:n=>an(Me(Math.atan2(-n[2],n[0]))),rotateZ:Ir,rotate:Ir,skewX:n=>Me(Math.atan(n[4])),skewY:n=>Me(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function sn(n){return n.includes("scale")?1:0}function on(n,t){if(!n||n==="none")return sn(t);const e=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(e)r=Fs,a=e;else{const o=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Vs,a=o}if(!a)return sn(t);const i=r[t],s=a[1].split(",").map(Bs);return typeof i=="function"?i(s):s[i]}const Us=(n,t)=>{const{transform:e="none"}=getComputedStyle(n);return on(e,t)};function Bs(n){return parseFloat(n.trim())}const Nr=n=>n===je||n===X,zs=new Set(["x","y","z"]),js=Be.filter(n=>!zs.has(n));function Hs(n){const t=[];return js.forEach(e=>{const r=n.getValue(e);r!==void 0&&(t.push([e,r.get()]),r.set(e.startsWith("scale")?1:0))}),t}const De={width:({x:n},{paddingLeft:t="0",paddingRight:e="0"})=>n.max-n.min-parseFloat(t)-parseFloat(e),height:({y:n},{paddingTop:t="0",paddingBottom:e="0"})=>n.max-n.min-parseFloat(t)-parseFloat(e),top:(n,{top:t})=>parseFloat(t),left:(n,{left:t})=>parseFloat(t),bottom:({y:n},{top:t})=>parseFloat(t)+(n.max-n.min),right:({x:n},{left:t})=>parseFloat(t)+(n.max-n.min),x:(n,{transform:t})=>on(t,"x"),y:(n,{transform:t})=>on(t,"y")};De.translateX=De.x,De.translateY=De.y;const Ve=new Set;let cn=!1,ln=!1,dn=!1;function Pr(){if(ln){const n=Array.from(Ve).filter(r=>r.needsMeasurement),t=new Set(n.map(r=>r.element)),e=new Map;t.forEach(r=>{const a=Hs(r);a.length&&(e.set(r,a),r.render())}),n.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=e.get(r);a&&a.forEach(([i,s])=>{var o;(o=r.getValue(i))==null||o.set(s)})}),n.forEach(r=>r.measureEndState()),n.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ln=!1,cn=!1,Ve.forEach(n=>n.complete(dn)),Ve.clear()}function Lr(){Ve.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(ln=!0)})}function Ks(){dn=!0,Lr(),Pr(),dn=!1}class un{constructor(t,e,r,a,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=r,this.motionValue=a,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Ve.add(this),cn||(cn=!0,Pe.read(Lr),Pe.resolveKeyframes(Pr))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:r,motionValue:a}=this;if(t[0]===null){const i=a==null?void 0:a.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&e){const o=r.readValue(e,s);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=s),a&&i===void 0&&a.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=n=>n.startsWith("--");function Ys(n,t,e){Ws(t)?n.style.setProperty(t,e):n.style[t]=e}function pn(n){let t;return()=>(t===void 0&&(t=n()),t)}const $s=pn(()=>window.ScrollTimeline!==void 0),Gs={};function qs(n,t){const e=pn(n);return()=>{var r;return(r=Gs[t])!=null?r:e()}}const Rr=qs(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(n){return!1}return!0},"linearEasing"),ot=([n,t,e,r])=>`cubic-bezier(${n}, ${t}, ${e}, ${r})`,kr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ot([0,.65,.55,1]),circOut:ot([.55,0,1,.45]),backIn:ot([.31,.01,.66,-.59]),backOut:ot([.33,1.53,.69,.99])};function Sr(n,t){if(n)return typeof n=="function"?Rr()?ur(n,t):"ease-out":Cr(n)?ot(n):Array.isArray(n)?n.map(e=>Sr(e,t)||kr.easeOut):kr[n]}function Qs(n,t,e,{delay:r=0,duration:a=300,repeat:i=0,repeatType:s="loop",ease:o="easeOut",times:c}={},l=void 0){const d={[t]:e};c&&(d.offset=c);const u=Sr(o,a);Array.isArray(u)&&(d.easing=u);const h={delay:r,duration:a,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return l&&(h.pseudoElement=l),n.animate(d,h)}function Xs(e){var r=e,{type:n}=r,t=Te(r,["type"]);var a,i;return Mt(n)&&Rr()?n.applyToOptions(t):((a=t.duration)!=null||(t.duration=300),(i=t.ease)!=null||(t.ease="easeOut"),t)}class Zs extends tn{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:e,name:r,keyframes:a,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:o,onComplete:c}=t;this.isPseudoElement=!!i,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,r,a,l,i),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=en(a,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(d):Ys(e,r,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,r;const t=((r=(e=this.animation.effect)==null?void 0:e.getComputedTiming)==null?void 0:r.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 r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&$s()?(this.animation.timeline=t,Ue):e(this)}}const Mr={anticipate:_r,backInOut:br,circInOut:Er};function Js(n){return n in Mr}function eo(n){typeof n.ease=="string"&&Js(n.ease)&&(n.ease=Mr[n.ease])}const Dr=10;class to extends Zs{constructor(t){eo(t),Tr(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){var d;const l=this.options,{motionValue:e,onUpdate:r,onComplete:a,element:i}=l,s=Te(l,["motionValue","onUpdate","onComplete","element"]);if(!e)return;if(t!==void 0){e.set(t);return}const o=new nn(J(H({},s),{autoplay:!1})),c=we((d=this.finishedTime)!=null?d:this.time);e.setWithVelocity(o.sample(c-Dr).value,o.sample(c).value,Dr),o.stop()}}const Vr=(n,t)=>t==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(We.test(n)||n==="0")&&!n.startsWith("url("));function no(n){const t=n[0];if(n.length===1)return!0;for(let e=0;e<n.length;e++)if(n[e]!==t)return!0}function ro(n,t,e,r){const a=n[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const i=n[n.length-1],s=Vr(a,t),o=Vr(i,t);return Ze(s===o,`You are trying to animate ${t} from "${a}" to "${i}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${i} via the \`style\` property.`),!s||!o?!1:no(n)||(e==="spring"||Mt(e))&&r}function Fr(n){return typeof n=="object"&&n!==null}function io(n){return Fr(n)&&"offsetHeight"in n}const ao=new Set(["opacity","clipPath","filter","transform"]),so=pn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function oo(n){var l;const{motionValue:t,name:e,repeatDelay:r,repeatType:a,damping:i,type:s}=n;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&&!r&&a!=="mirror"&&i!==0&&s!=="inertia"}const co=40;class lo extends tn{constructor(h){var p=h,{autoplay:t=!0,delay:e=0,type:r="keyframes",repeat:a=0,repeatDelay:i=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 y,A;this._animation&&(this._animation.stop(),(y=this.stopTimeline)==null||y.call(this)),(A=this.keyframeResolver)==null||A.cancel()},this.createdAt=be.now();const f=H({autoplay:t,delay:e,type:r,repeat:a,repeatDelay:i,repeatType:s,name:c,motionValue:l,element:d},u),m=(d==null?void 0:d.KeyframeResolver)||un;this.keyframeResolver=new m(o,(y,A,x)=>this.onKeyframesResolved(y,A,f,!x),c,l,d),(v=this.keyframeResolver)==null||v.scheduleResolve()}onKeyframesResolved(t,e,r,a){this.keyframeResolver=void 0;const{name:i,type:s,velocity:o,delay:c,isHandoff:l,onUpdate:d}=r;this.resolvedAt=be.now(),ro(t,i,s,o)||((Ne.instantAnimations||!c)&&(d==null||d(en(t,r,e))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const u=a?this.resolvedAt?this.resolvedAt-this.createdAt>co?this.resolvedAt:this.createdAt:this.createdAt:void 0,h=J(H({startTime:u,finalKeyframe:e},r),{keyframes:t}),p=!l&&oo(h)?new to(J(H({},h),{element:h.motionValue.owner.current})):new nn(h);p.finished.then(()=>this.notifyFinished()).catch(Ue),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 Ur=(n,t,e,r={},a,i)=>s=>{const o=Xn(r,n)||{},c=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-we(c);const d=J(H({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:n,motionValue:t,element:i?void 0:a});Ha(o)||Object.assign(d,ja(n,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&&!i&&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 nn(d):new lo(d)},Br=new Set(["width","height","top","left","right","bottom",...Be]);function uo({protectedKeys:n,needsAnimating:t},e){const r=n.hasOwnProperty(e)&&t[e]!==!0;return t[e]=!1,r}function po(n,t,{delay:e=0,transitionOverride:r,type:a}={}){var u;let d=t,{transition:i=n.getDefaultTransition(),transitionEnd:s}=d,o=Te(d,["transition","transitionEnd"]);r&&(i=r);const c=[],l=a&&n.animationState&&n.animationState.getState()[a];for(const h in o){const p=n.getValue(h,(u=n.latestValues[h])!=null?u:null),f=o[h];if(f===void 0||l&&uo(l,h))continue;const m=H({delay:e},Xn(i||{},h)),v=p.get();if(v!==void 0&&!p.isAnimating&&!Array.isArray(f)&&f===v&&!m.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const x=Ma(n);if(x){const N=window.MotionHandoffAnimation(x,h,Pe);N!==null&&(m.startTime=N,y=!0)}}ka(n,h),p.start(Ur(h,p,f,n.shouldReduceMotion&&Br.has(h)?{type:!1}:m,n,y));const A=p.animation;A&&c.push(A)}return s&&Promise.all(c).then(()=>{Pe.update(()=>{s&&La(n,s)})}),c}function ho({top:n,left:t,right:e,bottom:r}){return{x:{min:t,max:e},y:{min:n,max:r}}}function fo(n,t){if(!t)return n;const e=t({x:n.left,y:n.top}),r=t({x:n.right,y:n.bottom});return{top:e.y,left:e.x,bottom:r.y,right:r.x}}function mo(n,t){return ho(fo(n.getBoundingClientRect(),t))}const zr={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"]},hn={};for(const n in zr)hn[n]={isEnabled:t=>zr[n].some(e=>!!t[e])};const jr=()=>({min:0,max:0}),fn=()=>({x:jr(),y:jr()}),vo=typeof window!="undefined",mn={current:null},Hr={current:!1};function go(){if(Hr.current=!0,!!vo)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),t=()=>mn.current=n.matches;n.addListener(t),t()}else mn.current=!1}function yo(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function bo(n){return typeof n=="string"||Array.isArray(n)}const _o=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function Kr(n){return yo(n.animate)||_o.some(t=>bo(n[t]))}function Eo(n){return!!(Kr(n)||n.variants)}function Co(n,t,e){for(const r in t){const a=t[r],i=e[r];if(ge(a))n.addValue(r,a);else if(ge(i))n.addValue(r,et(a,{owner:n}));else if(i!==a)if(n.hasValue(r)){const s=n.getValue(r);s.liveStyle===!0?s.jump(a):s.hasAnimated||s.set(a)}else{const s=n.getStaticValue(r);n.addValue(r,et(s!==void 0?s:a,{owner:n}))}}for(const r in e)t[r]===void 0&&n.removeValue(r);return t}const Wr=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n),Yr=n=>/^0[^.\s]+$/u.test(n),wo={test:n=>n==="auto",parse:n=>n},$r=n=>t=>t.test(n),Gr=[je,X,He,Le,Xa,Qa,wo],qr=n=>Gr.find($r(n)),Ao=[...Gr,fe,We],To=n=>Ao.find($r(n)),Io=new Set(["brightness","contrast","saturate","opacity"]);function xo(n){const[t,e]=n.slice(0,-1).split("(");if(t==="drop-shadow")return n;const[r]=e.match(Bt)||[];if(!r)return n;const a=e.replace(r,"");let i=Io.has(t)?1:0;return r!==e&&(i*=100),t+"("+i+a+")"}const Oo=/\b([a-z-]*)\(.*?\)/gu,vn=J(H({},We),{getAnimatableNone:n=>{const t=n.match(Oo);return t?t.map(xo).join(" "):n}}),Qr=J(H({},je),{transform:Math.round}),gn=J(H({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:Ct,scaleX:Ct,scaleY:Ct,scaleZ:Ct,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:tt,originX:tr,originY:tr,originZ:X}),{zIndex:Qr,fillOpacity:tt,strokeOpacity:tt,numOctaves:Qr}),No=J(H({},gn),{color:fe,backgroundColor:fe,outlineColor:fe,fill:fe,stroke:fe,borderColor:fe,borderTopColor:fe,borderRightColor:fe,borderBottomColor:fe,borderLeftColor:fe,filter:vn,WebkitFilter:vn}),Xr=n=>No[n];function Zr(n,t){let e=Xr(n);return e!==vn&&(e=We),e.getAnimatableNone?e.getAnimatableNone(t):void 0}const Jr=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ei{scrapeMotionValuesFromProps(t,e,r){return{}}constructor({parent:t,props:e,presenceContext:r,reducedMotionConfig:a,blockInitialAnimation:i,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=un,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=be.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,Pe.render(this.render,!1,!0))};const{latestValues:c,renderState:l}=s;this.latestValues=c,this.baseTarget=H({},c),this.initialValues=e.initial?H({},c):{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=Kr(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,Je.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,r)=>this.bindToMotionValue(r,e)),Hr.current||go(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:mn.current,process.env.NODE_ENV!=="production"&&$n(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(),Vt(this.notifyUpdate),Vt(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 r=ze.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=e.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Pe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=e.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{a(),i(),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 hn){const e=hn[t];if(!e)continue;const{isEnabled:r,Feature:a}=e;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):fn()}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 r=0;r<Jr.length;r++){const a=Jr[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const i="on"+a,s=t[i];s&&(this.propEventSubscriptions[a]=this.on(a,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 r=this.values.get(t);e!==r&&(r&&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 r=this.values.get(t);return r===void 0&&e!==void 0&&(r=et(e===null?void 0:e,{owner:this}),this.addValue(t,r)),r}readValue(t,e){var a;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(a=this.getBaseTargetFromProps(this.props,t))!=null?a:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Wr(r)||Yr(r))?r=parseFloat(r):!To(r)&&We.test(e)&&(r=Zr(t,e)),this.setBaseTarget(t,ge(r)?r.get():r)),ge(r)?r.get():r}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var i;const{initial:e}=this.props;let r;if(typeof e=="string"||typeof e=="object"){const s=Wn(this.props,e,(i=this.presenceContext)==null?void 0:i.custom);s&&(r=s[t])}if(e&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!ge(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,e){return this.events[t]||(this.events[t]=new Gn),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(n){const t=Po.exec(n);if(!t)return[,];const[,e,r,a]=t;return[`--${e!=null?e:r}`,a]}const Ro=4;function ti(n,t,e=1){Oe(e<=Ro,`Max CSS variable fallback depth detected in property "${n}". This may indicate a circular fallback dependency.`);const[r,a]=Lo(n);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Wr(s)?parseFloat(s):s}return Ut(a)?ti(a,t,e+1):a}function ko(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||Yr(n):!0}const So=new Set(["auto","none","0"]);function Mo(n,t,e){let r=0,a;for(;r<n.length&&!a;){const i=n[r];typeof i=="string"&&!So.has(i)&&it(i).values.length&&(a=n[r]),r++}if(a&&e)for(const i of t)n[i]=Zr(e,a)}class Do extends un{constructor(t,e,r,a,i){super(t,e,r,a,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:r}=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(),Ut(l))){const d=ti(l,e.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Br.has(r)||t.length!==2)return;const[a,i]=t,s=qr(a),o=qr(i);if(s!==o)if(Nr(s)&&Nr(o))for(let c=0;c<t.length;c++){const l=t[c];typeof l=="string"&&(t[c]=parseFloat(l))}else De[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||ko(t[a]))&&r.push(a);r.length&&Mo(t,r,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=De[r](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const a=e[e.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){var o;const{element:t,name:e,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const a=t.getValue(e);a&&a.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=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 ni extends ei{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:r}){delete e[t],delete r[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 ri=(n,t)=>t&&typeof n=="number"?t.transform(n):n,Vo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Fo=Be.length;function Uo(n,t,e){let r="",a=!0;for(let i=0;i<Fo;i++){const s=Be[i],o=n[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=ri(o,gn[s]);if(!c){a=!1;const d=Vo[s]||s;r+=`${d}(${l}) `}e&&(t[s]=l)}}return r=r.trim(),e?r=e(t,a?"":r):a&&(r="none"),r}function ii(n,t,e){const{style:r,vars:a,transformOrigin:i}=n;let s=!1,o=!1;for(const c in t){const l=t[c];if(ze.has(c)){s=!0;continue}else if(Jn(c)){a[c]=l;continue}else{const d=ri(l,gn[c]);c.startsWith("origin")?(o=!0,i[c]=d):r[c]=d}}if(t.transform||(s||e?r.transform=Uo(t,n.transform,e):r.transform&&(r.transform="none")),o){const{originX:c="50%",originY:l="50%",originZ:d=0}=i;r.transformOrigin=`${c} ${l} ${d}`}}function ai(n,{style:t,vars:e},r,a){Object.assign(n.style,t,a&&a.getProjectionStyles(r));for(const i in e)n.style.setProperty(i,e[i])}const Bo={};function zo(n,{layout:t,layoutId:e}){return ze.has(n)||n.startsWith("origin")||(t||e!==void 0)&&(!!Bo[n]||n==="opacity")}function si(n,t,e){var i;const{style:r}=n,a={};for(const s in r)(ge(r[s])||t.style&&ge(t.style[s])||zo(s,n)||((i=e==null?void 0:e.getValue(s))==null?void 0:i.liveStyle)!==void 0)&&(a[s]=r[s]);return a}function jo(n){return window.getComputedStyle(n)}class Ho extends ni{constructor(){super(...arguments),this.type="html",this.renderInstance=ai}readValueFromInstance(t,e){var r;if(ze.has(e))return(r=this.projection)!=null&&r.isProjecting?sn(e):Us(t,e);{const a=jo(t),i=(Jn(e)?a.getPropertyValue(e):a[e])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:e}){return mo(t,e)}build(t,e,r){ii(t,e,r.transformTemplate)}scrapeMotionValuesFromProps(t,e,r){return si(t,e,r)}}function Ko(n,t){return n in t}class Wo extends ei{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(Ko(e,t)){const r=t[e];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return fn()}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"},$o={offset:"strokeDashoffset",array:"strokeDasharray"};function Go(n,t,e=1,r=0,a=!0){n.pathLength=1;const i=a?Yo:$o;n[i.offset]=X.transform(-r);const s=X.transform(t),o=X.transform(e);n[i.array]=`${s} ${o}`}function qo(n,u,c,l,d){var h=u,{attrX:t,attrY:e,attrScale:r,pathLength:a,pathSpacing:i=1,pathOffset:s=0}=h,o=Te(h,["attrX","attrY","attrScale","pathLength","pathSpacing","pathOffset"]);var m,v;if(ii(n,o,l),c){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:p,style:f}=n;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),r!==void 0&&(p.scale=r),a!==void 0&&Go(p,a,i,s,!1)}const oi=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=n=>typeof n=="string"&&n.toLowerCase()==="svg";function Xo(n,t,e,r){ai(n,t,void 0,r);for(const a in t.attrs)n.setAttribute(oi.has(a)?a:Ft(a),t.attrs[a])}function Zo(n,t,e){const r=si(n,t,e);for(const a in n)if(ge(n[a])||ge(t[a])){const i=Be.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[i]=n[a]}return r}class Jo extends ni{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=fn}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(ze.has(e)){const r=Xr(e);return r&&r.default||0}return e=oi.has(e)?e:Ft(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,r){return Zo(t,e,r)}build(t,e,r){qo(t,e,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,e,r,a){Xo(t,e,r,a)}mount(t){this.isSVGTag=Qo(t.tagName),super.mount(t)}}function ci(n){return Fr(n)&&"ownerSVGElement"in n}function ec(n){return ci(n)&&n.tagName==="svg"}function tc(n){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},e=ci(n)&&!ec(n)?new Jo(t):new Ho(t);e.mount(n),Je.set(n,e)}function nc(n){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},e=new Wo(t);e.mount(n),Je.set(n,e)}function rc(n,t,e){const r=ge(n)?n:et(n);return r.start(Ur("",r,t,e)),r.animation}function ic(n,t){return ge(n)||typeof n=="number"||typeof n=="string"&&!kt(t)}function li(n,t,e,r){const a=[];if(ic(n,t))a.push(rc(n,kt(t)&&t.default||t,e&&(e.default||e)));else{const i=Sn(n,t,r),s=i.length;Oe(!!s,"No valid elements provided.");for(let o=0;o<s;o++){const c=i[o],l=c instanceof Element?tc:nc;Je.has(c)||l(c);const d=Je.get(c),u=H({},e);"delay"in u&&typeof u.delay=="function"&&(u.delay=u.delay(o,s)),a.push(...po(d,J(H({},t),{transition:u}),{}))}}return a}function ac(n,t,e){const r=[];return va(n,t,e,{spring:at}).forEach(({keyframes:i,transition:s},o)=>{r.push(...li(o,i,s))}),r}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 r=0;r<this.animations.length;r++)this.animations[r][t]=e}attachTimeline(t){const e=this.animations.map(r=>r.attachTimeline(t));return()=>{e.forEach((r,a)=>{r&&r(),this.animations[a].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(n){return Array.isArray(n)&&n.some(Array.isArray)}function lc(n){function t(e,r,a){let i=[];return cc(e)?i=ac(e,r,n):i=li(e,r,a,n),new oc(i)}return t}const ue=lc(),te={spinner:"_spinner_4n5ur_1",spinnerContainer:"_spinnerContainer_4n5ur_5",success:"_success_4n5ur_9",successContainer:"_successContainer_4n5ur_14",container:"_container_4n5ur_57",card:"_card_4n5ur_66",warning:"_warning_4n5ur_75",svg:"_svg_4n5ur_83",srOnly:"_srOnly_4n5ur_88",backButton:"_backButton_4n5ur_92"};class di{constructor(){C(this,"template",`
3
3
  <svg aria-hidden="true" class="${te.spinner}" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg">
4
4
  <path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"/>
@@ -26,7 +26,7 @@
26
26
  <%s {...props} />
27
27
  React keys must be passed directly to JSX without using spread:
28
28
  let props = %s;
29
- <%s key={someKey} {...props} />`,b,w,B,w),E[w+b]=!0)}if(w=null,V!==void 0&&(e(V),w=""+V),s(R)&&(e(R.key),w=""+R.key),"key"in R){V={};for(var Z in R)Z!=="key"&&(V[Z]=R[Z])}else V=R;return w&&o(V,typeof g=="function"?g.displayName||g.name||"Unknown":g),l(g,w,_,T,a(),V,P,D)}function u(g){typeof g=="object"&&g!==null&&g.$$typeof===p&&g._store&&(g._store.validated=1)}var h=ie,p=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),x=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),$=Symbol.for("react.client.reference"),G=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=Object.prototype.hasOwnProperty,z=Array.isArray,j=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(g){return g()}};var ee,M={},q=h.react_stack_bottom_frame.bind(h,i)(),K=j(r(i)),E={};mt.Fragment=m,mt.jsx=function(g,R,V,b,T){var _=1e4>G.recentlyCreatedOwnerStacks++;return d(g,R,V,!1,b,T,_?Error("react-stack-top-frame"):q,_?j(r(g)):K)},mt.jsxs=function(g,R,V,b,T){var _=1e4>G.recentlyCreatedOwnerStacks++;return d(g,R,V,!0,b,T,_?Error("react-stack-top-frame"):q,_?j(r(g)):K)}}()),mt}var Ii;function Lc(){return Ii||(Ii=1,process.env.NODE_ENV==="production"?Tt.exports=Nc():Tt.exports=Pc()),Tt.exports}Lc();const Rc=[he.DinersClub,he.DinersClub,he.JCB,he.Mastercard,he.Visa,he.UnionPay,he.Maestro],kc=n=>({}),It=(n,t)=>{var i,s;const e=kc(),r=((s=(i=t==null?void 0:t.card)==null?void 0:i.status)==null?void 0:s.error)||t.status.error,a=o=>o&&e[o]?e[o]:r;if(n&&typeof n=="object"){const o=n,c=o&&typeof o.status_reason=="object"&&o.status_reason?o.status_reason:o,l=c&&typeof c.decline_code=="string"?c.decline_code:void 0,d=c&&typeof c.message=="string"?c.message:void 0,u=typeof o.message=="string"?o.message:void 0;return l?a(l):d&&e[d]?e[d]:u&&e[u]?e[u]:r}return n instanceof Error?a(n.message):typeof n=="string"?a(n):r};class Sc{constructor(t){C(this,"element");C(this,"events",{ready:new de});C(this,"ev");C(this,"customButtonStyles");C(this,"isInitialized",!1);C(this,"onPaymentAttempt");this.config=t;const e=this.config.state.styles.getState().ApplePayButton;this.onPaymentAttempt=this.config.state.checkout.getState().onCheckoutAttempt,this.ev=this.config.service.ev,this.customButtonStyles=e,this.element=document.createElement("div"),this.element.classList.add(bn.applePay,bn.hidden)}init(t){return W(this,null,function*(){if(!this.config)return!1;const e=this.config.state.transaction.getState(),r=this.config.state.translate.locale(),a=Ac(e);if(!a)return!1;const i=t?J(H({},t),{onError:s=>{var c;if(!this.isInitialized){console.error("Apple Pay error:",s);return}const o=this.config.state.translate.messages();It(s,o),(c=t.onError)==null||c.call(t,s)},onSuccess:s=>{var o;(o=t.onSuccess)==null||o.call(t,s)}}):void 0;return yield this.ev.initApple(J(H({},i),{transaction:a,supportedCardTypes:Tc(Rc),locale:Ic(r||"en"),onPaymentAttempt:this.onPaymentAttempt}),this.customButtonStyles),this.ev.isAppleAvailable()?(yield this.ev.renderApple(this.element),this.isInitialized=!0,this.element.classList.remove(bn.hidden),this.events.ready.emit(),!0):!1})}addEventListener(t,e){return this.events[t].addListener(e)}render(){return this.element}}const Mc=[{type:Y.PAYPAL,is_active:!0,order:1},{type:Y.APPLE_PAY,is_active:!0,order:2},{type:Y.GOOGLE_PAY,is_active:!0,order:3},{type:Y.VENMO,is_active:!0,order:4},{type:Y.CARD,is_active:!0,order:5}],Ge={open:{y:0,opacity:1},close:{y:100,opacity:0},transition:{duration:.25,type:"spring",bounce:0}},xt={open:{y:0,opacity:1},close:{y:-100,opacity:0},transition:{duration:.25,type:"spring",bounce:0}},me={open:{y:0,opacity:1},close:{y:15,opacity:0},transition:{duration:.25,type:"spring",bounce:0}},_e={open:{y:0,opacity:1,height:"auto"},close:{y:-15,opacity:0,height:0},transition:{duration:.25,type:"spring",bounce:0}},Cn={googlePay:"_googlePay_1gtmg_1",hidden:"_hidden_1gtmg_11"};class Dc{constructor(t){C(this,"element");C(this,"events",{ready:new de});C(this,"ev");C(this,"customButtonStyles");C(this,"isInitialized",!1);C(this,"onPaymentAttempt");this.config=t,this.ev=this.config.service.ev,this.customButtonStyles=this.config.state.styles.getState().GooglePayButton,this.onPaymentAttempt=this.config.state.checkout.getState().onCheckoutAttempt,this.element=document.createElement("div"),this.element.classList.add(Cn.googlePay,Cn.hidden)}init(t){return W(this,null,function*(){if(!this.config)return!1;const e=this.config.state.transaction.getState(),r=this.config.state.translate.locale(),a=wc(e);if(!a)return!1;const i=t?J(H({},t),{onError:s=>{var o;if(!this.isInitialized){console.error("Google Pay error:",s);return}It(s,this.config.state.translate.messages()),(o=t.onError)==null||o.call(t,s)},onSuccess:s=>{var o;(o=t.onSuccess)==null||o.call(t,s)}}):void 0;return yield this.ev.initGoogle(J(H({},i),{transaction:a,locale:xc(r||"en"),onPaymentAttempt:this.onPaymentAttempt}),this.customButtonStyles),yield this.ev.renderGoogle(this.element),this.element.classList.remove(Cn.hidden),this.isInitialized=!0,this.events.ready.emit(),!0})}addEventListener(t,e){return this.events[t].addListener(e)}render(){return this.element}}const wn={paypal:"_paypal_1p7d0_1",hidden:"_hidden_1p7d0_10"};class Vc{constructor(t){C(this,"element");C(this,"events",{ready:new de,onPaymentAttempt:new de});C(this,"paypal");C(this,"customButtonStyles");C(this,"isInitialized",!1);C(this,"attemptEmitted",!1);C(this,"interceptOverlay");this.config=t,this.paypal=this.config.service.paypal,this.customButtonStyles=this.config.state.styles.getState().PayPalButton,this.element=document.createElement("div"),this.element.classList.add(wn.paypal,wn.hidden)}init(t){return W(this,null,function*(){var s,o;if(!this.config)return!1;const e=this.config.state.transaction.getState(),r=this.config.state.checkout.getState(),a=()=>W(this,null,function*(){try{return yield ea(r.clientToken,r.environment,r.apiVersion)}catch(c){throw c}});if(!e||Object.keys(e).length===0)return console.error("PayPal transaction data is empty or invalid"),!1;if(!((s=e==null?void 0:e.paypal_info)!=null&&s.client_id))return!1;try{if(yield this.paypal.init({clientId:e.paypal_info.client_id,environment:e.paypal_info.environment||"sandbox",vault:!0,locale:Oc(this.config.state.translate.locale()),intent:"tokenize"}),!this.paypal.isLoaded())return!1}catch(c){return!1}const i=t?J(H({},t),{onError:c=>{var d,u;if(this.emitAttemptOnce(),!this.isInitialized){console.error("PayPal error:",c);return}!this.isUserCancellationError(c)&&c?(d=t.onError)==null||d.call(t,c):(u=t.onCancel)==null||u.call(t),this.attemptEmitted=!1},onCancel:()=>{var c;this.emitAttemptOnce(),(c=t.onCancel)==null||c.call(t),this.attemptEmitted=!1},onSuccess:c=>{var l;(l=t.onSuccess)==null||l.call(t,c),this.attemptEmitted=!1}}):void 0;try{yield this.paypal.render(this.element,J(H({},i),{createBillingAgreement:a,onClick:()=>{this.emitAttemptOnce()},onApprove:l=>W(this,[l],function*({billingToken:c}){var d;(d=i==null?void 0:i.onSuccess)==null||d.call(i,c||"")}),style:(o=this.customButtonStyles)==null?void 0:o.styles,onCancel:()=>{var c;(c=i==null?void 0:i.onCancel)==null||c.call(i)},onError:c=>{var d,u;const l=this.isUserCancellationError(c);!l&&c?(d=i==null?void 0:i.onError)==null||d.call(i,c):l&&((u=i==null?void 0:i.onCancel)==null||u.call(i))}}))}catch(c){return!1}return this.setupInterceptOverlay(),this.element.classList.remove(wn.hidden),this.isInitialized=!0,this.events.ready.emit(),!0})}addEventListener(t,e){return this.events[t].addListener(e)}emitAttemptOnce(){this.attemptEmitted||(this.attemptEmitted=!0,this.events.onPaymentAttempt.emit(Y.PAYPAL))}isUserCancellationError(t){var a;if(!t)return!1;const e=typeof t=="string"?t:(t==null?void 0:t.message)||((a=t==null?void 0:t.status_reason)==null?void 0:a.message)||"";return["window is closed","window closed","popup closed","user closed","cancelled by user","user cancelled"].some(i=>e.toLowerCase().includes(i))}setupInterceptOverlay(){if(this.interceptOverlay)return;this.element.style.position=this.element.style.position||"relative";const t=document.createElement("div");t.style.position="absolute",t.style.inset="0",t.style.background="transparent",t.style.zIndex="2",t.style.pointerEvents="auto";const e=()=>{this.emitAttemptOnce(),t.style.pointerEvents="none",setTimeout(()=>{t.style.pointerEvents="auto"},250)};t.addEventListener("pointerdown",e,{capture:!0}),t.addEventListener("keydown",r=>{(r.key==="Enter"||r.key===" ")&&e()},{capture:!0}),this.element.appendChild(t),this.interceptOverlay=t}render(){return this.element}}class Fc{constructor(){C(this,"template",`
29
+ <%s key={someKey} {...props} />`,b,w,B,w),E[w+b]=!0)}if(w=null,V!==void 0&&(e(V),w=""+V),s(R)&&(e(R.key),w=""+R.key),"key"in R){V={};for(var Z in R)Z!=="key"&&(V[Z]=R[Z])}else V=R;return w&&o(V,typeof g=="function"?g.displayName||g.name||"Unknown":g),l(g,w,_,T,a(),V,P,D)}function u(g){typeof g=="object"&&g!==null&&g.$$typeof===p&&g._store&&(g._store.validated=1)}var h=ie,p=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),x=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),$=Symbol.for("react.client.reference"),G=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=Object.prototype.hasOwnProperty,z=Array.isArray,j=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(g){return g()}};var ee,M={},q=h.react_stack_bottom_frame.bind(h,i)(),K=j(r(i)),E={};mt.Fragment=m,mt.jsx=function(g,R,V,b,T){var _=1e4>G.recentlyCreatedOwnerStacks++;return d(g,R,V,!1,b,T,_?Error("react-stack-top-frame"):q,_?j(r(g)):K)},mt.jsxs=function(g,R,V,b,T){var _=1e4>G.recentlyCreatedOwnerStacks++;return d(g,R,V,!0,b,T,_?Error("react-stack-top-frame"):q,_?j(r(g)):K)}}()),mt}var Ii;function Lc(){return Ii||(Ii=1,process.env.NODE_ENV==="production"?Tt.exports=Nc():Tt.exports=Pc()),Tt.exports}Lc();const Rc=[he.DinersClub,he.DinersClub,he.JCB,he.Mastercard,he.Visa,he.UnionPay,he.Maestro],kc=n=>({}),It=(n,t)=>{var i,s;const e=kc(),r=((s=(i=t==null?void 0:t.card)==null?void 0:i.status)==null?void 0:s.error)||t.status.error,a=o=>o&&e[o]?e[o]:r;if(n&&typeof n=="object"){const o=n,c=o&&typeof o.status_reason=="object"&&o.status_reason?o.status_reason:o,l=c&&typeof c.decline_code=="string"?c.decline_code:void 0,d=c&&typeof c.message=="string"?c.message:void 0,u=typeof o.message=="string"?o.message:void 0;return l?a(l):d&&e[d]?e[d]:u&&e[u]?e[u]:r}return n instanceof Error?a(n.message):typeof n=="string"?a(n):r};class Sc{constructor(t){C(this,"element");C(this,"events",{ready:new de});C(this,"ev");C(this,"customButtonStyles");C(this,"isInitialized",!1);C(this,"onPaymentAttempt");this.config=t;const e=this.config.state.styles.getState().ApplePayButton;this.onPaymentAttempt=this.config.state.checkout.getState().onCheckoutAttempt,this.ev=this.config.service.ev,this.customButtonStyles=e,this.element=document.createElement("div"),this.element.classList.add(bn.applePay,bn.hidden)}init(t){return W(this,null,function*(){if(!this.config)return!1;const e=this.config.state.transaction.getState(),r=this.config.state.translate.locale(),a=Ac(e);if(!a)return!1;const i=t?J(H({},t),{onError:s=>{var c;if(!this.isInitialized){console.error("Apple Pay error:",s);return}const o=this.config.state.translate.messages();It(s,o),(c=t.onError)==null||c.call(t,s)},onSuccess:s=>{var o;(o=t.onSuccess)==null||o.call(t,s)}}):void 0;return yield this.ev.initApple(J(H({},i),{transaction:a,supportedCardTypes:Tc(Rc),locale:Ic(r||"en"),onPaymentAttempt:this.onPaymentAttempt}),this.customButtonStyles),this.ev.isAppleAvailable()?(yield this.ev.renderApple(this.element),this.isInitialized=!0,this.element.classList.remove(bn.hidden),this.events.ready.emit(),!0):!1})}addEventListener(t,e){return this.events[t].addListener(e)}render(){return this.element}}const Mc=[{type:Y.PAYPAL,is_active:!0,order:1},{type:Y.APPLE_PAY,is_active:!0,order:2},{type:Y.GOOGLE_PAY,is_active:!0,order:3},{type:Y.VENMO,is_active:!0,order:4},{type:Y.CARD,is_active:!0,order:5}],Ge={open:{y:0,opacity:1},close:{y:100,opacity:0},transition:{duration:.25,type:"spring",bounce:0}},xt={open:{y:0,opacity:1},close:{y:-100,opacity:0},transition:{duration:.25,type:"spring",bounce:0}},me={open:{y:0,opacity:1},close:{y:15,opacity:0},transition:{duration:.25,type:"spring",bounce:0}},_e={open:{y:0,opacity:1,height:"auto"},close:{y:-15,opacity:0,height:0},transition:{duration:.25,type:"spring",bounce:0}},Cn={googlePay:"_googlePay_1u4c9_1",hidden:"_hidden_1u4c9_20"};class Dc{constructor(t){C(this,"element");C(this,"events",{ready:new de});C(this,"ev");C(this,"customButtonStyles");C(this,"isInitialized",!1);C(this,"onPaymentAttempt");this.config=t,this.ev=this.config.service.ev,this.customButtonStyles=this.config.state.styles.getState().GooglePayButton,this.onPaymentAttempt=this.config.state.checkout.getState().onCheckoutAttempt,this.element=document.createElement("div"),this.element.classList.add(Cn.googlePay,Cn.hidden)}init(t){return W(this,null,function*(){if(!this.config)return!1;const e=this.config.state.transaction.getState(),r=this.config.state.translate.locale(),a=wc(e);if(!a)return!1;const i=t?J(H({},t),{onError:s=>{var o;if(!this.isInitialized){console.error("Google Pay error:",s);return}It(s,this.config.state.translate.messages()),(o=t.onError)==null||o.call(t,s)},onSuccess:s=>{var o;(o=t.onSuccess)==null||o.call(t,s)}}):void 0;return yield this.ev.initGoogle(J(H({},i),{transaction:a,locale:xc(r||"en"),onPaymentAttempt:this.onPaymentAttempt}),this.customButtonStyles),yield this.ev.renderGoogle(this.element),this.element.classList.remove(Cn.hidden),this.isInitialized=!0,this.events.ready.emit(),!0})}addEventListener(t,e){return this.events[t].addListener(e)}render(){return this.element}}const wn={paypal:"_paypal_1p7d0_1",hidden:"_hidden_1p7d0_10"};class Vc{constructor(t){C(this,"element");C(this,"events",{ready:new de,onPaymentAttempt:new de});C(this,"paypal");C(this,"customButtonStyles");C(this,"isInitialized",!1);C(this,"attemptEmitted",!1);C(this,"interceptOverlay");this.config=t,this.paypal=this.config.service.paypal,this.customButtonStyles=this.config.state.styles.getState().PayPalButton,this.element=document.createElement("div"),this.element.classList.add(wn.paypal,wn.hidden)}init(t){return W(this,null,function*(){var s,o;if(!this.config)return!1;const e=this.config.state.transaction.getState(),r=this.config.state.checkout.getState(),a=()=>W(this,null,function*(){try{return yield ea(r.clientToken,r.environment,r.apiVersion)}catch(c){throw c}});if(!e||Object.keys(e).length===0)return console.error("PayPal transaction data is empty or invalid"),!1;if(!((s=e==null?void 0:e.paypal_info)!=null&&s.client_id))return!1;try{if(yield this.paypal.init({clientId:e.paypal_info.client_id,environment:e.paypal_info.environment||"sandbox",vault:!0,locale:Oc(this.config.state.translate.locale()),intent:"tokenize"}),!this.paypal.isLoaded())return!1}catch(c){return!1}const i=t?J(H({},t),{onError:c=>{var d,u;if(this.emitAttemptOnce(),!this.isInitialized){console.error("PayPal error:",c);return}!this.isUserCancellationError(c)&&c?(d=t.onError)==null||d.call(t,c):(u=t.onCancel)==null||u.call(t),this.attemptEmitted=!1},onCancel:()=>{var c;this.emitAttemptOnce(),(c=t.onCancel)==null||c.call(t),this.attemptEmitted=!1},onSuccess:c=>{var l;(l=t.onSuccess)==null||l.call(t,c),this.attemptEmitted=!1}}):void 0;try{yield this.paypal.render(this.element,J(H({},i),{createBillingAgreement:a,onClick:()=>{this.emitAttemptOnce()},onApprove:l=>W(this,[l],function*({billingToken:c}){var d;(d=i==null?void 0:i.onSuccess)==null||d.call(i,c||"")}),style:(o=this.customButtonStyles)==null?void 0:o.styles,onCancel:()=>{var c;(c=i==null?void 0:i.onCancel)==null||c.call(i)},onError:c=>{var d,u;const l=this.isUserCancellationError(c);!l&&c?(d=i==null?void 0:i.onError)==null||d.call(i,c):l&&((u=i==null?void 0:i.onCancel)==null||u.call(i))}}))}catch(c){return!1}return this.setupInterceptOverlay(),this.element.classList.remove(wn.hidden),this.isInitialized=!0,this.events.ready.emit(),!0})}addEventListener(t,e){return this.events[t].addListener(e)}emitAttemptOnce(){this.attemptEmitted||(this.attemptEmitted=!0,this.events.onPaymentAttempt.emit(Y.PAYPAL))}isUserCancellationError(t){var a;if(!t)return!1;const e=typeof t=="string"?t:(t==null?void 0:t.message)||((a=t==null?void 0:t.status_reason)==null?void 0:a.message)||"";return["window is closed","window closed","popup closed","user closed","cancelled by user","user cancelled"].some(i=>e.toLowerCase().includes(i))}setupInterceptOverlay(){if(this.interceptOverlay)return;this.element.style.position=this.element.style.position||"relative";const t=document.createElement("div");t.style.position="absolute",t.style.inset="0",t.style.background="transparent",t.style.zIndex="2",t.style.pointerEvents="auto";const e=()=>{this.emitAttemptOnce(),t.style.pointerEvents="none",setTimeout(()=>{t.style.pointerEvents="auto"},250)};t.addEventListener("pointerdown",e,{capture:!0}),t.addEventListener("keydown",r=>{(r.key==="Enter"||r.key===" ")&&e()},{capture:!0}),this.element.appendChild(t),this.interceptOverlay=t}render(){return this.element}}class Fc{constructor(){C(this,"template",`
30
30
  <svg xmlns="http://www.w3.org/2000/svg"
31
31
  width="24"
32
32
  height="24"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paynext/sdk",
3
- "version": "0.0.99",
3
+ "version": "0.0.101",
4
4
  "type": "module",
5
5
  "main": "dist/index.es.js",
6
6
  "module": "dist/index.es.js",