niubiz-pay
Version:
Library that allows you to make payments and tokenize debit and credit cards with Niubiz.
1 lines • 323 kB
JavaScript
import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as r from"react";import a,{forwardRef as o,createContext as i,useContext as s,useLayoutEffect as c,useEffect as l,createElement as u,cloneElement as d,Component as p,createRef as f,useRef as h,useCallback as m,useState as v,useMemo as y,useImperativeHandle as g}from"react";import*as b from"react-dom";import w from"react-dom";var x=function(){return x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},x.apply(this,arguments)};function k(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function D(e,t,n,r){return new(n||(n=Promise))((function(a,o){function i(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))}function _(e,t){var n,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}"function"==typeof SuppressedError&&SuppressedError;var S="customForm-module_formContainer__TTsoQ",E="customForm-module_formSection__9XoWT",C="customForm-module_formSectionApp__gwKSB",N="customForm-module_formHeader__dPkwr",M="customForm-module_formTitle__CGRox",T="customForm-module_formIconClose__NFCGD",F="customForm-module_formBody__Nl19f",O="customForm-module_formBodyApp__T5hOI",P="customForm-module_formContent__8TVvm",A="customForm-module_formCardContainer__IAQGT",L="customForm-module_formInfoCard__Ym5vR",j="customForm-module_formRow__fHS7Q",I="customForm-module_formCheckboxContainer__-gM4c",R="customForm-module_formCheckbox__YXPHd",Y="customForm-module_formCheckboxLabel__T6ErT",H="customForm-module_formFooter__-eSk8",B="customForm-module_formButtonContainer__pELEw",$="customForm-module_buttonPrimary__Z5d-t",V="customForm-module_buttonSecondary__wpuEX",W="customForm-module_inputContainer__63f5b",z="customForm-module_formControl__t-S6N",q="customForm-module_formError__n60gZ",U="customForm-module_inputLabel__45HQo",Q="customForm-module_inputErrorContainer__x1Ygx",K="customForm-module_inputError__qMoZl",G="customForm-module_buttonDisabled__8cd6v",X=Object.defineProperty,Z=Object.getOwnPropertySymbols,J=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,te=(e,t,n)=>t in e?X(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const ne=o(((e,t)=>{const n=e,{alt:r,color:o="currentColor",size:i="1em",weight:s="regular",mirrored:c=!1,children:l,weights:u}=n,d=((e,t)=>{var n={};for(var r in e)J.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Z)for(var r of Z(e))t.indexOf(r)<0&&ee.call(e,r)&&(n[r]=e[r]);return n})(n,["alt","color","size","weight","mirrored","children","weights"]);return a.createElement("svg",((e,t)=>{for(var n in t||(t={}))J.call(t,n)&&te(e,n,t[n]);if(Z)for(var n of Z(t))ee.call(t,n)&&te(e,n,t[n]);return e})({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,fill:o,viewBox:"0 0 256 256",transform:c?"scale(-1, 1)":void 0},d),!!r&&a.createElement("title",null,r),l,u.get(s))}));ne.displayName="SSRBase";const re=ne,ae=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),a.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]);var oe=Object.defineProperty,ie=Object.defineProperties,se=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,de=(e,t,n)=>t in e?oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const pe=o(((e,t)=>a.createElement(re,((e,t)=>ie(e,se(t)))(((e,t)=>{for(var n in t||(t={}))le.call(t,n)&&de(e,n,t[n]);if(ce)for(var n of ce(t))ue.call(t,n)&&de(e,n,t[n]);return e})({ref:t},e),{weights:ae}))));pe.displayName="X";const fe=i({color:"currentColor",size:"1em",weight:"regular",mirrored:!1});var he=Object.defineProperty,me=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,ge=(e,t,n)=>t in e?he(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,be=(e,t)=>{for(var n in t||(t={}))ve.call(t,n)&&ge(e,n,t[n]);if(me)for(var n of me(t))ye.call(t,n)&&ge(e,n,t[n]);return e},we=(e,t)=>{var n={};for(var r in e)ve.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&me)for(var r of me(e))t.indexOf(r)<0&&ye.call(e,r)&&(n[r]=e[r]);return n};const xe=o(((e,t)=>{const n=e,{alt:r,color:o,size:i,weight:c,mirrored:l,children:u,weights:d}=n,p=we(n,["alt","color","size","weight","mirrored","children","weights"]),f=s(fe),{color:h="currentColor",size:m,weight:v="regular",mirrored:y=!1}=f,g=we(f,["color","size","weight","mirrored"]);return a.createElement("svg",be(be({ref:t,xmlns:"http://www.w3.org/2000/svg",width:null!=i?i:m,height:null!=i?i:m,fill:null!=o?o:h,viewBox:"0 0 256 256",transform:l||y?"scale(-1, 1)":void 0},g),p),!!r&&a.createElement("title",null,r),u,d.get(null!=c?c:v))}));xe.displayName="IconBase";const ke=xe;var De=Object.defineProperty,_e=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,Me=(e,t,n)=>t in e?De(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Te=o(((e,t)=>a.createElement(ke,((e,t)=>_e(e,Se(t)))(((e,t)=>{for(var n in t||(t={}))Ce.call(t,n)&&Me(e,n,t[n]);if(Ee)for(var n of Ee(t))Ne.call(t,n)&&Me(e,n,t[n]);return e})({ref:t},e),{weights:ae}))));Te.displayName="X";var Fe={card:"card-module_card__BroLO",cardSection:"card-module_cardSection__au6Vb",cardBody:"card-module_cardBody__vzdB8",cardBodyFront:"card-module_cardBodyFront__C9Nxa",cardBodyBack:"card-module_cardBodyBack__0ejA4",cardFlipped:"card-module_cardFlipped__HvooS",cardBodyResume:"card-module_cardBodyResume__O6tHq",cardBrand:"card-module_cardBrand__FHlbB",cardNumber:"card-module_cardNumber__-oYX2",cardDate:"card-module_cardDate__fBE6w",cardOwner:"card-module_cardOwner__nPPO4",cardBrandIconContainer:"card-module_cardBrandIconContainer__OVuJI",cardMagneticTape:"card-module_cardMagneticTape__wfQMj",cardHolderContainer:"card-module_cardHolderContainer__TlWtP",cardCvv:"card-module_cardCvv__EvwmP",faVisa:"card-module_faVisa__QCY-1",faMastercard:"card-module_faMastercard__wj00U",faAmex:"card-module_faAmex__Wx22R",faDinersClub:"card-module_faDinersClub__O7FyO"},Oe=function(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"91",height:"26",fill:"none",viewBox:"0 0 91 26",children:[e("g",{clipPath:"url(#clip0_9600_7564)",children:[t("path",{fill:"#fff",d:"M86.376 0H4.488a4 4 0 0 0-4 4v17.169a4 4 0 0 0 4 4h81.888a4 4 0 0 0 4-4V4a4 4 0 0 0-4-4",children:" "}),t("path",{fill:"#DBDADE",fillRule:"evenodd",d:"M11.185 8.925a5.17 5.17 0 0 0-3.415 0L.563 11.448l-.075.021.001-.233v-.239L7.62 8.502a5.62 5.62 0 0 1 3.712 0l5.426 1.899a5.17 5.17 0 0 0 3.414 0L25.6 8.5a5.62 5.62 0 0 1 3.712 0l5.425 1.9a5.17 5.17 0 0 0 3.415 0l5.425-1.9a5.62 5.62 0 0 1 3.712 0l5.426 1.9a5.17 5.17 0 0 0 3.414 0l5.426-1.9a5.62 5.62 0 0 1 3.712 0l5.425 1.9a5.17 5.17 0 0 0 3.415 0l5.425-1.9a5.62 5.62 0 0 1 3.712 0l7.133 2.497v.472l-.074-.021-7.207-2.523a5.17 5.17 0 0 0-3.415 0l-5.426 1.899c-1.201.42-2.51.42-3.711 0l-5.426-1.899a5.17 5.17 0 0 0-3.415 0l-5.425 1.899c-1.202.42-2.51.42-3.712 0L47.14 8.925a5.17 5.17 0 0 0-3.415 0l-5.426 1.899c-1.201.42-2.51.42-3.712 0l-5.425-1.899a5.17 5.17 0 0 0-3.415 0l-5.425 1.899c-1.202.42-2.51.42-3.712 0zM11.185 3.437a5.17 5.17 0 0 0-3.415 0L.563 5.959l-.075.022.001-.234V5.51L7.62 3.013a5.62 5.62 0 0 1 3.712 0l5.426 1.899a5.17 5.17 0 0 0 3.414 0l5.426-1.9a5.62 5.62 0 0 1 3.712 0l5.425 1.9a5.17 5.17 0 0 0 3.415 0l5.425-1.9a5.62 5.62 0 0 1 3.712 0l5.426 1.9a5.17 5.17 0 0 0 3.414 0l5.426-1.9a5.62 5.62 0 0 1 3.712 0l5.425 1.9a5.17 5.17 0 0 0 3.415 0l5.425-1.9a5.62 5.62 0 0 1 3.712 0l7.133 2.497v.472l-.074-.022-7.207-2.522a5.17 5.17 0 0 0-3.415 0l-5.426 1.899c-1.201.42-2.51.42-3.711 0l-5.426-1.9a5.17 5.17 0 0 0-3.415 0l-5.425 1.9c-1.202.42-2.51.42-3.712 0l-5.425-1.9a5.17 5.17 0 0 0-3.415 0l-5.426 1.9c-1.201.42-2.51.42-3.712 0l-5.425-1.9a5.17 5.17 0 0 0-3.415 0l-5.425 1.9c-1.202.42-2.51.42-3.712 0zM11.185 19.712a5.17 5.17 0 0 0-3.415 0L.563 22.235l-.075.021.001-.233v-.238l7.132-2.497a5.62 5.62 0 0 1 3.712 0l5.426 1.899a5.17 5.17 0 0 0 3.414 0l5.426-1.899a5.62 5.62 0 0 1 3.712 0l5.425 1.899a5.17 5.17 0 0 0 3.415 0l5.425-1.899a5.62 5.62 0 0 1 3.712 0l5.426 1.899a5.17 5.17 0 0 0 3.414 0l5.426-1.899a5.62 5.62 0 0 1 3.712 0l5.425 1.899a5.17 5.17 0 0 0 3.415 0l5.425-1.899a5.62 5.62 0 0 1 3.712 0l7.133 2.497v.471l-.074-.021-7.207-2.523a5.17 5.17 0 0 0-3.415 0l-5.426 1.9c-1.201.42-2.51.42-3.711 0l-5.426-1.9a5.17 5.17 0 0 0-3.415 0l-5.425 1.9c-1.202.42-2.51.42-3.712 0l-5.425-1.9a5.17 5.17 0 0 0-3.415 0l-5.426 1.9c-1.201.42-2.51.42-3.712 0l-5.425-1.9a5.17 5.17 0 0 0-3.415 0l-5.425 1.9c-1.202.42-2.51.42-3.712 0zM11.185 14.224a5.17 5.17 0 0 0-3.415 0L.563 16.747l-.075.021.001-.234v-.238L7.62 13.8a5.62 5.62 0 0 1 3.712 0l5.426 1.899a5.17 5.17 0 0 0 3.414 0l5.426-1.9a5.62 5.62 0 0 1 3.712 0l5.425 1.9a5.17 5.17 0 0 0 3.415 0l5.425-1.9a5.62 5.62 0 0 1 3.712 0l5.426 1.9a5.17 5.17 0 0 0 3.414 0l5.426-1.9a5.62 5.62 0 0 1 3.712 0l5.425 1.9a5.17 5.17 0 0 0 3.415 0l5.425-1.9a5.62 5.62 0 0 1 3.712 0l7.133 2.497v.472l-.074-.021-7.207-2.523a5.17 5.17 0 0 0-3.415 0l-5.426 1.899c-1.201.42-2.51.42-3.711 0l-5.426-1.9a5.17 5.17 0 0 0-3.415 0l-5.425 1.9c-1.202.42-2.51.42-3.712 0l-5.425-1.9a5.17 5.17 0 0 0-3.415 0l-5.426 1.9c-1.201.42-2.51.42-3.712 0l-5.425-1.9a5.17 5.17 0 0 0-3.415 0l-5.425 1.9c-1.202.42-2.51.42-3.712 0z",clipRule:"evenodd",children:" "})]}),t("defs",{children:t("clipPath",{id:"clip0_9600_7564",children:t("path",{fill:"#fff",d:"M0 0h91v26H0z",children:" "})})})]})},Pe=function(e){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"24",fill:"none",viewBox:"0 0 36 24",children:t("rect",{width:"36",height:"24",fill:"#fff",rx:"2.4"})})},Ae={Visa:{name:"Visa",icon:function(n){return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"24",fill:"none",viewBox:"0 0 36 24",children:[t("rect",{width:"36",height:"24",fill:"#fff",rx:"2.4"}),t("path",{fill:"#3362AB",d:"M24.373 7.87a5.5 5.5 0 0 0-2.016-.37c-2.22 0-3.783 1.184-3.793 2.876-.018 1.249 1.12 1.942 1.97 2.359.87.425 1.166.703 1.166 1.082-.01.583-.703.851-1.35.851-.898 0-1.379-.138-2.11-.462l-.295-.14-.315 1.952c.527.24 1.499.454 2.507.463 2.359 0 3.894-1.166 3.912-2.97.01-.989-.591-1.747-1.886-2.367-.787-.398-1.268-.666-1.268-1.073.01-.37.407-.749 1.295-.749a3.8 3.8 0 0 1 1.674.333l.203.092zM16.224 16.351h-2.248l1.406-8.693h2.248z"}),t("path",{fill:"#3362AB",fillRule:"evenodd",d:"M30.136 7.658h-1.74c-.535 0-.943.157-1.174.72l-3.339 7.973h2.359l.471-1.304H29.6c.064.305.268 1.304.268 1.304h2.081zM27.36 13.27l.897-2.432.069-.193v-.002c.065-.179.161-.444.227-.637l.157.749s.426 2.08.518 2.515z",clipRule:"evenodd"}),t("path",{fill:"#3362AB",d:"m12.099 7.658-2.202 5.928-.24-1.202v-.001L8.87 8.388c-.129-.555-.527-.712-1.017-.73H4.236l-.037.175c.882.226 1.671.55 2.363.955l2.003 7.554h2.377l3.534-8.684z"})]})},class:"faVisa"},Mastercard:{name:"Mastercard",icon:function(n){return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"24",fill:"none",viewBox:"0 0 36 24",children:[t("rect",{width:"35.7",height:"23.7",x:"0.15",y:"0.15",fill:"#fff",rx:"2.25"}),t("rect",{width:"35.7",height:"23.7",x:"0.15",y:"0.15",stroke:"#CCC",strokeWidth:"0.3",rx:"2.25"}),t("path",{fill:"#F79E1B",d:"M30.001 11.916c0 4.1-3.317 7.417-7.416 7.417a7.37 7.37 0 0 1-4.574-1.587 7.37 7.37 0 0 0 2.823-5.83c0-2.369-1.113-4.47-2.823-5.83A7.37 7.37 0 0 1 22.585 4.5c4.1 0 7.416 3.337 7.416 7.416"}),t("path",{fill:"#FF5F00",d:"M18.011 6.086a7.44 7.44 0 0 1 2.823 5.83c0 2.37-1.092 4.47-2.823 5.83h-.02a7.436 7.436 0 0 1 0-11.66z"}),t("path",{fill:"#EB001B",d:"M15.168 11.916c0-2.369 1.113-4.47 2.823-5.83A7.37 7.37 0 0 0 13.417 4.5a7.41 7.41 0 0 0-7.416 7.416c0 4.1 3.317 7.417 7.416 7.417a7.37 7.37 0 0 0 4.574-1.587 7.4 7.4 0 0 1-2.823-5.83"})]})},class:"faMastercard"},AmericanExpress:{name:"American Express",icon:function(n){return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"24",fill:"none",viewBox:"0 0 36 24",children:[t("rect",{width:"36",height:"24",fill:"#fff",rx:"2.4"}),t("path",{fill:"#1F72CD",fillRule:"evenodd",d:"M6.88 8.4 3.6 15.662h3.928l.487-1.158h1.113l.487 1.158h4.323v-.884l.386.884h2.236l.386-.903v.903h8.992l1.093-1.128 1.024 1.128 4.618.009-3.291-3.62 3.291-3.65h-4.546l-1.065 1.106-.991-1.107h-9.783l-.84 1.875-.86-1.875h-3.92v.854l-.435-.854zM20.31 9.431h5.163l1.58 1.707 1.63-1.707h1.58l-2.4 2.62 2.4 2.588H28.61l-1.579-1.726-1.638 1.726h-5.084zm1.275 2.03v-.952h3.222l1.406 1.521-1.468 1.53h-3.16v-1.038H24.4v-1.06zM7.64 9.432h1.915l2.176 4.924V9.431h2.098l1.68 3.53 1.55-3.53h2.087v5.21h-1.27l-.01-4.082-1.852 4.083H14.88l-1.861-4.083v4.083h-2.613l-.495-1.168H7.234L6.74 14.64h-1.4zm.05 2.963.881-2.08.88 2.08z",clipRule:"evenodd"})]})},class:"faAmex"},DinersClub:{name:"Diners Club",icon:function(n){return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"24",fill:"none",viewBox:"0 0 36 24",children:[t("rect",{width:"36",height:"24",fill:"#fff",rx:"2.4"}),t("path",{fill:"#0079BE",d:"M19.523 19.79c4.222.021 8.076-3.474 8.076-7.726 0-4.65-3.854-7.865-8.076-7.863h-3.634c-4.273-.002-7.79 3.214-7.79 7.863 0 4.253 3.517 7.747 7.79 7.727z"}),t("path",{fill:"#fff",d:"M15.906 4.846c-3.904 0-7.068 3.194-7.07 7.136.002 3.941 3.166 7.134 7.07 7.136 3.905-.002 7.07-3.195 7.07-7.136s-3.164-7.135-7.07-7.136m-4.48 7.136a4.53 4.53 0 0 1 2.876-4.221v8.442a4.53 4.53 0 0 1-2.877-4.221m6.084 4.222V7.76a4.53 4.53 0 0 1 2.879 4.222 4.53 4.53 0 0 1-2.879 4.222"})]})},class:"faDinersClub"},Discover:{name:"Discover",icon:Pe,class:"faDiscover"},JCB:{name:"JCB",icon:Pe,class:"faJCB"},NotFound:{name:"Not Found",icon:Pe,class:"faNotFound"}},Le=function(e){var t=e.charAt(0),n=e.substring(0,2),r=e.substring(0,4);return"4"===t?Ae.Visa.name:n>="51"&&n<="55"?Ae.Mastercard.name:"34"===n||"37"===n?Ae.AmericanExpress.name:"6011"===r||r>="644"&&r<="649"||"65"===r?Ae.Discover.name:"3"===t&&n>="30"&&n<="35"||"36"===n||"38"===n?Ae.DinersClub.name:r>="2131"&&r<="2132"||"1800"===r||r>="3528"&&r<="3589"?Ae.JCB.name:Ae.NotFound.name},je=function(n){var r,a=n.isFlipped,o=void 0!==a&&a,i=n.number,s=void 0===i?"**** **** **** ****":i;n.dateYear,n.dateMonth,n.cvv;var c=n.owner,l=void 0===c?"Nombre del titular":c,u=n.brand;n.brandIcon,s=s||"**** **** **** ****";var d=null!==(r=Object.values(Ae).find((function(e){return e.name===u})))&&void 0!==r?r:Ae.NotFound,p=d.icon;return t("div",{className:"".concat(Fe.card),children:e("div",{className:"".concat(Fe.cardSection," ").concat(o?Fe.cardFlipped:""),children:[t("div",{className:"".concat(Fe.cardBody," ").concat(Fe.cardBodyFront," ").concat(Fe[d.class]),children:e("div",{className:Fe.cardBodyResume,children:[d.name&&d.name!==Ae.NotFound.name&&t("div",{className:Fe.cardBrand,children:d.name}),t("div",{className:Fe.cardNumber,children:s}),t("div",{className:Fe.cardOwner,children:l&&""!==l.trim()?l:"Nombre del titular"}),d.name!==Ae.NotFound.name&&t("div",{className:Fe.cardBrandIconContainer,children:t(p,{})})]})}),e("div",{className:"".concat(Fe.cardBody," ").concat(Fe.cardBodyBack," ").concat(Fe[d.class]),children:[t("div",{className:"".concat(Fe.cardMagneticTape," ").concat(Fe.colorMagnetic)}),t("div",{className:Fe.cardHolderContainer,children:t(Oe,{})}),t("div",{className:Fe.cardBodyResume,children:t("div",{className:Fe.cardCvv,children:"****"})})]})]})})},Ie="inputGroup-module_inputContainer__wW9Gi",Re="inputGroup-module_inputContent__-eqvR",Ye="inputGroup-module_inputLabel__pBZ2O",He="inputGroup-module_inputFieldContainer__JFoHJ",Be="inputGroup-module_inputFieldDateContainer__s-2Tp",$e="inputGroup-module_inputFieldIcon__SnI5b",Ve="inputGroup-module_inputFieldIconImg__D6Pem",We="inputGroup-module_inputField__G0gKn",ze="inputGroup-module_inputFieldWithIcon__wQcBh",qe="inputGroup-module_inputErrorContainer__I2H-D",Ue="inputGroup-module_inputError__kU1kL",Qe="inputGroup-module_inputSpanMessage__cGXki",Ke="inputGroup-module_inputFieldError__PapWk";const Ge=6048e5,Xe=Symbol.for("constructDateFrom");function Ze(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&Xe in e?e[Xe](t):e instanceof Date?new e.constructor(t):new Date(t)}function Je(e,t){return Ze(t||e,e)}let et={};function tt(){return et}function nt(e,t){const n=tt(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=Je(e,t?.in),o=a.getDay(),i=(o<r?7:0)+o-r;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function rt(e,t){return nt(e,{...t,weekStartsOn:1})}function at(e,t){const n=Je(e,t?.in),r=n.getFullYear(),a=Ze(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const o=rt(a),i=Ze(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const s=rt(i);return n.getTime()>=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function ot(e){const t=Je(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function it(e,t){const n=Je(e,t?.in);return n.setHours(0,0,0,0),n}function st(e,t,n){const[r,a]=function(e,...t){const n=Ze.bind(null,t.find((e=>"object"==typeof e)));return t.map(n)}(0,e,t),o=it(r),i=it(a),s=+o-ot(o),c=+i-ot(i);return Math.round((s-c)/864e5)}function ct(e){return!(!((t=e)instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))&&"number"!=typeof e||isNaN(+Je(e)));var t}const lt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function ut(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const dt={date:ut({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ut({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:ut({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},pt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function ft(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,a=n?.width?String(n.width):t;r=e.formattingValues[a]||e.formattingValues[t]}else{const t=e.defaultWidth,a=n?.width?String(n.width):e.defaultWidth;r=e.values[a]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const ht={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ft({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ft({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:ft({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ft({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ft({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function mt(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;const i=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(i))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(i)));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;return{value:l,rest:t.slice(i.length)}}}const vt={ordinalNumber:(yt={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(yt.matchPattern);if(!n)return null;const r=n[0],a=e.match(yt.parsePattern);if(!a)return null;let o=yt.valueCallback?yt.valueCallback(a[0]):a[0];return o=t.valueCallback?t.valueCallback(o):o,{value:o,rest:e.slice(r.length)}}),era:mt({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:mt({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:mt({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:mt({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:mt({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var yt;const gt={code:"en-US",formatDistance:(e,t,n)=>{let r;const a=lt[e];return r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:dt,formatRelative:(e,t,n,r)=>pt[e],localize:ht,match:vt,options:{weekStartsOn:0,firstWeekContainsDate:1}};function bt(e,t){const n=Je(e,t?.in),r=st(n,function(e,t){const n=Je(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}(n));return r+1}function wt(e,t){const n=Je(e,t?.in),r=+rt(n)-+function(e,t){const n=at(e,t),r=Ze(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),rt(r)}(n);return Math.round(r/Ge)+1}function xt(e,t){const n=Je(e,t?.in),r=n.getFullYear(),a=tt(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,i=Ze(t?.in||e,0);i.setFullYear(r+1,0,o),i.setHours(0,0,0,0);const s=nt(i,t),c=Ze(t?.in||e,0);c.setFullYear(r,0,o),c.setHours(0,0,0,0);const l=nt(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function kt(e,t){const n=Je(e,t?.in),r=+nt(n,t)-+function(e,t){const n=tt(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=xt(e,t),o=Ze(t?.in||e,0);return o.setFullYear(a,0,r),o.setHours(0,0,0,0),nt(o,t)}(n,t);return Math.round(r/Ge)+1}function Dt(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const _t={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Dt("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):Dt(n+1,2)},d:(e,t)=>Dt(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>Dt(e.getHours()%12||12,t.length),H:(e,t)=>Dt(e.getHours(),t.length),m:(e,t)=>Dt(e.getMinutes(),t.length),s:(e,t)=>Dt(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return Dt(Math.trunc(r*Math.pow(10,n-3)),t.length)}},St="midnight",Et="noon",Ct="morning",Nt="afternoon",Mt="evening",Tt="night",Ft={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return _t.y(e,t)},Y:function(e,t,n,r){const a=xt(e,r),o=a>0?a:1-a;if("YY"===t){return Dt(o%100,2)}return"Yo"===t?n.ordinalNumber(o,{unit:"year"}):Dt(o,t.length)},R:function(e,t){return Dt(at(e),t.length)},u:function(e,t){return Dt(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Dt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Dt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return _t.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Dt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=kt(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):Dt(a,t.length)},I:function(e,t,n){const r=wt(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Dt(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):_t.d(e,t)},D:function(e,t,n){const r=bt(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Dt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Dt(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Dt(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return Dt(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(a=12===r?Et:0===r?St:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(a=r>=17?Mt:r>=12?Nt:r>=4?Ct:Tt,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return _t.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):_t.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Dt(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Dt(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):_t.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):_t.s(e,t)},S:function(e,t){return _t.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Pt(r);case"XXXX":case"XX":return At(r);default:return At(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Pt(r);case"xxxx":case"xx":return At(r);default:return At(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ot(r,":");default:return"GMT"+At(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ot(r,":");default:return"GMT"+At(r,":")}},t:function(e,t,n){return Dt(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return Dt(+e,t.length)}};function Ot(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),o=r%60;return 0===o?n+String(a):n+String(a)+t+Dt(o,2)}function Pt(e,t){if(e%60==0){return(e>0?"-":"+")+Dt(Math.abs(e)/60,2)}return At(e,t)}function At(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+Dt(Math.trunc(r/60),2)+t+Dt(r%60,2)}const Lt=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},jt=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},It={p:jt,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return Lt(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",Lt(r,t)).replace("{{time}}",jt(a,t))}},Rt=/^D+$/,Yt=/^Y+$/,Ht=["D","DD","YY","YYYY"];const Bt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$t=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Vt=/^'([^]*?)'?$/,Wt=/''/g,zt=/[a-zA-Z]/;function qt(e,t,n){const r=tt(),a=r.locale??gt,o=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Je(e,n?.in);if(!ct(s))throw new RangeError("Invalid time value");let c=t.match($t).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,It[t])(e,a.formatLong)}return e})).join("").match(Bt).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Ut(e)};if(Ft[t])return{isToken:!0,value:e};if(t.match(zt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));a.localize.preprocessor&&(c=a.localize.preprocessor(s,c));const l={firstWeekContainsDate:o,weekStartsOn:i,locale:a};return c.map((n=>{if(!n.isToken)return n.value;const r=n.value;(function(e){return Yt.test(e)}(r)||function(e){return Rt.test(e)}(r))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),Ht.includes(e))throw new RangeError(r)}(r,t,String(e));return(0,Ft[r[0]])(s,r,a.localize,l)})).join("")}function Ut(e){const t=e.match(Vt);return t?t[1].replace(Wt,"'"):e}function Qt(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=Qt(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Kt(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=Qt(e))&&(r&&(r+=" "),r+=t);return r}function Gt(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function Xt(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Zt(e,t){const n=Gt(e);return isNaN(t)?Xt(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function Jt(e,t){const n=Gt(e);if(isNaN(t))return Xt(e,NaN);if(!t)return n;const r=n.getDate(),a=Xt(e,n.getTime());a.setMonth(n.getMonth()+t+1,0);return r>=a.getDate()?a:(n.setFullYear(a.getFullYear(),a.getMonth(),r),n)}function en(e,t){return Xt(e,+Gt(e)+t)}const tn=6048e5,nn=6e4,rn=36e5;function an(e,t){return en(e,t*rn)}let on={};function sn(){return on}function cn(e,t){const n=sn(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=Gt(e),o=a.getDay(),i=(o<r?7:0)+o-r;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function ln(e){return cn(e,{weekStartsOn:1})}function un(e){const t=Gt(e),n=t.getFullYear(),r=Xt(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=ln(r),o=Xt(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const i=ln(o);return t.getTime()>=a.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function dn(e){const t=Gt(e);return t.setHours(0,0,0,0),t}function pn(e){const t=Gt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function fn(e,t){const n=dn(e),r=dn(t),a=+n-pn(n),o=+r-pn(r);return Math.round((a-o)/864e5)}function hn(e,t){return en(e,t*nn)}function mn(e,t){return Jt(e,3*t)}function vn(e,t){return en(e,1e3*t)}function yn(e,t){return Zt(e,7*t)}function gn(e,t){return Jt(e,12*t)}function bn(e){let t;return e.forEach((function(e){const n=Gt(e);(void 0===t||t<n||isNaN(Number(n)))&&(t=n)})),t||new Date(NaN)}function wn(e){let t;return e.forEach((e=>{const n=Gt(e);(!t||t>n||isNaN(+n))&&(t=n)})),t||new Date(NaN)}function xn(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function kn(e){if(!xn(e)&&"number"!=typeof e)return!1;const t=Gt(e);return!isNaN(Number(t))}function Dn(e,t){const n=Gt(e),r=Gt(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}function _n(e){const t=Gt(e);return Math.trunc(t.getMonth()/3)+1}function Sn(e,t){const n=Gt(e),r=Gt(t);return 4*(n.getFullYear()-r.getFullYear())+(_n(n)-_n(r))}function En(e,t){const n=Gt(e),r=Gt(t);return n.getFullYear()-r.getFullYear()}function Cn(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function Nn(e){const t=Gt(e);return t.setHours(23,59,59,999),t}function Mn(e){const t=Gt(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Tn(e){const t=Gt(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function Fn(e){const t=Gt(e);return t.setDate(1),t.setHours(0,0,0,0),t}function On(e){const t=Gt(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function Pn(e){const t=Gt(e),n=Xt(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const An={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Ln(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const jn={date:Ln({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Ln({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Ln({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},In={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Rn(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,a=n?.width?String(n.width):t;r=e.formattingValues[a]||e.formattingValues[t]}else{const t=e.defaultWidth,a=n?.width?String(n.width):e.defaultWidth;r=e.values[a]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const Yn={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Rn({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Rn({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Rn({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Rn({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Rn({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Hn(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;const i=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(i))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(i)));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;return{value:l,rest:t.slice(i.length)}}}const Bn={ordinalNumber:function(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],o=t.match(e.parsePattern);if(!o)return null;let i=e.valueCallback?e.valueCallback(o[0]):o[0];i=n.valueCallback?n.valueCallback(i):i;return{value:i,rest:t.slice(a.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:Hn({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Hn({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:Hn({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Hn({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Hn({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},$n={code:"en-US",formatDistance:(e,t,n)=>{let r;const a=An[e];return r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:jn,formatRelative:(e,t,n,r)=>In[e],localize:Yn,match:Bn,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Vn(e){const t=Gt(e),n=+ln(t)-+function(e){const t=un(e),n=Xt(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),ln(n)}(t);return Math.round(n/tn)+1}function Wn(e,t){const n=Gt(e),r=n.getFullYear(),a=sn(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,i=Xt(e,0);i.setFullYear(r+1,0,o),i.setHours(0,0,0,0);const s=cn(i,t),c=Xt(e,0);c.setFullYear(r,0,o),c.setHours(0,0,0,0);const l=cn(c,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function zn(e,t){const n=Gt(e),r=+cn(n,t)-+function(e,t){const n=sn(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=Wn(e,t),o=Xt(e,0);return o.setFullYear(a,0,r),o.setHours(0,0,0,0),cn(o,t)}(n,t);return Math.round(r/tn)+1}function qn(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Un={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return qn("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):qn(n+1,2)},d:(e